:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #667085;
  --line: #d9e0ea;
  --panel: #ffffff;
  --surface: #f6f8fb;
  --nav: #111827;
  --nav-soft: #1f2937;
  --green: #0f766e;
  --blue: #2563eb;
  --red: #b42318;
  --amber: #b54708;
  --violet: #6941c6;
  --shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
}

.cmd-predictive-panel {
  display: grid;
  gap: 1rem;
}

.cmd-predictive-updated {
  color: var(--jas-text-muted);
  font-size: 0.78rem;
}

.cmd-predictive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.cmd-predictive-card {
  border: 1px solid var(--jas-border);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  display: grid;
  gap: 0.35rem;
}

.cmd-predictive-card h3 {
  margin: 0;
  font-size: 0.82rem;
}

.cmd-predictive-card p {
  margin: 0;
  font-size: 0.83rem;
}

.cmd-predictive-card small {
  font-size: 0.75rem;
  color: var(--jas-text-muted);
}

.cmd-predictive-card.low {
  border-left: 3px solid #16a34a;
}

.cmd-predictive-card.medium {
  border-left: 3px solid #d97706;
}

.cmd-predictive-card.high {
  border-left: 3px solid #dc2626;
}

.cmd-predictive-card.critical {
  border-left: 3px solid #7f1d1d;
}

.cmd-predictive-state {
  padding: 0.75rem;
  border-radius: 0.7rem;
  border: 1px dashed var(--jas-border);
  color: var(--jas-text-muted);
}

.cmd-predictive-state.error {
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.35);
}

/* Final cinematic enterprise UX refinement layer. */
:root {
  color-scheme: light;
  --jas-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --jas-text-950: #0b1220;
  --jas-text-900: #111827;
  --jas-text-700: #334155;
  --jas-text-500: #64748b;
  --jas-surface-0: #ffffff;
  --jas-surface-50: #f8fafc;
  --jas-surface-100: #eef4f6;
  --jas-surface-900: #101828;
  --jas-line-soft: rgba(15, 23, 42, 0.1);
  --jas-line-strong: rgba(15, 23, 42, 0.18);
  --jas-teal: #0f766e;
  --jas-teal-soft: #e6f4f1;
  --jas-blue: #2563eb;
  --jas-blue-soft: #e8f1ff;
  --jas-amber: #b54708;
  --jas-amber-soft: #fff4df;
  --jas-red: #b42318;
  --jas-red-soft: #ffebe9;
  --jas-violet: #6941c6;
  --jas-violet-soft: #f3edff;
  --jas-gold: #f4c542;
  --jas-space-1: 4px;
  --jas-space-2: 8px;
  --jas-space-3: 12px;
  --jas-space-4: 16px;
  --jas-space-5: 20px;
  --jas-space-6: 24px;
  --jas-space-8: 32px;
  --jas-radius-sm: 6px;
  --jas-radius-md: 8px;
  --jas-radius-lg: 12px;
  --jas-shadow-card: 0 16px 40px rgba(15, 23, 42, 0.08);
  --jas-shadow-lift: 0 26px 64px rgba(15, 23, 42, 0.13);
  --jas-shadow-focus: 0 0 0 4px rgba(37, 99, 235, 0.14);
  --jas-motion-fast: 140ms ease;
  --jas-motion-med: 220ms ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--jas-font-sans);
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef4f6 54%, #f8fafc 100%);
  color: var(--jas-text-900);
}

.platform-shell,
.cmd-dashboard,
.enterprise-onboarding-page,
.figma-client-portal,
.billing-module,
.org-settings-page {
  --platform-bg: var(--jas-surface-100);
  --platform-panel: var(--jas-surface-0);
  --platform-panel-strong: var(--jas-surface-50);
  --platform-sidebar: #0b1220;
  --platform-sidebar-soft: rgba(255, 255, 255, 0.08);
  --platform-text: var(--jas-text-950);
  --platform-muted: var(--jas-text-500);
  --platform-border: var(--jas-line-soft);
  --platform-shadow: var(--jas-shadow-card);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), transparent 34%),
    linear-gradient(225deg, rgba(15, 118, 110, 0.08), transparent 38%),
    var(--platform-bg);
}

.cmd-dashboard {
  --cmd-bg: var(--jas-surface-100);
  --cmd-panel: var(--jas-surface-0);
  --cmd-soft: var(--jas-surface-50);
  --cmd-sidebar: #0b1220;
  --cmd-text: var(--jas-text-950);
  --cmd-muted: var(--jas-text-500);
  --cmd-border: var(--jas-line-soft);
  --cmd-red: var(--jas-red);
  --cmd-amber: var(--jas-amber);
  --cmd-green: var(--jas-teal);
  --cmd-blue: var(--jas-blue);
}

.platform-shell-sidebar,
.cmd-sidebar,
.onboarding-rail {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%),
    #0b1220;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.platform-shell-brand span,
.cmd-brand span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, var(--jas-gold), #ffe58f);
  box-shadow: 0 12px 24px rgba(244, 197, 66, 0.22);
}

.platform-shell-side-link,
.cmd-nav a,
.platform-shell-top-link,
.platform-shell-bell,
.platform-shell-role-select,
.tenant-switcher select,
.platform-shell-search,
.cmd-search,
.cmd-top-actions button,
.site-header-action,
.platform-shell-user-pill,
.ai-action-row button {
  transition:
    border-color var(--jas-motion-fast),
    background var(--jas-motion-fast),
    box-shadow var(--jas-motion-fast),
    color var(--jas-motion-fast),
    transform var(--jas-motion-fast);
}

.platform-shell-side-link:hover,
.platform-shell-side-link.active,
.cmd-nav a:hover,
.cmd-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.platform-shell-side-link.active,
.cmd-nav a.active {
  transform: translateX(2px);
}

.platform-shell-topbar,
.cmd-topbar {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px) saturate(140%);
}

.platform-shell-search:focus-within,
.cmd-search:focus-within,
.tenant-switcher select:focus,
.platform-shell-role-select:focus,
.onboarding-form-grid input:focus {
  outline: 0;
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: var(--jas-shadow-focus);
}

.tenant-switcher {
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr);
}

.tenant-switcher label {
  font-weight: 850;
}

.tenant-switcher select {
  min-height: 42px;
  border-color: var(--jas-line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  font-weight: 800;
}

.platform-shell-hero h1,
.platform-shell-landing-title-row h1,
.cmd-hero h1,
.onboarding-cinematic-hero h1 {
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: 0;
}

.platform-shell-hero p,
.platform-shell-landing-hero p,
.cmd-hero p,
.onboarding-cinematic-hero p {
  font-size: 17px;
  line-height: 1.66;
}

.platform-shell-kicker,
.cmd-kicker {
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
  background: rgba(230, 244, 241, 0.92);
}

.cmd-kicker {
  border-color: rgba(180, 35, 24, 0.14);
  background: rgba(255, 235, 233, 0.92);
}

.platform-shell-status-panel div,
.platform-shell-workspace,
.platform-shell-notification-center,
.platform-shell-module-card,
.platform-shell-landing-status,
.platform-shell-landing-metric,
.platform-shell-landing-card,
.platform-shell-landing-flow,
.cmd-architecture-card,
.cmd-panel,
.cmd-kpi-card,
.ai-recommendations-panel,
.ai-insight-card,
.dispatch-optimization-panel,
.dispatch-optimization-card,
.maintenance-profit-panel,
.maintenance-profit-card,
.billing-hero > div,
.billing-hero > aside,
.billing-panel,
.billing-kpi-grid article,
.billing-plan-card,
.onboarding-cinematic-hero > div,
.onboarding-cinematic-hero > aside,
.onboarding-panel,
.onboarding-score-card,
.onboarding-check-item,
.tenant-settings-panel,
.tenant-isolation-strip article,
.jas-map-panel,
.figma-client-kpi-card,
.figma-spend-card,
.figma-live-order-card,
.figma-alerts-panel,
.figma-client-ai,
.figma-client-status {
  border-color: var(--jas-line-soft);
  border-radius: var(--jas-radius-lg);
  box-shadow: var(--jas-shadow-card);
}

.platform-shell-module-card,
.cmd-kpi-card,
.cmd-alert-item,
.ai-insight-card,
.dispatch-optimization-card,
.maintenance-profit-card,
.billing-plan-card,
.onboarding-check-item,
.figma-client-kpi-card,
.figma-client-quick-action {
  position: relative;
  overflow: hidden;
}

.platform-shell-module-card::before,
.cmd-kpi-card::before,
.ai-insight-card::before,
.dispatch-optimization-card::before,
.maintenance-profit-card::before,
.billing-plan-card::before,
.onboarding-check-item::before,
.figma-client-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--jas-teal), var(--jas-blue), var(--jas-gold));
  opacity: 0.9;
}

.platform-shell-module-card:hover,
.cmd-kpi-card:hover,
.cmd-alert-item:hover,
.ai-insight-card:hover,
.dispatch-optimization-card:hover,
.maintenance-profit-card:hover,
.billing-plan-card:hover,
.onboarding-check-item:hover,
.figma-client-kpi-card:hover,
.figma-client-quick-action:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--jas-shadow-lift);
  transform: translateY(-2px);
}

.platform-shell-module-card,
.cmd-kpi-card,
.cmd-alert-item,
.ai-insight-card,
.dispatch-optimization-card,
.maintenance-profit-card,
.billing-plan-card,
.onboarding-check-item,
.figma-client-kpi-card,
.figma-client-quick-action {
  transition:
    transform var(--jas-motion-med),
    box-shadow var(--jas-motion-med),
    border-color var(--jas-motion-med);
}

.platform-shell-status-panel strong,
.platform-shell-landing-status strong,
.platform-shell-landing-metric strong,
.cmd-kpi-card strong,
.billing-kpi-grid strong,
.onboarding-score-card strong,
.figma-client-kpi-card strong {
  color: var(--jas-text-950);
  font-weight: 900;
  letter-spacing: 0;
}

.platform-shell-empty-state,
.live-data-state.empty,
.outbox-history-empty,
.incident-drilldown-empty {
  border-color: rgba(37, 99, 235, 0.18);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(15, 118, 110, 0.05)),
    var(--jas-surface-50);
}

.live-skeleton {
  gap: var(--jas-space-3);
  padding: var(--jas-space-4);
  border: 1px solid var(--jas-line-soft);
  border-radius: var(--jas-radius-lg);
  background: rgba(255, 255, 255, 0.68);
}

.live-skeleton span {
  height: 16px;
  background:
    linear-gradient(90deg, #e2e8f0 0%, #ffffff 48%, #e2e8f0 100%);
  background-size: 240% 100%;
}

.realtime-banner {
  border-radius: var(--jas-radius-lg);
  box-shadow: 0 14px 32px rgba(180, 83, 9, 0.1);
}

.realtime-status-badge.connected span,
.jas-map-dot.online {
  animation: realtime-pulse 1.6s ease-in-out infinite;
}

.platform-shell-bell strong {
  animation: notification-pop 2.8s ease-in-out infinite;
}

@keyframes notification-pop {
  0%, 80%, 100% { transform: scale(1); }
  88% { transform: scale(1.12); }
}

.cmd-alert-item.critical,
.cmd-alert-item.high,
.cmd-kpi-card.critical {
  animation: operational-attention 3.4s ease-in-out infinite;
}

@keyframes operational-attention {
  0%, 100% { box-shadow: var(--jas-shadow-card); }
  50% { box-shadow: 0 20px 50px rgba(180, 35, 24, 0.14); }
}

.jas-map-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
}

.jas-static-map,
.cmd-map-placeholder {
  border-color: rgba(15, 23, 42, 0.12);
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #f8fafc 0%, #eef6ff 38%, #eaf7f2 72%, #fff8e1 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

.jas-static-map::after,
.cmd-map-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.34) 46%, transparent 100%);
  mix-blend-mode: screen;
}

.jas-map-route-line {
  height: 3px;
  background: linear-gradient(90deg, var(--jas-blue), var(--jas-teal));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.jas-map-dot {
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.12);
}

.jas-map-dot.lost {
  box-shadow: 0 0 0 8px rgba(180, 35, 24, 0.14);
}

.cmd-map-zone {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.billing-hero > div,
.onboarding-cinematic-hero > div,
.platform-shell-hero,
.cmd-hero {
  position: relative;
}

.billing-hero > div::after,
.onboarding-cinematic-hero > div::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--jas-gold), var(--jas-teal));
}

.billing-meter,
.onboarding-progress-track {
  height: 12px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  background: #e6edf2;
}

.billing-meter span,
.onboarding-progress-track span {
  background: linear-gradient(90deg, var(--jas-violet), var(--jas-blue), var(--jas-teal));
}

.figma-client-portal {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 30%),
    linear-gradient(225deg, rgba(37, 99, 235, 0.08), transparent 34%),
    #f4f8fb;
}

.figma-client-topbar,
.figma-client-ai,
.figma-client-status {
  box-shadow: var(--jas-shadow-card);
}

.figma-client-quick-action {
  min-height: 58px;
}

.site-header,
.figma-client-topbar {
  backdrop-filter: blur(18px) saturate(140%);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light dark;
  }

  .platform-shell[data-theme-ready="true"],
  .cmd-dashboard,
  .enterprise-onboarding-page[data-theme-ready="true"],
  .billing-module[data-theme-ready="true"] {
    --platform-bg: #0b1220;
    --platform-panel: #111827;
    --platform-panel-strong: #0f172a;
    --platform-text: #f8fafc;
    --platform-muted: #cbd5e1;
    --platform-border: rgba(255, 255, 255, 0.1);
    --cmd-bg: #0b1220;
    --cmd-panel: #111827;
    --cmd-soft: #0f172a;
    --cmd-text: #f8fafc;
    --cmd-muted: #cbd5e1;
    --cmd-border: rgba(255, 255, 255, 0.1);
  }

  .platform-shell[data-theme-ready="true"] .platform-shell-topbar,
  .cmd-dashboard .cmd-topbar {
    background: rgba(11, 18, 32, 0.82);
  }
}

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

@media (max-width: 1180px) {
  .platform-shell-hero h1,
  .platform-shell-landing-title-row h1,
  .cmd-hero h1,
  .onboarding-cinematic-hero h1 {
    font-size: 42px;
  }

  .platform-shell-module-grid,
  .ai-insight-grid,
  .dispatch-optimization-grid,
  .maintenance-profit-grid,
  .cmd-kpi-grid,
  .billing-kpi-grid,
  .onboarding-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .platform-shell-hero h1,
  .platform-shell-landing-title-row h1,
  .cmd-hero h1,
  .onboarding-cinematic-hero h1 {
    font-size: 34px;
  }

  .platform-shell-topbar,
  .cmd-topbar {
    top: 0;
  }

  .platform-shell-side-nav,
  .cmd-nav {
    grid-template-columns: 1fr;
  }

  .platform-shell-module-grid,
  .ai-insight-grid,
  .dispatch-optimization-grid,
  .maintenance-profit-grid,
  .cmd-kpi-grid,
  .billing-kpi-grid,
  .billing-plan-grid,
  .onboarding-checklist,
  .tenant-isolation-strip,
  .figma-client-kpis {
    grid-template-columns: 1fr;
  }

  .platform-shell-top-link,
  .platform-shell-user-pill,
  .site-header-action,
  .cmd-top-actions button,
  .ai-action-row button,
  .figma-client-quick-action {
    min-height: 44px;
  }

  .jas-static-map,
  .cmd-map-placeholder {
    min-height: 360px;
  }
}

.tenant-switcher {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(160px, 1fr);
  gap: 8px;
  align-items: end;
}

.tenant-switcher label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.tenant-switcher select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.tenant-isolation-strip,
.tenant-settings-grid {
  display: grid;
  gap: 12px;
}

.tenant-isolation-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
}

.tenant-isolation-strip article,
.tenant-settings-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 14px;
}

.tenant-isolation-strip span,
.tenant-rule-list span,
.tenant-workspace-row span,
.tenant-workspace-row small,
.tenant-branding-preview small {
  color: var(--muted);
}

.tenant-isolation-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.tenant-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 24px;
}

.tenant-workspace-list,
.tenant-rule-list {
  display: grid;
  gap: 10px;
}

.tenant-workspace-row {
  display: grid;
  grid-template-columns: 92px 1fr 76px;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px;
  text-align: left;
}

.tenant-workspace-row.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue), transparent 60%);
}

.tenant-rule-list div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.tenant-branding-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.tenant-branding-preview > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 800;
}

@media (max-width: 900px) {
  .tenant-switcher,
  .tenant-isolation-strip,
  .tenant-settings-grid,
  .tenant-workspace-row {
    grid-template-columns: 1fr;
  }
}

.live-data-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) minmax(150px, 190px) auto auto auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.live-data-toolbar div,
.live-data-toolbar label {
  display: grid;
  gap: 4px;
}

.live-data-toolbar span,
.live-data-toolbar small {
  color: #64748b;
  font-size: 12px;
}

.live-data-toolbar strong {
  color: #0f172a;
  font-size: 14px;
}

.live-data-toolbar input,
.live-data-toolbar select {
  min-height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #0f172a;
}

.live-data-toolbar button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
}

.live-data-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 12px;
  background: #e2e8f0;
  color: #0f172a !important;
  font-weight: 700;
}

.realtime-status-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  padding: 0 10px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.realtime-status-badge span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
}

.realtime-status-badge.connected {
  background: #dcfce7;
  color: #166534;
}

.realtime-status-badge.connected span {
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16);
  animation: realtime-pulse 1.6s ease-in-out infinite;
}

.realtime-status-badge.connecting,
.realtime-status-badge.reconnecting,
.realtime-status-badge.degraded {
  background: #fef3c7;
  color: #92400e;
}

.realtime-status-badge.disconnected {
  background: #fee2e2;
  color: #991b1b;
}

.realtime-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(180, 83, 9, 0.22);
  background: #fffbeb;
  color: #92400e;
}

.realtime-banner strong,
.realtime-banner span {
  font-size: 13px;
}

@keyframes realtime-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.78; }
}

.live-skeleton {
  display: grid;
  gap: 10px;
  margin: 10px 0 16px;
}

.live-skeleton span {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0, #f8fafc, #e2e8f0);
  background-size: 220% 100%;
  animation: live-skeleton-pulse 1.2s ease-in-out infinite;
}

.live-skeleton span:nth-child(2) {
  width: 72%;
}

.live-skeleton span:nth-child(3) {
  width: 46%;
}

.live-data-state {
  display: grid;
  gap: 4px;
  margin: 10px 0 16px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.live-data-state.error {
  border-color: rgba(185, 28, 28, 0.24);
  background: #fef2f2;
  color: #991b1b;
}

.live-data-state.empty {
  background: #f8fafc;
  color: #334155;
}

.jas-map-panel {
  margin: 18px 0;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.jas-map-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid #e6edf1;
}

.jas-map-panel-head span,
.jas-map-provider-card span,
.jas-map-marker-row span,
.jas-map-marker-row small,
.jas-static-map small {
  color: #667085;
}

.jas-map-panel-head span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.jas-map-panel-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.jas-map-panel-head strong,
.jas-map-provider-card strong {
  white-space: nowrap;
  color: #0f766e;
}

.jas-map-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) minmax(260px, 0.7fr);
  gap: 16px;
  padding: 16px;
}

.jas-static-map {
  position: relative;
  min-height: 310px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #f8fafc 0%, #eef4ff 42%, #ecfdf3 100%);
  background-size: 36px 36px, 36px 36px, auto;
}

