:root {
    --app-bg: #f3f4f6;
    --app-surface: #ffffff;
    --app-text: #172033;
    --app-muted: #607080;
    --app-primary: #00b879;
    --app-primary-dark: #00875f;
    --app-purple: #32004f;
    --app-sidebar: #121b2a;
    --app-sidebar-muted: #a8b7c7;
    --app-blue: #5774ff;
    --app-coral: #ff5d57;
    --app-gold: #f7b731;
    --app-lime: #7bdc43;
    --app-teal-soft: #dff8ef;
    --app-blue-soft: #e7edff;
    --app-coral-soft: #ffe9e7;
    --app-gold-soft: #fff4cc;
    --app-border: #d8dee8;
    --app-shadow: 0 2px 10px rgba(18, 27, 42, 0.10);
}

* {
    letter-spacing: 0;
}

body {
    background: var(--app-bg);
    color: var(--app-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(220, 231, 230, 0.8);
    backdrop-filter: blur(18px);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--app-text);
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: transparent;
    border-radius: 8px;
}

.admin-sidebar .brand-mark {
    color: var(--app-primary);
}

.admin-sidebar .app-brand {
    color: #ffffff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: none;
}

.btn-lg {
    min-height: 44px;
    padding-inline: 18px;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--app-primary);
    border-color: var(--app-primary);
    box-shadow: 0 8px 18px rgba(0, 184, 121, 0.22);
}

.btn-primary:hover {
    background: var(--app-primary-dark);
    border-color: var(--app-primary-dark);
}

.btn-soft-primary {
    color: var(--app-primary-dark);
    background: var(--app-teal-soft);
    border: 1px solid #bfeedd;
}

.btn-purple {
    color: #ffffff;
    background: var(--app-purple);
    border-color: var(--app-purple);
    box-shadow: 0 8px 18px rgba(50, 0, 79, 0.24);
}

.btn-ghost {
    color: var(--app-muted);
    background: #ffffff;
    border: 1px solid var(--app-border);
}

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--app-muted);
    font-size: 0.92rem;
}

.form-control,
.form-select {
    min-height: 38px;
    border-color: var(--app-border);
    border-radius: 10px;
}

.form-control-lg {
    min-height: 44px;
    font-size: 1rem;
}

.form-label {
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 700;
}

.row.g-3 {
    --bs-gutter-y: 0.75rem;
}

.row.g-4 {
    --bs-gutter-y: 1rem;
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 18px 16px;
    background: var(--app-sidebar);
    border-right: 0;
    overflow-y: auto;
}

.sidebar-brand {
    margin-bottom: 20px;
}

.sidebar-user {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
}

.sidebar-user span,
.sidebar-user strong {
    display: block;
}

.sidebar-user span {
    color: #ffffff;
    font-weight: 850;
}

.sidebar-user strong {
    color: var(--app-sidebar-muted);
    font-size: 0.86rem;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.sidebar-label {
    margin: 16px 0 4px;
    color: var(--app-primary);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 9px 10px;
    color: var(--app-sidebar-muted);
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 750;
}

.sidebar-link i {
    display: inline-grid;
    width: 24px;
    place-items: center;
    color: #8f9cac;
}

.sidebar-link:hover,
.sidebar-link.is-active {
    color: #ffffff;
    background: rgba(0, 184, 121, 0.12);
    border-color: rgba(0, 184, 121, 0.25);
}

.sidebar-link:hover i,
.sidebar-link.is-active i {
    color: var(--app-primary);
}

.sidebar-link.is-disabled {
    color: #9aa8af;
    cursor: not-allowed;
    opacity: 0.78;
}

.sidebar-link.is-disabled:hover {
    background: transparent;
    border-color: transparent;
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    padding: 10px 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--app-border);
    backdrop-filter: blur(18px);
}

.admin-topbar strong,
.topbar-kicker {
    display: block;
}

.admin-topbar strong {
    color: var(--app-text);
}

