/* ============================================================
   WELLS FARGO THEME TOKENS
   Single source of truth. Change a value here and the entire
   app retints — every rule below references these via var().
   ============================================================ */


:root {
  /* ============================================================
     AURORA CLOUD — LIGHT FUTURISTIC ENTERPRISE THEME
     Electric Blue → Aurora Cyan
     ============================================================ */

  /* ---- Primary brand ---- */
  --wf-primary:              #2563EB;
  --wf-primary-hover:        #1D4ED8;
  --wf-primary-light:        #60A5FA;
  --wf-primary-border:       #1E40AF;
  --wf-primary-grad:         #2563EB;
  --wf-primary-shadow:       0 5px 15px rgba(37, 99, 235, .20);
  --wf-primary-shadow-hover: 0 8px 22px rgba(37, 99, 235, .30);
  --wf-primary-ring:         rgba(37, 99, 235, .12);
  --wf-primary-ring-strong:  rgba(37, 99, 235, .20);
  --wf-primary-outline:      rgba(37, 99, 235, .50);
  --wf-primary-tint:         #EFF6FF;
  --wf-primary-tint2:        #DBEAFE;
  --wf-primary-text:         #1D4ED8;

  /* ---- Secondary accents ---- */
  --wf-gold:                 #F59E0B;
  --wf-gold-tint:            #FFFBEB;
  --wf-gold-text:            #B45309;
  --wf-gold-text-deep:       #92400E;
  --wf-gold-border:          #FDE68A;
  --wf-gold-soft:            #FEF3C7;

  /* ---- Neutral ink ---- */
  --wf-ink:                  #14213D;
  --wf-ink-heading:          #14213D;
  --wf-ink-body:             #334155;
  --wf-ink-section:          #475569;
  --wf-muted:                #64748B;
  --wf-muted-soft:           #94A3B8;
  --wf-muted-faint:          #A8B5C5;
  --wf-placeholder:          #AAB7C8;
  --wf-disabled-fg:          #CBD5E1;

  /* ---- Surfaces ---- */
  --wf-surface:              #FFFFFF;
  --wf-page-bg:              #F8FAFC;
  --wf-card-border:          #E5EDF5;
  --wf-card-border-hover:    #C7DDF5;
  --wf-divider:              #EAF0F7;
  --wf-row-divider:          #F1F5F9;
  --wf-th-bg:                #F5F8FC;
  --wf-row-hover:            #F4F8FF;

  --wf-panel-grad:           linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 55%, #F0FDFF 100%);
  --wf-panel-border:         #DCEAF7;
  --wf-field-border:         #D8E2EF;
  --wf-scrollbar:            #C8D5E5;
  --wf-skeleton-a:           #EDF2F8;
  --wf-skeleton-b:           #E2EAF4;

  --wf-shadow-soft:          0 4px 20px -8px rgba(30, 64, 175, .10);
  --wf-shadow-kpi:           0 8px 28px -12px rgba(37, 99, 235, .16);
  --wf-shadow-modal:         0 10px 44px -20px rgba(16, 40, 80, .22);
  --wf-shadow-nav:           0 2px 10px -2px rgba(30, 64, 175, .10);
  --wf-backdrop:             rgba(15, 23, 42, .45);

  /* ---- Semantic: success ---- */
  --wf-success-bg:           #ECFDF5;
  --wf-success-fg:           #047857;
  --wf-success-border:       #A7F3D0;
  --wf-success-banner-bg:    #F0FDF9;
  --wf-success-banner-fg:    #047857;
  --wf-success-banner-border:#A7F3D0;

  /* ---- Semantic: warning ---- */
  --wf-warn-bg:              #FFFBEB;
  --wf-warn-fg:              #B45309;
  --wf-warn-border:          #FDE68A;
  --wf-warn-banner-bg:       #FFF7ED;
  --wf-warn-banner-fg:       #92400E;
  --wf-warn-banner-border:   #FED7AA;

  /* ---- Semantic: danger ---- */
  --wf-danger-bg:            #FFF1F2;
  --wf-danger-fg:             #BE123C;
  --wf-danger-border:         #FECDD3;
  --wf-danger-banner-bg:      #FFF1F2;
  --wf-danger-banner-border:  #FECDD3;

  /* ---- Semantic: info ---- */
  --wf-info-bg:              #EFF8FF;
  --wf-info-fg:              #0759A8;
  --wf-info-border:          #BADEFF;

  /* ---- Purple ---- */
  --wf-purple-bg:             #F3F0FF;
  --wf-purple-fg:             #6941C6;

  /* ---- Hero: futuristic light-to-blue ---- */
  --wf-hero-grad: linear-gradient(135deg,
    #EAF3FF 0%,
    #DCEEFF 35%,
    #DDF9FF 70%,
    #FFFFFF 100%
  );

  --wf-hero-grad-alt: linear-gradient(155deg,
    #F0F7FF 0%,
    #DCEBFF 40%,
    #D9F7FC 75%,
    #FFFFFF 100%
  );

  --wf-hero-glow:             rgba(6, 182, 212, .20);
  --wf-hero-kicker:           #075985;
  --wf-hero-subtext:          #475569;
  --wf-hero-shadow:           0 24px 56px -20px rgba(37, 99, 235, .16);

  /* ---- Live status ---- */
  --wf-live-bg:               #F0FDF4;
  --wf-live-border:           #BBF7D0;
  --wf-live-fg:               #15803D;
  --wf-live-dot:              #22C55E;
  --wf-live-dot-halo:         rgba(34, 197, 94, .18);

  /* ============================================================
     PROVIDER BRAND TOKENS — ORIGINAL BRAND COLORS
     ============================================================ */

  --cloud-aws:               #FF9900;
  --cloud-gcp:               #4285F4;
  --cloud-azure:             #0078D4;
  --cloud-oracle:            #C74634;
  --cloud-ibm:               #0F62FE;
  --cloud-alibaba:           #FF6A00;
  --cloud-databricks:        #FF3621;

  --cloud-aws-tint:          rgba(255, 153, 0, .12);
  --cloud-gcp-tint:          rgba(66, 133, 244, .12);
  --cloud-azure-tint:        rgba(0, 120, 212, .12);
  --cloud-oracle-tint:       rgba(199, 70, 52, .12);
  --cloud-ibm-tint:          rgba(15, 98, 254, .12);
  --cloud-alibaba-tint:      rgba(255, 106, 0, .12);
  --cloud-databricks-tint:   rgba(255, 54, 33, .12);

  --cloud-aws-text:          #B46900;
  --cloud-gcp-text:          #1D4ED8;
  --cloud-azure-text:        #0078D4;
  --cloud-oracle-text:       #A03A2A;
  --cloud-ibm-text:          #0F62FE;
  --cloud-alibaba-text:      #B84A00;
  --cloud-databricks-text:   #C42D1C;

  /* ============================================================
     KPI HUE FAMILIES
     ============================================================ */

  --hue-violet:              #7255D9;
  --hue-violet-bg:           #F4F1FF;
  --hue-violet-bar:          linear-gradient(90deg, #7255D9, #A995F5);

  --hue-magenta:             #C04491;
  --hue-magenta-bg:          #FDF1F8;
  --hue-magenta-bar:         linear-gradient(90deg, #C04491, #E98BC5);

  --hue-coral:               #E66A3D;
  --hue-coral-bg:            #FFF3ED;
  --hue-coral-bar:           linear-gradient(90deg, #E66A3D, #F5A17D);

  --hue-teal:                #00A6A0;
  --hue-teal-bg:             #EDFBFA;
  --hue-teal-bar:            linear-gradient(90deg, #008C88, #39C8BE);

  --hue-amber:               #D98218;
  --hue-amber-bg:            #FFF8EB;
  --hue-amber-bar:           linear-gradient(90deg, #D98218, #F4BD54);

  --hue-sky:                 #1686D9;
  --hue-sky-bg:              #EFF7FF;
  --hue-sky-bar:             linear-gradient(90deg, #1686D9, #65B9F2);

  --hue-emerald:             #14966F;
  --hue-emerald-bg:          #EDFAF4;
  --hue-emerald-bar:         linear-gradient(90deg, #14966F, #52C99C);
}



/* ============================================================
   RESET & BASE
   ============================================================ */
* { box-sizing: border-box; }

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: var(--wf-page-bg);
  color: var(--wf-ink);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button, a, [role="button"], select { touch-action: manipulation; }

:focus-visible {
  outline: 3px solid var(--wf-primary-outline);
  outline-offset: 2px;
}

/* ============================================================
   SHELL & NAVIGATION
   ============================================================ */
.shell { display: flex; min-height: 100vh; }

.nav {
  width: 240px;
  background: var(--wf-surface);
  border-right: 1px solid var(--wf-card-border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 22px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--wf-primary);
  color: #ffffff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.brand-name { font-weight: 600; font-size: 15px; }

.nav a {
  display: flex; align-items: center; padding: 9px 12px;
  border-radius: 7px; color: var(--wf-muted); text-decoration: none;
  font-size: 14px; font-weight: 500; margin-bottom: 2px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.nav a:hover { background: var(--wf-primary-tint); color: var(--wf-primary); transform: translateX(2px); }
.nav a.active { background: var(--wf-primary-tint); color: var(--wf-primary-text); font-weight: 600; }

.nav-foot {
  margin-top: auto; padding: 16px 10px 4px;
  border-top: 1px solid var(--wf-divider);
  font-size: 12px; color: var(--wf-muted); line-height: 1.6;
}

.nav-toggle {
  display: none;
  position: fixed; top: 12px; left: 12px; z-index: 100;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--wf-surface);
  border: 1px solid var(--wf-card-border);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--wf-ink);
  box-shadow: var(--wf-shadow-nav);
}
.nav-toggle:hover { background: var(--wf-th-bg); }

.nav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: var(--wf-backdrop);
  z-index: 40;
}

.main {
  margin-left: 240px;
  padding: 28px 36px 40px;
  max-width: 100%;
  width: 100%;
}

/* ============================================================
   TYPOGRAPHY (legacy helpers)
   ============================================================ */
.h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.sub {
  color: var(--wf-muted);
  font-size: 0.9375rem;
  margin: 0 0 24px;
  line-height: 1.55;
}
.muted { color: var(--wf-muted); }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }

/* ============================================================
   CARDS (legacy)
   ============================================================ */
.card {
  background: var(--wf-surface);
  border: 1px solid var(--wf-card-border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  box-shadow: var(--wf-shadow-soft);
  border-color: var(--wf-card-border-hover);
}
.card-h {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 4px;
  display: flex; align-items: center; gap: 8px;
  line-height: 1.3;
}
.card-s {
  color: var(--wf-muted);
  font-size: 0.875rem;
  margin: 0 0 14px;
  line-height: 1.5;
}

/* ============================================================
   KPI CARDS (legacy)
   ============================================================ */
.kpi {
  background: var(--wf-surface);
  border: 1px solid var(--wf-card-border);
  border-radius: 10px;
  padding: 16px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kpi-l { font-size: 0.75rem; color: var(--wf-muted); margin-bottom: 6px; line-height: 1.4; }
.kpi-v { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.kpi-t { font-size: 0.75rem; margin-top: 6px; color: var(--wf-muted); }
.kpi-t.up { color: var(--wf-danger-fg); }
.kpi-t.down { color: var(--wf-success-fg); }

/* ============================================================
   BUTTONS (legacy)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  min-height: 38px;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--wf-card-border);
  background: var(--wf-surface);
  color: var(--wf-ink);
  text-decoration: none;
  font-family: inherit;
  line-height: 1.25;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--wf-th-bg); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--wf-primary);
  color: #ffffff;
  border-color: var(--wf-primary);
  box-shadow: 0 2px 8px -2px var(--wf-primary-shadow);
}
.btn-primary:hover { background: var(--wf-primary-hover); box-shadow: 0 4px 14px -2px var(--wf-primary-shadow); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 5px 10px; font-size: 0.8125rem; min-height: 30px; }
.btn-danger { background: var(--wf-danger-bg); color: var(--wf-danger-fg); border-color: var(--wf-danger-border); }
.btn-danger:hover { background: #F5DADA; }

.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #ffffff;
  border-radius: 999px; animation: wf-spin 0.7s linear infinite;
}
.btn.loading:not(.btn-primary)::after {
  border-color: rgba(20, 20, 20, 0.2); border-top-color: var(--wf-ink);
}

/* ============================================================
   TABLES (legacy)
   ============================================================ */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--wf-scrollbar) transparent;
}
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--wf-scrollbar); border-radius: 4px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.45;
}
th {
  text-align: left;
  padding: 9px 12px;
  color: var(--wf-muted);
  font-weight: 600;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--wf-card-border);
  background: var(--wf-th-bg);
  white-space: nowrap;
}
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--wf-row-divider);
  vertical-align: middle;
  word-break: break-word;
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.12s ease; }
tr:hover td { background: var(--wf-row-hover); }

/* ============================================================
   TAGS (legacy pill-family)
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  transition: transform 0.15s ease;
  white-space: nowrap;
}
.tag:hover { transform: scale(1.04); }
.tag-green  { background: var(--wf-success-bg); color: var(--wf-success-fg); }
.tag-amber  { background: var(--wf-warn-bg);    color: var(--wf-warn-fg); }
.tag-red    { background: var(--wf-danger-bg);  color: var(--wf-danger-fg); }
.tag-blue   { background: var(--wf-info-bg);    color: var(--wf-info-fg); }
.tag-gray   { background: var(--wf-skeleton-a); color: var(--wf-muted); }
.tag-purple { background: var(--wf-purple-bg);  color: var(--wf-purple-fg); }

/* ============================================================
   FORM INPUTS (legacy)
   ============================================================ */
input, select, textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--wf-field-border);
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--wf-surface);
  color: var(--wf-ink);
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--wf-primary);
  box-shadow: 0 0 0 3px var(--wf-primary-ring-strong);
}
label {
  display: block;
  font-size: 0.8125rem;
  color: var(--wf-ink-body);
  margin-bottom: 6px;
  font-weight: 500;
}
.field { margin-bottom: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8125rem; }

