/* The solar business type's palette, light mode only.

   Linked on every page straight after the core's brand.css (see
   Vertical.theme_stylesheet), so the values here replace the core's and
   everything linked after reads them. This file sets colour VARIABLES and
   nothing else - no component rules - so every component keeps its shape
   and its dark-mode behaviour, and a dental install, which never links
   this file, is untouched.

   Since 2.13.0 the colours are Metodell's own (the owner's call), taken
   from the light theme of metodell.com: an indigo-navy top bar (#1C1F55,
   the site's band - a step lighter for a while, then back) with soft patches of light blue,
   violet, cyan and deep navy drifting slowly across it, over a breadcrumb
   strip that runs from a deeper navy to a lighter indigo under a soft cyan
   light; navy text (#10103F), a muted blue-grey for the quieter words
   (#474A6B, #6E7290); pale blue-grey surfaces and hairlines (#F4F6FA,
   #E8EDF5, #E2E6EE); and the site's blue (#0050AF) for links, accents and
   the page being viewed. The generic business type uses the same colours
   (clinic/theme-generic.css) on the core's own shapes.

   Kept as they were (the owner's calls, in the days after): the menu's
   section titles, grey bars with white names (2.8.1), and its page names
   in orange (light and dark: the two blocks at the end of this file);
   every table and
   list with its old greys, the client page's panels (light grey bars over
   a paler grey), the Pipeline's figures in pale grey-green boxes and the
   date picker in honey with its amber (--bm-classic-*, --bm-btn-*: see
   brand.css, "Regions that keep the classic colours"). (The Dashboard's
   "Da fare oggi" kept a cream with a grainy mesh from 2.13.0 to 2.18.0;
   it is the Dashboard's own card since, the owner's call.)

   Every shape, gradient, glow, shadow and animation is the core's: the
   top bar is one colour under its patches (like the phone's, which also
   runs on into an iPhone's status bar), drawn as the image, so
   --header-bg - which django also paints a few small things with - can
   stay a colour of its own; the patches are layers of that image, moved
   by brand.css's bm-header-drift (--bm-header-mesh-*, --bm-header-motion),
   and stay put where the computer asks for less motion. The grainy mesh
   over "Da fare oggi" is crm.css's; here only its colours, sizes and
   resting place - it does not move.

   The filter panel's eye and funnel (2.13.0): light blue and dark yellow,
   as in brand.css.

   The BUTTONS keep the colours they had (the owner's call): the orange
   pills that create something (Aggiungi ... +, Nuova trattativa, Evento,
   Appuntamento, "+ Nuova" on a Dashboard panel), the blue secondary ones
   (Vista elenco, Vista calendario, Solo le mie, Scheda cliente...), the
   client page's panels' hollow grey round + (Modifica dati is the page's
   own colours since 2.14.0),
   Salva and django's other buttons, Storia, Cerca and Vai, the agenda's
   green arrows and "Oggi", the Dashboard's grey "Appuntamento" and the
   menu's green "Aggiungi" (the Azioni rapide green since 2.14.0). Their
   tokens below
   are the same values as before; a button that used to read a palette
   colour (the accent, the link blue) reads a token of its own instead,
   restated here with the old colour.

   Contrast against white: links and accents #0050AF 7.6:1, body text
   #10103F 17:1, quiet text #6E7290 4.8:1; white on the top bar 15:1.

   Dark mode is not set here and stays the core's own - apart from the
   menu's orange, in the two dark blocks at the end. The blocks are
   written twice, as brand.css's are: once for the in-app switch set to
   light, once for "automatic" on a computer set to light. A rule for
   "not dark" alone would also catch an automatic page on a dark computer.

   Status colours (appointments, CRM stages, operators, the Impianti
   badges) and the section colours of an edit page (clinic/sections.py)
   are not palette: they say what state something is in, or what a
   section holds, and stay as they are in every business type. */

