/* personalisation (2026-10-31; docs/personalisation_brief.md): Midnight (dark) -- the CRM's original dark look: ice-blue highlight.
   Colours, gradients and shadows only -- nothing here moves or resizes anything. Status colours, the logo and
   the red CODE wordmark are not themed. Generated values are checked for 4.5:1 text contrast
   (core/tests_personalisation.py). */
:root[data-theme="midnight"] {
    --c-bg: #080B10;
    --c-surface: #1B222D;
    --c-surface-2: #121821;
    --c-input: #121821;
    --c-border: #3B4556;
    --c-border-strong: #475468;
    --c-text: #EEF1F5;
    --c-muted: #A9B1BE;
    --c-faint: #7C8594;
    --c-row-hover: #202A3A;
    --c-selected: #1B2433;
    --c-sidebar: #0B1220;
    --c-nav-text: #B8C2D3;
    --c-nav-strong: #FFFFFF;
    --c-nav-muted: #97A3B6;
    --c-nav-tag: #F08C86;
    --c-nav-line: rgba(255, 255, 255, 0.10);
    --c-nav-line-strong: rgba(255, 255, 255, 0.18);
    --c-nav-hover: rgba(255, 255, 255, 0.08);
    --c-nav-active: rgba(255, 255, 255, 0.14);
    --c-nav-focus: #8FB8F5;
    --c-hero: #D6E3F5;
    --c-on-hero: #10213A;
    --c-hero-muted: #46576E;   /* theme-shading 2026-11-08: 4.5:1 on the gradient's darkest stop */
    --c-hero-track: #B9CBE3;
    --c-hero-line: #8FA5C2;
    --c-hero-chip: rgba(16, 33, 58, 0.10);
    --c-on-hero-ok: #17633A;
    --c-on-hero-warn: #7A4F00;
    --c-on-hero-bad: #8C1D17;
    --c-hero-grad: radial-gradient(120% 100% at 100% 0%, #EAF1FB 0%, #D6E3F5 55%, #BFD1EA 100%);
    --c-hero-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.14);
    --c-tile-edge: #8FB8F5;
    --theme-accent: #E0574E;
    --c-accent-text: #E25F57;
    --c-link: #E25F57;
    --accent-contrast: #10131A;
}
:root[data-theme="midnight"][data-accent="red"] { --accent: #B3261E; --accent-contrast: #FFFFFF; --c-accent-text: #CE726D; --c-link: #CE726D; }
:root[data-theme="midnight"][data-accent="blue"] { --accent: #1F5FBF; --accent-contrast: #FFFFFF; --c-accent-text: #628FD2; --c-link: #628FD2; }
:root[data-theme="midnight"][data-accent="green"] { --accent: #1E7A46; --accent-contrast: #FFFFFF; --c-accent-text: #569B74; --c-link: #569B74; }
:root[data-theme="midnight"][data-accent="teal"] { --accent: #0F766E; --accent-contrast: #FFFFFF; --c-accent-text: #4B9892; --c-link: #4B9892; }
:root[data-theme="midnight"][data-accent="plum"] { --accent: #6B4C9A; --accent-contrast: #FFFFFF; --c-accent-text: #9782B8; --c-link: #9782B8; }
:root[data-theme="midnight"][data-accent="orange"] { --accent: #C2410C; --accent-contrast: #FFFFFF; --c-accent-text: #D17049; --c-link: #D17049; }