.jas-map-route-line {
  position: absolute;
  inset: 20% 12% 24% 12%;
  border-top: 4px solid rgba(37, 99, 235, 0.35);
  border-right: 4px solid rgba(15, 118, 110, 0.35);
  border-radius: 52% 22% 48% 18%;
  transform: rotate(-5deg);
}

.jas-map-dot {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.18);
}

.jas-map-dot.online,
.jas-map-marker-row.online strong span {
  background: #0f766e;
}

.jas-map-dot.lost,
.jas-map-marker-row.lost strong span {
  background: #b42318;
}

.jas-map-dot.restored,
.jas-map-marker-row.restored strong span {
  background: #2563eb;
}

.jas-map-dot.pending,
.jas-map-marker-row.pending strong span {
  background: #b54708;
}

.jas-static-map small {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.jas-map-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.jas-map-provider-card,
.jas-map-marker-row {
  border: 1px solid #e6edf1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.jas-map-provider-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.jas-map-marker-list {
  display: grid;
  gap: 10px;
}

.jas-map-marker-row strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jas-map-marker-row strong span {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
}

.jas-map-marker-row > span,
.jas-map-marker-row small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.integration-panel {
  margin: 18px 0;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.integration-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid #e6edf1;
}

.integration-panel-head span {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.integration-panel-head h2,
.integration-panel-head p {
  margin: 0;
}

.integration-panel-head p {
  margin-top: 8px;
  color: #667085;
  line-height: 1.5;
}

.integration-panel-head strong {
  white-space: nowrap;
  color: #0f766e;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.integration-card {
  display: grid;
  gap: 10px;
  min-height: 176px;
  border: 1px solid #e6edf1;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.integration-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.integration-card div span {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}

.integration-card.ready div span {
  background: #ecfdf3;
  color: #0f766e;
}

.integration-card.retry div span {
  background: #fff4df;
  color: #b54708;
}

.integration-card.disabled div span {
  background: #eef4ff;
  color: #2563eb;
}

.integration-card p,
.integration-card small,
.integration-card em {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
}

@keyframes live-skeleton-pulse {
  0% { background-position: 0% 0; }
  100% { background-position: -220% 0; }
}

@media (max-width: 980px) {
  .live-data-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .jas-map-grid {
    grid-template-columns: 1fr;
  }

  .jas-map-panel-head {
    flex-direction: column;
  }

  .integration-grid {
    grid-template-columns: 1fr;
  }

  .integration-panel-head {
    flex-direction: column;
  }
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--bg, #f6f8fb);
}

.auth-panel {
  width: min(520px, 100%);
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.auth-panel h1 {
  margin: 6px 0 8px;
  font-size: 30px;
}

.auth-panel p {
  margin: 0;
  color: #667085;
}

.auth-runtime-url {
  margin-top: 10px !important;
  font-size: 13px;
  font-weight: 800;
  color: #344054 !important;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #344054;
}

.auth-form input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}

.auth-form button,
.platform-shell-user-pill {
  border: 0;
  border-radius: 8px;
  background: #101828;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.auth-form button {
  padding: 12px 16px;
}

.auth-form .auth-secondary-action {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: #101828;
}

.auth-message {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412 !important;
  font-weight: 700;
}

.platform-shell-user-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

.platform-shell-user-pill span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-shell-user-pill strong {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

.fms-module {
  --fms-accent: #0f766e;
  --fms-soft: #e7f2ef;
}

.fms-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(231, 242, 239, 0.86)),
    url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.fms-hero h1 {
  max-width: 900px;
  margin: 14px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.fms-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: #475467;
  line-height: 1.62;
}

.fms-live-card,
.fms-panel,
.fms-kpi-card,
.fms-transition-card,
.fms-maintenance-step,
.fms-role-rule {
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.fms-live-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 220px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.fms-live-card span,
.fms-live-card small,
.fms-kpi-card span,
.fms-kpi-card small,
.fms-panel-head span,
.fms-table span,
.fms-rule-list span,
.fms-transition-card p,
.fms-maintenance-step p,
.fms-maintenance-step small,
.fms-role-rule p {
  color: #667085;
}

.fms-live-card strong {
  color: #0f766e;
  font-size: 24px;
}

.fms-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.fms-kpi-card {
  min-height: 142px;
  padding: 18px;
}

.fms-kpi-card strong {
  display: block;
  margin: 14px 0 6px;
  font-size: 34px;
}

.fms-kpi-card.good strong {
  color: #0f766e;
}

.fms-kpi-card.warn strong,
.fms-kpi-card.attention strong {
  color: #b54708;
}

.fms-kpi-card.danger strong {
  color: #b42318;
}

.fms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 16px;
  margin-top: 16px;
}

.fms-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fms-panel {
  min-width: 0;
  padding: 18px;
}

.fms-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.fms-panel-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.fms-panel-head > strong {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--fms-soft);
  color: var(--fms-accent);
}

.fms-table-wrap {
  overflow-x: auto;
}

.fms-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.fms-table th {
  color: #667085;
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
}

.fms-table th,
.fms-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf1f5;
}

.fms-table td strong,
.fms-table td span {
  display: block;
}

.fms-vehicle-link {
  display: inline-flex;
  color: #0f766e;
  font-weight: 900;
  text-decoration: none;
}

.fms-vehicle-link:hover {
  text-decoration: underline;
}

.fms-state-badge,
.fms-mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.fms-state-badge {
  background: #eef4ff;
  color: #2563eb;
}

.fms-state-badge.available {
  background: #e7f2ef;
  color: #0f766e;
}

.fms-state-badge.tga-hold,
.fms-state-badge.grounded,
.fms-state-badge.decommissioned {
  background: #fef3f2;
  color: #b42318;
}

.fms-state-badge.maintenance,
.fms-state-badge.assigned,
.fms-state-badge.returning {
  background: #fff7ed;
  color: #b54708;
}

.fms-mini-pill {
  width: max-content;
  background: #f2f4f7;
  color: #344054;
}

.fms-rule-list {
  display: grid;
  gap: 10px;
}

.fms-rule-list article {
  padding: 14px;
  border-radius: 8px;
  background: #f8fafb;
}

.fms-rule-list strong,
.fms-rule-list span {
  display: block;
}

.fms-rule-list span {
  margin-top: 6px;
  line-height: 1.55;
}

.fms-transition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fms-transition-card {
  min-height: 128px;
  padding: 14px;
}

.fms-transition-card div {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.fms-transition-card p {
  margin: 12px 0 0;
  line-height: 1.5;
}

.fms-arrow {
  color: #98a2b3;
  font-weight: 900;
}

.fms-maintenance-timeline {
  display: grid;
  gap: 10px;
}

.fms-maintenance-step {
  display: grid;
  grid-template-columns: 84px minmax(120px, 0.5fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.fms-maintenance-step span,
.fms-maintenance-step strong,
.fms-maintenance-step small {
  font-size: 12px;
  font-weight: 900;
}

.fms-maintenance-step p {
  margin: 0;
}

.fms-maintenance-step small {
  grid-column: 2 / -1;
}

.fms-breakdown-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.fms-breakdown-list li {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8fafb;
  color: #475467;
  line-height: 1.55;
}

.fms-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fms-role-rule {
  padding: 16px;
}

.fms-role-rule strong {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
}

.fms-role-rule p {
  margin: 10px 0 0;
  line-height: 1.5;
}

.fms-role-rule p span {
  display: block;
  margin-bottom: 3px;
  color: #18212f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fms-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 18px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffffff, #eef8f5);
}

.fms-detail-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.fms-detail-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #475467;
  line-height: 1.62;
}

.fms-detail-state-card,
.fms-detail-stat,
.fms-api-route {
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.fms-detail-state-card {
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.fms-detail-state-card strong,
.fms-detail-state-card small {
  display: block;
}

.fms-detail-state-card small {
  color: #667085;
  line-height: 1.45;
}

.fms-detail-grid,
.fms-detail-compliance,
.fms-api-grid {
  display: grid;
  gap: 12px;
}

.fms-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.fms-detail-compliance {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fms-detail-stat {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
}

.fms-detail-stat span,
.fms-api-route span,
.fms-api-route small {
  color: #667085;
}

.fms-detail-stat span,
.fms-api-route span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fms-detail-stat strong {
  font-size: 18px;
}

.fms-breakdown-structure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fms-breakdown-structure span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  background: #f2f4f7;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.fms-api-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fms-api-route {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
}

.fms-api-route strong {
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.wms-module {
  --wms-accent: #067647;
  --wms-soft: #ecfdf3;
}

.wms-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(236, 253, 243, 0.86)),
    url("https://images.unsplash.com/photo-1553413077-190dd305871c?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.wms-hero h1 {
  max-width: 900px;
  margin: 14px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.wms-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: #475467;
  line-height: 1.62;
}

.wms-live-card,
.wms-panel,
.wms-kpi-card,
.wms-flow-card,
.wms-location-card {
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.wms-live-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 220px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.wms-live-card strong {
  color: var(--wms-accent);
  font-size: 24px;
}

.wms-live-card span,
.wms-live-card small,
.wms-kpi-card span,
.wms-kpi-card small,
.wms-panel-head span,
.wms-table span,
.wms-rule-list span,
.wms-flow-card p,
.wms-location-card span,
.wms-location-card small,
.wms-outbound-row span {
  color: #667085;
}

.wms-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.wms-kpi-card {
  min-height: 142px;
  padding: 18px;
}

.wms-kpi-card strong {
  display: block;
  margin: 14px 0 6px;
  font-size: 34px;
}

.wms-kpi-card.good strong {
  color: #067647;
}

.wms-kpi-card.warn strong,
.wms-kpi-card.attention strong {
  color: #b54708;
}

.wms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 16px;
  margin-top: 16px;
}

.wms-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wms-panel {
  min-width: 0;
  padding: 18px;
}

.wms-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.wms-panel-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.wms-panel-head > strong {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--wms-soft);
  color: var(--wms-accent);
}

.wms-table-wrap {
  overflow-x: auto;
}

.wms-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.wms-table th {
  color: #667085;
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
}

.wms-table th,
.wms-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf1f5;
}

.wms-table td strong,
.wms-table td span {
  display: block;
}

.wms-record-link {
  display: inline-flex;
  color: #067647;
  font-weight: 900;
  text-decoration: none;
}

.wms-record-link:hover {
  text-decoration: underline;
}

.wms-module-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px clamp(18px, 3vw, 36px) 0;
}

.wms-module-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.wms-module-nav a.active {
  background: #ecfdf3;
  color: #067647;
  border-color: #abefc6;
}

.wms-status-badge,
.wms-mini-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.wms-status-badge {
  background: #eef4ff;
  color: #2563eb;
}

.wms-status-badge.posted,
.wms-status-badge.approved,
.wms-status-badge.ready {
  background: #ecfdf3;
  color: #067647;
}

.wms-status-badge.variance-review,
.wms-status-badge.partial,
.wms-status-badge.inspection {
  background: #fff7ed;
  color: #b54708;
}

.wms-status-badge.cancelled,
.wms-status-badge.blocked {
  background: #fef3f2;
  color: #b42318;
}

.wms-mini-pill {
  background: #f2f4f7;
  color: #344054;
}

.wms-rule-list,
.wms-outbound-list {
  display: grid;
  gap: 10px;
}

.wms-rule-list article {
  padding: 14px;
  border-radius: 8px;
  background: #f8fafb;
}

.wms-rule-list strong,
.wms-rule-list span {
  display: block;
}

.wms-rule-list span {
  margin-top: 6px;
  line-height: 1.55;
}

.wms-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wms-flow-card {
  min-height: 128px;
  padding: 14px;
}

.wms-flow-card div {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.wms-flow-card p {
  margin: 12px 0 0;
  line-height: 1.5;
}

.wms-location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wms-location-card {
  min-height: 116px;
  padding: 14px;
}

.wms-location-card strong,
.wms-location-card span,
.wms-location-card small {
  display: block;
}

.wms-location-card span {
  margin: 10px 0;
}

.wms-outbound-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 90px 90px 110px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #f8fafb;
}

.wms-outbound-row strong,
.wms-outbound-row span {
  display: block;
}

.wms-page-head,
.wms-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 18px;
  align-items: stretch;
  padding: 26px clamp(18px, 3vw, 36px) 0;
}

.wms-page-head {
  grid-template-columns: 1fr;
}

.wms-page-head h1,
.wms-detail-hero h1 {
  max-width: 900px;
  margin: 14px 0 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.wms-page-head p,
.wms-detail-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: #475467;
  line-height: 1.62;
}

.wms-detail-state-card,
.wms-detail-stat,
.wms-capacity-card {
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.wms-detail-state-card {
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.wms-detail-state-card strong,
.wms-detail-state-card small,
.wms-detail-stat span,
.wms-detail-stat strong {
  display: block;
}

.wms-detail-state-card small,
.wms-detail-stat span,
.wms-capacity-card span,
.wms-capacity-card small {
  color: #667085;
}

.wms-detail-grid,
.wms-capacity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px clamp(18px, 3vw, 36px) 0;
}

.wms-detail-stat {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
}

.wms-detail-stat span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.wms-location-grid.page,
.wms-capacity-grid {
  padding-bottom: 16px;
}

.wms-location-grid.page {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px clamp(18px, 3vw, 36px) 0;
}

.wms-rule-list.guard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wms-capacity-card {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 18px;
}

.wms-capacity-card strong,
.wms-capacity-card span,
.wms-capacity-card small {
  display: block;
}

.wms-capacity-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.wms-capacity-bar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #067647, #2563eb);
}

.frems-module {
  --frems-accent: #c11574;
  --frems-soft: #fdf2fa;
}

.frems-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(253, 242, 250, 0.86)),
    url("https://images.unsplash.com/photo-1494412651409-8963ce7935a7?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.frems-hero h1 {
  max-width: 940px;
  margin: 14px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.frems-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: #475467;
  line-height: 1.62;
}

.frems-live-card,
.frems-panel,
.frems-kpi-card,
.frems-flow-card,
.frems-fallback-card {
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.frems-live-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 220px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.frems-live-card strong {
  color: var(--frems-accent);
  font-size: 24px;
}

.frems-live-card span,
.frems-live-card small,
.frems-kpi-card span,
.frems-kpi-card small,
.frems-panel-head span,
.frems-table span,
.frems-rule-list span,
.frems-flow-card p,
.frems-fallback-card span,
.frems-fallback-card small {
  color: #667085;
}

.frems-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.frems-kpi-card {
  min-height: 142px;
  padding: 18px;
}

.frems-kpi-card strong {
  display: block;
  margin: 14px 0 6px;
  font-size: 34px;
}

.frems-kpi-card.good strong {
  color: #067647;
}

.frems-kpi-card.warn strong,
.frems-kpi-card.attention strong {
  color: #b54708;
}

.frems-kpi-card.danger strong {
  color: #b42318;
}

.frems-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.frems-panel {
  min-width: 0;
  margin-top: 16px;
  padding: 18px;
}

.frems-grid .frems-panel {
  margin-top: 0;
}

.frems-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.frems-panel-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.frems-panel-head > strong {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--frems-soft);
  color: var(--frems-accent);
}

.frems-module-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px clamp(18px, 3vw, 36px);
  border-bottom: 1px solid #d9e1e5;
  background: rgba(255, 255, 255, 0.96);
}

.frems-module-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.frems-module-nav a.active {
  border-color: var(--frems-accent);
  background: var(--frems-soft);
  color: var(--frems-accent);
}

.frems-page-head,
.frems-detail-hero {
  margin-top: 16px;
  padding: 24px clamp(18px, 3vw, 36px);
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.frems-page-head h1,
.frems-detail-hero h1 {
  max-width: 920px;
  margin: 10px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.frems-page-head p,
.frems-detail-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #667085;
  line-height: 1.6;
}

.frems-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
}

.frems-detail-state-card,
.frems-detail-stat {
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.frems-detail-state-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  background: var(--frems-soft);
}

.frems-detail-state-card strong,
.frems-detail-state-card small {
  display: block;
}

.frems-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.frems-detail-stat {
  min-height: 118px;
  padding: 16px;
}

.frems-detail-stat span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.frems-detail-stat strong {
  display: block;
  margin-top: 14px;
  font-size: 22px;
}

.frems-table-wrap {
  overflow-x: auto;
}

.frems-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.frems-table th {
  color: #667085;
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
}

.frems-table th,
.frems-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf1f5;
}

.frems-table td strong,
.frems-table td span {
  display: block;
}

.frems-record-link {
  color: var(--frems-accent);
  font-weight: 900;
  text-decoration: none;
}

.frems-record-link:hover {
  text-decoration: underline;
}

.frems-status-badge,
.frems-mini-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.frems-status-badge {
  background: #eef4ff;
  color: #2563eb;
}

.frems-status-badge.carrier-assigned,
.frems-status-badge.cargo-ready,
.frems-status-badge.delivered,
.frems-status-badge.closed,
.frems-status-badge.customs-cleared {
  background: #ecfdf3;
  color: #067647;
}

.frems-status-badge.saber-blocked,
.frems-status-badge.customs-hold,
.frems-status-badge.customs-rejected {
  background: #fef3f2;
  color: #b42318;
}

.frems-status-badge.pending-customs,
.frems-status-badge.saber-check,
.frems-status-badge.in-transit {
  background: #fff7ed;
  color: #b54708;
}

.frems-mini-pill {
  background: #f2f4f7;
  color: #344054;
}

.frems-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.frems-flow-card {
  min-height: 128px;
  padding: 14px;
}

.frems-flow-card div {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.frems-flow-card p {
  margin: 12px 0 0;
  line-height: 1.5;
}

.frems-rule-list {
  display: grid;
  gap: 10px;
}

.frems-rule-list.guard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.frems-rule-list article {
  padding: 14px;
  border-radius: 8px;
  background: #f8fafb;
}

.frems-rule-list strong,
.frems-rule-list span {
  display: block;
}

.frems-rule-list span {
  margin-top: 6px;
  line-height: 1.55;
}

.frems-fallback-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.frems-fallback-grid.page {
  margin-top: 16px;
  padding-bottom: 16px;
}

.frems-fallback-card {
  min-height: 128px;
  padding: 14px;
}

.frems-fallback-card strong,
.frems-fallback-card span,
.frems-fallback-card small {
  display: block;
}

.frems-fallback-card strong {
  color: var(--frems-accent);
}

.frems-fallback-card span {
  margin: 10px 0;
}

.cli-module {
  --cli-accent: #2563eb;
  --cli-soft: #eff6ff;
}

.cli-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(239, 246, 255, 0.88)),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.cli-hero h1 {
  max-width: 980px;
  margin: 14px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.cli-hero p {
  max-width: 790px;
  margin: 16px 0 0;
  color: #475467;
  line-height: 1.62;
}

.cli-live-card,
.cli-panel,
.cli-kpi-card,
.cli-flow-card,
.cli-detail-state-card,
.cli-detail-grid article,
.cli-form-grid article,
.cli-compare-grid article {
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.cli-live-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 220px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.cli-live-card strong {
  color: var(--cli-accent);
  font-size: 24px;
}

.cli-live-card span,
.cli-live-card small,
.cli-kpi-card span,
.cli-kpi-card small,
.cli-panel-head span,
.cli-table span,
.cli-rule-list span,
.cli-rule-list small,
.cli-flow-card p,
.cli-detail-grid span,
.cli-form-grid span,
.cli-compare-grid span {
  color: #667085;
}

.cli-module-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px clamp(18px, 3vw, 36px);
  border-bottom: 1px solid #d9e1e5;
  background: rgba(255, 255, 255, 0.96);
}

.cli-module-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.cli-module-nav a.active {
  border-color: var(--cli-accent);
  background: var(--cli-soft);
  color: var(--cli-accent);
}

.cli-kpi-grid,
.cli-grid,
.cli-flow-grid,
.cli-detail-grid,
.cli-form-grid,
.cli-compare-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.cli-kpi-grid,
.cli-detail-grid,
.cli-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cli-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cli-flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cli-compare-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cli-kpi-card,
.cli-flow-card,
.cli-detail-grid article,
.cli-form-grid article,
.cli-compare-grid article {
  min-height: 128px;
  padding: 16px;
}

.cli-kpi-card strong {
  display: block;
  margin: 14px 0 6px;
  font-size: 34px;
}

.cli-kpi-card.good strong {
  color: #067647;
}

.cli-kpi-card.warn strong {
  color: #b54708;
}

.cli-kpi-card.danger strong {
  color: #b42318;
}

.cli-panel {
  min-width: 0;
  margin-top: 16px;
  padding: 18px;
}

.cli-grid .cli-panel {
  margin-top: 0;
}

.cli-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.cli-panel-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.cli-panel-head > strong {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--cli-soft);
  color: var(--cli-accent);
}

