/* What It Calls — one hand-written stylesheet (no build step).
   Tokens: docs/design.md §1. Light on :root; dark when the OS asks for it
   (unless the page is forced light) or when data-theme="dark" is set. */

/* ───────────────────────── 1. Tokens ───────────────────────── */
:root {
  color-scheme: light;

  /* §1.1 colour */
  --bg: #FFFFFF;
  --surface: #FAFAFA;
  --surface-2: #F5F5F5;
  --border: #EAEAEA;
  --border-strong: #D4D4D4;
  --text: #171717;
  --muted: #666666;
  --link: #0070F3;
  --btn-bg: #171717;
  --btn-fg: #FFFFFF;
  --btn-bg-hover: #383838;
  --focus: #0070F3;
  --danger: #E5484D;
  --tag-fg: #444444;

  /* verdicts: dot / background / text (+ dashed border for needs review) */
  --v-required-dot: #F5A524;
  --v-required-bg: #FFF4E0;
  --v-required-fg: #9A5800;
  --v-optional-dot: #0070F3;
  --v-optional-bg: #EAF3FF;
  --v-optional-fg: #0058C2;
  --v-none-dot: #16A34A;
  --v-none-bg: #E8F7EE;
  --v-none-fg: #11803A;
  --v-review-dot: #8F8F8F;
  --v-review-bg: transparent;
  --v-review-border: #BDBDBD;
  --v-review-fg: #555555;

  /* §1.2 type */
  --font-sans: Geist, "Pretendard Variable", Pretendard, system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Pretendard Variable", Pretendard, monospace;
  --fs-display: 40px;   --lh-display: 1.15;
  --fs-h1: 28px;        --lh-h1: 1.25;
  --fs-h2: 20px;        --lh-h2: 1.35;
  --fs-h3: 16px;        --lh-h3: 1.4;
  --fs-body-l: 16px;    --lh-body-l: 1.6;
  --fs-body: 14px;      --lh-body: 1.6;
  --fs-label: 13px;     --lh-label: 1.4;
  --fs-caption: 12px;   --lh-caption: 1.5;
  --fs-mono: 13px;      --lh-mono: 1.5;

  /* §1.3 spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --maxw: 1160px;
  --gutter: 32px;

  /* §1.4 radius */
  --r-0: 0;
  --r-chip: 4px;
  --r: 6px;
  --r-pill: 999px;

  /* §1.5 elevation */
  --e1: 0 1px 2px rgba(0, 0, 0, 0.04);
  --e2: 0 8px 24px rgba(0, 0, 0, 0.08);

  /* §1.6 motion */
  --t-quick: 120ms ease-out;
  --t-standard: 200ms ease-in-out;
  --t-progress: 300ms linear;
  --spin: 900ms linear infinite;
  --t-notice-in: 160ms ease-out;
  --t-notice-out: 200ms ease-in;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A0A0A;
    --surface: #111111;
    --surface-2: #1A1A1A;
    --border: #262626;
    --border-strong: #3A3A3A;
    --text: #EDEDED;
    --muted: #A1A1A1;
    --link: #3291FF;
    --btn-bg: #EDEDED;
    --btn-fg: #0A0A0A;
    --btn-bg-hover: #CFCFCF;
    --focus: #3291FF;
    --danger: #FF6369;
    --tag-fg: #C9C9C9;
    --v-required-dot: #F5A524;
    --v-required-bg: #2A1E05;
    --v-required-fg: #FFC24D;
    --v-optional-dot: #3291FF;
    --v-optional-bg: #0B1D33;
    --v-optional-fg: #7DB8FF;
    --v-none-dot: #22C55E;
    --v-none-bg: #0B2415;
    --v-none-fg: #6EE7A0;
    --v-review-dot: #8F8F8F;
    --v-review-border: #4A4A4A;
    --v-review-fg: #BDBDBD;
    --e1: none;
    --e2: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0A0A;
  --surface: #111111;
  --surface-2: #1A1A1A;
  --border: #262626;
  --border-strong: #3A3A3A;
  --text: #EDEDED;
  --muted: #A1A1A1;
  --link: #3291FF;
  --btn-bg: #EDEDED;
  --btn-fg: #0A0A0A;
  --btn-bg-hover: #CFCFCF;
  --focus: #3291FF;
  --danger: #FF6369;
  --tag-fg: #C9C9C9;
  --v-required-dot: #F5A524;
  --v-required-bg: #2A1E05;
  --v-required-fg: #FFC24D;
  --v-optional-dot: #3291FF;
  --v-optional-bg: #0B1D33;
  --v-optional-fg: #7DB8FF;
  --v-none-dot: #22C55E;
  --v-none-bg: #0B2415;
  --v-none-fg: #6EE7A0;
  --v-review-dot: #8F8F8F;
  --v-review-border: #4A4A4A;
  --v-review-fg: #BDBDBD;
  --e1: none;
  --e2: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ───────────────────────── 2. Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4, p, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: var(--fs-mono); }
