/* Daedalus theme tokens (2026 remaster: olive and tan, light and dark).
 * Originally the elementary OS look for the Daedalus portal.
 * Redefines the design tokens from app.css (Blueberry accent, Slate text, Silver
 * surfaces, Inter, 9px radii) for light and dark, then overrides the components
 * that hard-code colors. Loaded after app.css. */
:root {
  color-scheme: light dark;
  --e-blueberry-100: #e3e5cc; --e-blueberry-300: #b5bd84; --e-blueberry-500: #66703f; --e-blueberry-700: #4d5530;
  --e-strawberry: #b5483a; --e-orange: #c9962c; --e-banana: #d9b45a; --e-lime: #6f8a3a; --e-mint: #5f8a72;
  --e-window: #f6f4ec; --e-surface: #fdfcf7; --e-surface-2: #efede2; --e-sidebar: #f1efe5;
  --e-text: #29261b; --e-text-2: #4a4430; --e-text-3: #6b654e;
  --e-border: rgba(61,57,38,.14); --e-border-soft: rgba(61,57,38,.085);
  --e-accent: var(--e-blueberry-500); --e-accent-strong: var(--e-blueberry-700); --e-on-accent: #fff;
  --e-accent-soft: rgba(102,112,63,.11);
  --e-warn-bg: rgba(201,150,44,.15); --e-warn: #7d5a12; --e-bad-bg: rgba(181,72,58,.11); --e-bad: #973a2e; --e-ok-bg: rgba(111,138,58,.14); --e-ok: #4b6224;
  --e-shadow: 0 0 0 1px rgba(61,57,38,.06), 0 1px 2px rgba(61,57,38,.06), 0 8px 24px -12px rgba(61,57,38,.16);
  --e-font: "Inter", "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* app.css tokens */
  --olive-50: var(--e-window); --olive-100: var(--e-surface-2); --olive-200: var(--e-border);
  --olive-600: var(--e-accent); --olive-700: var(--e-accent-strong); --olive-800: var(--e-text-2); --olive-900: var(--e-text); --olive-950: var(--e-text);
  --cream-50: var(--e-surface); --cream-100: var(--e-surface-2); --brown-800: var(--e-text-2); --brown-900: var(--e-text);
  --card-surface: var(--e-surface); --card-line: var(--e-border); --selected-surface: var(--e-accent-soft);
  --ink: var(--e-text); --muted: var(--e-text-3); --line: var(--e-border); --panel: var(--e-surface); --canvas: var(--e-window);
  --navy: var(--e-sidebar); --teal: var(--e-accent); --teal-dark: var(--e-accent-strong); --soft-teal: var(--e-surface-2);
  --blue: var(--e-accent); --violet: var(--e-text-2); --amber: var(--e-orange);
  font-family: var(--e-font);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --e-window: #26251e; --e-surface: #302f27; --e-surface-2: #3a3930; --e-sidebar: #22211b;
    --e-text: #f0ede0; --e-text-2: #d3cdb8; --e-text-3: #b0aa92;
    --e-border: rgba(240,232,200,.11); --e-border-soft: rgba(240,232,200,.065);
    --e-accent: #b3bc82; --e-accent-strong: #cfd6a4; --e-accent-soft: rgba(179,188,130,.14); --e-on-accent: #fff;
    --e-strawberry: #d9705f; --e-orange: #d9aa4a; --e-lime: #9bb35f;
    --e-warn-bg: rgba(217,170,74,.14); --e-warn: #e6c47a; --e-bad-bg: rgba(217,112,95,.16); --e-bad: #eda090; --e-ok-bg: rgba(155,179,95,.15); --e-ok: #bdd18a;
    --e-shadow: 0 0 0 1px rgba(240,232,200,.06), 0 1px 2px rgba(0,0,0,.25), 0 10px 28px -14px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --e-window: #26251e; --e-surface: #302f27; --e-surface-2: #3a3930; --e-sidebar: #22211b;
  --e-text: #f0ede0; --e-text-2: #d3cdb8; --e-text-3: #b0aa92;
  --e-border: rgba(240,232,200,.11); --e-border-soft: rgba(240,232,200,.065);
  --e-accent: #b3bc82; --e-accent-strong: #cfd6a4; --e-accent-soft: rgba(179,188,130,.14); --e-on-accent: #fff;
  --e-strawberry: #d9705f; --e-orange: #d9aa4a; --e-lime: #9bb35f;
  --e-warn-bg: rgba(217,170,74,.14); --e-warn: #e6c47a; --e-bad-bg: rgba(217,112,95,.16); --e-bad: #eda090; --e-ok-bg: rgba(155,179,95,.15); --e-ok: #bdd18a;
  --e-shadow: 0 0 0 1px rgba(240,232,200,.06), 0 1px 2px rgba(0,0,0,.25), 0 10px 28px -14px rgba(0,0,0,.4);
}
:root[data-theme="light"] { color-scheme: light; }
/* Palette: Slate (cool neutrals, indigo accent). Olive above is the default. */
:root[data-palette="slate"] {
  --e-blueberry-100: #c7d2ff; --e-blueberry-300: #8ea2ff; --e-blueberry-500: #3d5afe; --e-blueberry-700: #2a40d4;
  --e-strawberry: #e5484d; --e-orange: #f59e0b; --e-banana: #fbbf24; --e-lime: #22a55b; --e-mint: #12a594;
  --e-window: #f6f7f9; --e-surface: #ffffff; --e-surface-2: #f1f3f6; --e-sidebar: #fbfbfc;
  --e-text: #10141c; --e-text-2: #394252; --e-text-3: #5f6b7d;
  --e-border: rgba(16,24,40,.11); --e-border-soft: rgba(16,24,40,.065);
  --e-accent: var(--e-blueberry-500); --e-accent-strong: var(--e-blueberry-700); --e-accent-soft: rgba(61,90,254,.09);
  --e-warn-bg: rgba(245,158,11,.14); --e-warn: #8a4b06; --e-bad-bg: rgba(229,72,77,.11); --e-bad: #b4232a; --e-ok-bg: rgba(34,165,91,.12); --e-ok: #17713e;
  --e-shadow: 0 0 0 1px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.06), 0 8px 24px -12px rgba(16,24,40,.14);
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="slate"]:not([data-theme="light"]) {
  --e-window: #0a0c10; --e-surface: #111419; --e-surface-2: #181c23; --e-sidebar: #0d1014;
  --e-text: #eef1f6; --e-text-2: #c4cbd6; --e-text-3: #8d97a8;
  --e-border: rgba(255,255,255,.09); --e-border-soft: rgba(255,255,255,.055);
  --e-accent: #6c84ff; --e-accent-strong: #98a8ff; --e-accent-soft: rgba(108,132,255,.15);
  --e-strawberry: #f2555a; --e-orange: #f5a524; --e-lime: #3dd68c;
  --e-warn-bg: rgba(245,165,36,.14); --e-warn: #fbc65a; --e-bad-bg: rgba(242,85,90,.16); --e-bad: #ff9592; --e-ok-bg: rgba(61,214,140,.13); --e-ok: #6ee7a8;
  --e-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.5), 0 12px 32px -12px rgba(0,0,0,.7);
  }
}
:root[data-palette="slate"][data-theme="dark"] {
  --e-window: #0a0c10; --e-surface: #111419; --e-surface-2: #181c23; --e-sidebar: #0d1014;
  --e-text: #eef1f6; --e-text-2: #c4cbd6; --e-text-3: #8d97a8;
  --e-border: rgba(255,255,255,.09); --e-border-soft: rgba(255,255,255,.055);
  --e-accent: #6c84ff; --e-accent-strong: #98a8ff; --e-accent-soft: rgba(108,132,255,.15);
  --e-strawberry: #f2555a; --e-orange: #f5a524; --e-lime: #3dd68c;
  --e-warn-bg: rgba(245,165,36,.14); --e-warn: #fbc65a; --e-bad-bg: rgba(242,85,90,.16); --e-bad: #ff9592; --e-ok-bg: rgba(61,214,140,.13); --e-ok: #6ee7a8;
  --e-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.5), 0 12px 32px -12px rgba(0,0,0,.7);
}
html body { font-family: var(--e-font); font-size: 14px; color: var(--e-text); background: var(--e-window); -webkit-font-smoothing: antialiased; }
html h1, html h2, html h3, html h4 { font-family: var(--e-font); font-style: normal; font-weight: 700; letter-spacing: -.01em; color: var(--e-text); }
html :focus-visible { outline: 2px solid var(--e-accent); outline-offset: 2px; border-radius: 6px; }
html ::selection { background: var(--e-blueberry-300); color: #0b1b33; }

/* Login */
html .login-page { background: var(--e-window); }
html .login-card { background: var(--e-surface); border: 1px solid var(--e-border); border-radius: 12px; box-shadow: var(--e-shadow); }
html .eyebrow { color: var(--e-accent); letter-spacing: .08em; }
html .brand, html .brand-mark { font-family: var(--e-font); color: var(--e-text); }
html .brand-mark { background: transparent; color: var(--e-accent); }
html .notice { color: var(--e-text-2); background: var(--e-surface-2); border: 1px solid var(--e-border-soft); border-radius: 9px; }
html .divider, html .fine-print { color: var(--e-text-3); }
html .divider::before, html .divider::after { background: var(--e-border); }

/* Buttons (Granite default / suggested) */
html .button, html button.button { border-radius: 6px; font-weight: 600; transition: background-color .15s, box-shadow .15s; transform: none; }
html .button-primary, html .button-small { color: var(--e-on-accent); background: var(--e-accent); box-shadow: none; }
html .button-primary:hover, html .button-small:hover { background: var(--e-accent-strong); color: #fff; transform: none; }
html .button-secondary, html .button-quiet { color: var(--e-text); background: var(--e-surface-2); border: 1px solid var(--e-border); }
html .button-secondary:hover, html .button-quiet:hover { background: var(--e-accent-soft); }
html .button-wide { min-height: 40px; }

/* Sidebar */
html .sidebar { background: var(--e-sidebar); color: var(--e-text); border-right: 1px solid var(--e-border); backdrop-filter: none; }
html .sidebar .brand, html .sidebar .brand-mark { color: var(--e-text); }
html .nav-label { color: var(--e-text-3); font-family: var(--e-font); letter-spacing: .08em; }
html .nav-item { color: var(--e-text-2); border-radius: 6px; font-weight: 500; }
html .nav-item > span { color: var(--e-text-3); }
html .nav-item:hover { color: var(--e-text); background: var(--e-accent-soft); }
html .nav-item.active { color: var(--e-text); background: var(--e-accent-soft); box-shadow: inset 3px 0 var(--e-accent); font-weight: 600; }
html .nav-item.active > span { color: var(--e-accent); }
html .nav-badge { color: var(--e-on-accent); background: var(--e-accent); border-radius: 99px; padding: 2px 7px; font-size: 10px; font-weight: 700; }
html .sidebar-footer { border-color: var(--e-border); }
html .sidebar-add-workspace { color: var(--e-text-2); }
html .sidebar-add-workspace:hover { color: var(--e-text); background: var(--e-accent-soft); }

/* Top bar and panels */
html .topbar { border-bottom: 1px solid var(--e-border); }
html .topbar h1 { font-size: 20px; }
html .panel, html .stat-card, html .module-card, html .posture-card, html .check-record-card, html .override-card,
html .verification-card, html .date-card, html .scanner-run-row, html .event-row, html .status-row, html .cis-device-card,
html .cis-profile-card, html .audit-metric-card, html .welcome-row, html .workspace-request-row, html .workspace-switcher,
html .external-schedule-card, html .membership-person {
  background: var(--e-surface); border: 1px solid var(--e-border); border-radius: 9px; box-shadow: none; color: var(--e-text);
}
html .status-banner, html .overview-hero-copy { border-radius: 9px; }
html input, html select, html textarea { font-family: var(--e-font); color: var(--e-text); background: var(--e-surface); border: 1px solid var(--e-border); border-radius: 6px; }
html input::placeholder, html textarea::placeholder { color: var(--e-text-3); }
html input:focus, html select:focus, html textarea:focus { outline: none; border-color: var(--e-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-accent) 35%, transparent); }
html table { border-color: var(--e-border); }
html th { color: var(--e-text-2); background: var(--e-surface-2); }
html td, html th { border-color: var(--e-border-soft); }
html .muted, html .text-muted { color: var(--e-text-3); }
html a { color: var(--e-accent); }

/* Neutral chrome for informational pills and notes (generated rules tint some of them warn). */
html .notice, html .status-note { color: var(--e-text-2); background: var(--e-surface-2); border: 1px solid var(--e-border-soft); }
html .connection-pill, html .count-pill { color: var(--e-text-2); background: var(--e-surface-2); border: 1px solid var(--e-border); }
html .verification-pill { color: var(--e-text-2); background: var(--e-surface-2); border: 1px solid var(--e-border); }
html .verification-pill.verification-verified { color: var(--e-ok); background: var(--e-ok-bg); border-color: transparent; }
html .verification-pill.verification-pending, html .verification-pill.verification-expired { color: var(--e-warn); background: var(--e-warn-bg); border-color: transparent; }
html .connection-pill i { background: var(--e-orange); }
html .connection-pill.connected i { background: var(--e-lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-lime) 25%, transparent); }
html .status-dot { background: var(--e-text-3); }
html .status-dot.is-warn, html .is-warn .status-dot { background: var(--e-orange); }
html .status-dot.is-ok, html .is-ok .status-dot { background: var(--e-lime); }
html .status-dot.is-bad, html .is-bad .status-dot { background: var(--e-strawberry); }

/* The status line under a section heading sat on the heading's baseline. */
html .check-subheading + .meraki-feedback { margin-top: 10px; }
