/*
 * The builder ("studio"): menu on the left, the live preview and the steps strip in the
 * middle, the selected step's settings (or the mascot / tour details / voice) on the right.
 * Warm orange theme. Loaded after app.css, which keeps the player and the dialogs' base styles.
 */
body.studio {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #5d6878;
  --faint: #9aa3b1;
  --line: #e4e7ec;
  --line2: #d9dde3;
  --brand: #ff6b1a;
  --brand-ink: #ffffff;
  --brand-soft: #fff1e8;
  --brand-deep: #c2410c;
  --brand-hover: #f25c05;
  --ok: #15803d;
  --warn: #b45309;
  --shadow: 0 1px 2px rgba(20, 30, 50, .04), 0 8px 26px rgba(20, 30, 50, .05);
  --display: "Inter", system-ui, sans-serif;
  height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr);
  font-size: 15px;
}
/* the preview is the real player: it keeps the player's own look, as on a customer's site */
body.studio .dp {
  --ink: #1d1830; --muted: #6b6585; --line: #e6e1f2; --brand: #7c4dff; --brand-soft: #efe8ff;
  --display: "Fredoka", "Inter", system-ui, sans-serif;
}
.studio h1, .studio h2, .studio h3 { font-weight: 700; letter-spacing: -.01em; }
.studio .btn svg, .studio .side-it svg, .studio .seg svg, .studio [data-icon] > svg { flex: none; }

