@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-latin-400.woff2') format('woff2'); 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; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-latin-ext-500.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-latin-500.woff2') format('woff2'); 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; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/dm-sans-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/dm-sans-latin-600.woff2') format('woff2'); 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; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/dm-sans-latin-ext-700.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/dm-sans-latin-700.woff2') format('woff2'); 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; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-mono-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-mono-latin-400.woff2') format('woff2'); 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; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-mono-latin-ext-500.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-mono-latin-500.woff2') format('woff2'); 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; }
:root, :root[data-theme="chocolate"] {
  --bg: #1b1815;
  --panel: #24201c;
  --panel-2: #2b2621;
  --chip: #332c25;
  --line: #3a332c;
  --line-strong: #7e756b;
  --ink: #f3ece2;
  --muted: #b3a799;
  --accent: #f07a59;
  --accent-ink: #1b1815;
  --accent-soft: #3a2219;
  --tr: #6fd0c2;
  --tr-soft: #1d3531;
  --video: #0f0d0b;
  --wave-bars: #96785c;
  --wave: #a98b6d;
  --wave-tint: rgba(240,122,89,.10);
  --track1-bg: #4a2a20;
  --track1-fg: #ffcfbf;
  --track2-bg: #1f3a36;
  --track2-fg: #c3f0e8;
  --cut: #e0a84a;
  --flag-bg: #3d3016;
  --flag-fg: #f5d38a;
  --danger: #ff8a70;
  --danger-soft: #3d211a;
  --ok-bg: #1d3531;
  --ok-fg: #8ee3d6;
  --wait-bg: #3d3016;
  --wait-fg: #f5d38a;
  --rev-bg: #2c2748;
  --rev-fg: #cfc6ff;
  --no-bg: #332c25;
  --no-fg: #b3a799;
  --thumb: #0f0d0b;
  --shadow: none;
  --grid: rgba(255,255,255,.12);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fbf6ee;
  --panel: #ffffff;
  --panel-2: #faf6f0;
  --chip: #f1e8da;
  --line: #ece3d5;
  --line-strong: #8f867c;
  --ink: #2b2621;
  --muted: #6f6457;
  --accent: #b8401f;
  --accent-ink: #ffffff;
  --accent-soft: #fff1ec;
  --tr: #1f7a6f;
  --tr-soft: #e6f4f0;
  --video: #1f1a16;
  --wave-bars: #c8976a;
  --wave: #b07a4f;
  --wave-tint: rgba(184,64,31,.08);
  --track1-bg: #fde2d8;
  --track1-fg: #7c2811;
  --track2-bg: #d5efe9;
  --track2-fg: #134b44;
  --cut: #c98314;
  --flag-bg: #fdecc8;
  --flag-fg: #7a4f00;
  --danger: #b4321a;
  --danger-soft: #fdebe6;
  --ok-bg: #e2f3ee;
  --ok-fg: #1f6e64;
  --wait-bg: #fdecc8;
  --wait-fg: #7a4f00;
  --rev-bg: #ece8ff;
  --rev-fg: #4a3aa8;
  --no-bg: #f1e8da;
  --no-fg: #6f6457;
  --thumb: #1f1a16;
  --shadow: 0 1px 3px rgba(60,40,20,.10);
  --grid: rgba(0,0,0,.10);
  color-scheme: light;
}
:root {
  --font-ui: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, Menlo, monospace;
  --radius-pill: 999px;
  --radius-card: 22px;
  --radius-box: 16px;
}

.theme-swatches { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: var(--radius-pill); background: var(--chip); flex-shrink: 0; }
.theme-swatches .swatch { position: relative; width: 32px; height: 32px; margin: 0; padding: 0; border-radius: var(--radius-pill); border: 2px solid transparent; background: transparent; color: var(--ink);
  -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.theme-swatches .swatch:hover { background: var(--panel-2); }
.theme-swatches .swatch.on { border-color: var(--accent); background: var(--panel); }
.theme-swatches .swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-swatches .swatch svg { display: block; width: 18px; height: 18px; flex: none; }
@media (pointer: coarse) { .theme-swatches .swatch::before { content: ''; position: absolute; inset: -4px 0; } }