/*
  Design tokens — sourced from the Qr-Docs design handover (claude.ai/design
  project "QR-Docs UI Mockup Plan", design/tokens.css), reconciled against
  docs/design-handover.html §2/§3. Property names are unchanged from the
  placeholder file this replaces — only values change, per §3's contract.

  Deliberate deviations from a literal copy of design/tokens.css, both
  explained in full in the implementation plan:
  - --color-status-* namespace (badge semantics) keeps EXPIRED/SUPERSEDED
    on the neutral/warn mapping, not danger — matches design-handover.html
    §2's six status chips (GENUINE and REVOKED each distinct; EXPIRED,
    SUPERSEDED and NOT_FOUND share one neutral treatment), which the old
    placeholder file got wrong (it lumped EXPIRED/SUPERSEDED under danger).
  - Font stack pairs Source Serif 4 (Latin) with Noto Serif Devanagari
    rather than Source Serif 4 alone — Source Serif 4 has no Devanagari
    glyphs at all (verified against Fontsource's subset list), and
    generic "supports Devanagari" claims aren't good enough per
    docs/brief-design.md (Marathi has its own glyph variants — the
    eyelash reph, a distinct ल — that many Devanagari fonts render wrong).
    Both fonts are self-hosted below rather than loaded from a CDN, so
    this government-facing app has no external font-loading dependency.

  --color-accent and --color-danger are SRA's actual brand colors, not
  the design handover's placeholder hues — sampled directly from the SRA
  emblem (apps/infra/seed_assets/sra-emblem.png, ported from the legacy
  SRA-Python receipt system): #4140a5 (blue) and #d74c45 (red). Each was
  adjusted only as far as WCAG AA text contrast required for this file's
  neutrals (light-mode danger sampled at #d74c45 measured 4.19:1 against
  --color-bg, under the 4.5:1 floor; #c23f38 used instead — same hue,
  darkened). Below, "success -> accent ramp" reuses the blue rather than
  inventing a third hue, exactly per this comment block's own rule — SRA's
  two-color mark happens to supply exactly the two hues the semantic
  roles below already wanted one each of.
*/
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif-4-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Serif Devanagari";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/noto-serif-devanagari.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-text-muted: #605d5d;
  --color-border: color-mix(in srgb, #201e1d 16%, transparent);
  --color-accent: #4140a5;

  /* Semantic roles, never a new hue per state: GENUINE/success -> accent
     (SRA blue) ramp; REVOKED/danger -> accent-2 (SRA red) ramp;
     PROVISIONAL and EXPIRED/SUPERSEDED/NOT_FOUND -> neutral/warn. Word +
     icon ship alongside these at the template layer — colour is never
     the only signal (docs/design-handover.html §2). */
  --color-success: #4140a5;      --color-success-bg: #ecebfa;
  --color-danger: #c23f38;       --color-danger-bg: #fceceb;
  --color-warn: #605d5d;         --color-warn-bg: #eae7e7;

  --space-1: 5px;
  --space-2: 10px;
  --space-3: 15px;
  --space-4: 20px;
  --space-5: 30px;

  --font-family-base: "Source Serif 4", "Noto Serif Devanagari", system-ui, sans-serif;
  --font-size-base: 16px;
  --font-size-large: 20px;
  --font-size-xlarge: 28px;
  /* Devanagari stacks marks above and below the baseline; a Latin-tuned
     line-height clips or collides them. Set for Devanagari, Latin
     breathes inside it (docs/brief-design.md). */
  --line-height-base: 1.65;
  --line-height-heading: 1.3;

  --radius-base: 2px;
  --max-width-content: 960px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #201e1d;
    --color-surface: #2d2b2b;
    --color-text: #f3f2f2;
    --color-text-muted: #bab6b6;
    --color-border: color-mix(in srgb, #f3f2f2 16%, transparent);
    --color-accent: #9694f0;

    --color-success: #9694f0;      --color-success-bg: #26224f;
    --color-danger: #f2867f;       --color-danger-bg: #4a1f1c;
    --color-warn: #bab6b6;         --color-warn-bg: #444141;

    --shadow-sm: 0 1px 2px color-mix(in srgb, #000000 40%, transparent);
    --shadow-md: 0 3px 10px color-mix(in srgb, #000000 45%, transparent);
    --shadow-lg: 0 12px 32px color-mix(in srgb, #000000 55%, transparent);
  }
}
/* No toggle control exists yet — this attribute hook is forward
   compatible for whenever one is built, same as the design file ships it. */
:root[data-theme="dark"] {
  --color-bg: #201e1d;
  --color-surface: #2d2b2b;
  --color-text: #f3f2f2;
  --color-text-muted: #bab6b6;
  --color-border: color-mix(in srgb, #f3f2f2 16%, transparent);
  --color-accent: #9694f0;
  --color-success: #9694f0;      --color-success-bg: #26224f;
  --color-danger: #f2867f;       --color-danger-bg: #4a1f1c;
  --color-warn: #bab6b6;         --color-warn-bg: #444141;
  --shadow-sm: 0 1px 2px color-mix(in srgb, #000000 40%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #000000 45%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #000000 55%, transparent);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
}

a { color: var(--color-accent); }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  position: relative;
}
.topbar .brand { display: flex; align-items: center; gap: var(--space-1); font-weight: 700; text-decoration: none; color: var(--color-text); flex: none; }
.brand-emblem { display: block; height: 19px; width: auto; }
.topbar-search { flex: 1; max-width: 360px; margin: 0 var(--space-3); }
.topbar-search input {
  width: 100%; margin: 0; padding: 6px var(--space-2); min-height: 36px; font-size: 0.9rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-base);
  background: var(--color-bg); color: var(--color-text);
}
.topbar-right { display: flex; align-items: center; gap: var(--space-2); flex: none; }

@media (max-width: 640px) {
  .topbar-search { display: none; }
}

.btn-quick { padding: var(--space-1) var(--space-3); min-height: 36px; font-size: 0.9rem; }

/* Collapsible nav -- a native <details>/<summary> disclosure, so the
   menu opens/closes/keyboard-navigates with zero JS, matching the
   console's minimal-JS approach elsewhere. Every link inside is gated
   by {% if session.can(...) %} in base.html -- Locked behaviour, not
   cosmetic (docs/design-handover.html §3: an AUDITOR could once reach a
   working "New document" form before this gating existed). */
.nav-menu { position: relative; }
.nav-menu summary {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-border); border-radius: var(--radius-base);
  cursor: pointer; list-style: none; user-select: none;
  color: var(--color-text); font-size: 0.9rem; min-height: 36px;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-menu summary:hover { background: var(--color-surface); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::marker { display: none; content: ""; }
.nav-menu[open] summary { background: var(--color-bg); }

.hamburger { display: inline-flex; flex-direction: column; gap: 3px; width: 18px; }
.hamburger span { display: block; height: 2px; background: var(--color-text); border-radius: 1px; }

.nav-menu-label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-panel {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 20;
  min-width: 260px; max-width: 90vw;
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-base);
  box-shadow: var(--shadow-md);
  padding: var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-3);
  max-height: calc(100vh - 60px); overflow-y: auto;
}
.nav-group h3 {
  margin: 0 0 var(--space-1); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text-muted); font-weight: 700;
}
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group + .nav-group { padding-top: var(--space-2); border-top: 1px solid var(--color-border); }
.nav-group a {
  color: var(--color-text); text-decoration: none; padding: var(--space-1) var(--space-1);
  border-radius: var(--radius-base); font-size: 0.95rem;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-group a:hover { background: var(--color-surface); }
.nav-group a[aria-current="true"] { font-weight: 700; background: var(--color-surface); }
.nav-group .who { font-size: 0.8rem; color: var(--color-text-muted); padding: 0 var(--space-1) var(--space-1); }

@media (max-width: 480px) {
  .nav-menu-label { display: none; }
  .nav-panel { position: fixed; top: 56px; left: var(--space-2); right: var(--space-2); min-width: 0; }
}

/* Persistent desktop drawer -- appbar + drawer shell (>=900px), replacing
   the dropdown-from-topbar with an always-visible sidebar. Deliberately
   NOT a second nav implementation: _nav_links.html is the one source of
   truth for the link list, included both here and inside .nav-menu's
   dropdown above -- only which container is visible changes per
   breakpoint, never the content or its session.can(...) gating. */
.drawer {
  display: none;
  position: sticky; top: var(--space-4);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-base);
  padding: var(--space-3);
  max-height: calc(100vh - var(--space-4) * 2);
  overflow-y: auto;
}
@media (min-width: 900px) {
  .drawer { display: flex; flex-direction: column; gap: var(--space-3); }
  .nav-menu { display: none; } /* the mobile dropdown -- the drawer replaces it at this width */
  .app-shell-authed {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-4) var(--space-4) 0;
    margin-left: var(--space-4);
  }
  .app-shell-authed > .page { padding: 0; margin: 0; max-width: none; }
}

