/* EPS-TOPIK Prep. Design pass 2 (2026-10-31): docs/design-system-2026-10-31.md in the workspace root.
 * Shared OByeolLab tokens (section 5) with the EPS accent #0b6e66, the ui-* parts (section 6), the question screen (section 8)
 * and the question-screen ad dock (section 9). Neutral canvas, one accent for actions / progress / the current state, hairline
 * dividers instead of shadows, system fonts only, no decorative art. Icons come from ../icons.svg (Lucide line icons).
 * Design pass 3 (docs/design-pass3-2026-10-31.md): every page opts in with <html class="p3" data-svc="eps">. The OBL-P3 kit block near
 * the end (copied byte-identical by kiip_prep/tools/pass3-kit/copy.js; never edit it here) turns the neutrals into paper and ink, sets the
 * Pretendard-first font stack and the Korean typesetting, and brings the parts (answer bubbles, printed boxes, sheets, bars, drawings);
 * the EPS rules after it place them. */
:root {
  color-scheme: light dark;
  /* neutrals */
  --c-bg: #ffffff;
  --c-surface: #ffffff;
  --c-surface-2: #f6f7f9;
  --c-surface-3: #eef0f3;
  --c-line: #e3e5ea;
  --c-line-strong: #8a909c;
  --c-text: #16181d;
  --c-text-2: #4a505c;
  --c-text-3: #5f6672;
  /* service accent (EPS) */
  --c-accent: #0b6e66;
  --c-accent-hover: #085a53;
  --c-accent-soft: #e7f4f2;
  --c-on-accent: #ffffff;
  /* semantic */
  --c-ok: #13753d;   --c-ok-soft: #e8f5ed;
  --c-bad: #c0283a;  --c-bad-soft: #fcebed;
  --c-warn: #8a5a00; --c-warn-soft: #fdf3df;
  --c-info: #1f5fbf; --c-info-soft: #e9f1fc;
  --c-focus: var(--c-accent);
  /* type */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans", sans-serif;
  --fs-caption: 0.8125rem;
  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.125rem;
  --fs-h3: 1.1875rem;
  --fs-h2: 1.375rem;
  --fs-h1: clamp(1.5rem, 1.2rem + 1.6vw, 2rem);
  --fs-display: 2.5rem;
  --lh-body: 1.65; --lh-tight: 1.3;
  /* space (4px grid) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --gutter: 16px;
  --measure: 40rem;
  --col: 45rem;            /* 720px: app column (question column of section 9.3) */
  /* radius */
  --r-1: 6px; --r-2: 10px; --r-3: 12px; --r-round: 999px;
  /* elevation: only for things that float */
  --e-1: 0 1px 2px rgba(16, 24, 40, .08);
  --e-2: 0 8px 24px rgba(16, 24, 40, .14), 0 1px 3px rgba(16, 24, 40, .08);
  /* motion */
  --t-fast: 150ms; --ease: cubic-bezier(.2, 0, 0, 1);
  /* controls */
  --tap: 44px; --control-h: 48px; --header-h: 56px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #121417; --c-surface: #1b1e23; --c-surface-2: #202329; --c-surface-3: #2a2e35;
    --c-line: #2e323a; --c-line-strong: #737a86;
    --c-text: #eceef2; --c-text-2: #b4bac5; --c-text-3: #9aa1ad;
    --c-accent: #5fd3c4; --c-accent-hover: #86e0d4; --c-accent-soft: #11302d;
    --c-ok: #6fd69a;  --c-ok-soft: #143322;
    --c-bad: #ff8a96; --c-bad-soft: #3a171c;
    --c-warn: #f2c063; --c-warn-soft: #33270f;
    --c-info: #8ab8ff; --c-info-soft: #152841;
    --c-on-accent: #121417;
    --e-1: 0 0 0 1px var(--c-line);
    --e-2: 0 0 0 1px var(--c-line), 0 12px 32px rgba(0, 0, 0, .5);
  }
}
/* Old names still used by css/glossary.css, css/guide.css and the account pages: aliases of the new tokens. */
:root {
  --bg: var(--c-bg); --card: var(--c-surface); --fg: var(--c-text); --muted: var(--c-text-2); --line: var(--c-line);
  --accent: var(--c-accent); --accent-soft: var(--c-accent-soft); --on-accent: var(--c-on-accent);
  --ok: var(--c-ok); --ok-soft: var(--c-ok-soft); --bad: var(--c-bad); --bad-soft: var(--c-bad-soft);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: var(--fs-body)/var(--lh-body) var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--c-accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-accent-hover); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-weight: 700; color: var(--c-text); text-wrap: balance; word-break: keep-all; overflow-wrap: break-word; }
h1 { font-size: var(--fs-h1); line-height: 1.2; letter-spacing: -.015em; margin: var(--s-6) 0 var(--s-3); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: -.01em; margin: var(--s-7) 0 var(--s-3); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-tight); letter-spacing: -.01em; margin: var(--s-5) 0 var(--s-2); }
p { margin: 0 0 var(--s-3); }
.muted { color: var(--c-text-2); }
.note { color: var(--c-text-2); font-size: var(--fs-small); }
.ui-vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ui-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.tnum { font-variant-numeric: tabular-nums; }

/* Focus: one designed ring everywhere; bounded rows and options draw it inside. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: var(--r-2); }
.opt:focus-visible, .ui-row:focus-visible { outline-offset: -2px; }
[tabindex="-1"]:focus { outline: none; }

/* ---------------- header ui-header (6.1): one 56px row on phones ---------------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s-1); height: var(--header-h); max-width: none; margin: 0;
  padding: 0 calc(var(--gutter) - 6px) 0 var(--gutter); background: var(--c-bg); border-bottom: 1px solid transparent; }
.top.is-scrolled { border-bottom-color: var(--c-line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: var(--tap); margin-right: auto; color: var(--c-text); text-decoration: none;
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--c-text); }
.brand img { width: 28px; height: 28px; flex: none; border-radius: 7px; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
.ui-iconbtn, .acct { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; min-width: var(--tap); height: var(--tap); padding: 0 11px;
  border: 0; border-radius: var(--r-round); background: transparent; color: var(--c-text); font: inherit; font-size: var(--fs-small); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.ui-iconbtn:hover, .acct:hover { background: var(--c-surface-2); color: var(--c-text); }
.ui-iconbtn:active, .acct:active { background: var(--c-surface-3); }
.ui-iconbtn .ui-icon, .acct .ui-icon { width: 22px; height: 22px; }
.acct-t { white-space: nowrap; }
/* Account: a 44px person icon on phones (label stays for screen readers), icon + label from 900px. */
#acct-link { width: var(--tap); padding: 0; }
#acct-link .acct-t { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
.acct-soon { margin-left: auto; padding: 0 6px; font-size: var(--fs-caption); }
/* Language (6.2): the native select, styled; a globe button on phones. */
.ui-lang { position: relative; display: inline-flex; align-items: center; flex: none; height: var(--tap); min-width: var(--tap); border-radius: var(--r-round); color: var(--c-text);
  transition: background-color var(--t-fast) var(--ease); }
