/* Foundation: readable type, clear surfaces, restrained brand blue. */
:root {
  --paper: #f5f7fa;
  --white: #fff;
  --ink: #17212e;
  --text: #17212e;
  --muted: #526071;
  --line: #dce2e9;
  --accent: #006be6;
  --pale: #edf4ff;
  --green: #126747;
  --red: #b52b3c;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse at 75% 4%, #e8effa 0, transparent 42%), var(--paper); color: var(--text); font: 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { touch-action: manipulation; }
button { cursor: pointer; border: 0; }
button:disabled { opacity: .5; cursor: default; }
a { color: inherit; text-decoration: none; }
input { min-width: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 650; line-height: 1.35; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
p + p { margin-top: 14px; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #006be6; outline-offset: 4px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.page-shell { max-width: 1360px; margin: auto; padding: 0 40px; }

/* Shared header and controls. */
.site-header { min-height: 96px; margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; border: 1px solid #ffffffcf; border-radius: 20px; background: #ffffffb8; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.brand { display: flex; align-items: center; gap: 20px; }
.brand-logo { width: 104px; height: 60px; object-fit: contain; }
.brand-divider { width: 1px; height: 38px; background: var(--line); }
.brand-context { color: var(--ink); font-size: 18px; font-weight: 650; line-height: 1.5; }
.brand-context span { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.header-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; background: var(--accent); border-radius: 50%; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:hover { color: var(--accent); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 56px; padding: 13px 24px; border: 1px solid transparent; border-radius: 12px; font-size: 17px; font-weight: 600; line-height: 1.5; transition: background .15s, border-color .15s, box-shadow .15s; }
.button.primary, .button.copper { color: white; background: var(--accent); }
.button.primary:hover:not(:disabled), .button.copper:hover:not(:disabled) { background: #005bc3; }
.button.secondary { background: white; border-color: #c7d0dc; color: var(--ink); }
.button.secondary:hover:not(:disabled) { background: #f0f4f9; border-color: #8f9fb3; }
.button.danger { background: #b42332; border-color: #b42332; color: white; }
.button.danger:hover:not(:disabled) { background: #901b27; border-color: #901b27; }
.button.danger-outline { background: white; border-color: #dfb6bc; color: #a42030; }
.button.danger-outline:hover:not(:disabled) { background: #fff1f2; border-color: #b42332; }
.button.small { min-height: 44px; padding: 9px 16px; font-size: 15px; border-radius: 10px; }
.button.block { width: 100%; justify-content: space-between; }
.button .arrow { font-size: 22px; }
.form-field { display: block; margin-bottom: 24px; }
.field-caption { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 600; }
.required { color: var(--accent); margin-left: 5px; }
.text-input { display: block; width: 100%; height: 56px; border: 1px solid #bdc7d5; border-radius: 10px; padding: 0 16px; color: var(--ink); background: white; font-size: 17px; }
.text-input::placeholder { color: #657388; opacity: 1; }
.text-input:focus { border-color: var(--accent); outline: 3px solid #006be620; outline-offset: 0; }
.form-error { padding: 14px 16px; margin: 18px 0; border-radius: 10px; background: #fff0f2; color: var(--red); font-size: 16px; }
.entry-note { margin-top: 18px; color: var(--muted); font-size: 14px; text-align: center; }

/* Landing: a focused introduction and a single preparation form. */
.landing { padding-top: 64px; }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 72px; align-items: center; }
.hero-kicker { font-size: 16px; color: var(--muted); font-weight: 600; margin-bottom: 24px; }
.hero h1 { font-size: clamp(50px, 4.5vw, 62px); letter-spacing: -1.8px; line-height: 1.2; margin-bottom: 28px; font-weight: 700; }
.hero h1 .emphasis { color: var(--ink); }
.hero-subtitle { color: var(--muted); font-size: 19px; line-height: 1.8; max-width: 520px; }
.hero-metrics { display: flex; margin: 36px 0 32px; }
.hero-metric { padding: 0 28px; border-right: 1px solid #ccd5e0; }
.hero-metric:first-child { padding-left: 0; }
.hero-metric:last-child { border: 0; }
.metric-value { font-size: 42px; line-height: 1.25; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.metric-unit { font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.metric-label { font-size: 14px; color: var(--muted); margin-top: 8px; }
.company-story { margin-top: 76px; padding: 44px 40px; display: grid; grid-template-columns: .8fr 1.5fr; gap: 48px; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: linear-gradient(135deg,rgba(255,255,255,.92),rgba(239,244,250,.72)); box-shadow: 0 12px 40px rgba(30,50,80,.045); backdrop-filter: blur(20px); }
.company-story h2 { margin: 20px 0 0; font-size: clamp(28px,2.5vw,38px); line-height: 1.45; letter-spacing: -.04em; }
.company-positioning { margin: 0 0 18px; font-size: 20px; font-weight: 650; }
.company-description { margin: 0; font-size: 18px; line-height: 1.9; color: var(--muted); }
.company-capabilities { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 30px; }
.company-capabilities h3 { margin: 0 0 10px; font-size: 19px; }
.company-capabilities p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.company-values { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.company-values p { display: flex; gap: 12px; margin: 0; font-size: 15px; line-height: 1.7; }
.company-values strong { white-space: nowrap; }
.company-values span { color: var(--muted); }
@media (max-width: 1000px) { .company-story { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) { .company-story { margin-top: 44px; padding: 28px 22px; } .company-capabilities,.company-values { grid-template-columns: 1fr; } .company-description { font-size: 17px; } }
.culture { margin-top: 32px; font-size: 17px; color: var(--muted); }
.entry-card { padding: 36px; border: 1px solid #fff; border-radius: 24px; background: #ffffffd9; box-shadow: 0 18px 50px #2a406313; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.entry-card h2 { font-size: 30px; }
.entry-card .intro { margin: 12px 0 28px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.75; color: var(--muted); margin: 28px 0; cursor: pointer; }
.consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--accent); }
.consent strong { color: var(--ink); font-weight: 500; }

/* Always-visible subject composition. */
.assessment-scope { margin-top: 72px; padding: 36px 40px; border: 1px solid var(--line); border-radius: 22px; background: white; scroll-margin-top: 28px; }
.scope-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.scope-heading h2 { font-size: 30px; }
.scope-heading p { margin-top: 8px; font-size: 17px; color: var(--muted); }
.scope-total { font-size: 17px; font-weight: 600; white-space: nowrap; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 16px 20px; background: #f5f7fa; color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap; }
td { padding: 20px; border-top: 1px solid #e3e8ee; font-size: 16px; white-space: nowrap; }
tbody tr:hover { background: #f9fbfd; }
.scope-table { table-layout: fixed; }
.scope-table th:first-child { width: 44%; }
.scope-table th, .scope-table td { padding: 15px 20px; }
.scope-table td:first-child { font-weight: 500; }
.assessment-scope .event-note { margin: 22px 0 0; }
.guidance { display: flex; align-items: baseline; gap: 24px; font-size: 15px; color: var(--muted); line-height: 1.8; padding: 30px 0 0; }
.guidance-title { flex-shrink: 0; color: var(--ink); font-weight: 600; }

/* Exam workspace. */
.workspace { padding-top: 40px; }
.exam-topbar { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 30px; }
.exam-title h1 { font-size: 30px; letter-spacing: -.5px; }
.exam-title .eyebrow { margin-bottom: 8px; }
.candidate-name { font-size: 16px; color: var(--muted); margin-top: 10px; }
.exam-status { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.save-indicator { font-size: 15px; color: var(--green); }
.save-indicator.error { color: var(--red); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.timer { border-left: 1px solid #cdd6e1; padding-left: 24px; }
.timer-label { display: block; font-size: 14px; color: var(--muted); }
.timer-time { font-size: 34px; font-weight: 650; line-height: 1.4; font-variant-numeric: tabular-nums; }
.timer.urgent .timer-time { color: var(--red); }
.exam-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 28px; }
.question-card, .exam-sidebar { background: white; border: 1px solid var(--line); border-radius: 20px; }
.question-card { padding: 36px; }
.question-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.question-position { font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; }
.question-position small { font-size: 16px; font-weight: 400; color: var(--muted); }
.question-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid #c5d9f4; border-radius: 7px; background: var(--pale); color: #1759ab; font-size: 14px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.badge.neutral { border-color: var(--line); background: #f5f7fa; color: var(--muted); }
.badge.copper { border-color: #d9dfe7; background: #f5f7fa; color: #35445a; }
.badge.red { border-color: #efc7cf; background: #fff0f2; color: var(--red); }
.question-prompt { font-size: 24px; line-height: 1.65; margin: 28px 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 600; }
.question-hint { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.answer-options { display: flex; flex-direction: column; gap: 14px; }
.answer-option { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border: 1px solid #cbd4df; border-radius: 12px; cursor: pointer; transition: background .15s, border-color .15s; }
.answer-option:hover { background: #f4f8fe; border-color: #7e9dc7; }
.answer-option.selected { background: #eef5ff; border-color: #006be6; box-shadow: inset 0 0 0 1px #006be6; }
.answer-option input { flex: 0 0 20px; width: 20px; height: 20px; margin: 5px 0 0; accent-color: var(--accent); }
.option-letter { flex: 0 0 18px; font-size: 18px; font-weight: 650; }
.option-text { min-width: 0; font-size: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.question-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; margin-top: 32px; border-top: 1px solid var(--line); }
.control-group { display: flex; gap: 12px; }
.question-controls .button { min-height: 52px; padding: 12px 18px; font-size: 16px; }
.mark-button { padding: 12px 0; min-height: 44px; background: transparent; color: var(--muted); font-size: 15px; text-align: left; }
.mark-button.active { color: var(--accent); }
.exam-sidebar { padding: 26px; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sidebar-heading h2 { font-size: 20px; }
.progress-count { color: var(--muted); font-size: 15px; }
.progress-track { height: 6px; border-radius: 8px; background: #e6edf6; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.question-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 24px 0; }
.nav-number { height: 42px; padding: 0; border: 1px solid #cbd5e2; border-radius: 8px; background: white; color: var(--muted); font-size: 15px; position: relative; font-variant-numeric: tabular-nums; }
.nav-number:hover { border-color: var(--accent); }
.nav-number.answered { background: #e6f0fe; border-color: #a8c8ef; color: #1455a3; }
.nav-number.current { background: var(--accent); border-color: var(--accent); color: white; }
.nav-number.marked:after { content: ''; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: #b65810; }
.nav-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.nav-legend span { display: flex; align-items: center; gap: 6px; }
.legend-square { width: 10px; height: 10px; border: 1px solid #a7b5c6; border-radius: 2px; }
.legend-square.done { background: #e6f0fe; border-color: #7da6da; }
.legend-square.flag { width: 7px; height: 7px; border-color: #b65810; background: #b65810; border-radius: 50%; }
.monitor-note { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.monitor-note strong { color: var(--ink); font-weight: 600; }
.monitor-note p { margin-top: 8px; }
.text-button { color: var(--accent); padding: 12px 0 0; background: transparent; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.connection-banner, .technical-notice, .pilot-notice { padding: 18px 20px; background: #edf4fe; color: #254364; border: 1px solid #ccddf3; border-radius: 12px; font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.connection-banner { color: #7e3e14; background: #fff5e8; border-color: #ebd4b9; }
.connection-banner button { margin-left: 14px; color: inherit; background: transparent; font-weight: 600; text-decoration: underline; }

/* Submitted state and modal. */
.result { max-width: 820px; margin: 64px auto 0; padding: 52px; border: 1px solid var(--line); border-radius: 24px; background: white; text-align: center; }
.result-symbol { width: 58px; height: 58px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 50%; background: #eaf4ef; color: var(--green); font-size: 28px; }
.result h1 { font-size: 36px; margin: 10px 0 18px; }
.result-subtitle { font-size: 18px; color: var(--muted); }
.score-display { display: flex; justify-content: center; align-items: baseline; gap: 14px; margin: 32px 0 14px; }
.score-display .score { font-size: 96px; font-weight: 650; line-height: 1.2; letter-spacing: -3px; color: var(--ink); }
.score-display .score-total { font-size: 20px; color: var(--muted); }
.result-divider { height: 1px; background: var(--line); margin: 32px 0; }
.result-status { font-size: 18px; font-weight: 600; }
.result-note { margin-top: 16px; font-size: 16px; color: var(--muted); }
.result-id { margin-top: 30px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.result-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 32px; }
.result-return-button { min-width: 260px; min-height: 60px; font-size: 20px; font-weight: 600; }
.result-actions .form-error { margin: 0; text-align: left; }
.modal { width: calc(100% - 32px); max-width: 540px; padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: white; color: var(--text); box-shadow: 0 30px 100px #17212e33; }
.modal::backdrop { background: #17212e75; backdrop-filter: blur(4px); }
.modal h2 { font-size: 28px; margin-bottom: 18px; }
.modal p { font-size: 17px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 30px; }
.delete-modal { max-width: 620px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.delete-record-meta { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px 16px; padding: 20px; margin: 24px 0; background: #f5f7fa; border-radius: 12px; font-size: 16px; }
.delete-record-meta dt { color: var(--muted); }
.delete-record-meta dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.delete-record-id { font-size: 14px; font-family: ui-monospace, Consolas, monospace; }
.delete-warning { color: var(--ink); }
.delete-active-warning { margin-top: 16px; padding: 14px 16px; border-left: 3px solid #b42332; background: #fff1f2; color: #8f1927; font-weight: 600; }
.delete-progress { color: var(--muted); margin-top: 18px; font-size: 15px !important; }
.delete-modal .form-error { margin-top: 18px; }

/* Management: grouped statistics and readable review content. */
.admin-login { max-width: 480px; margin: 80px auto; padding: 40px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.admin-login h1 { font-size: 32px; }
.admin-login .intro { color: var(--muted); font-size: 17px; margin: 16px 0 30px; }
.admin-topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 48px; margin-bottom: 30px; }
.admin-topbar h1 { font-size: 38px; }
.admin-topbar p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin-top: 12px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.admin-records-table { min-width: 1080px; }
.record-actions-cell { width: 330px; white-space: normal; }
.record-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 236px; max-width: 330px; }
.record-row-actions .button { white-space: nowrap; padding-right: 13px; padding-left: 13px; }
.admin-panel .table-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.pilot-notice strong { font-weight: 650; color: var(--ink); margin-right: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; background: white; margin-bottom: 32px; overflow: hidden; }
.stat-card { padding: 26px 30px; border-right: 1px solid var(--line); }
.stat-card:last-child { border: 0; }
.stat-label { font-size: 16px; color: var(--muted); }
.stat-value { font-size: 40px; font-weight: 650; margin-top: 12px; line-height: 1.3; }
.stat-unit { font-size: 15px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.admin-panel { background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; border-bottom: 1px solid var(--line); }
.panel-toolbar h2 { font-size: 26px; }
.search-field { width: 300px; height: 48px; font-size: 16px; }
.name-cell { font-size: 16px; font-weight: 600; }
.table-date { font-size: 15px; color: var(--muted); }
.table-score { font-size: 26px; font-weight: 600; }
.table-score small { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 5px; }
.panel-footnote { padding: 18px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.empty-state { padding: 60px 24px; text-align: center; color: var(--muted); font-size: 17px; }
.admin-detail { margin-top: 36px; scroll-margin-top: 30px; }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 36px; border-bottom: 1px solid var(--line); }
.detail-header h2 { font-size: 28px; overflow-wrap: anywhere; }
.detail-meta { color: var(--muted); font-size: 15px; margin-top: 12px; }
.detail-content { padding: 36px; }
.detail-overview { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 36px; padding: 12px 0 36px; border-bottom: 1px solid var(--line); }
.detail-score { text-align: center; padding-right: 30px; border-right: 1px solid var(--line); }
.detail-score .value { font-size: 68px; font-weight: 650; line-height: 1.2; }
.detail-score .outof { color: var(--muted); font-size: 16px; }
.detail-score .caption { color: var(--muted); font-size: 15px; margin-top: 12px; }
.domain-bars { display: flex; flex-direction: column; gap: 18px; }
.domain-bar-row { display: grid; grid-template-columns: 150px minmax(40px, 1fr) 65px; gap: 18px; align-items: center; font-size: 16px; }
.domain-bar-value { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.domain-bar-track { height: 8px; background: #e7edf5; border-radius: 8px; overflow: hidden; }
.domain-bar-fill { height: 100%; max-width: 100%; background: #397acb; border-radius: 8px; }
.report-section { margin-top: 36px; }
.report-section-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.report-section-top h3 { font-size: 26px; }
.report-summary, .report-text { font-size: 18px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin: 30px 0; }
.report-block { padding: 26px; background: #f5f7fa; border: 1px solid #e2e7ee; border-radius: 12px; }
.report-block h4 { font-size: 19px; margin: 0 0 16px; }
.report-list { padding-left: 22px; margin: 0; font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.report-list li + li { margin-top: 10px; }
.report-recommendation { padding-left: 22px; border-left: 3px solid #397acb; margin-top: 30px; }
.report-recommendation .eyebrow { font-size: 17px; color: var(--ink); }
.report-limits { color: var(--muted); font-size: 15px; line-height: 1.8; margin-top: 26px; white-space: pre-wrap; }
.report-meta { color: var(--muted); font-size: 14px; margin-top: 22px; overflow-wrap: anywhere; }
.report-empty { padding: 26px; background: #f5f7fa; border-radius: 12px; font-size: 17px; color: var(--muted); }
.detail-accordion { border-top: 1px solid var(--line); margin-top: 32px; }
.detail-accordion summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; padding: 24px 0; font-size: 18px; font-weight: 600; }
.detail-accordion summary::after { content: '+'; color: var(--muted); font-size: 26px; }
.detail-accordion[open] summary::after { content: '−'; }
.detail-accordion summary::-webkit-details-marker { display: none; }
.event-note { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.event-list { max-height: 400px; overflow: auto; }
.event-item { display: flex; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; }
.event-time { flex: 0 0 165px; color: var(--muted); }
.event-content { overflow-wrap: anywhere; }
.review-item { padding: 26px 0; border-top: 1px solid var(--line); }
.review-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 15px; margin-bottom: 18px; }
.review-prompt { font-size: 20px; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-options { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.review-option { padding: 14px 16px; border-radius: 8px; background: #f4f6f9; font-size: 17px; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-option.correct { background: #eaf5ee; color: #175f40; }
.review-option.wrong { background: #fff0f2; color: #a32435; }
.review-answer { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* Feedback and responsive layouts. */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: calc(100% - 32px); padding: 16px 24px; border-radius: 12px; background: #17212e; color: white; box-shadow: 0 12px 35px #17212e22; font-size: 16px; text-align: center; }
.boot-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: 480px; font-size: 17px; color: var(--muted); }
.loader, .spinner-inline { display: inline-block; width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner-inline { width: 20px; height: 20px; margin-right: 12px; vertical-align: middle; }
.error-state { padding: 80px 20px; text-align: center; }
.error-state h1 { font-size: 32px; margin-bottom: 20px; }
.error-state p { margin-bottom: 28px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1180px) {
  .page-shell { padding: 0 32px; }
  .landing-grid { grid-template-columns: minmax(0, 1fr) 430px; gap: 40px; }
  .hero h1 { font-size: 52px; }
  .hero-metric { padding: 0 20px; }
  .entry-card { padding: 32px; }
  .exam-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; }
  .question-card { padding: 28px; }
  .exam-sidebar { padding: 22px; }
  .question-controls { flex-wrap: wrap; }
  .domain-bar-row { grid-template-columns: 130px minmax(30px, 1fr) 65px; gap: 12px; }
}
@media (max-width: 900px) {
  .landing-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .landing { padding-top: 44px; }
  .hero { max-width: 650px; }
  .entry-card { max-width: 600px; width: 100%; }
  .hero-subtitle br { display: none; }
  .hero h1 { font-size: 52px; }
  .exam-topbar { align-items: flex-start; flex-wrap: wrap; }
  .exam-status { width: 100%; justify-content: space-between; }
  .timer { display: flex; align-items: baseline; gap: 14px; border: 0; padding: 0; }
  .exam-grid { grid-template-columns: minmax(0, 1fr); }
  .question-nav { grid-template-columns: repeat(10, 1fr); }
  .exam-sidebar .button.block { max-width: 320px; }
  .admin-topbar { flex-direction: column; align-items: flex-start; }
  .detail-header { align-items: flex-start; flex-direction: column; }
  .detail-overview { grid-template-columns: 140px minmax(0, 1fr); gap: 24px; }
  .detail-score { padding-right: 20px; }
  .detail-content { padding: 28px; }
  .report-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .page-shell { padding: 0 20px; }
  .site-header { min-height: 82px; margin-top: 16px; padding: 12px 14px; gap: 12px; border-radius: 18px; }
  .brand { gap: 10px; }
  .brand-logo { width: 68px; height: 46px; }
  .brand-divider { height: 34px; }
  .brand-context { font-size: 16px; }
  .brand-context span { font-size: 14px; }
  .header-meta { font-size: 14px; gap: 7px; max-width: 100px; line-height: 1.5; }
  .header-meta .status-dot { display: none; }
  .header-meta .button { font-size: 14px; padding: 8px 10px; }
  .admin-shell .header-meta > span:not(.status-dot) { display: none; }
  .site-footer { flex-wrap: wrap; gap: 14px 20px; margin-top: 44px; padding: 24px 0 32px; font-size: 14px; }
  .site-footer > span:nth-child(2) { order: 3; width: 100%; }
  .site-footer a { margin-left: auto; }
  .landing { padding-top: 38px; }
  .landing-grid { gap: 36px; }
  .hero-kicker { font-size: 15px; margin-bottom: 20px; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; line-height: 1.28; margin-bottom: 22px; }
  .hero-subtitle { font-size: 17px; }
  .hero-metrics { margin: 28px 0; }
  .hero-metric { padding: 0 19px; }
  .metric-value { font-size: 34px; }
  .metric-unit { font-size: 14px; margin-left: 5px; }
  .metric-label { font-size: 14px; margin-top: 6px; }
  .culture { margin-top: 24px; font-size: 16px; }
  .button { font-size: 16px; min-height: 56px; padding: 13px 20px; }
  .button.small { min-height: 44px; font-size: 14px; padding: 9px 14px; }
  .entry-card { padding: 28px 24px; border-radius: 20px; }
  .entry-card h2 { font-size: 28px; }
  .entry-card .intro { font-size: 16px; margin-bottom: 26px; }
  .text-input { font-size: 16px; }
  .consent { margin: 24px 0; font-size: 14px; }
  .assessment-scope { margin-top: 44px; padding: 26px 20px; border-radius: 18px; }
  .scope-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 24px; }
  .scope-heading h2 { font-size: 28px; }
  .scope-heading p { font-size: 16px; }
  .scope-total { font-size: 16px; }
  .scope-table th, .scope-table td { padding: 14px 5px; font-size: 16px; white-space: normal; line-height: 1.6; }
  .scope-table th { font-size: 14px; }
  .scope-table th:first-child { width: 42%; }
  .assessment-scope .event-note { font-size: 14px; }
  .guidance { flex-direction: column; gap: 10px; padding-top: 26px; font-size: 14px; }
  .workspace { padding-top: 32px; }
  .exam-topbar { gap: 18px; margin-bottom: 24px; }
  .exam-title h1 { font-size: 25px; }
  .candidate-name { font-size: 15px; }
  .save-indicator { font-size: 14px; }
  .timer-time { font-size: 30px; }
  .question-card { padding: 24px 20px; border-radius: 18px; }
  .question-heading { align-items: flex-start; gap: 14px; padding-bottom: 20px; }
  .question-position { font-size: 25px; }
  .question-position small { font-size: 15px; }
  .badge { font-size: 14px; padding: 4px 8px; }
  .question-badges { gap: 6px; }
  .question-prompt { font-size: 21px; line-height: 1.65; margin: 24px 0 14px; }
  .question-hint { font-size: 14px; margin-bottom: 24px; }
  .answer-option { gap: 12px; padding: 17px 14px; }
  .answer-option input { flex-basis: 19px; width: 19px; height: 19px; }
  .option-letter, .option-text { font-size: 17px; }
  .option-letter { flex-basis: 16px; }
  .question-controls { flex-direction: column; align-items: stretch; gap: 14px; padding-top: 20px; margin-top: 26px; }
  .control-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .question-controls .button { padding: 12px 10px; font-size: 15px; }
  .mark-button { font-size: 15px; }
  .exam-sidebar { padding: 24px 20px; border-radius: 18px; }
  .question-nav { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .nav-number { height: 46px; font-size: 16px; }
  .exam-sidebar .button.block { max-width: none; }
  .connection-banner, .technical-notice, .pilot-notice { padding: 16px; font-size: 14px; }
  .result { margin-top: 40px; padding: 36px 24px; }
  .result h1 { font-size: 28px; }
  .result-subtitle, .result-status { font-size: 16px; }
  .score-display .score { font-size: 82px; }
  .score-display .score-total { font-size: 18px; }
  .result-note { font-size: 16px; }
  .result-id { font-size: 14px; }
  .result-return-button { width: 100%; min-width: 0; min-height: 60px; font-size: 18px; }
  .modal { padding: 28px 24px; }
  .modal h2 { font-size: 26px; }
  .modal p { font-size: 16px; }
  .modal-actions .button { flex: 1; font-size: 15px; padding: 12px; }
  .delete-record-meta { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 16px; font-size: 15px; }
  .admin-login { margin: 44px auto; padding: 30px 24px; }
  .admin-login h1 { font-size: 28px; }
  .admin-login .intro { font-size: 16px; }
  .admin-topbar { padding-top: 32px; }
  .admin-topbar h1 { font-size: 30px; }
  .admin-topbar p:not(.eyebrow) { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 22px; border-bottom: 1px solid var(--line); }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(3) { border-bottom: 0; }
  .stat-value { font-size: 34px; }
  .stat-label { font-size: 15px; }
  .panel-toolbar { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; }
  .panel-toolbar h2 { font-size: 25px; }
  .search-field { width: 100%; font-size: 16px; }
  .admin-panel { border-radius: 18px; }
  th, td { padding: 16px; }
  .panel-footnote { padding: 20px 24px; font-size: 14px; }
  .detail-header { padding: 24px; }
  .detail-header h2 { font-size: 26px; }
  .detail-meta { font-size: 14px; }
  .detail-content { padding: 24px 20px; }
  .detail-overview { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .detail-score { border: 0; padding: 0; }
  .detail-score .value { font-size: 62px; }
  .domain-bar-row { grid-template-columns: minmax(0, 1fr) 65px; gap: 8px 12px; font-size: 15px; }
  .domain-bar-track { grid-column: 1 / -1; grid-row: 2; }
  .domain-bar-value { grid-column: 2; grid-row: 1; }
  .report-section-top h3 { font-size: 24px; }
  .report-summary, .report-text { font-size: 16px; }
  .report-block { padding: 22px 18px; }
  .report-block h4 { font-size: 18px; }
  .report-list { font-size: 16px; }
  .report-limits { font-size: 14px; }
  .report-empty { font-size: 16px; padding: 22px; }
  .report-recommendation { padding-left: 16px; }
  .report-recommendation .eyebrow { font-size: 16px; }
  .detail-accordion summary { font-size: 17px; }
  .event-note { font-size: 14px; }
  .event-item { display: block; font-size: 15px; }
  .event-time { display: block; font-size: 14px; margin-bottom: 5px; }
  .review-prompt { font-size: 18px; }
  .review-option { font-size: 16px; }
  .review-answer { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Yurui brand atmosphere. Motion is confined to the preparation screen. */
.landing { position: relative; isolation: isolate; }
.landing-atmosphere { position: absolute; inset: -110px -38px auto; height: 900px; overflow: hidden; pointer-events: none; z-index: -1; }
.landing-atmosphere::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg,#f5fbfd,#e5f4f9,#eef2fb,#f7fbfd); background-size: 240% 240%; opacity: .8; animation: brand-flow 32s ease-in-out infinite alternate; mask-image: linear-gradient(#000 70%,transparent); }
.ambient-glow { position: absolute; width: 650px; height: 500px; border-radius: 50%; opacity: .7; }
.glow-one { left: -180px; top: -80px; background: radial-gradient(closest-side,#c7e8f3,transparent); animation: brand-drift 24s ease-in-out infinite alternate; }
.glow-two { right: -180px; top: 130px; background: radial-gradient(closest-side,#d6e0f7,transparent); animation: brand-drift 30s ease-in-out infinite alternate-reverse; }
.landing-constellation { width: 100%; height: 100%; opacity: .6; animation: brand-breathe 24s ease-in-out infinite alternate; }
.network-edge { stroke: #86bbc9; stroke-width: 1; opacity: .45; }
.network-node { fill: #4b98ad; opacity: .75; }
.network-pulse { fill: none; stroke: #3996ae; stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: brand-pulse 5s ease-out infinite; }
.network-signal { stroke: #3e8bba; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 5 180; animation: brand-signal 8s linear infinite; }
.landing .hero,.landing .entry-card { animation: brand-reveal .7s cubic-bezier(.22,1,.36,1) both; }
.landing .entry-card { animation-delay: .12s; border-radius: 28px; background: rgba(255,255,255,.82); box-shadow: inset 0 1px 0 #fff,0 24px 70px -30px #31567240; }
.landing .hero h1 { font-size: clamp(48px,4.8vw,68px); font-weight: 720; line-height: 1.22; letter-spacing: -.045em; }
.landing .hero h1 .emphasis { background: linear-gradient(115deg,#023944,#176d86 65%,#24839a); color: transparent; background-clip: text; -webkit-background-clip: text; }
.landing .hero > .hero-kicker { display: inline-flex; padding: 7px 16px; border: 1px solid #c6e0e7; border-radius: 999px; color: #035065; background: #ffffffbd; font-size: 16px; letter-spacing: .05em; }
.landing .hero-subtitle { font-size: 21px; color: #435c6b; }
.landing .button.primary { background: linear-gradient(120deg,#035065,#16758c); box-shadow: inset 0 1px 0 #ffffff38,0 8px 22px -12px #03506599; position: relative; overflow: hidden; transition: box-shadow .25s,transform .25s; }
.landing .button.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg,transparent 25%,#ffffff35 50%,transparent 75%); transform: translateX(-110%); transition: transform .7s; pointer-events: none; }
.landing .button.primary:hover:not(:disabled) { box-shadow: 0 12px 28px -12px #03506599; transform: translateY(-1px); }
.landing .button.primary:hover::after { transform: translateX(110%); }
@keyframes brand-flow { from { background-position: 0% 35%; } to { background-position: 100% 65%; } }
@keyframes brand-drift { from { transform: translate(0,0); } to { transform: translate(80px,35px); } }
@keyframes brand-breathe { from { transform: translateY(0); } to { transform: translateY(14px); } }
@keyframes brand-pulse { 0% { opacity: .65; transform: scale(1); } 65%,100% { opacity: 0; transform: scale(2.5); } }
@keyframes brand-signal { to { stroke-dashoffset: -370; } }
@keyframes brand-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { .landing-atmosphere { inset-inline: -20px; } .landing .hero h1 { font-size: 43px; } .landing .hero-subtitle { font-size: 19px; } .landing .hero > .hero-kicker { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .landing *, .landing *::before, .landing *::after { animation: none !important; transition: none !important; } }
.site-header { position: relative; z-index: 2; }
.landing .consent { font-size: 16px; }
.landing .entry-card .intro { font-size: 17px; }
.landing .metric-label { font-size: 16px; }
.company-values p { font-size: 16px; }
/* An open brand stage ties the computing scene to the cool glass palette. */
.company-story { display: block; padding: 0; overflow: hidden; border-radius: 28px; background: #f9fcfd; border: 1px solid #dbe8ef; box-shadow: 0 20px 60px -32px #34566e33; }
.company-stage { position: relative; isolation: isolate; min-height: 470px; padding: 48px 48px 44px; background: #e9f2f7; overflow: hidden; }
.compute-visual { position: absolute; inset: 0; z-index: -2; background: #102a40 url('/assets/computing-stage.webp') center right / cover no-repeat; }
.company-stage::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#f2f7fa 0%,#eff6f9fa 26%,#e7f1f7d9 40%,#d8e9f47d 54%,#23465c05 74%); }
.company-story-heading { position: relative; width: 60%; }
.company-eyebrow { display: flex; align-items: center; gap: 16px; font-size: 16px; letter-spacing: .12em; color: #385b70; }
.company-eyebrow span { font-size: 11px; font-weight: 550; letter-spacing: .2em; opacity: .8; }
.company-story h2 { margin: 30px 0 24px; color: #153449; font-size: clamp(40px,3.8vw,54px); line-height: 1.3; letter-spacing: -.045em; font-weight: 680; }
.company-story h2 > span { display: block; }
.company-story h2 .story-title-accent { color: #16748b; }
.company-positioning { font-size: 17px; letter-spacing: .04em; color: #3d5c70; font-weight: 450; margin: 0; }
.compute-light { position: absolute; width: 320px; height: 450px; border-radius: 50%; background: radial-gradient(closest-side,#49c2ef33,transparent); mix-blend-mode: screen; }
.light-a { top: -100px; right: 5%; animation: compute-glow 13s ease-in-out infinite alternate; }
.light-b { bottom: -130px; right: 28%; animation: compute-glow 17s ease-in-out infinite alternate-reverse; }
.compute-scan { position: absolute; inset: 0 0 0 45%; background: linear-gradient(110deg,transparent 35%,#b5e7ff12 48%,transparent 58%); background-size: 220% 100%; mix-blend-mode: screen; animation: compute-sweep 16s ease-in-out infinite; }
.company-story-body { padding: 38px 48px 32px; background: linear-gradient(135deg,#ffffffed,#f5fafddd); }
.company-description { max-width: 1050px; font-size: 18px; line-height: 1.9; color: #4b6070; }
.company-capabilities { gap: 40px; margin-top: 32px; }
.company-capabilities > div { border-top: 1px solid #cfdee6; padding-top: 20px; }
.capability-index { display: block; color: #6d8d9e; font-size: 12px; letter-spacing: .14em; margin-bottom: 10px; }
.company-capabilities h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: #1c3c4f; }
.company-capabilities p { font-size: 17px; color: #526978; }
.company-values { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; margin-top: 32px; }
.company-values p { display: block; margin: 0; font-size: 14px; }
.company-values strong { display: block; font-size: 18px; color: #244c60; margin-bottom: 4px; }
@keyframes compute-glow { from { transform: translateY(-15px); opacity: .25; } to { transform: translateY(45px); opacity: .9; } }
@keyframes compute-sweep { 0%,20% { background-position: 160% 0; } 75%,100% { background-position: -80% 0; } }
@media (max-width: 900px) { .company-stage { padding: 40px 30px; min-height: 430px; } .company-story-heading { width: 70%; } .company-story-body { padding: 30px; } .company-values { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .company-story { padding: 0; border-radius: 22px; } .company-stage { padding: 30px 24px 44px; min-height: 420px; } .company-story-heading { width: 100%; } .company-story h2 { font-size: 38px; margin-top: 25px; } .company-positioning { font-size: 14px; } .company-stage::before { background: linear-gradient(90deg,#edf5f9fc,#edf5f9df 60%,#edf5f982); } .company-story-body { padding: 28px 24px; } .company-capabilities { gap: 24px; } .company-description { font-size: 17px; } .company-values { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; } }
@media (prefers-reduced-motion: reduce) { .compute-light,.compute-scan { animation: none; } }
