/**
 * LabPulse Themes (migration 074)
 * -----------------------------------------------------------------
 * Loaded after every other stylesheet. Part 1 is the design layer every theme shares: cards, sidebar, header, buttons, tables, dialogs,
 * sign-in and motion, all read from --lp-* tokens. Part 2 gives each theme its own values for those tokens, so a theme changes shape,
 * depth, type and motion, not only colour. The list of themes is in includes/themes.php. DYCI Classic (no overrides beyond Part 1) is
 * the school's navy and gold and follows the light / dark switch; every other theme is designed for one mode.
 * Motion: transform and opacity only, and only when the person has not asked for reduced motion.
 * -----------------------------------------------------------------
 */

/* ---------------------------------------------------------------- Part 1: tokens, with DYCI Classic's values */
:root {
    --lp-page-bg: radial-gradient(1200px 500px at 100% -10%, rgba(30, 58, 112, 0.05), transparent 60%), var(--surface-page);
    --lp-card-bg: var(--surface-card);
    --lp-card-border: 1px solid var(--border-subtle);
    --lp-card-radius: 14px;
    --lp-card-shadow: 0 1px 2px rgba(17, 33, 67, 0.05), 0 6px 18px -8px rgba(17, 33, 67, 0.12);
    --lp-card-shadow-hover: 0 2px 4px rgba(17, 33, 67, 0.06), 0 16px 32px -12px rgba(17, 33, 67, 0.22);
    --lp-card-lift: -2px;
    --lp-card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --lp-stat-accent: linear-gradient(90deg, var(--primary-500), var(--accent-400));
    --lp-stat-accent-height: 3px;
    --lp-stat-font: inherit;
    --lp-sidebar-bg: var(--sidebar-bg);
    --lp-sidebar-shadow: 1px 0 0 var(--sidebar-border);
    --lp-link-radius: 10px;
    --lp-topbar-bg: color-mix(in srgb, var(--surface-topbar) 96%, transparent);
    --lp-topbar-blur: blur(10px);
    --lp-heading-weight: 700;
    --lp-heading-tracking: -0.01em;
    --lp-eyebrow-transform: uppercase;
    --lp-btn-radius: 10px;
    --lp-btn-bg: linear-gradient(180deg, color-mix(in srgb, var(--primary-500) 92%, white), var(--primary-500));
    --lp-btn-bg-hover: var(--primary-600);
    --lp-btn-fg: #ffffff;
    --lp-btn-shadow: 0 1px 2px rgba(17, 33, 67, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    --lp-btn-line: var(--border-subtle);
    --lp-btn-ink: var(--accent-text);
    --lp-table-head-bg: var(--surface-subtle);
    --lp-row-hover: var(--surface-hover);
    --lp-modal-radius: 18px;
    --lp-modal-shadow: 0 30px 70px -20px rgba(10, 22, 48, 0.45);
    --lp-backdrop: rgba(10, 18, 36, 0.5);
    --lp-motion: 220ms;
    --lp-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --lp-enter-y: 8px;
    --lp-enter-tilt: 0deg;
    --lp-chart-1: var(--primary-500);
    --lp-chart-2: var(--accent-500);
    --lp-chart-glow: 0.12;
    --lp-auth-bg: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 44px 44px,
        radial-gradient(1000px 520px at 90% -10%, rgba(226, 174, 69, 0.18), transparent 60%), radial-gradient(900px 600px at 0% 110%, rgba(74, 108, 179, 0.32), transparent 60%),
        linear-gradient(160deg, #172d59 0%, #0f2147 55%, #0a1630 100%);
    --lp-auth-brand-bg: radial-gradient(circle at 30% 20%, rgba(184, 134, 11, 0.25), transparent 55%), linear-gradient(160deg, #1e3a70, #0a1630);
    --lp-auth-ink: #ffffff;
    --lp-auth-ink-soft: rgba(255, 255, 255, 0.72);
    --lp-auth-line: rgba(255, 255, 255, 0.28);
    --lp-auth-chip: #edc873;
    --lp-focus: var(--focus-ring);
    --lp-live: var(--status-available-fg);
}
:root[data-theme="dark"] {
    --lp-page-bg: radial-gradient(1200px 500px at 100% -10%, rgba(74, 108, 179, 0.1), transparent 60%), var(--surface-page);
    --lp-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 22px -10px rgba(0, 0, 0, 0.5);
    --lp-card-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.32), 0 18px 36px -12px rgba(0, 0, 0, 0.62);
    --lp-card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    --lp-btn-ink: var(--accent-text);
    --lp-chart-1: #6f97e0;
    --lp-chart-2: #e2ae45;
    --lp-chart-glow: 0.2;
}

/* ---------------------------------------------------------------- Part 1: the shared design */
/* The ground belongs to <html>, so a theme can lay light and bands on body::before behind the whole page without any extra stacking context. */
/* SOE Phase 2.2 performance: the theme's ground is one fixed layer the browser paints once and then only moves. As a fixed background on
   <html> it was repainted on every scrolled frame (1.8 to 2.2 s of paint and raster per 4.8 s of scrolling, measured). */
html { background: var(--surface-page); min-height: 100%; }
body { background: transparent; }
body::after { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--lp-page-bg); will-change: transform; }
h1, h2, h3, .page-title, .section-header h2 { font-weight: var(--lp-heading-weight); letter-spacing: var(--lp-heading-tracking); }
.icon { stroke-width: 1.75; }

/* surfaces */
.card, .stat-card { background: var(--lp-card-bg); border: var(--lp-card-border); border-radius: var(--lp-card-radius); box-shadow: var(--lp-card-shadow), var(--lp-card-highlight); }
.stat-card { position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: var(--lp-stat-accent-height); background: var(--lp-stat-accent); opacity: 0.9; }
.stat-card-value { font-family: var(--lp-stat-font); font-variant-numeric: tabular-nums; }
.table-wrap { border-radius: calc(var(--lp-card-radius) - 2px); }
.table thead th { background: var(--lp-table-head-bg); }
.table tbody tr { transition: background-color var(--lp-motion) ease; }
.table tbody tr:hover { background: var(--lp-row-hover); }
.dropdown-panel { border-radius: var(--lp-card-radius); box-shadow: var(--lp-modal-shadow); }
.input:focus, .select:focus, textarea:focus { box-shadow: var(--lp-focus); }

/* sidebar and header */
.sidebar { background: var(--lp-sidebar-bg); box-shadow: var(--lp-sidebar-shadow); }
.sidebar-link { border-radius: var(--lp-link-radius); }
/* no live blur behind the header: re-blurring everything that scrolls under it cost raster time on every frame. The bars are nearly opaque. */
.topbar { background: var(--lp-topbar-bg); }

/* One button system. Every action uses the theme's brand colour; what a button does is in its label and its confirmation, never a
   different colour. A primary is filled, every other action is outlined or text in the same family. */
.btn { border-radius: var(--lp-btn-radius); transition: background var(--lp-motion) ease, border-color var(--lp-motion) ease, color var(--lp-motion) ease, box-shadow var(--lp-motion) ease, transform 120ms ease; }
.btn:focus-visible { border-radius: var(--lp-btn-radius); box-shadow: var(--lp-focus); }
.btn-primary, .btn-accent, .modal-footer > .btn-danger { background: var(--lp-btn-bg); border-color: transparent; color: var(--lp-btn-fg); box-shadow: var(--lp-btn-shadow); }
.btn-primary:hover:not(:disabled), .btn-accent:hover:not(:disabled), .modal-footer > .btn-danger:hover:not(:disabled) { background: var(--lp-btn-bg-hover); color: var(--lp-btn-fg); }
.btn-secondary, .btn-danger, .modal-footer > .btn-danger.btn-footer-start { background: transparent; border-color: var(--lp-btn-line); color: var(--lp-btn-ink); box-shadow: none; }
.btn-secondary:hover:not(:disabled), .btn-danger:hover:not(:disabled), .modal-footer > .btn-danger.btn-footer-start:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--lp-btn-ink); color: var(--lp-btn-ink); }
.btn-ghost { color: var(--lp-btn-ink); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-hover); color: var(--lp-btn-ink); }
.ar-remove, .mm-remove, .roster-archive-btn { color: var(--lp-btn-ink); }
.icon-btn { border-radius: var(--lp-btn-radius); }