.topbar-kicker {
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.app-hero {
    padding: 76px 0 56px;
    background:
        linear-gradient(115deg, rgba(229, 244, 242, 0.95) 0%, rgba(255, 255, 255, 0.88) 46%, rgba(255, 240, 235, 0.75) 100%);
    overflow: hidden;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 11px;
    color: var(--app-primary-dark);
    background: rgba(220, 251, 247, 0.95);
    border: 1px solid #b7ebe5;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
}

.hero-title {
    max-width: 720px;
    margin: 0 0 20px;
    font-size: clamp(2.35rem, 4vw, 4.5rem);
    line-height: 1.02;
    font-weight: 850;
}

.hero-copy {
    max-width: 640px;
    color: var(--app-muted);
    font-size: 1.12rem;
    line-height: 1.7;
}

.hero-actions,
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-trust {
    gap: 16px;
    color: #41515d;
    font-size: 0.94rem;
    font-weight: 700;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-visual {
    position: relative;
    margin-inline: auto;
    max-width: 620px;
}

.hero-visual img,
.auth-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    box-shadow: var(--app-shadow);
}

.hero-stat,
.dashboard-session {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-stat {
    position: absolute;
    width: min(260px, 72%);
    padding: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(220, 231, 230, 0.9);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(23, 33, 43, 0.12);
    backdrop-filter: blur(12px);
}

.hero-stat i,
.dashboard-session i {
    display: inline-grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--app-primary-dark);
    background: var(--app-teal-soft);
    border-radius: 10px;
}

.hero-stat small,
.hero-stat strong {
    display: block;
}

.hero-stat small {
    color: var(--app-muted);
}

.hero-stat--top {
    top: 28px;
    right: -12px;
}

.hero-stat--bottom {
    bottom: 28px;
    left: -12px;
}

.feature-band,
.dashboard-body {
    padding: 20px 0;
}

.section-heading {
    max-width: 660px;
    margin-bottom: 24px;
}

.section-heading span,
.dashboard-panel__title span {
    color: var(--app-primary-dark);
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(1.7rem, 2.6vw, 2.7rem);
    font-weight: 850;
}

.module-card,
.auth-card,
.dashboard-session,
.metric-card,
.dashboard-panel,
.next-step {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 10px;
}

.module-card {
    min-height: 230px;
    padding: 24px;
    box-shadow: 0 14px 38px rgba(23, 33, 43, 0.07);
}

.module-icon {
    display: inline-grid;
    width: 50px;
    height: 50px;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 12px;
    font-size: 1.25rem;
}

.module-card--teal .module-icon {
    color: var(--app-primary-dark);
    background: var(--app-teal-soft);
}

.module-card--coral .module-icon {
    color: #a63e27;
    background: var(--app-coral-soft);
}

.module-card--blue .module-icon {
    color: #254f9c;
    background: var(--app-blue-soft);
}

.module-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 850;
}

.module-card p,
.next-step p {
    color: var(--app-muted);
}

.auth-screen {
    min-height: calc(100vh - 65px);
    padding: 62px 0;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(229, 244, 242, 0.82)),
        url("../img/pinxeo-hero.png") center / cover no-repeat;
}

.auth-card {
    padding: 30px;
    box-shadow: var(--app-shadow);
}

.auth-visual {
    position: relative;
}

.auth-visual img {
    aspect-ratio: 5 / 4;
}

.auth-visual__caption {
    position: absolute;
    right: 22px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 360px;
    padding: 16px;
    color: #ffffff;
    background: rgba(15, 89, 96, 0.92);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 89, 96, 0.24);
}

.input-shell {
    position: relative;
}

.input-shell i {
    position: absolute;
    top: 50%;
    left: 16px;
    color: var(--app-muted);
    transform: translateY(-50%);
}

.input-shell .form-control {
    padding-left: 46px;
    border-color: var(--app-border);
    border-radius: 10px;
}

.auth-hint {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    padding: 16px;
    color: var(--app-muted);
    background: var(--app-bg);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    font-size: 0.92rem;
}

.dashboard-header {
    padding: 20px 0 10px;
    background: transparent;
    border-bottom: 0;
}

.dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0 0;
}

.dashboard-hero h1 {
    max-width: 760px;
    margin: 0 0 6px;
    font-size: 1.85rem;
    line-height: 1.14;
    font-weight: 850;
}

.dashboard-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--app-muted);
}

.has-admin-shell .dashboard-header,
.has-admin-shell .dashboard-body {
    padding-left: 18px;
    padding-right: 18px;
}

.has-admin-shell .dashboard-header .container,
.has-admin-shell .dashboard-body .container {
    max-width: 1480px;
}