.cli-page-head,
.cli-detail-hero {
  margin-top: 16px;
  padding: 24px clamp(18px, 3vw, 36px);
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.cli-page-head h1,
.cli-detail-hero h1 {
  max-width: 920px;
  margin: 10px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.cli-page-head p,
.cli-detail-hero p {
  max-width: 780px;
  margin: 12px 0 0;
  color: #667085;
  line-height: 1.6;
}

.cli-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
}

.cli-detail-state-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  background: var(--cli-soft);
}

.cli-table-wrap {
  overflow-x: auto;
}

.cli-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.cli-table th {
  color: #667085;
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
}

.cli-table th,
.cli-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf1f5;
}

.cli-table td strong,
.cli-table td span,
.cli-detail-state-card strong,
.cli-detail-state-card small,
.cli-detail-grid strong,
.cli-detail-grid span,
.cli-form-grid strong,
.cli-form-grid span,
.cli-compare-grid strong,
.cli-compare-grid span {
  display: block;
}

.cli-record-link {
  color: var(--cli-accent);
  font-weight: 900;
  text-decoration: none;
}

.cli-record-link:hover {
  text-decoration: underline;
}

.cli-status-badge,
.cli-mini-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.cli-status-badge {
  background: #eef4ff;
  color: #2563eb;
}

.cli-status-badge.confirmed,
.cli-status-badge.completed,
.cli-status-badge.active,
.cli-status-badge.paid,
.cli-status-badge.resolved {
  background: #ecfdf3;
  color: #067647;
}

.cli-status-badge.submitted,
.cli-status-badge.credit-warning,
.cli-status-badge.amendment-pending,
.cli-status-badge.client-action-required,
.cli-status-badge.retry-requested {
  background: #fff7ed;
  color: #b54708;
}

.cli-status-badge.credit-blocked,
.cli-status-badge.closed,
.cli-status-badge.zatca-rejected {
  background: #fef3f2;
  color: #b42318;
}

.cli-mini-pill {
  background: #f2f4f7;
  color: #344054;
}

.cli-flow-card div {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.cli-flow-card p {
  margin: 12px 0 0;
  line-height: 1.5;
}

.cli-rule-list {
  display: grid;
  gap: 10px;
}

.cli-rule-list.guard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cli-rule-list article {
  padding: 14px;
  border-radius: 8px;
  background: #f8fafb;
}

.cli-rule-list strong,
.cli-rule-list span,
.cli-rule-list small {
  display: block;
}

.cli-rule-list span {
  margin-top: 6px;
  line-height: 1.55;
}

.cli-rule-list small {
  margin-top: 8px;
  font-weight: 800;
}

.scp-module {
  --scp-accent: #7a2e0e;
  --scp-soft: #fff7ed;
}

.scp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(255, 247, 237, 0.88)),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.scp-hero h1 {
  max-width: 980px;
  margin: 14px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.scp-hero p {
  max-width: 790px;
  margin: 16px 0 0;
  color: #475467;
  line-height: 1.62;
}

.scp-live-card,
.scp-panel,
.scp-kpi-card,
.scp-flow-card,
.scp-detail-state-card,
.scp-detail-grid article,
.scp-form-grid article {
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.scp-live-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 220px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.scp-live-card strong {
  color: var(--scp-accent);
  font-size: 24px;
}

.scp-live-card span,
.scp-live-card small,
.scp-kpi-card span,
.scp-kpi-card small,
.scp-panel-head span,
.scp-table span,
.scp-rule-list span,
.scp-rule-list small,
.scp-flow-card p,
.scp-detail-grid span,
.scp-form-grid span {
  color: #667085;
}

.scp-module-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px clamp(18px, 3vw, 36px);
  border-bottom: 1px solid #d9e1e5;
  background: rgba(255, 255, 255, 0.96);
}

.scp-module-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.scp-module-nav a.active {
  border-color: var(--scp-accent);
  background: var(--scp-soft);
  color: var(--scp-accent);
}

.scp-kpi-grid,
.scp-grid,
.scp-flow-grid,
.scp-detail-grid,
.scp-form-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.scp-kpi-grid,
.scp-detail-grid,
.scp-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scp-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scp-flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scp-kpi-card,
.scp-flow-card,
.scp-detail-grid article,
.scp-form-grid article {
  min-height: 128px;
  padding: 16px;
}

.scp-kpi-card strong {
  display: block;
  margin: 14px 0 6px;
  font-size: 34px;
}

.scp-kpi-card.good strong {
  color: #067647;
}

.scp-kpi-card.warn strong {
  color: #b54708;
}

.scp-kpi-card.danger strong {
  color: #b42318;
}

.scp-panel {
  min-width: 0;
  margin-top: 16px;
  padding: 18px;
}

.scp-grid .scp-panel {
  margin-top: 0;
}

.scp-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.scp-panel-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.scp-panel-head > strong {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--scp-soft);
  color: var(--scp-accent);
}

.scp-page-head,
.scp-detail-hero {
  margin-top: 16px;
  padding: 24px clamp(18px, 3vw, 36px);
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.scp-page-head h1,
.scp-detail-hero h1 {
  max-width: 920px;
  margin: 10px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.scp-page-head p,
.scp-detail-hero p {
  max-width: 780px;
  margin: 12px 0 0;
  color: #667085;
  line-height: 1.6;
}

.scp-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
}

.scp-detail-state-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  background: var(--scp-soft);
}

.scp-table-wrap {
  overflow-x: auto;
}

.scp-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.scp-table th {
  color: #667085;
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
}

.scp-table th,
.scp-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf1f5;
}

.scp-table td strong,
.scp-table td span,
.scp-detail-state-card strong,
.scp-detail-state-card small,
.scp-detail-grid strong,
.scp-detail-grid span,
.scp-form-grid strong,
.scp-form-grid span {
  display: block;
}

.scp-record-link {
  color: var(--scp-accent);
  font-weight: 900;
  text-decoration: none;
}

.scp-record-link:hover {
  text-decoration: underline;
}

.scp-status-badge,
.scp-mini-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.scp-status-badge {
  background: #eef4ff;
  color: #2563eb;
}

.scp-status-badge.active,
.scp-status-badge.valid,
.scp-status-badge.gold,
.scp-status-badge.approved {
  background: #ecfdf3;
  color: #067647;
}

.scp-status-badge.probation,
.scp-status-badge.expiry-warning,
.scp-status-badge.suspension-pending,
.scp-status-badge.approved-for-next-billing {
  background: #fff7ed;
  color: #b54708;
}

.scp-status-badge.expired,
.scp-status-badge.suspended,
.scp-status-badge.deactivated {
  background: #fef3f2;
  color: #b42318;
}

.scp-mini-pill {
  background: #f2f4f7;
  color: #344054;
}

.scp-flow-card div {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.scp-flow-card p {
  margin: 12px 0 0;
  line-height: 1.5;
}

.scp-rule-list {
  display: grid;
  gap: 10px;
}

.scp-rule-list.guard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scp-rule-list article {
  padding: 14px;
  border-radius: 8px;
  background: #f8fafb;
}

.scp-rule-list strong,
.scp-rule-list span,
.scp-rule-list small {
  display: block;
}

.scp-rule-list span {
  margin-top: 6px;
  line-height: 1.55;
}

.scp-rule-list small {
  margin-top: 8px;
  font-weight: 800;
}

.drv-module {
  --drv-accent: #0e7490;
  --drv-soft: #ecfeff;
}

.drv-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(236, 254, 255, 0.88)),
    url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.drv-hero h1 {
  max-width: 980px;
  margin: 14px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.drv-hero p {
  max-width: 790px;
  margin: 16px 0 0;
  color: #475467;
  line-height: 1.62;
}

.drv-live-card,
.drv-panel,
.drv-kpi-card,
.drv-flow-card,
.drv-detail-state-card,
.drv-detail-grid article {
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.drv-live-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 220px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.drv-live-card strong {
  color: var(--drv-accent);
  font-size: 24px;
}

.drv-live-card span,
.drv-live-card small,
.drv-kpi-card span,
.drv-kpi-card small,
.drv-panel-head span,
.drv-table span,
.drv-rule-list span,
.drv-rule-list small,
.drv-flow-card p,
.drv-detail-grid span {
  color: #667085;
}

.drv-module-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px clamp(18px, 3vw, 36px);
  border-bottom: 1px solid #d9e1e5;
  background: rgba(255, 255, 255, 0.96);
}

.drv-module-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.drv-module-nav a.active {
  border-color: var(--drv-accent);
  background: var(--drv-soft);
  color: var(--drv-accent);
}

.drv-kpi-grid,
.drv-grid,
.drv-flow-grid,
.drv-detail-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.drv-kpi-grid,
.drv-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.drv-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.drv-flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.drv-kpi-card,
.drv-flow-card,
.drv-detail-grid article {
  min-height: 128px;
  padding: 16px;
}

.drv-kpi-card strong {
  display: block;
  margin: 14px 0 6px;
  font-size: 34px;
}

.drv-kpi-card.good strong {
  color: #067647;
}

.drv-kpi-card.warn strong {
  color: #b54708;
}

.drv-kpi-card.danger strong {
  color: #b42318;
}

.drv-panel {
  min-width: 0;
  margin-top: 16px;
  padding: 18px;
}

.drv-grid .drv-panel {
  margin-top: 0;
}

.drv-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.drv-panel-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.drv-panel-head > strong {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--drv-soft);
  color: var(--drv-accent);
}

.drv-page-head,
.drv-detail-hero {
  margin-top: 16px;
  padding: 24px clamp(18px, 3vw, 36px);
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.drv-page-head h1,
.drv-detail-hero h1 {
  max-width: 920px;
  margin: 10px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.drv-page-head p,
.drv-detail-hero p {
  max-width: 780px;
  margin: 12px 0 0;
  color: #667085;
  line-height: 1.6;
}

.drv-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
}

.drv-detail-state-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  background: var(--drv-soft);
}

.drv-table-wrap {
  overflow-x: auto;
}

.drv-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.drv-table th {
  color: #667085;
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
}

.drv-table th,
.drv-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf1f5;
}

.drv-table td strong,
.drv-table td span,
.drv-detail-state-card strong,
.drv-detail-state-card small,
.drv-detail-grid strong,
.drv-detail-grid span {
  display: block;
}

.drv-record-link {
  color: var(--drv-accent);
  font-weight: 900;
  text-decoration: none;
}

.drv-record-link:hover {
  text-decoration: underline;
}

.drv-status-badge,
.drv-mini-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.drv-status-badge {
  background: #eef4ff;
  color: #2563eb;
}

.drv-status-badge.online,
.drv-status-badge.available,
.drv-status-badge.valid,
.drv-status-badge.completed,
.drv-status-badge.pod-captured,
.drv-status-badge.resolved {
  background: #ecfdf3;
  color: #067647;
}

.drv-status-badge.assigned,
.drv-status-badge.near-limit,
.drv-status-badge.required,
.drv-status-badge.offline-mode,
.drv-status-badge.restored,
.drv-status-badge.in-transit {
  background: #fff7ed;
  color: #b54708;
}

.drv-status-badge.gps-loss,
.drv-status-badge.pod-rejected,
.drv-status-badge.exceeded,
.drv-status-badge.expired,
.drv-status-badge.locked,
.drv-status-badge.breakdown-reported {
  background: #fef3f2;
  color: #b42318;
}

.drv-mini-pill {
  background: #f2f4f7;
  color: #344054;
}

.drv-flow-card div {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.drv-flow-card p {
  margin: 12px 0 0;
  line-height: 1.5;
}

.drv-rule-list {
  display: grid;
  gap: 10px;
}

.drv-rule-list.guard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.drv-rule-list article {
  padding: 14px;
  border-radius: 8px;
  background: #f8fafb;
}

.drv-rule-list strong,
.drv-rule-list span,
.drv-rule-list small {
  display: block;
}

.drv-rule-list span {
  margin-top: 6px;
  line-height: 1.55;
}

.drv-rule-list small {
  margin-top: 8px;
  font-weight: 800;
}

.fin-module {
  --fin-accent: #7047eb;
  --fin-soft: #f3f0ff;
}

.fin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(243, 240, 255, 0.88)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.fin-hero h1 {
  max-width: 980px;
  margin: 14px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.fin-hero p {
  max-width: 790px;
  margin: 16px 0 0;
  color: #475467;
  line-height: 1.62;
}

.fin-live-card,
.fin-panel,
.fin-kpi-card,
.fin-flow-card,
.fin-payment-card,
.fin-detail-state-card,
.fin-detail-stat,
.fin-credit-card {
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.fin-live-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 220px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.fin-live-card strong {
  color: var(--fin-accent);
  font-size: 24px;
}

.fin-live-card span,
.fin-live-card small,
.fin-kpi-card span,
.fin-kpi-card small,
.fin-panel-head span,
.fin-table span,
.fin-rule-list span,
.fin-rule-list small,
.fin-flow-card p,
.fin-payment-card span,
.fin-payment-card small,
.fin-vat-callout span {
  color: #667085;
}

.fin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.fin-kpi-card {
  min-height: 142px;
  padding: 18px;
}

.fin-kpi-card strong {
  display: block;
  margin: 14px 0 6px;
  font-size: 34px;
}

.fin-kpi-card.good strong {
  color: #067647;
}

.fin-kpi-card.warn strong {
  color: #b54708;
}

.fin-kpi-card.danger strong {
  color: #b42318;
}

.fin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.fin-panel {
  min-width: 0;
  margin-top: 16px;
  padding: 18px;
}

.fin-grid .fin-panel {
  margin-top: 0;
}

.fin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.fin-panel-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.fin-panel-head > strong {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--fin-soft);
  color: var(--fin-accent);
}

.fin-module-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px clamp(18px, 3vw, 36px);
  border-bottom: 1px solid #d9e1e5;
  background: rgba(255, 255, 255, 0.96);
}

.fin-module-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.fin-module-nav a.active {
  border-color: var(--fin-accent);
  background: var(--fin-soft);
  color: var(--fin-accent);
}

.fin-page-head,
.fin-detail-hero {
  margin-top: 16px;
  padding: 24px clamp(18px, 3vw, 36px);
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.fin-page-head h1,
.fin-detail-hero h1 {
  max-width: 920px;
  margin: 10px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.fin-page-head p,
.fin-detail-hero p {
  max-width: 780px;
  margin: 12px 0 0;
  color: #667085;
  line-height: 1.6;
}

.fin-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
}

.fin-detail-state-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  background: var(--fin-soft);
}

.fin-detail-state-card strong,
.fin-detail-state-card small {
  display: block;
}

.fin-detail-grid,
.fin-credit-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.fin-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fin-credit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fin-detail-stat,
.fin-credit-card {
  min-height: 118px;
  padding: 16px;
}

.fin-detail-stat span,
.fin-credit-card span {
  color: #667085;
}

.fin-detail-stat span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fin-detail-stat strong,
.fin-credit-card strong,
.fin-credit-card span {
  display: block;
}

.fin-detail-stat strong {
  margin-top: 14px;
  font-size: 22px;
}

.fin-credit-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.fin-table-wrap {
  overflow-x: auto;
}

.fin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.fin-table th {
  color: #667085;
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
}

.fin-table th,
.fin-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf1f5;
}

.fin-table td strong,
.fin-table td span {
  display: block;
}

.fin-record-link {
  color: var(--fin-accent);
  font-weight: 900;
  text-decoration: none;
}

.fin-record-link:hover {
  text-decoration: underline;
}

.fin-status-badge,
.fin-mini-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.fin-status-badge {
  background: #eef4ff;
  color: #2563eb;
}

.fin-status-badge.sent-to-client,
.fin-status-badge.paid,
.fin-status-badge.settled,
.fin-status-badge.confirmed,
.fin-status-badge.reconciled,
.fin-status-badge.matched {
  background: #ecfdf3;
  color: #067647;
}

.fin-status-badge.pending-zatca,
.fin-status-badge.zatca-submitted,
.fin-status-badge.partially-paid,
.fin-status-badge.ready-to-collect,
.fin-status-badge.deposit-pending {
  background: #fff7ed;
  color: #b54708;
}

.fin-status-badge.zatca-rejected,
.fin-status-badge.failed-uncertain,
.fin-status-badge.discrepancy,
.fin-status-badge.blocked,
.fin-status-badge.credit-blocked {
  background: #fef3f2;
  color: #b42318;
}

.fin-mini-pill {
  background: #f2f4f7;
  color: #344054;
}

.fin-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fin-flow-card {
  min-height: 128px;
  padding: 14px;
}