.ui-lang:hover { background: var(--c-surface-2); }
.ui-lang .ui-icon { position: absolute; left: 11px; width: 22px; height: 22px; pointer-events: none; }
.ui-lang select { appearance: none; -webkit-appearance: none; height: var(--tap); width: var(--tap); min-width: 0; max-width: 9rem; padding: 0; border: 0; border-radius: var(--r-round);
  background: transparent; color: transparent; font: inherit; font-size: 1rem; cursor: pointer; }
.ui-lang select option { color: #16181d; background: #fff; }
.ui-lang select:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 0; }
/* Site navigation: inline links from 900px; on phones a list that drops down under the header (js/site-menu.js). */
.ui-nav { display: flex; align-items: center; gap: 2px; }
.ui-nav a, .ui-nav__link { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 12px; border-radius: var(--r-2); color: var(--c-text-2); font-size: var(--fs-small);
  font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.ui-nav a:hover { background: var(--c-surface-2); color: var(--c-text); }
.ui-nav a[aria-current="page"] { color: var(--c-accent); box-shadow: inset 0 -2px 0 var(--c-accent); border-radius: 0; }
.ui-nav .acct-ico, .ui-nav .ui-icon { display: none; }
.ui-menu-btn { display: none; }
@media (max-width: 899px) and (scripting: enabled) {
  .ui-menu-btn { display: inline-flex; }
  .ui-nav { position: absolute; top: calc(var(--header-h) - 4px); right: 8px; z-index: 30; display: none; flex-direction: column; align-items: stretch; gap: 0; min-width: 232px; max-width: calc(100vw - 16px);
    padding: 6px; background: var(--c-surface); border-radius: var(--r-3); box-shadow: var(--e-2); }
  .ui-nav.is-open { display: flex; }
  .ui-nav a { justify-content: flex-start; min-height: 48px; padding: 0 12px; color: var(--c-text); font-size: 1rem; white-space: normal; }
  .ui-nav .ui-icon { display: inline-block; color: var(--c-text-2); }
}
@media (max-width: 899px) and (scripting: none) { .top { height: auto; min-height: var(--header-h); flex-wrap: wrap; } }
@media (min-width: 480px) {
  .ui-lang .ui-icon { left: 10px; }
  .ui-lang select { width: 9rem; max-width: 9rem; padding: 0 30px 0 38px; color: var(--c-text); font-size: var(--fs-small); font-weight: 600; text-overflow: ellipsis;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a505c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat; }
}
@media (min-width: 480px) and (prefers-color-scheme: dark) {
  .ui-lang select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4bac5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
}
/* From 900px the links are inline. Every header item has a fixed width, so the script turning "안내 글 / Guides" into one language
   (or filling the language list) never moves anything (CLS 0). The account stays a 44px icon with its label for screen readers. */
@media (min-width: 900px) {
  :root { --header-h: 64px; }
  .top { padding: 0 max(var(--s-5), calc((100% - 1084px) / 2)); gap: var(--s-2); }
  .ui-nav { margin-right: var(--s-2); }
  .ui-nav .guides-link, .ui-nav .glossary-link { justify-content: flex-start; width: 7.5rem; padding: 0 12px; }
  .ui-nav a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .ui-lang select { width: 9rem; }
}

/* ---------------- layout ---------------- */
.app-wrap { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
main { display: block; }
#view { display: flow-root; padding-bottom: var(--s-6); }
@media (min-width: 600px) { :root { --gutter: 20px; } }

/* ---------------- buttons ui-btn (6.3); .btn / .btn.ghost are the older names (account.js) ---------------- */
.ui-btn, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control-h); padding: 0 20px; border: 1px solid var(--c-line-strong);
  border-radius: var(--r-2); background: var(--c-surface); color: var(--c-text); font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.25; text-align: center;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.ui-btn:hover, .btn.ghost:hover { background: var(--c-surface-2); color: var(--c-text); }
.ui-btn:active:not(:disabled), .btn:active:not(:disabled) { transform: scale(.98); }
.ui-btn--primary, .btn:not(.ghost) { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.ui-btn--primary:hover, .btn:not(.ghost):hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); color: var(--c-on-accent); }
.ui-btn--quiet { border-color: transparent; background: transparent; color: var(--c-accent); }
.ui-btn--quiet:hover { background: var(--c-surface-2); color: var(--c-accent-hover); }
.ui-btn--danger { border-color: var(--c-bad); color: var(--c-bad); }
.ui-btn--danger:hover { background: var(--c-bad-soft); color: var(--c-bad); }
.ui-btn--block { display: flex; width: 100%; }
.ui-btn:disabled, .btn:disabled, .ui-btn[aria-disabled="true"] { background: var(--c-surface-3); border-color: var(--c-surface-3); color: var(--c-text-3); cursor: not-allowed; transform: none; }
.ui-btn .ui-icon { margin-left: -2px; }
.btn.small { min-height: var(--tap); padding: 0 16px; font-size: var(--fs-small); }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.ui-actions { display: flex; gap: var(--s-3); margin: var(--s-5) 0 0; }
.ui-actions > * { flex: 1 1 0; }
select, input { font: inherit; color: var(--c-text); background: var(--c-surface); border: 1px solid var(--c-line-strong); border-radius: var(--r-2); padding: 8px 10px; }
input::placeholder, textarea::placeholder { color: var(--c-text-3); opacity: 1; } /* the browser default is about 3.6:1 on the dark input surface */

/* ---------------- cards, lists, callouts, badges ---------------- */
.ui-card, .card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-3); padding: var(--s-4); }
@media (min-width: 600px) { .ui-card, .card { padding: var(--s-5); } }
.ui-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--c-line); border-radius: var(--r-3); overflow: hidden; background: var(--c-surface); }
.ui-list > li + li { border-top: 1px solid var(--c-line); }
.ui-row { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 10px var(--s-4); color: var(--c-text); text-decoration: none;
  transition: background-color var(--t-fast) var(--ease); -webkit-tap-highlight-color: transparent; }
