/* Tiny Lashes Mission Control — NEON cut
   Dark void + electric magenta/violet · glass + bloom · Outfit/Fraunces
   Class names preserved — functionality untouched
*/
:root {
  --neon-mag: #ff2bd6;
  --neon-mag-hi: #ff7ae8;
  --neon-vio: #a855f7;
  --neon-vio-hi: #d8b4fe;
  --neon-cyan: #22d3ee;
  --neon-cyan-hi: #a5f3fc;
  --neon-lime: #b8ff3c;
  --void: #050508;
  --void-2: #0a0a12;
  --ink: #f4f0ff;
  --ink-dim: #c4b8e0;
  --stone: #9b8fb8;
  --cream: rgba(18, 14, 28, 0.92);
  --ivory: #f8f4ff;
  --line: rgba(255, 43, 214, 0.22);
  --panel: rgba(14, 10, 22, 0.72);
  --panel-solid: rgba(16, 12, 26, 0.94);
  --panel-border: rgba(255, 122, 232, 0.28);
  --shadow: 0 0 0 1px rgba(255, 43, 214, 0.12), 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(168, 85, 247, 0.12);
  --glow-mag: 0 0 24px rgba(255, 43, 214, 0.45), 0 0 48px rgba(168, 85, 247, 0.25);
  --glow-cyan: 0 0 20px rgba(34, 211, 238, 0.35);
  --radius: 20px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-ui: "Outfit", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", "Times New Roman", serif;
  --rail-h: 64px;
  --brain-h: 116px; /* was 88px: rail overlapped the What's going on pill */
  /* aliases so older metal-* refs still resolve */
  --metal-green: #22d3ee;
  --metal-green-hi: #a5f3fc;
  --metal-blue: #a855f7;
  --metal-blue-hi: #d8b4fe;
  --metal-purple: #ff2bd6;
  --metal-purple-hi: #ff7ae8;
  --metal: linear-gradient(135deg, #ff2bd6 0%, #a855f7 48%, #22d3ee 100%);
  --metal-soft: linear-gradient(135deg, rgba(255,43,214,.85) 0%, rgba(168,85,247,.9) 55%, rgba(34,211,238,.75) 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
html, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  min-height: 100vh;
  background-color: var(--void);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(255, 43, 214, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(34, 211, 238, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 100%, rgba(168, 85, 247, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(184, 255, 60, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #050508 0%, #0a0614 45%, #050508 100%);
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
  position: relative;
}
/* film grain */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible {
  outline: 2px solid var(--neon-mag-hi);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 43, 214, 0.25);
}

.wire-strip {
  position: sticky; top: 0; z-index: 80;
  background: linear-gradient(90deg, rgba(255,43,214,.95), rgba(168,85,247,.95), rgba(34,211,238,.85));
  color: #050508;
  font: 700 10px/1.2 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 12px;
  box-shadow: 0 0 30px rgba(255, 43, 214, 0.4);
}

/* ——— Buttons ——— */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  min-height: 44px;
  border-radius: 999px;
  font: 600 14px/1 var(--font-ui);
  color: #050508;
  background: var(--metal);
  box-shadow: var(--glow-mag), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 0 32px rgba(255,43,214,.6), 0 0 60px rgba(168,85,247,.35), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost-dark {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 999px;
  font: 600 13px/1 var(--font-ui);
  color: var(--ink);
  background: rgba(255, 43, 214, 0.08);
  border: 1px solid rgba(255, 122, 232, 0.35);
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.12);
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-ghost-dark:hover {
  background: rgba(255, 43, 214, 0.16);
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.28);
}
.btn-google {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 16px;
  min-height: 48px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.2);
  font: 600 14px/1 var(--font-ui);
  color: #1a1724;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: transform .2s var(--ease);
}
.btn-google:hover { transform: translateY(-1px); }
.btn-chip {
  margin-top: 12px;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: 999px;
  font: 600 12px/1 var(--font-ui);
  color: #050508;
  background: var(--metal);
  box-shadow: 0 0 18px rgba(255,43,214,.4);
}
.btn-mini {
  flex-shrink: 0;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 999px;
  font: 600 11px/1 var(--font-ui);
  color: var(--ink);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.btn-mini.metal {
  color: #050508;
  background: var(--metal);
  border: none;
  box-shadow: 0 0 14px rgba(255,43,214,.35);
}
.btn-text {
  font: 600 12px/1 var(--font-ui);
  color: var(--neon-cyan-hi);
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(34,211,238,.4);
}
.icon-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 16px;
  color: var(--stone);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.icon-btn:hover {
  background: rgba(255, 43, 214, 0.12);
  box-shadow: 0 0 16px rgba(255,43,214,.25);
  color: var(--neon-mag-hi);
}

/* glass panel helper */
.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

/* ——— Login ——— */
.login-view {
  min-height: calc(100vh - 28px);
  display: grid;
  place-items: center;
  padding: 28px 16px 48px;
}
.login-card {
  width: min(100%, 400px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: var(--shadow), 0 0 60px rgba(255,43,214,.15);
  padding: 32px 26px 24px;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  position: relative;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,43,214,.6), transparent 40%, rgba(34,211,238,.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.login-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  box-shadow: var(--glow-mag), 0 0 0 1px rgba(255,255,255,.14);
  background: #000;
}
.brand-logo--lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), var(--glow-mag), 0 0 70px rgba(34,211,238,.18);
}
.login-brand .brand-logo { margin-left: 1px; }
.topbar-brand .brand-logo { width: 40px; height: 40px; }
.book-logo {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), var(--glow-mag), 0 0 60px rgba(34,211,238,.16);
}
.book-card > .login-eyebrow { text-align: center; }
.login-eyebrow {
  font: 700 10px/1 var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--neon-mag-hi);
  text-shadow: 0 0 14px rgba(255,43,214,.55);
}
.login-card h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ivory);
}
.login-promise {
  font: 500 16px/1.45 var(--font-ui);
  color: var(--ink-dim);
  margin-bottom: 24px;
}
.login-enter { width: 100%; margin-bottom: 10px; }
.login-foot {
  margin-top: 18px;
  font: 500 11px/1.4 var(--font-ui);
  color: var(--stone);
  text-align: center;
}
.login-back {
  display: block;
  margin-top: 14px;
  text-align: center;
  font: 500 12px/1 var(--font-ui);
  color: var(--neon-cyan-hi);
}

