html.hb-dim { --gray-50: #eff1f4; --gray-100: #e4e7eb; --gray-200: #d6dae0; --gray-300: #c4cad2; --gray-400: #b6bec8; --gray-500: #a8b1bc; --gray-600: #6b7480; --gray-700: #4b535e; --gray-800: #3c434d; --gray-900: #343a43; --gray-950: #2b3038; --color-white: #e2e6eb; --primary-300: #9bd9a6; --primary-400: #6cc97f; --primary-600: #0a8637; --success-300: #9edbb6; --success-400: #71cf97; --danger-300: #f7b8b2; --danger-400: #f49c94; --warning-300: #f3d593; --warning-400: #ecc36c; --info-300: #b3d0f6; --info-400: #8cb9f2; --hb-control-border: #88919d; }
/* Form controls: a visible edge (3:1) on the slate cards; Filament's is white at 20 %. Not while
   focused (Filament's green ring) or invalid (its red one). */
html.hb-dim .fi-input-wrp:not(.fi-invalid):not(:focus-within),
html.hb-dim .fi-checkbox-input:not(:checked):not(:focus-visible),
html.hb-dim .fi-radio-input:not(:checked):not(:focus-visible) { --tw-ring-color: var(--hb-control-border); }
html.hb-dim .fi-input-wrp.fi-disabled { --tw-ring-color: var(--gray-600); }
/* The browser's own dropdown lists (plain <select>s, e.g. Log an interaction → Type): Chrome draws
   the open list itself and left the text colour the options only inherit, so Dim showed dark text
   on slate rows (owner, 2026-10-23). Each option gets its own colours. */
html.hb-dim select option, html.hb-dim select optgroup { color: var(--gray-100); background-color: var(--gray-900); }
/* Placeholders everywhere (also the Order Desk's and the travelers' own boxes, which had the
   browser's half-faded text): gray-500, 4.5:1 on a box. */
html.hb-dim ::placeholder { color: var(--gray-500); opacity: 1; }
/* Coloured text (links in tables, status words, outlined buttons): Filament picks the darkest
   shade readable on its near-black cards (500–700); on the slate ones that is too dark, so 400. */
html.hb-dim .dark\:fi-text-color-500,
html.hb-dim .dark\:fi-text-color-600,
html.hb-dim .dark\:fi-text-color-700 { --dark-text: var(--color-400); }
/* Coloured notes (the first-visit tips…): Filament fades their text to 75 %, too faint on the slate. */
html.hb-dim .fi-callout.fi-color .fi-callout-description { color: var(--gray-300); }
/* The page behind a window: darker than Dim's page so the window stands out. */
html.hb-dim .fi-modal-close-overlay { background-color: rgb(18 21 26 / 0.7); }
/* Tooltips stand out from the cards they point at. */
html.hb-dim .tippy-box:not([data-theme~=light]) { background-color: #1e2228; color: var(--color-white); box-shadow: 0 4px 14px rgb(0 0 0 / 0.35); }
html.hb-dim .tippy-box:not([data-theme~=light]) > .tippy-arrow { color: #1e2228; }