/* Counterboard studio (17 October 2026): every screen as a line. Big targets,
   one button that sends, a picture of every screen, nothing else. */
:root {
  --bg: #0b1220; --surface: #121b2d; --surface-2: #18233a; --line: #26324a;
  --text: #eef2f8; --muted: #9aa6ba; --green: #2ed47a; --green-ink: #062614;
  --gold: #f5c21b; --red: #f0646a; --blue: #4c8dff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Figtree, system-ui, sans-serif; font-size: 16px; }
a { color: var(--green); }
.st-boot, .st-gate { max-width: 520px; margin: 18vh auto 0; padding: 0 20px; text-align: center; }
.st-gate h1 { font-size: 28px; margin: 0 0 8px; }
.st-muted { color: var(--muted); margin: 0; font-size: 14px; }

/* The bar along the top: who, and the one button that sends. */
.st-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 14px 24px; background: rgba(11, 18, 32, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.st-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.st-brand img { width: 26px; height: 26px; }
.st-brand i { font-style: normal; color: var(--green); }
.st-title { flex: 1 1 200px; min-width: 0; }
.st-title h1 { margin: 0; font-size: 22px; }
.st-top-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.st-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.st-btn:hover:not(:disabled) { border-color: #3a4866; }
.st-btn:disabled { opacity: .45; cursor: not-allowed; }
.st-btn.primary { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.st-btn.ghost { background: transparent; }
.st-btn.danger { color: var(--red); }
.st-note { margin: 12px 24px 0; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 14px; }

/* A screen's line. */
.st-main { padding: 18px 24px 220px; display: grid; gap: 18px; }
.st-row { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.st-row-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 17px; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: #5b6780; }
.st-dot.live { background: var(--green); box-shadow: 0 0 0 4px rgba(46, 212, 122, .15); }
.st-pill { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.st-row-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.st-play { position: relative; display: grid; gap: 8px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.st-play .st-tv { width: 260px; }
.st-play-btn { position: absolute; left: 130px; top: 73px; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(46, 212, 122, .95); color: var(--green-ink); font-size: 22px; padding-left: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.st-play:hover .st-play-btn { transform: translate(-50%, -50%) scale(1.08); }
.st-play-say { font-size: 14px; color: var(--muted); }
.st-btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.st-watch { margin-left: auto; }
.st-watch-panel .st-tv { width: 100%; }
.st-grip { cursor: grab; color: var(--muted); font-size: 18px; line-height: 1; padding: 4px 2px; }
.st-row[draggable="true"] { cursor: default; }
.st-clip[draggable="true"] { cursor: grab; }
.dragging { opacity: .45; }
.st-row.drop-here { outline: 2px dashed var(--green); outline-offset: 4px; }
.st-clip.drop-here { border-color: var(--gold); }
.st-tv { position: relative; width: 260px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; border: 3px solid #050505; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.st-tv.tall { width: 146px; aspect-ratio: 9 / 16; }
.st-tv iframe { position: absolute; inset: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; } /* scaled to the frame by studio.js fitTvs */
.st-tv.tall iframe { width: 1080px; height: 1920px; }
.st-line { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; align-items: stretch; }
.st-clip { flex: 0 0 240px; scroll-snap-align: start; display: grid; grid-template-rows: auto auto; gap: 6px; padding: 8px; border-radius: 12px;
  background: var(--surface-2); border: 2px solid transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; position: relative; }
.st-clip:hover { border-color: #33415e; }
.st-clip.on { border-color: var(--green); }
.st-thumb { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.st-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-none { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 12px; }
.st-clip-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 44px; }
.st-secs { position: absolute; right: 10px; bottom: 9px; font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--gold); color: #1b1300; }
.st-add { flex: 0 0 110px; min-height: 96px; border-radius: 12px; border: 2px dashed #3a4866; background: transparent; color: var(--text); font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.st-add span { color: var(--green); font-size: 22px; margin-right: 4px; }
.st-add:hover { border-color: var(--green); }
.st-loop { margin-top: 6px; }
.st-empty-row { padding: 6px 0; }
.st-empty { text-align: center; padding: 40px 16px; }
.st-empty h2 { margin: 0 0 6px; }
.st-empty .st-btn { margin-top: 16px; }

/* The clip opened, or what to add: a sheet along the bottom. */
.st-panel { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 10; width: min(960px, calc(100% - 32px));
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; padding: 18px; border-radius: 18px; background: var(--surface);
  border: 1px solid #33415e; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.st-panel h2 { margin: 0 0 10px; font-size: 20px; }
.st-panel-pic { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.st-panel-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-label { margin: 10px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.st-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.st-chip { min-width: 56px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.st-chip.on { background: var(--gold); border-color: var(--gold); color: #1b1300; }
.st-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.st-btn.soon, .st-choice.soon { opacity: .5; }
.st-link { margin-top: 12px; background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 8px 0; }
.st-add-panel { grid-template-columns: 1fr; }
.st-add-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.st-choice { display: grid; gap: 4px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; text-align: left; font: inherit; cursor: pointer; min-height: 88px; }
.st-choice b { font-size: 16px; }
.st-choice span { color: var(--muted); font-size: 14px; }
a.st-choice:hover, button.st-choice:hover:not(:disabled) { border-color: var(--green); }
.st-pick { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.st-pick-one { flex: 0 0 180px; display: grid; gap: 6px; padding: 8px; border-radius: 12px; background: var(--surface-2); border: 2px solid transparent; color: var(--text); font: inherit; font-weight: 700; font-size: 14px; text-align: left; cursor: pointer; }
.st-pick-one:hover { border-color: var(--green); }
.st-pick-one img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.st-pick-one { position: relative; }
.st-pick-one .st-pages { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; }

/* A phone: the picture over the line, the sheet full width. */
@media (max-width: 760px) {
  .st-row-body { grid-template-columns: 1fr; }
  .st-play .st-tv { width: 100%; }
  .st-play-btn { left: 50%; top: calc((100vw - 70px) * 9 / 32); }
  .st-top { padding: 12px 16px; gap: 12px; }
  .st-top-actions { width: 100%; }
  .st-top-actions .st-btn.primary { flex: 1; }
  .st-main { padding: 14px 16px 260px; }
  .st-tv { width: 100%; }
  .st-tv.tall { width: 60%; }
  .st-panel { grid-template-columns: 1fr; bottom: 0; width: 100%; border-radius: 18px 18px 0 0; max-height: 80vh; overflow: auto; }
  .st-panel-pic { max-height: 180px; }
  .st-add-choices { grid-template-columns: 1fr; }
}
/* Playing a screen: the finished result, big. */
.st-watch-panel { grid-template-columns: minmax(0, 1fr) 240px; width: min(1100px, calc(100% - 32px)); }
@media (max-width: 760px) { .st-watch-panel { grid-template-columns: 1fr; } }

/* Costs, and making a board in the studio (17 Oct 2026). */
.st-cost { font-style: normal; font-weight: 800; font-size: 13px; color: var(--gold); margin-top: 4px; }
.st-cost-inline { color: var(--gold); text-transform: none; letter-spacing: 0; }
.st-credits { align-self: center; font-weight: 800; color: var(--gold); padding: 0 6px; }
.st-make { grid-template-columns: 1fr; }
.st-make.st-watch-panel { grid-template-columns: minmax(0, 1fr) 260px; }
.st-q { display: grid; gap: 6px; margin-top: 10px; font-weight: 700; }
.st-q i { font-weight: 400; color: var(--muted); font-style: normal; }
.st-q textarea, .st-q input { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; }
.st-check { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-weight: 700; min-height: 44px; }
.st-check input { width: 22px; height: 22px; }
.st-make-go { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.st-error { color: var(--red); margin: 10px 0 0; }
.st-bar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 8px 0 10px; }
.st-bar i { display: block; height: 100%; background: var(--green); transition: width .6s; }
@media (max-width: 760px) { .st-make.st-watch-panel { grid-template-columns: 1fr; } }

.st-credits { border: 1px solid #5a4a12; background: rgba(245, 194, 27, .1); border-radius: 12px; min-height: 44px; padding: 0 14px; font: inherit; font-weight: 800; color: var(--gold); cursor: pointer; }
.st-pick-one.on { border-color: var(--green); }
.st-gate-form { display: grid; gap: 4px; text-align: left; max-width: 420px; }
.st-gate-form .st-brand { justify-content: center; margin-bottom: 10px; }
.st-gate-form h1 { text-align: center; }
.st-gate-form .st-btn.primary { margin-top: 16px; }

/* Every clip the same size, whatever its seconds or how many there are (George, 17 Oct 2026:
   "sizing of things is changing rather than remaining consistent"). The seconds are the badge. */
.st-clip { flex: 0 0 240px; width: 240px; }
.st-add { flex: 0 0 120px; }
.st-line { min-height: 182px; }

/* Playing a screen (17 Oct 2026): stacked boards, the screen's transition, a moving playhead. */
.st-player { display: grid; gap: 10px; min-width: 0; }
.st-frames [data-frame] { opacity: 0; }
.st-frames [data-frame].on { opacity: 1; z-index: 2; }
.st-frames [data-frame].was { z-index: 1; opacity: 1; }
.st-frames.turn-fade iframe { transition: opacity .7s ease; }
.st-frames.turn-fade iframe.was { opacity: 0; }
.st-frames.turn-slide iframe.on { animation: st-slide .7s ease both; }
.st-frames.turn-wipe iframe.on { animation: st-wipe .8s ease both; }
.st-frames.turn-wipeup iframe.on { animation: st-wipeup .8s ease both; }
@keyframes st-slide { from { translate: 100% 0; } to { translate: 0 0; } }
@keyframes st-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes st-wipeup { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.st-timebar { position: relative; display: flex; gap: 3px; height: 26px; }
.st-timebar span { position: relative; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.st-timebar i { position: absolute; left: 8px; top: 4px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); }
.st-head { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--green); box-shadow: 0 0 0 3px rgba(46, 212, 122, .25); }
.st-live { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 800; color: var(--green); }
.st-rec { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: st-pulse 1.2s ease-in-out infinite; }
@keyframes st-pulse { 50% { opacity: .25; } }
.st-clip.playing { border-color: var(--green); box-shadow: 0 0 0 4px rgba(46, 212, 122, .22); }
.st-turns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.st-chip.small { min-width: 0; min-height: 36px; padding: 0 14px; font-size: 14px; }

/* A TV, not a picture (George, 17 Oct 2026: "make it look more like a TV"): a thin black
   frame round the board, a neck and a foot under it. */
.st-tvset { position: relative; display: block; padding: 10px 10px 12px; margin-bottom: 30px; border-radius: 10px; background: #050505;
  border: 1px solid #2c2c2c; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.st-tvset::before { content: ''; position: absolute; left: 50%; bottom: -22px; width: 14%; height: 22px; transform: translateX(-50%); background: linear-gradient(#1c1c1c, #121212); }
.st-tvset::after { content: ''; position: absolute; left: 50%; bottom: -30px; width: 34%; height: 8px; transform: translateX(-50%); border-radius: 4px; background: #1a1a1a; border: 1px solid #2c2c2c; }
.st-tvset .st-tv { width: 100%; border: 0; border-radius: 2px; box-shadow: none; }
.st-tvset.small { padding: 6px 6px 8px; margin-bottom: 18px; border-radius: 7px; }
.st-tvset.small::before { bottom: -12px; height: 12px; }
.st-tvset.small::after { bottom: -18px; height: 6px; }
.st-play .st-tvset { width: 260px; }
.st-play .st-tvset .st-tv { width: 100%; }
.st-play-btn { top: 79px; }
@media (max-width: 760px) { .st-play .st-tvset { width: 100%; } }

/* A + between clips and before the first. */
.st-line { gap: 4px; align-items: center; }
.st-gap { flex: 0 0 30px; height: 30px; border-radius: 50%; border: 1px dashed #3a4866; background: transparent; color: var(--green);
  font: inherit; font-size: 18px; font-weight: 800; line-height: 1; cursor: pointer; opacity: .55; }
.st-gap:hover, .st-gap:focus-visible { opacity: 1; border-style: solid; border-color: var(--green); background: rgba(46, 212, 122, .12); }
.st-add { align-self: stretch; margin-left: 6px; }

/* The row: the screen to play | its line, scrolling | its own panel (17 Oct 2026). */
.st-row-body { grid-template-columns: 260px minmax(0, 1fr) 220px; grid-template-areas: "play line side"; }
.st-row-body > .st-play { grid-area: play; }
.st-row-body > .st-line { grid-area: line; }
.st-row-body > .st-side { grid-area: side; }
.st-row-empty { grid-template-columns: minmax(0, 1fr) 220px; grid-template-areas: "line side"; }
.st-row-empty > .st-empty-row { grid-area: line; }
.st-side { display: grid; gap: 10px; align-content: start; padding-left: 16px; border-left: 1px solid var(--line); }
.st-side .st-btn { width: 100%; }
.st-side-field { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.st-side-field select { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; padding: 0 10px; }
.st-side-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; min-height: 36px; }
.st-side-check input { width: 20px; height: 20px; }
/* A scroll bar you can see and grab, for a long line. */
.st-line { overflow-x: scroll; scrollbar-width: auto; scrollbar-color: #4b5a78 var(--surface-2); padding-bottom: 14px; }
.st-line::-webkit-scrollbar { height: 12px; }
.st-line::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 6px; }
.st-line::-webkit-scrollbar-thumb { background: #4b5a78; border-radius: 6px; }
.st-add-screen { width: 100%; min-height: 72px; border: 2px dashed #3a4866; background: transparent; color: var(--text); font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.st-add-screen span { color: var(--green); font-size: 22px; margin-right: 6px; }
.st-add-screen:hover { border-color: var(--green); }
@media (max-width: 1100px) {
  .st-row-body { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "play line" "side side"; }
  .st-side { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
}
@media (max-width: 760px) {
  .st-row-body, .st-row-empty { grid-template-columns: 1fr; grid-template-areas: "play" "line" "side"; }
}

/* Screen settings, times and the franchise code (17 Oct 2026). */
.st-settings { max-height: 86vh; overflow: auto; }
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-ok { color: var(--green); }
.st-label i { text-transform: none; letter-spacing: 0; font-style: normal; font-weight: 400; }
.st-settings-foot { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.st-q select { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; padding: 0 10px; }
.st-rules { display: grid; gap: 8px; margin: 10px 0; }
.st-rule { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; background: var(--surface-2); }
.st-rule.off { opacity: .55; }
.st-rule > span:first-child img { width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; }
.st-rule b { grid-column: 2; }
.st-rule .st-muted { grid-column: 2; grid-row: 2; }
.st-rule .st-link { margin: 0; grid-row: 1 / span 2; }
.st-rule-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 10px; }
.st-rule-form select, .st-rule-form input { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; padding: 0 10px; }
.st-day { display: inline-flex; gap: 6px; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; }
@media (max-width: 760px) { .st-two { grid-template-columns: 1fr; } }

/* ===================================================== STEPS (17 Oct 2026)
   Home is every screen as a TV; a screen opens on three steps that slide
   across, one big button each. Calm, roomy, one thing at a time. */
.st-shop { margin: 0; font-weight: 700; color: var(--muted); }
.st-home, .st-screen { max-width: 1120px; margin: 0 auto; padding: 28px 24px 140px; }
.st-home-head h1, .st-screen-head h1 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 6px; }
.st-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 26px; }
.st-card { display: grid; gap: 8px; justify-items: start; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.st-card:hover { transform: translateY(-3px); border-color: #3a4866; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.st-card .st-tvset { width: 100%; }
/* A tall board is as tall as a wide one beside it, not three times the height (George, 25 Oct 2026: "why do the portrait boards need to be so big"). */
.st-card .st-tvset.tall { width: 34%; justify-self: center; }
/* A taller card beside it never stretches a board's TV: the picture keeps its own shape, the name sits under it. */
.st-card[data-open] { align-content: start; }
.st-card-name { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; }
.st-tv-empty { display: grid; place-items: center; color: var(--muted); font-size: 14px; background: #0f1626; }
.st-card-add { place-content: center; justify-items: center; text-align: center; min-height: 260px; border-style: dashed; border-width: 2px; }
.st-card-plus { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(46,212,122,.12); color: var(--green); font-size: 34px; font-weight: 400; }

.st-screen-head { display: grid; gap: 10px; margin-bottom: 18px; }
.st-back { justify-self: start; background: none; border: 0; color: var(--green); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; padding: 6px 0; }
.st-dots { display: flex; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.st-dots button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.st-dots button span { width: 9px; height: 9px; border-radius: 50%; background: #3a4866; }
.st-dots li.on button { color: var(--text); border-color: var(--green); background: rgba(46,212,122,.08); }
.st-dots li.on button span { background: var(--green); }
.st-dots li.done button span { background: var(--green); opacity: .5; }

.st-viewport { overflow: hidden; border-radius: 24px; }
/* The three steps side by side, 40px apart: at a third of 300% each, the next
 * step's edge showed one pixel in, a thin line down the page below a short
 * step (George, 24 Oct 2026: "strange line here"). */
.st-track { display: flex; gap: 40px; width: calc(300% + 80px); transform: translateX(calc(var(--step) * (-100% - 40px) / 3)); transition: transform .55s cubic-bezier(.2, .8, .2, 1); align-items: flex-start; }
.st-pane { width: calc((100% - 80px) / 3); flex: 0 0 auto; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; min-width: 0; }
.st-pane[inert] { opacity: .35; transition: opacity .4s; }
.st-pane-head h2 { margin: 0 0 4px; font-size: 24px; }
.st-pane-head { margin-bottom: 16px; }
.st-play-big { justify-self: center; display: block; width: min(760px, 100%); margin: 0 auto 26px; }
.st-play-big .st-tvset { width: 100%; }
.st-play-big .st-play-btn { left: 50%; top: 45%; width: 78px; height: 78px; font-size: 30px; }
.st-group { display: grid; gap: 12px; padding: 18px; margin-top: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.st-group h3 { margin: 0; font-size: 18px; }
.st-group .st-btn { justify-self: start; }
.st-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.st-inline input { flex: 1 1 220px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 18px; }
.st-group .st-q input, .st-group .st-q select { background: var(--surface); }
.st-more summary { cursor: pointer; font-weight: 800; list-style: none; }
.st-more summary::before { content: '\203A'; display: inline-block; margin-right: 8px; transition: transform .2s; }
.st-more[open] summary::before { transform: rotate(90deg); }

/* iPhone-style switches. */
.st-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; cursor: pointer; }
.st-toggle span { display: grid; gap: 2px; }
.st-toggle i { font-style: normal; color: var(--muted); font-size: 14px; }
.st-toggle input { appearance: none; flex: 0 0 52px; width: 52px; height: 32px; border-radius: 999px; background: #3a4866; position: relative; cursor: pointer; transition: background .25s; }
.st-toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: left .25s cubic-bezier(.2, .8, .2, 1); }
.st-toggle input:checked { background: var(--green); }
.st-toggle input:checked::after { left: 23px; }

/* One big button, docked. */
.st-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px max(24px, calc((100% - 1072px) / 2)); background: rgba(11, 18, 32, .92); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.st-btn.big { min-height: 56px; padding: 0 30px; font-size: 18px; border-radius: 16px; }
.st-tick { position: fixed; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: 8px; background: rgba(11, 18, 32, .82); backdrop-filter: blur(6px); animation: st-fade .25s ease; }
.st-tick span { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--green-ink); font-size: 56px; animation: st-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.st-tick b { font-size: 28px; }
.st-tick i { font-style: normal; color: var(--muted); }
@keyframes st-fade { from { opacity: 0; } }
@keyframes st-pop { from { transform: scale(.4); opacity: 0; } }
@media (max-width: 760px) {
  .st-home, .st-screen { padding: 18px 16px 120px; }
  .st-pane { padding: 16px; }
  .st-dots button { padding: 0 10px; font-size: 13px; }
  .st-foot { padding: 12px 16px; }
  .st-foot .st-btn.big { flex: 1; }
}

/* The design step: the TV a size that leaves the line in view above the button. */
.st-play-big { width: min(520px, 100%); }
@media (max-width: 760px) {
  .st-play-big { width: 100%; }
  /* One row on a phone: brand, shop name, credits. */
  .st-top { flex-wrap: nowrap; gap: 10px; }
  .st-brand span { display: none; }
  .st-title { flex: 1; min-width: 0; }
  .st-shop { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
  .st-top-actions { width: auto; flex: 0 0 auto; }
  .st-credits { padding: 8px 12px; font-size: 14px; }
}

/* Play in place: the big TV on the Design step plays, the bar and Stop under it. */
.st-playing { display: grid; gap: 12px; }
.st-playing .st-tvset { margin-bottom: 30px; }
.st-play-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.st-play-info .st-live { margin: 0; }
.st-play-info .st-btn { margin-left: auto; }

/* The TV sits under the line of clips. */
.st-pane .st-play-big { margin-top: 26px; }

/* Changes made but not sent, said on the home page with the one button. */
.st-unsent { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; padding: 14px 18px; border-radius: 16px; background: rgba(245, 194, 27, .08); border: 1px solid #5a4a12; }

/* EVERYTHING ON ONE SCREEN (George, 17 Oct 2026: "how do we get this to fit
 * on screen?"). The name and the steps share a row, and the TV takes what
 * height is left after the line, the bar under it and the button. */
.st-screen { padding-top: 16px; }
.st-screen-head { grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; margin-bottom: 14px; }
.st-screen-head .st-back { grid-column: 1 / -1; padding: 0; }
.st-screen-head h1 { margin: 0; font-size: 30px; }
.st-screen-head .st-dots { margin: 0; }
.st-pane { padding: 20px 24px; }
.st-pane .st-play-big { width: clamp(300px, calc((100dvh - 640px) * 1.72), 760px); max-width: 100%; margin: 18px auto 0; }
.st-pane .st-playing { width: clamp(300px, calc((100dvh - 720px) * 1.72), 760px); }
.st-pane .st-play-big .st-tvset { margin-bottom: 26px; }
@media (max-width: 760px) {
  .st-screen-head { grid-template-columns: 1fr; }
  .st-pane .st-play-big, .st-pane .st-playing { width: 100%; }
}

/* The time bar can be clicked and dragged. */
.st-scrub { cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; height: 32px; }
.st-scrub span:hover { border-color: #3a4866; }
.st-scrub .st-head { width: 4px; top: -6px; bottom: -6px; }
.st-scrub .st-head::after { content: ''; position: absolute; left: 50%; top: -5px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--green); box-shadow: 0 2px 6px rgba(0,0,0,.4); }

/* Click the TV to pause or play: the sign shows in the middle and fades. */
.st-tv-tap { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; padding: 0; }
.st-flash { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); opacity: 0; }
.st-flash.go { animation: st-flash .9s ease-out both; }
@keyframes st-flash { 0% { opacity: 0; transform: scale(.7); } 20% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
.st-playing.paused .st-flash { animation: none; opacity: 1; transform: none; }
.st-playing.paused .st-rec { animation: none; background: var(--muted); }
.st-playing.paused .st-live { color: var(--muted); }
.st-sign-play { width: 0; height: 0; margin-left: 6px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.st-sign-pause { width: 24px; height: 30px; border-left: 8px solid #fff; border-right: 8px solid #fff; }
.st-play-info .st-live { min-width: 90px; }
/* Playing: the pause sign (on a click it flashes; on hover it shows faintly). Paused: the play sign stays. */
.st-playing:not(.paused) .st-sign-play, .st-playing.paused .st-sign-pause { display: none; }
.st-playing:not(.paused) .st-tv-tap:hover .st-flash:not(.go) { opacity: .6; transition: opacity .2s; }

/* Close: a cross in the top right of every panel. */
.st-panel { position: fixed; }
.st-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.st-x:hover { border-color: var(--green); }
.st-panel h2 { padding-right: 48px; }

/* A settings cog on every board on the line. */
.st-clip { position: relative; }
.st-cog { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 18, 32, .78); color: #fff; font-size: 17px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.st-clip:hover .st-cog, .st-clip.on .st-cog { background: var(--green); color: var(--green-ink); }

/* Each board comes in its own way on Play. */
.st-frames [data-frame].t-fade.on { animation: st-fadein .7s ease both; }
.st-frames [data-frame].t-slide.on { animation: st-slide .7s ease both; }
.st-frames [data-frame].t-wipe.on { animation: st-wipe .8s ease both; }
.st-frames [data-frame].t-wipeup.on { animation: st-wipeup .8s ease both; }
@keyframes st-fadein { from { opacity: 0; } to { opacity: 1; } }

/* The choices, each playing what it does. */
.st-demos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.st-demo { display: grid; gap: 6px; padding: 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-align: center; }
.st-demo.on { border-color: var(--gold); }
.st-demo:hover { border-color: var(--green); }
.st-demo-tv { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.st-demo-tv > span { position: absolute; inset: 0; }
.st-demo-tv img, .st-demo-tv i { display: block; width: 100%; height: 100%; object-fit: cover; background: #23314f; }
.d-fade .st-demo-b { animation: dm-fade 2.6s ease infinite; }
.d-slide .st-demo-b { animation: dm-slide 2.6s ease infinite; }
.d-wipe .st-demo-b { animation: dm-wipe 2.6s ease infinite; }
.d-wipeup .st-demo-b { animation: dm-wipeup 2.6s ease infinite; }
.d-none .st-demo-b { animation: dm-none 2.6s steps(1, end) infinite; }
@keyframes dm-fade { 0%, 25% { opacity: 0; } 55%, 100% { opacity: 1; } }
@keyframes dm-slide { 0%, 25% { translate: 100% 0; } 55%, 100% { translate: 0 0; } }
@keyframes dm-wipe { 0%, 25% { clip-path: inset(0 100% 0 0); } 55%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes dm-wipeup { 0%, 25% { clip-path: inset(100% 0 0 0); } 55%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes dm-none { 0% { opacity: 0; } 40% { opacity: 1; } }
@media (max-width: 760px) { .st-demos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* WINDOWS IN THE MIDDLE (George, 17 Oct 2026: "the modal should be in the
 * centre of the screen, not down low"), the page dimmed behind. A phone
 * keeps the sheet rising from the bottom, the way an iPhone does it. */
.st-panel { top: 50%; bottom: auto; transform: translate(-50%, -50%); max-height: calc(100dvh - 48px); overflow: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 100vmax rgba(5, 8, 15, .6); }
.st-layer { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: rgba(5, 8, 15, .6); }
.st-layer .st-panel { position: relative; left: auto; top: auto; transform: none; display: block; width: min(820px, 100%); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
@media (max-width: 760px) {
  .st-panel { top: auto; bottom: 0; transform: translateX(-50%); max-height: 88dvh; }
  .st-layer { place-items: end center; padding: 0; }
  .st-layer .st-panel { border-radius: 18px 18px 0 0; }
}

/* The dashboard's own add-a-screen wizard, dressed as the studio. */
.st-wiz-panel .wiz { display: grid; gap: 16px; }
.wiz-dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.wiz-dots li { width: 28px; height: 5px; border-radius: 3px; background: #3a4866; }
.wiz-dots li.past { background: var(--green); opacity: .5; }
.wiz-dots li.now { background: var(--green); }
.wiz-q { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.wiz-line { margin: 0; color: var(--text); }
.wiz-line.muted, .wiz-board-sub { color: var(--muted); }
.wiz-line.small { font-size: 14px; }
.wiz-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wiz-pick { position: relative; display: grid; gap: 6px; text-align: left; padding: 20px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.wiz-pick b { font-size: 18px; }
.wiz-pick span:last-child { color: var(--muted); }
.wiz-pick-tag { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(46,212,122,.15); color: var(--green); font-weight: 800; }
.wiz-pick:hover, .wiz-pick.on, .wiz-wait.on, .wiz-board.on, .wiz-wait:hover, .wiz-board:hover { border-color: var(--green); }
.wiz-waiting { display: flex; flex-wrap: wrap; gap: 10px; }
.wiz-wait { display: grid; gap: 2px; padding: 12px 18px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.wiz-wait span { color: var(--muted); font-size: 13px; }
.wiz-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .14em; }
.st-wiz-panel .cb-input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 18px; }
.st-wiz-panel .wiz-code { font-size: 26px; letter-spacing: .22em; text-transform: uppercase; }
.st-wiz-panel .cb-input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.wiz-badges .app-stores { display: flex; gap: 10px; align-items: center; }
.wiz-badges img { height: 44px; width: auto; display: block; }
.wiz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-height: 46dvh; overflow: auto; padding: 2px; }
.wiz-board { display: grid; gap: 6px; padding: 8px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.wiz-board .board-mini { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; margin: 0; }
.wiz-board .board-mini.portrait { width: 100%; aspect-ratio: 16 / 9; }
.wiz-board .board-mini img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wiz-board .mini-badge { position: absolute; right: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.7); font-size: 12px; font-weight: 700; }
.wiz-board-name { font-weight: 800; }
.wiz-board-sub { font-size: 13px; }
.wiz-done { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 10px 0; }
.wiz-tick { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--green-ink); font-size: 44px; animation: st-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.wiz-big { font-size: 44px; font-weight: 800; color: var(--gold); }
.wiz-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.wiz-said { min-height: 1.3em; margin: 0; color: var(--muted); }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.st-wiz-panel .cb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.st-wiz-panel .cb-btn.primary { background: var(--green); border-color: var(--green); color: var(--green-ink); font-size: 18px; min-width: 160px; }
.st-wiz-panel .cb-btn.ghost { background: transparent; }
.st-wiz-panel .cb-btn:disabled { opacity: .45; cursor: default; }
@media (max-width: 760px) { .wiz-two, .wiz-grid { grid-template-columns: 1fr; } }

/* THE TRANSITION BETWEEN TWO BOARDS, ON THE LINE (George, 17 Oct 2026: "a
 * transition is added via the + button"). Under each + is what it does. */
.st-gap-wrap { flex: 0 0 auto; display: grid; justify-items: center; align-content: center; gap: 6px; align-self: center; }
.st-gap-turn { padding: 2px 8px; border-radius: 999px; background: rgba(46, 212, 122, .12); color: var(--green); font-size: 11px; font-weight: 800; white-space: nowrap; }
.st-add-panel .st-add-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-add-panel .st-demos { margin: 6px 0 14px; }
@media (max-width: 760px) { .st-add-panel .st-add-choices { grid-template-columns: 1fr 1fr; } }

/* The previews sit still; the one tapped plays once (George, 17 Oct 2026:
 * "once the user clicks it, it shows the transition and nothing else happens"). */
.st-demo-tv .st-demo-b { animation: none !important; opacity: 1; translate: 0 0; clip-path: none; }
.st-demo-tv.play.d-fade .st-demo-b { animation: dm1-fade 1.1s ease both !important; }
.st-demo-tv.play.d-slide .st-demo-b { animation: dm1-slide 1.1s ease both !important; }
.st-demo-tv.play.d-wipe .st-demo-b { animation: dm1-wipe 1.1s ease both !important; }
.st-demo-tv.play.d-wipeup .st-demo-b { animation: dm1-wipeup 1.1s ease both !important; }
.st-demo-tv.play.d-none .st-demo-b { animation: dm1-none 1.1s steps(1, end) both !important; }
@keyframes dm1-fade { 0%, 20% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dm1-slide { 0%, 20% { translate: 100% 0; } 100% { translate: 0 0; } }
@keyframes dm1-wipe { 0%, 20% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes dm1-wipeup { 0%, 20% { clip-path: inset(100% 0 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes dm1-none { 0% { opacity: 0; } 50% { opacity: 1; } }

/* THE PANEL DOWN THE LEFT (George, 17 Oct 2026). */
.st-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100dvh; }
.st-shell:has(.st-side:empty) { grid-template-columns: minmax(0, 1fr); }
.st-side:empty { display: none; }
.st-side { position: sticky; top: 0; height: 100dvh; overflow: auto; display: flex; flex-direction: column; gap: 16px; padding: 20px 12px; background: #080e1a; border-right: 1px solid var(--line); z-index: 8; }
.st-side-brand { display: flex; align-items: center; gap: 8px; padding: 0 10px 6px; font-weight: 800; font-size: 18px; }
.st-side-brand img { width: 26px; height: 26px; }
.st-side-brand i { font-style: normal; color: var(--green); }
.st-side-group { display: grid; gap: 2px; }
.st-side-title { margin: 0 0 4px; padding: 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-side-item { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.st-side-item:hover { background: var(--surface-2); }
.st-side-item.on { background: rgba(46, 212, 122, .12); color: var(--green); }
.st-side-icon { width: 22px; text-align: center; font-size: 16px; opacity: .9; }
.st-side-lock { margin-left: auto; font-size: 13px; opacity: .8; }
.st-side-foot { margin-top: auto; padding: 0 10px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.st-mainwrap { min-width: 0; }
.st-menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 20px; cursor: pointer; }
.st-embed-host[hidden] { display: none; }
.st-embed { display: block; width: 100%; height: calc(100dvh - 73px); border: 0; background: var(--bg, #0b1220); }
.st-foot { left: 240px; padding-left: max(24px, calc((100% - 240px - 1072px) / 2)); padding-right: max(24px, calc((100% - 240px - 1072px) / 2)); }
@media (max-width: 900px) {
  .st-shell { grid-template-columns: minmax(0, 1fr); }
  .st-side { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); z-index: 40; box-shadow: 0 0 40px rgba(0,0,0,.6); }
  body.st-side-open .st-side { transform: none; }
  .st-menu-btn { display: inline-grid; place-items: center; }
  .st-foot { left: 0; padding: 12px 16px; }
}

/* EVERY BOARD SHOWN WHOLE, IN ITS OWN SHAPE (George, 17 Oct 2026). A tall
 * board in a wide frame stands up in the middle of it, and says "Tall". */
.st-thumb, .st-panel-pic, .st-pick-pic, .st-demo-tv { background: #05080f; }
.st-thumb { position: relative; }
.st-thumb img, .st-panel-pic img, .st-pick-one img, .st-rule > span:first-child img, .st-demo-tv img { object-fit: contain; }
.st-pick-pic { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.st-tall { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.75); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; }

/* A board tool from the dashboard, in a window over the studio. */
.st-tool-panel { width: min(1180px, 100%) !important; height: min(92dvh, 900px); padding: 0 !important; overflow: hidden !important; }
.st-tool-frame { display: block; width: 100%; height: 100%; border: 0; border-radius: 18px; background: #0b1220; }
.st-tool-panel .st-x { top: 10px; right: 10px; }
.st-board-acts .st-btn i, .st-cost-inline { font-style: normal; font-weight: 700; color: var(--gold); margin-left: 6px; font-size: 13px; }
.st-board-acts .st-btn.primary i { color: var(--green-ink); opacity: .8; }
.st-board-more { margin-top: 6px; }
.st-board-more summary { color: var(--muted); font-size: 14px; padding: 6px 0; }
.st-off { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* Your screens leads with making a board (George, 17 Oct 2026: "the money for us is in the creation of the board"). */
.st-home-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.st-home-row .st-btn i { margin-left: 8px; }
.st-first { display: grid; gap: 8px; width: 100%; margin: 0 0 22px; padding: 28px; border-radius: 22px; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: linear-gradient(135deg, rgba(46, 212, 122, .16), rgba(46, 212, 122, .04)); border: 1px solid rgba(46, 212, 122, .45); }
.st-first b { font-size: 26px; letter-spacing: -.01em; }
.st-first span { color: var(--muted); max-width: 60ch; }
.st-first em { font-style: normal; font-weight: 800; color: var(--green); }
.wiz-app { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.wiz-new { place-items: center; text-align: center; border-style: dashed; min-height: 150px; }
.wiz-new-plus { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(46,212,122,.15); color: var(--green); font-size: 26px; font-weight: 800; }

/* The shop under Counterboard; the page's name in the top bar (George, 17 Oct 2026). */
.st-side-shop { margin: -8px 0 4px; padding: 0 10px 0 44px; color: var(--muted); font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.st-page-title { margin: 0; font-size: 22px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-home-lead { margin: 0; font-size: 16px; }
.st-screen-head { align-items: center; }
.st-screen-head .st-back { grid-column: 1; }
.st-screen-head .st-dots { grid-column: 2; justify-self: end; }
@media (max-width: 760px) { .st-screen-head .st-dots { grid-column: 1; justify-self: start; } }
.st-btn.primary .st-cost-inline { color: var(--green-ink); opacity: .75; }

/* A screen: its name and shape first (George, 17 Oct 2026). */
.st-shapes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-shape { display: grid; justify-items: center; gap: 6px; padding: 20px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.st-shape span { color: var(--muted); font-size: 14px; }
.st-shape.on, .st-shape:hover { border-color: var(--green); }
.st-shape-tv { display: block; border: 4px solid #cfd8e8; border-radius: 6px; background: #0b1220; }
.st-shape-tv.wide { width: 96px; height: 54px; }
.st-shape-tv.tall { width: 40px; height: 70px; }
.st-empty-line { display: grid; gap: 22px; justify-items: center; padding: 10px 0 20px; }
.st-add-first { width: min(420px, 100%); min-height: 150px; display: grid; place-items: center; gap: 4px; font-size: 18px; }
.st-add-first span { font-size: 40px; color: var(--green); }
.st-add-first i { font-style: normal; color: var(--muted); font-size: 14px; font-weight: 500; }
.st-tv-placeholder { width: min(520px, 100%); aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }
.st-tv-placeholder.tall { width: min(260px, 60%); aspect-ratio: 9 / 16; }
.st-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.st-badges img { height: 44px; width: auto; display: block; }
.st-bigcode { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-bigcode b { font-size: 34px; letter-spacing: .14em; color: var(--gold); margin-right: 8px; }
.st-dot.planned { background: transparent; border: 2px dashed var(--muted); }
.st-shape-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.st-hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.st-more summary .st-dot { display: inline-block; vertical-align: middle; }

/* The app stores: three buttons exactly the same size (George, 17 Oct 2026: "everything needs to be uniform"). */
.st-stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; max-width: 620px; }
.st-store { justify-content: center; min-height: 48px; text-decoration: none; text-align: center; }
.st-store.soon { opacity: .55; cursor: default; }
.st-store i { font-style: normal; font-weight: 600; margin-left: 4px; color: var(--muted); }
@media (max-width: 520px) { .st-stores { grid-template-columns: 1fr; } }
.st-store { display: flex; align-items: center; }
.st-scan-btn { min-height: 44px; }
@media (max-width: 760px) { .st-scan-btn { padding: 0 12px; font-size: 14px; } }

/* Designing a board where the TV is (George, 17 Oct 2026). */
.st-compose { width: 100%; margin-top: 18px; }
.st-compose-window { position: relative; display: grid; gap: 14px; padding: 22px 24px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.st-compose-window .st-window-title { margin: 0; padding-right: 48px; font-size: 22px; }
.st-how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.st-how [aria-disabled="true"] { opacity: .5; cursor: default; }
.st-turnbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(46, 212, 122, .08); border: 1px solid rgba(46, 212, 122, .35); }
.st-pickgrid .st-pick-one { flex: none; width: 100%; }
@media (max-width: 760px) { .st-how { grid-template-columns: 1fr; } .st-compose-window { padding: 16px; } }
.st-empty-line .st-compose, .st-pane .st-compose { justify-self: stretch; width: 100%; max-width: none; }
.st-empty-line:has(.st-compose) { justify-items: stretch; padding-top: 0; }
.st-compose-window { width: 100% !important; }

/* The board's kind and theme along the top of its page. */
.st-theme-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.st-theme-kind { font-weight: 800; color: var(--green); }
.st-theme-words { color: var(--text); flex: 1; min-width: 0; }
.st-compose .st-compose-window { width: 100% !important; max-width: none !important; }
.st-foot[hidden] { display: none; }

/* Picking several of your boards: each one tapped is numbered in its order. */
.st-pickgrid .st-pick-one.on { border-color: var(--green); }
.st-pick-n { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--green-ink); font-weight: 800; }
.st-pick-go { justify-content: space-between; }
.st-line-empty { display: flex; align-items: center; justify-content: center; min-height: 182px; border: 2px dashed #3a4866; border-radius: 16px; }
.st-reel-wait { color: var(--muted); font-weight: 600; text-align: center; padding: 0 16px; }

/* A bin in the corner of each board on Your boards. */
.st-card-wrap { position: relative; display: grid; }
.st-card-wrap > .st-card { width: 100%; height: 100%; }
.st-bin { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(11, 18, 32, .85); color: var(--muted); cursor: pointer; }
.st-bin svg { width: 19px; height: 19px; }
.st-bin:hover, .st-bin:focus-visible { color: #ff6b6b; border-color: #ff6b6b; }
.st-del-go { justify-content: space-between; }
.st-del-go .st-btn { min-width: 160px; justify-content: center; }
.st-del-go [data-del-go]:not([disabled]) { background: #e5484d; border-color: #e5484d; color: #fff; }

/* Your boards tray: smaller pictures, more on screen, its own scroll, the search and Done always in view (George, 18 Oct 2026). */
.st-tray-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.st-tray-top .st-muted { margin: 0; }
.st-tray-search { flex: 0 1 300px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.st-tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: min(46dvh, 420px); overflow-y: auto; padding: 4px 6px 4px 2px; scrollbar-width: thin; }
.st-tray .st-pick-one { width: 100%; font-size: 13px; padding: 6px; }
.st-tray .st-pick-one[hidden] { display: none; }
.st-tray .st-pick-n { width: 24px; height: 24px; top: 6px; right: 6px; font-size: 13px; }
.st-pick-go { position: sticky; bottom: 0; margin-top: 4px; padding-top: 10px; background: var(--surface-2); }
@media (max-width: 760px) { .st-tray { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 52dvh; } .st-tray-search { flex: 1 1 100%; } }
.st-tray .st-pick-one { border: 2px solid var(--line); background: var(--surface); }
.st-tray .st-pick-one.on, .st-tray .st-pick-one:hover { border-color: var(--green); }
.st-turnpick .st-label { margin-top: 0; }
.st-or { margin: 6px 0 0; }

/* TVs showing nothing, and the shop's other screens on a board's Screens step. */
.st-idle-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.st-idle-pick select { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; }
.st-others { display: grid; gap: 8px; }
.st-other { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.st-other .st-dot { display: inline-block; vertical-align: middle; }
.st-other i { font-style: normal; margin-left: 6px; }

/* Two round icons in each board's corner: send to its screens, and delete (George, 18 Oct 2026). */
.st-card-icons { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; gap: 8px; }
.st-cardicon { position: static; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(11, 18, 32, .88); color: var(--text); cursor: pointer; }
.st-cardicon svg { width: 21px; height: 21px; }
.st-send { color: var(--green); }
.st-send:hover, .st-send:focus-visible { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.st-send.due { background: var(--green); color: var(--green-ink); border-color: var(--green); box-shadow: 0 0 0 0 rgba(46, 212, 122, .6); animation: st-due 1.8s ease-out infinite; }
.st-send.busy { opacity: .6; pointer-events: none; }
@keyframes st-due { 70% { box-shadow: 0 0 0 12px rgba(46, 212, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 212, 122, 0); } }
.st-card-icons .st-bin { color: var(--muted); }
/* The X sits level with the title, clear of the cards under it. */
.st-compose-window .st-x { top: 18px; right: 18px; }
.st-compose-window > .st-window-title { min-height: 40px; display: flex; align-items: center; margin-bottom: 4px; }
.st-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-vid { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.75); color: #fff; font-size: 11px; font-weight: 800; }
/* Send to screens: its own button in the card's bottom-right corner (George, 18 Oct 2026). */
.st-send-corner { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 52px; height: 52px; }
.st-send-corner svg { width: 24px; height: 24px; }
.st-card-wrap .st-card > .st-card-name, .st-card-wrap .st-card > .st-muted { padding-right: 64px; }
/* The board's three main jobs in one row, each the same size (George, 18 Oct 2026). */
.st-board-acts { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.st-board-acts .st-btn { justify-content: center; width: 100%; min-height: 52px; white-space: nowrap; }
.st-board-more { margin-top: 6px; }
@media (max-width: 760px) { .st-board-acts { grid-template-columns: 1fr; } }
.st-board-more { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.st-board-more .st-btn { justify-content: center; width: 100%; min-height: 48px; text-decoration: none; }
@media (max-width: 760px) { .st-board-more { grid-template-columns: 1fr; } }

/* The board's own picture at once; the TV's drawing over it once drawn (no blue loading screen). */
.st-tv .st-instant { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
/* Hidden until drawn only where the studio watches for that (revealFrames marks
   them); a page of its own inside the studio, such as Tips, shows its frame as
   it is (24 Oct 2026: George's Tips preview was black for every board). */
.st-tv iframe { transition: opacity .25s ease; }
.st-tv iframe[data-watched]:not(.ready) { opacity: 0; }
.st-frames [data-frame] { position: absolute; inset: 0; background: #000; }

/* The board panel, even and calm: two columns, every row the full width, the same heights. */
.st-panel:not(.st-add-panel):not(.st-make):not(.st-window) { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
.st-panel-left { display: grid; gap: 10px; align-content: center; align-self: stretch; } /* the picture and its buttons sit in the middle of the panel (George, 18 Oct 2026) */
.st-panel-left .st-panel-pic { margin-bottom: 4px; }
.st-even { display: grid; gap: 8px; }
.st-even-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-even-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.st-even .st-btn, .st-wide { width: 100%; justify-content: center; min-height: 48px; }
.st-seg .st-chip { width: 100%; min-height: 48px; justify-content: center; border-radius: 12px; }
.st-panel-side { display: grid; gap: 10px; align-content: start; }
.st-panel-side > .st-label { margin: 6px 0 0; }
.st-panel-side .st-demos { margin-bottom: 0; }
.st-panel .st-board-acts .st-btn, .st-panel .st-board-more .st-btn { min-height: 52px; border-radius: 14px; }
@media (max-width: 760px) { .st-panel:not(.st-add-panel):not(.st-make):not(.st-window) { grid-template-columns: 1fr; } .st-even-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* The type and theme, at the top of a board's page: each part a chip that opens its step. */
.st-screen-head { grid-template-columns: auto minmax(0, 1fr) auto !important; align-items: center; }
.st-screen-head .st-back { grid-column: auto; }
.st-screen-head .st-dots { grid-column: auto; }
.st-themebar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.st-tchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.st-tchip:hover { border-color: var(--green); }
.st-tchip-kind { color: var(--green); }
.st-tchip-set { border-style: dashed; color: var(--green); }
.st-dots-c { display: inline-flex; gap: 4px; }
.st-dot-c { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); display: inline-block; }
.st-tchip-pic { width: 34px; height: 22px; object-fit: cover; border-radius: 4px; }
@media (max-width: 900px) { .st-screen-head { grid-template-columns: 1fr !important; } .st-themebar { justify-content: flex-start; } }

/* A wall on its page, and which TV is which part. */
.st-wallview { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; }
.st-wallview.col { flex-direction: column; width: min(560px, 100%); margin-left: auto; margin-right: auto; }
.st-wallpart { min-width: 0; display: grid; gap: 6px; justify-items: center; }
.st-wallpart .st-tvset { width: 100%; margin-bottom: 26px; }
.st-wallpart .st-tv { width: 100%; }
.st-wallview.tall .st-wallpart .st-tv { aspect-ratio: 9 / 16; }
.st-wallparts { display: grid; gap: 10px; }
.st-wallrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-wallrow select { min-height: 44px; min-width: 220px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; }

/* A wall's separate page: each screen's own board. */
.st-parts { position: absolute; inset: 0; display: flex; gap: 2px; background: #000; }
.st-parts img { flex: 1; min-width: 0; height: 100%; object-fit: cover; }
.st-sep { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.st-sep.col { grid-auto-flow: row; }
.st-sep-part { display: grid; gap: 8px; }
.st-sep-pic { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b1220; border: 4px solid #050505; display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.st-sep-pic img { width: 100%; height: 100%; object-fit: contain; }
.st-sep select { min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; }
@media (max-width: 760px) { .st-sep { grid-auto-flow: row; } }
.st-slice { overflow: hidden; }
.st-slice img { position: absolute; object-fit: fill; max-width: none; }
.st-wall-link { display: flex; align-items: center; gap: 6px; width: 100%; justify-content: center; flex-wrap: wrap; }
.st-wall-link input { width: 110px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.st-wall-link .st-btn { min-height: 40px; }
.st-wall-who { font-weight: 700; }
.st-wall-who .st-dot { display: inline-block; vertical-align: middle; }

.st-tochip { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; margin-bottom: 12px; border-radius: 14px; border: 1px dashed rgba(46, 212, 122, .5); background: rgba(46, 212, 122, .06); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.st-tochip:hover { border-style: solid; border-color: var(--green); }
.st-tochip b { color: var(--green); }

/* A wide video: the wall's screens side by side, each playing its own clip. */
.stv-wall { display: flex; gap: 6px; }
.stv-wall.col { flex-direction: column; width: min(520px, 100%); margin: 0 auto; }
.stv-wall .stv-tv { flex: 1; min-width: 0; width: auto; margin: 0; }
.stv-wide .st-pick-pic img { object-fit: contain; }
.stv-row.wide { grid-template-columns: 1fr; }
.stv-row.wide .stv-pic { width: 100%; max-width: none; }

/* Their own seconds: the last button is a number box. */
.st-secs-own { display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: text; }
.st-secs-own input { width: 3.2em; background: transparent; border: 0; border-bottom: 2px dashed currentColor; color: inherit; font: inherit; text-align: center; padding: 0; -moz-appearance: textfield; }
.st-secs-own input::-webkit-outer-spin-button, .st-secs-own input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-secs-own input:focus { outline: none; border-bottom-style: solid; }
/* Shows when. */
.st-when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.st-when label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.st-when input[type="time"] { min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; color-scheme: dark; }
.st-when-days { display: flex; flex-wrap: wrap; gap: 6px; }
.st-when-days .st-chip { min-width: 48px; }
/* The name, with its pencil. */
.st-panel-name { display: flex; align-items: center; gap: 8px; }
.st-pencil { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.st-pencil:hover { border-color: var(--green); color: var(--green); }

/* Remove times: back to all the time (George, 18 Oct 2026: "how do I remove the times after I add them"). */
.st-when-clear { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--red); font: inherit; font-weight: 800; cursor: pointer; }
.st-when-clear:hover { border-color: currentColor; }

/* Every board says its screen: Wide, Tall, a wall, or Each screen. */
.st-tall i { font-style: normal; letter-spacing: -1px; margin-right: 2px; }
.st-type-wall, .st-type-each { background: rgba(22, 120, 80, .9); }

/* A wall plays like a single TV: Play over the screens, then the round on all of them. */
.st-wallplay { margin-top: 18px; }
.st-wall-playbtn { display: block; width: 100%; }
.st-wall-playbtn .st-wallview, .st-wallframes .st-wallview { margin-top: 0; }
.st-wall-playbtn .st-play-btn { left: 50%; top: 42%; width: 78px; height: 78px; font-size: 30px; }
.st-wall-player { margin-top: 18px; }
.st-wallframes { position: relative; display: grid; }
.st-wallframes > [data-frame] { grid-area: 1 / 1; opacity: 0; transition: opacity .6s ease; }
.st-wallframes > [data-frame].on { opacity: 1; }
.st-wallcodes { margin-top: 0; }
.st-wallcodes .st-wallpart { justify-items: center; }
.st-pane .st-wall-player, .st-pane .st-wallplay, .st-wall-player, .st-wallplay { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
.st-wallframes > [data-frame] { width: 100%; }

/* A one-screen board on a wall: one TV, the size of a single screen's player. */
.st-wallone { justify-content: center; }
.st-wallone .st-wallpart { width: min(520px, 100%); flex: none; }
.st-wallone .st-tv.tall { width: min(240px, 60%); margin: 0 auto; }
.st-wallone-note { text-align: center; }

/* A thing across a wall's screens: a wider card on the reel, the same height. */
.st-clip.wide { flex-basis: 400px; width: 400px; }
.st-clip.wide-3, .st-clip.wide-4 { flex-basis: 480px; width: 480px; }
.st-clip.wide .st-thumb { aspect-ratio: auto; height: 126px; }
.st-clip.wide .st-thumb > img { object-fit: contain; }
@media (max-width: 760px) { .st-clip.wide, .st-clip.wide-3, .st-clip.wide-4 { flex-basis: 320px; width: 320px; } }

/* A wall screen off for a turn: black, said quietly. */
.st-tv-off { background: #000; display: grid; place-items: center; }
.st-tv-off span { color: #4a5568; font-weight: 700; font-size: 13px; }
.st-part-off { flex: 1; background: #000; }
.st-sep-pic.off { background: #000; }

/* THE WALL AS A TIMELINE: a row for each screen, pictures across the wall standing across every row. */
.st-tl { --rowh: 104px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 10px; margin-top: 18px; }
.st-tl-heads { display: grid; grid-template-rows: 30px repeat(var(--rows), var(--rowh)) auto; gap: 8px; }
.st-tl-head { position: relative; display: grid; align-content: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); cursor: grab; }
.st-tl-head.drop-here { border-color: var(--green); }
.st-tl-grip { color: var(--muted); letter-spacing: -3px; margin-right: 4px; }
.st-tl-code { display: flex; gap: 6px; }
.st-tl-code input { width: 92px; min-height: 36px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 800; letter-spacing: .12em; }
.st-tl-code .st-btn { min-height: 36px; padding: 0 12px; }
.st-tl-drop { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.st-tl-addscreen { min-height: 40px; border-radius: 12px; border: 1px dashed var(--line); background: transparent; color: var(--green); font: inherit; font-weight: 800; cursor: pointer; }
.st-tl-scroll { overflow-x: auto; padding-bottom: 10px; scrollbar-color: var(--line) transparent; }
.st-tl-cols { display: flex; gap: 10px; align-items: stretch; width: 100%; }
.st-tl-end { flex: none; }
.st-tl-col { display: grid; grid-template-rows: 30px repeat(var(--rows), var(--rowh)); gap: 8px; border-radius: 14px; }
.st-tl-col.drop-here { outline: 2px dashed var(--green); outline-offset: 2px; }
.st-tl-colhead { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--muted); cursor: grab; }
.st-tl-headtop { justify-content: flex-start; cursor: default; }
.st-tl-sync { border: 0; border-radius: 999px; padding: 4px 10px; background: var(--gold); color: #1a1300; font: inherit; font-weight: 800; font-size: 12px; cursor: pointer; }
.st-tl-run.out .st-tl-row { border-color: rgba(245, 197, 24, .55); }
.st-tl-row { display: flex; align-items: stretch; gap: 6px; padding: 6px; min-width: 0; box-sizing: border-box; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.st-tl-row.drop-here { border-color: var(--green); }
.st-tl-item { position: relative; flex: 1 1 0; min-width: 0; box-sizing: border-box; overflow: hidden; display: grid; grid-template-rows: 1fr auto; gap: 2px; padding: 4px; border-radius: 10px; border: 2px solid transparent; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: grab; }
.st-tl-item.on { border-color: var(--green); }
.st-tl-item.dragging { opacity: .4; }
.st-tl-pic { position: relative; display: block; min-height: 0; border-radius: 6px; overflow: hidden; background: #000; }
.st-tl-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The whole board, once, at the start of its bar: never a cropped slice, never repeated (George, 25 Oct 2026). */
.st-tl-strip { position: absolute; inset: 0; background-repeat: no-repeat; background-size: contain; background-position: left center; }
.st-tl-black { display: grid; place-items: center; width: 100%; height: 100%; background: #000; color: #4a5568; font-weight: 800; font-size: 12px; }
.st-tl-vid { position: absolute; left: 4px; top: 4px; z-index: 1; font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 999px; background: rgba(0,0,0,.7); color: #fff; }
.st-tl-name { font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 30px; }
.st-tl-secs { position: absolute; right: 6px; bottom: 4px; font-style: normal; font-size: 11px; font-weight: 800; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #1a1300; }
.st-tl-same { align-self: center; color: var(--muted); font-size: 13px; padding: 0 8px; }
.st-tl-plus { flex: none; width: 34px; border-radius: 10px; border: 1px dashed var(--line); background: transparent; color: var(--green); font-size: 20px; font-weight: 800; cursor: pointer; }
.st-tl-wall .st-tl-wallpic { grid-row: 2 / span var(--rows); position: relative; width: 320px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: #000; cursor: grab; }
.st-tl-wallpic.on { border-color: var(--green); }
.st-tl-wallpic img, .st-tl-wallpic video { width: 100%; height: 100%; object-fit: contain; display: block; }
.st-tl-wallpic .st-tall { position: absolute; left: 8px; bottom: 30px; }
.st-tl-wallpic .st-tl-name { position: absolute; left: 8px; bottom: 6px; color: #fff; text-shadow: 0 1px 3px #000; }
.st-tl-end .st-tl-addcol { grid-row: 2 / span var(--rows); width: 120px; border-radius: 14px; border: 2px dashed var(--line); background: transparent; color: var(--green); font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.st-run { opacity: 0; transition: opacity .5s ease; }
.st-run.on { opacity: 1; }
.st-run-off { position: absolute; inset: 0; background: #000; }
.st-sync-list { margin: 8px 0 12px; padding-left: 18px; line-height: 1.8; }
@media (max-width: 760px) { .st-tl { grid-template-columns: 1fr; } .st-tl-heads { grid-template-rows: none; grid-auto-flow: row; } }

/* Which screens, on a wall's Add; a picture across some of them on the timeline. */
.st-which { margin-bottom: 14px; }
.st-tl-item.slice { cursor: pointer; border-color: rgba(46, 212, 122, .45); }
.st-tl-pic .st-slice { position: absolute; inset: 0; overflow: hidden; }
.st-tl-pic .st-slice img { position: absolute; max-width: none; object-fit: cover; }
.st-tl-across { position: absolute; left: 4px; bottom: 4px; z-index: 1; font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: rgba(22, 120, 80, .92); color: #fff; }

/* The red X on a screen: the only way a screen goes. */
.st-tl-drop { color: var(--red); border-color: rgba(239, 68, 68, .5); font-size: 16px; line-height: 1; }
.st-tl-drop:hover { background: rgba(239, 68, 68, .15); border-color: var(--red); }

/* A screen's link box on the timeline: tapped, the link window. */
.st-tl-linkbox { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px dashed var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.st-tl-linkbox span { color: var(--muted); letter-spacing: .14em; font-weight: 800; }
.st-tl-linkbox b { color: var(--green); font-size: 13px; }
.st-tl-linkbox:hover { border-color: var(--green); }

/* The screens column, narrow (George, 18 Oct 2026: "the screen section to take up less room so we can fit more on the timeline"). */
.st-tl { grid-template-columns: 124px minmax(0, 1fr); --rowh: 92px; }
.st-tl-head { padding: 8px; gap: 8px; align-content: center; }
.st-tl-head b { font-size: 14px; white-space: nowrap; }
.st-tl-grip { margin-right: 6px; }
.st-tl-linkbox { width: 100%; min-height: 32px; padding: 0 8px; justify-content: center; font-size: 12px; font-weight: 800; color: var(--green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-tl-linkbox.linked { color: var(--text); border-style: solid; justify-content: flex-start; }
.st-tl-drop { width: 22px; height: 22px; right: 4px; top: 4px; font-size: 14px; }
.st-tl-addscreen { font-size: 13px; min-height: 34px; }
.st-tl-headtop { font-size: 12px; }

/* An empty row on a screen: one big +, the whole box. */
.st-tl-plus.fill { flex: 1; width: auto; font-size: 28px; }
/* The board's own row in the header bar. */
.st-top-mid { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-top-mid .st-back { padding: 0; white-space: nowrap; }
.st-top-mid .st-themebar { margin: 0; flex: 1; justify-content: center; }
.st-top-mid .st-dots { margin: 0; }
.st-top-mid { flex-wrap: nowrap; gap: 10px; }
.st-top-mid .st-themebar { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; }
.st-top-mid .st-tchip { min-height: 34px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.st-top-mid .st-dots { gap: 6px; flex-wrap: nowrap; }
.st-top-mid .st-dots button { min-height: 34px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
@media (max-width: 1280px) { .st-top-mid { flex-wrap: wrap; } }
/* The header row never overlaps: compact, nothing squashed, and onto its own line when there is not room. */
.st-top-mid > * { flex-shrink: 0; }
.st-top-mid .st-themebar { flex: 0 1 auto; }
.st-top-mid .st-tchip { min-height: 32px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
.st-top-mid .st-dots button { min-height: 32px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
.st-top-mid .st-back { font-size: 14px; }
@media (max-width: 1560px) { .st-top { flex-wrap: wrap; } .st-top-mid { order: 3; flex-basis: 100%; justify-content: space-between; } }
.st-top-mid .st-themebar { flex-shrink: 0; }
@media (max-width: 1720px) { .st-top { flex-wrap: wrap; row-gap: 8px; } .st-top-mid { order: 3; flex-basis: 100%; justify-content: space-between; flex-wrap: nowrap; } }
@media (max-width: 1100px) { .st-top-mid { flex-wrap: wrap; justify-content: flex-start; } }

/* The end of the timeline: + on every screen's row, and one button for across screens. */
.st-tl-end { grid-template-rows: 30px repeat(var(--rows), var(--rowh)); }
.st-tl-addrow { width: 120px; border-radius: 12px; border: 2px dashed var(--line); background: transparent; color: var(--green); font-size: 26px; font-weight: 800; cursor: pointer; }
.st-tl-addrow:hover, .st-tl-acrossbtn:hover { border-color: var(--green); }
.st-tl-acrossbtn { width: 100%; min-height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(22, 120, 80, .25); color: var(--green); font: inherit; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.st-tl-end .st-tl-addcol { display: none; }
/* The header: the board's row on its own line until there is really room for it beside the title. */
@media (max-width: 2100px) { .st-top { flex-wrap: wrap; row-gap: 8px; } .st-top-mid { order: 3; flex-basis: 100%; justify-content: space-between; flex-wrap: nowrap; } }
.st-tl-end { width: 132px; grid-template-columns: 132px; }
.st-tl-end > .st-tl-colhead { grid-row: 1; grid-column: 1; overflow: visible; }
.st-tl-acrossbtn { width: 132px; padding: 0 6px; font-size: 11.5px; }
.st-tl-addrow { width: 132px; }
/* Phones: the board's row wraps, nothing runs off the edge (live test, 18 Oct 2026). */
@media (max-width: 760px) {
  .st-top-mid { flex-wrap: wrap !important; justify-content: flex-start; gap: 8px; }
  .st-top-mid .st-themebar { flex-wrap: wrap; flex: 1 1 100%; justify-content: flex-start; }
  .st-top-mid .st-dots { flex-wrap: wrap; flex: 1 1 100%; }
}

/* Placing each part of a picture across screens. */
.st-place-parts { display: flex; gap: 8px; margin-bottom: 14px; }
.st-place-part { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: center; padding: 6px; border-radius: 12px; border: 2px solid transparent; }
.st-place-part .st-tv { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; display: block; }
.st-place-part .st-tv > img { width: 100%; height: 100%; object-fit: cover; }
.st-place-part .st-slice { position: absolute; inset: 0; overflow: hidden; }
.st-place-part .st-slice img { position: absolute; max-width: none; object-fit: cover; }
.st-place-part.now { border-color: var(--green); }
.st-place-part.done { opacity: .7; }
.st-place-part i { font-style: normal; font-size: 12px; color: var(--muted); }
.st-place-screens .st-chip { min-width: 110px; }
/* Every screen's name level with its row, at any width (George, 18 Oct 2026, a tablet: "the screens are skew"). */
.st-tl { grid-template-columns: 124px minmax(0, 1fr) !important; }
.st-tl-heads { grid-template-rows: 30px repeat(var(--rows), var(--rowh)) auto !important; grid-auto-flow: row; }
.st-tl-head { min-height: 0; overflow: hidden; }
.st-tl-col, .st-tl-end { grid-template-rows: 30px repeat(var(--rows), var(--rowh)) !important; }
.st-tl-row { min-height: 0; overflow: hidden; }

/* The + between parts of a wall's round, with how the next part comes in. */
.st-tl-gapcol { display: grid; grid-template-rows: 30px repeat(var(--rows), var(--rowh)) !important; gap: 8px; }
.st-tl-gap { grid-row: 2 / span var(--rows); width: 40px; display: grid; place-content: center; justify-items: center; gap: 6px; border-radius: 12px; border: 1px dashed var(--line); background: transparent; color: var(--green); font: inherit; cursor: pointer; }
.st-tl-gap b { font-size: 22px; }
.st-tl-gap i { font-style: normal; font-size: 11px; font-weight: 800; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--muted); }
.st-tl-gap:hover { border-color: var(--green); }

/* A wall plays each part's own way in, on every screen at once, as the TVs do (George, 18 Oct 2026: "it doesn't show that transition"). */
.st-wallframes > [data-frame] { transition: none; }
.st-wallframes > [data-frame].on { opacity: 1; z-index: 2; }
.st-wallframes > [data-frame].was { opacity: 1; z-index: 1; }
.st-wallframes > [data-frame] .st-tv { overflow: hidden; }
.st-wallframes > [data-frame].on.t-fade .st-tv > .st-run.on, .st-wallframes > [data-frame].on.t-fade .st-tv > :not(.st-run) { animation: st-fadein .7s ease both; }
.st-wallframes > [data-frame].on.t-slide .st-tv > .st-run.on, .st-wallframes > [data-frame].on.t-slide .st-tv > :not(.st-run) { animation: st-slide .7s ease both; }
.st-wallframes > [data-frame].on.t-wipe .st-tv > .st-run.on, .st-wallframes > [data-frame].on.t-wipe .st-tv > :not(.st-run) { animation: st-wipe .8s ease both; }
.st-wallframes > [data-frame].on.t-wipeup .st-tv > .st-run.on, .st-wallframes > [data-frame].on.t-wipeup .st-tv > :not(.st-run) { animation: st-wipeup .8s ease both; }
/* And within a screen's own run, each thing its own way in. */
.st-run { transition: none; }
.st-run.on.t-fade { animation: st-fadein .7s ease both; }
.st-run.on.t-slide { animation: st-slide .7s ease both; }
.st-run.on.t-wipe { animation: st-wipe .8s ease both; }
.st-run.on.t-wipeup { animation: st-wipeup .8s ease both; }

/* A phone (19 Oct 2026, the studio walk): the board's name keeps its room in the top bar, and your own seconds a row of its own. */
.st-narrow-only { display: none; }
@media (max-width: 560px) {
  .st-wide-only { display: none; }
  .st-narrow-only { display: inline; }
  .st-scan-btn { padding: 0 12px; }
  .st-even-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-even-5 .st-secs-own { grid-column: 1 / -1; }
}

/* A picture across the wall: each screen's row shows its own slice (23 Oct 2026). */
.st-tl-wallpic .st-tl-wslices { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(var(--rows), 1fr); gap: 8px; padding: 6px; }
.st-tl-wslice { position: relative; justify-self: center; height: 100%; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border-radius: 6px; background: #000; }
.st-tl-wslice.tall { aspect-ratio: 9 / 16; }
.st-tl-wslice img, .st-tl-wslice video { position: absolute; max-width: none; object-fit: fill; }
.st-opening { padding: 18px 4px; }

/* ONE ROW ALONG THE TOP WITH A BOARD OPEN (George, 24 Oct 2026, his mock-up:
 * "move the items up ... so users don't have to keep scrolling down"). The
 * name, Your boards, the look, the three steps, Scan a card and the credits
 * share one row on a computer screen (from 1360 px; narrower, the second
 * row as before); a long name gives way first, then the Scan words. */
@media (min-width: 1360px) {
  .st-top:has(.st-top-mid) { flex-wrap: nowrap; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
  .st-top:has(.st-top-mid) .st-title { flex: 0 1 auto; min-width: 90px; max-width: 300px; }
  .st-top:has(.st-top-mid) .st-top-mid { flex: 1 0 auto; min-width: 0; order: 0; flex-basis: auto; justify-content: space-between; }
  .st-top:has(.st-top-mid) .st-top-actions { flex: 0 0 auto; flex-wrap: nowrap; }
}
@media (min-width: 1360px) and (max-width: 1500px) {
  .st-top:has(.st-top-mid) .st-scan-btn .st-wide-only { display: none; }
}

/* The transition chosen, ticked (George, 24 Oct 2026: "would be good to see a tick on the transition style selected"). */
.st-demo { position: relative; }
.st-demo.on::after { content: '\2713'; position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #04130a; font-weight: 900; font-size: 15px; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); z-index: 2; }
.st-demo.on b::before { content: '\2713\00a0'; color: var(--green); }

/* Put it on your TV: the setup film's tile, first on Your boards (24 Oct 2026). */
.st-card-setup { cursor: pointer; text-align: left; }
.st-setup-pic { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.st-setup-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-setup-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #04130a; font-size: 26px; padding-left: 5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.st-card-setup:hover .st-setup-play { transform: scale(1.06); }
.st-setup-video { width: 100%; border-radius: 14px; background: #000; display: block; aspect-ratio: 16 / 9; }
.st-how.st-how-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .st-how.st-how-3 { grid-template-columns: 1fr; } }

/* One board: no pause sign over it either (24 Oct 2026). */
.st-play-big.st-one .st-tv-tap { display: none; }

/* Your boards and videos: a tab each (24 Oct 2026). */
.st-pick-tabs { margin: 0 0 12px; }
.st-pick-pic { position: relative; }
.st-vid-pill { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 999px; }

/* One screen: the TV on top, the reel under it, as on a wall (24 Oct 2026). */
.st-tl-one { grid-template-rows: 30px auto auto; row-gap: 8px; }
.st-tl-one .st-tl-head { cursor: default; }
.st-tl-one .st-line { min-width: 0; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 8px 8px 12px; }

.st-videos-note { margin: 10px 0 0; } .st-videos-note b { color: var(--green); }

/* Width is time (24 Oct 2026): names clip rather than widen a clip. */
.st-tl-item .st-tl-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-tl-run .st-tl-row { width: 100%; }

.st-tl-rest { display: grid; place-items: center; min-width: 0; box-sizing: border-box; border-radius: 10px; border: 1px dashed var(--line); color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; }

/* The way in (gate.js) and the password bar (25 Oct 2026, moved from the old dashboard). */
.st-gate-form { margin-top: 8vh; margin-bottom: 8vh; }
.st-gate-lede { text-align: center; margin: 0 0 6px; }
.st-gate-banner { background: var(--surface-2); border: 1px solid var(--green); border-radius: 12px; padding: 12px 14px; margin: 8px 0 0; }
/* A partner's member chooses how to start: the full plan with the free month first, the free screen second (26 Oct 2026). */
.st-gate-choice { border: 0; padding: 0; margin: 12px 0 4px; display: grid; gap: 8px; }
.st-gate-choice legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.st-gate-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--surface); }
.st-gate-opt:has(input:checked) { border-color: var(--green); background: var(--surface-2); box-shadow: 0 0 0 1px var(--green) inset; }
.st-gate-opt input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--green); }
.st-gate-opt span { display: block; min-width: 0; }
.st-gate-opt i { font-style: normal; font-size: 12px; color: var(--green); font-weight: 600; margin-left: 4px; }
.st-gate-opt small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 4px; }
.st-gate-opt small.st-gate-price { color: var(--text); font-weight: 600; }
.st-gate-more { margin-top: 12px; }
.st-gate-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.st-gate-more summary i { font-style: normal; margin-left: 4px; }
.st-gate-offers span { font-weight: 500; }
.st-gate-cost { margin: 10px 0 0; }
.st-gate-join { margin-top: 6px; width: 100%; }
.st-gate-swap { text-align: center; margin: 8px 0 0; }
.st-gate-what { display: block; text-align: center; }
.st-pwbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; background: var(--surface); border: 1px solid var(--green); border-radius: 14px; padding: 12px 16px; margin: 0 auto 18px; max-width: 1120px; }
.st-pwbar span { flex: 1 1 260px; }
.st-pwbar .st-link { margin: 0; }
.st-looking { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 24px; background: #12301f; border-bottom: 1px solid var(--green); }
.st-looking-pick { display: flex; gap: 8px; align-items: center; }
.st-looking-pick select { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; padding: 0 10px; }
/* What a login may not do is not shown (studio.js roleClasses; the server refuses it anyway). */
.st-no-boards [data-make-board], .st-no-boards [data-new-screen], .st-no-boards [data-delete-board], .st-no-boards [data-add], .st-no-boards .st-tl-gap,
.st-no-publish [data-send-board], .st-no-publish [data-finish],
.st-no-money .st-credits, .st-no-money [data-sheet="credits"] { display: none !important; }
.st-unlock { border-color: var(--gold); color: var(--gold); }
/* The full plan's box at the top of a locked page (studio.js upsellHtml, 26 Oct 2026). */
.st-upsell { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; box-sizing: border-box; width: min(1072px, calc(100% - 48px)); margin: 24px auto 0; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--gold); background: linear-gradient(135deg, rgba(245, 194, 27, .14), rgba(245, 194, 27, .04)); }
.st-upsell > div { flex: 1 1 320px; min-width: 0; }
.st-upsell b { display: block; font-size: 19px; margin-bottom: 4px; }
.st-upsell p { margin: 0; color: var(--muted); line-height: 1.45; }
.st-upsell .st-btn { flex: none; }
@media (max-width: 560px) { .st-upsell .st-btn { width: 100%; } }
/* Menu on phones (pages/phone-menu.js). */
.stp-phone-body { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.stp-phone-qr { background: #fff; border-radius: 12px; padding: 8px; width: 220px; max-width: 100%; flex: 0 0 auto; }
.stp-phone-qr svg { display: block; width: 100%; height: auto; }
.stp-phone-side { flex: 1 1 16rem; min-width: 0; }
.stp-phone-address { margin: 0 0 10px; font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.stp-phone-address a { color: var(--text); }
/* What stopped you? (lost-reason.js) */
.st-lost { position: relative; max-width: 1120px; margin: 0 auto 18px; border-color: var(--green); }
.st-lost h2 { margin: 0 48px 4px 0; }
.st-lost-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }
.st-lost-answers .st-btn { min-height: 56px; white-space: normal; }
.st-lost-answers .st-btn[aria-pressed="true"] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.st-lost .st-inline input { flex: 1 1 220px; min-height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; }
.stp-tvhelp-note { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: inherit; }
.st-pair-quiet { margin: 10px 0 0; color: var(--muted); }
.st-pair-quiet .st-link { margin: 0; padding: 4px 0; }
.st-install { display: flex; gap: 6px; align-items: center; margin: 0 0 10px; }
.st-install .st-link { margin: 0; font-size: 20px; padding: 4px 8px; }
.st-q[hidden], .st-gate-form [hidden] { display: none !important; }

/* Your studio: every screen on the tile as a small TV, its own shape (studio.js studioTileHtml, 25 Oct 2026). */
.st-card-studio { justify-items: stretch; }
.st-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; width: 100%; padding: 10px; border-radius: 12px; background: #050505; }
.st-minis-1 { grid-template-columns: minmax(0, 1fr); }
.st-minis-2, .st-minis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-mini { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #0f1626; color: var(--muted); font-size: 11px; }
.st-mini.tall { aspect-ratio: 9 / 16; width: 50%; justify-self: center; }
.st-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.st-mini i { font-style: normal; }
.st-mini b { position: absolute; left: 3px; bottom: 3px; display: flex; align-items: center; gap: 3px; max-width: calc(100% - 6px); padding: 1px 5px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-mini-more { font-weight: 700; color: var(--text); }
.st-card-other .st-minis { min-height: 120px; align-items: center; }
.st-card-other, .st-card-other:hover { text-decoration: none; color: var(--text); }
.st-tl-head b { display: flex; align-items: center; gap: 6px; min-width: 0; padding-right: 26px; }
.st-tl-rowname { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* How the row's TV hangs, as a little TV: tap to turn it (studio.js wallTimelineHtml). */
.st-tl-shape { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.st-tl-shape:hover { background: var(--surface); }
.st-tl-shape i { display: block; width: 16px; height: 10px; border: 2px solid var(--green); border-radius: 2px; }
.st-tl-shape.tall i { width: 10px; height: 16px; }

/* Extras, one TV at a time: a tab each, the TV's name as the heading (studio.js extrasHtml, 25 Oct 2026). */
.st-extras-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.st-extras-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.st-extras-tab.on { border-color: var(--green); background: rgba(34, 197, 94, .12); }
.st-extras-name { font-size: 32px; line-height: 1.15; }
.st-tl-pic:has(.st-tl-strip) { background: transparent; }
.st-tl-run.compact .st-tl-row { justify-content: flex-start; }
.st-tl-run.compact .st-tl-plus.fill { flex: 0 0 128px; }

/* A studio with nothing on it yet: one + a screen, with words (studio.js wallTimelineHtml, 25 Oct 2026). */
.st-tl-end.st-tl-firstcol { flex: 1 1 auto; width: auto; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.st-tl-addrow.st-tl-first { width: 100%; display: flex; align-items: center; gap: 14px; padding: 0 18px; text-align: left; }
.st-tl-first b { font-size: 32px; line-height: 1; }
.st-tl-first strong { display: block; color: var(--text, #eaf2ff); font-size: 15px; font-weight: 800; }
.st-tl-first i { display: block; font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted, #9fb0c8); margin-top: 2px; }
/* The header row never pushes the page sideways: the theme chips and the Design / Screens / Extras tabs wrap (25 Oct 2026, 6px over at 1024 wide). */
.st-top-mid { min-width: 0; max-width: 100%; flex-wrap: wrap; row-gap: 8px; }
.st-top-mid .st-dots { flex-wrap: wrap; }

/* The way in: the button says it is working the moment it is pressed (gate.js, 25 Oct 2026). */
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-spin { display: inline-block; width: 1.05em; height: 1.05em; margin-right: .5em; vertical-align: -.15em; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: st-spin .7s linear infinite; }
.st-btn.st-busy:disabled { opacity: 1; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .st-spin { animation-duration: 2s; } }

/* Link a TV, laid out like the set-up email (studio.js openLinkScreen, 25 Oct 2026). */
.st-linksteps { margin: 0 0 12px; padding-left: 1.4em; display: grid; gap: 14px; }
.st-linksteps li { line-height: 1.4; }
.st-linksteps li > i { display: block; font-style: normal; color: var(--muted); font-size: 13px; margin-top: 6px; }
.st-linksteps .st-stores, .st-linksteps .st-inline { margin-top: 8px; }
.st-linkfilm { margin-bottom: 12px; }
.st-linkmore summary { cursor: pointer; font-weight: 700; }
/* The next step once a board is on a screen: link its TV. */
.st-linknudge { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--green); background: rgba(46, 212, 122, .1); }
.st-tl-linkbox.due { background: var(--green); color: #052e16; border-color: var(--green); font-weight: 800; }
/* The + beside a screen's one board says what it does. */
.st-tl-addrow.st-tl-addpage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; line-height: 1.2; text-align: center; padding: 6px; }
.st-tl-addpage b { font-size: 24px; line-height: 1; }
.st-tl-addpage span { color: var(--text, #eaf2ff); font-weight: 800; }
.st-tl-addpage i { font-style: normal; font-weight: 500; font-size: 11px; color: var(--muted, #9fb0c8); }

/* A studio's screens: the whole name ("Screen 1", not "Scr..."), and a Pages heading over what each shows (25 Oct 2026). */
.st-tl-head b { white-space: normal; }
.st-tl-rowname { overflow-wrap: break-word; word-break: normal; }
.st-tl-head:not(:has(.st-tl-drop)) b { padding-right: 0; }
.st-tl-pageshead { font-weight: 800; color: var(--muted); }

/* Link a TV, step by step (studio.js openLinkScreen, 25 Oct 2026): numbered steps, the film between them, questions one at a time. */
.st-lstep { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; margin: 4px 0 14px; }
.st-lnum { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #052e16; font-weight: 800; }
.st-lstep b { display: block; font-size: 16px; margin-top: 5px; }
.st-lstep i { display: block; font-style: normal; color: var(--muted); font-size: 13px; margin-top: 6px; }
.st-lstep .st-stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.st-lstep .st-inline { margin-top: 10px; }
.st-lstep [data-ls-code] { text-transform: uppercase; letter-spacing: .2em; font-size: 22px; }
.st-linkvideo { display: block; width: 100%; max-height: 260px; border-radius: 12px; background: #000; margin: 0 0 16px; }
.st-lmore { display: block; width: 100%; margin-top: 6px; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--green); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.st-lstepof { margin: 0 0 4px; color: var(--muted); font-size: 13px; font-weight: 700; }
.st-lq { margin: 0 0 6px; font-size: 20px; }
[data-ls-fr] { text-transform: uppercase; letter-spacing: .08em; font-size: 20px; }

/* Step 2 of Link a TV: two buttons, then a code box as wide as six letters (25 Oct 2026). */
.st-lchoice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
@media (max-width: 520px) { .st-lchoice { grid-template-columns: 1fr; } }
.st-lpick { display: grid; gap: 3px; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.st-lpick strong { font-size: 15px; }
.st-lpick span { font-size: 13px; color: var(--muted); }
.st-lpick:hover, .st-lpick.on { border-color: var(--green); }
.st-lcode { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.st-lcode [data-ls-code] { width: 8.5em; max-width: 100%; text-align: center; text-transform: uppercase; letter-spacing: .25em; font-size: 26px; padding-left: .25em; }

.st-lpickwrap { display: grid; gap: 0; align-content: start; }
.st-lcode input { min-height: 52px; padding: 0 .25em 0 .5em; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.st-lcode [data-ls-code] { font-size: 26px; }

/* The stores' own badges in Link a TV, one size (studio.js storeBadgesHtml). */
.st-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.st-badgecell { display: grid; gap: 5px; justify-items: center; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 700; }
.st-badge { position: relative; display: block; width: 100%; aspect-ratio: 572 / 168; overflow: hidden; border-radius: 8px; line-height: 0; background: #000; transition: transform .18s ease, filter .18s ease; }
.st-badge img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.st-badge.play img { position: absolute; left: 50%; top: 50%; width: auto; height: calc(100% * 250 / 168); transform: translate(-50%, -50%); }
/* Apple's badge, drawn as theirs (public/looks/store/app-store-badge.svg), the same size as the other two. */
.st-badgecell:hover .st-badge { transform: translateY(-2px); filter: brightness(1.12); }

/* One page on each screen: its name is the heading ("Page 1", level with Screens), so the picture has the whole tile
 * (George, 25 Oct 2026: "Page 1 text should have moved above so the board thumbnail shows full"). */
.st-tl-run.compact .st-tl-item { grid-template-rows: 1fr; }
.st-tl-run.compact .st-tl-item .st-tl-name { display: none; }
.st-tl-run.compact .st-tl-strip { background-position: center; }

/* THE HELP BUBBLE ON A PHONE (26 Oct 2026, the walk as a new owner). With a screen open, its big buttons
   along the bottom pushed the bubble up over the words. There, Help is in the menu (☰ Help opens the same
   chat); the bubble stays on the first page, where nothing is under it. */
@media (max-width: 760px) { body:has(.st-foot:not([hidden])) .cbh-btn { display: none; } }
/* The paid plan's codes, said on the free plan's Extras. */
.st-sell-list { margin: 6px 0 14px; padding-left: 18px; display: grid; gap: 8px; color: var(--muted, #a7b6cc); }
.st-sell-list b { color: var(--ink, #f4f7fc); }

/* An empty studio's preview: small enough that its screens and their + are in view (26 Oct 2026). */
.st-pane .st-wallplay.st-wall-empty, .st-wallplay.st-wall-empty { width: min(100%, calc(32vh * 16 / 9)); max-width: min(100%, 620px); margin: 14px auto 0; }
.st-wall-empty .st-tvset { margin-bottom: 12px; }
/* On a phone the first-board box is the height of its screen's row: the heading only, so nothing spills out (26 Oct 2026). */
@media (max-width: 560px) { .st-tl-addrow.st-tl-first { padding: 0 12px; gap: 10px; } .st-tl-first i { display: none; } .st-tl-first b { font-size: 26px; } }
/* A how-to film still playing, in the corner (film-dock.js, 26 Oct 2026). */
.st-filmdock { position: fixed; right: 20px; bottom: 84px; z-index: 60; width: 320px; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.st-filmdock-pic video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.st-filmdock-bar { padding: 10px 12px 12px; display: grid; gap: 8px; }
.st-filmdock-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-filmdock-acts { display: flex; gap: 6px; }
.st-filmdock-acts button { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.st-filmdock-acts button:hover { border-color: var(--green); }
.st-filmdock-acts [data-dock="close"] { flex: 0 0 44px; font-size: 20px; }
@media (max-width: 560px) { .st-filmdock { left: 12px; right: 12px; width: auto; bottom: 76px; } }