a.ui-row:hover { background: var(--c-surface-2); color: var(--c-text); }
a.ui-row:active { background: var(--c-surface-3); }
.ui-row__icon { width: 24px; height: 24px; color: var(--c-text-2); }
.ui-row__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ui-row__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.ui-row__meta { color: var(--c-text-2); font-size: var(--fs-small); line-height: 1.4; }
.ui-row__trail { flex: none; color: var(--c-text-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.ui-row__trail b { color: var(--c-text); font-weight: 600; }
.ui-row__chev { color: var(--c-text-3); }
.ui-row[aria-disabled="true"] { color: var(--c-text-2); }
.ui-row[aria-disabled="true"] .ui-row__title { color: var(--c-text-2); }
.ui-callout { display: flex; gap: var(--s-3); align-items: flex-start; margin: var(--s-4) 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-3); background: var(--c-surface-2);
  font-size: var(--fs-small); line-height: 1.55; }
.ui-callout .ui-icon { margin-top: 1px; color: var(--c-info); }
.ui-callout p { margin: 0; }
.ui-callout--warn { background: var(--c-warn-soft); box-shadow: inset 3px 0 0 var(--c-warn); }
.ui-callout--warn .ui-icon { color: var(--c-warn); }
.ui-callout--bad { background: var(--c-bad-soft); box-shadow: inset 3px 0 0 var(--c-bad); color: var(--c-text); }
.ui-callout--bad .ui-icon { color: var(--c-bad); }
.warn { color: var(--c-text); background: var(--c-warn-soft); border-radius: var(--r-3); padding: var(--s-3) var(--s-4); font-size: var(--fs-small); box-shadow: inset 3px 0 0 var(--c-warn); }
.ui-badge, .badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-1); background: var(--c-surface-3); color: var(--c-text-2);
  font-size: var(--fs-caption); font-weight: 600; white-space: nowrap; }
.ui-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin: var(--s-7) 0 var(--s-3); }
.ui-section-head h2 { margin: 0; }
.ui-section-head span { color: var(--c-text-2); font-size: var(--fs-small); }

/* ---------------- home: the task launcher (7.1) ---------------- */
/* .hero is pre-rendered in index.html (the LCP element, reused by app.js): a well-set title, no band, no art. */
.hero { padding: var(--s-5) 0 0; }
.hero h1 { margin: 0 0 var(--s-3); font-size: clamp(2rem, 1.5rem + 2.4vw, 2.75rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.hero p { margin: 0; max-width: 34em; color: var(--c-text-2); font-size: var(--fs-body); line-height: 1.6; }
@media (min-width: 600px) { .hero { padding-top: var(--s-7); } .hero p { font-size: var(--fs-lead); } }
.hero .badge { display: none; }
/* index.html also ships the home columns with the side column filled in (the LCP element from 1200px). Below 1200px that column sits
   under the task column, which only the app draws, so it waits for the app (app.js removes data-pre) instead of painting right under
   the hero and being pushed down (CLS 0). Without scripts it shows at once. */
@media (max-width: 1199.98px) and (scripting: enabled) { .home-cols[data-pre] > .home-side { display: none; } }
/* Signature moment: the next mock test with the sector floors on a 0-100 scale (and the last score once there is one).
   Design pass 3: a printed ruler. Square track, a tick every 10 points (longer at 0, 50 and 100), the two floors as ink lines
   across it with their names above (manufacturing) and below (other sectors), the last score as a filled dot. */
.task { margin-top: var(--s-5); }
.task__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--fs-h2); letter-spacing: -.02em; }
.task__meta { margin: var(--s-1) 0 0; color: var(--c-text-2); font-size: var(--fs-small); }
.fscale { position: relative; height: 80px; margin: var(--s-4) 0; font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }
.fscale__ticks { position: absolute; left: 0; right: 0; top: 26px; height: 10px; }
.fscale__ticks i { position: absolute; bottom: 0; left: calc(var(--at) * 1%); width: 1px; height: 5px; margin-left: -.5px; background: var(--c-text-3); }
.fscale__ticks i.major { height: 10px; background: var(--c-text-2); }
.fscale__track { position: absolute; left: 0; right: 0; top: 36px; height: 10px; background: var(--c-surface-3); overflow: hidden; }
.fscale__fill { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--v, 0)); background: var(--c-accent); }
.fscale__mark { position: absolute; left: calc(var(--at) * 1%); top: 24px; height: 32px; margin-left: -1px; border-left: 2px solid var(--c-text); }
.fscale__mark > span { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; color: var(--c-text-2); line-height: 18px; }
.fscale__mark b { color: var(--c-text); font-weight: 700; }
.fscale__mark--up > span { bottom: calc(100% + 2px); }
.fscale__mark--down > span { top: calc(100% + 2px); }
.fscale__end { position: absolute; top: 58px; color: var(--c-text-3); line-height: 18px; }
.fscale__end--0 { left: 0; } .fscale__end--100 { right: 0; }
.fscale__you { position: absolute; top: 35px; left: calc(var(--at) * 1%); width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 2px var(--c-surface), 0 0 0 3px var(--c-text); }
.fscale__you-line { margin: calc(-1 * var(--s-2)) 0 var(--s-4); color: var(--c-accent); font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; }
.resume { margin-top: var(--s-5); border-color: var(--c-accent); box-shadow: inset 3px 0 0 var(--c-accent); }
.resume__title { margin: 0; font-size: var(--fs-h3); font-weight: 700; }
.resume__line { margin: var(--s-1) 0 var(--s-4); color: var(--c-text-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.resume .ui-actions { margin-top: 0; }
.resume .ui-actions > .ui-btn--quiet { flex: 0 0 auto; }
.ui-list + .ui-list, .more { margin-top: var(--s-5); }
.prose { max-width: var(--measure); }
.prose p { color: var(--c-text); }
.prose .note { color: var(--c-text-2); }
.nw { white-space: nowrap; } /* an item and the dot after it never split: no line starts with "·" */
.prose p > a:only-child, .back a { display: inline-block; padding: 11px 0; } /* a link alone on its line: a 44px-high target */
.floorline { font-weight: 600; }
.ext-ico { width: 18px; height: 18px; color: var(--c-text-3); }

/* ---------------- static intro (#intro, outside #view): reading text, no cards ---------------- */
.intro { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--s-5); }
.intro .card { padding: 0; border: 0; border-radius: 0; background: none; max-width: var(--measure); }
.intro .card + .card { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--c-line); }
.intro h2 { margin: var(--s-6) 0 var(--s-3); font-size: var(--fs-h2); }
.intro .card + .card h2 { margin-top: 0; }
.intro h3 { margin: var(--s-5) 0 var(--s-2); font-size: var(--fs-h3); }
.intro ul, .intro ol { padding-left: 1.25rem; margin: var(--s-2) 0 var(--s-4); }
.intro li { margin-bottom: var(--s-2); }
.intro li::marker { color: var(--c-text-3); }
.intro p, .intro li { overflow-wrap: anywhere; }
.intro .card:lang(ko) { word-break: keep-all; }
#intro { border-top: 1px solid var(--c-line); margin-top: var(--s-6); }

