/* ============================================================================
   QUIVIDI FLOW — design tokens + app shell
   Indigo/violet design system from the vidiflow mockup. Fonts: vendored
   Open Sans substitutes for the mockup's Poppins/Source Sans 3.
   ============================================================================ */

:root {
    /* brand indigo ramp */
    --vf-indigo-900: #15143A;
    --vf-indigo-700: #282860;
    --vf-indigo-600: #2F2C6E;
    --vf-indigo-500: #423E8C;
    --vf-indigo-400: #5C58A8;
    --vf-indigo-300: #8884C4;
    --vf-indigo-200: #BCB9DF;
    --vf-indigo-100: #E4E3F2;
    --vf-indigo-50: #F4F3FB;

    /* accents — monochrome indigo-violet, no warm hues */
    --vf-violet: #7350A8;
    --vf-violet-bg: #F1ECF8;
    --vf-blue-violet: #5A57C9;
    /* gender pairing — mockup_v2 palette: blue male vs. magenta female */
    --vf-male: #4472C4;
    --vf-female: #EB095B;
    --vf-grad-violet: linear-gradient(90deg, var(--vf-blue-violet) 0%, #8253A8 100%);

    /* neutrals — indigo-tinted, never pure grey */
    --vf-bg-subtle: #F7F7FC;
    --vf-surface: #FFFFFF;
    --vf-surface-2: #FBFAFE;
    --vf-border: #E7E6F1;
    --vf-border-strong: #D4D2E6;
    --vf-fg-1: #1B1A33;
    --vf-fg-2: #4A4866;
    --vf-fg-3: #6E6C8A;
    --vf-fg-faint: #9D9BB5;
    --vf-on-dark: #ECEBF5;
    --vf-on-dark-2: #B9B7D6;

    /* semantic state */
    --vf-positive: #2E9B6B;
    --vf-positive-bg: #E6F4ED;
    --vf-negative: #D4515F;
    --vf-negative-bg: #FBEAEC;
    --vf-warning: #D9882F;
    --vf-warning-bg: #FBF1E3;

    /* type */
    --vf-font-display: 'Open Sans', system-ui, -apple-system, sans-serif;
    --vf-font-sans: 'Open Sans', system-ui, -apple-system, sans-serif;
    --vf-font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', monospace;

    /* radii */
    --vf-r-sm: 6px;
    --vf-r-md: 10px;
    --vf-r-lg: 14px;
    --vf-r-pill: 999px;

    /* elevation — soft, low, indigo-tinted */
    --vf-shadow-xs: 0 1px 2px rgba(27, 26, 51, .06);
    --vf-shadow-sm: 0 1px 3px rgba(27, 26, 51, .08), 0 1px 2px rgba(27, 26, 51, .04);
    --vf-shadow-md: 0 4px 16px rgba(27, 26, 51, .08);
    --vf-shadow-lg: 0 16px 40px rgba(43, 42, 107, .14);
    --vf-shadow-focus: 0 0 0 3px rgba(92, 88, 168, .35);

    --vf-ease: cubic-bezier(.4, 0, .2, 1);
}

html, body {
    margin: 0;
    height: 100%;
}

body.vf-body {
    font-family: var(--vf-font-sans);
    background: var(--vf-indigo-900);
    color: var(--vf-fg-1);
    -webkit-font-smoothing: antialiased;
}

/* ---- shell ------------------------------------------------------------- */
.vf-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.vf-main {
    flex: 1;
    min-width: 0;
    background: var(--vf-bg-subtle);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.vf-content {
    padding: 26px 30px 64px;
    max-width: 1280px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    flex: 1;
}

/* ---- topbar ------------------------------------------------------------ */
.vf-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--vf-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.vf-crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--vf-fg-3);
    min-width: 0;
}

.vf-crumb a {
    color: var(--vf-fg-3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.vf-crumb .vf-crumb-current {
    color: var(--vf-fg-1);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vf-crumb-sep { font-size: 10px; color: var(--vf-border-strong); }

.vf-iconbtn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--vf-r-md);
    border: 1px solid var(--vf-border);
    background: var(--vf-surface);
    cursor: pointer;
    color: var(--vf-fg-2);
    transition: background .15s, color .15s;
}

.vf-iconbtn:hover {
    background: var(--vf-indigo-50);
    color: var(--vf-indigo-600);
}

/* ---- topbar search + bell -------------------------------------------------- */
.vf-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--vf-bg-subtle);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-r-md);
    padding: 8px 13px;
    min-width: 240px;
    font-size: 13.5px;
    color: var(--vf-fg-faint);
    cursor: pointer;
}

.vf-search-trigger:hover {
    border-color: var(--vf-indigo-300);
}

.vf-kbd {
    margin-left: auto;
    font-family: var(--vf-font-mono);
    font-size: 11px;
    color: var(--vf-fg-faint);
    border: 1px solid var(--vf-border);
    border-radius: 4px;
    padding: 1px 5px;
}

.vf-bell-wrap {
    position: relative;
}

.vf-bell-wrap .vf-iconbtn {
    position: relative;
}

.vf-bell-dot {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--vf-warning);
    border: 1.5px solid var(--vf-surface);
    animation: vfPulse 1.6s var(--vf-ease) infinite;
}

.vf-bell-pop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    z-index: 40;
    background: var(--vf-surface);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-r-md);
    box-shadow: var(--vf-shadow-lg);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vf-palette-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(21, 20, 58, .45);
    display: flex;
    justify-content: center;
    padding-top: 12vh;
}

.vf-palette {
    width: min(560px, 92vw);
    align-self: flex-start;
    background: var(--vf-surface);
    border-radius: var(--vf-r-lg);
    box-shadow: var(--vf-shadow-lg);
    overflow: hidden;
}

.vf-palette-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--vf-border);
    color: var(--vf-fg-faint);
}

.vf-palette-head input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--vf-font-sans);
    font-size: 15px;
    color: var(--vf-fg-1);
}

.vf-search-results {
    max-height: 50vh;
    overflow-y: auto;
    padding: 8px;
}

.vf-search-group {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--vf-fg-faint);
    padding: 8px 10px 4px;
}

.vf-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    font-family: var(--vf-font-sans);
    font-size: 14px;
    color: var(--vf-fg-1);
    background: none;
    border: none;
    border-radius: var(--vf-r-sm);
    padding: 8px 10px;
    cursor: pointer;
    text-decoration: none;
}

.vf-search-item:hover,
.vf-search-item.vf-search-active {
    background: var(--vf-indigo-50);
    color: var(--vf-indigo-700);
}

.vf-search-item i {
    color: var(--vf-indigo-400);
    width: 16px;
    text-align: center;
}

.vf-search-hint {
    margin-left: auto;
    font-size: 11px;
    color: var(--vf-fg-faint);
}

/* ---- sidebar ------------------------------------------------------------ */
.vf-sidebar {
    flex: none;
    width: 268px;
    background: var(--vf-indigo-900);
    color: var(--vf-on-dark);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border-right: 1px solid rgba(255, 255, 255, .06);
    transition: width .22s var(--vf-ease);
}

.vf-sidebar.vf-collapsed {
    width: 76px;
}

.vf-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    min-height: 24px;
}

.vf-brand img {
    height: 20px;
    transition: opacity .15s;
}

.vf-collapsed .vf-brand img {
    opacity: 0;
    width: 0;
}

.vf-collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    border-radius: 6px;
    color: var(--vf-on-dark-2);
}

.vf-netsel-wrap {
    position: relative;
    margin: 12px 12px 4px;
}

.vf-netsel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--vf-r-md);
    color: inherit;
    cursor: pointer;
    transition: background .15s;
}

.vf-netsel:hover {
    background: rgba(255, 255, 255, .09);
}

.vf-netsel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.vf-netsel-text {
    min-width: 0;
    text-align: left;
}

.vf-netdot-off {
    background: var(--vf-fg-faint);
    box-shadow: none;
}

.vf-netsel-pop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--vf-surface);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-r-md);
    box-shadow: var(--vf-shadow-lg);
    padding: 8px;
}