/* ——— Dash shell ——— */
.dash-view {
  min-height: calc(100vh - 28px);
  padding-bottom: calc(var(--rail-h) + var(--brain-h) + 12px);
  max-width: 720px;
  margin: 0 auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 8px;
  color: var(--ivory);
}
.topbar-brand { display: flex; gap: 10px; align-items: center; }
.topbar-brand strong { display: block; font: 600 14px/1.2 var(--font-ui); }
.topbar-brand span { font: 400 11px/1.2 var(--font-ui); color: rgba(196,184,224,.7); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar .icon-btn { color: var(--ivory); background: rgba(255,255,255,.06); border-color: rgba(255,122,232,.2); }
.status-pill {
  font: 600 11px/1 var(--font-ui);
  padding: 8px 12px;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--neon-cyan-hi);
  border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 16px rgba(34,211,238,.2);
}

.home {
  padding: 8px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ——— Money pulse ——— */
.money-pulse {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 40px rgba(255,43,214,.1);
  padding: 18px 16px 14px;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}
.pulse-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.pulse-stat { text-align: center; }
.pulse-label {
  display: block;
  font: 600 10px/1 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
}
.pulse-num {
  font-family: var(--font-display);
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ivory);
}
.money-glow {
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255,43,214,.55));
  animation: pulse-soft 3.2s var(--ease) infinite;
}
@keyframes pulse-soft {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255,43,214,.4)) brightness(1); }
  50% { filter: drop-shadow(0 0 22px rgba(255,43,214,.75)) brightness(1.2); }
}
.day-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  gap: 2px;
  box-shadow: inset 0 0 12px rgba(0,0,0,.4);
}
.day-seg {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 2px;
}
.day-seg.is-booked {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-vio));
  box-shadow: 0 0 10px rgba(34,211,238,.5);
}
.day-seg.is-empty {
  background: linear-gradient(90deg, rgba(255,43,214,.55), rgba(255,122,232,.9));
  animation: shimmer 2.4s ease-in-out infinite;
  position: relative;
}
@keyframes shimmer {
  0%, 100% { opacity: .75; box-shadow: inset 0 0 8px rgba(255,255,255,.2); }
  50% { opacity: 1; box-shadow: inset 0 0 16px rgba(255,255,255,.5), 0 0 12px rgba(255,43,214,.4); }
}
.day-seg.is-idle { background: rgba(255,255,255,.08); }
.day-bar-legend {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font: 500 11px/1 var(--font-ui);
  color: var(--stone);
}
.day-bar-legend .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.dot.booked { background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }
.dot.empty { background: var(--neon-mag-hi); box-shadow: 0 0 8px var(--neon-mag); }