.fin-flow-card div {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.fin-flow-card p {
  margin: 12px 0 0;
  line-height: 1.5;
}

.fin-rule-list,
.fin-payment-grid {
  display: grid;
  gap: 10px;
}

.fin-rule-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fin-rule-list.guard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fin-payment-grid.page {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  padding-bottom: 16px;
}

.fin-rule-list article,
.fin-payment-card {
  padding: 14px;
  border-radius: 8px;
  background: #f8fafb;
}

.fin-rule-list strong,
.fin-rule-list span,
.fin-rule-list small,
.fin-payment-card span,
.fin-payment-card small {
  display: block;
}

.fin-rule-list span,
.fin-payment-card span {
  margin-top: 6px;
  line-height: 1.55;
}

.fin-rule-list small,
.fin-payment-card small {
  margin-top: 8px;
  font-weight: 800;
}

.fin-vat-callout {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #d7cffe;
  border-radius: 8px;
  background: var(--fin-soft);
}

.fin-vat-callout strong {
  color: var(--fin-accent);
}

@media (max-width: 980px) {
  .fms-hero,
  .fms-detail-hero,
  .wms-hero,
  .wms-detail-hero,
  .frems-hero,
  .frems-detail-hero,
  .cli-hero,
  .cli-detail-hero,
  .scp-hero,
  .scp-detail-hero,
  .drv-hero,
  .drv-detail-hero,
  .fin-hero,
  .fin-detail-hero,
  .fms-grid,
  .wms-grid,
  .frems-grid,
  .fin-grid,
  .fms-grid.two,
  .wms-grid.two,
  .fms-kpi-grid,
  .fms-detail-grid,
  .fms-detail-compliance,
  .fms-api-grid,
  .wms-kpi-grid,
  .wms-detail-grid,
  .wms-location-grid.page,
  .wms-capacity-grid,
  .frems-kpi-grid,
  .frems-detail-grid,
  .cli-kpi-grid,
  .cli-grid,
  .cli-flow-grid,
  .cli-detail-grid,
  .cli-form-grid,
  .cli-compare-grid,
  .scp-kpi-grid,
  .scp-grid,
  .scp-flow-grid,
  .scp-detail-grid,
  .scp-form-grid,
  .drv-kpi-grid,
  .drv-grid,
  .drv-flow-grid,
  .drv-detail-grid,
  .fin-kpi-grid,
  .fin-detail-grid,
  .fin-credit-grid,
  .fms-transition-grid,
  .wms-flow-grid,
  .frems-flow-grid,
  .fin-flow-grid,
  .frems-fallback-grid,
  .frems-fallback-grid.page,
  .fin-payment-grid.page,
  .fin-rule-list.compact,
  .fin-rule-list.guard-grid,
  .fms-role-grid,
  .wms-location-grid,
  .wms-rule-list.guard-grid,
  .frems-rule-list.guard-grid,
  .cli-rule-list.guard-grid,
  .scp-rule-list.guard-grid,
  .drv-rule-list.guard-grid,
  .wms-outbound-row {
    grid-template-columns: 1fr;
  }

  .fms-maintenance-step {
    grid-template-columns: 1fr;
  }

  .fms-maintenance-step small {
    grid-column: auto;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.site-shell {
  min-height: 100vh;
  background: #f4f7f8;
  color: #17212b;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(244, 247, 248, 0.94);
  border-bottom: 1px solid #d9e1e5;
  backdrop-filter: blur(14px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.site-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f4c542;
  color: #111827;
  font-weight: 900;
  letter-spacing: 0;
}

.site-brand-name,
.site-brand-line {
  display: block;
}

.site-brand-name {
  font-weight: 900;
}

.site-brand-line {
  color: #667085;
  font-size: 12px;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav-link,
.site-header-action,
.site-btn,
.site-footer a {
  text-decoration: none;
}

.site-nav-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
  color: #475467;
  font-weight: 800;
}

.site-nav-link:hover,
.site-nav-link.active {
  background: #ffffff;
  color: #17212b;
}

.site-header-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  background: #17212b;
  color: #ffffff;
  font-weight: 900;
}

.site-header-actions,
.site-user-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-header-action.secondary {
  border: 1px solid rgba(23, 33, 43, 0.16);
  background: #ffffff;
  color: #17212b;
}

.site-user-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(23, 33, 43, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: #344054;
  font-weight: 800;
}

.site-user-chip strong {
  color: #17212b;
}

.site-user-chip span {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-page {
  overflow: hidden;
}

.site-hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(36px, 6vw, 78px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(244, 247, 248, 0.98) 0%, rgba(244, 247, 248, 0.9) 44%, rgba(244, 247, 248, 0.18) 100%),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
}

.site-hero-copy {
  max-width: 690px;
}

.site-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  background: #e7f2ef;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-hero h1,
.site-page-hero h1 {
  margin: 18px 0 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.site-hero p,
.site-page-hero p,
.site-about-copy p,
.site-feature-card p,
.site-service-card p {
  color: #5d6673;
  line-height: 1.65;
}

.site-hero p {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 18px;
}

.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.site-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
}

.site-btn.primary {
  background: #0f766e;
  color: #ffffff;
}

.site-btn.secondary {
  background: #ffffff;
  color: #17212b;
  border: 1px solid #d9e1e5;
}

.site-hero-panel {
  min-height: 520px;
  display: grid;
  align-items: center;
}

.site-map-card {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 33, 43, 0.9), rgba(15, 118, 110, 0.7)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, 0.08) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, 0.08) 39px 40px);
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.24);
}

.map-route-line {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  background: #f4c542;
  transform-origin: left center;
}

.map-route-line.one {
  width: 52%;
  left: 18%;
  top: 42%;
  transform: rotate(-18deg);
}

.map-route-line.two {
  width: 42%;
  left: 31%;
  top: 57%;
  transform: rotate(24deg);
}

.map-node {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 4px solid #f4c542;
}

.map-node span {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #17212b;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.map-node.riyadh {
  left: 45%;
  top: 40%;
}

.map-node.jeddah {
  left: 20%;
  top: 56%;
}

.map-node.dammam {
  right: 19%;
  top: 30%;
}

.map-node.warehouse {
  right: 25%;
  bottom: 22%;
}

.map-shipment-card {
  position: absolute;
  left: 28px;
  bottom: 28px;
  max-width: 310px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.18);
}

.map-shipment-card span,
.map-shipment-card strong,
.map-shipment-card small {
  display: block;
}

.map-shipment-card span,
.map-shipment-card small {
  color: #667085;
}

.map-shipment-card strong {
  margin: 6px 0;
  font-size: 18px;
}

.site-stat-band,
.site-section,
.site-page-hero,
.site-service-grid,
.site-process-band,
.site-about-layout {
  padding-left: clamp(20px, 5vw, 72px);
  padding-right: clamp(20px, 5vw, 72px);
}

.site-stat-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #d9e1e5;
}

.site-stat-band article {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.site-stat-band strong {
  font-size: 34px;
}

.site-stat-band span {
  margin-top: 8px;
  color: #667085;
  font-weight: 800;
}

.site-section {
  padding-top: 76px;
  padding-bottom: 86px;
}

.site-section-head {
  max-width: 760px;
}

.site-section h2,
.site-process-band h2,
.site-about-copy h2 {
  margin: 16px 0 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.site-feature-grid,
.site-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.site-feature-grid {
  margin-top: 32px;
}

.site-feature-card,
.site-service-card {
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.site-feature-card {
  min-height: 190px;
  padding: 24px;
}

.site-feature-card h3,
.site-service-card h2 {
  margin: 0;
}

.site-page-hero {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 76px;
  padding-bottom: 64px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.site-page-hero.services {
  background:
    linear-gradient(90deg, rgba(23, 33, 43, 0.94), rgba(23, 33, 43, 0.52)),
    url("https://images.unsplash.com/photo-1494412651409-8963ce7935a7?auto=format&fit=crop&w=1800&q=80");
}

.site-page-hero.about {
  background:
    linear-gradient(90deg, rgba(23, 33, 43, 0.94), rgba(15, 118, 110, 0.5)),
    url("https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=1800&q=80");
}

.site-page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.site-service-grid {
  padding-top: 28px;
  padding-bottom: 72px;
}

.site-service-card {
  min-height: 260px;
  padding: 24px;
}

.site-service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 26px;
  background: #e7f2ef;
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
}

.site-process-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 56px;
  background: #17212b;
  color: #ffffff;
}

.site-process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.site-process-steps span {
  min-height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.site-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  padding-top: 72px;
  padding-bottom: 84px;
}

.platform-hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
  padding: clamp(42px, 6vw, 82px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(244, 247, 248, 1), rgba(244, 247, 248, 0.88)),
    url("https://images.unsplash.com/photo-1566576912321-d58ddd7a6088?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.platform-hero h1 {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
}

.platform-hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #5d6673;
  font-size: 18px;
  line-height: 1.65;
}

.platform-preview-window {
  min-height: 520px;
  border: 1px solid rgba(217, 225, 229, 0.95);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.2);
}

.platform-window-bar {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid #d9e1e5;
}

.platform-window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #f4c542;
  box-shadow: 18px 0 #0f766e, 36px 0 #17212b;
}

.platform-window-bar strong {
  margin-left: 42px;
}

.platform-preview-grid {
  min-height: 464px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
}

.platform-preview-grid aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: #17212b;
}

.platform-preview-grid aside span {
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.platform-preview-grid aside span.active {
  background: #f4c542;
}

.platform-preview-grid section {
  padding: 28px;
  background: #f6f8fb;
}

.platform-preview-title {
  width: min(360px, 80%);
  height: 34px;
  border-radius: 8px;
  background: #17212b;
}

.platform-preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.platform-preview-metrics span,
.platform-preview-table span {
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d9e1e5;
}

.platform-preview-metrics span {
  min-height: 100px;
}

.platform-preview-table {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.platform-preview-table span {
  min-height: 52px;
}

.platform-module-section {
  padding: 72px clamp(20px, 5vw, 72px) 84px;
}

.platform-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.platform-module-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.platform-module-grid h3 {
  margin: 0;
  font-size: 20px;
}

.platform-module-grid p {
  color: #5d6673;
  line-height: 1.6;
}

.platform-build-strip {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  background: #17212b;
  color: #ffffff;
}

.platform-build-strip strong {
  font-size: 20px;
}

.platform-build-strip span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.platform-shell {
  --platform-bg: #edf2f5;
  --platform-panel: #ffffff;
  --platform-panel-strong: #f8fafc;
  --platform-sidebar: #111827;
  --platform-sidebar-soft: #1f2937;
  --platform-text: #17212b;
  --platform-muted: #667085;
  --platform-border: #d9e1e8;
  --platform-yellow: #f4c542;
  --platform-shadow: 0 18px 44px rgba(16, 24, 40, 0.1);
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  background: var(--platform-bg);
  color: var(--platform-text);
}

.platform-shell-sidebar {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  padding: 22px;
  background: var(--platform-sidebar);
  color: #ffffff;
}

.platform-shell-brand {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.platform-shell-brand span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--platform-yellow);
  color: #111827;
  font-weight: 900;
}

.platform-shell-brand strong {
  font-size: 20px;
}

.platform-shell-side-nav {
  display: grid;
  gap: 8px;
}

.platform-shell-side-nav p {
  margin: 0 0 6px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-shell-side-link {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 8px;
  color: #d1d5db;
  text-decoration: none;
}

.platform-shell-side-link:hover,
.platform-shell-side-link.active {
  background: var(--platform-sidebar-soft);
  color: #ffffff;
}

.platform-shell-side-link strong,
.platform-shell-side-link small {
  display: block;
}

.platform-shell-side-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.platform-shell-side-link small {
  margin-top: 3px;
  color: #9ca3af;
  font-size: 11px;
}

.platform-shell-module-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7f2ef;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
}

.platform-shell-module-mark.green {
  background: #e9f8ee;
  color: #15803d;
}

.platform-shell-module-mark.amber {
  background: #fff4df;
  color: #b54708;
}

.platform-shell-module-mark.blue {
  background: #e8f1ff;
  color: #2563eb;
}

.platform-shell-module-mark.indigo {
  background: #eef2ff;
  color: #4f46e5;
}

.platform-shell-module-mark.violet {
  background: #f3edff;
  color: #6941c6;
}

.platform-shell-module-mark.cyan {
  background: #e6f7fb;
  color: #0e7490;
}

.platform-shell-module-mark.red {
  background: #ffebe9;
  color: #b42318;
}

.platform-shell-module-mark.slate {
  background: #e8edf3;
  color: #334155;
}

.platform-shell-role-card {
  margin-top: auto;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.platform-shell-role-card span,
.platform-shell-role-card small {
  color: #9ca3af;
}

.platform-shell-role-card span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-shell-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.platform-shell-topbar {
  position: sticky;
  top: 76px;
  z-index: 8;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 3vw, 36px);
  border-bottom: 1px solid var(--platform-border);
  background: rgba(237, 242, 245, 0.9);
  backdrop-filter: blur(14px);
}

.platform-shell-breadcrumb,
.platform-shell-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-shell-breadcrumb {
  min-width: 0;
  color: var(--platform-muted);
  font-size: 13px;
  font-weight: 800;
}

.platform-shell-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.platform-shell-breadcrumb strong {
  min-width: 0;
  overflow: hidden;
  color: var(--platform-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-shell-top-actions {
  justify-content: flex-end;
}

.platform-shell-search,
.platform-shell-role-select,
.platform-shell-top-link,
.platform-shell-bell {
  min-height: 42px;
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  background: var(--platform-panel);
  color: var(--platform-text);
}

.platform-shell-search {
  width: min(320px, 28vw);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
}

.platform-shell-search span {
  color: var(--platform-muted);
  font-size: 11px;
  font-weight: 900;
}

.platform-shell-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
}

.platform-shell-role-select {
  max-width: 220px;
  padding: 0 12px;
  font-weight: 800;
}

.platform-shell-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-weight: 900;
  text-decoration: none;
}

.platform-shell-bell {
  width: 48px;
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.platform-shell-bell span {
  font-size: 11px;
  font-weight: 950;
}

.platform-shell-bell strong {
  min-width: 19px;
  height: 19px;
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  border: 2px solid var(--platform-panel);
  border-radius: 999px;
  background: #b42318;
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
}

.platform-shell-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
}

.platform-shell-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  background: #e7f2ef;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-shell-hero h1 {
  max-width: 900px;
  margin: 18px 0 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.platform-shell-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--platform-muted);
  font-size: 17px;
  line-height: 1.65;
}

.platform-shell-status-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.platform-shell-status-panel div,
.platform-shell-workspace,
.platform-shell-notification-center {
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  background: var(--platform-panel);
  box-shadow: var(--platform-shadow);
}

.platform-shell-status-panel div {
  min-height: 104px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 18px;
}

.platform-shell-status-panel span,
.platform-shell-section-head span,
.platform-shell-card-meta span,
.platform-shell-health,
.platform-shell-notification small,
.platform-shell-empty-state span {
  color: var(--platform-muted);
}

.platform-shell-status-panel span,
.platform-shell-section-head span,
.platform-shell-card-meta span,
.platform-shell-health {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-shell-status-panel strong {
  font-size: 28px;
}

.platform-shell-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.34fr);
  gap: 22px;
  padding: 0 clamp(18px, 3vw, 36px) 42px;
}

.platform-shell-workspace,
.platform-shell-notification-center {
  padding: 22px;
}

.platform-shell-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.platform-shell-section-head.compact {
  align-items: center;
}

.platform-shell-section-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.platform-shell-section-head p {
  max-width: 420px;
  margin: 0;
  color: var(--platform-muted);
  line-height: 1.5;
}

.platform-shell-section-head > strong {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--platform-panel-strong);
}

.platform-shell-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.platform-shell-module-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  padding: 18px;
  background: var(--platform-panel-strong);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.platform-shell-module-card:hover {
  border-color: #8fb3c9;
  transform: translateY(-2px);
}

.platform-shell-card-head,
.platform-shell-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.platform-shell-module-card h3 {
  margin: 0;
  font-size: 18px;
}

.platform-shell-module-card p {
  margin: 0;
  color: var(--platform-muted);
  line-height: 1.55;
}

.platform-shell-card-meta {
  margin-top: auto;
}

.platform-shell-card-meta strong {
  border-radius: 8px;
  padding: 6px 9px;
  background: #e7f2ef;
  color: #0f766e;
  font-size: 12px;
}

.platform-shell-landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.32fr);
  gap: 22px;
  padding: clamp(24px, 4vw, 42px);
}

.platform-shell-landing-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.platform-shell-landing-title-row h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.platform-shell-landing-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--platform-muted);
  font-size: 17px;
  line-height: 1.65;
}

.platform-shell-landing-status,
.platform-shell-landing-metric,
.platform-shell-landing-card,
.platform-shell-landing-flow {
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  background: var(--platform-panel);
  box-shadow: var(--platform-shadow);
}

.platform-shell-landing-status {
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
}

.platform-shell-landing-status span,
.platform-shell-landing-status small,
.platform-shell-landing-metric span,
.platform-shell-landing-metric small,
.platform-shell-landing-card span {
  color: var(--platform-muted);
}

.platform-shell-landing-status span,
.platform-shell-landing-metric span,
.platform-shell-landing-card span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-shell-landing-status strong {
  font-size: 28px;
}

.platform-shell-landing-metrics,
.platform-shell-landing-grid,
.platform-shell-landing-flow {
  margin: 0 clamp(18px, 3vw, 36px) 22px;
}

.platform-shell-landing-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.platform-shell-landing-metric {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
}

.platform-shell-landing-metric strong {
  font-size: 30px;
}

.platform-shell-landing-metric small {
  line-height: 1.45;
}

.platform-shell-landing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.platform-shell-landing-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

.platform-shell-landing-card div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.platform-shell-landing-card p {
  margin: 0;
  color: var(--platform-muted);
  line-height: 1.55;
}

.platform-shell-landing-flow {
  padding: 22px;
}

.platform-shell-landing-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.platform-shell-landing-flow-step {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  padding: 14px;
  background: var(--platform-panel-strong);
}

.platform-shell-landing-flow-step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f1ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
}

.platform-shell-notification-list {
  display: grid;
  gap: 10px;
}

.platform-shell-notification {
  min-height: 78px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  padding: 12px;
  background: var(--platform-panel-strong);
}

.platform-shell-notification > span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f1ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
}

.platform-shell-notification.critical > span {
  background: #ffebe9;
  color: #b42318;
}

.platform-shell-notification.warning > span {
  background: #fff4df;
  color: #b54708;
}

.platform-shell-notification.review > span {
  background: #f3edff;
  color: #6941c6;
}

.platform-shell-notification strong,
.platform-shell-notification small {
  display: block;
}

.platform-shell-notification strong {
  line-height: 1.35;
}

.platform-shell-notification small {
  margin-top: 5px;
}

.platform-shell-empty-state {
  display: grid;
  gap: 6px;
  border: 1px dashed var(--platform-border);
  border-radius: 8px;
  padding: 18px;
}

.ai-recommendations-panel {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  background: var(--platform-panel);
}

.ai-recommendations-panel > p {
  max-width: 900px;
  margin: 0;
  color: var(--platform-muted);
  line-height: 1.55;
}

.ai-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ai-insight-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 15px;
  border: 1px solid var(--platform-border);
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #ffffff;
}

.ai-insight-card.warn {
  border-left-color: #b54708;
}

.ai-insight-card.critical {
  border-left-color: #b42318;
}

.ai-insight-card.ready {
  border-left-color: #0f766e;
}

.ai-insight-card > div:first-child {
  display: grid;
  gap: 6px;
}

.ai-insight-card span,
.ai-insight-card p {
  color: var(--platform-muted);
}

.ai-insight-card strong {
  color: var(--platform-ink);
  line-height: 1.25;
}

.ai-insight-card p {
  margin: 0;
  line-height: 1.5;
}

.ai-insight-meta,
.ai-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ai-insight-meta span,
.ai-insight-meta strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.ai-action-row {
  margin-top: auto;
}

.ai-action-row button {
  min-height: 34px;
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--platform-ink);
  font-weight: 800;
}