.vf-netsel-search {
    width: 100%;
    box-sizing: border-box;
    font-family: var(--vf-font-sans);
    font-size: 13px;
    padding: 7px 10px;
    border: 1px solid var(--vf-border-strong);
    border-radius: var(--vf-r-sm);
    outline: none;
    color: var(--vf-fg-1);
}

.vf-netsel-search:focus {
    border-color: var(--vf-indigo-300);
    box-shadow: var(--vf-shadow-focus);
}

.vf-net-results {
    margin-top: 6px;
    max-height: 260px;
    overflow-y: auto;
}

.vf-net-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    text-align: left;
    font-family: var(--vf-font-sans);
    font-size: 13px;
    color: var(--vf-fg-1);
    background: none;
    border: none;
    border-radius: var(--vf-r-sm);
    padding: 7px 10px;
    cursor: pointer;
}

.vf-net-opt:hover {
    background: var(--vf-indigo-50);
}

.vf-net-opt-on {
    color: var(--vf-indigo-600);
    font-weight: 600;
}

.vf-net-opt-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vf-net-empty,
.vf-net-more {
    font-size: 12px;
    color: var(--vf-fg-faint);
    padding: 8px 10px;
}

.vf-netsel .vf-netname {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vf-netsel .vf-netsub {
    font-size: 11px;
    color: var(--vf-on-dark-2);
    margin-top: 1px;
    white-space: nowrap;
}

.vf-netdot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--vf-positive);
    flex: none;
    box-shadow: 0 0 0 3px rgba(46, 155, 107, .2);
}

.vf-nav-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 12px 20px;
}

.vf-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 11px;
    border-radius: var(--vf-r-md);
    font-family: var(--vf-font-sans);
    font-size: 14px;
    color: var(--vf-on-dark-2);
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 3px;
    text-align: left;
    text-decoration: none;
    transition: background .15s, color .15s;
    box-sizing: border-box;
}

.vf-collapsed .vf-nav-item {
    justify-content: center;
    padding: 11px 0;
}

.vf-nav-item:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.vf-nav-item.vf-active {
    background: var(--vf-indigo-600);
    color: #fff;
    font-weight: 600;
}

.vf-nav-item .vf-num {
    width: 26px;
    height: 26px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--vf-font-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--vf-on-dark-2);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--vf-r-sm);
}

.vf-nav-item.vf-active .vf-num {
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

.vf-nav-item .vf-stage {
    font-size: 10.5px;
    font-weight: 500;
    margin-top: 1px;
    letter-spacing: .02em;
    color: var(--vf-on-dark-2);
}

.vf-nav-item.vf-active .vf-stage {
    color: rgba(255, 255, 255, .7);
}

.vf-subnav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 2px 0 6px 30px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.vf-subnav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: var(--vf-r-sm);
    font-size: 12.5px;
    color: var(--vf-on-dark-2);
    text-decoration: none;
    transition: background .15s, color .15s;
}

.vf-subnav-item i {
    font-size: 13px;
    width: 15px;
    text-align: center;
}

.vf-subnav-item:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.vf-subnav-on {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-weight: 600;
}

.vf-journey-cap {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--vf-on-dark-2);
    padding: 0 11px;
    margin: 20px 0 10px;
}

.vf-divider {
    height: 1px;
    background: rgba(255, 255, 255, .1);
    margin: 16px 8px;
}

/* No bootstrap d-flex here: its !important display beats Alpine's x-show. */
.vf-nav-label {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
}

.vf-footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vf-icon-wrap {
    position: relative;
    display: inline-flex;
    font-size: 16px;
}

.vf-mini-dot {
    position: absolute;
    top: -4px;
    right: -5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.vf-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: none;
    margin-left: auto;
}

.vf-dot-healthy {
    background: var(--vf-positive);
}

.vf-dot-attention {
    background: var(--vf-warning);
}

.vf-dot-live {
    background: var(--vf-violet);
    animation: vfPulse 1.6s var(--vf-ease) infinite;
}

.vf-journey {
    position: relative;
}

.vf-journey-line {
    position: absolute;
    left: 24px;
    top: 14px;
    bottom: 26px;
    width: 2px;
    background: linear-gradient(var(--vf-indigo-600), var(--vf-violet));
    opacity: .35;
    border-radius: 2px;
}

.vf-sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    gap: 10px;
    font-size: 12px;
    color: var(--vf-on-dark-2);
}

.vf-avatar {
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--vf-grad-violet);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    border: none;
    cursor: pointer;
    padding: 0;
}

.vf-link-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--vf-font-sans);
    font-size: 12.5px;
    color: var(--vf-indigo-300);
}

.vf-link-btn:hover {
    color: #fff;
}

.vf-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vf-positive);
    display: inline-block;
    animation: vfPulse 2s var(--vf-ease) infinite;
}

/* ---- page primitives ----------------------------------------------------- */
.vf-eyebrow {
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--vf-indigo-400);
    margin-bottom: 8px;
}

.vf-h1 {
    font-family: var(--vf-font-display);
    font-weight: 600;
    font-size: 30px;
    letter-spacing: -.02em;
    color: var(--vf-fg-1);
    margin: 0;
}

.vf-page-sub {
    font-size: 14.5px;
    color: var(--vf-fg-3);
    margin: 8px 0 0;
    max-width: 620px;
    line-height: 1.5;
}

.vf-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.vf-panel {
    background: var(--vf-surface);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-r-lg);
    box-shadow: var(--vf-shadow-sm);
    padding: 20px;
}

.vf-grad-text {
    background: var(--vf-grad-violet);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--vf-r-pill);
    white-space: nowrap;
    color: var(--vf-fg-3);
    background: var(--vf-indigo-50);
}

.vf-pill.vf-pill-positive {
    color: var(--vf-positive);
    background: var(--vf-positive-bg);
}

.vf-page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: none;
}

/* ---- KPI cards ------------------------------------------------------------ */
.vf-kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.vf-kpi {
    background: var(--vf-surface);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-r-lg);
    padding: 16px 18px;
    box-shadow: var(--vf-shadow-sm);
    flex: 1 1 200px;
    min-width: 0;
}

.vf-kpi-accent {
    border-color: var(--vf-indigo-200);
    background: linear-gradient(180deg, var(--vf-indigo-50), var(--vf-surface) 60%);
}

.vf-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vf-kpi-label {
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--vf-fg-3);
}

.vf-kpi-icon {
    color: var(--vf-indigo-400);
    font-size: 14px;
}

.vf-kpi-value {
    font-family: var(--vf-font-display);
    font-weight: 600;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.02em;
    margin-top: 12px;
    color: var(--vf-fg-1);
    font-feature-settings: 'tnum' 1;
}

.vf-kpi-accent .vf-kpi-value {
    color: var(--vf-indigo-700);
}

.vf-kpi-value-big {
    font-size: 38px;
}

.vf-kpi-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.vf-kpi-note {
    font-size: 11.5px;
    color: var(--vf-fg-faint);
}

.vf-kpi-spark {
    margin-top: 10px;
}

.vf-delta {
    font-family: var(--vf-font-mono);
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.vf-delta-up {
    color: var(--vf-positive);
}

.vf-delta-down {
    color: var(--vf-negative);
}

/* pill variant (Executive Overview KPI deltas) — tinted rounded chip */
.vf-delta-pill {
    padding: 2px 8px;
    border-radius: var(--vf-r-pill);
    font-size: 11.5px;
}

.vf-delta-pill.vf-delta-up {
    background: var(--vf-positive-bg);
}

.vf-delta-pill.vf-delta-down {
    background: var(--vf-negative-bg);
}

/* ---- section titles -------------------------------------------------------- */
.vf-sec-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.vf-sec-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.vf-sec-icon {
    color: var(--vf-indigo-500);
    font-size: 15px;
}

.vf-sec-title {
    font-family: var(--vf-font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--vf-fg-1);
    letter-spacing: -.01em;
}

.vf-sec-sub {
    font-size: 12.5px;
    color: var(--vf-fg-3);
    margin-top: 2px;
}

.vf-sec-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--vf-fg-2);
    text-decoration: none;
    white-space: nowrap;
}

