/* ============================================================
   Coral (Home → Settings → Appearance → Coral; core/Theme.js → <html data-theme="light" data-palette="coral">).
   The website's colours (codeanddot.com), approved in design-demos/30–33 (2026-11-26):
   a grey-blue page #c5d5d8, white boxes with #b9cdd1 edges, navy text #0a2563, the rail in navy,
   mint #36bfa1 for actions and the main role, the Slowest-queries teal and orange in charts, cyan #0da3b9 for info,
   orange #d7500b for errors. Built on the light theme: only colours change here, never a part or a function.
   html:root[data-theme][data-palette] is more specific than the light theme's and the accents' blocks, and this
   file loads last, so Coral wins; the accent picker does not apply in Coral (it has its own).
   ============================================================ */
html:root[data-theme="light"][data-palette="coral"] {
  --bg:              var(--bg);
  --bg-dark:         var(--sec-line);
  --side:            var(--side);
  --text:            var(--text);
  --text-muted:      var(--text-muted);
  --border-color:    var(--border-color);
  --block-bg:        var(--side);
  --block-text:      var(--text);
  --block-border:    var(--border-color);
  --standard-tab:    var(--side);
  --standard-tab-text: var(--text-muted);
  --standard:        var(--side);
  --standard-text:   var(--text);
  --hover:           var(--prim-soft);
  --hover-text:      var(--text);
  --active:          var(--c-prim);
  --disabled:        var(--hover);
  --disabled-text:   var(--c-sec);
  --success:         var(--c-ok);
  --alert:           var(--c-err);
  --info:            var(--c-info);
  --warning:         var(--warn-strong);
  --primary:         var(--c-prim);
  --orange:          var(--c-gold);
  --subtoolbar-bg:   var(--side);
  --subtoolbar-text: var(--text);
  --button-bg:       var(--side);
  --button-text:     var(--text);
  --button-hover-bg: var(--c-prim);
  --button-disabled-bg: var(--hover);
  --button-disabled-text: var(--c-sec);
  --vd-accent:       var(--c-prim);
  --vd-accent-glow:  rgba(54, 191, 161, .28);
  --vd-green:        var(--c-ok);
  --vd-yellow:       var(--c-warn);
  --vd-purple:       var(--prim-line);
  --vd-cyan:         var(--c-info);
  --vd-red:          var(--c-err);
  --vd-surface:      var(--side);
  --vd-surface-2:    var(--hover);
  --vd-border:       var(--border-color);
  --vd-text:         var(--text);
  --vd-text-muted:   var(--text-muted);
  --vd-bg:           var(--bg);
  --vd-canvas-bg:    var(--hover);
  --vd-grid-color:   var(--shade-soft);
  --vd-border-glow:  var(--c-prim);
  --vd-shadow:       0 6px 24px rgba(10, 37, 99, 0.10);
  --text-2:          var(--text-2);
  --text-muted-2:    var(--text-muted);
  --text-faint:      var(--c-sec);
  --accent-text:     var(--prim-strong);
  --accent-text-2:   var(--prim-strong);
  --accent-text-3:   var(--ok-strong);
  --accent-text-4:   var(--c-ok);
  --red-text:        var(--err-strong);
  --red-text-2:      var(--err-strong);
  --orange-text:     var(--link);
  --yellow-text:     var(--gold-strong);
  --fg-rgb:          10,37,99;
  --border-rgb:      185,205,209;
  --muted-rgb:       86,99,143;
  --bg-rgb:          197,213,216;
  --surface-rgb:     238,243,244;
  --code-bg:         var(--acc-soft);
  --scroll-thumb:    var(--border-color);
  --scroll-thumb-hover: var(--c-sec);
  --view-header-bg:  var(--prim-soft);
  --tooltip-bg:      var(--c-drk);
  --tooltip-text:    var(--side);
  /* the main colour's light shades (selected items, chips, the accent's soft fills) */
  --acc-soft:        var(--prim-soft);
  --acc-line:        var(--prim-line);
  /* parts: buttons and fields white with the Coral edge */
  --pt-btn-bg:       var(--side);
  --pt-btn-bg-hover: var(--prim-soft);
  --pt-btn-bd:       var(--border-color);
  --pt-btn-bd-hover: var(--c-sec);
  --pt-btn-shadow:   0 1px 1px rgba(10, 37, 99, 0.05);
  --pt-danger-bg:    var(--side);
  --pt-danger-bd:    var(--err-line);
  --pt-danger-text:  var(--err-strong);
  --pt-in-bg:        var(--side);
  --pt-in-bd:        var(--border-color);
  --pt-on-accent:    var(--side);
  /* roles: each with its light background, edge and text shade */
  --ok-soft-x: var(--prim-soft);   --ok-line-x: var(--ok-line);   --ok-strong-x: var(--ok-strong);
  --err-soft-x: var(--err-soft);  --err-line-x: var(--err-line);  --err-strong-x: var(--err-strong);
  --warn-soft-x: var(--warn-soft); --warn-line-x: var(--warn-line); --warn-strong-x: var(--warn-strong);
  --info-soft-x: var(--info-soft); --info-line-x: var(--info-line); --info-strong-x: var(--info-strong);
  --prim-soft-x: var(--prim-soft); --prim-line-x: var(--prim-line); --prim-strong-x: var(--prim-strong);
  --sec-soft-x: var(--prim-soft);  --sec-line-x: var(--border-color);  --sec-strong-x: var(--sec-strong);
  /* charts: mint for the main series, cyan and the Slowest-queries orange for the others */
  --fi-prim: var(--c-prim); --fi-info: var(--c-info); --fi-warn: var(--c-warn);
}

