/* =============================================================================
 * Via Hive Admin - STYLE LAYER (visual restyle only; D-426 integration, D-430 PRESERVE-FIRST)
 * -----------------------------------------------------------------------------
 * D-430 (Founder): the warm beige/peach page background was REJECTED. This layer keeps the Admin's own identity -
 * the neutral pearl canvas (--vh2-bg-canvas via the Admin per-surface override in the canonical tokens), the flush
 * 60px topbar, the 248px/64px sidebar, the dense tables/rows/forms and every workflow - and integrates only the
 * useful D-426 component finish. BRAND POLISH 2026-10-25 (Founder; evidence/brand-polish-2026-10-25/BRAND-SYSTEM.md):
 * orange is the ONLY accent - ONE primary button (brand gradient pill, inset top highlight + tight crisp shadow),
 * ONE secondary (white pill, 1px hairline, ink label), quiet (text) and danger (solid red); orange focus ring,
 * orange switches / checkboxes / selected tabs / pagination / progress; resting icons and info chips neutral;
 * green only for completed / delivered / paid chips and success checks; 1px hairline cards with no large blurred
 * shadows; no decorative blue.
 *
 * RULES (guarded by scripts/verify-design-tokens.js + verify-vh2-legacy-css-compat.js):
 *  - NO page/canvas wash (no radial/linear gradient on body, .v2-app, .page-login); the canvas is the flat token.
 *  - NO density change: this file must not set vertical padding/height/min-height on table rows/cells, list rows,
 *    form controls or list buttons, and must not enlarge heading/value font sizes (colour, radius, border, shadow,
 *    weight and horizontal padding only). The frozen Cycle 1 candidate (3f806f8b5) is the density reference.
 *  - Shadows are neutral (no orange/brown tint).
 * Loaded LAST (after vh2-shell.css). Consumes ONLY semantic --vh2-* roles from vh2-tokens.css (no hard-coded brand
 * hex; rgba() black/navy scrims and color-mix() of roles are used for tints/shadows). Selectors are prefixed
 * `:root body` so they beat the legacy bridge's !important rules on specificity without touching them. No markup,
 * behaviour, route, permission or business-logic change.
 * ========================================================================== */

:root {
  --vh2-r-card: var(--vh2-r-xl);
  --vh2-r-field: var(--vh2-r-md);
  --vh2-shade: rgba(41, 37, 36, .30);
  /* brand polish: crisp shadows only. Cards = hairline + 1px lift; primary = inset highlight + tight orange-tinted drop; secondary = 1px lift */
  --vh2-shadow-card: 0 1px 2px rgba(41, 37, 36, .05);
  --vh2-shadow-pill: 0 1px 2px rgba(120, 30, 0, .25), 0 2px 6px -2px color-mix(in srgb, var(--vh2-action-primary-bg) 45%, transparent);
  --vh2-shadow-pill-hover: 0 1px 2px rgba(120, 30, 0, .30), 0 4px 10px -3px color-mix(in srgb, var(--vh2-action-primary-bg) 55%, transparent);
  --vh2-shadow-blue: 0 1px 2px rgba(41, 37, 36, .06);   /* name kept for compatibility: the secondary button lift (no blue) */
  --vh2-hairline-ring: inset 0 0 0 1px var(--vh2-border-strong);
  --vh2-primary-inset: inset 0 1px 0 rgba(255, 255, 255, .25);   /* the primary button's soft top highlight */
  --vh2-primary-text-shadow: 0 1px 1px rgba(28,25,23,.18);
  --vh2-focus-glow: 0 0 0 3px color-mix(in srgb, var(--vh2-focus-ring) 30%, transparent);
  --vh2-shadow-pop: 0 4px 12px -2px rgba(41, 37, 36, .10), 0 2px 4px -2px rgba(41, 37, 36, .06);
  --vh2-shadow-overlay-neutral: 0 24px 48px -12px rgba(41, 37, 36, .18);
  --vh2-hairline: 1px solid var(--vh2-border-default);
  /* white-label gradient: the CTA gradient shifted toward its deep end so the white label keeps the best contrast it can */
  --vh2-cta-size: 100% 100%;
  --vh2-cta-pos: 0 0;
  /* D-434 Fix F6: warning / callout surfaces. The amber-50 (#FFF1D8) and orange-50 tints read peach on a white page, so a callout is a
     NEUTRAL cool surface; the warning reads from its amber left edge, amber icon and amber text (both pairs >= AA). */
  --vh2-callout-bg: var(--vh2-surface);   /* brand polish: white (was cool #F8FAFC); the amber hairline + left edge carry the warning */
  --vh2-callout-accent: var(--vh2-warning-fg);
  /* U35 (Founder 2026-10-29): gold rating colour, shared with the website token `rating` (#F5B301; deep text #9C6F00) */
  --vh2-rating: #F5B301; --vh2-rating-text: #9C6F00;
}
:root[data-theme="dark"] {
  --vh2-callout-bg: #1B2240;
  --vh2-shade: rgba(28,25,23,.75);
  --vh2-shadow-card: 0 1px 2px rgba(28,25,23,.4), 0 12px 24px -20px var(--vh2-shade);
  --vh2-hairline: 1px solid var(--vh2-border-default);
}