img, svg { display: inline-block; vertical-align: middle; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -48px; z-index: 100;
  padding: var(--s-2) var(--s-3); background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--r); text-decoration: none; font-size: var(--fs-label);
}
.skip-link:focus { top: var(--s-2); }

.icon { width: 16px; height: 16px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.is-hidden { display: none !important; }

/* type scale */
.display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 700; letter-spacing: -0.025em; }
.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 600; letter-spacing: -0.015em; }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; letter-spacing: -0.01em; }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.body-l { font-size: var(--fs-body-l); line-height: var(--lh-body-l); }
.label { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500; }
.caption { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--muted); }

/* ───────────────────────── 3. Layout ───────────────────────── */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.main { flex: 1 0 auto; padding-bottom: var(--s-7); }
.narrow { max-width: 880px; margin: 0 auto; }

/* top bar — 56px, 1px rule under it */
.topbar { border-bottom: 1px solid var(--border); background: var(--bg); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: var(--s-4); }
.logo {
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--text);
  text-decoration: none; white-space: nowrap;
}
.topnav { display: flex; align-items: center; gap: var(--s-1); }
.topnav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--s-3);
  border: 0; border-radius: var(--r); background: transparent; color: var(--text);
  font-size: var(--fs-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-quick);
}
.topnav__link:hover { background: var(--surface-2); }
.theme-toggle { width: 36px; padding: 0; justify-content: center; }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: inline-block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* language menu — <details>, dropdown e2 */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__button .icon { color: var(--muted); transition: transform var(--t-standard); }
.menu[open] .menu__button .icon { transform: rotate(180deg); }
.menu__list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 160px;
  list-style: none; margin: 0; padding: var(--s-1);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--e2);
}
.menu__item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-2) var(--s-3); border-radius: var(--r-chip);
  color: var(--text); text-decoration: none; font-size: var(--fs-body);
}
.menu__item:hover { background: var(--surface-2); }
.menu__item[aria-current] { font-weight: 600; }

/* footer — centred caption links over a 1px rule */
.footer { flex: none; }
.footer__inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-2) var(--s-3);
  border-top: 1px solid var(--border); padding: var(--s-5) 0 var(--s-6);
  font-size: var(--fs-label); color: var(--muted);
}
.footer__inner a { color: var(--text); text-decoration: none; }
.footer__inner a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ───────────────────────── 4. Controls ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 40px; padding: 0 var(--s-4); border: 1px solid transparent; border-radius: var(--r);
  font-size: var(--fs-body); font-weight: 500; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--t-quick), border-color var(--t-quick), color var(--t-quick);
}
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); }
.btn--secondary { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn--secondary:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn--lg { height: 48px; padding: 0 var(--s-6); font-size: 15px; min-width: 120px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--btn-bg); }

.input {
  display: block; width: 100%; height: 40px; padding: 0 var(--s-3);
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r);
  font-size: var(--fs-body);
  transition: border-color var(--t-quick);
}
.input::placeholder { color: #8F8F8F; }
.input:hover { border-color: var(--border-strong); }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.input--lg { height: 48px; padding: 0 var(--s-4); font-size: var(--fs-body-l); }
.input.is-invalid { border-color: var(--danger); }
.input.is-invalid:focus-visible { outline-color: var(--danger); }
.field-hint { min-height: 18px; margin-top: 6px; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--muted); text-align: left; overflow-wrap: anywhere; }
.field-hint--error { color: var(--danger); }
.field-hint__path { font-family: var(--font-mono); color: var(--text); }

/* filter chips — 6px corners, selected = solid */
.chips { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; flex: none;
  border: 1px solid var(--border); border-radius: var(--r); background: var(--bg);
  color: var(--text); font-size: var(--fs-label); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-quick), border-color var(--t-quick);
}
.chip:hover { background: var(--surface-2); border-color: var(--border-strong); }
.chip[aria-current] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }

/* ───────────────────────── 5. Badges & tags ───────────────────────── */
.badge {
  --b-dot: var(--v-review-dot); --b-bg: var(--v-review-bg); --b-fg: var(--v-review-fg); --b-border: transparent;
  display: inline-flex; align-items: center; gap: var(--s-2); height: 28px; padding: 0 var(--s-3);
  border: 1px solid var(--b-border); border-radius: var(--r-pill);
  background: var(--b-bg); color: var(--b-fg);
  font-size: var(--fs-label); line-height: 1; font-weight: 500; white-space: nowrap;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--b-dot); flex: none; }
.badge--required { --b-dot: var(--v-required-dot); --b-bg: var(--v-required-bg); --b-fg: var(--v-required-fg); }
.badge--optional { --b-dot: var(--v-optional-dot); --b-bg: var(--v-optional-bg); --b-fg: var(--v-optional-fg); }
.badge--none_found { --b-dot: var(--v-none-dot); --b-bg: var(--v-none-bg); --b-fg: var(--v-none-fg); }
.badge--needs_review { --b-border: var(--v-review-border); border-style: dashed; }
.badge--uses_external { --b-dot: var(--v-required-dot); --b-bg: var(--v-required-bg); --b-fg: var(--v-required-fg); }
.badge--uses_external_local_alt { --b-dot: var(--v-optional-dot); --b-bg: var(--v-optional-bg); --b-fg: var(--v-optional-fg); }
/* matrix cell pill: same shape, text only */
.badge--plain .badge__dot { display: none; }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: var(--r-pill); background: var(--surface-2); color: var(--tag-fg);
  font-size: var(--fs-label); line-height: 1; font-weight: 500; white-space: nowrap;
}