.ai-action-row button:first-child {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.dispatch-optimization-panel {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  background: #f8fafc;
}

.dispatch-optimization-panel > p {
  max-width: 920px;
  margin: 0;
  color: var(--platform-muted);
  line-height: 1.55;
}

.dispatch-optimization-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dispatch-optimization-card {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 15px;
  border: 1px solid var(--platform-border);
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #ffffff;
}

.dispatch-optimization-card.warn {
  border-left-color: #b54708;
}

.dispatch-optimization-card.critical {
  border-left-color: #b42318;
}

.dispatch-optimization-card.ready {
  border-left-color: #0f766e;
}

.dispatch-optimization-card > div:first-child {
  display: grid;
  gap: 6px;
}

.dispatch-optimization-card span,
.dispatch-optimization-card p {
  color: var(--platform-muted);
}

.dispatch-optimization-card strong {
  color: var(--platform-ink);
}

.dispatch-optimization-card p {
  margin: 0;
  line-height: 1.5;
}

.dispatch-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dispatch-score-grid span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.dispatch-score-grid strong {
  font-size: 22px;
}

.maintenance-profit-panel {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  background: #ffffff;
}

.maintenance-profit-panel > p {
  max-width: 940px;
  margin: 0;
  color: var(--platform-muted);
  line-height: 1.55;
}

.maintenance-profit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.maintenance-profit-card {
  display: grid;
  gap: 12px;
  min-height: 240px;
  padding: 15px;
  border: 1px solid var(--platform-border);
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  background: #ffffff;
}

.maintenance-profit-card.warn {
  border-left-color: #b54708;
}

.maintenance-profit-card.critical {
  border-left-color: #b42318;
}

.maintenance-profit-card.ready {
  border-left-color: #0f766e;
}

.maintenance-profit-card > div:first-child {
  display: grid;
  gap: 6px;
}

.maintenance-profit-card span,
.maintenance-profit-card p {
  color: var(--platform-muted);
}

.maintenance-profit-card strong {
  color: var(--platform-ink);
}

.maintenance-profit-card p {
  margin: 0;
  line-height: 1.5;
}

.maintenance-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.maintenance-score-grid span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

.maintenance-score-grid strong {
  font-size: 20px;
}

.billing-module {
  --billing-accent: #6941c6;
}

.billing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.billing-hero > div,
.billing-hero > aside,
.billing-panel,
.billing-kpi-grid article,
.billing-plan-card {
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  background: #ffffff;
}

.billing-hero > div,
.billing-hero > aside {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.billing-hero h1,
.billing-hero p {
  margin: 0;
}

.billing-hero p,
.billing-hero small,
.billing-hero span {
  color: var(--platform-muted);
}

.billing-kpi-grid,
.billing-plan-grid,
.billing-subscription-grid,
.billing-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.billing-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-kpi-grid article,
.billing-feature-grid article,
.billing-subscription-grid article,
.billing-plan-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.billing-kpi-grid span,
.billing-feature-grid span,
.billing-subscription-grid span,
.billing-plan-card span,
.billing-kpi-grid small,
.billing-feature-grid small,
.billing-subscription-grid small,
.billing-plan-card p,
.billing-plan-card li {
  color: var(--platform-muted);
}

.billing-plan-card h3 {
  margin: 0;
  color: var(--billing-accent);
}

.billing-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
}

.billing-usage-list {
  display: grid;
  gap: 10px;
}

.billing-usage-row {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr) 140px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.billing-usage-row span,
.billing-usage-row small {
  color: var(--platform-muted);
}

.billing-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.billing-meter span {
  display: block;
  height: 100%;
  background: var(--billing-accent);
}

.billing-table-wrap {
  overflow-x: auto;
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
}

.billing-table th,
.billing-table td {
  border-bottom: 1px solid var(--platform-border);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.billing-table td span {
  display: block;
  margin-top: 4px;
  color: var(--platform-muted);
}

.enterprise-onboarding-page {
  --onboarding-accent: #0f766e;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  background: #eef4f6;
  color: var(--platform-text);
}

.onboarding-rail {
  display: grid;
  align-content: start;
  gap: 18px;
  border-right: 1px solid var(--platform-border);
  background: #ffffff;
  padding: 18px;
}

.onboarding-main {
  min-width: 0;
  padding: 18px;
}

.onboarding-cinematic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.onboarding-cinematic-hero > div,
.onboarding-cinematic-hero > aside,
.onboarding-panel,
.onboarding-score-card,
.onboarding-check-item {
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  background: #ffffff;
}

.onboarding-cinematic-hero > div,
.onboarding-cinematic-hero > aside {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.onboarding-cinematic-hero h1,
.onboarding-cinematic-hero p,
.onboarding-cinematic-hero strong,
.onboarding-cinematic-hero small {
  margin: 0;
}

.onboarding-cinematic-hero p,
.onboarding-cinematic-hero span,
.onboarding-cinematic-hero small {
  color: var(--platform-muted);
}

.onboarding-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe7ea;
}

.onboarding-progress-track span {
  display: block;
  height: 100%;
  background: var(--onboarding-accent);
}

.onboarding-grid,
.onboarding-readiness-grid,
.onboarding-checklist,
.onboarding-form-grid {
  display: grid;
  gap: 12px;
}

.onboarding-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.onboarding-readiness-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
  margin-bottom: 18px;
}

.onboarding-checklist {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.onboarding-panel,
.onboarding-score-card,
.onboarding-check-item {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.onboarding-panel.wide {
  grid-column: 1 / -1;
}

.onboarding-panel span,
.onboarding-panel small,
.onboarding-score-card span,
.onboarding-score-card small,
.onboarding-check-item span,
.onboarding-check-item small {
  color: var(--platform-muted);
}

.onboarding-score-card strong {
  font-size: 36px;
  color: var(--onboarding-accent);
}

.onboarding-check-item.ready,
.onboarding-mini-status.ready {
  border-color: #99d6c7;
  background: #ecfdf5;
}

.onboarding-check-item.warn,
.onboarding-mini-status.warn {
  border-color: #f4c56b;
  background: #fffbeb;
}

.onboarding-check-item.pending,
.onboarding-mini-status.pending {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.onboarding-mini-status {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--platform-border);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.onboarding-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.onboarding-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--platform-muted);
  font-size: 12px;
  font-weight: 800;
}

.onboarding-form-grid input {
  min-width: 0;
  border: 1px solid var(--platform-border);
  border-radius: 8px;
  padding: 11px 12px;
  background: #f8fafc;
  color: var(--platform-text);
}

.cmd-dashboard {
  --cmd-bg: #edf2f5;
  --cmd-panel: #ffffff;
  --cmd-soft: #f8fafc;
  --cmd-sidebar: #111827;
  --cmd-text: #17212b;
  --cmd-muted: #667085;
  --cmd-border: #d9e1e8;
  --cmd-red: #b42318;
  --cmd-amber: #b54708;
  --cmd-green: #0f766e;
  --cmd-blue: #2563eb;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--cmd-bg);
  color: var(--cmd-text);
}

.cmd-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  padding: 22px;
  background: var(--cmd-sidebar);
  color: #ffffff;
}

.cmd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.cmd-brand span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffebe9;
  color: var(--cmd-red);
  font-weight: 900;
}

.cmd-brand strong {
  font-size: 19px;
}

.cmd-nav {
  display: grid;
  gap: 8px;
}

.cmd-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: #d1d5db;
  font-weight: 900;
  text-decoration: none;
}

.cmd-nav a:hover,
.cmd-nav a.active {
  background: #1f2937;
  color: #ffffff;
}

.cmd-live-card {
  margin-top: auto;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.cmd-live-card span,
.cmd-live-card small {
  color: #9ca3af;
}

.cmd-live-card span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cmd-main {
  min-width: 0;
  display: grid;
  gap: 22px;
  padding-bottom: 36px;
}

.cmd-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 3vw, 36px);
  border-bottom: 1px solid var(--cmd-border);
  background: rgba(237, 242, 245, 0.92);
  backdrop-filter: blur(14px);
}

.cmd-breadcrumb,
.cmd-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmd-breadcrumb {
  min-width: 0;
  color: var(--cmd-muted);
  font-size: 13px;
  font-weight: 800;
}

.cmd-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.cmd-breadcrumb strong {
  min-width: 0;
  overflow: hidden;
  color: var(--cmd-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmd-search,
.cmd-top-actions button {
  min-height: 42px;
  border: 1px solid var(--cmd-border);
  border-radius: 8px;
  background: var(--cmd-panel);
  color: var(--cmd-text);
}

.cmd-search {
  width: min(340px, 30vw);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
}

.cmd-search span {
  color: var(--cmd-muted);
  font-size: 11px;
  font-weight: 900;
}

.cmd-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
}

.cmd-top-actions button {
  padding: 0 14px;
  font-weight: 900;
}

.cmd-hero,
.cmd-kpi-grid,
.cmd-layout-grid,
.cmd-monitor-grid,
.cmd-main > .cmd-panel {
  margin-inline: clamp(18px, 3vw, 36px);
}

.cmd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.34fr);
  gap: 22px;
  align-items: stretch;
  padding-top: 16px;
}

.cmd-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  background: #ffebe9;
  color: var(--cmd-red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cmd-hero h1 {
  max-width: 900px;
  margin: 18px 0 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.cmd-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--cmd-muted);
  font-size: 17px;
  line-height: 1.65;
}

.cmd-architecture-card,
.cmd-panel,
.cmd-kpi-card {
  border: 1px solid var(--cmd-border);
  border-radius: 8px;
  background: var(--cmd-panel);
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.1);
}

.cmd-architecture-card {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 22px;
}

.cmd-architecture-card span,
.cmd-architecture-card small,
.cmd-kpi-card span,
.cmd-kpi-card small,
.cmd-panel-head span,
.cmd-alert-meta,
.cmd-monitor-row span,
.cmd-notification-widget small,
.cmd-sla-indicator span {
  color: var(--cmd-muted);
}

.cmd-architecture-card span,
.cmd-kpi-card span,
.cmd-panel-head span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cmd-architecture-card strong {
  font-size: 20px;
}

.cmd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cmd-kpi-card {
  min-height: 156px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 20px;
  border-top: 4px solid var(--cmd-blue);
}

.cmd-kpi-card.critical {
  border-top-color: var(--cmd-red);
}

.cmd-kpi-card.warn {
  border-top-color: var(--cmd-amber);
}

.cmd-kpi-card.ready {
  border-top-color: var(--cmd-green);
}

.cmd-kpi-card strong {
  font-size: 36px;
  line-height: 1;
}

.cmd-layout-grid,
.cmd-monitor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  gap: 18px;
}

.cmd-panel {
  padding: 20px;
}

.cmd-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cmd-panel-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.cmd-panel-head > strong {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--cmd-soft);
}

.cmd-alert-list,
.cmd-monitor-list,
.cmd-sla-list,
.cmd-escalation-list,
.cmd-feed-list {
  display: grid;
  gap: 10px;
}

.cmd-alert-item {
  min-height: 88px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--cmd-border);
  border-radius: 8px;
  padding: 12px;
  background: var(--cmd-soft);
}

.cmd-alert-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f1ff;
  color: var(--cmd-blue);
  font-size: 11px;
  font-weight: 900;
}

.cmd-alert-item.critical .cmd-alert-icon {
  background: #ffebe9;
  color: var(--cmd-red);
}

.cmd-alert-item.high .cmd-alert-icon {
  background: #fff4df;
  color: var(--cmd-amber);
}

.cmd-alert-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cmd-alert-title-row strong {
  line-height: 1.35;
}

.cmd-escalation-badge,
.cmd-sla-pill {
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.cmd-escalation-badge {
  background: #ffebe9;
  color: var(--cmd-red);
}

.cmd-alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
}

.cmd-sla-pill {
  justify-self: end;
  background: #e7f2ef;
  color: var(--cmd-green);
}

.cmd-monitor-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr 1.25fr 0.8fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--cmd-border);
  border-radius: 8px;
  padding: 12px;
  background: var(--cmd-soft);
}

.cmd-monitor-row strong,
.cmd-monitor-row span {
  display: block;
}

.cmd-monitor-row span {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 800;
}

.cmd-notification-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cmd-notification-widget {
  min-height: 150px;
  display: grid;
  gap: 10px;
  align-content: space-between;
  border: 1px solid var(--cmd-border);
  border-radius: 8px;
  padding: 16px;
  background: var(--cmd-soft);
}

.cmd-notification-widget div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cmd-notification-widget span {
  color: var(--cmd-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cmd-notification-widget > strong {
  font-size: 28px;
}

.cmd-sla-indicator {
  display: grid;
  gap: 10px;
  border: 1px solid var(--cmd-border);
  border-radius: 8px;
  padding: 14px;
  background: var(--cmd-soft);
}

.cmd-sla-indicator strong,
.cmd-sla-indicator span {
  display: block;
}

.cmd-sla-indicator span {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 800;
}

.cmd-sla-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.cmd-sla-bar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cmd-green), var(--cmd-blue));
}

.cmd-status-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 9px;
  background: #eef4ff;
  color: var(--cmd-blue);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.cmd-status-badge.fresh,
.cmd-status-badge.healthy,
.cmd-status-badge.full-control,
.cmd-status-badge.deterministic,
.cmd-status-badge.subscribed,
.cmd-status-badge.alive {
  background: #ecfdf3;
  color: var(--cmd-green);
}

.cmd-status-badge.stale,
.cmd-status-badge.feed-stale,
.cmd-status-badge.offline-fallback {
  background: #ffebe9;
  color: var(--cmd-red);
}

.cmd-status-badge.srs-timing,
.cmd-status-badge.grouped,
.cmd-status-badge.assigned,
.cmd-status-badge.sla-watch,
.cmd-status-badge.pod-watch,
.cmd-status-badge.scoped {
  background: #fff4df;
  color: var(--cmd-amber);
}

.cmd-escalation-row,
.cmd-feed-row,
.cmd-visibility-card,
.cmd-map-zone,
.cmd-ml-card,
.cmd-incident-card {
  border: 1px solid var(--cmd-border);
  border-radius: 8px;
  background: var(--cmd-soft);
}

.cmd-escalation-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 120px max-content;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.cmd-escalation-row span,
.cmd-feed-row span,
.cmd-feed-row small,
.cmd-incident-card span,
.cmd-incident-card small,
.cmd-visibility-card span,
.cmd-map-zone span,
.cmd-ml-card p {
  color: var(--cmd-muted);
}

.cmd-escalation-row span,
.cmd-feed-row span,
.cmd-feed-row small,
.cmd-incident-card span,
.cmd-incident-card small,
.cmd-visibility-card span,
.cmd-map-zone span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 800;
}

.cmd-map-placeholder {
  min-height: 230px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
  border: 1px solid var(--cmd-border);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.08)),
    var(--cmd-soft);
}

.cmd-map-zone {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--cmd-panel);
}

.cmd-operations-map-panel {
  display: grid;
  gap: 12px;
}

.cmd-ops-map-updated {
  color: var(--cmd-muted);
  font-weight: 800;
}

.cmd-ops-map-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) repeat(3, max-content);
  gap: 10px;
}

.cmd-ops-map-filters label {
  display: grid;
  gap: 6px;
}

.cmd-ops-map-filters label span {
  color: var(--cmd-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cmd-ops-map-filters select,
.cmd-ops-map-filters input[type="date"] {
  min-height: 36px;
  border: 1px solid var(--cmd-border);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--cmd-panel);
  color: var(--cmd-text);
}

.cmd-ops-map-filters .toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 800;
}

.cmd-ops-map-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--cmd-muted);
  font-size: 12px;
  font-weight: 800;
}

.cmd-ops-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 12px;
}

.cmd-ops-map-stage {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--cmd-border);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.08));
  background-size: 42px 42px, 42px 42px, auto;
}

.cmd-ops-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cmd-ops-map-line {
  stroke: rgba(37, 99, 235, 0.45);
  stroke-width: 0.35;
  stroke-linecap: round;
}

.cmd-ops-map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 0 7px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.15);
}

.cmd-ops-map-marker span {
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.cmd-ops-map-marker.origin {
  background: #2563eb;
}

.cmd-ops-map-marker.destination {
  background: #0f766e;
}

.cmd-ops-map-marker.carrier {
  background: #7c3aed;
}

.cmd-ops-map-marker.sla {
  background: #b91c1c;
}

.cmd-ops-map-marker.delayed {
  background: #b45309;
}

.cmd-ops-map-side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.cmd-ops-map-side-head {
  border: 1px solid var(--cmd-border);
  border-radius: 8px;
  padding: 10px;
  color: var(--cmd-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  background: var(--cmd-soft);
}

.cmd-ops-map-row {
  border: 1px solid var(--cmd-border);
  border-radius: 8px;
  padding: 10px;
  background: var(--cmd-soft);
}

.cmd-ops-map-row span,
.cmd-ops-map-row small {
  display: block;
  margin-top: 5px;
  color: var(--cmd-muted);
  font-size: 12px;
  font-weight: 800;
}

.cmd-map-estimated-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 2px 6px;
  background: #fff4df;
  color: var(--cmd-amber);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.cmd-ops-map-state {
  min-height: 130px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--cmd-border);
  border-radius: 8px;
  color: var(--cmd-muted);
  font-weight: 800;
  background: var(--cmd-soft);
}

.cmd-ops-map-state.error {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff1f2;
}

.cmd-incident-grid,
.cmd-ml-grid,
.cmd-visibility-grid {
  display: grid;
  gap: 12px;
}

.cmd-incident-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cmd-incident-card,
.cmd-ml-card,
.cmd-visibility-card {
  min-height: 150px;
  padding: 14px;
}

.cmd-incident-card div,
.cmd-ml-card div,
.cmd-visibility-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cmd-incident-card h3,
.cmd-ml-card p {
  margin: 14px 0 0;
}

.cmd-feed-row,
.cmd-live-event-row,
.cmd-heartbeat-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px max-content;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.cmd-feed-row small {
  grid-column: 1 / -1;
  margin-top: 0;
}

.cmd-live-event-row,
.cmd-heartbeat-row {
  border: 1px solid var(--cmd-border);
  border-radius: 8px;
  background: var(--cmd-soft);
}

.cmd-live-event-row span,
.cmd-heartbeat-row span {
  color: var(--cmd-muted);
  font-size: 12px;
  font-weight: 800;
}

@media (prefers-color-scheme: dark) {
  .platform-shell {
    --platform-bg: #0f172a;
    --platform-panel: #111827;
    --platform-panel-strong: #182235;
    --platform-sidebar: #020617;
    --platform-sidebar-soft: #182235;
    --platform-text: #f8fafc;
    --platform-muted: #a8b3c4;
    --platform-border: rgba(255, 255, 255, 0.09);
    --platform-shadow: none;
  }

  .platform-shell-topbar {
    background: rgba(15, 23, 42, 0.88);
  }

  .platform-shell-card-meta strong,
  .platform-shell-kicker {
    background: rgba(15, 118, 110, 0.18);
  }

  .cmd-dashboard {
    --cmd-bg: #0f172a;
    --cmd-panel: #111827;
    --cmd-soft: #182235;
    --cmd-sidebar: #020617;
    --cmd-text: #f8fafc;
    --cmd-muted: #a8b3c4;
    --cmd-border: rgba(255, 255, 255, 0.09);
  }

  .cmd-topbar {
    background: rgba(15, 23, 42, 0.9);
  }

  .cmd-panel,
  .cmd-kpi-card,
  .cmd-architecture-card {
    box-shadow: none;
  }
}

.contact-hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 6vw, 82px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(23, 33, 43, 0.95), rgba(15, 118, 110, 0.66)),
    url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.contact-hero h1 {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
}

.contact-hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.65;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #17212b;
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.24);
}

.contact-form label,
.contact-form span {
  display: block;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form span {
  color: #475467;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form textarea {
  min-height: 132px;
  padding-top: 12px;
  resize: vertical;
}

.contact-form .site-btn {
  width: 100%;
  border: 0;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(20px, 5vw, 72px) 78px;
  background: #d9e1e5;
}

.contact-info-grid article {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  padding: 24px;
}

.contact-info-grid strong {
  font-size: 20px;
}

.contact-info-grid span {
  color: #667085;
  line-height: 1.55;
}

.client-portal-hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 6vw, 82px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(244, 247, 248, 0.98), rgba(244, 247, 248, 0.86)),
    url("https://images.unsplash.com/photo-1494412685616-a5d310fbb07d?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.client-portal-hero-copy {
  max-width: 780px;
}

