/* ═══════════════════════════════════════════
   AeviantOS — Liquid Glass
   Apple-inspired translucent surfaces + vibrant green accent
   ═══════════════════════════════════════════ */

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

:root {
  /* Glass tiers */
  --glass:        rgba(255,255,255,0.50);
  --glass-hover:  rgba(255,255,255,0.60);
  --glass-active: rgba(255,255,255,0.70);
  --glass-solid:  rgba(255,255,255,0.75);
  --glass-deep:   rgba(249,252,255,0.65);
  --glass-panel:  rgba(255,255,255,0.50);
  --spec:         rgba(255,255,255,0.80);
  --spec-strong:  rgba(255,255,255,0.90);
  --spec-faint:   rgba(255,255,255,0.50);
  --text:      #1C1C1E;
  --text-2:    #3A3A3C;
  --text-3:    #8E8E93;
  --text-inv:  #ffffff;
  /* Logo palette */
  --logo-green-1: #67D40D;
  --logo-green-2: #22B455;
  --logo-white: #FFFFFF;
  --logo-ink: #0D1B2A;
  /* Apple system palette */
  --blue:      #34C759;
  --blue-2:    #30D158;
  --navy:      #1A7A34;
  --cyan:      #00C7BE;
  --red:       #FF3B30;
  --amber:     #FF2D55;
  --orange:    #FF2D55;
  --orange-2:  #FF9F0A;
  --amber-dim: rgba(255,45,85,0.14);
  --yellow:    #FF2D55;
  --yellow-dim:rgba(255,45,85,0.12);
  --green:     #34C759;
  --green-ink: #1A7A34;
  --green-dim: rgba(52,199,89,0.18);
  --blue-dim:  rgba(52,199,89,0.14);
  --red-dim:   rgba(255,59,48,0.12);
  --blue-border: rgba(40,160,72,0.50);
  --blue-shadow: rgba(40,160,72,0.28);
  --blue-glow: rgba(52,199,89,0.35);
  --bloom-blue: rgba(52,199,89,0.20);
  --bloom-cyan: rgba(0,199,190,0.16);
  --bloom-purple: rgba(0,122,255,0.10);
  --bloom-amber: rgba(0,199,190,0.12);
  --gray-1:    #F2F2F7;
  --gray-2:    #E5E5EA;
  --gray-3:    #D1D1D6;
  --border:    rgba(0,0,0,0.04);
  --border-2:  rgba(0,0,0,0.025);
  --ring:      rgba(52,199,89,0.24);
  --shadow:    0 8px 32px rgba(0,0,0,0.08);
  --shadow-md: 0 16px 48px rgba(0,0,0,0.10);
  --shadow-lg: 0 24px 80px rgba(0,0,0,0.12);
  --radius:    16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --nav-w:     248px;
  --side-w:    336px;
  --font:      "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:      "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
  /* Surfaces */
  --bg:        #F2F2F7;
  --bg-sub:    rgba(255,255,255,0.50);
  --surface:   rgba(255,255,255,0.50);
  --surface-2: rgba(255,255,255,0.55);
  --surface-3: rgba(255,255,255,0.60);
  --surface-h: rgba(255,255,255,0.65);
}

html, body { height: 100%; min-height: 100dvh; overflow: hidden; }
body {
  font-family: var(--font);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F2F2F7;
}

/* Mesh gradient background — flowing liquid, Apple Music style */
#mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #f2f6fa 0%, #eaf5ec 25%, #eef4ff 50%, #ebf8f8 75%, #f0f7ee 100%);
  pointer-events: none;
}
#glass-canvas {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform, opacity;
  mix-blend-mode: normal;
}
/* 5 massive orbs — fewer, bigger, lava lamp feel */
/* Orb 1: green, top-left anchor */
.mesh-orb-1 {
  width: 1000px; height: 1000px;
  top: -20%; left: -15%;
  background: radial-gradient(circle, rgba(52,199,89,0.40) 0%, rgba(48,209,88,0.15) 40%, transparent 65%);
  animation: meshFlow1 14s ease-in-out infinite, meshPulse1 7s ease-in-out infinite;
}
/* Orb 2: orange/amber, bottom-right */
.mesh-orb-2 {
  width: 1100px; height: 1100px;
  bottom: -22%; right: -18%;
  background: radial-gradient(circle, rgba(255,45,85,0.38) 0%, rgba(255,180,80,0.14) 40%, transparent 65%);
  animation: meshFlow2 11s ease-in-out infinite, meshPulse2 5.5s ease-in-out infinite;
  animation-delay: -4s, -2s;
}
/* Orb 3: pink/magenta, top-right drifter */
.mesh-orb-3 {
  width: 900px; height: 900px;
  top: -10%; right: -10%;
  background: radial-gradient(circle, rgba(255,45,85,0.35) 0%, rgba(255,100,130,0.12) 40%, transparent 65%);
  animation: meshFlow3 16s ease-in-out infinite, meshPulse3 8s ease-in-out infinite;
  animation-delay: -7s, -4s;
}
/* Orb 4: blue/teal, bottom-left */
.mesh-orb-4 {
  width: 950px; height: 950px;
  bottom: -18%; left: -12%;
  background: radial-gradient(circle, rgba(0,122,255,0.35) 0%, rgba(0,199,190,0.12) 40%, transparent 65%);
  animation: meshFlow4 12s ease-in-out infinite, meshPulse4 6s ease-in-out infinite;
  animation-delay: -2s, -1s;
}
/* Orb 5: warm coral, center roamer */
.mesh-orb-5 {
  width: 850px; height: 850px;
  top: 20%; left: 25%;
  background: radial-gradient(circle, rgba(255,107,107,0.32) 0%, rgba(255,159,10,0.12) 40%, transparent 65%);
  animation: meshFlow5 18s ease-in-out infinite, meshPulse5 9s ease-in-out infinite;
  animation-delay: -10s, -5s;
}

/* Orbiting flow paths — sweeping, dramatic */
@keyframes meshFlow1 {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  25%  { transform: translate3d(280px, 180px, 0) scale(1.08) rotate(6deg); }
  50%  { transform: translate3d(140px, 320px, 0) scale(0.92) rotate(-4deg); }
  75%  { transform: translate3d(-200px, 120px, 0) scale(1.05) rotate(10deg); }
  100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}
@keyframes meshFlow2 {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  20%  { transform: translate3d(-300px, -180px, 0) scale(1.10) rotate(-5deg); }
  40%  { transform: translate3d(-180px, -350px, 0) scale(0.90) rotate(3deg); }
  60%  { transform: translate3d(120px, -200px, 0) scale(1.06) rotate(-8deg); }
  80%  { transform: translate3d(200px, 50px, 0) scale(0.94) rotate(6deg); }
  100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}
@keyframes meshFlow3 {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  16%  { transform: translate3d(-250px, 200px, 0) scale(1.06) rotate(4deg); }
  33%  { transform: translate3d(-350px, -60px, 0) scale(0.94) rotate(-7deg); }
  50%  { transform: translate3d(-100px, -280px, 0) scale(1.04) rotate(9deg); }
  66%  { transform: translate3d(160px, -140px, 0) scale(0.96) rotate(-3deg); }
  83%  { transform: translate3d(80px, 180px, 0) scale(1.02) rotate(5deg); }
  100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}
@keyframes meshFlow4 {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  25%  { transform: translate3d(320px, -100px, 0) scale(1.08) rotate(-6deg); }
  50%  { transform: translate3d(180px, -280px, 0) scale(0.90) rotate(5deg); }
  75%  { transform: translate3d(-120px, -160px, 0) scale(1.05) rotate(-10deg); }
  100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}
@keyframes meshFlow5 {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  20%  { transform: translate3d(220px, -200px, 0) scale(1.10) rotate(7deg); }
  40%  { transform: translate3d(-160px, -300px, 0) scale(0.88) rotate(-5deg); }
  60%  { transform: translate3d(-280px, 100px, 0) scale(1.06) rotate(10deg); }
  80%  { transform: translate3d(60px, 260px, 0) scale(0.94) rotate(-4deg); }
  100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}

/* Breathing opacity */
@keyframes meshPulse1 { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.22; } }
@keyframes meshPulse2 { 0%, 100% { opacity: 0.11; } 50% { opacity: 0.20; } }
@keyframes meshPulse3 { 0%, 100% { opacity: 0.10; } 50% { opacity: 0.18; } }
@keyframes meshPulse4 { 0%, 100% { opacity: 0.11; } 50% { opacity: 0.20; } }
@keyframes meshPulse5 { 0%, 100% { opacity: 0.10; } 50% { opacity: 0.16; } }

/* Click ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(52,199,89,0.22);
  transform: scale(0);
  animation: rippleEffect 0.5s ease-out forwards;
  pointer-events: none;
  z-index: 999;
}
@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}
/* Press feedback on interactive elements */
.card-hover:active, .nav-item:active, .btn:active, .trow.click:active,
.nav-pipeline-item:active, .nav-watch-item:active, .metric-card:active,
.dash-card:active, .pipeline-stage:active, .quick-action-btn:active {
  transform: scale(0.97) !important;
  transition-duration: 0.08s !important;
}

::selection { background: rgba(0,122,255,0.18); color: var(--text); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,122,255,0.20); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,122,255,0.40); }

button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }
input::placeholder { color: var(--text-3); }
.hidden { display: none !important; }

/* ═══ ANIMATIONS ═══ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInSoft { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px) scale(0.98); filter: blur(4px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 0 0 var(--blue-glow); } 50% { box-shadow: 0 0 30px 8px var(--blue-glow); } }
@keyframes loginButtonFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes typeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes liquidFloat {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1.03); }
  50% { transform: translate3d(1.2%, 1.4%, 0) scale(1.06); }
  100% { transform: translate3d(-1.5%, -1%, 0) scale(1.03); }
}
@keyframes liquidPulse {
  0%, 100% { opacity: 0.68; }
  50% { opacity: 0.9; }
}
@keyframes confidenceTurbulence {
  0% { transform: translateY(0) scale(1); filter: blur(8px); }
  50% { transform: translateY(2px) scale(1.05); filter: blur(11px); }
  100% { transform: translateY(0) scale(1); filter: blur(8px); }
}

.fi  { animation: fadeIn 0.35s ease both; }
.fi1 { animation: fadeIn 0.35s ease 0.06s both; }
.fi2 { animation: fadeIn 0.35s ease 0.12s both; }
.fi3 { animation: fadeIn 0.35s ease 0.18s both; }
.fi4 { animation: fadeIn 0.35s ease 0.24s both; }
.fi5 { animation: fadeIn 0.35s ease 0.30s both; }

/* ═══ SHARED COMPONENTS ═══ */
.card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.60);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s ease;
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.70) 40%, rgba(255,255,255,0.80) 50%, rgba(255,255,255,0.70) 60%, transparent 90%);
  pointer-events: none;
  z-index: 2;
}
.card > * { position: relative; z-index: 1; }
.card-hover:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.65);
}

#nav, #synapse-panel, .modal-card, .login-shell, .boot-shell, .deck-slide, .rx-analysis {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
#nav::after, .modal-card::after, .login-shell::after, .boot-shell::after, .deck-slide::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65) 30%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0.65) 70%, transparent);
}
.rx-analysis::after {
  content: none;
}
#nav > *, #synapse-panel > *, .modal-card > *, .login-shell > *, .boot-shell > *, .deck-slide > *, .rx-analysis > * {
  position: relative;
  z-index: 1;
}

.tag { display: inline-flex; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; line-height: 1.4; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255,255,255,0.20); box-shadow: inset 0 1px 0 rgba(255,255,255,0.40), inset 0 0 4px 1px rgba(255,255,255,0.15); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.badge { display: inline-flex; padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255,255,255,0.18); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); }
.section-label { font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
h1.page-title { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px; }
.page-sub { font-size: 13px; color: var(--text-3); font-weight: 400; margin-bottom: 16px; }
.page-desc { font-size: 13px; color: var(--text-2); margin-bottom: 24px; }

/* Buttons — heavy glass treatment */
.btn { padding: 10px 18px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); display: inline-flex; align-items: center; gap: 7px; line-height: 1.3; backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8); border: none; }
.btn-accent {
  background: linear-gradient(120deg, rgba(103,212,13,0.72) 0%, rgba(34,180,85,0.84) 42%, rgba(103,212,13,0.74) 100%);
  background-size: 220% 220%;
  animation: loginButtonFlow 7s ease-in-out infinite;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow:
    0 6px 24px rgba(34,180,85,0.22),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 0 10px 4px rgba(255,255,255,0.22);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
.btn-accent:hover {
  transform: translateY(-1px);
  background: linear-gradient(120deg, rgba(103,212,13,0.84) 0%, rgba(34,180,85,0.92) 42%, rgba(103,212,13,0.86) 100%);
  background-size: 220% 220%;
  animation-duration: 5.2s;
  box-shadow: 0 8px 28px rgba(34,180,85,0.22), 0 3px 8px rgba(34,180,85,0.08), inset 0 1px 0 rgba(255,255,255,0.50), inset 0 0 10px 4px rgba(255,255,255,0.25);
}
.btn-ghost {
  background: rgba(255,255,255,0.24);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text-2);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.02),
    inset 0 1px 0 rgba(255,255,255,0.50),
    inset 0 0 8px 3px rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.42); color: var(--text); box-shadow: 0 4px 14px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.60); transform: translateY(-1px); border-color: rgba(255,255,255,0.40); }
.btn-warn {
  background: rgba(255,45,85,0.35);
  color: #5a3200;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 4px 16px rgba(255,45,85,0.12), inset 0 1px 0 rgba(255,255,255,0.40), inset 0 0 8px 3px rgba(255,255,255,0.18);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
.btn-warn:hover { background: rgba(255,45,85,0.45); box-shadow: 0 6px 22px rgba(255,45,85,0.18), inset 0 1px 0 rgba(255,255,255,0.50), inset 0 0 10px 4px rgba(255,255,255,0.25); transform: translateY(-1px); }
.btn-danger-ghost {
  background: rgba(255,59,48,0.08);
  color: var(--red);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 0 6px 2px rgba(255,255,255,0.15);
}
.btn-danger-ghost:hover { background: rgba(255,59,48,0.14); box-shadow: 0 4px 14px rgba(255,59,48,0.10), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 0 8px 3px rgba(255,255,255,0.22); transform: translateY(-1px); }
.btn-green {
  background: linear-gradient(135deg, rgba(52,199,89,0.65), rgba(48,209,88,0.72));
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 4px 20px rgba(52,199,89,0.22), inset 0 1px 0 rgba(255,255,255,0.40), inset 0 0 8px 3px rgba(255,255,255,0.18);
}
.btn-green:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(52,199,89,0.75), rgba(48,209,88,0.82));
  box-shadow: 0 8px 28px rgba(52,199,89,0.32), inset 0 1px 0 rgba(255,255,255,0.50), inset 0 0 10px 4px rgba(255,255,255,0.25);
}
.btn-sm { padding: 7px 14px; font-size: 11px; }

/* Inputs */
.input { width: 100%; height: 40px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.24); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); color: var(--text); padding: 0 14px; font-size: 13px; outline: none; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 2px 8px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 0 6px 2px rgba(255,255,255,0.20); }
.input:focus { box-shadow: 0 0 0 3px rgba(52,199,89,0.08), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 8px 3px rgba(255,255,255,0.30); background: rgba(255,255,255,0.32); }
select.input { cursor: pointer; }
textarea.input { height: auto; padding: 10px 14px; resize: vertical; }

/* ═══ BOOT TERMINAL ═══ */
#boot { position: fixed; inset: 0; background: transparent; display: flex; align-items: center; justify-content: center; z-index: 10000; }
.boot-shell { width: min(860px, 92vw); height: min(560px, 82vh); border-radius: var(--radius-xl); border: 1px solid rgba(255,255,255,0.30); background: rgba(255,255,255,0.25); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.50), inset 0 -1px 0 rgba(255,255,255,0.10), inset 0 0 14px 7px rgba(255,255,255,0.55); display: flex; flex-direction: column; overflow: hidden; }
.boot-top { height: 42px; padding: 0 16px; border-bottom: 1px solid rgba(0,0,0,0.03); display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.boot-chip { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.22); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); color: var(--text-2); font-size: 10px; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,0.40), inset 0 0 4px 1px rgba(255,255,255,0.18); }
.boot-log { flex: 1; padding: 14px 16px; overflow: auto; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; }
.boot-line.ok { color: var(--green); }
.boot-line.warn { color: var(--yellow); }
.boot-line.err { color: var(--red); }
.boot-input-row { border-top: 1px solid rgba(0,0,0,0.03); padding: 10px 16px; display: flex; align-items: center; gap: 9px; font-family: var(--mono); }
.boot-prompt { color: var(--green); font-size: 12px; font-weight: 600; }
#boot-input { flex: 1; border: none; outline: none; background: transparent; color: var(--text); font-family: var(--mono); font-size: 12px; }
.boot-suggest { min-width: 92px; text-align: right; font-size: 11px; color: var(--text-3); font-family: var(--mono); pointer-events: none; }

/* ═══ DECK ═══ */
#deck {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #f6faf8 0%, #f0f5f2 25%, #edf2f5 55%, #f4f8fa 100%);
}
#deck::before {
  content: '';
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background: radial-gradient(560px 320px at 14% 6%, rgba(52,199,89,0.08) 0%, transparent 72%);
}
.deck-topbar {
  height: 56px;
  min-height: 56px;
  border-bottom: 1.5px solid rgba(255,255,255,0.50);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(36px) saturate(1.8);
  -webkit-backdrop-filter: blur(36px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.75), inset 0 0 14px 5px rgba(255,255,255,0.30);
  position: relative;
}
.deck-topbar::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 10%;
  right: 10%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(52,199,89,0.30), rgba(0,199,190,0.25), transparent);
  border-radius: 999px;
}
.deck-spacer { flex: 1; }
#deck-counter { font-family: var(--mono); font-size: 11px; color: #6b7280; }
#deck-stage { flex: 1; min-height: 0; padding: 14px 20px 10px; overflow: hidden; display: flex; flex-direction: column; }

