:root {
  color-scheme: dark;
  --bg: #070b13;
  --bg-2: #0b1220;
  --panel: rgba(8, 16, 32, 0.78);
  --panel-strong: rgba(6, 12, 24, 0.92);
  --panel-alt: rgba(13, 23, 43, 0.8);
  --line: rgba(105, 255, 214, 0.16);
  --line-strong: rgba(105, 255, 214, 0.3);
  --text: #eaf6ff;
  --muted: #a5b8cd;
  --accent: #69ffd6;
  --accent-2: #6fc4ff;
  --warn: #ffb347;
  --danger: #ff6d8f;
  --purple: #b38cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 28px;
}

body.theme-cyberpunk {
  --accent: #8bff6b;
  --accent-2: #f7ff7a;
  --line: rgba(139, 255, 107, 0.16);
  --line-strong: rgba(139, 255, 107, 0.3);
  --purple: #ff7ce5;
}

body.theme-light {
  color-scheme: light;
  --bg:           #f1f5f9;
  --bg-2:         #e2e8f0;
  --panel:        #ffffff;
  --panel-strong: #ffffff;
  --panel-alt:    #f8fafc;
  --line:         rgba(0, 0, 0, 0.09);
  --line-strong:  rgba(0, 0, 0, 0.16);
  --text:         #0f172a;
  --muted:        #64748b;
  --accent:       #2563eb;
  --accent-2:     #0891b2;
  --warn:         #b45309;
  --danger:       #dc2626;
  --purple:       #7c3aed;
  --shadow:       0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
}

/* ── Global light background ── */
body.theme-light,
html:has(body.theme-light) {
  background: #f1f5f9 !important;
}

/* Kill particle canvas */
body.theme-light #pcanvas { display: none !important; }

