:root {
  /* 진입 화면 — Swiss Institutional: 시험기관 문서의 격자와 규칙선 */
  --l-ink: #111418;
  --l-ink-2: #3d4550;
  --l-ink-3: #626c79;
  --l-paper: #ffffff;
  --l-paper-2: #f2f3f5;
  --l-rule: #d9dce1;
  --l-signal: #cb243a;   /* 의미색: 시험·시간·주의 — 밝은 패널에서도 AA 대비 */
  --l-verified: #0b5d3b; /* 의미색: 검증·완료 */
  --l-sec: 26px;

  --shell-950: #070d18;
  --shell-900: #0b1220;
  --shell-800: #131c2e;
  --shell-700: #1e2a40;
  --line: #263349;
  --paper: #ffffff;
  --paper-dim: #f4f6fa;
  --ink: #101828;
  --ink-soft: #5a6478;
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --live: #ef4444;
  --ok: #34d399;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 7px;
  --shadow-panel: 0 18px 48px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

/* display를 지정한 화면 컨테이너에도 hidden이 이기도록. */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--l-paper);
  color: var(--l-ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Segoe UI', system-ui, sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 응시 중에는 다크 셸로 전환하고 페이지 스크롤을 잠근다. */
body.in-exam {
  background: var(--shell-900);
  color: #e7ecf4;
  overflow: hidden;
}

.font-en { font-family: 'Archivo', 'Segoe UI', system-ui, sans-serif; }
.num { font-variant-numeric: tabular-nums; }

.lfoot a { display: inline-flex; align-items: center; min-height: 44px; }

/* ═══════════ 진입 화면 (Swiss Institutional) ═══════════ */

.lwrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* 문서 머리띠 — 시험기관 양식의 첫 신호 */
.topline { height: 6px; background: var(--l-ink); }
.topline i { display: block; height: 100%; width: 34%; background: var(--l-signal); }

.lheader { border-bottom: 1px solid var(--l-rule); }
.lhead { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.lmark { font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.lmark span { color: var(--l-signal); }
.lhead small { color: var(--l-ink-3); font-size: 12px; letter-spacing: .06em; }
.lnav { margin-left: auto; display: flex; gap: 20px; }
.lnav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--l-ink-2); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.lnav a:hover { color: var(--l-ink); border-bottom-color: var(--l-signal); }

/* 히어로 — 비대칭 격자. 가운데정렬 금지 */
.lhero {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px;
  padding: 34px 0 var(--l-sec); border-bottom: 1px solid var(--l-rule);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--l-signal);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--l-signal); }
.landing .hero-title {
  font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -.035em;
  margin: 0 0 14px; font-weight: 800;
}
.landing .hero-title em { font-style: normal; display: block; color: var(--l-ink-3); }
.landing .lede { font-size: 15.5px; line-height: 1.62; color: var(--l-ink-2); margin: 0; max-width: 46ch; }

.specsheet { border: 1px solid var(--l-rule); align-self: start; }
.specsheet h2 {
  font-size: 11px; letter-spacing: .12em; margin: 0; padding: 9px 12px;
  background: var(--l-ink); color: #fff; font-weight: 700;
}
.specsheet dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.specsheet dt, .specsheet dd { margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--l-rule); font-size: 13px; }
.specsheet dt { color: var(--l-ink-3); border-right: 1px solid var(--l-rule); }
.specsheet dd { text-align: right; font-weight: 600; }
.specsheet dl > :nth-last-child(-n+2) { border-bottom: 0; }

.lsec { padding: var(--l-sec) 0; border-bottom: 1px solid var(--l-rule); }
.lsec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.lsec-head h3 { font-size: 19px; letter-spacing: -.02em; margin: 0; }
.lsec-head p { margin: 0; font-size: 13px; color: var(--l-ink-3); }
.lsec-foot { font-size: 13px; line-height: 1.6; color: var(--l-ink-2); margin: 14px 0 0; max-width: 72ch; }

/* 파트 격자 — 번호가 주인공, 균일 카드 금지 */
.partgrid { display: grid; grid-template-columns: repeat(3, 1fr); }
.partcell { padding: 13px 14px; border-top: 2px solid var(--l-ink); border-right: 1px solid var(--l-rule); }
.partcell:nth-child(3n) { border-right: 0; }
.partcell-no { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--l-signal); margin: 0; }
.partcell-ty { font-size: 14.5px; font-weight: 700; margin: 5px 0 6px; letter-spacing: -.015em; }
.partcell-meta { font-size: 12px; color: var(--l-ink-3); display: flex; gap: 10px; margin: 0; }
.partcell-meta b { color: var(--l-ink-2); font-weight: 600; }

