/*
 * zkAccess — the one stylesheet the person-facing pages share.
 *
 * The pages that use it: 参加 (/onboard), 資格の確認 (/, the proving page),
 * 匿名通報窓口 (/case/), the committee's page and app-zkaccess. Each page keeps
 * its own semantic HTML; this file is what makes them read as one product
 * rather than several tools.
 *
 * The look is the design instruction of 2026-09-25 (デザイン指示書, over
 * 引き継ぎ書.md): IBM Plex Sans JP, the tokens below in light and dark, no
 * shadows, and ⚠️ **no colour on an edge** — a card or a row never marks its
 * state with a band or a left rule. State and marks are a pill, a step's bar,
 * the colour of a whole surface, or words.
 *
 * ⚠️ No framework and no build step, on purpose. The pages are cross-origin
 * isolated (COOP/COEP) for the prover, and a stylesheet or a font from a CDN
 * would need CORP headers we do not control — and a request from the reporter's
 * page to a third party tells that party somebody opened it. The font is served
 * beside this file (`fonts/`, written by `tools/vendor-ibm-plex-sans-jp.mjs`);
 * every deployment that copies this file copies `fonts/` with it.
 *
 * ⚠️ Class names `.line`, `.marked`, `.title`, `.detail`, `.quiet`, `.warn`,
 * `.muted`, `#track`, `#bar` are what `PortalScreens` / `BrowserDom` write.
 * Renaming them here breaks a page that cannot tell. ⚠️ So do the token names
 * (`--surface-sunken`, `--rule`, `--accent-wash` …): app-zkaccess and the
 * committee's UnoCSS configs read them. The values changed; the names did not.
 */

@import url("fonts/ibm-plex-sans-jp.css");

:root {
  --font-sans: 'IBM Plex Sans JP', ui-sans-serif, system-ui, -apple-system,
    'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
    'Noto Sans Mono', monospace;

  /* 指示書 §3.1 — the screen, the card, and what sits sunken inside a card. */
  --bg: #eef0f3;
  --surface: #fff;
  --surface-sunken: #f5f6f8;
  --surface-raised: #fff;
  --ink: #16181d;
  --ink-soft: #3d434e;
  --ink-muted: #5b6270;
  --rule: #e0e3e8;
  --rule-strong: #c3c8d0;

  /* zkAccess's own screens (参加, 資格の確認) are the default frame: indigo. */
  --accent: #5230F6;
  --accent-ink: #4021d6;
  --accent-wash: #ece8fe;
  --on-accent: #fff;

  /* zkAccess's own colour — the identity layer's mark, the same inside any app's frame. */
  --zk: #5230F6;
  --zk-wash: #f3f0ff;

  /* 指示書 §3.2 — meaning, the same in every frame. */
  --ok: #00735b;
  --ok-wash: #e0fff7;
  --warn: #8a5000;
  --warn-wash: #fff6e5;
  --stop: #a81f2d;
  --stop-wash: #fdeef0;

  /* 指示書 §3.6 */
  --radius: 10px;
  --radius-sm: 8px;
  --radius-tag: 4px;
  --bar: 4px;
  /* No shadows (指示書 §1-6). Kept as a name: a page that still says `var(--lift)` gets none. */
  --lift: none;
  --dur: 200ms;

  color-scheme: light;
}

/*
 * Dark (2026-11-27, 利用者: 自動・ライト・ダーク の 3 つ, every login and app screen). The
 * person's choice rides on <html data-theme> (`zk-theme.js`, beside this file): 自動 is its
 * absence and follows the device; ライト and ダーク win over the device. So each dark block
 * below comes twice — under the device's dark unless ライト was chosen, and for ダーク
 * chosen — since a media query cannot share a block with a selector.
 * `:where()` keeps every rule's weight what it was before the choice existed.
 */
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --bg: #0e1013;
    --surface: #181b20;
    --surface-sunken: #13161a;
    --surface-raised: #181b20;
    --ink: #eceef1;
    --ink-soft: #c2c7cf;
    --ink-muted: #8d95a2;
    --rule: #2b3038;
    --rule-strong: #454c57;
    --accent: #a594ff;
    --accent-ink: #c4b8ff;
    --accent-wash: #241a5c;
    --on-accent: #fff;
    --zk: #a594ff;
    --zk-wash: #241a5c;
    --ok: #87FFE6;
    --ok-wash: #003d31;
    --warn: #f0b45a;
    --warn-wash: #2b2210;
    --stop: #ff8a95;
    --stop-wash: #341519;
    color-scheme: dark;
  }
}
/* ⚠️ The same values as the block above, for ダーク chosen whatever the device says (zk-theme.js) —
 * change both. conformance/browser/theme.spec.mjs holds them equal. */
:root:where([data-theme="dark"]) {
  --bg: #0e1013;
  --surface: #181b20;
  --surface-sunken: #13161a;
  --surface-raised: #181b20;
  --ink: #eceef1;
  --ink-soft: #c2c7cf;
  --ink-muted: #8d95a2;
  --rule: #2b3038;
  --rule-strong: #454c57;
  --accent: #a594ff;
  --accent-ink: #c4b8ff;
  --accent-wash: #241a5c;
  --on-accent: #fff;
  --zk: #a594ff;
  --zk-wash: #241a5c;
  --ok: #87FFE6;
  --ok-wash: #003d31;
  --warn: #f0b45a;
  --warn-wash: #2b2210;
  --stop: #ff8a95;
  --stop-wash: #341519;
  color-scheme: dark;
}

/* ── base ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font: 1rem/1.75 var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;

  /*
   * Outside the card — the header and the footer. Declared here, not on :root,
   * so they follow the frame's accent: a custom property resolves where it is
   * declared, and `--accent` is set on <body>.
   */
  --chrome-ink: var(--ink);
  --chrome-soft: var(--ink-muted);
  --chrome-line: var(--rule-strong);
  --chrome-dot: var(--accent);
  --chrome-dot-ring: var(--accent-wash);
  --chrome-zk: var(--zk);
}