.deck-slide {
  --accent-1: #34C759;
  --accent-2: #30D158;
  --accent-3: #00C7BE;
  width: min(1200px, calc(100vw - 40px));
  flex: 1;
  min-height: 0;
  margin: 0 auto;
  border-radius: 24px;
  border: 1.5px solid rgba(255,255,255,0.70);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(48px) saturate(2.2);
  -webkit-backdrop-filter: blur(48px) saturate(2.2);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.07),
    0 4px 12px rgba(0,0,0,0.03),
    0 0 0 1px rgba(52,199,89,0.08),
    inset 0 1.5px 0 rgba(255,255,255,0.92),
    inset 0 -1px 0 rgba(255,255,255,0.18),
    inset 0 0 36px 16px rgba(255,255,255,0.48);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
}
.deck-slide::before {
  content: '' !important;
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-3), transparent);
  opacity: 0.5;
  border-radius: 0 0 8px 8px;
}
.deck-slide.deck-enter-forward { animation: deckInForward 0.38s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.deck-slide.deck-enter-back { animation: deckInBack 0.38s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
/* deck-slide ::after handled by glass system (line ~302) */

@keyframes deckInForward {
  from { opacity: 0; transform: translate3d(40px, 0, 0) scale(0.95); filter: blur(6px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}
@keyframes deckInBack {
  from { opacity: 0; transform: translate3d(-40px, 0, 0) scale(0.95); filter: blur(6px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

.deck-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--accent-1);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.deck-meta-single {
  justify-content: center;
}
.deck-progress {
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.55);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
.deck-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34C759 0%, #30D158 52%, #00C7BE 100%);
  background-size: 220% 220%;
  animation: loginButtonFlow 7s ease-in-out infinite;
  width: 0%;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .deck-progress i {
    animation: none;
  }
}

.deck-title {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.06;
  letter-spacing: -1px;
  color: #111;
  margin-bottom: 8px;
  font-weight: 800;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 40%, var(--accent-1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: deckTitleShimmer 6s ease-in-out infinite;
}
@keyframes deckTitleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.deck-sub {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 12px;
  max-width: 88%;
  line-height: 1.55;
  font-weight: 450;
}
.deck-footer {
  font-size: 13px;
  color: #6b7280;
  margin-top: 12px;
  line-height: 1.5;
  font-style: italic;
  max-width: 92%;
}

/* Section Divider Slide */
.deck-layout-section {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(52,199,89,0.025) 50%, rgba(255,255,255,0.55) 100%);
}
.deck-section-line {
  width: min(340px, 68vw);
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-1) 20%, var(--accent-2) 50%, var(--accent-3) 80%, transparent 100%);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(52,199,89,0.12), 0 0 32px rgba(52,199,89,0.06);
}
.deck-section-title {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.0;
  letter-spacing: -2px;
  font-weight: 850;
  background-image: linear-gradient(135deg, #111 0%, #1a1a1a 25%, var(--accent-1) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 250% 250%;
  animation: deckTitleShimmer 6s ease-in-out infinite;
}
.deck-section-sub {
  font-size: 17px;
  color: #6b7280;
  max-width: 700px;
  line-height: 1.5;
  font-weight: 450;
}

/* Concept Slide */
.deck-layout-concept .deck-concept-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(260px, 0.9fr);
  gap: 16px;
}
.deck-main-col { min-height: 0; display: flex; flex-direction: column; }
.deck-bullets {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 8px;
  margin-top: 2px;
}
.deck-bullet {
  --bullet-color: #34C759;
  --bullet-tint: rgba(52,199,89,0.12);
  position: relative;
  padding: 11px 12px 11px 30px;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-left: 5px solid var(--bullet-color);
  border-radius: 12px;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.70), 0 1px 4px rgba(0,0,0,0.02);
  font-size: 14px;
  color: #222;
  line-height: 1.5;
}
.deck-bullet::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bullet-color);
}
.deck-bullet:nth-child(6n + 1) { --bullet-color: #34C759; --bullet-tint: rgba(52,199,89,0.12); }
.deck-bullet:nth-child(6n + 2) { --bullet-color: #34C759; --bullet-tint: rgba(52,199,89,0.12); }
.deck-bullet:nth-child(6n + 3) { --bullet-color: #00C7BE; --bullet-tint: rgba(0,199,190,0.12); }
.deck-bullet:nth-child(6n + 4) { --bullet-color: #FF2D55; --bullet-tint: rgba(255,45,85,0.13); }
.deck-bullet:nth-child(6n + 5) { --bullet-color: #FF3B30; --bullet-tint: rgba(255,59,48,0.12); }
.deck-bullet:nth-child(6n + 6) { --bullet-color: #007AFF; --bullet-tint: rgba(0,122,255,0.12); }

.deck-concept-aside {
  border: 1.5px solid rgba(255,255,255,0.60);
  border-radius: 14px;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.85),
    inset 0 0 16px 6px rgba(255,255,255,0.35),
    0 2px 8px rgba(0,0,0,0.03);
}
.deck-aside-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid rgba(148,163,184,0.32);
  padding-bottom: 8px;
}
.deck-aside-row {
  border: 1.5px solid rgba(255,255,255,0.50);
  border-radius: 10px;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 9px 10px;
  font-size: 13px;
  color: #334155;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}
.deck-aside-row:nth-child(2n + 2) { border-color: rgba(52,199,89,0.22); }
.deck-aside-row:nth-child(3n + 2) { border-color: rgba(255,45,85,0.2); }
.deck-aside-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}
.deck-aside-icon svg { width: 100%; height: 100%; }

/* Opening board slide */
.deck-layout-board .deck-sub { max-width: 76%; }
.deck-board {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(84px, auto);
  gap: 10px;
}
.board-card {
  --board-tone: #34C759;
  --board-tint: rgba(52,199,89,0.14);
  min-width: 0;
  overflow: hidden;
  border: none;
  border-left: 5px solid var(--board-tone);
  border-radius: 0 14px 14px 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  box-shadow: none;
  transition: transform 0.2s ease;
}
.board-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
}
/* board-hero base: KILLED — see FP-19 */
.board-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #4b5563;
}
.board-value {
  max-width: 100%;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.7px;
  font-weight: 800;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-image: linear-gradient(
    180deg,
    rgba(255,255,255,0.95) 0%,
    rgba(100,220,130,0.72) 28%,
    rgba(52,199,89,0.50) 55%,
    rgba(130,230,160,0.80) 78%,
    rgba(255,255,255,0.90) 100%
  );
  filter: drop-shadow(0 1px 1px rgba(52,199,89,0.20)) drop-shadow(0 3px 10px rgba(52,199,89,0.15));
}
.board-label {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #374151;
  line-height: 1.35;
}
.board-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}
.board-text {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.45;
}
.board-card.board-hero h3 {
  font-size: clamp(24px, 3.1vw, 34px);
  letter-spacing: -0.55px;
  line-height: 1.02;
  color: #111827;
}
.board-card.board-hero p {
  max-width: 80%;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

/* Diagram Slide */
.deck-layout-diagram .deck-diagram {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin: 2px 0 6px;
  border: none;
  border-radius: 16px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 12px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
.diagram-synapse {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.diagram-node {
  --tone: #34C759;
  --tone-soft: rgba(52,199,89,0.14);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-left: 5px solid var(--tone);
  border-radius: 12px;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  padding: 10px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.70), 0 2px 6px rgba(0,0,0,0.03);
}
.diagram-node b { display: block; color: #111827; font-size: 13px; margin-bottom: 2px; }
.diagram-node span { color: #4b5563; font-size: 12px; }
.diagram-arrow {
  color: #6b7280;
  font-size: 16px;
  font-weight: 700;
}

.diagram-workflow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.diagram-step {
  --tone: #34C759;
  --tone-soft: rgba(52,199,89,0.14);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-left: 5px solid var(--tone);
  border-radius: 10px;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  color: #1f2937;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 1px 4px rgba(0,0,0,0.02);
}
.diagram-node.tone-cyan, .diagram-step.tone-cyan { --tone: #34C759; --tone-soft: rgba(52,199,89,0.14); }
.diagram-node.tone-blue, .diagram-step.tone-blue { --tone: #007AFF; --tone-soft: rgba(0,122,255,0.14); }
.diagram-node.tone-green, .diagram-step.tone-green { --tone: #34C759; --tone-soft: rgba(52,199,89,0.14); }
.diagram-node.tone-amber, .diagram-step.tone-amber { --tone: #00C7BE; --tone-soft: rgba(0,199,190,0.14); }
.diagram-node.tone-orange, .diagram-step.tone-orange { --tone: #FF2D55; --tone-soft: rgba(255,45,85,0.14); }
.diagram-node.tone-red, .diagram-step.tone-red { --tone: #FF3B30; --tone-soft: rgba(255,59,48,0.14); }
.diagram-node.tone-violet, .diagram-step.tone-violet { --tone: #007AFF; --tone-soft: rgba(0,122,255,0.14); }

.diagram-floorplan {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fp-svg-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: none;
  border-radius: 12px;
  background: transparent;
  padding: 6px;
}
.fp-svg { width: 100%; height: 100%; display: block; }
.fp-zone-title-t { fill: #0f172a; font-size: 12px; font-weight: 700; letter-spacing: 0.2px; }
.fp-zone-sub-t { fill: #1f2937; font-size: 10.5px; font-weight: 600; }
.fp-zone-note-t { fill: #4b5563; font-size: 9.5px; }
.fp-meta-t { fill: #34C759; font-size: 9.5px; font-weight: 700; letter-spacing: 0.2px; }
.fp-flow-step { fill: #ffffff; font-size: 9px; font-weight: 700; }

.fp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.fp-legend div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #334155;
}
.fp-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid rgba(15,23,42,0.14);
  display: inline-block;
}
.lg-public { background: rgba(52,199,89,0.25); }
.lg-consult { background: rgba(52,199,89,0.24); }
.lg-restrict { background: rgba(0,122,255,0.22); }
.lg-secure { background: rgba(0,122,255,0.22); }
.lg-flow { background: linear-gradient(90deg, #34C759 0%, #34C759 100%); border-color: rgba(52,199,89,0.45); }

.diagram-bars { display: grid; gap: 9px; }
.bar-row {
  display: grid;
  grid-template-columns: 140px minmax(120px, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.bar-row span { color: #374151; font-size: 12px; font-weight: 600; }
.bar-row .bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.60);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
.bar-row .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34C759 0%, #007AFF 100%);
  width: 0%;
  transition: width 0.78s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-row:nth-child(2) .bar i { background: linear-gradient(90deg, #34C759 0%, #89EC38 100%); }
.bar-row:nth-child(3) .bar i { background: linear-gradient(90deg, #00C7BE 0%, #5AD8D0 100%); }
.bar-row:nth-child(4) .bar i { background: linear-gradient(90deg, #FF2D55 0%, #FFA340 100%); }
.bar-row:nth-child(5) .bar i { background: linear-gradient(90deg, #FF3B30 0%, #FF6D66 100%); }
.bar-row:nth-child(6) .bar i { background: linear-gradient(90deg, #007AFF 0%, #5AC8FA 100%); }
.bar-row b { font-family: var(--mono); color: #1f2937; font-size: 11px; }

.diagram-launch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.launch-phase {
  --launch: #34C759;
  --launch-bg: rgba(52,199,89,0.13);
  flex: 1;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-left: 5px solid var(--launch);
  border-radius: 12px;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 1px 4px rgba(0,0,0,0.02);
}
.launch-phase:nth-child(1) { --launch: #34C759; --launch-bg: rgba(52,199,89,0.13); }
.launch-phase:nth-child(3) { --launch: #34C759; --launch-bg: rgba(52,199,89,0.13); }
.launch-phase:nth-child(5) { --launch: #FF2D55; --launch-bg: rgba(255,45,85,0.13); }
.launch-phase b { color: #111827; font-size: 12px; display: block; margin-bottom: 3px; }
.launch-phase span { color: #374151; font-size: 12px; }
.launch-line {
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #34C759 0%, #34C759 100%);
  border-radius: 999px;
}

.deck-diagram-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.deck-note {
  --note: #34C759;
  --note-bg: rgba(52,199,89,0.12);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-left: 5px solid var(--note);
  border-radius: 12px;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  color: #374151;
  font-size: 13px;
  line-height: 1.45;
  padding: 9px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 1px 4px rgba(0,0,0,0.02);
}
.deck-note:nth-child(6n + 1) { --note: #34C759; --note-bg: rgba(52,199,89,0.12); }
.deck-note:nth-child(6n + 2) { --note: #34C759; --note-bg: rgba(52,199,89,0.12); }
.deck-note:nth-child(6n + 3) { --note: #00C7BE; --note-bg: rgba(0,199,190,0.12); }
.deck-note:nth-child(6n + 4) { --note: #FF2D55; --note-bg: rgba(255,45,85,0.12); }
.deck-note:nth-child(6n + 5) { --note: #FF3B30; --note-bg: rgba(255,59,48,0.12); }
.deck-note:nth-child(6n + 6) { --note: #007AFF; --note-bg: rgba(0,122,255,0.12); }

/* Subscription Tiers Diagram */
.diagram-tiers {
  display: grid;
  gap: 10px;
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.tier-card {
  border: 1.5px solid rgba(255,255,255,0.55);
  border-top: 4px solid var(--tier-color, #34C759);
  border-radius: 16px;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  padding: 13px 13px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), inset 0 0 12px 4px rgba(255,255,255,0.25), 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.18s ease;
}
.tier-card:hover { transform: translateY(-2px); }
.tier-card.tier-featured {
  border-top-width: 5px;
  background: rgba(255,255,255,0.55);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.85), inset 0 0 16px 6px rgba(255,255,255,0.35), 0 4px 16px rgba(0,0,0,0.06);
}
.tier-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--tier-color, #34C759);
  background: rgba(52,199,89,0.10);
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
}
.tier-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.tier-price {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--tier-color, #34C759);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.08));
}
.tier-price span {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}
.tier-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.tier-feature {
  font-size: 11.5px;
  color: #374151;
  line-height: 1.35;
  padding-left: 16px;
  position: relative;
}
.tier-feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tier-color, #34C759);
  opacity: 0.5;
}
.tier-ai {
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 10.5px;
  color: #6b7280;
  line-height: 1.4;
}
.tier-ai b {
  color: var(--tier-color, #34C759);
  font-weight: 700;
}
.tier-metrics {
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  background: rgba(255,255,255,0.46);
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72), 0 2px 8px rgba(0,0,0,0.03);
}
.tier-metric-primary {
  font-size: 12px;
  color: #0f172a;
  line-height: 1.45;
}
.tier-metric-secondary {
  margin-top: 4px;
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
}

/* Synapse Architecture Diagram */
.diagram-synapse-arch {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr 1.05fr 1.2fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.synapse-node {
  border: none;
  border-top: 4px solid var(--node-color, #34C759);
  border-radius: 14px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 12px 11px;
  text-align: left;
  box-shadow: none;
}
.synapse-node-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--node-color, #34C759);
  margin-bottom: 4px;
}
.synapse-node-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}
.synapse-node-desc {
  font-size: 10.5px;
  color: #6b7280;
  line-height: 1.35;
}
.synapse-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #34C759;
  font-size: 18px;
  font-weight: 700;
}
.synapse-arrow-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #6b7280;
  white-space: nowrap;
}
.synapse-tunnel {
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 12px;
  background: rgba(255,255,255,0.42);
  padding: 8px 8px 9px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.68), 0 2px 6px rgba(0,0,0,0.03);
}
.synapse-tunnel-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 6px;
  text-align: center;
}
.synapse-tunnel-line {
  height: 4px;
  border-radius: 999px;
  border: 1px dashed rgba(0,122,255,0.45);
  background: linear-gradient(90deg, rgba(0,122,255,0.14) 0%, rgba(0,199,190,0.14) 100%);
  position: relative;
  overflow: hidden;
}
.synapse-tunnel-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,122,255,0.45) 45%, transparent 100%);
  transform: translateX(-100%);
  animation: tunnelFlow 2.2s linear infinite;
}
@keyframes synapsePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.synapse-arrow-line {
  position: relative;
}
.synapse-arrow-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  border: 5px solid transparent;
  border-left: 7px solid #34C759;
}
@keyframes tunnelFlow {
  to { transform: translateX(100%); }
}

/* Scenario Slide */
.deck-scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.scenario-card {
  --scenario: #34C759;
  --scenario-bg: rgba(52,199,89,0.13);
  border: none;
  border-left: 5px solid var(--scenario);
  border-radius: 0 14px 14px 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 16px;
  box-shadow: none;
  transition: transform 0.2s ease;
}
.scenario-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
}
.scenario-card:nth-child(1) { --scenario: #FF3B30; --scenario-bg: rgba(255,59,48,0.12); }
.scenario-card:nth-child(2) { --scenario: #FF2D55; --scenario-bg: rgba(255,45,85,0.13); }
.scenario-card:nth-child(3) { --scenario: #34C759; --scenario-bg: rgba(52,199,89,0.13); }
.scenario-card h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--scenario);
  font-weight: 700;
  margin-bottom: 8px;
}
.scenario-card p {
  color: #374151;
  font-size: 13px;
  line-height: 1.5;
}

/* ═══ Split Layout — Two-Column Contrast ═══ */
.deck-layout-split { gap: 10px; }
.split-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.split-panel {
  border: none;
  border-top: none;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: none;
  overflow: hidden;
  border-left: none;
}
.split-panel-icon {
  width: 28px;
  height: 28px;
  color: var(--split-tone, #6b7280);
}
.split-panel-icon svg { width: 100%; height: 100%; }
.split-panel-title {
  font-size: 18px;
  font-weight: 750;
  color: #111827;
  letter-spacing: -0.3px;
}
.split-panel-points {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.split-point {
  font-size: 13px;
  color: #374151;
  line-height: 1.45;
  padding-left: 18px;
  position: relative;
}
.split-point::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--split-tone, #6b7280);
  opacity: 0.45;
}

/* ═══ Stats Layout — Big Numbers Row ═══ */
.deck-layout-stats { gap: 12px; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(var(--stat-cols, 4), 1fr);
  gap: 10px;
}
.stat-card {
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 16px;
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  padding: 22px 16px;
  text-align: center;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.85), inset 0 0 16px 6px rgba(255,255,255,0.35), 0 3px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.90), inset 0 0 20px 8px rgba(255,255,255,0.40), 0 8px 28px rgba(0,0,0,0.08);
}
.stat-value {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 850;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-image: linear-gradient(180deg, var(--stat-color, #34C759) 0%, color-mix(in srgb, var(--stat-color, #34C759) 90%, black) 100%);
  filter: none;
}
.stat-label {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  font-weight: 500;
}
.stats-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stats-note {
  border: 1.5px solid rgba(255,255,255,0.50);
  border-left: 4px solid var(--note-color, #34C759);
  border-radius: 12px;
  background: rgba(255,255,255,0.40);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 12px;
  font-size: 13px;
  color: #374151;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.60);
}

/* ═══ Timeline Layout — Connected Step Flow ═══ */
.deck-layout-timeline { gap: 10px; justify-content: center; }
.timeline-track {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding-top: 18px;
}
.timeline-track::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #34C759 0%, #007AFF 50%, #00C7BE 100%);
  opacity: 0.35;
}
.timeline-node {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tl-color, #34C759);
  border: 3px solid rgba(255,255,255,0.80);
  box-shadow: 0 0 0 3px var(--tl-color, rgba(52,199,89,0.25)), 0 2px 6px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.timeline-card {
  border: 1.5px solid rgba(255,255,255,0.50);
  border-radius: 12px;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 2px 6px rgba(0,0,0,0.03);
  width: 100%;
}
.timeline-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 3px;
}
.timeline-card-desc {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.35;
}

/* ═══ Bigquote Layout — Statement Slide ═══ */
.deck-layout-bigquote {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
.bigquote-text {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 850;
  letter-spacing: -2px;
  line-height: 1.08;
  max-width: 80%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-image: linear-gradient(135deg, #111 0%, #1a1a1a 25%, #34C759 55%, #00C7BE 100%);
  background-size: 250% 250%;
  animation: bigquoteGlow 5s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.06)) drop-shadow(0 8px 32px rgba(52,199,89,0.18));
}
@keyframes bigquoteGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.bigquote-attr {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ═══ Columns Layout — Multi-Column Cards ═══ */
.deck-layout-columns { gap: 10px; }
.columns-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--col-count, 3), 1fr);
  gap: 10px;
  align-items: stretch;
}
.column-card {
  border: none;
  border-radius: 16px;
  background: rgba(255,255,255,0.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.80), inset 0 0 12px 4px rgba(255,255,255,0.28), 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.column-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.90), inset 0 0 16px 6px rgba(255,255,255,0.35), 0 8px 24px rgba(0,0,0,0.07);
}
.column-card-icon {
  width: 26px;
  height: 26px;
  color: var(--col-tone, #34C759);
}
.column-card-icon svg { width: 100%; height: 100%; }
.column-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.2px;
}
.column-card-points {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.column-point {
  font-size: 12px;
  color: #374151;
  line-height: 1.4;
  padding-left: 16px;
  position: relative;
}
.column-point::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--col-tone, #34C759);
  opacity: 0.4;
}

.deck-controls {
  height: 64px;
  min-height: 64px;
  border-top: 1.5px solid rgba(255,255,255,0.50);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(36px) saturate(1.8);
  -webkit-backdrop-filter: blur(36px) saturate(1.8);
  box-shadow: 0 -1px 0 rgba(0,0,0,0.02), inset 0 -1px 0 rgba(255,255,255,0.75), inset 0 0 14px 5px rgba(255,255,255,0.30);
}
.deck-controls .btn { min-width: 112px; justify-content: center; }

/* ═══════════════════════════════════════════════════════
   DECK VISUAL ENHANCEMENTS — Stagger · Glow · Motion
   ═══════════════════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes deckCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0) scale(1);       filter: blur(0); }
}
@keyframes tlDotPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--tl-color, rgba(52,199,89,0.25)), 0 2px 6px rgba(0,0,0,0.08); }
  50%      { box-shadow: 0 0 0 7px var(--tl-color, rgba(52,199,89,0.10)), 0 2px 6px rgba(0,0,0,0.08), 0 0 18px var(--tl-color, rgba(52,199,89,0.16)); }
}
@keyframes sectionLineFlow {
  0%   { background-size: 100% 100%; opacity: 0.45; }
  50%  { background-size: 140% 100%; opacity: 1; }
  100% { background-size: 100% 100%; opacity: 0.45; }
}
@keyframes deckOrbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(14px, -10px) scale(1.04); }
  100% { transform: translate(-10px, 8px) scale(0.97); }
}
@keyframes heroGlow {
  0%, 100% { box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.92), inset 0 0 20px 8px rgba(255,255,255,0.40), 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px rgba(52,199,89,0.06); }
  50%      { box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.92), inset 0 0 24px 10px rgba(255,255,255,0.45), 0 6px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(52,199,89,0.10), 0 0 32px rgba(52,199,89,0.06); }
}

/* ── Slide background depth — subtle gradient orbs ── */
.deck-slide {
  background:
    radial-gradient(ellipse 340px 260px at 92% 6%, rgba(52,199,89,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 280px 220px at 6% 92%, rgba(0,199,190,0.035) 0%, transparent 70%),
    rgba(255,255,255,0.55);
}

/* ── Floating orbs behind the deck stage ── */
#deck-stage { position: relative; }
#deck-stage::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 540px 400px at 86% 10%, rgba(0,199,190,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 460px 340px at 6% 90%, rgba(52,199,89,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 320px 260px at 50% 50%, rgba(0,122,255,0.018) 0%, transparent 70%);
  animation: deckOrbDrift 22s ease-in-out infinite alternate;
}

/* ── Staggered card entrance animations ── */
.board-card, .column-card, .scenario-card, .stat-card, .split-panel,
.deck-bullet, .deck-aside-row, .tier-card, .deck-note {
  animation: deckCardIn 0.48s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.board-card:nth-child(1)  { animation-delay: 0.03s; }
.board-card:nth-child(2)  { animation-delay: 0.07s; }
.board-card:nth-child(3)  { animation-delay: 0.11s; }
.board-card:nth-child(4)  { animation-delay: 0.15s; }
.board-card:nth-child(5)  { animation-delay: 0.19s; }
.board-card:nth-child(6)  { animation-delay: 0.23s; }
.board-card:nth-child(7)  { animation-delay: 0.27s; }
.board-card:nth-child(8)  { animation-delay: 0.31s; }
.board-card:nth-child(9)  { animation-delay: 0.35s; }
.board-card:nth-child(10) { animation-delay: 0.39s; }

.column-card:nth-child(1) { animation-delay: 0.05s; }
.column-card:nth-child(2) { animation-delay: 0.13s; }
.column-card:nth-child(3) { animation-delay: 0.21s; }
.column-card:nth-child(4) { animation-delay: 0.29s; }

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.13s; }
.stat-card:nth-child(3) { animation-delay: 0.21s; }
.stat-card:nth-child(4) { animation-delay: 0.29s; }

.scenario-card:nth-child(1) { animation-delay: 0.05s; }
.scenario-card:nth-child(2) { animation-delay: 0.15s; }
.scenario-card:nth-child(3) { animation-delay: 0.25s; }

.split-panel:nth-child(1) { animation-delay: 0.05s; }
.split-panel:nth-child(2) { animation-delay: 0.16s; }

.deck-bullet:nth-child(1) { animation-delay: 0.03s; }
.deck-bullet:nth-child(2) { animation-delay: 0.09s; }
.deck-bullet:nth-child(3) { animation-delay: 0.15s; }
.deck-bullet:nth-child(4) { animation-delay: 0.21s; }
.deck-bullet:nth-child(5) { animation-delay: 0.27s; }

.deck-aside-row:nth-child(2) { animation-delay: 0.05s; }
.deck-aside-row:nth-child(3) { animation-delay: 0.10s; }
.deck-aside-row:nth-child(4) { animation-delay: 0.15s; }
.deck-aside-row:nth-child(5) { animation-delay: 0.20s; }
.deck-aside-row:nth-child(6) { animation-delay: 0.25s; }

.tier-card:nth-child(1) { animation-delay: 0.05s; }
.tier-card:nth-child(2) { animation-delay: 0.15s; }
.tier-card:nth-child(3) { animation-delay: 0.25s; }

/* Timeline staggered entrance */
.timeline-node {
  animation: deckCardIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.timeline-node:nth-child(1) { animation-delay: 0.05s; }
.timeline-node:nth-child(2) { animation-delay: 0.13s; }
.timeline-node:nth-child(3) { animation-delay: 0.21s; }
.timeline-node:nth-child(4) { animation-delay: 0.29s; }
.timeline-node:nth-child(5) { animation-delay: 0.37s; }
.timeline-node:nth-child(6) { animation-delay: 0.45s; }

/* ── Timeline pulsing dots ── */
.timeline-dot {
  animation: tlDotPulse 2.8s ease-in-out infinite;
}

/* ── Section divider line breathing glow ── */
.deck-section-line {
  animation: sectionLineFlow 3.5s ease-in-out infinite;
}

/* hero glow: KILLED — see FP-19 */

/* ── Column card glow — color seeps from top border ── */
.column-card {
  box-shadow:
    inset 0 8px 20px -6px var(--col-tint, rgba(52,199,89,0.13)),
    inset 0 1.5px 0 rgba(255,255,255,0.80),
    inset 0 0 12px 4px rgba(255,255,255,0.28),
    0 2px 8px rgba(0,0,0,0.04);
}
.column-card:hover {
  box-shadow:
    inset 0 10px 28px -6px var(--col-tint, rgba(52,199,89,0.18)),
    inset 0 1.5px 0 rgba(255,255,255,0.90),
    inset 0 0 16px 6px rgba(255,255,255,0.35),
    0 8px 24px rgba(0,0,0,0.07);
}

/* ── Split panel subtle tint — GUTTED ── */
.split-panel {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ── Enhanced progress bar ── */
.deck-progress {
  height: 7px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.deck-progress i {
  box-shadow: 0 0 8px rgba(52,199,89,0.20);
}

/* ── Board card value — no glow ── */
.board-value {
  filter: none;
}

/* ── Scenario card icon accent dots ── */
.scenario-card::before {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--scenario);
  opacity: 0.35;
}
.scenario-card { position: relative; }

/* ── Reduced motion safety ── */
@media (prefers-reduced-motion: reduce) {
  .board-card, .column-card, .scenario-card, .stat-card, .split-panel,
  .deck-bullet, .deck-aside-row, .tier-card, .deck-note, .timeline-node,
  .board-card.board-hero {
    animation: none !important;
  }
  .timeline-dot { animation: none !important; }
  .deck-section-line { animation: none !important; }
  #deck-stage::after { animation: none !important; }
}
/* ═══════════════════════════════════════════════════════
   BEAUTIFUL GLASSMORPHISM — Frosted depth + vivid accents
   ═══════════════════════════════════════════════════════ */

/* ── DECK CONTAINER: VIVID gradient mesh — the glass needs strong color behind it ── */
#deck {
  background:
    radial-gradient(ellipse 900px 600px at 8% 12%, rgba(52,199,89,0.04) 0%, transparent 55%),
    radial-gradient(ellipse 800px 550px at 88% 85%, rgba(0,199,190,0.03) 0%, transparent 50%),
    radial-gradient(ellipse 700px 500px at 50% 0%, rgba(0,122,255,0.02) 0%, transparent 50%),
    radial-gradient(ellipse 600px 450px at 92% 8%, rgba(175,82,222,0.02) 0%, transparent 45%),
    radial-gradient(ellipse 500px 400px at 30% 90%, rgba(255,45,85,0.02) 0%, transparent 45%),
    linear-gradient(160deg, #f5f5f7 0%, #f2f4f7 20%, #f4f5f7 40%, #f2f4f7 60%, #f5f5f7 80%, #f2f4f7 100%) !important;
}
#deck::before {
  background:
    radial-gradient(1000px 600px at 15% 8%, rgba(52,199,89,0.02) 0%, transparent 55%),
    radial-gradient(800px 500px at 82% 92%, rgba(0,199,190,0.02) 0%, transparent 50%),
    radial-gradient(600px 400px at 50% 50%, rgba(0,122,255,0.01) 0%, transparent 50%) !important;
}

/* ── TOPBAR: frosted glass bar ── */
.deck-topbar {
  background: rgba(255,255,255,0.25) !important;
  backdrop-filter: blur(36px) saturate(2.2) !important;
  -webkit-backdrop-filter: blur(36px) saturate(2.2) !important;
  border-color: rgba(255,255,255,0.40) !important;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.55) !important;
}
.deck-topbar::after {
  background: linear-gradient(90deg, transparent, rgba(52,199,89,0.14), rgba(0,199,190,0.12), transparent) !important;
}

/* ── ALL SLIDES: clean frosted glass — near-opaque white ── */
.deck-slide {
  background: rgba(255,255,255,0.88) !important;
  backdrop-filter: blur(24px) saturate(1.1) brightness(1.02) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.1) brightness(1.02) !important;
  border: 1.5px solid rgba(255,255,255,0.55) !important;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.10),
    0 8px 24px rgba(0,0,0,0.06),
    inset 0 2px 0 rgba(255,255,255,0.70),
    inset 0 -1px 0 rgba(255,255,255,0.15),
    inset 0 0 30px 12px rgba(255,255,255,0.18) !important;
}
/* Specular highlight at top — classic glass reflection */
.deck-slide::after {
  background:
    radial-gradient(ellipse 60% 20% at 30% 0%, rgba(255,255,255,0.40) 0%, transparent 70%),
    radial-gradient(ellipse 35% 15% at 75% 0%, rgba(255,255,255,0.20) 0%, transparent 60%) !important;
  opacity: 1 !important;
}
/* Rainbow accent edge at top */
.deck-slide::before {
  background: linear-gradient(90deg,
    transparent 5%,
    rgba(52,199,89,0.7) 20%,
    rgba(0,199,190,0.6) 40%,
    rgba(0,122,255,0.5) 60%,
    rgba(175,82,222,0.4) 80%,
    transparent 95%) !important;
  opacity: 0.65 !important;
  height: 3px !important;
}

/* ── TEXT COLORS: dark on glass for readability ── */
/* .deck-title color now handled by flowing green gradient */
.deck-sub { color: #4b5563 !important; }

/* ── BOARD CARDS: transparent, no white fill ── */
.board-card {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-left: 4px solid var(--board-tone, #34C759) !important;
  box-shadow: none !important;
}
.board-card:hover {
  background: transparent !important;
}
/* board-hero: KILLED — see FP-19 */

/* ── COLUMN CARDS: colored glass with gradient top glow ── */
.column-card {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--col-tone, #34C759) 6%, rgba(255,255,255,0.82)) 0%,
      rgba(255,255,255,0.82) 50%,
      rgba(255,255,255,0.78) 100%) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
  border: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.80),
    inset 0 8px 24px -6px color-mix(in srgb, var(--col-tone, #34C759) 8%, transparent),
    0 4px 22px rgba(0,0,0,0.06) !important;
}
.column-card:hover {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--col-tone, #34C759) 8%, rgba(255,255,255,0.88)) 0%,
      rgba(255,255,255,0.88) 60%) !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.88),
    inset 0 10px 28px -6px color-mix(in srgb, var(--col-tone, #34C759) 12%, transparent),
    0 10px 36px rgba(0,0,0,0.08) !important;
}

/* ── SCENARIO CARDS: transparent — see FP-13 ── */
.scenario-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-left: 5px solid var(--scenario, #34C759) !important;
  box-shadow: none !important;
  background: transparent !important;
}
.scenario-card:nth-child(1) {
  background: transparent !important;
  border-left: 5px solid #FF2D55 !important;
  border-top: none !important;
  box-shadow: none !important;
}
.scenario-card:nth-child(2) {
  background: transparent !important;
  border-left: 5px solid #007AFF !important;
  border-top: none !important;
  box-shadow: none !important;
}
.scenario-card:nth-child(3) {
  background: transparent !important;
  border-left: 5px solid #34C759 !important;
  border-top: none !important;
  box-shadow: none !important;
}
.scenario-card h3 { border-bottom-color: transparent !important; }

/* ── STAT CARDS: each card gets its own colored glass ── */
.stat-card {
  backdrop-filter: blur(22px) saturate(2.2) !important;
  -webkit-backdrop-filter: blur(22px) saturate(2.2) !important;
  border: 1px solid rgba(255,255,255,0.42) !important;
}
.stat-card:nth-child(1) {
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(52,199,89,0.12) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.50), inset 0 -32px 64px -18px rgba(52,199,89,0.28), 0 4px 22px rgba(0,0,0,0.07) !important;
}
.stat-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(0,122,255,0.12) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.50), inset 0 -32px 64px -18px rgba(0,122,255,0.28), 0 4px 22px rgba(0,0,0,0.07) !important;
}
.stat-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,45,85,0.12) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.50), inset 0 -32px 64px -18px rgba(255,45,85,0.28), 0 4px 22px rgba(0,0,0,0.07) !important;
}
.stat-card:nth-child(4) {
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(175,82,222,0.12) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.50), inset 0 -32px 64px -18px rgba(175,82,222,0.28), 0 4px 22px rgba(0,0,0,0.07) !important;
}
.stat-value {
  filter: drop-shadow(0 1px 3px color-mix(in srgb, var(--stat-color, #34C759) 28%, transparent))
          drop-shadow(0 4px 16px color-mix(in srgb, var(--stat-color, #34C759) 18%, transparent));
}

/* ── STATS NOTES: transparent glass ── */
.stats-note {
  background: rgba(255,255,255,0.14) !important;
  backdrop-filter: blur(16px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255,0.38) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45) !important;
}

/* ── SPLIT PANELS — GUTTED ── */
.split-panel,
.split-panel:first-child,
.split-panel:last-child {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  border-left: none !important;
}

/* ── TIMELINE: transparent glass cards ── */
.timeline-card {
  background: rgba(255,255,255,0.16) !important;
  backdrop-filter: blur(20px) saturate(1.9) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.9) !important;
  border: 1px solid rgba(255,255,255,0.40) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 3px 14px rgba(0,0,0,0.06) !important;
}
.timeline-dot {
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--tl-color, #34C759) 25%, transparent),
    0 0 20px color-mix(in srgb, var(--tl-color, #34C759) 30%, transparent),
    0 0 40px color-mix(in srgb, var(--tl-color, #34C759) 12%, transparent),
    0 2px 8px rgba(0,0,0,0.08) !important;
}

/* ── BULLETS: transparent glass rows ── */
.deck-bullet {
  background: rgba(255,255,255,0.14) !important;
  backdrop-filter: blur(18px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255,0.38) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45) !important;
}
.deck-bullet::before {
  box-shadow: 0 0 12px color-mix(in srgb, var(--bullet-color, #34C759) 45%, transparent) !important;
}

/* ── ASIDE: transparent glass ── */
.deck-concept-aside {
  background: rgba(255,255,255,0.10) !important;
  backdrop-filter: blur(14px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.6) !important;
  border: 1px solid rgba(255,255,255,0.32) !important;
}
.deck-aside-row {
  background: rgba(255,255,255,0.14) !important;
  border-color: rgba(255,255,255,0.35) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.38) !important;
}

/* ── TIER CARDS: transparent glass pricing ── */
.tier-card {
  background: rgba(255,255,255,0.16) !important;
  backdrop-filter: blur(22px) saturate(2.0) !important;
  -webkit-backdrop-filter: blur(22px) saturate(2.0) !important;
  border: 1px solid rgba(255,255,255,0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.50),
    0 4px 20px rgba(0,0,0,0.06) !important;
}
.deck-note {
  background: rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(16px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.40) !important;
}

/* ── SECTION DIVIDERS: BOLD gradient glass — visual punctuation ── */
.deck-layout-section {
  background:
    linear-gradient(160deg,
      rgba(52,199,89,0.35) 0%,
      rgba(0,199,190,0.30) 30%,
      rgba(0,122,255,0.22) 60%,
      rgba(52,199,89,0.32) 100%),
    rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(50px) saturate(2.8) !important;
  -webkit-backdrop-filter: blur(50px) saturate(2.8) !important;
}
.deck-layout-section .deck-section-line {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(52,199,89,0.70) 15%,
    rgba(0,199,190,0.60) 40%,
    rgba(0,122,255,0.50) 65%,
    rgba(52,199,89,0.70) 85%,
    transparent 100%);
  box-shadow:
    0 0 20px rgba(52,199,89,0.35),
    0 0 50px rgba(52,199,89,0.15);
  height: 3px;
}
.deck-layout-section .deck-section-title {
  background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #166534 60%, #0d9488 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: drop-shadow(0 1px 8px rgba(52,199,89,0.18));
}
.deck-layout-section .deck-section-sub { color: #4b5563 !important; }

/* ── BIGQUOTE: deep frosted dark glass — dramatic contrast ── */
.deck-layout-bigquote {
  background:
    linear-gradient(160deg,
      rgba(15,23,42,0.88) 0%,
      rgba(20,28,50,0.85) 35%,
      rgba(15,30,45,0.88) 65%,
      rgba(10,20,35,0.90) 100%) !important;
  backdrop-filter: blur(60px) saturate(2.0) !important;
  -webkit-backdrop-filter: blur(60px) saturate(2.0) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.deck-layout-bigquote::after {
  background:
    radial-gradient(ellipse 60% 30% at 30% 0%, rgba(52,199,89,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 25% at 75% 0%, rgba(0,199,190,0.06) 0%, transparent 60%) !important;
  opacity: 1 !important;
}
.bigquote-text {
  background-image: linear-gradient(135deg,
    #ffffff 0%,
    rgba(255,255,255,0.97) 20%,
    rgba(52,199,89,0.90) 55%,
    rgba(0,199,190,0.80) 100%) !important;
  filter:
    drop-shadow(0 2px 16px rgba(52,199,89,0.18))
    drop-shadow(0 8px 40px rgba(52,199,89,0.10));
}
.bigquote-attr { color: rgba(255,255,255,0.30) !important; }
.deck-layout-bigquote .deck-progress { background: rgba(255,255,255,0.08) !important; }
.deck-layout-bigquote .deck-meta span { color: rgba(255,255,255,0.35) !important; }

/* ── FLOATING ORBS: LARGE + VIVID — these are what the glass refracts ── */
#deck-stage::after {
  background:
    radial-gradient(ellipse 800px 600px at 10% 80%, rgba(0,199,190,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 12%, rgba(52,199,89,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 550px 420px at 40% 45%, rgba(0,122,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 500px 380px at 72% 78%, rgba(175,82,222,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 400px 300px at 25% 20%, rgba(255,45,85,0.04) 0%, transparent 55%) !important;
}

/* ── CONTENT FILLS AVAILABLE SPACE ── */
/* Strategy: grids flex-grow + align-content: center, cards stretch + distribute content */

/* Board grid: fill vertical, center rows when content doesn't need full height */
.deck-board {
  flex: 1;
  min-height: 0;
  align-content: center;
  grid-auto-rows: minmax(72px, 1fr);
}
.board-card {
  padding: 12px 14px;
  justify-content: center;
  gap: 4px;
}
.board-card.board-hero {
  padding: 18px 20px;
  justify-content: center;
  gap: 10px;
}
.board-label { font-size: 12px; line-height: 1.4; }
.board-value { font-size: clamp(16px, 2vw, 28px); overflow-wrap: normal; white-space: nowrap; }
.board-text { font-size: 13px; line-height: 1.55; }
.board-title { font-size: 17px; }
.board-eyebrow { font-size: 10px; letter-spacing: 0.7px; }

/* Columns: stretch cards AND distribute bullet points evenly */
.columns-grid {
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.column-card {
  padding: 16px 14px;
  gap: 8px;
  justify-content: flex-start;
}
.column-card-icon { width: 28px; height: 28px; font-size: 18px; }
.column-card-title { font-size: 15px; font-weight: 800; }
.column-card-points {
  flex: 1;
  gap: 0;
  justify-content: space-evenly;
}
.column-point {
  font-size: 12.5px;
  line-height: 1.5;
  padding-left: 16px;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Scenario cards: stretch to fill, center content inside */
.deck-scenario-grid {
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.scenario-card {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  position: relative;
}
.scenario-card h3 {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--scenario-bg);
}
.scenario-card p {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 450;
}
/* Decorative large number watermark — VISIBLE as design element */
.scenario-card::after {
  content: attr(data-num);
  position: absolute;
  bottom: 12px;
  right: 18px;
  font-size: 160px;
  font-weight: 900;
  line-height: 1;
  color: var(--scenario);
  opacity: 0.10;
  pointer-events: none;
  letter-spacing: -8px;
}

/* Stats: center the stat row, notes vertically centered with more padding */
.stats-row { margin-bottom: 8px; }
.stat-card {
  padding: 18px 14px;
  justify-content: center;
}
.stat-value { font-size: clamp(36px, 4.2vw, 54px); margin-bottom: 6px; overflow-wrap: break-word; word-break: break-word; }
.stat-label { font-size: 13px; line-height: 1.4; }
.stats-body {
  flex: 1;
  min-height: 0;
  align-content: center;
  gap: 8px;
}
.deck-layout-stats .stats-body .stats-note {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  font-size: 13px;
  line-height: 1.5;
}

/* Split panels: stretch + distribute */
.split-grid {
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.split-panel {
  padding: 18px 16px;
  gap: 10px;
  justify-content: flex-start;
}
.split-panel-title { font-size: 17px; font-weight: 800; }
.split-panel-points {
  flex: 1;
  gap: 0;
  justify-content: space-evenly;
}
.split-point {
  font-size: 13px;
  line-height: 1.5;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Timeline: bigger cards for more visual weight */
.timeline-card {
  padding: 10px 10px;
}
.timeline-card-title { font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.timeline-card-desc { font-size: 11px; line-height: 1.4; }
.timeline-dot { width: 24px; height: 24px; }
.timeline-node { gap: 8px; }

/* Bullets: sized to fit slide */
.deck-bullet { padding: 11px 14px 11px 32px; font-size: 14px; line-height: 1.55; }
.deck-bullet::before { top: 16px; width: 8px; height: 8px; }

/* Aside rows */
.deck-aside-row { padding: 10px 14px; font-size: 13.5px; }

/* ── RICHER SPLIT PANEL — GUTTED ── */
.split-panel:first-child,
.split-panel:last-child {
  background: none !important;
  box-shadow: none !important;
}

/* ── DECK TITLE — sized for projector readability without overflow ── */
.deck-title { font-size: clamp(26px, 3.2vw, 44px); margin-bottom: 4px; }
.deck-sub { font-size: 15px; line-height: 1.5; max-width: 88%; }

.deck-controls .btn:disabled { opacity: 0.5; cursor: default; }

/* ═══════════════════════════════════════════════════════
   SLIDE STRUCTURE REDESIGN v2 — BOLD + Sky Blue accents
   ═══════════════════════════════════════════════════════ */

/* ── SKY BLUE INJECTION into deck background ── */
#deck {
  background:
    radial-gradient(ellipse 900px 600px at 8% 12%, rgba(52,199,89,0.04) 0%, transparent 55%),
    radial-gradient(ellipse 800px 550px at 88% 85%, rgba(56,182,255,0.04) 0%, transparent 50%),
    radial-gradient(ellipse 700px 500px at 50% 0%, rgba(56,182,255,0.03) 0%, transparent 50%),
    radial-gradient(ellipse 600px 450px at 92% 8%, rgba(100,200,255,0.02) 0%, transparent 45%),
    radial-gradient(ellipse 500px 400px at 30% 90%, rgba(52,199,89,0.02) 0%, transparent 45%),
    linear-gradient(160deg, #f5f5f7 0%, #f2f4f7 20%, #f4f5f7 40%, #f2f4f7 60%, #f5f5f7 80%, #f2f4f7 100%) !important;
}
#deck::before {
  background:
    radial-gradient(1000px 600px at 15% 8%, rgba(52,199,89,0.02) 0%, transparent 55%),
    radial-gradient(800px 500px at 82% 92%, rgba(56,182,255,0.02) 0%, transparent 50%),
    radial-gradient(600px 400px at 50% 50%, rgba(100,200,255,0.01) 0%, transparent 50%) !important;
}

/* ── FLOATING ORBS: subtle, nearly invisible ── */
#deck-stage::after {
  background:
    radial-gradient(ellipse 800px 600px at 10% 80%, rgba(56,182,255,0.03) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 12%, rgba(52,199,89,0.03) 0%, transparent 55%),
    radial-gradient(ellipse 550px 420px at 40% 45%, rgba(56,182,255,0.02) 0%, transparent 60%),
    radial-gradient(ellipse 500px 380px at 72% 78%, rgba(100,200,255,0.01) 0%, transparent 55%),
    radial-gradient(ellipse 400px 300px at 25% 20%, rgba(52,199,89,0.01) 0%, transparent 55%) !important;
}

/* ── 1. MASSIVE SLIDE NUMBER WATERMARK — you WILL see this ── */
.deck-slide[data-slide-idx]::after {
  display: none !important;
  content: none !important;
}
.deck-layout-bigquote[data-slide-idx]::after {
  content: '\201C' !important;
  display: block !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  font-size: 340px !important;
  bottom: -30px !important;
}
.deck-layout-section[data-slide-idx]::after {
  display: none !important;
}

/* ── 2. CORNER MARKS — bigger, bolder, visible ── */
.slide-corner-tl,
.slide-corner-br {
  position: absolute;
  width: 36px;
  height: 36px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
}
.slide-corner-tl {
  top: 12px;
  left: 12px;
  border-top: 3px solid rgba(56,182,255,0.70);
  border-left: 3px solid rgba(56,182,255,0.70);
  border-radius: 4px 0 0 0;
}
.slide-corner-br {
  bottom: 12px;
  right: 12px;
  border-bottom: 3px solid rgba(52,199,89,0.70);
  border-right: 3px solid rgba(52,199,89,0.70);
  border-radius: 0 0 4px 0;
}

/* ── 3. META KEYWORD — GUTTED: no pill, no badge ── */
.deck-meta span:first-child {
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
.deck-meta span:last-child {
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
.deck-layout-bigquote .deck-meta span:first-child {
  background: none !important;
  border: none !important;
  color: rgba(10,26,16,0.40) !important;
}
.deck-layout-bigquote .deck-meta span:last-child {
  display: none;
}

/* ── 4. TITLE ACCENT BAR — thick gradient underline, very visible ── */
/* (background-image now set in editorial section with flowing green) */
.deck-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #38b6ff, #34C759);
  opacity: 0.80;
}
.deck-layout-section .deck-title::after,
.deck-layout-section .deck-section-title::after,
.deck-layout-bigquote .deck-title::after {
  display: none;
}

/* ── 5. DOT GRID TEXTURE — visible pattern on slide glass ── */
.deck-slide {
  background-image:
    radial-gradient(circle 1px at center, rgba(56,182,255,0.08) 0.8px, transparent 0.8px) !important;
  background-size: 28px 28px !important;
  background-position: 14px 14px !important;
}
/* Section: no dot grid — use its own gradient glass */
.deck-layout-section {
  background-image: none !important;
}
/* Bigquote: restore dark glass — dot grid override broke it */
.deck-layout-bigquote {
  background:
    linear-gradient(160deg,
      rgba(15,23,42,0.88) 0%,
      rgba(20,28,50,0.85) 35%,
      rgba(15,30,45,0.88) 65%,
      rgba(10,20,35,0.90) 100%) !important;
  background-image:
    linear-gradient(160deg,
      rgba(15,23,42,0.88) 0%,
      rgba(20,28,50,0.85) 35%,
      rgba(15,30,45,0.88) 65%,
      rgba(10,20,35,0.90) 100%) !important;
}

/* ── 6. COLUMN STEP BADGES — bold numbered headers ── */
.column-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.column-step-badge {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.35);
  font-variant-numeric: tabular-nums;
}
.column-card-icon {
  display: none !important;
}
/* Column card top border: sky blue alternating with green */
.column-card:nth-child(odd) {
  border: none !important;
}
.column-card:nth-child(even) {
  border: none !important;
}

/* ── 7. SPLIT VS DIVIDER — bold center badge ── */
.split-vs-divider {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.split-vs-divider span {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56,182,255,0.30), rgba(52,199,89,0.25));
  backdrop-filter: blur(24px) saturate(2.2);
  -webkit-backdrop-filter: blur(24px) saturate(2.2);
  border: 2.5px solid rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #1e3a5f;
  box-shadow:
    0 6px 24px rgba(56,182,255,0.20),
    0 2px 8px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.70);
}
.split-grid {
  position: relative;
}

/* ── 8. CARD ENTRY ANIMATIONS — dramatic staggered reveal ── */
@keyframes cardReveal {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
    filter: blur(6px);
  }
  50% {
    opacity: 1;
    filter: blur(0);
  }
  75% {
    transform: translateY(-3px) scale(1.008);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
.board-card,
.column-card,
.scenario-card,
.stat-card,
.split-panel,
.timeline-node,
.deck-bullet,
.deck-note,
.deck-aside-row,
.stats-note {
  animation: cardReveal 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.column-card:nth-child(1), .board-card:nth-child(1), .scenario-card:nth-child(1),
.stat-card:nth-child(1), .split-panel:first-child, .deck-bullet:nth-child(1),
.timeline-node:nth-child(1) { animation-delay: 0.08s; }

.column-card:nth-child(2), .board-card:nth-child(2), .scenario-card:nth-child(2),
.stat-card:nth-child(2), .split-panel:nth-child(3), .deck-bullet:nth-child(2),
.timeline-node:nth-child(2) { animation-delay: 0.18s; }

.column-card:nth-child(3), .board-card:nth-child(3), .scenario-card:nth-child(3),
.stat-card:nth-child(3), .deck-bullet:nth-child(3),
.timeline-node:nth-child(3) { animation-delay: 0.28s; }

.column-card:nth-child(4), .board-card:nth-child(4), .stat-card:nth-child(4),
.deck-bullet:nth-child(4), .timeline-node:nth-child(4) { animation-delay: 0.38s; }

.board-card:nth-child(5), .deck-bullet:nth-child(5),
.timeline-node:nth-child(5) { animation-delay: 0.48s; }

.board-card:nth-child(6), .deck-bullet:nth-child(6),
.timeline-node:nth-child(6) { animation-delay: 0.56s; }

/* ── 9. CARD HOVER — lift with sky blue glow ── */
.board-card,
.column-card,
.scenario-card,
.stat-card,
.split-panel {
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.board-card:hover,
.column-card:hover,
.scenario-card:hover,
.stat-card:hover {
  transform: translateY(-4px) !important;
  box-shadow:
    0 12px 40px rgba(56,182,255,0.12),
    0 4px 16px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.60) !important;
}

/* ── 10. SCENARIO CARD ICONS ── */
.scenario-card h3 {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}
.scenario-card:nth-child(1) h3::before { content: '⚠'; font-size: 17px; }
.scenario-card:nth-child(2) h3::before { content: '⚡'; font-size: 17px; }
.scenario-card:nth-child(3) h3::before { content: '✓'; font-size: 17px; font-weight: 900; }

/* ── 11. STAT CARD — sky blue decorative ring ── */
.stat-card { position: relative; overflow: hidden; }
.stat-card::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 140px !important;
  height: 140px !important;
  border-radius: 50% !important;
  border: 3.5px solid rgba(56,182,255,0.12) !important;
  pointer-events: none !important;
  background: none !important;
  opacity: 1 !important;
}

/* ── 12. TIMELINE DOT PULSE — sky blue glow ── */
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--tl-color, #38b6ff) 25%, transparent), 0 0 20px color-mix(in srgb, var(--tl-color, #38b6ff) 30%, transparent); }
  50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--tl-color, #38b6ff) 15%, transparent), 0 0 32px color-mix(in srgb, var(--tl-color, #38b6ff) 22%, transparent); }
}
.timeline-dot { animation: dotPulse 3s ease-in-out infinite !important; }

/* ── 13. PROGRESS BAR — sky blue to green gradient ── */
.deck-progress i {
  background: linear-gradient(90deg, #38b6ff 0%, #34C759 52%, #00C7BE 100%) !important;
  background-size: 220% 220% !important;
}

/* ── 14. SLIDE TOP ACCENT — sky blue rainbow edge ── */
.deck-slide::before {
  background: linear-gradient(90deg,
    transparent 5%,
    rgba(56,182,255,0.70) 20%,
    rgba(52,199,89,0.60) 40%,
    rgba(56,182,255,0.55) 60%,
    rgba(100,200,255,0.50) 80%,
    transparent 95%) !important;
  opacity: 0.75 !important;
  height: 3.5px !important;
}

/* ── 15. SECTION DIVIDER — sky blue injection ── */
.deck-layout-section {
  background:
    linear-gradient(160deg,
      rgba(56,182,255,0.30) 0%,
      rgba(52,199,89,0.28) 30%,
      rgba(56,182,255,0.22) 60%,
      rgba(52,199,89,0.30) 100%),
    rgba(255,255,255,0.12) !important;
}
.deck-layout-section .deck-section-line {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(56,182,255,0.65) 15%,
    rgba(52,199,89,0.60) 40%,
    rgba(56,182,255,0.55) 65%,
    rgba(52,199,89,0.65) 85%,
    transparent 100%) !important;
  box-shadow: 0 0 20px rgba(56,182,255,0.30), 0 0 50px rgba(56,182,255,0.12) !important;
}
.deck-layout-section .deck-section-title {
  background-image: linear-gradient(135deg, #0f172a 0%, #1e3a5f 30%, #1e6fa0 60%, #34C759 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* ── 16. TOPBAR accent — sky blue green ── */
.deck-topbar::after {
  background: linear-gradient(90deg, transparent, rgba(56,182,255,0.40), rgba(52,199,89,0.35), transparent) !important;
}

/* ── 17. DECK-SUB spacing ── */
.deck-sub { margin-top: -2px; }

/* ═══ END SLIDE STRUCTURE REDESIGN v2 ═══ */

/* ═══ LOGIN ═══ */
#login { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; background: transparent; transition: opacity 0.5s ease; }
#login.out { opacity: 0; pointer-events: none; }
.login-glow { position: absolute; width: 760px; height: 760px; top: 50%; left: 50%; transform: translate(-50%, -55%); background: radial-gradient(circle, rgba(52,199,89,0.12) 0%, rgba(52,199,89,0.03) 58%, transparent 74%); pointer-events: none; }
.login-shell { width: min(860px, 92vw); display: grid; grid-template-columns: 0.95fr 1.05fr; border-radius: 28px; overflow: hidden; background: rgba(255,255,255,0.25); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border: 1px solid rgba(255,255,255,0.30); box-shadow: 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.50), inset 0 -1px 0 rgba(255,255,255,0.10), inset 0 0 14px 7px rgba(255,255,255,0.55); animation: slideUp 0.6s ease; position: relative; z-index: 1; }
.login-panel { padding: 48px 40px; }
.login-panel-left { border-right: none; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; background: rgba(255,255,255,0.10); position: relative; overflow: hidden; }
.login-panel-right { display: flex; flex-direction: column; justify-content: center; padding: 48px 32px; }
.login-hero-logo {
  position: absolute;
  top: -18px;
  left: 18px;
  width: 384px;
  height: 384px;
  min-width: 0;
  display: block;
  object-fit: contain;
  margin: 0;
  pointer-events: none;
  z-index: 0;
}
.login-hero-icon { display: none; }
.login-left-copy {
  position: absolute;
  left: 18px;
  top: 286px;
  width: 384px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.login-title { font-size: 38px; font-weight: 700; letter-spacing: -1.2px; margin: 0 0 10px; color: var(--text); position: relative; z-index: 1; text-align: center; }
.login-copy { font-size: 15px; color: var(--text-3); line-height: 1.6; max-width: 340px; font-weight: 400; position: relative; z-index: 1; text-align: center; }
.login-feature-list { display: none; }
.login-feature { display: none; }
.login-feature-dot { display: none; }
.login-brand { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.login-brand-dot { display: none; }
.login-logo { display: none; }
.login-brand-name { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; color: var(--text); line-height: 1.04; }
.login-brand-sub { font-size: 11px; color: var(--text-3); margin-top: 3px; font-weight: 400; }
.login-fields { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-size: 11px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; letter-spacing: 0.3px; }
.field input { width: 100%; height: 44px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.24); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); color: var(--text); padding: 0 14px; font-size: 14px; font-family: var(--font); outline: none; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 2px 8px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 0 6px 2px rgba(255,255,255,0.20); }
.field input:focus { box-shadow: 0 0 0 3px rgba(52,199,89,0.08), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 8px 3px rgba(255,255,255,0.30); background: rgba(255,255,255,0.32); }
.pw-input { font-family: var(--font); letter-spacing: 1.4px; font-variant-numeric: tabular-nums; }
.login-hint { font-size: 12px; min-height: 18px; color: var(--text-2); transition: color 0.15s; }
.login-hint.err { color: var(--red); }
#login-btn {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border-radius: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 640;
  letter-spacing: -0.08px;
  background: linear-gradient(120deg, rgba(103,212,13,0.72) 0%, rgba(34,180,85,0.84) 42%, rgba(103,212,13,0.74) 100%);
  background-size: 220% 220%;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow:
    0 6px 24px rgba(34,180,85,0.22),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 0 10px 4px rgba(255,255,255,0.22);
  animation: loginButtonFlow 7s ease-in-out infinite;
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
#login-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(120deg, rgba(103,212,13,0.84) 0%, rgba(34,180,85,0.92) 42%, rgba(103,212,13,0.86) 100%);
  background-size: 220% 220%;
  animation-duration: 5.2s;
  box-shadow: 0 10px 32px rgba(34,180,85,0.32), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 12px 5px rgba(255,255,255,0.30);
}
#login-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(34,180,85,0.20);
}
#login-btn:disabled {
  opacity: 0.82;
  cursor: default;
  animation-play-state: paused;
}
.login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 560;
  color: var(--text-2);
  letter-spacing: 0.18px;
  opacity: 0.86;
  text-shadow: 0 1px 0 rgba(255,255,255,0.44);
}
.login-dot { display: none; }

/* ═══ SYNAPSE INTRO ═══ */
#synapse-intro { position: fixed; inset: 0; z-index: 8000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.15); backdrop-filter: blur(12px); animation: fadeInSoft 0.3s ease; }
.synapse-intro-card { width: 440px; padding: 40px; text-align: center; border-radius: var(--radius-xl); background: rgba(255,255,255,0.65); backdrop-filter: blur(32px) saturate(1.8); -webkit-backdrop-filter: blur(32px) saturate(1.8); border: 1px solid rgba(255,255,255,0.55); box-shadow: 0 24px 80px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.70), inset 0 -1px 0 rgba(255,255,255,0.15), inset 0 0 20px 10px rgba(255,255,255,0.50); animation: slideUp 0.5s ease; }
.synapse-intro-icon { width: 64px; height: 64px; margin: 0 auto 20px; animation: glowPulse 3s ease-in-out infinite; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.synapse-intro-icon svg { width: 52px; height: 52px; }
.synapse-intro-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.synapse-intro-desc { font-size: 13px; color: var(--text-2); line-height: 1.65; margin-bottom: 14px; }
.synapse-intro-sub { font-size: 12px; color: var(--text-3); margin-bottom: 24px; font-style: italic; }
.synapse-intro-actions { display: flex; gap: 10px; justify-content: center; }
.synapse-intro-actions .btn-ghost, .synapse-intro-actions .btn-accent { padding: 10px 24px; font-size: 13px; border-radius: var(--radius-sm); }

/* ═══ WALKTHROUGH ═══ */
#wt-overlay { position: fixed; inset: 0; z-index: 7000; background: transparent; transition: opacity 0.3s; }
.wt-dim { position: absolute; background: rgba(0,0,0,0.12); backdrop-filter: blur(9px) saturate(1.14); -webkit-backdrop-filter: blur(9px) saturate(1.14); pointer-events: none; }
#wt-spotlight { position: absolute; border-radius: var(--radius); border: 2px solid rgba(52,199,89,0.30); box-shadow: 0 6px 20px rgba(0,0,0,0.06); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 7001; pointer-events: none; }
#wt-card { position: absolute; width: 320px; padding: 22px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.25); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border: 1px solid rgba(255,255,255,0.30); box-shadow: 0 24px 80px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.50), inset 0 -1px 0 rgba(255,255,255,0.10), inset 0 0 14px 7px rgba(255,255,255,0.55); z-index: 7002; animation: slideUp 0.3s ease; }
#wt-step-num { font-size: 10px; font-weight: 700; color: #5e6881; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
#wt-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
#wt-desc { font-size: 12px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
#wt-actions { display: flex; gap: 8px; justify-content: flex-end; }
#wt-skip { padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--text-3); background: none; border: none; }
#wt-skip:hover { color: var(--text-2); }
#wt-next { padding: 7px 18px; border-radius: 8px; font-size: 12px; font-weight: 600; background: linear-gradient(120deg, rgba(103,212,13,0.72) 0%, rgba(34,180,85,0.84) 42%, rgba(103,212,13,0.74) 100%); background-size: 220% 220%; animation: loginButtonFlow 7s ease-in-out infinite; color: #fff; border: 1px solid rgba(255,255,255,0.28); box-shadow: 0 6px 24px rgba(34,180,85,0.22), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 0 10px 4px rgba(255,255,255,0.22); backdrop-filter: blur(20px) saturate(1.6); }
#wt-next:hover { box-shadow: 0 10px 32px rgba(34,180,85,0.32), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 12px 5px rgba(255,255,255,0.30); transform: translateY(-1px); animation-duration: 5.2s; }

/* ═══ APP SHELL ═══ */
#app {
  position: fixed;
  inset: 0;
  display: flex;
  overflow: hidden;
  animation: fadeInSoft 0.4s ease;
  background: transparent;
  z-index: 2;
}
#main { flex: 1; min-width: 0; min-height: 0; width: 100%; height: 100%; display: flex; flex-direction: column; }

/* ═══ NAV — Hover-to-expand sidebar ═══ */
#nav {
  width: 60px;
  min-width: 60px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.40) 100%);
  backdrop-filter: blur(50px) saturate(2.0);
  -webkit-backdrop-filter: blur(50px) saturate(2.0);
  border-right: 1.5px solid rgba(255,255,255,0.60);
  display: flex;
  flex-direction: column;
  padding: 10px 5px;
  user-select: none;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1), min-width 0.3s cubic-bezier(0.4,0,0.2,1), padding 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow:
    inset 1.5px 0 0 rgba(255,255,255,0.50),
    inset 0 0 40px 16px rgba(255,255,255,0.25),
    4px 0 24px rgba(0,0,0,0.04);
  overflow: hidden;
  z-index: 100;
  position: relative;
}
#nav:hover, #nav.nav-pinned {
  width: 240px;
  min-width: 240px;
  padding: 14px 8px;
}
#nav::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15) 30%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.15) 70%, transparent);
}
#nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2px;
  margin-bottom: 8px;
  background: none;
  border: none;
  box-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-logo {
  width: 36px;
  height: 36px;
  min-width: 36px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  object-position: center center;
  align-self: center;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1), height 0.3s cubic-bezier(0.4,0,0.2,1), min-width 0.3s cubic-bezier(0.4,0,0.2,1);
}
#nav:hover .nav-logo, #nav.nav-pinned .nav-logo {
  width: 96px;
  height: 96px;
  min-width: 96px;
}
.nav-brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--logo-ink);
  display: none;
  opacity: 0;
  white-space: nowrap;
}
#nav:hover .nav-brand-name, #nav.nav-pinned .nav-brand-name { opacity: 0; }

/* Nav user (bottom) */
#nav-user { display: flex; align-items: center; gap: 8px; padding: 8px 0; padding-left: 12px; border-radius: 10px; cursor: pointer; transition: all 0.2s; overflow: hidden; white-space: nowrap; }
#nav:hover #nav-user, #nav.nav-pinned #nav-user { padding-left: 8px; }
#nav-user:hover { background: rgba(0,0,0,0.04); }
.user-avatar { background: linear-gradient(135deg, rgba(52,199,89,0.20), rgba(0,199,190,0.15)); color: var(--text-2); border: 1px solid rgba(0,0,0,0.08); }
.nav-user-name { font-size: 12px; font-weight: 600; color: var(--text-3); opacity: 0; width: 0; overflow: hidden; transition: opacity 0.2s ease 0.05s, width 0.3s ease; }
#nav:hover .nav-user-name, #nav.nav-pinned .nav-user-name { opacity: 1; width: auto; }
.nav-brand-ver { font-size: 10px; color: var(--text-3); font-weight: 500; margin-left: 5px; font-family: var(--mono); }
.nav-section {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 16px 8px 7px;
  opacity: 0;
  transition: opacity 0.2s ease 0.05s;
  white-space: nowrap;
}
#nav:hover .nav-section, #nav.nav-pinned .nav-section { opacity: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  padding-left: 17px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
}
#nav:hover .nav-item, #nav.nav-pinned .nav-item { padding-left: 12px; }
.nav-item svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; fill: none; flex-shrink: 0; }
.nav-item-label { opacity: 0; width: 0; overflow: hidden; transition: opacity 0.2s ease 0.1s, width 0.3s ease; }
#nav:hover .nav-item-label, #nav.nav-pinned .nav-item-label { opacity: 1; width: auto; }
.nav-item:hover { background: rgba(0,0,0,0.04); color: var(--text); }
.nav-item.active {
  background: rgba(52,199,89,0.13);
  color: var(--green-ink);
  font-weight: 600;
  box-shadow: inset 0 0 8px 2px rgba(52,199,89,0.06), 0 1px 4px rgba(52,199,89,0.08);
}
.nav-item.active::before { display: none; }
.nav-badge {
  margin-left: auto;
  min-width: 0;
  width: 0;
  height: 18px;
  border-radius: 10px;
  padding: 0;
  background: rgba(255,59,48,0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255,59,48,0.40);
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.2s ease 0.05s, width 0.3s ease, min-width 0.3s ease, padding 0.3s ease;
}
#nav:hover .nav-badge, #nav.nav-pinned .nav-badge { opacity: 1; min-width: 18px; width: auto; padding: 0 5px; }
/* Show a mini dot badge when collapsed */
.nav-badge::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF3B30;
  box-shadow: 0 0 6px rgba(255,59,48,0.60);
  display: block;
}
#nav:hover .nav-badge::before, #nav.nav-pinned .nav-badge::before { display: none; }

.nav-count { margin-left: auto; font-size: 11px; color: var(--text-3); font-family: var(--mono); opacity: 0; transition: opacity 0.2s ease 0.05s; }
#nav:hover .nav-count, #nav.nav-pinned .nav-count { opacity: 1; }
.nav-spacer { flex: 1; }

/* Pipeline section in nav */
.nav-pipeline {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  padding: 0 2px;
}
#nav:hover .nav-pipeline, #nav.nav-pinned .nav-pipeline {
  opacity: 1;
  max-height: 400px;
}
.nav-pipeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  border-left: 2px solid transparent;
}
.nav-pipeline-item:hover { background: rgba(0,0,0,0.04); color: var(--text); }
.nav-pipeline-item.active { color: var(--green-ink); background: rgba(52,199,89,0.08); }
.nav-pipeline-count {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  min-width: 20px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.nav-pipeline-count.count-high {
  background: rgba(255,59,48,0.12);
  color: var(--red);
}
.nav-pipeline-count.count-mid {
  background: rgba(255,45,85,0.12);
  color: #FF2D55;
}
.nav-pipeline-count.count-low {
  color: var(--text-3);
}

/* Watchlist in nav */
.nav-watchlist {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  padding: 0 2px;
}
#nav:hover .nav-watchlist, #nav.nav-pinned .nav-watchlist {
  opacity: 1;
  max-height: 200px;
}
.nav-watch-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-watch-item:hover { background: rgba(0,0,0,0.04); color: var(--text); }
.nav-watch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-sub { padding: 3px 0 3px 30px; display: flex; flex-direction: column; gap: 1px; }
.nav-sub-item { display: flex; align-items: center; justify-content: space-between; padding: 5px 10px; border-radius: 7px; font-size: 11px; font-weight: 500; color: var(--text-3); cursor: pointer; transition: all 0.1s; border: none; background: none; text-align: left; width: 100%; }
.nav-sub-item:hover { color: var(--text-2); background: var(--glass); }
.nav-sub-item.active { color: var(--green-ink); background: rgba(52,199,89,0.15); }
.nav-sub-count { font-family: var(--mono); font-size: 10px; opacity: 0.5; }
.rail-stats { display: grid; gap: 8px; margin: 2px 4px 8px; }
.rail-stat {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.24);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  display: grid;
  gap: 2px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.02),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 0 8px 3px rgba(255,255,255,0.25);
}
.rail-stat span { font-size: 10px; color: var(--text-3); letter-spacing: 0.25px; }
.rail-stat b { font-size: 13px; font-weight: 700; color: var(--text); }
.rail-stat.rs-blue { }
.rail-stat.rs-red { }
.rail-stat.rs-green { }
.rail-stat.rs-amber { }
.rail-stats-compact { grid-template-columns: 1fr; gap: 6px; }

.rail-tools { display: grid; gap: 6px; margin: 2px 0 8px; }
.rail-tool {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.24);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  color: var(--text);
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.02),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 0 8px 3px rgba(255,255,255,0.25);
}
.rail-tool:hover {
  background: rgba(255,255,255,0.35);
  box-shadow: 0 4px 14px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 10px 4px rgba(255,255,255,0.35);
  transform: translateY(-1px);
}
.rail-tool-label { font-size: 12px; font-weight: 550; line-height: 1.25; }
.rail-tool-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
  padding: 2px 7px;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30);
}

.rail-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color, var(--green));
  border: none;
  background: var(--icon-bg, rgba(52,199,89,0.10));
  box-shadow: none;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.rail-icon::after { content: none; }
.rail-icon svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rail-icon.ri-blue {
  --icon-color: #007AFF;
  --icon-bg: rgba(0,122,255,0.10);
}
.rail-icon.ri-cyan {
  --icon-color: #00C7BE;
  --icon-bg: rgba(0,199,190,0.10);
}
.rail-icon.ri-green {
  --icon-color: #34C759;
  --icon-bg: rgba(52,199,89,0.10);
}
.rail-icon.ri-amber {
  --icon-color: #FF2D55;
  --icon-bg: rgba(255,45,85,0.10);
}
.rail-icon.ri-red {
  --icon-color: #FF3B30;
  --icon-bg: rgba(255,59,48,0.10);
}
.rail-icon.ri-navy {
  --icon-color: #007AFF;
  --icon-bg: rgba(0,122,255,0.10);
}
.rail-icon.ri-orange {
  --icon-color: #FF2D55;
  --icon-bg: rgba(255,45,85,0.10);
}

.rail-watch { display: grid; gap: 6px; margin-bottom: 10px; }
.rail-watch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.24);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.02),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 0 8px 3px rgba(255,255,255,0.25);
}
.rail-watch-item:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 10px 4px rgba(255,255,255,0.35);
  transform: translateY(-1px);
}
.rail-watch-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rail-watch-dot.tone-red { background: var(--red); }
.rail-watch-dot.tone-amber { background: var(--amber); }
.rail-watch-dot.tone-cyan { background: #007AFF; }
.rail-watch-main { display: grid; min-width: 0; }
.rail-watch-main b { font-size: 11px; font-weight: 650; color: var(--text); line-height: 1.2; }
.rail-watch-main small {
  font-size: 10px;
  color: var(--text-3);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rail-watch-empty {
  font-size: 11px;
  color: var(--text-3);
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px dashed rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 6px 2px rgba(255,255,255,0.15);
}

/* (nav-status removed — info lives in pipeline/content-header now) */

/* CONTENT HEADER — inline, not a fixed bar */
#content-header {
  display: flex;
  align-items: center;
  padding: 12px 20px 8px;
  gap: 10px;
  flex-shrink: 0;
}
.content-header-spacer { flex: 1; }
.chrome-btn { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.20); border: 1px solid rgba(255,255,255,0.22); color: var(--text-3); cursor: pointer; transition: all 0.2s; backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 0 4px 1px rgba(255,255,255,0.15); }
.chrome-btn svg { width: 15px; height: 15px; }
.chrome-btn:hover { background: rgba(255,255,255,0.38); color: var(--text-2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.45); transform: translateY(-1px); }
.chrome-btn.active { background: rgba(52,199,89,0.10); color: var(--green); box-shadow: inset 0 1px 0 rgba(255,255,255,0.30); }
#breadcrumb { font-size: 12px; color: var(--text-3); }
#breadcrumb b { color: var(--text); font-weight: 600; }
.topbar-spacer { flex: 1; }
#new-rx-btn { display: flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--radius-sm); background: linear-gradient(120deg, rgba(103,212,13,0.72) 0%, rgba(34,180,85,0.84) 42%, rgba(103,212,13,0.74) 100%); background-size: 220% 220%; animation: loginButtonFlow 7s ease-in-out infinite; color: #fff; font-size: 12px; font-weight: 600; border: 1px solid rgba(255,255,255,0.28); box-shadow: 0 6px 24px rgba(34,180,85,0.22), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 0 10px 4px rgba(255,255,255,0.22); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
#new-rx-btn svg { width: 14px; height: 14px; }
#new-rx-btn:hover { transform: translateY(-1px); background: linear-gradient(120deg, rgba(103,212,13,0.84) 0%, rgba(34,180,85,0.92) 42%, rgba(103,212,13,0.86) 100%); background-size: 220% 220%; animation-duration: 5.2s; box-shadow: 0 10px 32px rgba(34,180,85,0.32), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 12px 5px rgba(255,255,255,0.30); }
#searchbox { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 36px; width: 250px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.24); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); transition: all 0.3s cubic-bezier(0.4,0,0.2,1); position: relative; box-shadow: 0 2px 8px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 0 8px 3px rgba(255,255,255,0.25); }
#searchbox:focus-within { box-shadow: 0 0 0 3px rgba(52,199,89,0.08), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 10px 4px rgba(255,255,255,0.35); background: rgba(255,255,255,0.32); }
#searchbox svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.35; }
#search-input { border: none; outline: none; background: none; flex: 1; font-size: 12px; color: var(--text); }
#searchbox kbd { font-size: 10px; color: var(--text-3); font-family: var(--mono); background: rgba(255,255,255,0.22); padding: 1px 5px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.20); box-shadow: inset 0 1px 0 rgba(255,255,255,0.30); }
#search-dropdown { position: fixed; width: 280px; background: rgba(255,255,255,0.28); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.30); box-shadow: 0 16px 48px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.03), inset 0 0 12px 4px rgba(255,255,255,0.35); overflow: hidden; z-index: 3200; }
.sd-item { padding: 9px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: background 0.1s; }
.sd-item:hover { background: var(--glass-hover); }
.sd-type { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; width: 46px; flex-shrink: 0; }
.sd-name { font-size: 12px; font-weight: 500; }
.sd-sub { font-size: 11px; color: var(--text-3); }
#clock { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
#user-badge { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.24); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 2px 8px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 0 6px 2px rgba(255,255,255,0.20); }
.user-avatar { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, rgba(52,199,89,0.12), rgba(0,199,190,0.08)); color: var(--text-2); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(12px); box-shadow: inset 0 0 4px 1px rgba(255,255,255,0.18); }
#user-badge span { font-size: 12px; font-weight: 500; }

/* (workflow-bar removed — pipeline is now in sidebar nav) */

/* CONTENT + SIDEBAR */
#body { flex: 1; min-height: 0; height: 100%; display: flex; overflow: hidden; }
#content {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 12px 18px 14px;
  background: transparent;
}
.view { display: none; width: 100%; min-height: 0; max-width: none; }
.view.active { display: block; flex: 1; min-height: 0; height: 100%; overflow: auto; }
#v-dashboard.view.active { display: block; flex: 1; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: 20px; }

/* Dashboard shell (legacy) */
.dashboard-shell {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 14px;
  overflow: visible;
}
.dashboard-header .page-desc { margin-bottom: 0; }
.dashboard-activity {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.dashboard-feed {
  height: 100%;
  min-height: 0;
  overflow: auto;
}

/* ═══ FLOATING SYNAPSE AI PANEL ═══ */
#synapse-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 80px;
  width: 380px;
  z-index: 6000;
  border-radius: 20px;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.48) 0%, rgba(255,255,255,0.24) 40%, rgba(255,255,255,0.36) 100%);
  backdrop-filter: blur(50px) saturate(2.2) brightness(1.10);
  -webkit-backdrop-filter: blur(50px) saturate(2.2) brightness(1.10);
  border: 1.5px solid rgba(255,255,255,0.45);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.12),
    0 8px 24px rgba(0,0,0,0.05),
    0 2px 8px rgba(0,0,0,0.03),
    inset 0 1.5px 0 rgba(255,255,255,0.70),
    inset 0 -1px 0 rgba(255,255,255,0.18),
    inset 1px 0 0 rgba(255,255,255,0.22),
    inset -1px 0 0 rgba(255,255,255,0.22),
    inset 0 0 40px 16px rgba(255,255,255,0.40);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(calc(100% + 20px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}
#synapse-panel.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
/* Synapse floating annotations on deck slides */
.synapse-note {
  position: absolute;
  z-index: 20;
  max-width: 200px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(0,0,0,0.6);
  animation: synNoteIn 0.45s ease both;
  pointer-events: none;
}
/* positions set dynamically in JS */
.sn-dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: #34C759;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.sn-text { vertical-align: middle; }
.synapse-note-answer {
  max-width: 220px;
  font-size: 12.5px;
  background: rgba(255,255,255,0.75);
}
@keyframes synNoteIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.deck-synapse-ask {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}
.deck-synapse-ask input {
  width: 200px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  outline: none;
}
.deck-synapse-ask input:focus { border-color: #34C759; }
.deck-synapse-send {
  width: 28px; height: 28px;
  border-radius: 7px;
  border: none;
  background: #34C759;
  color: white;
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#synapse-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65) 30%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0.65) 70%, transparent);
}
.synapse-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.18);
}
.synapse-close svg { width: 14px; height: 14px; }
.synapse-close:hover { background: rgba(255,255,255,0.40); color: var(--text-2); }

#synapse-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  z-index: 5999;
  background: linear-gradient(135deg, rgba(52,199,89,0.65), rgba(48,209,88,0.72));
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 8px 32px rgba(52,199,89,0.30),
    0 2px 8px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 0 8px 3px rgba(255,255,255,0.20);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
#synapse-fab svg { width: 22px; height: 22px; }
#synapse-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 12px 40px rgba(52,199,89,0.40),
    0 4px 12px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 0 10px 4px rgba(255,255,255,0.28);
}

#side-header { padding: 14px 18px; border-bottom: none; box-shadow: 0 1px 0 rgba(0,0,0,0.02); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.side-indicator { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #34C759, #30D158); box-shadow: 0 0 10px rgba(52,199,89,0.4); animation: indicatorPulse 3s ease-in-out infinite; }
@keyframes indicatorPulse { 0%, 100% { box-shadow: 0 0 8px rgba(52,199,89,0.35); } 50% { box-shadow: 0 0 14px rgba(52,199,89,0.55); } }
.side-title { font-size: 13px; font-weight: 700; letter-spacing: -0.2px; color: var(--text); }
.side-tag { font-size: 9px; color: rgba(0,122,255,0.85); margin-left: auto; font-weight: 600; letter-spacing: 0.2px; background: rgba(0,122,255,0.06); padding: 3px 9px; border-radius: 6px; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(0,122,255,0.10); }
#side-messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg {
  padding: 13px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: -0.1px;
  border: 1px solid rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.30);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow:
    0 2px 10px rgba(0,0,0,0.02),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 0 12px 5px rgba(255,255,255,0.28);
  position: relative;
}
/* Warn — subtle amber glass */
.msg.msg-warn {
  background: linear-gradient(145deg, rgba(255,45,85,0.06), rgba(255,255,255,0.30));
  border-color: rgba(255,45,85,0.14);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 12px 5px rgba(255,255,255,0.28);
}
/* Error — soft rose glass */
.msg.msg-err {
  background: linear-gradient(145deg, rgba(255,59,48,0.06), rgba(255,255,255,0.30));
  border-color: rgba(255,59,48,0.14);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 12px 5px rgba(255,255,255,0.28);
}
/* User — blue glass, right-aligned */
.msg.msg-user {
  background: linear-gradient(145deg, rgba(0,122,255,0.08), rgba(255,255,255,0.32));
  border-color: rgba(0,122,255,0.14);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 12px 5px rgba(255,255,255,0.28);
  margin-left: 20px;
  border-radius: 16px 16px 4px 16px;
}
/* System — teal glass */
.msg.msg-sys {
  background: linear-gradient(145deg, rgba(0,199,190,0.07), rgba(255,255,255,0.30));
  border-color: rgba(0,199,190,0.14);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 12px 5px rgba(255,255,255,0.28);
}
/* Suggestion — green glass */
.msg.msg-suggest {
  background: linear-gradient(145deg, rgba(52,199,89,0.07), rgba(255,255,255,0.30));
  border-color: rgba(52,199,89,0.14);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 12px 5px rgba(255,255,255,0.28);
}
.msg-label { font-size: 10px; font-weight: 600; text-transform: none; letter-spacing: -0.1px; margin-bottom: 3px; }
.msg .msg-label { color: var(--text-3); }
.msg.msg-user .msg-label { color: #007AFF; }
.msg.msg-sys .msg-label  { color: #00C7BE; }
.msg.msg-suggest .msg-label { color: #34C759; }
.msg.msg-warn .msg-label { color: #FF2D55; }
.msg.msg-err .msg-label { color: #FF3B30; }
.msg b { font-weight: 600; }
.msg-actions { display: flex; gap: 8px; margin-top: 10px; }
.msg-inline-btn { padding: 6px 12px; border-radius: 10px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,0.28); border: 1px solid rgba(255,255,255,0.25); color: var(--text-2); cursor: pointer; transition: all 0.2s; backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: inset 0 1px 0 rgba(255,255,255,0.50), inset 0 0 8px 3px rgba(255,255,255,0.22); }
.msg-inline-btn:hover { background: rgba(255,255,255,0.52); color: var(--text); box-shadow: 0 4px 14px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.60); transform: translateY(-1px); }
.msg-inline-btn.primary { background: rgba(52,199,89,0.12); color: var(--green-ink); border-color: rgba(52,199,89,0.14); box-shadow: inset 0 1px 0 rgba(255,255,255,0.40); }
.msg-inline-btn.primary:hover { background: rgba(52,199,89,0.22); }
.msg.stack-hidden { display: none; }
.msg.stack-faded { opacity: 0.45; }
.msg-stack-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 7px 12px; border-radius: 10px; font-size: 11px; background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.22); color: var(--text-3); cursor: pointer; transition: all 0.2s; backdrop-filter: blur(20px) saturate(1.6); box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 0 8px 3px rgba(255,255,255,0.20); }
.msg-stack-toggle:hover { background: rgba(255,255,255,0.42); color: var(--text-2); }
.msg-stack-toggle strong { color: var(--green); font-size: 11px; font-weight: 600; }

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  width: fit-content;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.4;
  animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Message entrance animation */
.msg { animation: msgFadeIn 0.3s ease-out; }
@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

#side-quick { padding: 8px 16px; border-top: none; box-shadow: 0 -1px 0 rgba(0,0,0,0.015); display: flex; flex-wrap: wrap; gap: 6px; }
.sq-btn { padding: 7px 13px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.26); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); font-size: 11px; font-weight: 600; color: var(--text-2); transition: all 0.2s; box-shadow: inset 0 1px 0 rgba(255,255,255,0.50), inset 0 0 8px 3px rgba(255,255,255,0.22); }
.sq-btn:hover { color: var(--green-ink); background: rgba(52,199,89,0.10); box-shadow: 0 4px 14px rgba(52,199,89,0.06), inset 0 1px 0 rgba(255,255,255,0.55); transform: translateY(-1px); }
#side-input-area { padding: 10px 16px 16px; border-top: none; box-shadow: 0 -1px 0 rgba(0,0,0,0.015); }
.side-input-wrap { display: flex; gap: 10px; padding: 11px 14px; border-radius: 14px; background: rgba(255,255,255,0.30); border: 1.5px solid rgba(255,255,255,0.32); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8); transition: all 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.50), inset 0 0 10px 4px rgba(255,255,255,0.28); }
.side-input-wrap:focus-within { border-color: rgba(52,199,89,0.25); box-shadow: 0 0 0 4px rgba(52,199,89,0.06), inset 0 1px 0 rgba(255,255,255,0.60), inset 0 0 12px 5px rgba(255,255,255,0.35); }
#side-input { flex: 1; border: none; outline: none; background: none; font-size: 13px; color: var(--text); letter-spacing: -0.1px; }
#side-input::placeholder { color: var(--text-3); font-weight: 400; }
.side-input-wrap button { color: var(--green); display: flex; align-items: center; padding: 4px; border-radius: 8px; transition: all 0.2s; }
.side-input-wrap button:hover { transform: scale(1.08); background: rgba(52,199,89,0.08); }
.side-input-wrap button svg { width: 16px; height: 16px; }

