:root {
  --bg-light: #f4f7f6;
  --text-dark: #0f172a;
  --brand-teal: #0d9488;
  --brand-blue: #2563eb;
}
body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
}
.public-nav { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid #e2e8f0; }
.hero-heading { font-weight: 800; letter-spacing: -1.5px; color: #0f172a; }
.btn-brand { background: linear-gradient(135deg, #0d9488 0%, #2563eb 100%); color: #fff; font-weight: 600; border: none; }
.btn-brand:hover { opacity: 0.95; color: #fff; }

.admin-theme { background-color: #040711; color: #f8fafc; font-family: 'Raleway', sans-serif; min-height: 100vh; }
.bg-card-obsidian { background-color: rgba(10, 15, 29, 0.85); border: 1px solid #1e293b; backdrop-filter: blur(12px); }
.admin-sidebar { background-color: #070b19; border-right: 1px solid #1e293b; min-height: 100vh; }
.sidebar-link { color: #94a3b8; text-decoration: none; padding: 10px 16px; border-radius: 8px; display: block; font-weight: 500; transition: all 0.2s; }
.sidebar-link:hover, .sidebar-link.active { background: rgba(0, 242, 254, 0.1); color: #00f2fe; }

.btn-cyan { background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%); color: #040711; font-weight: 700; border: none; }
.btn-cyan:hover { background: linear-gradient(135deg, #00d6e2 0%, #3e9ceb 100%); color: #040711; }
.text-cyan { color: #00f2fe; }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 10px currentColor; }

/* Base44-style telemetry motion */
.telemetry-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 12% 0%, rgba(0, 242, 254, 0.08), transparent 42%), #070b18;
}
.telemetry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(0, 242, 254, 0.04) 48%, transparent 62%);
  transform: translateX(-100%);
  animation: telemetrySweep 7s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}
.telemetry-card .card-title, .telemetry-card canvas, .telemetry-card .text-secondary, .telemetry-card .badge { position: relative; z-index: 1; }
.live-pulse { animation: livePulse 1.8s ease-in-out infinite; }
@keyframes telemetrySweep { 0%, 42% { transform: translateX(-100%); opacity: 0; } 52% { opacity: 1; } 72%, 100% { transform: translateX(100%); opacity: 0; } }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.05); } 50% { box-shadow: 0 0 0 5px rgba(0, 242, 254, 0.12); } }
@media (prefers-reduced-motion: reduce) { .telemetry-card::before, .live-pulse { animation: none; } }


/* --------------------------------------------------------------------------
   Live Base44 Mission Control twin
   -------------------------------------------------------------------------- */
:root {
  --mc-bg: #020617;
  --mc-surface: #0f172a;
  --mc-surface-soft: rgba(255, 255, 255, 0.05);
  --mc-border: rgba(255, 255, 255, 0.055);
  --mc-text: #f8fafc;
  --mc-muted: #64748b;
  --mc-muted-strong: #94a3b8;
  --mc-cyan: #2db4b3;
  --mc-primary: #38bdf8;
  --mc-indigo: #6366f1;
  --mc-purple: #8b5cf6;
  --mc-amber: #f59e0b;
  --mc-red: #f87171;
}

#adminView.admin-theme {
  min-height: 100vh;
  background: var(--mc-bg);
  color: var(--mc-text);
  font-family: 'Raleway', sans-serif;
}
#adminView .mc-icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
#adminView .mc-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
#adminView button, #adminView input { font: inherit; }
#adminView button { cursor: pointer; }

/* Biometric gate */
.mc-gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--mc-text); background: radial-gradient(circle at 50% 43%, rgba(14, 116, 144, .16), transparent 31%), var(--mc-bg); padding: 24px; text-align: center; }
.mc-gate-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; text-align: left; }
.mc-gate-brand strong, .mc-brand-copy strong { display: block; color: #f8fafc; font-size: 12px; letter-spacing: .08em; line-height: 1.05; }
.mc-gate-brand small, .mc-brand-copy small { display: block; color: var(--mc-cyan); font-size: 8px; font-weight: 700; letter-spacing: .22em; margin-top: 4px; }
.mc-brand-mark { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: #dffcff; background: linear-gradient(145deg, #37bfc0, #5966d9); border-radius: 10px; box-shadow: 0 0 28px rgba(45, 180, 179, .24); }
.mc-brand-mark .mc-icon { width: 18px; height: 18px; }
.mc-scan-surface { position: relative; width: 154px; height: 154px; margin-bottom: 22px; border: 1px solid rgba(148, 163, 184, .35); background: rgba(15, 23, 42, .52); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mc-scan-corners::before, .mc-scan-corners::after { content: ''; position: absolute; inset: 0; pointer-events: none; border: 2px solid transparent; }
.mc-scan-corners::before { border-top-color: rgba(148, 163, 184, .42); border-left-color: rgba(148, 163, 184, .42); clip-path: polygon(0 0, 34px 0, 34px 2px, 2px 2px, 2px 34px, 0 34px); }
.mc-scan-corners::after { border-bottom-color: rgba(148, 163, 184, .42); border-right-color: rgba(148, 163, 184, .42); clip-path: polygon(100% 100%, calc(100% - 34px) 100%, calc(100% - 34px) calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) calc(100% - 34px), 100% calc(100% - 34px)); }
.mc-scan-ring { width: 112px; height: 112px; border: 1px solid rgba(45, 180, 179, .22); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(148, 163, 184, .7); }
.mc-scan-face { width: 48px !important; height: 48px !important; stroke-width: 1.7 !important; }
.mc-scan-line { position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3; background: linear-gradient(90deg, transparent 0%, rgba(45, 180, 179, .32) 18%, #55e5e0 50%, rgba(45, 180, 179, .32) 82%, transparent 100%); box-shadow: 0 0 8px #2db4b3, 0 0 24px rgba(45, 180, 179, .82); opacity: 0; will-change: transform, opacity; }
.mc-gate.scanning .mc-scan-ring { border-color: rgba(45, 180, 179, .82); box-shadow: 0 0 28px rgba(45, 180, 179, .18); }
.mc-gate.scanning .mc-scan-face { color: #2db4b3; }
.mc-gate.scanning .mc-scan-line { opacity: 1; animation: mcScanLine 2.2s ease-in-out infinite alternate; }
.mc-gate-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 700; }
.mc-icon-cyan { color: var(--mc-cyan); }
.mc-gate-copy { max-width: 320px; color: var(--mc-muted-strong); font-size: 11px; line-height: 1.45; margin: 7px 0 14px; }
.mc-scan-progress { width: 168px; height: 3px; background: rgba(148, 163, 184, .16); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.mc-scan-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #2db4b3, #6366f1); transition: width .16s linear; }
.mc-primary-btn { border: 0; color: #f8fafc; background: linear-gradient(135deg, #2db4b3, #6366f1); border-radius: 999px; min-height: 36px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 700; box-shadow: 0 8px 24px rgba(45, 180, 179, .18); transition: transform .16s ease-out, filter .16s ease-out; }
.mc-primary-btn:hover { filter: brightness(1.08); }
.mc-primary-btn:active { transform: scale(.97); }
.mc-primary-btn:disabled { cursor: default; opacity: .75; }
.mc-back-btn { border: 0; background: transparent; color: var(--mc-muted-strong); font-size: 11px; margin-top: 12px; }
.mc-back-btn:hover { color: #f8fafc; }
.mc-gate-footnote { max-width: 310px; color: #475569; font-size: 9px; line-height: 1.45; margin: 22px 0 0; }

/* Dashboard shell */
.mission-control-layout { display: flex; min-height: 100vh; background: var(--mc-bg); }
.mc-sidebar { width: 256px; flex: 0 0 256px; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 12px 14px; background: var(--mc-surface); border-right: 1px solid var(--mc-border); }
.mc-brand-block { display: flex; align-items: center; gap: 10px; padding: 0 12px 22px; border-bottom: 1px solid var(--mc-border); }
.mc-brand-copy { min-width: 0; }
.mc-nav { display: flex; flex-direction: column; gap: 5px; padding-top: 18px; }
.mc-nav-item { width: 100%; height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 14px; color: #94a3b8; background: transparent; border: 1px solid transparent; border-radius: 12px; text-align: left; font-size: 13px; font-weight: 500; transition: color .18s ease-out, background-color .18s ease-out, border-color .18s ease-out, transform .18s ease-out; }
.mc-nav-item:hover { color: #f8fafc; background: rgba(255, 255, 255, .05); }
.mc-nav-item:active { transform: scale(.985); }
.mc-nav-item.active { color: #e2faff; background: linear-gradient(90deg, rgba(45, 180, 179, .16), rgba(99, 102, 241, .10)); border-color: rgba(182, 250, 255, .9); box-shadow: 0 0 14px rgba(45, 180, 179, .10), inset 0 0 0 1px rgba(45, 180, 179, .12); }
.mc-nav-item.active .mc-icon { color: var(--mc-cyan); }
.mc-nav-item b { min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; color: #fff; background: #ad505a; border-radius: 999px; font-size: 10px; font-weight: 700; }
.mc-sidebar-bottom { padding-top: 14px; border-top: 1px solid var(--mc-border); }
.mc-system-status { display: flex; align-items: center; gap: 9px; padding: 10px 12px; color: #34d399; background: rgba(16, 185, 129, .10); border-radius: 12px; }
.mc-system-status .mc-icon { width: 15px; height: 15px; }
.mc-system-status strong, .mc-system-status small { display: block; }
.mc-system-status strong { font-size: 11px; font-weight: 600; }
.mc-system-status small { color: #64748b; font-size: 10px; margin-top: 2px; }
.mc-signout { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 12px 0; color: #94a3b8; background: transparent; border: 0; font-size: 12px; text-align: left; }
.mc-signout:hover { color: #f8fafc; }
.mc-signout .mc-icon { width: 15px; height: 15px; }
.mc-main { min-width: 0; flex: 1; }
.mc-topbar { height: 64px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px; background: rgba(15, 23, 42, .80); border-bottom: 1px solid var(--mc-border); backdrop-filter: blur(18px); }
.mc-topbar-title, .mc-topbar-tools, .mc-operator, .mc-operator > span:last-child, .mc-card-heading, .mc-card-heading > div, .mc-kpi-head, .mc-module-content { display: flex; align-items: center; }
.mc-topbar-title { gap: 12px; }
.mc-topbar-title h1 { margin: 0; color: #f8fafc; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.mc-live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; color: #34d399; background: rgba(16, 185, 129, .12); border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.mc-live-pill i, .mc-operator small i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px rgba(52, 211, 153, .9); animation: mcPulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.mc-topbar-tools { gap: 14px; }
.mc-search { width: 270px; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #64748b; background: rgba(2, 6, 23, .38); border: 1px solid transparent; border-radius: 999px; }
.mc-search:focus-within { border-color: rgba(45, 180, 179, .45); }
.mc-search .mc-icon { width: 15px; height: 15px; }
.mc-search input { width: 100%; min-width: 0; color: #cbd5e1; background: transparent; border: 0; outline: 0; font-size: 11px; }
.mc-search input::placeholder { color: #64748b; }
.mc-clock { display: inline-flex; align-items: center; gap: 7px; color: #94a3b8; font-variant-numeric: tabular-nums; font-size: 11px; }
.mc-clock .mc-icon { width: 15px; height: 15px; }
.mc-bell { position: relative; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #94a3b8; background: rgba(2, 6, 23, .32); border: 1px solid transparent; border-radius: 10px; }
.mc-bell:hover { color: #f8fafc; border-color: rgba(255, 255, 255, .08); }
.mc-bell i { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; background: #ef4444; border: 1px solid #0f172a; border-radius: 50%; }
.mc-operator { gap: 9px; }
.mc-avatar { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #f8fafc; background: linear-gradient(135deg, #44c0c0, #6475dc); border-radius: 50%; font-size: 11px; font-weight: 700; }
.mc-operator > span:last-child { align-items: flex-start; flex-direction: column; gap: 2px; }
.mc-operator strong { color: #e2e8f0; font-size: 11px; font-weight: 600; }
.mc-operator small { display: inline-flex; align-items: center; gap: 5px; color: #64748b; font-size: 9px; }
.mc-content { padding: 16px 24px 30px; }

/* Mission Control cards */
.mc-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mc-card { min-width: 0; background: var(--mc-surface); border: 1px solid var(--mc-border); border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.mc-kpi-card { min-height: 136px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.mc-kpi-head { justify-content: space-between; }
.mc-kpi-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
.mc-kpi-icon .mc-icon { width: 19px; height: 19px; }
.mc-kpi-cyan { color: var(--mc-cyan); background: rgba(45, 180, 179, .12); }
.mc-kpi-indigo { color: #818cf8; background: rgba(99, 102, 241, .12); }
.mc-kpi-red { color: #fb7185; background: rgba(239, 68, 68, .12); }
.mc-kpi-teal { color: #2dd4bf; background: rgba(45, 180, 179, .12); }
.mc-kpi-trend { color: #4fd1b5; font-size: 10px; font-weight: 600; }
.mc-kpi-value { display: block; margin-top: 10px; color: #f8fafc; font-size: 24px; line-height: 1; letter-spacing: -.02em; font-weight: 800; }
.mc-kpi-label { display: block; color: #64748b; font-size: 10px; }
.mc-chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.mc-chart-card { height: 235px; padding: 18px; overflow: hidden; }
.mc-card-heading { justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mc-card-heading > div { min-width: 0; gap: 8px; }
.mc-card-heading h2, .mc-section-title { margin: 0; color: #f8fafc; font-size: 13px; line-height: 1.2; font-weight: 600; }
.mc-card-heading > span { color: #64748b; white-space: nowrap; font-size: 10px; }
.mc-chart-icon { width: 18px; height: 18px; }
.mc-chart-cyan { color: var(--mc-cyan); }
.mc-chart-indigo { color: #818cf8; }
.mc-chart-amber { color: var(--mc-amber); }
.mc-chart-red { color: #fb7185; }
.mc-chart-wrap { height: 180px; position: relative; }
.mc-chart-wrap canvas { width: 100% !important; height: 100% !important; }
.mc-bottom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; margin-top: 16px; }
.mc-module-card, .mc-alert-card { min-height: 246px; padding: 18px; }
.mc-module-content { min-height: 190px; gap: 16px; }
.mc-donut-wrap { width: 48%; height: 160px; flex: 0 0 48%; }
.mc-donut-wrap canvas { width: 100% !important; height: 100% !important; }
.mc-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mc-legend > div { display: flex; align-items: center; gap: 8px; min-width: 0; color: #94a3b8; font-size: 10px; }
.mc-legend i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.mc-legend span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-legend b { color: #f8fafc; font-size: 10px; font-weight: 600; }
.mc-view-all { padding: 0; color: var(--mc-cyan); background: transparent; border: 0; font-size: 10px; }
.mc-view-all:hover { text-decoration: underline; }
.mc-alert-list { max-height: 332px; overflow-y: scroll; padding-right: 4px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; scrollbar-color: #94a3b8 transparent; scrollbar-gutter: stable; scroll-behavior: smooth; overscroll-behavior: contain; }
.mc-alert-row { min-height: 60px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--mc-surface-soft); border-radius: 11px; transition: background-color .18s ease-out; }
.mc-alert-row:hover { background: rgba(255, 255, 255, .10); }
.mc-alert-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--mc-amber); box-shadow: 0 0 10px rgba(245, 158, 11, .45); }
.mc-alert-dot.critical { background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, .45); }
.mc-alert-dot.warning { background: #f97316; box-shadow: 0 0 10px rgba(249, 115, 22, .45); }
#adminView .mc-alert-dot.live-green { background: #34d399; box-shadow: 0 0 10px rgba(52, 211, 153, .58); }
#adminView .mc-alert-dot.live-amber { background: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, .58); }
#adminView .mc-alert-dot.live-red { background: #f87171; box-shadow: 0 0 10px rgba(248, 113, 113, .62); }
.mc-alert-copy { min-width: 0; flex: 1; }
.mc-alert-line { display: flex; align-items: baseline; gap: 5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-alert-line strong { color: #f8fafc; font-size: 12px; font-weight: 600; }
#adminView .mc-alert-name.live-green, #adminView .mc-stream-alert-name.live-green { color: #34d399; }
#adminView .mc-alert-name.live-amber, #adminView .mc-stream-alert-name.live-amber { color: #f59e0b; }
#adminView .mc-alert-name.live-red, #adminView .mc-stream-alert-name.live-red { color: #f87171; }
#adminView .mc-alert-row.live-green .mc-alert-line > span, #adminView .mc-alert-row.live-green .mc-alert-meta, #adminView .mc-alert-row.live-green .mc-alert-meta span, #adminView .mc-alert-row.live-green .mc-alert-time { color: #34d399; }
#adminView .mc-alert-row.live-amber .mc-alert-line > span, #adminView .mc-alert-row.live-amber .mc-alert-meta, #adminView .mc-alert-row.live-amber .mc-alert-meta span, #adminView .mc-alert-row.live-amber .mc-alert-time { color: #f59e0b; }
#adminView .mc-alert-row.live-red .mc-alert-line > span, #adminView .mc-alert-row.live-red .mc-alert-meta, #adminView .mc-alert-row.live-red .mc-alert-meta span, #adminView .mc-alert-row.live-red .mc-alert-time { color: #f87171; }
#adminView .mc-stream-row.live-green b, #adminView .mc-stream-row.live-green small, #adminView .mc-stream-row.live-green button { color: #34d399; border-color: rgba(52, 211, 153, .42); }
#adminView .mc-stream-row.live-amber b, #adminView .mc-stream-row.live-amber small, #adminView .mc-stream-row.live-amber button { color: #f59e0b; border-color: rgba(245, 158, 11, .42); }
#adminView .mc-stream-row.live-red b, #adminView .mc-stream-row.live-red small, #adminView .mc-stream-row.live-red button { color: #f87171; border-color: rgba(248, 113, 113, .46); }
.mc-alert-line span { color: #64748b; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.mc-alert-meta { display: flex; align-items: center; gap: 10px; margin-top: 5px; color: #64748b; font-size: 9px; }
.mc-alert-meta span { display: inline-flex; align-items: center; gap: 3px; }
.mc-alert-meta .mc-icon { width: 11px; height: 11px; }
.mc-alert-time { color: #475569; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 9px; }

/* Remaining tabs keep the same Base44 surface language */
.mc-panel-card { padding: 20px; }
.mc-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.mc-panel-heading h2 { margin: 0; color: #f8fafc; font-size: 16px; font-weight: 700; }
.mc-panel-heading p { margin: 5px 0 0; color: #64748b; font-size: 11px; }
.mc-form-control { min-width: 200px; height: 36px; padding: 0 12px; color: #cbd5e1; background: rgba(2, 6, 23, .42); border: 1px solid rgba(148, 163, 184, .2); border-radius: 9px; outline: 0; font-size: 11px; }
.mc-form-control:focus { border-color: rgba(45, 180, 179, .65); }
.mc-table { --bs-table-bg: transparent; --bs-table-color: #94a3b8; --bs-table-border-color: rgba(255, 255, 255, .06); font-size: 11px; }
.mc-table th { color: #64748b; border-bottom-width: 1px; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.mc-table td { color: #94a3b8; padding: 13px 10px; }
.mc-count-pill { padding: 5px 8px; color: var(--mc-cyan); background: rgba(45, 180, 179, .10); border-radius: 999px; font-size: 9px; font-weight: 700; }
.mc-filter-pills { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.mc-filter-pills button { padding: 6px 10px; color: #94a3b8; background: transparent; border: 1px solid rgba(148, 163, 184, .22); border-radius: 999px; font-size: 10px; }
.mc-filter-pills button.active, .mc-filter-pills button:hover { color: #e2faff; border-color: rgba(45, 180, 179, .7); background: rgba(45, 180, 179, .10); }
.mc-alert-kpis { margin-bottom: 16px; }
.mc-stat-card { min-height: 112px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.mc-stat-card > span, .mc-stat-card small { color: #64748b; font-size: 10px; }
.mc-stat-card strong { color: #f8fafc; font-size: 22px; font-weight: 800; }
.mc-stat-card small { margin-top: 3px; }
.mc-alert-stream-card { overflow: hidden; }
.mc-alert-stream-scroll { max-height: 520px; overflow-y: scroll; overflow-x: hidden; padding: 0 8px 2px 1px; scrollbar-gutter: stable; scroll-behavior: smooth; overscroll-behavior: contain; }
.mc-alert-stream-scroll:focus-visible { outline: 1px solid rgba(45, 180, 179, .75); outline-offset: 4px; }
.mc-alert-stream-scroll::-webkit-scrollbar { width: 8px; }
.mc-alert-stream-scroll::-webkit-scrollbar-track { background: rgba(15, 23, 42, .55); border-radius: 999px; }
.mc-alert-stream-scroll::-webkit-scrollbar-thumb { background: rgba(45, 180, 179, .55); border: 2px solid rgba(15, 23, 42, .55); border-radius: 999px; }
.mc-alert-stream-scroll::-webkit-scrollbar-thumb:hover { background: rgba(45, 180, 179, .8); }
.mc-stream { display: flex; flex-direction: column; gap: 10px; }
.mc-stream-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 12px; }
.mc-stream-row.critical { background: rgba(239, 68, 68, .08); }
.mc-stream-row.warning { background: rgba(245, 158, 11, .08); }
.mc-stream-row b, .mc-stream-row small { display: block; }
.mc-stream-row b { color: #f8fafc; font-size: 12px; }
.mc-stream-row small { color: #64748b; font-size: 10px; margin-top: 5px; }
.mc-stream-row button { padding: 7px 10px; color: #cbd5e1; background: transparent; border: 1px solid rgba(148, 163, 184, .25); border-radius: 8px; white-space: nowrap; font-size: 10px; }
.mc-analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.mc-analytics-chart { height: 250px; position: relative; }
.mc-analytics-wide { height: 300px; }
.mc-analytics-chart canvas { width: 100% !important; height: 100% !important; }
.mc-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mc-settings-grid label { display: flex; flex-direction: column; gap: 7px; color: #94a3b8; font-size: 11px; }
.mc-settings-btn { margin-top: 18px; border-radius: 9px; }

@keyframes mcPulse { 0%, 100% { opacity: .62; transform: scale(.86); } 50% { opacity: 1; transform: scale(1); } }
@keyframes mcScanLine { 0% { transform: translateY(4px); opacity: .6; } 50% { transform: translateY(148px); opacity: 1; } 100% { transform: translateY(4px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .mc-live-pill i, .mc-operator small i, .mc-gate.scanning .mc-scan-line { animation: none; } }
@media (max-width: 1100px) { .mc-sidebar { width: 220px; flex-basis: 220px; } .mc-search { width: 220px; } .mc-topbar-tools { gap: 9px; } .mc-operator > span:last-child, .mc-clock { display: none; } }
@media (max-width: 820px) { #adminView .mc-fleet-table-scroll { max-height: 58vh; } .mission-control-layout { display: block; } .mc-sidebar { width: 100%; min-height: auto; height: auto; padding: 12px; border-right: 0; border-bottom: 1px solid var(--mc-border); } .mc-brand-block { border-bottom: 0; padding-bottom: 8px; } .mc-nav { flex-direction: row; gap: 4px; overflow-x: auto; padding: 6px 0 0; } .mc-nav-item { width: auto; min-width: max-content; height: 38px; padding: 0 10px; } .mc-nav-item b { height: 20px; min-width: 20px; } .mc-sidebar-bottom { display: none; } .mc-topbar { position: relative; height: auto; min-height: 58px; padding: 10px 14px; } .mc-search { width: 180px; } .mc-content { padding: 14px; } .mc-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mc-chart-grid, .mc-bottom-grid, .mc-analytics-grid { grid-template-columns: 1fr; } .mc-module-card, .mc-alert-card { min-height: auto; } }
@media (max-width: 520px) { #adminView .mc-fleet-table-scroll { max-height: 52vh; } .mc-topbar-title h1 { font-size: 15px; } .mc-topbar-tools { gap: 7px; } .mc-search { width: 36px; padding: 0 10px; } .mc-search input { display: none; } .mc-kpi-grid { gap: 10px; } .mc-kpi-card { min-height: 112px; padding: 13px; } .mc-kpi-value { font-size: 20px; } .mc-chart-card { height: 218px; padding: 14px; } .mc-chart-wrap { height: 164px; } .mc-module-content { align-items: flex-start; flex-direction: column; } .mc-donut-wrap { width: 100%; flex-basis: auto; } .mc-panel-heading, .mc-alerts-heading { flex-direction: column; } .mc-form-control { width: 100%; min-width: 0; } .mc-settings-grid { grid-template-columns: 1fr; } }
''


/* Two-step co-founder access gate */
.mc-password-surface {
  width: 156px;
  height: 156px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 107, 145, .5);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgba(45, 180, 179, .11), transparent 57%),
    linear-gradient(135deg, rgba(16, 29, 58, .92), rgba(5, 12, 29, .96));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 0 40px rgba(0, 180, 255, .06);
}
.mc-password-surface .mc-icon { width: 55px; height: 55px; color: #5ad5d1; stroke-width: 1.2; filter: drop-shadow(0 0 10px rgba(45, 180, 179, .55)); }
.mc-password-form { display: flex; flex-direction: column; align-items: center; width: min(310px, 100%); margin: 0 auto; }
.mc-password-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(106, 125, 168, .52);
  border-radius: 8px;
  color: #e8f0ff;
  background: rgba(8, 17, 39, .86);
  outline: none;
  text-align: center;
  font: 600 13px/1 Raleway, sans-serif;
  letter-spacing: .11em;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.mc-password-input::placeholder { color: #64748b; letter-spacing: .04em; }
.mc-password-input:focus { border-color: rgba(45, 180, 179, .9); box-shadow: 0 0 0 3px rgba(45, 180, 179, .12), 0 0 24px rgba(45, 180, 179, .10); background: rgba(10, 25, 48, .96); }
.mc-password-input.is-invalid { border-color: #ec5c83; box-shadow: 0 0 0 3px rgba(236, 92, 131, .10); }
.mc-password-error { min-height: 18px; margin: 6px 0 3px; color: #f58aa7; font: 500 11px/1.4 Raleway, sans-serif; }
.mc-password-form .mc-primary-btn { width: 100%; justify-content: center; }
@media (max-width: 520px) {
  .mc-password-surface { width: 138px; height: 138px; }
  .mc-password-form { width: min(280px, 100%); }
}

/* Canonical Light-Background Public Landing Page (Base44 Parity) */
#publicView {
  background-color: #f8fafc;
  color: #0f172a;
  font-family: 'Raleway', sans-serif;
  min-height: 100vh;
}
#publicView .public-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}
#publicView .hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding-top: 7rem;
  padding-bottom: 5rem;
}
#publicView .card, #publicView .feature-card, #publicView .module-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
#publicView .text-muted { color: #64748b !important; }


/* ========================================================================== 
   BASE44 PUBLIC LANDING TWIN — measured light theme
   Scoped to #publicView so Mission Control remains dark obsidian.
   ========================================================================== */
#publicView {
  --wb-ink: #2c3844;
  --wb-muted: #64748b;
  --wb-soft: #f8fafc;
  --wb-line: #eef2f4;
  --wb-teal: #1aa7a5;
  --wb-cyan: #0bbcc4;
  --wb-blue: #4d77dd;
  --wb-purple: #8b6be8;
  background: #fff !important;
  color: var(--wb-ink) !important;
  font-family: 'Raleway', sans-serif;
  line-height: 1.5;
}
#publicView *, #publicView *::before, #publicView *::after { box-sizing: border-box; }
#publicView .public-nav {
  height: 80px;
  padding: 0 24px !important;
  background: rgba(255,255,255,.82) !important;
  border-bottom: 1px solid rgba(226,232,240,.55) !important;
  backdrop-filter: blur(16px);
  z-index: 100;
}
#publicView .public-nav .container-fluid { max-width: 1220px; margin: 0 auto; }
#publicView .public-nav .navbar-brand { color: var(--wb-ink) !important; letter-spacing: .06em; }
#publicView .public-nav .mc-brand-mark { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 6px 18px rgba(45,180,179,.18); }
#publicView .public-nav .mc-brand-mark .mc-icon { width: 16px; height: 16px; }
#publicView .public-nav .d-lg-flex a { color: var(--wb-muted) !important; font-size: 14px; font-weight: 500; opacity: 1 !important; transition: color .18s ease-out; }
#publicView .public-nav .d-lg-flex a:hover { color: var(--wb-ink) !important; }
#publicView .public-nav .btn-outline-dark { color: #475569 !important; border-color: #cbd5e1 !important; background: rgba(255,255,255,.66); }
#publicView .public-nav .btn-outline-dark:hover { color: var(--wb-ink) !important; border-color: var(--wb-teal) !important; background: #fff; }
#publicView .public-nav .btn-brand { min-height: 38px; background: linear-gradient(135deg, #2db4b3, #5b7be4) !important; border: 0; color: #fff !important; }

#publicView .wb-light-main { background: #fff; }
#publicView .wb-hero-section {
  min-height: 1100px;
  padding: 96px 0 64px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 440px at 16% 48%, rgba(155, 236, 229, .20), transparent 70%),
    radial-gradient(520px 480px at 75% 38%, rgba(224, 233, 255, .72), transparent 72%),
    linear-gradient(130deg, #f6fffe 0%, #ffffff 42%, #f7f9ff 100%);
}
#publicView .wb-hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(36, 116, 135, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 116, 135, .025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 68%);
}
#publicView .wb-hero-container { width: min(1220px, calc(100% - 48px)); position: relative; z-index: 1; }
#publicView .wb-hero-copy { padding-left: 8px; }
#publicView .wb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 8px 13px;
  color: #229b9b; background: rgba(35, 180, 175, .09); border: 1px solid rgba(35,180,175,.10); border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .035em;
}
#publicView .wb-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: #2db4b3; box-shadow: 0 0 0 4px rgba(45,180,179,.10); }
#publicView .wb-hero-title { margin: 0 0 26px; color: var(--wb-ink); font-size: clamp(48px, 5.7vw, 72px); font-weight: 800; letter-spacing: -.065em; line-height: 1; }
#publicView .wb-hero-title span { background: linear-gradient(105deg, #19b5b0 0%, #2c92df 48%, #836ce6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
#publicView .wb-hero-description { max-width: 540px; margin: 0 0 28px; color: #5f6c79; font-size: 16px; line-height: 1.5; }
#publicView .wb-hero-description strong { color: #2c3844; font-weight: 700; }
#publicView .wb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
#publicView .wb-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 600; transition: transform .18s ease-out, box-shadow .18s ease-out, background .18s ease-out; }
#publicView .wb-btn:hover { transform: translateY(-2px); }
#publicView .wb-btn-primary { color: #fff; background: linear-gradient(100deg, #2db4b3, #6377de); box-shadow: 0 10px 25px rgba(74, 122, 211, .20); }
#publicView .wb-btn-primary:hover { color: #fff; box-shadow: 0 15px 32px rgba(74, 122, 211, .28); }
#publicView .wb-btn-primary span { font-size: 18px; line-height: 1; }
#publicView .wb-btn-secondary { color: #475569; background: rgba(255,255,255,.72); border: 1px solid #cbd5e1; }
#publicView .wb-btn-secondary:hover { color: #2c3844; background: #fff; border-color: #94a3b8; }
#publicView .wb-hero-proof { display: flex; flex-wrap: wrap; gap: 24px; color: #6b7b88; font-size: 12px; }
#publicView .wb-hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
#publicView .wb-inline-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: #3baead; }
#publicView .wb-hero-media-col { text-align: center; }
#publicView .wb-hero-media { width: min(510px, 100%); aspect-ratio: 1; position: relative; display: inline-block; border-radius: 32px; overflow: visible; box-shadow: 0 32px 70px rgba(87, 107, 144, .22); }
#publicView .wb-hero-media::before { content: ''; position: absolute; inset: -20px -22px -22px; z-index: -1; border-radius: 45px; background: radial-gradient(circle at 48% 50%, rgba(177,215,255,.42), transparent 66%); filter: blur(12px); }
#publicView .wb-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 32px; }
#publicView .wb-hero-badge { position: absolute; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 12px 14px; color: #344151; background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.96); border-radius: 12px; box-shadow: 0 12px 26px rgba(76, 99, 128, .16); backdrop-filter: blur(12px); text-align: left; }
#publicView .wb-hero-badge strong { font-size: 15px; font-weight: 800; line-height: 1.15; }
#publicView .wb-hero-badge small { color: #82909e; font-size: 9px; font-weight: 700; letter-spacing: .04em; line-height: 1.45; }
#publicView .wb-badge-bpm { left: -16px; top: 85px; min-width: 68px; }
#publicView .wb-badge-bpm strong { color: #26a8aa; }
#publicView .wb-badge-guardian { right: -18px; bottom: 88px; min-width: 112px; padding-left: 13px; }
#publicView .wb-badge-guardian strong { display: inline-flex; align-items: center; gap: 6px; color: #334155; font-size: 11px; }
#publicView .wb-badge-guardian .wb-inline-icon { width: 13px; height: 13px; color: #7385d7; }

#publicView .wb-modules-section { min-height: 2058px; padding: 96px 0 128px; background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
#publicView .wb-modules-section > .container { margin-top: 0 !important; }
#publicView .wb-modules-section .text-center { margin-bottom: 52px !important; }
#publicView .wb-modules-section .text-center > span, #publicView #how .text-center > span, #publicView #devices .text-center > span, #publicView #contact span { display: inline-flex; color: #2ba3a3 !important; background: rgba(45,180,179,.09); border-radius: 999px; padding: 6px 11px; letter-spacing: .09em; font-size: 10px !important; }
#publicView .wb-modules-section h2, #publicView #how h2, #publicView #devices h2, #publicView #contact h3 { color: var(--wb-ink); font-size: clamp(32px, 3.2vw, 44px); font-weight: 800; letter-spacing: -.05em; line-height: 1.1; }
#publicView .wb-modules-section .text-center p, #publicView #devices .text-center p { max-width: 720px !important; color: #64748b !important; font-size: 15px; line-height: 1.55; }
#publicView .wb-module-card { min-height: 390px; height: 100%; display: flex; flex-direction: column; padding: 22px 20px 18px; color: var(--wb-ink); background: rgba(255,255,255,.9); border: 1px solid #eef1f5; border-radius: 18px; text-decoration: none; box-shadow: 0 6px 22px rgba(91, 106, 126, .04); transition: transform .22s ease-out, box-shadow .22s ease-out, border-color .22s ease-out; }
#publicView .wb-module-card:hover { color: var(--wb-ink); transform: translateY(-4px); border-color: rgba(76, 119, 221, .22); box-shadow: 0 18px 36px rgba(82, 105, 139, .12); }
#publicView .wb-module-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
#publicView .wb-module-num { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #6681dd; background: linear-gradient(145deg, #eef4ff, #f8f4ff); border-radius: 10px; font-size: 11px; font-weight: 800; }
#publicView .wb-module-category { color: #7381d2; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
#publicView .wb-module-card h3 { min-height: 48px; margin: 0 0 4px; color: #2c3844; font-size: 17px; font-weight: 750; letter-spacing: -.025em; line-height: 1.25; }
#publicView .wb-module-tagline { min-height: 22px; margin: 0 0 12px; color: #6580dc; font-size: 11px; font-weight: 600; }
#publicView .wb-module-description { margin: 0; color: #717e8b; font-size: 12px; line-height: 1.55; }
#publicView .wb-module-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 22px; }
#publicView .wb-module-stats span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; color: #7a8793; background: #f5f7fa; border-radius: 999px; font-size: 9px; font-weight: 600; }
#publicView .wb-module-stats b { color: #b2bbc5; font-weight: 600; }

#publicView #how { min-height: 947px; padding: 128px 0 !important; color: #f8fafc; background: #0f172a !important; border: 0 !important; position: relative; overflow: hidden; }
#publicView #how::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(99,102,241,.18), transparent 36%), radial-gradient(circle at 85% 80%, rgba(45,180,179,.14), transparent 35%); pointer-events: none; }
#publicView #how > .container { position: relative; z-index: 1; }
#publicView #how .text-center > span { color: #64d7d3 !important; background: rgba(45,180,179,.12); }
#publicView #how h2 { color: #e6eef5; }
#publicView #how .text-center p { color: #a7b6c8 !important; }
#publicView #how .bg-light { min-height: 250px; color: #f8fafc; background: rgba(255,255,255,.045) !important; border: 1px solid rgba(255,255,255,.09) !important; border-radius: 18px !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
#publicView #how .bg-light h5 { color: #f8fafc; }
#publicView #how .bg-light p { color: #a7b6c8 !important; line-height: 1.65; }

#publicView #devices { min-height: 986px; max-width: none; margin: 0 !important; padding: 128px 0 !important; background: #fff; }
#publicView #devices > .container { max-width: 1220px; }
#publicView #devices .bg-white { min-height: 112px; display: flex; align-items: center; justify-content: center; color: #334155; border-color: #eef1f5 !important; border-radius: 18px !important; box-shadow: 0 7px 22px rgba(71, 85, 105, .06) !important; transition: transform .18s ease-out, border-color .18s ease-out; }
#publicView #devices .bg-white:hover { transform: translateY(-3px); border-color: rgba(45,180,179,.32) !important; }

#publicView #impact { min-height: 304px; padding: 80px 0 !important; color: #fff; background: linear-gradient(105deg, #20aaa9 0%, #477bdb 52%, #7867de 100%) !important; }
#publicView #impact .container { padding-top: 0 !important; padding-bottom: 0 !important; }
#publicView #impact span { color: rgba(255,255,255,.86) !important; background: rgba(255,255,255,.12); }
#publicView #impact h2 { color: #fff; font-size: 32px; }
#publicView #impact .bg-card-obsidian { min-height: 170px; color: #fff; background: rgba(7, 16, 42, .20) !important; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 18px !important; }
#publicView #impact .text-cyan { color: #fff !important; }
#publicView #impact .text-secondary { color: rgba(255,255,255,.78) !important; }

#publicView #contact { max-width: none; margin: 0 !important; padding: 128px 0 !important; background: linear-gradient(180deg, #f8fafc 0%, #fff 100%); }
#publicView #contact > .row { max-width: 900px; margin: 0 auto; }
#publicView #contact .card { border-color: #edf1f5 !important; border-radius: 22px !important; box-shadow: 0 18px 52px rgba(71,85,105,.10) !important; }
#publicView #contact .form-control { min-height: 46px; color: #334155; border-color: #dbe3ea; border-radius: 10px; }
#publicView #contact .form-control:focus { border-color: #5e85dc; box-shadow: 0 0 0 3px rgba(94,133,220,.13); }
#publicView #contact .btn-brand { min-height: 46px; color: #fff; background: linear-gradient(100deg, #2db4b3, #6377de) !important; }

#publicView .public-footer { color: #64748b !important; background: #fff !important; border-top: 1px solid #eef2f4 !important; }
#publicView .public-footer a { color: #64748b !important; }
@media (max-width: 991.98px) {
  #publicView .public-nav { padding: 0 16px !important; }
  #publicView .wb-hero-section { min-height: auto; padding: 140px 0 88px; }
  #publicView .wb-hero-copy { padding-left: 0; }
  #publicView .wb-hero-media-col { margin-top: 24px; }
  #publicView .wb-modules-section { min-height: auto; }
  #publicView #how, #publicView #devices, #publicView #contact { min-height: auto; }
}
@media (max-width: 575.98px) {
  #publicView .wb-hero-container { width: min(100% - 32px, 1220px); }
  #publicView .wb-hero-title { font-size: 48px; }
  #publicView .wb-hero-actions, #publicView .wb-hero-proof { gap: 10px; }
  #publicView .wb-btn { width: 100%; }
  #publicView .wb-hero-media { width: calc(100% - 34px); }
  #publicView .wb-badge-bpm { left: -14px; top: 54px; }
  #publicView .wb-badge-guardian { right: -14px; bottom: 50px; }
  #publicView .wb-hero-proof { font-size: 10px; justify-content: center; }
  #publicView #impact h2 { font-size: 27px; }
}

/* Exact live Base44 Impact strip */
#publicView .wb-impact-strip {
  min-height: 304px;
  padding: 80px 0 !important;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(to right, #2cafaB, #6874c0) !important;
}
#publicView .wb-impact-strip .container { width: min(1220px, calc(100% - 48px)); padding: 0 !important; }
#publicView .wb-impact-metric { min-height: 144px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 22px; border-right: 1px solid rgba(255,255,255,.18); }
#publicView .wb-impact-metric:last-child { border-right: 0; }
#publicView .wb-impact-metric strong { color: #fff; font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
#publicView .wb-impact-metric span { display: block; margin-top: 12px; color: rgba(255,255,255,.86) !important; background: none !important; padding: 0 !important; font-size: 11px !important; font-weight: 600; letter-spacing: .02em; }
@media (max-width: 575.98px) {
  #publicView .wb-impact-metric { min-height: 116px; padding: 12px 10px; }
  #publicView .wb-impact-metric:nth-child(2) { border-right: 0; }
  #publicView .wb-impact-metric strong { font-size: 28px; }
  #publicView .wb-impact-metric span { font-size: 9px !important; }
}


/* Final live Base44 public-canvas correction: public landing is white/light; admin stays independently obsidian. */
html:has(#publicView) { background: #fff; }
body:has(#publicView) { background: #fff !important; }
#publicView { background: #fff !important; }
#publicView .wb-light-main { background: transparent !important; }
#publicView .wb-hero-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(44, 175, 171, .12), rgba(0, 0, 0, 0) 40%),
    radial-gradient(circle at 80% 0%, rgba(104, 116, 192, .15), rgba(0, 0, 0, 0) 45%),
    radial-gradient(circle at 60% 80%, rgba(44, 175, 171, .08), rgba(0, 0, 0, 0) 40%) !important;
}
#publicView .public-nav { background: rgba(255,255,255,.82) !important; border-bottom-color: rgba(226,232,240,.55) !important; }
#publicView #devices { background: #fff !important; }
#publicView #contact { background: linear-gradient(180deg, #f8fafc 0%, #fff 100%) !important; }
#publicView .public-footer { background: #fff !important; }


/* Match the live Base44 public gradient endpoints exactly. */
#publicView #impact,
#publicView .wb-impact-strip { background: linear-gradient(to right, rgb(44,175,171), rgb(104,116,192)) !important; }

/* --------------------------------------------------------------------------
   PUBLIC LANDING PARITY PASS — Base44 structure and measured visual system.
   Every selector below is scoped to #publicView. Mission Control is not touched.
   -------------------------------------------------------------------------- */
#publicView .wb-public-icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
#publicView .wb-public-nav { height: 80px; padding: 0 !important; background: transparent !important; border: 0 !important; backdrop-filter: none; transition: background-color .24s ease-out, box-shadow .24s ease-out; }
#publicView .wb-public-nav.wb-scrolled { background: rgba(255,255,255,.88) !important; box-shadow: 0 8px 28px rgba(15,23,42,.06); backdrop-filter: blur(18px); }
#publicView .wb-nav-inner { width: min(1280px, calc(100% - 48px)); height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto; }
#publicView .wb-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: #2c3844 !important; text-decoration: none; }
#publicView .wb-brand:hover { color: #2c3844 !important; }
#publicView .wb-brand-mark { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #2db4b3, #5c6bc0); border-radius: 10px; box-shadow: 0 8px 20px rgba(45,180,179,.22); }
#publicView .wb-brand-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#publicView .wb-brand-copy { display: flex; flex-direction: column; line-height: 1; }
#publicView .wb-brand-copy strong { color: #2c3844; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
#publicView .wb-brand-copy small { margin-top: 4px; color: #2db4b3; font-size: 8px; font-weight: 700; letter-spacing: .22em; }
#publicView .wb-nav-links { display: flex; align-items: center; justify-content: center; gap: 28px; margin-left: auto; margin-right: 18px; }
#publicView .wb-nav-links a { color: #64748b; font-size: 13px; font-weight: 500; text-decoration: none; transition: color .18s ease-out; }
#publicView .wb-nav-links a:hover { color: #2db4b3; }
#publicView .wb-nav-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
#publicView .wb-nav-admin, #publicView .wb-nav-cta { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 999px; font-size: 12px; font-weight: 600; text-decoration: none; }
#publicView .wb-nav-admin { color: #475569; background: rgba(255,255,255,.62); border: 1px solid #cbd5e1; }
#publicView .wb-nav-admin:hover { color: #2db4b3; border-color: #2db4b3; background: #fff; }
#publicView .wb-nav-cta { color: #fff !important; background: linear-gradient(135deg, #2db4b3, #5c6bc0); box-shadow: 0 10px 22px rgba(76,119,221,.18); }
#publicView .wb-nav-cta:hover { color: #fff !important; transform: translateY(-1px); }

#publicView .wb-public-main { position: relative; overflow: hidden; background: #fff; }
#publicView .wb-hero-section { min-height: 100vh; padding: 96px 0 64px; display: flex; align-items: center; position: relative; overflow: hidden; background: #fbffff; }
#publicView .wb-hero-orb { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
#publicView .wb-hero-orb-right { width: 600px; height: 600px; top: -128px; right: -128px; background: linear-gradient(135deg, rgba(104,116,192,.28), rgba(45,180,179,.18), transparent 72%); opacity: .9; }
#publicView .wb-hero-orb-left { width: 500px; height: 500px; top: 33%; left: -160px; background: linear-gradient(45deg, rgba(45,180,179,.17), rgba(104,116,192,.10), transparent 72%); }
#publicView .wb-hero-grid { width: min(1280px, calc(100% - 48px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; margin: 0 auto; position: relative; z-index: 1; }
#publicView .wb-hero-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 0; }
#publicView .wb-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 28px; padding: 8px 16px; color: #2ba3a3; background: rgba(45,180,179,.10); border: 1px solid rgba(45,180,179,.18); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
#publicView .wb-ping { width: 8px; height: 8px; position: relative; display: inline-flex; }
#publicView .wb-ping::before, #publicView .wb-ping i { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #2db4b3; }
#publicView .wb-ping::before { opacity: .26; transform: scale(2.2); }
#publicView .wb-ping i { animation: wbPublicPing 2s ease-out infinite; }
@keyframes wbPublicPing { 0%, 100% { transform: scale(.8); opacity: .9; } 50% { transform: scale(1.5); opacity: .35; } }
#publicView .wb-hero-title { margin: 0 0 28px; color: #2c3844; font-size: clamp(48px, 5.6vw, 72px); font-weight: 800; line-height: 1.05; letter-spacing: -.065em; }
#publicView .wb-hero-title span { color: transparent; background: linear-gradient(105deg, #19b5b0 0%, #2c92df 48%, #836ce6 100%); -webkit-background-clip: text; background-clip: text; }
#publicView .wb-hero-description { max-width: 600px; margin: 0 0 28px; color: #5f6c79; font-size: 18px; line-height: 1.6; }
#publicView .wb-hero-description strong { color: #2c3844; font-weight: 700; }
#publicView .wb-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 16px; }
#publicView .wb-btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 28px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; transition: transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out, color .18s ease-out; }
#publicView .wb-btn:hover { transform: translateY(-2px); }
#publicView .wb-btn-primary { color: #fff; background: linear-gradient(100deg, #2db4b3, #6377de); box-shadow: 0 14px 28px rgba(45,180,179,.24); }
#publicView .wb-btn-primary:hover { color: #fff; box-shadow: 0 18px 34px rgba(45,180,179,.32); }
#publicView .wb-btn-primary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease-out; }
#publicView .wb-btn-primary:hover svg { transform: translateX(3px); }
#publicView .wb-btn-secondary { color: #475569; background: rgba(255,255,255,.58); border: 1px solid #dbe3ea; backdrop-filter: blur(8px); }
#publicView .wb-btn-secondary:hover { color: #2db4b3; background: #fff; border-color: #2db4b3; }
#publicView .wb-hero-proof { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding-top: 4px; color: #64748b; font-size: 14px; font-weight: 500; }
#publicView .wb-hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
#publicView .wb-hero-proof svg { width: 16px; height: 16px; fill: none; stroke: #2db4b3; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#publicView .wb-hero-visual { position: relative; }
#publicView .wb-hero-image-wrap { width: min(512px, 100%); aspect-ratio: 1; position: relative; margin: 0 auto; }
#publicView .wb-hero-image-glow { position: absolute; inset: 0; border-radius: 48px; background: linear-gradient(135deg, rgba(45,180,179,.24), rgba(104,116,192,.24)); filter: blur(28px); }
#publicView .wb-hero-image-frame { position: relative; width: 100%; height: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,.55); border-radius: 48px; box-shadow: 0 28px 64px rgba(63,85,123,.22); }
#publicView .wb-hero-image-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
#publicView .wb-hero-float { position: absolute; display: flex; align-items: flex-start; color: #334155; background: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.95); border-radius: 16px; box-shadow: 0 14px 32px rgba(76,99,128,.18); backdrop-filter: blur(14px); }
#publicView .wb-float-bpm { left: -24px; top: 25%; flex-direction: column; padding: 12px 16px; will-change: transform; animation: wbBpmCssFloat 7.2s ease-in-out infinite alternate; }
#publicView .wb-float-bpm.wb-bpm-js-active { animation: none !important; }
@keyframes wbBpmCssFloat {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -36px, 0); }
}
#publicView .wb-float-bpm strong { color: #2db4b3; font-size: 24px; line-height: 1; }
#publicView .wb-hero-float small { margin-top: 4px; color: #64748b; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
#publicView .wb-float-guardian { right: -16px; bottom: 25%; gap: 8px; padding: 12px 16px; }
#publicView .wb-float-guardian > svg { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: #5c6bc0; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#publicView .wb-float-guardian span { display: flex; flex-direction: column; }
#publicView .wb-float-guardian strong { color: #334155; font-size: 14px; line-height: 1.1; }

#publicView .wb-section-shell { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
#publicView .wb-section-intro { max-width: 768px; margin: 0 auto 64px; text-align: center; }
#publicView .wb-section-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 16px; color: #2db4b3; background: rgba(45,180,179,.10); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .06em; }
#publicView .wb-section-kicker svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#publicView .wb-section-intro h2, #publicView .wb-vision-copy h2, #publicView .wb-contact-copy h2 { margin: 0 0 20px; color: #2c3844; font-size: clamp(36px, 4vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -.055em; }
#publicView .wb-section-intro p, #publicView .wb-vision-copy > p, #publicView .wb-contact-copy > p { margin: 0; color: #64748b; font-size: 18px; line-height: 1.6; }
#publicView .wb-readiness-alt .wb-section-intro h2, #publicView .wb-readiness-alt .wb-section-intro h2 span { color: #e6eef5; }
#publicView .wb-modules-section { min-height: 0; padding: 96px 0 128px; background: linear-gradient(to bottom, #fff, #f8fafc); }
#publicView .wb-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#publicView .wb-module-card { min-height: 368px; height: 100%; position: relative; display: flex; flex-direction: column; padding: 28px; overflow: hidden; color: #2c3844; background: #fff; border: 1px solid #f0f2f5; border-radius: 24px; text-decoration: none; box-shadow: 0 4px 14px rgba(15,23,42,.025); transition: transform .22s ease-out, box-shadow .22s ease-out, border-color .22s ease-out, background .22s ease-out; }
#publicView .wb-module-card:hover { color: #2c3844; border-color: transparent; background: linear-gradient(145deg, #fff, rgba(45,180,179,.035)); box-shadow: 0 22px 42px rgba(15,23,42,.10); transform: translateY(-4px); }
#publicView .wb-module-card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
#publicView .wb-module-icon { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; color: var(--module-accent); background: var(--module-soft); border-radius: 16px; box-shadow: 0 8px 24px color-mix(in srgb, var(--module-accent) 15%, transparent); }
#publicView .wb-module-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#publicView .wb-module-number { color: #cbd5e1; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
#publicView .wb-module-category { display: inline-flex; align-self: flex-start; margin-bottom: 4px; padding: 2px 8px; color: var(--module-accent); background: var(--module-soft); border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
#publicView .wb-module-card h3 { min-height: 23px; margin: 0 0 4px; color: #2c3844; font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
#publicView .wb-module-tagline { min-height: 18px; margin: 0 0 12px; color: var(--module-accent); font-size: 12px; font-weight: 600; line-height: 1.4; }
#publicView .wb-module-description { margin: 0 0 20px; color: #64748b; font-size: 14px; line-height: 1.6; }
#publicView .wb-module-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
#publicView .wb-module-stats span { padding: 4px 10px; color: #475569; background: #f1f5f9; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
#publicView .wb-module-arrow { position: absolute; top: 28px; right: 28px; width: 20px; height: 20px; fill: none; stroke: #cbd5e1; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .18s ease-out, color .18s ease-out, transform .18s ease-out; }
#publicView .wb-module-card:hover .wb-module-arrow { color: var(--module-accent); opacity: 1; transform: rotate(45deg); }

#publicView #how.wb-how-section { min-height: 0; padding: 96px 0 128px; position: relative; overflow: hidden; color: #fff; background: #0f172a !important; border: 0 !important; }
#publicView .wb-how-mesh { position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 32px 32px; }
#publicView .wb-how-glow { position: absolute; top: 0; left: 50%; width: 800px; height: 400px; border-radius: 50%; background: rgba(45,180,179,.16); filter: blur(120px); transform: translateX(-50%); }
#publicView .wb-dark-intro { position: relative; z-index: 1; }
#publicView .wb-dark-intro .wb-section-kicker { color: #2db4b3; background: rgba(255,255,255,.10); }
#publicView .wb-dark-intro h2 { color: #e6eef5; }
#publicView .wb-dark-intro p { color: #cbd5e1; }
#publicView .wb-how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; z-index: 1; }
#publicView .wb-how-item { position: relative; }
#publicView .wb-how-card { height: 100%; min-height: 350px; padding: 28px; background: rgba(15,23,42,.62); border: 1px solid rgba(255,255,255,.10); border-radius: 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
#publicView .wb-how-icon { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--icon); background: var(--icon-bg); border-radius: 16px; }
#publicView .wb-how-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#publicView .wb-how-number { margin-bottom: 8px; color: rgba(255,255,255,.10); font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
#publicView .wb-how-card h3 { margin: 0 0 8px; color: #e6eef5; font-size: 18px; font-weight: 700; }
#publicView .wb-how-card p { margin: 0; color: #cbd5e1; font-size: 14px; line-height: 1.6; }
#publicView .wb-how-connector { display: block; position: absolute; top: 50%; right: -12px; width: 24px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.32), transparent); }

#publicView #devices.wb-devices-section { min-height: 0; max-width: none; margin: 0 !important; padding: 96px 0 128px !important; background: #fff !important; }
#publicView .wb-devices-intro { max-width: 768px; }
#publicView .wb-secondary-kicker { color: #5c6bc0; background: rgba(92,107,192,.10); }
#publicView .wb-devices-intro p strong { color: #2c3844; }
#publicView .wb-device-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#publicView .wb-device-card { min-height: 92px; display: flex; align-items: center; gap: 16px; padding: 20px; background: #f8fafc; border: 1px solid transparent; border-radius: 16px; transition: background .18s ease-out, border-color .18s ease-out, transform .18s ease-out; }
#publicView .wb-device-card:hover { background: linear-gradient(145deg, rgba(45,180,179,.05), rgba(92,107,192,.05)); border-color: rgba(45,180,179,.22); transform: translateY(-2px); }
#publicView .wb-device-icon { width: 48px; height: 48px; flex: 0 0 48px; display: inline-flex; align-items: center; justify-content: center; color: #2db4b3; background: #fff; border-radius: 12px; box-shadow: 0 4px 12px rgba(15,23,42,.06); transition: transform .18s ease-out; }
#publicView .wb-device-card:hover .wb-device-icon { transform: scale(1.08); }
#publicView .wb-device-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#publicView .wb-device-card strong, #publicView .wb-device-card small { display: block; }
#publicView .wb-device-card strong { color: #2c3844; font-size: 14px; font-weight: 700; line-height: 1.3; }
#publicView .wb-device-card small { margin-top: 4px; color: #94a3b8; font-size: 11px; line-height: 1.4; }
#publicView .wb-device-discovery { border: 2px dashed rgba(45,180,179,.30); background: rgba(45,180,179,.06); }
#publicView .wb-device-discovery .wb-device-icon { color: #2db4b3; background: rgba(45,180,179,.10); box-shadow: none; }

#publicView #impact.wb-impact-strip { min-height: 0; padding: 80px 0 !important; position: relative; overflow: hidden; color: #fff; background: linear-gradient(to right, #2cafaB, #6874c0) !important; }
#publicView .wb-impact-pattern { position: absolute; inset: 0; opacity: .10; background-image: radial-gradient(circle at 25% 25%, #fff 2px, transparent 2px); background-size: 32px 32px; }
#publicView .wb-impact-shell { position: relative; z-index: 1; }
#publicView .wb-impact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
#publicView .wb-impact-metric { min-height: 172px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
#publicView .wb-impact-icon { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; color: #fff; background: rgba(255,255,255,.15); border-radius: 16px; }
#publicView .wb-impact-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#publicView .wb-impact-metric strong { color: #fff; font-size: clamp(36px, 4vw, 50px); font-weight: 800; line-height: 1; letter-spacing: -.05em; }
#publicView .wb-impact-metric span { margin-top: 8px; color: rgba(255,255,255,.82) !important; font-size: 14px !important; font-weight: 500; }
#publicView .wb-impact-live-note { margin-top: 10px; color: rgba(255,255,255,.64); font-size: 9px; font-weight: 700; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }

#publicView .wb-vision-section { padding: 96px 0 128px; background: #fff; }
#publicView .wb-vision-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
#publicView .wb-vision-copy { display: flex; flex-direction: column; align-items: flex-start; }
#publicView .wb-vision-copy h2 span { color: transparent; background: linear-gradient(105deg, #19b5b0 0%, #2c92df 48%, #836ce6 100%); -webkit-background-clip: text; background-clip: text; }
#publicView .wb-vision-copy > p + p { margin-top: 18px; }
#publicView .wb-vision-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
#publicView .wb-vision-cards article { min-height: 250px; padding: 28px; background: linear-gradient(145deg, #f8fafc, #fff); border: 1px solid #eef1f5; border-radius: 24px; transition: box-shadow .18s ease-out, transform .18s ease-out; }
#publicView .wb-vision-cards article:hover { box-shadow: 0 18px 36px rgba(15,23,42,.08); transform: translateY(-3px); }
#publicView .wb-vision-icon { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; color: #2db4b3; background: linear-gradient(145deg, rgba(45,180,179,.15), rgba(92,107,192,.15)); border-radius: 16px; }
#publicView .wb-vision-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#publicView .wb-vision-cards h3 { margin: 0 0 8px; color: #2c3844; font-size: 16px; font-weight: 700; }
#publicView .wb-vision-cards p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.6; }

#publicView .wb-contact-section { position: relative; overflow: hidden; padding: 96px 0 128px; background: linear-gradient(to bottom, #f8fafc, #fff); }
#publicView .wb-contact-orb { position: absolute; width: 500px; height: 500px; right: -128px; bottom: -128px; border-radius: 50%; background: linear-gradient(135deg, rgba(92,107,192,.15), rgba(45,180,179,.10)); filter: blur(64px); }
#publicView .wb-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 48px; position: relative; z-index: 1; }
#publicView .wb-contact-copy { display: flex; flex-direction: column; align-items: flex-start; }
#publicView .wb-partner-points { display: flex; flex-direction: column; gap: 20px; width: 100%; padding-top: 20px; }
#publicView .wb-partner-points > div { display: flex; align-items: flex-start; gap: 16px; }
#publicView .wb-point-icon { width: 44px; height: 44px; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; color: #2db4b3; background: rgba(45,180,179,.10); border-radius: 12px; }
#publicView .wb-point-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#publicView .wb-partner-points p { margin: 0; }
#publicView .wb-partner-points strong, #publicView .wb-partner-points small { display: block; }
#publicView .wb-partner-points strong { color: #2c3844; font-size: 14px; font-weight: 700; }
#publicView .wb-partner-points small { margin-top: 4px; color: #64748b; font-size: 14px; line-height: 1.5; }
#publicView .wb-contact-form { display: flex; flex-direction: column; gap: 20px; padding: 32px; background: #fff; border: 1px solid #eef1f5; border-radius: 24px; box-shadow: 0 20px 48px rgba(15,23,42,.06); }
#publicView .wb-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#publicView .wb-input-wrap { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #f8fafc; border: 1px solid #dbe3ea; border-radius: 12px; }
#publicView .wb-input-wrap:focus-within { background: #fff; border-color: #2db4b3; box-shadow: 0 0 0 3px rgba(45,180,179,.13); }
#publicView .wb-input-wrap svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: #cbd5e1; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#publicView .wb-input-wrap input, #publicView .wb-input-wrap textarea { width: 100%; min-width: 0; color: #334155; background: transparent; border: 0; outline: 0; font: inherit; font-size: 14px; }
#publicView .wb-input-wrap textarea { height: 112px; padding: 14px 0; resize: vertical; line-height: 1.55; }
#publicView .wb-textarea-wrap { align-items: flex-start; }
#publicView .wb-textarea-wrap svg { margin-top: 14px; }
#publicView .wb-input-wrap input::placeholder, #publicView .wb-input-wrap textarea::placeholder { color: #94a3b8; }
#publicView .wb-form-group { display: flex; flex-direction: column; gap: 8px; }
#publicView .wb-form-label { color: #64748b; font-size: 12px; font-weight: 600; }
#publicView .wb-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#publicView .wb-type-btn { min-height: 36px; padding: 0 10px; color: #475569; background: #f8fafc; border: 1px solid #dbe3ea; border-radius: 10px; font-size: 11px; font-weight: 600; transition: border-color .18s ease-out, background .18s ease-out, color .18s ease-out, transform .16s ease-out; }
#publicView .wb-type-btn:hover { color: #2db4b3; border-color: rgba(45,180,179,.45); }
#publicView .wb-type-btn.active, #publicView .wb-type-btn.btn-brand { color: #fff; background: #2db4b3; border-color: #2db4b3; box-shadow: 0 7px 16px rgba(45,180,179,.20); }
#publicView .wb-type-btn:active { transform: scale(.97); }
#publicView .wb-submit-btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: linear-gradient(to right, #2db4b3, #6874c0); border: 0; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 24px rgba(45,180,179,.20); }
#publicView .wb-submit-btn:hover { color: #fff; filter: brightness(1.05); }
#publicView .wb-submit-btn:active { transform: scale(.985); }
#publicView .wb-submit-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#publicView .wb-contact-toast { padding: 12px 14px; color: #15803d; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.24); border-radius: 12px; font-size: 13px; font-weight: 700; text-align: center; }
#publicView .wb-contact-toast-error { color: #b42318; background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.28); }

#publicView .wb-public-footer { padding: 64px 0 32px; color: #cbd5e1; background: #0f172a; }
#publicView .wb-footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.10); }
#publicView .wb-footer-brand .wb-brand-copy strong { color: #fff; }
#publicView .wb-footer-brand > p { max-width: 260px; margin: 16px 0 0; color: #94a3b8; font-size: 14px; line-height: 1.6; }
#publicView .wb-public-footer h4 { margin: 0 0 16px; color: #fff; font-size: 14px; font-weight: 600; }
#publicView .wb-public-footer > .wb-section-shell > div:not(.wb-footer-brand) > a { display: block; margin-bottom: 10px; color: #94a3b8 !important; font-size: 14px; text-decoration: none; transition: color .18s ease-out; }
#publicView .wb-public-footer > .wb-section-shell > div:not(.wb-footer-brand) > a:hover { color: #2db4b3 !important; }
#publicView .wb-socials { display: flex; gap: 12px; margin-bottom: 16px; }
#publicView .wb-socials a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; margin: 0 !important; color: #cbd5e1 !important; background: rgba(255,255,255,.05); border-radius: 12px; }
#publicView .wb-socials a:hover { color: #fff !important; background: #2db4b3; }
#publicView .wb-socials svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#publicView .wb-public-footer .wb-footer-cta { color: #2db4b3 !important; font-weight: 600; }
#publicView .wb-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; color: #64748b; font-size: 12px; }

@media (max-width: 991.98px) {
  #publicView .wb-nav-inner { width: min(100% - 32px, 760px); }
  #publicView .wb-nav-links { display: none; }
  #publicView .wb-hero-section { min-height: auto; padding: 136px 0 88px; }
  #publicView .wb-hero-grid, #publicView .wb-vision-grid, #publicView .wb-contact-grid { grid-template-columns: 1fr; }
  #publicView .wb-hero-grid { width: min(100% - 32px, 760px); gap: 64px; }
  #publicView .wb-hero-copy { align-items: center; text-align: center; }
  #publicView .wb-hero-description { max-width: 680px; }
  #publicView .wb-hero-proof { justify-content: center; }
  #publicView .wb-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #publicView .wb-how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #publicView .wb-how-connector { display: none; }
  #publicView .wb-device-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #publicView .wb-impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #publicView .wb-vision-grid, #publicView .wb-contact-grid { gap: 48px; }
  #publicView .wb-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  #publicView .wb-nav-inner { width: calc(100% - 24px); }
  #publicView .wb-nav-admin { display: none; }
  #publicView .wb-nav-cta { min-height: 36px; padding: 0 13px; font-size: 11px; }
  #publicView .wb-brand-copy strong { font-size: 10px; }
  #publicView .wb-brand-copy small { font-size: 7px; }
  #publicView .wb-hero-grid, #publicView .wb-section-shell { width: min(100% - 32px, 520px); }
  #publicView .wb-hero-title { font-size: 48px; }
  #publicView .wb-hero-actions { width: 100%; flex-direction: column; gap: 10px; }
  #publicView .wb-btn { width: 100%; }
  #publicView .wb-hero-image-wrap { width: calc(100% - 28px); }
  #publicView .wb-float-bpm { left: -14px; }
  #publicView .wb-float-guardian { right: -14px; }
  #publicView .wb-module-grid, #publicView .wb-how-grid, #publicView .wb-device-grid, #publicView .wb-vision-cards { grid-template-columns: 1fr; }
  #publicView .wb-module-card { min-height: 0; }
  #publicView .wb-how-card { min-height: 0; }
  #publicView .wb-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #publicView .wb-form-row { grid-template-columns: 1fr; }
  #publicView .wb-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  #publicView .wb-footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  #publicView .wb-ping i { animation: none; }
}

/* --------------------------------------------------------------------------
   MISSION CONTROL MODULE VISUALS — admin-only; the public landing is untouched.
   -------------------------------------------------------------------------- */
#adminView .mc-module-visual-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
#adminView .mc-module-visual-card { min-width: 0; min-height: 246px; display: flex; flex-direction: column; padding: 18px; overflow: hidden; background: linear-gradient(145deg, rgba(15,23,42,.98), rgba(2,6,23,.84)); border: 1px solid rgba(148,163,184,.18); border-top: 2px solid var(--module-accent); border-radius: 16px; box-shadow: 0 18px 38px rgba(0,0,0,.14); transition: transform .18s ease-out, border-color .18s ease-out, box-shadow .18s ease-out; }
#adminView .mc-module-visual-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--module-accent) 62%, rgba(148,163,184,.22)); box-shadow: 0 24px 46px rgba(0,0,0,.24), 0 0 24px color-mix(in srgb, var(--module-accent) 14%, transparent); }
#adminView .mc-module-visual-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 48px; }
#adminView .mc-module-visual-code { display: block; margin-bottom: 5px; color: var(--module-accent); font-size: 9px; font-weight: 800; letter-spacing: .10em; }
#adminView .mc-module-visual-head h3 { max-width: 230px; margin: 0; color: #f8fafc; font-size: 13px; font-weight: 700; line-height: 1.25; }
#adminView .mc-module-active { flex: 0 0 auto; padding: 4px 7px; color: #34d399; background: rgba(16,185,129,.12); border: 1px solid rgba(52,211,153,.22); border-radius: 999px; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
#adminView .mc-module-visual-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 8px; }
#adminView .mc-module-visual-stats div { min-width: 0; padding: 8px 9px; background: rgba(2,6,23,.44); border: 1px solid rgba(148,163,184,.09); border-radius: 10px; }
#adminView .mc-module-visual-stats span, #adminView .mc-module-visual-stats strong { display: block; }
#adminView .mc-module-visual-stats span { overflow: hidden; color: #64748b; font-size: 8px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
#adminView .mc-module-visual-stats strong { margin-top: 4px; color: #e2e8f0; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
#adminView .mc-module-sparkline { height: 78px; position: relative; margin: 0 -3px 8px; border-bottom: 1px solid rgba(148,163,184,.10); background: repeating-linear-gradient(to right, transparent 0, transparent 31px, rgba(148,163,184,.035) 32px), repeating-linear-gradient(to bottom, transparent 0, transparent 25px, rgba(148,163,184,.035) 26px); }
#adminView .mc-module-sparkline::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--module-accent) 72%, transparent), transparent); opacity: .55; }
#adminView .mc-module-sparkline canvas { width: 100% !important; height: 100% !important; }
#adminView .mc-module-visual-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; color: #64748b; font-size: 8px; letter-spacing: .05em; }
#adminView .mc-module-visual-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#adminView .mc-module-visual-foot b { color: var(--module-accent); font-size: 11px; font-weight: 800; }
@media (max-width: 1120px) {
  #adminView .mc-module-visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  #adminView .mc-module-visual-grid { grid-template-columns: 1fr; }
}



/* Fixed Mission Control navigation: admin-only, with an independently scrollable sidebar so Sign out stays reachable. */
#adminView .mission-control-layout { position: relative; min-height: 100vh; }
#adminView .mc-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 256px; flex: 0 0 256px; height: 100vh; max-height: 100dvh; min-height: 100vh; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
#adminView .mc-main { min-height: 100vh; margin-left: 256px; }
#adminView .mc-sidebar-bottom { flex-shrink: 0; }

@media (max-width: 1100px) {
  #adminView .mc-sidebar { width: 220px; flex-basis: 220px; }
  #adminView .mc-main { margin-left: 220px; }
}

@media (max-width: 820px) {
  #adminView .mc-sidebar { position: relative; inset: auto; z-index: auto; width: 100%; flex-basis: auto; height: auto; max-height: none; min-height: auto; overflow: visible; scrollbar-gutter: auto; }
  #adminView .mc-main { margin-left: 0; }
}


/* Keep the dashboard pane independently scrollable while the fixed sidebar remains in place. */
#adminView .mission-control-layout { height: 100vh; overflow: hidden; }
#adminView .mc-main { height: 100vh; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }

@media (max-width: 820px) {
  #adminView .mission-control-layout { height: auto; min-height: 100vh; overflow: visible; }
  #adminView .mc-main { height: auto; min-height: 100vh; overflow: visible; }
}


/* Eye-scan-only Mission Control gate refinements; intentionally scoped away from #publicView. */
#adminView .mc-gate-brand .mc-brand-mark { width: 48px; height: 48px; border-radius: 16px; }
#adminView .mc-gate-brand .mc-brand-mark .mc-icon { width: 20px; height: 20px; }
#adminView .mc-scan-surface {
  width: 224px;
  height: 224px;
  border: 2px solid rgba(148, 163, 184, .35);
  border-radius: 40px;
  background:
    radial-gradient(circle at 50% 45%, rgba(45, 180, 179, .14), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, .08), transparent 72%),
    rgba(15, 23, 42, .62);
  box-shadow: inset 0 0 28px rgba(45, 180, 179, .06), 0 0 30px rgba(45, 180, 179, .04);
}
#adminView .mc-gate.scanning .mc-scan-surface { border-color: rgba(239, 68, 68, .72); transition: border-color .5s cubic-bezier(.23, 1, .32, 1), box-shadow .5s cubic-bezier(.23, 1, .32, 1); }
#adminView .mc-gate.scanning[data-scan-stage="red"] .mc-scan-surface { border-color: rgba(239, 68, 68, .88); box-shadow: inset 0 0 32px rgba(239, 68, 68, .14), 0 0 34px rgba(239, 68, 68, .12); }
#adminView .mc-gate.scanning[data-scan-stage="red"] .mc-scan-ring { border-color: rgba(239, 68, 68, .92); animation-name: mcEyeRingRed; }
#adminView .mc-gate.scanning[data-scan-stage="red"] .mc-scan-face { color: #ef4444; animation-name: mcEyeFocusRed; }
#adminView .mc-gate.scanning[data-scan-stage="red"] .mc-scan-line { background: linear-gradient(90deg, transparent, #ef4444, transparent); box-shadow: 0 0 20px #ef4444; }
#adminView .mc-gate.scanning .mc-scan-ring { animation: mcEyeRing 1.82s cubic-bezier(.23, 1, .32, 1) infinite; }
#adminView .mc-gate.scanning .mc-scan-face { animation: mcEyeFocus 1.17s cubic-bezier(.77, 0, .175, 1) infinite; }
#adminView .mc-gate.success .mc-scan-ring { border-color: rgba(52, 211, 153, .95); box-shadow: 0 0 32px rgba(52, 211, 153, .25); }
#adminView .mc-gate.success .mc-scan-face { color: #34d399; filter: drop-shadow(0 0 12px rgba(52, 211, 153, .75)); }
@keyframes mcEyeRing {
  0%, 100% { transform: scale(.94); border-color: rgba(45, 180, 179, .56); box-shadow: 0 0 18px rgba(45, 180, 179, .10); }
  48% { transform: scale(1.035); border-color: rgba(99, 102, 241, .92); box-shadow: 0 0 34px rgba(99, 102, 241, .22), inset 0 0 22px rgba(45, 180, 179, .08); }
}
@keyframes mcEyeFocus {
  0%, 100% { transform: scale(.94); opacity: .68; color: #8fa4bf; }
  48% { transform: scale(1.06); opacity: 1; color: #2db4b3; }
  74% { color: #818cf8; }
}
@media (prefers-reduced-motion: reduce) {
  #adminView .mc-gate.scanning .mc-scan-ring,
  #adminView .mc-gate.scanning .mc-scan-face { animation: none; }
}

/* Eye-scan color progression: red calibration -> amber verification -> green success. */
#adminView .mc-gate.scanning[data-scan-stage="amber"] .mc-scan-surface {
  border-color: rgba(245, 158, 11, .88);
  box-shadow: inset 0 0 32px rgba(245, 158, 11, .14), 0 0 34px rgba(245, 158, 11, .14);
}
#adminView .mc-gate.scanning[data-scan-stage="amber"] .mc-scan-ring { border-color: rgba(245, 158, 11, .96); animation-name: mcEyeRingAmber; }
#adminView .mc-gate.scanning[data-scan-stage="amber"] .mc-scan-face { color: #f59e0b; animation-name: mcEyeFocusAmber; }
#adminView .mc-gate.scanning[data-scan-stage="amber"] .mc-scan-line { background: linear-gradient(90deg, transparent, #f59e0b, transparent); box-shadow: 0 0 22px #f59e0b; }
#adminView .mc-gate.scanning[data-scan-stage="green"] .mc-scan-surface {
  border-color: rgba(52, 211, 153, .92);
  box-shadow: inset 0 0 36px rgba(52, 211, 153, .16), 0 0 38px rgba(52, 211, 153, .16);
}
#adminView .mc-gate.scanning[data-scan-stage="green"] .mc-scan-ring { animation-name: mcEyeRingGreen; }
#adminView .mc-gate.scanning[data-scan-stage="green"] .mc-scan-face { animation-name: mcEyeFocusGreen; }
#adminView .mc-gate.scanning[data-scan-stage="green"] .mc-scan-line { background: linear-gradient(90deg, transparent, #34d399, transparent); box-shadow: 0 0 22px #34d399; }
#adminView .mc-gate.success .mc-scan-surface { border-color: rgba(52, 211, 153, .98); box-shadow: inset 0 0 42px rgba(52, 211, 153, .18), 0 0 44px rgba(52, 211, 153, .22); }
#adminView .mc-gate.success .mc-scan-ring { animation: mcEyeRingSuccess .76s cubic-bezier(.23, 1, .32, 1) both; }
#adminView .mc-gate.success .mc-scan-face { width: 80px !important; height: 80px !important; stroke-width: 1.8 !important; animation: mcEyeFocusSuccess .76s cubic-bezier(.23, 1, .32, 1) both; }
#adminView .mc-gate.success .mc-gate-brand .mc-brand-mark { color: #ecfdf5; background: linear-gradient(145deg, #34d399, #10b981); border: 1px solid rgba(167, 243, 208, .88); box-shadow: 0 0 34px rgba(52, 211, 153, .46), 0 0 0 4px rgba(52, 211, 153, .10); transform: scale(1.06); transition: background .5s cubic-bezier(.23, 1, .32, 1), box-shadow .5s cubic-bezier(.23, 1, .32, 1), transform .5s cubic-bezier(.23, 1, .32, 1); }
#adminView .mc-gate.success .mc-gate-brand small,
#adminView .mc-gate.success .mc-gate-title .mc-icon { color: #34d399; }
@keyframes mcEyeRingAmber {
  0%, 100% { transform: scale(.94); border-color: rgba(245, 158, 11, .78); box-shadow: 0 0 18px rgba(245, 158, 11, .14); }
  48% { transform: scale(1.04); border-color: rgba(251, 191, 36, 1); box-shadow: 0 0 36px rgba(245, 158, 11, .34), inset 0 0 22px rgba(251, 191, 36, .12); }
}
@keyframes mcEyeFocusAmber {
  0%, 100% { transform: scale(.94); opacity: .78; color: #fbbf24; }
  48% { transform: scale(1.06); opacity: 1; color: #f59e0b; }
}
@keyframes mcEyeRingRed {
  0%, 100% { transform: scale(.94); border-color: rgba(239, 68, 68, .72); box-shadow: 0 0 20px rgba(239, 68, 68, .16); }
  48% { transform: scale(1.045); border-color: rgba(248, 113, 113, 1); box-shadow: 0 0 38px rgba(239, 68, 68, .34), inset 0 0 24px rgba(248, 113, 113, .12); }
}
@keyframes mcEyeFocusRed {
  0%, 100% { transform: scale(.94); opacity: .76; color: #fca5a5; }
  48% { transform: scale(1.07); opacity: 1; color: #ef4444; }
}
@keyframes mcEyeRingGreen {
  0%, 100% { transform: scale(.96); border-color: rgba(52, 211, 153, .76); box-shadow: 0 0 22px rgba(52, 211, 153, .16); }
  48% { transform: scale(1.045); border-color: rgba(110, 231, 183, 1); box-shadow: 0 0 38px rgba(52, 211, 153, .34), inset 0 0 24px rgba(110, 231, 183, .12); }
}
@keyframes mcEyeFocusGreen {
  0%, 100% { transform: scale(.96); opacity: .82; color: #86efac; }
  48% { transform: scale(1.08); opacity: 1; color: #34d399; }
}
@keyframes mcEyeRingSuccess {
  0% { transform: scale(.96); border-color: rgba(52, 211, 153, .78); box-shadow: 0 0 24px rgba(52, 211, 153, .18); }
  54% { transform: scale(1.10); border-color: rgba(110, 231, 183, 1); box-shadow: 0 0 50px rgba(52, 211, 153, .48), inset 0 0 26px rgba(110, 231, 183, .16); }
  100% { transform: scale(1); border-color: rgba(52, 211, 153, .98); box-shadow: 0 0 36px rgba(52, 211, 153, .30), inset 0 0 20px rgba(52, 211, 153, .10); }
}
#adminView .mc-gate.success .mc-scan-face { color: #34d399; filter: drop-shadow(0 0 14px rgba(52, 211, 153, .88)); }
@keyframes mcEyeFocusSuccess {
  0% { transform: scale(.96); opacity: .82; color: #86efac; }
  54% { transform: scale(1.16); opacity: 1; color: #bbf7d0; filter: drop-shadow(0 0 16px rgba(52, 211, 153, .9)); }
  100% { transform: scale(1); opacity: 1; color: #34d399; filter: drop-shadow(0 0 12px rgba(52, 211, 153, .75)); }
}

/* Public footer credit: centered and intentionally scoped away from Mission Control. */
.wb-credit-footer { text-align: center !important; }
.wb-credit-footer .wb-credit-link { color: #2db4b3 !important; font-weight: 700; text-decoration: none; text-underline-offset: 3px; transition: color .18s ease-out, text-decoration-color .18s ease-out; }
.wb-credit-footer .wb-credit-link:hover, .wb-credit-footer .wb-credit-link:focus-visible { color: #5c6bc0 !important; text-decoration: underline; }
.wb-credit-separator { color: #cbd5e1; }

/* Mission Control heart-rate KPI: keep the live state beside the value, not in the card corner. */
#adminView .mc-heart-rate-value-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin-top: 10px; }
#adminView .mc-heart-rate-value-row .mc-kpi-value { margin-top: 0; }
#adminView .mc-heart-rate-value-row .mc-kpi-trend { flex: 0 0 auto; font-size: 12px; line-height: 1; font-weight: 700; white-space: nowrap; text-transform: lowercase; }
@media (max-width: 520px) { #adminView .mc-heart-rate-value-row { gap: 6px; } #adminView .mc-heart-rate-value-row .mc-kpi-trend { font-size: 11px; } }

/* Selectable per-person Live Alert Feed telemetry */
#adminView .mc-alert-card { height: 416px; min-height: 416px; }
#adminView .mc-alert-row {
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .18s ease-out, border-color .18s ease-out, box-shadow .18s ease-out, transform .18s ease-out;
}
#adminView .mc-alert-row:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(45, 180, 179, .28);
}
#adminView .mc-alert-row:focus-visible {
  outline: 2px solid rgba(45, 180, 179, .9);
  outline-offset: 2px;
}
#adminView .mc-alert-row.is-selected {
  background: linear-gradient(90deg, rgba(45, 180, 179, .18), rgba(45, 180, 179, .07));
  border-color: rgba(45, 180, 179, .72);
  box-shadow: inset 3px 0 0 #2db4b3, 0 0 18px rgba(45, 180, 179, .10);
}
#adminView .mc-alert-row.is-selected .mc-alert-line strong,
#adminView .mc-alert-row.is-selected .mc-alert-meta span:last-child {
  color: #d9fffb;
}
#adminView .mc-alert-row.is-selected .mc-alert-dot {
  box-shadow: 0 0 0 4px rgba(45, 180, 179, .12), 0 0 14px rgba(45, 180, 179, .72);
}
#adminView .mc-alert-row.is-selected .mc-alert-line strong.mc-alert-name.live-green { color: #34d399; }
#adminView .mc-alert-row.is-selected .mc-alert-line strong.mc-alert-name.live-amber { color: #f59e0b; }
#adminView .mc-alert-row.is-selected .mc-alert-line strong.mc-alert-name.live-red { color: #f87171; }
#adminView #heartRateSubject {
  color: #86efac;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 520px) {
  #adminView #heartRateSubject { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
}

/* Device Fleet live triage controls and persistent Alert monitor. */
#adminView .mc-fleet-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
#adminView .mc-fleet-panel > .mc-panel-heading,
#adminView .mc-fleet-panel > .fleet-alert-monitor { position: relative; z-index: 2; flex: 0 0 auto; }
#adminView .mc-fleet-table-scroll { flex: 1 1 auto; min-height: 0; max-height: min(62vh, 560px); overflow-x: auto; overflow-y: scroll; overscroll-behavior: contain; scrollbar-gutter: stable; border: 0; box-shadow: none; }
#adminView .mc-fleet-table-scroll #fleetRows tr td:first-child,
#adminView .mc-fleet-table-scroll #fleetRows tr td:last-child { box-shadow: none !important; }
#adminView .mc-fleet-filters { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
#adminView .mc-fleet-filters .mc-select-control { min-width: 154px; color: #e2e8f0; }
#adminView .mc-fleet-filters .mc-select-control option { color: #0f172a; background: #f8fafc; }
#adminView .fleet-alert-monitor { position: relative; display: grid; grid-template-columns: max-content minmax(0, 1.15fr) minmax(420px, 1fr); align-items: center; column-gap: clamp(12px, 2.5vw, 30px); min-height: 52px; margin: -4px 0 14px; padding: 10px clamp(14px, 2.5vw, 24px); color: #fecaca; background: linear-gradient(90deg, rgba(127, 29, 29, .48), rgba(69, 10, 10, .26)); border: 1px solid rgba(248, 113, 113, .58); border-radius: 10px; box-shadow: 0 0 18px rgba(239, 68, 68, .14); }
#adminView .fleet-alert-monitor-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, .14), 0 0 14px rgba(248, 113, 113, .78); }
#adminView .fleet-alert-monitor > div { min-width: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; column-gap: clamp(10px, 2vw, 22px); }
#adminView .fleet-alert-monitor > div small { min-width: 0; margin-top: 0; text-align: left; line-height: 1.3; }
#adminView .fleet-alert-monitor strong, #adminView .fleet-alert-monitor small { display: block; }
#adminView .fleet-alert-monitor strong { white-space: nowrap; }
#adminView .fleet-alert-monitor strong { color: #fecaca; font-size: 10px; letter-spacing: .08em; }
#adminView .fleet-alert-monitor small { margin-top: 3px; color: #fca5a5; font-size: 10px; }
#adminView #fleetAlertMonitorAction { position: static; width: 100%; min-width: 0; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; justify-self: start; gap: 3px; color: #f87171; font-size: 10px; font-weight: 700; line-height: 1.15; text-align: left; white-space: normal; }
#adminView #fleetAlertMonitorAction .fleet-alert-monitor-priority-name { display: block; color: #f87171; font-size: 14px; font-weight: 600; letter-spacing: .015em; line-height: 1.15; text-align: left; }
#adminView #fleetAlertMonitorAction .fleet-alert-monitor-priority-label { display: block; margin: 0; color: #fca5a5; font-size: 9px; font-weight: 700; line-height: 1.2; text-align: left; white-space: nowrap; }
#adminView .fleet-alert-monitor-persistent { animation: fleetUrgencyPulse 1.65s ease-in-out infinite; border-color: rgba(248, 113, 113, .9); box-shadow: 0 0 26px rgba(239, 68, 68, .27), inset 0 0 16px rgba(127, 29, 29, .22); }
#adminView .fleet-row-alert td { background: rgba(127, 29, 29, .10); }
#adminView .fleet-row-priority td { background: linear-gradient(90deg, rgba(248, 113, 113, .14), rgba(127, 29, 29, .07)); }
#adminView .fleet-row-priority td:first-child { box-shadow: inset 3px 0 0 #f87171; }
#adminView .fleet-row-priority td:last-child { box-shadow: inset -3px 0 0 rgba(248, 113, 113, .58); }
#adminView .fleet-row-alert-persistent td:first-child { box-shadow: inset 3px 0 0 #ef4444; }
#adminView .fleet-alert-row-timer { display: inline-flex; margin-left: 6px; padding: 3px 5px; color: #fca5a5; background: rgba(127, 29, 29, .28); border: 1px solid rgba(248, 113, 113, .34); border-radius: 5px; font-size: 8px; font-variant-numeric: tabular-nums; letter-spacing: .04em; white-space: nowrap; }
#adminView .fleet-alert-row-timer-persistent { color: #fecaca; border-color: rgba(248, 113, 113, .82); box-shadow: 0 0 8px rgba(239, 68, 68, .22); }
/* Fleet-only row colours. Action buttons retain their existing selectors, labels, and behavior. */
#adminView .mc-fleet-table-scroll #fleetRows tr.fleet-row-random-green td { background: linear-gradient(90deg, rgba(16, 185, 129, .16), rgba(15, 23, 42, .34)); }
#adminView .mc-fleet-table-scroll #fleetRows tr.fleet-row-random-amber td { background: linear-gradient(90deg, rgba(245, 158, 11, .16), rgba(15, 23, 42, .34)); }
#adminView .mc-fleet-table-scroll #fleetRows tr.fleet-row-random-red td { background: linear-gradient(90deg, rgba(239, 68, 68, .16), rgba(15, 23, 42, .34)); }
#adminView .mc-fleet-table-scroll #fleetRows tr[class*="fleet-row-random-"]:hover td { filter: brightness(1.08); }
/* Swap the alert badge/timer treatment: the duration is the stronger alert surface and the status badge is the softer alert surface. */
#adminView .mc-fleet-table-scroll #fleetRows tr.fleet-row-alert td .badge.bg-danger { color: #fecaca !important; background: rgba(127, 29, 29, .72) !important; border: 1px solid rgba(248, 113, 113, .46); }
#adminView .mc-fleet-table-scroll #fleetRows tr.fleet-row-alert td .fleet-alert-row-timer { color: #ffffff; background: #ef4444; border-color: #fca5a5; box-shadow: 0 0 8px rgba(239, 68, 68, .28); }
/* Qualified lowest-battery Critical rows escalate their status badge to yellow. */
#adminView .mc-fleet-table-scroll #fleetRows tr.fleet-row-priority td .badge.bg-danger { color: #3f2a00 !important; background: #facc15 !important; border-color: #fde68a; box-shadow: 0 0 12px rgba(250, 204, 21, .34); }
#adminView .mc-fleet-table-scroll #fleetRows tr.fleet-row-priority td .fleet-alert-row-timer { color: #fff7ed; background: #b45309; border-color: #fcd34d; }
#adminView .mc-fleet-table-scroll #fleetRows tr.fleet-row-priority td .fleet-alert-row-timer-persistent { color: #fffbeb; background: #92400e; border-color: #fef08a; }
#adminView .mc-fleet-table-scroll #fleetRows .fleet-sos-sent-tick { display: none; width: 17px; height: 17px; align-items: center; justify-content: center; margin-left: 6px; color: #052e16; background: #4ade80; border: 1px solid #bbf7d0; border-radius: 50%; box-shadow: 0 0 10px rgba(74, 222, 128, .42); font-size: 12px; font-weight: 900; line-height: 1; vertical-align: middle; }
#adminView .mc-fleet-table-scroll #fleetRows .fleet-sos-sent-tick:not(.d-none) { display: inline-flex; }
#adminView .mc-fleet-table-scroll #fleetRows .fleet-sos-sent-tick.d-none { display: none !important; }
#adminView .mission-notification { position: fixed; right: 24px; bottom: 24px; z-index: 1100; display: flex; align-items: flex-start; gap: 10px; width: min(390px, calc(100vw - 32px)); padding: 13px 14px; color: #e2e8f0; background: rgba(15, 23, 42, .96); border: 1px solid rgba(45, 180, 179, .65); border-radius: 12px; box-shadow: 0 18px 44px rgba(2, 6, 23, .42), 0 0 22px rgba(45, 180, 179, .14); }
#adminView .mission-notification-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #07131f; background: #2db4b3; border-radius: 50%; font-size: 12px; font-weight: 900; }
#adminView .mission-notification > div { min-width: 0; flex: 1; }
#adminView .mission-notification strong, #adminView .mission-notification span { display: block; }
#adminView .mission-notification strong { color: #e2faff; font-size: 11px; }
#adminView .mission-notification-message, #adminView #missionNotificationMessage { margin-top: 3px; color: #94a3b8; font-size: 10px; line-height: 1.45; }
#adminView .mission-notification-dismiss { padding: 0; color: #94a3b8; background: transparent; border: 0; font-size: 19px; line-height: 1; }
#adminView .mission-notification-dismiss:hover { color: #f8fafc; }
#adminView .mission-notification.is-danger { border-color: rgba(248, 113, 113, .82); box-shadow: 0 18px 44px rgba(2, 6, 23, .42), 0 0 24px rgba(239, 68, 68, .22); }
#adminView .mission-notification.is-danger .mission-notification-icon { background: #f87171; }
#adminView .mission-notification.is-warning { border-color: rgba(245, 158, 11, .82); }
#adminView .mission-notification.is-warning .mission-notification-icon { background: #f59e0b; }
@keyframes fleetUrgencyPulse { 0%, 100% { transform: translateZ(0); filter: saturate(.96); } 50% { transform: translateZ(0) scale(1.008); filter: saturate(1.22); } }
@media (max-width: 820px) { #adminView .fleet-alert-monitor { grid-template-columns: max-content minmax(0, 1fr) minmax(250px, .85fr); column-gap: 14px; padding-inline: 14px; } #adminView .fleet-alert-monitor > div { grid-template-columns: 1fr; row-gap: 2px; } }
@media (max-width: 640px) { #adminView .fleet-alert-monitor { grid-template-columns: 9px minmax(0, 1fr); row-gap: 8px; min-height: 70px; padding: 9px 12px; } #adminView .fleet-alert-monitor > div { grid-column: 2; grid-template-columns: max-content minmax(0, 1fr); column-gap: 10px; } #adminView #fleetAlertMonitorAction { grid-column: 2; } }
@media (max-width: 520px) { #adminView .mc-fleet-filters { width: 100%; justify-content: stretch; } #adminView .mc-fleet-filters > * { flex: 1 1 100%; } #adminView .fleet-alert-monitor { grid-template-columns: 9px minmax(0, 1fr); min-height: 82px; } #adminView .fleet-alert-monitor > div { grid-template-columns: 1fr; row-gap: 3px; } #adminView .fleet-alert-monitor > div small { text-align: left; } #adminView #fleetAlertMonitorAction { min-width: 0; width: 100%; } #adminView .mission-notification { right: 16px; bottom: 16px; } }

#adminView .fleet-action-dispatched,
#adminView .fleet-action-confirmed.fleet-action-dispatched { color: #ffffff; background: #8b5cf6; border-color: #4c1d95; box-shadow: 0 0 16px rgba(139, 92, 246, .48); font-weight: 800; }
#adminView .fleet-row-action-taken td { color: #fff !important; background: linear-gradient(90deg, rgba(139, 92, 246, .36), rgba(88, 28, 135, .30)); }
#adminView .fleet-row-action-taken td:first-child { box-shadow: inset 3px 0 0 #f87171; }
#adminView .fleet-row-action-taken td,
#adminView .fleet-row-action-taken td span,
#adminView .fleet-row-action-taken td [data-fleet-device],
#adminView .fleet-row-action-taken td [data-fleet-type],
#adminView .fleet-row-action-taken td [data-fleet-module],
#adminView .fleet-row-action-taken td [data-fleet-heart-rate],
#adminView .fleet-row-action-taken td [data-fleet-stress],
#adminView .fleet-row-action-taken td [data-fleet-battery] { color: #fff !important; }
#adminView .fleet-row-action-taken td .text-secondary { color: rgba(255, 255, 255, .78) !important; }
#adminView .fleet-row-action-taken .badge { color: #fff !important; }
#adminView .fleet-row-action-taken .fleet-action-status { color: #fff; }
#adminView .fleet-action-status { display: block; margin-top: 5px; color: #6ee7b7; font-size: 8px; font-weight: 800; letter-spacing: .04em; line-height: 1.2; white-space: nowrap; }
#adminView .fleet-action-status.d-none { display: none !important; }

#adminView .mc-alert-action-state,
#adminView .mc-stream-action-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 3px 7px; border: 1px solid currentColor; border-radius: 6px; font-size: 8px; font-weight: 800; letter-spacing: .035em; line-height: 1.1; white-space: nowrap; }
#adminView .mc-alert-action-state { align-self: center; margin-left: 8px; }
#adminView .mc-stream-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 4px; }
#adminView .mc-stream-action-btn { cursor: pointer; transition: transform .16s ease, filter .16s ease, background-color .16s ease; }
#adminView .mc-stream-action-btn:hover { transform: translateY(-1px); filter: brightness(1.12); }
#adminView .mc-stream-action-btn:active { transform: scale(.97); }
#adminView .mc-alert-action-state.live-green,
#adminView .mc-stream-action-btn.live-green { color: #86efac; background: rgba(22, 163, 74, .14); border-color: rgba(74, 222, 128, .66); }
#adminView .mc-alert-action-state.live-amber,
#adminView .mc-stream-action-btn.live-amber { color: #fbbf24; background: rgba(245, 158, 11, .16); border-color: rgba(251, 191, 36, .76); }
#adminView .mc-alert-action-state.live-red,
#adminView .mc-stream-action-btn.live-red { color: #fca5a5; background: rgba(220, 38, 38, .16); border-color: rgba(248, 113, 113, .78); }
#adminView .mc-alert-action-state.live-red.action-complete,
#adminView .mc-stream-action-btn.live-red.action-complete { color: #fecaca; background: rgba(185, 28, 28, .30); box-shadow: 0 0 12px rgba(239, 68, 68, .16); }
#adminView .mc-alert-action-state { font-variant-numeric: tabular-nums; }
#adminView .mc-stream-action-status { font-size: 8px; font-weight: 800; letter-spacing: .03em; text-align: right; }
#adminView .mc-stream-action-status.live-green { color: #86efac; }
#adminView .mc-stream-action-status.live-amber { color: #fbbf24; }
#adminView .mc-stream-action-status.live-red { color: #fca5a5; }
@media (max-width: 640px) { #adminView .mc-alert-action-state { grid-column: 2; justify-self: start; margin-left: 0; } #adminView .mc-stream-actions { align-items: flex-start; } }

#adminView .mc-stream-action-btn.live-green { color: #94a3b8; background: rgba(100, 116, 139, .08); border-color: rgba(148, 163, 184, .30); box-shadow: none; filter: saturate(.30); opacity: .56; }
#adminView .mc-stream-action-btn.live-green:hover,
#adminView .mc-stream-action-btn.live-green:focus-visible { color: #cbd5e1; background: rgba(100, 116, 139, .16); border-color: rgba(203, 213, 225, .56); filter: saturate(.65); opacity: .90; }
#adminView .mc-stream-action-btn.live-green.action-complete { color: #a7f3d0; background: rgba(16, 185, 129, .10); border-color: rgba(110, 231, 183, .42); filter: saturate(.65); opacity: .78; }

/* Camera eye-scan demo: scoped warning and preview treatment. */
#adminView .wb-camera-demo-warning { max-width: 430px; margin: 12px auto 0; padding: 9px 11px; color: #fca5a5; background: rgba(127, 29, 29, .22); border: 1px solid rgba(248, 113, 113, .48); border-radius: 8px; font-size: 10px; line-height: 1.45; text-align: left; }
#adminView #scanSurface:has([data-camera-preview]) .mc-scan-face { position: relative; z-index: 2; }

/* Consistent visible Mission Control scrollbars: match the Live Alerts reference surface. */
#adminView .mc-fleet-table-scroll,
#adminView .mc-alert-list,
#adminView .mc-alert-stream-scroll { overflow-y: scroll !important; scrollbar-width: auto; scrollbar-color: #94a3b8 rgba(15, 23, 42, .55); scrollbar-gutter: stable; -webkit-overflow-scrolling: auto; }
#adminView .mc-fleet-table-scroll { overflow-x: auto; }
#adminView .mc-fleet-table-scroll::-webkit-scrollbar,
#adminView .mc-alert-list::-webkit-scrollbar,
#adminView .mc-alert-stream-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
#adminView .mc-fleet-table-scroll::-webkit-scrollbar-track,
#adminView .mc-alert-list::-webkit-scrollbar-track,
#adminView .mc-alert-stream-scroll::-webkit-scrollbar-track { background: rgba(15, 23, 42, .55); border-radius: 999px; }
#adminView .mc-fleet-table-scroll::-webkit-scrollbar-thumb,
#adminView .mc-alert-list::-webkit-scrollbar-thumb,
#adminView .mc-alert-stream-scroll::-webkit-scrollbar-thumb { background: rgba(45, 180, 179, .55); border: 2px solid rgba(15, 23, 42, .55); border-radius: 999px; }
#adminView .mc-fleet-table-scroll::-webkit-scrollbar-thumb:hover,
#adminView .mc-alert-list::-webkit-scrollbar-thumb:hover,
#adminView .mc-alert-stream-scroll::-webkit-scrollbar-thumb:hover { background: rgba(45, 180, 179, .8); }

/* Independent visual alert pulse: BPM/action classes remain authoritative for text and controls. */
#adminView .mc-alert-row.random-row-green,
#adminView .mc-stream-row.random-row-green { background: linear-gradient(90deg, rgba(16, 185, 129, .20), rgba(15, 23, 42, .42)); border-color: rgba(52, 211, 153, .34); }
#adminView .mc-alert-row.random-row-amber,
#adminView .mc-stream-row.random-row-amber { background: linear-gradient(90deg, rgba(245, 158, 11, .20), rgba(15, 23, 42, .42)); border-color: rgba(245, 158, 11, .36); }
#adminView .mc-alert-row.random-row-red,
#adminView .mc-stream-row.random-row-red { background: linear-gradient(90deg, rgba(239, 68, 68, .20), rgba(15, 23, 42, .42)); border-color: rgba(248, 113, 113, .38); }
#adminView .mc-alert-row.random-row-stable,
#adminView .mc-stream-row.random-row-stable { background: var(--mc-surface-soft); border-color: rgba(255, 255, 255, .05); }
#adminView .mc-alert-row.random-row-green:hover,
#adminView .mc-stream-row.random-row-green:hover,
#adminView .mc-alert-row.random-row-amber:hover,
#adminView .mc-stream-row.random-row-amber:hover,
#adminView .mc-alert-row.random-row-red:hover,
#adminView .mc-stream-row.random-row-red:hover { filter: brightness(1.08); }

/* The native scrollbar is the single scrollable rail; no decorative pseudo-rail is layered on top. */


/* Permanent single rail: keep the content scrollable but render one always-visible synchronized rail. */
#adminView .mc-scroll-rail-host { position: relative; }
#adminView .mc-alert-list,
#adminView .mc-fleet-table-scroll,
#adminView .mc-alert-stream-scroll { scrollbar-width: none !important; -ms-overflow-style: none !important; padding-right: 18px; }
#adminView .mc-alert-list::-webkit-scrollbar,
#adminView .mc-fleet-table-scroll::-webkit-scrollbar,
#adminView .mc-alert-stream-scroll::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
#adminView .mc-persistent-scroll-rail { position: absolute; top: 12px; right: 7px; bottom: 12px; z-index: 8; width: 10px; padding: 1px; background: rgba(15, 23, 42, .74); border: 1px solid rgba(148, 163, 184, .42); border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(2, 6, 23, .54), 0 0 10px rgba(45, 180, 179, .1); opacity: 1; pointer-events: auto; }
#adminView .mc-persistent-scroll-rail[data-empty="true"] { opacity: .58; }
#adminView .mc-persistent-scroll-thumb { display: block; width: 100%; min-height: 24px; background: #94a3b8; border: 1px solid rgba(226, 232, 240, .75); border-radius: 999px; box-shadow: 0 0 8px rgba(45, 180, 179, .2); transform: translateY(0); transition: transform 80ms linear, height 120ms ease; }
#adminView .mc-persistent-scroll-rail:hover .mc-persistent-scroll-thumb { background: #cbd5e1; }
@media (max-width: 520px) { #adminView .mc-persistent-scroll-rail { right: 5px; width: 9px; } }

/* BPM-authoritative Live Alert Feed backgrounds: the complete row surface follows its person’s live BPM zone. */
#adminView .mc-alert-row.live-green,
#adminView .mc-stream-row.live-green { background: linear-gradient(90deg, rgba(16, 185, 129, .30), rgba(15, 23, 42, .42)) !important; border-color: rgba(52, 211, 153, .55) !important; }
#adminView .mc-alert-row.live-amber,
#adminView .mc-stream-row.live-amber { background: linear-gradient(90deg, rgba(245, 158, 11, .30), rgba(15, 23, 42, .42)) !important; border-color: rgba(245, 158, 11, .58) !important; }
#adminView .mc-alert-row.live-red,
#adminView .mc-stream-row.live-red { background: linear-gradient(90deg, rgba(239, 68, 68, .34), rgba(15, 23, 42, .42)) !important; border-color: rgba(248, 113, 113, .62) !important; }


/* Device Fleet: keep the table header fixed and scroll only the fleetRows body. */
#adminView .mc-fleet-table-scroll {
  height: min(62vh, 560px);
  max-height: min(62vh, 560px);
  overflow: hidden !important;
  overflow-x: hidden !important;
  padding-right: 0 !important;
}
#adminView .mc-fleet-table-scroll > table.mc-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  table-layout: fixed;
}
#adminView .mc-fleet-table-scroll > table.mc-table > thead {
  display: table;
  width: 100%;
  flex: 0 0 auto;
  table-layout: fixed;
}
#adminView .mc-fleet-table-scroll > table.mc-table > tbody#fleetRows {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
#adminView .mc-fleet-table-scroll > table.mc-table > tbody#fleetRows::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}
#adminView .mc-fleet-table-scroll > table.mc-table > tbody#fleetRows > tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}