.page { max-width: var(--max-width-content); margin: 0 auto; padding: var(--space-4); }
.page-narrow { max-width: 480px; }

/* Auth screens (login) -- a branding panel + form split, so a wide
   desktop viewport has something to anchor on instead of a narrow
   centred form in a sea of empty space. The dot-halftone texture is
   drawn from the design deck's own "press-field" decorative language
   (Qr-Docs Phased UI Plan.dc.html's .press-field), not invented --
   same radial-gradient-dots-at-low-opacity technique, restrained to
   one colour instead of the deck's three-colour press-registration
   effect. Fixed dark panel regardless of light/dark theme (like most
   product brand panels) -- text-shadow is the legibility safety net
   rather than chasing exact contrast math against two different
   accent lightnesses. Collapses to the plain centred form below
   900px; console's real audience is desktop-heavy government staff,
   so the panel is a bonus there, not something worth fighting for on
   a phone. */
.page.page-auth {
  max-width: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  min-height: calc(100vh - 58px);
}
.auth-brand {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-5);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--color-accent) 85%, black),
    color-mix(in srgb, var(--color-accent) 45%, black)
  );
}
.auth-brand-texture { position: absolute; inset: 0; pointer-events: none; }
.auth-dots {
  position: absolute; inset: -20%; mix-blend-mode: overlay;
  background-image: radial-gradient(circle, #fff 0 1.4px, transparent 1.7px);
  background-size: 14px 14px;
}
.auth-dots-a { opacity: 0.35; transform: rotate(8deg); }
.auth-dots-b { opacity: 0.18; transform: rotate(-12deg) translate(6px, 6px); }
.auth-brand-content { position: relative; max-width: 420px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.auth-wordmark {
  font-family: var(--font-family-base); font-weight: 700; font-size: 48px;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: var(--space-3);
}
.auth-tagline { font-size: var(--font-size-large); line-height: var(--line-height-base); color: rgba(255, 255, 255, 0.9); margin: 0; }
.auth-form-wrap { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 360px; margin: 0 auto; padding: var(--space-5) var(--space-4); }

@media (max-width: 900px) {
  .page.page-auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-brand { display: none; }
  .auth-form-wrap { max-width: 480px; }
}

h1, h2, h3, h4 { font-family: var(--font-family-base); line-height: var(--line-height-heading); text-wrap: pretty; }
h1 { font-size: var(--font-size-xlarge); margin: 0 0 var(--space-3); }
h2 { font-size: var(--font-size-large); margin: var(--space-4) 0 var(--space-2); }

.flash {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-base); margin-bottom: var(--space-3);
}
.flash-error { background: var(--color-danger-bg); color: var(--color-danger); }
.flash-success { background: var(--color-success-bg); color: var(--color-success); }
.flash-info { background: var(--color-surface); color: var(--color-text-muted); }
.flash-dismiss {
  flex: none; color: inherit; text-decoration: none; font-size: 1.2rem; line-height: 1;
  opacity: 0.6; padding: 0 var(--space-1);
}
.flash-dismiss:hover { opacity: 1; }

label { display: block; margin-bottom: var(--space-1); font-weight: 600; font-size: 0.9rem; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="date"], select, textarea {
  width: 100%; padding: var(--space-2); font-size: var(--font-size-base);
  border: 1px solid var(--color-border); border-radius: var(--radius-base);
  margin-bottom: var(--space-3); font-family: inherit; background: var(--color-bg); color: var(--color-text);
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
input[type="text"]:hover, input[type="password"]:hover, input[type="email"]:hover, input[type="number"]:hover,
input[type="date"]:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--color-text) 35%, var(--color-border)); }
textarea { min-height: 160px; }
fieldset { border: 1px solid var(--color-border); border-radius: var(--radius-base); margin-bottom: var(--space-3); }
.hint { color: var(--color-text-muted); font-size: 0.85rem; margin: calc(-1 * var(--space-2)) 0 var(--space-3); }