pre {
  background: var(--wf-th-bg);
  border: 1px solid var(--wf-card-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.75rem;
  overflow-x: auto;
  margin: 0;
  color: var(--wf-ink-body);
  line-height: 1.5;
}

/* ============================================================
   FILTER BAR (legacy)
   ============================================================ */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: var(--wf-th-bg);
  border: 1px solid var(--wf-card-border);
  border-radius: 8px;
  align-items: center;
}
.filters .filter-group { display: flex; align-items: center; gap: 6px; }
.filters label { display: inline; font-size: 0.75rem; color: var(--wf-muted); margin: 0; }
.filters select,
.filters input { width: auto; min-height: 34px; padding: 6px 10px; font-size: 0.875rem; border-radius: 6px; }

/* ============================================================
   TABS (legacy)
   ============================================================ */
.tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--wf-card-border);
  margin-bottom: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--wf-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: var(--wf-ink); }
.tab.active { color: var(--wf-primary-text); border-bottom-color: var(--wf-primary); }

/* ============================================================
   ENV TABS (legacy)
   ============================================================ */
.env-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.env-tab {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--wf-card-border);
  background: var(--wf-surface);
  color: var(--wf-muted);
  font-family: inherit;
  min-height: 32px;
  transition: all 0.15s ease;
}
.env-tab:hover { border-color: var(--wf-primary); color: var(--wf-primary-text); }
.env-tab.active { background: var(--wf-primary); color: #ffffff; border-color: var(--wf-primary); }
.env-tab[data-env="uat"].active { background: var(--wf-info-fg); border-color: var(--wf-info-fg); }
.env-tab[data-env="prod"].active { background: var(--wf-primary-hover); border-color: var(--wf-primary-hover); }

/* ============================================================
   STEP CARDS (legacy)
   ============================================================ */
.step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--wf-card-border);
  border-radius: 7px;
  margin-bottom: 8px;
  background: var(--wf-surface);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.step:hover { transform: translateX(2px); border-color: var(--wf-primary); box-shadow: 0 2px 12px -6px var(--wf-primary-shadow); }
