/* 공기코 웹 — 앱과 같은 배색: 밝게 지적도(옅은 초록 종이 + 진한 잉크), 어둡게 밤. 강조는 합격 지도 색만. 이전 디자인은 design/backup-v1/style.css */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("fonts/Pretendard-Regular.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 500 600; font-display: swap; src: url("fonts/Pretendard-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700 900; font-display: swap; src: url("fonts/Pretendard-ExtraBold.woff2") format("woff2"); }
:root {
  --bg: #F2F4EF; --surface: #FFFFFF; --surface-2: #FFFFFF; --surface-3: #EAEEE6; --surface-4: #E2E7DE;
  --text: #1E2B23; --muted: #4F5C55; --outline: #B9C2B5; --outline-2: #D6DCD2;
  --primary: #1E2B23; --on-primary: #F2F4EF; --primary-c: #DDE6D6; --on-primary-c: #1E2B23;
  --tertiary: #2F7A45; --correct: #2F7A45; --wrong: #B23A48;
  --z-green: #A8D08D; --z-yellow: #F2D96B; --z-red: #EE929B; --z-empty: #FFFFFF; --z-hatch: #DDE3D8; --z-on: #1E2B23; --z-line: #1E2B23;
  --serif: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --sans: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --fs: 1;
}
:root[data-theme="dark"] {
  --bg: #12161D; --surface: #1C222C; --surface-2: #1C222C; --surface-3: #232A35; --surface-4: #2A3240;
  --text: #E6EAF0; --muted: #9AA4B2; --outline: #3A4454; --outline-2: #2A3240;
  --primary: #E6EAF0; --on-primary: #12161D; --primary-c: #26303D; --on-primary-c: #E6EAF0;
  --tertiary: #8CCB74; --correct: #8CCB74; --wrong: #EF8F99;
  --z-green: #7FB069; --z-yellow: #D9BE4E; --z-red: #D9737E; --z-empty: #1C222C; --z-hatch: #2A3240; --z-on: #10140F; --z-line: #5A6576;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161D; --surface: #1C222C; --surface-2: #1C222C; --surface-3: #232A35; --surface-4: #2A3240;
    --text: #E6EAF0; --muted: #9AA4B2; --outline: #3A4454; --outline-2: #2A3240;
    --primary: #E6EAF0; --on-primary: #12161D; --primary-c: #26303D; --on-primary-c: #E6EAF0;
    --tertiary: #8CCB74; --correct: #8CCB74; --wrong: #EF8F99;
    --z-green: #7FB069; --z-yellow: #D9BE4E; --z-red: #D9737E; --z-empty: #1C222C; --z-hatch: #2A3240; --z-on: #10140F; --z-line: #5A6576;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { font-size: calc(16px * var(--fs)); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); margin: 0; font-weight: 800; letter-spacing: -0.02em; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px; background: var(--bg); border-bottom: 1px solid var(--outline-2); }
.top h1 { font-size: 1.25rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .back { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; border-radius: 20px; }
.top .back:hover { background: var(--surface-3); }
.top-right { color: var(--primary); font-weight: 700; display: flex; gap: 8px; align-items: center; }

.view { max-width: 820px; margin: 0 auto; padding: 12px 16px calc(84px + env(safe-area-inset-bottom)); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--surface); border-top: 1px solid var(--outline-2); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 0 6px; font-size: .75rem; color: var(--muted); }
.tabs a .ic { font-size: 1.3rem; line-height: 1.2; }
.tabs a.on { color: var(--primary); font-weight: 700; }
.tabs[hidden] { display: none; }
/* PC(900px~): 아래 탭 → 왼쪽 메뉴. 휴대폰 규칙보다 뒤에 둬야 덮어쓰지 않는다 */
@media (min-width: 900px) {
  .view { padding-bottom: 32px; padding-left: 24px; padding-right: 24px; }
  .tabs { position: fixed; left: 0; top: 56px; bottom: 0; width: 176px; flex-direction: column; border-top: 0; border-right: 1px solid var(--outline-2); padding-top: 12px; }
  .tabs a { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; padding: 12px 20px; font-size: 1rem; border-radius: 10px; margin: 2px 8px; }
  .tabs a:hover { background: var(--surface-3); }
  .tabs a.on { background: var(--primary-c); }
  .tabs a .ic { font-size: 1.1rem; }
  body { padding-left: 176px; }
  .top { margin-left: -176px; padding-left: 196px; }
}

.card { background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.card.primary { background: var(--primary-c); color: var(--on-primary-c); }
.card h2 { font-size: 1.05rem; margin-bottom: 6px; }
.label { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.card.primary .label { color: var(--on-primary-c); opacity: .85; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.big { font-family: var(--serif); font-size: 3rem; font-weight: 900; line-height: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; }
.wrap { flex-wrap: wrap; }
.gap { gap: 10px; }
.mt { margin-top: 12px; } .mt-s { margin-top: 6px; } .mb { margin-bottom: 12px; }
.right { text-align: right; }
.center { text-align: center; }
.correct { color: var(--correct); } .wrong { color: var(--wrong); } .primary-t { color: var(--primary); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--outline); background: var(--surface); border-radius: 12px; padding: 10px 16px; cursor: pointer; min-height: 44px; }
.btn:hover { background: var(--surface-3); }
.btn.fill { background: var(--primary); color: var(--on-primary); border-color: var(--primary); font-weight: 700; }
.btn.fill:hover { filter: brightness(1.08); }
.btn.block { width: 100%; min-height: 52px; font-size: 1.05rem; }
.btn.sm { min-height: 36px; padding: 6px 12px; border-radius: 10px; font-size: .9rem; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.o { background: var(--correct); color: #fff; border-color: var(--correct); font-size: 1.6rem; }
.btn.x { background: var(--wrong); color: #fff; border-color: var(--wrong); font-size: 1.6rem; }

.seg { display: inline-flex; border: 1px solid var(--outline); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 8px 14px; cursor: pointer; border-right: 1px solid var(--outline); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--primary-c); color: var(--on-primary-c); font-weight: 700; }
.seg.block { display: flex; } .seg.block button { flex: 1; }

.chip { display: inline-flex; align-items: center; border: 1px solid var(--outline); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: .9rem; background: var(--surface); }
.chip.on { background: var(--primary-c); color: var(--on-primary-c); border-color: var(--primary-c); font-weight: 600; }

.action { display: flex; align-items: center; gap: 14px; border: 1px solid var(--outline); background: var(--surface); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; width: 100%; text-align: left; }
.action:hover { background: var(--surface-2); }
.action .ic { color: var(--primary); font-size: 1.4rem; width: 28px; text-align: center; }
.action b { display: block; font-size: 1rem; }
.action span.sub { color: var(--muted); font-size: .9rem; }

.meter { margin: 6px 0; }
.meter .t { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 3px; }
.bar { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--c, var(--primary)) 14%, transparent); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--c, var(--primary)); border-radius: 5px; transition: width .3s; }

.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat3 div { background: var(--surface-3); border-radius: 14px; padding: 10px 12px; }
.stat3 div b { display: block; font-size: 1.05rem; }

.q-stem { font-size: 1.1rem; font-weight: 600; line-height: 1.6; white-space: pre-wrap; }
.q-head { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.choice { display: flex; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--outline); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 6px 0; cursor: pointer; line-height: 1.5; }
.choice:hover { background: var(--surface-3); }
.choice .n { font-weight: 700; color: var(--muted); min-width: 1.2em; }
.choice.pick { border-color: var(--primary); }
.choice.ans { border-color: var(--z-line); background: var(--z-green); color: var(--z-on); } .choice.ans .n { color: var(--z-on); }
.choice.bad { border-color: var(--z-line); background: var(--z-red); color: var(--z-on); } .choice.bad .n { color: var(--z-on); }
.choice:disabled { cursor: default; }
.expl { border-left: 4px solid var(--primary); padding: 4px 0 4px 14px; margin-top: 14px; }
.expl .w { display: flex; gap: 8px; margin-top: 6px; font-size: .95rem; } .expl .w b { color: var(--muted); }
.expl .cf { color: var(--tertiary); margin-top: 8px; }
.expl .law { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.progress { height: 4px; background: var(--outline-2); border-radius: 2px; margin: 0 -16px 10px; }
.progress i { display: block; height: 100%; background: var(--primary); }
.navbar { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); display: flex; gap: 10px; padding: 10px 0; background: var(--bg); }
@media (min-width: 900px) { .navbar { bottom: 0; } }

input[type=text], input[type=date], input[type=number], select { background: var(--surface); border: 1px solid var(--outline); border-radius: 10px; padding: 10px 12px; width: 100%; }
.switch { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--outline-2); gap: 12px; }
.switch:last-child { border-bottom: 0; }
.switch input { width: 44px; height: 24px; appearance: none; background: var(--outline); border-radius: 12px; position: relative; cursor: pointer; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 9px; background: #fff; transition: left .2s; }
.switch input:checked { background: var(--primary); } .switch input:checked::after { left: 23px; }
.section { font-family: var(--serif); font-size: 1rem; margin: 20px 0 8px; color: var(--primary); }
.list > div { padding: 10px 0; border-bottom: 1px solid var(--outline-2); }
.list > div:last-child { border-bottom: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tag { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: .9rem; z-index: 20; max-width: 90vw; }
.ox-text { font-size: 1.25rem; font-weight: 600; line-height: 1.6; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.seg-hl { background: var(--surface-3); border-radius: 8px; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 4px; }
.day-grid div { aspect-ratio: 1; border-radius: 5px; background: var(--surface-3); font-size: .6rem; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.day-grid div.l1 { background: color-mix(in srgb, var(--primary) 30%, var(--surface-3)); color: var(--text); }
.day-grid div.l2 { background: color-mix(in srgb, var(--primary) 60%, var(--surface-3)); color: var(--on-primary); }
.day-grid div.l3 { background: var(--primary); color: var(--on-primary); }
.flash { animation: flash .5s; }
@keyframes flash { from { background: var(--primary-c); } to { background: transparent; } }
kbd { font-family: inherit; border: 1px solid var(--outline); border-radius: 4px; padding: 0 5px; font-size: .8rem; background: var(--surface-3); }

/* ---- 공용 추가 ---- */
.gap-s { gap: 6px; } .mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.blk { display: block; margin-top: 4px; }
.click { cursor: pointer; } .click:hover { background: var(--surface-2); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip.sm { font-size: .8rem; padding: 3px 10px; }
a.chip { color: inherit; }
.btn.tonal { background: var(--primary-c); color: var(--on-primary-c); border-color: var(--primary-c); font-weight: 600; }
.btn.block-s { width: 100%; }
.btn.star { color: #F2B01E; }
.tag.warn { color: var(--wrong); }
textarea { width: 100%; background: var(--surface); border: 1px solid var(--outline); border-radius: 10px; padding: 10px 12px; font: inherit; color: inherit; resize: vertical; }
.big-t { font-family: var(--serif); font-size: 1.6rem; font-weight: 800; }
body.no-tabs .view { padding-bottom: 24px; }
body.no-tabs .navbar { bottom: 0; }
@media (min-width: 900px) { body.no-tabs { padding-left: 0; } body.no-tabs .top { margin-left: 0; padding-left: 12px; } }

/* ---- 문제 풀이: PC는 해설을 오른쪽 칸에 ---- */
.view.wide-solve { max-width: 820px; }
.side-hint { display: none; }
@media (min-width: 1100px) {
  .view.wide-solve { max-width: 1320px; }
  .solve { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .solve #after { position: sticky; top: 68px; max-height: calc(100vh - 150px); overflow: auto; padding-right: 4px; }
  .side-hint { display: block; padding-top: 40px; }
}
.result-line { margin-top: 14px; font-size: 1.1rem; }
.qgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.qgrid button { aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--surface-3); cursor: pointer; }
.qgrid button.ok { background: var(--correct); color: #fff; } .qgrid button.bad { background: var(--wrong); color: #fff; } .qgrid button.picked { background: var(--primary); color: var(--on-primary); }
.qgrid button.cur { outline: 2px solid var(--text); font-weight: 800; }

/* ---- 해설 카드 ---- */
.expl-card { background: var(--surface-3); border-radius: 16px; padding: 16px; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; line-height: 1.6; }
.expl-card h3 { font-size: 1.05rem; }
.expl-card .concl { font-weight: 700; font-size: 1.05rem; }
.expl-card hr { border: 0; border-top: 1px solid var(--outline); margin: 2px 0; width: 100%; }
.expl-card .w { display: flex; gap: 8px; } .expl-card .w b { color: var(--muted); min-width: 22px; font-weight: 500; }
.expl-card .report { align-self: flex-start; padding-left: 0; }
.tip { display: flex; gap: 10px; border-radius: 10px; padding: 8px 10px; background: color-mix(in srgb, var(--c) 10%, transparent); }
.tip b { color: var(--c); min-width: 32px; flex: none; }
.tip.key { --c: var(--primary); } .tip.trap { --c: var(--wrong); } .tip.memo { --c: var(--correct); }
.amend { --amber: #B7791F; background: color-mix(in srgb, var(--amber) 10%, transparent); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.amber { color: #B7791F; }
:root[data-theme="dark"] .amber { color: #E2B260; }
.amend-row { display: flex; gap: 8px; align-items: center; background: transparent; border: 0; padding: 4px 0; text-align: left; width: 100%; cursor: default; }
button.amend-row { cursor: pointer; } button.amend-row:hover { background: color-mix(in srgb, #B7791F 8%, transparent); }
.law-text { white-space: pre-wrap; line-height: 1.7; max-height: 60vh; overflow: auto; }
.fig-wrap { margin-top: 12px; }
.fig { display: block; width: 100%; background: #fff; border-radius: 10px; padding: 8px; border: 0; cursor: zoom-in; }
.fig img { display: block; max-width: 100%; margin: 0 auto; }
.fig.big { cursor: default; } .fig.big img { width: 100%; }
.rel-ch { margin: 4px 0; } .small-stem { font-size: 1rem; }

/* ---- 대화 상자·아래 시트 ---- */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .42); z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--surface); color: var(--text); border-radius: 18px; width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.modal.wide { width: min(760px, 100%); }
.modal-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px 20px; } .modal-h h3 { flex: 1; font-size: 1.05rem; }
.modal-b { padding: 4px 20px 12px; overflow: auto; flex: 1; }
.modal-f { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 8px 16px 14px; }
.modal-f:empty { display: none; }
.modal-back.sheet { align-items: flex-end; padding: 0; }
.modal.sheet { width: 100%; max-width: 820px; height: 92vh; max-height: 92vh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 1100px) {
  .modal-back.sheet { justify-content: flex-end; align-items: stretch; background: rgba(0, 0, 0, .25); }
  .modal.sheet { width: 520px; height: 100vh; max-height: 100vh; border-radius: 0; }
}
.tutor .msgs { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.msg { border-radius: 14px; padding: 8px 12px; white-space: pre-wrap; line-height: 1.6; max-width: 92%; }
.msg.me { align-self: flex-end; background: var(--primary); color: var(--on-primary); }
.msg.bot { align-self: stretch; max-width: none; background: var(--surface-3); }
.msg .src { margin-top: 6px; }
.tutor .modal-f { flex-direction: column; align-items: stretch; flex-wrap: nowrap; border-top: 1px solid var(--outline-2); padding-top: 10px; }
.tchips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.tchips .chip { white-space: nowrap; flex: none; }
.tinput input { flex: 1; }

/* ---- 이론서 ---- */
.toc-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--outline); background: var(--surface); border-radius: 12px; padding: 12px 14px; margin: 6px 0; }
.toc-row:hover { background: var(--surface-2); } .toc-row.off { opacity: .6; }
.toc-row .ch { width: 52px; font-weight: 700; flex: none; }
.view.chapter-view { max-width: 980px; padding-top: 0; }
iframe.chapter { display: block; width: 100%; height: calc(100vh - 120px); height: calc(100dvh - 120px); border: 0; background: #fff; border-radius: 0 0 12px 12px; }
.chapter-nav { padding: 8px 0; }

/* ---- OX·변형·선지 전부 OX ---- */
.ox-stem { white-space: pre-wrap; margin-bottom: 12px; }
.ox-ans { background: var(--surface-3); border-radius: 12px; padding: 14px; }
.allox-item { background: var(--surface-3); border-radius: 12px; padding: 12px; margin: 8px 0; }
.allox-item.ok { background: color-mix(in srgb, var(--correct) 14%, transparent); } .allox-item.bad { background: color-mix(in srgb, var(--wrong) 14%, transparent); }
.row.top { align-items: flex-start; }

/* ---- 통계 ---- */
.bars30 { display: flex; align-items: flex-end; gap: 3px; height: 48px; }
.bars30 i { flex: 1; background: var(--surface-3); border-radius: 2px; } .bars30 i.on { background: var(--primary); }
.stat3.flat div { background: transparent; padding: 0; }
.fvn { padding: 4px 0; } .fvn b { width: 80px; } .fvn span.muted { width: 72px; }
details.units { border-top: 1px solid var(--outline-2); padding: 10px 0; }
details.units summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
details.units summary::after { content: "▾"; color: var(--muted); } details.units[open] summary::after { content: "▴"; }
details.units .weak { margin-top: 2px; } details.units[open] .weak { display: none; }
.unit-row { display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; border: 0; padding: 8px 0; text-align: left; cursor: pointer; }
.unit-row:hover { background: var(--surface-2); }
.unit-row > .grow { display: flex; flex-direction: column; gap: 4px; } .unit-row .bar { height: 6px; }
.unit-row > b { width: 44px; text-align: right; } .unit-row > .small.muted { width: 52px; }
.plan-row { margin: 6px 0; } .pr-s { width: 72px; white-space: nowrap; } .pr-n { width: 52px; text-align: right; } .pr-t { width: 92px; }
@media (max-width: 420px) { .pr-s { width: 56px; } .pr-t { width: 72px; } }
.resume { flex-direction: column; text-align: center; line-height: 1.25; }

/* ---- 오답노트·압축본 ---- */
.wn-row { padding: 10px 0; }
.compact-item { border-bottom: 1px solid var(--outline-2); padding: 10px 0; line-height: 1.55; break-inside: avoid; }
.ci-stem { font-weight: 600; margin: 4px 0; }
@media print {
  .top, .tabs, .no-print, .toast { display: none !important; }
  body { background: #fff; color: #000; padding: 0 !important; }
  .view { max-width: none; padding: 0; }
  .section { color: #000; }
}

/* ---- 내 답 채점 ---- */
.sg-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.sg-row b { width: 32px; }
.sg-row button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-3); cursor: pointer; font-weight: 600; }
.sg-row button.on { background: var(--primary); color: var(--on-primary); }
.sg-row button.ok { background: var(--correct); color: #fff; } .sg-row button.bad { background: var(--wrong); color: #fff; }
.sg-row button.hint { background: color-mix(in srgb, var(--correct) 25%, transparent); }
.sg-foot { position: sticky; bottom: 0; }
/* 모의고사 구성 고르기(라디오 목록)·결과 과목별 점수 */
.radio-list { display: flex; flex-direction: column; gap: 2px; }
.radio { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 10px 8px; color: var(--text); font: inherit; cursor: pointer; }
.radio:hover { background: var(--surface-3); }
.radio .dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); box-sizing: border-box; }
.radio.on .dot { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 0 4px, transparent 5px); }
.radio:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.pass-card.pass { border-color: var(--correct); }
.pass-card.fail { border-color: var(--wrong); }
/* 합격 지도 */
.passmap { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.pm-sum { font-weight: 700; }
.pm-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--text); background: transparent; color: var(--text); font-weight: 600; cursor: pointer; }
.pm-tab.on { background: var(--text); color: var(--bg); }
.pm-tab .dot { width: 8px; height: 8px; border-radius: 50%; }
.pm-tab .dot.z-none { border: 1px solid currentColor; }
.pm-head { display: flex; flex-direction: column; gap: 2px; }
.pm-head b { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.02em; }
.pm-map { border: 2px solid var(--z-line); border-radius: 6px; overflow: hidden; }
.pm-row { display: flex; }
.pm-lot { position: relative; isolation: isolate; min-width: 0; min-height: 66px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 7px; border: 0; box-shadow: inset 0 0 0 0.5px var(--z-line); text-align: left; cursor: pointer; color: var(--z-on); font-size: .72rem; line-height: 1.25; }
.pm-lot b { font-size: .82rem; }
.pm-lot span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.pm-lot:hover { filter: brightness(1.04); }
.pm-lot:focus-visible, .pm-tab:focus-visible { outline: 3px solid var(--text); outline-offset: -3px; }
.z-green { background: var(--z-green); } .z-yellow { background: var(--z-yellow); } .z-red { background: var(--z-red); }
.z-empty { background: repeating-linear-gradient(135deg, var(--z-empty) 0 6px, var(--z-hatch) 6px 7px); }
.pm-lot { background: repeating-linear-gradient(135deg, var(--z-empty) 0 6px, var(--z-hatch) 6px 7px); color: var(--text); }
.pm-lot.full { color: var(--z-on); }
.pm-fill { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; }
.z-pending { background: var(--outline-2); }
.pm-road { height: 22px; display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--muted); background: var(--z-empty); box-shadow: inset 0 1px 0 var(--z-line), inset 0 -1px 0 var(--z-line); }
.pm-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .75rem; color: var(--muted); }
.pm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pm-legend i { width: 16px; height: 12px; border-radius: 2px; box-shadow: inset 0 0 0 0.75px var(--z-line); }
.pm-go { min-height: 54px; border-radius: 14px; font-size: 1.05rem; }
/* 보기 딱지·가답안 띠 */
.choice .ctag { margin-left: auto; flex: none; align-self: flex-start; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--text); color: var(--bg); }
.prov-band { margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: var(--z-yellow); color: var(--z-on); font-size: .85rem; font-weight: 600; }
.wordmark { display: inline-block; height: 1.55rem; aspect-ratio: 2720 / 1000; vertical-align: -0.2rem; background: currentColor; -webkit-mask: url("wordmark.svg") no-repeat center / contain; mask: url("wordmark.svg") no-repeat center / contain; }
.wm-sub { margin-left: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.logo-icon { width: 1.9rem; height: 1.9rem; vertical-align: -0.45rem; margin-right: 8px; border-radius: 7px; box-shadow: 0 0 0 1px var(--outline-2); }
.pm-lot em { font-style: normal; font-size: .68rem; font-weight: 600; }
.pm-sum .small { font-weight: 400; margin-top: 2px; }
/* PC 홈(1100px~): 왼쪽 큰 합격 지도, 오른쪽 할 일 */
.home-grid { display: block; }
@media (min-width: 1100px) {
  .view.home-wide { max-width: 1280px; }
  .home-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr); gap: 32px; align-items: start; }
  .hg-main { position: sticky; top: 72px; }
  .home-grid .pm-lot { min-height: 104px; font-size: .9rem; padding: 10px 12px; }
  .home-grid .pm-lot b { font-size: 1rem; }
  .home-grid .pm-head b { font-size: 1.7rem; }
  .home-grid .pm-road { height: 28px; font-size: .8rem; }
}
/* 문제 위 필기 */
.ink-layer { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; }
.ink-layer.on { pointer-events: auto; touch-action: none; cursor: crosshair; }
#qcol.inking { outline: 2px dashed var(--outline); outline-offset: 4px; border-radius: 8px; }
.gbtn { display: inline-flex; align-items: center; gap: 10px; }
.gbtn .g { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #4285F4; font-weight: 800; align-items: center; justify-content: center; font-size: .85rem; }
.acct img { width: 40px; height: 40px; border-radius: 50%; }
.login { max-width: 420px; margin: 8vh auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.login-icon { width: 72px; height: 72px; border-radius: 18px; }
.big-wm { height: 2.6rem !important; }
.login-sub { margin: 0; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.login-h { font-size: 1.5rem; margin: 10px 0 0; }
.login-btn { width: 100%; min-height: 54px; margin-top: 8px; }
.ent-band { border-color: var(--z-line); }
