/**
 * ============================================================================
 * ZUKRO OS FOUNDER COMMAND CENTER — HIGH-FIDELITY DESIGN SYSTEM
 * Matching exact visual layout, liquid glass dark palette, glowing accents,
 * sparklines, Attention Required card, Cost Donut, and Voice AI hero
 * ============================================================================
 */

:root {
  --bg-core: #070c1a;
  --bg-sidebar: #050914;
  --bg-card: rgba(14, 23, 44, 0.72);
  --bg-card-hover: rgba(22, 35, 66, 0.88);
  --bg-glass: rgba(14, 26, 54, 0.65);
  --bg-input: #0b1429;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(0, 240, 255, 0.25);
  --border-active: #00f0ff;

  --text-primary: #ffffff;
  --text-secondary: #9cb0d4;
  --text-muted: #5d739c;

  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.28);
  --blue: #2d62ff;
  --blue-glow: rgba(45, 98, 255, 0.28);
  --violet: #9d4edd;
  --violet-glow: rgba(157, 78, 221, 0.28);
  --green: #00e676;
  --green-glow: rgba(0, 230, 118, 0.24);
  --amber: #fac40b;
  --amber-glow: rgba(250, 196, 11, 0.28);
  --red: #ff3366;
  --red-glow: rgba(255, 51, 102, 0.28);

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  --shadow-glow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.zk-skip-link {
  position: absolute;
  left: -9999px;
  top: 4px;
  z-index: 10000;
  background: var(--cyan);
  color: #040814;
  padding: 8px 18px;
  border-radius: 0 0 6px 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.zk-skip-link:focus {
  left: 4px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-core);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Founder Command Center Unified Container ─────────────────────────────── */
#fccShell.container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 20px 32px !important;
  box-sizing: border-box !important;
  min-height: calc(100vh - 56px);
}
@media (min-width: 1440px) {
  #fccShell.container {
    padding: 24px 40px !important;
  }
}

/* ── Founder Workstations Segmented Navigation Bar ────────────────────────── */
.fcc-workstations-bar {
  display: flex;
  align-items: center;
  background: var(--surface, #0d1a2b);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 6px 8px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.fcc-workstations-bar::-webkit-scrollbar {
  display: none;
}
.fcc-ws-track {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: max-content;
}
.fcc-ws-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  transition: all 0.16s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.fcc-ws-tab i {
  font-size: 13px;
  color: inherit;
}
.fcc-ws-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #ffffff);
}
.fcc-ws-tab.active {
  background: var(--brand-amber, #fac40b) !important;
  color: #0d1a2b !important;
  border-color: var(--brand-amber, #fac40b) !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(250, 196, 11, 0.25);
}
.fcc-ws-tab.active i {
  color: #0d1a2b !important;
}
.fcc-ws-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
  letter-spacing: 0.04em;
}
.fcc-ws-tab.active .fcc-ws-badge {
  background: rgba(13, 26, 43, 0.2);
  color: #0d1a2b;
}
.fcc-badge-live {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
}
.fcc-ws-tab.active .fcc-badge-live {
  background: #0d1a2b;
  color: #00e676;
}

/* ── 1. Topbar (Replaced by authoritative zkGlobalHeader from zukro-nav.js) ─ */
.zos-topbar {
  display: none !important;
}

.zos-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.zos-menu-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}

.zos-brand-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-amber);
  color: var(--brand-ink);
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(250, 196, 11, 0.35);
  flex-shrink: 0;
}

.zos-brand-logo {
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.zos-brand-sub {
  font-size: 9.5px;
  color: #00f0ff;
  font-weight: 800;
  letter-spacing: 0.14em;
}

/* Scope Selector Pill */
.zos-scope-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 23, 44, 0.8);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
}

.zos-scope-pill:hover {
  border-color: var(--border-strong);
  background: rgba(22, 35, 66, 0.9);
}

.zos-scope-pill select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  padding-right: 4px;
}

.zos-scope-pill select option {
  background: #0e172a;
  color: #fff;
}

/* Search Bar (Cmd+K) */
.zos-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 30px;
  width: 320px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.zos-search-bar:hover {
  border-color: var(--border-strong);
  background: #0e1b38;
}

.zos-search-bar input {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 12px;
  outline: none;
  width: 100%;
}

.zos-search-bar kbd {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Live Telemetry Sync Indicator */
.zos-telemetry-sync {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid rgba(0, 230, 118, 0.22);
  border-radius: 20px;
}

.zos-sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: zosPulse 2s infinite ease-in-out;
}