/* ───────────────────────── 6. Cards, tables, folds ───────────────────────── */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--e1); }
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 18px var(--s-5); background: var(--surface);
  border-bottom: 1px solid var(--border); border-radius: var(--r) var(--r) 0 0;
}

.table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 10px var(--s-3); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.table thead th { padding-top: 12px; padding-bottom: 12px; font-size: var(--fs-label); font-weight: 500; color: var(--muted); }
.table tbody th { font-weight: 400; }
.table th:first-child, .table td:first-child { padding-left: var(--s-5); }
.table th:last-child, .table td:last-child { padding-right: var(--s-5); }
.table tbody tr:last-child > * { border-bottom: 0; }

/* folding row — <details><summary> */
.fold { border: 1px solid var(--border); border-radius: var(--r); background: var(--bg); }
.fold + .fold { margin-top: var(--s-2); }
.fold > summary {
  display: flex; align-items: center; gap: var(--s-2); padding: 14px var(--s-4);
  list-style: none; cursor: pointer; border-radius: var(--r);
  font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600;
  transition: background-color var(--t-quick);
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover { background: var(--surface); }
.fold > summary .icon-chevron-right { color: var(--muted); transition: transform var(--t-standard); }
.fold[open] > summary .icon-chevron-right { transform: rotate(90deg); }
.fold[open] > summary { border-radius: var(--r) var(--r) 0 0; border-bottom: 1px solid var(--border); }
.fold__body { padding: var(--s-4); }

/* empty / error states — one line, no pictures */
.state { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--s-2) var(--s-3); padding: var(--s-6) var(--s-5); text-align: center; color: var(--muted); }
.state__text { font-size: var(--fs-body); }
.state__link { font-size: var(--fs-body); color: var(--link); text-underline-offset: 3px; }
.state--error .icon { color: var(--danger); }

/* skeleton rows (filter switch) */
.skeleton { display: block; height: 12px; border-radius: var(--r-chip); background: var(--surface-2); }
.skeleton--badge { width: 132px; height: 28px; border-radius: var(--r-pill); }

/* notice (design §3.5) */
.notice-root {
  position: fixed; left: 50%; bottom: var(--s-5); transform: translateX(-50%); z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
  width: max-content; max-width: calc(100vw - 32px); pointer-events: none;
}
.notice {
  --n-color: var(--link);
  display: flex; align-items: center; gap: 10px; padding: 12px var(--s-4) 12px 14px;
  background: var(--bg); color: var(--text); border: 1px solid var(--border); border-left: 3px solid var(--n-color);
  border-radius: var(--r); box-shadow: var(--e2); font-size: var(--fs-body); line-height: 1.45;
  opacity: 0; transform: translateY(8px); pointer-events: auto;
  transition: opacity var(--t-notice-in), transform var(--t-notice-in);
}
.notice .icon { color: var(--n-color); }
.notice.is-in { opacity: 1; transform: none; }
.notice.is-out { opacity: 0; transform: translateY(4px); transition: opacity var(--t-notice-out), transform var(--t-notice-out); }
.notice--success { --n-color: var(--v-none-dot); }
.notice--info { --n-color: var(--link); }
.notice--error { --n-color: var(--danger); }

/* ad slot (design §3.6) — height reserved, labelled 광고 */
.ad-slot { margin: var(--s-5) 0; }
.ad-slot__label { display: block; margin-bottom: var(--s-2); font-size: var(--fs-caption); color: var(--muted); }
.ad-slot__box { min-height: 250px; }