.step-n {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--wf-primary-tint); color: var(--wf-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600; flex-shrink: 0;
}
.step-t { font-size: 0.875rem; font-weight: 500; }
.step-s { font-size: 0.75rem; color: var(--wf-muted); margin-top: 2px; }

/* ============================================================
   STEPPER (legacy)
   ============================================================ */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 24px; overflow-x: auto; padding-bottom: 4px; }
.stepper-step { display: flex; align-items: center; gap: 8px; flex: 1; position: relative; min-width: 120px; }
.stepper-step:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--wf-card-border); margin: 0 10px; }
.stepper-step.done:not(:last-child)::after { background: var(--wf-primary); }
.stepper-dot {
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--wf-skeleton-a); color: var(--wf-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700; flex-shrink: 0; border: 2px solid transparent;
}
.stepper-step.active .stepper-dot { background: var(--wf-primary); color: #ffffff; border-color: var(--wf-primary-tint2); animation: wf-pop 0.3s ease-out; }
.stepper-step.done .stepper-dot { background: var(--wf-success-fg); color: #ffffff; }
.stepper-label { font-size: 0.8125rem; font-weight: 500; color: var(--wf-muted); white-space: nowrap; }
.stepper-step.active .stepper-label { color: var(--wf-ink); font-weight: 600; }
.stepper-step.done .stepper-label { color: var(--wf-success-fg); }

/* ============================================================
   PIPELINE CARDS (legacy)
   ============================================================ */
.pipeline-card { background: var(--wf-surface); border: 1px solid var(--wf-card-border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.pipeline-h { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr auto; gap: 12px; padding: 12px 16px; align-items: center; cursor: pointer; }
.pipeline-repo { font-weight: 600; font-size: 0.875rem; display: flex; align-items: center; gap: 6px; }
.pipeline-meta { font-size: 0.8125rem; color: var(--wf-muted); line-height: 1.5; }
.pipeline-meta strong { color: var(--wf-ink); font-weight: 500; }
.pipeline-body { display: none; padding: 0 16px 16px; border-top: 1px solid var(--wf-card-border); background: var(--wf-th-bg); animation: wf-fadeUp 0.2s ease-out; }
.pipeline-body.open { display: block; }
.pipeline-steps { padding-top: 14px; }
.pipe-step { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--wf-surface); border: 1px solid var(--wf-card-border); border-radius: 7px; margin-bottom: 8px; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.pipe-step:hover { transform: translateX(2px); border-color: var(--wf-primary); box-shadow: 0 2px 12px -6px var(--wf-primary-shadow); }
.pipe-step-icon { width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 700; flex-shrink: 0; }
.pipe-step-icon.ok { background: var(--wf-success-bg); color: var(--wf-success-fg); }
.pipe-step-icon.fail { background: var(--wf-danger-bg); color: var(--wf-danger-fg); }
.pipe-step-icon.running { background: var(--wf-info-bg); color: var(--wf-info-fg); }
.pipeline-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.pipe-stat { background: var(--wf-surface); border: 1px solid var(--wf-card-border); border-radius: 10px; padding: 14px 16px; }
.pipe-stat-l { font-size: 0.75rem; color: var(--wf-muted); margin-bottom: 6px; }
.pipe-stat-v { font-size: 1.375rem; font-weight: 600; line-height: 1.2; }

/* ============================================================
   INVENTORY TWO-PANE (legacy)
   ============================================================ */
.inv { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.inv-left { background: var(--wf-surface); border: 1px solid var(--wf-card-border); border-radius: 10px; padding: 8px; max-height: calc(100vh - 260px); overflow-y: auto; }
.inv-left .cloud-group { font-size: 0.6875rem; color: var(--wf-muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 10px 6px; font-weight: 600; }
.acct { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 0.875rem; transition: background 0.15s ease; min-height: 36px; }
.acct:hover { background: var(--wf-th-bg); }
.acct.active { background: var(--wf-primary-tint); color: var(--wf-primary-text); font-weight: 600; }
.acct-count { font-size: 0.6875rem; color: var(--wf-muted); background: var(--wf-skeleton-a); padding: 1px 6px; border-radius: 999px; flex-shrink: 0; }
.acct.active .acct-count { background: var(--wf-surface); color: var(--wf-primary-text); }
.inv-right { background: var(--wf-surface); border: 1px solid var(--wf-card-border); border-radius: 10px; overflow: hidden; }

/* ============================================================
   CHART (legacy)
   ============================================================ */
.chart-card { padding: 18px 20px; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.chart-tabs { display: flex; gap: 2px; background: var(--wf-skeleton-a); padding: 3px; border-radius: 7px; }
.chart-tab { padding: 5px 11px; border-radius: 5px; font-size: 0.8125rem; font-weight: 500; cursor: pointer; border: none; background: transparent; color: var(--wf-muted); font-family: inherit; transition: background 0.15s ease, color 0.15s ease; }
.chart-tab.active { background: var(--wf-surface); color: var(--wf-primary-text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }

/* ============================================================
   NOTICES (legacy)
   ============================================================ */
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 16px; }
.warn-box { background: var(--wf-warn-bg); border: 1px solid var(--wf-warn-border); border-radius: 7px; padding: 11px 14px; margin-bottom: 16px; font-size: 0.875rem; color: var(--wf-warn-fg); line-height: 1.55; }
.warn-box strong { color: var(--wf-gold-text-deep); }
.ok-box { background: var(--wf-success-bg); border: 1px solid var(--wf-success-border); border-radius: 7px; padding: 11px 14px; margin-bottom: 16px; font-size: 0.875rem; color: var(--wf-success-fg); line-height: 1.55; }

/* ============================================================
   ROLES (legacy)
   ============================================================ */
.role { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1.4; }
.role-admin  { background: var(--wf-warn-bg);      color: var(--wf-warn-fg); }
.role-member { background: var(--wf-primary-tint); color: var(--wf-primary-text); }
.role-viewer { background: var(--wf-skeleton-a);   color: var(--wf-muted); }

/* ============================================================
   MEMBERS / AVATARS (legacy)
   ============================================================ */
.avatar { width: 28px; height: 28px; border-radius: 999px; background: var(--wf-primary-tint); color: var(--wf-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; flex-shrink: 0; }
.member { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; }

/* ============================================================
   LOGIN (legacy container)
   ============================================================ */
.hero { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login { display: grid; grid-template-columns: 1fr 1fr; max-width: 960px; width: 100%; background: var(--wf-surface); border-radius: 14px; border: 1px solid var(--wf-card-border); overflow: hidden; box-shadow: var(--wf-shadow-modal); }
.login-l { padding: 40px; background: var(--wf-th-bg); border-right: 1px solid var(--wf-card-border); }
.login-r { padding: 40px; }

/* ============================================================
   MISC (legacy)
   ============================================================ */
.error-text { color: var(--wf-danger-fg); font-size: 0.875rem; margin-top: 10px; line-height: 1.5; }

/* ============================================================
   SELECT ARROW
   ============================================================ */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--wf-surface);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23787070' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px 7px;
  padding-right: 34px;
  cursor: pointer;
}
select::-ms-expand { display: none; }
select:disabled { background-color: var(--wf-th-bg); color: var(--wf-disabled-fg); cursor: not-allowed; }

.filters select { padding-right: 30px; background-position: right 8px center; background-size: 10px 6px; }

/* ============================================================
   SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--wf-skeleton-a) 25%, var(--wf-skeleton-b) 50%, var(--wf-skeleton-a) 75%);
  background-size: 200% 100%;
  animation: wf-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
  color: transparent;
}

/* ============================================================
   PULSE DOT
   ============================================================ */
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--wf-live-dot); margin-right: 6px; position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 999px; background: var(--wf-live-dot); animation: wf-pulse 1.8s ease-out infinite; }

/* ============================================================
   LOADING BAR
   ============================================================ */
#loading-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(to right, var(--wf-primary), var(--wf-primary-light)); z-index: 9999; transition: width 0.2s ease, opacity 0.3s ease; opacity: 0; pointer-events: none; }
#loading-bar.active { opacity: 1; }

/* ============================================================
   PAGE PRIMITIVES — shared across all reskinned pages
   ============================================================ */
.page { width: 100%; color: var(--wf-ink); }
.page-in { animation: wf-page-in .55s cubic-bezier(.2,.75,.25,1) both; }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 24px; flex-wrap: wrap; }
.page-header > div:first-child { min-width: 0; }

.page-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--wf-primary-text); font-size: 10px; font-weight: 800; letter-spacing: 1.55px; }
.page-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wf-primary); box-shadow: 0 0 0 4px var(--wf-primary-tint2); }