/* ------------------------------------------------------------------ canvas */
/* Flat neutral canvas from the token (pearl in light, navy in dark). No gradient wash anywhere on the page. */
:root body,
html[data-vh2="on"] body { background: var(--vh2-bg-canvas) !important; }
:root body .v2-app { background: var(--vh2-bg-canvas); }

/* ------------------------------------------------------------------ topbar */
/* flush 60px bar exactly as in the frozen candidate (no floating pill bar); only the controls are finished */
:root body .vh2-topbar { background: var(--vh2-surface); border-bottom: 1px solid var(--vh2-border-default); }
:root body .vh2-topbar__search {
  border-radius: var(--vh2-r-pill);
  background: var(--vh2-bg-sunken);
  color: var(--vh2-text-secondary);
  font-weight: 600;
}
:root body .vh2-topbar__search:hover { background: var(--vh2-surface); color: var(--vh2-text-primary); box-shadow: var(--vh2-hairline-ring); }
:root body .vh2-topbar__search kbd {
  color: var(--vh2-text-secondary); background: var(--vh2-surface);
  border-color: var(--vh2-border-default); border-radius: var(--vh2-r-pill); padding: 1px 8px;
}
:root body .vh2-topbar__gsearch .vh-gsearch-box {
  border-radius: var(--vh2-r-pill) !important; background: var(--vh2-bg-sunken) !important;
  border: 1px solid transparent !important; box-shadow: none !important; padding: 0 var(--vh2-s4);
}
:root body .vh2-topbar__gsearch .vh-gsearch-box:focus-within,
:root body .vh2-topbar__gsearch .vh-gsearch.open .vh-gsearch-box {
  background: var(--vh2-surface) !important; border-color: var(--vh2-focus-ring) !important; box-shadow: var(--vh2-focus-glow) !important;
}
:root body .vh2-topbar__gsearch .vh-gsearch-input,
:root body .vh2-topbar__gsearch .vh-gsearch-input:focus {
  background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding-left: 0 !important;
}
:root body .vh2-icon-btn { border-radius: var(--vh2-r-pill); background: var(--vh2-bg-sunken); color: var(--vh2-text-secondary); }
:root body .vh2-icon-btn:hover { background: var(--vh2-brand-soft); color: var(--vh2-brand-text); }
:root body .vh2-sidebar__rail-toggle { background: var(--vh2-bg-sunken); color: var(--vh2-text-secondary); }
:root body .vh2-topbar__user { color: var(--vh2-text-primary); font-weight: 600; }
:root body .vh2-topbar__logout { background: transparent; color: var(--vh2-text-secondary); }
:root body .vh2-topbar__logout:hover { background: var(--vh2-danger-bg); color: var(--vh2-danger-fg); }
:root body .vh2-topbar__pending { background: var(--vh2-callout-bg); color: var(--vh2-warning-fg); }

/* ----------------------------------------------------------------- sidebar */
/* Structure, widths, item height (36px) and brand block stay as in the frozen shell; only the finish changes. */
:root body .vh2-sidebar { border-right: 1px solid var(--vh2-border-default); }
:root body .vh2-sidebar__brand img { max-width: 76px; max-height: 76px; width: auto; height: auto; border-radius: var(--vh2-r-md); }   /* was 132px: the map badge dominated the rail */
:root body .vh2-sidebar__group { color: var(--vh2-text-tertiary); letter-spacing: .08em; }
:root body .vh2-sidebar__item { border-radius: var(--vh2-r-lg); color: var(--vh2-text-secondary); font-weight: 600; }
:root body .vh2-sidebar__item:hover { background: var(--vh2-bg-sunken); color: var(--vh2-text-primary); }
:root body .vh2-sidebar__item.vh2-sidebar__item--active,
:root body .vh2-sidebar__entry.vh2-sidebar__entry--active > .vh2-sidebar__item {
  background: #F1F1EF; background-image: none;
  color: #B8340F; font-weight: 600;
  box-shadow: none; text-shadow: none;
}
:root body .vh2-sidebar__item > vh2-icon { opacity: .9; color: var(--vh2-brand); }
:root body .vh2-sidebar__sub li a { border-radius: var(--vh2-r-lg); font-weight: 500; }
:root body .vh2-sidebar__sub li a:hover { background: var(--vh2-bg-sunken); color: var(--vh2-text-primary); }
:root body .vh2-sidebar__sub li a.vh2-sidebar__item--active { background: #F1F1EF; color: #B8340F; font-weight: 600; }
:root body .vh2-shell--rail .vh2-sidebar__item { padding: 0; }

/* ------------------------------------------------- headings / page header */
:root body h1, :root body .page-header h1 { color: var(--vh2-text-primary) !important; font-weight: 700; letter-spacing: -.02em; }
:root body .page-head, :root body .page-header { border-bottom: 0 !important; }
/* S5 (review): :where() keeps specificity at (0,0,1) so single-class shell rules (sidebar sub-links, dropdown links, dashboard growth links) win */
:where(:root body) a { color: var(--vh2-text-link); }
:where(:root body) a:hover { color: var(--vh2-action-primary-bg-pressed); }
:root body .breadcrumb > li > a { color: var(--vh2-text-secondary); }

/* ------------------------------------------- cards, panels, tiles, widgets */
:root body .panel,
:root body .widget,
:root body .card,
:root body .tile,
:root body .vh2-card {
  background: var(--vh2-surface) !important;
  border: var(--vh2-hairline) !important;
  border-radius: var(--vh2-r-card) !important;
  box-shadow: var(--vh2-shadow-card) !important;
}
:root body .panel-heading,
:root body .tile-header,
:root body .panel-primary > .panel-heading,
:root body .panel-info > .panel-heading {
  background: transparent !important;
  border-bottom: 1px solid var(--vh2-border-subtle) !important;
}
:root body .tile-body, :root body .panel-body { background: transparent !important; }
:root body .panel-footer, :root body .tile-footer, :root body .modal-footer { background: var(--vh2-bg-subtle) !important; border-top: 1px solid var(--vh2-border-subtle) !important; }
:root body .tile-header h1, :root body .tile-header h2, :root body .tile-header h3 { font-weight: 700; letter-spacing: -.01em; }
/* S1 (review): .tile/.panel keep the frozen overflow (visible) so datepicker/dropdown/ui-select popups are not clipped; rounded corners are carried by the first/last child instead */
:root body .tile > .tile-header:first-child, :root body .panel > .panel-heading:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
:root body .tile > .tile-footer:last-child, :root body .panel > .panel-footer:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }

/* Legacy stat tiles (.feature-box-container): white, rounded, controlled icon accents (orange / blue / navy), one idea per tile. */
:root body .feature-box-container .card {
  border-radius: var(--vh2-r-card) !important;
  min-height: 0 !important; height: auto !important;
}
:root body .feature-box-container .card:hover { box-shadow: var(--vh2-shadow-sm) !important; border-color: var(--vh2-border-strong) !important; }
:root body .feature-box-container .card .front,
:root body .feature-box-container .card .front[class*="bg-"] {
  background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
  height: auto !important; min-height: 0 !important;
}
:root body .feature-box-container .card .front .row { display: flex; flex-direction: row-reverse; align-items: center; gap: var(--vh2-s3); margin: 0; }
:root body .feature-box-container .card .front .row > [class*="col-"] { float: none; width: auto; padding: 0; }
:root body .feature-box-container .card .front .row > [class*="col-"]:last-child { flex: 1 1 auto; min-width: 0; }
:root body .feature-box-container .card .front p.text-elg { font-weight: 700 !important; letter-spacing: -.02em; }
:root body .feature-box-container .card .front span { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--vh2-text-secondary) !important; overflow-wrap: anywhere; }
:root body .feature-box-container .card .front i.fa {
  width: 40px; height: 40px; border-radius: var(--vh2-r-pill); font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--vh2-brand-soft) !important; color: var(--vh2-brand-text) !important;
}
:root body .feature-box-container:nth-child(3n+2) .card .front i.fa { background: var(--vh2-neutral-bg) !important; color: var(--vh2-text-secondary) !important; }
:root body .feature-box-container:nth-child(3n) .card .front i.fa { background: var(--vh2-neutral-bg) !important; color: var(--vh2-text-primary) !important; }

/* ---------------------------------------------------------------- dashboard */
/* Same sizes/paddings as the frozen dashboard (24px title, 28px KPI value, 15px section titles): finish only. */
:root body .vh2-dash__head h1 { font-weight: 700; letter-spacing: -.02em; }
:root body .vh2-dash__section-title { font-weight: 700; letter-spacing: -.01em; }
:root body .vh2-kpi {
  position: relative; overflow: hidden;
  border: var(--vh2-hairline); border-radius: var(--vh2-r-card);
  box-shadow: var(--vh2-shadow-card);
}
:root body a.vh2-kpi:hover { border-color: var(--vh2-border-strong); box-shadow: var(--vh2-shadow-sm); }
:root body .vh2-kpi__label { font-weight: 600; color: var(--vh2-text-secondary); }
:root body .vh2-kpi__value { font-weight: 700; letter-spacing: -.025em; color: var(--vh2-text-primary); }
:root body .vh2-kpi::after {   /* controlled accent dot: orange / blue / navy / orange */
  content: ""; position: absolute; top: var(--vh2-s4); right: var(--vh2-s4);
  width: 10px; height: 10px; border-radius: 50%; background: var(--vh2-brand);
  box-shadow: 0 0 0 5px var(--vh2-brand-soft);
}
:root body .vh2-kpi:nth-child(2)::after { background: var(--vh2-text-tertiary); box-shadow: 0 0 0 5px var(--vh2-neutral-bg); }
:root body .vh2-kpi:nth-child(3)::after { background: var(--vh2-structure-bg); box-shadow: 0 0 0 5px var(--vh2-neutral-bg); }
:root[data-theme="dark"] body .vh2-kpi:nth-child(3)::after { background: var(--vh2-text-secondary); }

