/* Shared web/captive palette. RouterOS pages embed this file for offline use. */
:root {
  color-scheme: light dark;
  --brand-accent: #ff551f;
  --brand-bright: #ff7b51;
  --brand-strong: #b9380f;
  --brand: var(--brand-strong);
  --brand-ink: #1e1e1e;
  --brand-wash: #fff0e8;
  --bg: #fffefa;
  --bg-tint: #fff0e8;
  --surface: #ffffff;
  --surface-2: #fff8f4;
  --ink: #1e1e1e;
  --ink-soft: #4c403a;
  --muted: #6c5b51;
  --line: #e8dfd9;
  --line-strong: #d7c7bc;
  --warn: #8a5a00;
  --warn-bg: #fff6e5;
  --error: #9b1c1c;
  --error-bg: #fdecec;
  --error-ink: #ffffff;
  --ok: #14654a;
  --ok-bg: #e7f5ef;
  --category-social: #3b82f6;
  --category-streaming: #a855f7;
  --category-browsing: #19c08a;
  --category-other: #f59e0b;
  --night-owl: #5b4b8a;
  --night-owl-wash: #f0edfa;
  --night-owl-motif: color-mix(in srgb, var(--night-owl) 4%, transparent);
  --shadow-sm: 0 1px 2px rgba(13, 20, 24, 0.06);
  --shadow-md: 0 6px 20px -8px rgba(13, 20, 24, 0.22);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: var(--brand-accent);
    --brand-strong: #ff916b;
    --brand-wash: #352119;
    --bg: #0a0f13;
    --bg-tint: #291a15;
    --surface: #141b22;
    --surface-2: #1a222b;
    --ink: #e9eef3;
    --ink-soft: #c2ccd6;
    --muted: #93a1af;
    --line: #27313b;
    --line-strong: #35424f;
    --warn: #f0b756;
    --warn-bg: #2e2312;
    --error: #f2a1a1;
    --error-bg: #331a1a;
    --error-ink: #1e1e1e;
    --ok: #6fdcb4;
    --ok-bg: #102b23;
    --night-owl: #b8a7ef;
    --night-owl-wash: #211c34;
    --night-owl-motif: color-mix(in srgb, var(--night-owl) 3%, transparent);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px -10px rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: var(--brand-accent);
  --brand-strong: #ff916b;
  --brand-wash: #352119;
  --bg: #0a0f13;
  --bg-tint: #291a15;
  --surface: #141b22;
  --surface-2: #1a222b;
  --ink: #e9eef3;
  --ink-soft: #c2ccd6;
  --muted: #93a1af;
  --line: #27313b;
  --line-strong: #35424f;
  --warn: #f0b756;
  --warn-bg: #2e2312;
  --error: #f2a1a1;
  --error-bg: #331a1a;
  --error-ink: #1e1e1e;
  --ok: #6fdcb4;
  --ok-bg: #102b23;
  --night-owl: #b8a7ef;
  --night-owl-wash: #211c34;
  --night-owl-motif: color-mix(in srgb, var(--night-owl) 3%, transparent);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px -10px rgba(0, 0, 0, 0.7);
}

:root[data-theme="light"] {
  color-scheme: light;
}
