/* exam- names avoid the common document shell's lc- namespace. Tokens follow er-type. */
:root { color-scheme:dark; }
body { margin:0; background:#0c161c; color:#e5eae9; font:14px/1.7 'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif; }
#exam-desk { min-width:0; }
#exam-desk * { box-sizing:border-box; }
#exam-desk [hidden] { display:none!important; }
#exam-desk h2,#exam-desk h3,#exam-desk p { margin-top:0; }
#exam-desk button { border-radius:0; cursor:pointer; font:inherit; }
#exam-desk button:disabled { cursor:default; opacity:.5; }
#exam-desk input[type=text] { display:block; width:100%; min-height:48px; padding:11px 12px; border:1px solid #c1d2d033; background:#101d23; color:#e5eae9; border-radius:0; font:16px/1.5 inherit; }
#exam-desk input::placeholder { color:#91a9aa; }
#exam-desk :is(button,input):focus-visible { outline:2px solid #cfdbd3; outline-offset:3px; }
.exam-primary,.exam-secondary { display:inline-flex; justify-content:space-between; align-items:center; gap:15px; min-height:48px; padding:12px 17px; border:1px solid #c1d2d033; text-align:left; font-size:14px; font-weight:500; }
.exam-primary { background:#cfdbd3; color:#172726; border-color:#cfdbd3; }
.exam-secondary { color:#c7d6d0; background:transparent; }
.exam-eyebrow { color:#a6babc; font-size:12px; letter-spacing:.5px; margin-bottom:17px; }
.exam-title { margin:0 0 20px; font-size:34px; line-height:1.5; font-weight:400; letter-spacing:-1.3px; word-break:keep-all; }
.exam-deck { color:#a6babc; line-height:1.9; margin-bottom:25px; }
.exam-facts { display:flex; flex-wrap:wrap; gap:12px 25px; border-block:1px solid #c1d2d026; padding:20px 0; margin:25px 0; color:#a6babc; font-size:12px; }
.exam-facts span { white-space:nowrap; }
.exam-facts b { font-size:23px; color:#d3ded5; font-weight:500; font-variant-numeric:tabular-nums; margin-right:3px; }
.exam-copy { color:#b6c6c6; line-height:1.9; font-size:13px; margin-bottom:25px; }
.exam-label { display:block; color:#b6c6c6; font-size:13px; margin-bottom:8px; }
.exam-label span { color:#91a9aa; font-size:12px; margin-left:8px; }
.exam-small { font-size:12px; color:#91a9aa; line-height:1.8; margin:12px 0 0; white-space:pre-line; overflow-wrap:anywhere; }
#exam-start { width:100%; margin-top:26px; }

.exam-top { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; color:#b6c6c6; font-size:13px; font-variant-numeric:tabular-nums; }
.exam-top p { margin:0; }
#exam-meta { color:#91a9aa; font-size:12px; text-align:right; }
#exam-progress-bar { display:block; width:100%; height:3px; border:0; background:#23343a; margin-bottom:32px; color:#c0d1c4; }
#exam-progress-bar::-webkit-progress-bar { background:#23343a; }
#exam-progress-bar::-webkit-progress-value { background:#c0d1c4; }
#exam-progress-bar::-moz-progress-bar { background:#c0d1c4; }
#exam-fieldset { border:0; min-width:0; margin:0; padding:0; }
#exam-question-title { display:block; padding:0; width:100%; font-size:24px; line-height:1.55; letter-spacing:-.8px; font-weight:500; margin-bottom:22px; word-break:keep-all; }
.exam-choices { display:flex; flex-direction:column; gap:12px; }
.exam-choice { display:flex; align-items:center; min-height:64px; gap:14px; padding:14px 18px; border:1px solid #c1d2d033; color:#c6d4d0; background:#101d23; cursor:pointer; line-height:1.8; transition:background 180ms,border-color 180ms; }
.exam-choice:hover { background:#16252b; }
.exam-choice:has(input:checked) { background:#21302f; border-color:#a4bbae; color:#e5eae9; }
.exam-choice input { width:18px; height:18px; margin:0; accent-color:#cfdbd3; flex-shrink:0; }
.exam-choice span { min-width:0; overflow-wrap:anywhere; }
.exam-actions { display:grid; grid-template-columns:auto 1fr; gap:12px; margin-top:28px; }

.exam-sheet { background:#e0e3d9; color:#293429; padding:28px 28px 22px; overflow-wrap:anywhere; }
.exam-sheet-meta,.exam-sheet-foot { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:11px; color:#5b6a5e; }
.exam-sheet-meta { border-bottom:1px solid #29342933; padding-bottom:12px; margin-bottom:24px; }
.exam-hero { display:flex; align-items:center; gap:22px; margin-bottom:6px; }
.exam-hero img { width:96px; height:auto; flex-shrink:0; filter:drop-shadow(0 6px 10px #0005); }
.exam-sheet-label { font-size:12px; color:#5b6a5e; margin-bottom:4px; }
/* 티어 색은 밝은 용지 위에서 글자가 아니라 밑줄로만 쓴다 (대비 확보). */
#exam-result-title { display:inline-block; font-size:40px; line-height:1.3; letter-spacing:-1.5px; font-weight:600; margin-bottom:10px; border-bottom:6px solid var(--tier); }
.exam-score { font-size:13px; color:#3e4d41; font-variant-numeric:tabular-nums; margin-bottom:14px; }
.exam-comment { font-size:15px; line-height:1.8; margin-bottom:6px; word-break:keep-all; }
.exam-next-tier { font-size:12px; color:#5b6a5e; margin-bottom:22px; }
.exam-ladder { display:grid; grid-template-columns:repeat(8,1fr); gap:3px; margin-bottom:28px; }
.exam-ladder img { display:block; width:100%; max-width:44px; height:auto; margin:0 auto 6px; }
.exam-ladder span { border-top:4px solid var(--tier); padding-top:8px; text-align:center; font-size:10px; color:#5b6a5e; opacity:.45; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.exam-ladder .is-current { opacity:1; color:#293429; font-weight:700; }
.exam-sheet h3 { font-size:13px; font-weight:600; margin-bottom:12px; }
.exam-domain { display:grid; grid-template-columns:118px 1fr 44px; align-items:center; gap:12px; font-size:12px; margin-bottom:8px; }
.exam-domain meter { width:100%; height:8px; }
.exam-domain b { text-align:right; font-weight:500; font-variant-numeric:tabular-nums; }
.exam-advice { border-left:3px solid #293429; padding:4px 0 4px 14px; margin:22px 0; }
.exam-advice span { font-size:12px; color:#5b6a5e; }
.exam-advice p { margin:4px 0 0; line-height:1.8; word-break:keep-all; }
.exam-sheet-foot { border-top:1px solid #29342933; padding-top:14px; }
.exam-seal { border:2px solid #a2473d; color:#a2473d; padding:5px 8px; font-size:11px; font-weight:700; line-height:1.3; text-align:center; transform:rotate(-7deg); }
.exam-result-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:20px; }

.exam-review-title { font-size:18px; font-weight:500; margin:44px 0 0; }
.exam-review { list-style:none; margin:18px 0 0; padding:0; }
.exam-review li { border-left:3px solid #6f8a7c; background:#101d23; padding:16px 18px; margin-bottom:12px; }
.exam-review li.is-partial { border-color:#d9b65c; }
.exam-review li.is-wrong { border-color:#c9685c; }
.exam-review p { margin:0 0 6px; }
.exam-review-head { font-size:12px; color:#91a9aa; }
.exam-review-prompt { font-weight:500; word-break:keep-all; }
.exam-review-mine { color:#e0a097; font-size:13px; }
.exam-review-key { color:#b9d6c4; font-size:13px; }
.exam-review blockquote { margin:10px 0 0; padding-left:12px; border-left:1px solid #c1d2d033; color:#91a9aa; font-size:12px; line-height:1.8; }
.exam-footer { font-size:12px; line-height:1.9; color:#91a9aa; }

@media(max-width:480px) {
  .exam-title { font-size:28px; }
  #exam-question-title { font-size:21px; }
  .exam-sheet { padding:25px 18px 20px; }
  #exam-result-title { font-size:28px; }
  .exam-hero { gap:14px; }
  .exam-hero img { width:72px; }
  .exam-domain { grid-template-columns:96px 1fr 40px; gap:8px; }
  .exam-ladder span { font-size:0; }
  .exam-result-actions { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) { #exam-desk * { transition:none!important; } }