/* ——— Do this next ——— */
.next-cta { margin-top: 2px; }
.next-eyebrow {
  font: 700 10px/1 var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 122, 232, .85);
  margin: 0 4px 8px;
  text-shadow: 0 0 12px rgba(255,43,214,.5);
}
.next-btn {
  width: 100%;
  text-align: left;
  position: relative;
  padding: 20px 52px 20px 20px;
  min-height: 72px;
  border-radius: var(--radius);
  background: var(--metal);
  color: #050508;
  box-shadow: var(--glow-mag), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255,43,214,.65), 0 0 70px rgba(168,85,247,.35), inset 0 1px 0 rgba(255,255,255,.5);
}
.next-btn:active { transform: scale(0.99); }
.next-title {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.next-sub {
  display: block;
  font: 500 13px/1.35 var(--font-ui);
  opacity: .85;
}
.next-arrow {
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  opacity: .85;
}

/* ——— Money problems ——— */
.problems {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.problem-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow), 0 0 28px rgba(255,43,214,.2);
}
.problem-card.is-urgent {
  border-color: rgba(255, 43, 214, 0.55);
  box-shadow: 0 0 28px rgba(255,43,214,.25), var(--shadow);
}
.problem-tag {
  font: 700 10px/1 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--neon-vio-hi);
  margin-bottom: 8px;
}
.problem-card.is-urgent .problem-tag { color: var(--neon-mag-hi); text-shadow: 0 0 10px rgba(255,43,214,.5); }
.problem-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--ivory);
}
.problem-body {
  font: 400 13px/1.45 var(--font-ui);
  color: var(--stone);
}

/* ——— Chair timeline ——— */
.chair {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.chair-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.chair-head h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ivory);
}
.chair-meta {
  font: 500 12px/1 var(--font-ui);
  color: var(--stone);
}
.timeline { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tl-slot {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  min-height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tl-slot time {
  font: 600 12px/1.2 var(--font-ui);
  color: var(--stone);
  font-variant-numeric: tabular-nums;
}
.tl-slot strong { display: block; font: 600 14px/1.2 var(--font-ui); color: var(--ivory); }
.tl-slot span { font: 400 12px/1.3 var(--font-ui); color: var(--stone); }
.tl-slot.is-booked {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.25);
}
.tl-slot.is-warn {
  border-color: rgba(255, 43, 214, 0.45);
  background: rgba(255, 43, 214, 0.08);
  box-shadow: 0 0 16px rgba(255,43,214,.15);
}
.tl-slot.is-gap {
  border: 1px dashed rgba(255, 122, 232, 0.55);
  background: linear-gradient(135deg, rgba(255,43,214,.12), rgba(168,85,247,.1));
  animation: shimmer 2.8s ease-in-out infinite;
}
.tl-slot.is-soft { opacity: .85; }

.win-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(14, 10, 22, 0.55);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--ivory);
  font: 400 13px/1.4 var(--font-ui);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(34,211,238,.1);
}
.win-strip .btn-text { color: var(--neon-lime); text-shadow: 0 0 10px rgba(184,255,60,.4); }

/* ——— Bottom rail ——— */
.rail {
  position: fixed;
  left: 50%;
  bottom: calc(var(--brain-h) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(100% - 24px, 420px);
  z-index: 40;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  padding: 8px 6px;
  background: rgba(8, 6, 14, 0.88);
  border: 1px solid rgba(255, 122, 232, 0.28);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 30px rgba(255,43,214,.15);
}
.rail-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  min-height: 44px;
  border-radius: 12px;
  font: 500 10px/1 var(--font-ui);
  color: rgba(196,184,224,.65);
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.rail-ico { font-size: 15px; line-height: 1; }
.rail-item.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,43,214,.35), rgba(168,85,247,.3));
  box-shadow: 0 0 16px rgba(255,43,214,.25);
}