/* The page's one column. */
main {
  width: min(34rem, 100% - 2rem);
  margin: clamp(1rem, 5vh, 3rem) auto;
  flex: 1 0 auto;
}

h1 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 0.5rem; font-weight: 700; }
h2 { font-size: 1.125rem; line-height: 1.4; margin: 0 0 0.5rem; font-weight: 700; }
h3 { font-size: 1rem; margin: 0 0 0.35rem; }
p  { margin: 0.5rem 0; }
p.lead { font-size: 1.0625rem; color: var(--ink-soft); }
.muted { color: var(--ink-muted); font-size: 0.9375rem; }
.small { font-size: 0.875rem; }
a { color: var(--accent-ink); text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 1.25rem 0; }
code, pre, .mono { font-family: var(--font-mono); font-size: 0.9em; }
pre { white-space: pre-wrap; word-break: break-word; margin: 0; }

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

/* ── frames: which layer is speaking ─────────────────────────────────── */
/*
 * A page is in exactly one frame.
 *
 *   data-frame="zkaccess"   the identity layer's own screens — registering a
 *                           device, confirming eligibility, answering on
 *                           /prove. Purple. They name the application they are
 *                           doing it *for* (`.context`).
 *   data-frame="app"        an application built on zkAccess — the vote, the
 *                           reference tenant, the anonymous reporting desk.
 *                           Green, every app alike (the app's name is in the
 *                           header, not in a colour of its own), and a footer
 *                           that says who does the identity work (`.powered`).
 *   data-frame="committee"  the same application, the investigators' side.
 *
 * The rule: zkAccess never appears as the product on an app page, and an app
 * never appears as the author of an identity screen. **A colour is a layer**
 * (docs/ui-frames.md §3, 2026-11-21): purple zkAccess, green the apps, あずき the
 * committee — and the state colours (--ok, --warn, --stop) are never an accent.
 * The palette (the user's, 2026-11-21): purple #5230F6; green #00876B / #00FECA /
 * #87FFE6. --ok is the palette's green as text (#00735b / #87FFE6, 2026-11-22:
 * the user — a yellow-green is not in the palette); a state is told from an app
 * button by its form (the pill with its dot, the notice's rule), not by its hue.
 * Where a given colour does not reach 4.5:1
 * as text or under white, a step of it is used (#007D63, #4021d6, and in the
 * dark #a594ff / #c4b8ff).
 */
/*
 * The button's own colour: the frame's accent, except zkAccess in the dark,
 * where the button keeps #5230F6 under white text (6.75:1) and the lines, marks
 * and text take the lighter steps (#5230F6 is only 2.6:1 on the dark surface).
 */
body { --button: var(--accent); --button-hover: var(--accent-ink); }
body[data-frame="zkaccess"] {
  --accent: #5230F6;
  --accent-ink: #4021d6;
  --accent-wash: #ece8fe;
  --on-accent: #fff;
}
body[data-frame="app"] {
  --accent: #007D63;
  --accent-ink: #00735b;
  --accent-wash: #e0fff7;
  --on-accent: #fff;
}
/*
 * The committee (指示書 §3.3 / §6): the screen is あずき色 #2b0f25 in light and
 * dark alike — it replaces the pink of 2026-09-10 — and only the card changes
 * with the mode. The accent #8a1c62 stays as decided. ⚠️ **Outside the card the
 * text is light even in light mode**, because what it sits on is dark.
 */
body[data-frame="committee"] {
  --bg: #2b0f25;
  --surface-sunken: #fdf2fa;
  --rule: #efd0e6;
  --rule-strong: #d9a7ca;
  --accent: #8a1c62;
  --accent-ink: #6e144e;
  --accent-wash: #f7d5ec;
  --on-accent: #fff;
  --chrome-ink: #f4e4ee;
  --chrome-soft: #d4b3c7;
  --chrome-line: #7a4a6c;
  --chrome-dot: #f28ccc;
  --chrome-dot-ring: #4a1f3f;
  --chrome-zk: #a594ff;
}
@media (prefers-color-scheme: dark) {
  /* ⚠️ The zkaccess frame's light wash and dark values are provisional (指示書 §3.4 / §8). */
  :where(:root:not([data-theme="light"])) body[data-frame="zkaccess"], :where(:root:not([data-theme="light"])) body:not([data-frame]) {
    --accent: #a594ff;
    --accent-ink: #c4b8ff;
    --accent-wash: #241a5c;
    --on-accent: #fff;
    --button: #5230F6;
    --button-hover: #4021d6;
  }
  :where(:root:not([data-theme="light"])) body[data-frame="app"] {
    --accent: #00FECA;
    --accent-ink: #87FFE6;
    --accent-wash: #003d31;
    --on-accent: #00261e;
  }
  :where(:root:not([data-theme="light"])) body[data-frame="committee"] {
    --surface: #1f151d;
    --surface-raised: #1f151d;
    --surface-sunken: #26192b;
    --rule: #43283c;
    --rule-strong: #6a3d5e;
    --accent: #f28ccc;
    --accent-ink: #ffd1f7;
    --accent-wash: #43203a;
    --on-accent: #2b0f25;
  }
}
/* ⚠️ The same values as the block above, for ダーク chosen whatever the device says (zk-theme.js) —
 * change both. conformance/browser/theme.spec.mjs holds them equal. */
:where(:root[data-theme="dark"]) body[data-frame="zkaccess"], :where(:root[data-theme="dark"]) body:not([data-frame]) {
  --accent: #a594ff;
  --accent-ink: #c4b8ff;
  --accent-wash: #241a5c;
  --on-accent: #fff;
  --button: #5230F6;
  --button-hover: #4021d6;
}
:where(:root[data-theme="dark"]) body[data-frame="app"] {
  --accent: #00FECA;
  --accent-ink: #87FFE6;
  --accent-wash: #003d31;
  --on-accent: #00261e;
}
:where(:root[data-theme="dark"]) body[data-frame="committee"] {
  --surface: #1f151d;
  --surface-raised: #1f151d;
  --surface-sunken: #26192b;
  --rule: #43283c;
  --rule-strong: #6a3d5e;
  --accent: #f28ccc;
  --accent-ink: #ffd1f7;
  --accent-wash: #43203a;
  --on-accent: #2b0f25;
}