/* ═══ SYNAPSE NOTIFICATIONS (macOS toast style) ═══ */
#synapse-notifications {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 6500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.synapse-toast {
  width: 280px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(20,24,32,0.88) 0%, rgba(15,18,28,0.92) 100%);
  backdrop-filter: blur(40px) saturate(2.0);
  -webkit-backdrop-filter: blur(40px) saturate(2.0);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28), 0 6px 16px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.90);
  cursor: pointer;
  pointer-events: auto;
  transform: translateX(calc(100% + 20px));
  opacity: 0;
  animation: toastSlideIn 0.35s cubic-bezier(0.4,0,0.2,1) forwards;
  position: relative;
  overflow: hidden;
}
.synapse-toast.dismissing {
  animation: toastSlideOut 0.3s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes toastSlideIn {
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
  to { transform: translateX(calc(100% + 20px)); opacity: 0; }
}
.toast-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}
.toast-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 8px rgba(52,199,89,0.60);
  flex-shrink: 0;
}
.toast-title {
  font-size: 12px;
  font-weight: 700;
  flex: 1;
}
.toast-dismiss {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.toast-dismiss:hover { color: rgba(255,255,255,0.70); background: rgba(255,255,255,0.12); }
.toast-dismiss svg { width: 10px; height: 10px; }
.toast-body {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,0.60);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0;
}
.synapse-toast:hover .toast-body {
  max-height: 100px;
  opacity: 1;
  margin-top: 6px;
}
.toast-countdown {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #34C759, #00C7BE);
  border-radius: 0 0 0 16px;
  animation: toastCountdown 10s linear forwards;
}
@keyframes toastCountdown {
  from { width: 100%; }
  to { width: 0%; }
}