/* HERO: the headline settled-payments tile is the dashboard's single high-impact surface (brand gradient). */
:root body .vh2-kpi-grid > .vh2-kpi:first-child {
  background: radial-gradient(420px 220px at 92% 0%, rgba(255, 255, 255, .28), transparent 65%), var(--vh2-gradient-brand);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), var(--vh2-shadow-pill);
}
:root body .vh2-kpi-grid > .vh2-kpi:first-child .vh2-kpi__label,
:root body .vh2-kpi-grid > .vh2-kpi:first-child .vh2-kpi__meta { color: var(--vh2-structure-text); opacity: .94; }
:root body .vh2-kpi-grid > .vh2-kpi:first-child .vh2-kpi__value { color: var(--vh2-structure-text); text-shadow: 0 1px 2px rgba(28,25,23,.16); }
:root body .vh2-kpi-grid > .vh2-kpi:first-child::after { background: var(--vh2-structure-text); box-shadow: 0 0 0 5px rgba(255, 255, 255, .26); }

:root body .vh2-stat { border: var(--vh2-hairline); border-radius: var(--vh2-r-lg); box-shadow: var(--vh2-shadow-card); }
:root body a.vh2-stat:hover { border-color: var(--vh2-border-strong); }
:root body .vh2-stat__label { font-weight: 600; }
:root body .vh2-stat__value { font-weight: 700; letter-spacing: -.02em; }
:root body .vh2-alerts-table { background: var(--vh2-surface); border-radius: var(--vh2-r-card); overflow: hidden; box-shadow: var(--vh2-shadow-card); border: var(--vh2-hairline); border-collapse: separate; border-spacing: 0; }
:root body .vh2-alerts-table th { background: var(--vh2-bg-subtle); font-weight: 600; }
:root body .vh2-alerts-table tbody tr:hover td { background: var(--vh2-bg-sunken); }
:root body .vh2-alerts-table a.vh2-review {
  display: inline-block; padding: 0 var(--vh2-s3); line-height: inherit;
  border-radius: var(--vh2-r-pill); background: var(--vh2-surface); color: var(--vh2-text-primary); font-weight: 700; box-shadow: var(--vh2-hairline-ring), var(--vh2-shadow-blue);
}
:root body .vh2-alerts-table a.vh2-review:hover { background: var(--vh2-bg-subtle); color: var(--vh2-text-primary); }
:root body .vh2-dash__growth strong { font-weight: 700; }

/* ------------------------------------------------------------------ tables */
/* Row height and cell padding stay the legacy table values (frozen density): colour, border and hover only. */
:root body .table,
:root body table.listtable { background: transparent !important; }
:root body .table > thead > tr > th,
:root body table.listtable > thead > tr > th {
  background: var(--vh2-bg-subtle) !important;
  color: var(--vh2-text-secondary) !important;
  border-bottom: 1px solid var(--vh2-border-default) !important;
  font-weight: 700; letter-spacing: .06em;
}
:root body .table > tbody > tr > td,
:root body table.listtable > tbody > tr > td { border-top: 1px solid var(--vh2-border-subtle) !important; }
:root body .table > tbody > tr:hover > td,
:root body table.listtable > tbody > tr:hover > td { background: var(--vh2-bg-sunken) !important; }
:root body .table-striped > tbody > tr:nth-of-type(odd) { background: transparent !important; }
:root body .table-responsive, :root body .vh-table-scroll { border-radius: 0 0 var(--vh2-r-card) var(--vh2-r-card); }

/* ----------------------------------------------------------------- buttons */
:root body .btn,
:root body .vh2-btn {
  border-radius: var(--vh2-r-pill) !important;
  font-weight: 700;
  padding-left: var(--vh2-s5) !important; padding-right: var(--vh2-s5) !important;
  box-shadow: none;   /* no border-width change: the frozen .btn has none, adding one made list rows 2px taller */
}
:root body .vh2-btn { padding-left: var(--vh2-s5) !important; padding-right: var(--vh2-s5) !important; }
:root body .btn-xs { padding-left: var(--vh2-s3) !important; padding-right: var(--vh2-s3) !important; }
:root body .btn-sm { padding-left: var(--vh2-s4) !important; padding-right: var(--vh2-s4) !important; }

/* primary = orange gradient pill, white label */
:root body .btn-primary, :root body .btn-greensea, :root body .btn-orange, :root body .btn-success,
:root body .vh2-btn--primary {
  background-color: var(--vh2-action-primary-bg) !important;
  background-image: var(--vh2-gradient-cta) !important;
  background-size: var(--vh2-cta-size); background-position: var(--vh2-cta-pos);
  border-color: transparent !important;
  color: var(--vh2-action-primary-fg) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--vh2-shadow-pill) !important;
  text-shadow: 0 1px 1px rgba(28,25,23,.2);
}
:root body .btn-primary:hover, :root body .btn-greensea:hover, :root body .btn-orange:hover, :root body .btn-success:hover, :root body .vh2-btn--primary:hover {
  background-color: var(--vh2-action-primary-bg-hover) !important;
  background-image: var(--vh2-gradient-brand) !important;   /* hover = the deeper V4 hover gradient #E9663F to #B52B00 (Founder 2026-11-06) */
  background-position: 0 0; filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--vh2-shadow-pill-hover) !important;
}
:root body .btn-primary:active, :root body .btn-greensea:active, :root body .btn-orange:active, :root body .btn-success:active, :root body .vh2-btn--primary:active {
  background-color: var(--vh2-action-primary-bg-pressed) !important; background-image: none !important; transform: none; filter: none;
  box-shadow: inset 0 1px 2px rgba(28,25,23,.25) !important;
}

