/* Broomerang demo — the real app, modeled inside a phone. */

body { overflow-x: hidden; }

.demo-stage {
  max-width: 1360px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 430px) minmax(280px, 360px);
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
  padding: 10px 20px 60px;
  position: relative; z-index: 1;
  align-items: start;
}

.side-panel { position: sticky; top: 24px; }
.side-panel .card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 18px; margin-bottom: 12px;
}
.side-panel h4 { margin: 0 0 8px; font-size: 15px; font-weight: 900; }
.side-panel p { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--sub); line-height: 1.55; }
.side-panel ul { margin: 0; padding-left: 18px; }
.side-panel li { font-size: 13px; font-weight: 600; color: var(--sub); margin-bottom: 7px; line-height: 1.5; }
.side-panel li b { color: var(--ink); }
.tour-btn {
  font: inherit; font-weight: 900; font-size: 13.5px;
  color: var(--ink-on-amber);
  background: linear-gradient(90deg, var(--amber), var(--amber-deep));
  border: none; border-radius: 12px;
  padding: 12px 16px; cursor: pointer; width: 100%;
  box-shadow: 0 6px 18px rgba(251,191,36,0.2);
}
.tour-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber); color: var(--ink-on-amber);
  font-weight: 900; font-size: 12px; margin-right: 8px;
}
.tour-nav { display: flex; gap: 8px; margin-top: 12px; }
.tour-nav button {
  flex: 1; font: inherit; font-weight: 800; font-size: 13px;
  border: none; border-radius: 10px; padding: 10px; cursor: pointer;
}
.tour-nav .next { background: var(--amber); color: var(--ink-on-amber); }
.tour-nav .skip { background: rgba(255,255,255,0.08); color: var(--sub); }

/* ---- The phone ---- */
.phone-shell {
  background: #0A0F16;
  border: 4px solid #232B36;
  border-radius: 48px;
  padding: 10px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), inset 0 0 0 2px rgba(255,255,255,0.04);
}
.phone-screen {
  position: relative;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-warm) 100%);
  border-radius: 38px;
  overflow: hidden;
  height: min(78vh, 780px);
  display: flex; flex-direction: column;
}
.statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px 4px;
  font-size: 12px; font-weight: 800; color: var(--ink);
  flex-shrink: 0;
}
.statusbar .glyphs { font-size: 10px; opacity: 0.8; }

/* Demo controls live OUTSIDE the phone — the phone stays the real app. */
.demo-controls {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.demo-controls button {
  appearance: none; -webkit-appearance: none;
  font-family: 'Nunito', -apple-system, sans-serif;
  font-weight: 800; font-size: 12.5px;
  color: var(--sub);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
  transition: all 0.15s ease;
}
.demo-controls button:hover { color: var(--ink); border-color: var(--blue); }
.demo-controls #switch-btn { color: var(--ink); border-color: rgba(96,165,250,0.4); }

.phone-main {
  flex: 1; overflow-y: auto;
  padding: 6px 16px 90px;
  -webkit-overflow-scrolling: touch;
}
.phone-main::-webkit-scrollbar { display: none; }

/* App-style header */
.h-title { font-size: 26px; font-weight: 900; margin: 6px 0 2px; }
.h-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.h-row { display: flex; align-items: center; gap: 8px; }
.h-row .grow { flex: 1; min-width: 0; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); border: none; cursor: pointer;
  font-size: 15px; color: var(--ink);
}
.icon-btn.gold { background: rgba(251,191,36,0.12); color: var(--amber); }

