/* ==========================================================================
   theme.css: the ONLY file that holds brand values (colours, fonts, radii).
   app.css only references these tokens. To rebrand for external use, replace
   the values here.
   Each colour is light-dark(light, dark). The page follows the system setting
   until the header toggle stores a choice (data-theme on <html>).
   ========================================================================== */
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-condensed-300.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-condensed-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-condensed-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/instrument-sans-bold-italic.ttf") format("truetype");
}

:root {
  --font-brand: "Instrument Sans", Arial, sans-serif;
  --brand-blue: #00a4eb;
  --brand-ink: light-dark(#002f6c, #ffffff);
  color-scheme: light dark;

  --font-body: "IBM Plex Sans Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 12px;

  /* look palette swatches in the header */
  --swatch-mono: #111111;
  --swatch-purple: #6d3fc4;
  --swatch-blue: #0369a1;
  --swatch-orange: #e8863f;
  --swatch-tick: #ffffff;
  --swatch-tick-dark: #111111;
  --swatch-tick-shade: rgba(0, 0, 0, 0.6);
  --swatch-guided: linear-gradient(135deg, #e8863f 50%, #faf9f5 50%);
  --radius-sm: 8px;

  /* export button icons */
  --icon-pdf: #d32f2f;
  --icon-mail: #3b6fd4;
  --icon-excel: #1d6f42;
  --icon-sheets: #0f9d58;
  --icon-ink: #ffffff;
  --icon-shade: #000000;

  /* surfaces and text */
  --bg: light-dark(#f4f6fa, #07090d);
  --bar: light-dark(#ffffff, #151a26);
  --panel: light-dark(#ffffff, #1b2232);
  --chip: light-dark(#eef1f6, #242e42);
  --field: light-dark(#f4f6fa, #10151e);
  --ink: light-dark(#1b2333, #d6dbe6);
  --ink-strong: light-dark(#0b1220, #ffffff);
  --mute: light-dark(#566178, #9ea8ba);
  --line: light-dark(#e3e7ef, #2b3750);
  --line-strong: light-dark(#d0d7e4, #546c9c);
  --band: light-dark(#e8ecf2, #2a364e);
  --accent: light-dark(#0369a1, #38bdf8);
  --accent-ink: light-dark(#ffffff, #04121c);
  --accent-hover: light-dark(#075985, #7dd3fc);
  --guide-from: light-dark(#e6f3fb, #0f2433);
  --guide-edge: light-dark(#a9d6ef, #1e4a63);
  --alert-bg: light-dark(#0057ff, #22e6ff);
  --alert-ink: light-dark(#ffffff, #06121c);
  --act-bg: light-dark(#12182a, #0a0e17);
  --act-ink: #d6dbe6;
  --act-strong: #ffffff;
  --act-mute: #9ea8ba;
  --act-line: #2b3750;
  --act-edge: #546c9c;
  --act-on-bg: #38bdf8;
  --act-on-ink: #04121c;
  --act-good-bg: #4ade80;
  --act-good-ink: #052e16;
  --act-bad-bg: #d32f2f;
  --act-bad-ink: #ffffff;
  --shadow-color: light-dark(rgba(15, 27, 42, .08), rgba(0, 0, 0, .4));
  --card-shadow: 0 1px 2px var(--shadow-color);

  /* group bands: dark text on light fills no pill uses */
  --band-on: #2b2420;
  --band-on-dark: #ffffff;

  /* status colours (tracker grid) */
  --st-none: var(--band);
  --st-red: light-dark(#b91c1c, #f87171);
  --st-orange: light-dark(#d97706, #fbbf24);
  --st-blue: light-dark(#1d4ed8, #60a5fa);
  --st-purple: light-dark(#6d28d9, #a78bfa);
  --st-done: light-dark(#03634a, #34d399);
  --st-on: light-dark(#ffffff, #06121c);
  --st-orange-on: #2a2000;
  --st-yellow: light-dark(#facc15, #fde047);
  --st-yellow-on: #2a2000;
  --sev-critical: light-dark(#dc2626, #f87171);
  --sev-critical-on: light-dark(#ffffff, #1a0505);
  --sev-high: light-dark(#991b1b, #dc2626);
  --sev-high-on: #ffffff;
  --sev-medium: var(--st-orange);
  --sev-medium-on: var(--st-orange-on);
  --sev-low: var(--st-yellow);
  --sev-low-on: var(--st-yellow-on);

  /* fills behind status pills and grid cells; most looks keep the strong status colours, Pastel softens them */
  --fill-red: var(--st-red);
  --fill-orange: var(--st-orange);
  --fill-blue: var(--st-blue);
  --fill-purple: var(--st-purple);
  --fill-done: var(--st-done);
  --fill-yellow: var(--st-yellow);
  --fill-on: var(--st-on);
  --fill-orange-on: var(--st-orange-on);
  --fill-yellow-on: var(--st-yellow-on);

  /* timeline phases */
  --phase-prepare: light-dark(#94a3b8, #94a3b8);
  --phase-build: light-dark(#a78bfa, #a78bfa);
  --phase-test: light-dark(#0ea5e9, #38bdf8);
  --phase-cname: light-dark(#f97316, #fb923c);
  --phase-dns: light-dark(#fb7185, #fb7185);
  --phase-watch: light-dark(#34d399, #34d399);
  --phase-on: #06121c;
}

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

/* Guided Flow: built on the Akamai Orange surfaces and accent, then lifted with a soft glow on cards that need attention and a spring entrance. It keeps the strong status colours. */
:root[data-look="guided"] {
  --radius: 14px;
  --bg: light-dark(#f0eee6, #0a0a0a);
  --bar: light-dark(#faf9f5, #1e1e1d);
  --panel: light-dark(#faf9f5, #272726);
  --chip: light-dark(#eeebe2, #343432);
  --field: light-dark(#f0eee6, #171716);
  --ink: light-dark(#1f1e1d, #e8e6dc);
  --ink-strong: light-dark(#0d0c0b, #ffffff);
  --mute: light-dark(#5b5953, #b2b0aa);
  --line: light-dark(#e0ddd1, #3e3e3c);
  --line-strong: light-dark(#ccc9bb, #71716d);
  --band: light-dark(#e3e0d4, #3d3d3b);
  --accent: light-dark(#a8431b, #f08a5d);
  --accent-ink: light-dark(#ffffff, #1f0c04);
  --accent-hover: light-dark(#8f3513, #f5a47f);
  --guide-from: light-dark(#f6e6dc, #2a1a12);
  --guide-edge: light-dark(#e5b9a3, #6b3a24);
  /* the inner top highlight and the soft glow that replaces a frame around cards that need attention */
  --bezel-light: light-dark(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.07));
  --guide-glow: light-dark(rgba(168, 67, 27, 0.3), rgba(240, 138, 93, 0.24));
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Pastel: warm cream and soft near-black surfaces with an orange accent and rounder corners. The orange is darkened in light mode so links and button text stay readable. */
:root[data-look="pastel"] {
  --radius: 14px;
  --bg: light-dark(#f0eee6, #0a0a0a);
  --bar: light-dark(#faf9f5, #1e1e1d);
  --panel: light-dark(#faf9f5, #272726);
  --chip: light-dark(#eeebe2, #343432);
  --field: light-dark(#f0eee6, #171716);
  --ink: light-dark(#1f1e1d, #e8e6dc);
  --ink-strong: light-dark(#0d0c0b, #ffffff);
  --mute: light-dark(#5b5953, #b2b0aa);
  --line: light-dark(#e0ddd1, #3e3e3c);
  --line-strong: light-dark(#ccc9bb, #71716d);
  --band: light-dark(#e3e0d4, #3d3d3b);
  --accent: light-dark(#a8431b, #f08a5d);
  --accent-ink: light-dark(#ffffff, #1f0c04);
  --accent-hover: light-dark(#8f3513, #f5a47f);
  --guide-from: light-dark(#f6e6dc, #2a1a12);
  --guide-edge: light-dark(#e5b9a3, #6b3a24);
  /* soft pastel fills with dark text for status pills, grid cells and Timeline bars */
  --fill-red: light-dark(#f0a3a0, #e59390);
  --fill-orange: light-dark(#f5b070, #e9a05f);
  --fill-blue: light-dark(#a8cdf0, #96bde3);
  --fill-purple: light-dark(#cdb8ec, #bda8de);
  --fill-done: light-dark(#a9d9a0, #98c98f);
  --fill-yellow: light-dark(#f4e27a, #e6d46c);
  --fill-on: #2b2420;
  --fill-orange-on: #2b2420;
  --fill-yellow-on: #2b2420;
  --phase-prepare: light-dark(#d6d3c8, #c4c1b6);
  --phase-build: light-dark(#cdb8ec, #bda8de);
  --phase-test: light-dark(#a8d8ee, #96c8de);
  --phase-cname: light-dark(#f5b070, #e9a05f);
  --phase-dns: light-dark(#f4a6bd, #e596ad);
  --phase-watch: light-dark(#a9d9a0, #98c98f);
  --phase-on: #2b2420;
  /* faint orange and blue colour blobs behind the page; see the body rule in app.css */
  --glow-orange: light-dark(rgba(217, 119, 87, 0.16), rgba(217, 89, 38, 0.13));
  --glow-blue: light-dark(rgba(120, 170, 230, 0.18), rgba(110, 160, 230, 0.11));
  --sticker: light-dark(#1f1e1d, #3d3c38);
  --tray: light-dark(#e6e2d6, #0c0c0b);
  --tray-edge: light-dark(rgba(31, 30, 29, 0.2), rgba(0, 0, 0, 0.7));
  --raised: light-dark(#ffffff, #444441);
  --card-glow: light-dark(rgba(217, 119, 87, 0.26), rgba(240, 138, 93, 0.18));
  --card-lift: light-dark(rgba(31, 30, 29, 0.07), rgba(0, 0, 0, 0.55));
  --card-shadow: 0 10px 30px -8px var(--card-glow), 0 2px 8px var(--card-lift);
  /* top bar: idle tab text, and the height below which the background glow starts */
  --tab-idle: light-dark(#3f3d39, #c9c7be);
  --bar-edge: 80px;
}

/* Akamai Blue: the Akamai Orange structure (soft glow, rounder cards, pill switches) in cool blue, with a soft glow around cards and a spring curve. It is the default, so it needs no data-look. */
:root:not([data-look]) {
  --radius: 14px;
  --bg: light-dark(#eef2f8, #08090d);
  --bar: light-dark(#f8faff, #161b25);
  --panel: light-dark(#f8faff, #1c2330);
  --chip: light-dark(#e6ecf5, #262f40);
  --field: light-dark(#eef2f8, #11151d);
  --ink: light-dark(#1b2333, #dfe5f0);
  --ink-strong: light-dark(#0b1220, #ffffff);
  --mute: light-dark(#545f76, #9ea9bf);
  --line: light-dark(#dde3ee, #2d394d);
  --line-strong: light-dark(#c8d0e0, #586e95);
  --band: light-dark(#dfe6f1, #2c374b);
  --accent: light-dark(#0369a1, #5bbcf0);
  --accent-ink: light-dark(#ffffff, #04121c);
  --accent-hover: light-dark(#075985, #8dd2f6);
  --guide-from: light-dark(#e1eefa, #0f2433);
  --guide-edge: light-dark(#a9d0ee, #24567a);
  /* soft pastel fills with dark text for status pills, grid cells and Timeline bars */
  --fill-red: light-dark(#f0a3a0, #e59390);
  --fill-orange: light-dark(#f5b070, #e9a05f);
  --fill-blue: light-dark(#a8cdf0, #96bde3);
  --fill-purple: light-dark(#cdb8ec, #bda8de);
  --fill-done: light-dark(#a9d9a0, #98c98f);
  --fill-yellow: light-dark(#f4e27a, #e6d46c);
  --fill-on: #2b2420;
  --fill-orange-on: #2b2420;
  --fill-yellow-on: #2b2420;
  --phase-prepare: light-dark(#d9d6cf, #c4c0b6);
  --phase-build: light-dark(#cdb8ec, #bda8de);
  --phase-test: light-dark(#a8d8ee, #96c8de);
  --phase-cname: light-dark(#f5b070, #e9a05f);
  --phase-dns: light-dark(#f4a6bd, #e596ad);
  --phase-watch: light-dark(#a9d9a0, #98c98f);
  --phase-on: #2b2420;
  /* faint orange and blue colour blobs behind the page; see the body rule in app.css */
  --glow-orange: light-dark(rgba(80, 140, 230, 0.18), rgba(60, 130, 230, 0.14));
  --glow-blue: light-dark(rgba(110, 200, 240, 0.18), rgba(90, 190, 240, 0.11));
  --sticker: light-dark(#1b2333, #34405a);
  --tray: light-dark(#e2e8f2, #080b0e);
  --tray-edge: light-dark(rgba(27, 35, 51, 0.2), rgba(0, 0, 0, 0.7));
  --raised: light-dark(#ffffff, #313d53);
  --card-glow: light-dark(rgba(3, 105, 161, 0.26), rgba(91, 188, 240, 0.18));
  --card-lift: light-dark(rgba(27, 35, 51, 0.07), rgba(0, 0, 0, 0.55));
  --bezel-light: light-dark(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.07));
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --card-shadow: inset 0 1px 0 var(--bezel-light), 0 0 22px -2px var(--card-glow), 0 14px 30px -18px var(--card-glow);
  /* top bar: idle tab text, and the height below which the background glow starts */
  --tab-idle: light-dark(#38425a, #c3cbdb);
  --bar-edge: 80px;
}

/* Akamai Purple: the Akamai Orange structure in violet, with the same soft card glow and spring curve as Akamai Blue. */
:root[data-look="purple"] {
  --radius: 14px;
  --bg: light-dark(#f8f7fb, #07060a);
  --bar: light-dark(#faf8ff, #1a1625);
  --panel: light-dark(#ffffff, #221c30);
  --chip: light-dark(#efedf5, #2e2541);
  --field: light-dark(#f8f7fb, #15111d);
  --ink: light-dark(#231d33, #e4def0);
  --ink-strong: light-dark(#100b1c, #ffffff);
  --mute: light-dark(#5f5873, #a79fbc);
  --line: light-dark(#e0daec, #3c3154);
  --line-strong: light-dark(#cdc5de, #745fa2);
  --band: light-dark(#eae7f2, #362c4c);
  --accent: light-dark(#6d3fc4, #b69cf5);
  --accent-ink: light-dark(#ffffff, #140a2a);
  --accent-hover: light-dark(#5a2fa8, #cdbbf8);
  --guide-from: light-dark(#ece3fa, #241a3d);
  --guide-edge: light-dark(#c8b4ec, #4a3a7a);
  /* soft pastel fills with dark text for status pills, grid cells and Timeline bars */
  --fill-red: light-dark(#f0a3a0, #e59390);
  --fill-orange: light-dark(#f5b070, #e9a05f);
  --fill-blue: light-dark(#a8cdf0, #96bde3);
  --fill-purple: light-dark(#cdb8ec, #bda8de);
  --fill-done: light-dark(#a9d9a0, #98c98f);
  --fill-yellow: light-dark(#f4e27a, #e6d46c);
  --fill-on: #2b2420;
  --fill-orange-on: #2b2420;
  --fill-yellow-on: #2b2420;
  --phase-prepare: light-dark(#d9d6cf, #c4c0b6);
  --phase-build: light-dark(#cdb8ec, #bda8de);
  --phase-test: light-dark(#a8d8ee, #96c8de);
  --phase-cname: light-dark(#f5b070, #e9a05f);
  --phase-dns: light-dark(#f4a6bd, #e596ad);
  --phase-watch: light-dark(#a9d9a0, #98c98f);
  --phase-on: #2b2420;
  /* faint orange and blue colour blobs behind the page; see the body rule in app.css */
  --glow-orange: light-dark(rgba(140, 100, 230, 0.07), rgba(120, 80, 220, 0.14));
  --glow-blue: light-dark(rgba(200, 140, 240, 0.06), rgba(180, 120, 240, 0.1));
  --sticker: light-dark(#231d33, #3d3352);
  --tray: light-dark(#ecebf2, #0a080f);
  --tray-edge: light-dark(rgba(35, 29, 51, 0.2), rgba(0, 0, 0, 0.7));
  --raised: light-dark(#ffffff, #3c3154);
  --card-glow: light-dark(rgba(109, 63, 196, 0.26), rgba(182, 156, 245, 0.18));
  --card-lift: light-dark(rgba(35, 29, 51, 0.07), rgba(0, 0, 0, 0.55));
  --bezel-light: light-dark(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.07));
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --card-shadow: inset 0 1px 0 var(--bezel-light), 0 0 22px -2px var(--card-glow), 0 14px 30px -18px var(--card-glow);
  /* top bar: idle tab text, and the height below which the background glow starts */
  --tab-idle: light-dark(#3a3250, #c8c0dc);
  --bar-edge: 80px;
}

/* Akamai Black & White: the Akamai Orange structure in pure black, white and grey. Status colours stay in colour so they keep their meaning. */
:root[data-look="mono"] {
  --radius: 14px;
  --bg: light-dark(#f4f4f4, #0a0a0a);
  --bar: light-dark(#ffffff, #1d1d1d);
  --panel: light-dark(#ffffff, #262626);
  --chip: light-dark(#ececec, #333333);
  --field: light-dark(#f4f4f4, #171717);
  --ink: light-dark(#161616, #e9e9e9);
  --ink-strong: light-dark(#000000, #ffffff);
  --mute: light-dark(#5a5a5a, #afafaf);
  --line: light-dark(#e2e2e2, #3d3d3d);
  --line-strong: light-dark(#cfcfcf, #707070);
  --band: light-dark(#e6e6e6, #3c3c3c);
  --accent: light-dark(#111111, #f5f5f5);
  --accent-ink: light-dark(#ffffff, #0a0a0a);
  --accent-hover: light-dark(#333333, #cccccc);
  --guide-from: light-dark(#ececec, #1c1c1c);
  --guide-edge: light-dark(#c8c8c8, #454545);
  /* soft pastel fills with dark text for status pills, grid cells and Timeline bars */
  --fill-red: light-dark(#f0a3a0, #e59390);
  --fill-orange: light-dark(#f5b070, #e9a05f);
  --fill-blue: light-dark(#a8cdf0, #96bde3);
  --fill-purple: light-dark(#cdb8ec, #bda8de);
  --fill-done: light-dark(#a9d9a0, #98c98f);
  --fill-yellow: light-dark(#f4e27a, #e6d46c);
  --fill-on: #2b2420;
  --fill-orange-on: #2b2420;
  --fill-yellow-on: #2b2420;
  --phase-prepare: light-dark(#d9d6cf, #c4c0b6);
  --phase-build: light-dark(#cdb8ec, #bda8de);
  --phase-test: light-dark(#a8d8ee, #96c8de);
  --phase-cname: light-dark(#f5b070, #e9a05f);
  --phase-dns: light-dark(#f4a6bd, #e596ad);
  --phase-watch: light-dark(#a9d9a0, #98c98f);
  --phase-on: #2b2420;
  /* faint orange and blue colour blobs behind the page; see the body rule in app.css */
  --glow-orange: light-dark(rgba(120, 120, 120, 0.14), rgba(255, 255, 255, 0.06));
  --glow-blue: light-dark(rgba(80, 80, 80, 0.1), rgba(255, 255, 255, 0.04));
  --sticker: light-dark(#111111, #3a3a3a);
  --tray: light-dark(#e8e8e8, #0b0b0b);
  --tray-edge: light-dark(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
  --raised: light-dark(#ffffff, #424242);
  --card-glow: light-dark(rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.08));
  --card-lift: light-dark(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.55));
  --bezel-light: light-dark(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.07));
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --card-shadow: inset 0 1px 0 var(--bezel-light), 0 0 22px -2px var(--card-glow), 0 14px 30px -18px var(--card-glow);
  /* top bar: idle tab text, and the height below which the background glow starts */
  --tab-idle: light-dark(#3a3a3a, #c4c4c4);
  --bar-edge: 80px;
}

.activity-panel[data-theme="light"] {
  --act-bg: #ffffff;
  --act-ink: #1f2937;
  --act-strong: #0b1220;
  --act-mute: #566074;
  --act-line: #d9dee8;
  --act-edge: #8a97b0;
}
