/* 디자인 기준: Toss DESIGN.md (TDS Mobile 토큰) — ~/dev/cafe24-partner/harness/design-references/toss/DESIGN.md
   색: foreground #191f28 · body #4e5968 · surface #f2f4f6 · border #e5e8eb · primary #3182f6 · weak #e8f3ff/#1b64da
   버튼 xlarge 56px / radius 16 / 17px 600 · 그림자 없음(평면 색 층) · 한 화면 한 가지 일
   대비: #3182f6 위 흰 글자는 3.71:1 이라 글자 배경으로 쓰지 않고 #1b64da(5.41:1) 를 쓴다. muted 글자는 #6b7684(4.62:1) */
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/PretendardSubset.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --fg: #191f28;
  --body: #4e5968;
  --muted: #6b7684;
  --bg: #ffffff;
  --surface: #f2f4f6;
  --line: #e5e8eb;
  --blue: #3182f6;
  --blue-ink: #1b64da;
  --blue-weak: #e8f3ff;
  --green: #03804a;
  --green-weak: #e5f6ed;
  --red: #d22030;
  --red-weak: #ffeeee;
  --orange: #a35200;
  --orange-weak: #fff3e0;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  -webkit-tap-highlight-color: transparent;
}
body.gray { background: var(--surface); }
a { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 2px; border-radius: 8px; }
button, input, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--fg); color: #fff; padding: 8px 12px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 쪽 뼈대 — 모바일 한 줄 */
.page { max-width: 560px; margin: 0 auto; padding: 0 20px 140px; }
.page.wide { max-width: 1040px; }
.bar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.bar-top .crumb { font-size: 15px; color: var(--muted); text-decoration: none; font-weight: 600; }
h1.title { font-size: 26px; line-height: 36px; font-weight: 700; margin: 28px 0 8px; letter-spacing: -0.02em; }
.lead { color: var(--body); font-size: 17px; margin: 0 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 21px; }

/* 버튼 — TDS xlarge */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 20px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--blue-ink); color: #fff; font-size: 17px; font-weight: 600;
  transition: transform .08s ease, background-color .15s;
}
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.weak { background: var(--blue-weak); color: var(--blue-ink); }
.btn.gray { background: var(--surface); color: var(--body); }
.btn.danger { background: var(--red-weak); color: var(--red); }
.btn.sm { height: 38px; border-radius: 10px; font-size: 15px; padding: 0 14px; }
.btn:disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; transform: none; }
.cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, rgba(255,255,255,0)); z-index: 20; }
body.gray .cta { background: linear-gradient(to top, var(--surface) 70%, rgba(242,244,246,0)); }
.cta-inner { max-width: 520px; margin: 0 auto; }
.cta .hint { text-align: center; font-size: 14px; color: var(--muted); margin: 8px 0 0; min-height: 21px; }

/* 입력 */
label.lbl { display: block; font-size: 15px; font-weight: 600; color: var(--body); margin: 0 0 8px; }
.input, textarea.input {
  width: 100%; border: 0; border-radius: 14px; background: var(--surface); padding: 16px;
  font-size: 17px; line-height: 26px; color: var(--fg); outline: none;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s, background-color .15s;
}
.input::placeholder { color: #8b95a1; }
.input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--blue-ink); }
.input[aria-invalid=true] { box-shadow: inset 0 0 0 2px var(--red); }
textarea.input { min-height: 104px; resize: none; overflow: hidden; }
.help { font-size: 14px; color: var(--muted); margin: 8px 0 0; min-height: 21px; }
.help.bad { color: var(--red); font-weight: 600; }

