/* Design tokens */

/* Inter, self-hosted (SIL Open Font License) */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/client/files/fonts/inter/InterVariable.woff2") format("woff2");
}

:root {
    color-scheme: light;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --bg: #fcfcfd; /* near-white, neutral */
    --bg-tint: none;
    --surface: #ffffff;
    --surface-2: #f8f9fa;
    --surface-3: #f1f2f4;
    --surface-4: #e7e9ec;
    --border: #e7e9ed;
    --border-strong: #cfd3da;
    --text: #111318;
    --text-2: #3a3f4a;
    --muted: #636974; /* 5.6:1 on white */
    --faint: #7b818c; /* 4.1:1 on white */
    --accent: #2f3ddb; /* primary ink and fills: white text 6.9:1 */
    --accent-hover: #2531bb;
    --accent-ink: #2a37c9;
    --accent-soft: #eceeff;
    --accent-soft-2: #dde1ff;
    --accent-ring: rgba(47, 61, 219, 0.28);
    --accent-glow: 0 8px 20px -10px rgba(47, 61, 219, 0.55);
    --grad: linear-gradient(135deg, #2f3ddb 0%, #4b5bf2 60%, #6d7cff 100%);
    --on-accent: #ffffff;
    --crit: #c4271c;
    --crit-soft: #fdecea;
    --crit-line: #f4c1bc;
    --crit-chart: #ff0000; /* chart bars that failed (heartbeat pings missed) */
    --warn: #8f4f00;
    --warn-soft: #fff4dc;
    --warn-line: #f3d99a;
    --ok: #0a7446;
    --ok-soft: #e3f6ec;
    --ok-line: #b2e2c6;
    --ok-chart: #32cd32; /* chart bars that passed (heartbeat pings, effectiveness, ideal gauge) */
    --info: #2a37c9;
    --info-soft: #eceeff;
    --info-line: #cdd2ff;
    --amber: #ffc21a;
    --amber-line: #e3a700;
    --on-amber: #231a00;
    --canvas-cond: #c26a06; /* condition cards on the incident workflow canvas */
    --canvas-line: #b9bfca; /* arrows and card borders on the incident workflow canvas */
    --canvas-shadow: rgba(15, 20, 36, 0.05); /* card shadow on the incident workflow canvas */
    --graph-node-shadow: #000000; /* node shadow on the service dependency graph */
    --shell: #ffffff; /* rail + panel */
    --shell-2: #ffffff;
    --shell-line: #eceef1;
    --shell-text: #3a3f4a;
    --shell-muted: #7b818c;
    --shell-hover: #f3f4f6;
    --shell-active: #eceeff;
    --shell-active-ink: #2a37c9;
    --r-xs: 6px;
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --sh-xs: 0 1px 2px rgba(15, 20, 36, 0.05);
    --sh-sm: 0 1px 2px rgba(15, 20, 36, 0.04), 0 6px 18px -8px rgba(15, 20, 36, 0.12);
    --sh-md: 0 2px 4px rgba(15, 20, 36, 0.04), 0 14px 36px -12px rgba(15, 20, 36, 0.24);
    --sh-lg: 0 4px 8px rgba(15, 20, 36, 0.05), 0 30px 70px -22px rgba(15, 20, 36, 0.35);
    --scrim: rgba(15, 20, 36, 0.5);
    --scrollbar: #d3d6dc;
    --rail-w: 64px;
    --panel-w: 236px;
    --side-w: calc(var(--rail-w) + var(--panel-w));
    --top-h: 60px;
    --page-max: none;
    --gutter: 32px;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b0e17;
    --bg-tint: radial-gradient(1200px 420px at 18% -8%, rgba(124, 134, 255, 0.10), transparent 60%);
    --surface: #121624;
    --surface-2: #161b2b;
    --surface-3: #1d2335;
    --surface-4: #262d42;
    --border: #252c40;
    --border-strong: #3b4460;
    --text: #eef0f8;
    --text-2: #c6cbdc;
    --muted: #929ab5; /* 6.3:1 on #121624 */
    --faint: #7e879f; /* 4.6:1 on #121624 */
    --accent: #6670ff; /* fills: white text 4.7:1 */
    --accent-hover: #7a84ff;
    --accent-ink: #9ea6ff; /* text and icons: 8.4:1 on #121624 */
    --accent-soft: rgba(124, 134, 255, 0.14);
    --accent-soft-2: rgba(124, 134, 255, 0.24);
    --accent-ring: rgba(124, 134, 255, 0.38);
    --accent-glow: 0 8px 22px -10px rgba(102, 112, 255, 0.7);
    --grad: linear-gradient(135deg, #5a65ff 0%, #7781ff 60%, #98a0ff 100%);
    --on-accent: #ffffff;
    --crit: #ff8a80;
    --crit-soft: rgba(255, 99, 88, 0.14);
    --crit-line: rgba(255, 99, 88, 0.38);
    --crit-chart: #ff0000;
    --warn: #ffc670;
    --warn-soft: rgba(255, 176, 56, 0.14);
    --warn-line: rgba(255, 176, 56, 0.38);
    --ok: #5fd39a;
    --ok-soft: rgba(52, 199, 123, 0.14);
    --ok-line: rgba(52, 199, 123, 0.38);
    --ok-chart: #32cd32;
    --info: #9ea6ff;
    --info-soft: rgba(124, 134, 255, 0.14);
    --info-line: rgba(124, 134, 255, 0.38);
    --amber: #f5b920;
    --amber-line: #d49a00;
    --on-amber: #1d1500;
    --canvas-cond: #d9902b;
    --canvas-line: #4a5470;
    --canvas-shadow: rgba(0, 0, 0, 0.28);
    --graph-node-shadow: #000000;
    --shell: #0e1220;
    --shell-2: #121624;
    --shell-line: #1f2538;
    --shell-text: #c6cbdc;
    --shell-muted: #7d85a3;
    --shell-hover: #1a2033;
    --shell-active: rgba(124, 134, 255, 0.16);
    --shell-active-ink: #b4baff;
    --sh-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 20px -10px rgba(0, 0, 0, 0.6);
    --sh-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 16px 40px -14px rgba(0, 0, 0, 0.7);
    --sh-lg: 0 4px 8px rgba(0, 0, 0, 0.35), 0 34px 80px -24px rgba(0, 0, 0, 0.8);
    --scrim: rgba(3, 5, 12, 0.66);
    --scrollbar: #3b4460;
}

html.app-shell-no-panel {
    --side-w: var(--rail-w);
}