html[data-theme="light"] {
  --primary: #2C6BD8;
  --secondary: #0050AF;
  --primary-fg: #ffffff;

  --body-fg: #10103F;
  --body-loud-color: #10103F;
  --body-medium-color: #474A6B;
  --body-quiet-color: #6E7290;
  --darkened-bg: #F4F6FA;
  --selected-bg: #E8EDF5;
  --hairline-color: #E2E6EE;
  --border-color: #C8CFDC;
  --md-surface-sunken: #F4F6FA;

  --header-bg: #1C1F55;
  --header-image: radial-gradient(closest-side, rgba(111, 182, 242, 0.34) 0%, rgba(111, 182, 242, 0.29) 22%, rgba(111, 182, 242, 0.20) 48%, rgba(111, 182, 242, 0.08) 74%, rgba(111, 182, 242, 0.00) 100%), radial-gradient(closest-side, rgba(124, 92, 230, 0.32) 0%, rgba(124, 92, 230, 0.28) 22%, rgba(124, 92, 230, 0.19) 48%, rgba(124, 92, 230, 0.08) 74%, rgba(124, 92, 230, 0.00) 100%), radial-gradient(closest-side, rgba(0, 144, 206, 0.30) 0%, rgba(0, 144, 206, 0.26) 22%, rgba(0, 144, 206, 0.17) 48%, rgba(0, 144, 206, 0.07) 74%, rgba(0, 144, 206, 0.00) 100%), radial-gradient(closest-side, rgba(12, 13, 48, 0.42) 0%, rgba(12, 13, 48, 0.36) 22%, rgba(12, 13, 48, 0.24) 48%, rgba(12, 13, 48, 0.10) 74%, rgba(12, 13, 48, 0.00) 100%), linear-gradient(#1C1F55, #1C1F55);
  --breadcrumbs-bg: #2B3180;
  --breadcrumbs-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 60%), radial-gradient(55% 260% at 62% -60%, rgba(0, 144, 206, 0.26) 0%, rgba(0, 144, 206, 0) 65%), linear-gradient(110deg, #0C0D30 0%, #14164A 34%, #1C1F5E 62%, #252A72 86%, #2B3180 100%);
  --breadcrumbs-fg: #D9DCEE;
  --bm-header-mesh-size: 36% 340%, 30% 300%, 34% 320%, 40% 300%, 100% 100%;
  --bm-login-mesh-size: 46% 80%, 40% 70%, 44% 78%, 50% 72%, 100% 100%;
  --bm-header-mesh-pos-0: 12% 50%, 46% 30%, 82% 70%, 64% 40%, 0 0;
  --bm-header-mesh-pos-1: 30% 80%, 70% 60%, 96% 20%, 20% 30%, 0 0;
  --bm-header-mesh-pos-2: 4% 20%, 58% 90%, 74% 40%, 92% 70%, 0 0;
  --bm-header-motion: bm-header-drift 24s ease-in-out infinite alternate;

  --link-fg: #0050AF;
  --link-hover-color: #00367A;
  --link-selected-fg: #00449A;
  --selected-row: #E8EEF8;

  --button-bg: #B45309;
  --button-hover-bg: #92400E;
  --default-button-bg: #92400E;
  --default-button-hover-bg: #B45309;
  --object-tools-bg: #B45309;
  --object-tools-hover-bg: #92400E;

  --md-accent: #0050AF;
  --md-accent-strong: #00449A;
  --md-accent-soft: rgba(0, 80, 175, 0.10);
  --md-focus-ring: rgba(0, 80, 175, 0.28);
  --bm-tint-hover: #DCE2EC;
  --bm-toggle-bg: #EEF1F7;
  --bm-today-bg: #F4F6FA;
  --bm-recent-bg: #F8FAFD;
  --bm-today-column: rgba(0, 80, 175, 0.05);
  --bm-calendar-head-bg: #F7CB5A;
  --bm-calendar-head-fg: #3B2B07;
  --bm-header-glow: rgba(111, 182, 242, 0.16);
  --bm-header-glow-edge: rgba(111, 182, 242, 0.90);
  --bm-crumbs-glow: rgba(111, 182, 242, 0.18);
  --bm-crumbs-glow-edge: rgba(185, 205, 245, 0.75);
  --bm-pick-bg: rgba(0, 80, 175, 0.10);
  --bm-history-bg: #4A3B30;
  --bm-history-hover-bg: #33281F;
  --bm-chart-incasso: #2C6BD8;
  --bm-chart-spese: #C53030;
  --bm-sidebar-link-fg: #4A5263;
  --bm-panel-head-bg: #ECEDEF;
  --bm-panel-head-fg: #1F2328;
  --bm-panel-head-border: #C9CCD1;
  --bm-panel-bg: #F7F7F8;
  --bm-stat-bg: #F2F7F3;
  --bm-addlink-fg: #3A7D22;
  --bm-foot-link-fg: #474A6B;
  --bm-dash-btn-fg: #4B5563;
  --bm-dash-btn-border: #9CA3AF;
  --bm-dash-btn-hover-bg: #E5E7EB;
  --bm-dash-btn-hover-fg: #1F2937;
  --bm-action-bg: #FFF6EC;
  --bm-action-fg: #B45309;
  --bm-action-border: #EDB27C;
  --bm-action-hover-bg: #FFEBD4;
  --bm-action-hover-fg: #9A4108;
  --bm-action-hover-border: #DE8B3E;
  --bm-action-active-bg: #FFDDB8;
  --bm-action-active-fg: #7C2D12;
  --bm-action-active-border: #C2620A;
  --bm-action-hover-glow: 0 6px 14px -6px rgba(180, 83, 9, 0.50);
  --bm-action-active-glow: inset 0 1px 2px rgba(124, 45, 18, 0.18);
  --bm-quick-bg: #F0FAF3;
  --bm-quick-fg: #276749;
  --bm-quick-border: #2F855A;
  --bm-quick-hover-bg: #DCF2E3;
  --bm-quick-hover-fg: #22543D;
  --bm-quick-hover-border: #2F855A;
  --bm-quick-active-bg: #C3E6CF;
  --bm-quick-active-fg: #1C4532;
  --bm-quick-active-border: #22543D;
  --bm-quick-hover-glow: 0 0 0 3px rgba(47, 133, 90, 0.16);
  --bm-quick-active-glow: 0 0 0 4px rgba(47, 133, 90, 0.30);
  --bm-secondary-fg: #1D4ED8;
  --bm-secondary-bg: #FFFFFF;
  --bm-secondary-border: #3B82F6;
  --bm-secondary-ring: 1px;
  --bm-secondary-hover-fg: #1E40AF;
  --bm-secondary-hover-bg: #EFF6FF;
  --bm-secondary-hover-border: #1D4ED8;
  --bm-action-weight: 600;
  --bm-secondary-weight: 500;
  --bm-client-add-bg: #FFFFFF;
  --bm-client-add-fg: #4B5563;
  --bm-client-add-border: #9CA3AF;
  --bm-client-add-hover-bg: #E5E7EB;
  --bm-client-add-hover-fg: #1F2937;
  --bm-client-add-hover-border: #6B7280;
  --bm-client-add-active-bg: #D1D5DB;
  --bm-client-add-active-fg: #111827;
  --bm-client-add-active-border: #4B5563;
  --bm-client-add-hover-glow: 0 0 0 3px rgba(107, 114, 128, 0.18);
  --bm-client-add-active-glow: 0 0 0 4px rgba(107, 114, 128, 0.30);
  --bm-nav-bg: #EAF6EE;
  --bm-nav-fg: #276749;
  --bm-nav-border: #2F855A;
  --bm-nav-hover-bg: #D3EFDC;
  --bm-nav-hover-fg: #22543D;
  --bm-nav-hover-border: #276749;
  --bm-nav-active-bg: #BCE3C9;
  --bm-nav-active-fg: #1C4532;
  --bm-nav-active-border: #22543D;
  --bm-sidebar-current-bg: #E9ECF2;
  --bm-sidebar-press: rgba(74, 82, 99, 0.12);
  --bm-sidebar-caption-bg: linear-gradient(90deg, #6B7280 0%, #6B7280 62%, rgba(107, 114, 128, 0.6) 76%, rgba(107, 114, 128, 0.22) 89%, rgba(107, 114, 128, 0) 100%);
  --bm-sidebar-caption-fg: #FFFFFF;
  --bm-pill-bg: #F4F6FA;
  --bm-pill-border: #E2E6EE;
  --bm-pill-hover-bg: #EEF0F5;
  --bm-pill-hover-fg: #1E2433;
  --bm-pill-hover-border: #D3D8E2;
  --bm-pill-hover-shadow: 0 3px 10px -4px rgba(30, 36, 51, 0.28);
  --bm-pill-press-shadow: inset 0 1px 3px rgba(30, 36, 51, 0.18);
  --bm-pill-current-border: #C9CFDB;
  --bm-done-fg: #2F855A;
  --bm-done-bg: rgba(47, 133, 90, 0.12);
  --bm-switch-off: #C9D0DD;
  --bm-switch-knob-shadow: rgba(16, 16, 63, 0.28);
  --bm-search-btn-bg: #E8F2FC;
  --bm-search-btn-border: #BBD5EF;
  --bm-search-btn-fg: #1D4E7A;
  --bm-search-btn-hover-bg: #D6E8F9;
  --bm-go-btn-bg: #E7F6EC;
  --bm-go-btn-border: #B3DEC1;
  --bm-go-btn-fg: #1E6B3A;
  --bm-go-btn-hover-bg: #D3EFDC;
  --bm-head-add-fg: #B45309;
  --bm-head-add-bg: #FFFFFF;
  --bm-head-add-border: #B45309;
  --bm-head-add-hover-bg: #FFE8CC;
  --bm-head-add-hover-fg: #92400E;
  --bm-head-add-hover-line: none;
  --bm-head-add-active-bg: #FCD9AE;
  --bm-head-add-active-fg: #7C2D12;
  --bm-head-add-pull: 0px;
  --bm-section-place-head: #D3E5F8;
  --bm-section-place-bg: #EAF2FC;
  --bm-section-tech-head: #CBEAE2;
  --bm-section-tech-bg: #E6F5F1;
  --bm-section-money-head: #F4E1B8;
  --bm-section-money-bg: #FAF1DD;
  --bm-section-time-head: #DDD5F4;
  --bm-section-time-bg: #EFEBFA;
  --bm-section-people-head: #F3D3DE;
  --bm-section-people-bg: #FAEAF0;
  --bm-section-sales-head: #F7D5C4;
  --bm-section-sales-bg: #FCEBE2;
  --bm-section-docs-head: #E5DFD2;
  --bm-section-docs-bg: #F3F0E9;
  --bm-section-other-head: #DAE1E9;
  --bm-section-other-bg: #EDF1F5;

  --bm-btn-fg: #333333;
  --bm-btn-border: #CCCCCC;
  --bm-btn-hover-bg: #F8F8F8;
  --bm-btn-link: #A14A07;
  --bm-btn-link-hover: #6F330A;
  --bm-btn-accent: #B45309;
  --bm-btn-accent-strong: #92400E;
  --bm-btn-accent-soft: rgba(180, 83, 9, 0.12);
  --bm-classic-bg: #F8F8F8;
  --bm-classic-hairline: #E8E8E8;
  --bm-classic-border: #CCCCCC;
  --bm-classic-selected-bg: #E4E4E4;
  --bm-classic-selected-row: #FFF3DC;
  --bm-classic-quiet: #666666;
  --bm-classic-sunken: #F8F8F8;
  --bm-filter-counts-icon: #3B9AE1;
  --bm-filter-clear-icon: #B7791F;
  --bm-net-1: #6D4AFF;
  --bm-net-2: #2F7BF6;
  --bm-net-3: #9B5CF6;
  --bm-net-4: #0EA5E9;
  --bm-net-5: #14B8A6;
  --bm-net-6: #5B5FEF;
  --bm-net-7: #C04AF0;
  --bm-net-8: #E25FB8;
  --bm-net-9: #F2A33A;
  --bm-net-10: #22B07D;
  --bm-net-11: #06B6D4;
  --bm-net-12: #8A94A6;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    --primary: #2C6BD8;
    --secondary: #0050AF;
    --primary-fg: #ffffff;

    --body-fg: #10103F;
    --body-loud-color: #10103F;
    --body-medium-color: #474A6B;
    --body-quiet-color: #6E7290;
    --darkened-bg: #F4F6FA;
    --selected-bg: #E8EDF5;
    --hairline-color: #E2E6EE;
    --border-color: #C8CFDC;
    --md-surface-sunken: #F4F6FA;

    --header-bg: #1C1F55;
    --header-image: radial-gradient(closest-side, rgba(111, 182, 242, 0.34) 0%, rgba(111, 182, 242, 0.29) 22%, rgba(111, 182, 242, 0.20) 48%, rgba(111, 182, 242, 0.08) 74%, rgba(111, 182, 242, 0.00) 100%), radial-gradient(closest-side, rgba(124, 92, 230, 0.32) 0%, rgba(124, 92, 230, 0.28) 22%, rgba(124, 92, 230, 0.19) 48%, rgba(124, 92, 230, 0.08) 74%, rgba(124, 92, 230, 0.00) 100%), radial-gradient(closest-side, rgba(0, 144, 206, 0.30) 0%, rgba(0, 144, 206, 0.26) 22%, rgba(0, 144, 206, 0.17) 48%, rgba(0, 144, 206, 0.07) 74%, rgba(0, 144, 206, 0.00) 100%), radial-gradient(closest-side, rgba(12, 13, 48, 0.42) 0%, rgba(12, 13, 48, 0.36) 22%, rgba(12, 13, 48, 0.24) 48%, rgba(12, 13, 48, 0.10) 74%, rgba(12, 13, 48, 0.00) 100%), linear-gradient(#1C1F55, #1C1F55);
    --breadcrumbs-bg: #2B3180;
    --breadcrumbs-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 60%), radial-gradient(55% 260% at 62% -60%, rgba(0, 144, 206, 0.26) 0%, rgba(0, 144, 206, 0) 65%), linear-gradient(110deg, #0C0D30 0%, #14164A 34%, #1C1F5E 62%, #252A72 86%, #2B3180 100%);
    --breadcrumbs-fg: #D9DCEE;
    --bm-header-mesh-size: 36% 340%, 30% 300%, 34% 320%, 40% 300%, 100% 100%;
    --bm-login-mesh-size: 46% 80%, 40% 70%, 44% 78%, 50% 72%, 100% 100%;
    --bm-header-mesh-pos-0: 12% 50%, 46% 30%, 82% 70%, 64% 40%, 0 0;
    --bm-header-mesh-pos-1: 30% 80%, 70% 60%, 96% 20%, 20% 30%, 0 0;
    --bm-header-mesh-pos-2: 4% 20%, 58% 90%, 74% 40%, 92% 70%, 0 0;
    --bm-header-motion: bm-header-drift 24s ease-in-out infinite alternate;

    --link-fg: #0050AF;
    --link-hover-color: #00367A;
    --link-selected-fg: #00449A;
    --selected-row: #E8EEF8;

    --button-bg: #B45309;
    --button-hover-bg: #92400E;
    --default-button-bg: #92400E;
    --default-button-hover-bg: #B45309;
    --object-tools-bg: #B45309;
    --object-tools-hover-bg: #92400E;

    --md-accent: #0050AF;
    --md-accent-strong: #00449A;
    --md-accent-soft: rgba(0, 80, 175, 0.10);
    --md-focus-ring: rgba(0, 80, 175, 0.28);
    --bm-tint-hover: #DCE2EC;
    --bm-toggle-bg: #EEF1F7;
    --bm-today-bg: #F4F6FA;
    --bm-recent-bg: #F8FAFD;
    --bm-today-column: rgba(0, 80, 175, 0.05);
    --bm-calendar-head-bg: #F7CB5A;
    --bm-calendar-head-fg: #3B2B07;
    --bm-header-glow: rgba(111, 182, 242, 0.16);
    --bm-header-glow-edge: rgba(111, 182, 242, 0.90);
    --bm-crumbs-glow: rgba(111, 182, 242, 0.18);
    --bm-crumbs-glow-edge: rgba(185, 205, 245, 0.75);
    --bm-pick-bg: rgba(0, 80, 175, 0.10);
    --bm-history-bg: #4A3B30;
    --bm-history-hover-bg: #33281F;
    --bm-chart-incasso: #2C6BD8;
    --bm-chart-spese: #C53030;
    --bm-sidebar-link-fg: #4A5263;
    --bm-panel-head-bg: #ECEDEF;
    --bm-panel-head-fg: #1F2328;
    --bm-panel-head-border: #C9CCD1;
    --bm-panel-bg: #F7F7F8;
    --bm-stat-bg: #F2F7F3;
    --bm-addlink-fg: #3A7D22;
    --bm-foot-link-fg: #474A6B;
    --bm-dash-btn-fg: #4B5563;
    --bm-dash-btn-border: #9CA3AF;
    --bm-dash-btn-hover-bg: #E5E7EB;
    --bm-dash-btn-hover-fg: #1F2937;
    --bm-action-bg: #FFF6EC;
    --bm-action-fg: #B45309;
    --bm-action-border: #EDB27C;
    --bm-action-hover-bg: #FFEBD4;
    --bm-action-hover-fg: #9A4108;
    --bm-action-hover-border: #DE8B3E;
    --bm-action-active-bg: #FFDDB8;
    --bm-action-active-fg: #7C2D12;
    --bm-action-active-border: #C2620A;
    --bm-action-hover-glow: 0 6px 14px -6px rgba(180, 83, 9, 0.50);
    --bm-action-active-glow: inset 0 1px 2px rgba(124, 45, 18, 0.18);
    --bm-quick-bg: #F0FAF3;
    --bm-quick-fg: #276749;
    --bm-quick-border: #2F855A;
    --bm-quick-hover-bg: #DCF2E3;
    --bm-quick-hover-fg: #22543D;
    --bm-quick-hover-border: #2F855A;
    --bm-quick-active-bg: #C3E6CF;
    --bm-quick-active-fg: #1C4532;
    --bm-quick-active-border: #22543D;
    --bm-quick-hover-glow: 0 0 0 3px rgba(47, 133, 90, 0.16);
    --bm-quick-active-glow: 0 0 0 4px rgba(47, 133, 90, 0.30);
    --bm-secondary-fg: #1D4ED8;
    --bm-secondary-bg: #FFFFFF;
    --bm-secondary-border: #3B82F6;
    --bm-secondary-ring: 1px;
    --bm-secondary-hover-fg: #1E40AF;
    --bm-secondary-hover-bg: #EFF6FF;
    --bm-secondary-hover-border: #1D4ED8;
    --bm-action-weight: 600;
    --bm-secondary-weight: 500;
    --bm-client-add-bg: #FFFFFF;
    --bm-client-add-fg: #4B5563;
    --bm-client-add-border: #9CA3AF;
    --bm-client-add-hover-bg: #E5E7EB;
    --bm-client-add-hover-fg: #1F2937;
    --bm-client-add-hover-border: #6B7280;
    --bm-client-add-active-bg: #D1D5DB;
    --bm-client-add-active-fg: #111827;
    --bm-client-add-active-border: #4B5563;
    --bm-client-add-hover-glow: 0 0 0 3px rgba(107, 114, 128, 0.18);
    --bm-client-add-active-glow: 0 0 0 4px rgba(107, 114, 128, 0.30);
    --bm-nav-bg: #EAF6EE;
    --bm-nav-fg: #276749;
    --bm-nav-border: #2F855A;
    --bm-nav-hover-bg: #D3EFDC;
    --bm-nav-hover-fg: #22543D;
    --bm-nav-hover-border: #276749;
    --bm-nav-active-bg: #BCE3C9;
    --bm-nav-active-fg: #1C4532;
    --bm-nav-active-border: #22543D;
    --bm-sidebar-current-bg: #E9ECF2;
    --bm-sidebar-press: rgba(74, 82, 99, 0.12);
    --bm-sidebar-caption-bg: linear-gradient(90deg, #6B7280 0%, #6B7280 62%, rgba(107, 114, 128, 0.6) 76%, rgba(107, 114, 128, 0.22) 89%, rgba(107, 114, 128, 0) 100%);
    --bm-sidebar-caption-fg: #FFFFFF;
    --bm-pill-bg: #F4F6FA;
    --bm-pill-border: #E2E6EE;
    --bm-pill-hover-bg: #EEF0F5;
    --bm-pill-hover-fg: #1E2433;
    --bm-pill-hover-border: #D3D8E2;
    --bm-pill-hover-shadow: 0 3px 10px -4px rgba(30, 36, 51, 0.28);
    --bm-pill-press-shadow: inset 0 1px 3px rgba(30, 36, 51, 0.18);
    --bm-pill-current-border: #C9CFDB;
    --bm-done-fg: #2F855A;
    --bm-done-bg: rgba(47, 133, 90, 0.12);
    --bm-switch-off: #C9D0DD;
    --bm-switch-knob-shadow: rgba(16, 16, 63, 0.28);
    --bm-search-btn-bg: #E8F2FC;
    --bm-search-btn-border: #BBD5EF;
    --bm-search-btn-fg: #1D4E7A;
    --bm-search-btn-hover-bg: #D6E8F9;
    --bm-go-btn-bg: #E7F6EC;
    --bm-go-btn-border: #B3DEC1;
    --bm-go-btn-fg: #1E6B3A;
    --bm-go-btn-hover-bg: #D3EFDC;
    --bm-head-add-fg: #B45309;
    --bm-head-add-bg: #FFFFFF;
    --bm-head-add-border: #B45309;
    --bm-head-add-hover-bg: #FFE8CC;
    --bm-head-add-hover-fg: #92400E;
    --bm-head-add-hover-line: none;
    --bm-head-add-active-bg: #FCD9AE;
    --bm-head-add-active-fg: #7C2D12;
    --bm-head-add-pull: 0px;
    --bm-section-place-head: #D3E5F8;
    --bm-section-place-bg: #EAF2FC;
    --bm-section-tech-head: #CBEAE2;
    --bm-section-tech-bg: #E6F5F1;
    --bm-section-money-head: #F4E1B8;
    --bm-section-money-bg: #FAF1DD;
    --bm-section-time-head: #DDD5F4;
    --bm-section-time-bg: #EFEBFA;
    --bm-section-people-head: #F3D3DE;
    --bm-section-people-bg: #FAEAF0;
    --bm-section-sales-head: #F7D5C4;
    --bm-section-sales-bg: #FCEBE2;
    --bm-section-docs-head: #E5DFD2;
    --bm-section-docs-bg: #F3F0E9;
    --bm-section-other-head: #DAE1E9;
    --bm-section-other-bg: #EDF1F5;

    --bm-btn-fg: #333333;
    --bm-btn-border: #CCCCCC;
    --bm-btn-hover-bg: #F8F8F8;
    --bm-btn-link: #A14A07;
    --bm-btn-link-hover: #6F330A;
    --bm-btn-accent: #B45309;
    --bm-btn-accent-strong: #92400E;
    --bm-btn-accent-soft: rgba(180, 83, 9, 0.12);
    --bm-classic-bg: #F8F8F8;
    --bm-classic-hairline: #E8E8E8;
    --bm-classic-border: #CCCCCC;
    --bm-classic-selected-bg: #E4E4E4;
    --bm-classic-selected-row: #FFF3DC;
    --bm-classic-quiet: #666666;
    --bm-classic-sunken: #F8F8F8;
    --bm-filter-counts-icon: #3B9AE1;
    --bm-filter-clear-icon: #B7791F;
    --bm-net-1: #6D4AFF;
    --bm-net-2: #2F7BF6;
    --bm-net-3: #9B5CF6;
    --bm-net-4: #0EA5E9;
    --bm-net-5: #14B8A6;
    --bm-net-6: #5B5FEF;
    --bm-net-7: #C04AF0;
    --bm-net-8: #E25FB8;
    --bm-net-9: #F2A33A;
    --bm-net-10: #22B07D;
    --bm-net-11: #06B6D4;
    --bm-net-12: #8A94A6;
  }
}

/* On a phone the top bar is flat navy, without the computer's moving
   patches (2.14.0, the owner's call): a single colour is what the iPhone
   can carry on into its status bar at the top of the screen (2.14.1:
   through the strip in mobile-nav.css, ".bm-status-tint", which is
   painted in this --header-bg). The drawer's head is painted with the same
   --header-bg. The same 767px as brand.css's phone block. After the
   blocks above so it wins on a phone. */
@media (max-width: 767px) {
  html[data-theme="light"] {
    --header-image: none;
    --bm-header-motion: none;
    --breadcrumbs-image: none;
    --header-bg: #1C1F55;
    --breadcrumbs-bg: #0C0D30;
  }
}

@media (max-width: 767px) and (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    --header-image: none;
    --bm-header-motion: none;
    --breadcrumbs-image: none;
    --header-bg: #1C1F55;
    --breadcrumbs-bg: #0C0D30;
  }
}

/* Dark mode: the menu only. Its page names are grey since 2.15.0 (the
   owner's call), in both themes, the pill's tints a neutral grey to
   match; they were orange (2.13.1, the owner's call then - its page names
   orange in both themes, as solar's were before the Metodell colours, on
   the menu and on the home page). Everything else in dark mode is the
   core's own. The tints of a pill under the pointer, pressed and of the
   page being viewed follow the orange, so it never sits on blue. And the
   menu's section titles a grey bar fading away into the page, as in light
   mode (2.14.0, the owner's call: a darker grey here). Written twice, as
   brand.css's dark blocks are. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bm-sidebar-link-fg: #B9BFCC;
    --bm-sidebar-current-bg: rgba(185, 191, 204, 0.14);
    --bm-sidebar-press: rgba(185, 191, 204, 0.12);
    --bm-pill-hover-bg: #262A33;
    --bm-pill-hover-fg: #F1F3F7;
    --bm-pill-hover-border: rgba(185, 191, 204, 0.32);
    --bm-pill-hover-shadow: 0 3px 10px -4px rgba(0, 0, 0, 0.55);
    --bm-pill-press-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
    --bm-sidebar-caption-bg: linear-gradient(90deg, #4B5563 0%, #4B5563 62%, rgba(75, 85, 99, 0.6) 76%, rgba(75, 85, 99, 0.22) 89%, rgba(75, 85, 99, 0) 100%);
  }
}

html[data-theme="dark"] {
  --bm-sidebar-link-fg: #B9BFCC;
  --bm-sidebar-current-bg: rgba(185, 191, 204, 0.14);
  --bm-sidebar-press: rgba(185, 191, 204, 0.12);
  --bm-pill-hover-bg: #262A33;
  --bm-pill-hover-fg: #F1F3F7;
  --bm-pill-hover-border: rgba(185, 191, 204, 0.32);
  --bm-pill-hover-shadow: 0 3px 10px -4px rgba(0, 0, 0, 0.55);
  --bm-pill-press-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
  --bm-sidebar-caption-bg: linear-gradient(90deg, #4B5563 0%, #4B5563 62%, rgba(75, 85, 99, 0.6) 76%, rgba(75, 85, 99, 0.22) 89%, rgba(75, 85, 99, 0) 100%);
}
