@font-face{font-family:'VG Emoji Mono';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/notoemoji/v65/bMrnmSyK7YY-MEu6aWjPDs-ar6uWaGWuob-r0jwqI-xEIF50anKtsFA.0.woff2) format('woff2');unicode-range:U+1f1e6-1f1ff}
@font-face{font-family:'VG Emoji Mono';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/notoemoji/v65/bMrnmSyK7YY-MEu6aWjPDs-ar6uWaGWuob-r0jwqI-xEIF50anKtsFA.1.woff2) format('woff2');unicode-range:U+2620,U+26a7,U+fe0f,U+1f308,U+1f38c,U+1f3c1,U+1f3f3-1f3f4,U+1f6a9,U+e0062-e0063,U+e0065,U+e0067,U+e006c,U+e006e,U+e0073-e0074,U+e0077,U+e007f}
@font-face{font-family:'VG Emoji Mono';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/notoemoji/v65/bMrnmSyK7YY-MEu6aWjPDs-ar6uWaGWuob-r0jwqI-xEIF50anKtsFA.2.woff2) format('woff2');unicode-range:U+2194-2199,U+21a9-21aa,U+23cf,U+23e9-23ef,U+23f8-23fa,U+24c2,U+25aa-25ab,U+25b6,U+25c0,U+25fb-25fe,U+2611,U+2622-2623,U+2626,U+262a,U+262e-262f,U+2638,U+2640,U+2642,U+2648-2653,U+2660,U+2663,U+2665-2666,U+2668,U+267b,U+267e-267f,U+2695,U+269b-269c,U+26a0,U+26a7,U+26aa-26ab,U+26ce,U+26d4,U+2705,U+2714,U+2716,U+271d,U+2721,U+2733-2734,U+2747,U+274c,U+274e,U+2753-2755,U+2757,U+2764,U+2795-2797,U+27a1,U+27b0,U+27bf,U+2934-2935,U+2b05-2b07,U+2b1b-2b1c,U+2b55,U+3030,U+303d,U+3297,U+3299,U+fe0f,U+1f170-1f171,U+1f17e-1f17f,U+1f18e,U+1f191-1f19a,U+1f201-1f202,U+1f21a,U+1f22f,U+1f232-1f23a,U+1f250-1f251,U+1f310,U+1f3a6,U+1f3b5-1f3b6,U+1f3bc,U+1f3e7,U+1f441,U+1f499-1f49c,U+1f49f-1f4a0,U+1f4ac-1f4ad,U+1f4b1-1f4b2,U+1f4b9,U+1f4db,U+1f4f2-1f4f6,U+1f500-1f507,U+1f515,U+1f518-1f524,U+1f52f-1f53d,U+1f549,U+1f54e,U+1f5a4,U+1f5e8,U+1f5ef,U+1f6ab,U+1f6ad-1f6b1,U+1f6b3,U+1f6b7-1f6bc,U+1f6be,U+1f6c2-1f6c5,U+1f6d0-1f6d1,U+1f6d7,U+1f6dc,U+1f7e0-1f7eb,U+1f7f0,U+1f90d-1f90e,U+1f9d1-1f9d2,U+1f9e1,U+1fa75-1fa77,U+1faaf}
@font-face{font-family:'VG Emoji Mono';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/notoemoji/v65/bMrnmSyK7YY-MEu6aWjPDs-ar6uWaGWuob-r0jwqI-xEIF50anKtsFA.3.woff2) format('woff2');unicode-range:U+231a-231b,U+2328,U+23f0-23f3,U+2602,U+260e,U+2692,U+2694,U+2696-2697,U+2699,U+26b0-26b1,U+26cf,U+26d1,U+26d3,U+2702,U+2709,U+270f,U+2712,U+fe0f,U+1f302,U+1f321,U+1f392-1f393,U+1f3a9,U+1f3bd,U+1f3ee,U+1f3f7,U+1f3fa,U+1f451-1f462,U+1f484,U+1f489-1f48a,U+1f48c-1f48e,U+1f4a1,U+1f4a3,U+1f4a5,U+1f4b0,U+1f4b3-1f4b8,U+1f4bb-1f4da,U+1f4dc-1f4f1,U+1f4ff,U+1f508-1f514,U+1f516-1f517,U+1f526-1f529,U+1f52c-1f52e,U+1f550-1f567,U+1f56f-1f570,U+1f576,U+1f587,U+1f58a-1f58d,U+1f5a5,U+1f5a8,U+1f5b1-1f5b2,U+1f5c2-1f5c4,U+1f5d1-1f5d3,U+1f5dc-1f5de,U+1f5e1,U+1f5f3,U+1f6aa,U+1f6ac,U+1f6bd,U+1f6bf,U+1f6c1,U+1f6cb,U+1f6cd-1f6cf,U+1f6d2,U+1f6e0-1f6e1,U+1f6f0,U+1f97b-1f97f,U+1f9af,U+1f9ba,U+1f9e2-1f9e6,U+1f9ea-1f9ec,U+1f9ee-1f9f4,U+1f9f7-1f9ff,U+1fa71-1fa74,U+1fa79-1fa7b,U+1fa86,U+1fa8e-1fa8f,U+1fa91-1fa93,U+1fa96,U+1fa99-1faa0,U+1faa2-1faa7,U+1faaa-1faae}
@font-face{font-family:'VG Emoji Mono';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/notoemoji/v65/bMrnmSyK7YY-MEu6aWjPDs-ar6uWaGWuob-r0jwqI-xEIF50anKtsFA.4.woff2) format('woff2');unicode-range:U+265f,U+26bd-26be,U+26f3,U+26f8,U+fe0f,U+1f004,U+1f0cf,U+1f380-1f384,U+1f386-1f38b,U+1f38d-1f391,U+1f396-1f397,U+1f399-1f39b,U+1f39e-1f39f,U+1f3a3-1f3a5,U+1f3a7-1f3a9,U+1f3ab-1f3b4,U+1f3b7-1f3bb,U+1f3bd-1f3c0,U+1f3c5-1f3c6,U+1f3c8-1f3c9,U+1f3cf-1f3d3,U+1f3f8-1f3f9,U+1f47e,U+1f4e2,U+1f4f7-1f4fd,U+1f52b,U+1f579,U+1f58c-1f58d,U+1f5bc,U+1f6f7,U+1f6f9,U+1f6fc,U+1f93f,U+1f941,U+1f945,U+1f947-1f94f,U+1f9e7-1f9e9,U+1f9f5-1f9f6,U+1fa70-1fa71,U+1fa80-1fa81,U+1fa83-1fa85,U+1fa87-1fa8a,U+1fa94-1fa95,U+1fa97-1fa98,U+1faa1,U+1faa9,U+1fadf}
@font-face{font-family:'VG Emoji Mono';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/notoemoji/v65/bMrnmSyK7YY-MEu6aWjPDs-ar6uWaGWuob-r0jwqI-xEIF50anKtsFA.5.woff2) format('woff2');unicode-range:U+2693,U+26e9-26ea,U+26f1-26f2,U+26f4-26f5,U+26fa,U+26fd,U+2708,U+fe0f,U+1f301,U+1f303,U+1f306-1f307,U+1f309,U+1f310,U+1f3a0-1f3a2,U+1f3aa,U+1f3cd-1f3ce,U+1f3d5,U+1f3d7-1f3db,U+1f3df-1f3e6,U+1f3e8-1f3ed,U+1f3ef-1f3f0,U+1f488,U+1f492,U+1f4ba,U+1f54b-1f54d,U+1f5fa-1f5ff,U+1f680-1f6a2,U+1f6a4-1f6a8,U+1f6b2,U+1f6d1,U+1f6d5-1f6d6,U+1f6dd-1f6df,U+1f6e2-1f6e5,U+1f6e9,U+1f6eb-1f6ec,U+1f6f3-1f6f6,U+1f6f8,U+1f6fa-1f6fb,U+1f9bc-1f9bd,U+1f9ed,U+1f9f3,U+1fa7c}
@font-face{font-family:'VG Emoji Mono';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/notoemoji/v65/bMrnmSyK7YY-MEu6aWjPDs-ar6uWaGWuob-r0jwqI-xEIF50anKtsFA.6.woff2) format('woff2');unicode-range:U+2615,U+fe0f,U+1f32d-1f330,U+1f336,U+1f33d,U+1f344-1f37f,U+1f382,U+1f52a,U+1f7e9,U+1f7eb,U+1f942-1f944,U+1f950-1f96f,U+1f99e,U+1f9aa,U+1f9c0-1f9cb,U+1fad0-1fadc}
@font-face{font-family:'VG Emoji Mono';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/notoemoji/v65/bMrnmSyK7YY-MEu6aWjPDs-ar6uWaGWuob-r0jwqI-xEIF50anKtsFA.7.woff2) format('woff2');unicode-range:U+2600-2601,U+2603-2604,U+2614,U+2618,U+26a1,U+26c4-26c5,U+26c8,U+26f0,U+2728,U+2744,U+2b1b,U+2b50,U+fe0f,U+1f300,U+1f304-1f305,U+1f308,U+1f30a-1f30f,U+1f311-1f321,U+1f324-1f32c,U+1f331-1f335,U+1f337-1f33c,U+1f33e-1f344,U+1f3d4,U+1f3d6,U+1f3dc-1f3de,U+1f3f5,U+1f400-1f43f,U+1f490,U+1f4a7,U+1f4ae,U+1f525,U+1f54a,U+1f573,U+1f577-1f578,U+1f648-1f64a,U+1f6d8,U+1f940,U+1f980-1f9ae,U+1f9ba,U+1fa90,U+1faa8,U+1fab0-1fabf,U+1facd-1facf,U+1fae7}
@font-face{font-family:'VG Emoji Mono';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/notoemoji/v65/bMrnmSyK7YY-MEu6aWjPDs-ar6uWaGWuob-r0jwqI-xEIF50anKtsFA.8.woff2) format('woff2');unicode-range:U+2640,U+2642,U+2695-2696,U+26f7,U+26f9,U+2708,U+2764,U+27a1,U+fe0f,U+1f33e,U+1f373,U+1f37c,U+1f384-1f385,U+1f393,U+1f3a4,U+1f3a8,U+1f3c2-1f3c4,U+1f3c7,U+1f3ca-1f3cc,U+1f3eb,U+1f3ed,U+1f3fb-1f3ff,U+1f430,U+1f466-1f469,U+1f46b-1f478,U+1f47c,U+1f481-1f483,U+1f486-1f487,U+1f48b,U+1f48f,U+1f491,U+1f4bb-1f4bc,U+1f527,U+1f52c,U+1f574-1f575,U+1f57a,U+1f645-1f647,U+1f64b,U+1f64d-1f64e,U+1f680,U+1f692,U+1f6a3,U+1f6b4-1f6b6,U+1f6c0,U+1f6cc,U+1f91d,U+1f926,U+1f930-1f931,U+1f934-1f93a,U+1f93c-1f93e,U+1f977,U+1f9af-1f9b3,U+1f9b8-1f9b9,U+1f9bc-1f9bd,U+1f9cc-1f9cf,U+1f9d1-1f9df,U+1fa70,U+1fa82,U+1fac3-1fac5,U+1fac8,U+1faef}
@font-face{font-family:'VG Emoji Mono';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/notoemoji/v65/bMrnmSyK7YY-MEu6aWjPDs-ar6uWaGWuob-r0jwqI-xEIF50anKtsFA.9.woff2) format('woff2');unicode-range:U+2194-2195,U+2603,U+261d,U+2620,U+2639-263a,U+2665,U+26a1,U+26c4,U+270a-270d,U+2728,U+2763-2764,U+2b50,U+fe0f,U+1f31a-1f31f,U+1f32b,U+1f389-1f38a,U+1f3fb-1f3ff,U+1f440-1f450,U+1f463-1f465,U+1f479-1f47b,U+1f47d-1f480,U+1f485,U+1f48b-1f48c,U+1f493-1f49f,U+1f4a2,U+1f4a4-1f4a6,U+1f4a8-1f4ab,U+1f4af,U+1f525,U+1f573,U+1f590,U+1f595-1f596,U+1f5a4,U+1f5e3,U+1f600-1f644,U+1f648-1f64a,U+1f64c,U+1f64f,U+1f90c-1f925,U+1f927-1f92f,U+1f932-1f933,U+1f970-1f976,U+1f978-1f97a,U+1f9a0,U+1f9b4-1f9b7,U+1f9bb,U+1f9be-1f9bf,U+1f9d0,U+1f9e0-1f9e1,U+1fa75-1fa79,U+1fac0-1fac2,U+1fac6,U+1fae0-1fae6,U+1fae8-1faea,U+1faef-1fafa}
@font-face{font-family:'VG Emoji Mono';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/notoemoji/v65/bMrnmSyK7YY-MEu6aWjPDs-ar6uWaGWuob-r0jwqI-xEIF50anKtsFA.10.woff2) format('woff2');unicode-range:U+1f6d9,U+1fa8b-1fa8d,U+1facc,U+1fadd,U+1faeb}
/* ═══════════════════════════════════════════════════════════════════════════
   VANGUARD — DARK ENTERPRISE THEME (opt-in preview, 2026-10-24)
   Palette taken from the #market terminal (css/market-intelligence.css):
   bg #070c17 · chrome #0b1120 · panel #0d1524 · line #1a2540/#1e2d45 · field #0b1322
   text #e2e8f0 / #cbd5e1 / #94a3b8 / #64748b · single accent #3b82f6 (#2563eb solid)
   Everything is scoped to html.vg-dark:not(#vgd0):not(#vgd1) and @media screen → print / PDF stay light.
   Companion: js/vg-dark-theme-20261024.js (toggle + inline-colour remapper).
   ═══════════════════════════════════════════════════════════════════════════ */