/* ───────────────────────── 7. Front page ───────────────────────── */
.hero { padding: var(--s-7) 0 var(--s-6); text-align: center; }
.hero__sub { margin-top: var(--s-3); font-family: var(--font-mono); font-size: 17px; line-height: 1.5; color: var(--muted); letter-spacing: -0.01em; }
.check-form { max-width: 760px; margin: var(--s-6) auto 0; }
.check-form__row { display: flex; gap: var(--s-3); }
.check-form__row .input { flex: 1 1 auto; min-width: 0; }
.bookmarklet { display: inline-block; margin-top: 2px; font-size: var(--fs-label); color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bookmarklet:hover { text-decoration-thickness: 2px; }

.recent__head { min-height: 68px; }
.recent__table th:nth-child(1) { width: 48%; }
.recent__table .recent__stars { width: 12%; }
.recent__table .recent__verdict { width: 26%; }
.repo-link { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.repo-link:hover { text-decoration-thickness: 2px; }
.recent__meta { display: none; }
.recent__more { border-top: 1px solid var(--border); text-align: center; }
.more-link { display: inline-flex; align-items: center; gap: 6px; padding: var(--s-3) var(--s-4); color: var(--text); font-size: var(--fs-body); text-decoration: none; }
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.more-link .icon { color: var(--muted); }

/* ───────────────────────── 8. Repo head, progress, result ───────────────────────── */
.repo-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-2) var(--s-5); min-width: 0; }
.repo-head__name { font-family: var(--font-mono); font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.repo-head__meta { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: var(--fs-body-l); }
.repo-head__meta > span[aria-hidden] { color: var(--muted); }
.repo-head__stars { display: inline-flex; align-items: center; gap: 6px; }
.repo-head__stars .icon { width: 18px; height: 18px; color: var(--muted); }

.narrow > .repo-head { margin: var(--s-7) 0 var(--s-5); }
.progress__head { padding: var(--s-6) var(--s-6) var(--s-5); }
.progress__lead { margin-top: 6px; color: var(--muted); font-size: var(--fs-body-l); line-height: var(--lh-body-l); }
.progress__body { margin: 0 var(--s-4); padding: var(--s-6) var(--s-4) var(--s-6); border-top: 1px solid var(--border); }
.progress__body--error { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.progress__body--error .check-form { margin: 0; width: 100%; max-width: none; }
.progress__foot { display: flex; align-items: flex-start; gap: var(--s-3); margin: 0 var(--s-4); padding: var(--s-5) var(--s-4) var(--s-6); border-top: 1px solid var(--border); }
.progress__foot > .icon, .progress__retry > .icon { width: 20px; height: 20px; color: var(--muted); margin-top: 2px; }
.progress__note { font-size: var(--fs-body-l); font-weight: 600; line-height: 1.5; }
.progress__note-sub { color: var(--muted); font-size: var(--fs-body); }
.progress__retry { display: flex; gap: var(--s-3); align-items: flex-start; }
.progress__retry-title { font-size: var(--fs-body-l); font-weight: 600; }
.progress__kind { color: var(--muted); }
.retry-form { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3); }
.queue-line { margin: 0 0 var(--s-5); padding: 10px var(--s-3); border-radius: var(--r); background: var(--surface-2); color: var(--muted); font-size: var(--fs-body); }

/* steps: ✓ done (green) / ring running (blue, spinning) / ○ waiting (grey) */
.steps { list-style: none; }
.step { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--s-5); padding-bottom: var(--s-6); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 11px; top: 34px; bottom: 6px;
  border-left: 2px solid var(--border-strong);
}
.step--running::before, .step--waiting::before { border-left-style: dashed; }
.step:last-child::before { display: none; }
.step__icon { position: relative; width: 24px; height: 24px; margin-top: 1px; }
.step__i { position: absolute; inset: 0; display: none; }
.step__i .icon { width: 24px; height: 24px; }
.step--done .step__i--done, .step--running .step__i--running, .step--waiting .step__i--waiting { display: block; }
.step__i--done { color: var(--v-none-dot); }
.step__i--done .icon circle { fill: currentColor; }
.step__i--done .icon path { stroke: #FFFFFF; stroke-width: 2.25; }
.step__i--running { color: var(--v-optional-dot); }
.step__i--running .icon { stroke-width: 2.25; animation: irf-spin var(--spin); }
.step__i--waiting { color: var(--muted); }
/* body grid: title | time / desc | file count / bar across */
.step__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-4); align-items: baseline; }
.step__title { grid-column: 1; font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }
.step__time, .step__count { grid-column: 2; justify-self: end; color: var(--muted); font-size: var(--fs-body-l); line-height: 1.4; white-space: nowrap; }
.step__desc { grid-column: 1; margin-top: 6px; color: var(--muted); font-size: var(--fs-body-l); line-height: 1.5; }
.step__count { margin-top: 6px; }
.step__body > .bar { grid-column: 1 / -1; }
.bar { position: relative; height: 10px; margin-top: var(--s-5); border-radius: var(--r-pill); background: var(--border); overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: var(--r-pill); background: var(--v-optional-dot); transition: width var(--t-progress); }

@keyframes irf-spin { to { transform: rotate(360deg); } }

