/*
 * GGRLeads look overhaul 2026-10 — wave 0: empty on purpose (wired in, no visible change).
 * Loaded by templates/layouts/main.php + portal.php only while config/ui.php GGR_UI_2026 is true.
 * Rules: every selector is scoped under .gu-2026 and/or prefixed .gu-*; ≤500 lines per file (split per wave);
 * text over art sits on a scrim and passes WCAG AA (scripts/ui-shoot.mjs); motion off under prefers-reduced-motion and ≤768px.
 * Doc: docs/UI-2026-10.md.
 */

/* ==== Wave B · portal shared layout (templates/layouts/portal.php). Scope: html.gu-portal (portal.php only; main.php loads this file too) + .gu-portal-* ==== */

/* Text colours that pass AA. Fills keep --accent (deepened in light, where white on it is 5.6:1); text that used the
   coral (3.7:1 on white, 3.8:1 on slate-800) reads --gu-accent-text instead. Muted grey: slate-600 light, #a8b5c7 dark. */
html.gu-portal[data-theme="light"] { --accent: #c42a47; --accent-hover: #b3243f; --text-secondary: #475569; --gu-accent-text: #c42a47; }
html.gu-portal[data-theme="dark"]  { --text-secondary: #a8b5c7; --gu-accent-text: #f87185; }
html.gu-portal .text-\[var\(--accent\)\], html.gu-portal .text-\[\#e94560\],
html.gu-portal .nav-link:hover, html.gu-portal .badge-accent, html.gu-portal .lead-contact a { color: var(--gu-accent-text); }
html.gu-portal .hover\:text-\[var\(--accent\)\]:hover { color: var(--gu-accent-text); }

/* Page: paper backdrop under a 78% theme-colour scrim (fixed = a slow parallax against the scroll), the theme colour underneath. */
html.gu-portal body {
    background-color: var(--bg-primary);
    --gu-page-scrim: linear-gradient(color-mix(in srgb, var(--bg-primary) 78%, transparent), color-mix(in srgb, var(--bg-primary) 78%, transparent));
    background-image: var(--gu-page-scrim), url('/assets/art/bg-gs-paper-light.webp');
    background-size: cover; background-position: center; background-attachment: fixed;
}
html.gu-portal[data-theme="dark"] body { background-image: var(--gu-page-scrim), url('/assets/art/bg-gs-paper-dark.webp'); }

/* Header: navy art band in both themes (the theme variables are re-scoped inside it), gold/coral signature edge. */
html.gu-portal .gu-portal-head {
    --text-primary: #f1f5f9; --text-secondary: #a8b5c7; --bg-tertiary: rgb(255 255 255 / .1); --gu-accent-text: #f87185;
    position: relative; color: var(--text-primary); border-bottom: 0;
    background-color: #0f172a;
    background-image: linear-gradient(90deg, rgb(10 14 30 / .9), rgb(10 14 30 / .72) 55%, rgb(10 14 30 / .55)), url('/assets/art/bg-legal-band.webp');
    background-size: cover; background-position: center 40%;
}
html.gu-portal .gu-portal-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, #f5b942, #c42a47 50%, #f5b942); }
/* Uploaded org logos are often dark ink on transparent: give them a light chip so they read on navy. */
html.gu-portal .gu-portal-head img[alt="Logo"] { background: rgb(255 255 255 / .94); padding: 3px 6px; border-radius: 8px; box-shadow: 0 4px 12px -4px rgb(0 0 0 / .5); }
html.gu-portal .gu-portal-head .bg-gradient-to-br { box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 8px 20px -8px rgb(196 42 71 / .7); }

/* Nav: frosted strip; the active page is a deep coral pill (white on #b3243f→#c42a47 is ≥5.6:1). */
html.gu-portal .gu-portal-nav {
    background: color-mix(in srgb, var(--bg-secondary) 86%, transparent);
    backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
    box-shadow: 0 10px 24px -18px rgb(15 23 42 / .5);
}
html.gu-portal .nav-link.active {
    color: #fff; background-image: linear-gradient(135deg, #b3243f, #c42a47);
    box-shadow: 0 1px 0 rgb(255 255 255 / .2) inset, 0 6px 14px -8px rgb(196 42 71 / .8);
}
html.gu-portal .nav-link.active .ggr-leads-unread { box-shadow: 0 0 0 2px rgb(255 255 255 / .85); }

/* Cards: a soft lift and a warm hairline instead of the flat border. */
html.gu-portal .portal-card, html.gu-portal .stat-card {
    box-shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 12px 28px -20px rgb(15 23 42 / .45);
}
html.gu-portal[data-theme="dark"] .portal-card, html.gu-portal[data-theme="dark"] .stat-card { box-shadow: 0 1px 0 rgb(255 255 255 / .05) inset, 0 16px 32px -20px rgb(0 0 0 / .8); }
html.gu-portal .stat-card:hover { border-color: rgb(245 185 66 / .45); }

/* Primary button: white on the old coral→salmon gradient was 2.8–3.8:1. */
html.gu-portal .portal-btn {
    background: linear-gradient(135deg, #b3243f, #c42a47); color: #fff;
    box-shadow: 0 1px 0 rgb(255 255 255 / .2) inset, 0 6px 16px -8px rgb(196 42 71 / .7);
}
html.gu-portal .portal-btn:hover { background: linear-gradient(135deg, #a8213b, #b3243f); box-shadow: 0 1px 0 rgb(255 255 255 / .2) inset, 0 8px 20px -8px rgb(196 42 71 / .8); }

/* ==== Wave B · dashboard (templates/portal/dashboard.php). Status label text = WCAG black/white pick in getDashStatusTextColor. ==== */
html.gu-portal .lead-contact-stacked a { color: var(--gu-accent-text); }
/* Green panels/buttons (credited banner, View Credited, Add Lead): green-500/#10b981 text on their pale tints was 1.8–2.2:1 in
   light; green-800/emerald-800 there, green-400 in dark, and an opaque tint so the paper art never shows through. */
html.gu-portal[data-theme="light"] .border-green-500\/30 .text-green-500, html.gu-portal[data-theme="light"] .border-green-500\/30.text-green-500 { color: #166534; }
html.gu-portal[data-theme="light"] .text-\[\#10b981\] { color: #065f46; }
html.gu-portal[data-theme="dark"] .border-green-500\/30 .text-green-500, html.gu-portal[data-theme="dark"] .border-green-500\/30.text-green-500 { color: #4ade80; }
html.gu-portal .border-green-500\/30, html.gu-portal .bg-\[\#10b981\]\/10 { background-color: color-mix(in srgb, var(--bg-secondary) 88%, #22c55e); }

/* ==== Wave B · leads (templates/portal/leads.php). Status labels: WCAG black/white pick in getStatusTextColor. ==== */
html.gu-portal .ggr-queue-chip.active { color: var(--gu-accent-text); }

/* ==== Wave B · lead-detail (templates/portal/lead-detail.php). Status labels: WCAG pick in getLeadStatusTextColor. ==== */
/* Page buttons on the old coral (white on #e94560 is 3.8:1) take the deep coral of .portal-btn; hover stays deep. */
html.gu-portal .bg-\[\#e94560\].text-white { background-color: #c42a47; }
html.gu-portal .bg-\[\#e94560\].text-white:hover { background-color: #b3243f; }
/* Light: green/red text on white or pale tints (2.0–2.6:1) → green-800 / red-700; accent badges deepen on their pink tint. */
html.gu-portal[data-theme="light"] dd.text-green-500, html.gu-portal[data-theme="light"] .bg-green-500\/10.text-green-500 { color: #166534; }
html.gu-portal[data-theme="light"] .text-red-400 { color: #b91c1c; }
html.gu-portal[data-theme="light"] .badge-accent { color: #b3243f; }

/* ==== Wave B · team (templates/portal/team.php). Light: dark-theme 400 tints as text (1.4:1) → 800 shades. ==== */
html.gu-portal[data-theme="light"] .text-green-400 { color: #166534; }
html.gu-portal[data-theme="light"] .text-yellow-400 { color: #854d0e; }

/* ==== Wave B · help (templates/portal/help.php) + settings (templates/portal/settings.php) ==== */
/* Accent text on the tertiary boxes (dark: #f87185 on slate-700 is 3.8:1) and tinted badges. */
html.gu-portal[data-theme="dark"] .bg-\[var\(--bg-tertiary\)\] { --gu-accent-text: #fb9aa8; }
html.gu-portal[data-theme="light"] .bg-\[\#e94560\]\/20.text-\[\#e94560\] { color: #9f1f37; }
html.gu-portal[data-theme="dark"] .bg-\[\#e94560\]\/20.text-\[\#e94560\] { color: #fb9aa8; }
html.gu-portal[data-theme="light"] .text-blue-400 { color: #1e40af; }
html.gu-portal[data-theme="dark"] .bg-blue-500\/20.text-blue-400 { color: #93c5fd; }
html.gu-portal[data-theme="dark"] .bg-green-500\/20.text-green-400 { color: #86efac; }

@media (max-width: 768px) { html.gu-portal body { background-attachment: scroll; } }
@media (prefers-reduced-motion: reduce) {
    html.gu-portal body { background-attachment: scroll; }
    html.gu-portal .portal-btn:hover, html.gu-portal .stat-card:hover { transform: none; }
}

/* status-log: the old status (opacity-60) and the rep name (opacity .7) faded secondary text to 2.8–3.5:1; full ink, still secondary colour */
html.gu-portal .log-details .opacity-60, html.gu-portal .log-user { opacity: 1; color: var(--text-secondary); }
/* Faded secondary text (opacity .6–.7 on --text-secondary read 2.6–4.2:1): full ink, the secondary colour + small size keep it quiet */
html.gu-portal .text-xs.opacity-70:not(button), html.gu-portal .text-xs.opacity-60:not(button), html.gu-portal .dash-lead-captured,
html.gu-portal .lead-captured, html.gu-portal .lead-assignee.unassigned { opacity: 1; color: var(--text-secondary); }
/* workload: amber warn counts (#d97706, 3.0:1 on light cards) → amber-800 in light; the faded zeros/dashes (opacity .6) → full ink, secondary colour */
html.gu-portal[data-theme="light"] .wl-warn { color: #92400e; }
html.gu-portal .wl-zero { opacity: 1; color: var(--text-secondary); }
/* api-explorer: the primary button fills with --accent (white on dark-theme #e94560 = 3.8:1) → the deep coral fill the portal buttons use */
html.gu-portal .dcx-btn-primary { background: #c42a47; border-color: #c42a47; }
html.gu-portal .dcx-btn-primary:hover { background: #b3243f; }
/* trips: assign chips + Done/ESD badges were 500-shade text on 15% tints (1.9–3.4:1) → 700/800 shades in light, 300 shades in dark */
html.gu-portal[data-theme="light"] .ggr-trip-assign-chip { color: #6d28d9; }
html.gu-portal[data-theme="light"] .ggr-trip-assign-chip.mine { color: #065f46; }
html.gu-portal[data-theme="light"] .ggr-trip-assign-chip.unassigned { color: #475569; }
html.gu-portal[data-theme="light"] .ggr-trip-badge-finalized { color: #166534; }
html.gu-portal[data-theme="light"] .ggr-trip-badge-esd { color: #1d4ed8; }
html.gu-portal[data-theme="dark"] .ggr-trip-assign-chip { color: #c4b5fd; }
html.gu-portal[data-theme="dark"] .ggr-trip-assign-chip.mine { color: #6ee7b7; }
/* trips-build: available leads that already have a status were faded to opacity .55 (text 1.7–4.0:1) → full ink; a dashed border keeps them quiet */
html.gu-portal .ggr-available-lead.has-status, html.gu-portal .ggr-available-lead.has-status:hover { opacity: 1; border-style: dashed; }
/* deals: status + type badges were 500/600-shade text on 10–15% tints (2.6–4.4:1) → 700/800 shades in light, 200/300 shades in dark */
html.gu-portal[data-theme="light"] .deal-card-status { color: #1d4ed8; }
html.gu-portal[data-theme="light"] .deal-card-status.cancelled { color: #b91c1c; }
html.gu-portal[data-theme="light"] .deal-type-badge.solar { color: #854d0e; }
html.gu-portal[data-theme="light"] .deal-type-badge.battery { color: #166534; }
html.gu-portal[data-theme="light"] .deal-type-badge.roof-addon { color: #475569; }
html.gu-portal[data-theme="dark"] .deal-card-status { color: #93c5fd; }
html.gu-portal[data-theme="dark"] .deal-card-status.cancelled { color: #fca5a5; }
html.gu-portal[data-theme="dark"] .deal-type-badge.roofing { color: #fecaca; }
html.gu-portal[data-theme="dark"] .deal-type-badge.roof-addon { color: #cbd5e1; }
/* deals: the % next to the progress bar took the bar colour inline (Booking's renderProgressBarHtml, 1.8–3.9:1) → full ink; the bar keeps the colour */
html.gu-portal .deal-card-progress span[style*="monospace"] { color: var(--text-primary) !important; }
/* calls-texts: coral fills (range pill, outbound bubbles) → the deep coral; faded meta/"Calls only" → full ink; "Open lead" → accent text; light-theme call/blocked labels were 500-shade inline colours (2.0–3.8:1) → 700 shades (icons follow) */
html.gu-portal .dcx-range-btn.is-on, html.gu-portal .dcx-bubble-out { background: #c42a47; }
html.gu-portal .dcx-muted, html.gu-portal .dcx-bubble-meta, html.gu-portal .dcx-bubble-failed { opacity: 1; }
html.gu-portal .dcx-thread-lead { color: var(--gu-accent-text); }
html.gu-portal[data-theme="light"] .dcx-event [style*="#10b981"] { color: #047857 !important; }
html.gu-portal[data-theme="light"] .dcx-event [style*="#ef4444"] { color: #b91c1c !important; }
html.gu-portal[data-theme="light"] .dcx-event [style*="#f59e0b"] { color: #b45309 !important; }
html.gu-portal[data-theme="light"] .dcx-event [style*="#e94560"] { color: #c42a47 !important; }
html.gu-portal[data-theme="light"] .dcx-event [style*="#3b82f6"] { color: #1d4ed8 !important; }
html.gu-portal[data-theme="light"] .dcx-event [style*="#8b5cf6"] { color: #6d28d9 !important; }
/* sheet-link + webhook: status chips were 600-shade text on 10% tints (3.3–4.4:1; 2.5:1 over the header art) → opaque tints + 700/800 shades light, opaque deep tints dark; tag fill → deep coral */
html.gu-portal[data-theme="light"] :is(.dcsl-chip-ok, .dcwh-chip-ok) { color: #065f46; background: #ecfdf5; }
html.gu-portal[data-theme="light"] :is(.dcsl-chip-warn, .dcwh-chip-warn) { color: #92400e; background: #fffbeb; }
html.gu-portal[data-theme="light"] .dcwh-chip-bad { color: #b91c1c; background: #fef2f2; }
html.gu-portal[data-theme="light"] .dcwh-chip-info { color: #1d4ed8; background: #eff6ff; }
html.gu-portal[data-theme="dark"] :is(.dcsl-chip-ok, .dcwh-chip-ok) { background: #0b2b23; }
html.gu-portal[data-theme="dark"] :is(.dcsl-chip-warn, .dcwh-chip-warn) { background: #2b2008; }
html.gu-portal[data-theme="dark"] .dcwh-chip-bad { background: #2d1214; }
html.gu-portal[data-theme="dark"] .dcwh-chip-info { background: #0f1e3a; }
html.gu-portal .dcsl-tag { background: #c42a47; }
/* webhook: disabled buttons were opacity .5 (1.0–3.4:1) → full opacity, muted text, dashed border, flat grey fill for the primary */
html.gu-portal .dcwh-btn-ghost:disabled { opacity: 1; color: var(--text-secondary); border-style: dashed; }
html.gu-portal .dcwh-btn.portal-btn:disabled { opacity: 1; background: #e2e8f0 !important; background-image: none !important; color: #475569 !important; border: 1px dashed #94a3b8; box-shadow: none; }
html.gu-portal[data-theme="dark"] .dcwh-btn.portal-btn:disabled { background: #334155 !important; color: #cbd5e1 !important; border-color: #64748b; }
/* page tour (every DC page): white on indigo-500 #6366f1 = 4.47:1 → indigo-600 */
html.gu-portal .pagetour-btn:not(.pagetour-btn--ghost) { background: #4f46e5; border-color: #4f46e5; }
/* board: white step numbers on the lane colours (light 600 shades 3.2–4.1:1, dark 300/400 shades 2.7:1) → 700 shades in light, dark ink in dark;
   lane chips were a 10% tint of a see-through card over the art → mixed into an opaque base; buttons fill with the deep coral */
html.gu-portal[data-theme="light"] .dcfb-wrap { --dcfb-st-same-fg: #065f46; --dcfb-lane-customer: #0369a1; --dcfb-lane-ar: #b45309; --dcfb-lane-ai: #6d28d9; --dcfb-lane-shane: #047857; --dcfb-lane-crm: #be185d; }
html.gu-portal[data-theme="dark"] .dcfb-n-num { color: #0f172a; }
html.gu-portal[data-theme="light"] .dcfb-chip { background: color-mix(in srgb, var(--dcfb-c) 10%, #ffffff); }
html.gu-portal[data-theme="dark"] .dcfb-chip { background: color-mix(in srgb, var(--dcfb-c) 14%, #1e293b); }
html.gu-portal .dcfb-wrap { --dcfb-accent: #c42a47; }
/* api-explorer (found by the color(srgb) parser fix): light GET/POST badges, 700 text on a 13% tint of itself (4.1–4.4:1) → 800 shades */
html.gu-portal[data-theme="light"] .dcx-method { color: #075985; }
html.gu-portal[data-theme="light"] .dcx-method.dcx-m-post { color: #065f46; }
/* auto-responder: chips + review note on 10% tints over the page art (2.5–4.4:1) → opaque tints, 800 shades light; pager disabled = full ink, no underline */
html.gu-portal[data-theme="light"] .dcar-chip-ok { color: #065f46; background: #ecfdf5; }
html.gu-portal[data-theme="light"] .dcar-chip-warn { color: #92400e; background: #fffbeb; }
html.gu-portal[data-theme="light"] .dcar-chip-bad { color: #991b1b; background: #fef2f2; }
html.gu-portal[data-theme="dark"] .dcar-chip-ok { background: #0b2b23; }
html.gu-portal[data-theme="dark"] .dcar-chip-warn { background: #2b2008; }
html.gu-portal[data-theme="dark"] .dcar-chip-bad { background: #2d1214; }
html.gu-portal[data-theme="light"] .dcar-tpl-note { background: #fffbeb; color: #1e293b; }
html.gu-portal[data-theme="dark"] .dcar-tpl-note { background: #2b2008; color: #f1f5f9; }
html.gu-portal .dcar-pager .dcar-link[disabled] { opacity: 1; color: var(--text-secondary); }
/* ai-agent (+ sandbox, same --fa-* vars): muted text on 62–72% glass over the page art (3.4–4.4:1) → near-opaque glass + slate-600/300 muted;
   white on the violet→cyan gradient (2.4:1 at the cyan end) → violet-700→cyan-800; locked mode card was opacity .5 → full ink, dashed */
html.gu-portal .fa-page { --fa-glass: rgba(255, 255, 255, 0.95); --fa-muted: #475569; }
html.gu-portal[data-theme="light"] .fa-page { --fa-ok: #047857; --fa-warn: #b45309; --fa-bad: #b91c1c; }
html.gu-portal :is(.fa-smsm-enc, .fa-smsm-chars) { opacity: 1; }
html.gu-portal[data-theme="dark"] .fa-page { --fa-glass: rgba(17, 24, 39, 0.95); --fa-muted: #cbd5e1; }
html.gu-portal :is(.fa-pv-seg-btn.is-on, .fa-btn--primary) { background: linear-gradient(135deg, #5b21b6, #155e75); color: #fff; }
html.gu-portal .fa-seg-opt[aria-disabled="true"] { opacity: 1; border-style: dashed; color: var(--fa-muted); }
html.gu-portal[data-theme="light"] .fa-chip { background: #f1f5f9; color: #334155; }
html.gu-portal[data-theme="light"] .fa-chip--ok { color: #065f46; background: #ecfdf5; }
html.gu-portal[data-theme="light"] .fa-chip--warn { color: #92400e; background: #fffbeb; }
html.gu-portal[data-theme="light"] .fa-chip--bad { color: #991b1b; background: #fef2f2; }
html.gu-portal[data-theme="light"] .fa-chip--info { color: #155e75; background: #ecfeff; }
/* ai-agent sandbox: "How'd I do?" waits disabled at opacity .55 (3.4:1 over the art) → full ink, dashed (same as the webhook buttons) */
html.gu-portal .fa-fb-open:disabled { opacity: 1; color: var(--fa-muted); border-style: dashed; }
/* user-history: status pills + lead badges used the (configurable) status/source colour as text on a 8–12% tint of itself (1.6–4.4:1) → full ink,
   the tint + border keep the hue; faded rep name (.7) and IP (.4) → full ink, secondary colour */
html.gu-portal .uh-status-pill, html.gu-portal .uh-mbadge { color: var(--text-primary) !important; }
html.gu-portal .uh-event-user, html.gu-portal .uh-event-ip { opacity: 1; color: var(--text-secondary); }

/* Wave D api-key-error (the one-time key link, expired/used/invalid): the secondary "Contact Support" button kept
   white text on --bg-secondary (1.05:1 light) → page ink + border; the red icon disc goes tinted in dark;
   .portal-card has no padding of its own, so the disc sat on the card edge. */
html.gu-portal .gu-ake { padding: 32px 28px; }
html.gu-portal .gu-ake-alt.portal-btn { color: var(--text-primary); border: 1px solid var(--border-color); box-shadow: none; }
html.gu-portal .gu-ake-alt.portal-btn:hover { background: var(--bg-tertiary, var(--bg-secondary)) !important; }
html.gu-portal[data-theme="dark"] .gu-ake-icon { background: rgb(220 38 38 / .18) !important; box-shadow: 0 0 0 1px rgb(248 113 113 / .35); }
html.gu-portal[data-theme="dark"] .gu-ake-icon svg { stroke: #f87171; }

/* Wave D shared components (shot inside a host view: docs/ui-2026-10/component-*). Bug report: steps not reached yet were
   opacity .5 (labels 3.4:1) → full ink, the grey number disc still says "not yet". Credited leads: light badge green-500
   on its own 15% tint (1.9:1) → green-800 on green-100. Conversation + DC bar: outbound bubbles white on --accent (3.8:1
   dark) → deep coral; light "Receipt" blue-400 (2.2:1) → blue-700; Call white on emerald-500 (2.5:1) → emerald-700. */
html.gu-portal #bug-report-modal [id$="-indicator"].opacity-50 { opacity: 1; }
html.gu-portal #bug-report-modal [id$="-indicator"] span.text-xs { color: var(--text-secondary); }
html.gu-portal #bug-report-modal [id$="-indicator"]:not(.opacity-50) span.text-xs { color: var(--text-primary); font-weight: 600; }
html.gu-portal[data-theme="light"] .tp-badge-credited { background: #dcfce7; color: #166534; }
html.gu-portal .conv-msg.outgoing .conv-bubble { background: #c42a47; }
html.gu-portal[data-theme="light"] .ggr-conv-receipt-btn { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
html.gu-portal #convDcCallBtn { background: #047857; }
html.gu-portal #convDcCallBtn:hover:not(:disabled) { background: #065f46; }
/* Credited leads pager: .portal-btn-secondary is defined nowhere, so Previous/Next rendered as bare text with the chevron stacked on top. */
html.gu-portal #creditedLeadsPagination .portal-btn-secondary { display: inline-flex; align-items: center; gap: .375rem; padding: .375rem .75rem; border-radius: 8px;
    border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-primary); font-weight: 500; }
html.gu-portal #creditedLeadsPagination .portal-btn-secondary:hover:not(:disabled) { border-color: #c42a47; }
html.gu-portal #creditedLeadsPagination .portal-btn-secondary:disabled { border-style: dashed; color: var(--text-secondary); cursor: not-allowed; }

/* ==== Wave D · portal art pass (hooks .gu-vhead .gu-vhead-<view> on the page-title block of 9 portal views). Art band under a
   theme-colour scrim that is near-solid where the text sits, a 3D cut-out in place of the small lucide title icon. ==== */
html.gu-portal .gu-vhead {
    position: relative; isolation: isolate; min-height: 5.75rem; padding: 1.1rem 1.25rem 1.1rem 6.5rem;
    border: 1px solid var(--border-color); border-radius: 16px;
    --gu-vhead-scrim: linear-gradient(90deg, color-mix(in srgb, var(--bg-secondary) 95%, transparent) 0%,
        color-mix(in srgb, var(--bg-secondary) 86%, transparent) 50%, color-mix(in srgb, var(--bg-secondary) 30%, transparent) 100%);
    background: var(--gu-vhead-scrim), url('/assets/art/bg-pv-band-light.webp') right center / cover no-repeat, var(--bg-secondary);
    box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 14px 30px -22px rgb(26 26 46 / .45);
}
html.gu-portal[data-theme="dark"] .gu-vhead {
    background: var(--gu-vhead-scrim), url('/assets/art/bg-pv-band-dark.webp') right center / cover no-repeat, var(--bg-secondary);
    box-shadow: 0 1px 0 rgb(255 255 255 / .05) inset, 0 16px 32px -20px rgb(0 0 0 / .8);
}
html.gu-portal .gu-vhead::before {
    content: ''; position: absolute; z-index: -1; left: 1.1rem; top: 50%; width: 4.4rem; height: 4.4rem; translate: 0 -50%;
    background: var(--gu-vhead-icon) center / contain no-repeat; filter: drop-shadow(0 8px 10px rgb(26 26 46 / .3));
}
html.gu-portal .gu-vhead h1, html.gu-portal .gu-vhead p { width: fit-content; }
html.gu-portal .gu-vhead h1 > .lucide:first-child, html.gu-portal .gu-vhead h1 > i[data-lucide]:first-child { display: none; }
html.gu-portal .gu-vhead-dashboard   { --gu-vhead-icon: url('/assets/art/icon-pv-dashboard.webp'); }
html.gu-portal .gu-vhead-leads       { --gu-vhead-icon: url('/assets/art/icon-pv-leads.webp'); }
html.gu-portal .gu-vhead-lead-detail { --gu-vhead-icon: url('/assets/art/icon-pv-lead-detail.webp'); }
html.gu-portal .gu-vhead-team        { --gu-vhead-icon: url('/assets/art/icon-pv-team.webp'); }
html.gu-portal .gu-vhead-campaigns   { --gu-vhead-icon: url('/assets/art/icon-pv-campaigns.webp'); }
html.gu-portal .gu-vhead-trips       { --gu-vhead-icon: url('/assets/art/icon-pv-trips.webp'); }
html.gu-portal .gu-vhead-deals       { --gu-vhead-icon: url('/assets/art/icon-pv-deals.webp'); }
html.gu-portal .gu-vhead-board       { --gu-vhead-icon: url('/assets/art/icon-pv-board.webp'); }
html.gu-portal .gu-vhead-help        { --gu-vhead-icon: url('/assets/art/icon-pv-help.webp'); }
@media (max-width: 640px) { /* text wraps across the whole band here: art kept to a 6% tint */
    html.gu-portal .gu-vhead { padding: .9rem 1rem .9rem 4.9rem; min-height: 4.5rem;
        --gu-vhead-scrim: linear-gradient(90deg, color-mix(in srgb, var(--bg-secondary) 96%, transparent) 0%,
            color-mix(in srgb, var(--bg-secondary) 94%, transparent) 100%); }
    html.gu-portal .gu-vhead::before { left: .8rem; top: .9rem; width: 3.4rem; height: 3.4rem; translate: none; }
}
/* Leads: the active queue chip read 4.43:1 on its tint in light (Wave D re-check); one shade deeper. */
html.gu-portal[data-theme="light"] .ggr-queue-chip.active { color: #a8213b; }