.btn {
  display: inline-block; padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-base); border: 1px solid var(--color-accent);
  background: var(--color-accent); color: #fff; text-decoration: none;
  font-size: var(--font-size-base); cursor: pointer; min-height: 40px;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover { background: color-mix(in srgb, var(--color-accent) 85%, black); border-color: color-mix(in srgb, var(--color-accent) 85%, black); }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--color-accent); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-danger { background: var(--color-danger); border-color: var(--color-danger); }
.btn-danger:hover { background: color-mix(in srgb, var(--color-danger) 85%, black); border-color: color-mix(in srgb, var(--color-danger) 85%, black); }
/* Consequential-but-not-adversarial: locks something, or issues a whole
   bulk run, but isn't a destructive/citizen-facing action like revoke.
   Sits between routine (.btn) and destructive (.btn-danger). Introduced
   by the design kit (design/components/kit.html), didn't exist in the
   placeholder file this replaces. */
.btn-warn { background: var(--color-warn); border-color: var(--color-warn); color: #fff; }
.btn-warn:hover { background: color-mix(in srgb, var(--color-warn) 85%, black); border-color: color-mix(in srgb, var(--color-warn) 85%, black); }
.btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-3) 0; }
.btn:disabled, .btn:disabled:hover { opacity: 0.5; cursor: not-allowed; transform: none; }