/* Scope picker — white selected chip, scrubbable look */
.scope {
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px; padding: 4px; margin: 12px 0;
}
.scope button {
  flex: 1; font: inherit; font-weight: 800; font-size: 12.5px;
  color: var(--sub); background: none; border: none;
  border-radius: 999px; padding: 8px 0; cursor: pointer;
}
.scope button.on { background: #fff; color: #1A2230; }

/* Ring card */
.ring-card {
  display: flex; align-items: center; gap: 13px;
  background: rgba(37,99,235,0.16);
  border-radius: 18px; padding: 13px; margin-bottom: 12px;
}
.ring {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ring::before {
  content: attr(data-label);
  width: 40px; height: 40px; border-radius: 50%;
  background: #17202C;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: var(--ink);
}
.ring-text b { display: block; font-size: 15px; font-weight: 900; }
.ring-text b .tw { color: var(--amber); display: inline-block; animation: soft-tw 1.2s ease-in-out infinite alternate; }
@keyframes soft-tw { from { opacity: 0.4; } to { opacity: 1; } }
.ring-text span { font-size: 11px; color: var(--sub); font-weight: 700; }

.sec-h { font-size: 15px; font-weight: 900; margin: 14px 0 8px; display: flex; align-items: center; gap: 6px; }
.sec-h .count {
  font-size: 10.5px; font-weight: 900; color: var(--sub);
  background: rgba(255,255,255,0.14);
  min-width: 19px; height: 19px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.sec-h.coral { color: var(--coral); }
.sec-sub { font-size: 11px; color: var(--sub); font-weight: 700; margin: -6px 0 8px; }

/* Task rows — date tile + emoji tile, matching the app */
.row {
  display: flex; align-items: center; gap: 9px;
  background: var(--card);
  border-radius: 16px; padding: 10px;
  margin-bottom: 8px;
  position: relative;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.row.done { opacity: 0.5; }
.row.done .r-name { text-decoration: line-through; }
.d-tile {
  width: 36px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 900; letter-spacing: 0.5px;
  background: rgba(255,255,255,0.08); color: var(--ink);
}
.d-tile b { font-size: 15px; }
.d-tile.today { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #07172E; }
.d-tile.late { background: var(--coral); color: #fff; }
.r-emoji {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; background: rgba(96,165,250,0.13);
}
.r-body { flex: 1; min-width: 0; }
.r-name { font-size: 13.5px; font-weight: 800; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-meta { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.r-meta .earn { color: var(--amber); }
.r-meta .late { color: var(--coral); }
.check {
  width: 25px; height: 25px; border-radius: 50%; flex-shrink: 0;
  border: 2.5px solid var(--blue);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-on-amber); font-size: 12px; font-weight: 900;
  cursor: pointer; font-family: inherit;
  transition: all 0.18s ease;
}
.check:hover { transform: scale(1.12); }
.check.on {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  border-color: transparent; color: #07172E;
  animation: check-pop 0.35s ease;
}
@keyframes check-pop { 40% { transform: scale(1.3); } }
.avatar {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 10px;
}
.fly {
  position: absolute; right: 8px; top: -2px;
  color: var(--amber); font-weight: 900; font-size: 12.5px;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(251,191,36,0.6);
  animation: fly-up 0.9s ease-out forwards;
}
@keyframes fly-up {
  0% { opacity: 0; transform: translateY(8px) scale(0.6); }
  25% { opacity: 1; transform: translateY(-4px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-28px); }
}

.card { background: var(--card); border-radius: 18px; padding: 13px; margin-bottom: 10px; }
.card h4 { margin: 0 0 8px; font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }
.empty { text-align: center; padding: 20px 12px; color: var(--sub); font-size: 12.5px; font-weight: 700; }
.empty .big { font-size: 28px; display: block; margin-bottom: 6px; }

/* Bank */
.bank-hero {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 18px; padding: 15px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.bank-hero .amt { font-size: 28px; font-weight: 900; color: var(--amber); }
.bank-hero span { display: block; font-size: 11px; color: var(--sub); font-weight: 700; }
.bank-hero .boom { font-size: 30px; transform: rotate(-15deg); }
.store-btn {
  font: inherit; font-weight: 900; font-size: 14px;
  color: var(--ink-on-amber);
  background: linear-gradient(90deg, var(--amber), var(--amber-deep));
  border: none; border-radius: 15px;
  padding: 14px; cursor: pointer; width: 100%;
  margin-bottom: 10px;
  box-shadow: 0 8px 22px rgba(251,191,36,0.22);
}
.goal-card { background: var(--card); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.goal-head { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 900; margin-bottom: 8px; }
.goal-head .togo { color: var(--amber); }
.goal-bar { height: 9px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; }
.goal-bar i { display: block; height: 100%; background: var(--amber); transition: width 0.5s ease; }
.goal-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 10.5px; font-weight: 800; color: var(--sub); }
.chip-btn {
  font: inherit; font-weight: 900; font-size: 11px;
  color: var(--inkOnMint, #07172E);
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  border: none; border-radius: 999px; padding: 7px 13px; cursor: pointer;
  color: #07172E;
}
.earn-tiles { display: flex; gap: 7px; margin-bottom: 10px; }
.earn-tile { flex: 1; text-align: center; background: var(--card); border-radius: 14px; padding: 9px 2px; }
.earn-tile .e { font-size: 17px; }
.earn-tile b { display: block; font-size: 10px; font-weight: 900; }
.earn-tile span { font-size: 9px; font-weight: 800; color: var(--amber); }
.txn { display: flex; align-items: center; gap: 9px; padding: 8px 2px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.txn:last-child { border-bottom: none; }
.txn .t { flex: 1; font-size: 12px; font-weight: 800; }
.txn .t small { display: block; font-size: 10px; color: var(--muted); }
.txn .amt { font-weight: 900; font-size: 12.5px; }
.txn .amt.pos { color: var(--emerald); }
.txn .amt.neg { color: var(--coral); }

/* Store grid */
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.reward-card { background: var(--card); border-radius: 15px; padding: 10px; }
.reward-card .e { font-size: 20px; }
.reward-card b { display: block; font-size: 11.5px; font-weight: 900; margin: 5px 0 1px; min-height: 28px; }
.reward-card i { font-style: normal; display: block; font-size: 9px; color: var(--muted); font-weight: 700; margin-bottom: 7px; }
.reward-card button {
  font: inherit; font-weight: 900; font-size: 10.5px;
  border: none; border-radius: 999px; padding: 7px 0; width: 100%; cursor: pointer;
  background: var(--amber); color: var(--ink-on-amber);
}
.reward-card button:disabled { background: rgba(255,255,255,0.08); color: var(--muted); cursor: default; }
.voucher {
  display: flex; align-items: center; gap: 9px;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 14px; padding: 10px; margin-bottom: 8px;
}
.voucher.used { background: rgba(255,255,255,0.04); border-color: transparent; opacity: 0.6; }
.voucher .e { font-size: 17px; width: 34px; height: 34px; border-radius: 10px; background: rgba(251,191,36,0.12); display: flex; align-items: center; justify-content: center; }
.voucher .t { flex: 1; font-size: 12px; font-weight: 800; }
.voucher .t small { display: block; font-size: 9.5px; color: var(--muted); }
.voucher button {
  font: inherit; font-weight: 900; font-size: 10px;
  background: var(--amber); color: var(--ink-on-amber);
  border: none; border-radius: 999px; padding: 7px 11px; cursor: pointer;
}

/* Workload */
.wl-chips { display: flex; gap: 6px; margin-bottom: 12px; }
.wl-chips button {
  font: inherit; font-weight: 800; font-size: 12px;
  color: var(--sub); background: rgba(255,255,255,0.08);
  border: none; border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.wl-chips button.on { background: #fff; color: #1A2230; }
.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut {
  width: 108px; height: 108px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.donut::before {
  content: attr(data-c);
  width: 78px; height: 78px; border-radius: 50%;
  background: #1A222E;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: var(--ink);
  text-align: center; white-space: pre-line;
}
.wl-rows { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.wl-row .l { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 900; margin-bottom: 4px; }
.wl-row .l .pct { margin-left: auto; }
.wl-bar { height: 9px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; display: flex; }
.wl-bar i { height: 100%; transition: width 0.5s ease; }

.btn-sweep {
  font: inherit; font-weight: 900; font-size: 14px;
  color: #07172E;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  border: none; border-radius: 14px;
  padding: 13px; cursor: pointer; width: 100%; margin-top: 4px;
}
.btn-ghost {
  font: inherit; font-weight: 800; font-size: 13px;
  color: var(--sub); background: rgba(255,255,255,0.07);
  border: none; border-radius: 12px; padding: 11px 16px; cursor: pointer;
}
.btn-amber {
  font: inherit; font-weight: 900; font-size: 14px;
  color: var(--ink-on-amber);
  background: linear-gradient(90deg, var(--amber), var(--amber-deep));
  border: none; border-radius: 14px;
  padding: 13px 18px; cursor: pointer; width: 100%;
}
.btn-mini {
  font: inherit; font-weight: 900; font-size: 11.5px;
  border: none; border-radius: 999px; padding: 8px 13px; cursor: pointer;
}
.btn-mini.yes { background: var(--blue); color: #07172E; }
.btn-mini.no { background: rgba(244,117,107,0.16); color: var(--coral); }

/* Settings-ish rows */
.set-row {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border-radius: 16px; padding: 12px;
  margin-bottom: 8px; cursor: pointer;
}
.set-row .e { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.set-row .t { flex: 1; font-size: 13.5px; font-weight: 800; }
.set-row .t small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; }

/* Chores filters */
.search {
  width: 100%; font: inherit; font-weight: 700; font-size: 13.5px;
  color: var(--ink);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 13px; padding: 11px 13px;
  margin-bottom: 8px; outline: none;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chips button {
  font: inherit; font-weight: 800; font-size: 11px;
  color: var(--sub); background: rgba(255,255,255,0.06);
  border: 1px solid transparent; border-radius: 999px;
  padding: 6px 11px; cursor: pointer;
}
.chips button.on { background: rgba(96,165,250,0.16); color: var(--blue); border-color: rgba(96,165,250,0.4); }
.fab {
  position: absolute; right: 16px; bottom: 84px; z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #07172E; font-size: 22px; font-weight: 900;
  border: none; cursor: pointer;
  box-shadow: 0 10px 26px rgba(37,99,235,0.4);
}

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 14px; font-weight: 900; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: 9px; font-weight: 900; color: var(--muted); padding: 3px 0; }
.cal-cell {
  min-height: 40px; border-radius: 9px;
  background: rgba(255,255,255,0.03);
  padding: 3px; cursor: pointer;
  font-size: 10px; font-weight: 800; color: var(--sub);
  border: 1px solid transparent;
}
.cal-cell.today { border-color: var(--blue); color: var(--ink); }
.cal-cell.sel { background: rgba(96,165,250,0.18); color: var(--ink); }
.cal-dots { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 2px; }
.cal-dots i { width: 4px; height: 4px; border-radius: 50%; }

/* Tab bar inside phone */
.tabbar {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 6;
  display: flex; flex-wrap: nowrap;
  background: rgba(17,22,31,0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 5px;
}
.tabbar button {
  flex: 1; min-width: 0; font: inherit; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 0; border-radius: 16px;
  font-size: 9px; font-weight: 800; color: var(--muted);
  position: relative;
}
.tabbar button .ic { font-size: 19px; }
.tabbar button.on { color: var(--blue); background: rgba(255,255,255,0.06); }
.tabbar button .pip {
  position: absolute; top: 1px; right: 18%;
  min-width: 14px; height: 14px; border-radius: 7px;
  background: var(--coral); color: #fff;
  font-size: 9px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

/* Sheet inside phone */
.veil {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(6,10,16,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  border-radius: 38px;
}
.veil.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; z-index: 21;
  left: 0; right: 0; bottom: 0;
  transform: translateY(105%);
  max-height: 84%;
  overflow-y: auto;
  background: #141C27;
  border-radius: 26px 26px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 10px 16px 24px;
  transition: transform 0.32s cubic-bezier(0.3, 1, 0.36, 1);
  touch-action: pan-y;
}
.sheet.on { transform: translateY(0); }
.sheet .grab-zone { padding: 4px 0 10px; cursor: grab; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.25); margin: 0 auto; }
.sheet h3 { margin: 0 0 4px; font-size: 17px; font-weight: 900; }
.sheet .sub { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.sheet label { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); margin: 12px 0 5px; }
.sheet input[type="text"], .sheet select {
  width: 100%; font: inherit; font-weight: 700; font-size: 13.5px;
  color: var(--ink); background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 11px; outline: none;
}
.sheet .close-x {
  position: absolute; top: 12px; right: 14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: none; cursor: pointer;
  color: var(--sub); font-weight: 900; font-size: 13px;
}
.seg { display: flex; gap: 5px; flex-wrap: wrap; }
.seg button {
  flex: 1; font: inherit; font-weight: 800; font-size: 11px;
  color: var(--sub); background: rgba(255,255,255,0.06);
  border: none; border-radius: 10px; padding: 9px 4px; cursor: pointer;
  white-space: nowrap;
}
.seg button.on { background: #fff; color: #1A2230; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0; }
.fact { background: rgba(255,255,255,0.05); border-radius: 11px; padding: 9px; }
.fact small { display: block; font-size: 9px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.fact b { font-size: 12px; }
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.act-grid .btn-ghost { text-align: center; font-size: 12px; padding: 10px 8px; }
.pick-row { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,0.05); border-radius: 12px; padding: 9px; margin-bottom: 6px; cursor: pointer; border: 1px solid transparent; }
.pick-row.on { border-color: var(--amber); background: rgba(251,191,36,0.09); }
.pick-row b { flex: 1; font-size: 12.5px; }
.pick-row small { color: var(--muted); font-weight: 700; font-size: 10.5px; }
.preview-balance { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.25); border-radius: 12px; padding: 10px; font-size: 11.5px; font-weight: 800; margin-top: 10px; }
.preview-balance .up { color: var(--emerald); }
.range-line { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; }
.range-line input[type="range"] { flex: 1; accent-color: var(--amber); }
.range-line b { color: var(--amber); min-width: 58px; text-align: right; font-size: 13px; }
.adv-toggle { font: inherit; background: none; border: none; color: var(--blue); font-weight: 800; font-size: 12px; cursor: pointer; padding: 10px 0 0; }

#toasts {
  position: absolute; bottom: 78px; left: 50%; transform: translateX(-50%);
  z-index: 30; display: flex; flex-direction: column; gap: 6px; align-items: center;
  pointer-events: none; width: 90%;
}
.toast {
  background: #1B2530; color: var(--ink);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px; padding: 9px 16px;
  font-size: 12px; font-weight: 800; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.4s forwards;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-out { to { opacity: 0; } }

.demo-topnav {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) 20px 12px;
  position: relative; z-index: 1;
}

@media (max-width: 1000px) {
  .demo-stage { grid-template-columns: minmax(0, 430px); }
  .side-panel { display: none; }
  .phone-shell { border-radius: 40px; }
  .info-fab { display: inline-block !important; }
}
@media (max-width: 620px) {
  .demo-topnav { flex-direction: column; gap: 8px; text-align: center; }
  /* On a real phone the fake status bar just doubles the real one — drop it. */
  .statusbar { display: none; }
  .phone-main { padding-top: 14px; }
}
.info-fab { display: none; }
