:root {
  --vo-shell-header-height: 48px;
  --vo-radius-sm: 4px;
  --vo-radius-md: 6px;
  --vo-radius-lg: 10px;
  --vo-color-primary: #1d4ed8;
  --vo-color-primary-hover: #1e40af;
  --vo-color-primary-contrast: #ffffff;
  --vo-color-secondary: #0f172a;
  --vo-color-header-bg: #0b1120;
  --vo-color-accent: #0284c7;
  --vo-color-bg-canvas: #f1f5f9;
  --vo-color-bg-surface: #ffffff;
  --vo-color-bg-elevated: #f8fafc;
  --vo-color-text-primary: #0f172a;
  --vo-color-text-secondary: #334155;
  --vo-color-text-muted: #64748b;
  --vo-color-border-subtle: #e2e8f0;
  --vo-color-border-strong: #cbd5e1;
  --vo-color-success: #15803d;
  --vo-color-warning: #b45309;
  --vo-color-danger: #b91c1c;
  --vo-color-focus-ring: #2563eb;
  --vo-font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --vo-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --vo-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --vo-brand-logo-primary-url: none;
  --vo-brand-logo-mark-url: none;
}

.vo-skip-link {
  position: absolute;
  left: -9999px;
  top: 4px;
  z-index: 2000;
  background: var(--vo-color-primary);
  color: var(--vo-color-primary-contrast);
  padding: 8px 12px;
  border-radius: var(--vo-radius-sm);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.vo-skip-link:focus {
  left: 8px;
  outline: 2px solid var(--vo-color-focus-ring);
}

vo-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--vo-shell-header-height);
  height: var(--vo-shell-header-height);
  padding: 0 18px;
  background: var(--vo-color-header-bg);
  color: #f8fafc;
  font-family: var(--vo-font-body);
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 1000;
  grid-column: 1 / -1;
  box-sizing: border-box;
  gap: 16px;
}

body:has(> vo-shell-header) .sidebar {
  top: var(--vo-shell-header-height);
}

.vo-shell-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.vo-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.vo-shell-brand:hover {
  color: #e2e8f0;
}

.vo-shell-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.vo-shell-brand-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  background: #1e293b;
  color: #93c5fd;
  border: 1px solid #334155;
}

.vo-shell-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.vo-shell-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 6px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.vo-shell-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.vo-shell-nav-link--active {
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.vo-shell-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.vo-shell-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  font-family: var(--vo-font-body);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
}

.vo-shell-search-btn:hover {
  background: #334155;
  color: #ffffff;
}

.vo-shell-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
  font-size: 11px;
  font-weight: 600;
}

.vo-shell-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

.vo-shell-org-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  font-size: 11.5px;
  font-weight: 600;
}

/* Central Operations Main Entry Screen */
body.vo-central-body {
  margin: 0;
  background: var(--vo-color-bg-canvas);
  color: var(--vo-color-text-primary);
  font-family: var(--vo-font-body);
  -webkit-font-smoothing: antialiased;
}

.vo-central-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  box-sizing: border-box;
}

.vo-central-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 18px 22px;
  border-radius: var(--vo-radius-lg);
  border: 1px solid #334155;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.vo-central-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #60a5fa;
  margin: 0 0 4px;
}

.vo-central-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: #ffffff;
}

.vo-central-subtitle {
  font-size: 12.5px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.45;
}

.vo-central-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 430px;
}

.vo-posture-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.vo-posture-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.vo-posture-badge--ok {
  background: rgba(21, 128, 61, 0.24);
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.35);
}

.vo-central-search-form {
  display: flex;
  width: 100%;
  gap: 8px;
}

.vo-central-search-input {
  flex: 1;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid #475569;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 12px;
  font-family: var(--vo-font-body);
}

.vo-central-search-input::placeholder {
  color: #94a3b8;
}

.vo-central-search-input:focus {
  outline: 2px solid #60a5fa;
  border-color: transparent;
}

