: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; } }

/* ================= 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 open studio editor (it needs the room) */
body[data-tab="radar"] .rail, body[data-tab="feed"] .rail, body[data-tab="studio"]:has(#studioStart[hidden]) .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; }
  .side nav.tabs button { flex: 1; flex-direction: column; justify-content: center; gap: 3px; height: 52px; padding: 0; font-size: 11px; 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; }
}

/* 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; opacity: .0; transition: opacity .15s; }
.srow2:hover .clipit, .srow2 .clipit:focus-visible { opacity: 1; }
@media (hover: none) { .srow2 .clipit { opacity: 1; } }
.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; }
.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; }

/* 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); }

/* 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); }