.zos-sync-text {
  display: flex;
  flex-direction: column;
}

.zos-sync-line1 {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.zos-sync-sub {
  font-size: 9.5px;
  color: #c8d6ec;
}

.zos-sync-line2 {
  font-size: 9.5px;
  color: #c8d6ec;
}

.zos-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zos-icon-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.zos-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.zos-badge-count {
  position: absolute;
  top: 0px;
  right: 0px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 10px;
}

.zos-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
}

.zos-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 2. Left Sidebar Navigation ──────────────────────────────────────────── */
.zos-sidebar {
  grid-area: sidebar;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 8px;
  overflow-y: auto;
}

.zos-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.zos-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: #c8d6ec;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.zos-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.zos-nav-item.active {
  background: rgba(45, 98, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.15);
  font-weight: 700;
}

.zos-nav-icon {
  font-size: 13px;
  width: 16px;
  text-align: center;
}

.zos-live-badge {
  margin-left: auto;
  font-size: 8.5px;
  font-weight: 800;
  color: #ff3366;
  background: rgba(255, 51, 102, 0.18);
  border: 1px solid rgba(255, 51, 102, 0.4);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zos-sys-health {
  background: rgba(10, 20, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-top: 10px;
}

.zos-sys-header {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.zos-sys-metrics {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  color: var(--text-muted);
}

.zos-sys-metrics > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zos-sys-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
}

.zos-sys-copyright {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
  line-height: 1.3;
}

/* ── 3. Main Center Command Surface ──────────────────────────────────────── */
.zos-main {
  grid-area: main;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zos-greeting {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.zos-greeting h1 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.zos-greeting p {
  color: #c8d6ec;
  font-size: 12px;
  margin-top: 2px;
}

/* ── 6 KPI Cards with Sparklines ─────────────────────────────────────────── */
.zos-kpi-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.zos-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.zos-kpi-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.zos-kpi-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zos-kpi-icon-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.zos-kpi-label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.zos-kpi-val {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 3px 0 2px;
  font-family: var(--font-mono);
}

.zos-kpi-subline {
  font-size: 9.5px;
  color: var(--text-muted);
}

.zos-kpi-sub {
  font-size: 9.5px;
  color: var(--green);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
}

.zos-kpi-sparkline {
  margin-top: 4px;
  height: 24px;
  width: 100%;
}

.zos-kpi-sparkline svg {
  width: 100%;
  height: 100%;
}

/* ── Mid Row 1: Voice AI Hero + Attention Required ───────────────────────── */
.zos-mid-row-top {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 12px;
}

/* Voice AI Hero (Liquid Glass) */
.zos-voice-hero {
  background: rgba(14, 23, 44, 0.75) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 240, 255, 0.28) !important;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(0, 240, 255, 0.15);
}

.zos-voice-hero-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zos-voice-body {
  display: grid;
  grid-template-columns: 140px 48px 1fr 44px;
  align-items: center;
  gap: 14px;
}

.zos-waveform-box {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zos-waveform-canvas {
  width: 100%;
  height: 100%;
}

/* Flat Glass Agent Presence Indicator (§8 Guidelines) */
.zos-agent-indicator-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zos-agent-dot-core {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--ai-accent);
  color: var(--ai-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  z-index: 2;
}

.zos-agent-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--ai-accent);
  opacity: 0.4;
  animation: zosAgentPulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes zosAgentPulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

.zos-voice-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.zos-voice-title {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.zos-voice-message {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  font-style: italic;
}

.zos-mic-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.zos-mic-btn:hover {
  border-color: var(--ai-accent);
  color: var(--ai-accent);
  background: var(--surface-card);
}

.zos-voice-prompts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.zos-voice-prompt-pill {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.28);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #00f0ff;
  cursor: pointer;
  transition: all 0.15s;
}

.zos-voice-prompt-pill:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Attention Required Card */
.zos-attention-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zos-attention-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zos-attention-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.zos-attention-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.zos-attention-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zos-num-badge {
  min-width: 20px;
  height: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 0 4px;
}

.badge-red { background: rgba(255, 51, 102, 0.2); color: var(--red); border: 1px solid rgba(255, 51, 102, 0.4); }
.badge-violet { background: rgba(157, 78, 221, 0.2); color: var(--violet); border: 1px solid rgba(157, 78, 221, 0.4); }
.badge-amber { background: rgba(250, 196, 11, 0.2); color: var(--amber); border: 1px solid rgba(250, 196, 11, 0.4); }
.badge-green { background: rgba(0, 230, 118, 0.2); color: var(--green); border: 1px solid rgba(0, 230, 118, 0.4); }

.zos-attention-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.zos-link-arrow {
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
}

/* ── Mid Row 2: Autonoms + Global Performance ────────────────────────────── */
.zos-mid-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
}

.zos-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.zos-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.zos-card-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.zos-autonoms-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zos-autonom-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.zos-autonom-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.zos-autonom-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.zos-autonom-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.ic-purple { background: rgba(157, 78, 221, 0.2); color: var(--violet); }
.ic-blue { background: rgba(45, 98, 255, 0.2); color: var(--blue); }
.ic-green { background: rgba(0, 230, 118, 0.2); color: var(--green); }
.ic-cyan { background: rgba(0, 240, 255, 0.2); color: var(--cyan); }
.ic-amber { background: rgba(250, 196, 11, 0.2); color: var(--amber); }
.ic-red { background: rgba(255, 51, 102, 0.2); color: var(--red); }

.zos-autonom-title {
  font-weight: 700;
  font-size: 11px;
  color: var(--text-primary);
}

.zos-autonom-sub {
  font-size: 9.5px;
  color: var(--text-muted);
}

.zos-autonom-status {
  font-size: 9.5px;
  color: var(--green);
  font-weight: 700;
}

.zos-autonom-time {
  font-size: 9px;
  color: var(--text-muted);
}

/* Global Performance Map */
.zos-map-wrap {
  position: relative;
  height: 140px;
  background: var(--surface-2, #081126);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.zos-map-svg {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.zos-map-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.zos-map-stat-col {
  text-align: center;
}

.zos-map-stat-name {
  font-size: 9.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.zos-map-stat-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  margin: 1px 0;
}

.zos-map-stat-trend {
  font-size: 9px;
  color: var(--green);
  font-weight: 700;
}

/* ── Bottom Row: 3-Card Grid (Revenue Trend, AI Insights, Cost & Margin) ─── */
.zos-bottom-row {
  display: grid;
  grid-template-columns: 1.35fr 1.1fr 1.1fr;
  gap: 12px;
}

.zos-chart-box {
  height: 110px;
  position: relative;
  width: 100%;
}

.zos-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* AI Insights List */
.zos-insights-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.zos-insight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #c8d6ec;
  line-height: 1.4;
}

.zos-insight-item strong {
  color: #ffffff;
  font-weight: 700;
}

.zos-insight-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

/* Cost & Margin Donut Card */
.zos-time-pills {
  display: flex;
  gap: 4px;
}

.zos-time-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  cursor: pointer;
}

.zos-time-pill.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.zos-cost-body {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
}

.zos-donut-wrap {
  position: relative;
  width: 84px;
  height: 84px;
}

.zos-donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

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

.zos-donut-val {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

.zos-donut-sub {
  font-size: 7.5px;
  color: var(--text-muted);
  line-height: 1;
}

.zos-cost-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zos-legend-row {
  display: flex;
  align-items: center;
  font-size: 10.5px;
}

.zos-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}

.zos-legend-name {
  color: #c8d6ec;
  font-weight: 500;
  flex: 1;
}

.zos-legend-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #ffffff;
}