.vf-sec-link:hover {
    color: var(--vf-indigo-600);
}

/* ---- segmented control ------------------------------------------------------ */
.vf-segmented {
    display: inline-flex;
    background: var(--vf-indigo-50);
    border-radius: var(--vf-r-md);
    padding: 3px;
    gap: 3px;
}

.vf-segmented form {
    display: contents;
}

.vf-seg-btn {
    font-family: var(--vf-font-sans);
    font-weight: 500;
    font-size: 13px;
    padding: 6px 13px;
    border-radius: var(--vf-r-sm);
    background: none;
    border: none;
    color: var(--vf-fg-3);
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
}

.vf-seg-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.vf-seg-on {
    background: var(--vf-surface);
    color: var(--vf-indigo-700);
    font-weight: 600;
    box-shadow: var(--vf-shadow-xs);
}

/* ---- filter bar -------------------------------------------------------------- */
.vf-filterbar-cap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--vf-fg-faint);
    margin-left: 8px;
}

.vf-filterbar-cap i {
    font-size: 10px;
}

.vf-loctype-select {
    font-family: var(--vf-font-sans);
    font-size: 13px;
    color: var(--vf-fg-2);
    background: var(--vf-bg-subtle);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-r-pill);
    padding: 4px 10px;
    cursor: pointer;
    outline: none;
}

.vf-fchip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--vf-font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--vf-fg-2);
    background: var(--vf-bg-subtle);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-r-pill);
    padding: 5px 12px;
    cursor: pointer;
}

.vf-fchip .fa-chevron-down {
    font-size: 10px;
    color: var(--vf-fg-faint);
}


.vf-fchip-on {
    background: var(--vf-indigo-600);
    border-color: var(--vf-indigo-600);
    color: #fff;
}

/* ---- layout rows -------------------------------------------------------------- */
.vf-row-2 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
    align-items: start;
}

.vf-row-2-stretch {
    align-items: stretch;
}

@media (max-width: 1080px) {
    .vf-row-2 {
        grid-template-columns: 1fr;
    }
}

.vf-panel-flush {
    padding: 0;
    overflow: hidden;
}

.vf-table-head {
    padding: 16px 20px 12px;
}

/* ---- legend / chart annexes ------------------------------------------------------ */
.vf-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--vf-fg-3);
}

.vf-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vf-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 2px;
}

.vf-donut-wrap {
    display: flex;
    justify-content: center;
    padding: 6px 0 14px;
}

.vf-donut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vf-donut-ring {
    position: relative;
}

.vf-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vf-donut-value {
    font-family: var(--vf-font-display);
    font-weight: 600;
    color: var(--vf-fg-1);
    line-height: 1;
    font-feature-settings: 'tnum' 1;
}

.vf-donut-sub {
    font-size: 11px;
    color: var(--vf-fg-3);
    margin-top: 4px;
}

.vf-donut-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--vf-fg-2);
}

.vf-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--vf-border);
}

.vf-mini {
    text-align: center;
}

.vf-mini-value {
    font-family: var(--vf-font-display);
    font-weight: 600;
    font-size: 22px;
    color: var(--vf-fg-1);
    font-feature-settings: 'tnum' 1;
}

.vf-mini-label {
    font-size: 11.5px;
    color: var(--vf-fg-3);
    margin-top: 3px;
}

/* ---- progress / fill bars --------------------------------------------- */
.vf-progress {
    background: var(--vf-indigo-100);
    border-radius: var(--vf-r-pill);
    overflow: hidden;
}

.vf-progress-fill {
    height: 100%;
    border-radius: var(--vf-r-pill);
    transition: width .6s var(--vf-ease);
}

.vf-fillbars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vf-fillbar-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.vf-fillbar-label {
    color: var(--vf-fg-2);
    font-weight: 500;
}

.vf-fillbar-value {
    font-family: var(--vf-font-mono);
    font-size: 12.5px;
    color: var(--vf-fg-1);
}

.vf-fillbar-sub {
    color: var(--vf-fg-faint);
}

.vf-ai-orb {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--vf-grad-violet);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.vf-hero-stat {
    font-family: var(--vf-font-display);
    font-weight: 600;
    font-size: 26px;
    color: var(--vf-indigo-700);
}

.vf-hero-sub {
    font-size: 13px;
    color: var(--vf-fg-3);
    margin-top: 6px;
}

.vf-metric-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.vf-coverage {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--vf-fg-3);
    margin: -6px 0 16px;
}

.vf-chat {
    display: flex;
    flex-direction: column;
    height: 560px;
}

.vf-chat-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.vf-chat-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.vf-chat-row-user {
    justify-content: flex-end;
}

.vf-chat-avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
    flex: none;
}

.vf-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: var(--vf-r-lg);
    font-size: 13.5px;
    line-height: 1.55;
}

.vf-bubble-bot {
    background: var(--vf-bg-subtle);
    border: 1px solid var(--vf-border);
    color: var(--vf-fg-2);
    border-top-left-radius: 4px;
}

.vf-bubble-bot b {
    color: var(--vf-fg-1);
}

.vf-bubble-user {
    background: var(--vf-indigo-600);
    color: #fff;
    border-top-right-radius: 4px;
}

.vf-chat-suggest {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 20px 12px;
}

.vf-chat-input {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--vf-border);
}

.vf-chat-input input {
    flex: 1;
    font-family: var(--vf-font-sans);
    font-size: 14px;
    padding: 9px 14px;
    border: 1px solid var(--vf-border-strong);
    border-radius: var(--vf-r-md);
    outline: none;
    color: var(--vf-fg-1);
}

.vf-chat-input input:focus {
    border-color: var(--vf-indigo-300);
    box-shadow: var(--vf-shadow-focus);
}

.vf-chat-input .vf-btn-accent {
    border: none;
}

.vf-chat-think {
    display: none;
}

.htmx-request .vf-chat-think,
.htmx-request.vf-chat-think {
    display: inline;
}

.vf-report-template {
    width: 100%;
    min-height: 380px;
    font-family: var(--vf-font-mono);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--vf-fg-1);
    background: var(--vf-bg-subtle);
    border: 1px solid var(--vf-border-strong);
    border-radius: var(--vf-r-md);
    padding: 14px;
    outline: none;
    resize: vertical;
}

.vf-report-template:focus {
    border-color: var(--vf-indigo-300);
    box-shadow: var(--vf-shadow-focus);
}

.vf-report h2 {
    font-family: var(--vf-font-display);
    font-weight: 600;
    font-size: 21px;
    letter-spacing: -.01em;
    color: var(--vf-fg-1);
    margin: 0 0 8px;
}

.vf-report h3 {
    font-family: var(--vf-font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--vf-fg-1);
    margin: 18px 0 4px;
}

.vf-report p,
.vf-report li {
    font-size: 13.5px;
    color: var(--vf-fg-2);
    line-height: 1.6;
    margin: 0 0 8px;
}

.vf-report b {
    color: var(--vf-indigo-700);
}

.vf-report-skeleton {
    display: none;
}

.htmx-request .vf-report-skeleton {
    display: block;
}

.htmx-request .vf-report-empty,
.htmx-request .vf-report,
#vf-report-out.htmx-request > :not(.vf-report-skeleton) {
    display: none;
}

@media print {
    .vf-sidebar,
    .vf-topbar,
    .vf-page-head,
    .vf-report-form {
        display: none !important;
    }

    .vf-main,
    .vf-content {
        overflow: visible;
        padding: 0;
    }

    .vf-panel {
        border: none;
        box-shadow: none;
    }
}

/* ---- tables ----------------------------------------------------------------------- */
.vf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.vf-table th {
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--vf-fg-3);
    padding: 9px 18px;
    border-top: 1px solid var(--vf-border);
    border-bottom: 1px solid var(--vf-border);
    background: var(--vf-surface-2);
}

.vf-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--vf-border);
    color: var(--vf-fg-2);
}

.vf-table tbody tr:last-child td {
    border-bottom: none;
}

.vf-trow:hover {
    background: var(--vf-indigo-50);
}