/* ——— Sheets ——— */
.sheet-overlay, .confirm-overlay, .brief-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 5, 8, .72);
  backdrop-filter: blur(8px);
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px;
}
.sheet, .confirm-sheet, .brief-sheet {
  width: min(100%, 440px);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--panel-solid);
  border: 1px solid var(--panel-border);
  border-radius: 24px 24px 18px 18px;
  box-shadow: var(--shadow), 0 0 50px rgba(255,43,214,.2);
  padding: 10px 22px 22px;
  animation: sheet-up .35s var(--ease);
  color: var(--ink);
}
@keyframes sheet-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.confirm-handle {
  width: 36px; height: 4px;
  border-radius: 999px;
  background: rgba(255, 122, 232, .4);
  margin: 4px auto 14px;
  box-shadow: 0 0 10px rgba(255,43,214,.4);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sheet-head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ivory);
}
.sheet-body { font: 400 14px/1.5 var(--font-ui); color: var(--stone); }
.sheet-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.sheet-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--ink);
  font: 500 13px/1.3 var(--font-ui);
}
.sheet-list .meta { color: var(--stone); font-weight: 400; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sheet-note {
  margin-top: 14px;
  font: 500 11px/1.4 var(--font-ui);
  color: var(--stone);
}
.more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.more-tile {
  padding: 18px 14px;
  min-height: 72px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255, 122, 232, 0.22);
  text-align: left;
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.more-tile:hover {
  background: rgba(255, 43, 214, 0.12);
  box-shadow: 0 0 20px rgba(255,43,214,.2);
}
.more-tile strong {
  display: block;
  font: 600 14px/1.2 var(--font-ui);
  color: var(--ivory);
  margin-bottom: 4px;
}
.more-tile span { font: 400 12px/1.3 var(--font-ui); color: var(--stone); }

/* ——— Brief ——— */
.brief-sheet-eyebrow {
  font: 700 10px/1 var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--neon-mag-hi);
  margin-bottom: 8px;
  text-shadow: 0 0 12px rgba(255,43,214,.5);
}
.brief-sheet-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--ivory);
}
.brief-money {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.brief-money > div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.brief-money > div.is-gap {
  background: rgba(255, 43, 214, 0.1);
  border-color: rgba(255, 43, 214, 0.35);
}
.brief-money span {
  display: block;
  font: 600 10px/1 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
}
.brief-money strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ivory);
}
.brief-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.brief-points li {
  font: 400 14px/1.45 var(--font-ui);
  color: var(--stone);
  padding-left: 14px;
  border-left: 3px solid transparent;
  border-image: var(--metal) 1;
}
.brief-points strong { color: var(--ivory); }
.brief-next-line {
  font: 500 14px/1.4 var(--font-ui);
  color: var(--ink);
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.brief-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.brief-sheet-actions .btn-ghost-dark,
.brief-sheet-actions .btn-primary { width: 100%; }
.btn-brief-next {
  width: 100%;
  padding: 12px;
  min-height: 44px;
  font: 600 13px/1 var(--font-ui);
  color: var(--neon-cyan-hi);
  text-align: center;
  border-radius: 12px;
}
.btn-brief-next:hover { background: rgba(34, 211, 238, 0.1); }

/* ——— Confirm ——— */
.confirm-eyebrow {
  font: 700 10px/1 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--neon-mag-hi);
  margin-bottom: 8px;
}
.confirm-sheet h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ivory);
}
.confirm-impact {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--metal);
  color: #050508;
  font: 600 14px/1.35 var(--font-ui);
  box-shadow: var(--glow-mag);
}
.confirm-preview {
  white-space: pre-wrap;
  font: 500 13px/1.5 var(--font-ui);
  color: var(--ink);
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 12px;
}
.confirm-bullets {
  list-style: none;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.confirm-bullets li {
  font: 400 13px/1.4 var(--font-ui);
  color: var(--stone);
  padding-left: 18px;
  position: relative;
}
.confirm-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--metal);
  box-shadow: 0 0 8px rgba(255,43,214,.6);
}
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.confirm-actions .btn-primary,
.confirm-actions .btn-ghost-dark { width: 100%; }
.confirm-note {
  margin-top: 14px;
  font: 500 11px/1.4 var(--font-ui);
  color: var(--stone);
  text-align: center;
}

/* ——— Brain dock ——— */
.brain-dock {
  position: fixed;
  left: 50%;
  bottom: env(safe-area-inset-bottom, 0px);
  transform: translateX(-50%);
  width: min(100%, 480px);
  z-index: 45;
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.brain-dock > * { pointer-events: auto; }
.brain-whats {
  align-self: center;
  padding: 6px 12px;
  border-radius: 999px;
  font: 600 11px/1 var(--font-ui);
  color: var(--ivory);
  background: rgba(8, 6, 14, .8);
  border: 1px solid rgba(255, 122, 232, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 16px rgba(255,43,214,.15);
}
.brain-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 22px;
  background: rgba(8, 6, 14, 0.92);
  border: 1px solid rgba(255, 122, 232, 0.3);
  backdrop-filter: blur(20px);
  box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 28px rgba(255,43,214,.18);
  color: var(--ivory);
}
.brain-mic {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--metal);
  display: grid; place-items: center;
  box-shadow: var(--glow-mag);
  transition: transform .2s var(--ease);
  color: #050508;
}
.brain-mic[aria-pressed="true"] {
  transform: scale(1.06);
  box-shadow: 0 0 0 4px rgba(255,43,214,.35), var(--glow-mag);
}
.brain-body { flex: 1; min-width: 0; }
.brain-label {
  display: block;
  font: 600 13px/1.2 var(--font-ui);
}
.brain-reply {
  margin-top: 4px;
  font: 400 12px/1.4 var(--font-ui);
  color: rgba(196,184,224,.9);
  max-height: 72px;
  overflow: auto;
}
.brain-type {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.brain-type input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 232, 0.25);
  background: rgba(255,255,255,.06);
  color: #fff;
  font: 400 13px/1 var(--font-ui);
}
.brain-type input::placeholder { color: rgba(196,184,224,.45); }
.brain-send {
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 999px;
  font: 600 12px/1 var(--font-ui);
  color: #050508;
  background: linear-gradient(135deg, var(--neon-mag), var(--neon-vio));
  box-shadow: 0 0 14px rgba(255,43,214,.35);
}
.brain-type-toggle {
  width: 36px; height: 36px;
  border-radius: 10px;
  color: rgba(196,184,224,.8);
  background: rgba(255,255,255,.06);
}