.page-title { margin: 7px 0 5px; color: var(--wf-ink); font-size: clamp(27px, 3vw, 36px); line-height: 1.12; letter-spacing: -1.25px; font-weight: 760; }
.page-sub { margin: 0; color: var(--wf-muted-soft); font-size: 14px; line-height: 1.55; }
.page-header-meta { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; flex-wrap: wrap; }

.pill-count { padding: 7px 11px; border: 1px solid var(--wf-panel-border); border-radius: 99px; color: var(--wf-muted-faint); background: var(--wf-surface); font-size: 10px; white-space: nowrap; }
.pill-count strong { color: var(--wf-primary-text); font-weight: 800; }

.filter-panel { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; padding: 17px; margin-bottom: 20px; background: var(--wf-panel-grad); border: 1px solid var(--wf-panel-border); border-radius: 13px; }
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.filter-group.grow { flex: 1 1 220px; min-width: 200px; }
.filter-group.end { margin-left: auto; }
.filter-label { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--wf-muted-faint); font-size: 10px; font-weight: 800; letter-spacing: 0.65px; text-transform: uppercase; }

.field-v2 { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-v2 > label, .field-v2 > .field-label { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--wf-muted-faint); font-size: 10px; font-weight: 800; letter-spacing: 0.65px; text-transform: uppercase; }

.input-v2, .select-v2, .textarea-v2 { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--wf-field-border); border-radius: 9px; font-size: 12px; font-weight: 500; font-family: inherit; color: var(--wf-ink-body); background: var(--wf-surface); outline: none; transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.select-v2 { -webkit-appearance: base-select; -moz-appearance: base-select;appearance: base-select; padding-right: 8px; cursor: pointer; }
.input-v2:focus, .select-v2:focus, .textarea-v2:focus { border-color: var(--wf-primary-light); box-shadow: 0 0 0 3px var(--wf-primary-ring); }
.input-v2::placeholder, .textarea-v2::placeholder { color: var(--wf-placeholder); }
.hint-v2 { color: var(--wf-muted-faint); font-size: 10px; line-height: 1.5; }
.hint-v2.warn { color: var(--wf-warn-fg); }

.btn-v2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 17px; border: 1px solid var(--wf-card-border); border-radius: 9px; background: var(--wf-surface); color: var(--wf-primary-text); font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: opacity 0.15s ease, transform 0.15s ease; }
.btn-v2:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-v2-primary { border-color: var(--wf-primary-border); background: var(--wf-primary-grad); box-shadow: var(--wf-primary-shadow); color: #fff; }
.btn-v2-primary:not(:disabled):hover { transform: translateY(-1px); box-shadow: var(--wf-primary-shadow-hover); }
.btn-v2-danger { border-color: var(--wf-danger-border); background: var(--wf-danger-banner-bg); color: var(--wf-danger-fg); }
.btn-v2-sm { min-height: 32px; padding: 0 12px; border-radius: 7px; font-size: 10px; font-weight: 700; }

.card-v2 { background: var(--wf-surface); border: 1px solid var(--wf-card-border); border-radius: 17px; padding: 24px; box-shadow: 0 5px 20px rgba(20, 20, 20, 0.025); margin-bottom: 20px; min-width: 0; }
.card-v2-head { display: flex; align-items: center; gap: 12px; padding-bottom: 19px; margin-bottom: 19px; border-bottom: 1px solid var(--wf-divider); }
.card-v2-head > .heading-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--wf-primary); background: linear-gradient(145deg, var(--wf-primary-tint), var(--wf-primary-tint2)); font-size: 19px; flex-shrink: 0; }
.card-v2-head > .heading-icon.is-closed { color: var(--wf-muted-faint); background: var(--wf-skeleton-a); }
.card-v2-head > .heading-text { flex: 1; min-width: 0; }
.card-v2-title { margin: 0 0 3px; color: var(--wf-ink-heading); font-size: 15px; font-weight: 750; }
.card-v2-title .muted-count { color: var(--wf-muted-soft); font-weight: 600; }
.card-v2-sub { margin: 0; color: var(--wf-muted-soft); font-size: 11px; }

.table-v2-wrap { overflow-x: auto; border: 1px solid var(--wf-row-divider); border-radius: 10px; max-width: 100%; }
.table-v2 { font-size: 13px; width: 100%; border-collapse: collapse; text-align: left; table-layout: auto; }
.table-v2 th { font-size: 11px; padding: 11px 13px; color: var(--wf-muted-faint); background: var(--wf-th-bg); letter-spacing: 0.75px; font-weight: 800; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--wf-row-divider); }
.table-v2 td { padding: 12px 14px; border-top: 1px solid var(--wf-row-divider); color: var(--wf-ink-body); vertical-align: middle; }
.table-v2 tbody tr { transition: background 0.15s ease; }
.table-v2 tbody tr:hover { background: var(--wf-row-hover); }
.table-v2 td.mono { font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.table-v2 td.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-v2 td.actions, .table-v2 th.actions { text-align: right; white-space: nowrap; }

.pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 5px; font-size: 9px; font-weight: 800; letter-spacing: 0.04em; line-height: 1.4; white-space: nowrap; text-transform: capitalize; }
.pill-lg { font-size: 10px; font-weight: 700; padding: 3px 8px; }
.pill-green   { background: var(--wf-success-bg); color: var(--wf-success-fg); }
.pill-amber   { background: var(--wf-warn-bg);    color: var(--wf-warn-fg); }
.pill-red     { background: var(--wf-danger-bg);  color: var(--wf-danger-fg); }
.pill-blue    { background: var(--wf-info-bg);    color: var(--wf-info-fg); }
.pill-neutral { background: var(--wf-skeleton-a); color: var(--wf-muted); }
.pill-purple  { background: var(--wf-purple-bg);  color: var(--wf-purple-fg); }

