:root { color-scheme: light; --ink:#173042; --muted:#607284; --line:#d9e2e8; --paper:#fff; --canvas:#f3f7f8; --navy:#0b3954; --teal:#087f8c; --gold:#e8a317; --red:#b23a48; --green:#237a57; --shadow:0 18px 42px rgba(15,49,67,.08); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
* { box-sizing:border-box; } body { margin:0; background:var(--canvas); color:var(--ink); } button,input,select,textarea { font:inherit; } button { cursor:pointer; } button:disabled { cursor:not-allowed; opacity:.55; }
.topbar { background:var(--navy); color:#fff; padding:26px max(20px,calc((100vw - 1180px)/2)); display:flex; justify-content:space-between; gap:24px; align-items:end; } .eyebrow { margin:0 0 5px; font-size:.72rem; letter-spacing:.15em; color:#a9dbe0; font-weight:800; } h1,h2,h3,p { margin-top:0; } h1 { margin-bottom:0; font-size:clamp(1.6rem,3vw,2.3rem); } h2 { font-size:1.5rem; } h3 { font-size:1.05rem; }
.tabs { display:flex; gap:6px; flex-wrap:wrap; } .tab { border:1px solid rgba(255,255,255,.22); color:#eaf7f7; background:transparent; padding:10px 14px; border-radius:9px; } .tab.active,.tab:hover,.tab:focus-visible { background:#fff; color:var(--navy); }
.shell { width:min(1180px,calc(100% - 32px)); margin:28px auto 64px; } .hero,.result-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:20px; align-items:stretch; } .card { background:var(--paper); border:1px solid var(--line); border-radius:16px; padding:24px; box-shadow:var(--shadow); } .hero-card { background:linear-gradient(135deg,#fff 0%,#eef8f8 100%); } .lead { max-width:62ch; font-size:1.06rem; line-height:1.6; } .muted { color:var(--muted); }
.notice { border-left:4px solid var(--gold); background:#fff9ea; padding:13px 15px; border-radius:8px; color:#6d5115; } .notice.danger { border-left-color:var(--red); background:#fff0f1; color:#7c2732; } .notice.success { border-left-color:var(--green); background:#edf9f2; color:#1b5e43; }
.encouragement { margin:16px 0 0; padding:12px 15px; border-left:4px solid var(--teal); border-radius:8px; background:#eef9f8; color:#245b62; font-weight:700; }
.actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; } .button { border:0; border-radius:9px; padding:11px 15px; background:var(--teal); color:#fff; font-weight:800; min-height:44px; } .button:hover,.button:focus-visible { filter:brightness(.94); } .button.secondary { background:#e8eff2; color:var(--ink); } .button.danger { background:var(--red); } .button.gold { background:var(--gold); color:#2d230c; }
.section-head { display:flex; justify-content:space-between; gap:16px; align-items:start; margin-bottom:16px; } .setup-card,.review-section { margin-top:20px; } .mode-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:18px; } .mode { border:1px solid var(--line); background:#fff; text-align:left; border-radius:12px; padding:15px; min-height:92px; color:var(--ink); } .mode:hover,.mode.selected,.mode:focus-visible { border-color:var(--teal); box-shadow:0 0 0 3px rgba(8,127,140,.12); } .mode strong { display:block; margin-bottom:5px; } .mode small { color:var(--muted); line-height:1.35; }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:15px; } .setup-controls { margin-top:18px; max-width:640px; } label,legend { color:var(--muted); font-size:.9rem; font-weight:700; } label { display:grid; gap:6px; } input,select,textarea { width:100%; border:1px solid #c8d6dd; border-radius:9px; padding:10px 11px; color:var(--ink); background:#fff; } input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid rgba(8,127,140,.2); border-color:var(--teal); }
.topic-picker { border:1px solid var(--line); border-radius:12px; margin:18px 0 0; padding:14px; } .topic-options { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; } .topic-check { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); padding:8px 10px; border-radius:999px; background:#fff; } .topic-check input { width:auto; } .start-actions { margin-top:18px; }
.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:18px 0; } .stat-grid.compact { margin-bottom:12px; } .stat { background:#fff; border:1px solid var(--line); border-radius:12px; padding:15px; } .stat b { display:block; font-size:1.55rem; color:var(--navy); } .stat span { color:var(--muted); font-size:.82rem; } .pill { display:inline-flex; align-items:center; border-radius:999px; padding:4px 9px; font-size:.74rem; font-weight:900; background:#e8eff2; color:var(--ink); } .pill.green { background:#dcf3e8; color:#1d694a; } .pill.red { background:#fbe0e3; color:#862a35; } .pill.gold { background:#fff0c6; color:#6c5112; }
.exam-layout { display:grid; grid-template-columns:1fr 285px; gap:18px; } .exam-top { display:flex; justify-content:space-between; gap:12px; align-items:center; border-bottom:1px solid var(--line); padding-bottom:14px; } .progress { height:8px; background:#e4edf0; border-radius:999px; overflow:hidden; margin:15px 0 22px; } .progress>span { height:100%; display:block; background:var(--teal); } .question-text { font-size:1.22rem; line-height:1.5; white-space:pre-wrap; } .options { display:grid; gap:10px; margin:22px 0; } .option { display:flex; gap:12px; align-items:start; padding:15px; border:1px solid var(--line); border-radius:11px; background:#fff; text-align:left; color:var(--ink); min-height:58px; } .option:hover,.option:focus-visible,.option.selected { border-color:var(--teal); background:#effafa; } .option .letter { font-weight:900; color:var(--teal); min-width:22px; }
.exam-nav { display:grid; grid-template-columns:1fr 1fr; gap:10px; } .exam-note { color:var(--muted); font-size:.9rem; margin-top:16px; } .nav-toggle { display:none; width:100%; } .navigator { display:grid; grid-template-columns:repeat(8,1fr); gap:6px; } .nav-dot { border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:7px; aspect-ratio:1; font-size:.78rem; } .nav-dot.answered { background:#dff2ed; border-color:#9bcdbd; } .nav-dot.marked { box-shadow:inset 0 -3px 0 var(--gold); } .nav-dot.current { outline:3px solid rgba(8,127,140,.25); border-color:var(--teal); } .legend { display:grid; gap:7px; font-size:.8rem; color:var(--muted); margin-top:15px; } .legend span::before { content:""; display:inline-block; width:10px; height:10px; border-radius:3px; background:#fff; border:1px solid var(--line); margin-right:7px; } .legend .l-answered::before { background:#dff2ed; border-color:#9bcdbd; } .legend .l-marked::before { box-shadow:inset 0 -3px 0 var(--gold); }
.score-main { display:flex; align-items:baseline; gap:9px; margin:20px 0 5px; } .score-main strong { color:var(--navy); font-size:clamp(2.8rem,7vw,5rem); line-height:1; } .score-main span { color:var(--muted); font-weight:700; } .metric-row { display:flex; justify-content:space-between; gap:15px; padding:11px 0; border-bottom:1px solid var(--line); } .metric-row:last-child { border-bottom:0; } .metric-row small { display:block; color:var(--muted); margin-top:4px; }
.result-advice { margin-top:20px; background:linear-gradient(135deg,#fff 0%,#eef8f8 100%); } .result-phrase { font-weight:800; color:var(--navy); }
.review-list,.admin-list { display:grid; gap:14px; } .review-item,.admin-row { border:1px solid var(--line); border-radius:12px; padding:18px; background:#fff; } .review-item.correct { border-left:4px solid var(--green); } .review-item.wrong { border-left:4px solid var(--red); } .review-item.blank { border-left:4px solid var(--gold); } .review-options { list-style:none; padding:0; display:grid; gap:7px; } .review-options li { padding:9px 10px; border-radius:8px; background:#f6f9fa; } .review-options li.correct-option { background:#e5f6ec; border:1px solid #a8d8bb; } .review-options li span { color:var(--teal); font-weight:900; } .explanation { background:#f1faf8; border-left:4px solid var(--teal); padding:13px; border-radius:8px; } .explanation p { margin:7px 0 0; line-height:1.5; }
.source { background:#f6f9fa; border:1px solid #e4ecef; border-radius:8px; padding:11px; font-size:.85rem; color:#526673; } .source pre { white-space:pre-wrap; font:inherit; margin:7px 0 0; color:var(--ink); } .admin-row summary { cursor:pointer; font-weight:800; } .admin-meta { display:flex; gap:7px; flex-wrap:wrap; margin:10px 0; } .empty { text-align:center; padding:34px 15px; color:var(--muted); }
.dialog { border:0; border-radius:14px; padding:24px; max-width:430px; box-shadow:0 20px 60px rgba(0,0,0,.24); } .dialog::backdrop { background:rgba(9,30,40,.45); } .dialog-actions { display:flex; gap:10px; justify-content:end; }
@media (max-width:840px) { .topbar { display:block; } .tabs { margin-top:18px; } .hero,.exam-layout,.result-grid { grid-template-columns:1fr; } .stat-grid { grid-template-columns:repeat(2,1fr); } .mode-grid { grid-template-columns:repeat(2,1fr); } .exam-sidebar { order:-1; } .nav-toggle { display:block; } .nav-panel { display:none; } .exam-sidebar.open .nav-panel { display:block; margin-top:14px; } }
@media (max-width:560px) { .shell { width:min(100% - 20px,1180px); margin-top:18px; } .card { padding:17px; } .form-grid { grid-template-columns:1fr; } .mode-grid { grid-template-columns:1fr; } .stat-grid { gap:8px; } .stat { padding:11px; } .stat b { font-size:1.2rem; } .exam-nav { grid-template-columns:1fr 1fr; } .exam-nav .button { min-height:50px; } .topbar { padding:20px 14px; } .tabs .tab { flex:1; } .metric-row { display:block; } .metric-row strong { display:block; margin-top:5px; } .dialog-actions { flex-direction:column-reverse; } .dialog-actions .button { width:100%; } }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