/* ——— Toast ——— */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--brain-h) + var(--rail-h) + 24px);
  transform: translateX(-50%);
  z-index: 70;
  max-width: min(90vw, 360px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(8, 6, 14, .96);
  color: #fff;
  border: 1px solid rgba(255, 122, 232, 0.4);
  font: 500 13px/1.3 var(--font-ui);
  box-shadow: 0 12px 28px rgba(0,0,0,.4), 0 0 24px rgba(255,43,214,.25);
  text-align: center;
}

/* ——— Desktop ——— */
@media (min-width: 900px) {
  .dash-view {
    max-width: 1100px;
    padding: 0 24px calc(var(--rail-h) + var(--brain-h) + 32px);
  }
  .topbar { padding: 20px 8px 12px; }
  .home {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
      "pulse pulse"
      "next problems"
      "chair win";
    gap: 16px;
    padding: 8px 8px 24px;
    align-items: start;
  }
  .money-pulse { grid-area: pulse; }
  .next-cta { grid-area: next; }
  .problems { grid-area: problems; }
  .chair { grid-area: chair; }
  .win-strip { grid-area: win; align-self: stretch; flex-direction: column; align-items: flex-start; justify-content: center; }
  .pulse-num { font-size: 32px; }
  .next-title { font-size: 26px; }
  .rail { width: min(100% - 48px, 520px); }
  .sheet, .confirm-sheet, .brief-sheet {
    align-self: center;
    border-radius: 24px;
  }
  .sheet-overlay, .confirm-overlay, .brief-overlay {
    align-items: center;
  }
}

@media (min-width: 1100px) {
  .problems { grid-template-columns: 1fr; }
}

/* ——— Ops cut enhancements ——— */
.money-num, .pulse-num, .meta-£, .tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.panel, .problem-card, .money-pulse, .chair, .login-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
}
.sheet, .confirm-sheet, .brief-sheet {
  background: var(--panel-solid);
  border: 1px solid var(--panel-border);
}
.next-cta { background: transparent; border: none; box-shadow: none; }
.status-subtle {
  font: 500 11px/1.3 var(--font-ui);
  color: rgba(5,5,8,.85);
  letter-spacing: .02em;
}
.wire-strip .status-subtle { display: inline; margin-left: 8px; opacity: .9; text-transform: none; letter-spacing: 0; font-weight: 500; }

.client-card {
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid rgba(255, 122, 232, 0.2);
  margin-bottom: 10px;
}
.client-card h3 { font: 600 16px/1.2 var(--font-display); margin-bottom: 4px; color: var(--ivory); }
.client-card .meta-row { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--stone); margin: 8px 0; }
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 999px;
  font: 600 10px/1 var(--font-ui);
  text-transform: uppercase; letter-spacing: .04em;
}
.badge.ok { background: rgba(34,211,238,.15); color: var(--neon-cyan-hi); }
.badge.warn { background: rgba(184,255,60,.12); color: var(--neon-lime); }
.badge.risk { background: rgba(255,43,214,.15); color: var(--neon-mag-hi); }
.badge.soft { background: rgba(168,85,247,.15); color: var(--neon-vio-hi); }

.diary-day { display: flex; flex-direction: column; gap: 8px; }
.diary-slot {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  min-height: 52px;
}
.diary-slot time { font: 600 13px/1 var(--font-ui); color: var(--stone); font-variant-numeric: tabular-nums; }
.diary-slot.is-gap {
  background: rgba(255,43,214,.08);
  border-color: rgba(255,43,214,.3);
  animation: shimmer 2.6s ease-in-out infinite;
}
.diary-slot.is-warn { border-color: rgba(255,43,214,.5); box-shadow: 0 0 14px rgba(255,43,214,.15); }

.rota-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}
.rota-cell {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,122,232,.2);
  border-radius: 10px;
  padding: 8px 6px;
  min-height: 72px;
  text-align: center;
  font-size: 11px;
  color: var(--ink);
}
.rota-cell .dow { font-weight: 600; color: var(--stone); margin-bottom: 4px; }
.rota-cell .block {
  background: var(--metal);
  color: #050508;
  border-radius: 6px;
  padding: 4px 2px;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(255,43,214,.35);
}
.rota-cell.is-off { opacity: .55; }

