:root {
  --app-font-native-sans: system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif;
  --app-font-native-mono: "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace;
  --app-font-text: "proxima-nova", var(--app-font-native-sans);
  --app-font-mono: "cartograph-cf", var(--app-font-native-mono);
  --font-sans: var(--app-font-text);
  --font-mono: var(--app-font-mono);
  --font-display: Georgia, "Times New Roman", "Noto Serif", serif;

  /* The marketing site's palette, so the console reads as the same product: warm paper, navy
     ink, one coral signal. Filled actions use the deeper coral so white labels pass AA. */
  --paper: #FFFFFF;
  --subtle: #F7F4F1;
  --hover: #EFE9E4;
  --peach: #FBE9E2;
  --blue: #DDEAFF;
  --footer: #1C1C1C;
  --footer-muted: #C9C9C9;
  --ink: #00063D;
  --ink-2: #3E4160;
  --muted: #5E5D5F;
  --line: #E6DDD8;
  --line-strong: #D8C9C4;
  --coral: #FA4028;
  --action: #D92D20;
  --action-hover: #B8241A;
  --action-active: #9C1D14;
  --focus: #0011A7;
  --ok: #12643D; --ok-soft: #E6F6EC;
  --warn: #704000; --warn-soft: #FFF2D6;
  --err: #8F2118; --err-soft: #FDE8E6;
  --info: #0011A7; --info-soft: var(--blue);

  --r-control: 2px;
  --r-field: 4px;
  --r-card: 6px;
  --control-h: 2.75rem;
  --control-h-sm: 2.25rem;
  --sidebar-w: 15.5rem;
  --topbar-h: 3.5rem;
  --measure: 74rem;
  --ease: cubic-bezier(.2, .8, .2, 1);

  color-scheme: light;
  font-family: var(--font-sans);
  font-synthesis-weight: none;
  background: var(--paper);
  color: var(--ink);
}
html.wf-inactive { --font-sans: var(--app-font-native-sans); --font-mono: var(--app-font-native-mono); }
html.wf-loading [data-font-gated] { visibility: hidden; }
html.wf-active [data-font-gated], html.wf-inactive [data-font-gated] { visibility: visible; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: inherit; font-size: .9375rem; line-height: 1.5; letter-spacing: -.005em; background: var(--paper); color: var(--ink); }
body, button, input, textarea, select { font-family: var(--font-sans); }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
code, kbd, .mono { font-family: var(--font-mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: -100%; left: 1rem; z-index: 100; padding: .5rem .75rem; background: var(--ink); color: #fff; border-radius: var(--r-control); }
.skip-link:focus { top: .5rem; }

/* ---------- brand and type roles ---------- */
.brand { display: inline-flex; align-items: center; gap: .625rem; width: max-content; color: var(--ink); font-size: 1.125rem; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
.brand::before { content: ""; width: .5rem; height: 1.125rem; background: var(--coral); flex: 0 0 auto; }
.brand-inverse { color: #fff; }
.eyebrow, .kicker { color: var(--muted); font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { margin-bottom: .875rem; }
.lead { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.5; }
.meta { color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.meta a, .card-text a, .reading a, .notice a { color: var(--ink); text-decoration-color: var(--coral); }
.meta a:hover, .reading a:hover { color: var(--action); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--control-h); padding: 0 1.25rem; width: max-content; max-width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--r-control);
  background: var(--paper); color: var(--ink);
  font-size: .9375rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-decoration: none; cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}
.btn:hover { background: var(--subtle); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; border-color: var(--line); background: var(--subtle); color: var(--muted); transform: none; }
.btn-primary { border-color: var(--action); background: var(--action); color: #fff; }
.btn-primary:hover { border-color: var(--action-hover); background: var(--action-hover); color: #fff; }
.btn-primary:active { background: var(--action-active); }
.btn-secondary { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--peach); }
.btn-quiet { border-color: var(--line-strong); background: var(--paper); }
.btn-danger { color: var(--err); border-color: var(--line-strong); }
.btn-danger:hover { background: var(--err-soft); border-color: var(--err); color: var(--err); }
.btn-sm { min-height: var(--control-h-sm); padding: 0 .75rem; font-size: .8125rem; }
.btn[aria-busy="true"] { position: relative; color: transparent; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; width: 1rem; height: 1rem; border: 2px solid currentColor; border-color: rgba(0,6,61,.25) rgba(0,6,61,.25) var(--ink) var(--ink); border-radius: 50%; animation: spin 700ms linear infinite; }
.btn-primary[aria-busy="true"]::after { border-color: rgba(255,255,255,.35) rgba(255,255,255,.35) #fff #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-action { color: var(--ink); font-size: .8125rem; font-weight: 600; text-decoration-color: var(--coral); }
.link-action:hover { color: var(--action); }
.control-group { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.control-group input { flex: 1 1 14rem; }

/* ---------- badges and status ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .375rem; flex: 0 0 auto; max-width: 100%;
  padding: .1875rem .5rem; border: 1px solid var(--line-strong); border-radius: var(--r-control);
  background: var(--paper); color: var(--ink-2);
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.badge-plan { border-color: var(--ink); color: var(--ink); background: var(--blue); }
.badge-queued::before, .badge-running::before, .badge-succeeded::before, .badge-failed::before, .badge-ready::before, .badge-evaluation::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.badge-queued { color: var(--warn); background: var(--warn-soft); border-color: var(--warn); }
.badge-running { color: var(--info); background: var(--info-soft); border-color: var(--info); }
.badge-running::before { animation: pulse 1.4s ease-in-out infinite; }
.badge-succeeded { color: var(--ok); background: var(--ok-soft); border-color: var(--ok); }
.badge-failed { color: var(--err); background: var(--err-soft); border-color: var(--err); }
.badge-ready { color: var(--ok); background: var(--ok-soft); border-color: var(--ok); }
.badge-evaluation { color: var(--warn); background: var(--warn-soft); border-color: var(--warn); }
@keyframes pulse { 50% { opacity: .35; } }
.level-badge { display: inline-flex; align-items: center; gap: .375rem; padding: .1875rem .5rem; border: 1px solid var(--line-strong); border-radius: var(--r-control); color: var(--ink-2); background: var(--paper); font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.level-badge::before { content: ""; width: .5rem; height: .5rem; border: 1.5px solid currentColor; border-radius: 50%; }
.level-badge--verified { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.level-badge--verified::before { background: currentColor; }
.status { min-height: 1.25rem; margin: 0; color: var(--ink-2); font-size: .8125rem; line-height: 1.5; }
.status[data-state="error"] { color: var(--err); font-weight: 600; }
.status[data-state="success"] { color: var(--ok); font-weight: 600; }
.status[data-state="busy"]::before { content: ""; display: inline-block; width: .625rem; height: .625rem; margin-right: .5rem; border: 2px solid var(--line-strong); border-top-color: var(--ink); border-radius: 50%; vertical-align: -1px; animation: spin 700ms linear infinite; }

/* ---------- toasts: one polite live region, top right ---------- */
.toasts { position: fixed; top: calc(var(--topbar-h) + .75rem); right: 1rem; z-index: 60; display: grid; gap: .5rem; width: min(22rem, calc(100vw - 2rem)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem .875rem; border: 1px solid var(--line-strong); border-left: 3px solid var(--ink); border-radius: var(--r-card); background: var(--paper); box-shadow: 0 12px 30px rgba(0,6,61,.14); color: var(--ink); font-size: .875rem; line-height: 1.45; pointer-events: auto; animation: toast-in 200ms var(--ease); }
.toast p { margin: 0; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.toast-success { border-left-color: var(--ok); }
.toast-error { border-left-color: var(--err); }
.toast button { flex: 0 0 auto; min-height: 1.75rem; padding: 0 .5rem; border: 0; border-radius: var(--r-control); background: transparent; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.toast button:hover { background: var(--subtle); color: var(--ink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- fields ---------- */
.fields { display: grid; gap: 1.5rem; }
.fields-compact { gap: 1.125rem; }
.field { display: grid; gap: .375rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend, .label-row label { font-size: .875rem; font-weight: 600; color: var(--ink); padding: 0; }
.field > legend { display: block; margin-bottom: .375rem; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.field-help { margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.field-help code { font-size: .95em; }
.field-error { margin: 0; color: var(--err); font-size: .8125rem; font-weight: 600; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 1rem; height: 1rem; margin-right: .375rem; border-radius: 50%; background: var(--err); color: #fff; font-size: .6875rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; min-height: var(--control-h); border: 1px solid var(--line-strong); border-radius: var(--r-field);
  padding: .5rem .75rem; background: var(--paper); color: var(--ink); font-size: .9375rem; line-height: 1.4;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
select { appearance: none; padding-right: 2.25rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2300063d' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .875rem center; }
select:disabled { color: var(--muted); background-color: var(--subtle); }
textarea { min-height: 6rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); box-shadow: inset 3px 0 0 var(--err); }
input::placeholder, textarea::placeholder { color: #8A8790; }
.input-affix { display: flex; align-items: stretch; }
.input-affix .affix { display: inline-flex; align-items: center; padding: 0 .75rem; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--r-field) 0 0 var(--r-field); background: var(--subtle); color: var(--muted); font-family: var(--font-mono); font-size: .875rem; }
.input-affix input { border-radius: 0 var(--r-field) var(--r-field) 0; }
.switch { display: flex; gap: .625rem; align-items: center; min-height: 2.75rem; font-size: .9375rem; color: var(--ink); cursor: pointer; }
.switch input, .choice input, .scopes input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--ink); flex: 0 0 auto; }
.choices { display: grid; gap: .5rem; }
.choice { display: flex; gap: .75rem; align-items: flex-start; padding: .875rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-field); background: var(--paper); cursor: pointer; font-size: .9375rem; transition: background-color 150ms var(--ease), border-color 150ms var(--ease); }
.choice:hover { border-color: var(--ink-2); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--blue); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { margin-top: .2rem; }
.choice span { display: grid; gap: .125rem; min-width: 0; }
.choice small { color: var(--ink-2); font-size: .8125rem; line-height: 1.45; }
.scopes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .75rem; }
.scopes label { display: flex; gap: .5rem; align-items: center; min-height: 2rem; font-size: .875rem; }
.file-drop { display: grid; justify-items: start; gap: .375rem; padding: 1rem; border: 1px dashed var(--line-strong); border-radius: var(--r-field); background: var(--subtle); cursor: pointer; font-size: .9375rem; transition: border-color 150ms var(--ease); }
.file-drop:hover { border-color: var(--ink); }
.file-drop strong { font-weight: 600; overflow-wrap: anywhere; }
.file-hint { color: var(--muted); font-size: .8125rem; }
.file-drop input { max-width: 100%; font-size: .8125rem; color: var(--ink-2); }
.field > .switch, .field > .file-drop { font-size: .9375rem; font-weight: 400; }
.col-action .control-group { justify-content: flex-end; }

/* ---------- cards, tables, lists ---------- */
.card { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--paper); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; min-height: 3.25rem; padding: .75rem 1.25rem; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.card-body { padding: 1.25rem; min-width: 0; }
.card-body > p + p { margin-top: .75rem; }
.card-text { color: var(--ink-2); line-height: 1.55; }
.card-foot:has(> .status:empty:only-child) { display: none; }
.card-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .875rem 1.25rem; border-top: 1px solid var(--line); background: var(--subtle); border-radius: 0 0 var(--r-card) var(--r-card); }
.card-danger { border-color: var(--line-strong); }
.card-danger .card-head { border-bottom-color: var(--line); }
.card-danger .btn-danger { border-color: var(--err); }
.table-wrap { overflow-x: auto; min-width: 0; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { padding: .625rem 1.25rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { height: 2.75rem; background: var(--subtle); color: var(--muted); font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
td { height: 3rem; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: var(--subtle); }
tbody tr:last-child td { border-bottom: 0; }
.col-action, td.col-action { text-align: right; }
td.col-action .btn { margin-left: auto; }
.table-wrap .card-foot { border-top: 0; }
.mono-id { display: inline-flex; align-items: center; gap: .375rem; max-width: 100%; }
.mono-id code { font-size: .8125rem; color: var(--ink); }
.copy-button { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0; border: 1px solid transparent; border-radius: var(--r-control); background: transparent; color: var(--muted); cursor: pointer; }
.copy-button:hover { border-color: var(--line-strong); color: var(--ink); background: var(--paper); }
.copy-button svg { width: .875rem; height: .875rem; }
.table-empty { padding: 2rem 1.25rem !important; text-align: center; color: var(--ink-2); }
.table-empty p { margin: 0 0 .75rem; }
.table-empty .btn { margin: 0 auto; }
.skeleton { display: block; height: .875rem; width: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--subtle) 25%, var(--hover) 50%, var(--subtle) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton-inline { display: inline-block; width: 6rem; height: 1.25rem; vertical-align: middle; }
.skeleton-row td { height: 3rem; }
@keyframes shimmer { to { background-position: -200% 0; } }
.facts { display: grid; gap: .75rem; }
.facts > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .75rem; align-items: baseline; }
.facts dt { color: var(--muted); font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: .875rem; }
.notice { display: grid; gap: .5rem; padding: .875rem 1rem; border: 1px solid var(--line-strong); border-left-width: 3px; border-radius: var(--r-card); background: var(--paper); font-size: .875rem; line-height: 1.5; }
.notice p { margin: 0; }
.notice-info { border-left-color: var(--info); background: var(--info-soft); }
.notice-error { border-left-color: var(--err); background: var(--err-soft); color: var(--err); }
.secret-output { margin: 1rem 1.25rem 0; padding: .75rem .875rem; border: 1px solid var(--warn); border-radius: var(--r-field); background: var(--warn-soft); color: var(--warn); font-size: .8125rem; line-height: 1.5; }
.secret-output code { display: block; margin-top: .375rem; color: var(--ink); font-size: .8125rem; overflow-wrap: anywhere; user-select: all; }
.secret-output .copy-button { color: var(--ink); vertical-align: middle; margin-left: .25rem; }
.result { display: grid; gap: .625rem; padding: 1rem 1.25rem 1.25rem; border-top: 1px dashed var(--line-strong); background-color: var(--subtle); background-image: radial-gradient(rgba(0,6,61,.16) 1px, transparent 1px); background-size: 12px 12px; }
.result audio { width: 100%; }

/* ---------- console shell ---------- */
body.app { background: var(--subtle); }
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); align-content: start; min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; border-right: 1px solid var(--line-strong); background: var(--paper); }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: var(--topbar-h); padding: 0 1.25rem; border-bottom: 1px solid var(--line); }
.nav-toggle { display: none; min-height: 2.75rem; min-width: 2.75rem; padding: 0 .75rem; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--paper); color: var(--ink); font-size: .875rem; font-weight: 600; cursor: pointer; }
.nav-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.primary-nav { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding: .75rem; overflow-y: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .125rem; }
.primary-nav a { position: relative; display: flex; align-items: center; min-height: 2.5rem; padding: 0 .75rem 0 1rem; border-radius: var(--r-field); color: var(--ink-2); font-size: .9375rem; font-weight: 500; text-decoration: none; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.primary-nav a:hover { background: var(--subtle); color: var(--ink); }
.primary-nav a[aria-current="page"] { background: var(--blue); color: var(--ink); font-weight: 700; }
.primary-nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 3px; border-radius: 2px; background: var(--coral); }
.sidebar-foot { display: grid; gap: .625rem; margin-top: auto; padding: 1rem .25rem .25rem; border-top: 1px solid var(--line); }
.sidebar-scope { color: var(--muted); font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--topbar-h); padding: 0 2rem; border-bottom: 1px solid var(--line-strong); background: var(--paper); }
.topbar-id { display: flex; align-items: center; gap: .625rem; min-width: 0; font-size: .875rem; }
.topbar-title { font-weight: 600; color: var(--ink); white-space: nowrap; }
.topbar-sep { color: var(--line-strong); }
.topbar-handle { color: var(--ink-2); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-utils { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; }
.console { flex: 1 1 auto; width: 100%; max-width: var(--measure); padding: 2rem 2rem 4rem; display: grid; gap: 3rem; align-content: start; }
body.js-nav .view:not(.is-active) { display: none; }
.view { display: grid; gap: 1.5rem; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line-strong); }
.page-head-copy { display: grid; gap: .5rem; min-width: 0; max-width: 64ch; }
.page-head h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.page-lead { color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
.page-actions { display: flex; gap: .625rem; flex-wrap: wrap; align-items: center; flex: 0 0 auto; }
#identity-profile-form { display: grid; gap: 3rem; }
body.js-nav #identity-profile-form { display: contents; }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.metric { display: grid; gap: .375rem; align-content: start; min-width: 0; padding: 1.125rem 1.25rem; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--paper); }
.metric-featured { background: var(--blue); }
.metric-label { color: var(--muted); font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.metric-value { font-size: 1.75rem; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.metric-value-mono { font-family: var(--font-mono); font-size: 1rem; letter-spacing: 0; line-height: 1.4; }
.metric-value .badge, .metric-value .level-badge { vertical-align: middle; }
.metric-note { color: var(--muted); font-size: .8125rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.action-list { list-style: none; margin: 0; padding: .5rem; display: grid; gap: .25rem; }
.action-list a { display: grid; gap: .125rem; padding: .75rem .875rem; border-radius: var(--r-field); color: var(--ink); text-decoration: none; transition: background-color 150ms var(--ease); }
.action-list a:hover { background: var(--subtle); }
.action-list strong { font-weight: 600; }
.action-list strong::after { content: " →"; color: var(--coral); }
.action-list span { color: var(--muted); font-size: .8125rem; }

.payload-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.payload-body > div:first-child { display: grid; gap: .5rem; flex: 1 1 20rem; min-width: 0; }
.payload-bits { font-family: var(--font-mono); font-size: 1.5rem; letter-spacing: .08em; color: var(--ink); }
.verification-proof { display: grid; gap: .625rem; padding: 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-field); background: var(--subtle); font-size: .875rem; }
.verification-proof p { margin: 0; color: var(--ink-2); }
.verification-proof dl { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .25rem .75rem; margin: 0; align-items: baseline; }
.verification-proof dt { font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.verification-proof dd { margin: 0; font-family: var(--font-mono); font-size: .8125rem; overflow-wrap: anywhere; color: var(--ink); user-select: all; }

/* Grant rows are emitted by the console script; this styling is part of its contract. */
.grant-rows { display: grid; gap: .75rem; }
.grant-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .75rem 1rem; padding: 1rem 1.25rem 1rem 1rem; border: 1px solid var(--line-strong); border-left: 4px solid var(--ink); border-radius: var(--r-card); background: var(--paper); }
.grant-row-index { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.grant-row-index .kicker { color: var(--ink); }
.grant-row label { display: grid; gap: .25rem; min-width: 0; font-size: .75rem; font-weight: 600; color: var(--muted); }
.grant-row label > span { text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-mono); font-size: .6875rem; }
.grant-row select, .grant-row input { min-height: var(--control-h-sm); padding: .375rem .625rem; font-size: .875rem; font-weight: 400; }
.grant-row select { background-position: right .625rem center; padding-right: 1.75rem; }
.grant-field-use, .grant-field-decision { grid-column: span 6; }
.grant-field-subjectKind, .grant-field-subjectValue, .grant-field-territory { grid-column: span 4; }
.grant-row:has(.grant-field-subjectValue[hidden]) .grant-field-territory { grid-column: span 8; }
.grant-field-note { grid-column: 1 / -1; }
.grant-row-index .grant-actions { display: flex; gap: .375rem; }
.grant-row[data-decision="permit"] { border-left-color: var(--ok); }
.grant-row[data-decision="deny"] { border-left-color: var(--err); }
.grant-row[data-decision="require_agreement"] { border-left-color: var(--warn); }
.grant-empty { display: grid; justify-items: center; gap: .75rem; padding: 2.5rem 1.25rem; border: 1px dashed var(--line-strong); border-radius: var(--r-card); background: var(--paper); color: var(--ink-2); text-align: center; }
.grant-empty p { margin: 0; max-width: 42ch; }
.grants-note { max-width: 64ch; }

.composer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 1rem; align-items: start; }
.composer-text textarea { min-height: 18rem; font-size: 1.0625rem; line-height: 1.55; }
#studio-count[data-over="true"] { color: var(--warn); font-weight: 600; }
.composer-text .card-body { display: grid; gap: .625rem; }
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.provenance-line { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .5rem; min-width: 0; font-size: .8125rem; color: var(--ink-2); }
.provenance-line a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.provenance-line .meta { flex-basis: 100%; min-width: 0; line-height: 1.45; overflow-wrap: anywhere; }
.byo-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.byo-copy { min-width: 0; display: grid; gap: 1rem; }
.byo-table td { vertical-align: middle; }
.byo-key { font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-2); }
@media (max-width: 860px) { .byo-body { grid-template-columns: minmax(0, 1fr); } }
.payouts-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 1.5rem; align-items: center; }
.payouts-copy { min-width: 0; }
.payouts-actions { justify-content: flex-end; }
.payouts-table td.status-cell { white-space: nowrap; }
@media (max-width: 720px) { .payouts-body { grid-template-columns: minmax(0, 1fr); } .payouts-actions { justify-content: flex-start; } }
.two-up-wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.stack { display: grid; gap: 1rem; min-width: 0; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.choices-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scopes-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- voice library ---------- */
.filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .875rem 1rem; }
.filter-row .field > label { font-size: .75rem; color: var(--muted); font-family: var(--font-mono); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.filter-row input, .filter-row select { min-height: var(--control-h-sm); font-size: .875rem; }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; }
.voice-card { display: grid; grid-template-rows: auto 1fr auto; gap: 0; border: 1px solid var(--line-strong); border-left: 4px solid var(--ink); border-radius: var(--r-card); background: var(--paper); min-width: 0; }
.voice-card[data-access="open"] { border-left-color: var(--ok); }
.voice-card[data-access="restricted"] { border-left-color: var(--warn); }
.voice-card-head { display: grid; gap: .25rem; padding: 1rem 1.25rem .75rem; border-bottom: 1px solid var(--line); }
.voice-card-head h3 { margin: 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; overflow-wrap: anywhere; }
.voice-card-speaker { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; color: var(--ink-2); font-size: .8125rem; }
.voice-card-speaker code { color: var(--ink); }
.voice-card-body { display: grid; gap: .75rem; padding: .875rem 1.25rem; }
.voice-card-body p { color: var(--ink-2); font-size: .875rem; line-height: 1.5; }
.facets { display: flex; flex-wrap: wrap; gap: .375rem; }
.facets .badge { text-transform: none; letter-spacing: 0; font-family: var(--font-sans); font-weight: 500; font-size: .75rem; }
.facets .badge-tag { background: var(--subtle); }
.voice-card audio { width: 100%; }
.voice-card-foot { display: grid; gap: .625rem; padding: .875rem 1.25rem; border-top: 1px solid var(--line); background: var(--subtle); border-radius: 0 0 var(--r-card) 0; }
.voice-card-foot .control-group { justify-content: space-between; }
.request-form { display: grid; gap: .625rem; }
.request-form textarea { min-height: 4.5rem; font-size: .875rem; }
.request-form select { min-height: var(--control-h-sm); font-size: .875rem; }
.locked { display: inline-flex; align-items: center; gap: .375rem; color: var(--warn); font-size: .8125rem; font-weight: 600; }
.locked::before { content: ""; width: .5rem; height: .625rem; border: 1.5px solid currentColor; border-radius: 2px 2px 1px 1px; }
.library-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: .75rem; padding: 2.5rem 1.25rem; border: 1px dashed var(--line-strong); border-radius: var(--r-card); background: var(--paper); color: var(--ink-2); text-align: center; }
.library-empty p { margin: 0; max-width: 46ch; }
.purpose-cell { max-width: 24rem; color: var(--ink-2); font-size: .8125rem; line-height: 1.45; white-space: normal; }
.listing-table td { vertical-align: top; padding-top: .875rem; padding-bottom: .875rem; }
.listing-cell { display: grid; gap: .5rem; min-width: 9rem; }
.listing-cell strong { font-size: .9375rem; line-height: 1.3; }
.listing-cell .facets { gap: .25rem; }
.listing-table .col-action { width: 1%; white-space: nowrap; }
.listing-table .col-action .control-group { flex-direction: column; align-items: stretch; }
.listing-table .col-action .btn { width: 100%; min-width: 5.5rem; }
.badge-own { color: var(--info); background: var(--info-soft); border-color: var(--info); }
.badge-pending { color: var(--warn); background: var(--warn-soft); border-color: var(--warn); }
.badge-approved { color: var(--ok); background: var(--ok-soft); border-color: var(--ok); }
.badge-declined { color: var(--err); background: var(--err-soft); border-color: var(--err); }
.badge-withdrawn { color: var(--muted); }
.badge-listed { color: var(--ok); background: var(--ok-soft); border-color: var(--ok); }
.badge-live { color: var(--ok); background: var(--ok-soft); border-color: var(--ok); }
.badge-ended { color: var(--muted); }
.badge-expired { color: var(--warn); background: var(--warn-soft); border-color: var(--warn); }
.terms-fields { display: grid; gap: .75rem; }
.terms-fields .field-grid { margin-top: .25rem; }
.terms-fields:has(#listing-terms-enabled:not(:checked)) .field-grid { display: none; }
.terms-line { display: flex; flex-wrap: wrap; gap: .25rem .625rem; align-items: baseline; color: var(--ink); font-size: .875rem; }
.terms-line strong { font-variant-numeric: tabular-nums; font-size: 1rem; }
.terms-line .meta { font-size: .8125rem; }
.period-picker input { min-height: var(--control-h); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
.licence-table td, .statement-table td { vertical-align: top; padding-top: .75rem; padding-bottom: .75rem; }
.licence-cell { display: grid; gap: .25rem; min-width: 12rem; }
.licence-state { min-width: 9rem; white-space: normal; }
.licence-state .meta { margin-top: .25rem; }
.licence-table .col-action { width: 1%; white-space: nowrap; }
.licence-cell strong { font-size: .9375rem; }
.licence-cell .meta { font-size: .8125rem; }
.metric-value.money { font-variant-numeric: tabular-nums; }
.verify-card { border-left: 4px solid var(--info); }
.verify-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.verify-steps { display: grid; gap: 1rem; }
.verify-sentence { margin: 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--coral); background: var(--subtle); color: var(--ink); font-family: var(--font-display); font-size: 1.375rem; line-height: 1.4; }
.verify-controls { display: grid; gap: .875rem; }
.verify-controls audio { width: 100%; }
.verify-timer { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.verify-result { display: grid; gap: .5rem; padding: 1rem 1.25rem; border: 1px solid var(--line-strong); border-radius: var(--r-field); background: var(--paper); font-size: .875rem; }
.verify-result[data-state="passed"] { border-color: var(--ok); background: var(--ok-soft); }
.verify-result[data-state="failed"] { border-color: var(--err); background: var(--err-soft); }
.verify-result p { margin: 0; }
.verify-result dl { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: .25rem .75rem; margin: 0; }
.verify-result dt { color: var(--muted); font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.verify-result dd { margin: 0; overflow-wrap: anywhere; }
.badge-verified { color: var(--ok); background: var(--ok-soft); border-color: var(--ok); }
.recording .btn-secondary { border-color: var(--err); color: var(--err); }
.badge-unlisted { color: var(--muted); }
.metrics-usage .metric-value { font-size: 2.25rem; }

/* ---------- marketing frame: public record and information pages ---------- */
body.site { background: var(--paper); }
.site-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; padding: 0 max(1.5rem, calc((100vw - 80rem) / 2)); border-bottom: 1px solid var(--line-strong); background: var(--paper); }
.site-nav { display: flex; gap: .125rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover { background: var(--subtle); }
.head-cta { min-width: 8rem; }
.site-main { min-height: 60vh; }
.hero-band { padding: clamp(3rem, 7vw, 5.5rem) max(1.5rem, calc((100vw - 80rem) / 2)); background: var(--peach); }
.hero-band-quiet { background: var(--subtle); }
.hero-inner { max-width: 48rem; }
.hero-band .eyebrow { color: var(--ink-2); }
.hero-band h1 { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.02; }
.hero-band .lead { margin-top: 1.25rem; max-width: 40rem; font-size: 1.125rem; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.25rem; color: var(--ink-2); font-size: .9375rem; }
.handle-chip { padding: .25rem .5rem; border: 1px solid var(--ink); border-radius: var(--r-control); background: var(--paper); color: var(--ink); font-size: .875rem; }
.subnav { border-bottom: 1px solid var(--line); background: var(--paper); }
.subnav-inner { display: flex; gap: .125rem; overflow-x: auto; padding: 0 max(1.5rem, calc((100vw - 80rem) / 2)); }
.subnav a { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 .875rem; border-bottom: 3px solid transparent; color: var(--ink-2); font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.subnav a:hover { color: var(--ink); background: var(--subtle); }
.subnav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--coral); }
.reading { width: min(48rem, 100% - 3rem); margin: 0 auto; padding: 3rem 0 5rem; display: grid; gap: 2.5rem; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }
.reading section { display: grid; gap: .875rem; }
.reading h2 { color: var(--ink); font-family: var(--font-display); font-size: 1.625rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.reading p, .reading ul, .reading ol { margin: 0; }
.reading ul, .reading ol { padding-left: 1.25rem; display: grid; gap: .375rem; }
.reading code { padding: .1rem .3rem; border-radius: 2px; background: var(--subtle); color: var(--ink); font-size: .875em; }
.reading .meta { font-size: .875rem; }
.reading audio { width: 100%; }
.statement { padding: 1rem 1.25rem; border-left: 3px solid var(--coral); background: var(--subtle); color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; }
.grant-table th, .grant-table td { padding: .625rem .875rem; }
.grant-table td { color: var(--ink); font-size: .9375rem; }
.decision { display: inline-block; font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .45rem; border: 1px solid currentColor; border-radius: var(--r-control); }
.decision-permit { color: var(--ok); background: var(--ok-soft); }
.decision-deny { color: var(--err); background: var(--err-soft); }
.decision-require_agreement { color: var(--warn); background: var(--warn-soft); }
.site-foot { background: var(--footer); color: #fff; }
.site-foot-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 3rem; padding: 3.5rem max(1.5rem, calc((100vw - 80rem) / 2)) 2.5rem; }
.site-foot-brand { display: grid; gap: 1rem; }
.site-foot-brand p { max-width: 36rem; color: var(--footer-muted); font-size: .9375rem; line-height: 1.55; }
.site-foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem 1.5rem; align-content: start; }
.site-foot-nav a { color: #fff; font-size: .9375rem; text-decoration: none; }
.site-foot-nav a:hover { text-decoration: underline; text-decoration-color: var(--coral); }
.site-foot-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.16); color: var(--footer-muted); font-size: .8125rem; }
noscript { display: block; }

/* ---------- auth frame ---------- */
body.auth { display: flex; flex-direction: column; min-height: 100vh; background-color: var(--subtle); background-image: radial-gradient(rgba(0,6,61,.12) 1px, transparent 1px); background-size: 16px 16px; }
.auth-head { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.auth-head-link { color: var(--ink-2); font-size: .875rem; font-weight: 500; }
.auth-main { flex: 1 1 auto; display: grid; place-items: start center; padding: clamp(1rem, 5vh, 4rem) 1rem 3rem; }
.auth-card { width: min(30rem, 100%); padding: 2.5rem 2.25rem 2rem; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--paper); box-shadow: 0 12px 30px rgba(0,6,61,.08); }
.auth-card h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.auth-card .lead { margin-top: .875rem; font-size: 1rem; }
.auth-actions { display: grid; gap: 1rem; justify-items: start; margin-top: 1.75rem; }
.auth-mount { display: grid; justify-items: stretch; margin-top: 1.75rem; min-height: 22rem; }
.auth-card-clerk { width: min(25rem, 100%); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-card-clerk .auth-intro { padding: 0 .25rem 1.75rem; }
.auth-card-clerk .auth-mount { margin-top: 0; min-height: 24rem; }
.auth-card-clerk .auth-meta { margin-top: 1.25rem; padding: 0 .25rem; text-align: center; }
.auth-status { margin: 1rem 0 0; }
.auth-status.error { color: var(--err); font-weight: 600; }
.auth-card .meta { margin-top: 1.25rem; }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.5rem; padding: 1.25rem; color: var(--muted); font-size: .8125rem; }
.auth-foot a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 64rem) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; z-index: 30; height: auto; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .sidebar-top { padding: 0 1rem; border-bottom: 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { padding: .5rem 1rem 1rem; border-top: 1px solid var(--line); }
  body.js-nav .primary-nav { display: none; }
  body.js-nav .sidebar.nav-open .primary-nav { display: flex; position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 40; background: var(--paper); overflow-y: auto; }
  .topbar { position: static; padding: 0 1.25rem; }
  .console { padding: 1.5rem 1.25rem 3rem; gap: 2.5rem; }
  .toasts { top: auto; bottom: 1rem; }
  .overview-grid, .composer, .two-up, .two-up-wide { grid-template-columns: minmax(0, 1fr); }
  .field-grid, .choices-row, .verify-body { grid-template-columns: minmax(0, 1fr); }
  .scopes-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grant-field-use, .grant-field-decision, .grant-field-subjectKind, .grant-field-subjectValue, .grant-field-territory, .grant-row:has(.grant-field-subjectValue[hidden]) .grant-field-territory { grid-column: span 6; }
  .site-head { padding: 0 1.25rem; }
  .site-nav { display: none; }
  .site-foot-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .console { padding: 1rem 1rem 3rem; }
  .topbar { padding: 0 1rem; }
  .topbar-handle { display: none; }
  .page-head h1 { font-size: 1.75rem; }
  .page-actions .btn { flex: 1 1 auto; }
  .grant-row { grid-template-columns: minmax(0, 1fr); }
  .grant-field-use, .grant-field-decision, .grant-field-subjectKind, .grant-field-subjectValue, .grant-field-territory, .grant-field-note, .grant-row:has(.grant-field-subjectValue[hidden]) .grant-field-territory { grid-column: auto; }
  .scopes, .scopes-three { grid-template-columns: minmax(0, 1fr); }
  .voice-grid { grid-template-columns: minmax(0, 1fr); }
  /* Licence rows become labelled stacks rather than a table that hides its action off-screen. */
  .licence-table thead { display: none; }
  .licence-table tr { display: grid; gap: .5rem; padding: .875rem 1rem; border-bottom: 1px solid var(--line); }
  .licence-table tbody tr:last-child { border-bottom: 0; }
  .licence-table td, .licence-table td.col-action { display: block; height: auto; padding: 0; border: 0; text-align: left; width: auto; white-space: normal; }
  .licence-table td.col-action .btn { margin: 0; }
  .licence-table td.table-empty { padding: 1.5rem 0 !important; }
  .period-picker, .period-picker input { width: 100%; }
  .card-head, .card-body, .card-foot, th, td { padding-left: 1rem; padding-right: 1rem; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: .125rem; }
  .auth-card { padding: 2rem 1.25rem 1.5rem; }
  .auth-card-clerk { padding: 0; }
  .hero-band { padding-left: 1.25rem; padding-right: 1.25rem; }
  .site-foot-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .site-foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (pointer: coarse) {
  .btn-sm, .copy-button, .primary-nav a { min-height: 2.75rem; }
  .copy-button { min-width: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .skeleton { animation: none; background: var(--hover); }
  .badge-running::before { animation: none; }
}
@media (forced-colors: active) {
  .btn, .badge, .level-badge, .card, .metric, .choice, .toast { forced-color-adjust: none; border-color: CanvasText; background: Canvas; color: CanvasText; }
  .btn-primary { background: Highlight; color: HighlightText; border-color: Highlight; }
  .primary-nav a[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -2px; }
}
/* Anonymous verification page */
.public-verify-card { display: grid; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.public-verify-card form { display: grid; gap: 16px; }
.public-verify-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 32px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); background: var(--subtle); text-align: center; cursor: pointer; }
.public-verify-drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.public-verify-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.public-verify-drop-mark { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; padding: 4px 8px; border-radius: var(--r-control); background: var(--blue); color: var(--ink); }
.public-verify-drop small { color: var(--muted); }
.public-verify-result { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 20px; border-radius: var(--r-card); background: var(--subtle); }
.public-verify-result[hidden] { display: none; }
.public-verify-result h2 { margin: 0 0 6px; font-size: 18px; }
.public-verify-result p { margin: 0; }
.public-verify-result a { display: inline-block; margin-top: 10px; }
.public-verify-result-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: var(--font-mono); font-size: 20px; background: var(--hover); color: var(--ink); }
.public-verify-result[data-result="verified"] .public-verify-result-mark { background: var(--ok-soft); color: var(--ok); }
.public-verify-result[data-result="watermark_detected"] .public-verify-result-mark { background: var(--warn-soft); color: var(--warn); }