/* ---------- buttons, chips, fields (studio look) ---------- */
.studio .btn { border-color: var(--line2); border-radius: 11px; padding: 9px 15px; font-size: 14.5px; gap: 7px; }
.studio .btn:hover { border-color: #c3c9d2; background: #fafbfc; }
.studio .btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(255, 107, 26, .28); }
.studio .btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.studio .btn-primary.is-done { box-shadow: none; }
.studio .btn-ghost { border-color: transparent; background: transparent; }
.studio .btn-ghost:hover { background: #f1f3f6; }
.studio .btn-soft { background: var(--brand-soft); border-color: #ffd9c2; color: var(--brand-deep); }
.studio .btn-soft:hover { background: #ffe7d6; border-color: #ffc59f; }
.studio .btn-sm { padding: 6px 11px; font-size: 13.5px; border-radius: 10px; }
.studio .icon-btn { border-color: var(--line2); width: 34px; height: 34px; color: var(--ink); }
.studio .icon-btn:hover:not(:disabled) { background: #f6f7f9; }
.studio input[type=text], .studio textarea, .studio select { border-color: var(--line2); border-radius: 11px; padding: 10px 12px; font-size: 15px; }
.studio input:focus, .studio textarea:focus, .studio select:focus { outline: 3px solid rgba(255, 107, 26, .16); border-color: var(--brand); }
.studio label.field { font-size: 13px; font-weight: 700; color: var(--muted); gap: 6px; }
.studio .hint { font-size: 13.5px; }
.studio .chip { font-size: 12.5px; padding: 4px 11px; background: #f0f2f5; }
.studio .chip.on { background: #e9f7ee; }
.studio .chip.stale { background: #fff5e1; }
.lbl { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }

/* ---------- top bar ---------- */
.studio .topbar { position: relative; height: 72px; padding: 0 24px; gap: 14px; background: #fff; backdrop-filter: none; }
/* the Showtello logo: icon + "Showtello" in Manrope ExtraBold */
.studio .brand { text-decoration: none; font-family: Manrope, var(--font); font-size: 24px; font-weight: 800; letter-spacing: -.03em; gap: 9px; margin-right: 14px; white-space: nowrap; color: #1d1830; }
.studio .brand-mark { width: 40px; height: 40px; border-radius: 0; background: none; box-shadow: none; flex: none; }
.studio .tour-switch { height: 46px; width: min(340px, 28vw); padding: 0 12px 0 6px; gap: 10px; border-color: var(--line2); border-radius: 12px; font-size: 16px; }
.studio .tour-switch:hover { background: #fafbfc; border-color: #c3c9d2; }
.studio .tour-switch img { width: 34px; height: 34px; background: var(--brand-soft); }
.studio .ts-title { flex: 1; font-weight: 600; }
.studio .ts-caret { display: grid; color: var(--muted); }

/* ---------- layout ---------- */
.studio-main { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 0; }
.screens { min-width: 0; min-height: 0; display: grid; }
.screen { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.screen[hidden] { display: none !important; }
.screen-steps { grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: minmax(0, 1fr) auto; }
.screen-steps > .wiz-foot { grid-column: 1 / -1; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 18px 12px 14px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; }
.side-it {
  display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px;
  background: none; font-size: 16px; font-weight: 500; color: #2b3445; cursor: pointer; text-align: left;
}
a.side-it { text-decoration: none; box-sizing: border-box; }
.side-it:hover { background: #f5f6f8; }
.side-it.on { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.side-it.on svg { color: var(--brand); }
.side-it:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.side-sep { height: 1px; background: var(--line); margin: 10px 6px; }
.side-fill { flex: 1; }
.side .plan-tag-box { padding: 10px 6px 0; }
/* the account's plan: a small pill with a dot in the plan's colour */
.plan-tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.plan-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #b9b3cc); flex: none; }
.plan-tag:hover { border-color: #cfc9dd; color: var(--ink); }
.plan-tag.plan-starter { --dot: #ff6b1a; }
.plan-tag.plan-pro { --dot: #7c4dff; }
.plan-tag.plan-unlimited { --dot: #16a34a; }
/* who is signed in, with Sign out */
.account { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.account:empty { display: none; }
.account .avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep); font-size: 13.5px; font-weight: 700; }
.account-text { min-width: 0; flex: 1; display: grid; line-height: 1.3; }
.account-text b { font-size: 14px; font-weight: 600; color: #2b3445; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the name opens Clerk's account settings */
.account-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px; margin: -4px; border: 0; border-radius: 12px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.account-me:hover { background: #f5f6f8; }
.account-me:focus-visible { outline: 2px solid var(--brand); }
.studio .account-out { flex: none; color: var(--muted); }

.studio .account-out:hover { color: var(--brand-deep); }

.canvas { min-width: 0; min-height: 0; overflow: auto; padding: 18px 24px 20px; display: flex; flex-direction: column; gap: 16px; }
.canvas-bar { display: flex; align-items: center; gap: 12px; }
.canvas-bar .spacer, .strip-head .spacer { flex: 1; }
.studio .seg-mode { border: 0; padding: 4px; gap: 2px; border-radius: 12px; background: #eceef2; overflow: visible; }
.studio .seg-mode button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 9px; font-size: 15px; color: var(--muted); }
.studio .seg-mode button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 30, 50, .14); }
.canvas-hint { display: inline-flex; align-items: center; gap: 7px; }
/* the preview sits straight on the canvas (the player has its own frame and shadow) */
.preview-card { display: grid; place-items: center; min-width: 0; }
/* as wide as the column, but the steps strip still peeks out below: sized by fitPreview() in builder.js */
.player-wrap { position: relative; width: 100%; max-width: 100%; }
/* narrower than PREVIEW_W (builder.js fitPreview): laid out at full size, scaled down as a whole */
.player-wrap.scaled > #player { width: var(--pw, 1100px); transform: scale(var(--pk, 1)); transform-origin: 0 0; }
/* CSS zoom where the browser has the standard one: under a transform the browser resamples the
   mascot's WebGL canvas and it goes soft (measured: 0% of a 1-px checkerboard stays crisp,
   100% with zoom). Zoom also shrinks the layout, so the wrap needs no height of its own. */
.player-wrap.scaled.zoomed > #player { transform: none; zoom: var(--pk, 1); }

/* Edit mode: the preview is a still frame of the step; clicking it places the hotspot */
/* the pointer over the screen: a large click icon (Lucide mouse-pointer-click, orange arrow; tip at 9,9.7 of 24 -> 14,15 px), with a label beside it */
.hs-catch { position: absolute; inset: 0; z-index: 8; cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2236%22%20height%3D%2236%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cg%20stroke%3D%22%23fff%22%20stroke-width%3D%224.2%22%3E%3Cpath%20d%3D%22M14%204.1%2012%206%22%2F%3E%3Cpath%20d%3D%22m5.1%208-2.9-.8%22%2F%3E%3Cpath%20d%3D%22m6%2012-1.9%202%22%2F%3E%3Cpath%20d%3D%22M7.2%202.2%208%205.1%22%2F%3E%3Cpath%20d%3D%22M9.037%209.69a.498.498%200%200%201%20.653-.653l11%204.5a.5.5%200%200%201-.074.949l-4.349%201.041a1%201%200%200%200-.74.739l-1.04%204.35a.5.5%200%200%201-.95.074z%22%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D%22%231d1830%22%20stroke-width%3D%222%22%20fill%3D%22%23fff%22%3E%3Cpath%20d%3D%22M14%204.1%2012%206%22%2F%3E%3Cpath%20d%3D%22m5.1%208-2.9-.8%22%2F%3E%3Cpath%20d%3D%22m6%2012-1.9%202%22%2F%3E%3Cpath%20d%3D%22M7.2%202.2%208%205.1%22%2F%3E%3Cpath%20d%3D%22M9.037%209.69a.498.498%200%200%201%20.653-.653l11%204.5a.5.5%200%200%201-.074.949l-4.349%201.041a1%201%200%200%200-.74.739l-1.04%204.35a.5.5%200%200%201-.95.074z%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M9.037%209.69a.498.498%200%200%201%20.653-.653l11%204.5a.5.5%200%200%201-.074.949l-4.349%201.041a1%201%200%200%200-.74.739l-1.04%204.35a.5.5%200%200%201-.95.074z%22%20fill%3D%22%23ff6b1a%22%20stroke%3D%22%231d1830%22%20stroke-width%3D%221.6%22%2F%3E%3C%2Fsvg%3E") 14 15, pointer; border-radius: 16px; }
.hs-tip { position: absolute; z-index: 1; pointer-events: none; white-space: nowrap; padding: 6px 11px; border-radius: 999px; background: #1d1830; color: #fff; font: 600 13px/1.2 Inter, system-ui, sans-serif; box-shadow: 0 4px 14px rgba(29, 24, 48, .25); }
.hs-catch.dragging { cursor: grabbing; }
.player-wrap.flash .hs-catch { animation: hs-flash 1.1s ease-out 2; }
@keyframes hs-flash { 0% { box-shadow: inset 0 0 0 3px rgba(255, 107, 26, .9); } 100% { box-shadow: inset 0 0 0 3px rgba(255, 107, 26, 0); } }
.hs-empty { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; background: rgba(245, 246, 248, .92); border-radius: 16px; text-align: center; }
.hs-empty div { display: grid; gap: 10px; justify-items: center; color: var(--muted); }

/* ---------- steps strip ---------- */
.strip-head { display: flex; align-items: center; gap: 10px; }
.strip-head h3 { font-size: 18px; }
.strip-count { color: var(--muted); font-weight: 600; }
.strip { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; align-items: stretch; flex: none; }
.strip-card {
  flex: 1 1 140px; min-width: 140px; max-width: 200px; display: grid; gap: 8px; padding: 8px; align-content: start; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; cursor: pointer; text-align: left; position: relative; transition: box-shadow .15s, border-color .15s;
}
.strip-card:hover { border-color: #c9ced6; }
.strip-card.on { border: 2px solid var(--brand); padding: 7px; box-shadow: 0 6px 18px rgba(255, 107, 26, .16); }
.strip-card.dragging { opacity: .45; }
.strip-card.drop-before::before, .strip-card.drop-after::after {
  content: ""; position: absolute; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--brand);
}
.strip-card.drop-before::before { left: -8px; }
.strip-card.drop-after::after { right: -8px; }
.strip-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #eef0f4; border: 1px solid var(--line); }
.thumb > img.s { width: 100%; height: 100%; object-fit: fill; display: block; }
.thumb > img.m { position: absolute; bottom: -2px; height: 72%; right: 3%; }
.thumb > img.m.left { right: auto; left: 3%; transform: scaleX(-1); }
.thumb .pin { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #ffb020; box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(255, 176, 32, .35); }
.thumb .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 12.5px; }
.strip-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.strip-meta b { flex: 1; min-width: 0; font-size: 14px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.num { width: 24px; height: 24px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 700; background: #eff1f4; color: var(--muted); }
.num.on, .strip-card.on .num { background: var(--brand-soft); color: var(--brand-deep); box-shadow: inset 0 0 0 1.5px var(--brand); }
.vdot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #c9ced6; }
.vdot.ok { background: #22a55a; } .vdot.stale { background: #f59e0b; }
.strip-add {
  flex: 0 0 96px; display: grid; place-items: center; align-content: center; gap: 4px; border: 1.5px dashed #cfd4db; border-radius: 14px;
  background: transparent; color: var(--muted); font-weight: 600; font-size: 14.5px; cursor: pointer;
}
.strip-add:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); }

/* ---------- right panel ---------- */
.insp { background: #fbfbfc; border-left: 1px solid var(--line); overflow-y: auto; min-height: 0; padding: 18px 20px 28px; }
.view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.view > *, .acc-body > *, .screen-card > * { min-width: 0; }
.insp { overflow-x: hidden; }
a.btn { text-decoration: none; color: var(--ink); }
.view-head { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.view-head h2 { font-size: 20px; }
.studio .mascots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; overflow: visible; }
.studio .mascot-card { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; }
.studio .mascot-card:hover { border-color: #c9ced6; }
.studio .mascot-card.on { border: 2px solid var(--brand); background: var(--brand-soft); }
.studio .mascot-card img { height: 104px; }
.studio .voice-opt { background: #fff; border-color: var(--line); border-radius: 14px; padding: 14px; }

/* step header: number, name (click to rename), previous / next, more */
.ins-head { display: flex; align-items: center; gap: 8px; min-height: 46px; }
.ins-title {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; border: 2px solid transparent; border-radius: 12px;
  padding: 5px 8px 5px 4px; background: none; cursor: text; text-align: left; font: 700 19px/1.25 var(--font); color: var(--ink);
}
.ins-title:hover { border-color: var(--line); background: #fff; }
.ins-title .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-title .t.ph { color: var(--faint); font-weight: 600; }
.ins-title svg { color: var(--faint); flex: none; }
.ins-title.editing { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(255, 107, 26, .14); cursor: auto; }
.ins-title input { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; padding: 0 !important; background: none; font: inherit; box-shadow: none; }
.ins-nav { display: flex; gap: 4px; }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px; padding: 6px; display: grid; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(20, 30, 50, .16);
}
.menu button { display: flex; align-items: center; gap: 9px; border: 0; background: none; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; text-align: left; cursor: pointer; color: var(--ink); }
.menu button:hover:not(:disabled) { background: #f5f6f8; }
.menu button:disabled { color: var(--faint); cursor: default; }
.menu button.danger { color: #c0392b; }
.menu button.danger:hover { background: #fdecea; }

/* the step's screen: thumbnail, file, replace / move hotspot */
.screen-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.screen-row { display: flex; gap: 14px; align-items: center; min-width: 0; }
.screen-row .thumb { width: 128px; flex: none; }
.screen-info { min-width: 0; display: grid; gap: 2px; }
.screen-info .file { font-size: 14.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-info .size { font-size: 13px; color: var(--faint); }
.screen-btns { display: grid; grid-template-columns: 1fr; gap: 8px; }
.hot-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.screen-drop {
  display: grid; place-items: center; gap: 8px; padding: 22px 12px; border: 1.5px dashed #cfd4db; border-radius: 12px;
  background: #fafbfc; color: var(--muted); cursor: pointer; text-align: center; font-size: 14px;
}
.screen-drop:hover, .screen-drop.over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }

/* collapsible sections */
.acc { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.acc.open { box-shadow: 0 8px 24px rgba(20, 30, 50, .06); }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 0; background: none; cursor: pointer;
  text-align: left; border-radius: 16px; color: var(--ink);
}
.acc-head:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.acc-head > svg:first-child { color: #334055; }
.acc-head b { font-size: 16.5px; white-space: nowrap; }
.acc-sum { flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc.open .acc-sum { visibility: hidden; }
.acc-head .chev { color: var(--muted); transition: transform .15s; }
.acc.open .acc-head .chev { transform: rotate(90deg); }
.acc-body { padding: 0 16px 16px; display: grid; gap: 12px; }
.acc:not(.open) .acc-body { display: none; }
.f-head { display: flex; align-items: center; gap: 8px; }
.f-head .lbl { flex: 1; }
.f-foot { display: flex; justify-content: flex-end; font-size: 13px; color: var(--muted); margin-top: -4px; }
.studio .acc textarea { min-height: 0; line-height: 1.5; }
/* "Write for me": a few words on the screen, then the writer writes the line */
.brief-box { width: min(500px, 100%); gap: 12px; }
.brief-box textarea { width: 100%; resize: vertical; font: inherit; font-size: 15px; }
.brief-err { margin: 0; color: #b42318; font-size: 13.5px; }
.brief-foot { display: flex; justify-content: flex-end; gap: 10px; }

/* spotlight word picker */
.studio .spot-pick { display: grid; gap: 8px; }
.spot-row { display: flex; align-items: center; gap: 8px; }
.spot-row .lbl, .spot-row .hint { white-space: nowrap; }
.spot-val { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--brand-soft); color: var(--brand-deep); white-space: nowrap; }
.spot-val.auto { background: #f0f2f5; color: var(--muted); }
.studio .spot-words { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px; border-radius: 12px; background: #f8f9fb; border: 1px solid var(--line); }
.studio .spot-chip { padding: 3px 8px; border-radius: 7px; background: #fff; border: 1px solid #eceef2; font-size: 14px; cursor: pointer; color: var(--ink); }
.studio .spot-chip:hover { border-color: #ffc59f; }
.studio .spot-chip.lit { background: #fff4ec; border-color: #ffe0cc; }
.studio .spot-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.studio .spot-chip.spot-auto { font-weight: 700; color: var(--muted); }
.studio .spot-chip.spot-auto.on { background: #e5e8ed; border-color: #d3d8df; color: var(--ink); }
.spot-note { font-size: 13.5px; color: var(--muted); }

/* mascot reaction */
.react { display: flex; gap: 12px; align-items: stretch; }
.react-face { width: 84px; flex: none; border-radius: 14px; background: linear-gradient(#fff4ec, #ffe6d6); position: relative; overflow: hidden; }
.react-face img { position: absolute; left: 50%; bottom: -8px; height: 118%; transform: translateX(-50%); }
.react-face img.left { transform: translateX(-50%) scaleX(-1); }
.react-sels { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.react-sels .wide { grid-column: span 2; }
.sel { display: grid; gap: 3px; min-width: 0; }
.sel .lbl { font-size: 11px; }
.studio .sel select { padding: 8px 10px; font-size: 14.5px; }
.studio .pick-tiles.pick-pose { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 12px 8px; }
.studio .pick-pose .pick-img { height: 70px; }
.studio .pick-tile.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.studio .pick-tile.on .pick-label { color: var(--brand-deep); }
.studio .auto-badge { color: var(--brand-deep); border-color: #ffc59f; }

/* voice section */
.voice-row2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- smaller screens ---------- */
@media (max-width: 1360px) {
  .studio-main { grid-template-columns: 92px minmax(0, 1fr); }
  .screen-steps { grid-template-columns: minmax(0, 1fr) 390px; }
  .stp { flex-direction: column; align-items: center; gap: 5px; padding: 9px 2px; text-align: center; }
  .stp-text b { font-size: 12.5px; }
  .stp-text small { display: none; }
  .stepper li:not(:last-child)::after { display: none; }
  .mascot-pick { grid-template-columns: minmax(0, 1fr) 300px; }
  .side { padding: 14px 8px; }
  .side-it { flex-direction: column; gap: 4px; padding: 10px 2px; font-size: 12.5px; font-weight: 600; text-align: center; }
  .account { flex-direction: column; gap: 6px; padding: 10px 0 0; }
  .account-text { display: none; }
  .studio .brand-name { display: none; }
}
@media (max-width: 1000px) {
  body.studio { height: auto; overflow: auto; }
  .studio-main, .screen-steps, .mascot-pick, .details-grid { grid-template-columns: minmax(0, 1fr); }
  .scr-body { overflow: visible; padding: 18px 14px; }
  .mascot-hero { position: static; }
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .side-it { flex: 0 0 auto; width: auto; padding: 8px 12px; }
  .stepper { display: flex; }
  .stp { flex-direction: row; padding: 6px 10px; }
  .side-sep, .side-fill { display: none; }
  .account { flex-direction: row; margin: 0 0 0 auto; padding: 0 0 0 8px; border-top: 0; }
  .canvas, .insp { overflow: visible; }
  .insp { border-left: 0; border-top: 1px solid var(--line); }
  .player-wrap { width: 100%; }
  .studio .topbar { height: auto; padding: 10px 12px; flex-wrap: wrap; }
  .studio .tour-switch { width: auto; flex: 1; }
}

/* Edit mode never shows the player's start card (not even while a tour loads) */
.player-wrap.mode-edit .dp-start { display: none; }

/* ---------- workflow screens (Mascot, Tour details, Voice, Embed) ---------- */
.scr-body { min-height: 0; overflow-y: auto; padding: 28px 40px 32px; display: grid; gap: 20px; align-content: start; }
.scr-body > * { width: min(100%, 1120px); justify-self: center; min-width: 0; }
.scr-head h1 { font-size: 28px; letter-spacing: -.02em; }
.scr-head p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.wiz-foot { display: flex; align-items: center; gap: 10px; padding: 14px 40px; background: #fff; border-top: 1px solid var(--line); }
.wiz-foot .spacer { flex: 1; }
.wiz-count { font-size: 14px; font-weight: 600; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }

/* Mascot */
.mascot-pick { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.mascot-pick .mascots { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.studio .mascot-pick .mascot-card { padding: 12px 10px; gap: 6px; }
.studio .mascot-pick .mascot-card img { height: 150px; }
.studio .mascot-pick .mascot-card b { font-size: 16px; }
.studio .mascot-pick .mascot-card small { font-size: 12.5px; color: var(--muted); }
.mascot-hero { position: sticky; top: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.hero-img { height: 300px; background: linear-gradient(#fff4ec, #ffe6d6); display: flex; justify-content: center; align-items: flex-end; overflow: hidden; }
.hero-img img { height: 100%; width: auto; max-width: none; display: block; }
.hero-img.empty { align-items: center; color: #f0a274; }
.hero-text { padding: 18px 20px 20px; display: grid; gap: 8px; justify-items: start; }
.hero-text h2 { font-size: 26px; }
.hero-tag { font-size: 15px; color: var(--brand-deep); }
.hero-text p.hint { font-size: 14.5px; line-height: 1.55; }

/* Tour details */
.details-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.details-col, .details-previews { display: grid; gap: 18px; min-width: 0; }
.details-previews { position: sticky; top: 0; }
.details-form { padding: 22px 24px; display: grid; gap: 16px; }
.details-form h3 { font-size: 17px; }
.fnote { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.fnote.ai { color: var(--brand-deep); }
.fnote svg { flex: none; }
.studio .details-form label.field { font-size: 14px; }
.studio .details-form input[type=text] { font-size: 16px; padding: 12px 14px; }
.start-preview { padding: 18px; display: grid; gap: 12px; }
.sp-card { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 22px 18px; border-radius: 16px; background: linear-gradient(160deg, #3a2f63, #1d1830); color: #fff; }
.sp-card img { height: 96px; }
.sp-card b { font-family: "Fredoka", var(--font); font-weight: 600; font-size: 19px; }
.sp-card span { font-size: 13.5px; color: #d9d4ea; }
.sp-card .sp-btn { margin-top: 6px; padding: 8px 16px; border-radius: 10px; background: #7c4dff; color: #fff; font-weight: 600; font-size: 14px; }

/* Voice */
.studio .voice-opt { padding: 18px; }
.studio .voice-current { grid-template-columns: auto minmax(0, 1fr); }
.voice-browse { padding: 18px; display: grid; gap: 14px; }
.voice-browse-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.studio .voice-browse-head input[type=search] { width: 260px; border: 1px solid var(--line2); border-radius: 11px; padding: 10px 12px; font-size: 15px; }
.studio .voice-list { max-height: none; }

/* Embed */
.embed-card { padding: 20px; display: grid; gap: 12px; }
.studio .embed-card .code { font-size: 14px; min-height: 84px; border-radius: 12px; }
.studio .embed-card .code.share-link { min-height: 0; height: 44px; padding: 0 14px; }
.embed-card .hint { margin: -6px 0 0; }
/* voice credits (builder.js renderCredits): the balance in the top bar, what they are on click */
.credits-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line2);
  background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.credits-chip[hidden] { display: none; }
.credits-chip svg { color: var(--brand); }
.credits-chip:hover { background: #fafbfc; border-color: #c3c9d2; }
.credits-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.credits-chip.low { border-color: #f5c27a; background: #fff8ec; color: var(--warn); }
.credits-chip.low svg { color: var(--warn); }
.credits-box p { margin: 0 0 10px; }
.credits-big { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 14px; }
.credits-big b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.credits-big span { color: var(--muted); font-weight: 600; }
/* what an action costs, inside its button (builder.js costTag): the credit mark and the number in
   a small tag at the button's end, tinted to sit on the button's own colour */
.cost {
  display: inline-flex; align-items: center; gap: 3px; margin: -2px -5px -2px 3px; padding: 2px 7px 2px 5px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 16px; font-variant-numeric: tabular-nums; letter-spacing: 0;
  background: var(--brand-soft); color: var(--brand-deep); text-decoration: none;
}
.studio .btn .cost svg { flex: none; }
.studio .btn-primary .cost { background: rgba(255, 255, 255, .22); color: #fff; }
.studio .btn-soft .cost { background: #fff; box-shadow: inset 0 0 0 1px #ffd9c2; }
.studio .btn:disabled .cost { background: rgba(0, 0, 0, .06); color: inherit; box-shadow: none; }
/* "Regenerate" (a new take): the link and its cost read as one, the tag outside the underline */
.link-btn.regen { display: inline-flex; align-items: center; gap: 0; text-decoration: none; }
.link-btn.regen > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.link-btn.regen .cost { margin: 0 0 0 6px; padding: 1px 6px 1px 4px; font-size: 11.5px; background: #f3f1f8; color: var(--muted); }
.link-btn.regen:hover .cost { background: var(--brand-soft); color: var(--brand-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* a line longer than a voice can take (MAX_LINE_CHARS) */
.f-foot.over { color: var(--warn); font-weight: 600; }
@media (max-width: 1200px) { .credits-chip { padding: 0 10px; } }

/* the share link: a switch (off until the owner turns it on), and who can watch */
.share-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-box { display: grid; gap: 12px; }
.share-box .hint { margin: 0; }
.share-note { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 10px 12px; border-radius: 11px; background: #f5f6f8; font-size: 14px; color: var(--ink); }
.share-note svg { margin-top: 1px; color: var(--muted); }
.share-card.on .share-note { background: var(--brand-soft); }
.share-card.on .share-note svg { color: var(--brand-deep); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.switch-ui { position: relative; width: 42px; height: 24px; border-radius: 99px; background: #d3d8df; transition: background .2s ease; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20, 30, 50, .3); transition: transform .2s ease; }
.switch input:checked + .switch-ui { background: var(--brand); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:checked ~ span:last-child { color: var(--brand-deep); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--brand); outline-offset: 2px; }
.switch input:disabled + .switch-ui { opacity: .55; }
.switch:has(input:disabled) { cursor: progress; }
.studio .embed-warn { padding: 14px 18px; background: #fff5e1; border-color: #fde3b0; }
.embed-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink); font-size: 15px; line-height: 1.55; }
/* the workflow as a vertical step list: done = orange check, current = ringed, others numbered */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.stepper li { position: relative; }
/* the line runs from this circle's centre to the next one's (the steps are equally tall, 2px apart),
   behind the circles, so it meets both of them */
.stepper li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 50%; bottom: calc(-50% - 2px); width: 2px; background: var(--line); }
/* orange only when the steps at both ends are done */
.stepper li:has(.stp.done):has(+ li .stp.done)::after { background: #ffc59f; }
.stp { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; color: inherit; }
.stp:hover { background: #f5f6f8; }
.stp.on { background: var(--brand-soft); }
.stp:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.stp-dot {
  position: relative; z-index: 1; width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid #d3d8df; color: var(--muted); font-size: 14px; font-weight: 700;
}
.stp.done .stp-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.stp.on .stp-dot { border-color: var(--brand); color: var(--brand-deep); box-shadow: 0 0 0 4px rgba(255, 107, 26, .16); }
.stp.on.done .stp-dot { color: #fff; }
.stp-text { min-width: 0; display: grid; }
.stp-text b { font-size: 15.5px; font-weight: 600; color: #2b3445; }
.stp.on .stp-text b { color: var(--brand-deep); }
.stp-text small { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
/* a pose tile, bigger, while hovered */
.pose-zoom {
  position: fixed; z-index: 60; width: 210px; padding: 10px 10px 12px; display: grid; gap: 4px; justify-items: center; pointer-events: none;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(20, 30, 50, .22);
}
.pose-zoom .pz-img { width: 100%; height: 230px; border-radius: 12px; background: linear-gradient(#fff4ec, #ffe6d6); display: flex; justify-content: center; align-items: flex-end; overflow: hidden; }
.pose-zoom img { height: 100%; width: auto; max-width: none; display: block; }
.pose-zoom b { font-size: 14px; margin-top: 4px; }
.pose-zoom small { font-size: 12px; color: var(--brand-deep); }
.pose-zoom small:empty { display: none; }

/* this step's voice, under the line in Narration */
.narr-voice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: -4px; }
.vs { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.vs::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c9ced6; }
.vs.ok { color: var(--ok); } .vs.ok::before { background: #22a55a; }
.vs.stale { color: var(--warn); } .vs.stale::before { background: #f59e0b; }
.link-btn { border: 0; background: none; padding: 0; font: 500 13.5px var(--font); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.link-btn:disabled { opacity: .5; cursor: progress; text-decoration: none; }
.link-btn .spinner { width: 12px; height: 12px; }
.acc-right { display: inline-flex; flex: none; }
.acc.open .acc-right { display: none; }

/* Tour details: three fields, then the start / end screens edited in place */
.details-form { padding: 22px 24px; display: grid; gap: 14px; }
.details-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ai-note { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ai-note svg { color: var(--faint); flex: none; }
.screens-card { padding: 20px 24px 22px; display: grid; gap: 16px; }
.screens-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.screens-head h3 { font-size: 17px; flex: 1; }
.screens-head .hint { display: inline-flex; align-items: center; gap: 6px; }
.sp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sp-wrap { display: grid; gap: 8px; align-content: start; min-width: 0; }
.screens-card .sp-card { min-height: 236px; align-content: center; }
.sp-edit { border-radius: 8px; padding: 2px 6px; outline: 1.5px dashed transparent; outline-offset: 2px; cursor: text; transition: outline-color .15s; max-width: 100%; overflow-wrap: anywhere; }
.sp-card:hover .sp-edit { outline-color: rgba(255, 255, 255, .28); }
.sp-edit:hover { outline-color: rgba(255, 255, 255, .7) !important; }
.sp-edit:focus { outline: 2px solid #fff; background: rgba(255, 255, 255, .1); }
.screens-card .sp-card .sp-btn { background: var(--sp-accent, #7c4dff); color: var(--sp-ink, #fff); padding: 8px 16px; }
.accent-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.swatches { display: flex; gap: 8px; align-items: center; }
.swatch { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swatch.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c, var(--ink)); }
.swatch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.swatch.custom { background: conic-gradient(#ff5f6d, #ffc371, #47e891, #3ec5ff, #9b6bff, #ff5f6d); overflow: hidden; }
.swatch.custom.on { background: var(--c); }
.swatch.custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
/* the previews look like the player: a white card over the dimmed, blurred tour screen */
.sp-stage { position: relative; overflow: hidden; border-radius: 16px; min-height: 250px; display: grid; place-items: center; padding: 22px 18px; background: #2e2654; }
.sp-stage::before { content: ""; position: absolute; inset: -12px; background: var(--shot, none) center / cover no-repeat; filter: blur(3px); }
.sp-stage::after { content: ""; position: absolute; inset: 0; background: rgba(28, 20, 54, .45); }
.screens-card .sp-card {
  position: relative; z-index: 1; min-height: 0; width: min(100%, 330px); padding: 20px 22px; gap: 8px; border-radius: 18px;
  background: #fff; color: #1d1830; box-shadow: 0 18px 40px rgba(20, 15, 45, .35);
}
.screens-card .sp-card img { height: 84px; }
.screens-card .sp-card b { color: #1d1830; font-size: 18px; }
.screens-card .sp-card > span:not(.sp-btn) { color: #6b6585; font-size: 14px; line-height: 1.45; }
.screens-card .sp-card:hover .sp-edit { outline-color: rgba(29, 24, 48, .2); }
.screens-card .sp-edit:hover { outline-color: rgba(29, 24, 48, .45) !important; }
.screens-card .sp-edit:focus { outline: 2px solid var(--brand); background: var(--brand-soft); }
.screens-card .sp-btn.sp-edit:focus { background: var(--sp-accent, #7c4dff); outline-color: var(--ink); }
.screens-card .sp-wrap { grid-template-rows: auto 1fr; align-content: stretch; }

.screens-card .sp-card b { font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }

/* Until the first tour and screen are decided (body.booting, removed by builder.js), show a
   spinner instead of the default screen: a new tour would otherwise flash an empty Steps view */
.studio.booting .screens, .studio.booting .stepper, .studio.booting .tour-switch, .studio.booting #publishState { visibility: hidden; }
.studio.booting .studio-main { position: relative; }
.studio.booting .studio-main::after { content: ""; position: absolute; top: 38%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 3px solid #ffd9c2; border-top-color: #ff6b1a; border-radius: 50%; animation: boot-spin .8s linear infinite; }
@keyframes boot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .studio.booting .studio-main::after { animation-duration: 2.4s; } }

/* "Generate the voice first?" before Play tour / Preview (playWithVoices in builder.js) */
.voice-ask { width: min(470px, 100%); }
.voice-ask-text { margin: 0; color: #2b3445; line-height: 1.5; }
.voice-ask-note { margin: -4px 0 4px; color: #6b7280; font-size: 13.5px; }

/* undo / redo in the top bar */
.studio .undo-redo { display: inline-flex; gap: 4px; margin-left: 6px; }
.studio .undo-redo .icon-btn:disabled { opacity: .38; cursor: default; }

/* step screens: the 16:9 crop dialog, and the note on a screen of another shape */
.fit-box { width: min(780px, 100%); }
.fit-stage { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; overflow: hidden; border-radius: 10px; background: #eef0f4; touch-action: none; user-select: none; -webkit-user-select: none; }
.fit-stage img { display: block; max-width: 100%; max-height: min(56vh, 520px); pointer-events: none; }
.fit-frame { position: absolute; box-shadow: 0 0 0 9999px rgba(20, 16, 36, .55), inset 0 0 0 1px rgba(20, 16, 36, .45); outline: 2px solid #fff; cursor: move; }
.fit-frame:focus-visible { outline: 3px solid var(--brand); }
.fit-frame i { position: absolute; width: 18px; height: 18px; border-radius: 5px; background: #fff; border: 2px solid var(--brand); }
.fit-frame i[data-c=nw] { left: -9px; top: -9px; cursor: nwse-resize; }
.fit-frame i[data-c=ne] { right: -9px; top: -9px; cursor: nesw-resize; }
.fit-frame i[data-c=sw] { left: -9px; bottom: -9px; cursor: nesw-resize; }
.fit-frame i[data-c=se] { right: -9px; bottom: -9px; cursor: nwse-resize; }
.fit-info { margin: 0; text-align: center; font-size: 13.5px; color: #6b7280; }
.fit-info.soft, .screen-info .size.soft { color: #b45309; }
.fit-foot { flex-wrap: wrap; }
.screen-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 11px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 13.5px; line-height: 1.4; }
.screen-note[hidden] { display: none; }
.screen-note span { flex: 1 1 180px; }
.screen-drop .screen-spec { font-size: 12.5px; color: var(--faint); }
@media (max-width: 480px) { .fit-foot .btn { flex: 1 1 100%; } }

/* Tour details: the start screen's mascot and text, the player's corners (renderLook in builder.js) */
.screens-card .accent-row .lbl { min-width: 112px; }
.look-toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.look-tg {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 7px; border-radius: 99px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.look-tg > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #cfc9dd; color: transparent; transition: background .15s, border-color .15s, color .15s; }
.look-tg:hover { border-color: #cfc9dd; color: var(--ink); }
.look-tg[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.look-tg[aria-pressed="true"] > span { background: var(--brand); border-color: var(--brand); color: #fff; }
.look-tg:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.studio .seg-look button { font-size: 14px; padding: 6px 14px; }
.corner-ic { display: inline-block; width: 13px; height: 13px; border: 2px solid currentColor; border-right: 0; border-bottom: 0; margin-top: 3px; }
.corner-ic.round { border-top-left-radius: 8px; }
/* the start screen's preview with neither mascot nor text: just the button; square corners */
.screens-card .sp-card.bare { background: none; box-shadow: none; padding: 0; }
.screens-card .sp-card.bare .sp-btn { padding: 12px 26px; border-radius: 99px; font-size: 16px; font-weight: 700; box-shadow: 0 12px 28px -10px var(--sp-accent, #7c4dff); }
.screens-card .sp-stage.square { border-radius: 0; }
/* the white bubble's swatch: a ring you can see */
.swatch[style*="#ffffff"].on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px #fff, 0 0 0 4px #b9b3cc; }

/* the plan and the account, pinned to the bottom of the menu (it scrolls on short screens) */
.side-foot { position: sticky; bottom: -14px; margin: 0 -12px -14px; padding: 0 12px 14px; background: #fff; }
/* the plan in the compact menu: just its name, centred; in the top bar, beside the account */
@media (max-width: 1360px) {
  .side .plan-tag-box { display: flex; justify-content: center; padding: 10px 0 0; }
  .plan-tag { padding: 3px 9px 3px 8px; font-size: 11.5px; gap: 6px; }
  .plan-tag .pt-word { display: none; }
}
@media (max-width: 1000px) {
  .side-foot { position: static; display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; padding: 0; background: none; }
  .side .plan-tag-box { flex: none; align-items: center; padding: 0; }
  .side-foot .account { margin: 0; }
}