/* ── result page (design §2 · §3 Screen 2, mockups 02~05) ── */
.result-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin: var(--s-6) 0 var(--s-5); padding-bottom: var(--s-5); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.result-head__gh { flex: none; }
.result-head__gh .icon-external-link { color: var(--muted); }
.repo-head--result { align-items: center; row-gap: var(--s-2); }
.repo-head--result .repo-head__meta { flex-wrap: wrap; row-gap: var(--s-2); }
.repo-head__sep { color: var(--muted); }
.fresh-wrap { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.fresh { display: inline-flex; align-items: center; gap: var(--s-2); white-space: nowrap; }
.fresh__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--v-review-dot); flex: none; }
.fresh--latest { color: var(--v-none-fg); }
.fresh--latest .fresh__dot { background: var(--v-none-dot); }
.fresh--changed, .fresh--rechecking { color: var(--muted); }
.fresh--rechecking .fresh__dot { background: var(--v-optional-dot); }
.fresh--unknown { color: var(--muted); }
.fresh--unknown .fresh__dot { background: transparent; border: 1.5px dashed var(--v-review-dot); }
.fresh__form { display: inline-flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.fresh__link { font-size: var(--fs-body); color: var(--link); text-underline-offset: 3px; }
.btn--sm { height: 30px; padding: 0 var(--s-3); font-size: var(--fs-label); }
.btn--block { display: flex; width: 100%; justify-content: flex-start; gap: var(--s-3); height: 44px; padding: 0 var(--s-4); }
.btn--block .icon { color: var(--text); }

/* two columns: card | aside, folds and the ad under the card; 1fr last row
   takes the aside's extra height so the card and folds stay together */
.result { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto auto 1fr; column-gap: var(--s-5); row-gap: var(--s-4);
  grid-template-areas: "card aside" "folds aside" "ad aside"; align-items: start; }
.result__card { grid-area: card; min-width: 0; }
.result__aside { grid-area: aside; display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.result__folds { grid-area: folds; min-width: 0; }
.result__ad { grid-area: ad; margin: var(--s-2) 0 0; min-width: 0; }
.result--gone { display: block; max-width: 760px; margin: var(--s-6) auto 0; }

.label-card__head { padding: 16px var(--s-5); }
.label-card__top { padding: var(--s-5) var(--s-5) var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.label-card__badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.label-card__reason { color: var(--text); font-size: var(--fs-body-l); line-height: var(--lh-body-l); }
.label-card__nokey { font-size: var(--fs-body-l); line-height: var(--lh-body-l); }
.label-card__nokey strong, .label-card__facts strong { font-weight: 600; }
.label-card__section { margin: 0 var(--s-5); padding: var(--s-2) 0 var(--s-4); border-top: 1px solid var(--border); }
.label-card__section--strong { border-top: 2px solid var(--border-strong); }
.label-card__facts { padding: var(--s-4) 0 var(--s-5); display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-body); }
.label-card__deep { display: flex; align-items: flex-start; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-radius: var(--r); background: var(--surface-2); color: var(--text); font-size: var(--fs-body); }
.label-card__deep .icon { margin-top: 3px; color: var(--v-optional-dot); }
.label-card__limit { display: flex; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-1); color: var(--muted); font-size: var(--fs-body); }
.label-card__limit .icon { margin-top: 3px; color: var(--muted); }
.label-card__empty { padding: var(--s-4) 0; color: var(--muted); }
.review-box { padding: var(--s-4) var(--s-5); border-radius: var(--r); background: var(--surface-2); color: var(--text); font-size: var(--fs-body); line-height: 1.6; display: flex; flex-direction: column; gap: var(--s-1); }
.review-box__title { font-size: var(--fs-body-l); font-weight: 600; }
.review-box__repo code { font-size: var(--fs-body); }
.review-box__links { margin-top: var(--s-2); }

/* tables inside the card: no outer padding, fixed columns so a 「더 보기」
   continuation lines up with the table above it */
.rtable { table-layout: fixed; }
.rtable th, .rtable td { padding: 9px var(--s-3) 9px 0; vertical-align: top; overflow-wrap: anywhere; }
.rtable th:first-child, .rtable td:first-child { padding-left: 0; }
.rtable th:last-child, .rtable td:last-child { padding-right: 0; }
.rtable thead th { padding-top: var(--s-3); padding-bottom: 10px; }
.rtable tbody th { font-weight: 400; }
.rtable code { font-size: 13px; }
.rtable--more { border-top: 1px solid var(--border); }
.matrix__feature { width: 26%; } .matrix__provider { width: 18%; } .matrix__state { width: 15%; } .matrix__default { width: 21%; } .matrix__alt { width: 20%; }
.apis__name { width: 15%; } .apis__cred { width: 14%; } .apis__ev { width: 35%; } .apis__price { width: 13%; } .apis__page { width: 12%; } .apis__date { width: 11%; }
.apis td:nth-child(5) .ev, .apis td:nth-child(6) { white-space: nowrap; }
.rtable .num { text-align: right; }
.apis__host { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-caption) !important; }
.scope-note { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-caption); }
.ev { display: inline-flex; align-items: center; gap: 4px; color: var(--link); text-decoration: none; overflow-wrap: anywhere; }
.ev code { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.ev:hover code { text-decoration-color: var(--link); }
.ev .icon { width: 12px; height: 12px; color: var(--muted); }
code.ev { color: var(--text); }
.ev__note { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-label); line-height: 1.5; }
.rtable__empty td { padding: var(--s-5) 0 var(--s-4); text-align: center; }
.empty-line { font-weight: 600; font-size: var(--fs-body); }

/* matrix cell pill: the badge shape, text only (design §2 행렬 칸) */
.pill {
  --b-bg: transparent; --b-fg: var(--v-review-fg); --b-border: var(--v-review-border);
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  border: 1px solid var(--b-border); background: var(--b-bg); color: var(--b-fg);
  font-size: var(--fs-label); line-height: 1; font-weight: 500; white-space: nowrap;
}
.pill--required { --b-bg: var(--v-required-bg); --b-fg: var(--v-required-fg); --b-border: transparent; }
.pill--optional { --b-bg: var(--v-optional-bg); --b-fg: var(--v-optional-fg); --b-border: transparent; }
.pill--local { --b-bg: var(--v-none-bg); --b-fg: var(--v-none-fg); --b-border: transparent; }
.pill--undetermined { border-style: dashed; }
.tag--sm { height: 20px; padding: 0 8px; font-size: var(--fs-caption); vertical-align: 1px; }