.vf-td-num {
    text-align: right;
    font-family: var(--vf-font-mono);
    font-size: 12.5px;
}

.vf-cell-name {
    font-weight: 600;
    color: var(--vf-fg-1);
    font-family: var(--vf-font-sans);
}

/* ---- Opportunity matrix (scatter) ---- */
.vf-scatter-dot {
    cursor: pointer;
    transition: r .1s ease, fill-opacity .1s ease;
}

.vf-scatter-dot:hover {
    r: 9;
    fill-opacity: 1;
}

/* ---- Key Places: location performance table (metric-matrix heat-grid look) ---- */
.vf-loc-colhd { cursor: pointer; user-select: none; white-space: nowrap; }
.vf-loc-colhd:hover { color: var(--vf-fg-1); }
.vf-loc-sort { font-size: 10px; margin-left: 2px; }
.vf-loc-rowhd { line-height: 1.35; }
.vf-loc-name { display: block; }
.vf-loc-site { display: block; font-size: 11.5px; font-weight: 400; color: var(--vf-fg-3); }
.vf-loc-id { color: var(--vf-fg-3); font-weight: 400; font-family: var(--vf-font-mono); font-size: 11.5px; }
.vf-loc-link {
    margin-left: 6px;
    color: var(--vf-fg-3);
    font-size: 11px;
    text-decoration: none;
}

.vf-loc-link:hover {
    color: var(--vf-indigo-500);
}


.vf-cell-mono {
    font-family: var(--vf-font-mono);
    font-size: 12.5px;
    color: var(--vf-fg-3);
}


.vf-uplift {
    color: var(--vf-positive);
    font-weight: 600;
}

/* ---- status pill variants ------------------------------------------------------------ */
.vf-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

.vf-pill-healthy,
.vf-pill-positive {
    color: var(--vf-positive);
    background: var(--vf-positive-bg);
}

.vf-pill-attention {
    color: var(--vf-warning);
    background: var(--vf-warning-bg);
}

.vf-pill-live {
    color: var(--vf-violet);
    background: var(--vf-violet-bg);
}

.vf-pill-live .vf-pill-dot {
    animation: vfPulse 1.6s var(--vf-ease) infinite;
}

.vf-pill-negative {
    color: var(--vf-negative);
    background: var(--vf-negative-bg);
}

/* ---- home: hero ------------------------------------------------------------ */
.vf-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: right center;
    box-shadow: var(--vf-shadow-lg);
}

.vf-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(21, 20, 58, .97) 0%, rgba(21, 20, 58, .86) 34%, rgba(21, 20, 58, .4) 72%, rgba(21, 20, 58, .15) 100%);
}

.vf-hero-inner {
    position: relative;
    z-index: 2;
    padding: 46px 48px;
    max-width: 680px;
}

.vf-hero-eyebrow {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--vf-indigo-300);
    margin-bottom: 18px;
}

.vf-hero-h1 {
    font-family: var(--vf-font-display);
    font-weight: 600;
    font-size: 46px;
    line-height: 1.04;
    letter-spacing: -.025em;
    color: #fff;
    margin: 0;
}

.vf-hero-p {
    font-size: 16px;
    color: var(--vf-on-dark-2);
    line-height: 1.6;
    margin: 20px 0 26px;
    max-width: 500px;
}

.vf-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.vf-btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--vf-font-sans);
    font-weight: 600;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: var(--vf-r-md);
    cursor: pointer;
    border: none;
    background: var(--vf-grad-violet);
    color: #fff;
    text-decoration: none;
    /* negative spread keeps the glow under the button, not bleeding sideways */
    box-shadow: 0 6px 14px -6px rgba(90, 87, 201, .55);
    transition: transform .1s, box-shadow .15s;
}

.vf-btn-accent:hover {
    color: #fff;
    box-shadow: 0 8px 18px -6px rgba(90, 87, 201, .7);
}

.vf-btn-ghost-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: var(--vf-r-md);
    color: #fff;
    text-decoration: none;
}

.vf-btn-ghost-light:hover {
    color: var(--vf-indigo-200);
}

.vf-focal-row {
    display: flex;
    gap: 28px;
    margin-top: 38px;
}

.vf-focal + .vf-focal {
    border-left: 1px solid rgba(255, 255, 255, .16);
    padding-left: 28px;
}

.vf-focal-value {
    font-family: var(--vf-font-display);
    font-weight: 600;
    font-size: 30px;
    color: #fff;
    line-height: 1;
    letter-spacing: -.02em;
    font-feature-settings: 'tnum' 1;
}

.vf-focal-label {
    font-size: 12px;
    color: var(--vf-on-dark-2);
    margin-top: 7px;
}

/* ---- home: journey steps ------------------------------------------------------ */
.vf-journey-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin: 34px 0 22px;
    flex-wrap: wrap;
    scroll-margin-top: 80px;
}

.vf-journey-title {
    font-family: var(--vf-font-display);
    font-weight: 600;
    font-size: 26px;
    letter-spacing: -.02em;
    color: var(--vf-fg-1);
    margin: 8px 0 0;
}

.vf-journey-lede {
    font-size: 14px;
    color: var(--vf-fg-3);
    line-height: 1.6;
    max-width: 440px;
    margin: 0;
}

.vf-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

@media (max-width: 1080px) {
    .vf-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .vf-step-rail {
        display: none;
    }
}

.vf-step-rail {
    position: absolute;
    top: 22px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--vf-indigo-300), var(--vf-violet));
    opacity: .4;
    z-index: 0;
}

.vf-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--vf-surface);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-r-lg);
    padding: 16px 12px 18px;
    cursor: pointer;
    box-shadow: var(--vf-shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform .18s var(--vf-ease), box-shadow .18s, border-color .18s;
}

.vf-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--vf-shadow-lg);
    border-color: var(--vf-indigo-200);
    color: inherit;
}

.vf-step-marker {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--vf-surface);
    border: 2px solid var(--vf-indigo-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vf-indigo-600);
    font-family: var(--vf-font-mono);
    font-size: 13px;
    font-weight: 600;
    margin-top: -2px;
    transition: all .18s;
}

.vf-step:hover .vf-step-marker {
    background: var(--vf-indigo-600);
    border-color: var(--vf-indigo-600);
    color: #fff;
}

.vf-step-icon {
    color: var(--vf-indigo-400);
    font-size: 20px;
    margin-top: 12px;
    transition: color .18s;
}

.vf-step:hover .vf-step-icon {
    color: var(--vf-indigo-600);
}

.vf-step-stage {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--vf-violet);
    margin-top: 8px;
}

.vf-step-name {
    font-family: var(--vf-font-display);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--vf-fg-1);
    margin-top: 4px;
    line-height: 1.2;
}

.vf-step-tagline {
    font-size: 11.5px;
    color: var(--vf-fg-3);
    margin-top: 6px;
    line-height: 1.4;
    min-height: 32px;
}

.vf-step-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--vf-border);
    width: 100%;
    justify-content: center;
    font-size: 11px;
    color: var(--vf-fg-3);
}

.vf-mini-dot-inline {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: none;
}

/* ---- home: activity + next best actions ------------------------------------------ */
.vf-flow-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 18px;
    align-items: start;
}

@media (max-width: 1080px) {
    .vf-flow-grid {
        grid-template-columns: 1fr;
    }
}

.vf-activity {
    display: flex;
    flex-direction: column;
    padding: 0 8px 8px;
}

.vf-act-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--vf-r-md);
    text-decoration: none;
    transition: background .15s;
}

.vf-act-row:hover {
    background: var(--vf-indigo-50);
}

.vf-act-icon {
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: var(--vf-r-sm);
    background: var(--vf-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.vf-act-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.vf-act-text {
    font-size: 13.5px;
    color: var(--vf-fg-1);
    line-height: 1.4;
}

.vf-act-meta {
    font-size: 11.5px;
    color: var(--vf-fg-faint);
    margin-top: 2px;
}

.vf-nba-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vf-nba {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-r-md);
    background: var(--vf-surface-2);
}

.vf-nba-icon {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: var(--vf-r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--vf-indigo-50);
}

.vf-nba-body {
    flex: 1;
    min-width: 0;
}

.vf-nba-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--vf-fg-1);
}