.alert-v2 { padding: 10px 12px; border-radius: 8px; font-size: 11px; line-height: 1.5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.alert-v2-success { border: 1px solid var(--wf-success-banner-border); background: var(--wf-success-banner-bg); color: var(--wf-success-banner-fg); }
.alert-v2-error { border: 1px solid var(--wf-danger-banner-border); background: var(--wf-danger-banner-bg); color: var(--wf-danger-fg); }
.alert-v2-warn { border: 1px solid var(--wf-warn-banner-border); background: var(--wf-warn-banner-bg); color: var(--wf-warn-banner-fg); }
.alert-v2-info { border: 1px solid var(--wf-info-bg); background: var(--wf-info-bg); color: var(--wf-info-fg); }

.empty-v2 { display: flex; flex-direction: column; align-items: center; padding: 40px 12px; color: var(--wf-muted-faint); text-align: center; }
.empty-v2 > .empty-icon { font-size: 26px; color: var(--wf-primary-light); }
.empty-v2 > strong { margin-top: 8px; color: var(--wf-muted); font-size: 13px; }
.empty-v2 > p { margin: 6px 0 0; font-size: 11px; }
.empty-v2 a { color: var(--wf-primary); font-weight: 700; }

.code-v2 { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: var(--wf-skeleton-a); color: var(--wf-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pre-v2 { max-height: 400px; overflow: auto; font-size: 10px; line-height: 1.6; background: var(--wf-th-bg); border: 1px solid var(--wf-panel-border); padding: 14px; border-radius: 9px; color: var(--wf-ink-body); margin: 0; }

.toggle-v2 { display: inline-flex; align-items: center; gap: 10px; padding: 0 12px; min-height: 42px; background: var(--wf-surface); border: 1px solid var(--wf-field-border); border-radius: 99px; cursor: pointer; user-select: none; transition: all 0.18s ease; }
.toggle-v2.is-on { background: var(--wf-primary-tint); border-color: var(--wf-primary-tint2); }
.toggle-v2 > span:first-child { font-size: 11px; font-weight: 700; color: var(--wf-muted); transition: color 0.18s ease; }
.toggle-v2.is-on > span:first-child { color: var(--wf-primary-text); }
.toggle-v2-track { width: 30px; height: 17px; border-radius: 999px; background: #cbd5e1; position: relative; flex-shrink: 0; transition: background 0.18s ease; }
.toggle-v2.is-on .toggle-v2-track { background: var(--wf-primary); }
.toggle-v2-knob { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 999px; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); transition: left 0.18s ease; }
.toggle-v2.is-on .toggle-v2-knob { left: 15px; }
.toggle-v2.toggle-v2-sm { min-height: 32px; padding: 0 10px; gap: 8px; }
.toggle-v2-sm > span:first-child { font-size: 10px; }
.toggle-v2-sm .toggle-v2-track { width: 28px; height: 16px; }
.toggle-v2-sm .toggle-v2-knob { width: 12px; height: 12px; }
.toggle-v2-sm.is-on .toggle-v2-knob { left: 14px; }

.drawer-v2 { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); background: var(--wf-surface); border-left: 1px solid var(--wf-card-border); box-shadow: -2px 0 20px rgba(0, 0, 0, 0.08); z-index: 50; overflow-y: auto; padding: 24px; }
.drawer-v2-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.drawer-v2-title { margin: 0; color: var(--wf-ink-heading); font-size: 18px; font-weight: 750; letter-spacing: -0.4px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: var(--wf-backdrop); display: flex; align-items: center; justify-content: center; }
.modal-backdrop.top { align-items: flex-start; overflow-y: auto; padding: 40px 20px; }
.modal-v2 { background: var(--wf-surface); border: 1px solid var(--wf-card-border); border-radius: 17px; box-shadow: 0 20px 60px -20px rgba(15, 23, 42, 0.35); overflow: hidden; width: 100%; }
.modal-v2-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--wf-divider); }
.modal-v2-title { margin: 0; color: var(--wf-ink-heading); font-size: 15px; font-weight: 750; }
.modal-v2-body { padding: 20px; }

/* ============================================================
   DASHBOARD-SPECIFIC — LIGHT HERO
   ============================================================ */

/* Hero panel — retuned for light gradient */
.hero-v2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 226px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 44px;
  margin-bottom: 20px;
  border-radius: 22px;
  color: var(--wf-ink);
  background: var(--wf-hero-grad);
  box-shadow: var(--wf-hero-shadow);
}
.hero-v2::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(rgba(37, 99, 235, 0.35) 0.7px, transparent 0.7px);
  background-size: 17px 17px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}
.hero-v2-glow {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: 14%;
  top: -230px;
  border-radius: 50%;
  background: var(--wf-hero-glow);
  filter: blur(28px);
}
.hero-v2-copy { position: relative; z-index: 2; max-width: 590px; }

.hero-v2-kicker {
  color: var(--wf-hero-kicker);
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 800;
}

.hero-v2 h2 {
  margin: 12px 0 9px;
  color: var(--wf-ink-heading);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.13;
  letter-spacing: -1.2px;
  font-weight: 750;
}

.hero-v2 p {
  margin: 0 0 20px;
  color: var(--wf-muted);
  font-size: 13px;
  line-height: 1.55;
}

.hero-v2-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 10px 15px;
  border: 1px solid var(--wf-primary-border);
  border-radius: 9px;
  background: var(--wf-primary-grad);
  color: #fff !important;
  font-size: 12px;
  font-weight: 750;
  box-shadow: var(--wf-primary-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-v2-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--wf-primary-shadow-hover);
}
.hero-v2-cta > span { font-size: 16px; }

/* Orbit — retuned for light hero */
/* ============================================================
   HERO ORBIT — animated icons travelling along the ring strokes
   ============================================================ */

/* Container — square so rotation math is symmetric */
.hero-orbit {
  position: relative;
  z-index: 1;
  width: 205px;
  height: 180px;
  margin-right: 7%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

/* ----- Rings ----- */
.hero-orbit-ring {
  position: absolute;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform-origin: center;
}
/* Ring A: 190×96 ellipse, tilted -24deg */
.hero-orbit-ring-a {
  width: 190px;
  height: 96px;
  margin-top: -48px;   /* center on container */
  margin-left: -95px;
  transform: rotate(-24deg);
}
/* Ring B: 150×150 circle, no tilt */
.hero-orbit-ring-b {
  width: 150px;
  height: 150px;
  margin-top: -75px;
  margin-left: -75px;
  border-style: dashed;
  opacity: 0.75;
}

/* ----- Core ----- */
.hero-orbit-core {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  font-size: 35px;
  background: var(--wf-primary-grad);
  border: 1px solid var(--wf-primary-border);
  box-shadow:
    0 12px 35px rgba(37, 99, 235, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.35);
  animation: wf-float 5s ease-in-out infinite;
  z-index: 2;
}

/* ----- Orbit wrappers — pivot at the ellipse/circle center ----- */
.hero-orbit-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 1;
}

/* ----- Nodes ----- */
.hero-orbit-node {
  position: absolute;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--wf-primary-tint2);
  border-radius: 12px;
  color: var(--wf-primary-text);
  background: var(--wf-surface);
  backdrop-filter: blur(8px);
  font-size: 17px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.14);
  /* Center each node on its anchor */
  margin-left: -17.5px;
  margin-top: -17.5px;
  z-index: 3;
}

/* ----- Node anchor points (where on the ellipse the node sits) -----
   These set the starting position BEFORE the wrapper rotates.
   Node A: ellipse half-width = 95px → rightmost point
   Node B: circle half-radius = 75px → bottom point
   Node C: same as A, but the wrapper adds a 120deg head start        */

.hero-orbit-node-a {
  top: 0;
  left: 95px;
  animation: counter-a 18s linear infinite;
}
.hero-orbit-node-b {
  top: 75px;
  left: 0;
  animation: counter-b 24s linear infinite reverse;
}
.hero-orbit-node-c {
  top: 0;
  left: 95px;
  animation: counter-c 30s linear infinite;
}

/* ----- Wrapper animations -----
   Each wrapper must include the ring's tilt AND the moving rotation.
   Ring A is tilted -24deg, so wrappers A and C combine that.
   Ring B has no tilt.                                                */

.hero-orbit-wrap-a {
  animation: orbit-a 18s linear infinite;
}
.hero-orbit-wrap-b {
  animation: orbit-b 24s linear infinite reverse;
}
.hero-orbit-wrap-c {
  animation: orbit-c 30s linear infinite;
}