/* dialogs */
.modal-backdrop { background: var(--lp-backdrop); }
.modal { background: var(--lp-card-bg); border-radius: var(--lp-modal-radius); box-shadow: var(--lp-modal-shadow); }

/* graphs: depth from the theme, a tooltip on hover or focus, values that move instead of jump */
.chart-tip { position: fixed; left: 0; top: 0; z-index: 300; max-width: 280px; padding: 6px 10px; font-size: 0.78rem; font-weight: 600; color: var(--text-primary); background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 8px; box-shadow: var(--lp-modal-shadow); pointer-events: none; }
.chart-tip[hidden] { display: none; }
.chart-donut .chart-arc, .chart-dot { outline: none; cursor: default; }
.chart-donut .chart-arc { transition: opacity var(--lp-motion) ease; }
.chart-donut:hover .chart-arc:not(:hover) { opacity: 0.72; }
.chart-arc:focus-visible { opacity: 1; stroke-width: 26; }
.chart-dot { transition: r 120ms ease, opacity 120ms ease; opacity: 0; }
.chart-line:hover .chart-dot, .chart-dot:focus-visible { opacity: 1; }
.chart-dot-now { opacity: 1; r: 4; filter: drop-shadow(0 0 6px currentColor); }
.chart-sweep { fill: color-mix(in srgb, var(--lp-chart-1) 9%, transparent); opacity: 0; pointer-events: none; }
.chart-sweep { opacity: 1; animation: lp-chart-sweep 7s linear infinite; }
@keyframes lp-chart-sweep { from { transform: translateX(0); } to { transform: translateX(var(--sweep)); } }
.chart-dot-now { animation: lp-beat 2.4s ease-in-out infinite; }
.chart-dot:hover, .chart-dot:focus-visible { r: 5; }
.chart-line-path { filter: drop-shadow(0 3px 5px color-mix(in srgb, currentColor 18%, transparent)); }
.chart-bar-track { border-radius: var(--lp-link-radius); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12); }
.chart-bar-fill { border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); transition: width calc(var(--lp-motion) + 300ms) var(--lp-ease), background var(--lp-motion) ease; }
:root[data-lp-motion="reduced"] .chart-bar-fill { transition: none; }

/* live header: Philippine time and the last confirmed update */
.lp-clock { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.15; padding-right: var(--space-2); white-space: nowrap; }
.lp-clock-time { font-size: 0.86rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.lp-clock-date { font-size: 0.7rem; color: var(--text-secondary); }
.lp-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.lp-live[hidden] { display: none; }
.lp-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-live); }
.lp-live.is-stale i { background: var(--status-offline-fg); }
@media (max-width: 1240px) { .lp-live span { display: none; } }
@media (max-width: 860px) { .lp-clock-date { display: none; } }
@media (max-width: 640px) { .lp-clock, .lp-live { display: none; } }
/* a theme designed for one mode has no light / dark switch */
[data-lp-mode] [data-theme-toggle-btn] { display: none; }

/* Bulletins: a short line, the detail one click away. Same markup everywhere (lp_note() in includes/helpers.php); each theme styles it. */
.lp-note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 2px var(--space-3); margin: 0 0 var(--space-4); padding: var(--space-2) var(--space-3); font-size: 0.86rem; line-height: 1.45; color: var(--text-secondary); background: var(--lp-note-bg, var(--surface-subtle)); border: var(--lp-note-line, 1px solid var(--border-subtle)); border-radius: var(--lp-note-radius, var(--lp-link-radius)); }
.lp-note > .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--accent-text); }
.lp-note-text { min-width: 0; color: var(--text-primary); }
.lp-note details { grid-column: 3; grid-row: 1; }
.lp-note summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; font-weight: 600; color: var(--accent-text); white-space: nowrap; cursor: pointer; border-radius: 6px; }
.lp-note summary::-webkit-details-marker { display: none; }
.lp-note summary:focus-visible { outline: none; box-shadow: var(--lp-focus); }
.lp-note summary .icon { width: 14px; height: 14px; transition: transform var(--lp-motion) var(--lp-ease); }
.lp-note details[open] summary .icon { transform: rotate(180deg); }
.lp-note-more { grid-column: 2 / -1; grid-row: 2; display: none; padding: var(--space-2) 0 var(--space-1); color: var(--text-secondary); }
.lp-note:has(details[open]) .lp-note-more { display: block; }
.lp-note-more ul { margin: 0; padding-left: 1.1em; display: grid; gap: 3px; }
.lp-note-more p { margin: 0 0 4px; }
.lp-note-warning { --lp-note-bg: var(--status-idle-bg); }
.lp-note-warning > .icon, .lp-note-warning .lp-note-text { color: var(--status-idle-fg); }