.vf-nba-desc {
    font-size: 12px;
    color: var(--vf-fg-3);
    margin-top: 2px;
}

.vf-btn-secondary-sm {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--vf-r-md);
    background: var(--vf-surface);
    color: var(--vf-indigo-700);
    border: 1px solid var(--vf-border-strong);
    text-decoration: none;
    white-space: nowrap;
}

.vf-btn-secondary-sm:hover {
    background: var(--vf-indigo-50);
    color: var(--vf-indigo-700);
}

.vf-tone-live {
    color: var(--vf-violet);
}

.vf-tone-positive {
    color: var(--vf-positive);
}

.vf-tone-attention {
    color: var(--vf-warning);
}

.vf-tone-neutral {
    color: var(--vf-fg-faint);
}

/* ---- module cards (home) ------------------------------------------------- */


/* ---- empty state --------------------------------------------------------- */
.vf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    gap: 6px;
}

.vf-empty .vf-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--vf-indigo-50);
    color: var(--vf-indigo-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 8px;
}

.vf-empty .vf-empty-title {
    font-family: var(--vf-font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--vf-fg-1);
}

.vf-empty .vf-empty-sub {
    font-size: 13.5px;
    color: var(--vf-fg-3);
    max-width: 340px;
    line-height: 1.5;
}

/* ---- login --------------------------------------------------------------- */
.vf-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(640px 420px at 18% 8%, rgba(90, 87, 201, .22), transparent 65%),
    radial-gradient(560px 400px at 86% 92%, rgba(130, 83, 168, .2), transparent 65%),
    var(--vf-indigo-900);
    padding: 32px 16px;
    box-sizing: border-box;
}

.vf-login-box {
    width: 100%;
    max-width: 400px;
}

.vf-login-brand {
    text-align: center;
    margin-bottom: 26px;
}

.vf-login-brand img {
    height: 26px;
}

.vf-login-brand .vf-login-product {
    margin-top: 12px;
    font-family: var(--vf-font-display);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -.01em;
    color: #fff;
}

.vf-login-brand .vf-login-tagline {
    margin-top: 4px;
    font-size: 13px;
    color: var(--vf-on-dark-2);
}

.vf-login-card {
    background: var(--vf-surface);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-r-lg);
    box-shadow: var(--vf-shadow-lg);
    padding: 28px;
}

.vf-login-card .form-control {
    font-size: 14px;
    padding: 10px 13px;
    border-color: var(--vf-border-strong);
    border-radius: var(--vf-r-md);
}

.vf-login-card .form-control:focus {
    border-color: var(--vf-indigo-300);
    box-shadow: var(--vf-shadow-focus);
}

.vf-login-card label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--vf-fg-2);
    margin-bottom: 5px;
}

.vf-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-family: var(--vf-font-sans);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: var(--vf-r-md);
    cursor: pointer;
    border: 1px solid transparent;
    background: var(--vf-indigo-600);
    color: #fff;
    transition: background .15s, box-shadow .15s;
}

.vf-btn-primary:hover {
    background: var(--vf-indigo-500);
    color: #fff;
}

.vf-login-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 12.5px;
    color: var(--vf-on-dark-2);
}

.vf-login-foot a {
    color: var(--vf-indigo-300);
    text-decoration: none;
}

.vf-login-foot a:hover {
    color: #fff;
}

/* ---- misc ----------------------------------------------------------------- */
[x-cloak] {
    display: none !important;
}


.vf-main::-webkit-scrollbar,
.vf-nav-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.vf-main::-webkit-scrollbar-thumb,
.vf-nav-scroll::-webkit-scrollbar-thumb {
    background: var(--vf-border-strong);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.vf-nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
}

@keyframes vfPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .25;
    }
}

.vf-skeleton {
    border-radius: 6px;
    background: linear-gradient(90deg, var(--vf-indigo-50) 25%, var(--vf-indigo-100) 37%, var(--vf-indigo-50) 63%);
    background-size: 400% 100%;
    animation: vfShimmer 1.4s ease infinite;
}

.vf-skeleton-dark {
    background: linear-gradient(90deg, rgba(255, 255, 255, .08) 25%, rgba(255, 255, 255, .16) 37%, rgba(255, 255, 255, .08) 63%);
    background-size: 400% 100%;
}

@keyframes vfShimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 1080px) {
    .vf-content {
        padding: 22px 18px 56px;
    }
}

/* ============================================================================
   Audience Hub insight sections (sc-3943): filter popovers, metric matrix,
   age pyramid, provenance tag. Reuses the --vf-* tokens above.
   ============================================================================ */

/* --- insights filter widgets (mockup_v2 Period / Places / Scope cards) --- */
/* row of separate pill widgets; must not clip dropdowns and must stack above
   the panels that follow it. */
.vf-insights-filterbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    overflow: visible;
    position: relative;
    z-index: 20;
}

.vf-fpop {
    position: relative;
    display: inline-flex;
}

.vf-fw {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--vf-surface);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-r-pill);
    padding: 6px 14px 6px 7px;
    cursor: pointer;
    font-family: var(--vf-font-sans);
    color: var(--vf-fg-1);
    box-shadow: var(--vf-shadow-xs);
    transition: border-color .15s, box-shadow .15s;
}

.vf-fw:hover {
    border-color: var(--vf-indigo-200);
    box-shadow: var(--vf-shadow-sm);
}

.vf-fw-on {
    border-color: var(--vf-indigo-300);
}

.vf-fw-icon {
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 9px;
    background: var(--vf-indigo-50);
    color: var(--vf-indigo-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.vf-fw-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--vf-fg-faint);
}

.vf-fw-value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--vf-fg-1);
}

.vf-fw-chev {
    font-size: 9px;
    color: var(--vf-fg-faint);
    margin-left: 2px;
}

/* period options rendered as full-width buttons inside the popover */
.vf-fopt-btn {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--vf-font-sans);
    text-align: left;
    color: var(--vf-fg-2);
}

.vf-fopt-on {
    color: var(--vf-indigo-700);
    font-weight: 600;
}

.vf-fpanel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    min-width: 260px;
    max-width: 340px;
    background: var(--vf-surface);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-r-md);
    box-shadow: var(--vf-shadow-lg);
    padding: 14px;
}

.vf-fpanel-wide {
    min-width: 300px;
}

/* Places popover: section label, vertical dimension selector, hint, multi-select */
.vf-pop-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--vf-fg-faint);
    margin-bottom: 9px;
}

.vf-pop-label i {
    color: var(--vf-indigo-500);
}

.vf-scopeseg {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--vf-indigo-50);
    border-radius: var(--vf-r-md);
    padding: 3px;
}

.vf-scopeseg-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    font-family: var(--vf-font-sans);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--vf-fg-2);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: var(--vf-r-sm);
}

.vf-scopeseg-btn i:first-child {
    color: var(--vf-fg-faint);
    width: 15px;
    text-align: center;
}

.vf-scopeseg-on {
    background: var(--vf-surface);
    color: var(--vf-indigo-700);
    font-weight: 600;
    box-shadow: var(--vf-shadow-xs);
}

.vf-scopeseg-on i:first-child {
    color: var(--vf-indigo-600);
}

.vf-scopeseg-chk {
    margin-left: auto;
    color: var(--vf-indigo-600);
    font-size: 12px;
}

.vf-pop-hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--vf-fg-3);
    padding: 10px 2px 0;
}

.vf-ms-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 7px 10px;
    background: var(--vf-bg-subtle);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-r-md);
}

.vf-ms-search i {
    color: var(--vf-fg-faint);
    font-size: 12px;
}

.vf-ms-search input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-family: var(--vf-font-sans);
    font-size: 13px;
    color: var(--vf-fg-1);
    min-width: 0;
}

.vf-ms-clear {
    border: none;
    background: none;
    cursor: pointer;
    flex: none;
    font-family: var(--vf-font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--vf-indigo-600);
}