@keyframes orbit-a {
  from { transform: rotate(-24deg) rotate(0deg); }
  to   { transform: rotate(-24deg) rotate(360deg); }
}
@keyframes orbit-b {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes orbit-c {
  from { transform: rotate(-24deg) rotate(120deg); }
  to   { transform: rotate(-24deg) rotate(480deg); }
}

/* ----- Counter-rotation so icons stay upright -----
   Undo BOTH the ring tilt and the moving rotation.                   */

@keyframes counter-a {
  from { transform: rotate(24deg) rotate(0deg); }
  to   { transform: rotate(24deg) rotate(-360deg); }
}
@keyframes counter-b {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@keyframes counter-c {
  from { transform: rotate(24deg) rotate(-120deg); }
  to   { transform: rotate(24deg) rotate(-480deg); }
}

/* ----- Pause on hover ----- */
.hero-orbit:hover .hero-orbit-wrap,
.hero-orbit:hover .hero-orbit-node {
  animation-play-state: paused;
}

/* ----- Reduced motion — freeze and park icons decoratively ----- */
@media (prefers-reduced-motion: reduce) {
  .hero-orbit-wrap,
  .hero-orbit-node {
    animation: none !important;
  }
  .hero-orbit-node-a {
    top: 8px;
    left: 28px;
    margin-left: 0;
    margin-top: 0;
  }
  .hero-orbit-node-b {
    top: 63px;
    left: auto;
    right: 3px;
    margin-left: 0;
    margin-top: 0;
  }
  .hero-orbit-node-c {
    top: auto;
    bottom: 7px;
    left: 47px;
    margin-left: 0;
    margin-top: 0;
  }
}

/* KPI grid */
.kpi-grid { display: grid; gap: 15px; margin-bottom: 24px; }
.kpi-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.kpi-v2 { text-decoration: none; color: inherit; position: relative; overflow: hidden; min-width: 0; padding: 18px 20px 16px; border: 1px solid var(--wf-card-border); border-radius: 15px; background: var(--wf-surface); box-shadow: 0 4px 15px rgba(20, 20, 20, 0.025); transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; }
.kpi-v2:hover { transform: translateY(-4px); border-color: var(--wf-danger-border); box-shadow: var(--wf-shadow-modal); }
.kpi-v2-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-v2-label { color: var(--wf-muted-soft); font-size: 11px; font-weight: 650; }
.kpi-v2-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--wf-primary); background: var(--wf-primary-tint); font-size: 15px; font-weight: 800; flex-shrink: 0; }
.kpi-v2-icon.warn { color: var(--wf-warn-fg); background: var(--wf-warn-bg); }
.kpi-v2-icon.ok { color: var(--wf-success-fg); background: var(--wf-success-bg); }
.kpi-v2-icon.info { color: var(--wf-info-fg); background: var(--wf-info-bg); }
.kpi-v2-value { margin: 10px 0 7px; color: var(--wf-ink-heading); font-size: 30px; line-height: 1.05; font-weight: 760; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.kpi-v2-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 18px; color: var(--wf-muted-soft); font-size: 10px; font-weight: 600; }
.kpi-v2-foot .arrow { color: var(--wf-primary-text); font-size: 15px; }
.kpi-v2-bar { height: 3px; margin-top: 13px; overflow: hidden; border-radius: 5px; background: var(--wf-row-divider); }
.kpi-v2-bar > span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--wf-primary), var(--wf-primary-light)); }
.kpi-v2-bar.warn > span { background: linear-gradient(90deg, #e5a34f, #f1d28b); }
.kpi-v2-bar.ok > span { background: linear-gradient(90deg, #48b995, #a5e4ce); }
.kpi-v2-bar.info > span { background: linear-gradient(90deg, #5b8cd8, #aac6f0); }

.status-warning { color: var(--wf-warn-fg) !important; }
.status-good { color: var(--wf-success-fg) !important; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 2px 15px; scroll-margin-top: 24px; }
.section-heading h2 { margin: 5px 0 4px; color: var(--wf-ink); font-size: 22px; letter-spacing: -0.65px; font-weight: 740; }
.section-heading p { margin: 0; color: var(--wf-muted-soft); font-size: 12px; }
.step-count-pill { padding: 7px 11px; border: 1px solid var(--wf-panel-border); border-radius: 99px; color: var(--wf-muted-faint); background: var(--wf-surface); font-size: 10px; white-space: nowrap; }
.step-count-pill strong { color: var(--wf-primary-text); font-weight: 800; }

.builder-split { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 17px; align-items: stretch; margin-bottom: 20px; }

.service-panel { padding: 17px; margin: 0 0 21px; border: 1px solid var(--wf-panel-border); border-radius: 13px; background: var(--wf-panel-grad); animation: wf-panel-in 0.28s ease both; }
.service-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.service-panel-head p { margin: 0; color: var(--wf-placeholder); font-size: 10px; }
.selected-count-pill { padding: 5px 9px; border: 1px solid var(--wf-danger-border); border-radius: 99px; color: var(--wf-primary-text); background: var(--wf-primary-tint); font-size: 10px; font-weight: 750; white-space: nowrap; }
.category-tabs { display: flex; gap: 5px; overflow-x: auto; padding: 13px 0 10px; border-bottom: 1px solid var(--wf-divider); }
.category-tab { flex: 0 0 auto; padding: 6px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--wf-muted-soft); background: transparent; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.18s ease; }
.category-tab:hover { color: var(--wf-primary-text); background: var(--wf-primary-tint); }
.category-tab.active { border-color: var(--wf-danger-border); color: var(--wf-primary-text); background: var(--wf-primary-tint2); }

.service-list { display: flex; flex-wrap: wrap; gap: 7px; max-height: 185px; overflow-y: auto; padding: 13px 1px 10px; }
.service-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--wf-panel-border); border-radius: 8px; color: var(--wf-muted); background: var(--wf-surface); font-family: inherit; font-size: 10px; font-weight: 600; cursor: pointer; transition: all 0.17s ease; }
.service-chip:hover { border-color: var(--wf-danger-border); color: var(--wf-primary-text); transform: translateY(-1px); }
.service-chip.selected { border-color: var(--wf-primary); color: #fff; background: var(--wf-primary); box-shadow: 0 3px 9px var(--wf-primary-shadow); }
.service-chip-check { width: 14px; height: 14px; display: grid; place-items: center; border-radius: 4px; color: var(--wf-muted-faint); background: var(--wf-row-divider); font-size: 10px; }
.service-chip.selected .service-chip-check { color: var(--wf-primary-text); background: #fff; }
.service-empty { color: var(--wf-placeholder); font-size: 11px; margin: 0; }
.service-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid var(--wf-divider); color: var(--wf-muted-soft); font-size: 10px; }

/* ============================================================
   QUICK GUIDE / ASIDE — retuned for light background
   ============================================================ */
.builder-aside {
  position: relative;
  overflow: hidden;
  padding: 22px 19px;
  color: var(--wf-ink);
  border: 1px solid var(--wf-panel-border);
  border-radius: 17px;
  background: var(--wf-panel-grad);
  box-shadow: 0 5px 20px rgba(20, 20, 20, 0.025);
}
.builder-aside::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -90px;
  bottom: -105px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(37, 99, 235, 0.03), 0 0 0 40px rgba(37, 99, 235, 0.02);
}
.aside-top { display: flex; align-items: center; justify-content: space-between; }
.aside-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--wf-primary-tint2);
  border-radius: 11px;
  color: var(--wf-primary-text);
  background: var(--wf-primary-tint);
  font-size: 20px;
}
.aside-tag { color: var(--wf-primary-text); font-size: 9px; letter-spacing: 1.4px; font-weight: 800; }
.builder-aside h3 { margin: 21px 0 8px; max-width: 190px; color: var(--wf-ink-heading); font-size: 20px; line-height: 1.18; letter-spacing: -0.5px; font-weight: 750; }
.builder-aside > p { margin: 0; color: var(--wf-muted); font-size: 11px; line-height: 1.6; }
.aside-steps { margin: 24px 0 20px; }
.aside-step { display: flex; align-items: flex-start; gap: 11px; }
.aside-step-num { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border: 1px solid var(--wf-primary-tint2); border-radius: 8px; color: var(--wf-primary-text); background: var(--wf-surface); font-size: 10px; font-weight: 800; }
.aside-step strong { display: block; margin: 1px 0 4px; color: var(--wf-ink-heading); font-size: 11px; font-weight: 700; }
.aside-step small { display: block; color: var(--wf-muted); font-size: 9px; line-height: 1.5; }
.aside-connector { height: 18px; margin: 0 0 0 11px; border-left: 1px dashed var(--wf-primary-tint2); }
.aside-note { position: relative; z-index: 1; display: flex; gap: 8px; padding: 11px; border: 1px solid var(--wf-panel-border); border-radius: 9px; background: rgba(37, 99, 235, 0.05); }
.aside-note > span { color: var(--wf-primary); font-size: 13px; }
.aside-note p { margin: 0; color: var(--wf-muted); font-size: 9px; line-height: 1.55; }
.aside-note strong { color: var(--wf-ink-heading); }

.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 15px; border-top: 1px solid var(--wf-divider); }
.submit-note { display: flex; align-items: center; gap: 7px; color: var(--wf-muted-soft); font-size: 10px; }
.submit-note-lock { color: var(--wf-primary-text); font-size: 13px; }
.submit-btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 42px; padding: 0 17px; border: 1px solid var(--wf-primary-border); border-radius: 9px; color: #fff; background: var(--wf-primary-grad); box-shadow: var(--wf-primary-shadow); font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease; }
.submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--wf-primary-shadow-hover); }
.submit-btn:disabled { opacity: 0.42; cursor: not-allowed; box-shadow: none; }
.submit-btn > span { font-size: 16px; }