/* short help instead of long banners: one line, the detail one click away */
.lp-help { display: inline-block; position: relative; vertical-align: middle; }
.lp-help > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.8rem; font-weight: 600; color: var(--accent-text); border-radius: 6px; }
.lp-help > summary::-webkit-details-marker { display: none; }
.lp-help > summary:focus-visible { outline: none; box-shadow: var(--lp-focus); }
.lp-help-body { margin-top: var(--space-2); max-width: 70ch; padding: var(--space-3) var(--space-4); font-size: 0.85rem; line-height: 1.5; color: var(--text-secondary); background: var(--surface-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.lp-help-body ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.lp-oneline { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-3); font-size: 0.88rem; color: var(--text-secondary); }

/* Motion: themes-motion.css */

/* sign-in */
.auth-body { background: transparent; }
/* the page under the fixed sign-in ground is that ground's darkest tone (DYCI Classic's page colour is light), so text over it never sits on white */
:root:not([data-lp-theme]):has(> body.auth-body), :root[data-lp-theme="dyci-classic"]:has(> body.auth-body) { background: #0d1d3d; }
.auth-body::after { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--lp-auth-bg); will-change: transform; }
.auth-topbar { position: relative; z-index: 2; }
.auth-home-link, .auth-back-link { color: var(--lp-auth-ink); }
.auth-home-org { color: var(--lp-auth-ink-soft); }
.auth-back-link { border-color: var(--lp-auth-line); }
.auth-shell { border-radius: calc(var(--lp-card-radius) + 8px); box-shadow: var(--lp-modal-shadow), 0 2px 0 rgba(255, 255, 255, 0.05) inset; }
.auth-panel-brand { background: var(--lp-auth-brand-bg); }
.auth-brand-product { color: var(--lp-auth-chip); }
.auth-panel-form { background: var(--lp-card-bg); }

/* Appearance: choosing a theme (My Profile) */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.tp-card { display: grid; gap: var(--space-2); padding: var(--space-2) var(--space-2) var(--space-3); text-align: left; font: inherit; color: var(--text-primary); background: transparent; border: 2px solid var(--border-subtle); border-radius: var(--radius-lg); cursor: pointer; transition: border-color var(--lp-motion) ease, box-shadow var(--lp-motion) ease; }
.tp-card:hover { border-color: var(--lp-btn-ink); }
.tp-card:focus-visible { outline: none; box-shadow: var(--lp-focus); }
.tp-card[aria-pressed="true"] { border-color: var(--lp-btn-ink); box-shadow: var(--lp-focus); }
.tp-shot { display: grid; grid-template-columns: 26% 1fr; height: 104px; overflow: hidden; border-radius: 10px; background: var(--p-page); border: 1px solid color-mix(in srgb, var(--p-text) 12%, transparent); }
.tp-shot-side { display: grid; align-content: start; gap: 5px; padding: 9px 7px; background: var(--p-side); border-right: 1px solid color-mix(in srgb, var(--p-text) 10%, transparent); }
.tp-shot-side i { display: block; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--p-text) 22%, transparent); }
.tp-shot-side i:first-child { background: var(--p-glow); }
.tp-shot-main { display: grid; align-content: start; gap: 6px; padding: 9px; }
.tp-shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.tp-shot-row i { display: block; height: 30px; border-radius: 5px; background: var(--p-card); border-top: 2px solid var(--p-glow); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14); }
.tp-shot-line { height: 5px; width: 72%; border-radius: 3px; background: color-mix(in srgb, var(--p-text) 26%, transparent); }
.tp-shot-btn { width: 44%; height: 12px; border-radius: 4px; background: var(--p-accent); }
.tp-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 var(--space-1); font-weight: 600; font-size: 0.92rem; }
.tp-desc { margin: 0; padding: 0 var(--space-1); font-size: 0.8rem; line-height: 1.4; color: var(--text-secondary); }
.tp-tag { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--surface-hover); color: var(--text-secondary); }
.tp-tag[data-current] { background: var(--status-available-bg); color: var(--status-available-fg); }
.tp-tag[hidden] { display: none; }
.tp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-4); }
.tp-note { margin-right: auto; font-size: 0.85rem; color: var(--text-secondary); }
/* Motion (this browser): a segmented choice */
.lp-motion-choice { margin: var(--space-5) 0 0; padding: var(--space-4) 0 0; border: 0; border-top: 1px solid var(--border-subtle); min-width: 0; }
.lp-motion-choice legend { float: left; width: 100%; margin-bottom: var(--space-2); padding: 0; font-weight: 600; font-size: 0.92rem; color: var(--text-primary); }
.lp-motion-scope { font-weight: 400; font-size: 0.8rem; color: var(--text-secondary); }
.lp-seg { clear: both; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-subtle); border: 1px solid var(--border-subtle); border-radius: calc(var(--lp-btn-radius) + 4px); }
.lp-seg label { position: relative; cursor: pointer; }
.lp-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lp-seg span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 var(--space-4); font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); border-radius: var(--lp-btn-radius); transition: background var(--lp-motion) ease, color var(--lp-motion) ease, box-shadow var(--lp-motion) ease; }
.lp-seg label:hover span { color: var(--text-primary); }
.lp-seg input:checked + span { background: var(--lp-btn-bg); color: var(--lp-btn-fg); box-shadow: var(--lp-btn-shadow); }
.lp-seg input:focus-visible + span { box-shadow: var(--lp-focus); }
.lp-motion-note { margin: var(--space-2) 0 0; font-size: 0.82rem; color: var(--text-secondary); max-width: 70ch; }

