/* Uploading platform design tokens. Brand: ink #1A1C1E on membrane #F6F3EF (identity v2.5), hematite #5A241D for
   measurement and focus, mineral #4E8577 for "done/correct". One accent; three neutrals; status colours are semantic. */
:root {
  /* brand */
  --ink: #1A1C1E; --membrane: #F6F3EF; --hematite: #5A241D; --hematite-400: #8C4A3E; --mineral: #4E8577;
  --silver-200: #E4E1DB; --silver-500: #A7A49F; --silver-700: #6F6C68;

  /* surfaces (light) */
  --bg: #FAF8F5;            /* page */
  --surface: #FFFFFF;       /* panels, inputs */
  --rail: var(--membrane);  /* navigation */
  --raise: #F3F0EB;         /* hover, selected */
  --text: var(--ink); --text-2: #3D3F42; --muted: #75726D; --line: #E7E3DD; --line-strong: #D6D1C9;
  --accent: var(--hematite); --accent-fg: #FFFFFF; --focus: #8C4A3E;
  --ok: #2F6B4F; --warn: #8A5A12; --bad: #9B3B2C;
  --code-bg: #1C1E21; --code-fg: #E9E6E1;
  --shadow: 0 1px 2px rgba(26, 28, 30, .05), 0 8px 24px rgba(26, 28, 30, .06);
  --scrim: rgba(26, 28, 30, .42);
  /* chart series: the accent first, then warm neutrals (never a rainbow) */
  --series-1: #93503F; --series-2: #D4A592; --series-3: #6F6C68; --series-4: #B3AEA6; --series-5: #3F4245; --series-6: #E2DDD5;

  /* type */
  --sans: "Figtree", "Noto Sans SC", -apple-system, "PingFang SC", system-ui, sans-serif;
  --serif: "Source Serif 4", "Noto Serif SC", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --t-xs: .75rem; --t-sm: .875rem; --t-md: 1rem; --t-lg: 1.125rem; --t-xl: 1.5rem; --t-2xl: 2rem; --t-3xl: 2.75rem;

  /* space (4-pt) and shape */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;
  --ease: cubic-bezier(.4, 0, .2, 1); --fast: 140ms; --slow: 220ms;
  --rail-w: 248px; --content-w: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111213; --surface: #17181A; --rail: #141516; --raise: #1E2022;
    --text: #F2F0EC; --text-2: #D3D0CB; --muted: #9A978F; --line: #26282B; --line-strong: #34373B;
    --accent: #E2A497; --accent-fg: #1A1C1E; --focus: #E2A497; --ok: #8FD0AE; --warn: #E6B867; --bad: #EF9F8F;
    --code-bg: #0C0D0E; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35); --scrim: rgba(0, 0, 0, .6); --series-1: #E2A497; --series-2: #B9705E; --series-3: #7E4538; --series-4: #B5B1AA; --series-5: #77746F; --series-6: #45484C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111213; --surface: #17181A; --rail: #141516; --raise: #1E2022;
  --text: #F2F0EC; --text-2: #D3D0CB; --muted: #9A978F; --line: #26282B; --line-strong: #34373B;
  --accent: #E2A497; --accent-fg: #1A1C1E; --focus: #E2A497; --ok: #8FD0AE; --warn: #E6B867; --bad: #EF9F8F;
  --code-bg: #0C0D0E; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35); --scrim: rgba(0, 0, 0, .6); --series-1: #E2A497; --series-2: #B9705E; --series-3: #7E4538; --series-4: #B5B1AA; --series-5: #77746F; --series-6: #45484C;
  color-scheme: dark;
}