header.frame {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 0 0 1rem; min-height: 2rem;
  color: var(--chrome-ink);
}
header.frame .frame-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; color: var(--chrome-ink); font-size: 0.9375rem;
}
header.frame .frame-brand::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--chrome-dot); box-shadow: 0 0 0 3px var(--chrome-dot-ring);
}
header.frame .frame-role { color: var(--chrome-soft); font-size: 0.78125rem; text-align: right; }
/*
 * The header's right: the role, then what the page offers beside it (配色, an app's 「ログ」).
 * ⚠️ A group of its own, not more children of the header: `zk-veil.js` never magnifies text whose
 * block holds a control (nor the words inside a button), and the header's `space-between` would push
 * the role to the middle.
 */
header.frame .frame-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.35rem 0.75rem; }

/*
 * 配色 — 自動 → ライト → ダーク (`zk-theme.js`'s <zk-theme-switch>, docs/ui-frames.md §3). One button
 * with an outline: the scheme now — 「◐ 自動」, 「☀」, 「☾」; a press moves to the next (2026-11-27, 利用者
 * — the icon alone, with no edge, was not seen as a button; the word only for 自動). Small and outlined
 * (Material 3's outlined button), so it does not compete with the screen's one filled button.
 */
zk-theme-switch { display: inline-flex; flex: none; }
button.theme-switch {
  display: inline-flex; align-items: center; gap: 0.35rem;
  height: 32px; padding: 0 0.75rem 0 0.6rem;
  border: 1px solid var(--chrome-line); border-radius: 999px;
  background: transparent; color: var(--chrome-ink);
  font-size: 0.8125rem; font-weight: 600; line-height: 1; white-space: nowrap;
}
button.theme-switch:hover {
  background: color-mix(in srgb, var(--chrome-ink) 8%, transparent);
  border-color: var(--chrome-soft); color: var(--chrome-ink);
}
button.theme-switch:active { transform: none; }
/* ☀ and ☾ alone: a round button the height's width (自動 keeps its word). */
button.theme-switch:not([data-choice="auto"]) { width: 32px; padding: 0; justify-content: center; }
button.theme-switch svg {
  flex: none; width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
button.theme-switch svg .fill { fill: currentColor; stroke: none; }

/* On a zkAccess screen: which application this is for. */
.context {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; color: var(--ink-soft);
  background: var(--surface-sunken); border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.15rem 0.75rem; margin: 0 0 0.75rem;
}
.context strong { color: var(--ink); }

/* Who does the identity work. Always zkAccess's colour. */
.powered, .by-zkaccess {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700;
}
.powered::before, .by-zkaccess::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--zk);
}
/* Inside the card (the one screen where it is at work): quiet. */
.by-zkaccess { font-size: 0.8125rem; font-weight: 500; color: var(--ink-muted); margin: 0.75rem 0 0; }

footer.frame-foot {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.25rem 1rem;
  color: var(--chrome-soft); font-size: 0.78125rem; text-align: center; margin: 1.5rem 0 0;
}
footer.frame-foot .powered { color: var(--chrome-ink); }
footer.frame-foot .powered::before { background: var(--chrome-zk); }

/* ── card (one to a screen; no shadow, no edge) ─────────────────────── */

.card, section.card {
  background: var(--surface-raised);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
}
.card + .card { margin-top: 1rem; }
/*
 * ⚠️ Two cards from two Astro islands are not siblings — each sits in its own
 * <astro-island> (display: contents). With no border and no shadow, cards that
 * touch read as one (app-zkaccess, 2026-09-25).
 */