/* ---------------------------------------------------------------- Part 2: Midnight Pro. A monitoring centre: hairlines, cyan light, crisp */
:root[data-lp-theme="midnight"] { --lp-card-radius: 12px; --lp-btn-radius: 8px; --lp-modal-radius: 14px; --lp-motion: 170ms; --lp-ease: cubic-bezier(0.3, 0.8, 0.3, 1); --lp-enter-y: 5px; --lp-chart-glow: 0.24; }
:root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) { color-scheme: dark; --surface-page: #0b1220; --surface-card: #121b2e; --surface-topbar: #0e1626; --surface-hover: #1a2640; --surface-subtle: #0f1829; --surface-sidebar: #0a101c; --border-subtle: #22304a; --text-primary: #e6edf7; --text-secondary: #a4b3c9; --text-muted: #94a4bc; --text-inverse: #0b1220; --primary-500: #0b7cb5; --primary-600: #0a6a9b; --primary-400: #38a3d8; --primary-300: #7cc4e8; --primary-50: rgba(56, 189, 248, 0.12); --primary-100: rgba(56, 189, 248, 0.2); --primary-200: rgba(56, 189, 248, 0.34); --primary-700: #7dd3fc; --primary-800: #bae6fd; --accent-300: #7dd3fc; --accent-400: #38bdf8; --accent-500: #0ea5e9; --accent-600: #0284c7; --accent-50: rgba(56, 189, 248, 0.12); --accent-100: rgba(56, 189, 248, 0.2); --accent-200: rgba(56, 189, 248, 0.34); --accent-700: #7dd3fc; --accent-800: #bae6fd; --accent-text: #7dd3fc; --focus-ring: 0 0 0 3px rgba(56, 189, 248, 0.38); --sidebar-bg: #0a101c; --sidebar-border: #1a2740; --sidebar-divider: #1a2740; --sidebar-text: #c7d3e4; --sidebar-text-muted: #8fa0b8; --sidebar-icon: #8fa0b8; --sidebar-hover-bg: #142036; --sidebar-hover-text: #ffffff; --sidebar-active-bg: rgba(56, 189, 248, 0.13); --sidebar-active-text: #ffffff; --sidebar-active-icon: #38bdf8; --lp-page-bg: radial-gradient(900px 420px at 85% -5%, rgba(14, 165, 233, 0.13), transparent 62%), radial-gradient(700px 400px at 0% 100%, rgba(30, 64, 120, 0.22), transparent 60%), #0b1220; --lp-card-shadow: 0 0 0 1px rgba(125, 211, 252, 0.03), 0 10px 26px -14px rgba(0, 0, 0, 0.7); --lp-card-shadow-hover: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 18px 34px -14px rgba(14, 165, 233, 0.28); --lp-card-highlight: inset 0 1px 0 rgba(125, 211, 252, 0.07); --lp-stat-accent: linear-gradient(90deg, #38bdf8, transparent 80%); --lp-stat-accent-height: 2px; --lp-sidebar-bg: linear-gradient(180deg, #0c1424, #090e19); --lp-topbar-bg: rgba(14, 22, 38, 0.94); --lp-btn-bg: linear-gradient(180deg, #0a78b0, #09689a); --lp-btn-bg-hover: #0a6a9b; --lp-btn-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 6px 14px -8px rgba(14, 165, 233, 0.7); --lp-table-head-bg: #0f1829; --lp-modal-shadow: 0 0 0 1px rgba(125, 211, 252, 0.1), 0 34px 70px -20px rgba(0, 0, 0, 0.85); --lp-backdrop: rgba(4, 9, 18, 0.72); --lp-chart-1: #38bdf8; --lp-chart-2: #818cf8; --lp-auth-bg: linear-gradient(rgba(125, 211, 252, 0.05) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(125, 211, 252, 0.05) 1px, transparent 1px) 0 0 / 40px 40px, radial-gradient(900px 520px at 80% 0%, rgba(14, 165, 233, 0.22), transparent 60%), #0a101c; --lp-auth-brand-bg: radial-gradient(circle at 30% 15%, rgba(56, 189, 248, 0.28), transparent 58%), linear-gradient(160deg, #10203a, #0a101c); --lp-auth-chip: #7dd3fc; --lp-live: #38bdf8; }

/* ---------------------------------------------------------------- Aurora. Layered glass, soft glow, slow and rounded */
:root[data-lp-theme="aurora"] { --lp-card-radius: 20px; --lp-card-lift: -3px; --lp-link-radius: 14px; --lp-topbar-blur: blur(16px) saturate(1.3); --lp-btn-radius: 999px; --lp-modal-radius: 26px; --lp-motion: 300ms; --lp-ease: cubic-bezier(0.22, 1, 0.36, 1); --lp-enter-y: 14px; --lp-enter-tilt: 4deg; --lp-chart-glow: 0.3; }
:root[data-lp-theme="aurora"]:where(:not([data-theme="light"])) { color-scheme: dark; --surface-page: #120f2b; --surface-card: #1d1840; --surface-topbar: #181436; --surface-hover: #2a2356; --surface-subtle: #17133a; --surface-sidebar: #0e0b24; --border-subtle: #352c66; --text-primary: #ece9fb; --text-secondary: #b6aedb; --text-muted: #a79fd0; --text-inverse: #120f2b; --primary-500: #6d4fd8; --primary-600: #5a3ec2; --primary-400: #8b6fe8; --primary-300: #b3a0f2; --primary-50: rgba(167, 139, 250, 0.13); --primary-100: rgba(167, 139, 250, 0.22); --primary-200: rgba(167, 139, 250, 0.36); --primary-700: #c4b5fd; --primary-800: #ddd6fe; --accent-300: #e9b8fb; --accent-400: #d8a0f8; --accent-500: #c084fc; --accent-600: #a855f7; --accent-50: rgba(192, 132, 252, 0.13); --accent-100: rgba(192, 132, 252, 0.22); --accent-200: rgba(192, 132, 252, 0.36); --accent-700: #e9b8fb; --accent-800: #f3dcfd; --accent-text: #c4b5fd; --focus-ring: 0 0 0 3px rgba(192, 132, 252, 0.4); --sidebar-bg: #0e0b24; --sidebar-border: rgba(167, 139, 250, 0.16); --sidebar-divider: rgba(167, 139, 250, 0.14); --sidebar-text: #d6d0f0; --sidebar-text-muted: #a79fd0; --sidebar-icon: #a79fd0; --sidebar-hover-bg: rgba(167, 139, 250, 0.1); --sidebar-hover-text: #ffffff; --sidebar-active-bg: linear-gradient(90deg, rgba(109, 79, 216, 0.42), rgba(192, 132, 252, 0.12)); --sidebar-active-text: #ffffff; --sidebar-active-icon: #e9b8fb; --lp-page-bg: radial-gradient(1000px 560px at 88% -8%, rgba(139, 92, 246, 0.3), transparent 62%), radial-gradient(860px 560px at -6% 106%, rgba(56, 120, 210, 0.2), transparent 60%), radial-gradient(640px 380px at 50% 112%, rgba(192, 132, 252, 0.13), transparent 60%), #120f2b; --lp-card-bg: linear-gradient(160deg, rgba(38, 31, 84, 0.9), rgba(27, 22, 62, 0.92)); --lp-card-border: 1px solid rgba(167, 139, 250, 0.2); --lp-card-shadow: 0 14px 34px -18px rgba(76, 44, 190, 0.6); --lp-card-shadow-hover: 0 22px 46px -18px rgba(139, 92, 246, 0.6); --lp-card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.09); --lp-stat-accent: linear-gradient(90deg, #8b6fe8, #e9b8fb 55%, transparent); --lp-stat-accent-height: 2px; --lp-sidebar-bg: linear-gradient(190deg, rgba(30, 24, 74, 0.96), #0e0b24); --lp-topbar-bg: rgba(24, 20, 54, 0.94); --lp-btn-bg: linear-gradient(120deg, #6d4fd8, #8f5fe0); --lp-btn-bg-hover: #5a3ec2; --lp-btn-shadow: 0 8px 20px -10px rgba(139, 92, 246, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.18); --lp-table-head-bg: rgba(23, 19, 58, 0.72); --lp-row-hover: rgba(167, 139, 250, 0.09); --lp-modal-shadow: 0 0 60px -14px rgba(139, 92, 246, 0.45), 0 34px 70px -20px rgba(0, 0, 0, 0.7); --lp-backdrop: rgba(14, 10, 40, 0.68); --lp-chart-1: #a78bfa; --lp-chart-2: #f0abfc; --status-disabled-fg: #ff9aa0; --status-maintenance-fg: #cfb4f7; --danger-text: #ff9aa0; --lp-auth-bg: radial-gradient(900px 620px at 82% 4%, rgba(139, 92, 246, 0.5), transparent 62%), radial-gradient(760px 560px at 8% 96%, rgba(56, 120, 210, 0.32), transparent 60%), radial-gradient(600px 400px at 50% 50%, rgba(192, 132, 252, 0.14), transparent 62%), #120f2b; --lp-auth-brand-bg: radial-gradient(circle at 25% 15%, rgba(233, 184, 251, 0.3), transparent 55%), linear-gradient(160deg, #3b2a8c, #17123c); --lp-auth-chip: #e9b8fb; --lp-live: #c084fc; }

/* ---------------------------------------------------------------- Emerald Tech. Square, technical, a measured grid, monospaced numbers */
:root[data-lp-theme="emerald"] { --lp-card-radius: 6px; --lp-card-lift: -1px; --lp-stat-font: var(--font-mono); --lp-link-radius: 4px; --lp-topbar-blur: none; --lp-heading-tracking: 0; --lp-btn-radius: 4px; --lp-modal-radius: 8px; --lp-motion: 130ms; --lp-ease: cubic-bezier(0.4, 0, 0.2, 1); --lp-enter-y: 3px; --lp-chart-glow: 0.18; }
:root[data-lp-theme="emerald"]:where(:not([data-theme="light"])) { color-scheme: dark; --surface-page: #0e1412; --surface-card: #151d1a; --surface-topbar: #121a17; --surface-hover: #1e2925; --surface-subtle: #121916; --surface-sidebar: #0b100e; --border-subtle: #27332e; --text-primary: #e3ece8; --text-secondary: #a2b3ab; --text-muted: #93a59c; --text-inverse: #0e1412; --primary-500: #0a7a59; --primary-600: #08654a; --primary-400: #22a07a; --primary-300: #6ee7b7; --primary-50: rgba(52, 211, 153, 0.12); --primary-100: rgba(52, 211, 153, 0.2); --primary-200: rgba(52, 211, 153, 0.34); --primary-700: #6ee7b7; --primary-800: #a7f3d0; --accent-300: #6ee7b7; --accent-400: #34d399; --accent-500: #10b981; --accent-600: #059669; --accent-50: rgba(52, 211, 153, 0.12); --accent-100: rgba(52, 211, 153, 0.2); --accent-200: rgba(52, 211, 153, 0.34); --accent-700: #6ee7b7; --accent-800: #a7f3d0; --accent-text: #6ee7b7; --focus-ring: 0 0 0 3px rgba(52, 211, 153, 0.36); --sidebar-bg: #0b100e; --sidebar-border: #1d2723; --sidebar-divider: #1d2723; --sidebar-text: #c6d3cd; --sidebar-text-muted: #8fa198; --sidebar-icon: #8fa198; --sidebar-hover-bg: #151d1a; --sidebar-hover-text: #ffffff; --sidebar-active-bg: rgba(52, 211, 153, 0.11); --sidebar-active-text: #ffffff; --sidebar-active-icon: #34d399; --lp-page-bg: linear-gradient(rgba(110, 231, 183, 0.025) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(110, 231, 183, 0.025) 1px, transparent 1px) 0 0 / 32px 32px, #0e1412; --lp-card-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.8); --lp-card-shadow-hover: 0 0 0 1px rgba(52, 211, 153, 0.32), 0 14px 26px -14px rgba(16, 185, 129, 0.3); --lp-card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.03); --lp-stat-accent: #34d399; --lp-stat-accent-height: 2px; --lp-topbar-bg: rgba(18, 26, 23, 0.94); --lp-btn-bg: #0a7a59; --lp-btn-bg-hover: #08654a; --lp-btn-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.25); --lp-table-head-bg: #121916; --lp-modal-shadow: 0 0 0 1px #2c3a34, 0 30px 60px -22px rgba(0, 0, 0, 0.85); --lp-backdrop: rgba(4, 8, 6, 0.72); --lp-chart-1: #34d399; --lp-chart-2: #fbbf24; --lp-auth-bg: linear-gradient(rgba(110, 231, 183, 0.05) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(110, 231, 183, 0.05) 1px, transparent 1px) 0 0 / 28px 28px, radial-gradient(800px 500px at 85% 0%, rgba(16, 185, 129, 0.16), transparent 60%), #0b100e; --lp-auth-brand-bg: linear-gradient(160deg, #123428, #0b100e); --lp-auth-chip: #6ee7b7; --lp-live: #34d399; }

/* ---------------------------------------------------------------- Obsidian. Near-black and champagne metal: sharp, quiet, tracked type */
:root[data-lp-theme="obsidian"] { --lp-card-radius: 3px; --lp-card-lift: 0px; --lp-link-radius: 2px; --lp-topbar-blur: none; --lp-heading-weight: 600; --lp-heading-tracking: 0.015em; --lp-btn-radius: 2px; --lp-modal-radius: 4px; --lp-motion: 240ms; --lp-ease: cubic-bezier(0.4, 0, 0.1, 1); --lp-enter-y: 0px; --lp-chart-glow: 0.13; }
:root[data-lp-theme="obsidian"]:where(:not([data-theme="light"])) { color-scheme: dark; --surface-page: #0a0a0b; --surface-card: #141415; --surface-topbar: #0f0f10; --surface-hover: #1f1f21; --surface-subtle: #101011; --surface-sidebar: #080809; --border-subtle: #2a2a2c; --text-primary: #f1efea; --text-secondary: #b3afa6; --text-muted: #a5a198; --text-inverse: #0a0a0b; --primary-500: #7c6740; --primary-600: #685635; --primary-400: #a08a60; --primary-300: #c9b38a; --primary-50: rgba(201, 179, 138, 0.1); --primary-100: rgba(201, 179, 138, 0.17); --primary-200: rgba(201, 179, 138, 0.3); --primary-700: #d9c7a4; --primary-800: #ebdfc8; --accent-300: #e2d3b4; --accent-400: #d4c098; --accent-500: #c9b38a; --accent-600: #a8926a; --accent-50: rgba(201, 179, 138, 0.1); --accent-100: rgba(201, 179, 138, 0.17); --accent-200: rgba(201, 179, 138, 0.3); --accent-700: #d9c7a4; --accent-800: #ebdfc8; --accent-text: #d9c7a4; --focus-ring: 0 0 0 3px rgba(201, 179, 138, 0.34); --sidebar-bg: #080809; --sidebar-border: #212123; --sidebar-divider: #212123; --sidebar-text: #cfccc4; --sidebar-text-muted: #a09c93; --sidebar-icon: #a09c93; --sidebar-hover-bg: #17171a; --sidebar-hover-text: #ffffff; --sidebar-active-bg: rgba(201, 179, 138, 0.1); --sidebar-active-text: #f1efea; --sidebar-active-icon: #c9b38a; --lp-page-bg: #0a0a0b; --lp-card-border: 1px solid #262628; --lp-card-shadow: 0 16px 30px -24px rgba(0, 0, 0, 0.95); --lp-card-shadow-hover: 0 0 0 1px rgba(201, 179, 138, 0.34), 0 18px 30px -22px rgba(0, 0, 0, 1); --lp-card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05); --lp-stat-accent: linear-gradient(90deg, #c9b38a, #7c6740 60%, transparent); --lp-stat-accent-height: 1px; --lp-topbar-bg: #0f0f10; --lp-btn-bg: linear-gradient(180deg, #8a7349, #6f5c38); --lp-btn-bg-hover: #685635; --lp-btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); --lp-table-head-bg: #101011; --lp-modal-shadow: 0 0 0 1px #2e2e30, 0 40px 80px -24px #000; --lp-backdrop: rgba(0, 0, 0, 0.78); --lp-chart-1: #c9b38a; --lp-chart-2: #8f8f96; --lp-auth-bg: radial-gradient(800px 500px at 50% -10%, rgba(201, 179, 138, 0.1), transparent 62%), #0a0a0b; --lp-auth-brand-bg: linear-gradient(160deg, #1b1b1d, #0a0a0b); --lp-auth-chip: #d9c7a4; --lp-live: #c9b38a; }
/* ---------------------------------------------------------------- Black Red. Crimson Core: black glass, controlled red light, sharp type */
:root[data-lp-theme="black-red"] { --lp-card-radius: 18px; --lp-card-lift: -3px; --lp-link-radius: 12px 3px 12px 3px; --lp-topbar-blur: blur(10px); --lp-heading-weight: 700; --lp-heading-tracking: 0.01em; --lp-btn-radius: 12px 3px 12px 3px; --lp-modal-radius: 22px 5px 22px 5px; --lp-motion: 230ms; --lp-ease: cubic-bezier(0.16, 1, 0.3, 1); --lp-enter-y: 12px; --lp-enter-tilt: 7deg; --lp-chart-glow: 0.3; }
:root[data-lp-theme="black-red"]:where(:not([data-theme="light"])) { color-scheme: dark; --surface-page: #08080a; --surface-card: #151517; --surface-topbar: #0e0e10; --surface-hover: #221a1c; --surface-subtle: #101012; --surface-sidebar: #0c0c0e; --border-subtle: #2c2527; --text-primary: #f6f1f1; --text-secondary: #bdb2b3; --text-muted: #ad9fa1; --text-inverse: #08080a; --primary-500: #b91c2e; --primary-600: #991827; --primary-400: #e0414f; --primary-300: #f28a93; --primary-50: rgba(240, 66, 79, 0.11); --primary-100: rgba(240, 66, 79, 0.18); --primary-200: rgba(240, 66, 79, 0.32); --primary-700: #ff9aa2; --primary-800: #ffc9cd; --accent-300: #ffb3b9; --accent-400: #f0424f; --accent-500: #dc2638; --accent-600: #b91c2e; --accent-50: rgba(240, 66, 79, 0.11); --accent-100: rgba(240, 66, 79, 0.18); --accent-200: rgba(240, 66, 79, 0.32); --accent-700: #ff9aa2; --accent-800: #ffc9cd; --accent-text: #ff9aa2; --focus-ring: 0 0 0 3px rgba(240, 66, 79, 0.42); --sidebar-bg: #0c0c0e; --sidebar-border: #241e20; --sidebar-divider: #241e20; --sidebar-text: #d9d0d1; --sidebar-text-muted: #a5999b; --sidebar-icon: #a5999b; --sidebar-hover-bg: rgba(240, 66, 79, 0.1); --sidebar-hover-text: #ffffff; --sidebar-active-bg: linear-gradient(180deg, rgba(185, 28, 46, 0.5), rgba(185, 28, 46, 0.14)); --sidebar-active-text: #ffffff; --sidebar-active-icon: #ff6b76; --lp-page-bg: radial-gradient(900px 480px at 8% -8%, rgba(185, 28, 46, 0.2), transparent 62%), radial-gradient(700px 420px at 100% 104%, rgba(120, 16, 30, 0.2), transparent 60%), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 7px), #08080a; --lp-card-bg: linear-gradient(158deg, #1b1b1e, #111113 72%); --lp-card-border: 1px solid rgba(255, 255, 255, 0.075); --lp-card-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.95); --lp-card-shadow-hover: 0 0 0 1px rgba(240, 66, 79, 0.42), 0 20px 42px -18px rgba(185, 28, 46, 0.55); --lp-card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.07); --lp-stat-accent: linear-gradient(90deg, #f0424f, #7a1220 58%, transparent); --lp-stat-accent-height: 2px; --lp-sidebar-bg: linear-gradient(180deg, #131315, #0a0a0c); --lp-topbar-bg: rgba(14, 14, 16, 0.94); --lp-btn-bg: linear-gradient(180deg, #c8213a, #9c1827); --lp-btn-bg-hover: #d62a42; --lp-btn-shadow: 0 8px 18px -10px rgba(240, 66, 79, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.2); --lp-table-head-bg: #101012; --lp-row-hover: rgba(240, 66, 79, 0.075); --lp-modal-shadow: 0 0 0 1px rgba(240, 66, 79, 0.28), 0 0 70px -18px rgba(185, 28, 46, 0.55), 0 36px 70px -20px #000; --lp-backdrop: rgba(4, 2, 3, 0.78); --lp-chart-1: #f0424f; --lp-chart-2: #a8a0a2; --status-disabled-fg: #ffb3b9; --danger-text: #ffb3b9; --status-maintenance-fg: #e8c97a; --lp-auth-bg: radial-gradient(760px 620px at 20% 50%, rgba(185, 28, 46, 0.38), transparent 62%), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 8px), #08080a; --lp-auth-brand-bg: radial-gradient(circle at 30% 20%, rgba(240, 66, 79, 0.4), transparent 58%), linear-gradient(160deg, #2a0d13, #0c0c0e); --lp-auth-chip: #ff9aa2; --lp-live: #f0424f; }
:root[data-lp-theme="obsidian"] .card-header h2, :root[data-lp-theme="obsidian"] .card-header h3 { font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.09em; }
:root[data-lp-theme="obsidian"] .stat-card-label, :root[data-lp-theme="obsidian"] .table thead th { letter-spacing: 0.1em; }

/* ---------------------------------------------------------------- status colours per theme (SOE Phase 2.2)
   Online, warning, failed and the rest keep different colours and their labels; each theme gets its own shades, so nothing on the page
   is a colour from another theme. DYCI Classic keeps the shared set. */
:root[data-lp-theme="midnight"]:where(:not([data-theme="light"])) { --status-available-fg: #34d3b6; --status-available-bg: rgba(52, 211, 182, 0.15); --status-inuse-fg: #7dd3fc; --status-inuse-bg: rgba(125, 211, 252, 0.15); --status-idle-fg: #f5c35c; --status-idle-bg: rgba(245, 195, 92, 0.15); --status-offline-fg: #a2b1c6; --status-offline-bg: rgba(162, 177, 198, 0.15); --status-disabled-fg: #ff7a85; --status-disabled-bg: rgba(255, 122, 133, 0.15); --status-maintenance-fg: #a5b4fc; --status-maintenance-bg: rgba(165, 180, 252, 0.15); --status-locked-fg: #67e8f9; --status-locked-bg: rgba(103, 232, 249, 0.15); --status-pending-fg: #c4d4ff; --status-pending-bg: rgba(196, 212, 255, 0.15); --danger-text: #ff7a85; --color-success: #34d3b6; }
:root[data-lp-theme="aurora"]:where(:not([data-theme="light"])) { --status-available-fg: #6ee7c0; --status-available-bg: rgba(110, 231, 192, 0.15); --status-inuse-fg: #a5b4fc; --status-inuse-bg: rgba(165, 180, 252, 0.15); --status-idle-fg: #f6c177; --status-idle-bg: rgba(246, 193, 119, 0.15); --status-offline-fg: #bab3df; --status-offline-bg: rgba(186, 179, 223, 0.15); --status-disabled-fg: #ff9aa0; --status-disabled-bg: rgba(255, 154, 160, 0.15); --status-maintenance-fg: #e9b8fb; --status-maintenance-bg: rgba(233, 184, 251, 0.15); --status-locked-fg: #93c5fd; --status-locked-bg: rgba(147, 197, 253, 0.15); --status-pending-fg: #d8b4fe; --status-pending-bg: rgba(216, 180, 254, 0.15); --danger-text: #ff9aa0; --color-success: #6ee7c0; }
:root[data-lp-theme="emerald"]:where(:not([data-theme="light"])) { --status-available-fg: #34d399; --status-available-bg: rgba(52, 211, 153, 0.15); --status-inuse-fg: #7dd3fc; --status-inuse-bg: rgba(125, 211, 252, 0.15); --status-idle-fg: #fbbf24; --status-idle-bg: rgba(251, 191, 36, 0.15); --status-offline-fg: #a7b7af; --status-offline-bg: rgba(167, 183, 175, 0.15); --status-disabled-fg: #f87171; --status-disabled-bg: rgba(248, 113, 113, 0.15); --status-maintenance-fg: #c4b5fd; --status-maintenance-bg: rgba(196, 181, 253, 0.15); --status-locked-fg: #5eead4; --status-locked-bg: rgba(94, 234, 212, 0.15); --status-pending-fg: #fde68a; --status-pending-bg: rgba(253, 230, 138, 0.15); --danger-text: #f87171; --color-success: #34d399; }
:root[data-lp-theme="obsidian"]:where(:not([data-theme="light"])) { --status-available-fg: #b8d4a8; --status-available-bg: rgba(184, 212, 168, 0.15); --status-inuse-fg: #b8c6d9; --status-inuse-bg: rgba(184, 198, 217, 0.15); --status-idle-fg: #e2c27a; --status-idle-bg: rgba(226, 194, 122, 0.15); --status-offline-fg: #a9a59e; --status-offline-bg: rgba(169, 165, 158, 0.15); --status-disabled-fg: #e8907f; --status-disabled-bg: rgba(232, 144, 127, 0.15); --status-maintenance-fg: #c9b8d9; --status-maintenance-bg: rgba(201, 184, 217, 0.15); --status-locked-fg: #a9c9c4; --status-locked-bg: rgba(169, 201, 196, 0.15); --status-pending-fg: #d9c7a4; --status-pending-bg: rgba(217, 199, 164, 0.15); --danger-text: #e8907f; --color-success: #b8d4a8; }
:root[data-lp-theme="black-red"]:where(:not([data-theme="light"])) { --status-available-fg: #ece6e6; --status-available-bg: rgba(236, 230, 230, 0.15); --status-inuse-fg: #9fb6cc; --status-inuse-bg: rgba(159, 182, 204, 0.15); --status-idle-fg: #f0b35a; --status-idle-bg: rgba(240, 179, 90, 0.15); --status-offline-fg: #aca3a5; --status-offline-bg: rgba(172, 163, 165, 0.15); --status-disabled-fg: #ff5a6b; --status-disabled-bg: rgba(255, 90, 107, 0.15); --status-maintenance-fg: #e6b8be; --status-maintenance-bg: rgba(230, 184, 190, 0.15); --status-locked-fg: #b8aab0; --status-locked-bg: rgba(184, 170, 176, 0.15); --status-pending-fg: #d9cdb8; --status-pending-bg: rgba(217, 205, 184, 0.15); --danger-text: #ff5a6b; --color-success: #ece6e6; }

/* =====================================================================================================================
   2026-11-27 (Task 1, owner): LIGHT MODE for every dark-designed theme. Each theme's dark design is unchanged (its colour
   rules are scoped :where(:not([data-theme="light"])) - zero specificity, proven identical by themesnap_browser); in
   Light mode the theme keeps its structure (shapes, rails, spacing) and its accent family on light surfaces. Buttons use
   --primary-500 with white text: every 500 below is at least 4.5:1 against white (AA).
   ===================================================================================================================== */
:root[data-lp-theme="midnight"][data-theme="light"] {
    color-scheme: light;
    --primary-50: #e8f4fb; --primary-100: #cbe6f5; --primary-200: #9fd0ec; --primary-300: #6bb6e0; --primary-400: #3a9bd0; --primary-500: #0b6fa3; --primary-600: #0a5f8b; --primary-700: #084e73; --primary-800: #063c58; --primary-900: #04293d;
    --accent-50: #e6f6fd; --accent-100: #c3e9fa; --accent-200: #8dd5f5; --accent-300: #56bfee; --accent-400: #22a8e3; --accent-500: #0e90c9; --accent-600: #0b76a5; --accent-700: #095d82; --accent-800: #06445f; --accent-900: #042b3c;
    --surface-page: #f1f6fb; --accent-text: #0a5f8b; --focus-ring: 0 0 0 3px rgba(14, 144, 201, 0.32);
    --sidebar-active-bg: rgba(14, 144, 201, 0.11); --sidebar-active-icon: #0b76a5;
    --lp-page-bg: radial-gradient(1100px 480px at 100% -10%, rgba(14, 165, 233, 0.08), transparent 60%), #f1f6fb;
    --lp-auth-bg: linear-gradient(rgba(11, 111, 163, 0.06) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(11, 111, 163, 0.06) 1px, transparent 1px) 0 0 / 40px 40px, #eaf2f9;
    --lp-auth-brand-bg: radial-gradient(circle at 30% 15%, rgba(56, 189, 248, 0.35), transparent 58%), linear-gradient(160deg, #0b4f78, #0a2a45);
    --lp-auth-chip: #bae6fd; --lp-chart-2: #6366f1;
}
:root[data-lp-theme="aurora"][data-theme="light"] {
    color-scheme: light;
    --primary-50: #f1edfd; --primary-100: #e0d8fa; --primary-200: #c5b6f4; --primary-300: #a690ec; --primary-400: #8a6ce3; --primary-500: #6d4fd8; --primary-600: #5a3dbf; --primary-700: #47309a; --primary-800: #352473; --primary-900: #22174b;
    --accent-50: #f6effe; --accent-100: #ead8fd; --accent-200: #d6b2fb; --accent-300: #c08af8; --accent-400: #a964f4; --accent-500: #9244e8; --accent-600: #7a32c8; --accent-700: #6127a1; --accent-800: #481d78; --accent-900: #30134f;
    --surface-page: #f6f4fd; --accent-text: #5a3dbf; --focus-ring: 0 0 0 3px rgba(109, 79, 216, 0.3);
    --sidebar-active-bg: rgba(109, 79, 216, 0.1); --sidebar-active-icon: #6d4fd8;
    --lp-page-bg: radial-gradient(1000px 480px at 90% -10%, rgba(168, 85, 247, 0.09), transparent 60%), radial-gradient(800px 420px at 0% 100%, rgba(109, 79, 216, 0.06), transparent 60%), #f6f4fd;
    --lp-auth-bg: radial-gradient(900px 520px at 80% 0%, rgba(168, 85, 247, 0.14), transparent 60%), #f1eefc;
    --lp-auth-brand-bg: radial-gradient(circle at 30% 15%, rgba(192, 132, 252, 0.4), transparent 58%), linear-gradient(160deg, #4a2f9e, #24175a);
    --lp-auth-chip: #e9d5ff; --lp-chart-2: #c084fc;
}
:root[data-lp-theme="copper"][data-theme="light"] {
    color-scheme: light;
    --primary-50: #f7f2e8; --primary-100: #ece0c6; --primary-200: #dcc697; --primary-300: #c9a865; --primary-400: #b28d3e; --primary-500: #8a6414; --primary-600: #735310; --primary-700: #5b420d; --primary-800: #43310a; --primary-900: #2c2006;
    --accent-50: #fbf5e3; --accent-100: #f5e7bd; --accent-200: #ecd28a; --accent-300: #e1bb59; --accent-400: #d3a532; --accent-500: #b8901f; --accent-600: #977518; --accent-700: #775c13; --accent-800: #57430e; --accent-900: #382b09;
    --surface-page: #f8f5ee; --text-primary: #241f16; --accent-text: #735310; --focus-ring: 0 0 0 3px rgba(184, 144, 31, 0.34);
    --sidebar-active-bg: rgba(184, 144, 31, 0.13); --sidebar-active-icon: #8a6414;
    --lp-page-bg: radial-gradient(1100px 480px at 100% -10%, rgba(201, 160, 63, 0.1), transparent 60%), #f8f5ee;
    --lp-auth-bg: radial-gradient(900px 520px at 80% 0%, rgba(201, 160, 63, 0.16), transparent 60%), #f4efe3;
    --lp-auth-brand-bg: radial-gradient(circle at 30% 15%, rgba(220, 184, 92, 0.35), transparent 58%), linear-gradient(160deg, #3a3122, #1c1811);
    --lp-auth-chip: #ecd59a; --lp-chart-1: #8a6414; --lp-chart-2: #b8901f;
}
:root[data-lp-theme="emerald"][data-theme="light"] {
    color-scheme: light;
    --primary-50: #e6f5ef; --primary-100: #c3e7d9; --primary-200: #8fd2b8; --primary-300: #59ba95; --primary-400: #2a9f76; --primary-500: #0a7a59; --primary-600: #08674b; --primary-700: #07523c; --primary-800: #053d2d; --primary-900: #03281d;
    --accent-50: #e7f8f1; --accent-100: #c4eedd; --accent-200: #8edfbf; --accent-300: #55cc9e; --accent-400: #25b580; --accent-500: #059669; --accent-600: #047a56; --accent-700: #036044; --accent-800: #024632; --accent-900: #022e21;
    --surface-page: #f2f7f5; --accent-text: #08674b; --focus-ring: 0 0 0 3px rgba(5, 150, 105, 0.3);
    --sidebar-active-bg: rgba(5, 150, 105, 0.11); --sidebar-active-icon: #047a56;
    --lp-page-bg: linear-gradient(rgba(10, 122, 89, 0.035) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(10, 122, 89, 0.035) 1px, transparent 1px) 0 0 / 32px 32px, #f2f7f5;
    --lp-auth-bg: linear-gradient(rgba(10, 122, 89, 0.06) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(10, 122, 89, 0.06) 1px, transparent 1px) 0 0 / 32px 32px, #ecf4f0;
    --lp-auth-brand-bg: radial-gradient(circle at 30% 15%, rgba(52, 211, 153, 0.32), transparent 58%), linear-gradient(160deg, #0b4a38, #06261d);
    --lp-auth-chip: #a7f3d0; --lp-chart-2: #0ea5e9;
}
:root[data-lp-theme="obsidian"][data-theme="light"] {
    color-scheme: light;
    --primary-50: #f5f2ec; --primary-100: #e8e1d3; --primary-200: #d4c7ad; --primary-300: #bba783; --primary-400: #9f8862; --primary-500: #6e5a36; --primary-600: #5c4b2d; --primary-700: #4a3c24; --primary-800: #382e1b; --primary-900: #251f13;
    --accent-50: #f7f3ea; --accent-100: #ece3cf; --accent-200: #dccca6; --accent-300: #c9b38a; --accent-400: #b39a6c; --accent-500: #957d52; --accent-600: #7c6740; --accent-700: #635233; --accent-800: #4a3d26; --accent-900: #312819;
    --surface-page: #f5f4f1; --text-primary: #141416; --text-secondary: #4d4c52; --text-muted: #55545a; --border-subtle: #dcd9d2;
    --accent-text: #5c4b2d; --focus-ring: 0 0 0 3px rgba(124, 103, 64, 0.34);
    --sidebar-active-bg: rgba(124, 103, 64, 0.12); --sidebar-active-icon: #6e5a36;
    --lp-page-bg: #f5f4f1;
    --lp-auth-bg: radial-gradient(900px 520px at 80% 0%, rgba(201, 179, 138, 0.18), transparent 60%), #efede8;
    --lp-auth-brand-bg: radial-gradient(circle at 30% 15%, rgba(201, 179, 138, 0.28), transparent 58%), linear-gradient(160deg, #2a2722, #121110);
    --lp-auth-chip: #e6d8b8; --lp-chart-1: #6e5a36; --lp-chart-2: #957d52;
}
:root[data-lp-theme="black-red"][data-theme="light"] {
    color-scheme: light;
    --primary-50: #fcebed; --primary-100: #f7cfd3; --primary-200: #efa3ab; --primary-300: #e4717e; --primary-400: #d64657; --primary-500: #b91c2e; --primary-600: #9c1727; --primary-700: #7c121f; --primary-800: #5c0e17; --primary-900: #3c090f;
    --accent-50: #fdecee; --accent-100: #fbd0d5; --accent-200: #f6a3ad; --accent-300: #f07280; --accent-400: #e84a5b; --accent-500: #d62f42; --accent-600: #b32535; --accent-700: #8e1d2a; --accent-800: #6a161f; --accent-900: #460e15;
    --surface-page: #f7f4f4; --text-primary: #1b1214; --accent-text: #9c1727; --focus-ring: 0 0 0 3px rgba(185, 28, 46, 0.3);
    --sidebar-active-bg: rgba(185, 28, 46, 0.09); --sidebar-active-icon: #b91c2e;
    --lp-page-bg: radial-gradient(1000px 460px at 100% -10%, rgba(214, 47, 66, 0.06), transparent 60%), #f7f4f4;
    --lp-auth-bg: radial-gradient(900px 520px at 80% 0%, rgba(214, 47, 66, 0.1), transparent 60%), #f3eeee;
    --lp-auth-brand-bg: radial-gradient(circle at 30% 15%, rgba(240, 66, 79, 0.32), transparent 58%), linear-gradient(160deg, #2a0e13, #120709);
    --lp-auth-chip: #fecdd3; --lp-chart-2: #64748b;
}