/* Pretendard v1.3.9 (SIL OFL 1.1, fonts/LICENSE.txt), self-hosted: the CSP allows same-origin fonts only. */
@font-face {
  font-family: Pretendard;
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/PretendardVariable.woff2") format("woff2");
}

/* Design tokens (HANDOFF §11, §9-1). White ground, near-black ink, one dark-navy accent.
   Contrast: --ink 17.9:1, --sub 6.1:1, --warn on --warn-bg 6.6:1 (all ≥ 4.5:1). */
:root {
  --ink: #111418;
  --sub: #5b6370;
  --line: #e4e7ec;
  --bg: #ffffff;
  --accent: #1d3a6e;
  --accent-ink: #ffffff;
  --accent-soft: #eef2fa;
  --warn: #9a3b00;
  --warn-bg: #fff4ec;
  --ok: #0f6b3f;
  --ok-bg: #edf7f1;
  --test: #6b4e00;
  --test-bg: #fff6d6;
  --font: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --text-sm: 14px;   /* captions only */
  --text: 16px;      /* minimum for body copy */
  --text-lg: 17px;
  --h1: 22px;
  --num-xl: 34px;
  --tap: 44px;       /* minimum touch target */
  --btn: 54px;
  --radius: 14px;
  --gutter: 20px;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: var(--text); line-height: 1.5; color: var(--ink); background: var(--bg); }
.page { max-width: 480px; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; }
.test-band { background: var(--test-bg); color: var(--test); font-size: var(--text-sm); font-weight: 700; text-align: center; padding: 8px var(--gutter); }
.top { padding: 14px var(--gutter); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.brand { font-weight: 800; letter-spacing: -.2px; }
.top .meta { display: flex; gap: 12px; align-items: center; color: var(--sub); font-size: var(--text-sm); }
.top a { color: var(--sub); min-height: var(--tap); display: inline-flex; align-items: center; }
.body { padding: 24px var(--gutter); flex: 1; }
.requester { display: flex; align-items: center; gap: 10px; color: var(--sub); }
.requester img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.requester b { color: var(--ink); }
h1 { font-size: var(--h1); line-height: 1.35; font-weight: 700; letter-spacing: -.3px; margin-top: 12px; }
.lead { color: var(--sub); margin-top: 8px; }
.big { margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.big .k { color: var(--sub); }
.big .v { font-size: var(--num-xl); font-weight: 800; letter-spacing: -.8px; margin-top: 2px; font-variant-numeric: tabular-nums; }
dl.rows { margin-top: 6px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.row dt { color: var(--sub); flex-shrink: 0; }
.row dd { font-weight: 600; text-align: right; word-break: keep-all; overflow-wrap: anywhere; }
.row dd small { display: block; font-weight: 400; color: var(--sub); font-size: var(--text-sm); }
details { margin-top: 16px; }
details summary { min-height: var(--tap); display: flex; align-items: center; color: var(--sub); cursor: pointer; }
details .row dd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-sm); font-weight: 400; }
.note { margin-top: 12px; color: var(--sub); }
.hint { margin-top: 8px; color: var(--sub); font-size: var(--text-sm); }
.status { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.status[data-tone="warn"] { background: var(--warn-bg); color: var(--warn); }
.status:empty { display: none; }
.foot { padding: 16px var(--gutter) 28px; }
.btn { width: 100%; min-height: var(--btn); border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font: inherit; font-size: var(--text-lg); font-weight: 700; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn:focus-visible, .link:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--tap); margin-top: 8px; font: inherit; color: var(--sub); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.state-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; background: var(--warn-bg); color: var(--warn); }
.state-icon.ok { background: var(--ok-bg); color: var(--ok); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.amount { font-size: 44px; font-weight: 800; letter-spacing: -1px; margin-top: 16px; font-variant-numeric: tabular-nums; }
.note a { color: var(--accent); }