astro-island + astro-island > .card:first-child { margin-top: 1rem; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.stack > * + * { margin-top: 0.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.actions > * { flex: 1 1 12rem; }

/* ── buttons ──────────────────────────────────────────────────────────── */

button, .button {
  appearance: none;
  font: inherit; font-weight: 700;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--button);
  background: var(--button);
  color: var(--on-accent);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  line-height: 1.4;
  transition: background var(--dur), border-color var(--dur), transform var(--dur);
}
button:hover, .button:hover { background: var(--button-hover); border-color: var(--button-hover); color: var(--on-accent); }
button:active, .button:active { transform: translateY(1px); }
/*
 * Disabled: Material 3's filled-disabled (the user's guideline, 2026-11-22) — a grey fill, not an outline that
 * reads as one more box beside the choices. ⚠️ Danger stays Figma's to decide (指示書 §8).
 */
button[disabled], button[aria-disabled="true"] {
  background: color-mix(in srgb, var(--ink) 12%, transparent); border-color: transparent;
  color: color-mix(in srgb, var(--ink) 40%, transparent); cursor: not-allowed;
}
button.quiet, .button.quiet {
  background: var(--surface-raised); color: var(--ink); border-color: var(--rule-strong);
}
button.quiet:hover, .button.quiet:hover { background: var(--surface-sunken); border-color: var(--ink-muted); color: var(--ink); }
button.danger, .button.danger { background: var(--stop); color: #fff; border-color: var(--stop); }
button.danger:hover, .button.danger:hover { background: var(--stop); border-color: var(--stop); color: #fff; opacity: 0.9; }
button.link { background: none; border: 0; color: var(--accent-ink); padding: 0.25rem 0; font-weight: 500; text-decoration: underline; }
button.link:hover { color: var(--accent); background: none; }

/* A toolbar: small quiet buttons that keep their own width. */
.toolbar > button, .toolbar > .button { flex: 0 0 auto; font-size: 0.875rem; padding: 7px 14px; }

/* ── notices ──────────────────────────────────────────────────────────── */

.notice, .warn {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid transparent;
  margin: 0.75rem 0;
  font-size: 0.9375rem;
  font-weight: 700;
}
.notice.ok   { background: var(--ok-wash);   color: var(--ok);   border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.notice.info { background: var(--accent-wash); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.notice.warn, .warn { background: var(--warn-wash); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.notice.stop { background: var(--stop-wash); color: var(--stop); border-color: color-mix(in srgb, var(--stop) 35%, transparent); }
.notice:empty, .warn:empty { display: none; }
.notice p:first-child { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }
.notice .button { font-size: 1rem; }

/* ── status pill (a round pill inside the card; never a band) ────────── */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.84375rem; font-weight: 700; line-height: 1.6;
  padding: 2px 10px; border-radius: 999px;
  background: var(--surface-sunken); color: var(--ink-soft);
}
.pill::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok   { background: var(--ok-wash);   color: var(--ok); }
.pill.wait { background: var(--warn-wash); color: var(--warn); }
.pill.wait::before { animation: pulse 1.2s ease-in-out infinite; }
.pill.stop { background: var(--stop-wash); color: var(--stop); }

@keyframes pulse { 50% { opacity: 0.25; } }

/* ── steps ────────────────────────────────────────────────────────────── */
/*
 * Three bars side by side, the label under each (指示書 §5). Done is ok, the
 * current one the accent, the rest the strong rule. ⚠️ **No numbers and no ✓**
 * — the bar is the mark; the list is still an <ol> for a screen reader.
 */
ol.steps {
  list-style: none; margin: 1rem 0; padding: 0;
  display: flex; gap: 6px;
  font-size: 0.78125rem; line-height: 1.5; color: var(--ink-muted);
}
ol.steps li { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
ol.steps li::before {
  content: ""; height: var(--bar); border-radius: 2px; background: var(--rule-strong);
}
ol.steps li strong { font-weight: inherit; }
ol.steps li.done::before { background: var(--ok); }
ol.steps li.current, ol.steps li[aria-current="step"] { color: var(--ink); font-weight: 700; }
ol.steps li.current::before, ol.steps li[aria-current="step"]::before { background: var(--accent); }

/*
 * Steps that explain themselves (参加 and 資格の確認: a title and a sentence
 * under it). Three or four sentences do not fit side by side on a phone, so
 * these stack — each with the same bar above its title, and the same colours.
 */
ol.steps:has(> li > .muted) { display: block; font-size: 1rem; line-height: 1.6; }
ol.steps:has(> li > .muted) li { display: block; margin: 0.9rem 0 0; }
ol.steps:has(> li > .muted) li:first-child { margin-top: 0; }
ol.steps:has(> li > .muted) li::before { display: block; width: 2.5rem; margin-bottom: 0.4rem; }
ol.steps:has(> li > .muted) li strong { display: block; font-weight: 700; }
ol.steps:has(> li > .muted) li .muted { display: block; font-weight: 400; }
ol.steps:has(> li > .muted) li.done { color: var(--ink-soft); }
/* 登録 v3: how far a mail's enrolment has got, under its button (MailProgress.kt). The step under
   way pulses; a refusal stays on the step it stopped, in the stop colour, and keeps its line breaks. */
ol.steps.mail-progress { margin-top: 1rem; }
ol.steps.mail-progress li .muted { white-space: pre-line; }
ol.steps.mail-progress li.current::before { animation: pulse 1.2s ease-in-out infinite; }
ol.steps li.stop { color: var(--stop); }
ol.steps li.stop::before { background: var(--stop); }
button[aria-busy="true"] { cursor: progress; }

/* ── progress (the step's bar, the same thickness) ────────────────────── */

#track {
  height: var(--bar); background: var(--rule-strong); border-radius: 2px; overflow: hidden; margin: 1rem 0 0.5rem;
}
#bar { height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width 0.15s linear; }
.progress-line { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-muted); font-size: 0.9375rem; }

/* ── details (the long explanations, folded) ─────────────────────────── */
/* ⚠️ Provisional — details is Figma's to decide (指示書 §8). */

details {
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem; margin: 0.75rem 0; background: var(--surface-raised);
}
details > summary { cursor: pointer; font-weight: 700; color: var(--ink-soft); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "＋"; color: var(--ink-muted); font-weight: 400; }
details[open] > summary::after { content: "－"; }
details[open] > summary { margin-bottom: 0.5rem; }
details .muted { font-size: 0.9rem; }

/* ── forms ────────────────────────────────────────────────────────────── */
/* ⚠️ Provisional — focus and error states are Figma's to decide (指示書 §8). */

label { display: block; font-size: 0.9375rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 0.3rem; }
input[type=text], textarea {
  font: inherit; width: 100%; padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm); border: 1px solid var(--rule-strong);
  background: var(--surface-raised); color: var(--ink);
}
input[type=text]:focus, textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-wash); }
textarea { resize: vertical; min-height: 10rem; line-height: 1.7; }
input[type=file] { font: inherit; color: var(--ink-soft); }
.field { margin: 1rem 0; }
.field .hint { color: var(--ink-muted); font-size: 0.875rem; margin: 0.25rem 0 0; }

/*
 * A choice as cards (/onboard's 資格の示し方): a radio, a title and a line,
 * two to a row and one on a phone — app-zkaccess's 「zkAccess 有効 / 無効」 in
 * this stylesheet's terms. The chosen card is the accent surface, as a marked
 * row is (§3.1); its edge follows, and nothing else takes a colour.
 */
fieldset.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 1rem 0; padding: 0; border: 0; min-width: 0; }
fieldset.choices > legend { padding: 0; margin: 0 0 0.3rem; font-size: 0.9375rem; font-weight: 600; color: var(--ink-soft); }
label.choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.15rem 0.5rem; align-items: start; align-content: start; margin: 0; padding: 0.7rem 0.8rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface-sunken); color: var(--ink); font-weight: 400; cursor: pointer; }
label.choice input { margin: 0.25rem 0 0; accent-color: var(--accent); }
label.choice strong { font-weight: 600; }
label.choice span { grid-column: 2; color: var(--ink-muted); font-size: 0.875rem; line-height: 1.6; }
label.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
label.choice:has(input:focus-visible) { outline: 3px solid var(--accent-wash); outline-offset: 1px; }
@media (max-width: 30rem) { fieldset.choices { grid-template-columns: 1fr; } }