.client-portal-hero h1 {
  margin: 18px 0 0;
  max-width: 880px;
  font-size: clamp(42px, 6.5vw, 82px);
  line-height: 0.98;
}

.client-portal-hero p {
  max-width: 660px;
  margin: 22px 0 0;
  color: #5d6673;
  font-size: 18px;
  line-height: 1.65;
}

.client-portal-summary {
  display: grid;
  gap: 14px;
}

.client-portal-summary div {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(217, 225, 229, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.16);
}

.client-portal-summary span,
.client-portal-status-card span,
.client-portal-card-head span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-portal-summary strong {
  color: #17212b;
  font-size: 30px;
  line-height: 1.1;
}

.client-portal-summary small {
  color: #667085;
  line-height: 1.5;
}

.client-portal-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px) 84px;
  background: #edf2f4;
}

.client-portal-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
}

.client-portal-sidebar strong {
  margin-bottom: 8px;
  color: #17212b;
}

.client-portal-sidebar a {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: #667085;
  font-weight: 900;
  text-decoration: none;
}

.client-portal-sidebar a.active,
.client-portal-sidebar a:hover {
  background: #17212b;
  color: #ffffff;
}

.client-portal-dashboard {
  display: grid;
  gap: 18px;
}

.client-portal-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.client-portal-status-card,
.client-portal-card {
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.06);
}

.client-portal-status-card {
  min-height: 204px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
}

.client-portal-status-card strong {
  color: #17212b;
  font-size: 34px;
  line-height: 1;
}

.client-portal-status-card small,
.client-portal-status-card p,
.client-portal-notifications span,
.client-portal-doc-row small {
  color: #667085;
  line-height: 1.5;
}

.client-portal-status-card p {
  margin: 4px 0 0;
}

.client-portal-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
}

.client-portal-main-grid.lower {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
}

.client-portal-card {
  padding: 24px;
}

.client-portal-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.client-portal-card-head strong {
  color: #17212b;
  font-size: 20px;
}

.client-portal-timeline {
  display: grid;
  gap: 12px;
}

.client-portal-timeline span {
  min-height: 52px;
  display: flex;
  align-items: center;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  padding: 0 16px;
  color: #667085;
  font-weight: 900;
}

.client-portal-timeline span.done {
  border-color: rgba(15, 118, 110, 0.28);
  background: #e7f2ef;
  color: #0f766e;
}

.client-portal-timeline span.active {
  border-color: rgba(244, 197, 66, 0.5);
  background: #fff8dd;
  color: #17212b;
}

.client-portal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.client-portal-action {
  min-height: 76px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #f6f8fb;
  color: #17212b;
  font-weight: 900;
}

.client-portal-action:hover {
  background: #17212b;
  color: #ffffff;
}

.client-portal-docs,
.client-portal-notifications {
  display: grid;
  gap: 10px;
}

.client-portal-doc-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 92px minmax(0, 1.25fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f4;
}

.client-portal-doc-row:last-child {
  border-bottom: 0;
}

.client-portal-doc-row span,
.client-portal-doc-row strong {
  color: #17212b;
  font-weight: 900;
}

.client-portal-doc-row em {
  justify-self: start;
  border-radius: 8px;
  padding: 5px 9px;
  background: #e7f2ef;
  color: #0f766e;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.client-portal-notifications div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  background: #f6f8fb;
}

.client-portal-notifications strong {
  color: #17212b;
}

.figma-client-portal {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 700px) 320px;
  grid-template-rows: 64px minmax(960px, 1fr);
  justify-content: center;
  overflow-x: hidden;
  background: #12121d;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.figma-client-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(2, 6, 23, 0.8);
}

.figma-client-brand,
.figma-client-brand nav,
.figma-client-tools {
  display: flex;
  align-items: center;
}

.figma-client-brand {
  gap: 32px;
}

.figma-client-brand > strong {
  min-width: 141px;
  font-size: 20px;
  line-height: 1.4;
}

.figma-client-brand nav {
  gap: 24px;
}

.figma-client-brand a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: #cbc3d5;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.figma-client-brand a.active {
  border-color: #8b5cf6;
  color: #ffffff;
}

.figma-client-tools {
  gap: 16px;
}

.figma-client-search {
  width: 237px;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: #1f1e2a;
}

.figma-client-search span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
}

.figma-client-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-size: 12px;
}

.figma-client-tools button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(208, 188, 255, 0.2);
  border-radius: 12px;
  background: transparent;
  color: #e3e0f1;
  font-weight: 900;
}

.figma-client-ai {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(2, 6, 23, 0.4);
}

