/* Generated by tools/build.js: the design pass 3 kit block (tools/p3-kit.css, a copy of kiip_prep/tools/pass3-kit) + src/app.css. Do not edit. */
/* === OBL-P3:START v1 sha256:e7c67b5d4eb4c42d (design pass 3 kit; canonical kiip_prep/tools/pass3-kit/pass3.css; do not edit copies, run copy.js) === */
/* Design pass 3 kit, canonical source (docs/design-pass3-2026-10-31.md). tools/pass3-kit/copy.js puts this file, between the
   OBL-P3 markers it adds, into each site's main stylesheet; copies must stay byte-identical (each repo's tests check the hash).
   Everything is opt-in: tokens and Korean typesetting apply under .p3 (class on <html> or <body>), components are p3-* classes.
   No gradients and no @font-face here: Pretendard comes from https://obyeollab.com/fonts/pretendard/ through the boot script
   (font-boot.js, OBL-P3-FONTBOOT) with font-display: optional; the same script defines "Pretendard Fallback", the metric-adjusted
   system face that --font lists right after Pretendard (local() only, nothing to download). Motion only on transform/opacity. */

/* ---- tokens: paper and ink (AA: text 15.8 / 8.7 / 6.0 on the canvas; dark 15.8 / 10.1 / 7.2) ---- */
.p3 {
  --font: "Pretendard Variable", Pretendard, "Pretendard Fallback", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI Variable Text", "Segoe UI", Roboto, "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", "Noto Sans", sans-serif;
  --c-bg: #f6f4ef; --c-surface: #fffdf8; --c-surface-2: #efece4; --c-surface-3: #e6e2d8;
  --c-line: #e2ddd2; --c-line-strong: #857e70;
  --c-text: #1c1a16; --c-text-2: #4a453c; --c-text-3: #625c50;
  --c-ok-soft: #e7f2e9; --c-bad-soft: #f9e8e8;
  --c-tint: #bfcbef;
  --sheet: 0 0 0 1px rgba(28, 26, 22, .06), 0 1px 2px rgba(28, 26, 22, .06);
  --r-sheet: 14px;
  --t-mid: 180ms;
}
@media (prefers-color-scheme: dark) {
  .p3 {
    --c-bg: #151412; --c-surface: #1e1c19; --c-surface-2: #25231f; --c-surface-3: #2f2c27;
    --c-line: #36332d; --c-line-strong: #7f796d;
    --c-text: #f1ede5; --c-text-2: #c6bfb2; --c-text-3: #a8a194;
    --c-ok-soft: #16301f; --c-bad-soft: #371a1d;
    --c-tint: #424963;
    --sheet: 0 0 0 1px var(--c-line);
  }
}
/* illustration tint per service: data-svc on any element (a tile, a section, <body>) */
[data-svc="brand"], [data-svc="tools"] { --c-tint: #bfcbef; } [data-svc="kiip"] { --c-tint: #bfcaeb; } [data-svc="topik"] { --c-tint: #cdc4ef; }
[data-svc="eps"] { --c-tint: #b6d2cc; } [data-svc="life"] { --c-tint: #edc0c5; } [data-svc="drive"] { --c-tint: #e4caae; }
[data-svc="kdrama"] { --c-tint: #dcbfde; } [data-svc="games"] { --c-tint: #edbece; } [data-svc="leadhive"] { --c-tint: #c9cced; }
@media (prefers-color-scheme: dark) {
  [data-svc="brand"], [data-svc="tools"] { --c-tint: #424963; } [data-svc="kiip"] { --c-tint: #414863; } [data-svc="topik"] { --c-tint: #4e4763; }
  [data-svc="eps"] { --c-tint: #335750; } [data-svc="life"] { --c-tint: #664145; } [data-svc="drive"] { --c-tint: #664d2e; }
  [data-svc="kdrama"] { --c-tint: #58455a; } [data-svc="games"] { --c-tint: #663e4c; } [data-svc="leadhive"] { --c-tint: #464863; }
}

/* ---- Korean typesetting: Hangul breaks between words only; a word longer than the line still breaks; scripts without spaces
   break as they need, but Korean inside them (lang="ko" or .p3-ko) keeps whole words. Headings balance, text wraps "pretty". ---- */
.p3 { word-break: keep-all; overflow-wrap: anywhere; }
html:is(:lang(zh), :lang(ja), :lang(th), :lang(km), :lang(my)).p3, html:is(:lang(zh), :lang(ja), :lang(th), :lang(km), :lang(my)) .p3 { word-break: normal; }
.p3 [lang="ko"], .p3 .p3-ko { word-break: keep-all; }
.p3 :is(h1, h2, h3) { text-wrap: balance; }
.p3 :is(p, li) { text-wrap: pretty; }

/* ---- spot illustrations: one hand. 64x64 grid, 2px ink line (thin 1.5, bold 3), round caps; one flat tint mass set 3px off ---- */
.p3-art { display: block; flex: none; width: 56px; height: 56px; overflow: visible; transition: transform var(--t-mid, 180ms) cubic-bezier(.2, 0, 0, 1); }
.p3-art .ink { fill: none; stroke: var(--c-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p3-art .ink.paper { fill: var(--c-surface); }
.p3-art .thin { stroke-width: 1.5; }
.p3-art .bold { stroke-width: 3; }
.p3-art .dots { stroke-width: 3.4; }
.p3-art .solid { fill: var(--c-text); }
.p3-art .tint { fill: var(--c-tint); }
:is(a, button):hover > .p3-art, :is(a, button):hover > .p3-art-wrap > .p3-art { transform: rotate(-4deg) scale(1.04); }

/* ---- surfaces: a sheet of paper, a printed rule over a section title, a printed box, a receipt ---- */
.p3-sheet { border-radius: var(--r-sheet); background: var(--c-surface); box-shadow: var(--sheet); }
.p3-rule { padding-top: 12px; border-top: 2px solid var(--c-text); letter-spacing: -.02em; }
.p3-rule--thin { border-top-width: 1px; }
.p3-print { border: 1px solid var(--c-text); border-radius: 2px; background: var(--c-surface); }
.p3-receipt { border-radius: 2px; background: var(--c-surface); box-shadow: var(--sheet); padding-bottom: 22px; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 95% 100%, 90% calc(100% - 6px), 85% 100%, 80% calc(100% - 6px), 75% 100%, 70% calc(100% - 6px), 65% 100%, 60% calc(100% - 6px), 55% 100%, 50% calc(100% - 6px), 45% 100%, 40% calc(100% - 6px), 35% 100%, 30% calc(100% - 6px), 25% 100%, 20% calc(100% - 6px), 15% 100%, 10% calc(100% - 6px), 5% 100%, 0 calc(100% - 6px)); }
.p3-receipt__rule { border: 0; border-top: 1px dashed var(--c-line-strong); margin: 10px 0; }
.p3-press { transition: transform var(--t-fast, 120ms) cubic-bezier(.2, 0, 0, 1); -webkit-tap-highlight-color: transparent; }
.p3-press:not([disabled]):active { transform: scale(.985); }

/* ---- data bars: a square track and a fill scaled with transform: scaleX(share) (set by the page; no width animation) ---- */
.p3-bar__track { display: block; height: 8px; background: var(--c-surface-3); overflow: hidden; }
.p3-bar__fill { display: block; height: 100%; background: var(--c-tint); transform-origin: 0 50%; }
.p3-bar__fill--accent { background: var(--c-accent); }

/* ---- answer choices: an OMR bubble that fills when chosen; after grading the grader's hand circle round the right answer and an
   ink slash across a wrong pick (shape + colour + the page's hidden words, never colour alone). Put .p3-opt on the choice (the
   positioned box) and .p3-bubble on its number; states .is-chosen / .is-right / .is-wrong on .p3-opt. --p3-bubble-x = centre of
   the bubble from the choice's padding edge (default 25px). ---- */
.p3-opt { position: relative; }
.p3-opt .p3-bubble { position: relative; isolation: isolate; display: inline-grid; place-items: center; flex: none; width: 20px; height: 28px; padding: 0;
  border: 1.5px solid var(--c-text-2); border-radius: 50%; background: none; color: var(--c-text-2); font-size: .8125rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.p3-opt .p3-bubble::before { content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: 50%; background: var(--p3-fill, var(--c-accent)); opacity: 0; }
.p3-opt.is-chosen .p3-bubble { --p3-fill: var(--c-accent); border-color: var(--c-accent); background: none; color: var(--c-on-accent, #fff); }
.p3-opt.is-right .p3-bubble { --p3-fill: var(--c-ok); border-color: var(--c-ok); background: none; color: var(--c-surface); }
.p3-opt.is-wrong .p3-bubble { --p3-fill: var(--c-bad); border-color: var(--c-bad); background: none; color: var(--c-surface); }
.p3-opt:is(.is-chosen, .is-right, .is-wrong) .p3-bubble::before { opacity: 1; animation: p3-fill 160ms cubic-bezier(.2, 0, 0, 1) both; }
.p3-opt.is-right { border-color: var(--c-ok); background: var(--c-ok-soft); }
.p3-opt.is-wrong { border-color: var(--c-bad); background: var(--c-bad-soft); }
.p3-opt:is(.is-right, .is-wrong)::after { content: ""; position: absolute; left: calc(var(--p3-bubble-x, 25px) - 24px); top: 50%; width: 48px; height: 48px; margin-top: -24px;
  background: currentColor; pointer-events: none; animation: p3-mark 180ms cubic-bezier(.2, 0, 0, 1) both; }
.p3-opt.is-right::after { color: var(--c-ok); -webkit-mask: var(--p3-circle) center / contain no-repeat; mask: var(--p3-circle) center / contain no-repeat; }
.p3-opt.is-wrong::after { color: var(--c-text); -webkit-mask: var(--p3-slash) center / contain no-repeat; mask: var(--p3-slash) center / contain no-repeat; }
:root {
  --p3-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M9 24.5C7.5 14 15 6.5 24 7c9.5.5 15 8 13 16.5-2 9.5-11.5 14-20 11.5C11 33 7.5 28 8.5 21.5'/%3E%3C/svg%3E");
  --p3-slash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M9 38 36 6'/%3E%3C/svg%3E");
}

/* ---- motion: transform and opacity only ---- */
.p3-in { animation: p3-in 200ms cubic-bezier(.2, 0, 0, 1) both; }
@keyframes p3-fill { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes p3-mark { from { opacity: 0; transform: scale(.82) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes p3-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes p3-pulse { from { transform: scale(1); } to { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) {
  .p3-art, .p3-press, .p3-in, .p3-opt::after, .p3-opt .p3-bubble::before { transition: none !important; animation: none !important; }
}
/* === OBL-P3:END === */

/* Exam D-day: the service's own rules. tools/build.js writes web/app.css = tokens (below) + the design pass 3 kit block (tools/p3-kit.css,
   byte-identical copy) + this file. Paper and ink; one accent; no gradients, no shadows that glow; motion only on transform/opacity. */

/* ---- tokens the kit leaves to each service: accent, meaning colours, sizes (AA checked in tests/design.test.js) ---- */
.p3 {
  --c-accent: #0a6a8a; --c-accent-hover: #085d7a; --c-accent-soft: #e3eef2; --c-on-accent: #ffffff;
  --c-ok: #13753d; --c-bad: #c0283a; --c-warn: #8a5a00; --c-warn-soft: #fdf3df;
  --fs-small: .9375rem; --fs-body: 1.0625rem; --fs-cap: .8125rem;
  --gutter: 16px; --measure: 40rem; --page-max: 72rem;
  --r-1: 6px; --r-2: 10px; --tap: 44px; --header-h: 56px;
  --t-fast: 120ms;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  .p3 { --c-accent: #6fc7e6; --c-accent-hover: #8fd6ee; --c-accent-soft: #1c2c33; --c-on-accent: #151412;
    --c-ok: #6fd69a; --c-bad: #ff8a96; --c-warn: #f2c063; --c-warn-soft: #33270f; }
}
[data-svc="exams"] { --c-tint: #b9d9e4; }
@media (prefers-color-scheme: dark) { [data-svc="exams"] { --c-tint: #2f5361; } }
@media (min-width: 600px) { .p3 { --gutter: 24px; } }

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font); font-size: var(--fs-body); line-height: 1.65; font-variant-numeric: tabular-nums; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-accent-hover); }
button, input, select, summary { font: inherit; color: inherit; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: var(--r-1); }
.x-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-lang="ko"] .en, html[data-lang="en"] .ko { display: none !important; }
.x-wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.x-skip { position: absolute; left: var(--gutter); top: -100px; z-index: 30; background: var(--c-surface); padding: 10px 14px; border-radius: var(--r-2); box-shadow: var(--sheet); }
.x-skip:focus { top: 8px; }

/* ---- header ---- */
.x-head { position: sticky; top: 0; z-index: 20; background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.x-head__in { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.x-brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); color: var(--c-text); text-decoration: none; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.x-brand img { display: block; width: 28px; height: 28px; }
.x-brand:hover { color: var(--c-text); }
.x-nav { display: none; margin-left: auto; gap: 4px; }
.x-nav a, .x-menu nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; color: var(--c-text-2); text-decoration: none; border-radius: var(--r-2); font-size: var(--fs-small); }
.x-nav a:hover, .x-menu nav a:hover { background: var(--c-surface-2); color: var(--c-text); }
.x-nav a[aria-current="page"], .x-menu nav a[aria-current="page"] { color: var(--c-accent); font-weight: 600; }
.x-lang { margin-left: auto; position: relative; display: inline-flex; align-items: center; }
.x-lang select { appearance: none; -webkit-appearance: none; min-height: var(--tap); padding: 0 28px 0 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r-2); background: var(--c-surface); font-size: var(--fs-small); }
.x-lang::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid var(--c-text-2); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.x-menu { position: relative; }
.x-menu summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); cursor: pointer; border-radius: var(--r-2); border: 1px solid var(--c-line-strong); background: var(--c-surface); padding: 0 12px; font-size: var(--fs-small); }
.x-menu summary::-webkit-details-marker { display: none; }
.x-menu nav { position: absolute; right: 0; top: calc(100% + 6px); min-width: 12rem; display: flex; flex-direction: column; padding: 6px; background: var(--c-surface); border-radius: var(--r-sheet); box-shadow: 0 0 0 1px var(--c-line), 0 8px 24px rgba(28, 26, 22, .16); }
@media (prefers-color-scheme: dark) { .x-menu nav { box-shadow: 0 0 0 1px var(--c-line), 0 12px 32px rgba(0, 0, 0, .5); } }
@media (min-width: 900px) {
  .x-nav { display: flex; }
  .x-lang { margin-left: 8px; }
  .x-menu { display: none; }
}

/* ---- page frame ---- */
.x-main { padding-block: 28px 56px; }
.x-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: start; padding-bottom: 20px; }
.x-hero h1 { font-size: clamp(1.875rem, 1.25rem + 3.1vw, 3.375rem); line-height: 1.12; letter-spacing: -.035em; }
.x-hero .p3-art { width: 64px; height: 64px; }
.x-lead { grid-column: 1 / -1; max-width: 40rem; color: var(--c-text-2); }
.x-fresh { grid-column: 1 / -1; min-height: 3.3em; font-size: var(--fs-small); color: var(--c-text-3); }
@media (min-width: 900px) { .x-hero { padding-bottom: 28px; } .x-hero .p3-art { width: 88px; height: 88px; } .x-fresh { min-height: 1.65em; } }

/* ---- search ---- */
.x-search { padding-bottom: 8px; }
.x-search label { display: block; font-weight: 600; margin-bottom: 8px; }
.x-search input[type="search"] { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--c-line-strong); border-radius: var(--r-2); background: var(--c-surface); font-size: 1.0625rem; appearance: none; -webkit-appearance: none; }
.x-search input[type="search"]::placeholder { color: var(--c-text-3); }
.x-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.x-chip { min-height: var(--tap); padding: 0 14px; border: 1px solid var(--c-line-strong); border-radius: var(--r-2); background: var(--c-surface); font-size: var(--fs-small); cursor: pointer; }
.x-chip:hover { background: var(--c-surface-2); }
.x-chip:active { background: var(--c-surface-3); }
.x-chip[aria-pressed="true"] { background: var(--c-accent-soft); border-color: var(--c-accent); color: var(--c-accent); font-weight: 600; }

/* ---- buttons ---- */
.x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 16px; border: 1px solid var(--c-line-strong); border-radius: var(--r-2); background: var(--c-surface); font-size: var(--fs-small); font-weight: 600; cursor: pointer; text-decoration: none; color: var(--c-text); transition: background-color var(--t-fast), border-color var(--t-fast); }
.x-btn:hover { background: var(--c-surface-2); color: var(--c-text); }
.x-btn:active { background: var(--c-surface-3); }
.x-btn--primary { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.x-btn--primary:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); color: var(--c-on-accent); }
.x-btn--quiet { border-color: transparent; background: transparent; color: var(--c-accent); }
.x-btn--quiet:hover { background: var(--c-surface-2); color: var(--c-accent-hover); }
.x-btn--icon { width: var(--tap); padding: 0; border-color: transparent; background: transparent; }
.x-btn--add[aria-pressed="true"] { background: var(--c-accent-soft); border-color: var(--c-accent); color: var(--c-accent); }
.x-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.x-link .x-ic { width: 14px; height: 14px; margin-left: 3px; vertical-align: -2px; }
.x-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---- live region (filled by app.js) ---- */
.x-live { min-height: 760px; margin-top: 8px; }
.x-live:not(.is-ready) { color: var(--c-text-3); }
.x-live.is-ready { min-height: 0; }
.x-cols { display: grid; gap: 40px; }
.x-col { min-width: 0; }
@media (min-width: 1024px) { .x-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: 48px; align-items: start; } .x-col--side { position: sticky; top: calc(var(--header-h) + 16px); } }
.x-h { font-size: 1.25rem; margin-bottom: 12px; }
.x-h--small { font-size: 1rem; color: var(--c-text-2); margin: 20px 0 8px; font-weight: 600; letter-spacing: 0; }
.x-h__n { color: var(--c-text-3); font-weight: 400; }
.x-empty { color: var(--c-text-2); padding: 8px 0; }
.x-hint { font-size: var(--fs-cap); color: var(--c-text-3); margin-top: 10px; }
.x-banner { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 16px; background: var(--c-warn-soft); border-left: 3px solid var(--c-warn); border-radius: 2px var(--r-2) var(--r-2) 2px; font-size: var(--fs-small); }
.x-banner .x-ic { color: var(--c-warn); margin-top: 2px; }
.x-callout { margin: 12px 0; padding: 10px 14px; background: var(--c-surface-2); border-radius: var(--r-2); font-size: var(--fs-small); color: var(--c-text-2); }
.x-callout--warn { background: var(--c-warn-soft); border-left: 3px solid var(--c-warn); border-radius: 2px var(--r-2) var(--r-2) 2px; color: var(--c-text); }

/* ---- series cards and my-exam cards ---- */
.x-series-list, .x-mine-list { display: grid; gap: 16px; }
.x-series, .x-mine { padding: 16px; }
@media (min-width: 600px) { .x-series, .x-mine { padding: 20px; } }
.x-series__head, .x-mine__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.x-series__id, .x-mine__id { min-width: 0; }
.x-series h3, .x-mine h3 { font-size: 1.1875rem; overflow-wrap: anywhere; }
.x-series__sub { font-size: var(--fs-cap); color: var(--c-text-3); margin-top: 2px; }
.x-series__status { margin: 10px 0 4px; font-size: var(--fs-small); font-weight: 600; color: var(--c-accent); }
.x-practice-link { margin-top: 8px; }

.x-counters { display: grid; gap: 0; margin-top: 12px; border-top: 2px solid var(--c-text); }
.x-count { display: grid; grid-template-columns: 5.25rem 5.25rem minmax(0, 1fr); grid-template-areas: "l n w" "l n s"; column-gap: 8px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--c-line-strong); }
.x-count__label { grid-area: l; font-size: var(--fs-cap); color: var(--c-text-3); }
.x-count__n { grid-area: n; font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; white-space: nowrap; }
.x-count__when { grid-area: w; font-size: var(--fs-small); }
.x-count__what { grid-area: s; font-size: var(--fs-cap); color: var(--c-text-2); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.x-count.is-live .x-count__n { color: var(--c-accent); }
.x-count.is-soon .x-count__n { color: var(--c-accent); }
.x-count.is-none .x-count__n { color: var(--c-text-3); font-weight: 400; }
.x-count.is-none .x-count__when { color: var(--c-text-3); }
@media (min-width: 640px) {
  .x-counters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .x-count { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px 12px 0; margin-right: 14px; border-bottom: 0; border-right: 1px dashed var(--c-line-strong); }
  .x-count:last-child { border-right: 0; margin-right: 0; }
}

details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.x-rounds, .x-tlwrap, .x-pick { margin-top: 8px; }
.x-rounds > summary, .x-tlwrap > summary, .x-pick > summary { display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); gap: 8px; font-size: var(--fs-small); font-weight: 600; color: var(--c-accent); }
.x-rounds > summary::after, .x-tlwrap > summary::after, .x-pick > summary::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform var(--t-fast); margin-right: 4px; }
.x-rounds[open] > summary::after, .x-tlwrap[open] > summary::after, .x-pick[open] > summary::after { transform: rotate(-135deg); }
.x-rounds__close { display: none; }
.x-rounds[open] .x-rounds__open { display: none; }
.x-rounds[open] .x-rounds__close { display: inline; }
.x-rounds__list { list-style: none; padding: 0; margin: 4px 0 0; border-top: 1px solid var(--c-line); }
.x-round { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-small); }
.x-round__t { font-weight: 600; }
.x-round__l { color: var(--c-text-2); }
.x-round__n { font-size: var(--fs-cap); color: var(--c-text-2); }
.x-round__past { font-size: var(--fs-cap); color: var(--c-text-3); margin-top: 8px; }
.x-round.is-pending .x-round__l { color: var(--c-warn); font-weight: 600; }
.x-src { font-size: var(--fs-cap); color: var(--c-text-3); margin-top: 8px; }
.x-src a { color: var(--c-accent); }

/* ---- timeline ---- */
.x-tl { list-style: none; padding: 0; margin: 4px 0 0; border-top: 1px solid var(--c-line); }
.x-tl__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; min-height: 52px; border-bottom: 1px solid var(--c-line); }
.x-tl__check { display: inline-flex; align-items: center; gap: 8px; min-width: var(--tap); min-height: var(--tap); padding: 0 4px; cursor: pointer; }
.x-tl__check input { width: 22px; height: 22px; margin: 0; accent-color: var(--c-accent); }
.x-tl__body { display: flex; flex-direction: column; min-width: 0; padding: 6px 0; }
.x-tl__label { font-size: var(--fs-small); font-weight: 600; }
.x-tl__date { font-size: var(--fs-small); color: var(--c-text-2); }
.x-tl__d { font-weight: 700; padding-right: 4px; white-space: nowrap; }
.x-tl__row.is-past .x-tl__label, .x-tl__row.is-past .x-tl__date, .x-tl__row.is-past .x-tl__d { color: var(--c-text-3); font-weight: 400; }
.x-tl__row.is-today { background: var(--c-accent-soft); box-shadow: inset 3px 0 0 var(--c-accent); }
.x-tl__row.is-today .x-tl__d { color: var(--c-accent); }
.x-pick__list { list-style: none; padding: 0; margin: 4px 0 0; border-top: 1px solid var(--c-line); }
.x-pick__list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-small); }
.x-pick__txt { display: grid; min-width: 0; }
.x-pick__txt span { color: var(--c-text-2); font-size: var(--fs-cap); }