/* 4자리 코드 칸 */
.pin { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pin .box { height: 76px; border-radius: 16px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; transition: box-shadow .15s, background-color .15s; }
.pin .box.on { background: #fff; box-shadow: inset 0 0 0 2px var(--blue-ink); }
.pin .box.bad { box-shadow: inset 0 0 0 2px var(--red); }
.pin input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; font-size: 16px; caret-color: transparent; }
.pin.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* 카드·목록 */
.card { background: #fff; border-radius: 20px; padding: 22px 20px; }
body:not(.gray) .card { background: var(--surface); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 600; background: var(--surface); color: var(--body); white-space: nowrap; }
.chip.blue { background: var(--blue-weak); color: var(--blue-ink); }
.chip.green { background: var(--green-weak); color: var(--green); }
.chip.red { background: var(--red-weak); color: var(--red); }
.chip.orange { background: var(--orange-weak); color: var(--orange); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

.toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--fg); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 600; z-index: 60; }
.toast:empty { display: none; }
.banner { border-radius: 14px; padding: 14px 16px; font-size: 15px; font-weight: 600; margin: 8px 0 0; }
.banner:empty { display: none; }
.banner.bad { background: var(--red-weak); color: var(--red); }
.banner.warn { background: var(--orange-weak); color: var(--orange); }

/* 연결 상태 — 정상일 땐 작게, 끊기면 눈에 띄게 */
#conn { font-size: 13px; height: 26px; }

/* 팀 화면 */
.team-head h1 { font-size: 22px; line-height: 33px; margin: 0; font-weight: 700; }
.people { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.score-card { margin-top: 16px; }
.score-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.score-big { font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.score-big small { font-size: 20px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.delta { font-weight: 700; font-size: 17px; }
.delta.up { color: var(--blue-ink); }
.delta.down { color: var(--red); }
.crit-list { margin-top: 18px; display: grid; gap: 12px; }
.crit-row { display: grid; grid-template-columns: 92px 1fr 54px; align-items: center; gap: 10px; font-size: 15px; }
.crit-row .n { color: var(--body); font-weight: 600; }
.crit-row .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.meter { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 99px; transition: width .5s ease; }
.next { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.next h3 { font-size: 15px; color: var(--body); margin: 0 0 10px; font-weight: 600; }
.next ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.next li { display: flex; gap: 10px; align-items: baseline; font-size: 16px; }
.next li b { color: var(--blue-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

.field-card { margin-top: 12px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.field-head label { font-size: 18px; font-weight: 700; margin: 0; }
.field-head .pts { font-size: 14px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 6px; min-height: 20px; }
.meta .save.bad { color: var(--red); font-weight: 600; }
.checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: start; font-size: 15px; line-height: 22px; }
.checks .ic { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; margin-top: 0; }
.checks .ic.ok { background: var(--blue-ink); color: #fff; }
.checks .ic.no { background: var(--line); color: var(--muted); }
.checks .ic.wait { background: transparent; box-shadow: inset 0 0 0 1.5px #b0b8c1; color: transparent; }
.checks .w { font-size: 13px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.checks .tip { display: block; color: var(--blue-ink); font-weight: 600; font-size: 14px; }
.checks .q { display: block; color: var(--muted); font-size: 14px; }
.checks .ai { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.conflict { margin-top: 10px; }
.stale { font-size: 13px; color: var(--orange); font-weight: 600; margin-top: 8px; }

.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 전광판 — 프로젝터 1920×1080 기준 */
body.screen { background: #fff; }
.screen-wrap { padding: 36px 56px 28px; min-height: 100vh; display: flex; flex-direction: column; }
.screen-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.screen-top h1 { font-size: 44px; line-height: 1.2; margin: 0; font-weight: 800; letter-spacing: -0.03em; }
.screen-top .sub { font-size: 22px; color: var(--body); margin: 10px 0 0; font-weight: 600; }
.join-box { display: flex; gap: 18px; align-items: center; background: var(--surface); border-radius: 20px; padding: 16px 20px; }
.join-box .qr { width: 132px; height: 132px; background: #fff; border-radius: 12px; padding: 8px; }
.join-box .qr svg { width: 100%; height: 100%; display: block; }
.join-box .url { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.join-box .how { font-size: 18px; color: var(--body); margin-top: 4px; }
.board { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.board li { display: grid; grid-template-columns: 64px minmax(200px, 1.2fr) 2fr 150px 110px; align-items: center; gap: 22px; background: var(--surface); border-radius: 20px; padding: 0 28px; height: 96px; position: relative; transition: transform .5s ease, background-color .3s; }
.board li.running { background: var(--orange-weak); }
.board li.flash { animation: flash 1.4s ease; }
@keyframes flash { 0% { background: var(--blue-weak); } 100% { background: var(--surface); } }
.board .rk { font-size: 30px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.board .rk.top { color: var(--blue-ink); }
.board .rk.none { color: var(--line, #d1d6db); }
.board .nm { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .nm small { display: block; font-size: 17px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.board .track { height: 18px; background: #fff; border-radius: 99px; overflow: hidden; }
.board .track > i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 99px; transition: width .8s ease; }
.board .track.fill > i { background: #b0b8c1; }
.board .st { font-size: 20px; font-weight: 700; color: var(--body); display: flex; align-items: center; gap: 8px; }
.board .st.run { color: var(--orange); }
.board .sc { font-size: 48px; font-weight: 800; text-align: right; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.board .sc small { font-size: 18px; display: block; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.board .sc small.up { color: var(--blue-ink); }
.board .sc small.down { color: var(--red); }
.board .sc.hide { font-size: 22px; color: var(--muted); font-weight: 700; }
.screen-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 17px; margin-top: 18px; font-weight: 600; }

/* 강사 화면 */
.sec { margin-top: 28px; }
.sec > h2 { font-size: 20px; margin: 0 0 12px; font-weight: 700; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.toggle + .toggle { border-top: 1px solid var(--line); }
.toggle .t { font-size: 17px; font-weight: 600; }
.toggle .d { font-size: 14px; color: var(--muted); }
.sw { position: relative; width: 52px; height: 32px; flex: none; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sw span { position: absolute; inset: 0; border-radius: 99px; background: #d1d6db; transition: background-color .2s; pointer-events: none; }
.sw span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw input:checked + span { background: var(--blue-ink); }
.sw input:checked + span::after { transform: translateX(20px); }
.sw input:focus-visible + span { outline: 3px solid var(--blue-ink); outline-offset: 2px; }
.sw input:disabled + span { opacity: .5; }
table.codes { width: 100%; border-collapse: collapse; }
table.codes caption { text-align: left; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
table.codes th, table.codes td { text-align: left; padding: 12px 6px; border-bottom: 1px solid var(--line); font-size: 16px; }
table.codes th { font-size: 13px; color: var(--muted); font-weight: 600; }
table.codes td.code { font-size: 26px; font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.bigcode { font-size: 40px; font-weight: 800; letter-spacing: .14em; font-variant-numeric: tabular-nums; }

/* 코드 카드 인쇄 */
.cards { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body > *:not(.cards) { display: none !important; }
  .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }
  .cardp { border: 1.5px dashed #8b95a1; border-radius: 6mm; padding: 7mm; text-align: center; break-inside: avoid; }
  .cardp .t { font-size: 22pt; font-weight: 800; }
  .cardp .c { font-size: 44pt; font-weight: 800; letter-spacing: .16em; margin: 2mm 0; }
  .cardp .qr { width: 34mm; height: 34mm; margin: 2mm auto; }
  .cardp .qr svg { width: 100%; height: 100%; }
  .cardp .u { font-size: 12pt; color: #4e5968; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 통과 퀘스트 */
.quest { margin: 16px 0 12px; padding: 18px 20px; border-radius: 20px; background: var(--card, #fff); }
.quest p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.quest .q-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; }
.quest .q-tag { font-size: 13px; font-weight: 700; color: var(--blue-ink); background: #e8f3ff; padding: 4px 8px; border-radius: 8px; }
.quest .q-track { margin-top: 12px; height: 10px; border-radius: 99px; background: #e5e8eb; overflow: hidden; }
.quest .q-track i { display: block; height: 100%; background: #3182f6; border-radius: 99px; transition: width .4s; }
.quest.done { background: #1b64da; color: #fff; }
.quest.done p { color: #e8f3ff; }
.quest .q-big { font-size: 28px; font-weight: 800; }
.screen .sub .pass-rule { color: var(--blue-ink); }
.board li.passed { background: #e8f3ff; }
.board .rk.pass { display: flex; flex-direction: column; align-items: center; font-size: 15px; color: #1b64da; line-height: 1.1; }
.board .rk.pass b { font-size: 30px; }
.board li.pop { animation: pop .9s ease-out; }
@keyframes pop { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(49,130,246,.6); } 40% { transform: scale(1.02); box-shadow: 0 0 0 14px rgba(49,130,246,0); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .board li.pop { animation: none; } }
.seg { display: flex; gap: 6px; flex: none; }

/* 팀 화면 탭 — 진단 / 근거표 */
.tabs { display: flex; gap: 4px; background: #e5e8eb; border-radius: 14px; padding: 4px; margin: 2px 0 16px; }
.tabs a { flex: 1; text-align: center; padding: 10px 8px; border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--body); text-decoration: none; }
.tabs a[aria-current=page] { background: #fff; color: var(--fg); }

/* 근거표 검사 */
.sec-h { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 104px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px #d1d6db; cursor: pointer; text-align: center; padding: 12px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:focus-within { box-shadow: inset 0 0 0 2px var(--blue-ink); }
.drop.over { background: var(--blue-weak); box-shadow: inset 0 0 0 2px var(--blue-ink); }
.drop.busy { opacity: .6; pointer-events: none; }
.drop-t { font-size: 17px; font-weight: 700; color: var(--blue-ink); }
.ev-rows { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 14px; }
.ev-row { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ev-row-h { display: flex; gap: 8px; align-items: center; }
.ev-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--fg); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ev-row-h .input { flex: 1; min-width: 0; }
.input.sm { padding: 10px 12px; font-size: 16px; line-height: 22px; border-radius: 10px; }
.ev-row textarea.input { min-height: 56px; padding: 12px; font-size: 16px; line-height: 24px; }
.ev-blind { margin-top: 16px; }
.ev-how { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.ev-lv { display: grid; gap: 4px; text-align: right; font-size: 15px; color: var(--body); }
.ev-lv b { margin-left: 4px; }
.lv-높음 { color: var(--green); }
.lv-보통 { color: var(--orange); }
.lv-낮음 { color: var(--red); }
.ev-h { font-size: 15px; color: var(--body); margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; }
.ev-verd { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ev-verd li p { margin: 4px 0 0; }
.ev-claim { font-size: 15px; color: var(--fg); }
.ev-quote { font-size: 14px; color: var(--body); background: var(--surface); border-radius: 10px; padding: 8px 10px; }
.ev-fix { font-size: 14px; color: var(--blue-ink); font-weight: 600; }
.ev-verd a { word-break: break-all; }
.ev-gap { margin-top: 12px; font-size: 14px; color: var(--body); }
.ev-gap summary { cursor: pointer; font-weight: 600; color: var(--blue-ink); }
.ev-gap p { white-space: pre-line; margin: 8px 0 0; }
.next li b.n { min-width: 16px; }

/* PC — 근거표는 왼쪽 입력, 오른쪽 결과 */
@media (min-width: 1024px) {
  .page.ev-page { max-width: 1180px; }
  .ev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .ev-right { position: sticky; top: 16px; max-height: calc(100vh - 140px); overflow: auto; border-radius: 20px; }
  .ev-page + .cta .cta-inner { max-width: 1180px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
  .ev-page + .cta .cta-inner .hint { grid-column: 2; grid-row: 1; text-align: left; margin: 0; }
  .ev-page + .cta .cta-inner .btn { grid-column: 1; grid-row: 1; }
}
@media (max-width: 1023px) { .ev-right { margin-top: 12px; } }

/* PC — 진단 화면도 넓게: 왼쪽 점수·통과, 오른쪽 칸 */
@media (min-width: 1024px) {
  .page.team-page { max-width: 1120px; display: grid; grid-template-columns: 380px minmax(0, 1fr); column-gap: 20px; align-items: start; }
  .team-page > .bar-top, .team-page > .tabs, .team-page > .team-head { grid-column: 1 / -1; }
  .team-page > .quest { grid-column: 1; grid-row: 4; margin-top: 0; }
  .team-page > .score-card { grid-column: 1; grid-row: 5; position: sticky; top: 16px; }
  .team-page > section[aria-labelledby=writeTitle] { grid-column: 2; grid-row: 4 / span 3; }
  .team-page > section[aria-labelledby=writeTitle] .field-card:first-child { margin-top: 0; }
  .team-page > #source { grid-column: 1 / -1; }
  .team-page + .cta .cta-inner { max-width: 1120px; padding-left: 400px; }
}

/* 모바일 — 전광판·강사 화면이 휴대폰에서도 읽히게 */
@media (max-width: 760px) {
  .screen-wrap { padding: 16px; }
  .screen-top { flex-direction: column; gap: 14px; }
  .screen-top h1 { font-size: 26px; }
  .screen-top .sub { font-size: 15px; }
  .join-box { width: 100%; padding: 12px; gap: 12px; }
  .join-box .qr { width: 84px; height: 84px; padding: 4px; }
  .join-box .url { font-size: 18px; word-break: break-all; }
  .join-box .how { font-size: 14px; }
  .board { margin-top: 16px; gap: 8px; }
  .board li { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "rk nm sc" "tr tr tr" "st st st"; height: auto; padding: 12px 14px; gap: 6px 10px; border-radius: 14px; }
  .board .rk { grid-area: rk; font-size: 20px; }
  .board .rk.pass b { font-size: 20px; }
  .board .nm { grid-area: nm; font-size: 18px; }
  .board .nm small { font-size: 13px; }
  .board .track { grid-area: tr; height: 8px; }
  .board .st { grid-area: st; font-size: 14px; }
  .board .sc { grid-area: sc; font-size: 28px; }
  .board .sc small { font-size: 12px; }
  .screen-foot { font-size: 13px; flex-wrap: wrap; gap: 6px; }
  table.codes th, table.codes td { padding: 10px 4px; font-size: 14px; }
  table.codes td.code { font-size: 20px; letter-spacing: .06em; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bigcode { font-size: 30px; }
}
.ev-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.ev-sum > div { background: var(--surface); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.ev-sum b { font-size: 22px; font-weight: 800; }
.ev-sum b small { font-size: 13px; color: var(--muted); }
table.ev-table td { vertical-align: top; font-size: 14px; }
table.ev-table { min-width: 720px; }
#evPick .btn[aria-pressed=true] { background: var(--blue-ink); color: #fff; }
.ev-sum b .lv-높음, .ev-sum b .lv-보통, .ev-sum b .lv-낮음 { font-size: 15px; font-weight: 700; margin-left: 4px; }