.spinner-v2 { width: 12px; height: 12px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: wf-spin 0.7s linear infinite; display: inline-block; }

.activity-card { background: var(--wf-surface); border: 1px solid var(--wf-card-border); border-radius: 17px; overflow: hidden; box-shadow: 0 5px 20px rgba(20, 20, 20, 0.025); margin-top: 2px; }
.activity-toggle { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0; background: var(--wf-surface); }
.activity-trigger { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 0 17px 20px; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.activity-trigger:hover .activity-title strong { color: var(--wf-primary-text); }
.activity-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.activity-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; color: var(--wf-primary); background: var(--wf-primary-tint); font-size: 18px; }
.activity-title strong { display: block; color: var(--wf-ink-heading); font-size: 12px; }
.activity-title small { display: block; margin-top: 4px; color: var(--wf-muted-soft); font-size: 10px; }
.view-all-link { margin: 0 20px 0 0; color: var(--wf-primary-text); font-size: 10px; font-weight: 750; white-space: nowrap; }
.view-all-link:hover { color: var(--wf-danger-fg); }
.chevron { flex: 0 0 auto; color: var(--wf-placeholder); font-size: 19px; transition: transform 0.2s ease; }
.chevron.open { transform: rotate(180deg); }
.activity-content { padding: 0 20px 17px; animation: wf-panel-in 0.22s ease both; }

.footer-note { padding: 16px 2px 2px; color: var(--wf-muted-faint); font-size: 9px; text-align: center; letter-spacing: 0.2px; }
.footer-note > span { padding: 0 5px; color: var(--wf-card-border-hover); }

/* ============================================================
   INVENTORY-SPECIFIC
   ============================================================ */