.vo-central-search-submit {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid #3b82f6;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.vo-central-search-results {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: var(--vo-radius-md);
  background: #ffffff;
  border: 1px solid #bfdbfe;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.vo-central-search-results[hidden] {
  display: none;
}

.vo-search-hit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e3a8a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #bfdbfe;
}

/* Row 1: Executive KPI Strip */
.vo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.vo-kpi-card {
  background: var(--vo-color-bg-surface);
  border: 1px solid var(--vo-color-border-subtle);
  border-radius: var(--vo-radius-md);
  padding: 11px 13px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.vo-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.vo-kpi-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vo-color-text-muted);
}

.vo-kpi-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
}

.vo-kpi-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--vo-color-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}

.vo-kpi-meta {
  font-size: 11px;
  color: var(--vo-color-text-secondary);
  line-height: 1.35;
}

/* Row 2: Unified Module Launchpad Grid */
.vo-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.vo-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vo-color-text-secondary);
  margin: 0;
}

.vo-section-caption {
  font-size: 11.5px;
  color: var(--vo-color-text-muted);
}

.vo-launchpad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.vo-module-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--vo-color-bg-surface);
  border: 1px solid var(--vo-color-border-subtle);
  border-radius: var(--vo-radius-lg);
  padding: 13px 15px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vo-module-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.08);
}

.vo-module-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.vo-module-title-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.vo-module-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: #1d4ed8;
}

.vo-module-icon--books { background: #0f766e; }
.vo-module-icon--projects { background: #4338ca; }
.vo-module-icon--marketing { background: #0369a1; }
.vo-module-icon--sign { background: #15803d; }
.vo-module-icon--contracts { background: #475569; }

.vo-module-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--vo-color-text-primary);
  margin: 0;
}

.vo-module-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
}

.vo-module-status--gated {
  background: #fef3c7;
  color: #92400e;
}

.vo-module-desc {
  font-size: 11.5px;
  color: var(--vo-color-text-secondary);
  margin: 0 0 9px;
  line-height: 1.4;
}

.vo-module-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--vo-color-border-subtle);
  font-size: 11px;
  color: var(--vo-color-text-muted);
}

.vo-module-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--vo-color-primary);
  font-weight: 700;
  font-size: 11.5px;
  text-decoration: none;
}

.vo-module-cta:hover {
  text-decoration: underline;
}

/* Row 3: Two-Column Live Operations Center */
.vo-ops-columns {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
}

.vo-ops-panel {
  background: var(--vo-color-bg-surface);
  border: 1px solid var(--vo-color-border-subtle);
  border-radius: var(--vo-radius-lg);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

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

.vo-ops-panel-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--vo-color-text-primary);
  margin: 0;
}

.vo-ops-panel-sub {
  font-size: 11px;
  color: var(--vo-color-text-muted);
}

.vo-l2c-chain {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 11px;
}

.vo-l2c-step {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #16a34a;
  border-radius: 5px;
  padding: 5px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
}

.vo-relay-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.vo-relay-table th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vo-color-text-muted);
  padding: 6px 8px;
  border-bottom: 1px solid var(--vo-color-border-subtle);
}

.vo-relay-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--vo-color-text-secondary);
}

.vo-relay-code {
  font-family: var(--vo-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
}

.vo-badge-ok {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
}

.vo-action-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.vo-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid var(--vo-color-border-subtle);
  font-size: 11.5px;
}

.vo-action-item-title {
  font-weight: 600;
  color: var(--vo-color-text-primary);
  display: block;
}

.vo-action-item-meta {
  font-size: 10.5px;
  color: var(--vo-color-text-muted);
}

.vo-action-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--vo-color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.vo-posture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--vo-color-border-subtle);
  font-size: 10.5px;
  color: var(--vo-color-text-secondary);
}

@media (max-width: 1100px) {
  .vo-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vo-launchpad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vo-ops-columns { grid-template-columns: 1fr; }
}

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