.zos-cost-footer {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── 4. Right Stream Sidebar (LIVE — AUTONOMS FEED) ───────────────────────── */
.zos-stream-bar {
  grid-area: stream;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.zos-stream-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zos-stream-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zos-stream-live-tag {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
}

.zos-stream-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zos-feed-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.zos-feed-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  transform: translateX(-2px);
}

.zos-feed-time-col {
  font-size: 9px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  margin-top: 1px;
}

.zos-feed-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.zos-feed-content {
  flex: 1;
  min-width: 0;
}

.zos-feed-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.zos-feed-badge-ai,
.zos-feed-badge-autonom,
.zos-feed-badge-order,
.zos-feed-badge-payment,
.zos-feed-badge-inventory {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.zos-feed-badge-ai { background: rgba(157, 78, 221, 0.2); color: var(--violet); }
.zos-feed-badge-autonom { background: rgba(0, 230, 118, 0.2); color: var(--green); }
.zos-feed-badge-order { background: rgba(45, 98, 255, 0.2); color: #79a6ff; }
.zos-feed-badge-payment { background: rgba(0, 230, 118, 0.2); color: var(--green); }
.zos-feed-badge-inventory { background: rgba(250, 196, 11, 0.2); color: var(--amber); }

.zos-feed-status-tag {
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.tag-speaking { background: rgba(0, 240, 255, 0.2); color: var(--cyan); }
.tag-executing { background: rgba(0, 230, 118, 0.2); color: var(--green); }
.tag-thinking { background: rgba(157, 78, 221, 0.2); color: var(--violet); }
.tag-completed { background: rgba(0, 230, 118, 0.2); color: var(--green); }
.tag-listening { background: rgba(45, 98, 255, 0.2); color: #79a6ff; }

.zos-feed-msg {
  font-size: 11px;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zos-feed-sub {
  font-size: 9.5px;
  color: #c8d6ec;
  margin-top: 1px;
}

.zos-stream-footer {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.zos-full-activity-link {
  color: var(--cyan);
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
}

/* ── 5. Fixed Bottom Platform Telemetry Bar ───────────────────────────────── */
.zos-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: #040711;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  font-size: 11px;
  color: #c8d6ec;
  z-index: 50;
}

.zos-bottom-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zos-bottom-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

.zos-bottom-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
}

.val-warn { color: var(--amber); }
.val-info { color: var(--cyan); }

/* ── Side Drill-down Drawer Modal ────────────────────────────────────────── */
.zos-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.zos-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.zos-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  background: #070e24;
  border-left: 1px solid var(--border-strong);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.zos-drawer.open {
  transform: translateX(0);
}

.zos-drawer-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.zos-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* ── Global Search (Cmd+K) Modal ─────────────────────────────────────────── */
.zos-search-modal {
  background: #0a142c;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  width: 540px;
  max-width: 90vw;
  margin: 10vh auto;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.zos-search-modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.zos-search-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
}

/* ── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes zosPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(0, 240, 255, 0.3); transform: scale(1); }
  50% { box-shadow: 0 0 24px rgba(0, 240, 255, 0.65); transform: scale(1.04); }
}

/* ── Responsive rules ─────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .zos-shell {
    grid-template-columns: 190px 1fr;
    grid-template-areas: "sidebar main";
  }
  .zos-stream-bar {
    display: none;
  }
  .zos-kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .zos-shell {
    grid-template-columns: 1fr;
    grid-template-areas: "main";
  }
  .zos-sidebar {
    display: none;
  }
}

/* ── Subviews, Tables, Badges & Drill-Downs ─────────────────────────────── */
.fcc-card {
  background: var(--surface-card, rgba(14, 23, 42, 0.7));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 12px);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.fcc-table-wrap {
  background: var(--surface-card, rgba(14, 23, 42, 0.7));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 12px);
  overflow-x: auto;
  margin-bottom: 20px;
}

.fcc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.fcc-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary, #94a3b8);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  white-space: nowrap;
}

.fcc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  color: var(--text-primary, #f8fafc);
  vertical-align: middle;
}

.fcc-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.fcc-td-mono {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
}

.fcc-td-num {
  text-align: right;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.fcc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-active { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-suspended, .badge-failed { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-provisioning, .badge-pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-gold { background: rgba(250, 196, 11, 0.15); color: #fac40b; border: 1px solid rgba(250, 196, 11, 0.3); }
.badge-idle { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }

.fcc-health-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 800;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

.health-healthy { background: rgba(34, 197, 94, 0.18); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.4); }
.health-warning { background: rgba(245, 158, 11, 0.18); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.health-critical { background: rgba(239, 68, 68, 0.18); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }

.fcc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}

.fcc-btn-primary {
  background: var(--brand-amber, #fac40b);
  color: #0e172a;
}
.fcc-btn-primary:hover {
  background: #f0ba00;
}

.fcc-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border, rgba(255, 255, 255, 0.12));
  color: var(--text-primary, #f8fafc);
}
.fcc-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cyan, #00f0ff);
}

.fcc-btn-sm {
  padding: 3px 8px;
  font-size: 10.5px;
}

.fcc-feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  margin-bottom: 8px;
  transition: all 0.2s;
}

.fcc-feed-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong, rgba(255, 255, 255, 0.16));
}

.fcc-feed-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.ic-red { background: rgba(239, 68, 68, 0.18); color: #ef4444; }
.ic-cyan { background: rgba(0, 240, 255, 0.18); color: #00f0ff; }
.ic-gold { background: rgba(250, 196, 11, 0.18); color: #fac40b; }
.ic-purple { background: rgba(156, 140, 255, 0.18); color: #9c8cff; }
.ic-blue { background: rgba(45, 98, 255, 0.18); color: #2d62ff; }
.ic-green { background: rgba(34, 197, 94, 0.18); color: #22c55e; }

.fcc-feed-content {
  flex: 1;
  min-width: 0;
}

.fcc-feed-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
}

.fcc-feed-meta {
  font-size: 11px;
  color: var(--text-secondary, #94a3b8);
  margin-top: 2px;
}

.fcc-feed-time {
  font-size: 10.5px;
  color: var(--text-muted, #64748b);
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  white-space: nowrap;
}

/* ── Founder AI Autonomous Control Plane (Plane 2) ───────────────────────── */
.fcc-tenant-token-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 8px);
  padding: 12px 14px;
  transition: all 0.2s;
}
.fcc-tenant-token-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--cyan, #00f0ff);
}

/* ── Workspace Expansion & Stream Bar Collapse ───────────────────────────── */
.zos-shell.stream-collapsed {
  grid-template-columns: 210px 1fr !important;
  grid-template-areas: "sidebar main" !important;
}
.zos-shell.stream-collapsed .zos-stream-bar {
  display: none !important;
}

.fcc-sub-tabs-bar {
  background: transparent;
  width: 100%;
}
.fcc-sub-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  align-items: center;
  scrollbar-width: thin;
}
.fcc-sub-tabs button {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
}
.fcc-sub-tabs button:hover {
  background: var(--surface-card-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.fcc-sub-tabs button.active {
  background: rgba(250, 196, 11, 0.12) !important;
  color: var(--brand-amber, #fac40b) !important;
  border-color: var(--brand-amber, #fac40b) !important;
  box-shadow: 0 0 12px rgba(250, 196, 11, 0.16) !important;
}

.fcc-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 1100px) {
  .fcc-pipeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .fcc-pipeline-grid {
    grid-template-columns: 1fr;
  }
}

.fcc-card-selected {
  border-color: var(--brand-amber, #D6AF36) !important;
  background: rgba(250, 196, 11, 0.06) !important;
  box-shadow: 0 0 16px rgba(250, 196, 11, 0.2) !important;
}

/* ── Sidebar Bottom User & Sign Out ──────────────────────────────────────── */
.zos-sidebar-bottom {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zos-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.zos-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #132238;
  color: var(--cyan, #00f0ff);
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.zos-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.zos-user-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zos-user-role {
  font-size: 10px;
  color: var(--cyan, #00f0ff);
  font-weight: 600;
}

.zos-signout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.3);
  color: #ff6b8b;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zos-signout-btn:hover {
  background: rgba(255, 51, 102, 0.22);
  color: #ffffff;
  border-color: #ff3366;
}

/* ── LIGHT MODE OVERRIDES FOR FOUNDER CONTROL CENTER ─────────────────────── */
html[data-theme="light"] {
  --bg-core: #F4F6F9;
  --bg-sidebar: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-input: #FFFFFF;
  --border: rgba(13, 26, 43, 0.1);
  --border-strong: rgba(0, 180, 200, 0.35);
  --border-active: #00b4c8;
  --text-primary: #0D1A2B;
  --text-secondary: #4A5568;
  --text-muted: #64748B;
  --cyan: #0284c7;
  --cyan-glow: rgba(2, 132, 199, 0.15);
  --blue: #2563eb;
  --blue-glow: rgba(37, 99, 235, 0.15);
  --violet: #7c3aed;
  --violet-glow: rgba(124, 58, 237, 0.15);
  --green: #16a34a;
  --green-glow: rgba(22, 163, 74, 0.15);
  --amber: #d97706;
  --amber-glow: rgba(217, 119, 6, 0.15);
  --red: #dc2626;
  --red-glow: rgba(220, 38, 38, 0.15);
}

html[data-theme="light"] body {
  background: #F4F6F9 !important;
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-shell {
  background: #F4F6F9 !important;
}

html[data-theme="light"] .zos-sidebar {
  background: #FFFFFF !important;
  border-right-color: rgba(13, 26, 43, 0.1) !important;
}

html[data-theme="light"] .zos-nav-item {
  color: #4A5568 !important;
}

html[data-theme="light"] .zos-nav-item:hover {
  background: rgba(13, 26, 43, 0.05) !important;
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-nav-item.active {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.08) !important;
}

html[data-theme="light"] .zos-stream-bar {
  background: #FFFFFF !important;
  border-left-color: rgba(13, 26, 43, 0.1) !important;
}

html[data-theme="light"] .zos-bottom-bar {
  background: #FFFFFF !important;
  border-top-color: rgba(13, 26, 43, 0.1) !important;
  color: #4A5568 !important;
}

html[data-theme="light"] .zos-greeting h1 {
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-greeting p {
  color: #64748B !important;
}

html[data-theme="light"] .fcc-card,
html[data-theme="light"] .zos-card,
html[data-theme="light"] .zos-kpi-card,
html[data-theme="light"] .zos-voice-hero,
html[data-theme="light"] .fcc-tenant-token-card {
  background: #FFFFFF !important;
  border-color: rgba(13, 26, 43, 0.1) !important;
  box-shadow: 0 2px 10px rgba(13, 26, 43, 0.04) !important;
}

html[data-theme="light"] .zos-voice-hero-header span {
  color: #0284c7 !important;
}

html[data-theme="light"] .zos-voice-title {
  color: #64748B !important;
}

html[data-theme="light"] .zos-voice-message {
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-voice-prompt-pill {
  background: #F1F5F9 !important;
  border-color: rgba(13, 26, 43, 0.14) !important;
  color: #0284c7 !important;
}

html[data-theme="light"] .zos-voice-prompt-pill:hover {
  background: #E2E8F0 !important;
  color: #0369a1 !important;
}

html[data-theme="light"] .zos-mic-btn {
  background: #F1F5F9 !important;
  border-color: rgba(13, 26, 43, 0.14) !important;
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-attention-item {
  background: #F8FAFC !important;
  border-color: rgba(13, 26, 43, 0.08) !important;
}

html[data-theme="light"] .zos-attention-item:hover {
  background: #F1F5F9 !important;
}

html[data-theme="light"] .zos-attention-label {
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-card-title {
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-autonom-item {
  background: #F8FAFC !important;
  border-color: rgba(13, 26, 43, 0.08) !important;
}

html[data-theme="light"] .zos-autonom-item:hover {
  background: #F1F5F9 !important;
}

html[data-theme="light"] .zos-autonom-title {
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-map-wrap {
  background: #F1F5F9 !important;
  border-color: rgba(13, 26, 43, 0.08) !important;
}

html[data-theme="light"] .zos-map-stat-val {
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-legend-name {
  color: #64748B !important;
}

html[data-theme="light"] .zos-legend-val {
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-donut-val {
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-donut-sub {
  color: #64748B !important;
}

html[data-theme="light"] .zos-bottom-bar {
  background: #FFFFFF !important;
  border-color: rgba(13, 26, 43, 0.1) !important;
  box-shadow: 0 1px 3px rgba(13, 26, 43, 0.04) !important;
  color: #4A5568 !important;
}

html[data-theme="light"] .zos-bottom-val {
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-bottom-item {
  color: #4A5568 !important;
}

html[data-theme="light"] .zos-kpi-label {
  color: #64748B !important;
}

html[data-theme="light"] .zos-kpi-sub {
  color: #64748B !important;
}

html[data-theme="light"] .fcc-table-wrap {
  background: #FFFFFF !important;
  border-color: rgba(13, 26, 43, 0.1) !important;
}

html[data-theme="light"] .fcc-table th {
  background: #F8FAFC !important;
  color: #4A5568 !important;
  border-bottom-color: rgba(13, 26, 43, 0.1) !important;
}

html[data-theme="light"] .fcc-table td {
  color: #0D1A2B !important;
  border-bottom-color: rgba(13, 26, 43, 0.06) !important;
}

html[data-theme="light"] .fcc-table tr:hover td {
  background: #F8FAFC !important;
}

html[data-theme="light"] .fcc-btn-secondary {
  background: #EEF2F7 !important;
  color: #0D1A2B !important;
  border-color: rgba(13, 26, 43, 0.12) !important;
}

html[data-theme="light"] .fcc-btn-secondary:hover {
  background: #E2E8F0 !important;
}

html[data-theme="light"] .zos-user-pill {
  background: #F8FAFC !important;
  border-color: rgba(13, 26, 43, 0.1) !important;
}

html[data-theme="light"] .zos-avatar-sm {
  background: #E2E8F0 !important;
  color: #0284c7 !important;
  border-color: rgba(13, 26, 43, 0.1) !important;
}

html[data-theme="light"] .zos-user-name {
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-user-role {
  color: #0284c7 !important;
}

html[data-theme="light"] .zos-signout-btn {
  background: rgba(220, 38, 38, 0.08) !important;
  color: #dc2626 !important;
  border-color: rgba(220, 38, 38, 0.2) !important;
}

html[data-theme="light"] .zos-signout-btn:hover {
  background: rgba(220, 38, 38, 0.15) !important;
  color: #b91c1c !important;
  border-color: #dc2626 !important;
}

html[data-theme="light"] .fcc-drawer {
  background: #FFFFFF !important;
  border-left-color: rgba(13, 26, 43, 0.1) !important;
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-search-modal {
  background: #FFFFFF !important;
  border-color: rgba(13, 26, 43, 0.15) !important;
  color: #0D1A2B !important;
  box-shadow: 0 16px 40px rgba(13, 26, 43, 0.15) !important;
}

html[data-theme="light"] .zos-sys-health {
  background: #F8FAFC !important;
  border-color: rgba(13, 26, 43, 0.1) !important;
}

html[data-theme="light"] .zos-sys-header {
  color: #16a34a !important;
}

html[data-theme="light"] .zos-sys-metrics {
  color: #64748B !important;
}

html[data-theme="light"] .zos-sys-val {
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-sys-copyright {
  color: #94A3B8 !important;
}

html[data-theme="light"] .zos-stream-header {
  border-bottom-color: rgba(13, 26, 43, 0.1) !important;
}

html[data-theme="light"] .zos-stream-title {
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-stream-select {
  background: #F8FAFC !important;
  border-color: rgba(13, 26, 43, 0.15) !important;
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-stream-footer {
  background: #F8FAFC !important;
  border-top-color: rgba(13, 26, 43, 0.1) !important;
}

html[data-theme="light"] .zos-feed-msg {
  color: #0D1A2B !important;
}

html[data-theme="light"] .zos-feed-sub {
  color: #64748B !important;
}

html[data-theme="light"] .zos-stream-item {
  border-bottom-color: rgba(13, 26, 43, 0.06) !important;
}

html[data-theme="light"] .zos-stream-item:hover {
  background: rgba(13, 26, 43, 0.03) !important;
}

/* ── Universal Adaptive Form Controls (Theme Safe) ── */
input, select, textarea {
  color: var(--text-primary) !important;
  background: var(--bg-input) !important;
  border-color: var(--border) !important;
}
input::placeholder, textarea::placeholder {
  color: var(--text-muted) !important;
}
select option {
  background: var(--bg-core);
  color: var(--text-primary);
}

/* ── Comprehensive Light Theme Overrides for Commercial Growth & AI Studio ── */
html[data-theme="light"] select option {
  background: #FFFFFF !important;
  color: #0D1A2B !important;
}
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: #FFFFFF !important;
  color: #0D1A2B !important;
  border-color: rgba(13, 26, 43, 0.16) !important;
}
html[data-theme="light"] textarea {
  background: #F8FAFC !important;
  color: #0D1A2B !important;
  border-color: rgba(13, 26, 43, 0.16) !important;
}
html[data-theme="light"] .fcc-sub-tabs button {
  background: #FFFFFF !important;
  color: #4A5568 !important;
  border-color: rgba(13, 26, 43, 0.14) !important;
}
html[data-theme="light"] .fcc-sub-tabs button:hover {
  background: #F1F5F9 !important;
  color: #0D1A2B !important;
  border-color: rgba(13, 26, 43, 0.25) !important;
}
html[data-theme="light"] .fcc-sub-tabs button.active {
  background: rgba(250, 196, 11, 0.18) !important;
  color: #854d0e !important;
  border-color: #d97706 !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 4px rgba(217, 119, 6, 0.2) !important;
}
html[data-theme="light"] .fcc-card {
  background: #FFFFFF !important;
  border-color: rgba(13, 26, 43, 0.12) !important;
  box-shadow: 0 1px 3px rgba(13, 26, 43, 0.05) !important;
}
html[data-theme="light"] .fcc-card-selected {
  border-color: #d97706 !important;
  background: rgba(250, 196, 11, 0.08) !important;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.15) !important;
}

/* ── Standard ZOS CRM Layout (Customer Management Design Standard) ────────── */
.crm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.crm-kpi {
  background: var(--surface-card, rgba(14, 23, 42, 0.7));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}
.crm-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.crm-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 10px;
}
.crm-kpi-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.crm-kpi-val {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  font-family: var(--font-mono, 'Plus Jakarta Sans', sans-serif);
}
.crm-kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.crm-spark {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 62px;
  height: 26px;
  opacity: 0.85;
}

/* CRM Segment Chips */
.crm-segments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.crm-seg-chip {
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: var(--surface-card);
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  transition: all 0.18s ease;
}
.crm-seg-chip:hover {
  background: var(--surface-card-hover, rgba(255, 255, 255, 0.05));
  color: var(--text-primary);
}
.crm-seg-chip.active {
  background: var(--brand-amber) !important;
  color: #080d1a !important;
  border-color: var(--brand-amber) !important;
  font-weight: 700 !important;
}
.crm-seg-chip .cnt {
  font-size: 11px;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.12);
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 700;
}
.crm-seg-chip.active .cnt {
  background: rgba(0, 0, 0, 0.2);
  color: #080d1a;
}

/* CRM Toolbar */
.crm-toolbar {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.crm-search-box {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.crm-search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}
.crm-search-box input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 12.5px;
  background: var(--bg-input);
  color: var(--text-primary);
}
.crm-toolbar select {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 12.5px;
  background: var(--bg-input);
  color: var(--text-primary);
}
.crm-search-box input:focus, .crm-toolbar select:focus {
  outline: none;
  border-color: var(--brand-amber);
  box-shadow: 0 0 0 3px rgba(250, 196, 11, 0.12);
}

/* CRM Table Card */
.crm-table-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
.crm-table-wrap {
  overflow-x: auto;
}
.crm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
.crm-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
}
.crm-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  vertical-align: middle;
}
.crm-table tbody tr {
  transition: background 0.15s ease;
}
.crm-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}
.crm-brand-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 220px;
}
.crm-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d5a36 0%, #174e36 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  border: 1.5px solid rgba(250, 196, 11, 0.3);
}
.crm-brand-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.25;
}
.crm-brand-cat {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.crm-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.35);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}
.crm-btn-wa:hover {
  background: #25D366;
  color: #080d1a;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.3);
}
.crm-btn-pitch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(156, 140, 255, 0.12);
  color: var(--ai-accent);
  border: 1px solid rgba(156, 140, 255, 0.35);
  cursor: pointer;
  transition: all 0.18s ease;
}
.crm-btn-pitch:hover {
  background: var(--ai-accent);
  color: #080d1a;
  box-shadow: 0 0 12px rgba(156, 140, 255, 0.3);
}

/* Light Theme Overrides for Standard CRM */
html[data-theme="light"] .crm-kpi {
  background: #FFFFFF !important;
  border-color: rgba(13, 26, 43, 0.1) !important;
  box-shadow: 0 1px 3px rgba(13, 26, 43, 0.05) !important;
}
html[data-theme="light"] .crm-kpi-val {
  color: #0D1A2B !important;
}
html[data-theme="light"] .crm-segments .crm-seg-chip {
  background: #FFFFFF !important;
  border-color: rgba(13, 26, 43, 0.12) !important;
  color: #4A5568 !important;
}
html[data-theme="light"] .crm-segments .crm-seg-chip:hover {
  background: #F1F5F9 !important;
  color: #0D1A2B !important;
}
html[data-theme="light"] .crm-segments .crm-seg-chip.active {
  background: #FAC40B !important;
  color: #0D1A2B !important;
  border-color: #FAC40B !important;
}
html[data-theme="light"] .crm-toolbar {
  background: #FFFFFF !important;
  border-color: rgba(13, 26, 43, 0.1) !important;
  box-shadow: 0 1px 3px rgba(13, 26, 43, 0.05) !important;
}
html[data-theme="light"] .crm-table-card {
  background: #FFFFFF !important;
  border-color: rgba(13, 26, 43, 0.1) !important;
  box-shadow: 0 1px 3px rgba(13, 26, 43, 0.05) !important;
}
html[data-theme="light"] .crm-table th {
  background: #F8FAFC !important;
  color: #4A5568 !important;
  border-bottom-color: rgba(13, 26, 43, 0.1) !important;
}
html[data-theme="light"] .crm-table td {
  color: #0D1A2B !important;
  border-bottom-color: rgba(13, 26, 43, 0.06) !important;
}
html[data-theme="light"] .crm-table tbody tr:hover td {
  background: #F8FAFC !important;
}
html[data-theme="light"] .crm-brand-name {
  color: #0D1A2B !important;
}





