/* Shared screen presentation. Keep assessment content, status colors and print layouts intact. */
@media screen {
    .kb-app {
        --kb-surface: #fff;
        --kb-page: #f6f7f9;
        --kb-edge: #e1e6ed;
        --kb-ink: #172b46;
        --kb-muted: #52647a;
        --kb-soft: #f0f5fc;
        -webkit-font-smoothing: antialiased;
    }
    .dark .kb-app {
        --kb-surface: #18181b;
        --kb-page: #202023;
        --kb-edge: #3f3f46;
        --kb-ink: #f4f4f5;
        --kb-muted: #b4b4be;
        --kb-soft: #243247;
    }
    body.kb-admin, body.kb-student, body.kb-recruitment { background: var(--kb-page); }
    .kb-app :is(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid #8bb9f8; outline-offset: 3px; }
    .kb-app :is(button, input, select, textarea):disabled { cursor: not-allowed; }
    .kb-app :is(.kb-btn, .sp-button, .drill-button, .recruitment-button, .recruitment-secondary) {
        border-radius: 10px; font-weight: 600; min-height: 44px; text-wrap: pretty;
    }
    .kb-app :is(.sp-button, .drill-button, .kb-btn):disabled:hover { filter: none; transform: none; }
    .kb-app :is(.kb-confirm, .sp-card, .sp-form, .drill-question-card, .recruitment-card) { border-radius: 14px; }
    .kb-app .kb-confirm { border-color: var(--kb-edge); }
    .kb-app .kb-confirm h2 { font-size: 20px; font-weight: 650; }
    .kb-app .kb-confirm-icon { border-radius: 10px; }

    /* Admin, finance and tutor workspaces share the same information hierarchy. */
    .kb-admin main :is(h1, h2, h3), .kb-recruitment main :is(h1, h2, h3) { font-weight: 650; line-height: 1.35; text-wrap: pretty; }
    .kb-admin main .font-black, .kb-recruitment main .font-black { font-weight: 650; }
    .kb-admin main :is(.rounded-2xl, .rounded-3xl) { border-radius: 14px; }
    .kb-admin main :is(.shadow-sm, .shadow-lg, .shadow-xl) { box-shadow: 0 2px 8px #10264b05; }
    .kb-admin main .border-blue-100 { border-color: var(--kb-edge); }
    .kb-admin .kb-sidebar { background: var(--kb-surface); border-color: var(--kb-edge); }
    .kb-admin .kb-sidebar [data-flux-sidebar-item] { border-radius: 8px; padding-block: 10px; font-weight: 500; }
    .kb-admin .kb-sidebar [data-flux-sidebar-item][data-current] { background: var(--kb-soft); color: #0060e1; font-weight: 650; }
    .dark .kb-admin .kb-sidebar [data-flux-sidebar-item][data-current] { color: #93c5fd; }
    .kb-admin main table { font-variant-numeric: tabular-nums; }
    .kb-admin main th { font-weight: 600; line-height: 1.5; }
    .kb-admin main :is(th, td):not(.tox *) { padding-block: 14px; vertical-align: middle; }
    .kb-admin main :is(input:not([type=checkbox],[type=radio],[type=hidden],[type=file]), select) { min-height: 42px; }
    .kb-admin .kb-dashboard-heading { background: var(--kb-surface); color: var(--kb-ink); border: 1px solid var(--kb-edge); box-shadow: none; }
    .kb-admin .kb-dashboard-heading > .absolute { display: none; }
    .kb-admin .kb-dashboard-heading .text-blue-100 { color: var(--kb-muted); }
    .kb-admin .kb-dashboard-heading h1 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.5px; }

    /* Student pages: compact introductions, consistent actions, readable content. */
    .kb-student .sp-hero { background: #fff; color: #172b46; border: 1px solid #e1e6ed; border-left: 4px solid #0060e1; border-radius: 14px; padding: 24px; gap: 8px; }
    .kb-student .sp-hero::after { content: none; }
    .kb-student .sp-hero p { color: #52647a; }
    .kb-student .sp-hero .sp-eyebrow { color: #0060e1; letter-spacing: .04em; }
    .kb-student .sp h1 { font-size: clamp(23px, 3vw, 30px); font-weight: 650; letter-spacing: -.4px; }
    .kb-student .sp h2 { font-weight: 650; }
    .kb-student :is(.sp-card, .sp-form, .drill-question-card) { border-color: #e1e6ed; box-shadow: none; }
    .kb-student .sp-muted { color: #52647a; line-height: 1.7; }
    .kb-student .sp-card-link:hover { transform: none; box-shadow: 0 3px 12px #10264b08; }
    .kb-student .drill-button-primary { background: #0060e1; color: #fff; border-color: #0060e1; }
    .kb-student .drill-button-primary:hover { background: #004eb9; border-color: #004eb9; }
    .kb-student .drill-action-bar { border-color: #e1e6ed; box-shadow: 0 -3px 16px #10264b06; }
    .kb-student .drill-result-card { background: #0056c7; border-radius: 16px; }

    /* Recruitment and authentication retain branding without decorative noise. */
    .kb-recruitment .recruitment-page .recruitment-card { box-shadow: none; border-color: #e1e6ed; }
    .kb-recruitment .recruitment-page .recruitment-label { font-weight: 600; }
    .kb-auth .font-black { font-weight: 650; }
    .kb-auth main > section > .absolute { display: none; }
    .kb-auth [data-flux-heading] { letter-spacing: -.4px; }

    /* Public pages keep their illustrations; surfaces and motion are quieter. */
    .kb-public .kb-landing .welcome-hero { background: #f5f8fc; }
    .kb-public .kb-landing :is(.welcome-program.du-card, .welcome-value-card.du-card, .welcome-testimonial.du-card) { border-radius: 16px; box-shadow: none; }
    .kb-public .kb-landing :is(.welcome-program.du-card, .welcome-button.du-btn):hover { transform: none; }
    .kb-public .kb-landing .welcome-program.du-card:hover { box-shadow: 0 4px 16px #10264b08; }
    .kb-public .kb-landing .welcome-program-link.du-btn { border-radius: 10px; }
    .kb-public .kb-landing .welcome-button.du-btn { border-radius: 10px; font-weight: 600; }
    .kb-public .kb-landing .welcome-value-card h3 { font-weight: 600; }
    .kb-public .wrap .card { border: 1px solid #e1e6ed; border-radius: 14px; box-shadow: none; }
    .kb-public .wrap :is(h1, h2, h3) { font-weight: 650; line-height: 1.35; }
    .kb-public .wrap .muted { color: #52647a; line-height: 1.7; }
    .kb-public .wrap dl { line-height: 1.7; }
    @media (max-width: 640px) {
        .kb-admin main :is(th, td):not(.tox *) { padding-block: 12px; }
        .kb-student .sp-hero { padding: 20px; }
        .kb-student .drill-action-inner .drill-button { font-size: 14px; }
        .kb-app :is(input, select, textarea):not([type=checkbox],[type=radio],[type=hidden],.tox *) { font-size: 16px; }
    }
}