.table-scroll { overflow-x: auto; margin-bottom: var(--space-4); }
.table-scroll table { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-4); }
th, td { text-align: left; padding: var(--space-2); border-bottom: 1px solid var(--color-border); font-size: 0.9rem; }
th { color: var(--color-text-muted); font-weight: 600; }
tbody tr { transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
tbody tr:hover { background: var(--color-surface); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-draft, .badge-pending_approval { background: var(--color-warn-bg); color: var(--color-warn); }
.badge-approved, .badge-provisional { background: var(--color-warn-bg); color: var(--color-warn); }
.badge-issued { background: var(--color-success-bg); color: var(--color-success); }
.badge-revoked { background: var(--color-danger-bg); color: var(--color-danger); }
/* EXPIRED/SUPERSEDED are neutral lifecycle states, not danger -- nothing
   alarming happened, the document aged out or was replaced. Only
   REVOKED is danger-red. Matches design-handover.html §2's six status
   chips and design/components/kit.html exactly; the placeholder file
   this replaces had these three lumped together under danger. */
.badge-expired, .badge-superseded { background: var(--color-warn-bg); color: var(--color-warn); }

.tabs { display: flex; gap: var(--space-3); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-3); }
.tabs a {
  padding: var(--space-2) 0; text-decoration: none; color: var(--color-text-muted); border-bottom: 2px solid transparent;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tabs a:hover { color: var(--color-text); }
.tabs a[aria-current="true"] { color: var(--color-text); border-bottom-color: var(--color-accent); font-weight: 600; }

.field-list { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.field-list li { padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); }
.field-list .field-label { display: block; font-size: 0.8rem; color: var(--color-text-muted); }
.field-list .field-list-row > div:first-child { margin-bottom: 2px; }
.field-list .field-list-row .muted { font-size: 0.8rem; }

.card {
  border: 1px solid var(--color-border); border-radius: var(--radius-base); padding: var(--space-3);
  margin-bottom: var(--space-3); background: var(--color-surface); box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.composer { margin-bottom: var(--space-3); }
.composer-block { border: 1px solid var(--color-border); border-radius: var(--radius-base); padding: var(--space-3); margin-bottom: var(--space-2); }
.composer-block-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.composer-block-index {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--color-surface);
  color: var(--color-text-muted); font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.composer-block-head select { width: auto; margin: 0; }
.composer-block-actions { margin-left: auto; display: flex; gap: 4px; }
.btn-icon {
  min-height: 32px; min-width: 32px; padding: 0 var(--space-2); border-radius: var(--radius-base);
  border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text);
  cursor: pointer; font-size: 0.95rem;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-icon:hover { background: var(--color-surface); }
.btn-icon-danger { color: var(--color-danger); border-color: var(--color-danger); }
.btn-icon-danger:hover { background: var(--color-danger-bg); }
.composer-block textarea { min-height: 80px; margin-bottom: 0; }
.composer-block input[type="text"] { margin-bottom: 0; }
.composer-block label { display: inline-block; margin-right: var(--space-2); font-weight: 400; font-size: 0.85rem; color: var(--color-text-muted); }

.composer-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 900px) {
  .composer-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}
.composer-preview {
  border: 1px solid var(--color-border); border-radius: var(--radius-base);
  padding: var(--space-3) var(--space-4); background: var(--color-surface);
  position: sticky; top: var(--space-3);
}
.composer-preview h3 { margin-top: 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.composer-preview table { font-size: 0.85rem; }
.composer-preview table td { border: 1px solid var(--color-border); }
.muted { color: var(--color-text-muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; word-break: break-all; }

/* Shared empty-state pattern -- see _macros.html. */
.empty-state {
  text-align: center; padding: var(--space-5) var(--space-4);
  border: 1px dashed var(--color-border); border-radius: var(--radius-base);
}
.empty-state-icon { font-size: 2rem; line-height: 1; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.empty-state-message { color: var(--color-text-muted); margin: 0 0 var(--space-3); }

/* Signature capture (profile.html) -- the one screen in this app with
   real client-side JS, because freehand drawing genuinely can't work
   without it. Kept vanilla and self-contained, same spirit as the
   confirm() dialogs elsewhere: no framework, no build step. */
.sig-pad-wrap { margin-bottom: var(--space-3); }
#sig-pad {
  width: 100%; max-width: 480px; height: 160px; touch-action: none;
  background: var(--color-bg); border: 1px dashed var(--color-border); border-radius: var(--radius-base);
  cursor: crosshair; transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
#sig-pad:hover { border-color: color-mix(in srgb, var(--color-accent) 50%, var(--color-border)); }
.empty-state .btn { margin: 0; }