.dashboard-session {
    align-self: flex-start;
    min-width: 285px;
    padding: 12px;
    box-shadow: var(--app-shadow);
}

.dashboard-session small,
.metric-card small,
.metric-card span {
    display: block;
    color: var(--app-muted);
}

.dashboard-session strong {
    display: block;
    word-break: break-word;
}

.metric-card {
    position: relative;
    min-height: 112px;
    padding: 14px;
    overflow: hidden;
    box-shadow: var(--app-shadow);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.metric-card p {
    margin: 0;
    color: var(--app-muted);
}

.metric-card > i {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 11px;
}

.metric-card strong {
    display: block;
    margin: 5px 0;
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 850;
    color: var(--app-primary-dark);
}

.metric-card--teal > i {
    color: var(--app-primary-dark);
    background: var(--app-teal-soft);
}

.metric-card--blue > i {
    color: #2f50d8;
    background: var(--app-blue-soft);
}

.metric-card--coral > i {
    color: #d83935;
    background: var(--app-coral-soft);
}

.metric-card--gold > i {
    color: #946400;
    background: var(--app-gold-soft);
}

.dashboard-panel {
    padding: 16px;
    box-shadow: var(--app-shadow);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 12px;
}

.dashboard-panel--accent {
    border-top: 4px solid var(--app-primary);
}

.dashboard-panel__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.dashboard-panel__title h2 {
    margin: 4px 0 0;
    font-size: 1.35rem;
    font-weight: 850;
}

.dashboard-panel__title > i {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--app-primary-dark);
    background: var(--app-teal-soft);
    border-radius: 12px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-links a,
.quick-links span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    color: var(--app-text);
    background: #f7f9fb;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    font-weight: 800;
}

.quick-links a:hover {
    color: #ffffff;
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.quick-links a i,
.quick-links span i {
    display: inline-grid;
    width: 22px;
    place-items: center;
    color: var(--app-primary-dark);
}

.quick-links a:hover i {
    color: #ffffff;
}

.quick-links span {
    color: var(--app-muted);
    background: #f0f3f6;
}

.quick-links small {
    margin-left: auto;
    color: #8c98a6;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.compact-selector {
    min-width: min(360px, 100%);
    padding: 12px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 10px;
    box-shadow: var(--app-shadow);
}

.module-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.module-tabs a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--app-muted);
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
}

.module-tabs a.is-active,
.module-tabs a:hover {
    color: #ffffff;
    background: var(--app-purple);
    border-color: var(--app-purple);
}

.academic-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 12px;
    align-items: start;
}

.app-table--compact {
    min-width: 920px;
}

.assignment-form h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 850;
}

.focus-list {
    display: grid;
    gap: 12px;
}

.focus-list article {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--app-border);
}

.focus-list article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.focus-list b {
    display: inline-grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--app-purple);
    background: #f0e6f7;
    border-radius: 8px;
    font-size: 0.88rem;
}

.focus-list strong {
    display: block;
    margin-bottom: 3px;
    font-weight: 850;
}

.focus-list p {
    margin: 0;
    color: var(--app-muted);
}

.next-step {
    height: 100%;
    padding: 18px;
}

.next-step > span {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--app-coral);
    font-weight: 850;
}

.next-step strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 850;
}

.next-step p {
    margin: 10px 0 0;
}

