/* Simpul: token desain. Dibuat dari replica/design/tokens.json. Komponen memakai peran, bukan hex. */
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Source Code Pro"; src: url("fonts/source-code-pro-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --bg: #F1F2EE;
  --sidebar: #E5E8E2;
  --surface: #FFFFFF;
  --surface-2: #F7F8F5;
  --border: #D3D8D0;
  --border-input: #858F86;
  --text: #18211D;
  --text-muted: #545E58;
  --text-faint: #5E6761;
  --accent: #1C6A56;
  --accent-hover: #165545;
  --on-accent: #FFFFFF;
  --accent-soft: #DDEBE4;
  --accent-ink: #134A3C;
  --user-bubble: #E2E7DF;
  --danger: #A3302B;
  --danger-soft: #F6E2E0;
  --warning: #7E5300;
  --focus: #1C6A56;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Source Code Pro", ui-monospace, Consolas, monospace;
  --fs-small: 13px; --fs-ui: 14px; --fs-body: 16px; --fs-lead: 19px; --fs-title: 24px; --fs-greeting: 36px;
  --lh-ui: 1.4; --lh-body: 1.65; --lh-heading: 1.2;
  --w-regular: 420; --w-medium: 540; --w-strong: 640;
  --r-control: 7px; --r-panel: 14px; --r-pill: 999px;
  --shadow-composer: 0 1px 2px rgba(24,33,29,.06), 0 6px 24px -12px rgba(24,33,29,.18);
  --t-fast: 120ms; --t-base: 200ms;
  --sidebar-w: 272px; --column: 46rem;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #151A18;
  --sidebar: #101412;
  --surface: #1D2321;
  --surface-2: #232A27;
  --border: #2F3834;
  --border-input: #6A7770;
  --text: #E5EAE6;
  --text-muted: #A1ABA5;
  --text-faint: #8A948E;
  --accent: #62C2A2;
  --accent-hover: #7DD0B3;
  --on-accent: #0D1F19;
  --accent-soft: #1E3A31;
  --accent-ink: #9AD9C2;
  --user-bubble: #28302D;
  --danger: #F08A82;
  --danger-soft: #3A2220;
  --warning: #E2B45C;
  --focus: #62C2A2;
  --shadow-composer: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151A18;
    --sidebar: #101412;
    --surface: #1D2321;
    --surface-2: #232A27;
    --border: #2F3834;
    --border-input: #6A7770;
    --text: #E5EAE6;
    --text-muted: #A1ABA5;
    --text-faint: #8A948E;
    --accent: #62C2A2;
    --accent-hover: #7DD0B3;
    --on-accent: #0D1F19;
    --accent-soft: #1E3A31;
    --accent-ink: #9AD9C2;
    --user-bubble: #28302D;
    --danger: #F08A82;
    --danger-soft: #3A2220;
    --warning: #E2B45C;
    --focus: #62C2A2;
    --shadow-composer: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
