/* Approved Direction B foundations; the sole visual token owner. */
:root {
  --canvas: #090e17;
  --surface: #101925;
  --surface-raised: #152131;
  --surface-sunken: #0c1420;
  --grid: transparent;
  --trace: transparent;
  --ink-1: #f0f3f7;
  --ink-2: #acb9cb;
  --ink-3: #a0afc3;
  --border: #2a3748;
  --border-strong: #5c6f86;
  --fill-hover: rgb(121 229 241 / 8%);
  --fill-press: rgb(121 229 241 / 16%);
  --fill-rest: rgb(172 185 203 / 5%);
  --accent: #79e5f1;
  --accent-hi: #acf1f7;
  --accent-ink: var(--ink-1);
  --accent-quiet: rgb(121 229 241 / 12%);
  --cyan: #e0143c;
  --cyan-quiet: rgb(224 20 60 / 14%);
  --hatch: rgb(224 20 60 / 42%);
  --sky: #0b84e6;
  --sky-hi: #0a6dbd;
  --sky-quiet: rgb(11 132 230 / 14%);
  --live: #f98ab6;
  --live-deep: #f98ab6;
  --live-dim: rgb(255 46 154 / 55%);
  --live-quiet: rgb(249 138 182 / 8%);
  --crimson: var(--live);
  --blue: var(--accent);
  --blue-quiet: var(--accent-quiet);
  --mint-source: #6fc7ef;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --filter-rail-width: 15rem;
  --page-max-width: 1336px;
  --filter-sheet-width: 35rem;
  --filter-marker-size: 0.875rem;
  --deck-counter-width: 3.25rem;
  --deck-counter-height: 2.75rem;
  --deck-counter-type: var(--font-4xl);
  --t-display: var(--font-6xl);
  --t-title: var(--font-2xl);
  --t-body: var(--font-base);
  --t-dense: var(--font-control);
  --t-meta: var(--font-sm);
  --t-label: var(--font-sm);
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --elev: none;
  --notch: 0px;
  --display: "Big Shoulders Display", "Segoe UI", sans-serif;
  --body: "Chakra Petch", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, "SFMono-Regular", ui-monospace, monospace;
  --overhang: max(0px, calc(100dvh - 100lvh));
  --topbar: max(0px, calc(100lvh - 100svh));
  --shell-top: min(var(--topbar), calc(var(--overhang) * 1000));
  --shell-shrink: min(calc(100dvh - 100svh), calc(var(--overhang) * 1000));
  --shell-height: calc(100dvh - var(--shell-shrink));
  --glass-floor: calc(var(--shell-top) + var(--shell-height));
  --shell-bottom: calc(100dvh - var(--glass-floor));
  --void: var(--canvas);
  --surface-2: var(--surface-raised);
  --line: var(--border);
  --line-hot: var(--live);
  --ice: var(--ink-1);
  --muted: var(--ink-2);
  --signal: var(--live);
  --mint: var(--mint-source);
  --blush: var(--surface);
  --blush-deep: var(--surface-raised);
  --live-ink: #fbd5e5;
  --link: #8beeff;
  --accent-plate: #172b36;
  --live-plate: #302135;
  --emit: none;
  --emit-state: none;
  --info: #0a6dbd;
  --field-h: 48px;
  --locked-plate: #10141f;
  --locked-hatch: rgb(16 18 24 / 17%);
  --ui-control: 44px;
  --quantity-width: 136px;
  --ui-control-type: var(--font-control);
  --ui-meta: var(--font-sm);
  --ui-label: var(--font-md);
  --ui-gap: 8px;
  --ui-action-height: 46px;
  --ui-danger: #ffb0bc;
  --ui-radius-task: 8px;
  --ui-border: var(--border);
  --space-half: 2px;
  --space-5: 20px;
  --space-7: 28px;
  --space-10: 40px;
  --field-border: #5c6f86;
  --page-max: 1400px;
  --page-gutter: 32px;
  --type-page: 2.75rem;
  --type-wordmark: var(--font-3xl);
  --type-section: var(--font-2xl);
  --type-list-title: var(--font-lg);
  --type-card: var(--font-base);
  --type-body: var(--font-base);
  --type-control: var(--font-control);
  --type-meta: var(--font-sm);
  --type-label: var(--font-md);
  --weight-body: 400;
  --weight-action: 600;
  --line-body: 1.6;
  --line-control: 1.3;
  --line-title: 1.2;
  --warning: #ffd18a;
  --success: #9ee4cf;
  --focus-ring: 3px solid var(--accent);
  --font-brand-caption: 0.6875rem;
  --font-xs: 0.75rem;
  --font-sm: 0.8125rem;
  --font-md: 0.875rem;
  --font-control: 0.9375rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.375rem;
  --font-3xl: 1.5rem;
  --font-4xl: 1.75rem;
  --font-5xl: 1.875rem;
  --font-6xl: 2.5rem;
  --line-solid: 1;
  --line-brand: 1.1;
  --line-page: 1.1;
  --line-section: 1.35;
  --line-dense: 1.4;
  --line-meta: 1.5;
  --weight-brand: 700;
  --tracking-heading: 0.01em;
  --tracking-brand: 0.035em;
  --tracking-caption: 0.05em;
  --role-page-title: var(--weight-brand) var(--type-page)/var(--line-page) var(--display);
  --role-section-title: var(--weight-action) var(--type-section)/var(--line-section) var(--body);
  --role-list-title: var(--weight-brand) var(--type-list-title)/var(--line-dense) var(--body);
  --action-ink: #09202a;
  --fill-overlay: rgb(255 255 255 / 8%);
  --shadow-menu: 0 12px 30px rgb(0 0 0 / 33%);
  --shadow-dialog: 0 20px 70px rgb(0 0 0 / 40%);
  --shadow-popover: 0 20px 60px rgb(0 0 0 / 50%);
  --dialog-backdrop: rgb(3 8 18 / 82%);
  --game-blue: #84b9ff;
  --game-green: #9ee4bc;
  --game-red: #ff9fa7;
  --game-white: #e9e5cf;
  --game-purple: #d6b1ff;
  --phone-input-min: 16px;
  --radius-avatar: 50%;
  --art-shadow-color: rgb(0 0 0 / 67%);
  --qr-paper: #ffffff;
}
@media (max-width: 760px) {
  :root {
    --page-gutter: 20px;
    --type-page: 2.125rem;
    --type-wordmark: var(--font-xl);
  }
}
@media (max-width: 359px) {
  :root {
    --page-gutter: 16px;
  }
}

/* Paper is a distinct output medium; screen roles retain their meanings. */
@media print {
  :root {
    --canvas: #ffffff;
    --surface: #ffffff;
    --surface-sunken: #f2f5f8;
    --ink-1: #172033;
    --ink-2: #445166;
    --ink-3: #445166;
    --border: #c7d1de;
    --accent: #125b6b;
    --live: #9b2458;
  }
}

:root[data-ui-enlarged] {
  --quantity-width: 220px;
}