/* ---------------- question screen (section 8) ---------------- */
/* App bar: replaces the site header on practice and mock screens (sticky, 56px). */
.ui-appbar { position: sticky; top: 0; z-index: 20; background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.ui-appbar__row { display: flex; align-items: center; gap: var(--s-1); height: calc(var(--header-h) - 1px); max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 calc(var(--gutter) - 8px) 0 calc(var(--gutter) - 10px); }
.ui-appbar__title { flex: 1; min-width: 0; margin: 0 var(--s-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; font-weight: 600; }
.ui-appbar__count { flex: none; padding: 0 var(--s-2); color: var(--c-text-2); font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; }
.ui-timer { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 0 var(--s-2); color: var(--c-text); font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ui-timer .ui-icon { color: var(--c-text-2); }
.ui-timer.low, .ui-timer.low .ui-icon { color: var(--c-warn); }
.ui-timer.crit, .ui-timer.crit .ui-icon { color: var(--c-bad); }
.ui-mapbtn { gap: 6px; padding: 0 12px; font-variant-numeric: tabular-nums; }
.ui-mapbtn .ui-icon { width: 20px; height: 20px; }
.ui-appbar .ui-lang { margin-left: 2px; }
.ui-appbar .ui-lang select { width: var(--tap); padding: 0; color: transparent; background: none; }
/* The bar sits on the app bar's bottom edge, so the app bar is exactly as tall as the site header it replaces (nothing below moves). */
.ui-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--c-surface-3); overflow: hidden; }
.ui-progress i { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--v, 0)); background: var(--c-accent); transition: transform 200ms var(--ease); }
body.is-q .top { display: none; }

.ui-q { padding-top: var(--s-5); }
.ui-q__kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--s-3); color: var(--c-text-2); font-size: var(--fs-small); font-weight: 600; }
.ui-q__kicker .ui-icon { width: 18px; height: 18px; }
.ui-q__kicker b { color: var(--c-accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.instr { margin: 0 0 var(--s-1); font-size: var(--fs-h3); font-weight: 700; line-height: 1.5; letter-spacing: -.01em; word-break: keep-all; }
.en { display: block; color: var(--c-text-2); font-size: var(--fs-small); font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.ask { margin: var(--s-4) 0 0; font-size: var(--fs-lead); font-weight: 600; line-height: 1.55; word-break: keep-all; }
.passage { white-space: pre-line; margin: var(--s-4) 0; padding: var(--s-4); border-radius: var(--r-3); background: var(--c-surface-2); font-size: var(--fs-lead); line-height: 1.85; word-break: keep-all; }
.realia { margin: var(--s-4) auto; max-width: 420px; padding: var(--s-4); border: 1.5px solid var(--c-text); border-radius: var(--r-3); background: var(--c-surface); font-size: 1.0625rem; }
.realia .rt { margin-bottom: var(--s-2); padding-bottom: var(--s-2); border-bottom: 1px solid var(--c-line); font-weight: 700; text-align: center; }
.realia .rr { padding: 3px 0; }
.realia-message { border-color: var(--c-line-strong); border-radius: 18px 18px 18px 4px; background: var(--c-surface-2); }
.realia-ticket { border-style: dashed; }
.realia-menu .rr { display: flex; justify-content: space-between; gap: var(--s-3); }
.realia-table .rr { border-bottom: 1px solid var(--c-line); }
.realia-table .rr:last-child { border-bottom: 0; }
.center { display: flex; justify-content: center; }
.pic { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); margin: var(--s-4) 0; }
.pic .pic-emoji { font-size: 4rem; line-height: 1.15; letter-spacing: 4px; }
.pic.small { margin: 0; }
.pic.small .pic-emoji { font-size: 2.2rem; letter-spacing: 2px; }
.pic .pic-img { display: block; width: 100%; max-width: 280px; height: auto; aspect-ratio: 4 / 3; border-radius: var(--r-3); border: 1px solid var(--c-line); background: #fff; }
.pic.small .pic-img { max-width: 150px; border-radius: var(--r-2); }
.cap { color: var(--c-text-2); font-size: var(--fs-caption); text-align: center; word-break: keep-all; }
.sign { display: inline-flex; flex-direction: column; align-items: center; gap: var(--s-1); }
.sign img { width: 150px; height: 150px; }
.sign.small img { width: 84px; height: 84px; }

/* Options ui-opt (6.6) */
.opts { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-2); }
.opts.pics { grid-template-columns: 1fr 1fr; }
.opt { position: relative; width: 100%; min-height: 56px; display: flex; gap: var(--s-3); align-items: center; padding: 12px var(--s-4); text-align: left; font: inherit; font-size: 1.0625rem;
  line-height: 1.45; color: var(--c-text); background: var(--c-surface); border: 1px solid var(--c-line-strong); border-radius: var(--r-2); cursor: pointer; word-break: keep-all;
  -webkit-tap-highlight-color: transparent; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
@media (hover: hover) { .opt:hover:not(:disabled) { background: var(--c-surface-2); border-color: var(--c-text-3); } }
.opt:active:not(:disabled) { transform: scale(.99); }
.opt:disabled { cursor: default; }
.opt .n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--c-line-strong); color: var(--c-text-2);
  font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.opt .st { flex: none; margin-left: auto; display: none; width: 20px; height: 20px; }
.opt.chosen { border: 2px solid var(--c-accent); padding: 11px 15px; background: var(--c-accent-soft); }
.opt.chosen .n { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.opt.right { border: 2px solid var(--c-ok); padding: 11px 15px; background: var(--c-ok-soft); }
.opt.right .n { background: var(--c-ok); border-color: var(--c-ok); color: var(--c-surface); }
.opt.right .st { display: block; color: var(--c-ok); }
.opt.wrong { border: 2px solid var(--c-bad); padding: 11px 15px; background: var(--c-bad-soft); }
.opt.wrong .n { background: var(--c-bad); border-color: var(--c-bad); color: var(--c-surface); }
.opt.wrong .st { display: block; color: var(--c-bad); }
.opt.rest { border-color: var(--c-line); }
.opt.rest .n { border-color: var(--c-line); }
.opts.pics .opt { flex-direction: column; align-items: center; min-width: 0; min-height: 140px; text-align: center; }
.opts.pics .opt .n { position: absolute; left: 8px; top: 8px; }
.opts.pics .opt .st { position: absolute; right: 8px; top: 10px; margin: 0; }
.scene { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); min-width: 0; }
.sc-ico { font-size: 1.7rem; line-height: 1.2; letter-spacing: 2px; }
.sc-cap { color: var(--c-text-2); font-size: var(--fs-caption); line-height: 1.35; word-break: keep-all; }

/* Feedback ui-feedback (6.6): one quiet panel, only the verdict line in the semantic colour. */
.ui-feedback { word-break: keep-all; overflow-wrap: break-word; margin-top: var(--s-3); padding: var(--s-4); border-radius: var(--r-3); background: var(--c-surface-2); box-shadow: inset 3px 0 0 var(--c-ok); }
.ui-feedback.bad { box-shadow: inset 3px 0 0 var(--c-bad); }
.ui-feedback p { margin: 0 0 var(--s-2); }
.ui-feedback p:last-child { margin-bottom: 0; }
.ui-feedback .verdict { display: flex; align-items: center; gap: 8px; margin-bottom: var(--s-2); color: var(--c-ok); font-size: 1.0625rem; font-weight: 700; }
.ui-feedback.bad .verdict { color: var(--c-bad); }
.ui-feedback .ko { color: var(--c-text-2); word-break: keep-all; }
.ui-feedback .note { font-size: var(--fs-caption); color: var(--c-text-3); }
.ui-q details { margin-top: var(--s-3); border-top: 1px solid var(--c-line); }
.ui-q details > summary { display: flex; align-items: center; gap: 8px; min-height: var(--tap); cursor: pointer; color: var(--c-accent); font-weight: 600; list-style: none; }
.ui-q details > summary::-webkit-details-marker { display: none; }
.ui-q details > summary .ui-icon { transition: transform var(--t-fast) var(--ease); }
.ui-q details[open] > summary .ui-icon { transform: rotate(180deg); }

/* Listening control ui-audio (8.3): a secondary play button, the play count and (practice) the speed. */
.ui-audio { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: var(--s-4) 0; padding: var(--s-3); border-radius: var(--r-3); background: var(--c-surface-2); }
.ui-audio .ui-btn { min-height: var(--tap); padding: 0 18px 0 14px; background: var(--c-surface); }
.ui-audio .ui-btn .ui-icon { color: var(--c-accent); }
.ui-audio__count, .pill { color: var(--c-text-2); font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; }
.pill:empty { display: none; }
.ui-audio__speed { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--c-text-2); font-size: var(--fs-small); }
.ui-audio__speed select { min-height: var(--tap); padding: 0 10px; }
.ui-audio .script { flex-basis: 100%; }
.ui-audio .ui-icon.live { color: var(--c-accent); }
.audio-status { display: inline-flex; align-items: center; gap: 7px; min-height: 24px; font-size: var(--fs-small); }
.audio-spinner { display: none; width: 15px; height: 15px; flex: none; border: 2px solid var(--c-line); border-top-color: var(--c-accent); border-radius: 50%; animation: audio-spin .8s linear infinite; }
.ui-audio[data-audio-state="loading"] .audio-spinner, .ui-audio[data-audio-state="buffering"] .audio-spinner { display: inline-block; }
@keyframes audio-spin { to { transform: rotate(360deg); } }
.script { margin-top: var(--s-2); }
.script p { margin: 6px 0; }
.sp { display: inline-block; min-width: 28px; margin-right: 4px; padding: 0 6px; border-radius: var(--r-1); background: var(--c-surface-3); color: var(--c-text-2);
  font-size: var(--fs-caption); font-weight: 700; text-align: center; }

/* Action row ui-qnav and info row ui-qmeta (8.2). No fixed bottom bar. */
.ui-qnav { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.ui-qnav > .ui-btn { flex: 4 1 0; }
.ui-qnav > .ui-btn--primary, .ui-qnav > .ui-btn:last-child:not(:first-child) { flex: 6 1 0; }
.ui-qmeta { display: flex; flex-direction: column; gap: var(--s-1); margin: var(--s-5) 0 0; color: var(--c-text-3); font-size: var(--fs-small); }
.ui-qmeta .ui-icon { width: 16px; height: 16px; vertical-align: -3px; }
.ui-qmeta p { margin: 0; }

/* Question map sheet (8.3): opened from the app bar, never spread over the question. */
.ui-sheet { width: min(100%, 560px); max-width: 100%; max-height: 70vh; margin: auto auto 0; padding: var(--s-4) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom)); border: 0;
  border-radius: var(--r-3) var(--r-3) 0 0; background: var(--c-surface); color: var(--c-text); box-shadow: var(--e-2); overflow: auto; }
