:root {
  --bg: #0c0f09; --panel: #151a10; --line: #2c3421; --text: #eef0e2; --muted: #9aa284;
  --accent: #f2cf0e; --on-accent: #12150d; --cyan: #f2cf0e; --olive: #6b7c39; --hot: #ff5a4a; --good: #3ecf8e; --warn: #f5b942; --x: #e8eaef; --tiktok: #25f4ee; --instagram: #e1306c; --facebook: #4a8cff;
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
.hidden { display: none !important; }
button { font: inherit; font-weight: 700; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
button.small { padding: 4px 10px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; }
/* textarea too (Jimmy 2026-10-19: Video Commando's link box showed the browser's black text on the dark panel) */
input, select, textarea { font: inherit; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
a { color: inherit; }
.err { color: var(--hot); }
.muted { color: var(--muted); }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { display: grid; gap: 12px; width: min(320px, 100%); }
.login h1 { margin: 0 0 8px; }

header { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand img { width: 182px; height: auto; display: block; }   /* by width, so both products' logos read the same size (Jimmy 2026-10-19) */
@media (max-width: 640px) { .brand img { width: 145px; } }
.login-logo { width: 100%; max-width: 260px; display: block; margin: 0 auto 8px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav button { background: transparent; color: var(--muted); padding: 6px 10px; }
nav button.on { color: var(--text); background: var(--line); }
.pill { font-size: 12px; font-weight: 700; background: var(--accent); color: var(--on-accent); border-radius: 10px; padding: 0 7px; margin-left: 4px; }
.pill:empty { display: none; }
.scan { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }

main { padding: 16px; max-width: 1500px; margin: 0 auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.chk { font-size: 14px; color: var(--muted); display: flex; gap: 6px; align-items: center; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.thumb { position: relative; aspect-ratio: 9 / 12; background: #000 center / cover no-repeat; cursor: pointer; }
.score { position: absolute; top: 8px; left: 8px; font-weight: 800; font-size: 18px; padding: 2px 9px; border-radius: 8px; background: rgba(0,0,0,.75); }
.score.hot { background: var(--accent); color: var(--on-accent) !important; }
.score.warm { background: var(--olive); }
.age { position: absolute; top: 8px; right: 8px; font-size: 12px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.75); }
.age.fresh { background: var(--good); color: #000; font-weight: 700; }
.dur { position: absolute; bottom: 8px; right: 8px; font-size: 12px; padding: 1px 6px; border-radius: 5px; background: rgba(0,0,0,.75); }
.body { padding: 10px 12px 12px; display: grid; gap: 6px; flex: 1; }
.who { display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; }
.pf { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; color: #000; }
.pf.x { background: var(--x); } .pf.tiktok { background: var(--tiktok); } .pf.instagram { background: var(--instagram); color: #fff; } .pf.facebook { background: var(--facebook); color: #fff; }
.cap { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.stats { display: flex; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.stats b { font-weight: 700; }
.up { color: var(--good); } .down { color: var(--hot); }
.acts { display: flex; gap: 6px; margin-top: 4px; }
.acts button { flex: 1; min-width: 0; padding-left: 6px; padding-right: 6px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; grid-column: 1 / -1; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.list th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px; border-bottom: 1px solid var(--line); }
.list td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list img { width: 44px; height: 58px; object-fit: cover; border-radius: 6px; display: block; }
.code { font: 700 18px/1 ui-monospace, Menlo, monospace; letter-spacing: 1px; cursor: copy; }
.state-done { color: var(--good); } .state-error { color: var(--hot); } .state-requested, .state-working { color: var(--warn); }

.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 6px; justify-items: center; text-align: center; margin-bottom: 16px; }
.drop.over { border-color: var(--cyan); }
.drop span { color: var(--muted); font-size: 13px; }
#uploads div { font-size: 13px; margin-bottom: 4px; }

.add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.add input { flex: 1; min-width: 180px; }
h2 { font-size: 16px; margin: 24px 0 8px; }
.recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rec { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.rec .name { font-weight: 700; }
.rec .why { font-size: 13px; color: var(--muted); }
.rec .hs { display: flex; flex-wrap: wrap; gap: 6px; }
.rec .hs button { background: var(--line); color: var(--text); font-size: 12px; padding: 4px 8px; }
.rec .hs button.added { background: transparent; border: 1px solid var(--good); color: var(--good); }
.rec-new { font-size: 11px; font-weight: 600; color: var(--accent, #f5c518); border: 1px solid currentColor; border-radius: 6px; padding: 0 5px; margin-left: 4px; }
.dup, .rhythm { font-size: 12px; white-space: nowrap; }
.dup.heavy { color: var(--warn, #f0a33a); font-weight: 600; }

.settings { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.settings input { width: 90px; }
.explain { max-width: 680px; color: var(--muted); }
.explain b { color: var(--text); }

dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; width: min(720px, 94vw); padding: 16px; }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog video { width: 100%; max-height: 60vh; background: #000; border-radius: 8px; }
.spark { width: 100%; height: 120px; }

@media (max-width: 640px) {
  .scan { margin-left: 0; width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .list .hide-sm { display: none; }
  .body { padding: 8px; }
  .acts { gap: 4px; }
  .acts button { font-size: 12px; padding-left: 2px; padding-right: 2px; }
  .acts button:first-child { flex: 1.6; }
  .stats { gap: 6px; font-size: 12px; }
}

.src { font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 26px; }
.src a { color: var(--cyan); text-decoration: none; }
.conf { font-weight: 700; padding: 0 6px; border-radius: 5px; font-size: 12px; }
.conf.hi { background: var(--good); color: #000; } .conf.mid { background: var(--warn); color: #000; } .conf.lo { background: var(--line); }
.alts { padding-left: 18px; } .alts li { margin-bottom: 8px; }
dialog .acts { display: flex; flex-wrap: wrap; gap: 8px; }
dialog a { color: var(--cyan); }

.queue td { vertical-align: top; }
.c-score { width: 52px; }
.c-score .score, .list .score { position: static; display: inline-block; font-size: 15px; min-width: 38px; text-align: center; color: #fff; }
.c-title a { color: var(--text); text-decoration: none; font-weight: 600; }
.c-title a:hover { color: var(--cyan); }
.meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.fresh-txt { color: var(--good); font-weight: 700; }
.c-num { white-space: nowrap; }
.c-acts { white-space: nowrap; text-align: right; }
.c-acts button + button { margin-left: 6px; }
.small-txt { font-size: 12px; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }
@media (max-width: 640px) {
  .queue .c-acts { white-space: normal; text-align: left; }
  .queue tr { display: grid; grid-template-columns: 52px 1fr; }
  .queue .c-acts { grid-column: 2; padding-top: 0; }
  .queue thead { display: none; }
}
.topic { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: rgba(107, 124, 57, .35); color: #d6e08c; }
.topic.not { background: var(--line); color: var(--muted); }
.lift { font-size: 12px; font-weight: 800; padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.lift.above { background: var(--good); color: #000; }
.lift.below { background: rgba(255, 77, 77, .18); color: var(--hot); }
.lift.par { background: var(--line); color: var(--muted); }
.c-vs { white-space: nowrap; }
.show-sm { display: none; }
@media (max-width: 640px) { .show-sm { display: inline; } }
.edit { display: grid; gap: 12px; }
.edit label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.edit input:not([type]), .edit input[type=number] { width: 90px; }
.paste { display: grid; gap: 6px; margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.paste div { display: flex; gap: 8px; flex-wrap: wrap; }
.paste input { flex: 1; min-width: 220px; }

/* ---------- clip workspace ---------- */
dialog.work { width: min(1200px, 98vw); max-height: 96vh; overflow: auto; padding: 16px; }
.w-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.w-head a { color: var(--cyan); }
.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; min-width: 0; }
.w-card h3 { margin: 4px 0 10px; font-size: 15px; }
.w-card video { width: 100%; max-height: 46vh; background: #000; border-radius: 8px; }
.w-trim { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 14px; }
.w-trim input { width: 78px; }
.w-radio { display: grid; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.w-radio input[type=number] { width: 64px; padding: 4px 6px; }
.w-layouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w-lay { border: 2px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 4px; justify-items: center; text-align: center; cursor: pointer; font-size: 14px; }
.w-lay.on { border-color: var(--cyan); }
.w-mock { position: relative; width: 54px; height: 96px; border-radius: 6px; background: var(--olive); overflow: hidden; }
.w-mock i, .w-mock b { position: absolute; display: block; }
.w-mock.inset b { left: 10%; right: 10%; top: 44%; bottom: 6%; background: var(--cyan); }
.w-mock.split b { left: 0; right: 0; top: 50%; bottom: 0; background: var(--cyan); }
.w-mock.flip { background: var(--cyan); } .w-mock.flip b { left: 0; bottom: 0; width: 36%; height: 26%; background: var(--olive); }
.w-mock.clip { background: var(--cyan); }
.w-vol { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; }
.w-title { display: grid; grid-template-columns: 1fr 220px; gap: 16px; }
.w-title input#wTitle, .w-title textarea { width: 100%; }
.w-title textarea { font: inherit; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; resize: vertical; }
.w-title label { display: block; margin: 8px 0; }
.w-title input[type=number] { width: 60px; padding: 3px 6px; }
.w-cover { display: grid; gap: 6px; justify-items: center; }
.w-cover-frame { width: 200px; height: 356px; border-radius: 10px; background: linear-gradient(#2e3326 0 42%, #6d7361 42% 95%, #2e3326 95%); display: flex; justify-content: center; padding: 16px 8px 0; overflow: hidden; }
#wTitlePrev { font-family: "Bangers", Impact, sans-serif; text-transform: uppercase; color: #b8332a; font-size: 28px; line-height: .98; text-align: center; transform: rotate(-4deg);
  -webkit-text-stroke: 5px #fff6e4; paint-order: stroke fill; letter-spacing: .5px; height: fit-content; }
.w-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.w-actions button { font-size: 16px; padding: 10px 18px; }
.w-out { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.w-out video { width: 300px; max-height: 60vh; }
.w-out img { width: 200px; border-radius: 8px; }
.btn { display: inline-block; font-weight: 700; background: var(--accent); color: var(--on-accent); border-radius: 8px; padding: 8px 14px; text-decoration: none; margin-right: 6px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.w-drop { cursor: pointer; }
.linkish { color: var(--cyan); cursor: pointer; }
@media (max-width: 760px) {
  .w-grid, .w-title { grid-template-columns: 1fr; }
  .w-layouts { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .w-lay { padding: 6px; font-size: 12px; }
}

/* Clip Commando: stencil type for headings and codes */
h1, h2, h3, nav button, .w-card h3, dialog h3 { font-family: "Black Ops One", Impact, sans-serif; font-weight: 400; letter-spacing: .5px; }
.code { font-family: "Black Ops One", ui-monospace, monospace; font-weight: 400; color: var(--accent); }
header { border-bottom: 2px solid var(--olive); }
.login form { text-align: center; }
a { color: var(--accent); }
.c-title a, .w-head a:not(.btn) { color: var(--text); }
#tab-approved { overflow-x: auto; }
.w-brand { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.w-logos, .w-corners, .w-seg { display: flex; gap: 8px; margin-top: 4px; }
.w-logo { border: 2px solid var(--line); border-radius: 10px; padding: 6px; width: 92px; display: grid; justify-items: center; gap: 4px; cursor: pointer; }
.w-logo img { height: 48px; } .w-nologo { height: 48px; font-size: 32px; line-height: 48px; color: var(--muted); }
.w-corners { display: grid; grid-template-columns: 38px 38px; gap: 6px; }
.w-corner { border: 2px solid var(--line); border-radius: 8px; height: 38px; display: grid; place-items: center; cursor: pointer; font-size: 18px; }
.w-seg label { border: 2px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.w-logo.on, .w-corner.on, .w-seg label.on { border-color: var(--accent); }
.w-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; }
.w-follow img { height: 28px; } .w-follow input[type=number] { width: 70px; padding: 4px 6px; }

.w-corners { grid-template-columns: 38px 38px; }
.w-corner.wide { grid-column: 1 / span 2; font-size: 13px; }
.p-wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.p-stage { position: relative; width: 270px; height: 480px; background: #2a2f22; border-radius: 10px; overflow: hidden; flex: none; touch-action: none; user-select: none; }
.p-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* the stage is a scaled 1080x1920 frame: its videos fill it exactly like the render, so the editor-wide video caps
   (.w-card video max-height 46vh cut his video short on phones, Jimmy 2026-10-17) don't apply in here */
.p-stage video { max-height: none; border-radius: 0; }
.p-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.p-box { position: absolute; z-index: 2; background: #555a48; outline: 1px dashed rgba(255,255,255,.5); cursor: move; overflow: visible; }
.p-box .p-clip { position: absolute; inset: 0; overflow: hidden; }
.p-box video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.p-tag { position: absolute; left: 4px; top: 4px; font-size: 10px; background: rgba(0,0,0,.6); padding: 0 4px; border-radius: 3px; }
.p-logo { position: absolute; cursor: move; z-index: 3; }  /* the logo sits over both videos, like the render */
.p-box.sel, .p-logo.sel { outline: 2px solid var(--accent); }
.p-fields { flex: 1; min-width: 240px; display: grid; gap: 12px; }
.p-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.p-group b { width: 100%; }
.p-group input { width: 76px; padding: 4px 6px; }

.cards { display: grid; gap: 14px; }
.rp { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; flex-wrap: wrap; }
.rp video { width: 180px; aspect-ratio: 9/16; background: #000; border-radius: 8px; }
.rp-body { flex: 1; min-width: 240px; display: grid; gap: 8px; align-content: start; }
.rp-cap { white-space: pre-wrap; font: inherit; font-size: 14px; color: var(--text); margin: 0; max-height: 140px; overflow: auto; background: var(--bg); border-radius: 8px; padding: 8px; }
.rp-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rp-at { display: inline-flex; gap: 6px; }
.posting { max-width: 720px; display: grid; gap: 10px; margin-bottom: 20px; }
.posting h3 { margin: 10px 0 0; }
.pg-accounts, .pg-days { display: flex; flex-wrap: wrap; gap: 12px; }
.pg-times { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pg-time { background: var(--line); padding: 3px 8px; border-radius: 6px; }
.pg-time a { color: var(--hot); text-decoration: none; margin-left: 4px; }
.posting .blk { display: grid; gap: 4px; }
.posting textarea { font: inherit; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }

.sbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.sb { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 5px; text-decoration: none; white-space: nowrap; }
.sb.buzz { background: #ff6a2b; color: #120c08; }
.sb.first { background: var(--accent); color: var(--on-accent); }
.sb.excl { background: #7fd3ff; color: #07131a; }
.story-bar { margin: -6px 0 10px; font-size: 14px; }
.story-bar:empty { display: none; }
.sb.src { background: #d6e08c; color: #12150d; }
select.role { padding: 3px 6px; font-size: 13px; }

body.no-editing .editing-only { display: none !important; }
#fAccount { min-width: 210px; }

/* ready to post: finished-video upload + per-platform captions */
.final-drop { border: 2px dashed var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.final-drop.over { border-color: var(--accent); background: var(--panel); }
.final-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.final-row select { max-width: 100%; min-width: 0; flex: 1 1 260px; }
label.btn { display: inline-block; font-weight: 700; background: var(--accent); color: var(--on-accent); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
label.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
label.btn.small { padding: 4px 10px; font-size: 13px; }
.rp.rp-wide { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.rp-media video { width: 100%; max-height: 420px; border-radius: 8px; background: #000; }
.triggers { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.chip { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-weight: 600; font-size: 13px; }
.chip:hover { border-color: var(--accent); }
.capgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.capbox { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; transition: border-color .3s; }
.capbox.saved { border-color: var(--good); }
.capbox-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.capbox-h .grow { flex: 1; }
.capbox textarea { font: inherit; font-size: 14px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; resize: vertical; width: 100%; box-sizing: border-box; }
.capbox .cap-title { width: 100%; box-sizing: border-box; }
.cap-count { color: var(--muted); }
.cap-count .over { color: var(--hot); font-weight: 700; }
.per-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }
.per-row > b { width: 90px; }
.per-gen input[type=number] { width: 64px; }
.per-times { flex-basis: 100%; }
.per-list { width: 100%; box-sizing: border-box; }
@media (max-width: 720px) { .rp.rp-wide { grid-template-columns: 1fr; } .rp-media video { max-height: 360px; } }

.login-banner { background: #3a1410; border-bottom: 1px solid var(--hot); color: #ffd9d4; padding: 10px 16px; font-size: 14px; line-height: 1.5; }
.login-banner b { color: #fff; }
.qmark { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 50%; border: 1px solid var(--muted); color: var(--muted); font-size: 11px; text-decoration: none; margin-left: 4px; }
.meta.nums .score { font-size: 12px; padding: 1px 6px; }
.tags-in { width: 130px; padding: 4px 8px; font-size: 13px; }
.pf.youtube { background: #ff0033; color: #fff; }
.otags { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.chip.sm { font-size: 11.5px; padding: 2px 8px; }
tr.collapsed td { padding-top: 6px; padding-bottom: 6px; }
tr.collapsed .one-line { display: inline-block; max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.capbox .pf-when { flex-basis: 100%; display: flex; gap: 6px; align-items: center; }
.capbox .pf-at { flex: 1 1 auto; min-width: 0; font-size: 13px; padding: 4px 30px 4px 8px; background-position: right 8px center; }
.results { margin-bottom: 20px; }
.results h2 { margin: 0 0 4px; }
.results .note { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.results .verdict { font-size: 15px; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.results-grid table { width: 100%; }
.top-posts { padding-left: 20px; font-size: 13px; }
.top-posts li { margin: 4px 0; }

/* Date/time pickers on the dark theme: without this the browser draws a black calendar/clock icon (black on black).
   color-scheme alone fixed Chrome but not Safari (Jimmy 2026-09-28: "it has reverted to black"), so the icon is our own,
   drawn as the field's background in the text color; Chrome's own icon sits invisibly on top of it so a click still opens
   the picker, and Safari opens its picker from a click anywhere in the field. */
input[type="datetime-local"], input[type="date"], input[type="time"], select { color-scheme: dark; }
input[type="datetime-local"], input[type="date"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eef0e2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px 16px; padding-right: 34px; cursor: pointer;
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator, input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0; cursor: pointer; position: absolute; right: 6px; width: 24px; height: 24px; margin: 0;
}
input[type="datetime-local"], input[type="date"] { position: relative; }
input[type="time"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.9; }
#voiceText { width: 100%; box-sizing: border-box; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px; resize: vertical; }
.who { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.who .viewing { color: var(--accent); }
.who select { font-size: 13px; padding: 4px 8px; max-width: 200px; }
body:not(.is-admin) .admin-only { display: none !important; }
tr.not-following td { opacity: 0.55; }
#login input { font-size: 16px; }
button.danger { border-color: var(--hot); color: var(--hot); }

/* Queue thumbnails + preview */
.c-thumb { width: 76px; padding-right: 0; }
.thumb { position: relative; display: block; width: 68px; height: 68px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: visible; background: var(--panel); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; display: block; transition: transform .15s ease, box-shadow .15s ease; transform-origin: left center; position: relative; z-index: 1; }
.thumb-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 7px; font-size: 11px; }
.thumb-play { position: absolute; right: 4px; bottom: 4px; z-index: 2; font-size: 10px; background: rgba(0,0,0,.65); color: #fff; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
@media (hover: hover) { .thumb:hover img { transform: scale(2.6); box-shadow: 0 8px 30px rgba(0,0,0,.6); z-index: 5; } }
#detail:has(.preview) { max-width: min(980px, 96vw); width: 96vw; padding: 16px; }
.preview { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.preview-player video, .preview-player iframe { width: 100%; height: min(78vh, 720px); border: 0; border-radius: 10px; background: #000; display: block; }
.preview-cap { white-space: pre-wrap; max-height: 40vh; overflow: auto; }
.preview-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
@media (max-width: 720px) {
  .c-thumb { width: 56px; } .thumb { width: 50px; height: 50px; }
  .preview { grid-template-columns: 1fr; } .preview-player video, .preview-player iframe { height: 62vh; }
}
.thumb-sm { display: none; }
@media (max-width: 640px) {
  table.queue th.c-thumb, table.queue td.c-thumb { display: none; }
  .thumb-sm { display: block; margin-top: 6px; }
  .thumb-sm .thumb { width: 48px; height: 48px; }
}

.amp { color: var(--accent); font-size: 12px; }
#detail.card-dlg { max-width: min(1100px, 96vw); width: 96vw; }
#detail.card-dlg .rp { margin: 0; }
.niche-list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0; }
.niche-chip { display: inline-block; font-size: 12px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 10px; white-space: nowrap; }
.niche-chip a { color: var(--muted); text-decoration: none; }
.niche-add { font-size: 12px; padding: 0 4px; width: auto; }
@font-face { font-family: "Bangers"; src: url("/fonts/Bangers-Regular.ttf") format("truetype"); font-display: swap; }
.vwrap { position: relative; container-type: inline-size; }
.vwrap video { display: block; width: 100%; }
/* Drawn by drawOverlay() with the same fitting as the server's burn-in */
.ov-prev { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ov-prev[hidden], .ov-tag[hidden] { display: none; }
.ov-tag { position: absolute; top: 8px; left: 8px; font-size: 11px; padding: 2px 7px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; pointer-events: none; }
.ovbox { margin: 0 0 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.ov-row { display: flex; gap: 6px; margin: 6px 0; }
.ov-row .ov-text { flex: 1; font-size: 16px; }
.cs-grid { display: grid; grid-template-columns: 1fr 220px; gap: 16px; align-items: start; }
.cs-prev canvas { width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; background: linear-gradient(160deg, #3a4a5c, #1b2430 55%, #4b3a2c); }
.cs-controls input[type=range] { width: 100%; }
@media (max-width: 640px) { .cs-grid { grid-template-columns: 1fr; } .cs-prev { max-width: 220px; } }
.ov-opts { margin: 8px 0 0; }
.chip { background: var(--line); color: var(--text); font-size: 12px; padding: 3px 9px; border-radius: 12px; border: 0; cursor: pointer; }
.chip:hover { background: var(--accent); color: var(--on-accent); }

/* Settings > Your niches: the new-niche field, its button beside it, then the news tick (Jimmy 2026-09-28) */
.niche-new { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Settings, cleaned up 2026-09-28 (Jimmy: "Look over the whole thing for clean up and clarity"): every section is a card,
   one setting per line, a jump bar at the top. */
.set-jump { margin: 4px 0 14px; color: var(--muted); }
.set-jump a { color: var(--text); text-decoration: none; }
.set-jump a:hover { color: var(--accent); }
.set-card { max-width: 760px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 0 0 16px; color: var(--muted); scroll-margin-top: 12px; }
.set-card > h2:first-child { margin-top: 0; }
.set-card h2 { color: var(--text); }
.set-card b { color: var(--text); }
.set-card input:not([type=checkbox]):not([type=color]):not([type=range]), .set-card select, .set-card textarea { background: var(--bg); }
.set-group { margin: 26px 0 4px; font-size: 18px; }
.set-note { margin: 0 0 10px; max-width: 760px; }
.settings-rows { display: grid; gap: 10px; justify-items: start; }
.settings-rows p { margin: 0; }
.settings-rows input[type=number] { width: 90px; }
.set-card .chk input[type=checkbox] { width: auto; }
#voiceText { width: 100%; box-sizing: border-box; }
.set-card .blk { display: grid; gap: 4px; justify-items: stretch; }
.set-card .final-row input { flex: 1 1 260px; min-width: 0; }
.set-card input, .set-card select, .set-card textarea { max-width: 100%; box-sizing: border-box; }
.set-card table { display: block; overflow-x: auto; }
.set-card.posting, .set-card .blk { grid-template-columns: minmax(0, 1fr); }
.set-card .blk select { width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.set-card .blk:has(select) { overflow: hidden; }
/* Originals: a header per day added */
tr.day-h td { padding: 16px 8px 6px; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--line); background: transparent; }
tr.day-h:first-child td { padding-top: 4px; }
/* The X on every popup: stays in the top right, even when the popup scrolls */
.dlg-x { position: sticky; top: 0; float: right; margin: -6px -6px 6px 10px; z-index: 20; width: 34px; height: 34px; padding: 0; border-radius: 50%;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); font-size: 22px; line-height: 1; font-weight: 400; cursor: pointer; }
.dlg-x:hover { background: var(--accent); color: var(--on-accent); }
.dlg-x:focus { outline: none; }
.dlg-x:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
/* Reschedule window */
.resched { display: grid; gap: 10px; margin: 10px 0 14px; }
.resched-row { display: grid; grid-template-columns: 110px minmax(0, 260px) auto; gap: 10px; align-items: center; }
/* Accounts: an X account in neither X List (read the slow way) */
.flag-list { font-size: 11px; padding: 1px 7px; border-radius: 9px; background: rgba(245,185,66,.18); color: var(--warn); white-space: nowrap; }
.xlists { display: grid; gap: 8px; width: 100%; max-width: 620px; padding: 10px 0 0; border-top: 1px solid var(--line); }

/* + Add a clip */
#addClipBtn { font-weight: 600; }
.add-clip-form { display: grid; gap: 8px; margin: 10px 0; }
.add-clip-form input[type=url] { width: 100%; }
.add-done { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.add-row { padding: 4px 0; border-top: 1px solid var(--line); }
.when-split { margin: 2px 0; line-height: 1.25; }

.brand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }

/* Licensed-clip flag (ViralHog, WooGlobe, Jukin, AFV...): YouTube/Facebook will likely claim a reaction */
.lic { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: #fdecc8; color: #8a4b00; white-space: nowrap; }
.lic.ok { background: #dff3e4; color: #1d6b35; }

/* Settings › Editing: logo + CTA uploads */
.brand-assets { display: flex; flex-wrap: wrap; gap: 16px; }
.brand-assets .ba { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }
.ba-prev { width: 160px; height: 110px; display: flex; align-items: center; justify-content: center; border: 1px dashed #c9cdd4; border-radius: 6px;
  background: repeating-conic-gradient(#eef0f3 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.ba-prev img { max-width: 150px; max-height: 100px; }

/* Recorder (record.js) + reaction script card */
.w-record { width: 100%; padding: 14px; font-size: 16px; }
.w-or { text-align: center; margin: 6px 0; }
.w-script { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w-script > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
@media (max-width: 700px) { .w-script { grid-template-columns: 1fr; } }
.rec-mode { margin: 4px 0; }
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rec-pane { position: relative; min-width: 0; }
.rec-pane video { width: 100%; max-height: 52vh; background: #000; border-radius: 10px; object-fit: contain; }
#recCam.mirror { transform: scaleX(-1); }
.rec-big { position: absolute; inset: 24px 0 0 0; display: flex; align-items: center; justify-content: center; font-size: 96px; font-weight: 800; color: #fff; text-shadow: 0 2px 12px #000; pointer-events: none; }
.rec-prompt { margin: 10px 0; padding: 10px 12px; background: #fff8e1; border-radius: 10px; font-size: 17px; line-height: 1.4; max-height: 24vh; overflow: auto; }
.rec-one { font-size: 14px; margin-bottom: 4px; }
.rec-line { padding: 2px 0; } .rec-line.now { font-weight: 800; color: #b3261e; font-size: 20px; } .rec-line.past { opacity: .45; }
.rec-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#recGo { background: #d32f2f; } #recReview video { width: 100%; max-height: 50vh; background: #000; border-radius: 10px; margin-top: 8px; }
@media (max-width: 700px) { .rec-grid { grid-template-columns: 1fr 1fr; } .rec-pane video { max-height: 34vh; } .rec-prompt { font-size: 16px; } }

/* Posted dashboard */
.dash { display: grid; gap: 12px; margin-bottom: 18px; }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.dash-tile { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--panel); }
.dash-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dash-big { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-sub { font-size: 12px; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.dash-grid section { min-width: 0; overflow-x: auto; }
.dash-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dash-list li { display: flex; gap: 10px; align-items: center; }
.dash-th { width: 36px; height: 64px; object-fit: cover; border-radius: 4px; background: var(--line); flex: none; display: inline-block; }
.up { color: #3fb950; } .down { color: #f85149; }
.dash-wide { grid-column: 1 / -1; }

.capbox .cap-tags { width: 100%; margin-top: 4px; }
.capbox label.small-txt { display: block; margin-top: 6px; }

.insights { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--panel); margin: 8px 0 12px; }
.insights ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* Big story, still fresh */
.hot-badge { display: inline-block; margin: 4px 0; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: rgba(255, 120, 40, .16); color: #ffb37a; border: 1px solid rgba(255, 120, 40, .45); }
.hot-badge.soon { background: rgba(248, 81, 73, .18); color: #ff8a80; border-color: rgba(248, 81, 73, .6); }
.hot-badge.closed { opacity: .55; }

/* Pinned in Originals */
.pin-btn { background: none; border: 0; padding: 0 4px 0 0; cursor: pointer; font-size: 15px; filter: grayscale(1) brightness(3); opacity: .85; }
.pin-btn:hover, .pin-btn:focus-visible { opacity: 1; filter: grayscale(.4) brightness(1.6); }
.pin-btn.on { filter: none; opacity: 1; }
tr.pinned > td { background: rgba(248, 81, 73, .07); }
tr.pin-h td { color: #ff8a80; }

/* Long format */
.sb.fullstory { background: rgba(80, 160, 255, .15); color: #8cc4ff; border: 1px solid rgba(80, 160, 255, .4); }
.fmt-btn.on { border-color: #8cc4ff; color: #8cc4ff; }

/* Posted page (2026-10-02 redesign) */
.dash-tile.goal { border-color: #3fb950; }
.dash-tile.ok .dash-big { color: #3fb950; } .dash-tile.warn .dash-big { color: #d29922; } .dash-tile.bad .dash-big { color: #f85149; }
.dash-unit { font-size: 13px; font-weight: 400; color: var(--muted); }
.rec-bar { height: 8px; border-radius: 4px; background: var(--line); margin: 6px 0; overflow: hidden; }
.rec-bar span { display: block; height: 100%; background: #3fb950; }
.angry-th { display: flex; align-items: center; justify-content: center; font-size: 22px; }
.dash-more { margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.dash-more summary { cursor: pointer; font-weight: 600; }
table.posted .pf-num { display: inline-block; margin: 0 10px 2px 0; white-space: nowrap; }
table.posted .badges { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.sb.sens { background: rgba(210, 153, 34, .15); color: #e3b341; border: 1px solid rgba(210, 153, 34, .4); }
.sb.angry { background: rgba(248, 81, 73, .18); color: #ff8a80; border: 1px solid rgba(248, 81, 73, .5); }
.sb.calm { background: var(--panel); color: var(--muted); border: 1px solid var(--line); }

.fb-page{margin-bottom:18px}
.fb-bars{display:flex;align-items:flex-end;gap:2px;height:64px;margin:10px 0 4px}
.fb-bars span{flex:1;background:var(--facebook);border-radius:2px 2px 0 0;min-width:3px;opacity:.85}
.fb-bars span:last-child{opacity:1}

.capbox .cap-tagrow { display: flex; align-items: flex-end; gap: 8px; }
.capbox .cap-tagrow label { flex: 1; min-width: 0; }

/* Recording right in the editor's panel 2 (2026-10-04) */
.rec-cam { position: relative; }
.rec-cam video, #recReview video { width: 100%; max-height: 60vh; background: #000; border-radius: 10px; object-fit: contain; display: block; }
.rec-cam .rec-flip { position: absolute; top: 8px; right: 8px; }
.rec-cam .rec-big { inset: 0; }
.rec-now { position: absolute; left: 8px; right: 8px; bottom: 10px; text-align: center; font-size: 20px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px #000, 0 0 2px #000; pointer-events: none; }
.rec-now:empty { display: none; }
.rec-actions { margin-top: 8px; }
.w-script .w-line.now { font-weight: 800; color: var(--accent); font-size: 15px; }
.w-script .w-line.past { opacity: .45; }

/* Scale handle + crop edges on the small video (2026-10-04) */
.p-h { position: absolute; z-index: 4; display: block; }
.p-h.se { right: -7px; bottom: -7px; width: 14px; height: 14px; background: var(--accent); border: 2px solid #111; border-radius: 3px; cursor: nwse-resize; }
.p-h.edge { display: none; background: var(--accent); border-radius: 3px; opacity: .9; }
.p-box.cropping .p-h.edge { display: block; }
.p-box.cropping .p-h.se { display: none; }
.p-box.cropping { outline: 2px dashed var(--accent); }
.p-h.edge.l, .p-h.edge.r { top: 20%; bottom: 20%; width: 8px; cursor: ew-resize; }
.p-h.edge.l { left: -4px; } .p-h.edge.r { right: -4px; }
.p-h.edge.t, .p-h.edge.b { left: 20%; right: 20%; height: 8px; cursor: ns-resize; }
.p-h.edge.t { top: -4px; } .p-h.edge.b { bottom: -4px; }
#pCropBtn.on { border-color: var(--accent); color: var(--accent); }

.brand-at-in { width: 56px; padding: 2px 6px; font-size: 16px; }

/* Look: face filters (2026-10-06) */
.w-look { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 18px; margin: 6px 0; }
.w-lk { display: flex; align-items: center; gap: 8px; }
.w-lk input[type=range] { flex: 1; min-width: 0; }
.w-lk span { width: 30px; text-align: right; font-variant-numeric: tabular-nums; }

.look-sw { display: inline-flex; align-items: center; gap: 4px; }
.look-sw button.on { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* Recording studio switch (Settings) + the Record tab (2026-10-07) */
.studio-card { border: 1px solid var(--accent); }
.studio-switch { display: flex; gap: 14px; align-items: center; cursor: pointer; font-size: 17px; }
.studio-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.studio-switch .sw { flex: none; width: 52px; height: 30px; border-radius: 15px; background: var(--line); position: relative; transition: background .2s; }
.studio-switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; }
.studio-switch input:checked + .sw { background: var(--accent); }
.studio-switch input:checked + .sw::after { left: 25px; }
.studio-switch input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.rec-list { display: grid; gap: 10px; }
.rec-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.rec-item.pinned { border-color: var(--accent); }
.rec-info { min-width: 0; display: grid; gap: 2px; }
.rec-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .rec-item { grid-template-columns: auto 1fr; } .rec-acts { grid-column: 1 / -1; justify-content: flex-start; } }

/* Recording studio editor (2026-10-07): Clip Settings, presets, devices, teleprompter, script sources, snap guides */
.w-clipset { margin-top: 10px; display: grid; gap: 8px; }
.w-clipset h4 { margin: 4px 0 0; font-size: 15px; }
.w-clipset .w-radio { display: grid; gap: 6px; }
.w-clipset .w-sub { margin-left: 26px; font-size: 13px; }
.w-clipset .w-sub.off { opacity: .45; }
.w-clipset input[type=number] { width: 64px; }
.w-preset.on { border-color: var(--accent); color: var(--on-accent); background: var(--accent); }
.rec-devs { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 6px; }
.rec-devs label { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.rec-devs select { max-width: 220px; }
.rec-prompter-wrap { margin-top: 8px; display: grid; gap: 4px; }
.rec-prompter { height: 150px; overflow: hidden; white-space: pre-wrap; font-size: 22px; line-height: 1.45; padding: 0 10px; background: #000; color: #fff; border-radius: 10px; scroll-behavior: auto; }
.rec-prompter .rec-pad { height: 60px; }
.w-scriptbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.w-myscript { white-space: pre-wrap; max-height: 260px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
#wScriptTxt { width: 100%; }
.p-guide { position: absolute; z-index: 5; background: #ff3ea5; pointer-events: none; }
.p-guide.v { left: 50%; top: 0; bottom: 0; width: 1px; }
.p-guide.h { top: 50%; left: 0; right: 0; height: 1px; }
/* hidden always wins inside the editor (a display rule was keeping the Clip Settings times on screen) */
#work [hidden] { display: none !important; }

/* Phone recording screen (2026-10-07): full screen camera, the clip as picture-in-picture, script by the lens */
.phone-rec { position: fixed; inset: 0; z-index: 60; background: #000; }
#wRecHost.rec-phone { position: absolute; inset: 0; }
.rec-phone .rec-cam { position: absolute; inset: 0; }
.rec-phone .rec-cam video { width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; }
.rec-phone #recReview { position: absolute; inset: 0; background: #000; }
.rec-phone #recReview video { width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 0; }
.rec-phone #recHint, .rec-phone #recCancel { display: none; }
.rec-phone .rec-top { position: absolute; z-index: 4; top: calc(env(safe-area-inset-top) + 8px); left: 8px; right: 8px; display: flex; align-items: center; gap: 8px; }
.rec-phone .rec-top .rec-ear { flex: 1; text-align: center; color: #fff; font-size: 12px; text-shadow: 0 1px 4px #000; }
.rec-phone .rec-top button { background: rgba(0,0,0,.55); color: #fff; border-color: rgba(255,255,255,.3); min-width: 40px; min-height: 40px; }
.rec-phone .rec-devs { position: absolute; z-index: 5; top: calc(env(safe-area-inset-top) + 56px); left: 8px; right: 8px; background: rgba(0,0,0,.8); padding: 10px; border-radius: 12px; color: #fff; }
.rec-phone .rec-devs select { max-width: 100%; font-size: 16px; }
.rec-phone .rec-now { top: calc(env(safe-area-inset-top) + 60px); bottom: auto; font-size: 22px; }
.rec-phone .rec-prompter-wrap { position: absolute; z-index: 3; top: calc(env(safe-area-inset-top) + 56px); left: 8px; right: 8px; color: #fff; }
.rec-phone .rec-prompter { height: 28vh; background: rgba(0,0,0,.55); font-size: 24px; }
.rec-phone .rec-prompter-wrap label { text-shadow: 0 1px 4px #000; }
.rec-phone .rec-actions { position: absolute; z-index: 4; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 18px); justify-content: center; margin: 0; }
.rec-phone .rec-actions button { min-height: 52px; padding: 0 22px; font-size: 18px; }
.rec-phone #recGo { border-radius: 999px; }
.rec-phone #recMsg { position: absolute; bottom: 64px; left: 0; right: 0; text-align: center; color: #fff; text-shadow: 0 1px 4px #000; }
.rec-phone .rec-flip { top: auto; bottom: calc(env(safe-area-inset-bottom) + 96px); left: 14px; right: auto; min-width: 44px; min-height: 44px; }
.phone-pip { position: absolute; z-index: 2; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 96px); width: 34vw; max-width: 190px; border-radius: 10px; background: #000; box-shadow: 0 4px 18px rgba(0,0,0,.6); }
.phone-pip.pip-off { visibility: hidden; }
.phone-rec:has(#recReview:not([hidden])) .phone-pip { display: none; }
.rec-prompter-wrap label { display: flex; align-items: center; gap: 8px; }
.rec-prompter-wrap label input { flex: 1; min-width: 0; }

/* Kalshi odds on Ready to post (2026-10-07) */
.kalshi-line { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; }
.kalshi-line img { width: 120px; border-radius: 8px; flex: none; }
.kalshi-pick { display: grid; gap: 6px; margin: 6px 0; }
.kalshi-pick button { text-align: left; white-space: normal; }

/* Kalshi sponsorship tracker (2026-10-07) */
.k-progress { display: grid; gap: 6px; margin-bottom: 8px; }
.k-big { font-size: 22px; } .k-big b { font-size: 30px; }
.k-bar { height: 14px; border-radius: 7px; } .k-bar span { background: var(--accent); }
.k-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 14px; margin: 8px 0; }
.k-form label { display: grid; gap: 3px; font-size: 13px; }
.k-bonus { display: grid; gap: 6px; }
.k-bonus-row { display: grid; grid-template-columns: minmax(220px, 1fr) 150px minmax(140px, 1fr); gap: 8px; align-items: center; }
@media (max-width: 640px) { .k-bonus-row { grid-template-columns: 1fr; } }
.k-checks label { white-space: nowrap; }
/* Phone recorder (Jimmy 2026-10-08): the clip top right, under the top bar; the script / teleprompter beside it on the left */
.phone-pip { top: calc(env(safe-area-inset-top) + 60px); bottom: auto; right: 10px; width: 36vw; }
.rec-phone .rec-prompter-wrap { right: calc(36vw + 22px); }
.rec-phone .rec-prompter { height: 34vh; font-size: 21px; }
.rec-phone .rec-now { left: 10px; right: calc(36vw + 22px); text-align: left; }
.rec-phone .rec-devs { z-index: 6; }

.k-vids { margin-top: 6px; }
.k-invoice { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.k-checks > div { margin-top: 4px; }

.k-delay { width: 64px; padding: 2px 6px; font-size: 16px; }

/* the video is being redone (logo / Kalshi card): fade the old one and say so (2026-10-08) */
.vwrap.updating { position: relative; }
.vwrap.updating video { opacity: .35; }
.vwrap.updating::after { content: "⏳ Updating video…"; position: absolute; inset: auto 0 45% 0; text-align: center; font-weight: 800; color: #fff; text-shadow: 0 1px 4px #000; pointer-events: none; }
.k-busy { padding: 8px 10px; border: 1px dashed var(--accent); border-radius: 10px; }

/* Cleaner-copy search finds (Jimmy 2026-10-10) */
.cc-top { display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; }
.cc-thumb { width: 54px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; background: #0002; display: block; }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 10px 0; }
.cc-card { border: 1px solid #8884; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.cc-card.on { border-color: #2a7; box-shadow: 0 0 0 2px #2a74; }
.cc-card .cc-thumb { width: 100%; }

/* Image commentary (Jimmy 2026-10-10) */
.w-multi { display: flex; gap: 6px; align-items: center; margin: 4px 0 8px; font-size: 14px; }
.w-img { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #8883; }
.w-img img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #0002; display: block; }
.w-img input[data-f] { width: 64px; }
.w-imgshow { margin-top: 8px; }
.w-imgshow img { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 10px; background: #000; display: block; }
img.phone-pip { object-fit: contain; background: #000; }
#recImageBtn { margin-right: 12px; }

/* Recording clock + timeline (Jimmy 2026-10-10) */
.rec-cam .rec-tl { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; background: rgba(0,0,0,.62); color: #fff; border-radius: 10px; padding: 6px 10px 8px; pointer-events: none; }
.rec-tl-row { display: flex; gap: 10px; align-items: baseline; font-size: 13px; margin-bottom: 5px; }
.rec-tl-row b { font-size: 18px; font-variant-numeric: tabular-nums; }
.rec-tl-bar { position: relative; height: 10px; background: rgba(255,255,255,.18); border-radius: 5px; }
.rec-tl-bar i { position: absolute; top: 0; bottom: 0; background: #f2c200; border-radius: 5px; opacity: .75; }
.rec-tl-bar i.held { background: repeating-linear-gradient(45deg, #f2c20099 0 4px, transparent 4px 8px); }
.rec-tl-bar i.on { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.rec-tl-bar b.now { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1px; background: #ff3b30; border-radius: 2px; }
.rec-phone .rec-cam .rec-tl { bottom: calc(env(safe-area-inset-bottom) + 96px); }

/* Look: live camera preview while choosing filters (Jimmy 2026-10-11) */
.w-lookcam { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 8px 0; }
.w-lookcam video { width: 100%; max-width: 360px; max-height: 42vh; object-fit: cover; border-radius: 10px; background: #000; }
.w-lookcam video.mirror { transform: scaleX(-1); }
.rec-qual:empty { display: none; }
.rec-qual { background: #5a3b00; color: #ffe2a6; border-radius: 8px; padding: 8px 10px; }
/* Record tab › Record: the editor opens at its settings; the record button pulses so it's easy to find */
@keyframes wpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,194,0,.0); } 50% { box-shadow: 0 0 0 6px rgba(242,194,0,.45); } }
.w-record.w-pulse { animation: wpulse 1s ease-in-out 4; }
#recSoloBtn { margin-right: 8px; }
/* Mic & sound pickers before recording (Eric 2026-10-12) */
.w-devs { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; }
.w-devs label { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.w-devs select { max-width: 240px; font-size: 16px; }
.w-devs p { flex-basis: 100%; margin: 0; }
/* Mic level meter (Jimmy 2026-10-12) */
.rec-meter-row { display: flex; gap: 8px; align-items: center; font-size: 13px; flex-basis: 100%; }
.rec-meter { position: relative; display: inline-block; width: 180px; height: 10px; background: rgba(127,127,127,.3); border-radius: 5px; overflow: hidden; }
.rec-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #2fbf71; transition: width .06s linear; }
.rec-meter i.yellow { background: #f2c200; }
.rec-meter i.red { background: #ff3b30; }
.rec-meter.mini { width: 60px; height: 8px; margin-left: auto; }
/* Clip sound on a finished video (2026-10-16) */
.sound-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 6px 0; }
.sound-line label { display: inline-flex; align-items: center; gap: 6px; }
.sound-line input[type=range] { width: 120px; max-width: 40vw; }
.sound-line .snd-apply.pulse { animation: sndpulse 1.2s ease-in-out infinite; }
@keyframes sndpulse { 50% { box-shadow: 0 0 0 6px rgba(240, 200, 30, 0.35); } }

/* Move / Size / Crop switch over the Fine-tune frame (2026-10-17) */
.p-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 0 0 10px; }
.p-modes button { border-radius: 0; margin: 0; padding: 8px 14px; font-size: 16px; background: transparent; color: var(--text); border: 1px solid var(--accent); font-weight: 600; }
.p-modes button:first-child { border-radius: 8px 0 0 8px; } .p-modes button:nth-child(3) { border-radius: 0 8px 8px 0; margin-right: 10px; }
.p-modes button.on { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.p-box.sizing { outline: 2px solid var(--accent); cursor: nwse-resize; }
.p-box.sizing::before, .p-box.sizing::after { content: ""; position: absolute; width: 14px; height: 14px; background: var(--accent); border: 2px solid #111; border-radius: 3px; z-index: 4; }
.p-box.sizing::before { left: -7px; top: -7px; } .p-box.sizing::after { right: -7px; top: -7px; }
.p-box.cropping { cursor: default; }

/* Preview before render (2026-10-17) */
.p-play { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 10px; }
.p-play label { display: inline-flex; align-items: center; gap: 6px; }
.p-play input[type=range] { width: 110px; max-width: 34vw; }
.p-play .muted { flex-basis: 100%; margin: 0; }
.p-box.pv-full { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; background: #000; outline: none; }
.p-box.pv-full .p-clip video, .p-box.pv-full .p-clip img { object-fit: contain !important; width: 100% !important; height: 100% !important; left: 0 !important; top: 0 !important; }
.p-box.pv-full .p-tag, .p-box.pv-full .p-h { display: none; }

/* Rendering screen while the video file is being replaced (2026-10-17) */
.vwrap.rendering { position: relative; aspect-ratio: 9 / 16; width: 100%; max-height: 420px; border-radius: 8px; background: #000 center / cover no-repeat; overflow: hidden; }
.w-out .vwrap.rendering { width: 300px; max-height: 60vh; }
.vwrap.rendering::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }
.rendering-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; color: #fff; }
.rendering-in b { font-size: 17px; }
.rendering-in .spin { width: 34px; height: 34px; border: 4px solid rgba(255, 255, 255, .25); border-top-color: var(--accent); border-radius: 50%; animation: rspin 0.9s linear infinite; }
@keyframes rspin { to { transform: rotate(360deg); } }
@media (max-width: 720px) { .vwrap.rendering { max-height: 360px; } }

/* 5-minute date + time pickers standing in for the browser's (2026-10-17) */
input.dt5-hidden { display: none !important; }
.dt5 { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.dt5 input[type=date] { font-size: 16px; min-width: 0; }
.dt5 select { font-size: 16px; padding: 6px 8px; }

/* Retakes list + preview zoom origin (2026-10-17) */
#pEric { transform-origin: 50% 30%; will-change: transform; }
.takes { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.takes .take { display: flex; gap: 6px; align-items: baseline; }
.takes .take.off { opacity: .55; text-decoration: line-through; }

.p-load { position: absolute; inset: 0; display: grid; place-items: center; color: #ddd; font-size: 14px; pointer-events: none; z-index: 1; }

/* 🎞 Video Commando (2026-10-19) */
#tab-vc .set-card { max-width: 900px; }
.vc-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: end; margin: 8px 0; }
.vc-row label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.vc-row label.chk { flex-direction: row; align-items: center; }
.vc-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vc-list { display: grid; gap: 8px; max-width: 900px; }
.vc-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.vc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.vc-head input { flex: 1 1 220px; max-width: 520px; }
#tab-vc textarea { width: 100%; box-sizing: border-box; }
.vc-take { width: 100%; max-width: 320px; max-height: 60vh; background: #000; border-radius: 10px; display: block; }
/* the preview box is the video's own shape, sized to fit the screen, so a short window never adds black sides */
.vc-prev { aspect-ratio: 9 / 16; width: min(320px, 100%, calc(60vh * 9 / 16)); height: auto; background: #000; border-radius: 10px; display: block; }
.vc-prev.wide { aspect-ratio: 16 / 9; width: min(640px, 100%, calc(60vh * 16 / 9)); }
.vc-rec:empty { display: none; }
.vc-rec { max-width: 640px; margin: 8px 0; }
.vc-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }
.vc-asset { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-width: 0; }
.vc-asset img, .vc-ph { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; flex: none; background: #000; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.vc-ainfo { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vc-beats td { vertical-align: top; }
.vc-beats tr.off { opacity: .45; }
.vc-bthumb { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; }
.vc-beats .nowrap { white-space: nowrap; }
@media (max-width: 600px) { .vc-beats th:nth-child(3), .vc-beats td:nth-child(3) { display: none; } .vc-beats select { max-width: 110px; } }
.vc-ainfo b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vc-ainfo .muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-where { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-where input { width: 64px; }
@media (max-width: 600px) { .vc-where { flex-direction: column; } .vc-where select { width: 118px; } .vc-beats { font-size: 13px; } }

/* The product switch (2026-10-19): the other product's logo on the right of the header */
.mode-switch { margin-left: auto; display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 4px 10px; border-radius: 10px; font-weight: 600; }
.mode-switch img { width: 104px; height: auto; display: block; }
.mode-switch:hover { border-color: var(--accent); color: var(--text); }
nav button.mode-hide { display: none !important; }
/* Video Commando wears YouTube's colors: red, white, near-black */
body.mode-vc { --bg: #0f0f0f; --panel: #1b1b1b; --line: #333333; --text: #f1f1f1; --muted: #aaaaaa; --accent: #ff0000; --on-accent: #ffffff; --cyan: #ff0000; --olive: #ff0000; }
body.mode-vc .scan { display: none; }
body.mode-vc .mode-switch { margin-left: auto; }
@media (max-width: 640px) { .mode-switch img { width: 86px; } .mode-switch span { display: none; } }
#tab-vc .vc-row label { min-width: 0; max-width: 100%; }
#tab-vc select, #tab-vc input:not([type=checkbox]) { max-width: 100%; }
/* Breaking news banner toggle (2026-10-19) */
.ov-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }
.bn-toggle { white-space: nowrap; }
/* Video Commando: the retakes cut from the take (2026-10-19) */
.vc-cuts { display: grid; gap: 6px; margin: 10px 0; max-width: 760px; }
.vc-cut { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.vc-cut.off { opacity: .5; }
.vc-cut.off span:nth-of-type(2) { text-decoration: line-through; }
.vc-writer { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; display: grid; gap: 8px; }
.vc-writer label.blk { display: grid; gap: 4px; font-size: 13px; }
.vc-missing ul { margin: 4px 0 0 18px; padding: 0; }
.vc-cuts summary { cursor: pointer; }
.vc-writer[hidden] { display: none; }

/* Video Commando: approve + music (2026-10-20) */
.vc-approve { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.vc-music { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.vc-music > div { flex-basis: 100%; }
.vc-music input[type=range] { vertical-align: middle; max-width: 160px; }

/* Video Commando: the B-roll switch in step 3's header (Jimmy 2026-10-21: "more visible like a slider toggle") */
.vc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.vc-head h2 { margin: 0; }
.vc-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; user-select: none; }
.vc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vc-switch-track { position: relative; width: 52px; height: 28px; border-radius: 14px; background: var(--line); transition: background .15s; flex: none; }
.vc-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.vc-switch input:checked + .vc-switch-track { background: var(--accent); }
.vc-switch input:checked + .vc-switch-track::after { transform: translateX(24px); }
.vc-switch input:focus-visible + .vc-switch-track { outline: 2px solid var(--text); outline-offset: 2px; }
.vc-switch input:not(:checked) ~ .vc-switch-text { color: var(--muted); }