/* ═══ MODALS ═══ */
.modal-bg { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; background: rgba(248,252,255,0.22); backdrop-filter: blur(10px) saturate(1.08); -webkit-backdrop-filter: blur(10px) saturate(1.08); animation: fadeInSoft 0.15s ease; }
.modal-card { max-width: 500px; width: 92%; padding: 26px; border-radius: var(--radius-xl); background: linear-gradient(155deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.48) 40%, rgba(255,255,255,0.62) 100%); backdrop-filter: blur(54px) saturate(2.2) brightness(1.12); -webkit-backdrop-filter: blur(54px) saturate(2.2) brightness(1.12); border: 1.5px solid rgba(255,255,255,0.72); box-shadow: 0 28px 80px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.05), inset 0 1.5px 0 rgba(255,255,255,0.90), inset 0 -1px 0 rgba(255,255,255,0.30), inset 1px 0 0 rgba(255,255,255,0.25), inset -1px 0 0 rgba(255,255,255,0.25), inset 0 0 48px 20px rgba(255,255,255,0.45); animation: slideUp 0.25s ease; max-height: 85vh; overflow-y: auto; }
.modal-wide { max-width: 580px; }

/* ═══ COMMAND PALETTE ═══ */
#cmd-palette {
  z-index: 7500;
  align-items: flex-start;
  padding-top: 18vh;
}
.cmd-card {
  width: min(560px, 90vw);
  max-height: 420px;
  border-radius: 18px;
  background: rgba(255,255,255,0.30);
  backdrop-filter: blur(24px) saturate(1.7);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  border: 1px solid rgba(255,255,255,0.32);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.12),
    0 4px 16px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 0 14px 7px rgba(255,255,255,0.50);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.2s ease;
}
.cmd-search-wrap {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cmd-search-wrap svg { width: 16px; height: 16px; opacity: 0.4; flex-shrink: 0; stroke: currentColor; fill: none; }
#cmd-input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
}
#cmd-input::placeholder { color: var(--text-3); }
.cmd-search-wrap kbd { font-size: 10px; color: var(--text-3); font-family: var(--mono); background: rgba(255,255,255,0.22); padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.20); box-shadow: inset 0 1px 0 rgba(255,255,255,0.30); }
#cmd-results {
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
}
.cmd-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.1s;
  font-size: 13px;
  color: var(--text);
}
.cmd-result:hover, .cmd-result.active { background: rgba(52,199,89,0.10); }
.cmd-result-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.30);
  border: 1px solid rgba(255,255,255,0.20);
  flex-shrink: 0;
  font-size: 13px;
}
.cmd-result-icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
.cmd-result-main { flex: 1; min-width: 0; }
.cmd-result-name { font-weight: 500; }
.cmd-result-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.cmd-result-type {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-3);
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255,255,255,0.25);
}
.cmd-empty {
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

/* ═══ DASHBOARD ═══ */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 14px;
  width: 100%;
}
.dash-card {
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.65);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s ease;
}
.dash-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.70) 40%, rgba(255,255,255,0.80) 50%, rgba(255,255,255,0.70) 60%, transparent 90%);
  pointer-events: none;
  z-index: 2;
}
.dash-card > * { position: relative; z-index: 1; }
.dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.70);
}
.dash-card-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dash-card-title .dot { width: 7px; height: 7px; box-shadow: 0 0 6px currentColor; }
.dash-span-2 { grid-column: span 2; }
.dash-span-3 { grid-column: span 3; }
.dash-card.dash-overflow-visible { overflow: visible; }