/* ---- marks: four shapes, so nothing depends on colour ---- */
.x-mark { display: inline-block; flex: none; width: 12px; height: 12px; color: var(--c-text-2); }
.x-mark--regStart { border: 2px solid currentColor; border-radius: 50%; }
.x-mark--regEnd { background: currentColor; border-radius: 50%; }
.x-mark--exam { background: var(--c-accent); border-radius: 2px; }
.x-mark--result { background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.x-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-top: 10px; font-size: var(--fs-cap); color: var(--c-text-2); }
.x-legend__i { display: inline-flex; align-items: center; gap: 6px; }

/* ---- browse: tabs, month, list, calendar ---- */
.x-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--c-line-strong); }
.x-tab { min-height: var(--tap); padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: none; font-weight: 600; color: var(--c-text-2); cursor: pointer; }
.x-tab[aria-selected="true"] { border-bottom-color: var(--c-accent); color: var(--c-accent); }
.x-chips--filter { margin-top: 12px; }
.x-month { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 4px; }
.x-month__t { font-size: 1.0625rem; }
.x-evs { list-style: none; padding: 0; border-top: 1px solid var(--c-line); }
.x-ev { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.x-ev__body { display: grid; min-width: 0; }
.x-ev__t { font-weight: 600; font-size: var(--fs-small); overflow-wrap: anywhere; }
.x-ev__s { font-size: var(--fs-cap); color: var(--c-text-2); }
.x-ev.is-past .x-ev__t { color: var(--c-text-3); font-weight: 400; }
.x-ev .x-btn { min-height: var(--tap); padding: 0 12px; }
.x-ev .x-btn span { display: none; }
.x-ev .x-btn { width: var(--tap); padding: 0; }
@media (min-width: 480px) { .x-ev .x-btn { width: auto; padding: 0 12px; } .x-ev .x-btn span { display: inline; } }
.x-cal { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 4px; }
.x-cal th { height: 32px; font-size: var(--fs-cap); font-weight: 600; color: var(--c-text-3); border-bottom: 2px solid var(--c-text); }
.x-cal th.is-sun { color: var(--c-bad); }
.x-cal th.is-sat { color: var(--c-accent); }
.x-cal td { padding: 0; border-bottom: 1px solid var(--c-line); }
.x-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; width: 100%; min-height: 52px; padding: 6px 0 4px; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.x-day:hover { background: var(--c-surface-2); }
.x-day__n { font-size: var(--fs-small); line-height: 1.2; min-width: 26px; text-align: center; border-radius: 50%; padding: 2px 0; }
.x-day.is-out .x-day__n { color: var(--c-text-3); }
.x-day.is-today .x-day__n { box-shadow: inset 0 0 0 2px var(--c-text); font-weight: 700; }
.x-day.is-sel { background: var(--c-accent-soft); box-shadow: inset 0 0 0 2px var(--c-accent); }
.x-day__m { display: flex; gap: 3px; min-height: 8px; }
.x-day__m .x-mark { width: 8px; height: 8px; border-width: 1.5px; }
.x-dayview { margin-top: 16px; }
.x-dayview h3 { font-size: 1.0625rem; margin-bottom: 8px; }

/* ---- article pages (the explainers, the checklist) ---- */
.x-artwrap { display: block; }
.x-toc { display: none; }
@media (min-width: 1100px) {
  .x-artwrap { display: grid; grid-template-columns: minmax(0, var(--measure)) 15rem; gap: 56px; align-items: start; }
  .x-toc { display: block; position: sticky; top: calc(var(--header-h) + 24px); font-size: var(--fs-small); border-top: 2px solid var(--c-text); padding-top: 12px; }
  .x-toc b { display: block; margin-bottom: 8px; }
  .x-toc ol { list-style: none; padding: 0; margin: 0; }
  .x-toc a { display: flex; align-items: center; min-height: var(--tap); padding: 4px 0; color: var(--c-text-2); text-decoration: none; border-bottom: 1px solid var(--c-line); }
  .x-toc a:hover { color: var(--c-accent); }
}
.x-article { max-width: var(--measure); }
.x-article h1 { font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.625rem); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 14px; }
.x-article h2 { font-size: 1.375rem; margin: 48px 0 12px; }
.x-article h3 { font-size: 1.1875rem; margin: 28px 0 8px; }
.x-article p, .x-article ul, .x-article ol, .x-article table { margin-top: 12px; }
.x-article ul, .x-article ol { padding-left: 1.25rem; }
.x-article li { margin-top: 6px; }
.x-article .x-lead { color: var(--c-text-2); font-size: 1.125rem; }
.x-crumb { font-size: var(--fs-small); color: var(--c-text-3); margin-bottom: 16px; }
.x-crumb a { color: var(--c-text-2); }
.x-meta { font-size: var(--fs-small); color: var(--c-text-3); margin-bottom: 20px; }
.x-en { margin: 20px 0 0; padding: 14px 16px; background: var(--c-surface-2); border-radius: var(--r-2); font-size: var(--fs-small); }
.x-en b { display: block; margin-bottom: 4px; }
.x-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.x-table caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
.x-table th, .x-table td { text-align: left; vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--c-line); }
.x-table thead th { border-bottom: 2px solid var(--c-text); font-size: var(--fs-cap); color: var(--c-text-2); }
.x-table td:first-child, .x-table th:first-child { font-weight: 600; white-space: nowrap; }
.x-scroll { overflow-x: auto; }
.x-sources { font-size: var(--fs-small); }
.x-sources li { overflow-wrap: anywhere; }
.x-faq details { border-bottom: 1px solid var(--c-line); }
.x-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-weight: 600; }
.x-faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform var(--t-fast); }
.x-faq details[open] summary::after { transform: rotate(-135deg); }
.x-faq details > :not(summary) { padding-bottom: 14px; }
.x-static-list { list-style: none; padding: 0; border-top: 2px solid var(--c-text); }
.x-static-list > li { padding: 14px 0; border-bottom: 1px solid var(--c-line); margin: 0; }
.x-static-list b { display: block; }
.x-static-list span { display: block; color: var(--c-text-2); font-size: var(--fs-small); }
.x-steps { counter-reset: s; list-style: none; padding: 0 !important; }
.x-steps li { counter-increment: s; position: relative; padding-left: 40px; min-height: 28px; }
.x-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 30px; border: 1.5px solid var(--c-text-2); border-radius: 50%; font-size: var(--fs-cap); font-weight: 700; color: var(--c-text-2); }