@media screen {
html.vg-dark:not(#vgd0):not(#vgd1) {
    color-scheme: dark;
    --vgd-bg: #070c17; --vgd-chrome: #0b1120; --vgd-panel: #0d1524; --vgd-panel2: #101a2b; --vgd-raise: #131e30;
    --vgd-line: #1a2540; --vgd-line2: #1e2d45; --vgd-field: #0b1322;
    --vgd-text: #e2e8f0; --vgd-text2: #cbd5e1; --vgd-muted: #94a3b8; --vgd-faint: #64748b;
    --vgd-acc: #3b82f6; --vgd-acc-solid: #2563eb; --vgd-acc-soft: rgba(59,130,246,.12); --vgd-acc-line: rgba(59,130,246,.45);
    /* semantic (badges, status) — muted tints, readable text */
    --vgd-ok: #6ee7a8;   --vgd-ok-bg: rgba(34,197,94,.10);   --vgd-ok-line: rgba(34,197,94,.32);
    --vgd-warn: #f5c76b; --vgd-warn-bg: rgba(245,158,11,.10); --vgd-warn-line: rgba(245,158,11,.32);
    --vgd-bad: #fca5a5;  --vgd-bad-bg: rgba(239,68,68,.10);  --vgd-bad-line: rgba(239,68,68,.36);
    --vgd-info: #93c5fd; --vgd-info-bg: rgba(59,130,246,.10); --vgd-info-line: rgba(59,130,246,.34);
    --vgd-badge-n-bg: rgba(148,163,184,.10); --vgd-badge-n-fg: #cbd5e1; --vgd-badge-n-line: rgba(148,163,184,.26);
    /* type scale (12px floor) & rhythm */
    --vgd-fs-xs: 12px; --vgd-fs-sm: 13px; --vgd-fs-md: 14px; --vgd-fs-lg: 16px; --vgd-fs-xl: 20px; --vgd-fs-2xl: 24px;
    --vgd-r-sm: 4px; --vgd-r-md: 6px; --vgd-r-lg: 8px; --vgd-r-xl: 10px;
    --vgd-pad-page: 24px;
    /* existing app variables re-pointed */
    --primary-blue: #3b82f6; --dark-blue: #1d4ed8; --light-blue: rgba(59,130,246,.12); --accent-blue: #60a5fa;
    --dark: #e2e8f0; --gray: #94a3b8; --light-gray: #070c17; --white: #0d1524;
    background: #070c17;
}
html.vg-dark:not(#vgd0):not(#vgd1) body {
    background: var(--vgd-bg) !important; color: var(--vgd-text2);
    font-family: 'Inter', 'VG Emoji Mono', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01', 'tnum';
}
html.vg-dark:not(#vgd0):not(#vgd1) button, html.vg-dark:not(#vgd0):not(#vgd1) input, html.vg-dark:not(#vgd0):not(#vgd1) select, html.vg-dark:not(#vgd0):not(#vgd1) textarea { font-family: 'Inter', 'VG Emoji Mono', system-ui, sans-serif; }
html.vg-dark:not(#vgd0):not(#vgd1) ::selection { background: rgba(59,130,246,.35); color: #fff; }
html.vg-dark:not(#vgd0):not(#vgd1) h1, html.vg-dark:not(#vgd0):not(#vgd1) h2, html.vg-dark:not(#vgd0):not(#vgd1) h3, html.vg-dark:not(#vgd0):not(#vgd1) h4, html.vg-dark:not(#vgd0):not(#vgd1) h5 { color: #f1f5f9; letter-spacing: -.01em; }
html.vg-dark:not(#vgd0):not(#vgd1) a { color: #60a5fa; }
html.vg-dark:not(#vgd0):not(#vgd1) a:hover { color: #93c5fd; }
html.vg-dark:not(#vgd0):not(#vgd1) hr { border-color: var(--vgd-line) !important; background: var(--vgd-line) !important; }

/* scrollbars */
html.vg-dark:not(#vgd0):not(#vgd1) * { scrollbar-color: #1e2d45 transparent; scrollbar-width: thin; }
html.vg-dark:not(#vgd0):not(#vgd1) ::-webkit-scrollbar { width: 8px; height: 8px; }
html.vg-dark:not(#vgd0):not(#vgd1) ::-webkit-scrollbar-track { background: transparent; }
html.vg-dark:not(#vgd0):not(#vgd1) ::-webkit-scrollbar-thumb { background: #1e2d45; border-radius: 4px; }
html.vg-dark:not(#vgd0):not(#vgd1) ::-webkit-scrollbar-thumb:hover { background: #2a3b58; }

/* ── App chrome ─────────────────────────────────────────────────────────── */
html.vg-dark:not(#vgd0):not(#vgd1) .header { background: var(--vgd-chrome) !important; border-bottom: 1px solid var(--vgd-line); box-shadow: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .brand-text h1 { color: #f8fafc !important; font-weight: 650; letter-spacing: -.02em; font-size: 1.2rem; }
html.vg-dark:not(#vgd0):not(#vgd1) .brand-text span { color: var(--vgd-faint) !important; font-size: 12px; letter-spacing: .02em; }
html.vg-dark:not(#vgd0):not(#vgd1) .nav-link { color: var(--vgd-muted) !important; font-size: .85rem; border-radius: 6px; }
html.vg-dark:not(#vgd0):not(#vgd1) .nav-link:hover { background: var(--vgd-raise) !important; color: var(--vgd-text) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .nav-link.active { background: var(--vgd-acc-soft) !important; color: #93c5fd !important; box-shadow: inset 0 0 0 1px rgba(59,130,246,.25); }
html.vg-dark:not(#vgd0):not(#vgd1) .dropdown-menu, html.vg-dark:not(#vgd0):not(#vgd1) .user-dropdown, html.vg-dark:not(#vgd0):not(#vgd1) [class*="dropdown-content"] {
    background: var(--vgd-panel) !important; border: 1px solid var(--vgd-line2) !important; box-shadow: 0 12px 32px rgba(0,0,0,.45) !important; border-radius: 8px !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .dropdown-menu a, html.vg-dark:not(#vgd0):not(#vgd1) .dropdown-item { color: var(--vgd-text2) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .dropdown-menu a:hover, html.vg-dark:not(#vgd0):not(#vgd1) .dropdown-item:hover { background: var(--vgd-raise) !important; color: #fff !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .notification-btn { color: var(--vgd-muted) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .notification-btn:hover { background: var(--vgd-raise) !important; color: var(--vgd-text) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .user-menu { background: var(--vgd-panel) !important; border: 1px solid var(--vgd-line); }
html.vg-dark:not(#vgd0):not(#vgd1) .user-menu:hover { background: var(--vgd-raise) !important; }

html.vg-dark:not(#vgd0):not(#vgd1) .sidebar { background: var(--vgd-chrome) !important; border-right: 1px solid var(--vgd-line) !important; box-shadow: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .sidebar-menu a, html.vg-dark:not(#vgd0):not(#vgd1) .sidebar .sidebar-menu li a { color: var(--vgd-faint) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .sidebar-menu a i { color: inherit !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .sidebar-menu a:hover, html.vg-dark:not(#vgd0):not(#vgd1) .sidebar .sidebar-menu li a:hover { background: var(--vgd-raise) !important; color: var(--vgd-text) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .sidebar-menu li.active > a, html.vg-dark:not(#vgd0):not(#vgd1) .sidebar-menu a.active {
    background: var(--vgd-acc-soft) !important; color: var(--vgd-acc) !important; box-shadow: inset 2px 0 0 var(--vgd-acc) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .sidebar .menu-section h3 { color: #475569 !important; font-size: 12px !important; letter-spacing: .08em; }
html.vg-dark:not(#vgd0):not(#vgd1) .nav-sub-menu { background: transparent !important; }

html.vg-dark:not(#vgd0):not(#vgd1) .main-content, html.vg-dark:not(#vgd0):not(#vgd1) .content-area, html.vg-dark:not(#vgd0):not(#vgd1) .dashboard-content, html.vg-dark:not(#vgd0):not(#vgd1) .content-section, html.vg-dark:not(#vgd0):not(#vgd1) .tab-content { background: transparent !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .content-header { background: transparent !important; border-bottom: 1px solid var(--vgd-line); padding-bottom: .9rem; box-shadow: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .content-header h1 { color: #f8fafc !important; font-size: 1.45rem !important; font-weight: 650 !important; letter-spacing: -.02em; }
html.vg-dark:not(#vgd0):not(#vgd1) .content-header p, html.vg-dark:not(#vgd0):not(#vgd1) .content-header .subtitle { color: var(--vgd-faint) !important; }

/* ── Surfaces ───────────────────────────────────────────────────────────── */
html.vg-dark:not(#vgd0):not(#vgd1) .card, html.vg-dark:not(#vgd0):not(#vgd1) .panel, html.vg-dark:not(#vgd0):not(#vgd1) .stat-card, html.vg-dark:not(#vgd0):not(#vgd1) .mini-stat, html.vg-dark:not(#vgd0):not(#vgd1) .settings-section, html.vg-dark:not(#vgd0):not(#vgd1) .table-container,
html.vg-dark:not(#vgd0):not(#vgd1) .data-table-container, html.vg-dark:not(#vgd0):not(#vgd1) .filters-bar, html.vg-dark:not(#vgd0):not(#vgd1) .report-card, html.vg-dark:not(#vgd0):not(#vgd1) .carrier-card, html.vg-dark:not(#vgd0):not(#vgd1) .renewal-card,
html.vg-dark:not(#vgd0):not(#vgd1) .reminders-section, html.vg-dark:not(#vgd0):not(#vgd1) .reminder-card, html.vg-dark:not(#vgd0):not(#vgd1) .integration-item, html.vg-dark:not(#vgd0):not(#vgd1) .profile-section, html.vg-dark:not(#vgd0):not(#vgd1) .pipeline-stage,
html.vg-dark:not(#vgd0):not(#vgd1) .dashboard-card, html.vg-dark:not(#vgd0):not(#vgd1) .widget, html.vg-dark:not(#vgd0):not(#vgd1) .chart-container, html.vg-dark:not(#vgd0):not(#vgd1) .todo-container {
    background: var(--vgd-panel) !important; border: 1px solid var(--vgd-line) !important; box-shadow: none !important; border-radius: 8px !important; color: var(--vgd-text2); }
html.vg-dark:not(#vgd0):not(#vgd1) .card:hover, html.vg-dark:not(#vgd0):not(#vgd1) .report-card:hover, html.vg-dark:not(#vgd0):not(#vgd1) .carrier-card:hover, html.vg-dark:not(#vgd0):not(#vgd1) .stat-card:hover, html.vg-dark:not(#vgd0):not(#vgd1) .pipeline-stage:hover {
    border-color: var(--vgd-line2) !important; transform: none !important; box-shadow: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .stat-card h3, html.vg-dark:not(#vgd0):not(#vgd1) .mini-stat .label, html.vg-dark:not(#vgd0):not(#vgd1) .stat-label, html.vg-dark:not(#vgd0):not(#vgd1) .stat-card .stat-title {
    color: var(--vgd-faint) !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: .06em; font-weight: 600 !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .stat-value, html.vg-dark:not(#vgd0):not(#vgd1) .stat-card .value, html.vg-dark:not(#vgd0):not(#vgd1) .mini-stat .value { color: #f8fafc !important; font-weight: 650 !important; font-variant-numeric: tabular-nums; }
html.vg-dark:not(#vgd0):not(#vgd1) .stat-icon, html.vg-dark:not(#vgd0):not(#vgd1) .report-icon, html.vg-dark:not(#vgd0):not(#vgd1) .card-icon {
    background: var(--vgd-acc-soft) !important; color: var(--vgd-acc) !important; box-shadow: inset 0 0 0 1px rgba(59,130,246,.22) !important; border-radius: 8px !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .section-header, html.vg-dark:not(#vgd0):not(#vgd1) .card-header, html.vg-dark:not(#vgd0):not(#vgd1) .panel-header, html.vg-dark:not(#vgd0):not(#vgd1) .modal-header, html.vg-dark:not(#vgd0):not(#vgd1) .section-title {
    background: transparent !important; background-image: none !important; color: #f1f5f9 !important; border-color: var(--vgd-line) !important; }

/* ── Tables (market-terminal style) ─────────────────────────────────────── */
html.vg-dark:not(#vgd0):not(#vgd1) table { border-color: var(--vgd-line) !important; background: transparent; }
html.vg-dark:not(#vgd0):not(#vgd1) thead, html.vg-dark:not(#vgd0):not(#vgd1) thead tr { background: var(--vgd-chrome) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) th { background: var(--vgd-chrome) !important; color: var(--vgd-faint) !important; border-color: var(--vgd-line) !important;
    font-size: 12px !important; font-weight: 600 !important; letter-spacing: .05em; text-transform: uppercase; }
html.vg-dark:not(#vgd0):not(#vgd1) th:hover { color: var(--vgd-text2) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) td { border-color: #131d30 !important; color: var(--vgd-text2); }
html.vg-dark:not(#vgd0):not(#vgd1) tbody tr { background: transparent; }
html.vg-dark:not(#vgd0):not(#vgd1) tbody tr:hover > td { background-color: rgba(59,130,246,.06) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .data-table tbody tr:nth-child(even) > td { background-color: rgba(255,255,255,.012); }

/* ── Form controls ──────────────────────────────────────────────────────── */
html.vg-dark:not(#vgd0):not(#vgd1) input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=button]):not([type=submit]):not([type=file]):not(.pdf-container *):not(.acord-container *),
html.vg-dark:not(#vgd0):not(#vgd1) select:not(.pdf-container *), html.vg-dark:not(#vgd0):not(#vgd1) textarea:not(.pdf-container *), html.vg-dark:not(#vgd0):not(#vgd1) .form-control, html.vg-dark:not(#vgd0):not(#vgd1) .search-input, html.vg-dark:not(#vgd0):not(#vgd1) .filter-select {
    background-color: var(--vgd-field) !important; color: var(--vgd-text) !important; border: 1px solid var(--vgd-line2) !important; border-radius: 6px !important; box-shadow: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1) input:focus, html.vg-dark:not(#vgd0):not(#vgd1) select:focus, html.vg-dark:not(#vgd0):not(#vgd1) textarea:focus, html.vg-dark:not(#vgd0):not(#vgd1) .form-control:focus {
    border-color: var(--vgd-acc) !important; box-shadow: 0 0 0 3px rgba(59,130,246,.18) !important; outline: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1) input::placeholder, html.vg-dark:not(#vgd0):not(#vgd1) textarea::placeholder { color: #475569 !important; opacity: 1; }
html.vg-dark:not(#vgd0):not(#vgd1) input:disabled, html.vg-dark:not(#vgd0):not(#vgd1) select:disabled, html.vg-dark:not(#vgd0):not(#vgd1) textarea:disabled, html.vg-dark:not(#vgd0):not(#vgd1) input[readonly] { color: var(--vgd-muted) !important; background-color: #0a111e !important; }
html.vg-dark:not(#vgd0):not(#vgd1) option, html.vg-dark:not(#vgd0):not(#vgd1) optgroup { background: var(--vgd-panel); color: var(--vgd-text); }
html.vg-dark:not(#vgd0):not(#vgd1) input[type=checkbox], html.vg-dark:not(#vgd0):not(#vgd1) input[type=radio] { accent-color: var(--vgd-acc); }
html.vg-dark:not(#vgd0):not(#vgd1) ::-webkit-calendar-picker-indicator { filter: invert(.75); opacity: .8; }
html.vg-dark:not(#vgd0):not(#vgd1) label { color: var(--vgd-muted); }

/* ── Buttons: flat, small radius, one accent ────────────────────────────── */
html.vg-dark:not(#vgd0):not(#vgd1) .btn-primary, html.vg-dark:not(#vgd0):not(#vgd1) .btn.btn-primary, html.vg-dark:not(#vgd0):not(#vgd1) button.primary {
    background: var(--vgd-acc-solid) !important; background-image: none !important; border: 1px solid var(--vgd-acc-solid) !important; color: #fff !important;
    border-radius: 6px !important; box-shadow: none !important; font-weight: 600 !important; letter-spacing: .01em; }
html.vg-dark:not(#vgd0):not(#vgd1) .btn-primary:hover { background: #1d4ed8 !important; border-color: #1d4ed8 !important; transform: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .btn-secondary, html.vg-dark:not(#vgd0):not(#vgd1) .btn-filter, html.vg-dark:not(#vgd0):not(#vgd1) .view-btn, html.vg-dark:not(#vgd0):not(#vgd1) .btn-small, html.vg-dark:not(#vgd0):not(#vgd1) .btn-outline, html.vg-dark:not(#vgd0):not(#vgd1) .btn-icon, html.vg-dark:not(#vgd0):not(#vgd1) .action-btn {
    background: var(--vgd-raise) !important; background-image: none !important; border: 1px solid var(--vgd-line2) !important; color: var(--vgd-text2) !important;
    border-radius: 6px !important; box-shadow: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .btn-secondary:hover, html.vg-dark:not(#vgd0):not(#vgd1) .btn-filter:hover, html.vg-dark:not(#vgd0):not(#vgd1) .view-btn:hover, html.vg-dark:not(#vgd0):not(#vgd1) .btn-small:hover, html.vg-dark:not(#vgd0):not(#vgd1) .btn-icon:hover, html.vg-dark:not(#vgd0):not(#vgd1) .action-btn:hover {
    border-color: var(--vgd-acc-line) !important; color: #fff !important; transform: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .view-btn.active, html.vg-dark:not(#vgd0):not(#vgd1) .btn-filter.active, html.vg-dark:not(#vgd0):not(#vgd1) .tab-btn.active, html.vg-dark:not(#vgd0):not(#vgd1) .tab.active {
    background: var(--vgd-acc-soft) !important; color: #93c5fd !important; border-color: var(--vgd-acc-line) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .btn-danger, html.vg-dark:not(#vgd0):not(#vgd1) .btn.btn-danger { background: rgba(239,68,68,.12) !important; color: #fca5a5 !important; border: 1px solid rgba(239,68,68,.4) !important; box-shadow: none !important; border-radius: 6px !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .btn-success, html.vg-dark:not(#vgd0):not(#vgd1) .btn.btn-success { background: rgba(34,197,94,.12) !important; color: #86efac !important; border: 1px solid rgba(34,197,94,.38) !important; box-shadow: none !important; border-radius: 6px !important; }
html.vg-dark:not(#vgd0):not(#vgd1) button, html.vg-dark:not(#vgd0):not(#vgd1) .btn { transition: background-color .15s, border-color .15s, color .15s !important; }
html.vg-dark:not(#vgd0):not(#vgd1) button:hover, html.vg-dark:not(#vgd0):not(#vgd1) .btn:hover { transform: none !important; }

/* ── Badges / pills: compact, thin outline ──────────────────────────────── */
html.vg-dark:not(#vgd0):not(#vgd1) .badge, html.vg-dark:not(#vgd0):not(#vgd1) .status-badge, html.vg-dark:not(#vgd0):not(#vgd1) .policy-type-badge, html.vg-dark:not(#vgd0):not(#vgd1) .urgency-badge, html.vg-dark:not(#vgd0):not(#vgd1) .section-count, html.vg-dark:not(#vgd0):not(#vgd1) [class*="-badge"]:not(.mkt-live-badge) {
    border-radius: 4px !important; box-shadow: none !important; font-weight: 600 !important; letter-spacing: .02em; }
html.vg-dark:not(#vgd0):not(#vgd1) .header .badge, html.vg-dark:not(#vgd0):not(#vgd1) .notification-btn .badge { background: #dc2626 !important; color: #fff !important; border-radius: 8px !important; }

/* ── Modals / popups / toasts ───────────────────────────────────────────── */
html.vg-dark:not(#vgd0):not(#vgd1) .modal, html.vg-dark:not(#vgd0):not(#vgd1) .modal-overlay, html.vg-dark:not(#vgd0):not(#vgd1) .popup-overlay { background-color: rgba(2,6,15,.72) !important; backdrop-filter: blur(3px); }
html.vg-dark:not(#vgd0):not(#vgd1) .modal-content, html.vg-dark:not(#vgd0):not(#vgd1) .popup-content, html.vg-dark:not(#vgd0):not(#vgd1) .modal-dialog, html.vg-dark:not(#vgd0):not(#vgd1) .modal-body {
    background: var(--vgd-panel) !important; color: var(--vgd-text2) !important; border-color: var(--vgd-line2) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .modal-content, html.vg-dark:not(#vgd0):not(#vgd1) .popup-content { border: 1px solid var(--vgd-line2) !important; border-radius: 10px !important; box-shadow: 0 24px 60px rgba(0,0,0,.55) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .modal-footer { background: transparent !important; border-color: var(--vgd-line) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .close, html.vg-dark:not(#vgd0):not(#vgd1) .modal-close, html.vg-dark:not(#vgd0):not(#vgd1) .close-btn { color: var(--vgd-muted) !important; background: transparent !important; box-shadow: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .close:hover, html.vg-dark:not(#vgd0):not(#vgd1) .modal-close:hover, html.vg-dark:not(#vgd0):not(#vgd1) .close-btn:hover { color: #fff !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .toast, html.vg-dark:not(#vgd0):not(#vgd1) .notification-toast, html.vg-dark:not(#vgd0):not(#vgd1) [class*="toast"]:not(body) { background: var(--vgd-raise) !important; color: var(--vgd-text) !important; border: 1px solid var(--vgd-line2) !important; box-shadow: 0 10px 30px rgba(0,0,0,.45) !important; border-radius: 8px !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .notification-sidebar, html.vg-dark:not(#vgd0):not(#vgd1) .notification-panel { background: var(--vgd-panel) !important; border-left: 1px solid var(--vgd-line) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .notification-sidebar-header { background: var(--vgd-chrome) !important; border-color: var(--vgd-line) !important; color: var(--vgd-text) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .notification-item { background: transparent !important; border-color: var(--vgd-line) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .notification-item.unread { background: rgba(59,130,246,.06) !important; box-shadow: inset 2px 0 0 var(--vgd-acc); }

/* ── Lead features that must stay readable ─────────────────────────────── */
html.vg-dark:not(#vgd0):not(#vgd1) .vg-missing-box { background: rgba(239,68,68,.08) !important; border: 1px solid rgba(239,68,68,.42) !important; color: #fecaca !important; border-radius: 8px !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .vg-missing-box * { color: inherit; }
html.vg-dark:not(#vgd0):not(#vgd1) .vg-missing-box b, html.vg-dark:not(#vgd0):not(#vgd1) .vg-missing-box strong, html.vg-dark:not(#vgd0):not(#vgd1) .vg-missing-box h3, html.vg-dark:not(#vgd0):not(#vgd1) .vg-missing-box h4 { color: #fca5a5 !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .vg-safety-box { border-color: var(--vgd-line2) !important; }
/* View-All agent tints (green Grant / blue Carson / red Rusty), adapted to dark */
html.vg-dark:not(#vgd0):not(#vgd1) tr.vg-grp-grant > td { background-color: rgba(34,197,94,.045) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) tr.vg-grp-carson > td { background-color: rgba(59,130,246,.055) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) tr.vg-grp-rusty > td { background-color: rgba(239,68,68,.05) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) tr.vg-grp-grant:hover > td { background-color: rgba(34,197,94,.09) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) tr.vg-grp-carson:hover > td { background-color: rgba(59,130,246,.1) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) tr.vg-grp-rusty:hover > td { background-color: rgba(239,68,68,.09) !important; }

/* ── Calendar / callbacks ───────────────────────────────────────────────── */
html.vg-dark:not(#vgd0):not(#vgd1) .calendar, html.vg-dark:not(#vgd0):not(#vgd1) .calendar-day, html.vg-dark:not(#vgd0):not(#vgd1) .fc, html.vg-dark:not(#vgd0):not(#vgd1) .fc td, html.vg-dark:not(#vgd0):not(#vgd1) .fc th { border-color: var(--vgd-line) !important; }

/* ── Header toggle ──────────────────────────────────────────────────────── */
.vg-theme-toggle { background: none; border: 1px solid transparent; color: #6b7280; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; }
.vg-theme-toggle:hover { background: #f3f4f6; color: #0066cc; }
.vg-theme-toggle-float { position: fixed; left: 14px; bottom: 14px; z-index: 99999; background: #fff; border-color: #e5e7eb; }
html.vg-dark:not(#vgd0):not(#vgd1) .vg-theme-toggle { color: var(--vgd-muted); }
html.vg-dark:not(#vgd0):not(#vgd1) .vg-theme-toggle:hover { background: var(--vgd-raise); color: var(--vgd-warn); border-color: var(--vgd-line2); }
html.vg-dark:not(#vgd0):not(#vgd1) .vg-theme-toggle-float { background: var(--vgd-panel); border-color: var(--vgd-line2); }

/* ── Motion: calmer ─────────────────────────────────────────────────────── */
html.vg-dark:not(#vgd0):not(#vgd1) .card, html.vg-dark:not(#vgd0):not(#vgd1) .stat-card, html.vg-dark:not(#vgd0):not(#vgd1) .report-card, html.vg-dark:not(#vgd0):not(#vgd1) .carrier-card { transition: border-color .15s !important; }


/* ═══ DESIGN SYSTEM COMPONENTS ═══════════════════════════════════════════
   Buttons: [data-vgd-btn=primary|secondary|ghost|destructive] (assigned by the JS),
   plus .vgd-btn-* classes for any new markup.  Badge: .vgd-badge + .is-ok/.is-warn/.is-bad/.is-info.
   Card: .vgd-card / .vgd-card-head (flat panel, 2px accent line).                                   */
html.vg-dark:not(#vgd0):not(#vgd1) [data-vgd-btn], html.vg-dark:not(#vgd0):not(#vgd1) .vgd-btn { border-radius: var(--vgd-r-md) !important; font-weight: 550 !important; letter-spacing: .005em; background-image: none !important; text-shadow: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1) [data-vgd-btn=primary]:hover, html.vg-dark:not(#vgd0):not(#vgd1) .vgd-btn-primary:hover { background-color: #1d4ed8 !important; }
html.vg-dark:not(#vgd0):not(#vgd1) [data-vgd-btn=secondary]:hover, html.vg-dark:not(#vgd0):not(#vgd1) .vgd-btn-secondary:hover { background-color: #18253b !important; box-shadow: inset 0 0 0 1px var(--vgd-acc-line) !important; color: #fff !important; }
html.vg-dark:not(#vgd0):not(#vgd1) [data-vgd-btn=ghost] { background: transparent !important; box-shadow: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1) [data-vgd-btn=ghost]:hover, html.vg-dark:not(#vgd0):not(#vgd1) .vgd-btn-ghost:hover { background: var(--vgd-raise) !important; color: var(--vgd-text) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) [data-vgd-btn=destructive]:hover, html.vg-dark:not(#vgd0):not(#vgd1) .vgd-btn-destructive:hover { background-color: rgba(239,68,68,.18) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) [data-vgd-btn]:disabled, html.vg-dark:not(#vgd0):not(#vgd1) [data-vgd-btn][disabled] { opacity: .45 !important; cursor: not-allowed; }
html.vg-dark:not(#vgd0):not(#vgd1) .vgd-btn-primary { background: var(--vgd-acc-solid) !important; color: #fff !important; border: 1px solid var(--vgd-acc-solid) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .vgd-btn-secondary { background: var(--vgd-raise) !important; color: var(--vgd-text2) !important; border: 1px solid var(--vgd-line2) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .vgd-btn-ghost { background: transparent !important; color: var(--vgd-muted) !important; border: 1px solid transparent !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .vgd-btn-destructive { background: var(--vgd-bad-bg) !important; color: var(--vgd-bad) !important; border: 1px solid var(--vgd-bad-line) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .vgd-badge { display: inline-block; font-size: 12px; line-height: 18px; padding: 0 7px; border-radius: 4px; font-weight: 600; background: var(--vgd-badge-n-bg); color: var(--vgd-badge-n-fg); box-shadow: inset 0 0 0 1px var(--vgd-badge-n-line); }
html.vg-dark:not(#vgd0):not(#vgd1) .vgd-badge.is-ok { background: var(--vgd-ok-bg); color: var(--vgd-ok); box-shadow: inset 0 0 0 1px var(--vgd-ok-line); }
html.vg-dark:not(#vgd0):not(#vgd1) .vgd-badge.is-warn { background: var(--vgd-warn-bg); color: var(--vgd-warn); box-shadow: inset 0 0 0 1px var(--vgd-warn-line); }
html.vg-dark:not(#vgd0):not(#vgd1) .vgd-badge.is-bad { background: var(--vgd-bad-bg); color: var(--vgd-bad); box-shadow: inset 0 0 0 1px var(--vgd-bad-line); }
html.vg-dark:not(#vgd0):not(#vgd1) .vgd-badge.is-info { background: var(--vgd-info-bg); color: var(--vgd-info); box-shadow: inset 0 0 0 1px var(--vgd-info-line); }
html.vg-dark:not(#vgd0):not(#vgd1) .vgd-card { background: var(--vgd-panel); border: 1px solid var(--vgd-line); border-radius: var(--vgd-r-lg); }
html.vg-dark:not(#vgd0):not(#vgd1) .vgd-card-head { background: var(--vgd-panel2) !important; box-shadow: inset 0 2px 0 var(--vgd-acc), inset 0 -1px 0 var(--vgd-line) !important; color: var(--vgd-text) !important; }

/* status badges already in the app → the one badge */
html.vg-dark:not(#vgd0):not(#vgd1) .status-badge, html.vg-dark:not(#vgd0):not(#vgd1) .policy-type-badge, html.vg-dark:not(#vgd0):not(#vgd1) .urgency-badge, html.vg-dark:not(#vgd0):not(#vgd1) .section-count {
    font-size: 12px !important; line-height: 18px !important; padding: 0 7px !important; border-radius: 4px !important; font-weight: 600 !important; letter-spacing: .01em !important; text-transform: none !important; }

/* page title offsets — one rhythm everywhere */
html.vg-dark:not(#vgd0):not(#vgd1) .content-area { padding: var(--vgd-pad-page) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .content-header { margin: 0 0 20px 0 !important; padding: 0 0 14px 0 !important; min-height: 44px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
html.vg-dark:not(#vgd0):not(#vgd1) .content-header h1, html.vg-dark:not(#vgd0):not(#vgd1) .content-area > section > h1, html.vg-dark:not(#vgd0):not(#vgd1) .content-area > section > header h1 { margin: 0 !important; font-size: var(--vgd-fs-2xl) !important; font-weight: 600 !important; line-height: 1.2 !important; }

/* sans-serif Notes everywhere */
html.vg-dark:not(#vgd0):not(#vgd1) textarea { font-family: 'Inter', 'VG Emoji Mono', system-ui, sans-serif !important; font-size: var(--vgd-fs-sm) !important; line-height: 1.5 !important; }

/* date / time / select controls */
html.vg-dark:not(#vgd0):not(#vgd1) select:not(.pdf-container *) { -webkit-appearance: none !important; appearance: none !important; padding-right: 28px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 10px center !important; background-size: 10px 6px !important; }
html.vg-dark:not(#vgd0):not(#vgd1) select[multiple], html.vg-dark:not(#vgd0):not(#vgd1) select[size]:not([size="1"]) { background-image: none !important; padding-right: 8px !important; }
html.vg-dark:not(#vgd0):not(#vgd1) input[type=date], html.vg-dark:not(#vgd0):not(#vgd1) input[type=time], html.vg-dark:not(#vgd0):not(#vgd1) input[type=datetime-local], html.vg-dark:not(#vgd0):not(#vgd1) input[type=month] { font-variant-numeric: tabular-nums; min-height: 32px; }
html.vg-dark:not(#vgd0):not(#vgd1) ::-webkit-datetime-edit { color: var(--vgd-text); }
html.vg-dark:not(#vgd0):not(#vgd1) ::-webkit-datetime-edit-fields-wrapper { padding: 0; }
html.vg-dark:not(#vgd0):not(#vgd1) ::-webkit-datetime-edit-text { color: var(--vgd-faint); padding: 0 2px; }
html.vg-dark:not(#vgd0):not(#vgd1) ::-webkit-calendar-picker-indicator { filter: invert(.7) sepia(.2) hue-rotate(180deg); opacity: .75; cursor: pointer; }
html.vg-dark:not(#vgd0):not(#vgd1) ::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* ── Leads table (overrides the LI3 injected light rules) ───────────────── */
html.vg-dark:not(#vgd0):not(#vgd1) #leadsTableBody > tr > td { background-color: transparent !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #leadsTableBody > tr.vg-grp-grant[data-lead-id] > td { background-color: rgba(34,197,94,.045) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #leadsTableBody > tr.vg-grp-carson[data-lead-id] > td { background-color: rgba(59,130,246,.06) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #leadsTableBody > tr.vg-grp-rusty[data-lead-id] > td { background-color: rgba(239,68,68,.055) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #leadsTableBody > tr.vg-grp-other[data-lead-id] > td { background-color: rgba(255,255,255,.015) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #leadsTableBody > tr[data-lead-id]:hover > td { background-color: rgba(59,130,246,.09) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #leadsTableBody > tr.lead-divider > td, html.vg-dark:not(#vgd0):not(#vgd1) #leadsTableBody > tr:not([data-lead-id]) > td { background-color: var(--vgd-chrome) !important; color: var(--vgd-muted) !important; border-color: var(--vgd-line) !important; font-size: 12px !important; letter-spacing: .08em; }
html.vg-dark:not(#vgd0):not(#vgd1) #leadsTableBody td.vg-li-st::before { color: var(--vgd-text2) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #leadsTableBody td.vg-li-st.vg-li-empty::before { color: var(--vgd-faint) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #leadsTableBody td.vg-li-st::after { color: var(--vgd-warn) !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .02em; }
html.vg-dark:not(#vgd0):not(#vgd1) #leadsTableBody td.vg-li-st.vg-li-warn2::after { color: var(--vgd-bad) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #leadsTableBody td.vg-li-is::after { /* Info Stage → the one badge, hue kept from --vg-li-c */
    background: color-mix(in srgb, var(--vg-li-c, #64748b) 16%, transparent) !important; color: color-mix(in srgb, var(--vg-li-c, #94a3b8) 45%, #ffffff) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vg-li-c, #64748b) 45%, transparent); border-radius: 4px !important; font-size: 12px !important; font-weight: 600 !important; padding: 1px 7px !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .vg-phone-overdue, html.vg-dark:not(#vgd0):not(#vgd1) .vg-phone-overdue i { color: #f87171 !important; }
html.vg-dark:not(#vgd0):not(#vgd1) .vg-info-pipeline .pipeline-stage.vg-active { outline: 1px solid var(--vgd-acc) !important; outline-offset: -1px !important; background: rgba(59,130,246,.07) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) input.vg-li-ph-warn::placeholder { color: var(--vgd-warn) !important; }

/* ── Floating suggestion / bug buttons: smaller, tucked into the corner ── */
html.vg-dark:not(#vgd0):not(#vgd1) #chat-bubble-btn, html.vg-dark:not(#vgd0):not(#vgd1) #suggestion-bubble-btn {
    width: 32px !important; height: 32px !important; min-width: 0 !important; font-size: 13px !important; border-radius: 8px !important; bottom: 10px !important;
    background: var(--vgd-raise) !important; color: var(--vgd-muted) !important; box-shadow: inset 0 0 0 1px var(--vgd-line2), 0 4px 12px rgba(0,0,0,.35) !important; opacity: .7; transition: opacity .15s, color .15s !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #chat-bubble-btn { right: 10px !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #suggestion-bubble-btn { right: 48px !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #chat-bubble-btn:hover, html.vg-dark:not(#vgd0):not(#vgd1) #suggestion-bubble-btn:hover { opacity: 1; color: var(--vgd-text) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #chat-bubble-btn:hover { color: var(--vgd-bad) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #suggestion-bubble-btn:hover { color: var(--vgd-warn) !important; }

/* ── Header logo plate ─────────────────────────────────────────────────── */
html.vg-dark:not(#vgd0):not(#vgd1) .nav-brand .logo { background: transparent; border-radius: 6px; }

/* ── Keep paper documents light ─────────────────────────────────────────── */
html.vg-dark:not(#vgd0):not(#vgd1) .pdf-container, html.vg-dark:not(#vgd0):not(#vgd1) .acord-container .pdf-container { background: #525659 !important; color-scheme: light; }
html.vg-dark:not(#vgd0):not(#vgd1) .pdf-container canvas { background: #fff; }
}

/* ═══ LAYOUT BUG FIXES (both themes; additive, CSS only) ═══════════════ */
/* Renewals: the "N need action / N" pill was a 50%-radius circle and spilled over the Month View tab */
#monthViewBtnBadge, #thirty45BtnBadge { border-radius: 9px !important; white-space: nowrap !important; width: auto !important; padding: 0 7px !important; }
.view-toggle .view-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
/* Calendar & Scheduler: Today's Schedule panel was cut off by the fixed-height window */
#calendarModal .calendar-body { min-height: 0; }
#calendarRightPanel { min-height: 0; overflow-y: auto; }
/* Policies: long carrier / client names wrapped instead of running into the next column */
#policyTableBody > tr > td:nth-child(3), #policyTableBody > tr > td:nth-child(4) { white-space: normal !important; overflow-wrap: anywhere; word-break: normal; }

/* ===== Force layer (beats inline-colour remap rules) ===== */
@media screen {
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) .sidebar-menu li > a { background: transparent !important; box-shadow: none !important; border: 0 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) .sidebar-menu li > a:hover { background: var(--vgd-raise) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) .sidebar-menu li.active > a, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) .sidebar-menu a.active { background: var(--vgd-acc-soft) !important; box-shadow: inset 2px 0 0 var(--vgd-acc) !important; color: var(--vgd-text) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) #sidebar-notif-btn { background: transparent !important; color: var(--vgd-faint) !important; border: 1px solid var(--vgd-line) !important; border-radius: 6px !important; font-size: 12px !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) #sidebar-notif-btn:hover { background: var(--vgd-raise) !important; color: var(--vgd-text) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) #sidebar-notif-icon { font-family: 'VG Emoji Mono', Inter, sans-serif !important; filter: grayscale(1) opacity(.7); }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) .carrier-card .carrier-logo { background: transparent !important; box-shadow: none !important; border: 0 !important; border-bottom: 1px solid var(--vgd-line) !important; border-radius: 0 !important; color: var(--vgd-text) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) .carrier-card .carrier-logo * { color: var(--vgd-text) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) .carrier-card .carrier-actions button, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) .carrier-card .carrier-actions a { white-space: nowrap !important; font-size: 12px !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) tbody tr, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) thead tr { border-color: var(--vgd-line) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) .data-table td.client-name { border-bottom: 1px solid var(--vgd-line) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) #clientsTableBody .action-buttons { flex-wrap: nowrap !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) .header .logo img, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) .header .brand img, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) .header img.logo { border-radius: 6px !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) #vgLeadsCsv { display: inline-flex !important; width: auto !important; max-width: max-content !important; align-self: flex-start !important; align-items: center; gap: 6px; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) #leadsTable thead th, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) .leads-view #leadsTable thead th { letter-spacing: .02em !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) #leadsTable thead th .sort-arrow { margin-left: 3px !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) .renewals-view { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
}
/* bug fix (both themes): calendar left panel can scroll too */
#calendarModal .calendar-body > * { min-height: 0; }
#calendarModal .calendar-body > *:first-child { overflow-y: auto; }

/* ==== TH3: terminal layout layer (vg-dark only, screen only) ============================== */
html.vg-dark:not(#vgd0):not(#vgd1) {
  --vgd-amber: #f59e0b; --vgd-amber-soft: rgba(245,158,11,.12);
  --vgd-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --vgd-muted: #a3b1c6; --vgd-faint: #7c8ba1;
  --vgd-r-sm: 2px; --vgd-r-md: 2px; --vgd-r-lg: 2px; --vgd-r-xl: 3px;
  color-scheme: dark;
}
@media screen {
/* -- 0-2px radius everywhere, no soft shadows -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) body *:not(.market-content *):not(.pdf-container *):not(.acord-container *):not(.pdf-capture *):not(.fa-spin):not([class*="spinner"]):not([class*="loader"]):not(input[type=radio]):not(.vg-dot):not(svg *) {
  border-radius: 2px !important; box-shadow: none !important; text-shadow: none !important;
}
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) body *:focus-visible { outline: 1px solid var(--vgd-acc) !important; outline-offset: 1px; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) body :is(.modal-content, .modal > div, .tool-window, [class*="floating-window"], [id$="Window"], .dropdown-menu, .notification, .toast, [class*="toast"]) {
  box-shadow: 0 0 0 1px var(--vgd-line2), 0 12px 32px rgba(0,0,0,.55) !important;
}
/* -- fonts -- */
html.vg-dark:not(#vgd0):not(#vgd1) body, html.vg-dark:not(#vgd0):not(#vgd1) body :is(input, select, textarea, button) {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-variant-numeric: tabular-nums;
}
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) [data-vgd-num],
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.stat-number, .stage-count, .vg-clock, input[type=date], input[type=number], input[type=time], input[type=tel], .policy-number, .dot-number, .mc-number, td.premium, .amount, .money) {
  font-family: var(--vgd-mono) !important; font-variant-numeric: tabular-nums; letter-spacing: 0;
}
/* -- headers: uppercase letter-spaced, flat thin bars -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.card h3, .card-header h3, .section-header h3, .dashboard-card h3, .settings-section h3, .modal-header h2, .modal-header h3, .stage-header h3, .stat-content h4, .form-section h3, .form-section h4, fieldset legend, .lead-section h3, .profile-section h3, .section-title, .card-title) {
  text-transform: uppercase; letter-spacing: .08em; font-size: 12px !important; font-weight: 600 !important; color: var(--vgd-muted) !important;
}
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.card-header, .section-header, .modal-header, .dashboard-card > .card-header, .panel-header) {
  background: var(--vgd-panel2) !important; border-bottom: 1px solid var(--vgd-line) !important; padding: 7px 12px !important; min-height: 0 !important; background-image: none !important;
}
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .modal-header :is(h2, h3) { color: var(--vgd-text) !important; margin: 0 !important; }
/* one page-title style */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.header-content > h1, .dashboard-header h1, .page-header h1, [class$="-view"] > h1, [class$="-view"] > header h1, [class$="-header"] > h1, [class$="-header"] > div > h1) {
  font-size: 18px !important; font-weight: 600 !important; letter-spacing: .01em; margin: 0 0 10px !important; line-height: 1.3 !important; text-transform: none;
}
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.header-content > h1, [class$="-header"] > h1, [class$="-header"] > div > h1) > i:first-child { display: none !important; }
/* -- dense spacing -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.card, .dashboard-card, .settings-section, .stat-card, .pipeline-stage, .form-section) { box-shadow: none !important; background-image: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.card, .dashboard-card, .settings-section) { border: 1px solid var(--vgd-line) !important; }
/* -- data tiles: pipeline + stat cards -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .lead-pipeline { gap: 1px !important; background: var(--vgd-line) !important; border: 1px solid var(--vgd-line) !important; padding: 0 !important; margin-bottom: 10px !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .lead-pipeline .pipeline-stage { background: var(--vgd-panel) !important; border: 0 !important; padding: 8px 12px 10px !important; text-align: left !important; position: relative; min-height: 0 !important; transform: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .lead-pipeline .pipeline-stage:hover { background: var(--vgd-raise) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .lead-pipeline .stage-header { display: flex !important; flex-direction: column-reverse; align-items: flex-start !important; gap: 2px; padding: 0 !important; background: none !important; border: 0 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .lead-pipeline .stage-count { background: none !important; border: 0 !important; padding: 0 !important; width: auto !important; height: auto !important; font-size: 20px !important; line-height: 1.1 !important; font-weight: 600 !important; color: var(--vgd-text) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .lead-pipeline .stage-bar { position: absolute !important; left: 0; right: 0; bottom: 0; height: 2px !important; margin: 0 !important; opacity: .7; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .lead-stats { gap: 1px !important; background: var(--vgd-line) !important; border: 1px solid var(--vgd-line) !important; margin-bottom: 10px !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.lead-stats .stat-card, .dashboard-stats .stat-card, .stats-grid .stat-card) { padding: 8px 12px !important; gap: 10px !important; min-height: 0 !important; border: 0 !important; background: var(--vgd-panel) !important; transform: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .stat-card .stat-icon { background: none !important; width: 18px !important; height: 18px !important; min-width: 18px; color: var(--vgd-faint) !important; font-size: 14px !important; border: 0 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .stat-card .stat-icon i { color: var(--vgd-faint) !important; -webkit-text-stroke: 0; font-weight: 400; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .stat-card .stat-number { font-size: 20px !important; font-weight: 600 !important; color: var(--vgd-text) !important; line-height: 1.15 !important; }
/* -- tables: compact, column grid lines, zebra, dark hover/selected -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) body table:not(.market-content table):not(.pdf-container table) { border-collapse: collapse !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) body :is(.data-table, .table-container table, table.leads-table, #leadsTable, #policyTable, .renewals-table, .clients-table) :is(th, td) {
  padding: 5px 8px !important; border-right: 1px solid var(--vgd-line) !important; border-bottom: 1px solid var(--vgd-line) !important; font-size: 13px; line-height: 1.35;
}
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) body :is(.data-table, .table-container table, #leadsTable, #policyTable) th {
  background: var(--vgd-panel2) !important; text-transform: uppercase; letter-spacing: .06em; font-size: 12px !important; font-weight: 600; color: var(--vgd-muted) !important; position: sticky; top: 0; z-index: 1;
}
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) body :is(.data-table, .table-container table, #leadsTable, #policyTable) :is(th, td):last-child { border-right: 0 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) body :is(.data-table, .table-container table, #leadsTable, #policyTable) tbody tr:nth-child(even) > td { background-image: linear-gradient(rgba(255,255,255,.018), rgba(255,255,255,.018)) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) body table tbody tr:hover > td { background-image: linear-gradient(rgba(59,130,246,.09), rgba(59,130,246,.09)) !important; color: inherit; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) body table tbody tr:is(.selected, .active, .highlighted, :has(> td > input[type=checkbox]:checked)) > td { background-image: linear-gradient(rgba(59,130,246,.16), rgba(59,130,246,.16)) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) body table tbody tr { border-top: 0 !important; transform: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) body table tbody tr:hover { background-color: transparent; }
/* -- badges, chips, pills: square tags -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.badge, .status-badge, .stage-badge, .tag, .chip, .pill, [class*="-badge"], [class*="badge-"], [class*="-chip"], [class*="-pill"]):not(.notification-dot):not(#sidebar-notif-dot) {
  font-size: 12px !important; line-height: 16px !important; padding: 0 5px !important; letter-spacing: .02em; font-weight: 600;
}
/* -- icon circles/colored squares -> plain thin icon -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.stat-icon, .card-icon, .activity-icon, .quick-link-icon, .icon-circle, .feature-icon, .integration-icon, .reminder-icon) {
  background: none !important; background-image: none !important; border: 0 !important; color: var(--vgd-faint) !important;
}
/* -- buttons: one secondary style -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.btn-secondary, .btn-outline, .btn-light, .btn-default, .btn-cancel, button.secondary) {
  background: var(--vgd-panel2) !important; border: 1px solid var(--vgd-line2) !important; color: var(--vgd-text2) !important; background-image: none !important;
}
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.btn-secondary, .btn-outline, .btn-light, .btn-default, .btn-cancel):hover { border-color: var(--vgd-acc-line) !important; color: var(--vgd-text) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.btn-primary, button[type=submit]):not(.market-content *) { background: var(--vgd-acc-solid) !important; background-image: none !important; border: 1px solid var(--vgd-acc) !important; color: #fff !important; }
/* one close button */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.close-btn, .modal-close, .close-modal, .btn-close, .modal-header .close, button[aria-label="Close"]) {
  background: transparent !important; border: 1px solid transparent !important; color: var(--vgd-muted) !important; width: 26px !important; height: 26px !important; min-width: 26px; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; font-size: 16px !important; line-height: 1 !important;
}
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.close-btn, .modal-close, .close-modal, .btn-close, .modal-header .close):hover { border-color: var(--vgd-line2) !important; color: var(--vgd-text) !important; background: var(--vgd-raise) !important; }
/* one tab style: underline */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.tab-btn, .tab-button, .tabs > button, .tab, .nav-tab, .profile-tab, .modal-tab, .view-btn, .filter-tab, [role=tab]):not(.market-content *) {
  background: transparent !important; background-image: none !important; border: 0 !important; border-bottom: 2px solid transparent !important; color: var(--vgd-muted) !important; padding: 6px 10px !important; font-size: 12px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .06em;
}
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.tab-btn, .tab-button, .tabs > button, .tab, .nav-tab, .profile-tab, .modal-tab, .view-btn, .filter-tab, [role=tab]):is(.active, [aria-selected=true]):not(.market-content *) {
  color: var(--vgd-text) !important; border-bottom-color: var(--vgd-amber) !important; background: transparent !important;
}
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.tab-btn, .tab-button, .tabs > button, .tab, .nav-tab, .profile-tab, .modal-tab, .view-btn, .filter-tab):hover:not(.active) { color: var(--vgd-text2) !important; background: var(--vgd-raise) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.tabs, .tab-nav, .modal-tabs, .profile-tabs, .view-toggle, .tab-container > .tab-buttons) { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--vgd-line) !important; gap: 0 !important; padding: 0 !important; overflow-x: auto; flex-wrap: nowrap; }
/* -- inputs -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea):not(.market-content *) {
  background-color: var(--vgd-field) !important; border: 1px solid var(--vgd-line2) !important; color: var(--vgd-text) !important; min-height: 28px; padding-top: 4px; padding-bottom: 4px; font-size: 13px;
}
html.vg-dark:not(#vgd0):not(#vgd1) body :is(select, option, optgroup, input, textarea) { color-scheme: dark; }
html.vg-dark:not(#vgd0):not(#vgd1) body :is(option, optgroup) { background-color: #0d1524 !important; color: #e2e8f0 !important; }
html.vg-dark:not(#vgd0):not(#vgd1) body ::-webkit-calendar-picker-indicator { filter: invert(.8); }
html.vg-dark:not(#vgd0):not(#vgd1) body audio { color-scheme: dark; filter: invert(.88) hue-rotate(180deg); border-radius: 2px; }
/* toggle switches: square */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.slider, .toggle-slider, .switch .slider, .slider:before, .toggle-slider:before) { border-radius: 1px !important; }
/* -- modals: tight flat shell -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .modal { background: rgba(2,6,15,.72) !important; backdrop-filter: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .modal .modal-content { background: var(--vgd-panel) !important; border: 1px solid var(--vgd-line2) !important; color: var(--vgd-text) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .modal .modal-body { padding: 12px 14px !important; background: transparent !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .modal :is(.modal-footer, .form-actions) { border-top: 1px solid var(--vgd-line) !important; padding: 8px 14px !important; background: var(--vgd-panel2) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .modal :is(.form-group, .form-row) { margin-bottom: 8px !important; gap: 10px; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .modal label { font-size: 12px !important; color: var(--vgd-muted) !important; margin-bottom: 3px !important; letter-spacing: .02em; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .modal .form-section { padding: 10px 12px !important; margin-bottom: 10px !important; border: 1px solid var(--vgd-line) !important; background: var(--vgd-panel2) !important; }
html.vg-dark body:has(.modal.active) { overflow: hidden !important; }
/* client modal (New/Edit Client) */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #clientModal .modal-content, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #clientModal .modal-content * { background-color: transparent; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #clientModal .modal-content { background-color: var(--vgd-panel) !important; max-height: 92vh; overflow-y: auto; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #clientModal :is(h1, h2, h3, h4, p, span, label, div) { color: inherit; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #clientModal :is(input, select, textarea) { background-color: var(--vgd-field) !important; color: var(--vgd-text) !important; height: auto !important; min-height: 30px; line-height: 1.3 !important; }
/* -- sidebar: compact -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .sidebar { border-right: 1px solid var(--vgd-line) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .sidebar-menu li > a { padding-top: 7px !important; padding-bottom: 7px !important; font-size: 13px !important; border-radius: 0 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .sidebar-menu li { margin: 0 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .sidebar-menu li > a.active, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .sidebar-menu li.active > a { box-shadow: inset 2px 0 0 var(--vgd-amber) !important; background: var(--vgd-amber-soft) !important; color: var(--vgd-text) !important; }
/* -- top bar + clock strip -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .header { border-bottom: 1px solid var(--vgd-line) !important; box-shadow: none !important; background: var(--vgd-chrome) !important; }
.vg-clock { display: none; }
html.vg-dark .vg-clock { display: inline-flex; align-items: center; gap: 6px; font-family: var(--vgd-mono); font-size: 12px; color: var(--vgd-muted); padding: 2px 8px; border: 1px solid var(--vgd-line); border-radius: 2px; margin-right: 8px; white-space: nowrap; letter-spacing: .04em; }
html.vg-dark .vg-clock::before { content: ""; width: 6px; height: 6px; background: #22c55e; display: inline-block; }
@media (max-width: 900px) { html.vg-dark .vg-clock { display: none; } }
/* -- floating tool windows / chat -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.tool-window, [class*="tool-window"], #notepadWindow, #todoWindow, #calendarWindow, .chat-window, #team-chat-panel, [id*="chat-panel"]) { border: 1px solid var(--vgd-line2) !important; }
/* -- 12px minimum -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) body :is(small, .small, .text-muted, .muted, .help-text, .hint, .meta, .timestamp, [style*="font-size: 0.7"], [style*="font-size:0.7"], [style*="font-size: 0.65"], [style*="font-size:0.65"], [style*="font-size: 0.6"], [style*="font-size:0.6"], [style*="font-size: 10px"], [style*="font-size:10px"], [style*="font-size: 11px"], [style*="font-size:11px"], [style*="font-size: 9px"], [style*="font-size:9px"], [style*="font-size: 8px"], [style*="font-size:8px"]):not(.market-content *):not(.fa):not(i) { font-size: 12px !important; }
/* -- inline light backgrounds (stop the white flash before JS recolours) -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) body :is([style*="background: white"], [style*="background:white"], [style*="background: #fff"], [style*="background:#fff"], [style*="background-color: white"], [style*="background-color:white"], [style*="background-color: #fff"], [style*="background-color:#fff"], [style*="background: rgb(255, 255, 255)"], [style*="background-color: rgb(255, 255, 255)"], [style*="#f9fafb"], [style*="#f3f4f6"], [style*="#f8fafc"], [style*="#f1f5f9"], [style*="#f8f9fa"], [style*="#e5e7eb"], [style*="#fafafa"], [style*="#eff6ff"], [style*="#f0f9ff"], [style*="#fef2f2"], [style*="#fef3c7"], [style*="#ecfdf5"], [style*="#f0fdf4"]):not(.market-content *):not(.pdf-container *):not(.acord-container *):not(.pdf-container):not(.acord-container) {
  background-color: var(--vgd-panel2) !important; background-image: none !important; border-color: var(--vgd-line) !important; color: var(--vgd-text2);
}
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) body :is(.tab-btn, .todo-tab, .btn-secondary, button):is([style*="background: white"], [style*="#f3f4f6"], [style*="#f9fafb"]) { background-color: var(--vgd-panel2) !important; }
/* -- dashboard: QuickLinks / reminders neutral -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.quick-links, .quick-link, .quick-links a, .quicklinks a, [class*="quick-link"], .reminder-item, .reminders-list > *, [class*="reminder"] > div) {
  color: var(--vgd-text2) !important; border-color: var(--vgd-line) !important; background-image: none !important;
}
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.quick-links a, [class*="quick-link"]) i { color: var(--vgd-faint) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.reminder-item, [class*="reminder"] > div)[style*="border-left"] { border-left-width: 2px !important; }
/* -- leads: contact circles, last-contact line, red caps stage text -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody :is(.contact-btn, .contact-icon, [class*="contact"] button, [class*="contact"] a, button[title*="Call"], button[title*="Email"], button[title*="Text"]) {
  background: var(--vgd-panel2) !important; border: 1px solid var(--vgd-line2) !important; color: var(--vgd-text2) !important; opacity: 1 !important;
}
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody td { overflow: visible; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody :is([class*="last-contact"], [class*="attempt"]) { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; max-width: none !important; color: var(--vgd-muted) !important; }
/* -- calendar modal Agency tab -- */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #calendarModal :is(button, .tab, [class*="tab"]):not(.active):not([class*="day"]) { background-color: transparent; }
/* -- scrollbars square -- */
html.vg-dark:not(#vgd0):not(#vgd1) ::-webkit-scrollbar-thumb { border-radius: 0 !important; }
/* leads: muted archive icon, stage warning text */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody button[title="Archive Lead"] { color: var(--vgd-muted) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody td.vg-li-cell::before, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody td.vg-li-cell::after { color: var(--vgd-warn) !important; font-size: 12px !important; font-weight: 500 !important; letter-spacing: .02em; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody .contact-info a { color: var(--vgd-text2) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody .contact-info a:hover { color: var(--vgd-acc) !important; }
/* dashboard QuickLinks + Reminders: neutral tiles, one accent line */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(#quicklinks-container, #reminder-stats-container > div) { gap: 1px !important; background: var(--vgd-line) !important; border: 1px solid var(--vgd-line) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(#quicklinks-container, #reminder-stats-container > div) > div { background: var(--vgd-panel) !important; background-image: none !important; border: 0 !important; border-left: 2px solid transparent !important; padding: 9px 12px !important; transform: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(#quicklinks-container, #reminder-stats-container > div) > div:hover { background: var(--vgd-raise) !important; border-left-color: var(--vgd-amber) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(#quicklinks-container, #reminder-stats-container > div) > div p { color: var(--vgd-text) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #quicklinks-container > div p { font-size: 14px !important; font-weight: 500 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #reminder-stats-container > div > div p:first-child { color: var(--vgd-muted) !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: .06em; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #reminder-stats-container > div > div p + p { font-size: 20px !important; font-family: var(--vgd-mono) !important; font-weight: 600 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #reminder-stats-container > div > div p span { color: var(--vgd-muted) !important; font-family: Inter, system-ui, sans-serif; font-size: 12px !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(#quicklinks-container, #reminder-stats-container) i { color: var(--vgd-faint) !important; font-size: 14px !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #quicklinks-section .section-header + div, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #reminder-stats-container { padding: 12px !important; }
/* premium goal bar */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #goals-annual-segments { background: var(--vgd-panel2) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #goals-annual-segments > div { background: var(--vgd-panel2) !important; border-right: 1px solid var(--vgd-line) !important; opacity: 1; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #goals-annual-segments > div > div { background: rgba(245,158,11,.45) !important; background-image: none !important; border: 0 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #goals-annual-segments { outline: 0 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #goals-annual-segments + #goals-annual-pct-label, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #goals-annual-pct-label { color: var(--vgd-text) !important; text-shadow: none !important; background: rgba(7,12,23,.82) !important; padding: 1px 6px !important; font-family: var(--vgd-mono) !important; font-size: 12px !important; border: 1px solid var(--vgd-line2) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #goals-annual-segments:not(:has(> div)) { display: block; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #goals-annual-section > div:nth-child(2) { border: 1px solid var(--vgd-line2) !important; background: var(--vgd-panel2) !important; height: 30px !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #goals-annual-total { color: var(--vgd-amber) !important; font-family: var(--vgd-mono) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #goals-annual-heading { color: var(--vgd-text) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #goals-annual-section i.fa-star { color: var(--vgd-amber) !important; }
/* switches: a clear on/off state */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .switch .slider { background: var(--vgd-raise) !important; border: 1px solid var(--vgd-line2) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .switch .slider:before { background: var(--vgd-muted) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .switch input:checked + .slider { background: var(--vgd-acc-solid) !important; border-color: var(--vgd-acc) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .switch input:checked + .slider:before { background: #fff !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .switch input:focus-visible + .slider { outline: 1px solid var(--vgd-acc); outline-offset: 1px; }
/* decorative icons off; icon-only controls keep one thin outline icon at one size */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) [data-vgd-ico="deco"], html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .stat-card .stat-icon, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(h1,h2,h3,h4,h5,h6) > i:is(.fas,.far,.fa,.fab) { display: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is([data-vgd-ico="keep"], .sidebar-menu li > a > i, .action-buttons i, .btn-icon i, .contact-info i, .nav-actions > * > i, .nav-actions > i) {
  font-size: 14px !important; width: 16px; text-align: center; color: transparent !important; -webkit-text-stroke: 1px var(--vgd-text2); }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(button, a):hover > :is([data-vgd-ico="keep"], i) { -webkit-text-stroke-color: var(--vgd-acc); }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .sidebar-menu li > a.active > i, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .sidebar-menu li.active > a > i { -webkit-text-stroke-color: var(--vgd-amber); }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #sidebar-notif-icon { filter: grayscale(1); opacity: .7; }
/* policy edit modal */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) [id^="overview-"][id$="-track"] { background: var(--vgd-raise) !important; border: 1px solid var(--vgd-line2) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) input:checked ~ [id^="overview-"][id$="-track"] { background: var(--vgd-acc-solid) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) [id^="overview-"][id$="-thumb"] { background: var(--vgd-muted) !important; box-shadow: none !important; }
/* New Lead / other .modal-container forms: tight grid */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.modal-container, .modal-content) .modal-body { padding: 14px 16px !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.modal-container, .modal-content) .form-grid { gap: 10px 14px !important; margin-bottom: 12px !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.modal-container, .modal-content) .form-grid > .form-group { margin-bottom: 0 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(.modal-container, .modal-content) label { margin-bottom: 3px !important; font-size: 12px !important; font-weight: 500 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .modal-container { border: 1px solid var(--vgd-line2) !important; background: var(--vgd-panel) !important; }
/* section headers on dashboard cards */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .section-header :is(h2, h3) { text-transform: uppercase; letter-spacing: .08em; font-size: 12px !important; font-weight: 600 !important; color: var(--vgd-muted) !important; margin: 0 !important; }
/* sort arrows: plain, no outline stroke */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(th, .sortable) > i, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) :is(th, .sortable) > span > i, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .sort-arrow i { color: var(--vgd-faint) !important; -webkit-text-stroke: 0 !important; font-size: 11px !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) [data-vgd-icohost] { display: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .carrier-card :is(h3, h4, .carrier-name) { text-align: left !important; }
} /* /screen */

/* ==== both themes: layout bug fixes (TH3) ==== */
/* Leads Name column: more room, wrap the last-contact line and doc chips instead of clipping */
#leadsTableBody td.lead-name { max-width: 230px !important; min-width: 170px; white-space: normal !important; overflow: visible !important; }
#leadsTableBody td.lead-name > strong { white-space: normal !important; overflow-wrap: anywhere; }
#leadsTableBody td.lead-name .vg-contact-info { white-space: normal !important; }
#leadsTableBody td.lead-name .vg-docb { flex-wrap: wrap !important; white-space: normal !important; row-gap: 2px; }
#leadsTableBody td.lead-name .vg-docb > * { white-space: nowrap; }
/* Archived Leads: empty-state row spans 11 columns but the header has 10, so the header line stopped short */
#archivedLeadsTable:has(tbody td[colspan="11"]) thead tr::after { content: ""; display: table-cell; background: inherit; border-bottom: inherit; }
#archivedLeadsTable:has(tbody td[colspan="11"]) thead th:last-child { border-right: 0; }
html.vg-dark #archivedLeadsTable:has(tbody td[colspan="11"]) thead tr::after { background: var(--vgd-panel2); border-bottom: 1px solid var(--vgd-line); }
/* collapsed sidebar rail: show the notification icon instead of an empty box */
.sidebar:not(:hover) #sidebar-notif-icon { display: inline-block !important; opacity: 1 !important; visibility: visible !important; width: 20px !important; height: auto !important; font-size: 15px !important; position: static !important; left: auto !important; }
.sidebar:not(:hover) #sidebar-notif-btn { justify-content: center !important; padding: 8px 0 !important; gap: 0 !important; }
.data-table td.client-name { display: table-cell !important; vertical-align: middle; }
.data-table td.client-name > * { vertical-align: middle; }
.sidebar.collapsed #sidebar-notif-btn #sidebar-notif-label, .sidebar-collapsed #sidebar-notif-btn #sidebar-notif-label { display: none !important; }
.sidebar.collapsed #sidebar-notif-btn #sidebar-notif-icon, .sidebar-collapsed #sidebar-notif-btn #sidebar-notif-icon { display: inline-block !important; margin: 0 auto !important; }

@media print {
  #chat-bubble-btn, #suggestion-bubble-btn, .sidebar, #vg-theme-toggle, .vg-clock, .vg-theme-toggle, [class*="floating-btn"], [id*="bubble-btn"] { display: none !important; }
  .main-content, .content, main { margin-left: 0 !important; width: 100% !important; }
  html.vg-dark, html.vg-dark body { background: #fff !important; color: #111 !important; }
}
/* ===== TH4 (2026-10-24) ===== */
/* --- both themes: layout stability --- */
@media screen and (min-width: 1440px) {
  html:not(#vgx0) .header .nav-menu { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; margin: 0 !important; }
}
html:not(#vgx0) #vg-theme-toggle { width: 34px; min-width: 34px; height: 34px; flex: 0 0 34px; }
html.vg-dark:not(#vgx0) #vg-clock { min-width: 96px; display: inline-block; }
/* sidebar: fixed width until the page has loaded (no 70 -> 102 -> 138px jumps) */
html:not(.vg-ready):not(#vgx0) .sidebar, html:not(.vg-ready):not(#vgx0) .sidebar:hover { width: var(--sidebar-width, 70px) !important; transition: none !important; }
html:not(.vg-ready):not(#vgx0) .sidebar ~ .main-content, html:not(.vg-ready):not(#vgx0) .sidebar:hover ~ .main-content { margin-left: var(--sidebar-width, 70px) !important; transition: none !important; }
html:not(#vgx0):not(#vgx1) .sidebar:hover .sidebar-menu a { padding-right: 14px !important; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* header above floating tool windows (Calendar z 1000 / Team Chat 1001), below modals */
html:not(#vgx0) .header { z-index: 1010 !important; }
/* Tools dropdown: closed after a pick, Escape, outside click or navigation */
html[data-vg-ddx]:not(#vgx0) .header .dropdown .dropdown-menu { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
/* Archived header / breadcrumb / table aligned (both themes) */
html:not(#vgx0):not(#vgx1):not(#vgx2) .archived-view > header.content-header { padding: 16px 24px !important; margin: 0 !important; min-height: 0 !important; gap: 12px; }
html:not(#vgx0):not(#vgx1):not(#vgx2) .archived-view > header.content-header > div:first-child { gap: 14px !important; min-width: 0; }
html:not(#vgx0):not(#vgx1):not(#vgx2) .archived-view > header.content-header > div:first-child > a { font-size: 13px !important; padding: 4px 0 !important; white-space: nowrap; }
html:not(#vgx0):not(#vgx1):not(#vgx2) .archived-view > header.content-header h1 { font-size: 20px !important; line-height: 1.25 !important; margin: 0 !important; white-space: nowrap; }
html:not(#vgx0):not(#vgx1) .archived-view #monthlyArchiveTabs, html:not(#vgx0):not(#vgx1) .archived-view > .table-container { margin-left: 24px !important; margin-right: 24px !important; }
/* Leads Export CSV: a small button, not a full-width bar */
html:not(#vgx0):not(#vgx1) #vgLeadsCsv { align-self: flex-start !important; width: auto !important; flex: 0 0 auto !important; display: inline-flex !important; }
/* FMCSA Authority Activity: full width; state loader inline instead of a big centred spinner */
html:not(#vgx0):not(#vgx1) .fmcsa-activity-view, html:not(#vgx0):not(#vgx1) .fmcsa-state-view { max-width: none !important; }
html:not(#vgx0):not(#vgx1) .dashboard-content > div:only-child:has(> i.fa-circle-notch.fa-spin) { padding: 18px 4px !important; text-align: left !important; display: flex !important; align-items: center; gap: 10px; font-size: 13px !important; }
html:not(#vgx0):not(#vgx1) .dashboard-content > div:only-child:has(> i.fa-circle-notch.fa-spin) > i { display: inline-block !important; margin: 0 !important; font-size: 14px !important; }
/* Compliance: use the page width */
html:not(#vgx0):not(#vgx1) #dashboardContent > div[style*="max-width:1400px"] { max-width: none !important; }
/* Policy edit: only the tab that was clicked looks active (Vehicles/Drivers use a different switch) */
html:not(#vgx0):not(#vgx1):not(#vgx2) #policyModal:has(.tab-btn[data-vg-cur]) .tab-btn.active:not([data-vg-cur]) { background: transparent !important; color: inherit !important; border-bottom-color: transparent !important; box-shadow: none !important; font-weight: 500 !important; }
html:not(#vgx0):not(#vgx1):not(#vgx2) #policyModal .tab-btn { padding: 10px 16px !important; border-radius: 0 !important; }
/* Edit Client: wider modal, two real columns */
html:not(#vgx0):not(#vgx1):not(#vgx2) #clientModal .modal-content { width: min(760px, calc(100vw - 48px)) !important; max-width: 760px !important; }
html:not(#vgx0):not(#vgx1):not(#vgx2) #clientModal .form-row { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; gap: 12px 16px !important; }
html:not(#vgx0):not(#vgx1):not(#vgx2) #clientModal .form-row > .form-group { min-width: 0 !important; width: auto !important; }
html:not(#vgx0):not(#vgx1):not(#vgx2) #clientModal .form-row input, html:not(#vgx0):not(#vgx1):not(#vgx2) #clientModal .form-row select { width: 100% !important; box-sizing: border-box !important; }
/* Policies: action icons in one row (rows were ~78px) */
html:not(#vgx0):not(#vgx1) #policyTableBody .action-buttons { display: flex !important; flex-wrap: nowrap !important; gap: 4px !important; align-items: center; }
html:not(#vgx0):not(#vgx1) #policyTableBody td:has(> .action-buttons) { white-space: nowrap !important; width: 1% !important; }
html:not(#vgx0) .vg-pol-empty td { text-align: center; padding: 28px 12px !important; color: #6b7280; font-size: 13px; }
/* Calendar window: below the header, nothing clipped */
html:not(#vgx0):not(#vgx1) #calendarModal { max-height: calc(100vh - 96px) !important; height: auto !important; overflow: auto !important; }
/* Team Chat: placeholder and last timestamp not clipped; settings button never an empty square */
html:not(#vgx0):not(#vgx1) #team-chat-window textarea { min-height: 44px !important; line-height: 1.4 !important; box-sizing: border-box !important; }
html:not(#vgx0):not(#vgx1) #team-chat-window [class*="messages"] { padding-bottom: 14px !important; }
html:not(#vgx0):not(#vgx1) #chat-settings-btn .fab.fa-google::before { content: "G" !important; font-family: inherit !important; font-weight: 700 !important; }

/* --- dark only --- */
/* premium bar: label above the bar, not on top of the month bars */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) #goals-annual-pct-label { position: static !important; transform: none !important; display: block; text-align: right; margin: 0 0 4px; text-shadow: none !important; color: var(--vgd-text2) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) div:has(> #goals-annual-pct-label) { overflow: visible !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) #goals-annual-total { color: var(--vgd-text) !important; }
/* lead row hover / selected: never white (app rules set the <tr> to #f9fafb !important; vg-lead-info sets checked rows #dbeafe) */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody > tr:hover, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) .data-table tbody tr:hover { background-color: var(--vgd-panel) !important; background-image: none !important; transform: none !important; box-shadow: none !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody > tr:hover > td { background-color: rgba(59,130,246,.10) !important; color: inherit !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody > tr[data-lead-id]:has(input.lead-checkbox:checked) > td { background-color: rgba(59,130,246,.18) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody > tr[data-lead-id]:has(input.lead-checkbox:checked):hover > td { background-color: rgba(59,130,246,.24) !important; }
/* sort indicators: thin arrows, always visible */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5) th .sort-arrow { display: inline-block !important; visibility: visible !important; opacity: 1 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5) th .sort-arrow i { display: inline-block !important; visibility: visible !important; color: var(--vgd-muted) !important; font-size: 12px !important; width: auto !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5) th .sort-arrow i::before { font-family: system-ui, sans-serif !important; font-weight: 400 !important; content: "\2195" !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5) th .sort-arrow i.fa-sort-up::before, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5) th .sort-arrow i.fa-sort-asc::before { content: "\2191" !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5) th .sort-arrow i.fa-sort-down::before, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5) th .sort-arrow i.fa-sort-desc::before { content: "\2193" !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5) th .sort-arrow i:is(.fa-sort-up,.fa-sort-down,.fa-sort-asc,.fa-sort-desc) { color: var(--vgd-text) !important; }
/* Leads: one badge system. Info Received = neutral; stage warning = one amber tone */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody td.vg-li-is::after { background: var(--vgd-badge-n-bg) !important; color: var(--vgd-badge-n-fg) !important; box-shadow: inset 0 0 0 1px var(--vgd-badge-n-line) !important; border-radius: 2px !important; font-size: 11px !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody td.vg-li-st::after, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody td.vg-li-st.vg-li-warn2::after { color: var(--vgd-warn) !important; font-size: 11px !important; font-weight: 600 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #leadsTableBody td.vg-li-st::before { color: var(--vgd-text2) !important; }
/* Policies: type badges neutral, status case normalised */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) .policy-type-badge { background: var(--vgd-badge-n-bg) !important; color: var(--vgd-badge-n-fg) !important; border-color: var(--vgd-badge-n-line) !important; box-shadow: inset 0 0 0 1px var(--vgd-badge-n-line) !important; }
html:not(#vgx0) .status-badge { text-transform: capitalize; }
/* Renewals: need-action chip = one bad badge at 12px; task badge neutral */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) #monthViewBtnBadge { font-size: 11px !important; font-weight: 600 !important; padding: 0 5px !important; line-height: 16px !important; background: var(--vgd-bad-bg) !important; color: var(--vgd-bad) !important; box-shadow: inset 0 0 0 1px var(--vgd-bad-line) !important; border-radius: 2px !important; }
/* Comms: urgency keeps semantic red; NEW and other category pills neutral */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) .clickable-email, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) .clickable-phone { color: var(--vgd-acc) !important; text-decoration-color: rgba(147,197,253,.4) !important; }
/* Market: restrained palette (ticker / badges); chart lines are re-coloured by JS */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) .mkt-ticker-label, html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) .mkt-live-badge { background: var(--vgd-raise) !important; color: var(--vgd-text2) !important; box-shadow: inset 0 0 0 1px var(--vgd-line2) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) :is(.mkt-ticker-abbr,.mkt-ticker-count,.mkt-ticker-up,.mkt-ticker-down,.mkt-panel-title,.mkt-stat-lbl,.mkt-mover-tab,.mkt-mover-sub,.mkt-period-dates,.mkt-data-asof,.mkt-compare-label,.mkt-appt-btn) { font-size: 11px !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) .mkt-ticker-label { font-size: 11px !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) .mkt-data-asof { color: var(--vgd-muted) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) :is(.mkt-stat-val) { color: var(--vgd-text) !important; }
/* TH5: per-carrier colour bars keep the app colours (removed the TH4 neutral override) */
/* Compliance: neutral icon tiles */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) #dashboardContent div[style*="width:42px"][style*="height:42px"] { background: var(--vgd-raise) !important; color: var(--vgd-muted) !important; box-shadow: inset 0 0 0 1px var(--vgd-line2) !important; }
/* Accounting: neutral KPI icon tiles; long values never overflow their card */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) .acct-kpi-icon { background: var(--vgd-raise) !important; color: var(--vgd-muted) !important; box-shadow: inset 0 0 0 1px var(--vgd-line2) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) .acct-kpi-icon i { color: var(--vgd-muted) !important; }
html:not(#vgx0):not(#vgx1) .acct-kpi { min-width: 0 !important; overflow: hidden; }
html:not(#vgx0):not(#vgx1) .acct-kpi-body { min-width: 0 !important; }
html:not(#vgx0):not(#vgx1) .acct-kpi-val { font-size: clamp(14px, 1.25vw, 22px) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) .acct-tab.active { color: var(--vgd-text) !important; }
/* Policy modal: limit / premium inputs fit their values; Remove Vehicle neutral */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) #policyModal :is(.cov-amount, .cov-limit, .cov-premium, .cov-deductible, input[class*="cov"]) { min-width: 120px !important; padding-left: 8px !important; padding-right: 8px !important; box-sizing: border-box !important; }
html:not(#vgx0):not(#vgx1) #policyModal td:has(> :is(.cov-amount, .cov-limit, .cov-premium, input[class*="cov"])) { min-width: 130px; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4) #policyModal [data-vg-neutral] { background-color: transparent !important; color: var(--vgd-text2) !important; box-shadow: inset 0 0 0 1px var(--vgd-line2) !important; border-color: transparent !important; }
/* Calendar event chip: neutral info instead of pastel green 7px */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) #calendarModal div[style*="font-size:7px"], html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) #dashboardContent div[style*="font-size:7px"] { font-size: 11px !important; background: var(--vgd-info-bg) !important; color: var(--vgd-info) !important; box-shadow: inset 0 0 0 1px var(--vgd-info-line) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #calendarModal { box-shadow: 0 12px 40px rgba(0,0,0,.55), 0 0 0 1px var(--vgd-line2) !important; }
html.vg-dark:not(#vgd0):not(#vgd1) #team-chat-window { box-shadow: 0 12px 40px rgba(0,0,0,.55), 0 0 0 1px var(--vgd-line2) !important; }
/* nav: Dashboard pill only when Dashboard is the current view */
html[data-vg-nav]:not(#vgx0):not(#vgx1):not(#vgx2) .header .nav-menu a.nav-link.active:not([data-vg-cur]) { background: transparent !important; color: inherit !important; box-shadow: none !important; }
/* figures / dates / date inputs: JetBrains Mono's dotted zero read as 8 at small sizes ("18/23/2026", "$8").
   Use a proportional UI font with tabular figures and a plain zero for every numeric role. */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) { --vgd-mono: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5) :is([data-vgd-num], .stat-number, .stage-count, .vg-clock, input[type=date], input[type=number], input[type=time], input[type=tel], input[type=datetime-local], .policy-number, .dot-number, .mc-number, td.premium, .amount, .money, #goals-annual-total, #goals-annual-pct-label) { font-family: var(--vgd-mono) !important; font-variant-numeric: tabular-nums slashed-zero !important; font-feature-settings: "tnum" 1, "zero" 1 !important; letter-spacing: 0 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3) input::-webkit-datetime-edit { font-variant-numeric: tabular-nums slashed-zero; font-feature-settings: "tnum" 1, "zero" 1; }
/* policy modal tabs: only the clicked tab reads as current (higher specificity than the dark tab rules) */
html:not(#vgx0):not(#vgx1):not(#vgx2):not(#vgx3):not(#vgx4):not(#vgx5):not(#vgx6) #policyModal:has(.tab-btn[data-vg-cur]) .tab-btn.active:not([data-vg-cur]) { background: transparent !important; color: var(--vgd-muted, #64748b) !important; border-bottom-color: transparent !important; box-shadow: none !important; font-weight: 500 !important; }
html.vg-dark:not(#vgx0):not(#vgx1):not(#vgx2):not(#vgx3):not(#vgx4):not(#vgx5):not(#vgx6) #policyModal .tab-btn[data-vg-cur] { color: var(--vgd-text) !important; border-bottom: 2px solid var(--vgd-amber) !important; background: transparent !important; }
html:not(.vg-dark):not(#vgx0):not(#vgx1):not(#vgx2):not(#vgx3):not(#vgx4):not(#vgx5):not(#vgx6) #policyModal .tab-btn[data-vg-cur] { color: #1e3a8a !important; border-bottom: 2px solid #2563eb !important; }
html:not(#vgx0):not(#vgx1):not(#vgx2):not(#vgx3) #policyModal .tab-btn[style*="padding: 14px"] { padding: 10px 16px !important; font-size: inherit !important; border-radius: 0 !important; margin: 0 !important; }
/* closed / process-complete lead rows: app paints rgba(156,163,175,.3) grey -> quiet dark row */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5) #leadsTableBody > tr.process-complete:not(:hover) { background-color: rgba(148,163,184,.05) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5) #leadsTableBody > tr.process-complete > td { color: var(--vgd-muted) !important; }
/* fast-scroll paint: no per-cell transitions on big tables (both themes) */
html:not(#vgx0):not(#vgx1):not(#vgx2) :is(#clientsTableBody, #leadsTableBody, #policyTableBody) > tr, html:not(#vgx0):not(#vgx1):not(#vgx2) :is(#clientsTableBody, #leadsTableBody, #policyTableBody) > tr > td { transition: none !important; }
/* archived table spans its toolbar */
html:not(#vgx0):not(#vgx1):not(#vgx2) .archived-view :is(.table-container, .table-container > table, table.data-table) { width: auto !important; max-width: none !important; }
html:not(#vgx0):not(#vgx1):not(#vgx2) .archived-view .table-container > table, html:not(#vgx0):not(#vgx1):not(#vgx2) .archived-view table { width: 100% !important; }
/* ==== TH5 ==== */
/* Archived, empty month: the app's "No archived leads" row spans 11 columns but the header has 10, so the phantom
   11th column left an empty strip at the right of the header. Auto layout gives that column no width. */
html:not(#vgx0):not(#vgx1):not(#vgx2) #archivedLeadsTable:has(> tbody > tr:only-child > td[colspan]) { table-layout: auto !important; }
/* Big tables at narrow widths (1024/1280): actions stay on one line, the table scrolls sideways inside its card
   instead of being clipped, and the Actions column stays pinned at the right edge (both themes) */
html:not(#vgx0):not(#vgx1):not(#vgx2) :is(#clientsTableBody, #policyTableBody, #leadsTableBody) .action-buttons { display: flex !important; flex-wrap: nowrap !important; gap: 4px !important; align-items: center !important; justify-content: flex-start; }
html:not(#vgx0):not(#vgx1):not(#vgx2) :is(#clientsTableBody, #policyTableBody, #leadsTableBody) > tr > td:last-child { white-space: nowrap !important; }
html:not(#vgx0):not(#vgx1):not(#vgx2) div:has(> table > :is(#clientsTableBody, #policyTableBody, #leadsTableBody)) { overflow-x: auto !important; overflow-y: visible !important; }
html:not(#vgx0):not(#vgx1):not(#vgx2) table:has(> :is(#clientsTableBody, #policyTableBody, #leadsTableBody)) > :is(thead, tbody) > tr > :is(th, td):last-child { position: sticky !important; right: 0; z-index: 1; background-color: #fff !important; box-shadow: -1px 0 0 #e5e7eb !important; }
html:not(#vgx0):not(#vgx1):not(#vgx2) table:has(> :is(#clientsTableBody, #policyTableBody, #leadsTableBody)) > thead > tr > th:last-child { background-color: #f9fafb !important; z-index: 12 !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5) table:has(> :is(#clientsTableBody, #policyTableBody, #leadsTableBody)) > :is(thead, tbody) > tr > :is(th, td):last-child { background-color: var(--vgd-panel, #0d1524) !important; box-shadow: -1px 0 0 var(--vgd-line, #1e2d45) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5) #leadsTableBody > tr:hover > td:last-child { background-image: linear-gradient(rgba(59,130,246,.10), rgba(59,130,246,.10)) !important; }
/* Policies: type badge fits its column (wraps to two short lines if needed), status badge never runs into Actions */
html:not(#vgx0):not(#vgx1):not(#vgx2) #policyTableBody .policy-type-badge { display: inline-block !important; max-width: 100% !important; box-sizing: border-box !important; white-space: normal !important; line-height: 1.25 !important; text-align: center !important; padding: 2px 7px !important; font-size: 10.5px !important; overflow-wrap: normal; word-break: normal; }
html:not(#vgx0):not(#vgx1):not(#vgx2) #policyTableBody > tr > td:has(.status-badge) { white-space: nowrap !important; padding-right: 12px !important; }
html:not(#vgx0):not(#vgx1):not(#vgx2) #policyTableBody .status-badge { display: inline-block !important; white-space: nowrap !important; }
html:not(#vgx0):not(#vgx1):not(#vgx2) table:has(> #policyTableBody) { table-layout: auto !important; width: 100% !important; }
html:not(#vgx0):not(#vgx1):not(#vgx2) #policyTableBody > tr > td { padding: 8px 8px !important; overflow-wrap: normal; word-break: normal; }
/* Header at 1024-1439px: nav flows between logo and actions (no centred overlay), clock only where it fits,
   brand on one line; nothing overlaps "Integrations" */
@media screen and (max-width: 1439px) {
  html:not(#vgx0):not(#vgx1) .header .nav-menu { position: static !important; transform: none !important; margin: 0 auto !important; flex: 0 1 auto; min-width: 0; }
  html:not(#vgx0):not(#vgx1) .header .nav-brand .brand-text > * { white-space: nowrap !important; }
  html:not(#vgx0):not(#vgx1) .header .nav-menu { flex: 0 0 auto !important; margin-left: 20px !important; }
  html:not(#vgx0):not(#vgx1) .header .nav-actions { flex: 0 0 auto; margin-left: 16px; }
  html:not(#vgx0):not(#vgx1) #userMenuNav #userNameDisplay, html:not(#vgx0):not(#vgx1) #userMenuNav #userNameDisplay * { white-space: nowrap !important; }
}
@media screen and (max-width: 1359px) { html.vg-dark:not(#vgx0):not(#vgx1):not(#vgx2) #vg-clock { display: none !important; } }
@media screen and (max-width: 1180px) {
  html:not(#vgx0):not(#vgx1) .header .nav-menu > li > a.nav-link { padding-left: 10px !important; padding-right: 10px !important; white-space: nowrap !important; }
  html:not(#vgx0):not(#vgx1) .header .nav-menu { gap: 2px !important; }
  html:not(#vgx0):not(#vgx1) .header .nav-brand .brand-text h1 { font-size: 20px !important; }
  html:not(#vgx0):not(#vgx1) .header .nav-brand .brand-text > span { font-size: 11px !important; }
  html:not(#vgx0):not(#vgx1) #userMenuNav #userNameDisplay > span { font-size: 10px !important; padding: 2px 6px !important; }
}
/* Leads at <1440px: the name column is ~140px (fixed layout), so keep name / last-contact on one line each
   (full name stays in the tooltip) and fit the four doc badges on one row -> ~65px rows instead of ~115px */
@media screen and (max-width: 1439px) {
  html:not(#vgx0):not(#vgx1):not(#vgx2) #leadsTableBody td.lead-name > strong { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; overflow-wrap: normal !important; }
  html:not(#vgx0):not(#vgx1):not(#vgx2) #leadsTableBody td.lead-name .vg-contact-info { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  html:not(#vgx0):not(#vgx1):not(#vgx2) #leadsTableBody td.lead-name { overflow: hidden !important; }
  html:not(#vgx0):not(#vgx1):not(#vgx2) #leadsTableBody td.lead-name .vg-docb { flex-wrap: nowrap !important; gap: 2px !important; }
  html:not(#vgx0):not(#vgx1):not(#vgx2) #leadsTableBody td.lead-name .vg-docb > .vg-docb-b { margin-right: 0 !important; flex: 0 0 auto; }
}
/* Leads Actions header: "Actions" + two small buttons fit the 130px column (were 148px -> refresh button clipped) */
html:not(#vgx0):not(#vgx1):not(#vgx2) table:has(> #leadsTableBody) > thead > tr > th:last-child { padding-left: 8px !important; padding-right: 8px !important; }
html:not(#vgx0):not(#vgx1):not(#vgx2) table:has(> #leadsTableBody) > thead > tr > th:last-child > button { margin-left: 3px !important; padding: 3px 5px !important; }
/* Renewals: heading stays on one line; the tabs/filters wrap onto their own row(s) instead of overflowing (both themes) */
html:not(#vgx0):not(#vgx1):not(#vgx2) .renewals-view > .content-header { flex-wrap: wrap !important; row-gap: 10px !important; column-gap: 16px !important; align-items: center !important; }
html:not(#vgx0):not(#vgx1):not(#vgx2) .renewals-view > .content-header > h1 { white-space: nowrap !important; flex: 0 0 auto !important; margin-right: 8px !important; }
html:not(#vgx0):not(#vgx1):not(#vgx2) .renewals-view > .content-header > .header-actions { flex: 1 1 auto !important; min-width: 0 !important; flex-wrap: wrap !important; row-gap: 8px !important; justify-content: flex-start !important; }
/* loading skeleton follows the CURRENT theme (vg-smooth fixes its colours when it creates the overlay) */
html:not(.vg-dark):not(#vgx0):not(#vgx1):not(#vgx2) #vg-sm-skel { background: #f3f4f6 !important; color: #475569 !important; }
html:not(.vg-dark):not(#vgx0):not(#vgx1):not(#vgx2) #vg-sm-skel .t b { color: #374151 !important; }
html:not(.vg-dark):not(#vgx0):not(#vgx1):not(#vgx2) #vg-sm-skel :is(.c, .l) { border-color: #cbd5e1 !important; }
html:not(.vg-dark):not(#vgx0):not(#vgx1):not(#vgx2) #vg-sm-skel .c { background: #eef2f6 !important; }
html:not(.vg-dark):not(#vgx0):not(#vgx1):not(#vgx2) #vg-sm-skel .l { background: #e2e8f0 !important; }
html.vg-dark:not(#vgx0):not(#vgx1):not(#vgx2) #vg-sm-skel { background: var(--vgd-bg, #0b1220) !important; }
/* dark: the app leaves .active on "Dashboard" on every view; TH4 cleared its pill but "color: inherit" still made it the
   brightest link (read as Dashboard/Home highlighted while Leads etc. load). Same colour as the other links. */
html.vg-dark[data-vg-nav]:not(#vgx0):not(#vgx1):not(#vgx2) .header .nav-menu a.nav-link.active:not([data-vg-cur]):not(:hover) { color: var(--vgd-muted) !important; }
/* print: one dark-theme root rule was not screen-scoped (color-scheme: dark), so form fields printed with Chrome's dark
   control fill (#3b3b3b). Print always uses light form controls. */
@media print {
  html:not(#vgx0):not(#vgx1):not(#vgx2), html:not(#vgx0):not(#vgx1):not(#vgx2) body :is(input, textarea, select, option, button) { color-scheme: light !important; }
}
/* ===== Changes: green up / red down everywhere in dark (one muted-but-clear pair) ===== */
html.vg-dark:not(#vgd0) { --vgd-pos: #4ade80; --vgd-neg: #f87171; --vgd-pos-bg: rgba(74,222,128,.10); --vgd-neg-bg: rgba(248,113,113,.10); --vgd-pos-line: rgba(74,222,128,.28); --vgd-neg-line: rgba(248,113,113,.28); }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5):not(#vgd6) :is([data-vgd-delta="pos"], .mkt-ticker-up, .mkt-prof-yoy-up, .mkt-stat-box.green > .mkt-stat-val, .mkt-stat-box.green > .mkt-stat-lbl, .positive, .change-positive, .trend-up, .delta-up, .yoy-up, .pct-up) { color: var(--vgd-pos) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5):not(#vgd6) :is([data-vgd-delta="neg"], .mkt-ticker-down, .mkt-prof-yoy-down, .mkt-stat-box.red > .mkt-stat-val, .mkt-stat-box.red > .mkt-stat-lbl, .negative, .change-negative, .trend-down, .delta-down, .yoy-down, .pct-down) { color: var(--vgd-neg) !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5):not(#vgd6) :is(.mkt-badge.up, .wl-change-badge.up) { color: var(--vgd-pos) !important; background: var(--vgd-pos-bg) !important; box-shadow: inset 0 0 0 1px var(--vgd-pos-line) !important; border-color: transparent !important; }
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2):not(#vgd3):not(#vgd4):not(#vgd5):not(#vgd6) :is(.mkt-badge.down, .wl-change-badge.down) { color: var(--vgd-neg) !important; background: var(--vgd-neg-bg) !important; box-shadow: inset 0 0 0 1px var(--vgd-neg-line) !important; border-color: transparent !important; }
/* legend chip %: the app dims it with opacity .5, which washed the colour out */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) .mkt-legend-chip > [data-vgd-delta] { opacity: .95 !important; }
/* top gainer / loser label: stays small, just coloured */
html.vg-dark:not(#vgd0):not(#vgd1):not(#vgd2) :is(.mkt-stat-box.green, .mkt-stat-box.red) > .mkt-stat-lbl { opacity: .9; }

/* ===== TH5: Carriers tab (#carriers) - one compact terminal-style card for Direct, RPS and AmWins ===== */
@media screen {
.carriers-view { --cv-bg: #ffffff; --cv-line: #e5e7eb; --cv-text: #111827; --cv-muted: #6b7280; --cv-hover: #f9fafb; --cv-acc: #2563eb; }
html.vg-dark .carriers-view { --cv-bg: var(--vgd-panel, #0d1526); --cv-line: var(--vgd-line, #1a2540); --cv-text: var(--vgd-text, #e2e8f0); --cv-muted: var(--vgd-muted, #94a3b8); --cv-hover: var(--vgd-raise, #111c31); --cv-acc: var(--vgd-acc, #3b82f6); }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-section { margin: 0 0 18px !important; padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-section > .section-header { background: none !important; box-shadow: none !important; border: 0 !important; border-bottom: 1px solid var(--cv-line) !important; border-radius: 0 !important; color: var(--cv-text) !important; margin: 0 0 8px !important; padding: 4px 0 6px !important; font-size: 12px !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: .08em !important; min-height: 0 !important; display: flex !important; align-items: center !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-section > .section-header * { font-size: inherit; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-section > .section-header > button { margin-left: auto !important; text-transform: none !important; letter-spacing: 0 !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carriers-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; gap: 8px !important; margin: 0 0 6px !important; padding: 0 !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-card { display: flex !important; flex-direction: column !important; background: var(--cv-bg) !important; border: 1px solid var(--cv-line) !important; border-radius: 4px !important; box-shadow: none !important; padding: 8px 10px !important; margin: 0 !important; transform: none !important; min-height: 0 !important; color: var(--cv-text) !important; font-size: 12px !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-card:hover { transform: none !important; box-shadow: none !important; border-color: var(--cv-muted) !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-card .carrier-logo { background: none !important; height: auto !important; width: 100% !important; min-height: 0 !important; display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: baseline !important; justify-content: flex-start !important; gap: 2px 8px !important; padding: 0 0 5px !important; margin: 0 0 4px !important; border: 0 !important; border-bottom: 1px solid var(--cv-line) !important; border-radius: 0 !important; box-shadow: none !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-card .carrier-logo > span:first-child { color: var(--cv-text) !important; font-size: 13px !important; font-weight: 600 !important; padding: 0 !important; text-align: left !important; letter-spacing: 0 !important; line-height: 1.3 !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-card .carrier-logo > span + span { color: var(--cv-muted) !important; font-size: 11px !important; margin: 0 !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-card .carrier-logo img { max-height: 16px !important; width: auto !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-card .carrier-info { flex: 1 1 auto !important; margin: 0 !important; padding: 0 !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-card .carrier-info .info-row { display: flex !important; justify-content: space-between !important; padding: 2px 0 !important; margin: 0 !important; border: 0 !important; font-size: 12px !important; color: var(--cv-muted) !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-card .carrier-info .info-row strong { color: var(--cv-text) !important; font-size: 12px !important; font-weight: 600 !important; font-variant-numeric: tabular-nums; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .amwins-market-card .carrier-info > div { padding: 2px 0 !important; border: 0 !important; background: transparent !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .amwins-market-card .carrier-info > div > div:first-child { font-size: 10px !important; text-transform: uppercase !important; letter-spacing: .06em !important; color: var(--cv-muted) !important; margin: 0 0 1px !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .amwins-market-card .amwins-states { font-size: 12px !important; font-weight: 500 !important; color: var(--cv-text) !important; line-height: 1.4 !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .amwins-market-card .amwins-reqs { font-size: 11.5px !important; color: var(--cv-text) !important; line-height: 1.4 !important; padding-left: 14px !important; margin: 0 !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .amwins-market-card .amwins-reqs li { margin: 1px 0 !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-card .carrier-actions { display: flex !important; flex-wrap: wrap !important; gap: 4px !important; margin: 6px 0 0 !important; padding: 0 !important; border: 0 !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-card .carrier-actions :is(button, a) { background: transparent !important; border: 1px solid var(--cv-line) !important; border-radius: 3px !important; box-shadow: none !important; color: var(--cv-acc) !important; font-size: 11px !important; font-weight: 500 !important; padding: 2px 7px !important; margin: 0 !important; min-height: 0 !important; height: auto !important; line-height: 1.5 !important; white-space: nowrap !important; transform: none !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-card .carrier-actions :is(button, a):hover { background: var(--cv-hover) !important; border-color: var(--cv-acc) !important; }
/* Delete removed from the cards (Grant 7:06 PM). The carrier detail view has no delete, so there is no delete in the UI; no data is touched. */
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-card [onclick^="deleteCarrier"] { display: none !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .amwins-group-header { border: 0 !important; padding: 0 !important; margin: 10px 0 6px !important; font-size: 11px !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: .06em !important; color: var(--cv-muted) !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .amwins-group-header span { font-size: 11px !important; color: var(--cv-muted) !important; font-weight: 400 !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .amwins-routing-line { background: transparent !important; border: 1px solid var(--cv-line) !important; border-radius: 4px !important; color: var(--cv-muted) !important; font-size: 12px !important; padding: 4px 8px !important; margin: 0 0 6px !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .amwins-routing-line a { color: var(--cv-acc) !important; font-weight: 500 !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view > .content-header h1 { font-size: 18px !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-card .carrier-info .info-row > span { font-size: 12px !important; color: var(--cv-muted) !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .carrier-section > .section-header > button { background: transparent !important; border: 1px solid var(--cv-line) !important; border-radius: 3px !important; box-shadow: none !important; color: var(--cv-acc) !important; font-size: 11px !important; font-weight: 500 !important; padding: 2px 8px !important; line-height: 1.5 !important; }
}

/* ===== TH5: Carriers as one table (built by the theme JS; self-contained, vgct- prefix) ===== */
@media screen {
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view.vgct-on > .carrier-section { display: none !important; }
.carriers-view .vgct-wrap { border: 1px solid var(--cv-line); border-radius: 4px; background: var(--cv-bg); overflow-x: auto; margin: 4px 0 16px; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view table.vgct { width: 100% !important; border-collapse: collapse !important; table-layout: fixed !important; font-size: 12px !important; color: var(--cv-text) !important; background: transparent !important; margin: 0 !important; box-shadow: none !important; border: 0 !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view table.vgct :is(th, td) { height: 30px !important; padding: 0 10px !important; border: 0 !important; border-bottom: 1px solid var(--cv-line) !important; background: transparent !important; color: inherit !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; vertical-align: middle !important; text-align: left !important; line-height: 1.3 !important; box-shadow: none !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view table.vgct th { height: 28px !important; font-size: 10.5px !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: .06em !important; color: var(--cv-muted) !important; position: static !important; }
.carriers-view table.vgct .vgct-name { width: 24%; font-weight: 600; }
.carriers-view table.vgct .vgct-g { width: 14%; color: var(--cv-muted) !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view table.vgct .vgct-n { width: 9%; text-align: right !important; font-variant-numeric: tabular-nums; }
.carriers-view table.vgct .vgct-d { width: auto; color: var(--cv-muted) !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view table.vgct .vgct-a { width: 196px; text-align: right !important; overflow: visible !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view table.vgct tbody tr:not(.vgct-grp):not(.vgct-more):hover > td { background: var(--cv-hover) !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view table.vgct tr.vgct-grp > td { height: 28px !important; background: var(--cv-hover) !important; font-size: 11px !important; overflow: visible !important; white-space: normal !important; padding: 4px 10px !important; }
.carriers-view .vgct-grp-l { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-right: 10px; }
.carriers-view .vgct-grp-m { color: var(--cv-muted); font-variant-numeric: tabular-nums; margin-right: 10px; }
.carriers-view .vgct-grp-x { display: inline; } .carriers-view .vgct-grp-x .vgct-route { margin-left: 10px; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .vgct-route { color: var(--cv-muted) !important; font-size: 11px !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .vgct-route :is(i, .fa, .fas) { display: none !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .vgct-route a { color: var(--cv-acc) !important; font-weight: 500 !important; text-decoration: none !important; }
.carriers-view .vgct-acts { display: inline-flex; gap: 4px; justify-content: flex-end; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .vgct-act { background: transparent !important; border: 1px solid var(--cv-line) !important; border-radius: 3px !important; box-shadow: none !important; color: var(--cv-acc) !important; font: 500 11px/1.4 inherit !important; font-family: inherit !important; padding: 1px 7px !important; margin: 0 !important; height: auto !important; min-height: 0 !important; white-space: nowrap !important; cursor: pointer !important; transform: none !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view .vgct-act:hover { border-color: var(--cv-acc) !important; background: var(--cv-hover) !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view table.vgct tr.vgct-open > td { border-bottom-color: transparent !important; }
:root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view table.vgct tr.vgct-more > td { height: auto !important; white-space: normal !important; overflow: visible !important; padding: 2px 10px 8px 10px !important; }
.carriers-view .vgct-more-in { padding-left: 2px; max-width: 900px; font-size: 12px; line-height: 1.45; }
.carriers-view .vgct-more-in .vgct-k { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--cv-muted); margin-top: 4px; }
.carriers-view .vgct-more-in ul { margin: 1px 0 0; padding-left: 16px; }
@media (max-width: 1180px) { .carriers-view table.vgct .vgct-g { width: 13%; } .carriers-view table.vgct .vgct-name { width: 22%; } }
}
@media screen { :root:not(#cv0):not(#cv1):not(#cv2):not(#cv3):not(#cv4):not(#cv5) .carriers-view table.vgct tr.vgct-sub > td { background: transparent !important; height: 24px !important; padding-left: 10px !important; } .carriers-view tr.vgct-sub .vgct-grp-l { font-size: 10px; font-weight: 600; color: var(--cv-muted); } }
/* TH5b: the big tables had overflow:hidden, which made the TABLE the sticky scroller, so the pinned Actions column never pinned. Let the wrapper scroll instead. */
@media screen { :root:not(#cv0):not(#cv1):not(#cv2):not(#cv3) table:has(> #clientsTableBody, > #policyTableBody, > #leadsTableBody) { overflow: visible !important; } }

/* TH6 2026-10-24: Clients list dense rows. Both themes: the action buttons lost a stray 20px top margin and the icon
   buttons / initials avatar are compact, so a row is one line (~37px) instead of 63px (dark) / 78px (light).
   Light only: same cell padding, type size and header as the dark dense table. */
html:not(#vgx0):not(#vgx1):not(#vgx2):not(#vgx3):not(#vgx4):not(#vgx5):not(#vgx6) body .clients-view .data-table td .action-buttons{margin:0!important;flex-wrap:nowrap!important;align-items:center!important;gap:2px!important}
html:not(#vgx0):not(#vgx1):not(#vgx2):not(#vgx3):not(#vgx4):not(#vgx5):not(#vgx6) body .clients-view .data-table td .action-buttons .btn-icon{width:26px!important;height:26px!important;min-width:26px!important;padding:0!important;margin:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}
html:not(#vgx0):not(#vgx1):not(#vgx2):not(#vgx3):not(#vgx4):not(#vgx5):not(#vgx6) body .clients-view .data-table td .client-avatar{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;max-width:24px!important;max-height:24px!important;flex:0 0 24px!important;font-size:11px!important;line-height:24px!important;vertical-align:middle!important}
html:not(.vg-dark):not(#vgx0):not(#vgx1):not(#vgx2):not(#vgx3):not(#vgx4):not(#vgx5):not(#vgx6) body .clients-view .data-table :is(th,td){padding:5px 8px!important;font-size:13px!important;line-height:1.35!important;vertical-align:middle!important}
html:not(.vg-dark):not(#vgx0):not(#vgx1):not(#vgx2):not(#vgx3):not(#vgx4):not(#vgx5):not(#vgx6) body .clients-view .data-table th{font-size:12px!important}
html:not(.vg-dark):not(#vgx0):not(#vgx1):not(#vgx2):not(#vgx3):not(#vgx4):not(#vgx5):not(#vgx6) body .clients-view .data-table td :is(.client-display-name,.clickable-wrapper,.clickable-phone,.clickable-email){font-size:13px!important;line-height:1.35!important}