.vf-ms-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 6px;
}

.vf-ms-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--vf-r-sm);
    font-size: 13px;
    color: var(--vf-fg-2);
    cursor: pointer;
}

.vf-ms-opt:hover {
    background: var(--vf-indigo-50);
}

.vf-ms-opt input {
    accent-color: var(--vf-indigo-600);
}

.vf-ms-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--vf-fg-faint);
}

.vf-fopts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 260px;
    overflow-y: auto;
}

.vf-fopt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--vf-fg-2);
    padding: 5px 6px;
    border-radius: var(--vf-r-sm);
    cursor: pointer;
}

.vf-fopt:hover {
    background: var(--vf-indigo-50);
}

.vf-fopt input {
    accent-color: var(--vf-indigo-600);
}

/* --- metric matrix: heat-graded tile grid (mockup_v2 ScopeMetricMatrix) --- */
.vf-mm-scroll {
    overflow-x: auto;
}

.vf-mm-grid {
    display: grid;
    gap: 6px;
    min-width: 620px;
}

.vf-mm-corner {
    display: flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--vf-fg-faint);
}

.vf-mm-colhd {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--vf-fg-2);
}

.vf-mm-swatch {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    flex: none;
}

.vf-mm-count-cell {
    background: color-mix(in srgb, var(--vf-indigo-400) 13%, var(--vf-surface));
}

.vf-mm-rowhd {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--vf-fg-1);
}

.vf-mm-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border-radius: var(--vf-r-sm);
    text-align: center;
    color: var(--vf-fg-1);
}

.vf-mm-cell-dark {
    color: #fff;
}

.vf-mm-val {
    font-family: var(--vf-font-mono);
    font-weight: 600;
    font-size: 13px;
}

.vf-mm-idx {
    font-family: var(--vf-font-mono);
    font-size: 9.5px;
    opacity: .7;
    margin-top: 1px;
}

.vf-mm-total-hd {
    border-top: 2px solid var(--vf-border);
    padding-top: 6px;
    margin-top: 2px;
    font-weight: 700;
}

.vf-mm-total-cell {
    border-top: 2px solid var(--vf-border);
    margin-top: 2px;
    background: var(--vf-surface-2) !important;
    border-radius: 0;
}

/* --- executive network summary strip --- */
.vf-netstat {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* --- provenance / resolution tag --- */
.vf-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--vf-fg-3);
    background: var(--vf-surface-2);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-r-pill);
    padding: 3px 10px;
}

/* --- age & gender pyramid (mockup_v2 layout) --- */
.vf-pyramid {
    padding: 6px 4px 2px;
}

.vf-pyramid-head,
.vf-pyramid-row,
.vf-pyramid-foot {
    display: grid;
    grid-template-columns: 1fr 96px 1fr 56px;
    align-items: center;
}

.vf-pyramid-head {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--vf-border);
}

.vf-pyramid-foot {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--vf-border);
}

.vf-pyramid-row {
    padding: 4px 0;
}

.vf-pyramid-side {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.vf-pyramid-side-f {
    justify-content: flex-end;
    color: var(--vf-female);
}

.vf-pyramid-side-m {
    justify-content: flex-start;
    color: var(--vf-male);
}

.vf-pyramid-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.vf-pyramid-cap {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--vf-fg-faint);
}

.vf-pyramid-band {
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--vf-fg-1);
    font-variant-numeric: tabular-nums;
}

.vf-pyramid-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.vf-pyramid-right {
    display: flex;
    align-items: center;
    gap: 9px;
}

.vf-pyramid-pct {
    width: 48px;
    flex: none;
    font-family: var(--vf-font-mono);
    font-size: 12px;
    color: var(--vf-fg-2);
}

.vf-pyramid-left .vf-pyramid-pct {
    text-align: right;
}

.vf-pyramid-track {
    flex: 1;
    display: flex;
}

.vf-pyramid-left .vf-pyramid-track {
    justify-content: flex-end;
}

.vf-pyramid-bar {
    height: 20px;
    transition: width .6s var(--vf-ease);
}

.vf-pyramid-bar-f {
    background: var(--vf-female);
    border-radius: 5px 0 0 5px;
}

.vf-pyramid-bar-m {
    background: var(--vf-male);
    border-radius: 0 5px 5px 0;
}

.vf-pyramid-tot {
    text-align: right;
    font-family: var(--vf-font-mono);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--vf-fg-1);
}

/* ============================================================================
   Audience Hub Executive Overview (sc-3943): grouped KPI strip, Top Places /
   Main demographic cards, executive synthesis, recommended-analysis rows.
   ============================================================================ */

/* grouped KPI strip labels */
.vf-kpi-group {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 6px 0 10px;
}

.vf-kpi-group-icon {
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 6px;
    background: var(--vf-indigo-50);
    color: var(--vf-indigo-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.vf-kpi-group-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--vf-fg-3);
}

.vf-kpi-group-rule {
    flex: 1;
    height: 1px;
    background: var(--vf-border);
}

/* clickable KPI cards */
a.vf-kpi-link {
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}

a.vf-kpi-link:hover {
    border-color: var(--vf-indigo-200);
    box-shadow: var(--vf-shadow-sm);
}

/* KPI card caption + secondary total line */
.vf-kpi-cap {
    font-size: 11px;
    color: var(--vf-fg-3);
    margin-top: 3px;
}

.vf-kpi-total {
    font-size: 11.5px;
    color: var(--vf-fg-faint);
    margin-top: 1px;
    font-variant-numeric: tabular-nums;
}

.vf-kpi-cmplbl {
    font-size: 11px;
    color: var(--vf-fg-faint);
    margin-top: 5px;
}

/* Top Places card rows */
.vf-tp-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
}

.vf-tp-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 0;
    border-bottom: 1px solid var(--vf-border);
    font-size: 12.5px;
}

.vf-tp-row:last-child {
    border-bottom: none;
}

.vf-tp-kind {
    color: var(--vf-fg-3);
    flex: none;
}

.vf-tp-name {
    color: var(--vf-fg-1);
    font-weight: 600;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* executive synthesis */
.vf-synth-headline {
    font-size: 15px;
    font-weight: 600;
    color: var(--vf-fg-1);
    line-height: 1.5;
    margin-bottom: 12px;
}

.vf-synth-insights {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vf-synth-insight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.vf-synth-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--vf-fg-2);
}

.vf-synth-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.vf-synth-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--vf-indigo-700);
    background: var(--vf-indigo-50);
    border: 1px solid var(--vf-indigo-100);
    border-radius: var(--vf-r-pill);
    padding: 6px 12px;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.vf-synth-chip:hover {
    background: var(--vf-indigo-100);
    border-color: var(--vf-indigo-200);
}

.vf-synth-chip i {
    color: var(--vf-indigo-400);
    font-size: 11px;
}

/* recommended-analysis rows */
.vf-rec-list {
    display: flex;
    flex-direction: column;
}

.vf-rec-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 6px;
    border-bottom: 1px solid var(--vf-border);
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.vf-rec-row:last-child {
    border-bottom: none;
}

.vf-rec-row:hover {
    background: var(--vf-indigo-50);
}