/* checklist */
.x-check { list-style: none; padding: 0 !important; border-top: 2px solid var(--c-text); }
.x-check li { margin: 0; border-bottom: 1px solid var(--c-line); }
.x-check label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; min-height: var(--tap); cursor: pointer; }
.x-check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--c-accent); }
.x-check .x-check__src { display: block; font-size: var(--fs-cap); color: var(--c-text-3); margin-top: 2px; }
.x-check-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.x-check-count { font-weight: 700; font-size: 1.25rem; }

/* practice tiles */
.x-practice { margin-top: 48px; }
.x-tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.x-tile { display: flex; flex-direction: column; gap: 8px; min-height: 148px; padding: 16px; color: var(--c-text); text-decoration: none; border-radius: var(--r-sheet); background: var(--c-surface); box-shadow: var(--sheet); }
.x-tile:hover { color: var(--c-text); background: var(--c-surface-2); }
.x-tile b { font-size: 1.0625rem; letter-spacing: -.02em; }
.x-tile span { font-size: var(--fs-cap); color: var(--c-text-2); }
.x-tile .p3-art { width: 52px; height: 52px; }
@media (min-width: 900px) { .x-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* explainer blocks on the home page */
.x-explain { margin-top: 64px; max-width: var(--measure); }
.x-explain h2 { margin-top: 40px; font-size: 1.375rem; }
.x-explain h2:first-child { margin-top: 0; }
.x-explain p, .x-explain ul { margin-top: 12px; }
.x-guides { list-style: none; padding: 0; border-top: 2px solid var(--c-text); }
.x-guides li { padding: 14px 0; border-bottom: 1px solid var(--c-line); margin: 0; }
.x-guides a { font-weight: 700; font-size: 1.0625rem; }
.x-guides span { display: block; color: var(--c-text-2); font-size: var(--fs-small); margin-top: 2px; }

/* calendar subscription block (web/feed/*.ics) */
.x-feed { margin-top: 40px; }
.x-feed h2 { font-size: 1.375rem; }
.x-feed h3 { margin-top: 24px; font-size: 1.0625rem; }
.x-feed p, .x-feed ol { margin-top: 12px; }
.x-feeds { list-style: none; padding: 0 !important; margin-top: 12px; border-top: 2px solid var(--c-text); }
.x-feeds > li { padding: 12px 0; border-bottom: 1px solid var(--c-line); margin: 0; }
.x-feeds b { display: block; margin-bottom: 8px; }
.x-feed__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.x-feed__url { flex: 1 1 220px; min-width: 0; min-height: var(--tap); padding: 0 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r-2); background: var(--c-surface-2); color: var(--c-text-2); font-size: var(--fs-small); }
@media (max-width: 599px) { .x-feed__url { order: 3; flex-basis: 100%; } }
.x-feed__help { color: var(--c-text-2); font-size: var(--fs-small); }