/*
 * Emphasis, after Material 3 (the user's guideline, 2026-11-22; docs/ui-frames.md §7): one filled button
 * per screen. A dismissive action is a text button (`.text`), under the filled one (`.actions.stacked`).
 * Options to choose among are a list — rows in one frame (`fieldset.choices.list`) — so that they do not
 * read as buttons; a branch to different places is a list of ways in (`.pick-list`): a title, one line
 * that says who it is for, and ›, the row itself the way in, with no filled button beside it.
 */
button.text, .button.text { background: none; border-color: transparent; color: var(--accent-ink); }
button.text:hover, .button.text:hover { background: var(--accent-wash); border-color: transparent; color: var(--accent-ink); }
.actions.stacked { flex-direction: column; align-items: stretch; gap: 0.25rem; }
.actions.stacked > * { flex: 0 0 auto; }
fieldset.choices.list {
  display: block; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface);
}
fieldset.choices.list label.choice {
  margin: 0; border: 0; border-radius: 0; min-height: 3.5rem; padding: 0.9rem 1rem; align-items: center;
  background: none;
}
fieldset.choices.list label.choice + label.choice { border-top: 1px solid var(--rule); }
fieldset.choices.list label.choice input { margin: 0; width: 1.35rem; height: 1.35rem; }
fieldset.choices.list label.choice strong { font-size: 1.0625rem; }
fieldset.choices.list label.choice:has(input:checked) { background: var(--accent-wash); }
.pick-head { margin: 1.1rem 0 0.4rem; font-weight: 700; color: var(--ink); }
.pick-list {
  list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--surface);
}
.pick-list li + li { border-top: 1px solid var(--rule); }
.pick { display: flex; align-items: center; gap: 0.75rem; min-height: 4.25rem; padding: 0.85rem 0.9rem 0.85rem 1rem; color: var(--ink); text-decoration: none; }
.pick:hover { background: var(--accent-wash); color: var(--ink); }
.pick-text { display: grid; gap: 0.15rem; }
.pick-text strong { color: var(--accent-ink); font-size: 1.0625rem; }
.pick-text > span { color: var(--ink-muted); font-size: 0.875rem; line-height: 1.5; }
.pick-chev { margin-left: auto; color: var(--ink-muted); font-size: 1.6rem; line-height: 1; }
/* A row of the list that is a button (zkAccess's ways in, /continue): a row, not a filled button. */
button.pick {
  width: 100%; border: 0; border-radius: 0; background: none; color: var(--ink);
  font: inherit; font-weight: inherit; line-height: inherit; text-align: left;
}
button.pick:hover { background: var(--accent-wash); border: 0; color: var(--ink); }
button.pick:active { transform: none; }
/* 「おすすめ」 beside a row's title: the way the screen would have the person take. */
.pick-tag {
  display: inline-block; margin-left: 0.4rem; padding: 0 0.45rem; border-radius: 999px; background: var(--accent-wash);
  color: var(--accent-ink); font-size: 0.75rem; font-weight: 700; vertical-align: 2px;
}

/* ── lists the flow writes (cases, lines, receipt) ───────────────────── */

ul.rows, ul#cases-list, ul#case-lines, ul#confirm-receipt, ul#compose-files {
  list-style: none; margin: 0.75rem 0; padding: 0;
  display: grid; gap: 8px;
}
ul.rows li, ul#cases-list li, ul#case-lines li, ul#confirm-receipt li, ul#compose-files li { margin: 0; }

/*
 * A row is a button because it is one: the title over the detail, and ⚠️ **the
 * detail wraps** (引き継ぎ書 §6 ⚠️ — on a phone a file's result did not fit on
 * one line).
 */
li > button {
  display: block; width: 100%;
  text-align: left; font-weight: 400; line-height: 1.5;
  background: var(--surface-raised); color: var(--ink); border-color: var(--rule);
  padding: 10px 12px;
}
li > button:hover { background: var(--surface-sunken); border-color: var(--rule-strong); color: var(--ink); }
li > button .title { display: block; font-weight: 700; font-size: 0.90625rem; }
li > button .detail { display: block; color: var(--ink-muted); font-size: 0.8125rem; white-space: normal; }
/* A marked row — a new answer, a file that will not go: the whole surface, never an edge. */
li.marked > button {
  background: var(--accent-wash);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
li.marked > button:hover { background: var(--accent-wash); border-color: var(--accent); }

/* A line of the conversation, or a row of the receipt: a box, not a rule. */
li.line {
  display: block;
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  padding: 10px 12px;
}
li.line .title { display: block; color: var(--ink-muted); font-size: 0.875rem; }
li.line .detail { display: block; color: var(--ink); white-space: pre-line; }
/* A report read back as items — カテゴリ・時期・本文 (ReportHeading.items, 2026-11-25): each label above its words. */
li.line dl.items { margin: 0.5rem 0 0; padding-top: 0.5rem; border-top: 1px solid var(--rule); }
li.line dl.items dt { color: var(--ink-muted); font-size: 0.8125rem; margin-top: 0.5rem; }
li.line dl.items dt:first-child { margin-top: 0; }
li.line dl.items dd { margin: 0.1rem 0 0; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }

/*
 * 何が誰に送られるか — ⚠️ **the two kinds of row must not look alike**
 * (引き継ぎ書 §5-7). What goes sits on the card; what does not go and what this
 * cannot protect sit on the warning surface. The destination is a tag; the
 * arrow before it stays in the text (a screen reader and the tests read
 * 「通報の本文 → 委員会だけ」) and is only hidden from the eye.
 */
.receipt li.line .title { color: var(--ink); font-weight: 700; font-size: 1rem; }
.receipt li.line .detail { color: var(--ink-soft); font-size: 0.90625rem; }
.receipt li.line .to {
  display: inline-block; margin-left: 6px; vertical-align: 1px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.7;
  padding: 0 8px; border-radius: var(--radius-tag);
  background: var(--accent-wash); color: var(--accent);
}
.receipt li.line .sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.receipt li.line.marked { background: var(--warn-wash); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.receipt li.line.marked .title { color: var(--warn); }

/* ── the sealed words, and the carry code ────────────────────────────── */

#confirm-report {
  white-space: pre-wrap; word-break: break-word;
  background: var(--surface-sunken);
  padding: 14px 16px; border-radius: var(--radius-sm); margin: 0.75rem 0;
  font-family: inherit; font-size: 1rem;
}
#carry-code-value {
  display: block; font: 1.15rem/1.6 var(--font-mono); letter-spacing: 0.06em;
  word-break: break-all; background: var(--surface-sunken); border: 1px dashed var(--rule-strong);
  padding: 0.8rem 1rem; border-radius: var(--radius-sm); margin: 0.6rem 0; text-align: center;
}