/* secondary / default = WHITE pill, 1px hairline (inset ring: no border-width change, so no density change), ink label, 1px lift */
:root body .btn-default, :root body .btn-secondary, :root body .btn-border, :root body .btn-white,
:root body .btn-slategray, :root body .btn-darkgray, :root body .btn-drank, :root body .btn-dutch, :root body .btn-amethyst,
:root body .vh2-btn--secondary {
  background: var(--vh2-action-blue-bg) !important; background-image: none !important;
  border-color: transparent !important;
  color: var(--vh2-action-blue-fg) !important;
  box-shadow: var(--vh2-hairline-ring), var(--vh2-shadow-blue) !important;
}
:root body .btn-default:hover, :root body .btn-secondary:hover, :root body .btn-border:hover, :root body .btn-white:hover,
:root body .btn-slategray:hover, :root body .btn-darkgray:hover, :root body .btn-drank:hover, :root body .btn-dutch:hover, :root body .btn-amethyst:hover,
:root body .vh2-btn--secondary:hover {
  background: var(--vh2-action-blue-bg-hover) !important; color: var(--vh2-action-blue-fg) !important; box-shadow: var(--vh2-hairline-ring), var(--vh2-shadow-blue) !important;
}
/* info / blue / cyan template buttons = the same white secondary (brand polish: no blue buttons) */
:root body .btn-info, :root body .btn-blue, :root body .btn-cyan {
  background: var(--vh2-action-blue-bg) !important; background-image: none !important;
  border-color: transparent !important; color: var(--vh2-action-blue-fg) !important; box-shadow: var(--vh2-hairline-ring), var(--vh2-shadow-blue) !important;
}
:root body .btn-info:hover, :root body .btn-blue:hover, :root body .btn-cyan:hover { background: var(--vh2-action-blue-bg-hover) !important; }
/* NOTE: in this codebase Bootstrap .btn-success is the template generic PRIMARY action (Save / Send / Submit / View / Refresh, ~94 uses), so it is
   styled with the primary group above. Explicit green = .btn-green / .vh2-btn--success (white label on emerald in light, navy label on mint in dark). */
/* brand polish: green is never a button colour (green = completed/delivered/paid status only); explicit green buttons are the primary */
:root body .btn-green, :root body .vh2-btn--success {
  background-color: var(--vh2-action-primary-bg) !important; background-image: var(--vh2-gradient-cta) !important;
  background-size: var(--vh2-cta-size); background-position: var(--vh2-cta-pos);
  border-color: transparent !important; color: var(--vh2-action-primary-fg) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--vh2-shadow-pill) !important;
}
:root body .btn-green:hover, :root body .vh2-btn--success:hover { background-image: var(--vh2-gradient-brand) !important; background-position: 0 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--vh2-shadow-pill-hover) !important; }
/* warning = amber soft */
:root body .btn-warning {
  background: var(--vh2-callout-bg) !important; background-image: none !important;
  border-color: var(--vh2-warning-border) !important; color: var(--vh2-warning-fg) !important;
  box-shadow: inset 0 0 0 1px var(--vh2-warning-border) !important;
}
:root body .btn-warning:hover { filter: brightness(.97); box-shadow: inset 0 0 0 1px var(--vh2-warning-fg) !important; }
/* danger = red */
:root body .btn-danger, :root body .btn-red, :root body .btn-lightred, :root body .btn-hotpink,
:root body .vh2-btn--danger {
  background: var(--vh2-action-danger-bg) !important; background-image: none !important;
  border-color: transparent !important; color: var(--vh2-action-danger-fg) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(90, 10, 20, .25) !important;
}
:root body .btn-danger:hover, :root body .btn-red:hover, :root body .btn-lightred:hover, :root body .btn-hotpink:hover, :root body .vh2-btn--danger:hover {
  background: var(--vh2-action-danger-bg) !important; filter: brightness(.9);
}
/* quiet = text-only grey (Founder 2026-10-25: the Bookings 'Trash' list button; red stays only in the confirm dialog) */
:root body .vh2-btn--quiet {
  background: transparent !important; background-image: none !important; border-color: transparent !important;
  color: var(--vh2-text-secondary) !important; box-shadow: none !important;
}
:root body .vh2-btn--quiet:hover, :root body .vh2-btn--quiet:focus-visible { background: var(--vh2-neutral-bg) !important; color: var(--vh2-text-primary) !important; }
:root body .btn-link { background: transparent !important; color: var(--vh2-text-link) !important; box-shadow: none !important; }
:root body .btn-link:hover { text-decoration: underline; }
:root body .btn:focus, :root body .btn:active:focus, :root body .vh2-btn:focus-visible { box-shadow: var(--vh2-focus-glow) !important; }
:root body .btn[disabled], :root body .btn.disabled, :root body fieldset[disabled] .btn, :root body .vh2-btn:disabled {
  background: var(--vh2-neutral-bg) !important; background-image: none !important;
  color: var(--vh2-text-secondary) !important; border-color: transparent !important; box-shadow: none !important; text-shadow: none !important; filter: none !important; opacity: 1 !important;
}
:root body .btn-group > .btn { border-radius: 0 !important; }
:root body .btn-group > .btn:first-child { border-radius: var(--vh2-r-pill) 0 0 var(--vh2-r-pill) !important; }
:root body .btn-group > .btn:last-child { border-radius: 0 var(--vh2-r-pill) var(--vh2-r-pill) 0 !important; }
:root body .btn-group > .btn:only-child { border-radius: var(--vh2-r-pill) !important; }