/* Pipeline strip */
.pipeline-strip {
  display: flex;
  gap: 8px;
}
.pipeline-stage {
  flex: 1;
  padding: 14px 14px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.50);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.60);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.pipeline-stage::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.70) 40%, rgba(255,255,255,0.80) 50%, rgba(255,255,255,0.70) 60%, transparent 90%);
}
.pipeline-stage > * { position: relative; z-index: 1; }
.pipeline-stage:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.65);
}
.pipeline-stage-name { font-size: 11.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.pipeline-stage-count {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-top: 6px;
  position: relative;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}
.pipeline-stage-count.ps-red {
  background-image: linear-gradient(
    180deg,
    rgba(255,80,70,0.85) 0%,
    rgba(255,59,48,1.0) 40%,
    rgba(200,30,20,0.95) 100%
  );
  filter: drop-shadow(0 2px 4px rgba(255,59,48,0.35)) drop-shadow(0 6px 16px rgba(255,59,48,0.25));
}
.pipeline-stage-count.ps-amber {
  background-image: linear-gradient(
    180deg,
    rgba(255,160,50,0.85) 0%,
    rgba(255,120,0,1.0) 40%,
    rgba(220,80,0,0.95) 100%
  );
  filter: drop-shadow(0 2px 4px rgba(255,120,0,0.35)) drop-shadow(0 6px 16px rgba(255,120,0,0.25));
}
.pipeline-stage-count.ps-green {
  background-image: linear-gradient(
    180deg,
    rgba(80,210,110,0.85) 0%,
    rgba(52,199,89,1.0) 40%,
    rgba(30,160,60,0.95) 100%
  );
  filter: drop-shadow(0 2px 4px rgba(52,199,89,0.35)) drop-shadow(0 6px 16px rgba(52,199,89,0.25));
}
.pipeline-stage-count.ps-blue {
  background-image: linear-gradient(
    180deg,
    rgba(60,150,255,0.85) 0%,
    rgba(0,122,255,1.0) 40%,
    rgba(0,80,200,0.95) 100%
  );
  filter: drop-shadow(0 2px 4px rgba(0,122,255,0.35)) drop-shadow(0 6px 16px rgba(0,122,255,0.25));
}

/* Quick actions grid */
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  max-height: none;
  overflow: visible;
}
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 8px 10px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.55);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s ease, background 0.2s ease;
  text-align: center;
}
.quick-action-btn > * { position: relative; z-index: 1; }
.quick-action-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.58);
  box-shadow: 0 4px 14px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.65);
}
.quick-action-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; fill: none; }
.quick-action-btn span { font-size: 10px; font-weight: 600; color: var(--text-2); }
.qa-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg, rgba(52,199,89,0.10));
  color: var(--icon-color, var(--green));
}
.qa-icon svg { width: 16px; height: 16px; }

/* Dashboard feed compact */
.dash-feed-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.025);
  cursor: pointer;
  transition: background 0.1s;
  font-size: 12px;
}
.dash-feed-item:last-child { border-bottom: none; }
.dash-feed-item:hover { background: rgba(52,199,89,0.04); }

/* Alert/hold items */
.dash-alert-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.025);
  font-size: 11px;
  cursor: pointer;
}
.dash-alert-item:last-child { border-bottom: none; }
.dash-alert-item:hover { background: rgba(255,59,48,0.04); }

/* Fax center */
.fax-counts { display: flex; gap: 12px; margin-bottom: 8px; }
.fax-count-item { text-align: center; flex: 1; }
.fax-count-num { font-size: 18px; font-weight: 800; line-height: 1; }
.fax-count-label { font-size: 9px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }

/* Inbound fax items */
.fax-inbound-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.025);
  transition: background 0.15s;
}
.fax-inbound-item:last-child { border-bottom: none; }
.fax-inbound-item:hover { background: rgba(52,199,89,0.03); border-radius: 8px; margin: 0 -6px; padding-left: 6px; padding-right: 6px; }
.fax-inbound-status {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fax-inbound-status.fax-pending {
  background: rgba(255,45,85,0.12);
  color: var(--amber);
}
.fax-inbound-status.fax-received {
  background: rgba(52,199,89,0.12);
  color: var(--green);
}

/* Fax tab switcher */
.fax-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fax-tab:hover { background: rgba(0,0,0,0.03); }
.fax-tab-active {
  background: rgba(255,255,255,0.60);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.fax-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(0,0,0,0.05);
  color: var(--text-3);
}
.fax-tab-active .fax-tab-count {
  background: rgba(52,199,89,0.12);
  color: var(--green);
}
.fax-tab-panel { min-height: 0; }

/* System status widget */
.sys-status-grid { display: flex; flex-direction: column; gap: 2px; }
.sys-status-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 6px;
  border-radius: 8px;
  transition: background 0.15s;
  min-width: 0;
}
.sys-status-item:hover { background: rgba(0,0,0,0.02); }
.sys-status-copy {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}
.sys-status-name {
  font-weight: 600;
  font-size: 11px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}
.sys-status-meta {
  font-size: 10px;
  line-height: 1.2;
  color: var(--text-3);
  white-space: normal;
  overflow-wrap: anywhere;
}
.sys-status-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sys-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

/* Schedule items */
.schedule-item {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.02);
  font-size: 11px;
}
.schedule-item:last-child { border-bottom: none; }
.schedule-time { font-family: var(--mono); font-size: 10px; color: var(--text-3); min-width: 55px; }
.schedule-type-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

/* KPI grid */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kpi-item {
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.30);
}
.kpi-val { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; }
.kpi-label { font-size: 9px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }

/* Inventory alert items */
.inv-alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.025);
  font-size: 11px;
}
.inv-alert-item:last-child { border-bottom: none; padding-bottom: 2px; }

/* Revenue bar (keep for modal) */
.revenue-bar {
  padding: 18px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(95deg, rgba(52,199,89,0.05) 0%, rgba(255,255,255,0.26) 38%, rgba(0,122,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.03),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 0 10px 4px rgba(255,255,255,0.30);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
.revenue-bar::before { content: none; }
.revenue-bar::after { content: none; }
.revenue-click { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.revenue-click:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04); }
.rev-label { font-size: 9.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.rev-val { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.rev-change {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-ink);
  margin-left: 8px;
  background: rgba(52,199,89,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30);
}
.rev-cols { display: flex; gap: 28px; }
.rev-col { text-align: right; }
.rev-col-label { font-size: 9.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.6px; }
.rev-col-val { font-size: 15px; font-weight: 600; margin-top: 2px; }

.kpi-badge-positive {
  background: rgba(52,199,89,0.10);
  color: #275f08;
  border: 1px solid rgba(255,255,255,0.20);
  font-weight: 800;
  letter-spacing: 0.45px;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30);
}

.dashboard-feed {
  background: rgba(255,255,255,0.24);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.03),
    inset 0 1px 0 rgba(255,255,255,0.40),
    inset 0 0 10px 4px rgba(255,255,255,0.25);
}
.dashboard-feed .trow { border-bottom-color: rgba(0,0,0,0.02); }
.dashboard-feed .trow:nth-child(odd) { background: rgba(255,255,255,0.12); }
.dashboard-feed .trow:nth-child(even) { background: transparent; }
.dashboard-feed .trow:hover { background: rgba(52,199,89,0.06); }

/* Table rows */
.trow { display: grid; padding: 12px 18px; border-bottom: 1px solid rgba(0,0,0,0.025); transition: background 0.18s ease, transform 0.18s ease; align-items: center; }
.trow:last-child { border-bottom: none; }
.trow:hover { background: rgba(255,255,255,0.45); }
.trow.click { cursor: pointer; }
.trow.click:hover { background: rgba(52,199,89,0.06); transform: translateX(2px); }
.thead { display: grid; padding: 10px 18px; background: rgba(255,255,255,0.28); border-bottom: none; backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 rgba(0,0,0,0.02), inset 0 0 6px 2px rgba(255,255,255,0.18); border-radius: var(--radius) var(--radius) 0 0; }
.thead span { font-size: 9.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 1.2px; }
.q-avatar { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, rgba(52,199,89,0.12), rgba(0,199,190,0.10)); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(52,199,89,0.15); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--green-ink); flex-shrink: 0; box-shadow: inset 0 0 4px 1px rgba(255,255,255,0.18); transition: transform 0.18s ease; }
.trow.click:hover .q-avatar { transform: scale(1.06); }

/* ═══ PATIENT ═══ */

/* Patient action buttons */
.patient-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.patient-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.40);
}
.patient-action-btn:hover {
  background: rgba(255,255,255,0.38);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.50);
}
.patient-action-btn svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; }
.patient-action-btn.accent { background: rgba(52,199,89,0.12); color: var(--green-ink); border-color: rgba(52,199,89,0.18); }
.patient-action-btn.accent:hover { background: rgba(52,199,89,0.22); }

/* Patient info row (DOB, phone, allergies) */
.patient-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-3);
}
.patient-info-item { display: flex; align-items: center; gap: 4px; }
.patient-info-item svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.8; fill: none; opacity: 0.6; }
.allergy-tag {
  display: inline-flex;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255,59,48,0.08);
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
  border: 1px solid rgba(255,59,48,0.12);
}

/* Tab bar */
.patient-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.35);
}
.patient-tab {
  flex: 1;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: transparent;
}
.patient-tab:hover { color: var(--text); background: rgba(255,255,255,0.15); }
.patient-tab.active {
  background: rgba(255,255,255,0.50);
  color: var(--text);
  box-shadow: 0 1px 5px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.60);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.patient-tab-content { animation: fadeSlideIn 0.25s ease; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Rx History table */
.rx-history-table { width: 100%; border-collapse: collapse; }
.rx-history-table thead th {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 10px;
  text-align: left;
  background: rgba(255,255,255,0.18);
}
.rx-history-table thead th:first-child { border-radius: 8px 0 0 8px; }
.rx-history-table thead th:last-child { border-radius: 0 8px 8px 0; }
.rx-history-table tbody td {
  font-size: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.02);
}
.rx-history-table tbody tr:hover { background: rgba(52,199,89,0.04); }
.rx-status {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
}
.rx-status.dispensed { background: rgba(52,199,89,0.08); color: var(--green-ink); }
.rx-status.pending { background: rgba(255,45,85,0.08); color: #995a00; }

/* Fax items in patient profile */
.patient-fax-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.22);
  transition: all 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.35);
}
.patient-fax-item:hover { background: rgba(255,255,255,0.35); }
.fax-dir-badge {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.fax-dir-badge.in { background: rgba(0,122,255,0.08); color: #007AFF; }
.fax-dir-badge.out { background: rgba(52,199,89,0.08); color: var(--green-ink); }
.fax-status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}

/* Clinical notes timeline */
.clinical-note-item {
  position: relative;
  padding: 12px 16px 12px 28px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 1px 4px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.35);
}
.clinical-note-item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.clinical-note-meta {
  font-size: 10px;
  color: var(--text-3);
  margin-bottom: 4px;
  font-weight: 600;
}
.clinical-note-text {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-2);
}