/* ── key/value details (what the organisation returned) ───────────────── */

dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; margin: 0.5rem 0; font-size: 0.9rem; }
dl.kv dt { color: var(--ink-muted); }
dl.kv dd { margin: 0; font-family: var(--font-mono); word-break: break-all; }

/* ── tables (the PRF support matrix) ──────────────────────────────────── */

table { border-collapse: collapse; width: 100%; font-size: 0.9rem; margin: 0.5rem 0; }
th, td { text-align: left; vertical-align: top; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--rule); }
th { color: var(--ink-muted); font-weight: 600; }

/* ── footer ───────────────────────────────────────────────────────────── */

footer.fine { color: var(--ink-muted); font-size: 0.8125rem; text-align: center; margin: 1.5rem 0 0; }

/* ── the anonymous look: masked data under liquid glass (2026-10-02) ──── */
/*
 * Where somebody is anonymous because of zkAccess, the page says so without a
 * word: what is behind it is data already masked — the marks a screen uses for
 * what it will not show (●●●● for a password, **** **** for a card number,
 * XXXX for a redaction, #### for a hash) — seen through a pane of glass (dark
 * glass in the light scheme, frosted in the dark). The text on the background has
 * no marks under it and is shown through a clear lens that magnifies it.
 * ⚠️ No drops of glass on the background any more (2026-11-25, the user: the
 * frosted circles and capsules go, on every page); before, drops of three kinds
 * (clear, frosted, dark) floated over the marks. What you use here does not
 * leak and is not looked at; what you are meant to read is clear.
 * (2026-09-26 it was a mosaic; it read as military camouflage.)
 *
 * On for:  the zkAccess frame (参加, 資格の確認) unless it says data-zk-mode="off",
 *          and any page that says data-zk-mode="on" — the reporter's page always
 *          (case-portal/build.mjs), app-zkaccess while 「zkAccess 有効」 is chosen
 *          (LoginCard writes it from $mode).
 * ⚠️ Off for the committee: its members work by name and every act is in the
 *          audit log. An anonymity cue there would say the opposite of the truth.
 *
 * Who does what:
 *   - `zk-veil.js` (beside this file) picks one of four backgrounds at random and
 *     shifts it at random. The header's and the footer's text it scales (one magnification a page, at
 *     most 1.2) over a clear lens (`.zk-drop--reading`); where there is no room
 *     for one, it only clears the marks under the text (`.zk-plate`).
 *     It builds `.zk-veil` and marks <body data-zk-veil>.
 *   - Without the script, `body::before` below shows one background (mixed), no glass.
 *   - The backgrounds are drawn by `tools/zk-veil.mjs`: alpha only, used as a mask,
 *     so the colour is the frame's in light and dark alike. ⚠️ Regenerate with the
 *     tool; do not edit the data URIs by hand.
 *
 * ⚠️ **Legibility is the card's job.** 84% of the card stays; text, inputs and
 * choices keep their colours on it. The header and the footer, which sit on the
 * marks, are haloed in the screen's own colour and sit on a lens or a cleared
 * place, never on marks. The glass edge is a thin neutral line — no colour on an
 * edge — and a lens under text has no rim, only a soft edge and a faint light,
 * so it does not read as a button.
 * ⚠️ **A cue, not a mechanism.** zkAccess makes the person anonymous; the glass
 * hides nothing. ⚠️ **No WebGL**: the glass of liquid-glass.ybouane.com re-renders
 * the page behind it every frame, and these pages prove in the browser.
 */