/* ------------------------------------------- badges / labels / status chips */
:root body .label, :root body .badge, :root body .vh-badge, :root body .vh2-badge {
  border-radius: var(--vh2-r-pill) !important;
  padding-left: 10px !important; padding-right: 10px !important;
  font-weight: 700;
}
:root body .vh-badge--brand, :root body .label-primary, :root body .badge-primary, :root body .label-info, :root body .badge-info {
  background: var(--vh2-brand-soft) !important; color: var(--vh2-brand-text) !important; border-color: transparent !important;
}
/* D-434 Fix F6: warning labels / badges / alerts are the neutral callout surface with amber text and border, not the peach amber-50 fill */
:root body .vh2-badge--warning, :root body .label-warning, :root body .badge-warning, :root body .vh-badge--warning, :root body .alert-warning {
  background: var(--vh2-callout-bg) !important; color: var(--vh2-warning-fg) !important; border-color: var(--vh2-warning-border) !important;
}
:root body .alert-warning { border-left: 4px solid var(--vh2-callout-accent) !important; }
:root body .nav > li > a > .badge, :root body .vh2-sidebar .badge { background: var(--vh2-action-primary-bg) !important; color: var(--vh2-action-primary-fg) !important; }

/* -------------------------------------------------------------- form fields */
:root body .form-control, :root body .form-control[readonly], :root body select, :root body textarea,
:root body input[type="text"], :root body input[type="email"], :root body input[type="password"],
:root body input[type="number"], :root body input[type="search"], :root body input[type="tel"], :root body input[type="date"] {
  border-radius: var(--vh2-r-field) !important;
  border: 1px solid var(--vh2-border-strong) !important;   /* brand polish: 1px hairline (was 1.5px) */
  background: var(--vh2-surface) !important;
  box-shadow: none !important;
  padding-left: var(--vh2-s4) !important; padding-right: var(--vh2-s4) !important;
}
:root body .form-control:focus, :root body select:focus, :root body textarea:focus, :root body input:focus {
  border-color: var(--vh2-focus-ring) !important;
  box-shadow: var(--vh2-focus-glow) !important;
}
:root body .has-error .form-control, :root body .form-control.ng-invalid.ng-touched {
  border-color: var(--vh2-danger-fg) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--vh2-danger-fg) 14%, transparent) !important;
}
:root body label, :root body .control-label { color: var(--vh2-text-primary) !important; font-weight: 700; }
:root body input[type="checkbox"], :root body input[type="radio"] { accent-color: var(--vh2-action-primary-bg); }
:root body .vh-filters { background: var(--vh2-bg-subtle); border-bottom: 1px solid var(--vh2-border-subtle); }
:root body .input-group-addon { border-radius: var(--vh2-r-field); background: var(--vh2-bg-sunken); border-color: var(--vh2-border-strong); color: var(--vh2-text-secondary); }

/* --------------------------------------------- pagination / tabs / dropdown */
:root body .pagination > li > a, :root body .pagination > li > span {
  border-radius: var(--vh2-r-pill) !important; border-color: transparent !important;
  background: var(--vh2-surface) !important; color: var(--vh2-text-primary) !important; font-weight: 700; padding-left: 13px; padding-right: 13px;
  box-shadow: var(--vh2-hairline-ring);
}
:root body .pagination > li > a:hover { background: var(--vh2-bg-subtle) !important; color: var(--vh2-text-primary) !important; }
:root body .pagination > .active > a, :root body .pagination > .active > span, :root body .pagination > .active > a:hover {
  background-color: var(--vh2-action-primary-bg) !important;
  background-image: var(--vh2-gradient-cta) !important; color: var(--vh2-action-primary-fg) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--vh2-shadow-pill);
}
:root body .pagination > .disabled > a, :root body .pagination > .disabled > span { background: var(--vh2-neutral-bg) !important; color: var(--vh2-text-secondary) !important; }
:root body .nav-tabs > li > a { border-radius: var(--vh2-r-pill) !important; color: var(--vh2-text-secondary); font-weight: 600; }
:root body .nav-tabs > li.active > a, :root body .nav-tabs > li.active > a:hover, :root body .nav-tabs > li.active > a:focus {
  background: var(--vh2-brand-soft) !important; color: var(--vh2-brand-text) !important; border-color: transparent !important;
}
:root body .nav-tabs { border-bottom-color: var(--vh2-border-subtle); }
:root body .dropdown-menu { border-radius: var(--vh2-r-lg) !important; box-shadow: var(--vh2-shadow-pop) !important; }
:root body .dropdown-menu > li > a { border-radius: var(--vh2-r-pill); }
:root body .dropdown-menu > li > a:hover { background: var(--vh2-bg-sunken) !important; color: var(--vh2-text-primary) !important; }
:root body .alert { border-radius: var(--vh2-r-lg) !important; }