.next-step--link {
    display: block;
    color: var(--app-text);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.next-step--link:hover {
    color: var(--app-text);
    border-color: #bfeedd;
    box-shadow: 0 10px 22px rgba(0, 184, 121, 0.14);
    transform: translateY(-2px);
}

.table-panel,
.form-panel,
.filter-panel {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 10px;
    box-shadow: var(--app-shadow);
}

.table-panel {
    overflow: hidden;
}

.app-table {
    min-width: 1180px;
}

.app-table--group {
    min-width: 860px;
}

.app-table--plans {
    min-width: 1080px;
}

.followup-row td {
    padding-top: 0 !important;
    background: #fbfdfd;
}

.followup-box {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(360px, 1.15fr);
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
}

.followup-box p,
.followup-box small {
    margin: 0;
    color: var(--app-muted);
}

.followup-form {
    display: grid;
    grid-template-columns: 130px 150px 150px minmax(220px, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.app-table thead th {
    padding: 12px 14px;
    color: var(--app-muted);
    background: #f6f7f9;
    border-bottom: 1px solid var(--app-border);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.app-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--app-border);
    vertical-align: middle;
}

.app-table tbody tr:last-child td {
    border-bottom: 0;
}

.app-table strong,
.app-table span {
    display: block;
}

.app-table span {
    color: var(--app-muted);
    font-size: 0.9rem;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.table-actions form {
    margin: 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.filter-grid__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.status-badge--active {
    color: var(--app-primary-dark);
    background: var(--app-teal-soft);
}

.status-badge--trial {
    color: #254f9c;
    background: var(--app-blue-soft);
}

.status-badge--suspended {
    color: #a63e27;
    background: var(--app-coral-soft);
}

.status-badge--expired {
    color: #7b5715;
    background: var(--app-gold-soft);
}

.status-badge--inactive {
    color: #5f6d76;
    background: #edf1f2;
}

.status-badge--current,
.status-badge--paid,
.status-badge--confirmed {
    color: var(--app-primary-dark);
    background: var(--app-teal-soft);
}

.status-badge--pending,
.status-badge--issued,
.status-badge--partial,
.status-badge--registered {
    color: #7b5715;
    background: var(--app-gold-soft);
}

.status-badge--overdue,
.status-badge--void,
.status-badge--reversed {
    color: #a63e27;
    background: var(--app-coral-soft);
}

.status-badge--exempt {
    color: #254f9c;
    background: var(--app-blue-soft);
}

.status-badge--draft {
    color: #5f6d76;
    background: #edf1f2;
}

.status-badge--review {
    color: #7b5715;
    background: var(--app-gold-soft);
}

.status-badge--published,
.status-badge--approved {
    color: var(--app-primary-dark);
    background: var(--app-teal-soft);
}

.status-badge--closed {
    color: #254f9c;
    background: var(--app-blue-soft);
}

.assessment-question-list {
    display: grid;
    gap: 12px;
}

.assessment-question {
    padding: 14px;
    background: #f8fbfb;
    border: 1px solid var(--app-border);
    border-radius: 10px;
}

.assessment-question__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.assessment-question__head strong,
.assessment-question__head span {
    display: block;
}

.assessment-question__head span {
    color: var(--app-muted);
    font-size: 0.88rem;
}

.assessment-question p {
    margin-bottom: 12px;
    font-weight: 700;
}

.option-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.option-list div {
    display: flex;
    gap: 8px;
    padding: 9px 10px;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

.option-list b {
    display: inline-grid;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    place-items: center;
    color: var(--app-muted);
    background: #edf1f2;
    border-radius: 6px;
    font-size: 0.8rem;
}

.option-list .is-correct {
    border-color: #9ee6cc;
    background: var(--app-teal-soft);
}

.option-list .is-correct b {
    color: #ffffff;
    background: var(--app-primary);
}

.diagnostic-subject-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.student-diagnostic-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 34px;
}

.student-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(16, 125, 111, 0.96), rgba(60, 82, 171, 0.94)),
        radial-gradient(circle at 88% 18%, rgba(255, 210, 102, 0.28), transparent 30%);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(18, 27, 42, 0.16);
}

.student-hero--compact {
    align-items: center;
}

.student-hero h1 {
    max-width: 760px;
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1.12;
    font-weight: 900;
}

.student-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.student-hero .hero-kicker {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.student-hero .btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.32);
}

.student-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.student-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
}

.student-card > i {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #183a6d;
    background: #ffffff;
    border-radius: 12px;
    font-size: 1.25rem;
}

.student-card small,
.student-card strong,
.student-card span {
    display: block;
}

.student-card small,
.student-card span {
    color: rgba(255, 255, 255, 0.76);
}

.student-card strong {
    font-size: 1.02rem;
}

.student-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.student-stepper article {
    display: flex;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    box-shadow: var(--app-shadow);
}

.student-stepper b {
    display: inline-grid;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--app-muted);
    background: #edf1f2;
    border-radius: 9px;
}

.student-stepper article.is-active b {
    color: #ffffff;
    background: var(--app-primary);
}

.student-stepper strong,
.student-stepper span {
    display: block;
}

.student-stepper span {
    color: var(--app-muted);
    font-size: 0.88rem;
}

