/* 갈매고1 약점 맞춤 문제풀이 — 학생 · 강사 공통 */
:root {
  --bg: #f6f7f9; --card: #ffffff; --fg: #15181d; --muted: #5d6673; --line: #d9dde3; --soft: #eef1f5;
  --accent: #1f5fbf; --accent-fg: #ffffff; --accent-soft: #e6eefb;
  --ok: #1e7a3f; --ok-soft: #e4f4ea; --bad: #b3261e; --bad-soft: #fbe9e7; --warn: #8a5a00; --warn-soft: #fff4d6;
  --pass: #1e7a3f; --normal: #5d6673; --weak: #b3261e; --hold: #9aa3ae;
  --passage-bg: #ffffff; --passage-fg: #15181d;
  --radius: 10px; --gutter: 16px;
  --sans: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --serif: 'Georgia', 'Times New Roman', 'Noto Serif KR', serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111418; --card: #1a1e24; --fg: #e8ebef; --muted: #a0a9b5; --line: #343a43; --soft: #232830;
    --accent: #6aa3ff; --accent-fg: #0d1117; --accent-soft: #1d2a40;
    --ok: #6fd18f; --ok-soft: #173323; --bad: #ff8c80; --bad-soft: #3a1d1b; --warn: #f0c35a; --warn-soft: #3a3020;
    --pass: #6fd18f; --normal: #a0a9b5; --weak: #ff8c80; --hold: #6b7480;
    --passage-bg: #1f242b; --passage-fg: #e8ebef;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111418; --card: #1a1e24; --fg: #e8ebef; --muted: #a0a9b5; --line: #343a43; --soft: #232830;
  --accent: #6aa3ff; --accent-fg: #0d1117; --accent-soft: #1d2a40;
  --ok: #6fd18f; --ok-soft: #173323; --bad: #ff8c80; --bad-soft: #3a1d1b; --warn: #f0c35a; --warn-soft: #3a3020;
  --pass: #6fd18f; --normal: #a0a9b5; --weak: #ff8c80; --hold: #6b7480;
  --passage-bg: #1f242b; --passage-fg: #e8ebef; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.hidden { display: none !important; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 10px; }
.brand { font-weight: 700; font-size: 15px; white-space: nowrap; }
.top .who { color: var(--muted); font-size: 14px; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .nav { display: flex; gap: 4px; overflow-x: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 16px var(--gutter) 80px; }
.narrow { max-width: 560px; margin: 0 auto; }

/* 띠 */
.band { padding: 8px var(--gutter); font-size: 14px; text-align: center; }
.band.mode { background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid var(--line); }
.band.off { background: var(--bad-soft); color: var(--bad); }

/* 카드 · 단추 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card h2 { font-size: 17px; margin: 0 0 10px; }
.card h3 { font-size: 15px; margin: 14px 0 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 10px 16px; min-height: 44px; cursor: pointer; font-weight: 600; text-decoration: none; color: var(--fg); }
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.big { width: 100%; padding: 14px; font-size: 17px; }
.btn.small { min-height: 34px; padding: 6px 10px; font-size: 14px; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.tab { border: none; background: none; border-radius: 6px; padding: 8px 10px; min-height: 38px; font-weight: 600; color: var(--muted); }
.btn.tab.on { color: var(--accent); background: var(--accent-soft); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.err { color: var(--bad); font-size: 14px; }
.pill { display: inline-block; font-size: 12.5px; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill.pass { background: var(--ok-soft); color: var(--pass); }
.pill.weak { background: var(--bad-soft); color: var(--weak); }
.pill.normal { background: var(--soft); color: var(--normal); }
.pill.hold { background: var(--soft); color: var(--hold); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
input[type=text], input[type=password], input[type=number], select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--card); min-height: 44px; }
textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
label.f { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 4px; }
.code-big { font-size: 44px; letter-spacing: 8px; font-weight: 800; text-align: center; margin: 14px 0; font-variant-numeric: tabular-nums; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { border-bottom: 1px solid var(--line); padding: 7px 6px; text-align: left; vertical-align: top; }
table.t th { color: var(--muted); font-weight: 600; background: var(--soft); }
.scroll-x { overflow-x: auto; }

/* 문제 화면 */
.solve { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 960px) { .solve.wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } .solve.wide .side { position: sticky; top: 70px; } }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; font-size: 13.5px; color: var(--muted); }
.qcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.q-stem { font-weight: 700; margin: 0 0 10px; line-height: 1.55; }
.q-stem u { text-underline-offset: 3px; }
.ans-stem { font-weight: 700; font-size: 16px; line-height: 1.55; margin: 0 0 12px; word-break: keep-all; }
.ans-stem u { text-underline-offset: 3px; }
@media (min-width: 960px) { .solve.wide .qbody > .q-stem.dup { display: none; } }
.q-pts { display: none; }
.set-inst { font-weight: 700; margin: 0 0 8px; }
.passage-box, .starting-box, .next-passage-box, .insertion-box, .react-box, .summary-box, .condition-box, .word-bank, .shared-passage {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 10px 0; background: var(--passage-bg); color: var(--passage-fg);
}
.passage-box p, .starting-box p, .next-passage-box p, .insertion-box p, .react-box p, .summary-box p, .shared-passage p { margin: 0 0 8px; }
.passage-box p:last-child, .starting-box p:last-child, .next-passage-box p:last-child, .insertion-box p:last-child, .shared-passage p:last-child { margin-bottom: 0; }
.passage-box, .starting-box, .next-passage-box, .insertion-box, .summary-box, .shared-passage { font-family: var(--serif); font-size: 17px; line-height: 1.75; }
.insertion-box { border-style: dashed; }
.starting-box { background: var(--soft); }
.react-box p { display: flex; gap: 8px; font-family: var(--serif); }
.react-box p b { white-space: nowrap; font-family: var(--sans); }
.q-blank { display: inline-block; min-width: 7.5em; border-bottom: 2px solid currentColor; vertical-align: baseline; height: 1.1em; }
.summary-blank { display: inline-block; min-width: 4.5em; border-bottom: 2px solid currentColor; text-align: center; font-family: var(--sans); font-weight: 700; font-size: 14px; padding: 0 4px; }
.vx-long { min-width: 12em; }
.condition-box, .word-bank { font-size: 15px; font-family: var(--sans); }
.condition-badge, .word-bank-badge { display: inline-block; font-size: 12.5px; font-weight: 700; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; margin-right: 6px; }
.condition-list { margin: 6px 0 0; padding: 0; list-style: none; }
.condition-list li { display: flex; gap: 6px; }
.cond-n { min-width: 1.4em; }
.word-bank-words { line-height: 2; }
.wb-w { font-family: var(--serif); white-space: nowrap; }
.tb-es, .vx-tbl { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; background: var(--passage-bg); }
.tb-es th, .tb-es td, .vx-tbl td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.tb-es th, .vx-tbl td.h { background: var(--soft); width: 7.5em; font-weight: 700; }
.chart-box { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin: 10px 0; }
.chart-box svg { width: 100%; height: auto; display: block; }
.vxu b, .vxnum { font-family: var(--sans); font-weight: 700; margin-right: 2px; }
.vxu u { text-underline-offset: 3px; }
.vxins { font-family: var(--sans); white-space: nowrap; }
.vxbl { font-family: var(--sans); }
.wc { font-size: 13px; color: var(--muted); font-family: var(--sans); }
.fn { font-size: 13px; color: var(--muted); font-family: var(--sans); }
.ln, .ar { display: none; }
.passage-box u, .shared-passage u { text-underline-offset: 3px; }