.ui-sheet::backdrop { background: rgba(10, 12, 16, .45); }
@media (min-width: 600px) { .ui-sheet { margin: auto; border-radius: var(--r-3); } }
.ui-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin: 0 0 var(--s-3); }
.ui-sheet__head h2 { margin: 0; font-size: var(--fs-h3); }
.qgrid { display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: var(--s-2); margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.num { position: relative; width: 100%; height: 48px; border: 1px solid var(--c-line-strong); border-radius: var(--r-2); background: var(--c-surface); color: var(--c-text);
  font: inherit; font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color var(--t-fast) var(--ease); }
.num:hover:not(:disabled) { background: var(--c-surface-2); }
.num.done { border-color: var(--c-accent-soft); background: var(--c-accent-soft); color: var(--c-accent); text-decoration: underline; text-underline-offset: .2em; }
.num.cur { border: 2px solid var(--c-accent); }
.num:disabled { cursor: default; }
.ui-sheet .ui-actions { flex-wrap: wrap; }

/* ---------------- result ui-result (6.8) ---------------- */
.score { padding-top: var(--s-5); }
.score__label { margin: 0; color: var(--c-text-2); font-size: var(--fs-small); font-weight: 600; }
.big { margin: var(--s-1) 0 var(--s-4); font-size: var(--fs-display); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; color: var(--c-text); font-variant-numeric: tabular-nums; }
.big small { color: var(--c-text-3); font-size: 1.25rem; font-weight: 600; letter-spacing: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 0; padding: var(--s-3) 0 0; border-top: 1px solid var(--c-line); list-style: none; }
.stats li { display: flex; flex-direction: column; gap: 2px; padding: 0 var(--s-3); }
.stats li:first-child { padding-left: 0; }
.stats li + li { border-left: 1px solid var(--c-line); }
.stats span { color: var(--c-text-2); font-size: var(--fs-caption); }
.stats b { font-size: var(--fs-h3); font-weight: 700; font-variant-numeric: tabular-nums; }
.verdicts { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: var(--s-2); }
.verdicts li { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; }
.verdicts li.ok .ui-icon { color: var(--c-ok); }
.verdicts li.no .ui-icon { color: var(--c-warn); }
.verdicts li span { color: var(--c-text-2); font-weight: 400; }
.result-notes { margin-top: var(--s-4); }
.result-notes p { margin: 0 0 var(--s-1); color: var(--c-text-2); font-size: var(--fs-small); }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) 96px 3.25rem; gap: var(--s-3); align-items: center; min-height: 48px; padding: 6px var(--s-4); font-size: var(--fs-small); }
.bar > span:first-child { font-weight: 600; color: var(--c-text); }
.track { height: 6px; background: var(--c-surface-3); border-radius: 3px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--c-accent); border-radius: 3px; transform-origin: left center; transform: scaleX(var(--v, 0)); }
.bar.low .track i { background: var(--c-warn); }
.bar .muted { text-align: right; font-variant-numeric: tabular-nums; }
.wrongitem { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.wrongitem summary { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 10px var(--s-4); cursor: pointer; list-style: none; font-size: var(--fs-small); }
.wrongitem summary::-webkit-details-marker { display: none; }
.wrongitem summary b { color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.wrongitem summary .ui-icon { margin-left: auto; color: var(--c-text-3); transition: transform var(--t-fast) var(--ease); }
.wrongitem[open] summary .ui-icon { transform: rotate(180deg); }
.wrongitem > .ui-q { padding: 0 var(--s-4) var(--s-4); }
.ad { margin-top: 22px; min-height: 0; }

/* ---------------- signs gallery ---------------- */
.signgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3); }
.signcard { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-2); padding: var(--s-4) var(--s-3); text-align: center; }
.signcard figcaption { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-small); word-break: keep-all; }
.signcard figcaption span { color: var(--c-text-2); }
.signcard figcaption .en { font-size: var(--fs-caption); }