/* --------------------------------------------------------- modals + toasts */
:root body .modal-content, html[data-vh2="on"] body .modal-content {
  border-radius: var(--vh2-r-card) !important; border: var(--vh2-hairline) !important;
  box-shadow: var(--vh2-shadow-overlay-neutral) !important;
  background: var(--vh2-surface-raised) !important;
}
:root body .modal-header { border-bottom: 1px solid var(--vh2-border-subtle) !important; }
:root body .modal-title { font-weight: 700; letter-spacing: -.01em; }
:root body .modal-backdrop.in { opacity: .5; }
html[data-vh2="on"] body .toast { border-radius: var(--vh2-r-lg); box-shadow: var(--vh2-shadow-pop); }

/* ------------------------------------------------------------------- login */
/* login: the same flat neutral canvas as the console (no beige/peach or gradient wash) */
:root body .page-login { background: var(--vh2-bg-canvas) !important; }
:root body .page-login .container.w-420, :root body .container.w-420 {
  border-radius: var(--vh2-r-xl) !important; border: var(--vh2-hairline) !important;
  box-shadow: var(--vh2-shadow-card) !important;
  padding: var(--vh2-s10) var(--vh2-s8) var(--vh2-s8) !important;
  max-width: 440px !important;
}
:root body .page-login img { border-radius: var(--vh2-r-xl); }
:root body .page-login h1, :root body .page-login h2, :root body .page-login h3, :root body .page-login .text-primary, :root body .page-login .page-title {
  color: var(--vh2-text-primary) !important; font-weight: 700; letter-spacing: -.02em;
}
:root body .page-login .form-control, :root body .page-login input.underline-input { border-radius: var(--vh2-r-pill) !important; padding: 12px var(--vh2-s5) !important; }
:root body .page-login .btn { height: 46px; padding: 0 var(--vh2-s8) !important; }
:root body .page-login a { color: var(--vh2-text-link); font-weight: 600; }

/* ------------------------------------------------------------- misc / a11y */
:root body ::selection { background: color-mix(in srgb, var(--vh2-focus-ring) 25%, transparent); }
:root body .vh2-command-palette__panel { border-radius: var(--vh2-r-card); }
:root body .vh2-command-palette__result--active { background: var(--vh2-brand-soft); }
/* brand polish: info toasts are neutral ink, never blue (the vh2-shell.css rule is density-frozen, so it is overridden here) */
html[data-vh2="on"] body .toast-info { background-color: var(--vh2-ink-800); }

/* ---- round-2 fixes from screenshot review ---- */
:root body .vh2-shell__main, :root body .vh2-shell__content { background: transparent; }
:root body .feature-box-container .card .front *:not(i) { background: transparent !important; box-shadow: none !important; }
:root body .page-login .form-actions, :root body .page-login .form-actions.d-flex { align-items: center; }

/* ---- toggle switches (.switch): off = neutral track, on = brand orange (brand polish: never blue/green); crisp, no glow ---- */
:root body .switch { background: transparent; box-shadow: none; }
:root body .switch-label {
  background: var(--vh2-border-strong); box-shadow: inset 0 1px 2px rgba(28,25,23,.12);
}
:root body .switch-input:checked ~ .switch-label {
  background: var(--vh2-action-primary-bg); box-shadow: inset 0 1px 2px rgba(28,25,23,.18);
}
:root body .switch-input:focus-visible ~ .switch-label { box-shadow: var(--vh2-focus-glow); }
:root body .switch-handle { background: var(--vh2-surface); box-shadow: 0 2px 6px rgba(28,25,23,.28); }
:root body .switch-handle::before { background: var(--vh2-bg-sunken); box-shadow: none; }

/* ---- date-range filter (From / To inputs with calendar buttons): keep each group intact, pill-joined, no overlap ---- */
:root body .list-task .title_one { display: inline-block; vertical-align: top; margin: 0 var(--vh2-s4) var(--vh2-s3) 0; }
:root body .list-task .title_one .input-group.w-md { display: flex; width: 240px; max-width: 100%; }
:root body .input-group .form-control:first-child { border-radius: var(--vh2-r-pill) 0 0 var(--vh2-r-pill) !important; }
:root body .input-group-btn:last-child > .btn { border-radius: 0 var(--vh2-r-pill) var(--vh2-r-pill) 0 !important; margin-left: -1px; }