/* 「더 보기」 rows: a quiet details under the table */
.more-rows > summary { display: inline-flex; align-items: center; gap: 6px; padding: var(--s-2) 0; list-style: none; cursor: pointer; color: var(--text); font-size: var(--fs-body); }
.more-rows > summary::-webkit-details-marker { display: none; }
.more-rows > summary .icon { color: var(--muted); transition: transform var(--t-standard); }
.more-rows[open] > summary .icon { transform: rotate(90deg); }
.more-rows > summary:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* 로컬로 바꾸는 길 (mockup 03) */
.switch-box { margin: var(--s-3) 0 var(--s-1); padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; gap: var(--s-3); }
.switch-box__title { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.switch-box__item { display: flex; flex-direction: column; gap: 6px; }
.switch-box__ev { font-size: var(--fs-label); display: flex; flex-wrap: wrap; gap: 4px var(--s-2); align-items: baseline; }
.codeline, .codebox { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3); border-radius: var(--r-chip); background: var(--surface-2); min-width: 0; }
.codeline__code, .codebox__code { flex: 1 1 auto; min-width: 0; font-size: var(--fs-mono); line-height: var(--lh-mono); overflow-wrap: anywhere; color: var(--text); }
.codebox { align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s-3); }
.codebox__code { font-size: var(--fs-caption); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; padding: 0; border: 0; border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; transition: background-color var(--t-quick), color var(--t-quick); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .icon-check { display: none; color: var(--v-none-dot); }
.icon-btn.is-done .icon-copy { display: none; }
.icon-btn.is-done .icon-check { display: inline-block; }

/* right column cards (mockups 04·05) */
.side-card__head { padding: 16px var(--s-5); }
.side-card__body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.actions { gap: 10px; }
.readme-badge img { display: block; height: 20px; width: auto; }
.badge-note { margin-top: -2px; }
.feedback { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.feedback .btn { height: 44px; }

/* folded rows */
.result__folds .fold > summary { gap: var(--s-3); }
.fold__meta { margin-left: auto; color: var(--muted); font-size: var(--fs-label); font-weight: 400; font-variant-numeric: tabular-nums; }
.fold__count { margin-left: auto; padding: 0 8px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); font-size: var(--fs-caption); font-weight: 500; line-height: 20px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px var(--s-5); margin: 0; font-size: var(--fs-body); }
.kv > div { display: contents; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv--tight { gap: 2px var(--s-3); }
.fold-list { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); font-size: var(--fs-body); }
.fold-list .ev { margin-left: 2px; font-size: var(--fs-label); }
.tag--confirmed { background: var(--v-none-bg); color: var(--v-none-fg); }
.mismatch + .mismatch { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.mismatch__topic { margin-bottom: var(--s-2); }
.mismatch__quote { margin: 0 0 6px; padding: var(--s-2) var(--s-3); border-radius: var(--r-chip); background: var(--surface); font-family: var(--font-mono); font-size: var(--fs-mono); overflow-wrap: anywhere; }
.mismatch__quote q { quotes: "\201C" "\201D"; }
.mismatch__quote .ev { font-family: var(--font-sans); font-size: var(--fs-caption); }
.mismatch__code { font-size: var(--fs-body); }
.quotes__note { margin-bottom: var(--s-3); }
.qfile + .qfile { margin-top: var(--s-4); }
.qfile__src { font-size: var(--fs-label); color: var(--muted); overflow-wrap: anywhere; }
.qfile__src code { color: var(--text); }
.qfile__items { list-style: none; margin-top: 6px; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-label); }
.qcode { margin: 6px 0 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-chip); background: var(--surface); border: 1px solid var(--border); overflow-x: auto; white-space: pre; }
/* 2×2, not mockup 05's four narrow columns: real paths are long */
.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.scope-cell { padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--r); background: var(--bg); min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-label); }
.scope-cell__title { font-size: var(--fs-label); font-weight: 600; }
.scope-cell__state { display: flex; align-items: center; gap: 6px; }
.scope-cell__state--ok .icon { color: var(--v-none-dot); }
.mono-list { list-style: none; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.mono-list code { font-size: var(--fs-caption); }
.mono-list .ev .icon { display: none; }
.mono-list--unres li { display: flex; flex-direction: column; gap: 1px; }
.mono-list--unres .ev code { font-size: 11px; color: var(--muted); }
.scope-more { margin-top: var(--s-4); }

.error-page { padding: var(--s-7) 0 var(--s-6); text-align: center; }
.error-page__title { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; letter-spacing: -0.02em; }
.error-page__text { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-body-l); }