/* 채점 영역 — 규칙선으로 구분 */
.areagrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--l-rule); border: 1px solid var(--l-rule); }
.areacard { background: var(--l-paper); padding: 14px; }
.areacard b { display: block; font-size: 16px; letter-spacing: -.02em; }
.areacard small { display: block; font-size: 11px; color: var(--l-ink-3); letter-spacing: .05em; margin: 3px 0 8px; }
.areacard p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--l-ink-2); }

/* 응시 준비 */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--l-rule); border: 1px solid var(--l-rule); }
.fact { background: var(--l-paper); padding: 14px; }
.fact b { display: block; font-size: 29px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.fact span { display: block; font-size: 12px; color: var(--l-ink-3); margin-top: 5px; }
.fact.verified b { color: var(--l-verified); }
.notes { margin: 16px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--l-ink-2); line-height: 1.55; }
.notes li { padding-left: 17px; position: relative; margin-bottom: 7px; }
.notes li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--l-signal); }

.startform { border: 2px solid var(--l-ink); padding: 16px; align-self: start; }
.startform h4 { margin: 0 0 12px; font-size: 14px; letter-spacing: -.01em; }
.startform label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--l-ink-3); margin-bottom: 5px; }
.startform input {
  min-height: 44px;
  width: 100%; padding: 10px 11px; border: 1px solid var(--l-rule);
  font: inherit; font-size: 16px; background: var(--l-paper-2); color: var(--l-ink);
}
.startform input:focus { outline: 2px solid var(--l-signal); outline-offset: 0; border-color: transparent; }
/* 카메라 사용 여부 — 실제 시험은 캠 녹화이므로 선택을 명시적으로 노출한다. */
.camchoice { border: 0; margin: 14px 0 0; padding: 0; }
.camchoice legend {
  padding: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--l-ink-3); margin-bottom: 5px;
}
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--l-rule); border: 1px solid var(--l-rule); }
.seg {
  min-height: 44px;
  background: var(--l-paper); border: 0; padding: 9px 6px; font: inherit; font-size: 13px;
  font-weight: 600; color: var(--l-ink-3); cursor: pointer; transition: background .14s ease, color .14s ease;
}
.seg:hover { background: var(--l-paper-2); color: var(--l-ink); }
.seg.is-on { background: var(--l-ink); color: #fff; }
.seg:focus-visible { outline: 2px solid var(--l-signal); outline-offset: -2px; }
.camnote { font-size: 11.5px; line-height: 1.55; color: var(--l-ink-3); margin: 8px 0 0; }
.camnote b { color: var(--l-ink-2); }

.lbtn {
  min-height: 44px;
  width: 100%; padding: 12px; border: 0; background: var(--l-ink); color: #fff;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 10px;
  transition: background .15s ease;
}
.lbtn:hover:not(:disabled) { background: var(--l-signal); }
.lbtn:active:not(:disabled) { transform: translateY(1px); }
.lbtn.ghost { background: var(--l-paper); color: var(--l-ink); border: 1px solid var(--l-rule); }
.lbtn.ghost:hover { background: var(--l-paper-2); color: var(--l-ink); }
.lbtn:disabled { opacity: .4; cursor: not-allowed; }
.hint { font-size: 11.5px; color: var(--l-ink-3); margin: 9px 0 0; line-height: 1.5; }
.hint.ok { color: var(--l-verified); }
.hint.err { color: var(--l-signal); }
.lfoot { padding: 16px 24px; font-size: 11.5px; color: var(--l-ink-3); border-top: 1px solid var(--l-rule); }

@media (max-width: 900px) {
  .lhero { grid-template-columns: 1fr; gap: 22px; }
  .areagrid { grid-template-columns: repeat(2, 1fr); }
  .lnav { width: 100%; margin-left: 0; }
  /* 태블릿 폭에서는 파트를 2열로 유지한다. */
  .partgrid { grid-template-columns: repeat(2, 1fr); }
  .partcell:nth-child(3n) { border-right: 1px solid var(--l-rule); }
  .partcell:nth-child(2n) { border-right: 0; }
}

@media (max-width: 600px) {
  .partgrid, .facts { grid-template-columns: 1fr; }
  .partcell { border-right: 0; }
  .partcell:nth-child(3n) { border-right: 0; }
}

/* ---------- shell ---------- */
.app { display: flex; flex-direction: column; height: 100vh; }

.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 0 22px; height: 58px; flex: 0 0 58px;
  background: var(--shell-950);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  color: #10171f; font-size: 13px; font-weight: 800;
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: #8b97ad; letter-spacing: .04em; }
.topbar-spacer { flex: 1; }
.elapsed { font-size: 13px; color: #96a2b8; display: flex; align-items: center; gap: 8px; }
.elapsed b { color: #e7ecf4; font-size: 15px; font-weight: 600; }

.btn {
  border: 1px solid var(--line); background: var(--shell-800); color: #dbe3ef;
  padding: 9px 16px; border-radius: var(--r-md); font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { background: var(--shell-700); border-color: #35486a; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  border-color: transparent; color: #16202e; font-weight: 700;
}
.btn-primary:hover { filter: brightness(1.06); background: linear-gradient(135deg, var(--amber-soft), var(--amber)); }
.btn-ghost { background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- exam layout ---------- */
.stage { flex: 1; display: grid; grid-template-columns: 312px 1fr; gap: 16px; padding: 16px; min-height: 0; }

.side { display: flex; flex-direction: column; gap: 14px; min-height: 0; }

.card {
  background: var(--shell-800); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 15px;
}
.card-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: #7d8ba3; margin: 0 0 11px;
}

.testee { display: flex; gap: 13px; align-items: center; }
.testee-avatar {
  width: 56px; height: 56px; border-radius: 10px; flex: 0 0 56px;
  background: linear-gradient(150deg, #2b3a55, #1a2434);
  display: grid; place-items: center; font-size: 21px; font-weight: 700; color: #93a3bd;
  border: 1px solid var(--line);
}
.testee-name { font-size: 15px; font-weight: 700; margin: 0 0 5px; }
.testee-meta { font-size: 11.5px; color: #8b97ad; margin: 0; letter-spacing: .02em; }

.cam-wrap { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: #0a0f1a; }
.cam-wrap video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.cam-off {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; justify-items: center;
  font-size: 11.5px; color: #6b7891; text-align: center; padding: 12px;
}
.rec-badge {
  position: absolute; top: 9px; left: 9px; display: none; align-items: center; gap: 6px;
  background: rgba(9, 14, 24, .8); border-radius: 100px; padding: 4px 10px 4px 7px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
}
.rec-badge.on { display: flex; }
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.mic-meter { height: 4px; border-radius: 100px; background: var(--shell-700); overflow: hidden; margin-top: 11px; }
.mic-meter i {
  display: block; height: 100%; width: 100%; background: var(--ok);
  transform: scaleX(0); transform-origin: left center; transition: transform .08s linear;
}

.timer-card { text-align: center; }
.timer-value { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -.03em; margin: 2px 0 4px; }
.timer-unit { font-size: 12px; color: #8b97ad; letter-spacing: .1em; text-transform: uppercase; }
.timer-bar { height: 7px; border-radius: 100px; background: var(--shell-700); overflow: hidden; margin-top: 13px; }
.timer-bar i {
  display: block; height: 100%; width: 100%; background: var(--amber);
  transform-origin: left center; transition: transform .25s linear, background .3s ease;
}
.timer-card.is-answer .timer-value { color: var(--live); }
.timer-card.is-answer .timer-bar i { background: var(--live); }

/* ---------- main panel ---------- */
.panel {
  background: var(--paper); color: var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--shadow-panel); display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}

.parts { display: flex; align-items: center; gap: 6px; padding: 13px 18px; border-bottom: 1px solid #e6eaf1; flex-wrap: wrap; }
.part-pill {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 5px 11px; border-radius: 100px;
  background: #eef1f6; color: #97a1b3; transition: background .2s ease, color .2s ease;
}
.part-pill.done { background: #dfe6f0; color: #55617a; }
.part-pill.active { background: var(--ink); color: #fff; }
.parts-progress { margin-left: auto; font-size: 12px; color: var(--ink-soft); }
.parts-progress b { color: var(--ink); font-weight: 700; }

.qhead { display: flex; align-items: center; gap: 12px; padding: 18px 22px 0; }
.qno {
  width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--amber); color: #16202e;
  display: grid; place-items: center; font-size: 15px; font-weight: 800; flex: 0 0 32px;
}
.qtype { font-size: 19px; font-weight: 700; letter-spacing: -.015em; margin: 0; }

.qbody { flex: 1; display: grid; grid-template-columns: 236px 1fr; gap: 22px; padding: 18px 22px 22px; min-height: 0; }

.interviewer .cam-wrap { aspect-ratio: 4 / 3; background: #101826; }
.interviewer-face { position: absolute; inset: 0; display: grid; place-items: center; }
.interviewer-label { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #97a1b3; margin: 0 0 9px; }
.speaking-ring { position: absolute; inset: 0; border: 3px solid transparent; border-radius: var(--r-md); transition: border-color .25s ease; }
.speaking .speaking-ring { border-color: var(--amber); }

.prompt-box { background: var(--paper-dim); border-radius: var(--r-md); padding: 14px 16px; margin-top: 14px; }
.prompt-box p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.prompt-box.hidden-text p { filter: blur(5px); user-select: none; }
.prompt-hint { font-size: 11.5px; color: var(--ink-soft); margin: 9px 0 0; }

.asset { min-height: 0; display: flex; flex-direction: column; }
.asset-frame {
  flex: 1; min-height: 0; border: 1px solid #e2e7ef; border-radius: var(--r-md);
  overflow: hidden; display: grid; place-items: center; background: var(--paper-dim); padding: 10px;
}
.asset-frame svg { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.passage {
  align-self: stretch; font-size: 17px; line-height: 1.85; color: var(--ink);
  padding: 26px 30px; font-family: Georgia, 'Times New Roman', serif; max-width: 62ch;
}
.asset-empty { color: #9aa4b6; font-size: 13px; text-align: center; padding: 24px; }

.status-strip {
  display: flex; align-items: center; gap: 12px; padding: 12px 22px;
  border-top: 1px solid #e6eaf1; background: var(--paper-dim); flex: 0 0 auto;
}
.status-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 13px; border-radius: 100px;
  background: #e3e8f0; color: #55617a;
}
.status-chip[data-state="listen"] { background: #dbeafe; color: #1d4ed8; }
.status-chip[data-state="ready"] { background: #fef3c7; color: #92400e; }
.status-chip[data-state="answer"] { background: #fee2e2; color: #b91c1c; }
.status-note { font-size: 13px; color: var(--ink-soft); }
.status-strip .btn { margin-left: auto; background: #fff; border-color: #dde3ec; color: var(--ink); }
.status-strip .btn:hover { background: var(--paper-dim); border-color: #c6cfdd; }

/* ---------- setup & result screens ---------- */
.screen { flex: 1; display: grid; place-items: center; padding: 26px; overflow-y: auto; }
.sheet { width: min(760px, 100%); background: var(--shell-800); border: 1px solid var(--line); border-radius: 18px; padding: 34px; }
.sheet .sheet-title { font-size: 27px; letter-spacing: -.025em; margin: 0 0 8px; }
.sheet .lede { color: #97a4ba; font-size: 14.5px; line-height: 1.65; margin: 0 0 24px; }

.spec { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 22px; }
.spec th, .spec td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.spec th { color: #8b97ad; font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.spec td.num-col { text-align: right; font-variant-numeric: tabular-nums; }
.spec tr:last-child td { border-bottom: none; font-weight: 700; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: #97a4ba; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 11px 13px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--shell-900); color: #e7ecf4; font: inherit; font-size: 14px;
}
.field input:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }

.device-row { display: flex; gap: 10px; align-items: center; margin: 18px 0 22px; flex-wrap: wrap; }
.device-state { font-size: 13px; color: #97a4ba; }
.device-state.ok { color: var(--ok); }
.device-state.err { color: #fca5a5; }

.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.result-list { display: flex; flex-direction: column; gap: 9px; margin: 20px 0 24px; }
.result-row {
  background: var(--shell-900); border: 1px solid var(--line); border-radius: var(--r-md);
}
.result-row summary {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 13px; align-items: center;
  padding: 11px 13px; cursor: pointer; list-style: none;
}
.result-row summary::-webkit-details-marker { display: none; }
.result-row summary:hover { background: var(--shell-800); border-radius: var(--r-md); }
.result-row[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--r-md) var(--r-md) 0 0; }
.result-row .qno { width: 26px; height: 26px; font-size: 12.5px; flex: 0 0 26px; }
.result-q { font-size: 13px; line-height: 1.45; }
.result-q small { display: block; color: #8b97ad; font-size: 11px; margin-top: 3px; letter-spacing: .04em; }
.result-row audio { height: 32px; }
.result-row .empty { font-size: 12px; color: #7d8ba3; }

/* ---------- 성적표 ---------- */
.scorecard {
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 26px;
  background: linear-gradient(155deg, var(--shell-700), var(--shell-900));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 6px;
}
.score-main .card-label { margin-bottom: 6px; }
.score-value { font-size: 54px; font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: 0; }
.score-value span { font-size: 17px; font-weight: 500; color: #8b97ad; margin-left: 8px; letter-spacing: 0; }
.score-grade {
  display: inline-block; margin: 13px 0 10px; padding: 5px 14px; border-radius: 100px;
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  color: #16202e; font-size: 13.5px; font-weight: 800; letter-spacing: .02em;
}
.score-desc { font-size: 13.5px; line-height: 1.6; color: #c2cddf; margin: 0 0 10px; }
.score-note { font-size: 11.5px; color: #7d8ba3; margin: 0; line-height: 1.5; }

.score-areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 22px; align-content: center; }
.area-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 7px; }
.area-head b { font-size: 17px; font-weight: 700; }
.area-bar { height: 6px; border-radius: 100px; background: var(--shell-800); overflow: hidden; }
.area-bar i {
  display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--amber), var(--amber-soft));
  transform-origin: left center;
}
.area small { display: block; font-size: 10.5px; color: #7d8ba3; margin-top: 6px; letter-spacing: .06em; }

.row-score {
  font-size: 15px; font-weight: 700; color: var(--amber-soft);
  background: var(--shell-800); border-radius: var(--r-sm); padding: 4px 11px;
}
.heard { font-size: 13.5px; line-height: 1.6; color: #dbe4f0; margin: 0 0 14px; }
.heard small { display: block; color: #8b97ad; font-size: 11px; margin-top: 6px; letter-spacing: .03em; }
.heard-empty { color: #7d8ba3; font-style: italic; }
.model-missing { color: #fca5a5; }
.model-head {
  font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: #7d8ba3; margin: 0 0 8px;
}

.result-model { padding: 13px 15px 15px 52px; }
.model-line { font-size: 13.5px; line-height: 1.65; color: #cbd5e6; margin: 0 0 9px; }
.model-tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px; margin-right: 7px; vertical-align: 1px;
}
.model-tag.beginner { background: #4a3d16; color: var(--amber-soft); }
.model-tag.advanced { background: #16402f; color: var(--ok); }
.model-pattern { font-size: 12.5px; color: #93a2ba; margin: 11px 0 0; line-height: 1.55; }
.model-expr { display: flex; flex-wrap: wrap; gap: 6px; margin: 11px 0 0; }
.model-expr span {
  font-size: 11.5px; background: var(--shell-700); color: #b8c4d8;
  padding: 4px 10px; border-radius: 100px;
}

.asset-frame img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); }
.asset-situation {
  display: block; margin-top: 12px; color: var(--ink); font-size: 14px; line-height: 1.6;
  max-width: 42ch; margin-inline: auto;
}

@media (max-width: 1180px) {
  .stage { grid-template-columns: 262px 1fr; }
  .qbody { grid-template-columns: 200px 1fr; }
}
@media (max-width: 900px) {
  body { overflow: auto; }
  .app { height: auto; min-height: 100vh; }
  .stage { grid-template-columns: 1fr; }
  .qbody { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .sheet { padding: 22px; }
  .scorecard { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .result-row summary { grid-template-columns: 26px 1fr; row-gap: 9px; }
  .result-row summary .row-score { grid-column: 1; justify-self: start; }
  .result-row summary audio { grid-column: 2; width: 100%; }
  .result-model { padding: 13px 15px 15px; }
}

/* ---------- Part 5 지도 · Part 8 장면 카드 (자체 제작 자료, 2026-10-14) ---------- */
.asset-map { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 0; }
.asset-map img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.asset-map figcaption { font-size: 11.5px; color: var(--ink-soft); }
.asset-scene {
  max-width: 46ch; text-align: center; color: var(--ink); padding: 28px 24px;
  border: 1px dashed #c6cfdd; border-radius: var(--r-md); background: var(--paper);
}
.scene-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--l-signal); margin-bottom: 10px; }
.scene-text { font-size: 20px; font-weight: 700; line-height: 1.5; margin: 0 0 12px; letter-spacing: -.01em; }
.asset-scene small { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- 결과 화면 이메일 리드 ---------- */
.lead {
  border: 1px solid #35486a; border-radius: var(--r-lg); padding: 18px 20px; margin: 4px 0 10px;
  background: linear-gradient(180deg, rgba(245, 158, 11, .07), transparent 70%);
}
.lead-title { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.lead-desc { font-size: 13px; color: #97a4ba; line-height: 1.6; margin: 0 0 12px; }
.lead-row { display: flex; gap: 8px; margin-bottom: 10px; }
.lead-row input {
  flex: 1; min-width: 0; padding: 11px 13px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--shell-900); color: #e7ecf4; font: inherit; font-size: 14px;
}
.lead-row input:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.lead-check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: #b8c4d8; line-height: 1.55; margin-bottom: 6px; cursor: pointer; }
.lead-check input { margin-top: 3px; accent-color: var(--amber); }
.lead-check a, .lead-by a { color: var(--amber-soft); }
.lead-msg { min-height: 1.4em; font-size: 13px; color: var(--amber-soft); margin: 8px 0 4px; }
.lead-by { font-size: 11.5px; color: #7d8ba3; margin: 0; }
.lead.is-done .lead-row, .lead.is-done .lead-check { display: none; }
@media (max-width: 560px) { .lead-row { flex-direction: column; } }
/* 랜딩: 제품 자료와 응시 진입을 먼저 보여주는 Swiss Institutional 격자 */
.lheader { position: sticky; top: 0; z-index: 20; background: var(--l-paper); }
.lhead { align-items: center; padding: 12px 24px; }
.lnav { align-items: center; }
.landing section[id] { scroll-margin-top: 86px; }
.landing a:focus-visible { outline: 2px solid var(--l-signal); outline-offset: 4px; }
.lhero { grid-template-columns: minmax(0,1fr) 332px; gap: 32px; padding-top: 30px; align-items: start; }
.hero-copy { min-width: 0; }
.landing .hero-title { font-size: clamp(34px, 4vw, 54px); line-height: 1.08; }
.landing .hero-title em { color: var(--l-ink); }
.hero-copy .notes { margin-top: 18px; }
.hero-spec { display: grid; grid-template-columns: .7fr .7fr 1fr 1fr; margin: 0; border-top: 1px solid var(--l-ink); padding-top: 12px; gap: 12px; }
.hero-spec dt { font-size: 11px; color: var(--l-ink-2); }
.hero-spec dd { margin: 4px 0 0; font-size: 25px; font-weight: 700; }
.hero-spec small { font-size: 12px; margin-left: 3px; }
.exam-preview { margin: 0; min-width: 0; }
.exam-preview > figcaption { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; margin-bottom: 10px; color: var(--l-ink-2); }
.exam-preview > figcaption b { letter-spacing: .08em; }
.preview-shell { background: var(--shell-900); color: var(--paper); border: 1px solid var(--line); padding: 12px; }
.preview-top { display: flex; justify-content: space-between; font-size: 11px; padding-bottom: 12px; }
.preview-top span { color: #97a4ba; }
.preview-body { display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 12px; }
.preview-body aside { background: var(--shell-800); border: 1px solid var(--line); padding: 16px 9px; text-align: center; }
.preview-body .card-label { font-size: 9px; }
.preview-body .timer-value { font-size: 44px; color: var(--live); }
.preview-body .timer-bar i { background: var(--live); transform: scaleX(.8); }
.preview-record { font-size: 10px; color: #c2cddf; margin-top: 20px; }
.preview-body .panel { border-radius: 3px; box-shadow: none; }
.preview-body .qhead { padding: 12px 12px 0; gap: 8px; }
.preview-body .qno { width: 24px; height: 24px; flex-basis: 24px; font-size: 12px; }
.preview-body .qtype { font-size: 13px; }
.preview-question { padding: 0 12px 12px; }
.preview-question p { font-size: 12px; line-height: 1.4; margin: 10px 0; }
.preview-question img { display: block; width: 100%; height: 210px; object-fit: contain; background: var(--paper-dim); }
.preview-body .status-strip { padding: 9px 10px; gap: 8px; flex-wrap: wrap; }
.preview-body .status-chip { font-size: 9px; padding: 5px 8px; }
.preview-body .status-note { font-size: 10px; }
.preview-caption { font-size: 11px; color: var(--l-ink-2); line-height: 1.5; margin: 10px 0 0; }
.material-grid { display: grid; grid-template-columns: 1fr .75fr 1.2fr 1.2fr; border-top: 2px solid var(--l-ink); }
.material { min-width: 0; margin: 0; padding: 12px; border-right: 1px solid var(--l-rule); }
.material:first-child { padding-left: 0; }
.material:last-child { border-right: 0; padding-right: 0; }
.material-label { display: flex; justify-content: space-between; gap: 4px; font-size: 10px; font-weight: 700; margin-bottom: 10px; }
.material-label span { color: var(--l-ink-2); font-weight: 400; }
.material img { display: block; width: 100%; height: 164px; object-fit: contain; background: var(--l-paper-2); }
.material figcaption { font-family: 'Archivo', sans-serif; font-size: 12px; line-height: 1.5; margin-top: 10px; }
.part-duration { height: 5px; background: var(--l-paper-2); margin: 10px 0; }
.part-duration i { display: block; height: 100%; background: var(--l-ink-2); }
.partcell-long { background: var(--l-paper-2); }
.partcell-long .part-duration { background: var(--l-rule); }
.partcell-long .part-duration i { background: var(--l-signal); }
.scoring-preview { display: grid; grid-template-columns: .85fr 1.5fr; gap: 28px; align-items: center; }
.scoring-copy h3 { font-size: 29px; line-height: 1.18; margin: 0 0 14px; letter-spacing: -.025em; }
.scoring-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.65; color: var(--l-ink-2); margin: 0 0 10px; }
.scoring-copy small { display: block; font-size: 11px; line-height: 1.6; color: var(--l-ink-2); }
.report-preview { min-width: 0; }
.report-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.report-label span { font-weight: 400; letter-spacing: 0; }
.landing .scorecard { grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px; color: #e7ecf4; border-radius: 3px; background: var(--shell-900); margin: 0; }
.landing .score-areas { grid-template-columns: 1fr; gap: 12px; }
.landing .score-value { font-size: 48px; }
.landing .score-value span { font-size: 13px; }
.landing .score-grade { font-size: 12px; padding: 5px 10px; }
.landing .score-desc { font-size: 12px; }
.landing .score-note, .landing .area small, .landing .card-label { color: #a7b4c9; }
.landing .score-note { font-size: 10.5px; }
.landing .area-bar i { background: var(--amber); }
.landing .score-grade { background: var(--amber); }
.landing .area-head { margin-bottom: 5px; font-size: 12px; }
.landing .area-head b { font-size: 16px; }
@media (max-width: 1050px) {
  .lhead small { display: none; }
}
@media (max-width: 900px) {
  .lhero { grid-template-columns: 1fr 1.1fr; gap: 20px; }
  .lnav { width: auto; margin-left: auto; gap: 14px; }
  .preview-body { grid-template-columns: minmax(0,1fr); }
  .preview-body aside { display: none; }
  .material-grid { grid-template-columns: 1fr 1fr; }
  .material:nth-child(2) { border-right: 0; }
  .material:nth-child(n+3) { border-top: 1px solid var(--l-rule); }
  .material:first-child, .material:last-child { padding: 12px; }
  .scoring-preview { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .lwrap { padding-inline: 16px; }
  .lhead { flex-wrap: nowrap; gap: 8px; }
  .lmark { font-size: 16px; }
  .lnav { display: none; }
  .lhero { grid-template-columns: minmax(0,1fr); }
  .lhero { padding-top: 26px; }
  .landing .hero-title { font-size: clamp(34px, 8vw, 48px); }
  .preview-question img { height: 190px; }
  .material img { height: 132px; }
  .material { padding: 10px !important; }
  .material-label { flex-wrap: wrap; font-size: 10px; }
  .material figcaption { font-size: 11px; overflow-wrap: anywhere; }
  .partgrid { grid-template-columns: minmax(0,1fr); }
  .partcell { border-right: 0 !important; }
  .facts { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .fact { padding: 10px; }
  .landing .scorecard { grid-template-columns: minmax(0,1fr); padding: 16px; }
  .landing .score-areas { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lfoot { line-height: 1.6; }
}