.inventory-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 17px; align-items: start; }
.inventory-side { background: var(--wf-surface); border: 1px solid var(--wf-card-border); border-radius: 17px; padding: 12px; box-shadow: 0 5px 20px rgba(20, 20, 20, 0.025); min-width: 0; }
.inventory-side input { width: 100%; margin-bottom: 10px; }
.inventory-label { color: var(--wf-muted-faint); font-size: 9px; font-weight: 800; letter-spacing: 0.75px; text-transform: uppercase; padding: 8px 4px 10px; }
.inventory-list { display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 380px); overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; min-height: 38px; border-radius: 8px; cursor: pointer; background: transparent; color: var(--wf-ink-body); font-size: 11px; font-weight: 500; transition: background 0.15s ease; }
.acct-row:hover { background: var(--wf-th-bg); }
.acct-row.active { background: var(--wf-primary-tint); color: var(--wf-primary-text); font-weight: 700; }
.acct-row-main { display: flex; align-items: center; gap: 7px; min-width: 0; flex-wrap: wrap; }
.acct-row-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.acct-count { flex-shrink: 0; padding: 1px 6px; border-radius: 99px; background: var(--wf-skeleton-a); color: var(--wf-muted); font-size: 9px; font-weight: 750; min-width: 20px; text-align: center; }
.acct-row.active .acct-count { background: #fff; color: var(--wf-primary-text); }

.inventory-main { background: var(--wf-surface); border: 1px solid var(--wf-card-border); border-radius: 17px; box-shadow: 0 5px 20px rgba(20, 20, 20, 0.025); min-width: 0; }
.inventory-main-head { padding: 18px 20px; border-bottom: 1px solid var(--wf-divider); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.inventory-main-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 750; color: var(--wf-ink-heading); }
.inventory-main-sub { color: var(--wf-muted-soft); font-size: 11px; margin-top: 4px; }
.inventory-main-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inventory-main-tools input { width: 220px; }
.inventory-table-wrap { overflow-x: auto; margin: 0 20px; padding-bottom: 4px; }
.inventory-foot { padding: 10px 20px 16px; }

/* ============================================================
   FINANCE-SPECIFIC
   ============================================================ */
.chart-card { padding: 24px; }
.chart-head { display: flex; align-items: center; gap: 12px; padding-bottom: 19px; margin-bottom: 19px; border-bottom: 1px solid var(--wf-divider); }
.chart-head-text { flex: 1; min-width: 0; }
.range-tabs { display: flex; gap: 2px; background: var(--wf-skeleton-a); padding: 3px; border-radius: 8px; }
.range-tab { padding: 5px 11px; border-radius: 6px; font-size: 11px; font-weight: 700; font-family: inherit; border: none; background: transparent; color: var(--wf-muted); cursor: pointer; }
.range-tab.active { background: var(--wf-surface); color: var(--wf-primary-text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }

.rec-total-label { color: var(--wf-muted-soft); font-size: 9px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; }
.rec-total-value { font-size: 20px; font-weight: 760; color: var(--wf-success-fg); letter-spacing: -0.5px; }
.rec-total-wrap { text-align: right; flex-shrink: 0; }

/* ============================================================
   ANIMATIONS — single source
   ============================================================ */
@keyframes wf-page-in  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wf-panel-in { from { opacity: 0; transform: translateY(6px); }  to { opacity: 1; transform: translateY(0); } }
@keyframes wf-float    { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes wf-spin     { to { transform: rotate(360deg); } }
@keyframes wf-fadeUp   { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wf-slideIn  { from { transform: translateX(-16px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes wf-pulse    { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes wf-pop      { 0% { transform: scale(.8); opacity: 0; } 60% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); } }
@keyframes wf-shimmer  { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.nav  { animation: wf-slideIn 0.35s ease-out; }
.main { animation: wf-fadeUp 0.4s ease-out; }

.kpi { animation: wf-fadeUp 0.4s ease-out both; }
.kpi:nth-child(1) { animation-delay: 0ms; }
.kpi:nth-child(2) { animation-delay: 60ms; }
.kpi:nth-child(3) { animation-delay: 120ms; }
.kpi:nth-child(4) { animation-delay: 180ms; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--wf-shadow-kpi); }

.brand-mark { transition: transform 0.25s ease; }
.brand-mark:hover { transform: rotate(-6deg) scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .main { padding: 24px 28px; margin-left: 240px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pipeline-stats { grid-template-columns: repeat(2, 1fr); }
  .pipeline-h { grid-template-columns: 1.4fr 1fr 1fr 1fr auto; }
  .pipeline-h > div:nth-child(5) { display: none; }
  .inv { grid-template-columns: 240px 1fr; }
  .builder-split { grid-template-columns: minmax(0, 1fr) 235px; }
  .hero-orbit { margin-right: 1%; transform: scale(.9); }
}

/* ============================================================
   RESPONSIVE — SMALL TABLET / LARGE PHONE (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .nav { transform: translateX(-100%); transition: transform 0.25s ease; box-shadow: 2px 0 20px -4px var(--wf-shadow-nav); }
  .nav.open { transform: translateX(0); }
  .nav-toggle { display: inline-flex; }
  .nav-backdrop.active { display: block; }
  .main { margin-left: 0; padding: 64px 18px 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pipeline-h { grid-template-columns: 1fr 1fr auto; }
  .pipeline-h > div:nth-child(4), .pipeline-h > div:nth-child(5) { display: none; }
  .inv { grid-template-columns: 1fr; }
  .inv-left { max-height: 300px; }
  .login { grid-template-columns: 1fr; }
  .login-l { border-right: none; border-bottom: 1px solid var(--wf-card-border); padding: 28px; }
  .login-r { padding: 28px; }
  .row { flex-direction: column; align-items: flex-start; }
  .row .btn { align-self: stretch; text-align: center; }
  .tabs { margin-bottom: 16px; }
  .inventory-grid { grid-template-columns: 1fr; }
  .inventory-list { max-height: 300px; }
}

/* ============================================================
   RESPONSIVE — PHONE (≤ 800px)
   ============================================================ */
@media (max-width: 800px) {
  .builder-split { grid-template-columns: 1fr; }
  .builder-aside { display: none; }
  .hero-v2 { padding: 30px; }
  .hero-orbit { margin-right: 0; transform: scale(.82); }
}

/* ============================================================
   RESPONSIVE — SMALL PHONE (≤ 700px)
   ============================================================ */
@media (max-width: 700px) {
  .kpi-grid-3, .kpi-grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — PHONE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  html { font-size: 15px; }
  .main { padding: 60px 14px 20px; }
  .card { padding: 14px 16px; border-radius: 9px; margin-bottom: 12px; }
  .h1 { font-size: 1.375rem; }
  .sub { font-size: 0.875rem; margin-bottom: 20px; }

  .grid-4 { grid-template-columns: 1fr; gap: 10px; }
  .pipeline-stats { grid-template-columns: 1fr 1fr; }
  .kpi-v { font-size: 1.375rem; }
  .kpi { padding: 14px; }

  .btn { width: 100%; justify-content: center; }
  .btn-sm { width: auto; }
  .filters { padding: 10px; gap: 8px; }
  .filters .filter-group { flex: 1 1 100%; }
  .filters select, .filters input { width: 100%; }
  .env-tabs { gap: 3px; }
  .env-tab { padding: 6px 10px; font-size: 0.75rem; flex: 1; text-align: center; }

  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  table { font-size: 0.8125rem; }
  th { padding: 8px 9px; font-size: 0.6875rem; }
  td { padding: 9px; }

  .pipeline-h { grid-template-columns: 1fr; gap: 6px; padding: 11px 13px; }
  .pipeline-h > div:nth-child(4), .pipeline-h > div:nth-child(5), .pipeline-h > div:nth-child(6) { display: block; font-size: 0.75rem; }
  .pipe-step { grid-template-columns: 24px 1fr; gap: 8px; }
  .pipe-step > div:nth-child(3), .pipe-step > div:nth-child(4) { grid-column: 2; font-size: 0.6875rem; color: var(--wf-muted-soft); padding-left: 2px; }
  .stepper { flex-wrap: wrap; gap: 10px; }
  .stepper-step { flex: 1 1 45%; min-width: 0; }
  .stepper-step:not(:last-child)::after { display: none; }

  .login-l { padding: 22px; }
  .login-r { padding: 22px; }
  .login-l h2 { font-size: 1.15rem !important; }

  .tag { font-size: 0.6875rem; padding: 1px 7px; }
  .card-h { font-size: 0.9375rem; }
  .card-s { font-size: 0.8125rem; }

  .page-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-title { font-size: 27px; }
  .hero-v2 { min-height: 0; padding: 25px 22px; border-radius: 16px; }
  .hero-v2 h2 { font-size: 26px; }
  .hero-v2 p { max-width: 290px; font-size: 11px; line-height: 1.55; }
  .hero-orbit { position: absolute; right: -55px; bottom: -38px; width: 150px; height: 140px; opacity: .42; transform: scale(.72); }
  .dash2-desktop-break { display: none; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .card-v2 { padding: 16px 13px; border-radius: 13px; }
  .card-v2-head { align-items: flex-start; }
  .filter-panel { padding: 12px; }
  .filter-panel .filter-group { flex: 1 1 100%; }
  .service-panel { padding: 12px; }
  .service-footer { align-items: flex-start; flex-direction: column; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .submit-btn { width: 100%; }
  .activity-trigger { padding: 14px 0 14px 13px; }
  .activity-content { padding: 0 12px 13px; }
  .view-all-link { margin-right: 13px; font-size: 9px; }
  .acct-row-name { max-width: 140px; }
  .inventory-main-head { padding: 14px 16px; }
  .inventory-main-tools input { width: 100%; }
  .inventory-table-wrap { margin: 0 12px; }
  .inventory-foot { padding: 10px 12px 14px; }
}

/* ============================================================
   RESPONSIVE — TINY PHONE (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
  .pipeline-stats { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .kpi-v { font-size: 1.25rem; }
  .h1 { font-size: 1.25rem; }
  .main { padding: 60px 10px 16px; }
}




/* ============================================================
   LAYOUT / NAV — class-based (replaces inline styles)
   ============================================================ */

/* Brand mark */
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--wf-primary-light), var(--wf-primary-hover));
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35), 0 3px 9px var(--wf-primary-shadow);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.brand-mark:hover { transform: rotate(-6deg) scale(1.05); }

/* Brand name */
.brand-name {
  font-weight: 750;
  font-size: 15px;
  color: var(--wf-ink);
  letter-spacing: -0.2px;
}

/* Eyebrow above nav items */
.nav-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wf-primary-text);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  padding: 0 12px 10px;
}
.nav-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wf-primary);
  box-shadow: 0 0 0 3px var(--wf-primary-tint2);
}

/* Nav items container */
.nav-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Nav link */
.nav-link {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--wf-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: var(--wf-primary-tint); color: var(--wf-primary-text); }
.nav-link.is-active {
  background: var(--wf-primary-tint);
  color: var(--wf-primary-text);
  font-weight: 750;
}
.nav-link-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  margin-right: 9px;
  flex-shrink: 0;
}
.nav-link-dot.is-active { background: var(--wf-primary); }

/* Footer */
.nav-foot-label {
  color: var(--wf-muted-faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.nav-foot-tenant {
  color: var(--wf-ink-heading);
  font-size: 11px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-foot-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-signout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--wf-field-border);
  border-radius: 8px;
  background: var(--wf-surface);
  color: var(--wf-primary-text);
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-signout:hover {
  background: var(--wf-primary-tint);
  border-color: var(--wf-primary-tint2);
}

.provider-env-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  white-space: nowrap;
}

.provider-env-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.provider-env-name {
  font-size: 10px;
  color: var(--wf-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
}


/* ============================================================
   LANDING PAGE — hero orbit icons
   Universal translate-based ellipse animation.
   ============================================================ */

.landing-orbit-node {
  position: absolute;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--wf-primary-tint2);
  background: var(--wf-surface);
  color: var(--wf-primary-text);
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.14);
  /* Anchor at the orbit center — keyframes will translate outward */
  top: 50%;
  left: 50%;
  margin-top: -20px;
  margin-left: -20px;
  z-index: 2;
}

/* ----- Node A — large tilted ellipse (rx=180, ry=95, tilt=-24°) -----
   The 8 keyframes trace the tilted ellipse. `transform: translate(x, y)`
   values are the point on the ellipse at each 45° step of the tilt
   combined with the ellipse's own angle.                             */
.landing-orbit-a {
  animation: landing-ellipse-a 22s linear infinite;
}
@keyframes landing-ellipse-a {
  0%   { transform: translate(180px, 0px); }
  12.5% { transform: translate(127px, 67px); }
  25%  { transform: translate(0px, 95px); }
  37.5% { transform: translate(-127px, 67px); }
  50%  { transform: translate(-180px, 0px); }
  62.5% { transform: translate(-127px, -67px); }
  75%  { transform: translate(0px, -95px); }
  87.5% { transform: translate(127px, -67px); }
  100% { transform: translate(180px, 0px); }
}

/* ----- Node B — inner circle (r=140) ----- */
.landing-orbit-b {
  animation: landing-circle-b 28s linear infinite reverse;
}
@keyframes landing-circle-b {
  0%   { transform: translate(140px, 0px); }
  25%  { transform: translate(0px, 140px); }
  50%  { transform: translate(-140px, 0px); }
  75%  { transform: translate(0px, -140px); }
  100% { transform: translate(140px, 0px); }
}

/* ----- Node C — same ellipse as A, offset 120° start ----- */
.landing-orbit-c {
  animation: landing-ellipse-c 34s linear infinite;
}
@keyframes landing-ellipse-c {
  0%   { transform: translate(-90px, 82px); }
  12.5% { transform: translate(-154px, -7px); }
  25%  { transform: translate(-127px, -67px); }
  37.5% { transform: translate(0px, -95px); }
  50%  { transform: translate(127px, -67px); }
  62.5% { transform: translate(180px, 0px); }
  75%  { transform: translate(127px, 67px); }
  87.5% { transform: translate(0px, 95px); }
  100% { transform: translate(-90px, 82px); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-orbit-node { animation: none !important; }
  .landing-orbit-a { transform: translate(100px, -40px); }
  .landing-orbit-b { transform: translate(0, 140px); }
  .landing-orbit-c { transform: translate(-140px, 0); }
}