body {
  --zk-ink: color-mix(in srgb, var(--accent) 30%, color-mix(in srgb, var(--ink) 28%, transparent));
  --zk-glass: color-mix(in srgb, var(--surface-raised) 84%, transparent);
  --zk-glass-edge: color-mix(in srgb, var(--ink) 9%, transparent);
  --zk-glass-light: rgb(255 255 255 / 55%);
  --zk-drop-rim: rgb(255 255 255 / 80%);
  --zk-drop-sheen: rgb(255 255 255 / 32%);
  --zk-veil-tint: rgb(0 0 0 / 5%);
  --zk-reading-sheen: rgb(255 255 255 / 6%);
  --zk-field: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480'%3E%3Cdefs%3E%3Ccircle id='d' cx='5' cy='7' r='3.1'/%3E%3Cpath id='s' d='M5 3.1v7.8M1.6 5l6.8 4M1.6 9l6.8-4' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath id='x' d='M2 4l6 6M8 4l-6 6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath id='h' d='M3.9 3.2l-.9 7.6M7.4 3.2l-.9 7.6M1.6 5.7h7.2M1.1 8.5h7.2' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'/%3E%3Cg id='p1'%3E%3Cuse href='%23d' x='0'/%3E%3Cuse href='%23d' x='10'/%3E%3Cuse href='%23d' x='20'/%3E%3Cuse href='%23d' x='30'/%3E%3Cuse href='%23d' x='40'/%3E%3Cuse href='%23d' x='50'/%3E%3C/g%3E%3Cg id='p2'%3E%3Cuse href='%23d' x='0'/%3E%3Cuse href='%23d' x='10'/%3E%3Cuse href='%23d' x='20'/%3E%3Cuse href='%23d' x='30'/%3E%3Cuse href='%23d' x='46'/%3E%3Cuse href='%23d' x='56'/%3E%3Cuse href='%23d' x='66'/%3E%3Cuse href='%23d' x='76'/%3E%3C/g%3E%3Cg id='p3'%3E%3Cuse href='%23d' x='0'/%3E%3Cuse href='%23d' x='10'/%3E%3Cuse href='%23d' x='20'/%3E%3Cuse href='%23d' x='30'/%3E%3Cuse href='%23d' x='40'/%3E%3Cuse href='%23d' x='50'/%3E%3Cuse href='%23d' x='60'/%3E%3Cuse href='%23d' x='70'/%3E%3Cuse href='%23d' x='80'/%3E%3Cuse href='%23d' x='90'/%3E%3Cuse href='%23d' x='100'/%3E%3Cuse href='%23d' x='110'/%3E%3C/g%3E%3Cg id='p5'%3E%3Cuse href='%23s' x='0'/%3E%3Cuse href='%23s' x='10'/%3E%3Cuse href='%23s' x='20'/%3E%3Cuse href='%23s' x='30'/%3E%3Cuse href='%23s' x='46'/%3E%3Cuse href='%23s' x='56'/%3E%3Cuse href='%23s' x='66'/%3E%3Cuse href='%23s' x='76'/%3E%3Cuse href='%23s' x='92'/%3E%3Cuse href='%23s' x='102'/%3E%3Cuse href='%23s' x='112'/%3E%3Cuse href='%23s' x='122'/%3E%3C/g%3E%3Cg id='p6'%3E%3Cuse href='%23s' x='0'/%3E%3Cuse href='%23s' x='10'/%3E%3Cuse href='%23s' x='20'/%3E%3Cuse href='%23s' x='30'/%3E%3Cuse href='%23s' x='46'/%3E%3Cuse href='%23s' x='56'/%3E%3Cuse href='%23s' x='66'/%3E%3Cuse href='%23s' x='76'/%3E%3Cuse href='%23s' x='92'/%3E%3Cuse href='%23s' x='102'/%3E%3Cuse href='%23s' x='112'/%3E%3Cuse href='%23s' x='122'/%3E%3Cuse href='%23s' x='138'/%3E%3Cuse href='%23s' x='148'/%3E%3Cuse href='%23s' x='158'/%3E%3Cuse href='%23s' x='168'/%3E%3C/g%3E%3Cg id='p7'%3E%3Cuse href='%23s' x='0'/%3E%3Cuse href='%23s' x='10'/%3E%3Cuse href='%23s' x='20'/%3E%3Cuse href='%23s' x='30'/%3E%3C/g%3E%3Cg id='p8'%3E%3Cuse href='%23s' x='0'/%3E%3Cuse href='%23s' x='10'/%3E%3Cuse href='%23s' x='20'/%3E%3Cuse href='%23s' x='30'/%3E%3Cuse href='%23s' x='40'/%3E%3Cuse href='%23s' x='50'/%3E%3C/g%3E%3Cg id='p10'%3E%3Cuse href='%23x' x='0'/%3E%3Cuse href='%23x' x='10'/%3E%3Cuse href='%23x' x='20'/%3E%3Cuse href='%23x' x='36'/%3E%3Cuse href='%23x' x='46'/%3E%3Cuse href='%23x' x='62'/%3E%3Cuse href='%23x' x='72'/%3E%3Cuse href='%23x' x='82'/%3E%3Cuse href='%23x' x='92'/%3E%3C/g%3E%3Cg id='p13'%3E%3Cuse href='%23h' x='0'/%3E%3Cuse href='%23h' x='10'/%3E%3Cuse href='%23h' x='20'/%3E%3Cuse href='%23h' x='30'/%3E%3C/g%3E%3Cg id='p15'%3E%3Cuse href='%23h' x='0'/%3E%3Cuse href='%23h' x='10'/%3E%3Cuse href='%23h' x='26'/%3E%3Cuse href='%23h' x='36'/%3E%3Cuse href='%23h' x='46'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23p13' x='169.4' y='6' opacity='0.7'/%3E%3Cuse href='%23p2' x='11.5' y='41' opacity='0.7'/%3E%3Cuse href='%23p2' x='245.7' y='41' opacity='0.6'/%3E%3Cuse href='%23p8' x='452.2' y='76' opacity='0.5'/%3E%3Cuse href='%23p8' x='-27.8' y='76' opacity='0.5'/%3E%3Cuse href='%23p3' x='87.3' y='111' opacity='0.6'/%3E%3Cuse href='%23p1' x='472.5' y='111' opacity='0.8'/%3E%3Cuse href='%23p1' x='-7.5' y='111' opacity='0.8'/%3E%3Cuse href='%23p5' x='80.7' y='146' opacity='0.6'/%3E%3Cuse href='%23p7' x='77.3' y='181' opacity='0.5'/%3E%3Cuse href='%23p8' x='333.7' y='181' opacity='0.5'/%3E%3Cuse href='%23p1' x='133.1' y='216' opacity='0.4'/%3E%3Cuse href='%23p3' x='362.6' y='216' opacity='0.3'/%3E%3Cuse href='%23p3' x='-117.4' y='216' opacity='0.3'/%3E%3Cuse href='%23p6' x='295.3' y='251' opacity='0.3'/%3E%3Cuse href='%23p7' x='137' y='251' opacity='0.4'/%3E%3Cuse href='%23p8' x='441.3' y='286' opacity='0.8'/%3E%3Cuse href='%23p8' x='-38.7' y='286' opacity='0.8'/%3E%3Cuse href='%23p13' x='283.7' y='321' opacity='0.4'/%3E%3Cuse href='%23p7' x='441.7' y='356' opacity='0.9'/%3E%3Cuse href='%23p7' x='-38.3' y='356' opacity='0.9'/%3E%3Cuse href='%23p1' x='412.7' y='391' opacity='0.8'/%3E%3Cuse href='%23p10' x='430.6' y='426' opacity='0.9'/%3E%3Cuse href='%23p10' x='-49.4' y='426' opacity='0.9'/%3E%3Cuse href='%23p8' x='272.5' y='426' opacity='0.6'/%3E%3Cuse href='%23p15' x='160.2' y='461' opacity='0.4'/%3E%3Cuse href='%23p2' x='424.8' y='461' opacity='0.7'/%3E%3Cuse href='%23p2' x='-55.2' y='461' opacity='0.7'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme="light"])) body {
    --zk-ink: color-mix(in srgb, var(--accent) 30%, color-mix(in srgb, var(--ink) 22%, transparent));
    --zk-glass-light: rgb(255 255 255 / 7%);
    --zk-drop-rim: rgb(255 255 255 / 30%);
    --zk-drop-sheen: rgb(255 255 255 / 10%);
    --zk-veil-tint: rgb(255 255 255 / 3.5%);
    --zk-reading-sheen: rgb(255 255 255 / 1.5%);
  }
}
/* ⚠️ The same values as the block above, for ダーク chosen whatever the device says (zk-theme.js) —
 * change both. conformance/browser/theme.spec.mjs holds them equal. */