.student-start-grid,
.student-results-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
    gap: 14px;
    align-items: start;
}

.student-guidance-panel {
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    box-shadow: var(--app-shadow);
}

.student-guidance-panel__summary {
    padding: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--app-purple), #2f8bcb);
    border-radius: 10px;
}

.student-guidance-panel__summary span,
.student-guidance-panel__summary strong,
.student-guidance-panel__summary small {
    display: block;
}

.student-guidance-panel__summary strong {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 900;
}

.student-guidance-panel__summary small {
    color: rgba(255, 255, 255, 0.76);
}

.student-checklist {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.student-checklist article {
    display: flex;
    gap: 11px;
    padding: 12px;
    background: #f8fbfb;
    border: 1px solid var(--app-border);
    border-radius: 10px;
}

.student-checklist--compact article {
    padding: 10px;
}

.student-checklist i {
    display: inline-grid;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--app-primary-dark);
    background: var(--app-teal-soft);
    border-radius: 9px;
}

.student-checklist strong,
.student-checklist p {
    display: block;
    margin: 0;
}

.student-checklist p {
    color: var(--app-muted);
    font-size: 0.88rem;
}

.student-result-highlight {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.student-report-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.student-report-summary p {
    margin: 0;
    color: var(--app-text);
    font-size: 1.02rem;
}

.diagnostic-subject {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fbfb;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    cursor: pointer;
}

.diagnostic-subject:has(input:checked) {
    border-color: #9ee6cc;
    background: var(--app-teal-soft);
}

.diagnostic-subject strong,
.diagnostic-subject small {
    display: block;
}

.diagnostic-subject small {
    color: var(--app-muted);
}

.diagnostic-subject em {
    color: var(--app-primary-dark);
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.diagnostic-exam {
    min-height: calc(100vh - 60px);
    padding: 18px;
}

.diagnostic-exam__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.exam-progress-strip {
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    box-shadow: var(--app-shadow);
}

.exam-progress-strip strong,
.exam-progress-strip span {
    display: block;
}

.exam-progress-strip span {
    color: var(--app-muted);
    font-size: 0.88rem;
}

.diagnostic-exam__top h1 {
    margin: 0 0 4px;
    font-size: 1.7rem;
    font-weight: 850;
}

.diagnostic-exam__top p {
    margin: 0;
    color: var(--app-muted);
}

.diagnostic-exam__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.diagnostic-exam__layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.diagnostic-nav,
.diagnostic-question-stage {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 10px;
    box-shadow: var(--app-shadow);
}

.diagnostic-nav {
    position: sticky;
    top: 78px;
    padding: 14px;
}

.diagnostic-nav > strong,
.diagnostic-nav > span {
    display: block;
}

.diagnostic-nav > span {
    color: var(--app-muted);
    font-size: 0.9rem;
}

.diagnostic-nav__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
    margin-top: 12px;
}

.diagnostic-nav__grid button {
    min-height: 38px;
    color: var(--app-muted);
    background: #f7f9fb;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    font-weight: 850;
}

.diagnostic-nav__grid button.is-active {
    color: #ffffff;
    background: var(--app-purple);
    border-color: var(--app-purple);
}

.diagnostic-nav__grid button.is-answered {
    color: var(--app-primary-dark);
    background: var(--app-teal-soft);
    border-color: #9ee6cc;
}

.diagnostic-question-stage {
    padding: 18px;
}

.diagnostic-question {
    display: none;
}

.diagnostic-question.is-active {
    display: block;
}

.diagnostic-question__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.diagnostic-question__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    color: var(--app-primary-dark);
    background: var(--app-teal-soft);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.diagnostic-question h2 {
    margin-bottom: 18px;
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 850;
}

.diagnostic-options {
    display: grid;
    gap: 10px;
}

.diagnostic-options label {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8fbfb;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    cursor: pointer;
}

.diagnostic-options label:has(input:checked) {
    border-color: #9ee6cc;
    background: var(--app-teal-soft);
}

.diagnostic-options b {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #ffffff;
    background: var(--app-primary);
    border-radius: 7px;
}

.diagnostic-question__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--app-border);
}

.diagnostic-question__footer span {
    color: var(--app-muted);
    font-weight: 800;
}

