:root {
  --bg: #07060b; --panel: #111018; --panel2: #18161f; --line: rgba(255,255,255,.08);
  --text: #f5f3f8; --muted: #9a96a8; --dim: #4a4656;
  --accent: #ff7a3d; --pink: #ff4fa3; --accent2: #2de2e6; --gold: #ffd23f; --violet: #7b3fe4;
  --sunset: linear-gradient(90deg, #ff4fa3, #ff7a3d 55%, #ffd23f);
  --good: #4ade80; --warn: #fbbf24; --bad: #f87171;
  --r: 12px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: radial-gradient(1100px 420px at 50% -160px, rgba(255,79,163,.16), rgba(255,122,61,.06) 45%, transparent 75%) no-repeat, var(--bg); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(255,122,61,.35); }

/* header (same as the landing page) */
header { position: sticky; top: 0; z-index: 20; background: rgba(7,6,11,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 14px 24px; }
.logo { font-family: Inter, system-ui, sans-serif; font-weight: 800; font-size: 23px; letter-spacing: -.055em; line-height: 1; padding-right: 2px; text-decoration: none; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
nav.tabs { display: flex; gap: 2px; flex: 1; justify-content: center; overflow-x: auto; scrollbar-width: none; }
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs button { background: none; border: 0; padding: 7px 14px; border-radius: 99px; color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: color .2s, background .2s; }
nav.tabs button:hover { color: #fff; }
nav.tabs button.on { color: #fff; background: rgba(255,255,255,.08); }

/* ··· menu: secondary pages live here so the top bar stays clean */
.more { position: relative; }
.dots { display: grid; grid-auto-flow: column; gap: 3px; place-content: center; width: 36px; height: 34px; border: 0; border-radius: 99px; background: none; cursor: pointer; transition: background .2s; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.7); transition: background .2s; }
.dots:hover, .dots.open, .dots.on { background: rgba(255,255,255,.08); }
.dots:hover i, .dots.open i, .dots.on i { background: #fff; }
.menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 6px; border-radius: 14px; background: #15131c; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 60px -12px rgba(0,0,0,.7); z-index: 40; animation: menuIn .16s ease-out; }
@keyframes menuIn { from { transform: translateY(-4px); } to { transform: none; } }
.menu a, .menu button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.menu a:hover, .menu button:hover, .menu .on { background: rgba(255,255,255,.05); color: #fff; }
.menu svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: .8; }
.menu svg.fill { fill: currentColor; stroke: none; }
.menu .coin { width: 17px; height: 17px; vertical-align: 0; margin: 0; }
.menu .soon { opacity: .45; cursor: default; }
.menu .soon:hover { background: none; color: rgba(255,255,255,.85); }
.tag { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--muted); font-size: 11px; font-weight: 600; }

/* the $CLIPPING coin, used in place of the ticker next to amounts */
.coin { display: inline-block; width: .9em; height: .9em; margin: 0 .05em; vertical-align: -.1em; border-radius: 50%; background: url(/coin.svg) center / contain no-repeat; }
.grid2.solo { grid-template-columns: minmax(0, 640px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer; font-weight: 600; font-size: 14px; background: rgba(255,255,255,.08); white-space: nowrap; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:hover { background: rgba(255,255,255,.13); }
.btn:active { transform: translateY(1px); }
.btn.primary, #walletBtn { background: var(--accent); color: #fff; font-weight: 700; }
.btn.primary:hover, #walletBtn:hover { background: #ff8c55; box-shadow: 0 8px 30px -8px rgba(255,122,61,.6); }
.btn.small { padding: 7px 13px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }

main { max-width: 1180px; margin: 0 auto; padding: 40px 24px 90px; }
section.view { display: none; }
section.view.on { display: block; animation: fadein .45s cubic-bezier(.2,.7,.2,1); }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } }
h1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 64px); line-height: 1; margin: 0 0 14px; letter-spacing: -.045em; }
h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 17px; margin: 0 0 28px; max-width: 600px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; transition: border-color .25s; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 > *, .editor > * { min-width: 0; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.07); color: var(--muted); white-space: nowrap; }
.chip.good { background: rgba(74,222,128,.12); color: var(--good); }
.chip.warn { background: rgba(251,191,36,.12); color: var(--warn); }
.chip.bad { background: rgba(248,113,113,.12); color: var(--bad); }
.chip.pink { background: rgba(255,79,163,.14); color: var(--pink); }
input[type=text], input[type=number], input[type=url], select, textarea { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; width: 100%; outline: none; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { border-color: rgba(255,122,61,.55); }
label.f { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }

/* list rows (soft hover) */
.rows { display: flex; flex-direction: column; gap: 2px; }
.row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; transition: background .2s; cursor: pointer; text-decoration: none; }
.row:hover { background: rgba(255,255,255,.04); }
.row:hover .t { color: var(--accent); }
.row .th { width: 64px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--panel2); flex: none; }
.row .th.tall { width: 36px; height: 56px; }
.row .body { flex: 1; min-width: 0; }
.row .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .d { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .end { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }
/* viral score badge */
.score { flex: none; width: 48px; height: 48px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; background: rgba(255,255,255,.06); color: var(--muted); }
.score b { font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.score span { font-size: 10px; margin-top: 3px; text-transform: uppercase; letter-spacing: .5px; }
.score.hot { background: linear-gradient(135deg, rgba(255,79,163,.22), rgba(255,122,61,.14)); color: #ff9a6b; }
.score.warm { background: rgba(255,210,63,.14); color: var(--gold); }
.score.big { width: 64px; height: 64px; border-radius: 16px; }
.score.big b { font-size: 28px; }
.edit-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.rank { width: 22px; color: var(--muted); font-size: 13px; text-align: right; flex: none; }

/* studio */
.drop { border: 1.5px dashed rgba(255,255,255,.14); border-radius: 20px; padding: 56px 20px; text-align: center; cursor: pointer; transition: .15s; background: var(--panel); }
.drop:hover, .drop.over { border-color: rgba(255,122,61,.6); background: #14121c; }
.drop .big { font-weight: 800; font-size: 22px; letter-spacing: -.02em; margin-bottom: 4px; }
.sources { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.sources button { background: rgba(255,255,255,.05); border: 1px solid transparent; border-radius: 99px; padding: 6px 13px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--muted); transition: color .2s, border-color .2s; }
.sources button:hover { color: var(--text); }
.sources button.on { border-color: rgba(255,122,61,.6); color: var(--text); background: rgba(255,122,61,.08); }
.progress { height: 4px; background: var(--panel2); border-radius: 4px; overflow: hidden; margin: 14px 0 6px; }
.progress > div { height: 100%; width: 0; background: var(--sunset); transition: width .3s; }
.editor { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.stage { position: relative; width: 340px; aspect-ratio: 9/16; border-radius: 22px; box-shadow: 0 40px 100px -40px rgba(255,79,163,.4); overflow: hidden; background: #000; }
.stage canvas { width: 100%; height: 100%; display: block; }
.stage .play { position: absolute; inset: 0; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.stage .play span { width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; font-size: 22px; }
.stage.playing .play span { opacity: 0; }
.seg { display: inline-flex; background: var(--panel2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { background: none; border: 0; padding: 6px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); font-size: 13px; }
.seg button.on { background: rgba(255,255,255,.09); color: var(--text); }
.trim { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch { display: flex; align-items: center; gap: 8px; margin-top: 12px; cursor: pointer; color: var(--muted); font-size: 14px; }
.switch input { accent-color: var(--accent); width: 16px; height: 16px; }
.done-box { margin-top: 18px; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 22px; font-weight: 700; letter-spacing: 1px; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: "0" counter(s); flex: none; width: 24px; padding-top: 1px; color: var(--dim); font-size: 13px; font-weight: 700; transition: color .2s; }
.steps li:hover::before { color: var(--accent); }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; }
.hidden-video { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; left: -10px; top: 0; }

/* bounty */
.pool { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 26px; }
.stat .n { font-weight: 800; font-size: 40px; line-height: 1.05; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 13px; }
details.fine { margin-top: 16px; color: var(--muted); font-size: 13px; }
details.fine summary { cursor: pointer; color: var(--text); font-size: 14px; }
details.fine ul { padding-left: 18px; }
.tier { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* radar + feed */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tile { border-radius: 14px; transition: background .2s; overflow: hidden; text-decoration: none; display: block; padding: 6px; }
.tile:hover { background: rgba(255,255,255,.04); }
.tile:hover .t { color: var(--accent); }
.tile img, .tile video { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; background: var(--panel2); display: block; }
.tile video { aspect-ratio: 9/16; }
.tile .t { font-weight: 600; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .d { color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.soon { position: relative; }
.soon > .under { opacity: .25; filter: grayscale(.6); pointer-events: none; user-select: none; }
.soon > .cover { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.soon > .cover div { background: rgba(17,16,24,.92); backdrop-filter: blur(8px); border: 1px solid var(--line); padding: 16px 22px; border-radius: 16px; }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: rgba(24,22,31,.95); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); padding: 11px 18px; border-radius: 12px; z-index: 50; max-width: calc(100vw - 32px); font-size: 14px; }

@media (max-width: 820px) {
  .editor { grid-template-columns: 1fr; }
  .stage { width: min(340px, 100%); margin: 0 auto; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bar { gap: 10px; padding: 12px 16px; flex-wrap: wrap; }
  .logo { font-size: 22px; }
  nav.tabs { order: 3; flex-basis: 100%; margin: 0 -4px; justify-content: flex-start; }
  .more { margin-left: auto; }
  main { padding: 26px 16px 70px; }
  h1 { font-size: 38px; }
  .drop { padding: 34px 16px; }
  .stat .n { font-size: 32px; }
  #feed { grid-template-columns: 1fr 1fr; gap: 6px; }
  .pool { gap: 22px; }
}

/* sponsored bounties */
.tok { flex: none; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, rgba(255,79,163,.22), rgba(255,122,61,.16)); color: #ffb08a; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.meter { height: 4px; background: var(--panel2); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.meter > div { height: 100%; background: var(--sunset); }
.camp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.camp-stats > div { background: var(--panel2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.camp-stats b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp-stats span { color: var(--muted); font-size: 12px; }
#campDetail .inline select { flex: 1; min-width: 0; }

/* auto-import */
.auto-head { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.auto-head > div { min-width: 0; }
@media (max-width: 560px) { .auto-head { flex-direction: column; align-items: flex-start; } }

/* first big number on a page gets the sunset, like the landing page */
.pool .stat:first-child .n { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2px; }

/* Logo: slanted play mark + italic GTA */
.logo { display: inline-flex; align-items: center; gap: .2em; font-style: italic; font-weight: 900; letter-spacing: -.035em; text-decoration: none; }
.logo .mark { flex: none; width: 1.08em; height: .98em; background: var(--sunset); -webkit-mask: url(/mark.svg) center / contain no-repeat; mask: url(/mark.svg) center / contain no-repeat; }

/* One-click posting (Post for Me) */
.social { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.social-head { display: flex; flex-direction: column; gap: 2px; }
.accts { display: flex; flex-wrap: wrap; gap: 8px; }
.accts:empty { display: none; }
.acct { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.acct:hover { color: var(--text); border-color: rgba(255,255,255,.18); }
.acct.on { color: var(--text); border-color: rgba(255,122,61,.6); background: rgba(255,122,61,.08); }
.acct img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.acct img + .sicon { position: absolute; left: 20px; bottom: 4px; width: 11px; height: 11px; background: var(--panel2); border-radius: 50%; padding: 1px; }
.acct .dc { font-style: normal; width: 18px; height: 18px; margin-right: -5px; display: grid; place-items: center; border-radius: 50%; color: var(--dim); opacity: 0; transition: opacity .15s, background .15s; }
.acct:hover .dc { opacity: 1; }
.acct .dc:hover { background: rgba(255,255,255,.08); color: var(--text); }
.sicon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sicon.youtube { color: #ff3d3d; } .sicon.tiktok { color: #e7e7ee; } .sicon.x { color: #e7e7ee; } .sicon.instagram { color: #ff5fa8; } .sicon.facebook { color: #4b8bff; } .sicon.threads { color: #e7e7ee; }
.connect { position: relative; align-self: flex-start; }
.connect .menu { left: 0; right: auto; top: calc(100% + 8px); }
.connect .menu button .tag.good { background: rgba(74,222,128,.12); color: var(--good); }
.social textarea { resize: vertical; min-height: 78px; font: inherit; font-size: 14px; line-height: 1.45; color: var(--text); }
#socialSend { align-self: flex-start; }
.sresults { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.srow { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: 14px; transition: background .2s; }
.srow + .srow { border-top: 1px solid var(--line); }
.srow:hover { background: rgba(255,255,255,.03); }
.srow b { font-weight: 600; }
.srow .st { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.srow .why { color: var(--muted); font-size: 12px; max-width: 260px; }
.manual { margin-top: 14px; }
.manual > summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; list-style: none; }
.manual > summary::before { content: "▸ "; }
.manual[open] > summary::before { content: "▾ "; }
.manual > summary:hover { color: var(--text); }
.manual.bare > summary { display: none; }
@media (max-width: 560px) { .srow { flex-wrap: wrap; } .srow .st { margin-left: 26px; justify-content: flex-start; text-align: left; } }

/* 2026 Vice City HUD redesign */
:root {
  --bg: #090d25; --panel: #131832; --panel2: #1a2042; --line: rgba(96,239,255,.16);
  --text: #fff9e7; --muted: #aeb5d6; --dim: #626b91;
  --accent: #ff3f9b; --pink: #ff3f9b; --accent2: #60efff; --gold: #ffd84a;
  --sunset: linear-gradient(90deg, #60efff 0 22%, #ff3f9b 22% 66%, #ffd84a 66%);
  --r: 3px;
}
html { scroll-behavior: smooth; }
body { background-color: var(--bg); background-image: linear-gradient(rgba(96,239,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(96,239,255,.025) 1px, transparent 1px), radial-gradient(800px 440px at 86% 0, rgba(255,63,155,.2), transparent 70%); background-size: 46px 46px, 46px 46px, auto; }
::selection { background: var(--pink); color: white; }
header { background: rgba(9,13,37,.94); border-bottom: 3px solid transparent; border-image: linear-gradient(90deg,var(--pink),var(--gold),var(--accent2)) 1; }
.logo { font-family: Anton, Impact, sans-serif; font-style: normal; font-size: 25px; letter-spacing: -.01em; color: var(--text); background: none; text-shadow: 2px 2px 0 var(--pink), 4px 4px 0 #050715; transform: skew(-5deg); }
.logo .mark { background: var(--gold); filter: drop-shadow(2px 2px 0 var(--pink)); }
.flow button { border-radius: 2px; }
.flow button.on { color: #090d25; background: var(--gold); box-shadow: 3px 3px 0 var(--pink); }
.toplinks a { border-radius: 2px; font-family: Anton, Impact, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.side { background: rgba(9,13,37,.82); border-right: 2px solid rgba(96,239,255,.16); }
.side-label { color: var(--accent2); font-family: Anton, Impact, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.side nav.tabs button, .side-foot a { border-radius: 2px; border-left: 3px solid transparent; }
.side nav.tabs button:hover, .side-foot a:hover { border-left-color: var(--accent2); background: rgba(96,239,255,.07); }
.side nav.tabs button.on { color: #090d25; background: var(--pink); border-left-color: var(--gold); box-shadow: 4px 4px 0 #050715; }
h1 { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: -.015em; color: var(--text); text-shadow: 4px 4px 0 rgba(255,63,155,.75); }
h2 { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
.lead { color: #cbd2ee; }
.btn { border: 2px solid #050715; border-radius: 2px; font-family: Anton, Impact, sans-serif; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; box-shadow: 3px 3px 0 #050715; }
.btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 #050715; }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 #050715; }
.btn.primary, #walletBtn { color: #090d25; background: var(--gold); }
.btn.primary:hover, #walletBtn:hover { color: #090d25; background: #fff09d; box-shadow: 5px 5px 0 var(--pink); }
.card, .choice { border: 2px solid #050715; border-radius: 3px; background: #141a38; box-shadow: 6px 6px 0 rgba(96,239,255,.28); }
.choice:nth-child(even) { box-shadow: 6px 6px 0 rgba(255,63,155,.35); }
.drop { border: 2px dashed var(--accent2); border-radius: 2px; background: #0d122b; }
.drop:hover, .drop.over { border-color: var(--pink); background: #141a38; }
.drop .big { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 28px; text-transform: uppercase; }
.sources button, .chip, .tag, .seg, .seg button, .row, .tile, .tile img, .tile video, .menu, .menu a, .menu button, input, select, textarea { border-radius: 2px !important; }
.sources button.on, .seg button.on { color: #090d25; border-color: #050715; background: var(--accent2); box-shadow: 2px 2px 0 var(--pink); }
.row:hover { background: rgba(96,239,255,.07); }
.row:hover .t, .tile:hover .t { color: var(--accent2); }
.score.hot { color: #090d25; background: var(--pink); box-shadow: 3px 3px 0 var(--gold); }
.score.warm { color: #090d25; background: var(--gold); }
.progress > div, .meter > div { background: linear-gradient(90deg,var(--accent2),var(--pink),var(--gold)); }
#toast { border: 2px solid var(--accent2); border-radius: 2px; background: #0d122b; box-shadow: 5px 5px 0 var(--pink); }
.stage { border-radius: 3px; border: 3px solid #050715; box-shadow: 10px 10px 0 var(--pink), 16px 16px 0 #050715; }
.pool .stat:first-child .n, .code { color: var(--gold); background: none; text-shadow: 3px 3px 0 var(--pink); }
input:focus, select:focus, textarea:focus { border-color: var(--accent2); box-shadow: 0 0 0 2px rgba(96,239,255,.16); }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; }
@media (max-width: 560px) {
  h1 { font-size: 46px; }
  .bar { border-bottom: 0; }
}

/* ================= App shell: top bar, left sidebar, main, right rail (Whop-style) ================= */
:root { --top: 60px; --side: 236px; --rail: 340px; }
header .bar { max-width: none; height: var(--top); padding: 0 20px; gap: 20px; box-sizing: border-box; }
header .logo { margin-right: auto; }
.toplinks { display: flex; align-items: center; gap: 4px; }
.toplinks a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; color: rgba(255,255,255,.78); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s, background .2s; }
.toplinks a:hover { color: #fff; background: rgba(255,255,255,.05); }
.toplinks a.soon { color: rgba(255,255,255,.38); cursor: default; }
.toplinks a.soon:hover { background: none; }
.toplinks a.soon .coin { opacity: .45; }
header .more { display: none; }

[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 8px); transform: translate(-50%, -3px); padding: 5px 9px; border-radius: 8px; background: #1d1a26; border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 50; }
[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); }

.shell { display: flex; align-items: flex-start; min-height: calc(100vh - var(--top)); }

/* left sidebar */
.side { position: sticky; top: var(--top); flex: none; width: var(--side); height: calc(100vh - var(--top)); box-sizing: border-box; padding: 18px 10px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; transition: width .22s cubic-bezier(.2,.7,.2,1); }
.side-label { padding: 0 12px 8px; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.side nav.tabs { display: flex; flex-direction: column; gap: 2px; flex: none; order: 0; flex-basis: auto; margin: 0; overflow: visible; justify-content: flex-start; }
.side nav.tabs button, .side-foot a { display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 11px; background: none; color: rgba(255,255,255,.72); font-size: 15px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; transition: color .15s, background .15s; box-sizing: border-box; }
.side nav.tabs button:hover, .side-foot a:hover { color: #fff; background: rgba(255,255,255,.04); }
.side nav.tabs button.on { color: #fff; background: rgba(255,255,255,.08); }
.side svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side svg.fill { fill: currentColor; stroke: none; width: 17px; height: 17px; margin: 0 1.5px; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 4px; }
.side-foot a { flex: 1; min-width: 0; }
.side-foot a.soon { color: rgba(255,255,255,.35); cursor: default; }
.side-foot a.soon:hover { background: none; color: rgba(255,255,255,.35); }
.side-foot a[data-tip]::after { top: auto; bottom: calc(100% + 6px); }
.collapse { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 11px; background: none; color: rgba(255,255,255,.55); cursor: pointer; transition: color .15s, background .15s; }
.collapse:hover { color: #fff; background: rgba(255,255,255,.05); }
body.collapsed .side { width: 68px; }
body.collapsed .side-label { visibility: hidden; }
body.collapsed .side nav.tabs button span, body.collapsed .side-foot a span { display: none; }
body.collapsed .side-foot { flex-direction: column; }
body.collapsed .side-foot a { justify-content: center; padding: 0; }

/* main column */
.shell > main { flex: 1; min-width: 0; max-width: 1040px; margin: 0 auto; padding: 36px 40px 90px; box-sizing: border-box; }

/* right rail */
.rail { position: sticky; top: var(--top); flex: none; width: var(--rail); box-sizing: border-box; padding: 28px 24px 24px 0; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - var(--top)); overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail:not(:has(.rcard:not([hidden]))) { display: none; }
.rcard { border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.rhead { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 17px; }
.rhead b { font-weight: 700; letter-spacing: -.01em; }
.rhead .muted { margin-left: auto; }
.rstat { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 14px; }
.rstat + .rstat { border-top: 1px solid var(--line); }
.rstat b { font-size: 15px; font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: livePing 2s infinite; }
@keyframes livePing { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); } 70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.pulse { display: flex; flex-direction: column; margin: 0 -8px; }
.prow { display: flex; gap: 12px; align-items: flex-start; padding: 9px 8px; border-radius: 12px; text-decoration: none; color: inherit; transition: background .15s; }
.prow:hover { background: rgba(255,255,255,.035); }
.prow .pic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--panel2) center / cover no-repeat; }
.prow .b { min-width: 0; }
.prow .t { font-size: 14px; font-weight: 600; line-height: 1.35; }
.prow .t em { font-style: normal; color: var(--good); }
.prow .d { margin-top: 2px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* the rail sits out the Radar and Feed (they are the live views) and the Studio (its three steps need the room) */
body[data-tab="radar"] .rail, body[data-tab="feed"] .rail, body[data-tab="studio"] .rail { display: none; }
@media (max-width: 1279px) { .rail { display: none; } }

/* tablets: icon-only sidebar */
@media (max-width: 1023px) {
  .side { width: 68px; }
  .side-label { visibility: hidden; }
  .side nav.tabs button span, .side-foot a span, .collapse { display: none; }
  .side-foot a { justify-content: center; padding: 0; }
  .shell > main { padding: 30px 28px 90px; }
}

/* phones: top bar + bottom tab bar */
@media (max-width: 720px) {
  header .bar { padding: 0 14px; gap: 10px; flex-wrap: nowrap; }
  .toplinks { display: none; }
  header .more { display: block; margin-left: 0; }
  .side { position: fixed; z-index: 30; top: auto; bottom: 0; left: 0; right: 0; width: auto; height: auto; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); background: rgba(7,6,11,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  body.collapsed .side { width: auto; }
  .side-label, .side-foot { display: none; }
  .side nav.tabs { flex-direction: row; justify-content: space-around; gap: 0; }
  /* every label whole, with clear space to the next: a button is never narrower than its word plus 3px a side, and the
     rest share what's left. The eight words need 324px at 10.5px, so on narrower phones the type follows the width
     (measured at every width from 320 to 720, with and without Feed). */
  .side nav.tabs button { flex: 1 1 0; min-width: max-content; flex-direction: column; justify-content: center; gap: 3px; height: 52px; padding: 0 3px; font-size: clamp(8.5px, 2.66vw, 10.5px); letter-spacing: -.01em; font-weight: 600; text-align: center; border-radius: 12px; }
  .side nav.tabs button span, body.collapsed .side nav.tabs button span { display: block; }
  .side nav.tabs button.on { background: none; color: #fff; }
  .side nav.tabs button.on svg { color: var(--accent); }
  .shell > main { padding: 24px 16px 110px; }
  #toast { bottom: 84px; }
}
@media (max-width: 400px) { .side { padding-left: 4px; padding-right: 4px; } }

/* app headings sit smaller inside the shell, like a dashboard */
.shell > main h1 { font-size: clamp(32px, 3.4vw, 46px); letter-spacing: -.04em; }
.shell > main .lead { font-size: 16px; }

/* Pulse: a new streamer slides in at the top with a short glow */
.prow.new { animation: pulseIn .6s cubic-bezier(.2,.7,.2,1) both, pulseGlow 2.4s ease-out; }
@keyframes pulseIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes pulseGlow { 0%, 30% { background: rgba(74,222,128,.07); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .prow.new { animation: none; } }

/* ================= Streamers page ================= */
body[data-tab="streamers"] .rail { display: none; }
.sbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.sbar input[type=search] { flex: 1 1 240px; min-width: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; outline: none; }
.sbar input[type=search]:focus { border-color: rgba(255,122,61,.55); }
.sbar select { width: auto; flex: none; padding: 9px 12px; }
.seg.small button { padding: 6px 12px; font-size: 13px; }
.slist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.slist:empty { display: none; }
.srow2 { display: flex; align-items: center; gap: 14px; padding: 10px 14px; transition: background .15s; }
.srow2 + .srow2 { border-top: 1px solid var(--line); }
.srow2:hover { background: rgba(255,255,255,.03); }
.srow2 .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.srow2 .pic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--panel2) center / cover no-repeat; }
.srow2 .b { min-width: 0; display: flex; flex-direction: column; }
.srow2 .n { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.srow2 .n .chip { font-size: 11px; padding: 2px 7px; }
.srow2 .d { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow2 .meta { flex: none; display: flex; align-items: center; gap: 12px; font-size: 13px; white-space: nowrap; }
.srow2 .meta em { font-style: normal; color: var(--good); font-weight: 700; }
.srow2 .meta .muted { width: 54px; text-align: right; }
.srow2 .clipit { flex: none; }
.plat { width: 15px; height: 15px; flex: none; fill: currentColor; }
.plat.kick { color: #53fc18; } .plat.twitch { color: #a970ff; } .plat.youtube { color: #ff3d3d; }
.dot-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 6px; vertical-align: 1px; }
.sload { padding: 22px 16px; text-align: center; }
#streamMore { margin: 14px auto 0; display: block; }
#streamPartners .slist { margin-bottom: 18px; }
.partner-card { max-width: 560px; }
@media (max-width: 720px) {
  .srow2 { gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
  .srow2 .who { flex: 1 1 100%; }
  .srow2 .meta { margin-left: 52px; flex: 1; }
  .srow2 .meta .muted { width: auto; }
  .srow2 .clipit { opacity: 1; }
  .sbar select { flex: 1; }
}

/* Radar: viral clips */
.vsort { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 14px; }
.vclip .thumb { position: relative; display: block; }
.vclip .thumb img { aspect-ratio: 16/9; }
.vclip .dur { position: absolute; right: 7px; bottom: 7px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.78); font-size: 12px; font-weight: 700; }
.vclip .pf { position: absolute; left: 7px; top: 7px; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.72); font-size: 11px; font-weight: 700; }
.vclip .pf.youtube { color: #ff5a5a; } .vclip .pf.tiktok { color: #6ff0f5; } .vclip .pf.x { color: #fff; }
.vclip .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; min-height: 2.7em; }
.vclip .d b.good { color: var(--good); font-weight: 700; }

/* Live clipping (engine.js): the stream's player inside the Studio */
#live { margin-bottom: 18px; }
/* Bottom, not top: Chrome draws its share dialog at the top centre, which hid the coach (the 18 Nov cancel spike). */
.share-coach { position: fixed; z-index: 60; bottom: 24px; left: 50%; transform: translateX(-50%); width: min(600px, calc(100vw - 32px));
  display: grid; gap: 4px; padding: 14px 18px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,.5); color: var(--muted); font-size: 14px; line-height: 1.45; }
.share-coach > b { color: var(--text); font-size: 15px; }
.share-coach span b { color: var(--text); }
.share-coach[hidden] { display: none; }
.coach-steps { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; font-size: 14px; color: var(--text); flex-wrap: wrap; }
.coach-toggle { display: inline-flex; align-items: center; gap: 8px; }
.coach-toggle i { width: 30px; height: 18px; border-radius: 9px; background: #8ab4f8; position: relative; flex: none; }
.coach-toggle i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.coach-arrow { color: var(--muted); }
.coach-share { padding: 6px 16px; border-radius: 16px; background: #8ab4f8; color: #0b1a33; font-weight: 600; }
.live-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.live-player { aspect-ratio: 16 / 9; margin-top: 14px; border-radius: 12px; overflow: hidden; background: #000; }
.live-player iframe { display: block; width: 100%; height: 100%; border: 0; }
#liveMoments:not(:empty) { margin-top: 8px; }
.live-how { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
/* Autopilot (autopilot.js): the toggle under the status line, shown only while recording. Its line says what it's
   doing, or why it's off; the plain explainer ("quiet") gives way on the compact card, where the room is short. */
.autopilot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; font-size: 13px; line-height: 1.45; }
#live:not(.recording) .autopilot { display: none; }
.autopilot .switch { margin: 0; color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; }
#apLine { color: var(--muted); min-width: 0; }
#apLine.warn { color: var(--warn); }
#apLine .linkbtn { padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
body:not([data-tab="studio"][data-step="1"]) #apLine.quiet { display: none; }

/* Studio fonts (all open-licensed, from Google Fonts). The GTA option is Bevan, a free stand-in for Pricedown. */
.seg.fonts { flex-wrap: wrap; }
.seg.fonts button { color: var(--text); }

/* ================= The Studio as one flow: 01 Source -> 02 Edit -> 03 Post (flow.js) ================= */
/* The steps sit in the top bar, on the Studio only. Each is two lines: the step, then what it holds or when it
   opens. The state is in the type: the current step is white with an orange number, a step you can go back to
   reads at full size, a locked one is dim. */
header .logo { margin-right: 0; }
header .toplinks { margin-left: auto; }
.flow { display: flex; align-self: stretch; min-width: 0; margin-left: 14px; }
body:not([data-tab="studio"]) .flow { display: none; }
.flow button { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; max-width: 240px; padding: 0 18px; border: 0; background: none; color: rgba(255,255,255,.66); text-align: left; cursor: pointer; transition: color .15s; }
.flow button + button { background: linear-gradient(var(--line), var(--line)) left center / 1px 26px no-repeat; }
.flow .fn { display: flex; align-items: baseline; gap: 7px; font-size: 15px; font-weight: 600; line-height: 19px; letter-spacing: -.01em; white-space: nowrap; }
.flow .fn b { font-size: 12.5px; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--muted); transition: color .15s; }
.flow .fl { font-size: 13px; line-height: 17px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow button:hover:not(:disabled) { color: #fff; }
.flow button.on { color: #fff; }
.flow button.on .fn b { color: var(--accent); }
.flow button.on .fl { color: rgba(255,255,255,.8); }
.flow button:disabled { cursor: default; color: rgba(255,255,255,.34); }
.flow button:disabled .fn b, .flow button:disabled .fl { color: rgba(255,255,255,.3); }
.flow button:focus-visible { outline: 2px solid rgba(255,122,61,.7); outline-offset: -6px; border-radius: 12px; }

/* 01 Source: two equal ways in, built from the Streamers list and the drop zone */
.choices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.choice { display: flex; flex-direction: column; min-width: 0; }
.choice h2 { margin: 0 0 4px; }
.choice > p { margin: 0 0 16px; }
#pickQ { width: 100%; margin-bottom: 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; outline: none; transition: border-color .2s; }
#pickQ:focus { border-color: rgba(255,122,61,.55); }
.pick .srow2 { cursor: pointer; }
.pick .srow2 .b, .pick .srow2 .n { min-width: 0; }
.pick .srow2 .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .srow2 .meta { gap: 6px; }
.pp { color: var(--pink); font-size: 12px; font-weight: 600; white-space: nowrap; }
#pickMore { align-self: flex-start; margin-top: 12px; }
.pick-note { margin: -6px 0 14px; color: var(--warn); }
#uploadChoice .drop { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 18px; }
#partnerPick { margin-top: 4px; }
.nolive #liveChoice { order: 2; }
@media (max-width: 860px) { .choices { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 560px) { .pick .srow2 .d { display: none; } }
/* a stream is open: it's the whole of Source */
#live:not([hidden]) ~ #view-studio #studioStart { display: none; }

/* The live card. On 01 Source it's the step: the player fits the window, because only what's on screen is
   recorded. Everywhere else it's compact, and pinned under the top bar while recording, so it never scrolls away. */
body[data-tab="studio"][data-step="1"] #live { max-width: calc(max(340px, (100vh - 450px) * 16 / 9) + 46px); }
body[data-tab="studio"][data-step="1"] #liveMoments { max-height: 172px; overflow-y: auto; }
body:not([data-tab="studio"][data-step="1"]) #live { display: grid; grid-template-columns: min(480px, 55%) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "player head" "player moments"; column-gap: 20px; padding: 14px; }
body:not([data-tab="studio"][data-step="1"]) #live .live-player { grid-area: player; margin: 0; }
body:not([data-tab="studio"][data-step="1"]) #live .auto-head { grid-area: head; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 4px; }
body:not([data-tab="studio"][data-step="1"]) #live .live-how { display: none; }
body:not([data-tab="studio"][data-step="1"]) #liveMoments { grid-area: moments; align-self: start; margin: 10px 0 0 -10px; }
body:not([data-tab="studio"][data-step="1"]) #liveMoments .row { padding: 5px 10px; }
body:not([data-tab="studio"][data-step="1"]) #liveMoments .row .d, body:not([data-tab="studio"][data-step="1"]) #liveMoments .row:nth-child(n+4) { display: none; }
body:not([data-tab="studio"][data-step="1"]) #live.recording { position: sticky; top: calc(var(--head) + 10px); z-index: 10; }
#liveMoments .row { cursor: default; }
#liveMoments .row .btn { flex: none; }

/* 02 Edit and 03 Post while recording: the player keeps its size (the recording crops to it), so the 9:16 preview
   gives way. It's sized to the room under the pinned card, never under 250px tall, and from 640px wide it sits in
   its own column, stuck under the card while the controls scroll. The moments scroll beside the player instead of
   making the card taller. --live-h is the card's real height (engine.js). */
body[data-tab="studio"]:not([data-step="1"]) #live.recording #liveMoments { contain: size; align-self: stretch; overflow-y: auto; }
body[data-tab="studio"]:not([data-step="1"]):has(#live.recording) { --room: calc(100vh - var(--head) - var(--live-h, 300px) - 42px);
  --fit: calc(clamp(250px, var(--room), 604px) * 9 / 16); }
@media (min-width: 640px) {
  body[data-tab="studio"]:not([data-step="1"]):has(#live.recording) .editor { grid-template-columns: auto minmax(0, 1fr); }
  /* sticky while 250px fits under the card. In a shorter window the last term sends top far above the page, so the
     preview scrolls (under the card) rather than sit with its foot cut off */
  body[data-tab="studio"]:not([data-step="1"]):has(#live.recording) .editor > :first-child { position: sticky;
    top: calc(var(--head) + var(--live-h, 300px) + 26px - (1px - clamp(0px, (var(--room) - 249px) * 1000, 1px)) * 100000); }
  body[data-tab="studio"]:not([data-step="1"]):has(#live.recording) .stage { width: var(--fit); margin: 0; }
  /* a sticky box can't pass the end of its row, so main's bottom room moves inside the controls column: else the
     last of the scroll pushes the preview up under the card */
  body[data-tab="studio"]:not([data-step="1"]):has(#live.recording) .shell > main { padding-bottom: 16px; }
  body[data-tab="studio"]:not([data-step="1"]):has(#live.recording) .editor > :last-child { padding-bottom: 74px; }
}
@media (min-width: 640px) and (max-width: 720px) {
  body[data-tab="studio"]:not([data-step="1"]):has(#live.recording) .shell > main { padding-bottom: 82px; }
  body[data-tab="studio"]:not([data-step="1"]):has(#live.recording) .editor > :last-child { padding-bottom: 28px; }
}
@media (max-width: 639px) {
  body[data-tab="studio"]:not([data-step="1"]):has(#live.recording) #stage { width: min(340px, 100%, var(--fit)); }
  body[data-tab="studio"]:not([data-step="1"]):has(#live.recording) #step3 .stage { width: min(240px, 100%, var(--fit)); }
}

/* 02 Edit: the editor scrolls in below the top bar, and below the live card when it's pinned */
#editor { scroll-margin-top: calc(var(--head) + 16px); }
body:has(#live.recording) #editor { scroll-margin-top: calc(var(--head) + var(--live-h, 300px) + 26px); }

/* 03 Post: the exported short beside where it goes */
#step3 .stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.post-title { margin: 0 0 6px; font-size: 24px; letter-spacing: -.025em; }
.post-earn { margin: 0 0 18px; max-width: 560px; }
.post-earn .who { color: var(--text); font-weight: 600; white-space: nowrap; }
.post-earn .who .lbp { margin-right: 4px; vertical-align: -2px; }
#postWallet { margin-bottom: 16px; }
#postWallet > div { flex: 1 1 260px; }
#whenRow { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 10px; }
#socialAt { width: 100%; max-width: 260px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; outline: none; color-scheme: dark; transition: border-color .2s; }
#socialAt:focus { border-color: rgba(255,122,61,.55); }
#whenWhy { color: var(--warn); }
.best { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; max-width: 560px; }
.srow .ok { color: var(--good); font-weight: 600; text-decoration: none; }
.srow a.ok:hover { text-decoration: underline; }
.srow .earn { color: var(--pink); font-weight: 600; }
.srow .bad { color: var(--bad); font-weight: 600; }
#socialNext { align-self: flex-start; padding-left: 0; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 820px) { #step3 .stage { width: min(240px, 100%); } }

/* My Clips: posts waiting for their time */
.mcsched { margin: 0 0 28px; }
.mcsched h2 { margin: 0 0 10px; }
.mcsrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 11px 16px; }
.mcsrow + .mcsrow { border-top: 1px solid var(--line); }
.mcsrow .accs { flex-wrap: wrap; gap: 2px 14px; white-space: normal; }
.mcsrow .accs > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mcwhen { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The step bar below 1100px: its own row under frz's top bar, so his links keep their place and every step line
   fits. --head is the whole header's height; the pinned live card and the sidebar sit below it. */
.flow { overflow: hidden; }
:root { --head: var(--top); }
@media (max-width: 1099px) {
  body[data-tab="studio"] { --head: calc(var(--top) + 56px); }
  body[data-tab="studio"] header .bar { flex-wrap: wrap; height: auto; row-gap: 0; }
  body[data-tab="studio"] header .logo { height: var(--top); }
  .flow { order: 3; flex: 1 0 100%; height: 56px; margin: 0 -20px; border-top: 1px solid var(--line); }
  .flow button { flex: 1 1 0; max-width: none; padding: 0 20px; }
  body[data-tab="studio"][data-step="1"] #live { max-width: calc(max(340px, (100vh - 506px) * 16 / 9) + 46px); }
}
@media (min-width: 721px) and (max-width: 1099px) {
  body[data-tab="studio"] .side { top: var(--head); height: calc(100vh - var(--head)); }
}
/* a narrow window: the compact live card stacks, so the player keeps the full width (it records at its on-screen size) */
@media (max-width: 560px) {
  body:not([data-tab="studio"][data-step="1"]) #live { grid-template-columns: minmax(0, 1fr); grid-template-areas: "player" "head"; row-gap: 12px; }
  body:not([data-tab="studio"][data-step="1"]) #liveMoments { display: none; }
}
@media (max-width: 720px) {
  /* the phone tab bar (66px) is fixed at the bottom too */
  body[data-tab="studio"]:not([data-step="1"]):has(#live.recording) { --room: calc(100vh - var(--head) - var(--live-h, 300px) - 108px - env(safe-area-inset-bottom, 0px)); }
  header .more { margin-left: auto; }
  .flow { margin: 0 -14px; }
  .flow button { padding: 0 10px; }
  .flow button:first-child { padding-left: 14px; }
  .flow .fn { font-size: 13px; }
  .flow .fl { font-size: 11.5px; }
  .mcsrow { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px; row-gap: 2px; }
  .mcwhen { grid-row: 2; font-size: 13px; }
  .mcsrow .linkbtn { grid-row: 1 / 3; grid-column: 2; }
}

/* Studio: virality check, hook ideas, boosts */
.vbox { margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 10px; }
.vhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.vscore { font-weight: 800; font-size: 15px; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.07); }
.vscore.hot { color: var(--good); background: rgba(74,222,128,.12); } .vscore.warm { color: var(--warn); background: rgba(251,191,36,.12); } .vscore.cool { color: var(--bad); background: rgba(248,113,113,.12); }
.vchecks { display: flex; flex-direction: column; }
.vcheck { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 10px; transition: background .15s; }
.vcheck:hover { background: rgba(255,255,255,.03); }
.vcheck i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; }
.vcheck.ok i { background: rgba(74,222,128,.15); color: var(--good); }
.vcheck.no i { background: rgba(251,191,36,.15); color: var(--warn); }
.vcheck .vb { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vcheck .vb b { font-size: 13.5px; font-weight: 700; }
.vcheck .vb span { font-size: 12.5px; color: var(--muted); }
.vcheck.ok .vb span { display: none; }
.vcheck .btn { flex: none; }
.vtrend { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vhooks { margin-top: 8px; }
.vhooklist { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.vhooklist:empty { display: none; }
.vhook { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.vhook:hover { border-color: rgba(255,255,255,.18); }
.vhook.on { border-color: rgba(255,122,61,.6); background: rgba(255,122,61,.08); }
.vhook b { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 17px; letter-spacing: .02em; }
.vboosts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
@media (max-width: 560px) { .vboosts { grid-template-columns: 1fr; } }
.vhint { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(251,191,36,.08); }

/* Leaderboard of clipping accounts */
body[data-tab="leaderboard"] .rail { display: none; }
.lbstats { display: grid; grid-template-columns: repeat(3, minmax(0, 160px)); gap: 10px; margin: 0 0 18px; }
.lbstat { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; }
.lbstat b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.lbstat span { color: var(--muted); font-size: 12.5px; }
.lblist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.lblist:empty { display: none; }
.lbrow { display: grid; grid-template-columns: 34px 44px minmax(0, 1fr) 96px 70px 96px; align-items: center; gap: 12px; padding: 11px 16px; text-decoration: none; color: inherit; transition: background .15s; }
.lbrow + .lbrow { border-top: 1px solid var(--line); }
.lbrow:hover { background: rgba(255,255,255,.03); }
.lbrank { font-weight: 800; font-size: 15px; color: var(--muted); text-align: center; }
.lbrow.top1 .lbrank { color: #ffd23f; } .lbrow.top2 .lbrank { color: #d7dbe3; } .lbrow.top3 .lbrank { color: #e8a36b; }
.lbpic { width: 44px; height: 44px; border-radius: 50%; background: var(--panel2) center / cover no-repeat; display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.lbwho { min-width: 0; display: flex; flex-direction: column; }
.lbwho b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbwho > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbmeta { display: none; color: var(--muted); font-size: 12px; }
.lbp { width: 14px; height: 14px; flex: none; }
.lbp.youtube { color: #ff3d3d; } .lbp.tiktok { color: #6ff0f5; } .lbp.x { color: #fff; } .lbp.instagram { color: #ff5fa8; } .lbp.facebook { color: #4b8bff; } .lbp.threads { color: #fff; }
.lbnum { display: flex; flex-direction: column; align-items: flex-end; }
.lbnum b { font-size: 15px; font-weight: 700; }
.lbnum span { color: var(--muted); font-size: 12px; }
.lbviews b { color: var(--good); }
.lbempty { border: 1px solid var(--line); border-radius: 16px; padding: 28px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
@media (max-width: 720px) {
  .lbstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lbrow { grid-template-columns: 26px 40px minmax(0, 1fr) 64px; padding: 10px 12px; }
  .lbpic { width: 40px; height: 40px; }
  .lbrow .lbnum:not(.lbviews) { display: none; }
  .lbmeta { display: block; }
}

/* My Clips */
body[data-tab="myclips"] .rail { display: none; }
.lbstats.four { grid-template-columns: repeat(4, minmax(0, 140px)); }
.mcrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 80px 80px 64px; align-items: center; gap: 12px; padding: 11px 16px; text-decoration: none; color: inherit; transition: background .15s; }
.mcrow + .mcrow { border-top: 1px solid var(--line); }
.mcrow:hover { background: rgba(255,255,255,.03); }
.mcrow.gone { opacity: .5; }
.mcth { width: 44px; height: 56px; border-radius: 8px; background: var(--panel2) center / cover no-repeat; display: grid; place-items: center; }
.mcth .lbp { width: 18px; height: 18px; }
.mcscore { justify-self: end; display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 5px 6px; border-radius: 10px; background: rgba(255,255,255,.06); }
.mcscore b { font-size: 16px; font-weight: 800; line-height: 1.1; }
.mcscore span { font-size: 11px; color: var(--muted); }
.mcscore.none { color: var(--muted); font-size: 12px; background: none; }
.mcscore.viral { background: rgba(255,120,50,.16); } .mcscore.viral b { color: #ff8a3d; }
.mcscore.great { background: rgba(74,222,128,.14); } .mcscore.great b { color: var(--good); }
.mcscore.good { background: rgba(96,165,250,.14); } .mcscore.good b { color: #7cb4ff; }
.mcscore.ok { background: rgba(251,191,36,.12); } .mcscore.ok b { color: var(--warn); }
.mccodes { margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; }
.mccodes summary { cursor: pointer; padding: 13px 16px; font-weight: 700; list-style: none; }
.mccodes summary::-webkit-details-marker { display: none; }
.mccode { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.mccode button.code { border: 1px solid var(--line); background: none; color: inherit; border-radius: 8px; padding: 5px 9px; cursor: pointer; font: inherit; font-size: 13px; white-space: nowrap; }
.mccode button.code:hover { background: rgba(255,255,255,.05); }
@media (max-width: 720px) {
  .lbstats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mcrow { grid-template-columns: 40px minmax(0, 1fr) 56px; padding: 10px 12px; }
  .mcrow .lbnum { display: none; }
  .mcth { width: 40px; height: 52px; }
}

/* Bounty accounts */
.acctadd { display: flex; gap: 8px; margin-top: 12px; }
.acctadd select { flex: none; width: 130px; }
.acctadd input { flex: 1; min-width: 0; width: auto; }
.row.bacct { cursor: default; align-items: flex-start; }
.bacctic { width: 34px; height: 34px; border-radius: 10px; background: var(--panel2); display: grid; place-items: center; flex: none; }
.bacctic .lbp { width: 17px; height: 17px; }
.row.bacct .end { display: flex; align-items: center; gap: 10px; }
.row.bacct .d button.code { border: 1px solid var(--line); background: none; color: #fff; border-radius: 7px; padding: 1px 7px; font: inherit; font-family: ui-monospace, Menlo, monospace; cursor: pointer; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 2px; }
.linkbtn:hover { color: #fff; }

/* Connect socials to enter (top of Bounty) */
.card.enter { margin-top: 16px; padding: 16px 18px; border-color: rgba(255,122,61,.35); background: linear-gradient(90deg, rgba(255,79,163,.08), rgba(255,122,61,.05) 60%, transparent), var(--panel); }
.card.enter.ok { border-color: rgba(74,222,128,.28); background: var(--panel); }
.enter-head { display: flex; align-items: center; gap: 14px; }
.enter-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255,122,61,.14); color: #ff8a3d; }
.card.enter.ok .enter-ic { background: rgba(74,222,128,.12); color: var(--good); }
.enter-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.enter-txt { flex: 1; min-width: 0; }
.enter-t { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.enter-head .btn { flex: none; }
#acctWrap { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 560px) {
  .enter-head { flex-wrap: wrap; }
  .enter-head .btn { width: 100%; }
}

/* Out of credits popup */
body.cm-open { overflow: hidden; }
.cmodal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(4,3,8,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: cmfade .18s ease-out; }
.cmodal[hidden] { display: none; }
@keyframes cmfade { from { opacity: 0; } }
.cm-box { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 28px 26px 22px; text-align: center;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.9); animation: cmup .22s cubic-bezier(.2,.7,.2,1); }
@keyframes cmup { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.cm-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.cm-x:hover { background: rgba(255,255,255,.06); color: #fff; }
.cm-ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255,79,163,.2), rgba(255,210,63,.14)); color: #ffb347; }
.cm-ic svg { width: 26px; height: 26px; fill: currentColor; }
.cm-box h2 { margin: 4px 0 6px; font-size: 26px; letter-spacing: -.02em; }
.cm-lead { margin: 0 auto 20px; max-width: 430px; color: var(--muted); font-size: 15px; }
.cm-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.cm-opt { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.015); }
.cm-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cm-price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.cm-price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.cm-sub { color: var(--muted); font-size: 13px; }
.cm-opt ul { list-style: none; margin: 12px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; flex: 1; }
.cm-opt li { padding-left: 22px; position: relative; }
.cm-opt li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.cm-opt .btn { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 8px; }
.cm-opt .linkbtn { margin-top: 6px; align-self: center; }
.btn.stripe { background: #635bff; border-color: #635bff; color: #fff; font-weight: 700; }
.btn.stripe:hover { background: #5249ea; }
.btn.stripe svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.cm-fine { text-align: center; color: var(--muted); font-size: 12px; margin-top: 8px; }
.cm-foot { margin: 16px 0 0; color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) {
  .cmodal { place-items: end center; padding: 0; }
  .cm-box { border-radius: 22px 22px 0 0; padding: 24px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; }
  .cm-opts { grid-template-columns: 1fr; }
}
.cm-opt .btn.soon { opacity: .5; cursor: default; filter: grayscale(.3); }
.cm-opt .btn.cm-wallet { margin-top: 8px; background: rgba(255,255,255,.06); border-color: var(--line); }
.cm-opt .btn.cm-wallet:hover { background: rgba(255,255,255,.1); }
.btn.cm-wallet svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* Leaderboard then Bounty sit at the bottom of the sidebar, just above Follow on X (desktop); the phone bar keeps its order */
.side nav.tabs { flex: 1 1 auto; }
.side nav.tabs button[data-tab="leaderboard"] { order: 98; margin-top: auto; }
.side nav.tabs button[data-tab="bounty"] { order: 99; margin-bottom: 4px; }
@media (max-width: 720px) {
  .side nav.tabs { flex: none; }
  .side nav.tabs button[data-tab="leaderboard"], .side nav.tabs button[data-tab="bounty"] { order: 0; margin: 0; }
}

/* Tile meta line (Radar, Feed): a long name shortens with "…" instead of pushing "watching · time" onto two lines */
.tile .d > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .d > span:last-child { flex: none; white-space: nowrap; }

/* Pool token ticker shown next to amounts (e.g. $TTWO) */
.ptick { font-weight: 800; font-size: .62em; letter-spacing: .01em; vertical-align: .18em; opacity: .9; }
#poolL a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* English captions for a non-English clip: the editable list of translated lines (Studio editor) */
.seg.busy { opacity: .5; pointer-events: none; }
.enlist { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; max-height: 280px; overflow-y: auto; }
.enrow { display: grid; grid-template-columns: 44px 1fr; gap: 2px 8px; align-items: center; }
.enrow .entime { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; text-align: left; cursor: pointer; }
.enrow input { padding: 7px 10px; font-size: 14px; }
.enrow .ensrc { grid-column: 2; font-size: 12px; color: var(--muted); }
.enrow.unsure input { border-color: rgba(255,122,61,.75); }
.enrow .enflag { grid-column: 2; font-size: 12px; color: var(--accent); }

/* ================= Autopilot page (autopilot.js) =================
   Four numbered steps down one column, in the type the Studio's step bar uses: the step to do now has an orange number,
   a finished one a green tick, the rest are dim. Today's clips sit beside them from 1280px (pinned, like the rail) and
   after them below that. Drawings of Discord's own screens show where the webhook is. */
body[data-tab="autopilot"] .rail { display: none; }
.pilot { display: grid; grid-template-columns: minmax(0, 1fr); }
.pilot.off > * { opacity: .42; filter: grayscale(.7); }
.pilot-soon { margin: -10px 0 26px; color: var(--text); font-size: 15px; font-weight: 600; }
.pilot-steps { list-style: none; margin: 0; padding: 0; }
#view-autopilot p { text-wrap: pretty; }   /* no one-word last lines */
.pilot-step { display: grid; grid-template-columns: 46px minmax(0, 1fr); padding: 26px 0 28px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--head) + 16px); }
.pilot-today { scroll-margin-top: calc(var(--head) + 16px); }
body:has(#live.recording) :is(.pilot-step, .pilot-today) { scroll-margin-top: calc(var(--head) + var(--live-h, 300px) + 26px); }   /* below the pinned live card */
.pilot-n { font-size: 15px; font-weight: 800; line-height: 28px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--dim); transition: color .2s; }
.pilot-n svg { display: none; width: 21px; height: 21px; margin-top: 3px; fill: none; stroke: var(--good); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pilot-step[data-state="now"] .pilot-n { color: var(--accent); }
.pilot-step[data-state="err"] .pilot-n { color: var(--warn); }
.pilot-step[data-state="done"] .pilot-n b { display: none; }
.pilot-step[data-state="done"] .pilot-n svg { display: block; animation: pilotTick .32s cubic-bezier(.2,.7,.2,1); }
@keyframes pilotTick { from { transform: scale(.4); opacity: 0; } }
.pilot-b { min-width: 0; container-type: inline-size; }   /* the drawings go 2 by 2 on the column's own width */
.pilot-h { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.pilot-h h2 { margin: 0; font-size: 19px; line-height: 28px; letter-spacing: -.02em; }
.pilot-st { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pilot-step[data-state="done"] .pilot-st { color: var(--good); }
.pilot-d { margin: 4px 0 16px; max-width: 620px; color: var(--muted); font-size: 14px; }
.pilot-d b { color: var(--text); font-weight: 600; }
.pilot-note { margin: 12px 0 0; max-width: 620px; color: var(--muted); font-size: 13px; }
.pilot-err { margin: 12px 0 0; max-width: 620px; color: var(--warn); font-size: 13.5px; }

/* 01: one tile per platform; a connected one names the account, with a tick */
.pilot-plats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 720px; }
.pilot-plat { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 60px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; text-align: left; }
button.pilot-plat { cursor: pointer; transition: border-color .15s, background .15s; }
button.pilot-plat:hover:not(:disabled) { border-color: rgba(255,255,255,.2); background: var(--panel2); }
button.pilot-plat:hover:not(:disabled) .pilot-pn > span { color: var(--text); }
button.pilot-plat:focus-visible { outline: 2px solid rgba(255,122,61,.7); outline-offset: 2px; }
button.pilot-plat:disabled { cursor: default; opacity: .55; }
.pilot-plat .lbp { width: 22px; height: 22px; }
.pilot-pn { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pilot-pn b { font-size: 14.5px; font-weight: 650; }
.pilot-pn > span { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--muted); font-size: 13px; font-weight: 500; transition: color .15s; }
.pilot-pn > span > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pilot-plat.on .pilot-pn > span { color: var(--good); font-weight: 600; }
.pilot-tick { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* 02: Discord's screens, drawn in Discord's own colours, with the thing to press outlined in ours */
.pilot-dc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.pilot-dc li { min-width: 0; }
.pilot-dc p { margin: 9px 0 0; font-size: 13px; line-height: 1.4; }
.pilot-dc p b { margin-right: 7px; color: var(--accent); font-variant-numeric: tabular-nums; }
.dc, .dc-msg { --dc-bg: #313338; --dc-side: #2b2d31; --dc-on: #404249; --dc-text: #dbdee1; --dc-muted: #949ba4; --dc-head: #f2f3f5; --dc-blurple: #5865f2; --dc-grey: #4e5058; }
.dc { display: flex; flex-direction: column; gap: 3px; height: 116px; padding: 10px; border-radius: 10px; background: var(--dc-bg); color: var(--dc-text); font-size: 12.5px; line-height: 1.2; overflow: hidden; }
.dc.dc-side { background: var(--dc-side); }
.dc-chan { display: flex; align-items: center; gap: 6px; min-height: 27px; padding: 0 7px; border-radius: 5px; color: var(--dc-muted); font-weight: 500; white-space: nowrap; }
.dc-chan i { width: 12px; font-style: normal; font-size: 16px; text-align: center; }
.dc-chan.on { background: var(--dc-on); color: var(--dc-head); }
.dc-ics { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.dc-ics svg { width: 15px; height: 15px; }
.dc-inv { fill: none; stroke: var(--dc-muted); stroke-width: 2; stroke-linecap: round; }
.dc-cog { fill: var(--dc-head); }
.dc-hit { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.dc-cap { padding: 1px 8px 4px; color: var(--dc-muted); font-size: 11.5px; font-weight: 700; }
.dc-item { display: flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 4px; color: var(--dc-muted); font-weight: 500; }
.dc-item.on { background: var(--dc-on); color: var(--dc-head); }
.dc-title { padding: 2px 2px 0; color: var(--dc-head); font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-sub { padding: 0 2px; color: var(--dc-muted); font-size: 11.5px; }
.dc-btn { align-self: flex-start; margin: auto 0 2px 2px; padding: 6px 10px; border-radius: 4px; background: var(--dc-blurple); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dc-btn.grey { background: var(--dc-grey); }
/* the test message as it lands, just after a save */
.dc-msg { max-width: 560px; margin: 2px 0 12px; padding: 12px 16px; border-radius: 10px; background: var(--dc-bg); color: var(--dc-text); font-size: 14px; }
.dc-msg > div { display: flex; align-items: baseline; gap: 8px; }
.dc-msg b { color: var(--dc-head); font-weight: 600; }
.dc-msg time { color: var(--dc-muted); font-size: 12px; }
.dc-msg p { margin: 3px 0 0; }
#pilotHookForm .pilot-note { margin: 14px 0 0; }
#pilotHookForm label.f { margin-top: 16px; }
.pilot-paste { max-width: 620px; }
.pilot-paste input { min-width: 0; font-size: 14px; }
#pilotHookCancel { margin-top: 8px; padding-left: 0; }
.pilot-acts { display: flex; gap: 20px; }
.pilot-acts .linkbtn { padding-left: 0; padding-right: 0; }

/* 03: two choices. The second opens into its line and its accounts. */
.pilot-rule { display: flex; flex-direction: column; gap: 8px; max-width: 620px; margin-top: 14px; }
.pilot-opt { border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s; }
.pilot-opt:has(> input:checked, > .pilot-optl input:checked) { border-color: rgba(255,122,61,.6); background: rgba(255,122,61,.05); }
label.pilot-opt, .pilot-optl { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; cursor: pointer; }
.pilot-opt:has(> input:focus-visible, > .pilot-optl input:focus-visible) { outline: 2px solid rgba(255,122,61,.7); outline-offset: 2px; }
.pilot-opt input[type=radio] { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); cursor: inherit; }
label.pilot-opt > span, .pilot-optl > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pilot-opt b { font-size: 15px; font-weight: 650; }
.pilot-opt output { color: var(--accent); font-variant-numeric: tabular-nums; }
label.pilot-opt > span > span, .pilot-optl > span > span { color: var(--muted); font-size: 13.5px; }
.pilot-optl > span > .pilot-left { margin-top: 2px; color: var(--text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pilot-optl > span > .pilot-left.none { color: var(--warn); }
.pilot-optl.dis { cursor: default; }
.pilot-optl.dis b, .pilot-optl.dis output { color: var(--muted); }
.pilot-auto { padding: 0 16px 16px 46px; }
.pilot-range { max-width: 420px; }
.pilot-range input { display: block; width: 100%; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.pilot-ends { display: flex; justify-content: space-between; margin-top: 2px; color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
#pilotPass { margin-top: 8px; }
.pilot-label { margin: 16px 0 6px; color: var(--muted); font-size: 13px; }
.pilot-accts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.pilot-acct { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 38px; cursor: pointer; }
.pilot-acct input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: inherit; }
.pilot-acct .lbp { width: 17px; height: 17px; }
.pilot-acct > span { display: flex; align-items: baseline; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; }
.pilot-acct b { overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 600; }
.pilot-acct > span > span { color: var(--muted); font-size: 12.5px; }
.pilot-save { margin: 12px 0 0; max-width: 620px; color: var(--muted); font-size: 13.5px; }
.pilot-save:empty { display: none; }
.pilot-save.err { color: var(--warn); }

/* 04: the live list as 01 Source shows it, as choices, and one Start */
#pilotQ { width: 100%; max-width: 620px; margin-bottom: 10px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); outline: none; transition: border-color .2s; }
#pilotQ:focus { border-color: rgba(255,122,61,.55); }
.pilot-streams { display: flex; flex-direction: column; max-width: 620px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pilot-srow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; transition: background .15s; }
.pilot-srow + .pilot-srow { border-top: 1px solid var(--line); }
.pilot-srow:hover { background: rgba(255,255,255,.03); }
.pilot-srow:has(input:checked) { background: rgba(255,122,61,.07); }
.pilot-srow:has(input:focus-visible) { outline: 2px solid rgba(255,122,61,.7); outline-offset: -2px; }
.pilot-srow input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: inherit; }
.pilot-srow .pic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--panel2) center / cover no-repeat; }
.pilot-srow .b { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pilot-srow .b b, .pilot-srow .b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pilot-srow .b b { font-size: 14.5px; font-weight: 700; }
.pilot-srow .b span { color: var(--muted); font-size: 13px; }
.pilot-srow .meta { flex: none; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.pilot-srow .meta em { font-style: normal; font-weight: 700; color: var(--good); }
.pilot-empty { margin: 0; padding: 18px 16px; color: var(--muted); font-size: 13px; }
#pilotMore { margin-top: 8px; padding-left: 0; }
.pilot-run { max-width: 620px; }
.pilot-live { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; margin: 2px 0 4px; }
.pilot-live b { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.pilot-live span { color: var(--accent); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pilot-run .pilot-d { margin-bottom: 0; }
.pilot-run .pilot-d.err { color: var(--warn); }
.pilot-go { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; max-width: 720px; }
.btn.pilot-start { gap: 10px; padding: 13px 22px; border-radius: 12px; font-size: 15px; }
.btn.pilot-start:hover { box-shadow: none; }
.pilot-start .pmark { width: 1.05em; height: .96em; background: currentColor; -webkit-mask: url(/mark.svg) center / contain no-repeat; mask: url(/mark.svg) center / contain no-repeat; }
.pilot-start:not(.primary) .pmark { display: none; }
.pilot-why { flex: 1 1 260px; min-width: 0; margin: 0; color: var(--muted); font-size: 13.5px; }
.pilot-why.err { color: var(--warn); }
.pilot-why .linkbtn { padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Today: what each clip did, newest first, from the Worker; plus the one being made in this tab right now */
.pilot-today { min-width: 0; padding: 26px 0 0; border-top: 1px solid var(--line); }
.pilot-today .pilot-h { margin-bottom: 2px; }
.pilot-today .pilot-st { font-weight: 500; }
.pilot-now { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; }
.pilot-today .pilot-d { margin: 4px 0 6px; }
.pilot-clips { display: flex; flex-direction: column; max-width: 720px; }
.pilot-clip { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 13px 0; }
.pilot-clip + .pilot-clip { border-top: 1px solid var(--line); }
.pilot-score { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--muted); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pilot-score.hot { background: rgba(255,122,61,.15); color: #ff9a6b; }
.pilot-score.warm { background: rgba(255,210,63,.12); color: var(--gold); }
.pilot-score.none { color: var(--dim); }
.pilot-cb { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.pilot-cb > b { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.pilot-meta { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pilot-out { margin-top: 4px; font-size: 13px; }
.k-auto .pilot-out, .k-posted .pilot-out { color: var(--good); }
.k-failed .pilot-out { color: var(--warn); }
.k-expired .pilot-out, .k-expired .pilot-cb > b { color: var(--muted); }
.pilot-links { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 3px; font-size: 13px; }
.pilot-links a { color: var(--text); font-weight: 600; text-decoration: none; }
.pilot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pilot-links .bad { color: var(--bad); }
#pilotEarlierBtn { margin: 4px 0 10px; padding-left: 0; text-decoration: underline; text-underline-offset: 3px; }
#pilotEarlier { padding-top: 2px; border-top: 1px solid var(--line); }

/* Studio 01 Source and Bounty: the ways in */
.pilot-entry { display: flex; align-items: center; gap: 12px; margin: -4px 0 16px; }
.pilot-entry .btn { flex: none; }
.pilot-moved { margin: 14px 0 0; }
.pilot-moved a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }

@media (min-width: 1280px) {
  .pilot { grid-template-columns: minmax(0, 1fr) 316px; gap: 40px; align-items: start; }
  /* pinned beside the steps; a long day scrolls in the list, under a heading and summary that stay put. A pinned box
     can't pass the end of its grid row, so the page ends 24px under the steps: at the bottom of the page the panel's
     24px clearance still fits, and it isn't pushed up under the pinned live card. */
  body[data-tab="autopilot"] .shell > main { padding-bottom: 24px; }
  .pilot-today { position: sticky; top: calc(var(--head) + 24px); display: flex; flex-direction: column; max-height: calc(100vh - var(--head) - 48px); padding: 20px 20px 8px; border: 1px solid var(--line); border-radius: 20px; }
  body:has(#live.recording) .pilot-today { top: calc(var(--head) + var(--live-h, 300px) + 26px); max-height: calc(100vh - var(--head) - var(--live-h, 300px) - 50px); }
  .pilot-list { min-height: 0; margin: 0 -20px; padding: 0 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .pilot-list:has(.pilot-clip) { border-top: 1px solid var(--line); }
}
@container (max-width: 699px) { .pilot-dc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .pilot-step { grid-template-columns: 34px minmax(0, 1fr); padding: 22px 0 24px; }
  .pilot-h h2 { font-size: 17.5px; }
  .pilot-plats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-plat { gap: 10px; padding: 10px 12px; }
}
@media (max-width: 560px) {
  .pilot-auto { padding-left: 16px; }
  .pilot-accts { grid-template-columns: minmax(0, 1fr); }
  .pilot-go .btn.pilot-start { width: 100%; }
  .pilot-entry { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (max-width: 380px) {   /* "Instagram" whole in a half-width tile at 320 */
  .pilot-plat { gap: 9px; padding: 10px; }
  .pilot-pn b { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .pilot-step[data-state="done"] .pilot-n svg { animation: none; } }
/* Streamer hub */
.hubgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.hubcard { padding: 20px 22px; }
.hubh { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.hubh b { font-size: 17px; }
.hubh .muted { margin-top: 3px; }
.hn { font-style: italic; font-weight: 900; font-size: 26px; line-height: 1; letter-spacing: -.03em; background: linear-gradient(90deg, #ff4fa3, #ff7a3d 55%, #ffd23f); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 4px; flex: none; }
.hubch { cursor: default; }
.hubch .pic { width: 40px; height: 40px; border-radius: 50%; background: var(--panel2) center / cover no-repeat; flex: none; }
.hubch .d { display: block; -webkit-line-clamp: unset; overflow: visible; }
.hubcode { white-space: nowrap; font-family: ui-monospace, Menlo, monospace; color: #fff; font-weight: 600; padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; }
.hubstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hubsteps { margin: 0 0 14px; }
#streamHub #autoImport { margin: 0; }
@media (max-width: 900px) { .hubgrid { grid-template-columns: 1fr; } }

/* Deep-violet product UI */
:root {
  --bg: #080512; --panel: #120b25; --panel2: #211642; --line: rgba(196,181,253,.18);
  --text: #f7f1ff; --muted: #b8add2; --dim: #70638f;
  --accent: #9d6cff; --pink: #e26bff; --accent2: #c4b5fd; --gold: #f3d7ff;
  --sunset: linear-gradient(90deg,#7c3aed,#9d6cff 52%,#e26bff);
}
body { background-color: var(--bg); background-image: linear-gradient(rgba(196,181,253,.022) 1px,transparent 1px),linear-gradient(90deg,rgba(196,181,253,.022) 1px,transparent 1px),radial-gradient(820px 460px at 88% 0,rgba(124,58,237,.2),transparent 72%); background-size: 52px 52px,52px 52px,auto; }
::selection { background: #9d6cff; color: #080512; }
header { background: rgba(8,5,18,.95); border-image: linear-gradient(90deg,#6d28d9,#9d6cff,#e26bff) 1; }
.logo { color: var(--text); text-shadow: 2px 2px 0 #9d6cff,4px 4px 0 #080512; }
.logo .mark { background: #e26bff; filter: drop-shadow(2px 2px 0 #6d28d9); }
.flow button.on { color: #080512; background: #c4b5fd; box-shadow: 3px 3px 0 #7c3aed; }
.side { background: rgba(8,5,18,.84); border-right-color: rgba(196,181,253,.16); }
.side-label { color: #c4b5fd; }
.side nav.tabs button:hover,.side-foot a:hover { border-left-color: #9d6cff; background: rgba(157,108,255,.08); }
.side nav.tabs button.on { color: #f7f1ff; background: #28134a; border-left-color: #e26bff; box-shadow: 4px 4px 0 #080512; }
h1 { color: #f7f1ff; text-shadow: 4px 4px 0 rgba(124,58,237,.88); }
.lead { color: #cabfe3; }
.btn { border-color: #080512; box-shadow: 3px 3px 0 #080512; }
.btn.primary,#walletBtn { color: #080512; background: #c4b5fd; }
.btn.primary:hover,#walletBtn:hover { color: #080512; background: #f3e8ff; box-shadow: 5px 5px 0 #7c3aed; }
.card,.choice { background: #120b25; border-color: #080512; box-shadow: 6px 6px 0 rgba(124,58,237,.42); }
.choice:nth-child(even) { box-shadow: 6px 6px 0 rgba(226,107,255,.3); }
.drop { color: var(--text); background: #0d071c; border-color: #9d6cff; }
.drop:hover,.drop.over { background: #17102f; border-color: #e26bff; }
.sources button.on,.seg button.on { color: #080512; background: #c4b5fd; border-color: #080512; box-shadow: 2px 2px 0 #7c3aed; }
.row:hover { background: rgba(157,108,255,.08); }
.row:hover .t,.tile:hover .t { color: #c4b5fd; }
.score.hot { color: #f7f1ff; background: #7c3aed; box-shadow: 3px 3px 0 #e26bff; }
.score.warm { color: #080512; background: #c4b5fd; }
.progress > div,.meter > div { background: linear-gradient(90deg,#6d28d9,#9d6cff,#e26bff); }
#toast { background: #0d071c; border-color: #9d6cff; box-shadow: 5px 5px 0 #7c3aed; }
.stage { border-color: #080512; box-shadow: 10px 10px 0 #7c3aed,16px 16px 0 #080512; }
.pool .stat:first-child .n,.code { color: #f3d7ff; text-shadow: 3px 3px 0 #7c3aed; }
input:focus,select:focus,textarea:focus { border-color: #9d6cff; box-shadow: 0 0 0 2px rgba(157,108,255,.18); }
.hn { background: linear-gradient(90deg,#9d6cff,#e26bff); -webkit-background-clip:text; background-clip:text; color:transparent; }
:focus-visible { outline-color: #c4b5fd; }
