:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --panel-soft: #f1f3f6;
    --ink: #111827;
    --muted: #4b5563;
    --soft: #6b7280;
    --line: #bfc8d4;
    --line-soft: #d7dee8;
    --blue: #0b4f86;
    --blue-2: #155d93;
    --blue-soft: #cfe5ff;
    --navy: #00253d;
    --orange: #f59e0b;
    --orange-dark: #8a5600;
    --green: #16a34a;
    --red: #dc2626;
    --shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}
a { color: #003b7a; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }

.student-header {
    height: 72px;
    padding: 0 32px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 30;
}
.student-brand { display: flex; align-items: center; gap: 22px; color: var(--ink); font-weight: 800; font-size: 23px; min-width: 0; }
.student-brand img { width: 176px; height: 54px; object-fit: contain; }
.student-nav { display: flex; align-items: center; gap: 44px; font-size: 18px; }
.student-nav a { color: var(--ink); padding: 24px 0 18px; border-bottom: 3px solid transparent; }
.student-nav a.active { color: #003b7a; border-color: #003b7a; }
.student-main { width: min(1248px, calc(100% - 40px)); margin: 92px auto 88px; }
.site-footer {
    min-height: 72px;
    padding: 20px 32px;
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: var(--ink);
}
.site-footer nav { display: flex; gap: 34px; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 32px; line-height: 1.12; letter-spacing: 0; }
h2 { font-size: 22px; line-height: 1.25; }
h3 { font-size: 19px; }
p { color: var(--muted); line-height: 1.5; }
.notice, .alert {
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.notice { background: #e9f9ef; color: #087532; border: 1px solid #a7efbf; }
.alert { background: #fff1f1; color: #b00000; border: 1px solid #f3a8a8; }
.alert ul { margin: 8px 0 0; }
.flow-message {
    max-width: 1200px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border: 1px solid #f3a8a8;
    border-radius: 8px;
    background: #fff1f1;
    color: #b00000;
    font-weight: 700;
}

.registration-card, .assessment-card, .completion-card, .panel, .filter-panel, .table-wrap {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.registration-card { overflow: hidden; }
.registration-head {
    padding: 34px 32px 30px;
    border-bottom: 1px solid var(--line);
}
.registration-head h1 { margin-bottom: 14px; }
.registration-head p { font-size: 22px; max-width: 900px; color: #2d3748; }
.form-grid {
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 30px;
}
label { display: block; font-weight: 500; font-size: 18px; color: var(--ink); }
input {
    width: 100%;
    height: 54px;
    margin-top: 8px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font-size: 20px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input::placeholder { color: #6b7280; }
input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(11, 79, 134, .11);
}
.registration-actions {
    margin: 22px 32px 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.registration-actions p { margin: 0; font-size: 16px; color: var(--ink); }
.verification-card { max-width: 920px; margin: 0 auto; }
.verification-grid {
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.verification-form {
    display: grid;
    align-content: start;
    gap: 18px;
}
.verification-form .primary-button,
.verification-form .secondary-button {
    width: 100%;
}
.verification-form input[readonly] {
    background: #f1f5f9;
    color: var(--muted);
}
.primary-button, .secondary-button, .export-button, .detail-button, .danger-button {
    min-height: 54px;
    border-radius: 8px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    border: 1px solid transparent;
}
.primary-button { background: var(--blue-2); color: #fff; box-shadow: 0 4px 9px rgba(0, 37, 61, .2); }
.secondary-button { background: #fff; color: #213244; border-color: var(--line); }
.export-button { background: var(--orange); color: #fff; }
.detail-button { color: #003b7a; background: #fff; border-color: #003b7a; min-height: 48px; font-size: 16px; }
.danger-button { color: #b91c1c; background: #fff; border-color: #ef4444; cursor: pointer; }
.danger-button.small { min-height: 38px; padding: 8px 12px; border-radius: 6px; font-size: 14px; }
.primary-button, .secondary-button, .export-button, .detail-button, .danger-button {
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.primary-button:hover, .export-button:hover, .detail-button:hover, .secondary-button:hover, .danger-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(15, 23, 42, .13);
}
.danger-button:hover { background: #fee2e2; }

.info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.info-strip article {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #f1f3f6;
    padding: 22px 28px;
}
.info-strip strong { display: block; font-size: 22px; }
.info-strip span { color: var(--ink); }
.flow-step { display: none; }
.flow-step.active { display: block; }
.assessment-topline {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
    margin-bottom: 36px;
}
.assessment-topline h1 {
    color: var(--blue);
    font-size: 31px;
    margin-bottom: 8px;
}
.section-pill {
    background: #092d55;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    margin-right: 10px;
}
.section-name { font-size: 20px; }
.progress-summary { width: 320px; display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.progress-summary strong, .progress-summary span { font-size: 18px; }
.test-timer {
    color: var(--blue);
    font-style: normal;
    font-weight: 800;
    grid-column: 1 / -1;
    text-align: right;
}
.test-timer b { font-variant-numeric: tabular-nums; }
.is-timer-warning .test-timer { color: var(--red); }
.progress-track {
    height: 10px;
    background: #e1e5ea;
    border-radius: 999px;
    overflow: hidden;
    grid-column: 1 / -1;
}
.progress-track i { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.assessment-card { margin-bottom: 30px; overflow: hidden; }
.assessment-card legend {
    width: 100%;
    padding: 30px;
    background: #f1f3f6;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 24px;
    font-weight: 500;
}
.question-number {
    min-width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--blue);
    color: white;
    display: inline-grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
}
.answer-stack {
    padding: 30px;
    display: grid;
    gap: 10px;
}
.option-tile {
    min-height: 70px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 28px 34px 1fr;
    align-items: center;
    gap: 16px;
    padding: 0 22px;
    font-size: 18px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.option-tile:hover {
    border-color: var(--blue);
    box-shadow: 0 3px 10px rgba(15, 23, 42, .06);
}
.option-tile:has(input:checked) {
    background: var(--blue-soft);
    border: 2px solid var(--blue);
}
.option-tile input {
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: var(--blue);
}
.tool-question-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
    align-items: stretch;
}
.tool-question-grid .answer-stack { padding: 0; }
.tool-image-frame {
    min-height: 280px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.tool-image-frame img {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: contain;
}
.image-placeholder {
    min-height: 280px;
    border: 2px dashed var(--line);
    border-radius: 10px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
    background: #f1f3f6;
    color: #66717f;
    font-size: 18px;
}
.image-placeholder small { color: #66717f; }
.label-parts-grid {
    display: grid;
    grid-template-columns: minmax(560px, 1.15fr) minmax(460px, .85fr);
    gap: 28px;
    padding: 28px;
    align-items: start;
}
.label-diagram {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: auto;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}
.label-diagram img {
    display: block;
    width: 100%;
    height: auto;
}
.label-answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    align-content: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.label-select-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--ink);
    min-width: 0;
}
.label-select-row > span {
    min-height: 38px;
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
}
.label-select-row select {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 0 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    min-width: 0;
}
.label-select-row select:invalid { color: var(--muted); }
.hint-card {
    background: #dcebf4;
    color: #52606d;
    border: 1px solid #c5d4df;
    border-radius: 10px;
    padding: 26px 32px;
    font-size: 20px;
}
.assessment-nav {
    position: sticky;
    bottom: 0;
    z-index: 9;
    margin: 34px calc(50% - 50vw) -88px;
    padding: 22px max(32px, calc((100vw - 1248px) / 2));
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
}
.needs-answer .assessment-card { border-color: var(--red); }

.completion-card {
    text-align: center;
    padding: 42px 64px 54px;
}
.success-mark {
    width: 94px;
    height: 94px;
    margin: 0 auto 34px;
    border-radius: 50%;
    background: #dafbe7;
    color: #15b765;
    display: grid;
    place-items: center;
    font-size: 56px;
}
.completion-card h1 { color: var(--blue); font-size: 40px; margin-bottom: 12px; }
.completion-card > p { max-width: 760px; margin: 0 auto 36px; font-size: 20px; color: #1f2937; }
.score-ring, .mini-score-ring {
    border-radius: 50%;
    background: conic-gradient(var(--blue) var(--score, 78%), #e0e4e8 0);
    display: grid;
    place-items: center;
}
.score-ring {
    width: 350px;
    height: 350px;
    margin: 0 auto 36px;
}
.score-ring > div {
    width: 244px;
    height: 244px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    align-content: center;
}
.score-ring strong { color: var(--blue); font-size: 84px; line-height: .9; }
.score-ring span, .mini-score-ring span { text-transform: uppercase; letter-spacing: 2px; }
.completion-card h2 { color: var(--blue); font-size: 38px; }
.result-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin: 52px 0 36px; }
.result-metric-card {
    text-align: left;
    background: #f1f3f6;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px 32px;
}
.result-metric-card header { display: flex; justify-content: space-between; gap: 20px; }
.result-metric-card header span {
    background: #d7e5ee;
    border-radius: 6px;
    padding: 7px 12px;
    font-weight: 700;
    color: var(--blue);
}
.metric-line { display: grid; grid-template-columns: 100px 1fr; gap: 20px; align-items: center; }
.metric-line strong { color: var(--blue); font-size: 42px; }
.result-note { font-size: 20px; }
.result-actions { margin-top: 32px; display: flex; justify-content: center; }

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}
.auth-main {
    width: min(1120px, 100%);
    margin: auto;
}
.login-shell {
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.login-brand-panel {
    padding: 44px;
    border-right: 1px solid var(--line);
    background-color: #fbfdff;
    background-image: radial-gradient(#d5dee9 1px, transparent 1px);
    background-size: 28px 28px;
    display: grid;
    align-content: start;
    gap: 26px;
}
.login-brand-panel img { width: 230px; }
.login-brand-panel p { color: var(--ink); font-size: 22px; }
.login-illustration {
    height: 300px;
    border: 1px dashed #d8e2ef;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #c9d7e4;
    margin-top: 120px;
    position: relative;
    overflow: hidden;
}
.login-illustration::before {
    content: "";
    width: 118px;
    height: 118px;
    border: 18px solid #c9d7e4;
    border-radius: 50%;
    opacity: .8;
}
.login-illustration::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 24px;
    border-radius: 999px;
    background: #c9d7e4;
    bottom: 86px;
    opacity: .75;
}
.login-brand-panel small { margin-top: auto; }
.login-shell form {
    padding: 72px 72px;
    display: grid;
    align-content: start;
    gap: 24px;
}
.login-shell h1 { color: var(--blue); margin: 0; }
.login-error {
    background: #ffe0df;
    border: 1px solid #e00000;
    color: #a40000;
    border-radius: 8px;
    padding: 20px 22px;
    font-size: 20px;
}
.login-row { display: flex; justify-content: space-between; align-items: center; }
.check-row { display: flex; align-items: center; gap: 8px; }
.check-row input { width: 20px; height: 20px; margin: 0; }
.support-note { border-top: 1px solid var(--line); padding-top: 28px; text-align: center; font-size: 20px; }

.admin-body { background: var(--bg); }
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 270px;
    background: var(--navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    box-shadow: 5px 0 14px rgba(15, 23, 42, .10);
}
.admin-mobile-bar { display: none; }
.admin-brand { margin-bottom: 28px; }
.admin-brand img { width: 178px; margin-bottom: 16px; filter: none; }
.admin-brand strong { display: block; font-size: 22px; line-height: 1.1; }
.admin-brand span { color: #a5c2df; font-size: 15px; }
.admin-nav { display: grid; gap: 6px; }
.admin-nav-item {
    color: #fff;
    border-radius: 6px;
    padding: 11px 13px;
    font-size: 15px;
    font-weight: 700;
    transition: background .14s ease, color .14s ease;
}
.admin-nav-item:hover { background: rgba(255,255,255,.08); }
.admin-nav-item.active { background: #3a6fa4; color: #dbeafe; }
.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.18);
    display: grid;
    gap: 7px;
}
.sidebar-export {
    background: var(--orange-dark);
    color: #fff;
    border-radius: 6px;
    min-height: 40px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
}
.nav-button { width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer; }
.admin-shell { margin-left: 270px; }
.admin-main { margin-left: 270px; padding: 0 22px 52px; }
.admin-heading {
    min-height: 68px;
    margin: 0 -22px 22px;
    padding: 14px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.admin-heading h1 { margin: 0; font-size: 24px; display: inline-block; letter-spacing: 0; }
.admin-heading p { margin: 3px 0 0; display: inline-flex; gap: 18px; font-size: 14px; color: var(--muted); }
.admin-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.admin-heading-actions form { margin: 0; }
.back-link { display: inline-block; margin-right: 18px; font-size: 15px; }
.saved-badge {
    margin-left: 16px;
    background: #e8f8ee;
    color: #087532;
    border: 1px solid #99e7b3;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
}
.filter-panel {
    padding: 16px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}
.filter-panel label { font-size: 13px; color: var(--muted); font-weight: 800; }
.filter-panel input { margin-top: 6px; height: 42px; font-size: 15px; border-radius: 6px; }
.filter-panel .primary-button, .filter-panel .secondary-button { min-height: 42px; padding: 0 16px; font-size: 14px; border-radius: 6px; }
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.stat-grid article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 18px;
}
.stat-grid strong {
    display: block;
    color: var(--blue);
    font-size: 31px;
    line-height: 1;
}
.stat-grid span { color: var(--muted); font-weight: 700; font-size: 13px; }
.admin-list { display: grid; gap: 10px; }
.admin-list a, .admin-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    color: var(--ink);
}
.admin-list span { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
    background: #f1f3f6;
    color: #111827;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
    font-size: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    vertical-align: middle;
}
tbody tr { transition: background .14s ease; }
tbody tr:hover { background: #fbfdff; }
td small { display: block; color: var(--soft); margin-top: 3px; font-size: 12px; line-height: 1.3; }
.admin-results-table td:first-child {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 10px;
}
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d7ecf8;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    grid-row: span 2;
}
.result-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}
.result-pill.strong { background: #d9fce5; color: #087532; border: 1px solid #9aefb9; }
.result-pill.developing { background: #fff0bd; color: #9a4d00; border: 1px solid #f6ce57; }
.result-pill.support { background: #ffe1df; color: #b51b1b; border: 1px solid #f6aaa4; }
.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.row-actions form { margin: 0; }

.admin-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .95fr);
    gap: 18px;
    margin-bottom: 18px;
}
.panel { padding: 20px; }
.panel h2 { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; font-size: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 34px; }
.detail-grid .wide { grid-column: 1 / -1; }
dt { color: #111827; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
dd { margin: 5px 0 0; font-size: 16px; }
.result-summary-card { display: grid; align-content: start; }
.mini-score-ring {
    width: 132px;
    height: 132px;
    margin: 6px auto;
    background: conic-gradient(var(--blue) calc(var(--percent, 82) * 1%), #e0e4e8 0);
    position: relative;
    align-content: center;
    overflow: hidden;
}
.mini-score-ring::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: #fff;
}
.mini-score-ring strong, .mini-score-ring span { position: relative; z-index: 1; text-align: center; }
.mini-score-ring strong { color: var(--blue); font-size: 34px; line-height: 1; }
.mini-score-ring span { font-size: 11px; letter-spacing: .08em; }
.result-summary-card h3 {
    color: var(--blue);
    text-transform: uppercase;
    font-size: 22px;
    margin: 8px 0 3px;
    text-align: center;
}
.result-summary-card p { font-size: 14px; line-height: 1.45; }
.summary-metric { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; }
.summary-metric .progress-track { grid-column: 1 / -1; }
.review-header { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin: 0 6px 0 18px; }
.dot.correct { background: #16a34a; }
.dot.incorrect { background: #ef4444; }
.answer-table-head, .answer-row {
    display: grid;
    grid-template-columns: 42px 1.7fr 1fr 100px;
    gap: 14px;
    align-items: center;
}
.answer-table-head {
    background: #f1f3f6;
    padding: 10px 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
}
.answer-row {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.answer-row em {
    font-style: normal;
    justify-self: start;
    border-radius: 7px;
    padding: 5px 9px;
    font-size: 12px;
}
.answer-row em.correct { background: #e8f8ee; color: #087532; }
.answer-row em.incorrect { background: #fff1f1; color: #b51b1b; }
.report-note { text-align: right; color: var(--ink); }
.pagination { margin-top: 20px; }
.link-button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

@media (max-width: 900px) {
    .student-header { height: 70px; padding: 0 20px; }
    .student-brand { gap: 12px; }
    .student-brand img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
    .student-brand span { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 170px); }
    .student-nav a:not(:last-child) { display: none; }
    .student-main { width: calc(100% - 44px); margin: 42px auto 120px; }
    .registration-card { border: 0; box-shadow: none; background: transparent; }
    .registration-head, .form-grid { padding: 0; border: 0; }
    .registration-head h1 { color: var(--blue); font-size: 34px; line-height: 1.14; }
    .registration-head p { font-size: 20px; }
    .form-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 36px; }
    input { height: 68px; font-size: 20px; border-radius: 11px; }
    .registration-actions { display: block; margin: 28px 0 0; border: 0; padding: 0; }
    .registration-actions .primary-button { position: fixed; left: 22px; right: 22px; bottom: 20px; z-index: 20; width: calc(100% - 44px); min-height: 76px; font-size: 22px; }
    .registration-actions p { background: #f1f3f6; padding: 24px; border-radius: 10px; margin-bottom: 80px; }
    .verification-grid {
        padding: 20px;
        grid-template-columns: 1fr;
    }
    .info-strip { display: none; }
    .assessment-topline { display: block; margin-bottom: 40px; }
    .assessment-topline h1, .section-pill, .section-name { display: none; }
    .progress-summary { width: 100%; grid-template-columns: 1fr auto; }
    .progress-summary strong, .progress-summary span { font-size: 24px; color: var(--blue); }
    .assessment-card legend {
        display: block;
        background: #fff;
        border: 0;
        padding: 42px 44px 20px;
        font-size: clamp(27px, 6.1vw, 34px);
        line-height: 1.25;
    }
    .question-number {
        width: auto;
        height: auto;
        background: #eef1f4;
        color: #52606d;
        text-transform: uppercase;
        letter-spacing: 2px;
        padding: 8px 14px;
        margin-bottom: 18px;
        display: inline-flex;
    }
    .answer-stack { padding: 20px 44px 44px; gap: 22px; }
    .option-tile { min-height: 96px; grid-template-columns: 38px minmax(0, 1fr); font-size: clamp(22px, 5.4vw, 28px); border-radius: 10px; }
    .option-tile b { display: none; }
    .option-tile input { width: 36px; height: 36px; }
    .tool-question-grid { grid-template-columns: 1fr; padding: 30px; }
    .tool-question-grid .answer-stack { padding: 0; }
    .tool-image-frame { min-height: 220px; padding: 10px; overflow: auto; touch-action: pan-x pan-y pinch-zoom; }
    .tool-image-frame img { max-height: 260px; }
    .image-placeholder { min-height: 260px; }
    .label-parts-grid { grid-template-columns: 1fr; padding: 18px; }
    .label-diagram img { min-width: 760px; }
    .label-answer-grid { grid-template-columns: 1fr; max-height: none; padding: 12px; }
    .label-select-row { grid-template-columns: 36px minmax(0, 1fr); }
    .label-select-row select { min-height: 52px; font-size: 16px; }
    .hint-card { font-size: clamp(20px, 5vw, 28px); }
    .assessment-nav { margin-bottom: -110px; padding: 22px; gap: 28px; }
    .assessment-nav .primary-button, .assessment-nav .secondary-button { flex: 1; min-height: 86px; font-size: 30px; }
    .completion-card { padding: 28px 20px; border: 0; box-shadow: none; background: transparent; }
    .success-mark { background: var(--blue-2); color: #d8ecff; }
    .completion-card h1 { color: var(--ink); font-size: clamp(31px, 7vw, 40px); }
    .score-ring { width: min(100%, 390px); height: auto; aspect-ratio: 1; border-radius: 12px; }
    .score-ring > div { width: 68%; height: 68%; }
    .score-ring strong { font-size: clamp(56px, 16vw, 84px); }
    .result-card-grid { grid-template-columns: 1fr; gap: 22px; }
    .result-actions .primary-button { width: 100%; min-height: 68px; }
    .site-footer { flex-direction: column; text-align: center; padding-bottom: 100px; }
    .auth-body { padding: 22px 18px; align-items: center; }
    .auth-main { width: 100%; }
    .login-shell { display: block; min-height: 0; }
    .login-brand-panel { display: none; }
    .login-shell form { padding: 36px 24px; }
    .admin-mobile-bar {
        min-height: 96px;
        padding: 12px 18px 10px;
        background: var(--navy);
        border-bottom: 1px solid rgba(255,255,255,.14);
        display: grid;
        gap: 10px;
        position: sticky;
        top: 0;
        z-index: 40;
    }
    .admin-mobile-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
    }
    .admin-mobile-brand {
        min-width: 0;
        display: flex;
        align-items: center;
        color: var(--ink);
    }
    .admin-mobile-brand img {
        width: 126px;
        height: 40px;
        object-fit: contain;
        flex: 0 0 auto;
    }
    .admin-mobile-bar strong {
        margin-top: 2px;
        color: #dbeafe;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.1;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: .06em;
    }
    .admin-mobile-bar nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,.16);
        font-size: 13px;
    }
    .admin-mobile-bar a, .admin-mobile-bar button { color: #eaf3ff; font-weight: 700; }
    .admin-mobile-bar nav a {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        padding: 0 10px;
        background: rgba(255,255,255,.09);
    }
    .admin-sidebar, .demo-admin-side { display: none !important; }
    .admin-shell { margin-left: 0; }
    .admin-main { padding: 0 22px 60px; }
    .admin-heading { margin: 0 -22px 28px; padding: 22px; display: block; min-height: auto; }
    .admin-heading h1 { display: block; margin: 10px 0; }
    .admin-heading .export-button { width: 100%; margin-top: 18px; }
    .filter-panel { grid-template-columns: 1fr; padding: 18px; }
    .stat-grid { grid-template-columns: 1fr; }
    .admin-list a, .admin-list div { display: block; }
    .table-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
    .admin-results-table table, .admin-results-table thead, .admin-results-table tbody, .admin-results-table tr, .admin-results-table td { display: block; }
    .admin-results-table thead { display: none; }
    .admin-results-table tr {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        margin-bottom: 22px;
        padding: 22px;
        box-shadow: var(--shadow);
    }
    .admin-results-table td { border: 0; padding: 8px 0; }
    .admin-results-table td:first-child { display: block; }
    .avatar { display: none; }
    .detail-button { width: 100%; background: #f1f3f6; border: 0; }
    .admin-detail-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .answer-table-head { display: none; }
    .answer-row { grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; }
    .review-header { display: block; }
    .report-note { text-align: left; }
}

@media (max-width: 620px) {
    .student-header { padding: 0 14px; }
    .student-brand span { max-width: calc(100vw - 130px); font-size: 18px; }
    .student-nav { gap: 14px; font-size: 16px; }
    .student-main { width: calc(100% - 28px); }
    .registration-head h1 { font-size: 32px; }
    .registration-head p { font-size: 18px; }
    label { font-size: 20px; }
    input { height: 66px; }
    .assessment-nav { gap: 12px; }
    .assessment-nav .primary-button, .assessment-nav .secondary-button { min-height: 72px; font-size: 24px; padding: 0 16px; }
    .completion-card { padding-left: 8px; padding-right: 8px; }
    .result-metric-card { padding: 22px; }
    .metric-line { grid-template-columns: 82px 1fr; }
    .admin-heading h1 { font-size: 28px; }
    .panel { padding: 22px; }
    dd { font-size: 19px; }
    .admin-mobile-bar {
        min-height: 90px;
        padding: 10px 12px 9px;
        gap: 9px;
    }
    .admin-mobile-brand img {
        width: 112px;
        height: 36px;
    }
    .admin-mobile-bar strong { font-size: 12px; }
    .admin-mobile-bar nav {
        gap: 7px;
        font-size: 12px;
    }
    .admin-mobile-bar nav a {
        min-height: 32px;
        padding: 0 8px;
    }
}