.diagnostic-finish {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.empty-state {
    max-width: 560px;
    margin: 0 auto;
    padding: 56px 24px;
    text-align: center;
}

.empty-state > i {
    display: inline-grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin-bottom: 18px;
    color: var(--app-primary-dark);
    background: var(--app-teal-soft);
    border-radius: 16px;
    font-size: 1.6rem;
}

.empty-state h2 {
    font-size: 1.4rem;
    font-weight: 850;
}

.empty-state p {
    color: var(--app-muted);
}

.form-panel {
    padding: 18px;
}

.filter-panel {
    padding: 14px;
}

.filter-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.filter-panel__header strong,
.filter-panel__header span {
    display: block;
}

.filter-panel__header strong {
    font-size: 0.96rem;
    font-weight: 850;
}

.filter-panel__header span {
    color: var(--app-muted);
    font-size: 0.9rem;
}

.institution-form {
    display: grid;
    gap: 20px;
}

.form-stack {
    display: grid;
    gap: 14px;
}

.form-section {
    padding: 16px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 10px;
}

.form-section__heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.form-section__heading > span {
    display: inline-grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--app-primary-dark);
    background: var(--app-teal-soft);
    border-radius: 10px;
    font-weight: 850;
}

.form-section h2 {
    margin-bottom: 4px;
    font-size: 1.12rem;
    font-weight: 850;
}

.form-section p {
    margin-bottom: 22px;
    color: var(--app-muted);
}

.form-section__heading p {
    margin-bottom: 0;
}