/* the frame: the header white like the website's top bar, the rail in the website's navy with the open area lit */
html:root[data-theme="light"][data-palette="coral"] #main-header { background: var(--side) !important; border-bottom-color: var(--border-color) !important; }
html:root[data-theme="light"][data-palette="coral"] #main-sidebar { background: var(--side) !important; border-right-color: var(--border-color) !important; }
html:root[data-theme="light"][data-palette="coral"] #sb-rail { background: var(--c-drk) !important; border-color: var(--c-drk) !important; }
html:root[data-theme="light"][data-palette="coral"] :is(.sbr-home, .sbr-tab, .sbr-settings, .sbr-fold) { color: var(--rail-text) !important; }
html:root[data-theme="light"][data-palette="coral"] .sbr-tab:not(.sbr-on):not(:hover) { color: var(--rail-text) !important; }
html:root[data-theme="light"][data-palette="coral"] :is(.sbr-home, .sbr-tab, .sbr-settings, .sbr-fold):hover,
html:root[data-theme="light"][data-palette="coral"] :is(.sbr-tab, .sbr-home, .sbr-settings).sbr-on { color: var(--side) !important; background: var(--rail-sel) !important; }
html:root[data-theme="light"][data-palette="coral"] .sbr-tab.sbr-on i,
html:root[data-theme="light"][data-palette="coral"] .sbr-tab:hover i { color: var(--tab-coral, var(--c-prim)) !important; }
html:root[data-theme="light"][data-palette="coral"] .sbr-tab.sbr-on::before { background: var(--c-prim) !important; }