.vf-rec-icon {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 10px;
    background: var(--vf-indigo-50);
    color: var(--vf-indigo-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.vf-rec-body {
    flex: 1;
    min-width: 0;
}

.vf-rec-dest {
    font-size: 14px;
    font-weight: 600;
    color: var(--vf-fg-1);
}

.vf-rec-insight {
    font-size: 13px;
    color: var(--vf-fg-3);
    line-height: 1.45;
}

.vf-rec-arrow {
    color: var(--vf-fg-faint);
    font-size: 13px;
}

.vf-rec-row:hover .vf-rec-arrow {
    color: var(--vf-indigo-600);
}

/* ============================================================================
   Time Trends — Weekly pattern heatmap (mockup_v2 WeekHeatmapTotals):
   days x hours, shaded by the metric's ramp colour, with marginal rails.
   ============================================================================ */
.vf-wh-scroll {
    overflow-x: auto;
}

.vf-wh {
    min-width: 600px;
}

.vf-wh-row {
    display: grid;
    gap: 3px;
    margin-top: 3px;
    align-items: center;
}

.vf-wh-axis {
    font-size: 9.5px;
    color: var(--vf-fg-faint);
    text-align: center;
    font-family: var(--vf-font-mono);
}

.vf-wh-axis-rail {
    text-align: right;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.vf-wh-rail-lbl {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--vf-fg-faint);
    justify-content: flex-end;
}

.vf-wh-grand {
    border: 1.5px solid var(--vf-indigo-300);
    background: var(--vf-surface);
}

.vf-wh-grand .vf-wh-val {
    color: var(--vf-fg-1);
    font-weight: 700;
}

.vf-wh-daylbl {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--vf-fg-3);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
}

.vf-wh-cell {
    height: 30px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vf-wh-val {
    font-size: 11px;
    font-family: var(--vf-font-mono);
    font-weight: 600;
    color: var(--vf-fg-2);
    line-height: 1;
}

.vf-wh-dark, .vf-wh-dark .vf-wh-val {
    color: #fff;
}

.vf-wh-rail {
    background-clip: padding-box;
}

.vf-wh-rail .vf-wh-val {
    font-size: 10px;
}

/* "Audience over the period" hover tooltip */
.vf-area-tip {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    min-width: 180px;
    padding: 10px 12px;
    background: var(--vf-surface);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-r-md);
    box-shadow: var(--vf-shadow-md);
}

.vf-area-tip-day {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--vf-fg-1);
    margin-bottom: 7px;
}

.vf-area-tip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    margin-top: 3px;
}

.vf-area-tip-dot {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    flex: none;
}

.vf-area-tip-name {
    color: var(--vf-fg-2);
}

.vf-area-tip-val {
    margin-left: auto;
    font-family: var(--vf-font-mono);
    font-weight: 600;
    color: var(--vf-fg-1);
}

/* ============================================================================
   Data Confidence (module 01). Reuses the --vf-* tokens, .vf-panel, .vf-row-2,
   .vf-table and .vf-legend above; only the bespoke score hero, grade bar and
   readiness/completeness cards are styled here.
   ============================================================================ */
.vf-tone-negative {
    color: var(--vf-negative);
}

.vf-dc-min0 {
    min-width: 0;
}

/* larger section headings + vertical rhythm on the Data Confidence page */
.vf-dc .vf-sec-row {
    margin-top: 30px;
}

.vf-dc .vf-sec-title {
    font-family: var(--vf-font-sans);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vf-fg-2);
    flex: 0 0 auto;
    white-space: nowrap;
}

.vf-dc .vf-sec-sub {
    font-size: 13px;
    max-width: 780px;
}

/* hero */
.vf-dc-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    position: relative;
    margin-bottom: 8px;
}

.vf-dc-hero-report {
    position: absolute;
    top: 16px;
    right: 16px;
    gap: 6px;
}

.vf-dc-hero-score {
    display: flex;
    align-items: center;
    gap: 20px;
}

.vf-dc-band {
    font-family: var(--vf-font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -.01em;
    margin-top: 2px;
}

.vf-dc-hero-note {
    font-size: 12.5px;
    color: var(--vf-fg-3);
    margin: 6px 0 0;
    max-width: 260px;
    line-height: 1.5;
}

.vf-dc-hero-divider {
    width: 1px;
    align-self: stretch;
    background: var(--vf-border);
}

.vf-dc-minor {
    flex: 1;
    display: flex;
    gap: 22px;
    min-width: 220px;
}

.vf-dc-minor-item {
    flex: 1;
    min-width: 0;
}

.vf-dc-minor-lbl {
    font-size: 12px;
    font-weight: 600;
    color: var(--vf-fg-3);
    margin-bottom: 6px;
}

.vf-dc-minor-val {
    font-family: var(--vf-font-display);
    font-weight: 700;
    font-size: 32px;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.vf-dc-minor-den {
    font-size: 13px;
    color: var(--vf-fg-faint);
    font-weight: 600;
}

.vf-dc-hero-op {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vf-dc-op-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vf-dc-weight {
    align-self: flex-start;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--vf-positive);
    background: var(--vf-positive-bg);
    padding: 2px 8px;
    border-radius: var(--vf-r-pill);
}

.vf-dc-loss {
    flex-basis: 100%;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 4px 0 0;
    padding: 12px 14px;
    border-radius: var(--vf-r-md);
    background: var(--vf-warning-bg);
    color: var(--vf-fg-2);
    font-size: 13px;
    line-height: 1.55;
}

.vf-dc-loss i {
    color: var(--vf-warning);
    margin-top: 2px;
    flex: none;
}

.vf-dc-loss b {
    color: var(--vf-fg-1);
}

@media (max-width: 900px) {
    .vf-dc-hero-divider {
        display: none;
    }

    .vf-dc-minor {
        flex-basis: 100%;
    }
}

/* shared card head */
.vf-dc-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--vf-fg-1);
    margin-bottom: 14px;
}

.vf-dc-card-head i {
    color: var(--vf-indigo-500);
    font-size: 14px;
}

/* capability checks */
.vf-dc-check {
    display: flex;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--vf-border);
}

.vf-dc-check:first-of-type {
    border-top: none;
}

.vf-dc-check-icon {
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.vf-dc-check-icon.vf-tone-positive {
    background: var(--vf-positive-bg);
}

.vf-dc-check-icon.vf-tone-attention {
    background: var(--vf-warning-bg);
}

.vf-dc-check-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.vf-dc-check-title {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--vf-fg-1);
}

.vf-dc-check-note {
    font-size: 12.5px;
    color: var(--vf-fg-3);
    line-height: 1.5;
    margin-top: 3px;
}

/* entitlement / VRC rows */
.vf-dc-vrc {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--vf-border);
}

.vf-dc-vrc:first-of-type {
    border-top: none;
}

.vf-dc-vrc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
    background: var(--vf-positive);
}

.vf-dc-vrc-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--vf-fg-1);
}

/* metadata completeness */
.vf-dc-meta-row {
    margin-bottom: 18px;
}

.vf-dc-cmp-big {
    font-family: var(--vf-font-display);
    font-weight: 700;
    font-size: 38px;
    letter-spacing: -.02em;
    color: var(--vf-fg-1);
}

.vf-dc-cmp-lbl {
    font-size: 13px;
    font-weight: 600;
    color: var(--vf-fg-faint);
    margin-left: 7px;
}

.vf-dc-miss {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.vf-dc-miss-lbl {
    flex: 0 0 120px;
    font-size: 12.5px;
    color: var(--vf-fg-2);
}

.vf-dc-miss-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--vf-indigo-100);
    overflow: hidden;
}

.vf-dc-miss-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.vf-dc-miss-count {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
}

/* configuration grade */
.vf-dc-cfg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.vf-dc-cfg-score {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.vf-dc-cfg-num {
    font-family: var(--vf-font-display);
    font-weight: 700;
    font-size: 42px;
    letter-spacing: -.02em;
    color: var(--vf-fg-1);
}

.vf-dc-cfg-den {
    font-size: 15px;
    color: var(--vf-fg-faint);
}

.vf-dc-cfg-note {
    font-size: 12.5px;
    color: var(--vf-fg-3);
    max-width: 340px;
    line-height: 1.45;
}

.vf-dc-cfg-bar {
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    gap: 2px;
    margin-bottom: 16px;
}

.vf-dc-cfg-bar > span {
    display: block;
}

.vf-dc-res-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: middle;
}

.vf-dc-cfg-foot {
    font-size: 12px;
    color: var(--vf-fg-faint);
    margin: 12px 0 0;
}

/* CPU x resolution matrix */
.vf-dc-matrix-scroll {
    overflow-x: auto;
}

.vf-dc-matrix {
    min-width: 480px;
}

.vf-dc-matrix th, .vf-dc-matrix td {
    white-space: nowrap;
}

/* count columns centered in each cell (CPU name column stays left) */
.vf-dc-matrix .vf-td-num {
    text-align: center;
}

