/* ============================================================================
   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-800: #1D1C4E;
  --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-blue-violet: #5A57C9;
  --vf-grad-brand: linear-gradient(135deg, #2B2A66 0%, #5C4476 52%, #A89AA2 100%);
  --vf-grad-violet: linear-gradient(90deg, #5A57C9 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;
}

.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-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);
}

/* ---- 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-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);
}

/* ---- 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-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-on {
  background: var(--vf-surface);
  color: var(--vf-indigo-700);
  font-weight: 600;
  box-shadow: var(--vf-shadow-xs);
}

/* ---- filter bar -------------------------------------------------------------- */
.vf-filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--vf-surface);
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-r-md);
  margin-bottom: 18px;
  box-shadow: var(--vf-shadow-xs);
}

.vf-filterbar-icon {
  color: var(--vf-fg-3);
  font-size: 14px;
}

.vf-filterbar-live {
  margin-left: auto;
  font-size: 12px;
  color: var(--vf-fg-faint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.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-label {
  color: var(--vf-fg-faint);
  font-weight: 500;
}

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

.vf-fchip-on .vf-fchip-label,
.vf-fchip-on .fa-chevron-down {
  color: rgba(255, 255, 255, .75);
}

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

@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 / bar columns --------------------------------------------- */
.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-barcols {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 190px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--vf-border);
}

.vf-barcol {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  height: 100%;
}

.vf-barcol-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
  width: 100%;
}

.vf-barcol-bar {
  width: 26px;
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: height .6s var(--vf-ease);
}

.vf-barcol-value {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--vf-font-mono);
  font-size: 10.5px;
  color: var(--vf-fg-3);
  white-space: nowrap;
}

.vf-barcol-label {
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--vf-fg-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

/* ---- 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);
}

.vf-cell-id {
  font-family: var(--vf-font-mono);
  font-size: 11.5px;
  color: var(--vf-fg-faint);
  margin-top: 2px;
}

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

.vf-pace {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.vf-pace-bar {
  width: 52px;
}

.vf-pace-value {
  width: 34px;
  text-align: right;
}

.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: #F1ECF8;
}

.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-main {
  scroll-behavior: smooth;
}

.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: 1px solid transparent;
  background: var(--vf-grad-violet);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(90, 87, 201, .3);
  transition: transform .1s, box-shadow .15s;
}

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

.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) ------------------------------------------------- */
.vf-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.vf-module-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--vf-surface);
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-r-lg);
  box-shadow: var(--vf-shadow-sm);
  padding: 22px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.vf-module-card:hover {
  box-shadow: var(--vf-shadow-md);
  transform: translateY(-2px);
  border-color: var(--vf-indigo-200);
  color: inherit;
}

.vf-module-card .vf-module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.vf-module-card .vf-module-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--vf-r-md);
  background: var(--vf-indigo-50);
  color: var(--vf-indigo-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.vf-module-card .vf-module-num {
  font-family: var(--vf-font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--vf-fg-faint);
}

.vf-module-card h3 {
  font-family: var(--vf-font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
  margin: 0 0 2px;
  color: var(--vf-fg-1);
}

.vf-module-card .vf-module-stage {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--vf-indigo-400);
  margin-bottom: 10px;
}

.vf-module-card p {
  font-size: 13.5px;
  color: var(--vf-fg-3);
  line-height: 1.5;
  margin: 0;
}

/* ---- 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; }
}

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

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