/* ───────────────────────── 9. Small screens ───────────────────────── */
@media (max-width: 959px) {
  /* one column: card → aside cards → folds → ad (design §3 Screen 2 모바일) */
  .result { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "card" "aside" "folds" "ad"; }
}
@media (max-width: 639px) {
  :root { --gutter: 16px; --fs-display: 30px; }
  .logo { font-size: 17px; }
  .topnav__link { padding: 0 var(--s-2); }
  .theme-toggle { width: 44px; height: 44px; }
  .menu__button, .topnav > .topnav__link { height: 44px; }

  .hero { padding: var(--s-6) 0 var(--s-5); }
  .hero__sub { font-size: 14px; }
  .check-form { margin-top: var(--s-5); }
  .check-form__row { flex-direction: column; gap: var(--s-2); }
  .check-form__row .btn { width: 100%; }

  .card__head { padding: var(--s-4); }
  .recent__head { flex-direction: column; align-items: stretch; gap: var(--s-3); min-height: 0; }
  .chips { margin: 0 calc(-1 * var(--s-4)); padding: 0 var(--s-4); }
  .chip { height: 44px; padding: 0 var(--s-4); }

  /* table → two columns: repository (+ stars · date line) / verdict */
  .recent__table .recent__stars, .recent__table .recent__date { display: none; }
  .recent__table th:nth-child(1) { width: auto; }
  .recent__table .recent__verdict { width: auto; text-align: right; }
  .table th:first-child, .table td:first-child { padding-left: var(--s-4); }
  .table th:last-child, .table td:last-child { padding-right: var(--s-4); }
  .recent__meta { display: block; margin-top: 2px; }
  .badge { height: 26px; padding: 0 10px; font-size: 12px; gap: 6px; }

  .btn { min-height: 44px; }
  .narrow > .repo-head { margin: var(--s-6) 0 var(--s-4); }
  .repo-head__name { font-size: 22px; }
  .repo-head__meta { font-size: var(--fs-body); }
  .progress__head { padding: var(--s-5) var(--s-4) var(--s-4); }
  .progress__body, .progress__foot { margin: 0; padding-left: var(--s-4); padding-right: var(--s-4); }
  .step { column-gap: var(--s-3); }
  .step__time, .step__count { font-size: var(--fs-label); }
  .step__title { font-size: var(--fs-h3); }
  .step__desc { font-size: var(--fs-body); }
  .result-head { margin-top: var(--s-5); gap: var(--s-3); }
  .result-head__gh { width: 100%; }
  .label-card__head, .side-card__head { padding: var(--s-3) var(--s-4); }
  .label-card__top { padding: var(--s-4) var(--s-4) var(--s-3); }
  .label-card__section { margin: 0 var(--s-4); }
  .side-card__body { padding: var(--s-4); }
  .label-card__nokey, .label-card__reason { font-size: 15px; }
  .scope-grid { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: var(--s-2); }

  /* tables → one card per row, 「라벨: 값」 (design §7 data-label) */
  .rtable, .rtable tbody, .rtable tr, .rtable th, .rtable td { display: block; width: auto; }
  .rtable colgroup, .rtable thead { display: none; }
  .rtable tbody tr { padding: var(--s-3) 0; border-bottom: 1px solid var(--border); }
  .rtable tbody tr:last-child { border-bottom: 0; }
  .rtable tbody th, .rtable tbody td { padding: 3px 0 !important; border: 0; text-align: left !important; }
  .rtable tbody th[data-label], .rtable tbody td[data-label] { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-3); }
  .rtable tbody [data-label]::before { content: attr(data-label); color: var(--muted); font-size: var(--fs-label); font-weight: 400; }
  .rtable tbody th[data-label] { font-weight: 600; }
  .rtable__empty td { display: block; }
  .rtable tbody td.is-empty { display: none; } /* a 「-」 line says nothing on a phone */
  .rtable--more { border-top: 1px solid var(--border); }
  .codebox__code { font-size: 11px; }
  .error-page__title { font-size: 22px; }
}

/* ───────────────────────── 10. Reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; }
  .step__i--running .icon { animation: none; }
}

/* ───────────────────────── 11. Merged matrix rows: call sites fold ───────────────────────── */
.sites { margin-top: var(--s-1); }
.sites > summary { display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer; color: var(--muted); font-size: var(--fs-caption); }
.sites > summary::-webkit-details-marker { display: none; }
.sites > summary .icon { width: 12px; height: 12px; transition: transform var(--t-standard); }
.sites[open] > summary .icon { transform: rotate(90deg); }
.sites__list { list-style: none; margin: var(--s-1) 0 0; padding: 0; display: grid; gap: 2px; font-size: var(--fs-caption); }
.sites__list .ev code { font-size: var(--fs-caption); }
@media (prefers-reduced-motion: reduce) { .sites > summary .icon { transition: none; } }