:root body .list-task .title_one .input-group .form-control { flex: 1 1 auto; width: auto; min-width: 0; float: none; }
:root body .list-task .title_one .input-group-btn { width: auto; display: flex; }

/* (wide list tables: unchanged vs the frozen candidate - the last columns can extend past the card; tracked as a separate follow-up, S1 forbids overflow clipping on .tile/.panel) */
/* ---- login: Forgot Password link is vertically centred with the Login pill ---- */
:root body .page-login .btn-link { display: inline-flex; align-items: center; height: 46px; padding: 0 var(--vh2-s4) !important; }
:root body .input-group-btn > .btn { padding-left: var(--vh2-s4) !important; padding-right: var(--vh2-s4) !important; flex: 0 0 auto; }

/* ---- settings section legends: main.css paints them #ddd (1.4:1 on white); use the token text colour ---- */
:root body .form-group.legend h1, :root body .form-group.legend h2, :root body .form-group.legend h3,
:root body .form-group.legend h4, :root body .form-group.legend h5, :root body .form-group.legend h6 { color: var(--vh2-text-primary) !important; font-weight: 700; }
:root body .form-group.legend p { color: var(--vh2-text-tertiary); border-bottom: 1px dotted var(--vh2-border-strong); }
/* ---- progress bars: brand orange on a neutral track (brand polish: not blue, not template green) ---- */
:root body .progress { border-radius: var(--vh2-r-pill); background: var(--vh2-neutral-bg); box-shadow: none; }
:root body .progress-bar { background: var(--vh2-action-primary-bg) !important; border-radius: var(--vh2-r-pill); color: var(--vh2-action-primary-fg) !important; }

/* ---- missing glyph: the vendored Font Awesome 4.4 has no .fa-pause-circle (the Suspended Clients tile rendered an empty disc);
   map it to the existing fa-pause glyph (CSS only; markup untouched) ---- */
:root body .fa-pause-circle:before { content: "\f04c"; }

/* ---- overlays above the V2 shell (pre-existing defect in the frozen candidate, found by D-430 modal/toast capture) ----
   .v2-app is position:fixed at z-index var(--vh2-z-shell) = 2000000000; Bootstrap modals (inline z-index 1050+), their backdrop (1040+),
   the toastr container (999999), tooltips and popovers are appended to <body> and therefore rendered BEHIND the shell: confirm dialogs and
   toasts were invisible. Raise them just above the shell (inline ng-style z-index needs !important). Stacking order modal > backdrop is kept. */
:root body .modal-backdrop { z-index: 2000000010 !important; }
:root body .modal { z-index: 2000000020 !important; }
:root body #toast-container, :root body .toast-container { z-index: 2000000030 !important; }
/* S2 (review): other body-appended overlays: TinyMCE (menus, windows, modal blocker), Google Places autocomplete, angular-loading-bar */
:root body .tooltip, :root body .popover { z-index: 2000000040 !important; }
:root body .mce-modal-block { z-index: 2000000042 !important; }
:root body .mce-floatpanel, :root body .mce-window, :root body .mce-menu, :root body .mce-tooltip { z-index: 2000000044 !important; }
:root body .pac-container { z-index: 2000000050 !important; }
:root body #loading-bar, :root body #loading-bar-spinner { z-index: 2000000060 !important; }
/* toastr paints toasts at .8 opacity: the page content showed through the label. Solid fill keeps the white label legible. */
html[data-vh2="on"] body #toast-container > .toast { opacity: 1 !important; }
/* selects keep the frozen fixed height; the legacy 4px vertical padding clipped the label ("Bulk Action", "Show 10"): zero vertical padding is height-neutral */
:root body select, :root body select.form-control { padding-top: 0 !important; padding-bottom: 0 !important; }
/* ---- brand polish 2026-10-25: international phone fields - the flag button sat on top of the first digits, because
   the form-control padding rule above replaced intl-tel-input's 52px start padding. Horizontal padding only (density-neutral). ---- */
:root body .intl-tel-input input, :root body .intl-tel-input input[type="tel"], :root body .intl-tel-input input.form-control { padding-left: 52px !important; }
/* ---- brand polish 2026-10-25: detail-page tab bars (.tabs-dark, Provider / Client detail): main.css gave the bar a 15px blurred grey shadow and the
   last tab ("Notifications") wrapped under the others. One hairline bar, no shadow; the tabs stay on one line and scroll sideways when narrow. ---- */
:root body .tabs-dark .nav-tabs { box-shadow: none !important; background: transparent !important; border-bottom: 1px solid var(--vh2-border-default) !important; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
:root body .tabs-dark .nav-tabs > li { float: none; flex: 0 0 auto; }
:root body .tabs-dark .nav-tabs > li > a { white-space: nowrap; }
:root[data-theme="dark"] body .vh2-sidebar__item.vh2-sidebar__item--active,
:root[data-theme="dark"] body .vh2-sidebar__entry.vh2-sidebar__entry--active > .vh2-sidebar__item,
:root[data-theme="dark"] body .vh2-sidebar__sub li a.vh2-sidebar__item--active { background: #2E2A27; color: #FF9A5C; }