.toast.is-success {
  background: linear-gradient(135deg, #0e3d3a, #0a2a40);
  border-color: rgba(34,211,238,.5);
  box-shadow: 0 0 24px rgba(34,211,238,.3);
}
.pay-link-box {
  margin-top: 10px;
  padding: 12px;
  background: rgba(168,85,247,.1);
  border-radius: 12px;
  border: 1px dashed rgba(168,85,247,.4);
  word-break: break-all;
  font: 500 12px/1.4 var(--font-ui);
  color: var(--ink);
}
.book-shell {
  max-width: 440px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.book-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow), 0 0 50px rgba(255,43,214,.15);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
}
.book-card h1 {
  font: 600 26px/1.15 var(--font-display);
  margin-bottom: 6px;
  color: var(--ivory);
  letter-spacing: -0.03em;
}
.book-card .lede { color: var(--stone); font-size: 14px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font: 600 12px/1.2 var(--font-ui); color: var(--stone); margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 232, 0.25);
  background: rgba(255,255,255,.05);
  font: 500 15px/1.2 var(--font-ui);
  color: var(--ink);
  min-height: 44px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--neon-mag);
  box-shadow: 0 0 0 3px rgba(255,43,214,.2), 0 0 16px rgba(255,43,214,.2);
}
.field input::placeholder { color: rgba(196,184,224,.4); }
.service-picks { display: flex; flex-direction: column; gap: 8px; }
.service-pick {
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid rgba(255,122,232,.2);
  background: rgba(255,255,255,.04);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  min-height: 52px;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.service-pick.is-on {
  border-color: var(--neon-mag);
  box-shadow: 0 0 0 3px rgba(255,43,214,.2), 0 0 20px rgba(255,43,214,.25);
}
.service-pick strong { font: 600 15px/1.2 var(--font-ui); color: var(--ivory); }
.service-pick .price { font: 600 15px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--neon-mag-hi); text-shadow: 0 0 10px rgba(255,43,214,.4); }
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.slot-btn {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,122,232,.25);
  background: rgba(255,255,255,.04);
  font: 600 13px/1 var(--font-ui);
  font-variant-numeric: tabular-nums;
  min-height: 44px;
  color: var(--ink);
  transition: box-shadow .2s var(--ease), transform .15s var(--ease);
}
.slot-btn:hover { box-shadow: 0 0 14px rgba(255,43,214,.2); }
.slot-btn.is-on {
  background: var(--metal);
  color: #050508;
  border: none;
  box-shadow: var(--glow-mag);
}
.deposit-note {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  font-size: 13px;
  color: var(--ink);
}
.deposit-note strong { font-variant-numeric: tabular-nums; color: var(--neon-cyan-hi); }
.checkout-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  gap: 10px;
}
.checkout-row:last-child { border-bottom: none; }
.qr-demo {
  width: 120px; height: 120px;
  margin: 12px auto;
  background:
    repeating-linear-gradient(0deg, var(--neon-mag) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(90deg, var(--neon-cyan) 0 4px, #050508 4px 8px);
  background-blend-mode: screen;
  border-radius: 8px;
  opacity: .9;
  box-shadow: 0 0 20px rgba(255,43,214,.3);
}
.link-book {
  color: var(--neon-cyan-hi);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: 0 0 10px rgba(34,211,238,.35);
}
@media (min-width: 900px) {
  .home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  .money-pulse, .next-cta { grid-column: 1 / -1; }
  .problems { grid-column: 1; }
  .chair { grid-column: 2; grid-row: 3 / span 2; }
  .win-strip { grid-column: 1; }
}

/* ——— Staging: real sign-in (Oct 2026) ——— */
.boot-view {
  min-height: calc(100vh - 28px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px;
}
.boot-text { font: 500 14px/1.4 var(--font-ui); color: var(--ink-dim); text-align: center; }
.login-form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.login-label { font: 600 12px/1.2 var(--font-ui); color: var(--ink-dim); margin-top: 6px; }
.login-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 122, 232, 0.35);
  background: rgba(5, 5, 8, 0.6);
  color: var(--ivory);
  font: 500 16px/1.2 var(--font-ui); /* 16px stops iOS zoom */
}
.login-input::placeholder { color: rgba(196, 184, 224, 0.45); }
.login-input:focus { outline: none; border-color: var(--neon-mag-hi); box-shadow: 0 0 0 3px rgba(255, 43, 214, 0.25); }
.login-pass-row { display: flex; gap: 8px; align-items: stretch; }
.login-pass-row .login-input { flex: 1 1 auto; min-width: 0; }
.login-show {
  flex: 0 0 auto; min-width: 64px; min-height: 48px; padding: 0 12px;
  border-radius: 14px; border: 1px solid rgba(255, 122, 232, 0.35);
  background: rgba(255, 43, 214, 0.08); color: var(--ink); font: 600 13px/1 var(--font-ui);
}
.login-error {
  margin-top: 8px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 60, 100, 0.12); border: 1px solid rgba(255, 90, 120, 0.45);
  color: #ffd0dc; font: 500 13px/1.35 var(--font-ui);
}
.login-form .login-enter { margin-top: 14px; }
.login-enter[disabled] { opacity: .6; cursor: progress; transform: none; }
.soon-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  font: 600 11px/1.2 var(--font-ui); letter-spacing: .02em;
  color: var(--neon-cyan-hi); background: rgba(34, 211, 238, 0.10); border: 1px solid rgba(34, 211, 238, 0.35);
}
.settings-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.settings-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,122,232,.14);
  font: 500 13px/1.35 var(--font-ui);
}
.settings-list .state { font-weight: 600; font-size: 12px; white-space: nowrap; }
.settings-list .state.on { color: var(--neon-lime); }
.settings-list .state.off { color: var(--stone); }
.settings-list .state.soon { color: var(--neon-cyan-hi); }
.settings-email { word-break: break-all; }