/* ───────────────────────── 12. Forms: correction, admin ───────────────────────── */
.textarea { height: auto; min-height: 120px; padding: var(--s-3); line-height: 1.6; resize: vertical; font-family: inherit; }
.textarea--sm { min-height: 56px; }
.input--sm { height: 32px; font-size: var(--fs-label); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin-top: var(--s-1); color: var(--danger); font-size: var(--fs-caption); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; color: var(--muted); font-size: var(--fs-body); margin-top: var(--s-5); }
.crumbs a { color: var(--text); }
.correction__title { margin-top: var(--s-3); font-size: 28px; line-height: 1.25; font-weight: 600; }
.correction__lead { margin-top: var(--s-2); }
.correction { margin-top: var(--s-5); }
.correction__head { flex-wrap: wrap; padding: var(--s-3) var(--s-5); background: var(--surface); }
.correction__repo { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.correction__repo code { font-weight: 600; }
.chip-sha { padding: 2px 6px; border-radius: var(--r-chip); background: var(--surface-2); }
.correction__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-6); padding: var(--s-5); }
.correction__side { display: flex; flex-direction: column; gap: var(--s-4); }
.side-box { border: 1px solid var(--border); border-radius: var(--r); padding: var(--s-4); background: var(--surface); }
.side-box .h3 { margin-bottom: var(--s-3); }
.cform { display: flex; flex-direction: column; gap: var(--s-5); }
.correction__form-col > .review-box { margin-bottom: var(--s-4); }
.cform__field { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.cform__label { font-weight: 600; font-size: var(--fs-body); }
.cform .check { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-body); cursor: pointer; }
.cform .check input { width: 16px; height: 16px; accent-color: var(--btn-bg); }
.cform__row { padding-left: 24px; }
.cform .btn--primary { align-self: flex-start; }
.done-box { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); border: 1px solid var(--border); border-left: 3px solid var(--v-none-dot); border-radius: var(--r); }
.done-box__title { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--fs-body-l); }
.done-box__title .icon { color: var(--v-none-dot); }
.history { width: 100%; font-size: var(--fs-body); }
.history td, .history th { padding: var(--s-2) var(--s-2) var(--s-2) 0; text-align: left; vertical-align: top; }
.hstate--fixed, .hstate--unpublished { background: var(--v-none-bg); color: var(--v-none-fg); }
.hstate--no_change { background: var(--surface-2); }
.hstate--open { background: transparent; border: 1px dashed var(--v-review-border); }
@media (max-width: 959px) {
  .correction__grid { grid-template-columns: 1fr; }
  .correction__side { order: -1; }
}

.admin { margin-top: var(--s-5); }
.admin__title { margin-bottom: var(--s-4); }
.admin__login { max-width: 360px; padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.admin__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.admin__scroll { overflow-x: auto; }
.admin-table { width: 100%; min-width: 900px; font-size: var(--fs-body); }
.admin-table th, .admin-table td { padding: var(--s-3) var(--s-3) var(--s-3) 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.admin-table__req { max-width: 420px; }
.admin-table__body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: var(--s-1); }
.admin-notes { margin: var(--s-2) 0 0; padding-left: var(--s-4); font-size: var(--fs-caption); color: var(--muted); }
.admin-form { display: flex; flex-direction: column; gap: var(--s-2); min-width: 220px; }
.admin-form--row { flex-direction: row; flex-wrap: wrap; margin-top: var(--s-2); }

/* ───────────────────────── 13. Documents (design §3 Screen 5) ───────────────────────── */
.doc { max-width: 720px; margin: var(--s-6) auto 0; }
.doc__title { font-size: 28px; line-height: 1.25; font-weight: 600; }
.doc__updated { margin-top: var(--s-1); }
.doc__body { margin-top: var(--s-5); line-height: 1.7; font-size: var(--fs-body-l); }
.doc__body > * + * { margin-top: var(--s-4); }
.doc__body h2 { margin-top: var(--s-7, 48px); font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; scroll-margin-top: 72px; }
.doc__body h3 { margin-top: var(--s-5); font-size: var(--fs-h3); font-weight: 600; }
.doc__body ul, .doc__body ol { padding-left: var(--s-5); }
.doc__body li + li { margin-top: var(--s-1); }
.doc__body a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.doc__body .btn { text-decoration: none; color: var(--text); }
.doc__lead { font-size: var(--fs-body-l); color: var(--muted); }
.doc__toc { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); padding: var(--s-4) var(--s-5); font-size: var(--fs-body); }
.doc__toc ol { margin: 0; }
.doc__toc a { color: var(--text); text-decoration: none; }
.doc__toc a:hover { text-decoration: underline; }
.doc__table { width: 100%; font-size: var(--fs-body); }
.doc__table th, .doc__table td { padding: var(--s-2) var(--s-3) var(--s-2) 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.doc__box { border: 1px solid var(--border); border-radius: var(--r); padding: var(--s-4) var(--s-5); background: var(--surface); }
.doc__body code { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.9em; }
@media (min-width: 1240px) {
  .doc { position: relative; }
  .doc__body > .doc__toc { position: absolute; left: calc(100% + 32px); top: 0; width: 220px; margin: 0; }
}
@media (max-width: 959px) { .doc__table { display: block; overflow-x: auto; } }

.feedback__btn .icon { width: 16px; height: 16px; }