/* ads: hidden unless enabled; a quiet label, no box (js/ad-slots.js) */
.ad-slot { margin: 32px 0; }
.ad-slot:not([hidden])::before { content: "광고 · Advertisement"; display: block; padding-top: 8px; margin-bottom: 8px; border-top: 1px solid var(--c-line); color: var(--c-text-3); font-size: var(--fs-cap); }

/* footer */
.x-foot { border-top: 1px solid var(--c-line); padding-block: 28px 40px; font-size: var(--fs-small); color: var(--c-text-2); }
.x-foot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0; }
.x-foot a { color: var(--c-text-2); display: inline-flex; align-items: center; min-height: var(--tap); }
.x-foot p + p { margin-top: 6px; }

/* toast */
.x-toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r-2); background: var(--c-text); color: var(--c-bg); font-size: var(--fs-small); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity 180ms, transform 180ms; }
.x-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .x-toast, .x-rounds > summary::after, .x-tlwrap > summary::after, .x-pick > summary::after, .x-faq summary::after { transition: none !important; } }

@media print {
  .x-head, .x-search, .x-chips, .x-tabs, .x-month, .ad-slot, .x-foot, .x-practice, .x-actions, .x-toast, .x-check-bar button, .x-feed__row { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .x-main { padding: 0; }
  a { color: #000; text-decoration: none; }
  .x-check input { width: 16px; height: 16px; }
}