:where(:root[data-theme="dark"]) body {
  --zk-ink: color-mix(in srgb, var(--accent) 30%, color-mix(in srgb, var(--ink) 22%, transparent));
  --zk-glass-light: rgb(255 255 255 / 7%);
  --zk-drop-rim: rgb(255 255 255 / 30%);
  --zk-drop-sheen: rgb(255 255 255 / 10%);
  --zk-veil-tint: rgb(255 255 255 / 3.5%);
  --zk-reading-sheen: rgb(255 255 255 / 1.5%);
}

/* The marks: the frame's colour, shown only where the tile has a mark. */
body::before,
.zk-veil-field {
  background:
    radial-gradient(38rem 26rem at 8% 4%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(34rem 28rem at 96% 94%, color-mix(in srgb, var(--zk) 26%, transparent), transparent 70%),
    var(--zk-ink);
}
/* Without zk-veil.js: one background, fixed behind the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask: var(--zk-field) 0 0 / 480px 480px repeat;
  mask: var(--zk-field) 0 0 / 480px 480px repeat;
  opacity: 0;
  transition: opacity 450ms ease;
}
body:is([data-zk-mode="on"], [data-frame="zkaccess"]:not([data-zk-mode="off"])):not([data-zk-veil])::before {
  opacity: 1;
}
/* With it: the layer the script builds — as tall as the page, so the glass scrolls with the text it avoids. */
.zk-veil {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 450ms ease;
}
body:is([data-zk-mode="on"], [data-frame="zkaccess"]:not([data-zk-mode="off"])) .zk-veil {
  opacity: 1;
}
/* The pane over the background: dark glass in the light scheme, frosted in the dark.
   ⚠️ One filter on a still layer — not a backdrop-filter the size of the page. Light
   enough that the marks still read as marks. */
.zk-veil-glass,
.zk-veil-tint,
.zk-veil-reading {
  position: absolute;
  inset: 0;
}
.zk-veil-glass { filter: blur(0.8px); }
.zk-veil-tint { background: var(--zk-veil-tint); }
.zk-veil-field {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--zk-field) var(--zk-field-x, 0) var(--zk-field-y, 0) / 480px 480px repeat;
  mask: var(--zk-field) var(--zk-field-x, 0) var(--zk-field-y, 0) / 480px 480px repeat;
}
/* A lens: a thin bright rim and the light along the top (the reading lens below softens both). */
.zk-drop {
  position: absolute;
  overflow: hidden;
  isolation: isolate;
}
.zk-drop::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--zk-drop-sheen), transparent 42%);
  box-shadow: inset 1.2px 1.2px 0 var(--zk-drop-rim), inset -1px -1px 0 rgb(0 0 0 / 12%), inset 0 0 0 1px rgb(255 255 255 / 14%);
}
/* A clear lens hides the marks under it; the text over it is what it magnifies (zk-veil.js scales the text). */
.zk-drop--clear {
  background: var(--bg);
}
/* The lens under the text on the background: no marks in it (the text is what it
   magnifies), no rim — a soft edge and the faintest light along the top, so it
   never reads as a button. */
.zk-drop--reading { filter: blur(2px); }
.zk-drop--reading::after {
  background: linear-gradient(180deg, var(--zk-reading-sheen), transparent 50%);
  box-shadow: none;
}
/* Where text on the background has no room for a lens: the marks under it, cleared. */
.zk-plate {
  position: absolute;
  background: var(--bg);
  border-radius: 999px;
  filter: blur(6px);
}

.card {
  transition: background-color 450ms ease, box-shadow 450ms ease;
}
body:is([data-zk-mode="on"], [data-frame="zkaccess"]:not([data-zk-mode="off"])) .card {
  background: var(--zk-glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
  /* a thin neutral edge, and the light along the top of a pane of glass */
  box-shadow: inset 0 0 0 1px var(--zk-glass-edge), inset 0 1px 0 var(--zk-glass-light);
}
body:is([data-zk-mode="on"], [data-frame="zkaccess"]:not([data-zk-mode="off"])) :is(header.frame, footer.frame-foot) {
  text-shadow: 0 0 0.2em var(--bg), 0 0 0.5em var(--bg), 0 0 1em var(--bg);
}

/* ── utilities ────────────────────────────────────────────────────────── */

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }

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

/* 開発ビルドの委員切り替え — 配備ではこのボタンは出ない (committee Main.kt openAs) */
.frame-switch {
  margin-left: 8px;
  padding: 0 8px;
  border: 1px solid var(--chrome-line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
  cursor: pointer;
}
.frame-switch:hover { background: transparent; border-color: var(--chrome-soft); color: inherit; }
.frame-switch[hidden] { display: none; }