/* ---------------- mock intro / break ---------------- */
.rules { margin: var(--s-2) 0 0; padding-left: 1.25rem; }
.rules li { margin: var(--s-2) 0; }
.rules li::marker { color: var(--c-accent); font-weight: 700; }
.links { list-style: none; margin: 0; padding: 0; }

/* ---------------- ad slots and the question-screen dock (6.14, 9.4) ---------------- */
/* No box, border or shadow: an ad must never look like content or a button. The label sits on a hairline. */
.ad-slot { clear: both; }
.ad-label { margin: 0 0 var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--c-line); color: var(--c-text-3); font: var(--fs-caption)/1.4 var(--font); text-align: left; }
/* The dock keeps clear of the action row: info row + 64px + the slot's own 32px margin (ad-slots.js still checks 200px and hides it if short). */
.ad-dock { padding-top: var(--s-8); }
.ad-rail { display: none; }
/* From 1200px: one container for every app screen, an app column (720px) and a 300px side column 64px away. The app column starts at the
   same x on every route, so opening a question straight from a link never moves the page (CLS 0). Question screens put the ad rail
   there (9.3), the home puts its reading material there (7.1 desktop). */
@media (min-width: 1200px) {
  :root { --wide: calc(var(--col) + 64px + 300px); }
  .app-wrap { display: grid; grid-template-columns: var(--col) 300px; column-gap: 64px; max-width: calc(var(--wide) + 2 * var(--gutter)); }
  #view { grid-column: 1; grid-row: 1; min-width: 0; }
  body.is-home #view { grid-column: 1 / -1; }
  .ad-dock { grid-column: 1; }
  body.is-q .ad-dock { display: none; }
  body.is-q .ad-rail { display: block; grid-column: 2; grid-row: 1 / span 2; padding-top: var(--s-5); }
  .ui-appbar__row { max-width: calc(var(--wide) + 2 * var(--gutter)); }
  .app-wrap ~ .intro, .app-wrap ~ footer { max-width: calc(var(--wide) + 2 * var(--gutter)); }
  .app-wrap ~ footer > * { max-width: var(--col); }
  .home-cols { display: grid; grid-template-columns: var(--col) 300px; column-gap: 64px; align-items: start; }
  .home-side > h2:first-child { margin-top: var(--s-5); }
  .home-side .prose { font-size: var(--fs-small); }
  .home-side .prose p { line-height: 1.6; }
  .hero { max-width: var(--col); }
}

/* ---------------- footer ui-footer (6.11) ---------------- */
footer { max-width: calc(var(--col) + 2 * var(--gutter)); margin: var(--s-7) auto 0; padding: var(--s-5) var(--gutter) var(--s-7); border-top: 1px solid var(--c-line);
  color: var(--c-text-2); font-size: var(--fs-small); line-height: 1.6; }
footer p { margin: 0 0 var(--s-2); }
footer a { color: var(--c-text-2); text-decoration: underline; text-decoration-color: var(--c-line-strong); }
footer a:hover { color: var(--c-text); text-decoration-color: currentColor; }
/* tap target: inline padding raises the link box from ~18px to 24px without moving the text (an inline box's padding does not change the line height) */
footer a { padding: 3px 0; }
footer .foot-notice { color: var(--c-text-3); font-size: var(--fs-caption); }
footer .fnav, footer #foot-links { color: var(--c-text-3); }
footer .copy { color: var(--c-text-3); font-size: var(--fs-caption); }
#intro + footer { margin-top: 0; }

/* Page reservations (CLS 0): while the scripts fill the app area, the static intro and the footer below it never move. The home
   page reserves one screen; the account pages (main#view directly in <body>) reserve the first screen too. */