.figma-ai-head {
  min-height: 109px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.figma-ai-head strong,
.figma-client-welcome h1 {
  display: block;
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.figma-ai-head span,
.figma-client-welcome p,
.figma-spend-card span,
.figma-live-order-card p {
  color: #cbc3d5;
}

.figma-ai-head span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.figma-ai-head em {
  color: #34d399;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}

.figma-ai-chat,
.figma-ai-actions {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.figma-ai-chat .question,
.figma-ai-chat .answer,
.figma-ai-actions button {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.figma-ai-chat .question {
  justify-self: end;
  max-width: 178px;
  color: #b79cff;
  background: rgba(139, 92, 246, 0.12);
}

.figma-ai-chat .answer {
  max-width: 190px;
  color: #e3e0f1;
  background: #1b1a26;
}

.figma-ai-chat a {
  justify-self: start;
  color: #d0bcff;
  font-size: 10px;
  text-decoration: none;
}

.figma-ai-actions {
  padding-top: 0;
}

.figma-ai-actions span {
  color: #cbc3d5;
  font-size: 10px;
  font-weight: 900;
}

.figma-ai-actions button {
  min-height: 42px;
  color: #e3e0f1;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
}

.figma-ai-input {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.figma-ai-input span {
  display: block;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 12px;
}

.figma-ai-input input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: #1b1a26;
  color: #ffffff;
  padding: 0 12px;
}

.figma-client-main {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 32px;
  align-content: start;
  padding: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.figma-client-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.figma-client-welcome p {
  margin: 4px 0 0;
  font-size: 14px;
}

.figma-fa-status {
  display: grid;
  gap: 4px;
  padding: 9px 14px;
  border: 1px solid rgba(208, 188, 255, 0.2);
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.14);
  color: #e9ddff;
  font-size: 11px;
}

.figma-fa-status span {
  color: rgba(208, 188, 255, 0.7);
}

.figma-client-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.figma-client-kpi-card,
.figma-spend-card,
.figma-live-order-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: #1b1a26;
}

.figma-client-kpi-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.figma-client-kpi-card span,
.figma-client-kpi-card small,
.figma-side-head strong,
.figma-alerts-panel h2 {
  color: #cbc3d5;
}

.figma-client-kpi-card span {
  font-size: 12px;
  font-weight: 700;
}

.figma-client-kpi-card strong {
  font-size: 24px;
  line-height: 1.3;
}

.figma-client-kpi-card small {
  font-size: 10px;
  line-height: 1.5;
}

.figma-spend-card {
  padding: 24px;
}

.figma-card-head,
.figma-side-head,
.figma-order-id,
.figma-route-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.figma-card-head strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
}

.figma-card-head span {
  font-size: 11px;
}

.figma-chip-row {
  display: flex;
  gap: 8px;
}

.figma-chip-row button {
  min-height: 29px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #e3e0f1;
  font-size: 10px;
}

.figma-chip-row button.active {
  color: #d0bcff;
  border-color: rgba(139, 92, 246, 0.4);
}

.figma-chart {
  min-height: 296px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 18px;
  margin-top: 32px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.figma-chart-month {
  min-height: 282px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 6px;
}

.figma-chart-month .bar {
  min-height: 24px;
  border-radius: 999px 999px 0 0;
}

.figma-chart-month .freight {
  background: #8b5cf6;
}

.figma-chart-month .storage {
  background: #34d399;
}

.figma-chart-month .customs {
  background: #ffb68e;
}

.figma-chart-month small {
  grid-column: 1 / -1;
  margin-top: 12px;
  color: #cbc3d5;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
}

.figma-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.figma-chart-legend span {
  font-size: 10px;
}

.figma-portal-actions h2,
.figma-alerts-panel h2 {
  margin: 0 0 16px;
  font-size: 14px;
}

.figma-portal-actions > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.figma-client-quick-action {
  min-height: 131px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  background: #1b1a26;
  color: #ffffff;
  text-align: left;
}

.figma-client-quick-action span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.18);
  color: #d0bcff;
  font-size: 11px;
  font-weight: 900;
}

.figma-client-quick-action strong {
  font-size: 11px;
}

.figma-client-status {
  grid-column: 3;
  grid-row: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #0d0d18;
}

.figma-live-orders {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
}

.figma-side-head span,
.figma-order-id span {
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(139, 92, 246, 0.16);
  color: #d0bcff;
  font-size: 10px;
  font-weight: 900;
}

.figma-live-order-card {
  display: grid;
  gap: 18px;
  padding: 16px;
}

.figma-order-id strong {
  color: #d0bcff;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.figma-route-mini div {
  display: grid;
  gap: 5px;
  text-align: center;
}

.figma-route-mini span {
  color: #cbc3d5;
  font-size: 9px;
}

.figma-route-mini strong {
  font-size: 11px;
}

.figma-live-order-card p {
  margin: 0;
  font-size: 10px;
}

.figma-alerts-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(41, 41, 53, 0.4);
}

.figma-alerts-panel article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.figma-alerts-panel article strong {
  font-size: 11px;
}

.figma-alerts-panel article span {
  color: #cbc3d5;
  font-size: 10px;
  line-height: 1.5;
}

.figma-alerts-panel .danger strong {
  color: #ffb4ab;
}

.figma-alerts-panel .warning strong {
  color: #ffb68e;
}

.figma-alerts-panel .success strong {
  color: #34d399;
}

.site-about-copy {
  max-width: 760px;
}

.site-values {
  display: grid;
  gap: 12px;
}

.site-values article {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
}

.site-values strong {
  font-size: 18px;
}

.site-values span {
  color: #667085;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid #d9e1e5;
  background: #ffffff;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span,
.site-footer a {
  color: #667085;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  background: var(--nav);
  color: #f9fafb;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f6c453;
  color: #111827;
  font-weight: 800;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
}

.brand-subtitle {
  color: #aeb8c7;
  font-size: 12px;
  margin-top: 2px;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-label {
  color: #8d99aa;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 4px 10px;
}

.nav-button {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  color: #d5dbe5;
  text-align: left;
}

.nav-button:hover,
.nav-button.active {
  background: var(--nav-soft);
  color: #ffffff;
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.nav-count {
  font-size: 11px;
  color: #9ca3af;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 68px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px 28px;
}

.crumb {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-title {
  font-size: 22px;
  line-height: 1.2;
  margin: 4px 0 0;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select,
.search,
.input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.search {
  width: 260px;
}

.content {
  padding: 26px 28px 42px;
}

.band {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 -28px 24px;
  padding: 20px 28px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-height: 96px;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
  margin-top: 8px;
}

.metric-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.mode-bar,
.client-hero {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mode-copy {
  font-weight: 800;
  margin-top: 4px;
}

.mode-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.service-strip {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: -4px 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.service-command {
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  color: #344054;
}

.repository-line {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.service-message {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.validation-panel {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.validation-panel.allowed {
  border-color: #86efac;
}

.validation-panel.blocked {
  border-color: #fca5a5;
}

.validation-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.validation-title {
  margin-top: 4px;
  font-weight: 800;
}

.validation-message {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.validation-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.validation-check {
  min-height: 44px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.command-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.order-intake-grid,
.order-intake-preview {
  margin-bottom: 16px;
}

.order-intake-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.order-intake-form .field.wide {
  grid-column: 1 / -1;
}

.order-textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding-top: 10px;
}

.order-intake-actions {
  margin-top: 16px;
}

.credit-context {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.order-validation-checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.validation-check.passed {
  background: #ecfdf3;
  color: #067647;
}

.validation-check.failed {
  background: #fef3f2;
  color: #b42318;
}

.compact-code-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.outbox-actions {
  margin-top: 12px;
}

.outbox-history-title {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--muted);
}

.outbox-history,
.outbox-history-empty {
  margin-top: 8px;
}

.outbox-history-empty {
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.outbox-attempt,
.outbox-review,
.command-alert-row {
  display: grid;
  grid-template-columns: 44px 1fr 86px 112px 1.4fr;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.command-alert-list {
  display: grid;
  gap: 8px;
}

.command-alert-row {
  grid-template-columns: minmax(210px, 1fr) 88px 94px minmax(140px, 0.8fr) minmax(220px, 1.3fr);
  cursor: pointer;
}

.command-alert-row:hover,
.command-alert-row.selected {
  background: #f8fafc;
}

.delivery-attempt-list {
  display: grid;
  gap: 8px;
}

.delivery-audit-list {
  display: grid;
  gap: 8px;
}

.delivery-attempt-row,
.delivery-audit-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 150px minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(180px, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.delivery-sim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.mini-btn {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef4ff;
  color: #3538cd;
  font-size: 11px;
  font-weight: 900;
}

.mini-btn.secondary {
  background: #ffffff;
  color: #475467;
}

.provider-meta {
  margin-top: 4px;
  color: #3538cd;
  font-size: 11px;
  font-weight: 900;
}

.provider-reconciliation-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.provider-reconciliation-row {
  display: grid;
  grid-template-columns: 1.1fr 120px 170px 1.6fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.provider-escalation-row {
  display: grid;
  grid-template-columns: 1.1fr 180px 170px 1.6fr 1.4fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #fecdca;
  border-radius: 8px;
  background: #fffbfa;
}

.provider-redispatch-row {
  display: grid;
  grid-template-columns: 1.3fr 150px 1.7fr 170px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf5;
}

.provider-redispatch-reconciliation-row {
  display: grid;
  grid-template-columns: 1.5fr 130px 1.4fr 1.4fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fffb;
}

.provider-sla-row {
  display: grid;
  grid-template-columns: 1.3fr 170px 1.4fr 1fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbff;
}

.provider-sla-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.provider-sla-export-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.provider-sla-metric {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.provider-sla-dashboard-row {
  display: grid;
  grid-template-columns: 1.3fr 170px 110px 1.4fr 1.8fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.provider-sla-filter-bar {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin: 12px 0;
}

.provider-sla-date-bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 110px;
  gap: 10px;
  align-items: end;
  margin: 12px 0 0;
}

.provider-sla-pagination {
  margin: 8px 0 12px;
}

.provider-sla-drilldown-row {
  display: grid;
  grid-template-columns: 1.4fr 130px 120px 170px 1.8fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.provider-sla-drilldown-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.provider-sla-drilldown-row .mini-btn {
  justify-self: end;
}

.provider-sla-drilldown-row.selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.provider-sla-issue-detail {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  min-width: 0;
  overflow-wrap: anywhere;
}

.provider-sla-download-audit-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.provider-sla-download-audit-row {
  display: grid;
  grid-template-columns: 1.2fr 100px 1.4fr 1.8fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.provider-sla-download-audit-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.provider-sla-download-audit-row span {
  color: var(--muted);
  font-size: 12px;
}

.provider-sla-distribution-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.provider-sla-distribution-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.provider-sla-distribution-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.provider-sla-distribution-row span {
  color: var(--muted);
  font-size: 12px;
}

.provider-sla-recipient-access-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.provider-sla-recipient-access-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.5fr 1.6fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.provider-sla-recipient-access-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.provider-sla-recipient-access-row span {
  color: var(--muted);
  font-size: 12px;
}

.command-center-contract {
  margin-top: 14px;
}

.incident-report-summary {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.incident-report-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.incident-report-card {
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.incident-report-card:hover,
.incident-report-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.incident-report-card.blocked {
  border-color: #fca5a5;
}

.incident-report-card.blocked.selected,
.incident-report-card.blocked:hover {
  border-color: #b42318;
  background: #fff1f2;
}

.incident-report-card.contained,
.incident-report-card.closed {
  border-color: #86efac;
}

.incident-report-card.contained.selected,
.incident-report-card.contained:hover,
.incident-report-card.closed.selected,
.incident-report-card.closed:hover {
  border-color: #16a34a;
  background: #f0fdf4;
}

.incident-report-line {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.incident-drilldown {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.incident-drilldown-table {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.incident-drilldown-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(140px, 0.9fr) minmax(100px, 0.7fr) 80px minmax(190px, 1.2fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.incident-drilldown-row.data {
  width: 100%;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.incident-drilldown-row.data:hover,
.incident-drilldown-row.data.selected {
  background: #f8fafc;
}

.incident-drilldown-row.head {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.incident-drilldown-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.incident-drilldown-empty {
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.incident-report-contract {
  border-color: #bfdbfe;
}

.incident-drilldown-contract {
  border-color: #c7d2fe;
}

.incident-read-detail {
  margin-top: 14px;
  border-color: #c7d2fe;
}

.incident-detail-contract {
  border-color: #c7d2fe;
}

.incident-timeline {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.incident-timeline-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.incident-timeline-item > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.incident-timeline-item strong {
  display: block;
  color: #344054;
  font-size: 13px;
}

.incident-timeline-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.incident-timeline-item p {
  margin: 6px 0 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
}

.incident-timeline-contract {
  border-color: #c7d2fe;
}

.incident-evidence {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.incident-evidence-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.incident-evidence-tabs .active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.incident-evidence-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.incident-evidence-item {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.incident-evidence-item:hover,
.incident-evidence-item.selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.incident-evidence-item strong,
.incident-evidence-item small,
.incident-evidence-item span {
  display: block;
}

.incident-evidence-item strong {
  color: #344054;
  font-size: 12px;
}

.incident-evidence-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.incident-evidence-item span {
  margin-top: 6px;
  color: #475467;
  font-size: 12px;
}

.incident-evidence-contract {
  border-color: #c7d2fe;
}

.incident-evidence-drawer {
  margin-top: 14px;
  border-color: #bfdbfe;
}

.evidence-access-policy {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.evidence-access-policy.allowed {
  border-color: #86efac;
}

.evidence-access-policy.limited {
  border-color: #fed7aa;
}

.evidence-access-policy p {
  margin: 8px 0 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
}

.evidence-access-workflow {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #ffffff;
}

.evidence-access-workflow.pending {
  border-color: #fbbf24;
  background: #fffbeb;
}

.evidence-access-workflow.approved {
  border-color: #86efac;
  background: #f0fdf4;
}

.evidence-access-workflow.rejected {
  border-color: #fecdd3;
  background: #fff1f2;
}

.evidence-access-workflow p {
  margin: 8px 0 12px;
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
}

.evidence-access-workflow textarea {
  min-height: 76px;
}

.evidence-request-grid {
  margin-bottom: 12px;
}

.evidence-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.evidence-access-request-contract {
  border-color: #fbbf24;
}

.evidence-redaction-profile {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
}

.evidence-redaction-profile p {
  margin: 8px 0 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
}

.evidence-redaction-grid {
  margin-top: 10px;
}

.evidence-custody-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: #eef2ff;
}

.evidence-custody-panel.blocked {
  border-color: #fecdd3;
  background: #fff1f2;
}

.evidence-custody-panel p {
  margin: 8px 0 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
}

.evidence-custody-grid {
  margin-top: 10px;
}

.evidence-hash-line {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.evidence-hash-line.expected {
  border-color: #fecdd3;
  color: #b42318;
}

.evidence-status-control {
  margin-top: 12px;
}

.custody-blocked-alert {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: #ffffff;
  color: #b42318;
  font-size: 12px;
}

.custody-blocked-alert span {
  color: #475467;
  font-weight: 800;
}

.alert-evidence-panel {
  margin-bottom: 12px;
}

.incident-evidence-drawer-contract {
  border-color: #bfdbfe;
}

.command-alert-detail {
  margin-top: 14px;
  border-color: #fecdd3;
}

.incident-escalation-contract {
  border-color: #fca5a5;
}

.incident-assignment-contract {
  border-color: #fed7aa;
}

.incident-containment-contract {
  border-color: #bbf7d0;
}

.incident-blocker-contract {
  border-color: #fca5a5;
}

.incident-closure-contract {
  border-color: #86efac;
}

.incident-assignment-action {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.security-resolution-form {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.resolution-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(240px, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.resolution-reason {
  width: 100%;
  min-height: 82px;
  padding: 10px 12px;
  resize: vertical;
}

.attempt-number {
  color: var(--muted);
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.audit-draft-panel,
.event-draft-panel,
.outbox-record-panel,
.audit-log-panel,
.audit-search-contract,
.audit-detail-contract,
.audit-denied-contract,
.audit-detail-panel {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.audit-draft-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.audit-log-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.audit-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(170px, 1.2fr) repeat(2, minmax(126px, 0.8fr)) 92px auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.audit-filter-field {
  display: grid;
  gap: 6px;
}

.audit-filter-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.toggle-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.toggle-row span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.audit-reference-field input {
  min-width: 0;
}

.audit-page-size-field {
  min-width: 76px;
}

.audit-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 0;
}

.audit-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.audit-log-row {
  display: grid;
  grid-template-columns: 36px minmax(220px, 1fr) minmax(260px, 0.9fr) 170px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.audit-log-row:hover,
.audit-log-row.selected {
  background: #f8fafc;
}

.audit-log-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f2f4f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.audit-log-action {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.audit-log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.audit-log-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: #344054;
  font-size: 11px;
  font-weight: 900;
}

.audit-log-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.audit-detail-panel {
  border-color: #b2ddff;
}

.audit-search-contract,
.audit-detail-contract {
  margin-top: 12px;
  margin-bottom: 12px;
  background: #fbfcff;
}

.audit-denied-contract {
  margin-top: 12px;
  margin-bottom: 12px;
  border-color: #fecdca;
  background: #fffbfa;
}

.audit-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.audit-draft-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.audit-code {
  max-height: 260px;
  overflow: auto;
  margin-top: 12px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.segmented button {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented button.selected {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.client-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.client-stage {
  min-height: 92px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  font-weight: 800;
}

.client-stage.complete {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.client-step {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: #eef2f7;
  color: #344054;
  font-size: 12px;
}

.client-stage.complete .client-step {
  background: #16a34a;
  color: #ffffff;
}

.client-message {
  min-height: 52px;
  display: flex;
  align-items: center;
  border-left: 4px solid var(--blue);
  background: #eff8ff;
  padding: 14px;
  border-radius: 8px;
  font-weight: 800;
}

.client-billing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.client-billing-card {
  min-height: 100%;
}

.client-total {
  font-size: 28px;
  font-weight: 900;
  margin: 4px 0 16px;
}

.client-payment-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.client-document-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.client-document-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 24px;
}

.client-document-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.client-document-brand {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-document-title {
  margin-top: 4px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
}

.client-document-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.client-document-lines {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.client-document-row {
  display: grid;
  grid-template-columns: 1fr minmax(140px, auto);
  gap: 16px;
  padding: 12px 14px;
  border-top: 1px solid #eef2f7;
  font-size: 13px;
  font-weight: 800;
}

.client-document-row:first-child {
  border-top: 0;
}

.client-document-row.head {
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.client-document-row span:last-child {
  text-align: right;
}

.client-document-row.total {
  background: #101828;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.client-document-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
}

.client-document-export {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #b2ddff;
  border-radius: 8px;
  background: #eff8ff;
}

.client-document-export-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.client-document-contract {
  margin-top: 16px;
}

.client-notification-panel {
  margin: 16px 0;
}

.client-notification-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(240px, 0.9fr) minmax(280px, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.client-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.client-notification-draft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.client-notification-draft {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.client-notification-message {
  min-height: 64px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.client-notification-audit-history {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.client-notification-audit-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-notification-filter-bar {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(130px, 0.8fr) minmax(220px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
  margin: 12px 0;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.client-notification-audit-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(150px, 1fr) minmax(90px, 0.6fr) minmax(110px, 0.7fr) minmax(100px, 0.7fr) minmax(260px, 1.8fr);
  gap: 10px;
  min-width: 920px;
  padding: 11px 12px;
  border-top: 1px solid #eef2f7;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.client-notification-audit-row:first-child {
  border-top: 0;
}

.client-notification-audit-row.head {
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.client-notification-audit-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.client-notification-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.record-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.record-card.selected-record {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.restricted-card {
  background: #f9fafb;
  color: #667085;
  box-shadow: none;
}

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

.detail-grid {
  display: grid;
  gap: 10px;
}

.detail-field {
  display: grid;
  gap: 3px;
  border-top: 1px solid #eef2f7;
  padding-top: 9px;
}

.detail-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-value {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: 1.1fr 0.9fr;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-size: 15px;
  font-weight: 800;
}

.panel-body {
  padding: 18px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.module-tile,
.entity-row,
.backlog-item,
.flow-row,
.chain-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.module-tile {
  min-height: 156px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.module-code {
  width: 44px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.module-name {
  font-weight: 800;
  line-height: 1.25;
}

.module-owner {
  color: var(--muted);
  font-size: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef2f7;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}

.tag.critical {
  background: #fee4e2;
  color: var(--red);
}

.tag.ready {
  background: #dcfae6;
  color: #067647;
}

.tag.warn {
  background: #fef0c7;
  color: var(--amber);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.table tr:last-child td {
  border-bottom: 0;
}

.field-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 2px 4px 2px 0;
  border-radius: 6px;
  padding: 2px 7px;
  background: #f2f4f7;
  color: #344054;
  font-size: 11px;
  font-weight: 700;
}

.entity-row {
  display: grid;
  grid-template-columns: 160px 1fr 130px;
  gap: 14px;
  padding: 14px;
  align-items: start;
}

.entity-name {
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

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

.flow-row {
  display: grid;
  grid-template-columns: 150px 1fr 120px;
  gap: 14px;
  padding: 14px;
  align-items: center;
}

.flow-state {
  font-weight: 800;
}

.flow-arrow {
  color: var(--muted);
  font-weight: 700;
}

.backlog {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stepper,
.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-card,
.timeline-item,
.exception-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.step-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.step-card.active-step {
  border-color: #84caff;
  background: #eff8ff;
}

.timeline-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--green);
}

.inspect-btn {
  margin-top: 10px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 24, 40, 0.42);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(920px, 100%);
  height: 100%;
  overflow: auto;
  background: #ffffff;
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(16, 24, 40, 0.18);
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.drawer-body {
  padding: 22px 24px 32px;
}

.drawer-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.drawer-subtitle {
  margin-bottom: 10px;
}

.exception-panel {
  margin-top: 16px;
}

.exception-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.exception-card,
.recovery-card {
  min-height: 184px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.recovery-card {
  min-height: 116px;
  flex-direction: row;
  align-items: center;
  border-color: #84caff;
  background: #eff8ff;
}

.exception-card.active-exception {
  border-color: #fda29b;
  background: #fff5f3;
}

.backlog-item {
  padding: 14px;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  align-items: center;
}

.priority {
  width: 58px;
  min-height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #3538cd;
  font-weight: 800;
  font-size: 12px;
}

.btn {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 800;
}

.btn.secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.danger {
  background: var(--red);
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
}

.login-visual {
  background:
    linear-gradient(rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.78)),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-visual h1 {
  font-size: 44px;
  max-width: 760px;
  line-height: 1.05;
  margin: 0;
}

.login-card {
  background: #ffffff;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  background: var(--green);
}

.chain {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chain-item {
  padding: 12px 14px;
  font-weight: 800;
  color: #344054;
}

.code-block {
  margin: 0;
  overflow: auto;
  max-height: 560px;
  border-radius: 8px;
  background: #101828;
  color: #e4e7ec;
  padding: 16px;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .site-header,
  .site-hero,
  .site-stat-band,
  .site-feature-grid,
  .site-service-grid,
  .site-process-band,
  .site-about-layout,
  .platform-hero,
  .platform-shell,
  .platform-shell-hero,
  .platform-shell-landing-hero,
  .platform-shell-content-grid,
  .platform-shell-module-grid,
  .platform-shell-landing-metrics,
  .platform-shell-landing-grid,
  .enterprise-onboarding-page,
  .onboarding-cinematic-hero,
  .onboarding-grid,
  .onboarding-readiness-grid,
  .onboarding-checklist,
  .onboarding-form-grid,
  .cmd-dashboard,
  .cmd-hero,
  .cmd-kpi-grid,
  .cmd-layout-grid,
  .cmd-monitor-grid,
  .cmd-notification-grid,
  .cmd-map-placeholder,
  .cmd-incident-grid,
  .cmd-escalation-row,
  .cmd-feed-row,
  .platform-module-grid,
  .platform-build-strip,
  .contact-hero,
  .contact-info-grid,
  .client-portal-hero,
  .client-portal-shell,
  .client-portal-status-grid,
  .client-portal-main-grid,
  .client-portal-main-grid.lower,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    gap: 14px;
  }

  .platform-shell-sidebar,
  .platform-shell-topbar,
  .cmd-sidebar,
  .cmd-topbar {
    position: static;
  }

  .platform-shell-sidebar,
  .onboarding-rail,
  .cmd-sidebar {
    height: auto;
  }

  .platform-shell-side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-shell-side-nav p {
    grid-column: 1 / -1;
  }

  .platform-shell-topbar,
  .platform-shell-top-actions,
  .platform-shell-section-head,
  .cmd-topbar,
  .cmd-top-actions,
  .cmd-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-shell-breadcrumb,
  .cmd-breadcrumb {
    flex-wrap: wrap;
  }

  .platform-shell-search,
  .platform-shell-role-select,
  .platform-shell-top-link,
  .platform-shell-bell,
  .cmd-search,
  .cmd-top-actions button {
    width: 100%;
    max-width: none;
  }

  .platform-shell-landing-metrics,
  .platform-shell-landing-grid,
  .platform-shell-landing-flow {
    margin-right: 18px;
    margin-left: 18px;
  }

  .cmd-alert-item,
  .cmd-monitor-row {
    grid-template-columns: 1fr;
  }

  .cmd-sla-pill {
    justify-self: stretch;
    text-align: center;
  }

  .site-nav {
    overflow-x: auto;
  }

  .client-portal-sidebar {
    position: static;
  }

  .client-portal-doc-row {
    grid-template-columns: 1fr;
  }

  .client-portal-actions {
    grid-template-columns: 1fr;
  }

  .figma-client-portal {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-content: stretch;
  }

  .figma-client-topbar,
  .figma-client-ai,
  .figma-client-main,
  .figma-client-status {
    grid-column: 1;
    grid-row: auto;
  }

  .figma-client-topbar,
  .figma-client-brand,
  .figma-client-tools,
  .figma-card-head,
  .figma-client-welcome {
    align-items: stretch;
    flex-direction: column;
  }

  .figma-client-brand nav,
  .figma-chip-row,
  .figma-chart-legend {
    overflow-x: auto;
  }

  .figma-client-topbar {
    padding: 16px;
  }

  .figma-client-brand nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .figma-client-ai,
  .figma-client-main,
  .figma-client-status {
    min-width: 0;
  }

  .figma-client-main {
    padding: 20px;
  }

  .figma-client-search {
    width: 100%;
  }

  .figma-client-kpis,
  .figma-portal-actions > div,
  .ai-insight-grid,
  .dispatch-optimization-grid,
  .maintenance-profit-grid,
  .maintenance-score-grid,
  .billing-hero,
  .billing-kpi-grid,
  .billing-plan-grid,
  .billing-subscription-grid,
  .billing-feature-grid,
  .billing-usage-row {
    grid-template-columns: 1fr;
  }

  .figma-chart {
    overflow-x: auto;
    grid-template-columns: repeat(6, 70px);
  }

  .site-header-actions,
  .site-user-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .site-header-action,
  .platform-shell-user-pill,
  .site-user-chip {
    width: 100%;
  }

  .site-hero {
    min-height: auto;
  }

  .site-hero-panel {
    min-height: 420px;
  }

  .site-map-card {
    min-height: 420px;
  }

  .platform-preview-window {
    min-height: 420px;
  }

  .platform-preview-grid {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .platform-preview-metrics {
    grid-template-columns: 1fr;
  }

  .site-process-steps {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .site-actions {
    flex-direction: column;
  }

  .sidebar {
    position: static;
  }

	  .summary-grid,
	  .incident-report-grid,
		  .provider-sla-dashboard-grid,
		  .provider-sla-export-grid,
		  .client-billing-grid,
		  .client-document-meta,
		  .client-document-export-grid,
		  .client-notification-layout,
		  .client-notification-draft-grid,
		  .client-notification-audit-summary,
		  .client-notification-timeline,
		  .order-intake-form,
		  .credit-context,
		  .compact-code-grid,
		  .record-grid,
  .client-progress,
  .validation-checks,
  .resolution-grid,
  .audit-draft-grid,
  .audit-evidence-grid,
  .artifact-grid,
  .grid.two,
  .grid.three,
  .module-grid,
  .exception-grid,
  .login-wrap {
    grid-template-columns: 1fr;
  }

  .topbar,
  .entity-row,
  .flow-row,
  .backlog-item,
  .service-strip,
  .client-document-export,
  .client-channel-grid,
  .drawer-summary,
  .audit-filter-bar,
  .client-notification-filter-bar,
  .audit-log-row,
  .incident-drilldown-row,
  .provider-reconciliation-row,
	  .provider-escalation-row,
	  .provider-redispatch-row,
	  .provider-redispatch-reconciliation-row,
	  .provider-sla-row,
	  .provider-sla-dashboard-row,
	  .provider-sla-date-bar,
	  .provider-sla-filter-bar,
	  .provider-sla-drilldown-row,
	  .provider-sla-download-audit-row,
	  .provider-sla-distribution-row,
	  .provider-sla-recipient-access-row {
	    grid-template-columns: 1fr;
	  }

  .toolbar,
  .mode-actions,
  .audit-pagination,
  .mode-bar,
  .client-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .login-visual {
    min-height: 320px;
  }

  .service-message {
    text-align: left;
  }

  .audit-log-time {
    text-align: left;
  }

  .outbox-attempt {
    grid-template-columns: 1fr;
  }

  .outbox-review {
    grid-template-columns: 1fr;
  }
}

/* Final cascade overrides for the cinematic refinement layer. */
.platform-shell,
.cmd-dashboard,
.enterprise-onboarding-page,
.figma-client-portal,
.billing-module,
.org-settings-page {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), transparent 34%),
    linear-gradient(225deg, rgba(15, 118, 110, 0.08), transparent 38%),
    var(--jas-surface-100);
}

.platform-shell-sidebar,
.cmd-sidebar,
.onboarding-rail {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%),
    #0b1220;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.platform-shell-topbar,
.cmd-topbar,
.figma-client-topbar {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.84);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px) saturate(140%);
}

.platform-shell-status-panel div,
.platform-shell-workspace,
.platform-shell-notification-center,
.platform-shell-module-card,
.platform-shell-landing-status,
.platform-shell-landing-metric,
.platform-shell-landing-card,
.platform-shell-landing-flow,
.cmd-architecture-card,
.cmd-panel,
.cmd-kpi-card,
.ai-recommendations-panel,
.ai-insight-card,
.dispatch-optimization-panel,
.dispatch-optimization-card,
.maintenance-profit-panel,
.maintenance-profit-card,
.billing-hero > div,
.billing-hero > aside,
.billing-panel,
.billing-kpi-grid article,
.billing-plan-card,
.onboarding-cinematic-hero > div,
.onboarding-cinematic-hero > aside,
.onboarding-panel,
.onboarding-score-card,
.onboarding-check-item,
.tenant-settings-panel,
.tenant-isolation-strip article,
.jas-map-panel,
.figma-client-kpi-card,
.figma-spend-card,
.figma-live-order-card,
.figma-alerts-panel,
.figma-client-ai,
.figma-client-status {
  border-color: var(--jas-line-soft);
  border-radius: var(--jas-radius-lg);
  box-shadow: var(--jas-shadow-card);
}

.platform-shell-module-card,
.cmd-kpi-card,
.cmd-alert-item,
.ai-insight-card,
.dispatch-optimization-card,
.maintenance-profit-card,
.billing-plan-card,
.onboarding-check-item,
.figma-client-kpi-card,
.figma-client-quick-action {
  position: relative;
  overflow: hidden;
  transition:
    transform var(--jas-motion-med),
    box-shadow var(--jas-motion-med),
    border-color var(--jas-motion-med);
}

.platform-shell-module-card::before,
.cmd-kpi-card::before,
.ai-insight-card::before,
.dispatch-optimization-card::before,
.maintenance-profit-card::before,
.billing-plan-card::before,
.onboarding-check-item::before,
.figma-client-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--jas-teal), var(--jas-blue), var(--jas-gold));
  opacity: 0.9;
}

.platform-shell-module-card:hover,
.cmd-kpi-card:hover,
.cmd-alert-item:hover,
.ai-insight-card:hover,
.dispatch-optimization-card:hover,
.maintenance-profit-card:hover,
.billing-plan-card:hover,
.onboarding-check-item:hover,
.figma-client-kpi-card:hover,
.figma-client-quick-action:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--jas-shadow-lift);
  transform: translateY(-2px);
}

.platform-shell-hero h1,
.platform-shell-landing-title-row h1,
.cmd-hero h1,
.onboarding-cinematic-hero h1 {
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: 0;
}

.platform-shell-hero p,
.platform-shell-landing-hero p,
.cmd-hero p,
.onboarding-cinematic-hero p {
  font-size: 17px;
  line-height: 1.66;
}

.live-skeleton {
  gap: var(--jas-space-3);
  padding: var(--jas-space-4);
  border: 1px solid var(--jas-line-soft);
  border-radius: var(--jas-radius-lg);
  background: rgba(255, 255, 255, 0.68);
}

.live-skeleton span {
  height: 16px;
  background:
    linear-gradient(90deg, #e2e8f0 0%, #ffffff 48%, #e2e8f0 100%);
  background-size: 240% 100%;
}

.jas-static-map,
.cmd-map-placeholder {
  border-color: rgba(15, 23, 42, 0.12);
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #f8fafc 0%, #eef6ff 38%, #eaf7f2 72%, #fff8e1 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

.billing-meter,
.onboarding-progress-track {
  height: 12px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  background: #e6edf2;
}

.billing-meter span,
.onboarding-progress-track span {
  background: linear-gradient(90deg, var(--jas-violet), var(--jas-blue), var(--jas-teal));
}

.investor-demo-page {
  --platform-bg: #eef4f6;
}

.investor-demo-hero,
.investor-demo-main-panel,
.investor-demo-kpis article {
  border: 1px solid var(--jas-line-soft);
  border-radius: var(--jas-radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--jas-shadow-card);
}

.investor-demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 30px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.92), rgba(15, 118, 110, 0.78)),
    linear-gradient(90deg, rgba(244, 197, 66, 0.18), transparent);
  color: #ffffff;
}

.investor-demo-hero h1 {
  max-width: 900px;
  margin: 14px 0 12px;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: 0;
}

.investor-demo-hero p {
  max-width: 840px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.64;
}

.investor-demo-hero aside {
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--jas-radius-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.investor-demo-hero aside span,
.investor-demo-hero aside small {
  color: rgba(255, 255, 255, 0.74);
}

.investor-demo-hero aside strong {
  font-size: 28px;
  letter-spacing: 0;
}

.investor-demo-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.investor-demo-kpis article {
  padding: 18px;
}

.investor-demo-controls,
.demo-walkthrough-overlay,
.investor-demo-runtime {
  border: 1px solid var(--jas-line-soft);
  border-radius: var(--jas-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--jas-shadow-card);
}

.demo-walkthrough-overlay {
  position: sticky;
  top: 12px;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-color: rgba(37, 99, 235, 0.16);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(15, 118, 110, 0.08)),
    rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.demo-walkthrough-overlay span,
.investor-demo-controls span,
.investor-demo-runtime span {
  color: var(--jas-teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-walkthrough-overlay h2 {
  margin: 8px 0 6px;
  color: var(--jas-text-950);
  font-size: 24px;
  letter-spacing: 0;
}

.demo-walkthrough-overlay p,
.demo-walkthrough-overlay small,
.investor-demo-controls small,
.investor-demo-runtime small {
  color: var(--jas-text-500);
}

.demo-walkthrough-overlay button,
.investor-demo-control-actions button,
.investor-demo-trigger-grid button,
.investor-demo-jump {
  min-height: 42px;
  border: 1px solid var(--jas-line-soft);
  border-radius: var(--jas-radius-sm);
  background: #ffffff;
  color: var(--jas-text-900);
  font-weight: 850;
  cursor: pointer;
  transition:
    transform var(--jas-motion-fast),
    border-color var(--jas-motion-fast),
    box-shadow var(--jas-motion-fast),
    background var(--jas-motion-fast);
}

.demo-walkthrough-overlay button:hover,
.investor-demo-control-actions button:hover,
.investor-demo-trigger-grid button:hover,
.investor-demo-jump:hover,
.investor-demo-jump.active {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--jas-shadow-focus);
}

.investor-demo-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.investor-demo-controls strong {
  display: block;
  margin: 5px 0;
  color: var(--jas-text-950);
}

.investor-demo-control-actions,
.investor-demo-trigger-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.demo-progress-track {
  height: 10px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.demo-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--jas-blue), var(--jas-teal), var(--jas-gold));
  transition: width var(--jas-motion-med);
}

.investor-demo-kpis span,
.investor-demo-kpis small,
.investor-demo-scenario-grid span,
.investor-demo-feed small,
.investor-demo-main-panel p {
  color: var(--jas-text-500);
}

.investor-demo-kpis strong {
  display: block;
  margin: 8px 0;
  color: var(--jas-text-950);
  font-size: 30px;
  letter-spacing: 0;
}

.investor-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 18px;
}

.investor-demo-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.investor-demo-main-panel {
  padding: 22px;
}

.investor-demo-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.investor-demo-scenario-grid article {
  padding: 18px;
  border: 1px solid var(--jas-line-soft);
  border-radius: var(--jas-radius-md);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.investor-demo-scenario-grid strong,
.investor-demo-feed strong,
.investor-demo-main-panel h2,
.investor-demo-main-panel > strong {
  color: var(--jas-text-950);
}

.investor-demo-feed {
  display: grid;
  gap: 12px;
}

.investor-demo-feed-note {
  margin: 0;
  color: var(--jas-text-500);
  font-size: 13px;
  line-height: 1.5;
}

.investor-demo-feed article {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--jas-line-soft);
  border-radius: var(--jas-radius-md);
  background: #f8fafc;
}

.investor-demo-feed article.manual {
  border-color: rgba(180, 35, 24, 0.18);
  background: linear-gradient(90deg, rgba(255, 235, 233, 0.82), #ffffff);
}

.demo-feed-pulse {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--jas-teal);
  box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.34);
  animation: realtime-pulse 1.8s ease infinite;
}

.investor-demo-feed article.manual .demo-feed-pulse {
  background: var(--jas-red);
}

.investor-demo-jump-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.investor-demo-jump {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  text-align: left;
}

.investor-demo-jump span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--jas-blue-soft);
  color: var(--jas-blue);
  font-size: 12px;
}

.investor-demo-jump.active {
  background: linear-gradient(135deg, var(--jas-blue-soft), var(--jas-teal-soft));
}

.investor-demo-trigger-grid button {
  flex: 1 1 120px;
  padding: 0 12px;
}

.investor-demo-runtime {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  padding: 18px;
}

.investor-demo-map-playback {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--jas-radius-lg);
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #eef6ff, #eaf7f2 60%, #fff8e1);
  background-size: 36px 36px, 36px 36px, auto;
}

.demo-map-route {
  position: absolute;
  inset: 38% 12% auto 12%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--jas-blue), var(--jas-teal), var(--jas-gold));
  transform: rotate(-10deg);
}

.demo-map-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--jas-red);
  box-shadow: 0 12px 26px rgba(180, 35, 24, 0.24);
  transition:
    left var(--jas-motion-med),
    top var(--jas-motion-med);
}

.investor-demo-map-playback strong,
.investor-demo-map-playback small {
  position: absolute;
  left: 18px;
}

.investor-demo-map-playback strong {
  bottom: 42px;
  color: var(--jas-text-950);
}

.investor-demo-map-playback small {
  bottom: 20px;
  color: var(--jas-text-500);
}

.investor-demo-escalation {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.investor-demo-escalation strong {
  color: var(--jas-text-950);
  font-size: 28px;
  letter-spacing: 0;
}

.cmd-runtime {
  --cmd-runtime-bg: #030712;
  --cmd-runtime-surface: #0b1220;
  --cmd-runtime-surface-2: #111a2f;
  --cmd-runtime-line: rgba(148, 163, 184, 0.22);
  --cmd-runtime-text: #e2e8f0;
  --cmd-runtime-muted: #94a3b8;
  --cmd-runtime-good: #10b981;
  --cmd-runtime-warn: #f59e0b;
  --cmd-runtime-danger: #ef4444;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.2), transparent 45%), var(--cmd-runtime-bg);
}

.cmd-runtime .cmd-main,
.cmd-runtime .cmd-sidebar,
.cmd-runtime .cmd-topbar,
.cmd-runtime .cmd-panel,
.cmd-runtime .cmd-architecture-card,
.cmd-runtime .cmd-live-card {
  background: var(--cmd-runtime-surface);
  border-color: var(--cmd-runtime-line);
  color: var(--cmd-runtime-text);
}

.cmd-runtime .cmd-panel-head span,
.cmd-runtime .cmd-panel-head h2,
.cmd-runtime .cmd-breadcrumb,
.cmd-runtime .cmd-breadcrumb a,
.cmd-runtime .cmd-hero p,
.cmd-runtime .cmd-runtime-card small {
  color: var(--cmd-runtime-muted);
}

.cmd-runtime-grid {
  display: grid;
  gap: 16px;
  margin: 16px 0 0;
}

.cmd-runtime-grid.kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cmd-runtime-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cmd-runtime-card {
  border: 1px solid var(--cmd-runtime-line);
  border-radius: 12px;
  background: var(--cmd-runtime-surface-2);
  padding: 16px;
  display: grid;
  gap: 8px;
}

.cmd-runtime-card span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cmd-runtime-muted);
}

.cmd-runtime-card strong {
  font-size: 30px;
  line-height: 1.1;
}

.cmd-runtime-card.good strong {
  color: var(--cmd-runtime-good);
}

.cmd-runtime-card.warn strong {
  color: var(--cmd-runtime-warn);
}

.cmd-runtime-card.danger strong {
  color: var(--cmd-runtime-danger);
}

.cmd-runtime-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cmd-runtime-badge.good {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.2);
}

.cmd-runtime-badge.warn {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.2);
}

.cmd-runtime-badge.danger {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.2);
}

.cmd-runtime-badge.neutral {
  color: #cbd5e1;
  background: rgba(100, 116, 139, 0.2);
}

.cmd-runtime-table-wrap {
  overflow: auto;
}

.cmd-runtime-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.cmd-runtime-table th,
.cmd-runtime-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--cmd-runtime-line);
  text-align: left;
  color: var(--cmd-runtime-text);
  font-size: 13px;
}

.cmd-runtime-table th {
  color: var(--cmd-runtime-muted);
  font-weight: 700;
}

.cmd-runtime-empty {
  border: 1px dashed var(--cmd-runtime-line);
  border-radius: 10px;
  padding: 18px;
  color: var(--cmd-runtime-muted);
  background: rgba(15, 23, 42, 0.35);
}

.cmd-live-stream-panel {
  margin-top: 16px;
}

.cmd-live-stream-detail,
.cmd-live-stream-meta {
  margin: 0 0 10px;
  color: var(--cmd-runtime-muted);
}

@media (max-width: 1180px) {
  .platform-shell-hero h1,
  .platform-shell-landing-title-row h1,
  .cmd-hero h1,
  .onboarding-cinematic-hero h1 {
    font-size: 42px;
  }

  .platform-shell-module-grid,
  .ai-insight-grid,
  .dispatch-optimization-grid,
  .maintenance-profit-grid,
  .cmd-kpi-grid,
  .billing-kpi-grid,
  .onboarding-checklist,
  .investor-demo-kpis,
  .investor-demo-scenario-grid,
  .investor-demo-grid.three,
  .cmd-runtime-grid.kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .investor-demo-hero,
  .investor-demo-grid,
  .investor-demo-controls,
  .investor-demo-runtime,
  .cmd-runtime-grid.two-col {
    grid-template-columns: 1fr;
  }

  .investor-demo-control-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .platform-shell-hero h1,
  .platform-shell-landing-title-row h1,
  .cmd-hero h1,
  .onboarding-cinematic-hero h1 {
    font-size: 34px;
  }

  .platform-shell-module-grid,
  .ai-insight-grid,
  .dispatch-optimization-grid,
  .maintenance-profit-grid,
  .cmd-kpi-grid,
  .billing-kpi-grid,
  .billing-plan-grid,
  .onboarding-checklist,
  .tenant-isolation-strip,
  .figma-client-kpis,
  .investor-demo-kpis,
  .investor-demo-scenario-grid,
  .investor-demo-grid,
  .investor-demo-grid.three,
  .investor-demo-jump-grid,
  .demo-walkthrough-overlay,
  .cmd-runtime-grid.kpis {
    grid-template-columns: 1fr;
  }

  .investor-demo-hero {
    padding: 22px;
  }

  .investor-demo-hero h1 {
    font-size: 34px;
  }

  .investor-demo-control-actions,
  .investor-demo-trigger-grid {
    justify-content: stretch;
  }

  .investor-demo-control-actions button,
  .investor-demo-trigger-grid button {
    flex: 1 1 44%;
  }

  .platform-shell-top-link,
  .platform-shell-user-pill,
  .site-header-action,
  .cmd-top-actions button,
  .ai-action-row button,
  .figma-client-quick-action {
    min-height: 44px;
  }
}

/* Phase I.1 — Commercial billing runtime panel (minimal, matches cmd-runtime tokens) */
.cmd-commercial-panel {
  margin: 16px auto;
  max-width: 1200px;
  padding: 16px 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: #0b1220;
  color: #e2e8f0;
}
.cmd-runtime-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.cmd-runtime-panel-head h2 {
  margin: 0;
  font-size: 1.1rem;
}
.cmd-commercial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.cmd-commercial-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 12px;
  background: #111a2f;
  font-size: 0.9rem;
}
.cmd-commercial-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #94a3b8;
}
.cmd-runtime-error {
  color: #f87171;
}
.cmd-runtime-footnote {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

/* Phase I.2 — Warehouse & yard runtime panel */
.cmd-warehouse-panel {
  margin: 16px auto;
  max-width: 1200px;
  padding: 16px 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: #0b1220;
  color: #e2e8f0;
}
.cmd-warehouse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.cmd-warehouse-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 12px;
  background: #111a2f;
  font-size: 0.88rem;
}
.cmd-warehouse-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #94a3b8;
}

/* =============================================================================
 * Phase L.1 — Command Center operational UX / control-tower alignment
 * Unified tokens extend cmd-runtime; no dependency on external UI libraries.
 * ============================================================================= */
.cmd-runtime {
  --ops-accent: #38bdf8;
  --ops-accent-soft: rgba(56, 189, 248, 0.14);
  --ops-violet: #a78bfa;
  --ops-violet-soft: rgba(167, 139, 250, 0.16);
  --ops-space-section: clamp(16px, 2vw, 28px);
}

.cmd-main-runtime {
  max-width: 1680px;
  margin-inline: auto;
  width: 100%;
}

.cmd-runtime .cmd-topbar {
  background: rgba(11, 18, 32, 0.92);
  border-bottom-color: var(--cmd-runtime-line);
  color: var(--cmd-runtime-text);
}

.cmd-runtime .cmd-breadcrumb a,
.cmd-runtime .cmd-breadcrumb strong {
  color: var(--cmd-runtime-text);
}

.cmd-runtime .cmd-breadcrumb span {
  color: var(--cmd-runtime-muted);
}

.cmd-runtime .cmd-top-actions button {
  border-radius: 10px;
  border: 1px solid var(--cmd-runtime-line);
  background: var(--cmd-runtime-surface-2);
  color: var(--cmd-runtime-text);
  min-height: 42px;
}

.cmd-runtime .cmd-top-actions button:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.cmd-runtime .cmd-top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: 12px;
  row-gap: 10px;
}

.cmd-runtime-filter {
  display: grid;
  gap: 4px;
  min-width: min(320px, 46vw);
}

.cmd-runtime-filter span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cmd-runtime-muted);
}

.cmd-runtime-filter input {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--cmd-runtime-line);
  background: var(--cmd-runtime-surface-2);
  color: var(--cmd-runtime-text);
  padding: 0 12px;
  font-size: 13px;
}

.cmd-runtime-filter input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

.cmd-runtime-filter input:focus {
  outline: 0;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.cmd-summary-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
  margin: 0 clamp(18px, 3vw, 36px);
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--cmd-runtime-line);
  background: linear-gradient(120deg, rgba(17, 26, 47, 0.95), rgba(11, 18, 32, 0.88));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  scroll-margin-top: 88px;
}

.cmd-summary-strip-lead {
  display: grid;
  gap: 6px;
  align-content: center;
  min-width: min(280px, 100%);
}

.cmd-summary-strip-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cmd-runtime-muted);
}

.cmd-health-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cmd-health-pill.good {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.cmd-health-pill.warn {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.cmd-health-pill.danger {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.cmd-health-pill.neutral {
  color: #cbd5e1;
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.cmd-summary-context {
  font-size: 12px;
  color: var(--cmd-runtime-muted);
}

.cmd-summary-context code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.55);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.cmd-summary-strip-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  flex: 1 1 280px;
  align-items: center;
  border-left: 1px solid rgba(148, 163, 184, 0.18);
  padding-left: 18px;
}

.cmd-summary-metric {
  display: grid;
  gap: 2px;
}

.cmd-summary-metric span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cmd-runtime-muted);
}

.cmd-summary-metric strong {
  font-size: 18px;
  font-weight: 850;
  color: #f1f5f9;
}

.cmd-summary-strip-meta {
  display: grid;
  gap: 4px;
  align-content: center;
  text-align: right;
  margin-left: auto;
}

.cmd-summary-strip-meta span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cmd-runtime-muted);
}

.cmd-summary-strip-meta strong {
  font-size: 14px;
  color: #e2e8f0;
}

.cmd-nav-group-label {
  margin: 14px 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.cmd-nav-group-label:first-child {
  margin-top: 0;
}

.cmd-runtime .cmd-hero h1 {
  color: #f8fafc;
}

.cmd-runtime .cmd-hero p {
  color: #94a3b8;
}

.cmd-runtime .cmd-kicker {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
}

.cmd-runtime-live-state {
  margin-inline: clamp(18px, 3vw, 36px);
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: rgba(17, 26, 47, 0.85) !important;
  color: #e2e8f0 !important;
}

.cmd-runtime-live-state.error {
  border-color: rgba(248, 113, 113, 0.45) !important;
  background: rgba(127, 29, 29, 0.25) !important;
  color: #fecaca !important;
}

.cmd-runtime-card.attention strong {
  color: #fde68a;
}

.cmd-runtime-badge.critical {
  color: #fce7f3;
  background: var(--ops-violet-soft);
  border: 1px solid rgba(167, 139, 250, 0.45);
}

.cmd-runtime-badge.medium {
  color: #fed7aa;
  background: rgba(251, 146, 60, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.35);
}

.cmd-runtime-badge.info {
  color: #bae6fd;
  background: var(--ops-accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.cmd-runtime-badge.attention {
  color: #fef3c7;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.35);
}

.cmd-trace-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #bae6fd;
  letter-spacing: 0.02em;
}

.jas-ops-section {
  margin: 0 clamp(18px, 3vw, 36px);
  border: 1px solid var(--cmd-runtime-line);
  border-radius: 16px;
  background: rgba(11, 18, 32, 0.45);
  padding: 0 4px 12px;
  scroll-margin-top: 96px;
}

.jas-ops-section + .jas-ops-section {
  margin-top: var(--ops-space-section);
}

.jas-ops-section-summary {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  cursor: pointer;
  padding: 14px 14px 10px;
  font-weight: 800;
}

.jas-ops-section-summary::-webkit-details-marker {
  display: none;
}

.jas-ops-section-summary::after {
  content: "";
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.jas-ops-section[open] .jas-ops-section-summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.jas-ops-section-meta {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cmd-runtime-muted);
}

.jas-ops-section-title {
  font-size: 16px;
  color: #f1f5f9;
}

.jas-ops-section-body {
  margin: 4px 10px 8px !important;
}

.cmd-runtime .cmd-runtime-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--cmd-runtime-surface-2);
  box-shadow: inset 0 -1px 0 var(--cmd-runtime-line);
}

.cmd-runtime .cmd-runtime-table tbody tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.25);
}

.cmd-runtime .cmd-runtime-table tbody tr:hover td {
  background: rgba(56, 189, 248, 0.06);
}

.jas-ops-runtime-surface {
  border-radius: 16px !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28) !important;
}

.cmd-runtime .jas-ops-injected-panel,
.cmd-runtime .jas-ops-runtime-surface {
  border-color: var(--cmd-runtime-line) !important;
  color: var(--cmd-runtime-text) !important;
  background: var(--cmd-runtime-surface) !important;
}

.cmd-runtime .jas-ops-injected-panel .cmd-panel-head span,
.cmd-runtime .jas-ops-runtime-surface .cmd-runtime-panel-head h2,
.cmd-runtime .jas-ops-injected-panel .cmd-panel-head h2 {
  color: var(--cmd-runtime-muted);
}

.cmd-runtime .jas-ops-injected-panel .cmd-panel-head h2,
.cmd-runtime .jas-ops-runtime-surface h2,
.cmd-runtime .jas-ops-injected-panel h2 {
  color: #f1f5f9 !important;
}

@media (min-width: 1440px) {
  .cmd-runtime-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .cmd-runtime-grid.kpis {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .cmd-summary-strip-metrics {
    border-left: 0;
    padding-left: 0;
  }

  .cmd-summary-strip-meta {
    text-align: left;
    margin-left: 0;
  }

  .cmd-runtime-filter {
    width: 100%;
    min-width: 0;
  }

  .cmd-top-actions {
    flex-wrap: wrap;
  }
}