.med-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 6px; background: rgba(255,255,255,0.24); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border: 1px solid rgba(255,255,255,0.25); transition: all 0.3s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 2px 8px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 0 8px 3px rgba(255,255,255,0.22); }
.med-item:last-child { margin-bottom: 0; }
.med-item.med-pending { background: rgba(240,200,90,0.06); border-color: rgba(240,200,90,0.1); }
.med-item.med-filled  { background: rgba(74,232,160,0.06); border-color: rgba(74,232,160,0.1); }
.med-item.med-locked  { opacity: 0.3; }
.med-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.med-name { font-size: 13px; font-weight: 500; flex: 1; }
.med-detail { font-size: 11px; color: var(--text-3); }
.med-actions { display: flex; gap: 4px; margin-left: 6px; }
#priv-overlay { position: absolute; inset: 0; z-index: 5; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 12px; background: rgba(255,255,255,0.72); backdrop-filter: blur(40px) saturate(2.0); -webkit-backdrop-filter: blur(40px) saturate(2.0); border-radius: inherit; }
#priv-overlay.show { display: flex; }
#priv-text { font-size: 13px; font-weight: 600; color: var(--text); font-family: var(--sans); letter-spacing: -0.2px; }
.priv-bar { width: 120px; height: 4px; border-radius: 999px; background: rgba(166,181,204,0.18); overflow: hidden; display: none; }
.priv-bar.show { display: block; }
.priv-fill { height: 100%; border-radius: 999px; width: 0%; background: linear-gradient(90deg, #34C759, #30D158 58%, #00C7BE); transition: width 1s cubic-bezier(0.4,0,0.2,1), background 0.4s; }
.priv-fill.go { width: 100%; }
.priv-fill.done { width: 100%; }
.priv-result { font-size: 12px; font-weight: 600; color: var(--green); display: none; }
.priv-result.show { display: block; }

/* ═══ RX MODAL ═══ */
.rx-field { margin-bottom: 14px; }
.rx-label { display: block; font-size: 11px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.rx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.rx-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 110px; padding: 20px; border: 1.5px dashed rgba(255,255,255,0.35); border-radius: var(--radius); background: rgba(255,255,255,0.20); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; margin-bottom: 12px; box-shadow: inset 0 0 8px 3px rgba(255,255,255,0.18); }
.rx-upload:hover, .rx-upload.drag { border-color: rgba(52,199,89,0.25); background: rgba(52,199,89,0.06); }
.rx-upload-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.rx-upload-sub { font-size: 11px; color: var(--text-2); margin-bottom: 10px; }
.rx-upload-chip { display: inline-flex; padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; color: var(--green-ink); background: rgba(52,199,89,0.08); border: 1px solid rgba(255,255,255,0.20); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.30); }
.rx-scan-paper { border-radius: 12px; border: 1px solid rgba(255,255,255,0.30); background: rgba(255,255,255,0.28); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); color: var(--text); min-height: 180px; padding: 16px; margin-bottom: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.50), inset 0 0 10px 4px rgba(255,255,255,0.22); }
.rx-scan-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.1px; color: var(--text-2); }
.rx-scan-line { font-family: var(--mono); font-size: 11.5px; margin-bottom: 5px; color: var(--text-2); }
.rx-scan-muted { opacity: 0.7; }
.rx-analysis { margin-top: 18px; padding: 20px; border-radius: 16px; background: rgba(255,255,255,0.38); backdrop-filter: blur(40px) saturate(2.0); -webkit-backdrop-filter: blur(40px) saturate(2.0); border: 1.5px solid rgba(255,255,255,0.55); box-shadow: 0 8px 32px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.65), inset 0 0 14px 6px rgba(255,255,255,0.35); }
.rx-analysis-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.2px; }
.rx-analysis-title .spinner { flex-shrink: 0; }
.rx-progress { width: 100%; height: 4px; border-radius: 999px; background: rgba(166,181,204,0.18); overflow: hidden; margin-bottom: 10px; }
.rx-progress-fill { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #34C759, #30D158 58%, #00C7BE); transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }
.rx-progress-meta { font-size: 11px; color: var(--text-3); margin-bottom: 14px; font-weight: 500; letter-spacing: -0.1px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(52,199,89,0.18); border-top-color: var(--green); border-radius: 50%; animation: spin 0.9s cubic-bezier(0.4,0,0.6,1) infinite; }
.rx-step { display: flex; align-items: flex-start; gap: 12px; padding: 8px 12px; margin-bottom: 4px; font-size: 12.5px; line-height: 1.6; animation: rxStepIn 0.3s cubic-bezier(0.22,0.61,0.36,1) both; border-radius: 10px; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@keyframes rxStepIn { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.rx-icon { width: 22px; height: 22px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; margin-top: 1px; font-weight: 700; }
.rx-icon.ok { background: rgba(52,199,89,0.12); color: var(--green); }
.rx-icon.warn { background: rgba(255,45,85,0.12); color: var(--yellow); }
.rx-icon.err { background: rgba(255,59,48,0.12); color: var(--red); }
.rx-icon.info { background: rgba(0,122,255,0.12); color: var(--blue); }
.rx-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.rx-note { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.30); background: rgba(255,255,255,0.22); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); font-size: 12.5px; line-height: 1.55; box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 0 8px 3px rgba(255,255,255,0.20); }
.scenario-grid { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* FAX */
.fax-preview { margin-top: 14px; padding: 14px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.24); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); font-size: 12px; line-height: 1.6; font-family: var(--mono); box-shadow: 0 2px 8px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.40), inset 0 0 8px 3px rgba(255,255,255,0.22); }

/* ═══ HARDWARE ═══ */
.hw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.hw-card { padding: 22px; position: relative; overflow: hidden; }
.hw-card::before { content: none; }
.hw-label { font-size: 9.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 14px; }
.hw-big { font-size: 44px; font-weight: 800; line-height: 1; text-align: center; margin-bottom: 3px; letter-spacing: -1px; }
.hw-big-sub { font-size: 11px; color: var(--text-3); text-align: center; margin-bottom: 12px; }
.progress-bar { height: 6px; border-radius: 3px; background: rgba(166,181,204,0.36); overflow: hidden; margin: 10px 0; }
.progress-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.hw-stats { display: flex; justify-content: space-between; font-size: 11px; }
.hw-row { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.025); }
.hw-row:last-child { border-bottom: none; }

/* ═══ SETTINGS ═══ */
.settings-group { margin-bottom: 26px; }
.settings-group-title { font-size: 13px; font-weight: 600; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(0,0,0,0.03); }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.025); }
.setting-row:last-child { border-bottom: none; }
.setting-info { flex: 1; }
.setting-name { font-size: 13px; font-weight: 500; }
.setting-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.toggle { width: 40px; height: 24px; border-radius: 12px; background: rgba(166,181,204,0.25); position: relative; cursor: pointer; transition: all 0.25s; border: none; padding: 0; flex-shrink: 0; margin-left: 14px; }
.toggle.on { background: linear-gradient(135deg, rgba(52,199,89,0.85), rgba(48,209,88,0.80)); box-shadow: 0 2px 10px rgba(52,199,89,0.25); }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25); transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.toggle.on::after { transform: translateX(16px); }

/* ═══ INVENTORY ═══ */
.inv-cols { grid-template-columns: 2fr 1.1fr 0.7fr 0.7fr 80px; }
/* (old collapse classes removed — nav is hover-expand, AI is floating panel) */
.inv-profile { padding: 16px 18px; margin-bottom: 12px; }
.inv-kroll-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: start; }
.inv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.inv-kroll-meta { border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.24); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-radius: var(--radius-sm); padding: 8px 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.40), inset 0 0 8px 3px rgba(255,255,255,0.22); }
.inv-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.025); }
.inv-meta-row:last-child { border-bottom: none; }
.inv-meta-row span { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.4px; }
.inv-meta-row b { font-size: 11px; color: var(--text); }
.inv-title { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.inv-sub { font-size: 11px; color: var(--text-3); }
.inv-body { font-size: 12px; line-height: 1.55; color: var(--text-2); }
.inv-conflicts { margin-top: 10px; display: grid; gap: 6px; }
.inv-conflict-row { font-size: 11px; line-height: 1.5; border: 1px solid rgba(255,123,138,0.1); background: var(--red-dim); color: rgba(255,180,180,0.85); border-radius: 8px; padding: 7px 10px; }
.trow.inv-active { background: rgba(52,199,89,0.08); border-left: 3px solid var(--green); }
.inv-row { cursor: pointer; transition: background 0.18s ease; }
.inv-row:hover { background: rgba(52,199,89,0.05); }

.queue-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12px;
  border: 1px solid transparent;
}
.queue-count.action { color: #fff; background: linear-gradient(135deg, #ff5b51, #ff3b30); border-color: rgba(255,59,48,0.4); box-shadow: 0 2px 8px rgba(255,59,48,0.28); }
.queue-count.progress { color: #463600; background: linear-gradient(135deg, #ffe27a, #ffd43b); border-color: rgba(255,212,59,0.4); box-shadow: 0 2px 8px rgba(255,212,59,0.26); }
.queue-count.ready { color: #004f25; background: linear-gradient(135deg, #86ffb6, #50ff92); border-color: rgba(80,255,146,0.4); box-shadow: 0 2px 8px rgba(80,255,146,0.26); }
.queue-count.locked { color: #fff; background: linear-gradient(135deg, #ff5b51, #ff3b30); border-color: rgba(255,59,48,0.4); box-shadow: 0 2px 8px rgba(255,59,48,0.26); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1180px) {
  #deck-stage { padding: 14px 14px 12px; }
  .deck-slide { width: calc(100vw - 28px); min-height: calc(100vh - 132px); padding: 16px; }
  .deck-layout-concept .deck-concept-grid { grid-template-columns: 1fr; }
  .deck-board { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-card.board-hero p { max-width: 100%; }
  .deck-diagram-notes { grid-template-columns: 1fr; }
  .deck-scenario-grid { grid-template-columns: 1fr; }
  /* New layouts — 1180px */
  .split-grid { gap: 14px; }
  .split-panel { padding: 18px; }
  .stats-row { gap: 12px; }
  .stat-value { font-size: clamp(28px, 5vw, 42px); }
  .timeline-track { gap: 10px; }
  .timeline-card { padding: 10px 12px; }
  .columns-grid { gap: 12px; }
  .column-card { padding: 16px; }
  .bigquote-text { font-size: clamp(26px, 4.5vw, 38px); padding: 0 10px; }
  #body { padding: 0; gap: 0; }
  #content { padding: 14px 16px 16px; }
  .inv-kroll-grid { grid-template-columns: 1fr; }
  #synapse-panel { width: 340px; }
}
@media (max-width: 980px) {
  .deck-topbar { height: 52px; min-height: 52px; }
  .deck-title { font-size: clamp(24px, 5.4vw, 34px); }
  .deck-sub { max-width: 100%; }
  .deck-layout-board .deck-sub { max-width: 100%; }
  .deck-board { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(84px, auto); }
  .deck-board .board-card { grid-column: span 2 !important; grid-row: span 1 !important; }
  .deck-board .board-card.board-hero { grid-column: span 4 !important; grid-row: span 2 !important; }
  .tier-grid { grid-template-columns: 1fr; }
  .diagram-synapse-arch { grid-template-columns: 1fr; gap: 10px; }
  .diagram-synapse-arch .synapse-arrow { display: none; }
  .diagram-synapse-arch .synapse-node { text-align: left; }
  .diagram-synapse-arch .synapse-tunnel { order: 3; }
  .diagram-synapse { grid-template-columns: 1fr; }
  .diagram-arrow { display: none; }
  /* New layouts — 980px */
  .split-grid { grid-template-columns: 1fr; gap: 12px; }
  .split-panel { padding: 16px; }
  .stats-row { flex-wrap: wrap; }
  .stat-card { min-width: calc(50% - 8px); flex: 1 1 calc(50% - 8px); }
  .stat-value { font-size: clamp(26px, 6vw, 36px); }
  .timeline-track { flex-direction: column; align-items: stretch; }
  .timeline-track::before { display: none; }
  .timeline-node { flex-direction: row; align-items: flex-start; gap: 12px; }
  .timeline-dot { flex-shrink: 0; }
  .timeline-card { text-align: left; }
  .columns-grid { grid-template-columns: 1fr 1fr; }
  .bigquote-text { font-size: clamp(22px, 5vw, 32px); }
  .fp-shell { min-height: 320px; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(12, 1fr); }
  .fp-divider { left: 10px; right: 10px; top: 35%; width: auto; height: 2px; bottom: auto; }
  .fp-divider span { top: -18px; left: 6px; }
  .fp-zone-a { grid-column: 1 / 7; grid-row: 1 / 3; }
  .fp-zone-b1 { grid-column: 1 / 4; grid-row: 3 / 5; }
  .fp-zone-b2 { grid-column: 4 / 7; grid-row: 3 / 5; }
  .fp-zone-w { grid-column: 1 / 7; grid-row: 5 / 7; }
  .fp-zone-c { grid-column: 1 / 5; grid-row: 7 / 13; }
  .fp-zone-d { grid-column: 5 / 7; grid-row: 7 / 13; }
  .fp-path-1 { left: 50%; top: 70px; width: 2px; height: 75px; transform: translateX(-1px); }
  .fp-path-2 { left: 50%; top: 145px; width: 120px; height: 2px; }
  .fp-path-3 { left: calc(50% + 118px); top: 145px; width: 2px; height: 96px; }
  .fp-arrow-1 { left: calc(50% + 112px); top: 137px; }
  .fp-arrow-2 { left: calc(50% + 112px); top: 230px; }
  .diagram-launch { flex-direction: column; align-items: stretch; }
  .launch-line { width: 2px; height: 16px; margin: 0 auto; }
  .deck-controls { justify-content: center; padding: 0 12px; }
  #login { padding: 10px; }
  .login-shell { grid-template-columns: 1fr; min-height: auto; }
  .login-panel-left { border-right: none; border-bottom: none; box-shadow: 0 1px 0 rgba(0,0,0,0.02); }
  .login-panel { padding: 28px 26px; }
  .login-hero-logo { width: 260px; height: 260px; top: -6px; left: 8px; }
  .login-left-copy { left: 8px; top: 194px; width: 260px; }
  .login-panel-right { padding: 28px 26px; }
  /* Nav stays as icon bar, no hover expand on narrow */
  #nav { pointer-events: auto; }
  #synapse-panel { width: 100%; right: 0; top: 0; bottom: 0; border-radius: 0; }
}
@media (max-width: 760px) {
  #deck-counter { display: none; }
  .deck-slide { width: calc(100vw - 20px); min-height: calc(100vh - 128px); padding: 14px; }
  .deck-sub { font-size: 14px; }
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
  .bar-row b { justify-self: end; }
  .diagram-workflow { flex-direction: column; align-items: stretch; }
  .diagram-workflow .diagram-arrow { display: none; }
  /* New layouts — 760px */
  .split-grid { grid-template-columns: 1fr; gap: 10px; }
  .split-panel { padding: 14px; }
  .split-point { font-size: 13px; padding: 5px 0; }
  .stats-row { flex-direction: column; align-items: stretch; }
  .stat-card { min-width: 100%; padding: 14px; }
  .stat-value { font-size: 28px; }
  .timeline-track { flex-direction: column; }
  .timeline-track::before { display: none; }
  .timeline-node { flex-direction: row; gap: 10px; }
  .timeline-card-title { font-size: 14px; }
  .timeline-card-desc { font-size: 12px; }
  .columns-grid { grid-template-columns: 1fr; gap: 10px; }
  .column-card { padding: 14px; }
  .column-card-title { font-size: 15px; }
  .column-point { font-size: 13px; }
  .bigquote-text { font-size: clamp(20px, 5.5vw, 28px); padding: 0 6px; }
  .bigquote-attr { font-size: 13px; }
  #app { padding: 0; gap: 0; }
  #content-header { padding: 10px 12px 6px; gap: 6px; }
  #content { padding: 12px; }
  .metric-grid { grid-template-columns: 1fr; }
  .cmd-card { width: 95vw; }
  .login-hero-logo { width: 210px; height: 210px; top: 0; left: 6px; }
  .login-left-copy { left: 6px; top: 156px; width: 210px; }
}

/* ═══ Launch Splash — "Developed and built by Immy" ═══ */
#launch-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.0);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
#launch-splash.splash-active {
  opacity: 1;
  pointer-events: auto;
}
#launch-splash.splash-fade-out {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.splash-text-line {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(13,27,42,0.82);
  text-shadow: 0 1px 0 rgba(255,255,255,0.62), 0 4px 18px rgba(13,27,42,0.10);
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(255,255,255,0.46);
  border-radius: 999px;
  padding: 6px 14px;
  opacity: 0;
  transform: translateY(12px);
  animation: splashTextIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.splash-text-name {
  font-size: clamp(44px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -1.5px;
  text-transform: none;
  margin-top: 8px;
  position: relative;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-image: linear-gradient(120deg, rgba(103,212,13,0.90) 0%, rgba(34,180,85,0.95) 42%, rgba(103,212,13,0.92) 100%);
  background-size: 220% 220%;
  animation: splashNameIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards,
             loginButtonFlow 3s ease-in-out 1.2s infinite;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
}
.splash-text-name::after {
  content: 'Immy';
  position: absolute;
  inset: 0;
  -webkit-text-fill-color: rgba(52,199,89,0.40);
  -webkit-background-clip: unset;
  background-clip: unset;
  background-image: none;
  filter: blur(14px);
  z-index: -1;
}

@keyframes splashTextIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes splashNameIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══ PATIENT CONNECT ═══ */
.pc-event-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.30);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 11px;
  transition: background 0.15s;
}
.pc-event-item:hover { background: rgba(255,255,255,0.45); }
.pc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  gap: 8px;
  text-align: center;
}
.pc-empty-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,122,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007AFF;
}
.pc-empty-icon svg { width: 18px; height: 18px; }
.pc-empty-text { font-size: 11px; color: var(--text-3); line-height: 1.4; }
.pc-gps-tracker {
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,122,255,0.06), rgba(52,199,89,0.06));
  border: 1px solid rgba(0,122,255,0.10);
  margin-bottom: 8px;
}
.pc-gps-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #007AFF; margin-bottom: 4px; }
.pc-gps-eta { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.pc-gps-patient { font-size: 11px; color: var(--text-3); }

/* ═══════════════════════════════════════════════════════
   EMERALD GLASS REDESIGN — Fresh visual identity v3
   Bright + bold + visible glassmorphism
   ═══════════════════════════════════════════════════════ */

/* ── DECK BG: transparent — let the mesh orbs show through ── */
#deck {
  background: transparent !important;
}
#deck::before {
  background: none !important;
  display: none !important;
}

/* ── FLOATING ORBS: disabled, mesh orbs do the work ── */
#deck-stage { position: relative; }
#deck-stage::after {
  display: none !important;
}

/* ── TOPBAR: frosted green-tinted glass ── */
.deck-topbar {
  background: rgba(255,255,255,0.55) !important;
  backdrop-filter: blur(40px) saturate(2.0) !important;
  -webkit-backdrop-filter: blur(40px) saturate(2.0) !important;
  border-bottom: 1px solid rgba(52,199,89,0.12) !important;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.03),
    inset 0 1px 0 rgba(255,255,255,0.80),
    inset 0 0 20px 8px rgba(255,255,255,0.20) !important;
}
.deck-topbar::after {
  background: linear-gradient(90deg, transparent, rgba(52,199,89,0.40), rgba(0,199,190,0.35), rgba(52,199,89,0.40), transparent) !important;
  height: 2px !important;
  opacity: 0.70 !important;
}