/* iPad landscape/desktop home grid — single clean layout (older two blocks conflicted and hid "Do this next") */
@media (min-width: 900px) {
  .home { grid-template-areas: none; grid-template-columns: 1fr 1fr; }
  .money-pulse { grid-column: 1 / -1; grid-row: 1; }
  .next-cta { grid-column: 1 / -1; grid-row: 2; }
  .problems { grid-column: 1; grid-row: 3; }
  .win-strip { grid-column: 1; grid-row: 4; }
  .chair { grid-column: 2; grid-row: 3 / span 2; }
}

/* Hover only on real mouse pointers, and visibly weaker than the active item (touch "sticky hover" made two items look active) */
@media (hover: hover) and (pointer: fine) {
  .rail-item:not(.is-active):hover { color: #fff; background-color: rgba(255, 43, 214, 0.10); }
}

/* Dock clearance: content always ends above rail + "What's going on?" pill + Ask Studio dock.
   --dock-clear is measured live in main.js; the calc() is the no-JS fallback. */
.dash-view,
.dash-view.dash-view {
  padding-bottom: var(--dock-clear, calc(var(--rail-h) + var(--brain-h) + 40px + env(safe-area-inset-bottom, 0px)));
}
@media (min-width: 900px) {
  .dash-view { padding-bottom: var(--dock-clear, calc(var(--rail-h) + var(--brain-h) + 48px + env(safe-area-inset-bottom, 0px))); }
}
.sheet, .confirm-sheet, .brief-sheet {
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}
.sheet-overlay, .confirm-overlay, .brief-overlay {
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* ===== v3 · live mode, alerts, assistant (12 Oct 2026) ===== */
.money-pulse { position: relative; }
.sample-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font: 700 10px/1.6 var(--font-ui);
  letter-spacing: .12em; color: #050508; background: var(--neon-lime); box-shadow: 0 0 12px rgba(184,255,60,.45); vertical-align: middle;
}
.sample-badge--corner { position: absolute; top: 10px; right: 12px; }
.live-tag { color: var(--neon-cyan-hi); font-weight: 600; text-shadow: var(--glow-cyan); }
.new-dot { display: inline-block; padding: 0 6px; border-radius: 6px; font: 700 10px/1.6 var(--font-ui); background: var(--neon-mag); color: #fff; box-shadow: var(--glow-mag); }
.rail-item { position: relative; }
.rail-badge {
  position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--neon-mag); color: #fff; font: 700 11px/18px var(--font-ui); box-shadow: var(--glow-mag); animation: badge-pop .4s var(--ease);
}
@keyframes badge-pop { from { transform: scale(.3); } to { transform: scale(1); } }

.alert-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 95;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
  background: linear-gradient(120deg, rgba(255,43,214,.96), rgba(168,85,247,.96) 55%, rgba(34,211,238,.96));
  color: #fff; box-shadow: 0 0 0 2px #ff7ae8, 0 10px 40px rgba(255,43,214,.6), 0 0 80px rgba(34,211,238,.35);
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between;
}
.alert-banner.is-pop { animation: alert-in .5s var(--ease), alert-glow 1.2s ease-in-out 3; }
@keyframes alert-in { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes alert-glow { 50% { box-shadow: 0 0 0 3px #fff, 0 10px 60px rgba(255,43,214,.9), 0 0 120px rgba(34,211,238,.6); } }
.alert-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.alert-kind { font: 700 12px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; opacity: .95; }
.alert-text { font: 600 clamp(17px, 2.6vw, 22px)/1.25 var(--font-display); overflow-wrap: anywhere; }
.alert-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.alert-btns .btn-primary { background: #fff; color: #7a0f6b; }
.alert-btns .btn-ghost-dark { background: rgba(5,5,8,.35); color: #fff; border-color: rgba(255,255,255,.6); }

.approvals { background: var(--panel); border: 1px solid var(--neon-mag); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--glow-mag); margin-bottom: 14px; }
.ok-item { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ok-item div:first-child { display: flex; flex-direction: column; min-width: 0; flex: 1 1 180px; }
.ok-item span { color: var(--stone); font-size: 12px; overflow-wrap: anywhere; }
.ok-btns { display: flex; gap: 6px; }

.assist-overlay { position: fixed; inset: 0; z-index: 62; background: rgba(5,5,8,.72); backdrop-filter: blur(8px); display: grid; align-items: end; justify-items: center; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.assist-sheet {
  width: min(100%, 560px); height: min(calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)), 820px);
  display: flex; flex-direction: column; background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: 24px;
  box-shadow: var(--shadow), 0 0 50px rgba(34,211,238,.18); padding: 12px 18px 14px; color: var(--ink); animation: sheet-up .35s var(--ease);
}
.assist-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; flex-shrink: 0; }
.assist-chips .btn-chip { white-space: nowrap; }
.assist-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.as-msg { padding: 10px 12px; border-radius: 16px; max-width: 100%; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.as-msg.is-me { align-self: flex-end; background: rgba(255,43,214,.22); border: 1px solid rgba(255,122,232,.4); max-width: 85%; }
.as-msg.is-bot { align-self: stretch; background: rgba(34,211,238,.07); border: 1px solid rgba(34,211,238,.28); }
.as-msg.is-wait { opacity: .7; font-style: italic; }
.as-msg h4 { margin: 10px 0 4px; font: 600 13px var(--font-display); color: var(--neon-cyan-hi); }
.as-msg ul { margin: 0; padding-left: 18px; }
.as-eyebrow { margin: 0 0 4px; font: 700 11px var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--neon-mag-hi); }
.as-brief-text { margin: 0; font: 600 16px/1.35 var(--font-display); }
.as-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 4px 14px; }
.as-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.as-actions .btn-chip { text-align: left; }
.as-l { display: block; font-size: 12px; color: var(--ink-dim); margin-top: 8px; }
.as-field { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--panel-border); background: rgba(5,5,8,.6); color: var(--ink); font: 14px/1.4 var(--font-ui); }
textarea.as-field { resize: vertical; }
.as-context { margin: 6px 0 0; font-size: 12px; color: var(--stone); border-left: 2px solid var(--neon-vio); padding-left: 8px; }
.approval-card { border-color: var(--neon-mag); box-shadow: var(--glow-mag); }
.approval-card.is-done { box-shadow: none; opacity: .85; }
.done-pill { color: var(--neon-lime); font-weight: 700; }
.assist-form { display: flex; gap: 8px; margin-top: 10px; flex-shrink: 0; }
.assist-form input { flex: 1; min-width: 0; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--panel-border); background: rgba(5,5,8,.6); color: var(--ink); font: 15px var(--font-ui); }
.as-day { margin: 14px 0 6px; font: 600 14px var(--font-display); color: var(--neon-cyan-hi); }
.inbox-live li { align-items: center; gap: 10px; }
.inbox-line { min-width: 0; overflow-wrap: anywhere; }
.empty-state { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px dashed var(--panel-border); border-radius: 14px; }
.empty-state span { color: var(--stone); font-size: 13px; }
.owed-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.owed-form input { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--panel-border); background: rgba(5,5,8,.6); color: var(--ink); font: 14px var(--font-ui); min-width: 0; }
.owed-form button { grid-column: 1 / -1; }
.toggle { min-width: 64px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--panel-border); background: rgba(5,5,8,.6); color: var(--ink-dim); font: 600 13px var(--font-ui); cursor: pointer; }
.toggle.is-on { background: var(--metal); color: #fff; border-color: transparent; box-shadow: var(--glow-mag); }
.toggle:disabled { opacity: .5; }
.assist-overlay { grid-template-columns: minmax(0, 1fr); }
.assist-sheet { min-width: 0; justify-self: center; }
.assist-chips, .assist-log, .assist-form { min-width: 0; }
@media (min-width: 900px) {
  .approvals { grid-column: 1 / -1; grid-row: 3; }
  .home > .problems { grid-row: 4; }
  .home > .win-strip { grid-row: 5; }
  .home > .chair { grid-row: 4 / span 2; }
}
.alert-banner { z-index: 120; }
.assist-overlay { padding-top: calc(40px + env(safe-area-inset-top, 0px)); }
.assist-sheet { height: min(calc(100dvh - 56px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)), 820px); }