/* inside the white boxes, what used the page colour (chips, rows, small cards, fields) takes a light tint of it */
html:root[data-theme="light"][data-palette="coral"] :is(.hw-w, .ts-section, .ov-card, .sv-kpi, .ts-stat-card, .modal-content, .dropdown-menu, #main-sidebar) { --bg: var(--hover); }

/* the main action: mint with white text, darker mint on hover */
html:root[data-theme="light"][data-palette="coral"] :is(.ts-btn-primary, .btn.btn-primary) { background: var(--c-prim) !important; border-color: var(--c-prim) !important; color: var(--side) !important; }
html:root[data-theme="light"][data-palette="coral"] :is(.ts-btn-primary, .btn.btn-primary):hover { background: var(--c-prim) !important; border-color: var(--c-prim) !important; }
html:root[data-theme="light"][data-palette="coral"] ::selection { background: var(--ok-soft); }

/* ══ 2026-11-28 · fixes after the first look at Coral in the app ══ */
html:root[data-theme="light"][data-palette="coral"] {
  /* every grey line in and around the white boxes (the light theme's #e5e8ee, #eef0f4, #d9dee6 … read this) */
  --cl-line: var(--border-color);
  /* a row under the mouse in a white list or table: a light mint, not a see-through navy */
  --cl-row-hover: var(--prim-soft);
}

/* 1 · notifications and small marks: solid colours, nothing see-through */
html:root[data-theme="light"][data-palette="coral"] .notify-toast .notify-close:hover { background: var(--side); }
html:root[data-theme="light"][data-palette="coral"] .sbp-item.sbp-here { background: var(--prim-soft); }
html:root[data-theme="light"][data-palette="coral"] .sbp-article.sbp-here { background: var(--prim-soft); }
html:root[data-theme="light"][data-palette="coral"] .sbp :is(.sbp-item, .sbp-article).sbp-here { background: var(--pc-soft); }
html:root[data-theme="light"][data-palette="coral"] .sbp-avatar { background: var(--prim-soft); }
html:root[data-theme="light"][data-palette="coral"] .ts-flag-pill.sv-pill { background: var(--info-soft); border-color: var(--info-line); color: var(--info-strong); }
html:root[data-theme="light"][data-palette="coral"] .sb-chip-fk { background: var(--hover); border-color: var(--info-line); }
html:root[data-theme="light"][data-palette="coral"] { --code-bg: var(--hover); }


/* 3 · chart fills solid */
html:root[data-theme="light"][data-palette="coral"] .hw-spark-fill { fill: var(--prim-soft); }
html:root[data-theme="light"][data-palette="coral"] .sa-col > i { background: var(--info-line); }
html:root[data-theme="light"][data-palette="coral"] .sa-col:hover > i { background: var(--c-info); }



/* 7 · rows under the mouse in white tables and lists: light mint */
html:root[data-theme="light"][data-palette="coral"] .ts-data-table tbody tr:hover > td,
html:root[data-theme="light"][data-palette="coral"] .ts-data-table tbody tr:hover > td.td-actions,
html:root[data-theme="light"][data-palette="coral"] :is(.ts-data-table, .table, .ov-table) tbody tr:hover,
html:root[data-theme="light"][data-palette="coral"] .hm-home .hm-largest tbody tr:hover td,
html:root[data-theme="light"][data-palette="coral"] .pg-grid tbody tr:hover td,
html:root[data-theme="light"][data-palette="coral"] .bs-part .ts-data-table tbody tr:hover > td { background: var(--cl-row-hover) !important; }
html:root[data-theme="light"][data-palette="coral"] .ts-data-table tbody tr.ts-row-selected > td { background: var(--err-soft) !important; }








/* ══ 2026-11-28 · second round ══ */
/* hover everywhere (rows, list items, menus, buttons): the light mint of the main colour, never a grey-blue */
html:root[data-theme="light"][data-palette="coral"] { --hover: var(--prim-soft); --pt-btn-bg-hover: var(--prim-soft); --pt-btn-bd-hover: var(--prim-line); }

/* Home → Alerts (platform staff): the error colours, solid */
html:root[data-theme="light"][data-palette="coral"] .hw-w.hw-banner { background: var(--err-soft); border-color: var(--err-line); }
html:root[data-theme="light"][data-palette="coral"] .hw-banner :is(.hw-head, .hw-foot) { border-color: var(--err-line); }
/* Home widgets: footer links in the Coral link colour, like design-demos/30-coral-home */
html:root[data-theme="light"][data-palette="coral"] :is(.hw-foot a, .hw-foot .hw-link) { color: var(--link); }
html:root[data-theme="light"][data-palette="coral"] .hw-w { --hw-bar: var(--c-ok); }
html:root[data-theme="light"][data-palette="coral"] .hw-banner .hw-head, html:root[data-theme="light"][data-palette="coral"] .hw-alert-line { color: var(--err-strong); }
html:root[data-theme="light"][data-palette="coral"] :is(.hw-banner .hw-head > .bi, .hw-alert-line > .bi) { color: var(--c-err); }

/* message boxes that were mixed with "transparent": solid role colours (Reports, Privacy mail, Performance, organization, Platform admin) */
html:root[data-theme="light"][data-palette="coral"] .pf-good-head { background: var(--prim-soft); border-color: var(--ok-line); }
html:root[data-theme="light"][data-palette="coral"] .pf-good-head.rp-head-wait { background: var(--warn-soft); border-color: var(--warn-line); }
html:root[data-theme="light"][data-palette="coral"] .rp-head-wait > .bi { color: var(--warn-strong); }
html:root[data-theme="light"][data-palette="coral"] .rp-bulk { background: var(--prim-soft); }
html:root[data-theme="light"][data-palette="coral"] .rp-chip { background: var(--prim-soft); border-color: var(--prim-line); }
html:root[data-theme="light"][data-palette="coral"] .og-kept { background: var(--info-soft); border-color: var(--info-line); color: var(--info-strong); }
html:root[data-theme="light"][data-palette="coral"] .pa-alert { background: var(--err-soft); border-color: var(--err-line); color: var(--err-strong); }
html:root[data-theme="light"][data-palette="coral"] .pa-st-warn { background: var(--warn-soft); border-color: var(--warn-line); }
html:root[data-theme="light"][data-palette="coral"] :is(.lr-ok, .sv-sec-ok) { background: var(--prim-soft); }
html:root[data-theme="light"][data-palette="coral"] :is(.lr-warn, .sv-sec-warn, .pf-q-warn) { background: var(--warn-soft); }
html:root[data-theme="light"][data-palette="coral"] .sa-row.on > td { background: var(--prim-soft); }
html:root[data-theme="light"][data-palette="coral"] .mr-n { background: var(--prim-soft); }





/* the last see-through bits: the same colours mixed with white instead of with nothing */
html:root[data-theme="light"][data-palette="coral"] .og-intro { background: var(--info-soft); border-left-color: var(--c-info); color: var(--info-strong); }
html:root[data-theme="light"][data-palette="coral"] .og-card > .bi { background: var(--info-soft); color: var(--info-strong); }
html:root[data-theme="light"][data-palette="coral"] .og-role-owner { background: var(--warn-soft); color: var(--warn-strong); }
html:root[data-theme="light"][data-palette="coral"] .pg-chip-all { background: var(--page-c-strong); }
html:root[data-theme="light"][data-palette="coral"] .hm-icon { background: var(--prim-soft) !important; color: var(--prim-strong) !important; }
html:root[data-theme="light"][data-palette="coral"] body[data-page-area] #content .ts-icon-wrap.hm-icon { background: var(--page-c-soft) !important; }
html:root[data-theme="light"][data-palette="coral"] .pf-report-n { background: var(--c-soft); border-color: var(--c-line); }
html:root[data-theme="light"][data-palette="coral"] svg.pl-mini { background: var(--side); }

/* round 3 (2026-11-28) */

/* >>> generated by tools/coral_solid.py — do not edit by hand */
/* <<< end of generated part */

/* ══ CORAL = THE 48 COLOURS OF COLOUR ROLES (owner 2026-12-03 — design-demos/33-coral-system, 35-rules "Only the 48 colours")
   Fixed hex, nothing mixed or see-through. Every older name Coral uses points at one of these. Last in the file, so it wins.
   Coral has its own Primary (mint); the accent picker does not apply. ══ */
html:root[data-theme="light"][data-palette="coral"] {
  /* neutrals */
  --bg: #c5d5d8; --side: #ffffff; --hover: #e6eef0; --border-color: #b9cdd1; --text-muted: #56638f; --text: #0a2563;
  --text-2: #2b3f78; --rail-text: #c6d0ee; --rail-sel: #1a3a82; --link: #c4470a; --on-accent: #ffffff;
  /* roles */
  --c-prim: #36bfa1; --prim-soft: #d4f2ea; --prim-line: #8fdcc9; --prim-strong: #146b58;
  --c-sec: #8fa5aa; --sec-soft: #e6eef0; --sec-line: #b9cdd1; --sec-strong: #3b5359;
  --c-ok: #1d8a72; --ok-soft: #d2efe6; --ok-line: #96d3c2; --ok-strong: #12584a;
  --c-err: #d7500b; --err-soft: #fde0cc; --err-line: #f6b48d; --err-strong: #9a3a07;
  --c-warn: #ffa630; --warn-soft: #fef3c7; --warn-line: #fcd57a; --warn-strong: #8a5300;
  --c-info: #0da3b9; --info-soft: #cdeef3; --info-line: #8fd5e0; --info-strong: #0b5f6c;
  --c-gold: #f68645; --gold-soft: #fde5d3; --gold-line: #f8bd95; --gold-strong: #8a3d0a;
  --c-drk: #0a2563; --drk-soft: #d6ddee; --drk-line: #a9b6d8; --drk-strong: #0a2563;
  /* code */
  --sx-k: #cf222e; --sx-n: #0550ae; --sx-f: #8250df; --sx-s: #116329; --sx-c: #6e7781; --sx-i: #953800;

  /* the older names */
  --bg-dark: var(--border-color); --block-bg: var(--side); --block-text: var(--text); --block-border: var(--border-color);
  --standard-tab: var(--side); --standard-tab-text: var(--text-muted); --standard: var(--side); --standard-text: var(--text); --hover-text: var(--text);
  --active: var(--c-prim); --active-text: var(--on-accent); --disabled: var(--sec-soft); --disabled-text: var(--c-sec);
  --success: var(--c-ok); --alert: var(--c-err); --info: var(--c-info); --warning: var(--warn-strong); --primary: var(--c-prim); --orange: var(--c-gold);
  --subtoolbar-bg: var(--side); --subtoolbar-text: var(--text);
  --button-bg: var(--side); --button-text: var(--text); --button-hover-bg: var(--c-prim); --button-disabled-bg: var(--sec-soft); --button-disabled-text: var(--c-sec);
  --vd-accent: var(--c-prim); --vd-green: var(--c-ok); --vd-yellow: var(--c-warn); --vd-purple: var(--c-drk); --vd-cyan: var(--c-info); --vd-red: var(--c-err);
  --vd-surface: var(--side); --vd-surface-2: var(--sec-soft); --vd-border: var(--border-color); --vd-text: var(--text); --vd-text-muted: var(--text-muted);
  --vd-bg: var(--bg); --vd-canvas-bg: var(--side); --vd-grid-color: var(--sec-soft); --vd-border-glow: var(--c-prim);
  --vd-accent-glow: var(--prim-line); --vd-green-glow: var(--ok-line); --vd-yellow-glow: var(--warn-line);
  --text-muted-2: var(--text-muted); --text-faint: var(--c-sec);
  --accent-text: var(--prim-strong); --accent-text-2: var(--prim-strong); --accent-text-3: var(--prim-strong); --accent-text-4: var(--c-ok);
  --red-text: var(--err-strong); --red-text-2: var(--err-strong); --orange-text: var(--link); --yellow-text: var(--warn-strong);
  --code-bg: var(--prim-soft); --scroll-thumb: var(--sec-line); --scroll-thumb-hover: var(--c-sec); --view-header-bg: var(--prim-soft);
  --tooltip-bg: var(--text); --tooltip-text: var(--side);
  --purple: var(--c-drk); --cyan: var(--c-info); --accent: var(--prim-strong); --tint-soft: var(--prim-soft); --tint-ink: var(--link);
  --pt-btn-bg: var(--side); --pt-btn-bg-hover: var(--hover); --pt-btn-bd: var(--border-color); --pt-btn-bd-hover: var(--c-sec);
  --pt-danger-bg: var(--side); --pt-danger-bd: var(--err-line); --pt-danger-text: var(--err-strong); --pt-in-bg: var(--side); --pt-in-bd: var(--border-color); --pt-on-accent: var(--on-accent);
  --ok-soft-x: var(--ok-soft); --ok-line-x: var(--ok-line); --ok-strong-x: var(--ok-strong);
  --err-soft-x: var(--err-soft); --err-line-x: var(--err-line); --err-strong-x: var(--err-strong);
  --warn-soft-x: var(--warn-soft); --warn-line-x: var(--warn-line); --warn-strong-x: var(--warn-strong);
  --info-soft-x: var(--info-soft); --info-line-x: var(--info-line); --info-strong-x: var(--info-strong);
  --prim-soft-x: var(--prim-soft); --prim-line-x: var(--prim-line); --prim-strong-x: var(--prim-strong);
  --sec-soft-x: var(--sec-soft); --sec-line-x: var(--sec-line); --sec-strong-x: var(--sec-strong);
  --fi-prim: var(--c-prim); --fi-info: var(--c-info); --fi-warn: var(--c-warn);
  --cl-line: var(--border-color); --cl-row-hover: var(--hover);
  /* the older step names: acc / vio = Primary, org = Gold, n = the neutrals, shade = the light grey of the boxes; Mid = Soft */
  --acc-soft: var(--prim-soft); --acc-mid: var(--prim-soft); --acc-line: var(--prim-line); --acc-strong: var(--link);
  --vio-soft: var(--drk-soft); --vio-mid: var(--drk-soft); --vio-line: var(--drk-line);
  --org-soft: var(--gold-soft); --org-mid: var(--gold-soft); --org-line: var(--gold-line);
  --ok-mid: var(--ok-soft); --err-mid: var(--err-soft); --warn-mid: var(--warn-soft); --info-mid: var(--info-soft); --prim-mid: var(--prim-soft); --sec-mid: var(--sec-soft);
  --n-soft: var(--sec-soft); --n-mid: var(--sec-soft); --n-line: var(--border-color);
  --shade-soft: var(--sec-soft); --shade-mid: var(--sec-soft); --shade-line: var(--border-color);
}
/* inside the white boxes, what used the page colour takes the light grey of the boxes */
html:root[data-theme="light"][data-palette="coral"] :is(.hw-w, .ts-section, .ov-card, .sv-kpi, .ts-stat-card, .modal-content, .dropdown-menu, #main-sidebar) { --bg: var(--sec-soft); }
/* the main action: hover is Primary Strong (as in dark) */
html:root[data-theme="light"][data-palette="coral"] :is(.ts-btn-primary, .btn.btn-primary):hover { background: var(--prim-strong) !important; border-color: var(--prim-strong) !important; }
html:root[data-theme="light"][data-palette="coral"] ::selection { background: var(--prim-soft); }