/* Sharp subpixel font rendering for dark-on-light text */
body.theme-light {
  -webkit-font-smoothing: subpixel-antialiased !important;
  -moz-osx-font-smoothing: auto !important;
}
body.theme-light .time-primary,
body.theme-light .time-value {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* ── Sidebar ── */
body.theme-light .sb {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 2px 0 8px rgba(0,0,0,0.06) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.theme-light .sb-logo {
  background: #f0f7ff !important;
  border-color: #dbeafe !important;
  box-shadow: none !important;
  color: #2563eb !important;
}

/* ── Topbar ── */
body.theme-light .topbar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.theme-light .sys-panel {
  margin-bottom: 16px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--radius) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.theme-light .sys-title { color: #1d4ed8 !important; }
body.theme-light .sys-subtitle,
body.theme-light .sys-status-value { color: #334155 !important; }

/* ── World clock city cards ── */
body.theme-light .time-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* ── Central primary clock ── */
body.theme-light .time-card-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 20px rgba(37,99,235,0.30) !important;
}
body.theme-light .time-card-primary .time-date-label { color: rgba(255,255,255,0.8) !important; }
body.theme-light .time-card-primary .time-primary-meta { color: rgba(255,255,255,0.7) !important; }
body.theme-light .time-primary { color: #ffffff !important; text-shadow: none !important; }

/* Clock text */
body.theme-light .time-city    { color: #0f172a !important; }
body.theme-light .time-zone    { color: #64748b !important; }
body.theme-light .time-value   { color: #1e293b !important; }
body.theme-light .time-date-label { color: #2563eb !important; }
body.theme-light .time-primary-meta { color: #64748b !important; }
body.theme-light .time-monument { color: #94a3b8 !important; }
body.theme-light .time-flag    { opacity: 1 !important; box-shadow: 0 1px 4px rgba(0,0,0,0.12) !important; }

/* ── Nav items ── */
body.theme-light .ni {
  background: transparent !important;
  border-color: transparent !important;
  color: #64748b !important;
}
body.theme-light .ni:hover {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #2563eb !important;
}
body.theme-light .ni.active {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #2563eb !important;
}

/* ── All cards ── */
body.theme-light .dashboard-card,
body.theme-light .panel-glass,
body.theme-light .stat-card,
body.theme-light .product-card,
body.theme-light .canvas-card,
body.theme-light .launch-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.theme-light .dashboard-card:hover {
  border-color: #bfdbfe !important;
  box-shadow: 0 4px 18px rgba(37,99,235,0.09) !important;
}

/* ── Section label / headings ── */
body.theme-light .sec-lbl        { color: #2563eb !important; }
body.theme-light .card-topline   { color: #2563eb !important; }
body.theme-light h1, body.theme-light h2,
body.theme-light h3, body.theme-light h4 { color: #0f172a !important; }

/* ── Body text ── */
body.theme-light p,
body.theme-light li,
body.theme-light .welcome-copy,
body.theme-light .hero-subtitle,
body.theme-light .welcome-summary  { color: #334155 !important; }
body.theme-light .muted,
body.theme-light .card-meta        { color: #64748b !important; }

/* ── Inner list bullets ── */
body.theme-light .product-bullet,
body.theme-light .canvas-block,
body.theme-light .launch-step,
body.theme-light .welcome-practical-card,
body.theme-light .welcome-outcome-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}
body.theme-light .canvas-block p,
body.theme-light .launch-card p,
body.theme-light .welcome-practical-card p,
body.theme-light .welcome-outcome-card p { color: #334155 !important; }

/* ── Pills / chips ── */
body.theme-light .welcome-pill {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #2563eb !important;
}
body.theme-light .badge {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}
body.theme-light .badge.b-live {
  background: #ecfdf5 !important; border-color: #6ee7b7 !important; color: #065f46 !important;
}
body.theme-light .badge.b-rev {
  background: #eff6ff !important; border-color: #bfdbfe !important; color: #1e40af !important;
}
body.theme-light .integration-chip,
body.theme-light .milestone-chip,
body.theme-light .roadmap-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

/* ── KPI ── */
body.theme-light .kpi-meter { background: #e2e8f0 !important; }

/* ── Buttons ── */
body.theme-light .btn-p {
  background: #2563eb !important; border-color: #2563eb !important; color: #fff !important;
}
body.theme-light .btn-o {
  background: transparent !important; border-color: #2563eb !important; color: #2563eb !important;
}
body.theme-light .wlc-btn {
  background: #eff6ff !important; border-color: #2563eb !important; color: #2563eb !important;
}
body.theme-light .wlc-btn:hover {
  background: #dbeafe !important; box-shadow: 0 0 12px rgba(37,99,235,0.15) !important;
}

/* ── Form inputs ── */
body.theme-light .wlc-field input,
body.theme-light .wlc-select {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
body.theme-light .wlc-field input:focus,
body.theme-light .wlc-select:focus {
  border-color: #2563eb !important;
  background: #eff6ff !important;
}
body.theme-light .wlc-field input::placeholder { color: #94a3b8 !important; }
body.theme-light .wlc-field label { color: #475569 !important; }

/* ── Login / profile card tabs ── */
body.theme-light .wlc-tab,
body.theme-light .wpc-dtab { color: #64748b !important; background: transparent !important; }
body.theme-light .wlc-tab.active,
body.theme-light .wpc-dtab.active {
  background: #eff6ff !important; color: #2563eb !important; border-color: #bfdbfe !important;
}
body.theme-light .wlc-tabs,
body.theme-light .wpc-dtabs { border-color: #e2e8f0 !important; }
body.theme-light .wlc-tab:first-child { border-right-color: #e2e8f0 !important; }

/* ── Profile card ── */
body.theme-light .welcome-login-card,
body.theme-light .welcome-profile-card { background: #ffffff !important; border-color: #e2e8f0 !important; }
body.theme-light .wpc-pm-row  { background: #f8fafc !important; border-color: #e2e8f0 !important; }
body.theme-light .wpc-pm-form { background: #f8fafc !important; border-color: #e2e8f0 !important; }
body.theme-light .wpc-name    { color: #0f172a !important; }
body.theme-light .wpc-email   { color: #64748b !important; }
body.theme-light .wpc-drawer  { border-top-color: #e2e8f0 !important; }
body.theme-light .wpc-signout-btn { color: #64748b !important; border-color: #e2e8f0 !important; }
body.theme-light .wpc-ok  { background: #ecfdf5 !important; border-color: #6ee7b7 !important; color: #065f46 !important; }
body.theme-light .wpc-err { background: #fef2f2 !important; border-color: #fca5a5 !important; color: #dc2626 !important; }

/* ── Matrix / misc ── */
body.theme-light .matrix-shell { background: #ffffff !important; border-color: #e2e8f0 !important; }
body.theme-light .matrix-axis  { color: #64748b !important; }
body.theme-light .wlc-foot     { color: #64748b !important; }
body.theme-light .wlc-link     { color: #2563eb !important; }
body.theme-light .wpc-pm-label { color: #0f172a !important; }
body.theme-light .wpc-pm-meta  { color: #64748b !important; }
body.theme-light .wpc-pm-empty { color: #94a3b8 !important; }

/* ── Global form inputs ── */
body.theme-light input,
body.theme-light select,
body.theme-light textarea {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
body.theme-light input:focus,
body.theme-light select:focus,
body.theme-light textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10) !important;
  background: #f8fafc !important;
}
body.theme-light input::placeholder,
body.theme-light textarea::placeholder { color: #94a3b8 !important; }
body.theme-light label { color: #475569 !important; }
body.theme-light .status-select { background: #ffffff !important; border-color: #cbd5e1 !important; color: #0f172a !important; }

/* ── Buttons ── */
body.theme-light .btn {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}
body.theme-light .btn:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}
body.theme-light .btn-r {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}
body.theme-light .btn-r:hover {
  background: #fee2e2 !important;
  box-shadow: 0 4px 12px rgba(220,38,38,0.10) !important;
}
body.theme-light .btn-pu {
  background: #f5f3ff !important;
  border-color: #c4b5fd !important;
  color: #7c3aed !important;
}
body.theme-light .btn-pu:hover {
  background: #ede9fe !important;
  box-shadow: 0 4px 12px rgba(124,58,237,0.10) !important;
}

/* ── Recovery tables ── */
body.theme-light .recovery-table th,
body.theme-light .recovery-table td {
  border-bottom-color: #e2e8f0 !important;
}
body.theme-light .recovery-table th { color: #64748b !important; }
body.theme-light .row-title { color: #0f172a !important; }
body.theme-light .row-meta { color: #64748b !important; }
body.theme-light .empty-row { color: #94a3b8 !important; }

/* ── Status pills ── */
body.theme-light .status-pill {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}
body.theme-light .status-pill.queued,
body.theme-light .status-pill.drafting {
  background: #ecfeff !important;
  border-color: #a5f3fc !important;
  color: #0e7490 !important;
}
body.theme-light .status-pill.needs-review {
  background: #fffbeb !important;
  border-color: #fcd34d !important;
  color: #92400e !important;
}
body.theme-light .status-pill.sent,
body.theme-light .status-pill.completed {
  background: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
  color: #065f46 !important;
}
body.theme-light .status-pill.failed,
body.theme-light .status-pill.cancelled {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

/* ── Activity feed ── */
body.theme-light .activity-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
body.theme-light .activity-empty {
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
}
body.theme-light .activity-title { color: #0f172a !important; }
body.theme-light .activity-time { color: #64748b !important; }
body.theme-light .activity-dot {
  background: #2563eb !important;
  box-shadow: 0 0 8px rgba(37,99,235,0.4) !important;
}
body.theme-light .activity-dot.warn {
  background: #d97706 !important;
  box-shadow: 0 0 8px rgba(217,119,6,0.4) !important;
}
body.theme-light .activity-dot.danger {
  background: #dc2626 !important;
  box-shadow: 0 0 8px rgba(220,38,38,0.4) !important;
}

/* ── Pipeline funnel ── */
body.theme-light .funnel-stage {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
}
body.theme-light .funnel-label { color: #64748b !important; }
body.theme-light .funnel-count { color: #0f172a !important; }
body.theme-light .funnel-value { color: #2563eb !important; }

/* ── Draft panel ── */
body.theme-light .draft-panel { color: #334155 !important; }
body.theme-light .draft-label { color: #2563eb !important; }
body.theme-light .draft-subject,
body.theme-light .draft-next,
body.theme-light .draft-body {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

/* ── Ops audit components ── */
body.theme-light .ops-audit-summary,
body.theme-light .ops-audit-trend-meta,
body.theme-light .ops-audit-trend-detail,
body.theme-light .ops-audit-top-timeline,
body.theme-light .ops-audit-shortcuts,
body.theme-light .ops-audit-meta,
body.theme-light .ops-meta {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  color: #334155 !important;
}
body.theme-light .ops-audit-feed {
  background: #f8fafc !important;
  color: #334155 !important;
}
body.theme-light .ops-audit-feed-item {
  border-bottom-color: #e2e8f0 !important;
}
body.theme-light .ops-audit-chip.is-active,
body.theme-light .ops-audit-group-chip.is-active {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  color: #2563eb !important;
}
body.theme-light .ops-audit-warning {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
}
body.theme-light .ops-audit-trend-bar {
  background: linear-gradient(180deg, #2563eb, #0891b2) !important;
}

/* ── Welcome video ── */
body.theme-light .welcome-video-frame {
  background:
    radial-gradient(circle at 20% 20%, rgba(37,99,235,0.08), transparent 26%),
    radial-gradient(circle at 80% 20%, rgba(8,145,178,0.06), transparent 24%),
    linear-gradient(180deg, #f0f4f8, #e8edf4) !important;
  border-color: #e2e8f0 !important;
}
body.theme-light .welcome-video-orb {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #2563eb !important;
  box-shadow: 0 0 24px rgba(37,99,235,0.12) !important;
}
body.theme-light .welcome-video-screen {
  border-color: #cbd5e1 !important;
  background:
    linear-gradient(135deg, rgba(37,99,235,0.04), rgba(8,145,178,0.04)),
    repeating-linear-gradient(
      180deg,
      rgba(0,0,0,0.02) 0, rgba(0,0,0,0.02) 2px,
      transparent 2px, transparent 12px
    ) !important;
}
body.theme-light .welcome-video-overlay {
  background: rgba(255,255,255,0.90) !important;
  color: #334155 !important;
}

/* ── Matrix board ── */
body.theme-light .matrix-board {
  background:
    linear-gradient(180deg, rgba(37,99,235,0.03), transparent),
    #ffffff !important;
  border-color: #e2e8f0 !important;
}
body.theme-light .matrix-grid {
  background-image:
    linear-gradient(#e2e8f0 1px, transparent 1px),
    linear-gradient(90deg, #e2e8f0 1px, transparent 1px) !important;
}
body.theme-light .matrix-point {
  border-color: #cbd5e1 !important;
  background: radial-gradient(circle at 30% 30%, rgba(37,99,235,0.18), #ffffff 80%) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}
body.theme-light .matrix-point strong { color: #0f172a !important; }
body.theme-light .matrix-point span { color: #64748b !important; }

/* ── Stat card overlay ── */
body.theme-light .stat-card::before {
  background: linear-gradient(135deg, rgba(37,99,235,0.05), transparent 55%) !important;
}

/* ── Panel divider ── */
body.theme-light .panel-divider {
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent) !important;
}

/* ── Client drawer ── */
body.theme-light .client-drawer-backdrop {
  background: rgba(15,23,42,0.30) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  backdrop-filter: blur(3px) !important;
}
body.theme-light .client-drawer {
  background: #ffffff !important;
  border-left-color: #e2e8f0 !important;
  box-shadow: -4px 0 24px rgba(0,0,0,0.10) !important;
}
body.theme-light .client-drawer-head {
  border-bottom-color: #e2e8f0 !important;
}
body.theme-light .client-drawer-pic {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* ── Hero side panel ── */
body.theme-light .hero-side {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
body.theme-light .hero-kicker { color: #2563eb !important; }
body.theme-light .roadmap-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

/* ── Ops panel / hints / misc ── */
body.theme-light .ops-hint { color: #64748b !important; }
body.theme-light .ops-panel-block p.muted { color: #64748b !important; }
body.theme-light .delivery-mode-badge { background: #f1f5f9 !important; border-color: #e2e8f0 !important; }

/* ── Sidebar tooltip in light mode ── */
body.theme-light .ni[title]::after {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10) !important;
}

/* ── Welcome text colors ── */
body.theme-light .welcome-copy { color: #334155 !important; }
body.theme-light .welcome-summary { color: #1e293b !important; }
body.theme-light .sec-ttl { color: #0f172a !important; }
body.theme-light .kpi-label { color: #64748b !important; }
body.theme-light .kpi-value { color: #0f172a !important; }
body.theme-light .kpi-sub { color: #64748b !important; }
body.theme-light .card-topline { color: #2563eb !important; }
body.theme-light .product-meta,
body.theme-light .launch-meta { color: #2563eb !important; }
body.theme-light .launch-index {
  border-color: #e2e8f0 !important;
  color: #2563eb !important;
}
body.theme-light .canvas-block span { color: #2563eb !important; }

/* ── Scrollbar in light mode ── */
body.theme-light ::-webkit-scrollbar { width: 8px; height: 8px; }
body.theme-light ::-webkit-scrollbar-track { background: #f1f5f9; }
body.theme-light ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
body.theme-light ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(111, 196, 255, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(105, 255, 214, 0.09), transparent 24%),
    linear-gradient(180deg, #04070d 0%, #060b13 32%, #08101b 100%);
  color: var(--text);
  font-family: "Exo 2", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

.sys-subtitle,
.sys-status-value,
.hero-subtitle,
.welcome-subtitle,
.welcome-copy,
.product-meta,
.card-meta {
  color: var(--muted);
  font-weight: 500;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#pcanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.65;
  pointer-events: none;
}

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

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 100vh;
}

.sb {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  height: 100vh;
  padding: 18px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(7, 12, 22, 0.92), rgba(8, 14, 24, 0.64));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.sb-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(111, 196, 255, 0.14), rgba(105, 255, 214, 0.06));
  box-shadow: inset 0 0 24px rgba(105, 255, 214, 0.08);
  color: var(--accent);
  font-family: "Orbitron", sans-serif;
  font-size: 0.88rem;
  line-height: 1.05;
  letter-spacing: 0.16em;
  text-align: center;
}

.sb-bottom {
  margin-top: auto;
}

.ni {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1.2rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ni:hover,
.ni.active {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(105, 255, 214, 0.1);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24), inset 0 0 18px rgba(105, 255, 214, 0.08);
}

/* ── Sidebar tooltip labels on hover ── */
@media (min-width: 861px) {
  .ni[title] { position: relative; }
  .ni[title]::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 11px;
    border-radius: 8px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    color: var(--text);
    font-family: "Exo 2", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  }
  .ni[title]:hover::after { opacity: 1; }
}

.main-shell {
  padding: 18px 28px 28px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 22px;
  padding: 10px 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: rgba(5, 10, 20, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.timebar-grid,
.timebar-cluster,
.time-primary-row,
.welcome-cta-row,
.welcome-pill-row,
.welcome-video-frame,
.welcome-outcome-card {
  display: flex;
}

.timebar-grid {
  flex: none;
  width: 100%;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  padding-bottom: 10px;
}

.timebar-cluster {
  flex: 1 1 0;
  gap: 10px;
  min-width: 0;
}

.timebar-cluster-right {
  justify-content: flex-end;
}

.time-card {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(12, 20, 38, 0.86), rgba(6, 13, 24, 0.92));
  box-shadow: inset 0 0 20px rgba(105, 255, 214, 0.04);
}

.time-card-city {
  flex: 1 1 0;
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.time-flag {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  margin-bottom: 2px;
}

.time-monument {
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: var(--accent-2);
  opacity: 0.8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sb-signup {
  color: var(--accent);
  border-color: var(--line-strong);
  font-size: 1.2rem;
  font-weight: 700;
}

.time-city,
.time-zone,
.time-date-label,
.time-primary-meta,
.welcome-pill,
.welcome-video-overlay,
.welcome-outcome-mark {
  font-family: "Share Tech Mono", monospace;
}

.time-city {
  letter-spacing: 0.10em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}

.time-zone,
.time-primary-meta {
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}

.time-value {
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.time-card-primary {
  min-width: 220px;
  display: grid;
  place-items: center;
  gap: 0;
  text-align: center;
  border-color: var(--line-strong);
  background:
    radial-gradient(circle at 50% 0%, rgba(111, 196, 255, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(12, 20, 38, 0.92), rgba(6, 13, 24, 0.98));
}

.time-date-label {
  color: var(--accent-2);
  letter-spacing: 0.10em;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.time-primary-row {
  align-items: baseline;
  justify-content: center;
}

.time-primary {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #f2fbff;
  text-shadow: 0 0 24px rgba(111, 196, 255, 0.16);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sys-panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
  padding: 10px 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: rgba(5, 10, 20, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.sys-title,
.sec-lbl,
.card-topline,
.badge,
.draft-label,
.health-chip,
.ops-audit-shortcuts,
.ops-audit-meta,
.ops-meta,
.matrix-axis,
.status-pill,
button,
label,
th,
.systext,
.hero-kicker,
.milestone-chip,
.integration-chip,
.kpi-label,
.kpi-sub,
.sys-status-value {
  font-family: "Share Tech Mono", monospace;
}

.sys-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.sys-subtitle {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted);
}

.sys-status {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sys-status-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sdot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(105, 255, 214, 0.72);
}

.sys-status-value {
  color: var(--muted);
  letter-spacing: 0.06em;
}

.sys-status-value.accent {
  color: var(--accent);
}

.sys-status-value.dim {
  color: #67809d;
}

.health-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(105, 255, 214, 0.08);
  color: var(--text);
  letter-spacing: 0.08em;
}

.health-chip.ok {
  border-color: rgba(105, 255, 214, 0.28);
}

.health-chip.error {
  border-color: rgba(255, 109, 143, 0.28);
  background: rgba(255, 109, 143, 0.08);
}

.sec {
  display: none;
  animation: sectionEnter 280ms ease;
}

.sec.active {
  display: block;
}

.welcome-head {
  align-items: end;
}

/* ── Welcome login card ─────────────────────────────────────── */
.welcome-login-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 20px 16px;
}

.welcome-cta-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.wlc-tabs {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  margin: 14px 0 16px;
}

.wlc-tab {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: "Orbitron", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.wlc-tab:first-child { border-right: 1px solid var(--line-strong); }
.wlc-tab.active {
  background: rgba(105,255,214,0.1);
  color: var(--accent);
}

.wlc-error {
  background: rgba(255,109,143,0.1);
  border: 1px solid rgba(255,109,143,0.35);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--danger);
  font-size: 12px;
  margin-bottom: 12px;
}

.wlc-field {
  margin-bottom: 14px;
}
.wlc-field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.wlc-field input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: "Exo 2", sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.wlc-field input:focus {
  border-color: var(--accent);
  background: rgba(105,255,214,0.04);
}
.wlc-field input::placeholder { color: var(--muted); opacity: 0.6; }

.wlc-btn {
  width: 100%;
  padding: 11px 16px;
  background: rgba(105,255,214,0.1);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-family: "Orbitron", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  margin-top: 4px;
}
.wlc-btn:hover {
  background: rgba(105,255,214,0.2);
  box-shadow: 0 0 14px rgba(105,255,214,0.2);
}
.wlc-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.wlc-foot {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}
.wlc-link {
  color: var(--accent);
  text-decoration: none;
}
.wlc-link:hover { text-decoration: underline; }

/* ── wlc-select ─────────────────────────────────────── */
.wlc-select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: "Exo 2", sans-serif;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  cursor: pointer;
}
.wlc-select:focus { border-color: var(--accent); }

/* ── Welcome profile card ────────────────────────────── */
.welcome-profile-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 18px 14px;
}

.wpc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.wpc-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(105,255,214,0.12);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

#wpc-initials {
  font-family: "Orbitron", monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.wpc-user-info {
  flex: 1;
  min-width: 0;
}

.wpc-name {
  font-family: "Orbitron", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wpc-email {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wpc-signout-btn {
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-family: "Orbitron", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.wpc-signout-btn:hover { border-color: var(--danger); color: var(--danger); }

.wpc-msg {
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 11px;
  margin-bottom: 10px;
}
.wpc-err { background: rgba(255,109,143,0.1); border: 1px solid rgba(255,109,143,0.35); color: var(--danger); }
.wpc-ok  { background: rgba(105,255,214,0.08); border: 1px solid rgba(105,255,214,0.3); color: var(--accent); }

.wpc-manage-btn { margin-bottom: 0; }

.wpc-drawer {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.wpc-dtabs {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}

.wpc-dtab {
  flex: 1;
  padding: 7px 8px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: "Orbitron", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.wpc-dtab:last-child { border-right: none; }
.wpc-dtab.active { background: rgba(105,255,214,0.1); color: var(--accent); }

.wpc-dpanel { padding-bottom: 4px; }

.wpc-addr-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  gap: 8px;
}

.wpc-pic-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 8px;
}

.wpc-pic-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.wpc-pic-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(105,255,214,0.1);
  border: 2px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", monospace;
  font-size: 22px;
  color: var(--accent);
}

.wpc-pic-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.wpc-btn-danger {
  background: rgba(255,109,143,0.08) !important;
  border-color: var(--danger) !important;
  color: var(--danger) !important;
}
.wpc-btn-danger:hover {
  background: rgba(255,109,143,0.18) !important;
  box-shadow: 0 0 10px rgba(255,109,143,0.2) !important;
}

.wpc-btn-ghost {
  background: transparent !important;
  border-color: var(--line-strong) !important;
  color: var(--muted) !important;
}

.wpc-pm-list { display: flex; flex-direction: column; gap: 6px; }

.wpc-pm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wpc-pm-info { flex: 1; min-width: 0; }
.wpc-pm-label { font-size: 11px; font-weight: 600; color: var(--text); }
.wpc-pm-meta  { font-size: 9px; color: var(--muted); }
.wpc-pm-empty { font-size: 11px; color: var(--muted); padding: 4px 0; }

.wpc-pm-del {
  width: auto !important;
  padding: 5px 10px !important;
  font-size: 9px !important;
  flex-shrink: 0;
}

.wpc-pm-form {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
}

.welcome-title {
  max-width: 16ch;
}

.welcome-subtitle {
  max-width: 68ch;
}

.welcome-cta-row {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.welcome-grid,
.welcome-practical-list,
.welcome-outcome-list {
  display: grid;
  gap: 18px;
}

.welcome-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.welcome-copy {
  color: #c8d8e8;
  line-height: 1.78;
  font-size: 1rem;
  font-weight: 400;
}

.welcome-summary {
  font-size: 1.08rem;
  font-weight: 500;
  color: #daeeff;
  line-height: 1.7;
}

.welcome-pill-row {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.welcome-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.welcome-video-shell,
.welcome-company-shell {
  height: 100%;
}

.welcome-video-frame {
  position: relative;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 20% 20%, rgba(111, 196, 255, 0.14), transparent 26%),
    radial-gradient(circle at 80% 20%, rgba(105, 255, 214, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.96), rgba(5, 10, 20, 0.94));
  overflow: hidden;
}

.welcome-video-orb {
  position: absolute;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(105, 255, 214, 0.12);
  color: var(--accent);
  font-size: 1.8rem;
  box-shadow: 0 0 40px rgba(105, 255, 214, 0.14);
}

.welcome-video-screen {
  position: absolute;
  inset: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(105, 255, 214, 0.06), rgba(111, 196, 255, 0.08)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px,
      transparent 12px
    );
}

.welcome-video-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(4, 8, 16, 0.8);
  color: #dcefff;
  text-align: center;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.video-caption {
  margin-top: 14px;
}

.welcome-practical-card,
.welcome-outcome-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  padding: 16px 18px;
}

.welcome-practical-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.welcome-practical-card p,
.welcome-outcome-card p {
  margin: 0;
  color: #c0d2e2;
  line-height: 1.72;
  font-size: 0.97rem;
}

.welcome-outcome-list {
  align-content: start;
}

.welcome-outcome-card {
  gap: 14px;
  align-items: flex-start;
}

.welcome-outcome-mark {
  width: 28px;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--accent);
}

@keyframes sectionEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}

.section-head.slim {
  grid-template-columns: 1fr;
}

.sec-lbl {
  color: var(--accent);
  letter-spacing: 0.13em;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
}

.sec-ttl {
  margin: 10px 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.hero-title {
  max-width: 12ch;
}

.hero-subtitle {
  max-width: 70ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.panel-glass,
.dashboard-card,
.stat-card,
.product-card,
.canvas-card,
.launch-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 18, 34, 0.82), rgba(6, 11, 21, 0.88));
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hero-side {
  padding: 24px;
}

.hero-kicker {
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.roadmap-strip,
.integration-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.roadmap-strip {
  margin-top: 18px;
}

.integration-strip {
  margin-bottom: 22px;
}

.integration-chip,
.milestone-chip,
.roadmap-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.roadmap-card {
  padding: 14px 16px;
  flex-direction: column;
  align-items: flex-start;
  min-width: 148px;
}

.milestone-chip {
  margin-top: 14px;
  width: fit-content;
  background: rgba(111, 196, 255, 0.12);
  color: var(--accent-2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  min-height: 160px;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(105, 255, 214, 0.08), transparent 55%);
  pointer-events: none;
}

.kpi-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.kpi-value {
  margin-top: 16px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 1;
}

.kpi-sub {
  margin-top: 12px;
  color: var(--muted);
}

.kpi-meter {
  margin-top: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.kpi-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

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

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: 1 / -1;
}

.dashboard-card {
  padding: 22px;
}

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

.card-head h3,
.dashboard-card h3 {
  margin: 8px 0 0;
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-topline {
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.b-live {
  color: var(--accent);
  background: rgba(105, 255, 214, 0.1);
}

.b-rev {
  color: var(--warn);
  background: rgba(255, 179, 71, 0.1);
}

.b-rec {
  color: var(--accent-2);
  background: rgba(111, 196, 255, 0.1);
}

.chart-wrap {
  position: relative;
  min-height: 260px;
}

.chart-wrap.tall {
  min-height: 320px;
}

canvas {
  width: 100%;
  height: 100%;
}

.table-scroll {
  overflow: auto;
}

.compact-scroll {
  max-height: 320px;
}

.wide-scroll {
  max-height: 520px;
}

.recovery-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.recovery-table.compact {
  min-width: 560px;
}

.recovery-table th,
.recovery-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.recovery-table th {
  text-align: left;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.row-main {
  display: grid;
  gap: 4px;
}

.row-title {
  font-weight: 600;
}

.row-meta,
.empty-row,
.activity-time,
.muted,
.ops-meta,
.ops-audit-meta,
.ops-audit-summary,
.ops-audit-trend-meta,
.ops-audit-trend-detail,
.ops-audit-top-timeline,
.status {
  color: var(--muted);
}

.empty-row {
  text-align: center;
  padding: 36px 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-pill.queued,
.status-pill.drafting {
  color: var(--accent-2);
  background: rgba(111, 196, 255, 0.1);
}

.status-pill.needs-review {
  color: var(--warn);
  background: rgba(255, 179, 71, 0.12);
}

.status-pill.sent,
.status-pill.completed {
  color: var(--accent);
  background: rgba(105, 255, 214, 0.1);
}

.status-pill.failed,
.status-pill.cancelled {
  color: var(--danger);
  background: rgba(255, 109, 143, 0.12);
}

.status-stack {
  display: grid;
  gap: 10px;
}

.status-select,
input,
select,
textarea,
.draft-subject,
.draft-next,
.draft-body,
.ops-audit-feed,
.product-card,
.canvas-card,
.launch-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 120px;
  padding: 14px;
}

input:focus,
select:focus,
textarea:focus,
.status-select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(105, 255, 214, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.task-form,
.ops-panel-block,
.ops-controls {
  display: grid;
  gap: 12px;
}

.form-grid.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.action-row,
.ops-audit-actions,
.ops-audit-chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wrap {
  flex-wrap: wrap;
}

.btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.btn-p {
  background: linear-gradient(90deg, rgba(105, 255, 214, 0.14), rgba(111, 196, 255, 0.14));
}

.btn-r {
  background: linear-gradient(90deg, rgba(255, 109, 143, 0.16), rgba(255, 179, 71, 0.12));
}

.btn-pu {
  background: linear-gradient(90deg, rgba(179, 140, 255, 0.16), rgba(111, 196, 255, 0.14));
}

.btn-o,
.status-select {
  background: rgba(255, 255, 255, 0.03);
}

.panel-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  margin: 6px 0;
}

.status {
  min-height: 24px;
}

.activity-empty {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: var(--muted);
}

.activity-feed {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
}

.activity-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.activity-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(105, 255, 214, 0.6);
}

.activity-dot.warn {
  background: var(--warn);
  box-shadow: 0 0 12px rgba(255, 179, 71, 0.55);
}

.activity-dot.danger {
  background: var(--danger);
  box-shadow: 0 0 12px rgba(255, 109, 143, 0.55);
}

.draft-panel {
  display: grid;
  gap: 10px;
}

.draft-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 4px;
  resize: vertical;
  line-height: 1.5;
}

.draft-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.draft-subject,
.draft-next,
.draft-body {
  margin: 0;
  padding: 14px;
}

.draft-body {
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.6;
}

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

.funnel-stage {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.funnel-label {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.funnel-count {
  margin-top: 14px;
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
}

.funnel-value {
  margin-top: 10px;
  color: var(--accent);
}

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

.audit-shell {
  display: grid;
  gap: 16px;
}

.ops-audit-summary,
.ops-audit-trend-meta,
.ops-audit-trend-detail,
.ops-audit-top-timeline,
.ops-audit-shortcuts,
.ops-audit-meta,
.ops-meta {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.ops-audit-trend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18px, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 160px;
  padding: 16px 0 8px;
}

.ops-audit-trend-bar {
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, rgba(111, 196, 255, 0.92), rgba(105, 255, 214, 0.5));
}

.ops-audit-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 109, 143, 0.24);
  border-radius: 16px;
  background: rgba(255, 109, 143, 0.08);
}

.terminal-feed {
  max-height: 480px;
  overflow: auto;
  padding: 16px;
  font-family: "Share Tech Mono", monospace;
}

.ops-audit-feed-item {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ops-audit-feed-item:last-child {
  border-bottom: 0;
}

.product-grid,
.canvas-grid,
.launch-track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.product-card,
.canvas-card,
.launch-card {
  padding: 20px;
}

.product-card h3,
.canvas-card h3,
.launch-card h3 {
  margin: 10px 0 12px;
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.28;
}

.product-meta,
.launch-meta {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.launch-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-family: "Share Tech Mono", monospace;
}

.product-bullets,
.canvas-blocks,
.launch-steps {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.product-bullet,
.canvas-block,
.launch-step {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.93rem;
  line-height: 1.6;
  color: #c2d4e4;
}

.canvas-block span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.canvas-block p {
  margin: 0;
  color: #c2d4e4;
  font-size: 0.93rem;
  line-height: 1.6;
}

.launch-card p {
  margin: 0;
  color: #c2d4e4;
  font-size: 0.95rem;
  line-height: 1.68;
}

.launch-index {
  font-size: 0.88rem;
  font-weight: 600;
}

.matrix-shell {
  margin-top: 18px;
}

.matrix-board {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  margin-top: 10px;
  padding: 42px 30px 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(111, 196, 255, 0.03), transparent),
    rgba(255, 255, 255, 0.02);
}

.matrix-grid {
  position: absolute;
  inset: 30px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: calc(100% / 4) calc(100% / 4);
  border-radius: 20px;
}

.matrix-axis {
  position: absolute;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.matrix-axis-y {
  top: 22px;
  left: 34px;
}

.matrix-axis-x {
  right: 34px;
  bottom: 14px;
}

#matrix-points {
  position: relative;
  min-height: 440px;
}

.matrix-point {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 104px;
  min-height: 104px;
  padding: 14px 10px;
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 30% 30%, rgba(105, 255, 214, 0.32), rgba(6, 13, 24, 0.9));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.matrix-point strong {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.matrix-point span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.ops-audit-chip.is-active,
.ops-audit-group-chip.is-active {
  border-color: var(--line-strong);
  background: rgba(105, 255, 214, 0.1);
}

@media (max-width: 1180px) {
  .topbar,
  .welcome-grid {
    grid-template-columns: 1fr;
  }

  .timebar-grid {
    flex-direction: column;
  }

  .timebar-cluster {
    justify-content: space-between;
  }

  .stats-grid,
  .section-head,
  .ops-audit-controls,
  .pipeline-funnel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sb {
    position: sticky;
    top: 0;
    z-index: 5;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    height: auto;
    padding: 14px;
    overflow-x: auto;
  }

  .sb-bottom {
    margin-left: auto;
    margin-top: 0;
  }

  .main-shell {
    padding: 18px;
  }

  .topbar,
  .section-head,
  .stats-grid,
  .ops-audit-controls,
  .form-grid.two-up,
  .pipeline-funnel {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

  .timebar-cluster {
    flex-direction: column;
  }

  .time-card-primary {
    min-width: 0;
  }

  .sys-status {
    justify-content: flex-start;
  }

  .matrix-board {
    min-height: 620px;
  }
}

@media (max-width: 640px) {
  .dashboard-card,
  .stat-card,
  .hero-side,
  .product-card,
  .canvas-card,
  .launch-card {
    padding: 18px;
  }

  .sec-ttl {
    font-size: 1.56rem;
  }

  .sys-title {
    font-size: 0.84rem;
  }

  .time-primary {
    font-size: 2rem;
  }

  .recovery-table {
    min-width: 620px;
  }

  .recovery-table.compact {
    min-width: 520px;
  }
}