.form-section--side {
    height: 100%;
    padding: 22px;
    background: #f8fbfb;
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.check-grid .form-check,
.toggle-stack .form-check {
    min-height: 38px;
    margin: 0;
    padding: 8px 10px 8px 36px;
    background: #f8fbfb;
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

.toggle-stack {
    display: grid;
    gap: 10px;
}

.color-field {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-field .form-control-color {
    width: 58px;
    height: 42px;
    padding: 6px;
}

.color-field span {
    color: var(--app-muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
}

.modal-actions {
    position: sticky;
    bottom: -16px;
    margin: 16px -16px -16px;
    padding: 14px 16px;
    background: #ffffff;
    border-top: 1px solid var(--app-border);
}

.app-modal .modal-content {
    border: 1px solid var(--app-border);
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(18, 27, 42, 0.24);
}

.app-modal__header {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--app-border);
}

.app-modal__header > div {
    min-width: 0;
}

.app-modal__header span {
    display: block;
    color: var(--app-primary-dark);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.app-modal__header h2 {
    margin: 3px 0 0;
    font-size: 1.35rem;
    font-weight: 850;
}

.app-modal__close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
}

@media (max-width: 991.98px) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        padding: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--app-border);
    }

    .sidebar-brand,
    .sidebar-user {
        margin-bottom: 12px;
    }

    .sidebar-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .sidebar-label {
        display: none;
    }

    .sidebar-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .admin-topbar {
        position: static;
        padding: 12px 16px;
    }

    .dashboard-hero {
        flex-direction: column;
    }

    .student-hero,
    .student-hero--compact {
        flex-direction: column;
        align-items: stretch;
    }

    .student-hero__actions {
        justify-content: flex-start;
    }

    .student-card {
        min-width: 0;
    }

    .student-start-grid,
    .student-results-grid,
    .student-report-summary {
        grid-template-columns: 1fr;
    }

    .student-stepper {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .academic-grid {
        grid-template-columns: 1fr;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-stat--top {
        right: 12px;
    }

    .hero-stat--bottom {
        left: 12px;
    }
}

@media print {
    .admin-sidebar,
    .admin-topbar,
    .print-hide,
    .btn {
        display: none !important;
    }

    .admin-shell,
    .admin-main {
        display: block !important;
    }

    .dashboard-body,
    .report-print {
        padding: 0 !important;
    }

    .dashboard-panel {
        box-shadow: none !important;
        break-inside: avoid;
    }
}

@media (max-width: 575.98px) {
    .app-hero,
    .auth-screen,
    .feature-band,
    .dashboard-body {
        padding: 28px 0;
    }

    .hero-title {
        margin-bottom: 14px;
        font-size: 1.92rem;
        line-height: 1.06;
    }

    .hero-copy {
        font-size: 0.98rem;
        line-height: 1.52;
    }

    .hero-kicker {
        margin-bottom: 14px;
    }

    .hero-actions {
        margin-top: 18px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-trust {
        display: none;
    }

    .hero-visual {
        margin-top: 4px;
    }

    .hero-visual img {
        aspect-ratio: 16 / 10;
        border-radius: 16px;
    }

    .hero-stat {
        position: static;
        width: 100%;
        margin-top: 10px;
    }

    .auth-card,
    .dashboard-panel,
    .form-panel,
    .filter-panel {
        padding: 20px;
    }

    .filter-panel__header {
        flex-direction: column;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid__actions .btn {
        width: 100%;
    }

    .dashboard-session {
        width: 100%;
        min-width: 0;
    }

    .dashboard-hero h1 {
        font-size: 1.5rem;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .option-list {
        grid-template-columns: 1fr;
    }

    .diagnostic-subject-grid {
        grid-template-columns: 1fr;
    }

    .diagnostic-exam {
        padding: 12px;
    }

    .diagnostic-exam__top {
        flex-direction: column;
    }

    .diagnostic-exam__layout {
        grid-template-columns: 1fr;
    }

    .diagnostic-nav {
        position: static;
    }

    .diagnostic-question__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .has-admin-shell .dashboard-header,
    .has-admin-shell .dashboard-body {
        padding-left: 0;
        padding-right: 0;
    }

    .check-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }
}

.user-switch {
    min-height: 42px;
    margin: 0;
    padding: 10px 12px 10px 42px;
    background: #f8fbfb;
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

.diagnostic-score {
    display: grid;
    min-width: 150px;
    min-height: 118px;
    place-items: center;
    padding: 18px;
    color: #fff;
    background: #3b0764;
    border-radius: 8px;
    box-shadow: 0 18px 34px rgba(59, 7, 100, 0.22);
}

.diagnostic-score strong {
    font-size: 2.8rem;
    line-height: 0.95;
}

.diagnostic-score span {
    font-weight: 850;
    text-transform: uppercase;
}

.diagnostic-score.is-strong {
    background: #00b981;
}

.diagnostic-score.is-watch {
    background: #f59e0b;
}

.diagnostic-score.is-risk {
    background: #ef4444;
}

.diagnostic-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.diagnostic-list {
    display: grid;
    gap: 10px;
}

.diagnostic-list article {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    background: #f8fbfb;
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

.diagnostic-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--app-ink);
}

.diagnostic-list p,
.diagnostic-list small {
    margin: 0;
    color: var(--app-muted);
}

.diagnostic-list--compact article {
    justify-content: flex-start;
}

.question-number {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #3b0764;
    background: #f3e8ff;
    border-radius: 8px;
    font-weight: 900;
}

.priority-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.priority-badge--high {
    color: #991b1b;
    background: #fee2e2;
}

.priority-badge--medium {
    color: #92400e;
    background: #fef3c7;
}

.priority-badge--low {
    color: #065f46;
    background: #d1fae5;
}

.score-bar {
    width: 140px;
    height: 8px;
    margin-bottom: 4px;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 999px;
}

.score-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #00b981);
}

.diagnostic-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.diagnostic-chip-list span {
    padding: 8px 12px;
    color: #3b0764;
    background: #f3e8ff;
    border: 1px solid #e9d5ff;
    border-radius: 999px;
    font-weight: 800;
}

.plan-follow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.plan-follow-grid article {
    padding: 14px;
    background: #f8fbfb;
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

.plan-follow-grid span {
    display: block;
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.plan-follow-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--app-ink);
    font-size: 1.25rem;
}

.plan-follow-grid p {
    margin: 4px 0 10px;
    color: var(--app-muted);
}

.plan-follow-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-progress {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
}

.mini-progress .progress-bar {
    background: linear-gradient(90deg, #00b981, #2563eb);
}

.improvement-item {
    align-items: stretch !important;
}

.improvement-item--completed {
    border-color: #86efac !important;
    background: #f0fdf4 !important;
}

.improvement-actions {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 170px;
}

@media (max-width: 991.98px) {
    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .followup-box,
    .followup-form {
        grid-template-columns: 1fr;
    }

    .diagnostic-report-grid {
        grid-template-columns: 1fr;
    }

    .plan-follow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .improvement-actions {
        width: 100%;
    }
}