/* 답 고르기 */
.choices-ui { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.choice { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: 10px; padding: 11px 12px; cursor: pointer; min-height: 48px; line-height: 1.5; }
.choice .num { font-weight: 800; min-width: 1.3em; font-family: var(--sans); }
.choice .txt { font-family: var(--serif); font-size: 16.5px; }
.choice.ko .txt, .choice.lbl .txt { font-family: var(--sans); }
.choice:hover { background: var(--soft); }
.choice.sel { border-color: var(--accent); background: var(--accent-soft); }
.choice.right { border-color: var(--ok); background: var(--ok-soft); }
.choice.wrong { border-color: var(--bad); background: var(--bad-soft); }
.choice:disabled { cursor: default; }
.choices-ui.pos { flex-direction: row; flex-wrap: wrap; }
.choices-ui.pos .choice { width: auto; flex: 1 1 56px; justify-content: center; }
.pairs-head, .choice.pair { display: grid; grid-template-columns: 2em 1fr 1fr; gap: 8px; }
.pairs-head { font-weight: 700; font-size: 14px; color: var(--muted); padding: 0 12px; }
.choice.pair .txt { font-family: var(--serif); }
.blank-ui { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.blank-row { display: grid; grid-template-columns: 3.2em 1fr; gap: 8px; align-items: start; }
.blank-row .lab { font-weight: 700; padding-top: 10px; }
.fix-row { display: grid; grid-template-columns: 3.2em 6.5em 1fr; gap: 8px; align-items: center; }
.fix-row.nosym { grid-template-columns: 3.2em 1fr auto 1fr; }
.fix-row .arrow { color: var(--muted); }
.sym-toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.sym-toggles .choice { width: auto; flex: 0 0 auto; padding: 8px 16px; justify-content: center; }
.blank-input.ok { border-color: var(--ok); background: var(--ok-soft); }
.blank-input.no { border-color: var(--bad); background: var(--bad-soft); }
.actions { display: flex; gap: 10px; margin-top: 14px; }
.actions .btn { flex: 1; }

/* 채점 결과 · 해설 */
.result { border-radius: var(--radius); padding: 12px 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.result.ok { background: var(--ok-soft); color: var(--ok); }
.result.bad { background: var(--bad-soft); color: var(--bad); }
.result.part { background: var(--warn-soft); color: var(--warn); }
.expl section { border-top: 1px solid var(--line); padding: 12px 0 2px; }
.expl section:first-child { border-top: none; }
.expl h4 { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.expl p { margin: 0 0 6px; }
.expl .mine { background: var(--bad-soft); border-radius: 8px; padding: 8px 10px; }
.cn { display: grid; grid-template-columns: 1.6em 1fr; gap: 4px; margin: 4px 0; }
.cn b { font-family: var(--sans); }
.cn.correct b { color: var(--ok); }
details { margin: 8px 0; }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.ko-list { margin: 6px 0; padding-left: 0; list-style: none; font-size: 14.5px; }
.vocab-list { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14.5px; }
.vocab-list span b { font-family: var(--serif); font-weight: 600; }
.ans-cmp { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 15px; }
.accept { font-family: var(--serif); }
.cmp-badge { font-weight: 700; }

/* 눌러서 뜻 보기 */
.lx { cursor: pointer; border-bottom: 1px dotted var(--muted); }
.lx:hover, .lx.on { background: var(--accent-soft); }
.lx-hint { font-size: 13px; color: var(--muted); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.15); padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); max-height: 45vh; overflow-y: auto; }
.sheet .h { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.sheet .k { font-size: 16px; margin-top: 4px; }
.sheet .x { position: absolute; right: 10px; top: 8px; }
@media (min-width: 720px) { .sheet { left: auto; right: 24px; bottom: 24px; width: 380px; border: 1px solid var(--line); border-radius: 12px; } }

/* 모달 */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--card); width: 100%; max-width: 560px; border-radius: 14px 14px 0 0; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto; }
@media (min-width: 720px) { .modal-bg { align-items: center; } .modal { border-radius: 14px; max-width: 720px; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; z-index: 70; font-size: 14px; max-width: calc(100% - 32px); }

/* 현황 */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.stat .v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 13px; color: var(--muted); }
.glist { display: flex; flex-direction: column; gap: 10px; }
.g { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.g .name { font-weight: 600; font-size: 15px; }
.g .line { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); }
.bar { grid-column: 1 / -1; height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
.bar.pass i { background: var(--pass); } .bar.weak i { background: var(--weak); }
.map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 720px) { .map { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.map .c { border-radius: 8px; padding: 8px 4px; text-align: center; font-size: 13px; border: 1px solid var(--line); background: var(--card); }
.map .c b { display: block; font-size: 15px; }
.map .c.PASS { background: var(--ok-soft); border-color: var(--pass); color: var(--pass); }
.map .c.약점 { background: var(--bad-soft); border-color: var(--weak); color: var(--weak); }
.map .c.보통 { background: var(--soft); }
.map .c.보류 { color: var(--hold); }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; border: 1px solid var(--line); }
.chart-line svg { width: 100%; height: auto; display: block; }
.words { display: flex; flex-wrap: wrap; gap: 6px; }
.words span { background: var(--soft); border-radius: 6px; padding: 3px 8px; font-size: 14px; }
.words span b { font-family: var(--serif); }

/* 강사 */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.scard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; }
.scard:hover { border-color: var(--accent); }
.scard .nm { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hold); display: inline-block; }
.dot.on { background: var(--ok); }
.feed { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.feed .a { border-left: 4px solid var(--line); padding: 6px 10px; background: var(--card); border-radius: 0 8px 8px 0; font-size: 14px; }
.feed .a.leave { border-color: var(--warn); } .feed .a.streak { border-color: var(--bad); } .feed .a.appeal, .feed .a.maybe { border-color: var(--accent); } .feed .a.device { border-color: var(--muted); }
.feed .a .tm { color: var(--muted); font-size: 12.5px; }
.preview { border: 1px dashed var(--line); border-radius: 8px; padding: 10px; }
.kv { display: grid; grid-template-columns: 7em 1fr; gap: 4px 10px; font-size: 14px; }

/* 머리 — 좁은 화면에서는 탭을 둘째 줄로 */
@media (max-width: 720px) {
  .top-in { flex-wrap: wrap; row-gap: 4px; padding-bottom: 6px; }
  .top .nav { order: 3; width: 100%; }
  .top .who { margin-left: auto; }
}
.top .nav .btn.tab { white-space: nowrap; flex: 0 0 auto; }
.cnt { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11.5px; font-weight: 700; margin-left: 4px; text-align: center; }
.top .band { border-top: 1px solid var(--line); }

/* 범위 지도 칸 = 단추 */
.map .c { font: inherit; font-size: 13px; color: var(--fg); cursor: pointer; line-height: 1.35; }
.map .c.on { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 강사 — 실시간 */
.live { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 1100px) { .live { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .live-side { position: sticky; top: 70px; } }
.scard { display: flex; flex-direction: column; gap: 3px; }
.scard.away { border-color: var(--bad); background: var(--bad-soft); }
.awayline { color: var(--bad); font-weight: 700; font-size: 14px; }
.leaveline { color: var(--bad); }
.weakline { color: var(--weak); }
.chk { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.chk input { width: 18px; height: 18px; }
.chk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; max-height: 50vh; overflow-y: auto; }
.setrow { padding: 8px 0; border-top: 1px solid var(--line); }
.setrow:first-of-type { border-top: none; }
.devpend { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.code-mid { font-size: 28px; font-weight: 800; letter-spacing: 4px; font-variant-numeric: tabular-nums; min-width: 6.5em; }
.devact { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.devact select { width: auto; min-width: 200px; }
.devrow { padding: 8px 0; border-top: 1px solid var(--line); }
table.t tr.off td { color: var(--muted); opacity: .7; }
.nowrap { white-space: nowrap; }
.daytbl td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.daytbl td.num.good { background: var(--ok-soft); }
.daytbl td.num.low { background: var(--bad-soft); }
.dist { display: inline-flex; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dist .k { font-weight: 800; color: var(--ok); }
.dist .w { font-weight: 700; color: var(--bad); }
.lexrow { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .lexrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }
.lexedit { display: flex; flex-direction: column; gap: 6px; }
.modal.wide { max-width: 1100px; }
input.file { font-size: 14px; }

/* 다듬기 */
.map .c { word-break: keep-all; }
.g .pill { align-self: start; }
.lx { border-bottom: 1px dotted color-mix(in srgb, var(--muted) 55%, transparent); }
@media (max-width: 720px) {
  .top .nav { flex-wrap: wrap; overflow-x: visible; }
  .top .nav .btn.tab { padding: 6px 9px; min-height: 36px; }
  .live { display: flex; flex-direction: column; }
  .live-side { order: -1; }
  .live-side .feed { max-height: 230px; }
}
.card.note { background: var(--warn-soft); border-color: var(--warn); color: var(--fg); }

/* ── 목표 · 진전도 */
.goal h2 { font-size: 17px; }
.gbar { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 10px; }
.gbar .glab { font-size: 14px; color: var(--muted); font-weight: 600; }
.gbar .track { height: 12px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.gbar .track i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.gbar.full .track i { background: var(--pass); }
.gbar .gnum { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; white-space: nowrap; }
.gline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.gweek { display: grid; grid-template-columns: repeat(7, 34px); gap: 5px; }
.gday { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 42px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 12px; line-height: 1.2; }
.gday .dw { color: var(--muted); }
.gday .mk { font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.gday.some { background: var(--soft); }
.gday.met { background: var(--ok-soft); border-color: var(--pass); color: var(--pass); }
.gday.met .dw { color: var(--pass); }
.gday.today { box-shadow: 0 0 0 2px var(--accent) inset; }
.gday.future { border-style: dashed; opacity: .55; }
.gstreak { font-size: 15px; }
.gstreak b { font-size: 20px; font-variant-numeric: tabular-nums; }
.gexam { margin: 12px 0 0; font-size: 14.5px; }
.gnear { margin-top: 10px; font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gnear .tiny { flex-basis: 100%; }
.gstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 13.5px; }
.gs-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.gs-l { color: var(--muted); font-weight: 600; }
.gs-track { width: 54px; height: 7px; border-radius: 999px; background: var(--soft); overflow: hidden; display: inline-block; }
.gs-track i { display: block; height: 100%; background: var(--accent); }
.gs-item.full .gs-track i { background: var(--pass); }
.gs-n { font-variant-numeric: tabular-nums; font-weight: 700; }
.gs-tag { color: var(--muted); white-space: nowrap; }
.gs-tag.ok { color: var(--pass); font-weight: 700; }
.progline { margin: 8px 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--soft); font-size: 14.5px; }
.progline .ok { color: var(--pass); }
.progline .sep { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 999px; padding: 6px 12px; min-height: 38px; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

/* ── 자리비움 — 화면 전체를 가림 */
.away-cover { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px var(--gutter); }
.away-cover.hidden { display: none; }
.away-box { max-width: 420px; width: 100%; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 20px; }
.away-box h2 { margin: 0 0 8px; font-size: 22px; }
.away-box .btn { width: 100%; margin-top: 10px; }
body.away-on { overflow: hidden; }
.idleline { color: var(--warn); font-weight: 700; font-size: 14px; }
.goalok { color: var(--pass); }
.rv-item { padding: 12px; margin: 8px 0; cursor: pointer; }
.rv-item:hover { border-color: var(--accent); }
.rv-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rv-go { color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
.rv-view { min-height: 34px; padding: 4px 10px; font-size: 13.5px; }
