/* Buzora live demo. The page is the world; the app floats in it, styled after the real
   desktop app (navy sidebar, light workspace, white cards, Nunito Sans). */
.demo-page {
  --tour-h: 84px;
  /* the app's own palette, taken from its screens */
  --a-side: #15214d;
  --a-side-2: #1c2b62;
  --a-side-ink: #dfe5f7;
  --a-side-ink-2: #8e9bc4;
  --a-bg: #ecf0fb;
  --a-bg-2: #ebe9fb;
  --a-card: #ffffff;
  --a-ink: #0f1733;
  --a-ink-2: #4b5574;
  --a-rule: #dfe4f1;
  --a-blue: #2457e6;
  --a-blue-ink: #ffffff;
  --a-blue-soft: #e4ebfd;
  --a-amber: #a35f00;
  --a-amber-bar: #efb14a;
  --a-good: #13734a;
  --a-bad: #b3261e;
  --a-font: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  height: 100svh; overflow: hidden;
}
.demo-page .world-labels { display: none; }

/* ---------------------------------------------------------------- nav */
.nav-demo { display: grid; grid-template-columns: 1fr auto 1fr; }
.nav-demo .brand { margin-right: 0; }
.demo-where { justify-self: center; margin: 0; color: var(--on-night-2); }
.nav-demo-end { justify-self: end; display: flex; align-items: center; gap: var(--s-5); }
.nav-back { font-size: var(--t-small); color: var(--on-night); text-decoration: none; opacity: 0.8; }
.nav-back:hover { opacity: 1; }

/* ---------------------------------------------------------------- title and end cards */
.demo { position: relative; z-index: 1; height: 100svh; }
.demo-intro, .demo-end {
  position: absolute; left: var(--gutter); bottom: calc(var(--s-8) + 10px); max-width: 44rem; z-index: 5;
}
.demo-end { bottom: auto; top: 50%; transform: translateY(-50%); }
.demo-end[hidden] { display: none; }
.demo-kicker { color: var(--on-night-2); margin: 0 0 var(--s-4); }
.demo-title { font-size: clamp(3rem, 8vw, 7.5rem); }
.demo-lead { margin-top: var(--s-5); max-width: 34rem; color: var(--on-night); }
.demo-start { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); margin-top: var(--s-6); }
.demo-free { background: none; border: 0; border-bottom: 1px solid var(--night-rule); font: inherit; cursor: pointer; padding: 0 0 2px; }
.demo-note { margin-top: var(--s-5); font-size: var(--t-small); color: var(--on-night-2); }
.demo-noscript { position: absolute; inset: auto var(--gutter) var(--s-7); max-width: 40rem; color: var(--on-night); }

/* ---------------------------------------------------------------- the stage and the window */
.stage {
  position: absolute; inset: var(--nav-h) 0 var(--tour-h); display: grid; place-items: center;
  padding: var(--s-4) var(--gutter); perspective: 1800px; pointer-events: none;
}
.app {
  position: relative; width: min(1240px, 100%); height: min(790px, 100%);
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: var(--a-bg); color: var(--a-ink); font-family: var(--a-font); font-size: 15px; line-height: 1.45;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 120px -30px rgba(0, 0, 0, 0.8), 0 0 140px -20px rgba(64, 108, 255, 0.28);
  opacity: 0; visibility: hidden; pointer-events: auto; transform-origin: 50% 60%;
}
.app:focus { outline: none; }
.app :focus-visible { outline: 2px solid var(--a-blue); outline-offset: 2px; }
.app-bar {
  flex: none; height: 38px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px;
  background: #0b1231; color: #c9d1ea; font-size: 12.5px;
}
.app-lights { display: flex; gap: 7px; }
.app-lights i { width: 11px; height: 11px; border-radius: 50%; background: #3a4570; }
.app-lights i:nth-child(1) { background: #ec6a5e; } .app-lights i:nth-child(2) { background: #f4bf4f; } .app-lights i:nth-child(3) { background: #61c554; }
.app-name { justify-self: center; letter-spacing: 0.01em; }
.app-ask {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 10px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.08); color: #e7ecfb; border: 0; font: 600 12px/1 var(--a-font); cursor: pointer;
}
.app-ask kbd { font: 11px/1 var(--a-font); opacity: 0.7; }
.app-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 214px minmax(0, 1fr); }