/* ── SLIDE CARD: real frosted glass against colored bg ── */
.deck-slide {
  background: rgba(255,255,255,0.62) !important;
  backdrop-filter: blur(40px) saturate(1.8) brightness(1.05) !important;
  -webkit-backdrop-filter: blur(40px) saturate(1.8) brightness(1.05) !important;
  border: 1.5px solid rgba(255,255,255,0.75) !important;
  border-radius: 28px !important;
  box-shadow:
    0 30px 90px rgba(0,60,30,0.10),
    0 10px 30px rgba(0,60,30,0.06),
    inset 0 2px 0 rgba(255,255,255,0.90),
    inset 0 0 40px 16px rgba(255,255,255,0.30) !important;
  background-image: none !important;
  background-size: auto !important;
}
/* Top accent: bold emerald gradient edge */
/* kill the top accent line — let the glass breathe */
.deck-slide::before {
  display: none !important;
}
/* kill the specular highlight — cleaner look */
.deck-slide::after {
  display: none !important;
  content: none !important;
}
/* slide-idx watermark: KILLED — was causing blue overlay */
.deck-slide[data-slide-idx]::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* ── SECTION DIVIDERS: dramatic, editorial — NO white card ── */
.deck-layout-section {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  padding: 0 clamp(32px, 5vw, 72px) clamp(48px, 7vh, 90px) !important;
  text-align: left !important;
}
/* kill the centered line */
.deck-layout-section .deck-section-line {
  display: none !important;
}
/* meta label on sections: subtle top-left */
.deck-layout-section .deck-section-meta {
  align-self: flex-start !important;
  margin-bottom: auto !important;
  padding-top: clamp(24px, 3vh, 40px) !important;
}
.deck-layout-section .deck-section-title {
  font-size: clamp(52px, 7.5vw, 96px) !important;
  letter-spacing: -4px !important;
  line-height: 1.08 !important;
  padding-bottom: 6px !important;
  overflow: visible !important;
  background-image: linear-gradient(180deg, #34C759 0%, color-mix(in srgb, #34C759 90%, black) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #34C759 !important;
  filter: none !important;
  font-weight: 900 !important;
  text-align: left !important;
  text-wrap: balance !important;
  margin-bottom: 16px !important;
}
.deck-layout-section .deck-section-sub {
  color: rgba(10,26,16,0.45) !important;
  font-size: clamp(15px, 1.8vw, 19px) !important;
  font-weight: 400 !important;
  max-width: 500px !important;
  text-align: left !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}
.deck-layout-section[data-slide-idx]::after { display: none !important; }
/* kill accent strip — no card = no edge for it */
.deck-layout-section::before {
  display: none !important;
}

/* ── BIGQUOTE: transparent, floating on orbs ── */
.deck-layout-bigquote {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: clamp(40px, 6vw, 90px) !important;
  position: relative !important;
}
.deck-layout-bigquote::after {
  content: '\201C' !important;
  position: absolute !important;
  top: clamp(8px, 2vh, 30px) !important;
  left: clamp(24px, 4vw, 64px) !important;
  font-size: clamp(180px, 22vw, 340px) !important;
  font-weight: 900 !important;
  line-height: 0.7 !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  color: rgba(52,199,89,0.12) !important;
  pointer-events: none !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: rgba(52,199,89,0.12) !important;
  z-index: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  opacity: 1 !important;
}
.bigquote-text {
  font-size: clamp(34px, 4.5vw, 58px) !important;
  font-weight: 800 !important;
  letter-spacing: -2px !important;
  line-height: 1.10 !important;
  background-image: linear-gradient(180deg, #34C759 0%, color-mix(in srgb, #34C759 90%, black) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #34C759 !important;
  filter: none !important;
  position: relative !important;
  z-index: 1 !important;
  text-wrap: balance !important;
}
.bigquote-attr {
  color: rgba(10,26,16,0.55) !important;
  font-size: 16px !important;
  letter-spacing: 3px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  position: relative !important;
  z-index: 1 !important;
  margin-top: 28px !important;
}
.deck-layout-bigquote[data-slide-idx]::after {
  content: '\201C' !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: rgba(52,199,89,0.12) !important;
  font-size: clamp(180px, 22vw, 340px) !important;
  font-family: Georgia, 'Times New Roman', serif !important;
}

/* ── TITLE: editorial, massive, tight ── */
.deck-title {
  font-size: clamp(34px, 4.8vw, 58px) !important;
  font-weight: 900 !important;
  letter-spacing: -2.5px !important;
  line-height: 0.92 !important;
  background-image: linear-gradient(90deg, #8ce840, #50d470, #34C759, #50d470, #8ce840) !important;
  background-size: 400% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #0a1a10 !important;
  animation: sectionTitleFlow 14s ease-in-out infinite !important;
  text-wrap: balance !important;
  margin-bottom: 6px !important;
}
/* kill the cheesy underline bar */
.deck-title::after {
  display: none !important;
}
.deck-sub {
  font-size: 16px !important;
  color: rgba(10,26,16,0.55) !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.5 !important;
  max-width: 620px !important;
}

/* ── META: stripped-back label, no pill ── */
.deck-meta {
  margin-bottom: 4px !important;
}
.deck-meta span:first-child {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  color: rgba(10,26,16,0.50) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
}
.deck-meta span:last-child {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  color: rgba(52,199,89,0.60) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 1px !important;
}
/* Section dividers — meta left-aligned, not centered */
.deck-layout-section .deck-meta-single {
  justify-content: flex-start !important;
}
.deck-layout-section .deck-meta span:first-child {
  color: rgba(10,26,16,0.45) !important;
  font-size: 14px !important;
  letter-spacing: 3px !important;
}

/* ── PROGRESS: barely-there thin line ── */
.deck-progress {
  height: 2px !important;
  background: rgba(10,26,16,0.06) !important;
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 16px !important;
}
.deck-progress i {
  background: rgba(52,199,89,0.45) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ── CORNER MARKS: kill them ── */
.slide-corner-tl {
  display: none !important;
}
.slide-corner-br {
  display: none !important;
  opacity: 0.35 !important;
}

/* ── BOARD CARDS: transparent — no glass ── */
.board-card {
  background: transparent !important;
  border: none !important;
  border-left: 5px solid var(--board-tone, #34C759) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
.board-value {
  background-image: linear-gradient(
    180deg,
    var(--board-tone, #34C759) 0%,
    color-mix(in srgb, var(--board-tone, #34C759) 90%, black) 100%
  ) !important;
  font-weight: 900 !important;
  letter-spacing: -2px !important;
  filter: none !important;
}
.board-eyebrow {
  font-size: 10px !important;
  letter-spacing: 2.5px !important;
  font-weight: 700 !important;
  color: rgba(10,26,16,0.40) !important;
}
.board-label {
  font-size: 13px !important;
  color: rgba(10,26,16,0.50) !important;
  font-weight: 400 !important;
}
/* board-hero: KILLED — see FP-19 */

/* ── COLUMN CARDS: gradient glass with emerald accents ── */
.column-card {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--col-tone, #34C759) 8%, rgba(255,255,255,0.72)) 0%,
      rgba(255,255,255,0.68) 40%,
      rgba(255,255,255,0.62) 100%) !important;
  border: none !important;
  backdrop-filter: blur(24px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.80),
    inset 0 10px 28px -8px color-mix(in srgb, var(--col-tone, #34C759) 10%, transparent),
    0 6px 28px rgba(0,40,20,0.07) !important;
  border-radius: 18px !important;
}
/* Column step badges: minimal monochrome with colored accent */
.column-step-badge {
  background: rgba(10,26,16,0.85) !important;
  border-radius: 8px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: rgba(255,255,255,0.90) !important;
  box-shadow: none !important;
}
/* Column card headers: tighter */
.column-card h3 {
  font-size: clamp(15px, 1.6vw, 18px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  color: #0a1a10 !important;
}
/* Column card top borders: use tone */
.column-card:nth-child(odd) { border: none !important; }
.column-card:nth-child(even) { border: none !important; }

/* ── SPLIT PANELS — GUTTED ── */
.split-panel {
  background: none !important;
  border: none !important;
  border-top: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-left: none !important;
}
/* Split panel titles: bigger, bolder */
.split-panel h3 {
  font-size: clamp(18px, 2.2vw, 24px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.8px !important;
  color: #0a1a10 !important;
}
/* Split icons: hide — let typography do the work */
.split-icon {
  display: none !important;
}
/* VS divider: minimal */
.split-vs-divider span {
  background: rgba(255,255,255,0.70) !important;
  border: 1.5px solid rgba(52,199,89,0.20) !important;
  color: rgba(52,199,89,0.60) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  width: 36px !important;
  height: 36px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}

/* ── SCENARIO CARDS: KILLED — see FP-13 for clean opaque design ── */
/* all scenario card styles moved to FP-13 block */

/* ── STAT CARDS: vivid colored glass ── */
.stat-card {
  backdrop-filter: blur(28px) saturate(2.0) !important;
  -webkit-backdrop-filter: blur(28px) saturate(2.0) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
}
.stat-card::before {
  border-color: rgba(52,199,89,0.10) !important;
  width: 150px !important;
  height: 150px !important;
}
.stat-card:nth-child(1) {
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(52,199,89,0.16) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.60), inset 0 -36px 70px -20px rgba(52,199,89,0.22), 0 6px 28px rgba(0,40,20,0.08) !important;
}
.stat-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(0,122,255,0.16) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.60), inset 0 -36px 70px -20px rgba(0,122,255,0.22), 0 6px 28px rgba(0,40,20,0.08) !important;
}
.stat-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,45,85,0.16) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.60), inset 0 -36px 70px -20px rgba(255,45,85,0.22), 0 6px 28px rgba(0,40,20,0.08) !important;
}
.stat-card:nth-child(4) {
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(175,82,222,0.16) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.60), inset 0 -36px 70px -20px rgba(175,82,222,0.22), 0 6px 28px rgba(0,40,20,0.08) !important;
}
.stat-value {
  font-size: clamp(44px, 5.5vw, 68px) !important;
  font-weight: 900 !important;
  letter-spacing: -3px !important;
  filter: none !important;
}
.stat-label {
  font-size: 12px !important;
  letter-spacing: 0.3px !important;
  font-weight: 500 !important;
  color: rgba(10,26,16,0.50) !important;
}

/* ── BULLETS: glass with colored left accent ── */
.deck-bullet {
  background: rgba(255,255,255,0.50) !important;
  backdrop-filter: blur(20px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
  border: 1px solid rgba(255,255,255,0.60) !important;
  border-left: 5px solid var(--bullet-color, #34C759) !important;
  border-radius: 14px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    inset 8px 0 20px -8px color-mix(in srgb, var(--bullet-color, #34C759) 8%, transparent),
    0 2px 8px rgba(0,40,20,0.04) !important;
}
.deck-bullet::before {
  box-shadow: 0 0 10px color-mix(in srgb, var(--bullet-color, #34C759) 40%, transparent) !important;
}

/* ── ASIDE: glass panel with visible tint ── */
.deck-concept-aside {
  background: rgba(255,255,255,0.40) !important;
  backdrop-filter: blur(20px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
  border: 1px solid rgba(255,255,255,0.60) !important;
  border-radius: 16px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.70),
    0 4px 16px rgba(0,40,20,0.05) !important;
}
.deck-aside-row {
  background: rgba(255,255,255,0.50) !important;
  border-color: rgba(52,199,89,0.15) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55) !important;
}
.deck-aside-head {
  color: #1a7a34 !important;
}

/* ── TIMELINE: bigger dots, thicker track ── */
.timeline-track::before {
  height: 4px !important;
  background: linear-gradient(90deg, #34C759 0%, #00C7BE 50%, #34C759 100%) !important;
  opacity: 0.40 !important;
}
.timeline-dot {
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important;
  border: 2.5px solid rgba(255,255,255,0.85) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.30) !important;
}
.timeline-card {
  background: rgba(255,255,255,0.55) !important;
  backdrop-filter: blur(22px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.6) !important;
  border: 1px solid rgba(255,255,255,0.65) !important;
  border-radius: 14px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 4px 16px rgba(0,40,20,0.06) !important;
}

/* ── DIAGRAM + NOTES: glass with depth ── */
.deck-note {
  background: rgba(255,255,255,0.45) !important;
  backdrop-filter: blur(18px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.6) !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 2px 10px rgba(0,40,20,0.04) !important;
}
.stats-note {
  background: rgba(255,255,255,0.45) !important;
  backdrop-filter: blur(18px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.6) !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 2px 10px rgba(0,40,20,0.04) !important;
}

/* ── CONTROLS BAR: minimal, barely there ── */
.deck-controls {
  background: rgba(255,255,255,0.40) !important;
  backdrop-filter: blur(40px) saturate(2.0) !important;
  -webkit-backdrop-filter: blur(40px) saturate(2.0) !important;
  border-top: none !important;
  box-shadow: none !important;
}
.deck-controls button {
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  font-size: 13px !important;
}

/* ── SLIDE TRANSITIONS: smoother, more dramatic ── */
@keyframes deckInForwardV3 {
  from { opacity: 0; transform: translate3d(60px, 0, 0) scale(0.92); filter: blur(8px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}
@keyframes deckInBackV3 {
  from { opacity: 0; transform: translate3d(-60px, 0, 0) scale(0.92); filter: blur(8px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}
.deck-slide.deck-enter-forward { animation: deckInForwardV3 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both !important; }
.deck-slide.deck-enter-back { animation: deckInBackV3 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both !important; }

/* ── CARD REVEAL: bouncy entrance ── */
@keyframes cardRevealV3 {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); filter: blur(4px); }
  60% { opacity: 1; filter: blur(0); }
  80% { transform: translateY(-2px) scale(1.005); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.board-card, .column-card, .scenario-card, .stat-card, .split-panel,
.timeline-node, .deck-bullet, .deck-note, .deck-aside-row, .stats-note {
  animation-name: cardRevealV3 !important;
  animation-duration: 0.50s !important;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}
.split-vs-divider {
  animation: cardRevealV3 0.50s cubic-bezier(0.22, 0.61, 0.36, 1) both !important;
  animation-delay: 0.15s !important;
}

/* ── HOVER: emerald glow lift ── */
.board-card:hover, .column-card:hover, .scenario-card:hover, .stat-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════
   READABILITY OVERHAUL — Everything bigger for projector
   Fixes: text too small, micro fonts, terminal orbs
   ═══════════════════════════════════════════════════════ */

/* ── 1. TERMINAL ORB BOOST ── */
.mesh-orb {
  opacity: 1 !important;
}
.mesh-orb-1 { background: radial-gradient(circle, rgba(52,199,89,0.50) 0%, rgba(48,209,88,0.20) 40%, transparent 65%) !important; }
.mesh-orb-2 { background: radial-gradient(circle, rgba(255,45,85,0.45) 0%, rgba(255,180,80,0.18) 40%, transparent 65%) !important; }
.mesh-orb-3 { background: radial-gradient(circle, rgba(255,45,85,0.40) 0%, rgba(255,100,130,0.16) 40%, transparent 65%) !important; }
.mesh-orb-4 { background: radial-gradient(circle, rgba(0,122,255,0.42) 0%, rgba(0,199,190,0.16) 40%, transparent 65%) !important; }
.mesh-orb-5 { background: radial-gradient(circle, rgba(255,107,107,0.38) 0%, rgba(255,159,10,0.16) 40%, transparent 65%) !important; }

/* ── 2. SECTION DIVIDERS — bigger fonts, not micro ── */
.deck-layout-section .deck-section-title {
  font-size: clamp(64px, 9vw, 120px) !important;
}
.deck-layout-section .deck-section-sub {
  font-size: clamp(20px, 2.5vw, 28px) !important;
  font-weight: 450 !important;
  max-width: 700px !important;
  color: rgba(10,26,16,0.60) !important;
}
.deck-layout-section .deck-section-meta {
  font-size: 13px !important;
  letter-spacing: 2.5px !important;
  color: rgba(52,199,89,0.55) !important;
}

/* ── 3. ALL SLIDE TEXT — projector-readable sizes ── */

/* Slide titles */
.deck-title {
  font-size: clamp(36px, 5vw, 60px) !important;
}

/* Subtitle */
.deck-sub {
  font-size: clamp(18px, 2.2vw, 24px) !important;
}

/* Meta label */
.deck-meta span:first-child {
  font-size: 14px !important;
  letter-spacing: 2.5px !important;
}

/* Bullets / points — THE main body text */
.deck-bullet {
  padding: 16px 20px 16px 22px !important;
  font-size: clamp(18px, 2vw, 22px) !important;
  line-height: 1.55 !important;
}
.deck-bullet::before {
  display: none !important;
}

/* Board cards */
.board-eyebrow {
  font-size: 13px !important;
  letter-spacing: 2px !important;
}
.board-value {
  font-size: clamp(30px, 3.5vw, 44px) !important;
}
.board-label {
  font-size: clamp(15px, 1.6vw, 18px) !important;
  line-height: 1.45 !important;
}
.board-card.board-hero h3 {
  font-size: clamp(22px, 2.8vw, 32px) !important;
}
.board-card.board-hero p {
  font-size: clamp(16px, 1.8vw, 20px) !important;
  line-height: 1.55 !important;
}

/* Column cards */
.column-card h3 {
  font-size: clamp(18px, 2vw, 24px) !important;
}
.column-card li, .column-card p, .col-point {
  font-size: clamp(16px, 1.8vw, 20px) !important;
  line-height: 1.55 !important;
}

/* Scenario cards */
.scenario-card h3 {
  font-size: 13px !important;
  letter-spacing: 2.5px !important;
}
.scenario-card p {
  font-size: clamp(17px, 1.8vw, 20px) !important;
  line-height: 1.55 !important;
}

/* Split panels */
.split-panel h3 {
  font-size: clamp(22px, 2.8vw, 30px) !important;
}
.split-point {
  font-size: clamp(16px, 1.8vw, 20px) !important;
  line-height: 1.55 !important;
}

/* Stat cards */
.stat-value {
  font-size: clamp(54px, 7vw, 86px) !important;
}
.stat-label {
  font-size: clamp(15px, 1.6vw, 18px) !important;
}

/* Stats notes / deck notes */
.stats-note, .deck-note {
  font-size: clamp(16px, 1.6vw, 19px) !important;
  line-height: 1.55 !important;
}

/* Timeline */
.timeline-card-title {
  font-size: clamp(16px, 1.8vw, 20px) !important;
  font-weight: 800 !important;
}
.timeline-card-desc {
  font-size: clamp(14px, 1.6vw, 18px) !important;
  line-height: 1.5 !important;
}

/* Aside panel */
.deck-aside-head {
  font-size: clamp(16px, 1.8vw, 20px) !important;
  font-weight: 700 !important;
}
.deck-aside-row {
  font-size: clamp(16px, 1.6vw, 18px) !important;
  line-height: 1.5 !important;
  padding: 12px 16px !important;
}

/* Bigquote — handled above in main section */

/* ── 4. BOARD LAYOUT — compact to fit all cards ── */
.deck-layout-board .deck-title {
  font-size: clamp(28px, 3.5vw, 42px) !important;
  margin-bottom: 2px !important;
}
.deck-layout-board .deck-sub {
  font-size: clamp(14px, 1.4vw, 16px) !important;
  margin-bottom: 6px !important;
}
.deck-layout-board .deck-meta {
  margin-bottom: 0px !important;
}
.deck-layout-board .deck-progress {
  margin-bottom: 6px !important;
}

/* ── 5. CONTROLS — bigger touch targets ── */
.deck-controls button {
  font-size: 14px !important;
  padding: 10px 28px !important;
}

/* ── 6. SLIDE CARD TRANSPARENCY — let orbs bleed through ── */
.deck-slide {
  background: rgba(255,255,255,0.48) !important;
}

/* ── 7. DARKER TEXT — kill all light greys ── */
.deck-sub {
  color: rgba(10,26,16,0.70) !important;
}
.board-eyebrow {
  color: rgba(10,26,16,0.55) !important;
}
.board-label {
  color: rgba(10,26,16,0.65) !important;
}
.stat-label {
  color: rgba(10,26,16,0.65) !important;
}
.deck-meta span:first-child {
  color: rgba(10,26,16,0.50) !important;
}
.deck-meta span:last-child {
  color: rgba(52,199,89,0.65) !important;
}
.bigquote-attr {
  color: rgba(10,26,16,0.55) !important;
}
.deck-layout-section .deck-section-sub {
  color: rgba(10,26,16,0.65) !important;
}
.split-point, .col-point, .column-card li, .column-card p {
  color: rgba(10,26,16,0.75) !important;
}
.scenario-card p {
  color: rgba(10,26,16,0.75) !important;
}
.stats-note, .deck-note {
  color: rgba(10,26,16,0.70) !important;
}
.timeline-card-desc {
  color: rgba(10,26,16,0.65) !important;
}
.deck-aside-row {
  color: rgba(10,26,16,0.70) !important;
}

/* ── 8. BOARD FIX — compact header so cards fit ── */
.deck-layout-board .deck-title {
  font-size: clamp(24px, 3vw, 34px) !important;
  margin-bottom: 0 !important;
  line-height: 1.1 !important;
}
.deck-layout-board .deck-sub {
  font-size: clamp(13px, 1.3vw, 15px) !important;
  margin-bottom: 4px !important;
}
.deck-layout-board .deck-meta {
  margin-bottom: 2px !important;
}
.deck-layout-board .deck-progress {
  margin-bottom: 4px !important;
}
.deck-board {
  grid-auto-rows: minmax(60px, auto) !important;
  gap: 7px !important;
}
.board-card {
  padding: 9px 12px !important;
}

/* ── 9. LIFT ANIMATION — key numbers gently rise ── */
@keyframes subtleLift {
  0% { transform: translateY(8px); opacity: 0.7; }
  100% { transform: translateY(0); opacity: 1; }
}
.board-value, .stat-value {
  animation: subtleLift 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both !important;
  animation-delay: 0.3s !important;
}
.stat-card:nth-child(2) .stat-value { animation-delay: 0.45s !important; }
.stat-card:nth-child(3) .stat-value { animation-delay: 0.6s !important; }
.stat-card:nth-child(4) .stat-value { animation-delay: 0.75s !important; }
.board-card:nth-child(2) .board-value { animation-delay: 0.4s !important; }
.board-card:nth-child(3) .board-value { animation-delay: 0.5s !important; }
.board-card:nth-child(4) .board-value { animation-delay: 0.6s !important; }
.board-card:nth-child(5) .board-value { animation-delay: 0.7s !important; }

/* ══════════════════════════════════════════════════════════
   FINAL OVERRIDES — Strip all boxes, clean everything
   ══════════════════════════════════════════════════════════ */

/* ── SPLIT PANELS: no glass boxes, top accent line ── */
.split-panel,
.split-panel:first-child,
.split-panel:last-child,
.split-panel:nth-child(1),
.split-panel:nth-child(3) {
  background: none !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 0 8px 8px !important;
  padding: 20px 24px !important;
  border-top: 4px solid var(--split-tone, #34C759) !important;
}
.split-panel-icon {
  display: none !important;
}
.split-panel-title, .split-panel h3 {
  font-size: clamp(22px, 2.8vw, 30px) !important;
  font-weight: 800 !important;
  color: #0a1a10 !important;
  margin-bottom: 12px !important;
}
.split-point {
  font-size: clamp(16px, 1.8vw, 20px) !important;
  line-height: 1.55 !important;
  color: rgba(10,26,16,0.80) !important;
  font-weight: 500 !important;
  padding: 6px 0 !important;
  border: none !important;
}
.split-point::before {
  display: none !important;
}
.split-vs-divider {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.split-vs-divider span {
  background: rgba(10,26,16,0.08) !important;
  color: rgba(10,26,16,0.40) !important;
  font-size: 14px !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── COLUMN CARDS: strip glass, bottom border accent ── */
.column-card,
.columns-grid > .column-card,
.column-card[data-step] {
  background: rgba(255,255,255,0.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top: none !important;
  border-right: none !important;
  border-left: none !important;
  border-bottom: 4px solid var(--col-tone, #34C759) !important;
  box-shadow: none !important;
  border-radius: 8px 8px 0 0 !important;
}
.column-point {
  padding-left: 0 !important;
}
.column-point::before {
  display: none !important;
}

/* ── SCENARIO CARDS: strip glass + kill decorative elements ── */
.scenario-card {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-left: 5px solid var(--scenario, #34C759) !important;
  box-shadow: none !important;
  border-radius: 0 14px 14px 0 !important;
}
.scenario-card::before,
.scenario-card::after {
  display: none !important;
}

/* ── BOARD CARDS: strip glass ── */
.board-card {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  border-bottom: 4px solid var(--board-tone, #34C759) !important;
  border-radius: 8px 8px 0 0 !important;
}
/* board-hero border: KILLED — see FP-19 */

/* ── ALL VALUES: same color gradient, 10% darker at bottom, no shadow ── */
.board-value {
  filter: none !important;
  font-weight: 900 !important;
}
.stat-value {
  filter: none !important;
  font-weight: 900 !important;
}

/* ── STAT CARDS: strip glass + kill decorative circles ── */
.stat-card {
  background: rgba(255,255,255,0.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  border-bottom: 4px solid var(--stat-tone, #34C759) !important;
  border-radius: 8px 8px 0 0 !important;
}
.stat-card::before {
  display: none !important;
}
.stat-card::after {
  display: none !important;
}

/* ── TIMELINE: wrap into grid, strip glass ── */
.timeline-track {
  flex-wrap: wrap !important;
  gap: 12px !important;
}
.timeline-track::before {
  display: none !important;
}
.timeline-node {
  flex: 0 0 calc(25% - 12px) !important;
  min-width: 0 !important;
}
.timeline-dot {
  display: none !important;
}
.timeline-card {
  background: rgba(255,255,255,0.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  border-bottom: 3px solid var(--tl-tone, #34C759) !important;
  border-radius: 8px 8px 0 0 !important;
  text-align: left !important;
}
.timeline-card-title {
  font-size: clamp(16px, 1.8vw, 20px) !important;
  color: #0a1a10 !important;
}
.timeline-card-desc {
  font-size: clamp(14px, 1.5vw, 17px) !important;
  color: rgba(10,26,16,0.70) !important;
  font-weight: 450 !important;
}

/* ── DECK BULLETS: strip glass, just colored left border ── */
.deck-bullet {
  background: rgba(255,255,255,0.20) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  border-bottom: 4px solid var(--bullet-color, #34C759) !important;
  border-radius: 8px 8px 0 0 !important;
}

/* ── ASIDE PANEL: strip glass ── */
.deck-concept-aside {
  background: rgba(255,255,255,0.20) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  border-bottom: 4px solid rgba(52,199,89,0.40) !important;
}
.deck-aside-row {
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  border-bottom: 1px solid rgba(10,26,16,0.06) !important;
}

/* ══════════════════════════════════════════════════════════
   MEGA FIX PASS — color, text, VS, animations, diagrams
   ══════════════════════════════════════════════════════════ */

/* ── 1. BIGQUOTE TEXT: main green gradient ── */
.bigquote-text {
  background-image: linear-gradient(180deg, #34C759 0%, color-mix(in srgb, #34C759 80%, #0a1a10) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #34C759 !important;
}

/* ── 2. DECK TITLE: flowing green (set in editorial section) ── */

/* ── 3. VS DIVIDER: properly centered, not overlapping ── */
.split-grid {
  position: relative !important;
}
.split-vs-divider {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 20 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
}
.split-vs-divider span {
  width: 42px !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.85) !important;
  color: rgba(10,26,16,0.50) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  border: 2px solid rgba(10,26,16,0.10) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* ── 4. COLUMN POINT TEXT: readable but compact to prevent cutoff ── */
.column-point {
  font-size: clamp(13px, 1.4vw, 16px) !important;
  line-height: 1.45 !important;
  color: rgba(10,26,16,0.78) !important;
  font-weight: 450 !important;
  padding: 5px 0 !important;
  padding-left: 0 !important;
}
.column-card-title {
  font-size: clamp(17px, 2vw, 22px) !important;
  font-weight: 800 !important;
  color: #0a1a10 !important;
}
.column-step-badge {
  font-size: 13px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
}

/* ── 5. TIMELINE CARDS: equal height in 2x4 grid ── */
.timeline-node {
  flex: 0 0 calc(25% - 12px) !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
.timeline-card {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 14px 16px !important;
}
.timeline-card-title {
  font-size: clamp(16px, 1.8vw, 20px) !important;
  font-weight: 800 !important;
  margin-bottom: 6px !important;
}
.timeline-card-desc {
  font-size: clamp(14px, 1.5vw, 17px) !important;
  flex: 1 !important;
}

/* ── 6. COLUMN CARD FALL-IN ANIMATION ── */
@keyframes cardFallIn {
  0% { opacity: 0; transform: translateY(-24px); }
  100% { opacity: 1; transform: translateY(0); }
}
.column-card {
  animation: cardFallIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both !important;
}
.column-card:nth-child(1) { animation-delay: 0.08s !important; }
.column-card:nth-child(2) { animation-delay: 0.18s !important; }
.column-card:nth-child(3) { animation-delay: 0.28s !important; }
.column-card:nth-child(4) { animation-delay: 0.38s !important; }

/* Also animate timeline, split panels, stat cards on enter */
.split-panel {
  animation: cardFallIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both !important;
}
.split-panel:first-child { animation-delay: 0.1s !important; }
.split-panel:last-child { animation-delay: 0.25s !important; }

.stat-card {
  animation: cardFallIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both !important;
}
.stat-card:nth-child(1) { animation-delay: 0.1s !important; }
.stat-card:nth-child(2) { animation-delay: 0.2s !important; }
.stat-card:nth-child(3) { animation-delay: 0.3s !important; }
.stat-card:nth-child(4) { animation-delay: 0.4s !important; }

.timeline-node {
  animation: cardFallIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both !important;
}
.timeline-node:nth-child(1) { animation-delay: 0.05s !important; }
.timeline-node:nth-child(2) { animation-delay: 0.12s !important; }
.timeline-node:nth-child(3) { animation-delay: 0.19s !important; }
.timeline-node:nth-child(4) { animation-delay: 0.26s !important; }
.timeline-node:nth-child(5) { animation-delay: 0.33s !important; }
.timeline-node:nth-child(6) { animation-delay: 0.40s !important; }
.timeline-node:nth-child(7) { animation-delay: 0.47s !important; }
.timeline-node:nth-child(8) { animation-delay: 0.54s !important; }

.board-card {
  animation: cardFallIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both !important;
}
.board-card:nth-child(1) { animation-delay: 0.08s !important; }
.board-card:nth-child(2) { animation-delay: 0.16s !important; }
.board-card:nth-child(3) { animation-delay: 0.24s !important; }
.board-card:nth-child(4) { animation-delay: 0.32s !important; }
.board-card:nth-child(5) { animation-delay: 0.40s !important; }

/* ── 7. SECTION DIVIDERS: alternate layouts for variety ── */
.deck-layout-section {
  display: flex !important;
  flex-direction: column !important;
  padding: 60px 70px !important;
}
/* Even section dividers: right-aligned */
.deck-layout-section:nth-child(even) {
  align-items: flex-end !important;
  text-align: right !important;
}
.deck-layout-section:nth-child(even) .deck-section-sub {
  text-align: right !important;
}
/* Give section titles a gradient color pop */
.deck-layout-section .deck-section-title {
  background-image: linear-gradient(180deg, #34C759 0%, color-mix(in srgb, #34C759 80%, #0a1a10) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
/* Add a colored accent dot before each section meta */
.deck-layout-section .deck-meta span:first-child::before {
  content: '' !important;
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: var(--accent-1, #34C759) !important;
  margin-right: 10px !important;
  vertical-align: middle !important;
}

/* ── 8. SYNAPSE DIAGRAM: clean horizontal flow ── */
.diagram-synapse-arch {
  display: grid !important;
  grid-template-columns: 1fr 30px 1.2fr 1fr 1.2fr 30px 1fr !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 20px !important;
  background: transparent !important;
  border-radius: 16px !important;
  border: none !important;
}
.synapse-node {
  flex: 1 !important;
  border-radius: 12px !important;
  padding: 14px 12px !important;
  background: transparent !important;
  border: none !important;
  border-top: 3px solid var(--node-color, #34C759) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
.synapse-node-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
}
.synapse-node-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  margin-bottom: 4px !important;
}
.synapse-node-desc {
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: rgba(10,26,16,0.65) !important;
}
.synapse-arrow {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  min-width: 28px !important;
  color: #34C759 !important;
  font-size: 20px !important;
}
.synapse-arrow-label {
  font-size: 8px !important;
  color: rgba(10,26,16,0.40) !important;
}
.synapse-tunnel {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 60px !important;
  padding: 8px !important;
  background: transparent !important;
  border-radius: 10px !important;
  border: 1px dashed rgba(0,122,255,0.25) !important;
  box-shadow: none !important;
}
.synapse-tunnel-label {
  font-size: 8px !important;
  color: rgba(0,122,255,0.70) !important;
}
.synapse-tunnel-line {
  width: 100% !important;
  height: 3px !important;
}

/* ── 9. FLOOR PLAN: bigger ── */
.diagram-floorplan {
  flex: 1.5 !important;
  min-height: 340px !important;
}
.fp-svg-wrap {
  flex: 1 !important;
  min-height: 300px !important;
  padding: 10px !important;
}
.fp-svg {
  width: 100% !important;
  height: 100% !important;
}

/* ── 10. DECK SUB: bigger for projector ── */
.deck-sub {
  font-size: clamp(18px, 2.2vw, 24px) !important;
  max-width: 750px !important;
}

/* ── 11. CSS VARIABLE CLEANUP ── */
:root {
  --amber: #FF2D55;
  --orange: #FF2D55;
  --yellow: #FFCC00;
}

/* ══════════════════════════════════════════════════════════════
   FINAL POLISH PASS — everything the user flagged in rapid-fire
   ══════════════════════════════════════════════════════════════ */

/* ── FP-1. BIGQUOTE TEXT: flowing animated green like splash "immy" ── */
.bigquote-text {
  background-image: linear-gradient(120deg, rgba(103,212,13,0.90) 0%, rgba(34,180,85,0.95) 42%, rgba(103,212,13,0.92) 100%) !important;
  background-size: 220% 220% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: loginButtonFlow 4s ease-in-out infinite !important;
  filter: drop-shadow(0 2px 8px rgba(52,199,89,0.30)) drop-shadow(0 0 24px rgba(52,199,89,0.15)) !important;
}

/* ── FP-2. DECK TITLE: fix descender cutoff (Y, g, p, q) ── */
.deck-title {
  line-height: 1.10 !important;
  padding-bottom: 4px !important;
  overflow: visible !important;
}

/* ── FP-3. ASIDE HEAD: bright green, not dark forest ── */
.deck-aside-head {
  color: #34C759 !important;
  font-size: clamp(17px, 2vw, 22px) !important;
  font-weight: 800 !important;
  padding-bottom: 10px !important;
}
.deck-aside-head b {
  color: #34C759 !important;
}
.deck-aside-icon {
  color: #34C759 !important;
  width: 22px !important;
  height: 22px !important;
}

/* ── FP-4. ASIDE ROWS: thicker text, more presence, less empty ── */
.deck-aside-row {
  font-size: clamp(17px, 1.8vw, 21px) !important;
  font-weight: 600 !important;
  color: #0a1a10 !important;
  line-height: 1.45 !important;
  padding: 14px 18px !important;
  border-left: none !important;
  border-bottom: 1px solid rgba(10,26,16,0.08) !important;
  background: rgba(255,255,255,0.15) !important;
}
.deck-aside-row:last-child {
  border-bottom: none !important;
}
/* Make aside panel itself more substantial */
.deck-concept-aside {
  padding: 18px 20px !important;
  gap: 0 !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.28) !important;
  border: 1px solid rgba(255,255,255,0.45) !important;
  border-bottom: 4px solid rgba(52,199,89,0.40) !important;
}

/* ── FP-5. SECTION DIVIDERS: remove dots, bigger meta text ── */
.deck-layout-section .deck-meta span:first-child::before {
  display: none !important;
  content: none !important;
}
.deck-layout-section .deck-meta span:first-child,
.deck-layout-section .deck-section-meta span {
  font-size: clamp(15px, 1.8vw, 20px) !important;
  letter-spacing: 3.5px !important;
  font-weight: 800 !important;
  color: rgba(10,26,16,0.55) !important;
}

/* ── FP-6. VS DIVIDER: at top where the two panel borders meet ── */
.split-vs-divider {
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  transform: translate(-50%, -50%) !important;
  z-index: 30 !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.split-vs-divider span {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.95) !important;
  color: rgba(10,26,16,0.55) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 2px !important;
  border: 2px solid rgba(10,26,16,0.10) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
/* Split grid needs position:relative for absolute VS */
.split-grid {
  position: relative !important;
  overflow: visible !important;
}

/* ── FP-7. COLUMN STEP BADGES: colorful, not dark ── */
.column-step-badge {
  background: var(--col-tone, #34C759) !important;
  color: #fff !important;
  border-radius: 10px !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12) !important;
}

/* ── FP-8. TIMELINE CARDS: fix alignment, uniform grid ── */
.timeline-track {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
}
.timeline-node {
  flex: unset !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  text-align: left !important;
}
.timeline-card {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ── FP-9. SYNAPSE DIAGRAM: readable text, not grey ── */
.synapse-node-title {
  font-size: clamp(16px, 1.8vw, 20px) !important;
  font-weight: 900 !important;
  color: #0a1a10 !important;
  margin-bottom: 6px !important;
}
.synapse-node-desc {
  font-size: clamp(13px, 1.4vw, 16px) !important;
  line-height: 1.50 !important;
  color: rgba(10,26,16,0.80) !important;
  font-weight: 500 !important;
}
.synapse-node-label {
  font-size: clamp(9px, 1vw, 12px) !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  color: var(--node-color, #34C759) !important;
}
.synapse-tunnel-label {
  font-size: clamp(8px, 0.9vw, 11px) !important;
  font-weight: 700 !important;
  color: rgba(0,122,255,0.85) !important;
}
.synapse-arrow-line {
  width: 100% !important;
  height: 2px !important;
  background: linear-gradient(90deg, rgba(52,199,89,0.3), #34C759) !important;
  border-radius: 2px !important;
  position: relative !important;
}
.synapse-arrow-line::after {
  content: '' !important;
  position: absolute !important;
  right: -1px !important;
  top: -4px !important;
  border: 5px solid transparent !important;
  border-left: 7px solid #34C759 !important;
}
.synapse-arrow-label {
  font-size: clamp(9px, 1vw, 12px) !important;
  font-weight: 700 !important;
  color: rgba(10,26,16,0.55) !important;
}

/* ── FP-10. STAT CARDS: remove green border-bottom, restore rich gradients ── */
.stat-card {
  border-bottom: none !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(28px) saturate(2.0) !important;
  -webkit-backdrop-filter: blur(28px) saturate(2.0) !important;
}
.stat-card:nth-child(1) {
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(52,199,89,0.18) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.60), inset 0 -36px 70px -20px rgba(52,199,89,0.22), 0 6px 28px rgba(0,40,20,0.08) !important;
}
.stat-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(0,122,255,0.18) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.60), inset 0 -36px 70px -20px rgba(0,122,255,0.22), 0 6px 28px rgba(0,40,20,0.08) !important;
}
.stat-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,45,85,0.18) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.60), inset 0 -36px 70px -20px rgba(255,45,85,0.22), 0 6px 28px rgba(0,40,20,0.08) !important;
}
.stat-card:nth-child(4) {
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(175,82,222,0.18) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.60), inset 0 -36px 70px -20px rgba(175,82,222,0.22), 0 6px 28px rgba(0,40,20,0.08) !important;
}

/* ── FP-11. FLOOR PLAN: FULLSCREEN — hide title/sub, max the SVG ── */
.diagram-floorplan {
  flex: 1 !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.fp-svg-wrap {
  flex: 1 !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.fp-svg {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
}
/* Hide title, sub, and notes on floor plan to give max space */
.deck-layout-diagram .deck-title {
  font-size: clamp(20px, 2.5vw, 28px) !important;
  margin-bottom: 0 !important;
  line-height: 1.1 !important;
}
.deck-layout-diagram .deck-sub {
  display: none !important;
}
.deck-layout-diagram .deck-meta {
  display: none !important;
}
.deck-layout-diagram .deck-diagram-notes {
  display: none !important;
}

/* ── FP-12. COLUMN LAYOUT VARIETY: alternate 2nd/3rd column slides ── */
/* Every other columns slide gets a slight visual shift */
.deck-layout-columns:nth-child(even) .columns-grid {
  direction: rtl !important;
}
.deck-layout-columns:nth-child(even) .columns-grid > * {
  direction: ltr !important;
}
/* Give column cards a subtle left-accent strip instead of bottom on alternating slides */
.deck-layout-columns:nth-child(even) .column-card {
  border-bottom: none !important;
  border-top: 4px solid var(--col-tone, #34C759) !important;
  border-radius: 0 0 8px 8px !important;
}

/* ── FP-13. SCENARIO CARDS: clean, modern, opaque so orbs don't bleed ── */
.deck-scenario-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  flex: 1 !important;
  min-height: 0 !important;
}
.scenario-card {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-left: 5px solid var(--scenario, #34C759) !important;
  border-bottom: none !important;
  border-radius: 0 14px 14px 0 !important;
  box-shadow: none !important;
  padding: 16px 22px !important;
  flex: 1 !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.scenario-card::before,
.scenario-card::after {
  display: none !important;
}
.scenario-card h3 {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: var(--scenario, #34C759) !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 6px !important;
}
.scenario-card h3::before {
  display: none !important;
}
.scenario-card p {
  font-size: clamp(15px, 1.6vw, 19px) !important;
  line-height: 1.50 !important;
  color: #0a1a10 !important;
  font-weight: 500 !important;
  margin: 0 !important;
}
/* Different colors per card — transparent, just colored left border */
.scenario-card:nth-child(1) {
  border-left-color: #FF2D55 !important;
  background: transparent !important;
}
.scenario-card:nth-child(1) h3 { color: #FF2D55 !important; }
.scenario-card:nth-child(2) {
  border-left-color: #007AFF !important;
  background: transparent !important;
}
.scenario-card:nth-child(2) h3 { color: #007AFF !important; }
.scenario-card:nth-child(3) {
  border-left-color: #34C759 !important;
  background: transparent !important;
}
.scenario-card:nth-child(3) h3 { color: #34C759 !important; }

/* ── FP-14. SLIDE OVERFLOW: prevent content cutoff on all slides ── */
.deck-slide {
  overflow: hidden !important;
}
/* Concept grid slides — ensure aside + main don't overflow */
.deck-concept-grid {
  min-height: 0 !important;
  overflow: visible !important;
}
.deck-main-col {
  min-height: 0 !important;
  overflow: visible !important;
}
/* Deck bullets: smaller text to prevent cutoff on concept slides */
.deck-bullet {
  font-size: clamp(14px, 1.5vw, 17px) !important;
  line-height: 1.45 !important;
  padding: 10px 14px !important;
}

/* ── FP-15. BOARD CARDS: compact + hero elevation ── */
.deck-board {
  gap: 8px !important;
  grid-auto-rows: minmax(50px, auto) !important;
}
.board-card {
  padding: 10px 12px !important;
  gap: 3px !important;
}
.board-value {
  font-size: clamp(18px, 2.5vw, 32px) !important;
}
.board-label {
  font-size: clamp(13px, 1.4vw, 16px) !important;
  line-height: 1.4 !important;
}
.board-card.board-hero {
  padding: 20px 24px !important;
  gap: 10px !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-left: 5px solid #34C759 !important;
  border-bottom: none !important;
  border-radius: 0 14px 14px 0 !important;
  box-shadow: none !important;
}
.board-card.board-hero h3 {
  font-size: clamp(20px, 2.5vw, 28px) !important;
  font-weight: 800 !important;
  color: #0a1a10 !important;
  letter-spacing: -0.5px !important;
}
.board-card.board-hero p {
  font-size: clamp(13px, 1.4vw, 16px) !important;
  line-height: 1.55 !important;
  color: rgba(10,26,16,0.75) !important;
  font-weight: 450 !important;
}

/* ── FP-16. ASIDE ROW: kill inline border-left from HTML ── */
.deck-aside-row[style*="border-left"] {
  border-left: none !important;
}

/* ── FP-17. NUCLEAR: kill ALL slide pseudo-elements that cause blue overlay ── */
.deck-slide::before,
.deck-slide::after,
.deck-slide[data-slide-idx]::before,
.deck-slide[data-slide-idx]::after {
  display: none !important;
  content: none !important;
  background: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}
/* Restore ONLY the bigquote opening curly quote */
.deck-layout-bigquote::after,
.deck-layout-bigquote[data-slide-idx]::after {
  display: block !important;
  content: '\201C' !important;
  background: none !important;
  opacity: 0.06 !important;
  width: auto !important;
  height: auto !important;
  position: absolute !important;
  right: -10px !important;
  bottom: -40px !important;
  font-size: 340px !important;
  font-family: Georgia, serif !important;
  color: #0a1a10 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  -webkit-text-fill-color: currentColor !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

/* ── FP-18. COLUMNS: ensure 4-col grids don't overflow ── */
.columns-grid {
  gap: 10px !important;
}
.column-card {
  min-height: 0 !important;
  overflow: hidden !important;
}

/* ── FP-19. BOARD HERO: NUCLEAR clean override — transparent ── */
.deck-board .board-card.board-hero,
article.board-card.board-hero,
.board-card.board-hero[style] {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-left: 5px solid #34C759 !important;
  border-bottom: none !important;
  border-top: none !important;
  border-right: none !important;
  border-radius: 0 14px 14px 0 !important;
  box-shadow: none !important;
  padding: 20px 24px !important;
  animation: none !important;
}
.deck-board .board-card.board-hero h3,
article.board-card.board-hero h3 {
  font-size: clamp(20px, 2.5vw, 28px) !important;
  font-weight: 800 !important;
  color: #0a1a10 !important;
  letter-spacing: -0.5px !important;
}
.deck-board .board-card.board-hero p,
article.board-card.board-hero p {
  font-size: clamp(14px, 1.5vw, 17px) !important;
  line-height: 1.55 !important;
  color: rgba(10,26,16,0.75) !important;
  font-weight: 450 !important;
}

/* ── FP-20. SECTION TITLE: flowing animated green gradient ── */
.deck-layout-section .deck-section-title {
  background-image: linear-gradient(90deg, #8ce840, #50d470, #34C759, #50d470, #8ce840) !important;
  background-size: 400% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: sectionTitleFlow 14s ease-in-out infinite !important;
  filter: drop-shadow(0 2px 8px rgba(52,199,89,0.20)) !important;
}

@keyframes sectionTitleFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── FP-21. FLOOR PLAN TITLE: normal size, not squished ── */
.deck-layout-diagram .deck-title {
  font-size: clamp(32px, 4vw, 48px) !important;
  margin-bottom: 4px !important;
  line-height: 1.10 !important;
}

/* ── FP-22. COVER SLIDE TITLE: bigger + flowing green + glass bubble ── */
[data-slide-idx="01"] .deck-title {
  font-size: clamp(56px, 7.5vw, 96px) !important;
  background-image: linear-gradient(90deg, #8ce840, #50d470, #34C759, #50d470, #8ce840) !important;
  background-size: 400% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: sectionTitleFlow 14s ease-in-out infinite !important;
  position: relative !important;
  line-height: 1.0 !important;
  isolation: isolate !important;
}
/* ── GLASS BUBBLE: real element behind title ── */
.deck-title-wrap {
  position: relative !important;
  display: inline-block !important;
  width: 100% !important;
}
.deck-title-bubble {
  display: none !important;
}
[data-slide-idx="01"] .deck-title-bubble {
  display: block !important;
  position: absolute !important;
  inset: -12px -20px !important;
  border-radius: 20px !important;
  display: none !important;
  pointer-events: none !important;
  z-index: 0 !important;
  overflow: hidden !important;
}
[data-slide-idx="01"] .deck-title-bubble::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent) !important;
}
[data-slide-idx="01"] .deck-title-bubble::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 1px !important;
  height: 100% !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent, rgba(255,255,255,0.06)) !important;
}
[data-slide-idx="01"] .deck-title-wrap .deck-title {
  position: relative !important;
  z-index: 1 !important;
  text-align: center !important;
}

/* ── FP-23. LOGIN TITLE: flowing green ── */
.login-title {
  background-image: linear-gradient(90deg, #8ce840, #50d470, #34C759, #50d470, #8ce840) !important;
  background-size: 400% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: sectionTitleFlow 14s ease-in-out infinite !important;
  font-size: 44px !important;
}

/* ── FP-24. BOARD-HERO H3: flowing green instead of black ── */
.board-card.board-hero h3 {
  background-image: linear-gradient(90deg, #8ce840, #50d470, #34C759, #50d470, #8ce840) !important;
  background-size: 400% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: sectionTitleFlow 14s ease-in-out infinite !important;
  color: transparent !important;
}

/* ── FP-25. SPLIT PANEL TITLE: flowing color matching bar tone ── */
.split-panel .split-panel-title {
  background-image: linear-gradient(90deg,
    color-mix(in srgb, var(--split-tone) 55%, #fff),
    var(--split-tone),
    color-mix(in srgb, var(--split-tone) 75%, #fff),
    var(--split-tone),
    color-mix(in srgb, var(--split-tone) 55%, #fff)
  ) !important;
  background-size: 400% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: sectionTitleFlow 14s ease-in-out infinite !important;
  color: transparent !important;
}

/* ── FP-27. COLUMN CARD TITLE: flowing color matching step badge ── */
.column-card .column-card-title {
  background-image: linear-gradient(90deg,
    color-mix(in srgb, var(--col-tone) 55%, #fff),
    var(--col-tone),
    color-mix(in srgb, var(--col-tone) 75%, #fff),
    var(--col-tone),
    color-mix(in srgb, var(--col-tone) 55%, #fff)
  ) !important;
  background-size: 400% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: sectionTitleFlow 14s ease-in-out infinite !important;
  color: transparent !important;
}

/* ═══ SYNAPSE TERMINAL (Clean Chat UI) ═══ */
#synapse-terminal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#synapse-terminal.hidden { display: none; }

.synapse-term-shell {
  width: 100%;
  max-width: 720px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border-radius: 20px;
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
}

.synapse-term-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.5);
}

.synapse-term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: synapsePulse 2s ease-in-out infinite;
}
@keyframes synapsePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.synapse-term-title {
  font-weight: 700;
  font-size: 15px;
  color: #111;
  letter-spacing: -0.3px;
}

.synapse-term-badge {
  font-size: 11px;
  font-weight: 600;
  color: #34C759;
  background: rgba(52,199,89,0.12);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.synapse-term-exit {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  background: rgba(0,0,0,0.05);
  border: none;
  border-radius: 8px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.synapse-term-exit:hover {
  background: rgba(0,0,0,0.1);
  color: #333;
}

.synapse-term-log {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.synapse-term-log::-webkit-scrollbar {
  display: none;
}

.synapse-msg {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  animation: synMsgIn 0.25s ease both;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
}
@keyframes synMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.synapse-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #34C759, #30B350);
  color: #fff;
  border-bottom-right-radius: 6px;
  font-weight: 500;
}

.synapse-msg-ai {
  align-self: flex-start;
  background: rgba(0,0,0,0.04);
  color: #1a1a1a;
  border-bottom-left-radius: 6px;
  border: 1px solid rgba(0,0,0,0.04);
}
.synapse-msg-ai b { font-weight: 700; color: #111; }

.synapse-msg-system {
  align-self: center;
  background: none;
  color: #888;
  font-size: 12px;
  text-align: center;
  padding: 4px 0;
}

.synapse-typing-indicator {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  background: rgba(0,0,0,0.04);
  border-radius: 16px;
  border-bottom-left-radius: 6px;
}
.synapse-typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #999;
  animation: synTypeDot 1.2s ease-in-out infinite;
}
.synapse-typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.synapse-typing-indicator span:nth-child(3) { animation-delay: 0.3s; }
@keyframes synTypeDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.synapse-term-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.5);
}

#synapse-term-input {
  flex: 1;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  outline: none;
  color: #111;
  transition: border-color 0.15s;
}
#synapse-term-input::placeholder { color: #aaa; }
#synapse-term-input:focus { border-color: #34C759; }

.synapse-term-send {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: #34C759;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.synapse-term-send:hover { background: #2ebd56; transform: scale(1.05); }

/* ═══ WELCOME GUIDE ═══ */
#welcome-guide {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#welcome-guide.hidden { display: none; }
.guide-shell {
  max-width: 560px;
  width: 100%;
  text-align: center;
  animation: synNoteIn 0.5s ease both;
}
.guide-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 16px;
}
.guide-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}
.guide-sub {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 15px;
  color: #6e6e73;
  margin: 0 0 12px;
}
.guide-desc {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 13.5px;
  color: #86868b;
  margin: 0 0 28px;
  line-height: 1.5;
}
.guide-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  transition: all 0.2s;
}
.guide-btn:hover { background: rgba(255,255,255,0.8); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.guide-btn-primary { background: rgba(52,199,89,0.12); }
.guide-btn-primary:hover { background: rgba(52,199,89,0.2); }
.guide-btn-terminal { opacity: 0.6; font-size: 12px; padding: 10px 18px; }
.guide-btn-icon { font-size: 22px; width: 36px; text-align: center; flex-shrink: 0; }
.guide-btn strong { font-size: 14px; color: #1d1d1f; display: block; }
.guide-btn small { font-size: 12px; color: #86868b; }

/* ═══ WRITEUP VIEWER ═══ */
#writeup-viewer {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: flex;
  flex-direction: column;
}
#writeup-viewer.hidden { display: none; }
.writeup-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  padding: 20px;
  overflow: hidden;
}
.writeup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 8px;
}
.writeup-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
}
.writeup-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 32px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: #1d1d1f;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.writeup-content::-webkit-scrollbar { display: none; }
.writeup-content h1 { font-size: 26px; font-weight: 700; margin: 32px 0 12px; letter-spacing: -0.3px; }
.writeup-content h2 { font-size: 20px; font-weight: 600; margin: 28px 0 10px; color: #34C759; }
.writeup-content h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; }
.writeup-content hr { border: none; border-top: 1px solid rgba(0,0,0,0.08); margin: 32px 0; }
.writeup-content ul { padding-left: 20px; margin: 8px 0; }
.writeup-content li { margin: 4px 0; }
.writeup-content strong { color: #1d1d1f; }