@media (scripting: enabled) { .app-wrap:has(~ #intro) > #view { min-height: 100svh; } }
@media (scripting: enabled) { body > #view { min-height: calc(100svh - 120px); } }
/* Pages without an app (privacy) */
body > main:not(#view) { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Motion: transform/opacity/colour only, all off when the reader asks for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .audio-spinner { border-right-color: var(--c-accent); }
}

/* === 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 === */

/* ---------- design pass 3: EPS-TOPIK Prep on paper (docs/design-pass3-2026-10-31.md) ----------
   After the kit block on purpose: these rules place the kit parts and win over the older rules of the same weight above.
   Motif: work and safety signage. Signs hang on printed plates, the pass line is a printed ruler, the mock tests are booklets, practice
   is two halves (reading, listening), the other places are drawn tiles. Printed things are square and inked; things you touch are
   round. The accent (#0b6e66, dark #5fd3c4) marks actions, progress and the current state only. Motion: transform and opacity only. */
.p3 { --c-accent-soft: #e7efe9; --t-fast: 120ms;
  --e-1: 0 1px 2px rgba(28, 26, 22, .08); --e-2: 0 8px 24px rgba(28, 26, 22, .14), 0 1px 3px rgba(28, 26, 22, .08);
  --p3-screw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' fill='none' stroke='%23857e70' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='4' cy='4' r='3'/%3E%3Cpath d='M2.6 5.4 5.4 2.6'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { .p3 { --c-accent-soft: #1f302c; --e-1: 0 0 0 1px var(--c-line); --e-2: 0 0 0 1px var(--c-line), 0 12px 32px rgba(0, 0, 0, .5); } }

/* sheets of paper instead of boxed cards; the static intro stays plain reading text */
.p3 :is(.ui-card, .card) { border: 0; border-radius: var(--r-sheet); box-shadow: var(--sheet); }
.p3 .intro .card { border-radius: 0; box-shadow: none; }
.p3 .resume { box-shadow: inset 3px 0 0 var(--c-accent), var(--sheet); }

/* type: the home title larger and tighter; section titles under a printed rule, as in a test booklet */
.p3 .hero h1 { font-size: clamp(1.875rem, 1.25rem + 3.1vw, 3.375rem); line-height: 1.17; letter-spacing: -.035em; }
.p3 :is(.home-main, .home-side, #view) > h2, .p3 .daily__title { padding-top: var(--s-3); border-top: 2px solid var(--c-text); font-size: 1.25rem; letter-spacing: -.02em; }

/* a sign as it hangs at work: on a printed plate held by four screws */
.signplate { display: flex; justify-content: center; align-items: center; min-width: 0; padding: 20px 16px 16px;
  background: var(--p3-screw) left 7px top 7px / 8px 8px no-repeat, var(--p3-screw) right 7px top 7px / 8px 8px no-repeat,
    var(--p3-screw) left 7px bottom 7px / 8px 8px no-repeat, var(--p3-screw) right 7px bottom 7px / 8px 8px no-repeat, var(--c-surface); }
.signplate .sign img { display: block; }

/* the sign of the day: a sheet of the test paper, answered in place */
.daily { margin-top: var(--s-7); }
.daily__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin: 0 0 var(--s-3); }
.daily__title small { color: var(--c-text-3); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0; }
.daily__sheet { padding: var(--s-4); }
.daily__sheet .instr { font-size: 1.0625rem; }
.daily__body { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.daily .signplate .sign img { width: 128px; height: 128px; }   /* phones: the choices start sooner */
.daily-opts { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.daily .ui-feedback { margin-top: var(--s-3); animation: p3-in 200ms var(--ease) both; }
.daily-more { display: inline-flex; align-items: center; gap: 2px; min-height: var(--tap); margin-top: var(--s-2); font-size: var(--fs-small); font-weight: 600; text-decoration: none; }
.daily-more:hover { text-decoration: underline; }
.daily-more .ui-icon { width: 18px; height: 18px; vertical-align: 0; }
@media (min-width: 600px) {
  .daily__sheet { padding: var(--s-5); }
  .daily__body { grid-template-columns: 196px minmax(0, 1fr); align-items: start; }
  .daily .signplate .sign img { width: 150px; height: 150px; }
}

/* the mock tests as test booklets: a printed band on top (the accent once sat), the number, the last score or an empty bubble */
.booklets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.booklet { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 124px; padding: 16px 6px 14px; border-radius: 3px 3px 10px 10px;
  background: var(--c-surface); box-shadow: inset 0 5px 0 var(--c-tint), var(--sheet); color: var(--c-text); text-decoration: none;
  transition: transform var(--t-fast) var(--ease); -webkit-tap-highlight-color: transparent; }
.booklet:hover { color: var(--c-text); }
.booklet:active { transform: scale(.96); }
.booklet:focus-visible { outline-offset: 2px; }
.booklet.done { box-shadow: inset 0 5px 0 var(--c-accent), var(--sheet); }
.booklet__k { margin-top: 2px; color: var(--c-text-3); font-size: .75rem; font-weight: 700; letter-spacing: .06em; }
.booklet__n { font-size: 2.25rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.booklet__s { margin-top: auto; min-height: 22px; color: var(--c-text-2); font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; }
.booklet__s:empty { width: 15px; height: 22px; min-height: 0; border: 1.5px solid var(--c-line-strong); border-radius: 50%; }

/* practice: two halves, each with its drawing, its size, the share answered right and its question types as a numbered contents list */
.halves { display: grid; gap: 12px; }
@media (min-width: 600px) { .halves { grid-template-columns: 1fr 1fr; } }
.half { min-width: 0; padding: var(--s-4) var(--s-4) var(--s-2); }
.half__head { display: flex; align-items: flex-start; gap: 12px; }
.p3-art-wrap { display: block; flex: none; }
.half__head .p3-art { width: 52px; height: 52px; margin-left: -4px; }
.half__hgroup { flex: 1; min-width: 0; }
.half__title { margin: 2px 0 0; font-size: 1.25rem; letter-spacing: -.015em; }
.half__meta { margin: 0; color: var(--c-text-2); font-size: .875rem; font-variant-numeric: tabular-nums; }
.half__bar { height: 6px; margin: 8px 0 4px; }
.half__bar .p3-bar__fill { transform: scaleX(var(--v, 0)); }
.half__types { margin: var(--s-3) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--c-text); }
.half__types li + li { border-top: 1px solid var(--c-line); }
.half__type { display: flex; align-items: baseline; gap: 12px; min-height: 48px; padding: 12px 2px; color: var(--c-text); font-weight: 600; line-height: 1.4; text-decoration: none; }
.half__type:hover { color: var(--c-accent); }
.half__type:hover > span:last-child { text-decoration: underline; }
.half__no { flex: none; width: 1rem; color: var(--c-text-3); font-variant-numeric: tabular-nums; }
.halves + .more { margin-top: 12px; }

/* the other places as drawn tiles: a sign on a post (safety signs), the factory (workplace glossary), papers with a bookmark (guides) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: var(--s-7); }
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 148px; padding: 14px 12px; color: var(--c-text); text-decoration: none;
  transition: transform var(--t-fast) var(--ease); -webkit-tap-highlight-color: transparent; }
.tile:hover { color: var(--c-text); }
.tile:active { transform: scale(.97); }
.tile .p3-art { width: 52px; height: 52px; margin-left: -4px; }
.tile__title { margin-top: auto; padding-top: 12px; font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.tile__meta { position: absolute; top: 12px; right: 12px; color: var(--c-text-2); font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .tile { min-height: 168px; padding: 16px; } .tile .p3-art { width: 64px; height: 64px; } .tile__meta { top: 16px; right: 16px; } }

/* question screens: printed passages and notices (.p3-print), the sign plate, OMR answer bubbles and the grader's marks (kit) */
.p3 .passage { padding: var(--s-4); }
.realia .rt { border-bottom-color: var(--c-text); }
.realia-message.p3-print { border-color: var(--c-line-strong); border-radius: 18px 18px 18px 4px; background: var(--c-surface-2); }
.realia-ticket.p3-print { border-style: dashed; }
.p3 .pic .pic-img { border-radius: 2px; }
/* picture and sign choices keep their bubble in the corner, so the hand circle goes round it there (bubble centre 18px / 22px) */
.opts.pics .p3-opt::after { left: -6px; top: 22px; }
/* the explanation is in the reader's language (it breaks as that script needs); its Korean line keeps whole words ([lang="ko"]) */
.p3 .ui-feedback { word-break: inherit; }

/* result: the score on the same printed ruler; square bars */
.p3 .score .fscale { margin: var(--s-1) 0 var(--s-4); }
.p3 .track, .p3 .track i { border-radius: 0; }

/* desktop home: the reading column (what the test is, the floors, official links) starts beside the title instead of under it, so
   the right side is never empty. Row 2 is flexible, so the tall side column never stretches the title row while the app fills the
   task column (CLS 0); the side column is static HTML, painted in place from the first frame. */
@media (min-width: 1200px) {
  .p3 body.is-home #view { display: grid; grid-template-columns: var(--col) 300px; grid-template-rows: auto 1fr; column-gap: 64px; align-items: start; }
  .p3 body.is-home #view > .hero { grid-column: 1; grid-row: 1; }
  .p3 body.is-home #view > .home-cols { display: contents; }
  .p3 body.is-home .home-main { grid-column: 1; grid-row: 2; min-width: 0; }
  .p3 body.is-home .home-side { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
  .p3 body.is-home #view > .ad-slot { grid-column: 1 / -1; }
  .p3 .home-side > h2:first-child { margin-top: var(--s-7); }
}
/* overflow-wrap: anywhere (kit typesetting) lets a flex item shrink to one character: numbers in rows stay whole */
.wrongitem summary b, .ui-row__trail, .half__no, .booklet__s { flex: none; white-space: nowrap; }

/* ---------- growth features (docs/growth-features-2026-11-02.md): score card, printable paper link, embed panel ---------- */
/* footer: the "퍼가기 / Embed" button reads like the links around it */
.linkbtn { display: inline; min-height: 24px; padding: 0; border: 0; background: none; color: var(--c-text-2); font: inherit; text-decoration: underline; text-decoration-color: var(--c-line-strong); text-underline-offset: .2em; cursor: pointer; }
.linkbtn:hover { color: var(--c-text); text-decoration-color: currentColor; }
footer .linkbtn { color: var(--c-text-3); }

/* the mock test intro: the printable paper, under the rules */
.print-offer { margin-top: var(--s-4); }

/* result: the score card. The preview keeps its 4:5 box before it is drawn (CLS 0); the status line keeps its line. */
.sharecard { margin-top: var(--s-5); }
.sharecard__title { margin: 0 0 var(--s-3); font-size: 1.25rem; line-height: 1.3; letter-spacing: -.02em; }
.sharecard__body { display: grid; gap: var(--s-4); }
.sharecard__cv { display: block; width: 100%; max-width: 280px; height: auto; aspect-ratio: 4 / 5; border-radius: 2px; background: #f6f4ef; box-shadow: var(--sheet); }
.sharecard__side { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.sharecard__side .note { margin: 0; }
.sharecard__btns { display: grid; gap: var(--s-2); }
.sharecard__status { min-height: 1.5em; margin: 0; }
@media (min-width: 600px) { .sharecard__body { grid-template-columns: 280px minmax(0, 1fr); } }

/* the "퍼가기 / Embed" dialog: code, language and colour, copy, live preview */
.embed-dlg { max-height: 88vh; }
.embed-dlg .note { margin: 0 0 var(--s-3); }
.embed-opts { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); margin-bottom: var(--s-3); }
.embed-field { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; margin: 0; padding: 0; border: 0; font-size: var(--fs-small); font-weight: 600; }
.embed-field select { min-height: var(--tap); max-width: 100%; }
.embed-radios { display: flex; gap: var(--s-2); }
.embed-radio { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-3); border: 1px solid var(--c-line-strong); border-radius: var(--r-2); font-weight: 600; cursor: pointer; }
.embed-radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--c-accent); }
.embed-label { display: block; margin: var(--s-3) 0 var(--s-1); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; }
h3.embed-label { padding: 0; border: 0; }
.embed-code { display: block; width: 100%; padding: var(--s-2) var(--s-3); border: 1px solid var(--c-line-strong); border-radius: var(--r-2); background: var(--c-surface-2); color: var(--c-text); font: .8125rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; resize: none; }
.embed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-2); }
.embed-status { min-height: 1.5em; margin: 0 !important; }
.embed-preview { display: block; width: 360px; max-width: 100%; height: 520px; border: 1px solid var(--c-line); border-radius: var(--r-2); background: var(--c-bg); }

/* ---------- confirm dialog `ui-dialog` (2026-11-03): leaving a running mock test, js/confirm-dialog.js ----------
   The same parts as KIIP Prep's: no border, --r-3, --e-2, a dimmed backdrop. [safe (secondary)] [action (primary)] side by side, each
   --control-h (48px, never under the 44px tap size) high; long labels wrap and, when two do not fit, the buttons stack.
   Colours are tokens only, so dark mode follows; there is no animation. */
.ui-dialog { box-sizing: border-box; width: min(27.5rem, calc(100% - 2 * var(--gutter))); max-height: calc(100dvh - 24px); margin: auto; padding: var(--s-5);
  border: 0; border-radius: var(--r-3); background: var(--c-surface); color: var(--c-text); box-shadow: var(--e-2); overflow-y: auto; }
.ui-dialog::backdrop { background: rgba(10, 12, 16, .55); }
.ui-dialog__title { margin: 0 0 var(--s-2); padding: 0; border: 0; font-size: var(--fs-h3); line-height: var(--lh-tight); letter-spacing: -.01em; }
.ui-dialog__text { margin: 0; color: var(--c-text-2); }
.ui-dialog__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.ui-dialog__actions > * { flex: 1 1 8rem; min-width: 0; min-height: var(--control-h); padding: 8px 12px; text-align: center; white-space: normal; }
/* browsers without dialog.showModal(): fixed in the middle, the backdrop drawn by a wide shadow */
.ui-dialog--fallback { position: fixed; inset: 0; z-index: 100; height: fit-content; box-shadow: var(--e-2), 0 0 0 100vmax rgba(10, 12, 16, .55); }