.app-side {
  background: linear-gradient(180deg, var(--a-side-2), var(--a-side)); color: var(--a-side-ink);
  padding: 18px 10px 14px; display: flex; flex-direction: column; min-height: 0; overflow: auto;
}
.app-brand { padding: 0 10px 14px; display: grid; gap: 4px; }
.app-brand svg { width: 64px; color: #fff; }
.app-brand span { font: 800 17px/1 var(--a-font); letter-spacing: 0.22em; margin-top: 8px; }
.app-brand small { font: 700 9px/1 var(--a-font); letter-spacing: 0.2em; color: var(--a-side-ink-2); }
.side-list { list-style: none; margin: 8px 0 0; padding: 0; flex: 1; }
.side-group { font: 800 11.5px/1 var(--a-font); letter-spacing: 0.06em; color: var(--a-side-ink-2); padding: 16px 12px 6px; }
.side-item {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left;
  border: 0; background: none; color: var(--a-side-ink); font: 600 14.5px/1 var(--a-font); padding: 10px 12px; border-radius: 8px; cursor: pointer;
  position: relative; transition: background-color 0.25s, color 0.25s;
}
.side-item:hover { background: rgba(255, 255, 255, 0.06); }
.side-item.is-on { background: #0d1636; color: #fff; }
.side-item.is-on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #6f97ff; }
.side-tag { font: 700 9.5px/1 var(--a-font); letter-spacing: 0.04em; color: #b8c6ff; border: 1px solid rgba(184, 198, 255, 0.35); border-radius: 999px; padding: 3px 6px; white-space: nowrap; }
.side-user { padding: 12px; display: grid; gap: 2px; font-size: 12.5px; color: var(--a-side-ink-2); }
.side-user strong { color: var(--a-side-ink); font-weight: 700; }

.app-main {
  position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain;
  background: radial-gradient(120% 90% at 0% 0%, #e3eafc, transparent 60%), linear-gradient(160deg, var(--a-bg), var(--a-bg-2));
  scrollbar-color: #c3cbe3 transparent;
}
.app-status {
  flex: none; margin: 0; height: 28px; display: flex; align-items: center; padding: 0 16px; overflow: hidden; white-space: nowrap;
  font: 12px/1 var(--a-font); color: var(--a-ink-2); background: rgba(255, 255, 255, 0.72); border-top: 1px solid var(--a-rule);
}

/* ---------------------------------------------------------------- rooms */
.room { display: none; padding: 26px 30px 34px; }
.room.is-on { display: block; }
.room-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.room-title { font: 800 28px/1.1 var(--a-font); letter-spacing: -0.01em; margin: 0; }
.room-sub { margin: 6px 0 0; color: var(--a-ink-2); max-width: 46rem; }
.room-tags { display: flex; gap: 8px; flex: none; }
.ex-badge, .rv-badge {
  font: 800 10px/1 var(--a-font); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border-radius: 5px; white-space: nowrap;
}
.ex-badge { color: var(--a-amber); background: #fff4e0; border: 1px solid #f1d29b; }
.rv-badge { color: var(--a-blue); background: var(--a-blue-soft); border: 1px solid #c8d6fb; }

.card { background: var(--a-card); border: 1px solid rgba(15, 23, 51, 0.06); border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(15, 23, 51, 0.04), 0 12px 30px -18px rgba(15, 23, 51, 0.25); }
.card + .card { margin-top: 16px; }
.grid-2 > .card + .card, .grid-3 > .card + .card, .loops > .card + .card { margin-top: 0; }
.card-title { font: 800 16px/1.2 var(--a-font); margin: 0 0 4px; }
.card-sub { margin: 0 0 14px; color: var(--a-ink-2); font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 + .card, .grid-3 + .card, .card + .grid-2, .card + .grid-3, .grid-3 + .grid-2 { margin-top: 16px; }

/* the real restaurant's grade, set apart from the sample business */
.card.real { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 40px; align-items: center; background: var(--a-side); color: var(--a-side-ink); border-color: var(--a-side); transition: opacity 0.4s; }
.real-k { font: 800 10.5px/1 var(--a-font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--a-side-ink-2); }
.real-v { font: 800 52px/1 var(--a-font); margin-top: 10px; font-variant-numeric: tabular-nums; color: #fff; letter-spacing: -0.02em; }
.real-n { font-size: 13px; color: var(--a-side-ink-2); margin-top: 6px; }
.real-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.real-list dt { font-size: 12.5px; color: var(--a-side-ink-2); }
.real-list dd { margin: 2px 0 0; font: 800 20px/1.1 var(--a-font); color: #fff; font-variant-numeric: tabular-nums; }
.real-foot { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--a-side-2); font-size: 12.5px; color: var(--a-side-ink-2); }
@media (max-width: 760px) { .card.real { grid-template-columns: minmax(0, 1fr); } .real-v { font-size: 44px; } }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: #f6f8fe; border: 1px solid var(--a-rule); border-radius: 12px; padding: 14px 16px; }
.kpi-k { font: 800 10.5px/1 var(--a-font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--a-ink-2); }
.kpi-v { font: 800 26px/1.1 var(--a-font); margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi-n { font-size: 13px; color: var(--a-ink-2); margin-top: 4px; }

.a-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 9px; border: 0;
  background: var(--a-blue); color: var(--a-blue-ink); font: 700 14.5px/1 var(--a-font); cursor: pointer; transition: transform 0.2s, background-color 0.2s;
}
.a-btn:hover { background: #1c4bd0; }
.a-btn:active { transform: scale(0.97); }
.a-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.a-btn-2 { background: #fff; color: var(--a-ink); border: 1px solid var(--a-rule); }
.a-btn-2:hover { background: #f4f6fd; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.chip { display: inline-block; font: 800 10.5px/1 var(--a-font); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; }
.chip-critical { color: #fff; background: var(--a-bad); }
.chip-warning { color: #6b3d00; background: #fde3b0; }
.chip-info { color: var(--a-blue); background: var(--a-blue-soft); }
.chip-good { color: var(--a-good); background: #dcf3e8; }
.chip-weak { color: var(--a-amber); background: #fff1d6; }
.chip-useful, .chip-strong { color: var(--a-good); background: #dcf3e8; }

.a-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.a-table th { text-align: left; font: 800 10.5px/1 var(--a-font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--a-ink-2); padding: 0 10px 10px 0; border-bottom: 1px solid var(--a-rule); }
.a-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid #edf0f7; vertical-align: top; }
.a-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* overview */
.health { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.ring { width: 108px; height: 108px; }
.ring circle { fill: none; stroke-width: 9; }
.ring .r-bg { stroke: #e6eaf5; }
.ring .r-fg { stroke: var(--a-blue); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { font: 800 26px var(--a-font); fill: var(--a-ink); }
.weekbars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 140px; margin-top: 6px; }
.wb { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; text-align: center; font-size: 12px; color: var(--a-ink-2); }
.wb-bar { align-self: end; border-radius: 6px 6px 2px 2px; background: #cdd8fa; transform-origin: bottom; }
.wb.top .wb-bar { background: var(--a-blue); }
.actions { list-style: none; margin: 0; padding: 0; }
.actions li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid #edf0f7; }
.actions .chip { justify-self: start; }
.actions li:first-child { border-top: 0; padding-top: 0; }
.act-title { font-weight: 800; }
.act-do { color: var(--a-ink-2); font-size: 14px; margin-top: 2px; }
.act-meta { font-size: 12.5px; color: var(--a-ink-2); margin-top: 4px; }

/* charts drawn in svg */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 600 11px var(--a-font); fill: var(--a-ink-2); }
.chart .grid line { stroke: #e7ebf5; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tab { border: 1px solid var(--a-rule); background: #fff; color: var(--a-ink); border-radius: 999px; padding: 7px 13px; font: 700 13px/1 var(--a-font); cursor: pointer; }
.tab.is-on { background: var(--a-ink); color: #fff; border-color: var(--a-ink); }
.tip { position: absolute; pointer-events: none; background: #0f1733; color: #fff; border-radius: 9px; padding: 9px 11px; font-size: 12.5px; line-height: 1.4; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.15s; white-space: nowrap; z-index: 3; }
.tip b { font-weight: 800; }
.chart-wrap { position: relative; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.day { background: #f6f8fe; border: 1px solid var(--a-rule); border-radius: 10px; padding: 10px; text-align: center; }
.day-n { font-size: 12px; color: var(--a-ink-2); }
.day-v { font: 800 16px/1.2 var(--a-font); margin-top: 4px; font-variant-numeric: tabular-nums; }
.day-r { font-size: 11.5px; color: var(--a-ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* model */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stages li { display: flex; align-items: center; gap: 10px; color: var(--a-ink-2); font-size: 14px; }
.stages li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c9d2ea; flex: none; box-sizing: border-box; }
.stages li.is-run { color: var(--a-ink); }
.stages li.is-run::before { border-color: var(--a-blue); border-right-color: transparent; animation: spin 0.8s linear infinite; }
.stages li.is-done { color: var(--a-ink); }
.stages li.is-done::before { background: var(--a-blue); border-color: var(--a-blue); box-shadow: inset 0 0 0 3px #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 6px; border-radius: 6px; background: #e4e9f7; overflow: hidden; margin: 16px 0 4px; }
.progress i { display: block; height: 100%; width: 0; background: var(--a-blue); border-radius: 6px; }
.acc { display: grid; gap: 12px; }
.acc-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 290px; gap: 14px; align-items: center; font-size: 14px; }
.acc-name { font-weight: 700; }
.acc-track { height: 14px; background: #edf1fa; border-radius: 7px; overflow: hidden; }
.acc-bar { height: 100%; width: 0; border-radius: 7px; background: var(--a-blue); }
.acc-bar.weak { background: var(--a-amber-bar); }
.acc-meta { color: var(--a-ink-2); font-size: 13px; }
.acc-meta b { color: var(--a-ink); font-variant-numeric: tabular-nums; }

/* decisions */
.lever-head { display: flex; justify-content: space-between; align-items: baseline; }
.lever-val { font: 800 22px/1 var(--a-font); font-variant-numeric: tabular-nums; }
.a-range { width: 100%; margin: 14px 0 4px; accent-color: var(--a-blue); }
.guards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guards li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 10px; background: #f6f8fe; border: 1px solid var(--a-rule); opacity: 0.35; transition: opacity 0.5s, background-color 0.5s; }
.guards li.is-on { opacity: 1; }
.g-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 13px/1 var(--a-font); color: #fff; background: #b8c2dd; }
.guards li.pass .g-mark { background: var(--a-good); }
.guards li.fail .g-mark { background: var(--a-amber-bar); color: #4a2b00; }
.g-t { font-weight: 800; }
.g-d { color: var(--a-ink-2); font-size: 13.5px; margin-top: 2px; }
.verdict { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: #0f1733; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s; }
.verdict.is-on { opacity: 1; transform: none; }
.verdict p { margin: 0; }
.verdict small { display: block; margin-top: 6px; color: #b9c3e6; }

/* control */
.loops { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.loop-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.loop-name { font-weight: 800; }
.loop-read { font-size: 13px; color: var(--a-ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.cap { font: 800 10px/1 var(--a-font); letter-spacing: 0.06em; text-transform: uppercase; color: #6b3d00; background: #fde3b0; padding: 4px 7px; border-radius: 5px; white-space: nowrap; }
.out { margin-top: 12px; }
.out-track { position: relative; height: 10px; border-radius: 5px; background: #edf1fa; }
.out-track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #9aa6c6; }
.out-fill { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--a-blue); }
.out-fill.at-cap { background: var(--a-amber-bar); }
.out-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--a-ink-2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.loop-do { margin-top: 10px; font-size: 13.5px; }
.pid { display: flex; gap: 12px; font-size: 12px; color: var(--a-ink-2); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ask */
.ask-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; }
.chat { display: flex; flex-direction: column; gap: 12px; min-height: 380px; }
.bubble { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; }
.bubble.you { align-self: flex-end; background: var(--a-blue); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bz { align-self: flex-start; background: #fff; border: 1px solid var(--a-rule); border-bottom-left-radius: 4px; }
.bubble.bz .caret { display: inline-block; width: 7px; height: 1em; background: var(--a-blue); vertical-align: -0.15em; margin-left: 2px; animation: blink 0.9s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.toolcall { align-self: flex-start; width: min(100%, 460px); background: #0f1733; color: #c9d2ee; border-radius: 10px; padding: 10px 12px; font: 12px/1.6 var(--mono); }
.toolcall .tc-name { color: #8fb0ff; }
.toolcall .tc-res { color: #fff; }
.toolcall .tc-wait { color: #8e9bc4; }
.suggest { display: grid; gap: 8px; align-content: start; }
.suggest button { text-align: left; border: 1px solid var(--a-rule); background: #fff; border-radius: 10px; padding: 10px 12px; font: 600 13.5px/1.35 var(--a-font); color: var(--a-ink); cursor: pointer; }
.suggest button:hover { border-color: #b8c7f4; background: #f8faff; }
.suggest button[disabled] { opacity: 0.45; cursor: default; }
.ask-note { font-size: 12.5px; color: var(--a-ink-2); }

/* agents */
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.agent { background: #fff; border: 1px solid var(--a-rule); border-radius: 12px; padding: 14px; display: grid; gap: 6px; align-content: start; }
.agent-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.agent-name { font-weight: 800; }
.agent-d { font-size: 13px; color: var(--a-ink-2); }
.switch { width: 36px; height: 21px; border-radius: 11px; background: #c9d1e8; border: 0; position: relative; cursor: pointer; flex: none; transition: background-color 0.2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch[aria-checked="true"] { background: var(--a-blue); }
.switch[aria-checked="true"]::after { transform: translateX(15px); }
.guard-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--a-ink-2); }
.guard-strip b { color: var(--a-ink); }
.runlog { list-style: none; margin: 0; padding: 0; font: 12.5px/1.6 var(--mono); color: var(--a-ink-2); min-height: 120px; }
.runlog li { opacity: 0; transform: translateY(4px); transition: opacity 0.35s, transform 0.35s; }
.runlog li.is-on { opacity: 1; transform: none; }
.runlog .ok { color: var(--a-good); } .runlog .hold { color: var(--a-amber); }
.inbox-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #edf0f7; }

/* profitability */
.matrix-wrap { position: relative; }
.quad-lbl { font: 800 12px var(--a-font); fill: var(--a-ink); }
.quad-do { font: 600 11px var(--a-font); fill: var(--a-ink-2); }
.dot { cursor: pointer; transition: r 0.2s; }

/* ---------------------------------------------------------------- ghost cursor */
.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 20; pointer-events: none; opacity: 0; }
.cursor svg { width: 22px; height: 22px; fill: #fff; stroke: #0f1733; stroke-width: 1.4; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35)); }
.cursor-ring { position: absolute; left: 2px; top: 1px; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2px solid var(--a-blue); opacity: 0; }

/* ---------------------------------------------------------------- tour bar */
.tourbar {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(1000px, calc(100% - 2 * var(--gutter)));
  height: calc(var(--tour-h) - 24px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
  padding: 0 14px; border-radius: 16px; z-index: 6;
  background: rgba(8, 13, 34, 0.68); border: 1px solid var(--night-rule); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0; visibility: hidden;
}
.tour-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--night-rule); background: rgba(255,255,255,0.04); color: var(--on-night); cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.tour-btn:hover { background: rgba(255,255,255,0.1); }
.tb-pause { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.tourbar.is-paused .tb-pause { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.tour-text { min-width: 0; }
.tour-step { margin: 0 0 3px; color: var(--on-night-2); }
.tour-caption { margin: 0; color: var(--on-night); font-size: 15px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tour-dots { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.tour-dots button { width: 22px; height: 22px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.tour-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--night-sep); transition: transform 0.3s, background-color 0.3s; }
.tour-dots button.is-done::before { background: var(--on-night-2); }
.tour-dots button.is-on::before { background: var(--signal); transform: scale(1.6); }

/* ---------------------------------------------------------------- phones and small windows */
@media (max-width: 960px) {
  .ask-wrap { grid-template-columns: minmax(0, 1fr); }
  .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .demo-page { --tour-h: 104px; }
  .nav-demo { grid-template-columns: auto 1fr; }
  .demo-where { display: none; }
  .nav-back { display: none; }
  .demo-intro { bottom: calc(var(--s-7)); right: var(--gutter); }
  .stage { padding: 8px 10px; }
  .app { height: 100%; border-radius: 12px; font-size: 14px; }
  .app-bar { grid-template-columns: auto 1fr auto; }
  .app-lights { display: none; }
  .app-name { justify-self: start; }
  .app-ask kbd { display: none; }
  .app-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app-side { padding: 6px; overflow-x: auto; overflow-y: hidden; }
  .app-brand, .side-user, .side-group { display: none; }
  .side-list { display: flex; gap: 4px; margin: 0; }
  .side-list li { flex: none; }
  .side-item { padding: 9px 11px; font-size: 13.5px; }
  .side-item.is-on::before { display: none; }
  .side-tag { display: none; }
  .room { padding: 18px 16px 26px; }
  .room-head { flex-direction: column; align-items: flex-start; }
  .room-title { font-size: 23px; }
  .grid-2, .grid-3, .agents { grid-template-columns: minmax(0, 1fr); }
  .acc-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .loops { grid-template-columns: minmax(0, 1fr); }
  .app-status { display: none; }
  .tourbar { grid-template-columns: auto minmax(0, 1fr) auto; height: calc(var(--tour-h) - 20px); bottom: 10px; }
  .tour-dots { display: none; }
  .tour-caption { font-size: 13.5px; }
  .tour-step { display: none; }
  .day-r { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stages li.is-run::before, .bubble.bz .caret { animation: none; }
}

/* the importer's sheet, re-skinned for the app's light workspace through the same tokens */
.demo-sheet {
  margin: 16px 0 0; background: var(--a-card); border: 1px solid var(--a-rule); border-radius: 14px;
  box-shadow: 0 12px 30px -18px rgba(15, 23, 51, 0.25); backdrop-filter: none; -webkit-backdrop-filter: none;
  --on-night: var(--a-ink); --on-night-2: var(--a-ink-2); --night-rule: var(--a-rule); --night-sep: #b9c1d9; --night-2: #ffffff; --signal: var(--a-blue);
}
.demo-sheet[hidden], .card[hidden] { display: none; }
.demo-sheet + .card { margin-top: 16px; }

.demo-contact { margin-top: var(--s-5); font-size: var(--t-small); color: var(--on-night-2); }
.demo-contact a { color: var(--on-night); }
