/* CSS requires @font-face at stylesheet level. Only opted-in components use it. */
@font-face {
  font-family: "CSVCC A Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html[data-theme="a"] {
  --a-nav-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  --a-nav-height: 62px;
  --a-nav-right: max(16px, env(safe-area-inset-right, 0px));
  --bg: #0A0B0D;
  --s1: #121418;
  --s2: #191C21;
  --s3: #22262D;
  --line: rgb(255 255 255 / 7%);
  --line2: rgb(255 255 255 / 12%);
  --t1: #F3F4F6;
  --t2: #A7ADB8;
  --t3: #7F8794;
  --lime: #C8F560;
  --lime-ink: #10130A;
  --a-selected: rgb(200 245 96 / 6%);
  --pos: #62DDA4;
  --warn: #FFA05C;
  --neg: #FF7A7A;
  --a-meter: rgb(255 255 255 / 62%);
  --a-scrim: rgb(0 0 0 / 62%);
  --a-card-se-light: #F0823C;
  --a-card-se-mid: #C24A12;
  --a-card-se-dark: #4A1705;
  --a-card-uk-light: #5B7FF2;
  --a-card-uk-mid: #2443C4;
  --a-card-uk-dark: #0B1547;
  --a-card-off-light: #4A505B;
  --a-card-off-dark: #15171B;
  --a-card-rings: repeating-radial-gradient(circle at 76% 22%, transparent 0 10px, var(--line) 11px 12px);
  --a-card-sheen: linear-gradient(118deg, rgb(255 255 255 / 16%), transparent 30% 60%, rgb(0 0 0 / 18%));

  --a-font: "CSVCC A Inter", system-ui, sans-serif;
  --a-mono: ui-monospace, monospace;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 26px;
  --fs-hero: 48px;
  --a-fs-amount: 15.5px;
  --a-fw-regular: 400;
  --a-fw-medium: 500;
  --a-fw-semibold: 600;

  --a-radius-sm: 12px;
  --a-radius-button: 16px;
  --a-radius-row: 18px;
  --a-radius-panel: 24px;
  --a-radius-sheet: 30px;
  --a-radius-pill: 999px;
  --a-shadow-card: 0 20px 44px rgb(0 0 0 / 55%);
  --a-shadow-bulk: 0 20px 44px rgb(0 0 0 / 60%);
  --a-shadow-sheet: 0 -12px 36px rgb(0 0 0 / 45%);

  --a-space-1: 4px;
  --a-space-2: 8px;
  --a-space-3: 12px;
  --a-space-4: 16px;
  --a-space-5: 20px;
  --a-space-6: 24px;
  --a-panel-compact: 14px;
  --a-page-mobile: 22px;
  --a-row-mobile: 76px;
  --a-row-web: 72px;

  --a-time-press: 120ms;
  --a-time-switch: 200ms;
  --a-time-enter: 320ms;
  --a-time-flip: 400ms;
  --a-ease: cubic-bezier(.2,.8,.2,1);
  --a-balance-rise: 10px;
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="a"] {
    --a-time-press: 0ms;
    --a-time-switch: 0ms;
    --a-time-enter: 0ms;
    --a-time-flip: 0ms;
  }
}

/* Shared palette for the admin workspace and the opening flow. */
html[data-admin-dark],
:where(.sc-project-picker, dialog[data-csvcc-issuance-dialog]) {
  --dark-bg: #0a0b0d;
  --dark-panel: #121418;
  --dark-panel-raised: #191c21;
  --dark-panel-strong: #22262d;
  --dark-border: #383e49;
  --dark-text: #f3f4f6;
  --dark-muted: #a7adb8;
  --dark-placeholder: #929aaa;
  --dark-accent: #b0c5ff;
  --dark-accent-action: #304674;
  --dark-accent-surface: #202c43;
  --dark-lime-action: #1c2517;
  --dark-success: #62dda4;
  --dark-success-action: #20513c;
  --dark-success-surface: #172e25;
  --dark-warning: #ffa05c;
  --dark-warning-action: #66391f;
  --dark-warning-surface: #322419;
  --dark-danger: #ff8f98;
  --dark-danger-action: #732f39;
  --dark-danger-surface: #381e23;
  --dark-focus: #a5bbff;
  --dark-shadow: #0008;
  color-scheme: dark;
}

html[data-admin-dark] {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}