.vf-dc-matrix-total td {
    font-weight: 700;
    color: var(--vf-fg-1);
    background: var(--vf-surface-2);
}

/* operating: headline block + 30-day delivery trend */
.vf-dc-op-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}

.vf-dc-trend-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vf-dc-trend-lbl {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--vf-fg-faint);
}

/* extrapolation + operating summaries */
.vf-dc-ex-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13.5px;
    color: var(--vf-fg-2);
    margin-bottom: 16px;
}

.vf-dc-ex-summary b {
    color: var(--vf-fg-1);
    font-weight: 700;
    font-size: 18px;
}

.vf-dc-dot {
    color: var(--vf-border-strong);
}

.vf-dc-ex-big {
    font-family: var(--vf-font-display);
    font-weight: 700;
    font-size: 44px;
    letter-spacing: -.02em;
    line-height: 1;
}

.vf-dc-ex-pct {
    font-size: 17px;
    color: var(--vf-fg-faint);
    margin-left: 2px;
}

.vf-dc-ex-sub {
    font-size: 12.5px;
    color: var(--vf-fg-3);
    margin: 8px 0 12px;
}

/* honest placeholder */
.vf-dc-placeholder {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--vf-r-md);
    background: var(--vf-surface-2);
    border: 1px dashed var(--vf-border-strong);
    font-size: 13px;
    color: var(--vf-fg-3);
    line-height: 1.5;
}

.vf-dc-placeholder i {
    color: var(--vf-indigo-300);
    margin-top: 2px;
    flex: none;
}

/* ============================================================================
   BENCHMARKING (Advanced Analytics) — global-KPI comparison strip + per-
   placement cards. Mirrors mockup_v3 BenchmarkArea, on the shared vf-* tokens.
   ========================================================================== */
.vf-bmk-section { margin-top: 4px; }

/* section head: uppercase label + rule + badge */
.vf-bmk-sechead { display: flex; align-items: center; gap: 13px; margin-bottom: 6px; }
.vf-bmk-sechead-label {
  font-family: var(--vf-font-sans); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--vf-fg-2);
  flex: none; white-space: nowrap;
}
.vf-bmk-sechead-rule { flex: 1; height: 1px; background: var(--vf-border); }
.vf-bmk-badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--vf-violet);
  background: var(--vf-indigo-50); border: 1px solid var(--vf-indigo-100);
  border-radius: var(--vf-r-pill); padding: 4px 10px;
}
.vf-bmk-secsub {
  font-size: 13px; color: var(--vf-fg-3); line-height: 1.5;
  max-width: 680px; margin: 0 0 16px;
}

/* Section 1 — two-row comparison strip (scrolls horizontally when narrow) */
.vf-bmk-strip-scroll { overflow-x: auto; padding-bottom: 4px; }
.vf-bmk-strip { min-width: 900px; display: flex; flex-direction: column; gap: 10px; }
.vf-bmk-row {
  display: grid; gap: 12px;
  grid-template-columns: repeat(var(--bmk-cols, 8), minmax(120px, 1fr));
}
.vf-bmk-kcard {
  background: var(--vf-indigo-50); border: 1px solid var(--vf-indigo-100);
  border-radius: var(--vf-r-lg); padding: 13px 14px;
  display: flex; flex-direction: column;
}
.vf-bmk-kcard-bench {
  background: var(--vf-bg-subtle); border-color: var(--vf-border);
  box-shadow: inset 3px 0 0 var(--vf-border-strong);  /* peer accent bar */
}
.vf-bmk-kcard-you { box-shadow: inset 3px 0 0 var(--vf-indigo-400); }  /* your accent bar */
.vf-bmk-khead {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
}
.vf-bmk-klabel {
  flex: 1; min-width: 0;
  font-size: 12px; font-weight: 700; color: var(--vf-indigo-700); line-height: 1.25;
}
.vf-bmk-kicon { color: var(--vf-fg-faint); font-size: 13px; margin-right: 6px; }

/* which row a card belongs to -- your network vs the peer benchmark */
.vf-bmk-tag {
  flex: none; font-size: 9px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 2px 6px; border-radius: var(--vf-r-pill);
  line-height: 1.5;
}
.vf-bmk-tag-you { color: #fff; background: var(--vf-indigo-500); }
.vf-bmk-tag-bench {
  color: var(--vf-fg-3); background: var(--vf-surface);
  border: 1px solid var(--vf-border-strong);
}
.vf-bmk-kval {
  font-family: var(--vf-font-display); font-weight: 600; font-size: 26px;
  letter-spacing: -.02em; color: var(--vf-fg-1); line-height: 1;
  font-feature-settings: 'tnum' 1; margin-bottom: 6px;
}
.vf-bmk-kunit { font-size: 11px; color: var(--vf-fg-3); line-height: 1.3; }
/* Compass-derived value that came back empty: dashed underline signals the hint */
.vf-bmk-na { cursor: help; color: var(--vf-fg-faint); text-decoration: underline dotted; text-underline-offset: 3px; }
.vf-bmk-badgecell {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 2px 0;
}
.vf-bmk-badgeicon { color: var(--vf-fg-2); font-size: 16px; }
.vf-bmk-caption { font-size: 12px; font-weight: 600; color: var(--vf-fg-3); margin-top: 12px; }

/* delta pill — white text on a magnitude-ramped green (over) / red (under)
   background (mockup bmkDeltaColor): neutral within ±10%, then three tiers. */
.vf-bmk-delta {
  display: inline-block; color: #fff; font-family: var(--vf-font-mono);
  font-weight: 700; font-size: 12px; letter-spacing: .01em;
  padding: 2px 9px; border-radius: var(--vf-r-pill); white-space: nowrap; line-height: 1.5;
}
.vf-bmk-delta-neutral { background: var(--vf-fg-3); }
.vf-bmk-delta-pos1 { background: var(--vf-positive); }
.vf-bmk-delta-pos2 { background: color-mix(in srgb, var(--vf-positive) 80%, black); }
.vf-bmk-delta-pos3 { background: color-mix(in srgb, var(--vf-positive) 60%, black); }
.vf-bmk-delta-neg1 { background: var(--vf-negative); }
.vf-bmk-delta-neg2 { background: color-mix(in srgb, var(--vf-negative) 82%, black); }
.vf-bmk-delta-neg3 { background: color-mix(in srgb, var(--vf-negative) 64%, black); }

/* Section 2 — per-location-type cards */
.vf-bmk-locgrid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}
.vf-bmk-card {
  background: var(--vf-surface); border: 1px solid var(--vf-border);
  border-radius: var(--vf-r-lg); box-shadow: var(--vf-shadow-sm); padding: 18px 20px;
}
.vf-bmk-cardhead {
  display: flex; align-items: center; gap: 11px; margin-bottom: 15px;
  padding-bottom: 13px; border-bottom: 1px solid var(--vf-border);
}
.vf-bmk-cardicon {
  width: 34px; height: 34px; flex: none; border-radius: var(--vf-r-md);
  background: var(--vf-indigo-50); color: var(--vf-indigo-600);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.vf-bmk-cardtitle {
  font-family: var(--vf-font-display); font-weight: 600; font-size: 15.5px;
  letter-spacing: -.01em; color: var(--vf-fg-1); line-height: 1.15; min-width: 0;
}
.vf-bmk-cardavg { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.vf-bmk-avglbl {
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--vf-fg-faint);
}
.vf-bmk-mlist { display: flex; flex-direction: column; }
.vf-bmk-mrow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--vf-bg-subtle);
}
.vf-bmk-mrow:last-child { border-bottom: none; }
.vf-bmk-mname {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0;
  font-size: 12.5px; font-weight: 600; color: var(--vf-fg-2);
}
.vf-bmk-mname i { color: var(--vf-fg-faint); font-size: 12px; }
.vf-bmk-mright { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; flex: none; }
.vf-bmk-mval { font-family: var(--vf-font-mono); font-size: 12.5px; font-weight: 700; color: var(--vf-fg-1); }
.vf-bmk-mpeer { font-family: var(--vf-font-mono); font-size: 11px; color: var(--vf-fg-faint); }
