/* sched.css — Scheduling calendar + bulk uploader (scheduler.js), the variation share page, editor activity (team.js). */

/* ---------- status colours (one place) ---------- */
body.lab { --sc-sched: #7BD89F; --sc-queue: #FFD84D; --sc-ready: #8FB8FF; --sc-draft: #6E685F; --sc-live: #CFC8BC; --sc-fail: #FF6B81; }
.sc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sc-draft); flex: none; }
.sched .sc-dot, .sc-legend .sched .sc-dot { background: var(--sc-sched); }
.queue .sc-dot { background: var(--sc-queue); }
.ready .sc-dot { background: var(--sc-ready); }
.live .sc-dot, .past .sc-dot { background: var(--sc-live); }
.fail .sc-dot { background: var(--sc-fail); }
.sc-pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; background: #23201C; color: var(--lab-sub); }
.sc-pill.sched { background: rgba(123,216,159,.13); color: var(--sc-sched); }
.sc-pill.queue { background: rgba(255,216,77,.13); color: var(--sc-queue); }
.sc-pill.fail { background: rgba(255,107,129,.13); color: var(--sc-fail); }
.sc-pill.draft { background: #23201C; color: var(--lab-sub); }
.sc-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; flex: none; }
.sc-mark svg { width: 11px; height: 11px; }
.sc-muted, .sc-note { color: var(--lab-dim); font-size: 13px; }

/* ---------- page ---------- */
.sc-head { margin-bottom: 14px !important; }
.sc-accts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.sc-acct { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--lab-sub); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sc-acct > button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.sc-acct:hover { border-color: var(--lab-line); color: var(--text); }
.sc-acct.on { border-color: rgba(255,216,77,.5); background: rgba(255,216,77,.08); color: var(--text); }
.sc-acct .acct-x { opacity: 0; margin-right: -4px; }
.sc-acct:hover .acct-x { opacity: 1; }
.sc-acct.add { border-style: dashed; color: var(--lab-dim); background: none; }
.sc-acct input { display: none; }
.sc-connect { position: relative; }
.sc-menu { position: absolute; z-index: 30; top: 40px; left: 0; min-width: 180px; padding: 6px; border-radius: 12px; border: 1px solid var(--lab-line); background: #171513; box-shadow: 0 18px 40px rgba(0,0,0,.5); display: grid; gap: 2px; }
.sc-menu[hidden] { display: none; }
.sc-menu button { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.sc-menu button:hover { background: var(--lab-hover); }
.sc-bill { color: var(--lab-faint); font-size: 12px; margin-left: 4px; }

.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.sc-cal { padding: 16px !important; min-width: 0; }
.sc-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.sc-nav { display: flex; align-items: center; gap: 6px; }
.sc-nav b { margin-left: 8px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
body.lab .sc-today { min-height: 32px !important; padding: 0 12px !important; font-size: 13px !important; }
.sc-sum { margin-left: auto; color: var(--lab-dim); font-size: 12.5px; }
.sc-sum b { color: var(--text); font-weight: 700; }
.sc-bar .lab-seg { margin-left: auto; }
.sc-sum + .lab-seg { margin-left: 0; }

/* week: seven quiet columns, cards sorted by time */
.sc-week { display: grid; grid-template-columns: repeat(7, minmax(112px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.sc-day { min-height: 300px; min-width: 0; border-radius: 12px; background: var(--lab-inner); border: 1px solid transparent; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.sc-day.today { border-color: rgba(255,216,77,.35); }
.sc-day.past { opacity: .72; }
.sc-dh { display: flex; align-items: baseline; gap: 6px; padding: 2px 4px 4px; }
.sc-dh span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lab-dim); }
.sc-dh b { font-size: 17px; font-weight: 700; }
.sc-day.today .sc-dh b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #14120E; font-size: 13px; }
.sc-add { margin-left: auto; width: 24px; height: 24px; border-radius: 7px; border: 0; background: none; color: var(--lab-faint); font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s; }
.sc-day:hover .sc-add, .sc-mc:hover .sc-add { opacity: 1; }
.sc-add:hover { background: var(--lab-hover); color: var(--text); }
.sc-cards { display: flex; flex-direction: column; gap: 6px; }
.sc-card { display: flex; gap: 8px; width: 100%; padding: 8px 9px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, transform .12s; }
.sc-card:hover { border-color: var(--lab-line); transform: translateY(-1px); }
.sc-card.sc-focus, .sc-chip.sc-focus, .sc-lrow.sc-focus, .sc-rt.sc-focus { outline: 2px solid #FFD84D; outline-offset: 2px; }
.sc-th { position: relative; flex: none; width: 34px; height: 52px; border-radius: 6px; overflow: hidden; background: #201D1A; }
.sc-th.sm { width: 28px; height: 42px; }
.sc-th video, .sc-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-b { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sc-tm { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--lab-sub); }
.sc-tm b { font-weight: 700; }
.sc-title { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-pl { display: flex; gap: 3px; }
.sc-empty { margin-top: 2px; padding: 10px; border-radius: 10px; border: 1px dashed transparent; background: none; color: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.sc-day:hover .sc-empty { border-color: var(--lab-line); color: var(--lab-faint); }

/* month */
.sc-month { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 6px; overflow-x: auto; }
.sc-wd { padding: 0 6px 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lab-faint); }
.sc-mc { min-height: 104px; border-radius: 10px; background: var(--lab-inner); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sc-mc.out { opacity: .38; }
.sc-mh { display: flex; align-items: center; padding: 0 2px 2px; }
.sc-mh b { font-size: 12.5px; font-weight: 700; color: var(--lab-sub); }
.sc-mc.today .sc-mh b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #14120E; font-size: 11.5px; }
.sc-chip { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 3px 6px; border-radius: 6px; border: 0; background: var(--panel); color: var(--text); font: inherit; font-size: 11.5px; text-align: left; cursor: pointer; }
.sc-chip:hover { background: var(--lab-hover); }
.sc-chip b { font-weight: 700; color: var(--lab-sub); flex: none; }
.sc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-more { border: 0; background: none; color: var(--lab-dim); font: inherit; font-size: 11.5px; text-align: left; padding: 2px 6px; cursor: pointer; }

/* list */
.sc-list { display: flex; flex-direction: column; gap: 18px; }
.sc-lg h3 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lab-dim); }
.sc-lrow { display: grid; grid-template-columns: 28px 64px minmax(0, 1fr) auto 130px; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.sc-lrow:hover { background: var(--lab-hover); }
.sc-ltm { font-size: 13px; }
.sc-lt { min-width: 0; display: flex; flex-direction: column; }
.sc-lt b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-lt small { color: var(--lab-dim); font-size: 12px; }
.sc-st { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--lab-sub); }
.sc-none { padding: 40px 20px; text-align: center; color: var(--lab-dim); font-size: 14px; }
.sc-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--lab-dim); }
.sc-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* rail */
.sc-rail { display: flex; flex-direction: column; gap: 12px; }
.sc-rsec { padding: 16px !important; }
.sc-rsec h2 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.sc-rsec h2 small { color: var(--lab-dim); font-weight: 600; }
.sc-rrow { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--lab-row); }
.sc-rrow:first-of-type { border-top: 0; }
.sc-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 0; background: none; color: var(--text); font: inherit; text-align: left; padding: 0; cursor: pointer; }
.sc-rt b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-rt small { color: var(--lab-dim); font-size: 11.5px; }
body.lab .sc-mini { min-height: 28px !important; padding: 0 10px !important; font-size: 12px !important; }
.sc-dropcard { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; border: 1px dashed var(--lab-line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.sc-dropcard:hover { border-color: rgba(255,216,77,.5); background: rgba(255,216,77,.04); }
.sc-dropcard b { font-size: 14px; }
.sc-dropcard small { color: var(--lab-dim); font-size: 12.5px; }
body.sc-dragging #app::after { content: "Drop videos to bulk upload"; position: fixed; inset: 16px; z-index: 40; display: grid; place-items: center; border: 2px dashed var(--accent); border-radius: 18px; background: rgba(11,10,9,.82); color: var(--text); font-size: 20px; font-weight: 700; pointer-events: none; }
@media (max-width: 1560px) { .sc-grid { grid-template-columns: minmax(0, 1fr); } .sc-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; } }
@media (max-width: 700px) { .sc-lrow { grid-template-columns: 28px 52px minmax(0, 1fr); } .sc-lrow .sc-pl, .sc-lrow .sc-st { display: none; } .sc-sum { display: none; } }

/* ---------- bulk uploader ---------- */
body.sc-noscroll { overflow: hidden; }
.sc-bulk { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(6,5,4,.72); backdrop-filter: blur(3px); }
.sc-bulk.drag .sc-bk { border-color: var(--accent); }
.sc-bk { width: min(1060px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--lab-line); background: #12110F; color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; }
.sc-bkh { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; }
.sc-bkh h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sc-bkh p { margin: 4px 0 0; color: var(--lab-dim); font-size: 13px; }
.sc-x { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: none; color: var(--lab-sub); font-size: 18px; cursor: pointer; }
.sc-x.sm { margin-left: 0; width: 28px; height: 28px; font-size: 15px; }
.sc-x:hover { color: var(--text); border-color: var(--lab-line); }
.sc-bkset { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 4px 20px 10px; }
.sc-bkset label, .sc-bkcap { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--lab-dim); }
.sc-bkset label.row { flex-direction: row; align-items: center; gap: 7px; height: 38px; color: var(--lab-sub); }
.sc-bkset label.grow { flex: 1 1 160px; }
.sc-bk input, .sc-bk select, .sc-bk textarea { min-height: 38px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--lab-inner); color: var(--text); font: inherit; font-size: 13.5px; }
.sc-bk input[type=number] { width: 72px; }
.sc-bk input[type=checkbox] { min-height: 0; accent-color: var(--accent); }
.sc-bk textarea { resize: vertical; }
.sc-bk input:focus, .sc-bk select:focus, .sc-bk textarea:focus { outline: none; border-color: rgba(255,216,77,.55); }
.sc-bkacc { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 0 20px 10px; }
.sc-bkacc > span { font-size: 12px; font-weight: 600; color: var(--lab-dim); margin-right: 4px; }
.sc-bkcap { padding: 0 20px 12px; }
.sc-bkrows { flex: 1; overflow-y: auto; padding: 4px 20px 16px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--lab-row); padding-top: 12px; }
.sc-bkrow { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) 138px 104px 110px 28px; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; background: var(--panel); }
.sc-bkrow.error { box-shadow: inset 0 0 0 1px rgba(255,107,129,.45); }
.sc-bkrow.scheduled, .sc-bkrow.queued, .sc-bkrow.saved { opacity: .8; }
.sc-bkn { font-size: 12px; color: var(--lab-faint); text-align: right; font-variant-numeric: tabular-nums; }
.sc-bkf { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sc-bkf input { font-weight: 600; }
.sc-bkf textarea { min-height: 32px; padding: 6px 10px; font-size: 12.5px; }
.sc-bst { position: relative; overflow: hidden; display: inline-flex; justify-content: center; padding: 4px 8px; border-radius: 999px; background: #1F1C19; color: var(--lab-sub); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.sc-bst.up i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,216,77,.28); }
.sc-bkdrop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px; border-radius: 14px; border: 1.5px dashed var(--lab-line); cursor: pointer; text-align: center; }
.sc-bkdrop:hover { border-color: rgba(255,216,77,.55); background: rgba(255,216,77,.04); }
.sc-bkdrop b { font-size: 14px; }
.sc-bkdrop small { color: var(--lab-dim); font-size: 12.5px; }
.sc-bkf2 { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--lab-row); background: #100F0D; }
.sc-bkf2 small { flex: 1; color: var(--lab-dim); font-size: 12.5px; }
@media (max-width: 800px) { .sc-bkrow { grid-template-columns: 34px minmax(0, 1fr) 28px; } .sc-bkrow .sc-bkn { display: none; } .sc-bkrow input[type=date], .sc-bkrow input[type=time] { grid-column: 2; } .sc-bkrow > .sc-bst, .sc-bkrow > .sc-pill { grid-column: 2; justify-self: start; } }

/* ---------- variation batch share bar + public share page ---------- */
.var-share-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255,216,77,.3); background: rgba(255,216,77,.06); font-size: 13px; }
.var-share-bar a { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.var-share-bar small { color: var(--lab-dim); flex: 1; }
body.lab .var-share { max-width: 1180px; margin: 0 auto; padding: 8px 4px 60px; }
body.lab .var-share .vs-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 6px 0 22px; border-bottom: 1px solid var(--lab-row); margin-bottom: 22px; }
.vs-brand { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 15px; }
.vs-title { flex: 1; min-width: 240px; }
body.lab .var-share .vs-title h1 { margin: 4px 0 6px; font-size: 32px !important; font-weight: 800; letter-spacing: -.03em; }
body.lab .var-share .vs-title p { margin: 0; color: var(--lab-dim); font-size: 14px !important; }
.vs-actions { display: flex; gap: 8px; }
body.lab .var-share .vs-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
body.lab .var-share .vs-card { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; }
.vs-play { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #1B1916; padding: 0; cursor: pointer; }
.vs-play video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-tri { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: 17px; opacity: 0; transition: opacity .15s; }
.vs-play:hover .vs-tri { opacity: 1; }
body.lab .var-share .vs-card footer { display: flex; align-items: center; gap: 8px; font-size: 13px !important; }
.vs-card footer > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vs-card footer b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-card footer small { color: var(--lab-dim); font-size: 11.5px; }
body.lab .vs-card .lab-ghost { min-height: 32px !important; padding: 0 11px !important; }
.vs-light { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; background: rgba(6,5,4,.92); }
.vs-light[hidden] { display: none; }
.vs-light video { max-height: calc(100vh - 130px); max-width: 100%; border-radius: 14px; background: #000; }
.vs-x { position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--lab-line); background: none; color: var(--text); font-size: 20px; cursor: pointer; }
.vs-lnav { display: flex; align-items: center; gap: 10px; color: var(--lab-sub); font-size: 14px; }
.vs-lnav span { min-width: 160px; text-align: center; }
.vs-empty { padding: 80px 20px; text-align: center; }
.vs-empty p { color: var(--lab-dim); }

/* ---------- editor activity (activity.js) + job page time (team.js) ---------- */
.red-t { color: var(--red) !important; }
.av-rank { padding: 8px 18px !important; margin-bottom: 16px; }
.av-rk { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(70px, 1fr)); gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--lab-row); color: var(--lab-sub); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.av-rk:first-child { border-top: 0; }
.av-rk.th { font-size: 12px; font-weight: 600; color: var(--lab-faint); }
.av-rk b { color: var(--text); font-weight: 600; }
a.av-rk:hover b { color: var(--accent); }
.av-ed { padding: 18px 20px !important; margin-bottom: 16px; scroll-margin-top: 16px; }
.av-ed > header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.av-ed .co-av { width: 40px; height: 40px; overflow: hidden; }
.av-ed .co-av img { width: 100%; height: 100%; object-fit: cover; }
.av-ed .nm { display: flex; flex-direction: column; }
.av-ed .nm b { font-size: 16px; }
.av-ed .nm small { color: var(--lab-dim); font-size: 12px; }
.av-ed h3 { margin: 18px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lab-dim); }
.av-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.av-kpis > div { padding: 12px 14px; border-radius: 12px; background: var(--lab-inner); display: flex; flex-direction: column; gap: 2px; }
.av-kpis small { color: var(--lab-dim); font-size: 12px; }
.av-kpis b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.av-kpis em { font-style: normal; color: var(--lab-faint); font-size: 11.5px; }
.av-heat { display: grid; grid-template-columns: 64px repeat(24, minmax(10px, 1fr)) 48px; gap: 3px; align-items: center; overflow-x: auto; }
.av-heat .hl { font-style: normal; font-size: 10px; color: var(--lab-faint); height: 14px; }
.av-heat > b { font-size: 11.5px; font-weight: 600; color: var(--lab-sub); white-space: nowrap; }
.av-heat .c { height: 18px; border-radius: 4px; background: #1B1916; }
.av-heat em { font-style: normal; font-size: 11.5px; color: var(--lab-sub); text-align: right; font-variant-numeric: tabular-nums; }
.av-two { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 20px; }
.av-tbl { display: flex; flex-direction: column; }
.av-tr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(90px, 1fr) 76px 108px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--lab-row); color: var(--text); font-size: 13px; }
.av-tr:first-child { border-top: 0; }
.av-tr.th { font-size: 11.5px; font-weight: 600; color: var(--lab-faint); }
.av-tr .t { min-width: 0; display: flex; flex-direction: column; }
.av-tr .t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-tr .t small, .av-tr .n small, .av-tr .w { color: var(--lab-dim); font-size: 11.5px; }
a.av-tr:hover .t b { color: var(--accent); }
.av-tr .n { display: flex; flex-direction: column; text-align: right; font-variant-numeric: tabular-nums; }
.av-bar { position: relative; display: flex; height: 8px; border-radius: 999px; background: #1F1C19; overflow: hidden; }
.av-bar i { display: block; height: 100%; background: var(--green); }
.av-bar.near i { background: var(--accent); }
.av-bar.over i { background: var(--accent); }
.av-bar.over i.x { position: absolute; right: 0; top: 0; background: var(--red); }
.av-foot { display: block; margin-top: 8px; font-size: 11.5px; }
.av-tl { display: flex; flex-direction: column; }
.av-tl > div { display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: 10px; padding: 7px 0; border-top: 1px solid var(--lab-row); font-size: 13px; color: var(--lab-sub); }
.av-tl > div:first-child { border-top: 0; }
.av-tl i { grid-row: span 2; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--lab-faint); }
.av-tl i.delivered, .av-tl i.approved { background: var(--green); }
.av-tl i.assigned, .av-tl i.started { background: var(--accent); }
.av-tl i.changes { background: var(--red); }
.av-tl a { color: var(--text); font-weight: 600; }
.av-tl small { color: var(--lab-faint); font-size: 11.5px; }
.tk-log { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tk-log small { color: var(--lab-dim); font-size: 12px; }
.tk-log span { display: flex; gap: 6px; }
.tk-log input { width: 100%; min-height: 34px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--lab-inner); color: var(--text); font: inherit; font-size: 13px; }
@media (max-width: 900px) { .av-two { grid-template-columns: minmax(0, 1fr); } .av-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .av-rk { grid-template-columns: minmax(0, 1.4fr) repeat(2, 70px); } .av-rk > span:nth-child(n+4) { display: none; } .av-tr { grid-template-columns: minmax(0, 1fr) 80px; } .av-tr .av-bar, .av-tr .w { display: none; } }

/* dashboard latest posts: loading + connect nudge (lab-ui.js) */
.lab-thumb.skel .fr { animation: sc-pulse 1.4s ease-in-out infinite; }
.lab-thumb.skel b, .lab-thumb.skel small { display: block; width: 70%; border-radius: 4px; background: #1F1C19; animation: sc-pulse 1.4s ease-in-out infinite; }
.lab-thumb.skel small { width: 45%; margin-top: 6px; }
@keyframes sc-pulse { 50% { opacity: .45; } }
.lab-latest-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lab-latest-cta span { max-width: 560px; }

/* the app styles every button (lab.css / style.css); these controls bring their own look */
body.lab :is(.sc-rt, .sc-acct > button, .sc-more, .sc-empty, .sc-add, .sc-menu button, .acct-x, .sc-lrow, .sc-chip, .sc-card, .sc-dropcard, .sc-x, .vs-play, .vs-x) { box-shadow: none !important; min-height: 0 !important; line-height: 1.3; font-weight: inherit; }
body.lab :is(.sc-rt, .sc-acct > button, .sc-more, .sc-empty, .sc-add, .sc-menu button, .acct-x, .sc-lrow) { border: 0 !important; background: none !important; border-radius: 8px !important; }
body.lab .sc-rt, body.lab .sc-lrow, body.lab .sc-card, body.lab .sc-chip, body.lab .sc-dropcard, body.lab .sc-menu button { text-align: left; justify-content: flex-start; }
body.lab .sc-rt { padding: 0 !important; align-items: flex-start; }
body.lab .sc-acct > button { padding: 0 !important; }
body.lab .acct-x { padding: 0 2px !important; color: var(--muted) !important; }
body.lab .acct-x:hover { color: var(--accent) !important; }
body.lab .sc-card { border: 1px solid var(--border) !important; background: var(--panel) !important; border-radius: 10px !important; }
body.lab .sc-card:hover { border-color: var(--lab-line) !important; }
body.lab .sc-card.queue { box-shadow: inset 2px 0 0 var(--sc-queue) !important; }
body.lab .sc-card.fail { box-shadow: inset 2px 0 0 var(--sc-fail) !important; }
body.lab .sc-card.live, body.lab .sc-card.past { opacity: .8; }
body.lab .sc-chip { border: 0 !important; background: var(--panel) !important; border-radius: 6px !important; }
body.lab .sc-chip:hover, body.lab .sc-lrow:hover, body.lab .sc-menu button:hover, body.lab .sc-add:hover { background: var(--lab-hover) !important; }
body.lab .sc-empty { border: 1px dashed transparent !important; border-radius: 10px !important; width: 100%; }
body.lab .sc-day:hover .sc-empty { border-color: var(--lab-line) !important; }
body.lab .sc-dropcard { border: 1px dashed var(--lab-line) !important; background: none !important; border-radius: 14px !important; align-items: flex-start; }
body.lab .sc-dropcard:hover { border-color: rgba(255,216,77,.5) !important; background: rgba(255,216,77,.04) !important; }
body.lab .sc-x { border: 1px solid var(--border) !important; background: none !important; }
body.lab .vs-play { border: 1px solid var(--border) !important; background: #1B1916 !important; border-radius: 14px !important; padding: 0 !important; }
body.lab .vs-x { border: 1px solid var(--lab-line) !important; background: none !important; }
body.lab .sc-card, body.lab .sc-card * { white-space: normal; }
body.lab .sc-empty { color: transparent !important; }
body.lab .sc-day:hover .sc-empty { color: var(--lab-faint) !important; }
.sc-mark { box-shadow: 0 0 0 1px rgba(243,238,228,.22); }
.sc-bkset label small { font-weight: 500; color: var(--lab-faint); }
/* the public share page has no app chrome */
body.lab[data-page="share"] #sidebar, body.lab[data-page="share"] #topbar { display: none !important; }
body.lab[data-page="share"] #app { margin: 0 !important; margin-left: 0 !important; width: auto !important; max-width: none !important; padding: 28px 24px !important; background: var(--bg) !important; }
body.lab[data-page="share"] .page { max-width: 1180px !important; margin: 0 auto !important; padding: 0 !important; }
body.lab .var-share, body.lab .var-share p, body.lab .var-share footer { color: var(--text); }
body.lab .var-share .vs-card footer small, body.lab .var-share .vs-title p { color: var(--lab-dim) !important; }
@media (max-width: 600px) { body.lab[data-page="share"] #app { padding: 18px 16px !important; } body.lab .var-share .vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } body.lab .var-share .vs-title h1 { font-size: 26px !important; } }

/* campaign-first: filter chips + campaign line on every post */
.sc-camps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
body.lab .sc-campchip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px !important; border-radius: 12px !important; border: 1px solid var(--border) !important; background: var(--panel) !important; color: var(--lab-sub) !important; font-size: 13.5px; font-weight: 700; min-height: 0 !important; }
body.lab .sc-campchip small { color: var(--lab-faint); font-weight: 600; }
body.lab .sc-campchip:hover { color: var(--text) !important; border-color: var(--lab-line) !important; }
body.lab .sc-campchip.on { border-color: rgba(255,216,77,.55) !important; background: rgba(255,216,77,.09) !important; color: var(--text) !important; }
.sc-campnew { font-size: 13px; font-weight: 600; color: var(--lab-dim); padding: 0 6px; }
.sc-campnew:hover { color: var(--accent); }
.sc-cb { display: inline-grid; place-items: center; flex: none; border-radius: 5px; color: #14120E; font-size: 9.5px; font-weight: 800; object-fit: cover; line-height: 1; }
.sc-cb.none { background: #2A2723; color: var(--lab-dim); }
.sc-camp { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sc-camp b { font-size: 11.5px; font-weight: 800; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .01em; }
.sc-tm span { color: var(--lab-dim); font-size: 11px; }
.sc-accs { display: flex; flex-wrap: wrap; gap: 3px 8px; }
.sc-ah { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--lab-sub); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sc-ah .sc-mark { width: 14px; height: 14px; }
.sc-ah .sc-mark svg { width: 8px; height: 8px; }
.sc-ah.none { color: var(--lab-faint); }
.sc-card .sc-title { font-weight: 500; color: var(--lab-sub); }
.sc-chip .sc-dot { margin-left: auto; }
.sc-lrow { grid-template-columns: 28px 64px minmax(0, 1fr) minmax(0, auto) 130px !important; }
.sc-lt .sc-camp { margin-bottom: 1px; }
.sc-rrow .sc-cb { border-radius: 7px; font-size: 11px; }

/* ---------- variations: text on videos, tweaks switch, batch selection (variations-plus.js) ---------- */
.vx-frame { position: relative; display: block; overflow: hidden; }
.vx-frame video { display: block; width: 100%; }
/* Match the batch renderer's 960px container and square, padded background. */
.vx-frame { container-type: inline-size; }
.vx-ov { position: absolute; left: 50%; transform: translate(-50%, -50%); box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; font-family: 'TikTok Sans', sans-serif; font-weight: 800; line-height: 1.15; letter-spacing: 0; white-space: pre-wrap; overflow-wrap: normal; word-break: normal; border-radius: 0; text-shadow: none; paint-order: stroke fill; pointer-events: none; }
.vx-ov[hidden] { display: none; }
.vx-ov.vx-box { background: rgba(0,0,0,.55); }
.vx-acts { display: flex; gap: 6px; margin-top: 8px; }
body.lab .vx-mini { min-height: 28px !important; padding: 0 10px !important; font-size: 12px !important; border-radius: 8px !important; }
.vx-back { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(6,5,4,.76); backdrop-filter: blur(3px); }
.vx-ed { width: min(920px, 100%); max-height: calc(100vh - 40px); overflow: auto; display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: 24px; padding: 22px; border-radius: 18px; border: 1px solid var(--lab-line); background: #12110F; color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.vx-prev { width: 100%; min-width: 0; }
.vx-prev .vx-frame { aspect-ratio: 9 / 16; border-radius: 14px; background: #000; }
.vx-prev video { width: 100%; height: 100%; object-fit: cover; }
.vx-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vx-form h2 { margin: 4px 0; font-size: 20px; font-weight: 800; }
.vx-form header p { margin: 0; color: var(--lab-dim); font-size: 13px; line-height: 1.45; }
.vx-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--lab-dim); }
.vx-form textarea, .vx-form input[type=number] { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--lab-inner); color: var(--text); font: inherit; font-size: 14px; }
.vx-form textarea:focus { outline: none; border-color: rgba(255,216,77,.55); }
.vx-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--lab-dim); font-weight: 600; }
.vx-row > span:first-child { width: 72px; }
.vx-sw { display: flex; gap: 6px; }
body.lab .vx-sw button { width: 26px; height: 26px; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; border: 2px solid var(--border) !important; }
body.lab .vx-sw button.on { border-color: var(--accent) !important; box-shadow: 0 0 0 2px rgba(255,216,77,.35) !important; }
.vx-form label.vx-chk { flex-direction: row; align-items: center; gap: 6px; color: var(--lab-sub); }
.vx-form label.vx-len { flex-direction: row; align-items: center; gap: 8px; }
.vx-len input { width: 80px; }
.vx-form footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.vx-form .grow { flex: 1; }
.vx-tweaks { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(255,216,77,.45); background: rgba(255,216,77,.05); }
.vx-switch { flex: 1; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.vx-switch input { display: none; }
.vx-switch i { flex: none; width: 38px; height: 22px; border-radius: 999px; background: #3A3631; position: relative; transition: background .15s; }
.vx-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #F3EEE4; transition: transform .15s; }
.vx-switch input:checked + i { background: var(--accent); }
.vx-switch input:checked + i::after { transform: translateX(16px); background: #14120E; }
.vx-switch span { display: flex; flex-direction: column; gap: 2px; }
.vx-switch b { font-size: 14px; }
.vx-switch small { color: var(--lab-dim); font-size: 12.5px; }
.vx-list { margin: 10px 0; padding-left: 18px; line-height: 1.6; color: var(--lab-sub); }
.vx-warn { margin: 12px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(224,160,60,.5); background: rgba(224,160,60,.08); color: #E8A94A; font-size: 13.5px; line-height: 1.5; }
.vx-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border-radius: 12px; border: 1px dashed var(--lab-line); }
.vx-chips small { width: 100%; color: var(--lab-dim); }
.vx-chips span { padding: 6px 12px; border-radius: 999px; border: 1.5px dashed rgba(255,216,77,.6); font-size: 13px; font-weight: 600; color: var(--lab-sub); }
.vx-live { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); font-size: 13px; color: var(--lab-sub); }
.vx-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: sc-pulse 1.2s ease-in-out infinite; }
.vx-bar { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--lab-line); background: rgba(21,20,18,.94); backdrop-filter: blur(6px); }
.vx-bar .grow { flex: 1; }
.vx-all { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--lab-sub); cursor: pointer; }
.vx-all small { color: var(--lab-faint); }
.vx-all input, .vx-pick input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.vx-shares { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,216,77,.3); background: rgba(255,216,77,.05); font-size: 13px; }
.vx-shares > div, .vx-shares > details > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vx-shares a:first-child { color: var(--text); font-weight: 600; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-shares small { flex: 1; color: var(--lab-dim); }
.var-output-card { position: relative; }
.vx-pick { position: absolute; top: 10px; left: 10px; z-index: 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(0,0,0,.6); cursor: pointer; }
.var-output-card.vx-on { box-shadow: 0 0 0 2px var(--accent); }
@media (max-width: 760px) { .vx-ed { grid-template-columns: 1fr; } .vx-prev { max-width: 240px; margin: 0 auto; } }
body.lab .vx-sw button { background: var(--sw) !important; }
.vx-form h2 { overflow-wrap: anywhere; font-size: 18px; }
/* ---------- ⌘K search (palette.js) ---------- */
body.lab .pk-open { margin-left: 14px; display: inline-flex; align-items: center; gap: 8px; height: 32px; min-height: 0 !important; padding: 0 10px 0 12px !important; border-radius: 10px !important; border: 1px solid var(--border) !important; background: var(--panel) !important; color: var(--lab-dim) !important; font-size: 13px; font-weight: 500; min-width: 220px; }
body.lab .pk-open:hover { color: var(--text) !important; border-color: var(--lab-line) !important; }
.pk-open span { flex: 1; text-align: left; }
.pk-open kbd, .pk kbd { font: inherit; font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--lab-line); color: var(--lab-dim); background: var(--lab-inner); }
.pk-back { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(6,5,4,.6); backdrop-filter: blur(2px); }
.pk { width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--lab-line); background: #141311; box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; color: var(--text); }
.pk-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--lab-row); color: var(--lab-dim); }
.pk-in input { flex: 1; border: 0; outline: none; background: none; color: var(--text); font: inherit; font-size: 16px; }
.pk-list { overflow-y: auto; padding: 6px; }
.pk-g { padding: 10px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lab-faint); }
body.lab .pk-r { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 1px; min-height: 0 !important; padding: 8px 10px !important; border: 0 !important; border-radius: 10px !important; background: none !important; color: var(--text) !important; text-align: left; cursor: pointer; }
body.lab .pk-r.on { background: rgba(255,216,77,.09) !important; }
.pk-r b { font-size: 14px; font-weight: 600; }
.pk-r small { color: var(--lab-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pk-none { padding: 24px; text-align: center; color: var(--lab-dim); font-size: 13.5px; }
.pk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--lab-row); color: var(--lab-faint); font-size: 12px; }
.pk-foot span { display: inline-flex; gap: 4px; align-items: center; }
@media (max-width: 700px) { body.lab .pk-open { min-width: 0; } .pk-open span, .pk-open kbd { display: none; } }
body.lab .pk-in input { border: 0 !important; background: none !important; padding: 0 !important; min-height: 0 !important; box-shadow: none !important; }


/* people on your account + account switcher (account.js) */
.acx { margin-left: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lab-sub); }
.acx.on { padding: 5px 6px 5px 12px; border-radius: 10px; background: rgba(255,216,77,.12); border: 1px solid rgba(255,216,77,.45); color: var(--text); }
body.lab .acx button { min-height: 26px !important; padding: 0 10px !important; font-size: 12px !important; border-radius: 7px !important; }
.acx select { min-height: 32px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--lab-sub); font: inherit; font-size: 13px; }
.acx-card { margin-top: 16px; padding: 20px 22px !important; }
.acx-card h2 { margin: 4px 0 6px; font-size: 18px; }
.acx-card h3 { margin: 18px 0 8px; font-size: 13px; color: var(--lab-dim); text-transform: uppercase; letter-spacing: .06em; }
.acx-card p { margin: 0 0 12px; font-size: 13.5px; max-width: 760px; }
.acx-add { display: flex; gap: 8px; margin-bottom: 12px; }
.acx-add input { flex: 1; max-width: 360px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--lab-inner); color: var(--text); font: inherit; }
.acx-list > div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--lab-row); }
.acx-list .co-av { width: 34px; height: 34px; overflow: hidden; font-size: 13px; }
.acx-list .co-av img { width: 100%; height: 100%; object-fit: cover; }
.acx-list > div > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acx-list small { color: var(--lab-dim); font-size: 12px; }

/* ---------- dashboard home base + "+ Create" (home.js) ---------- */
.hm-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin: 0 0 16px; }
.hm-row:empty { display: none; }
.hm-start, .hm-needs { padding: 18px 20px !important; }
.hm-hd { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.hm-hd > span:first-child { flex: 1; }
.hm-hd h2 { margin: 4px 0 0; font-size: 17px; font-weight: 800; }
.hm-hd h2 small { font-size: 13px; color: var(--accent); margin-left: 4px; }
.hm-bar { width: 120px; height: 6px; border-radius: 999px; background: #23201C; overflow: hidden; }
.hm-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
body.lab .hm-x { width: 28px; height: 28px; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--lab-faint) !important; font-size: 17px; }
/* Home follows one linked video and presents one next setup action. */
.hm-context { margin: 0 0 12px; color: var(--lab-sub); font-size: 12.5px; overflow-wrap: anywhere; }
.hm-continue { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.hm-continue > span { flex: 1; min-width: 0; display: grid; gap: 4px; }
.hm-continue small { color: var(--lab-dim); line-height: 1.45; }
.hm-continue button { flex: none; }
.hm-progress { margin-top: 8px; border-top: 1px solid var(--lab-row); padding-top: 12px; }
.hm-progress > summary { color: var(--lab-dim); font-size: 12px; cursor: pointer; }
@media (max-width: 420px) { .hm-continue { align-items: stretch; flex-direction: column; } }
.hm-steps, .hm-list { display: flex; flex-direction: column; }
.hm-step, .hm-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--lab-row); }
.hm-step:first-child, .hm-item:first-child { border-top: 0; }
.hm-n, .hm-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lab-inner); border: 1px solid var(--lab-line); font-size: 12.5px; font-weight: 800; color: var(--lab-sub); }
.hm-ic { border-radius: 9px; font-size: 14px; }
.hm-step.done .hm-n { background: rgba(123,216,159,.14); border-color: transparent; color: var(--green); }
.hm-step.done .hm-t b { color: var(--lab-dim); text-decoration: line-through; text-decoration-color: rgba(140,133,122,.5); }
.hm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hm-t b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-t small { color: var(--lab-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.lab .hm-go { min-height: 30px !important; padding: 0 12px !important; font-size: 12.5px !important; flex: none; }
.hm-clear { display: flex; flex-direction: column; gap: 3px; padding: 14px 0 6px; }
.hm-clear small { color: var(--lab-dim); font-size: 12.5px; }
.hm-create { position: relative; margin-left: auto; }
body.lab .hm-cbtn { min-height: 34px !important; padding: 0 14px !important; font-size: 13px !important; border-radius: 10px !important; }
.hm-menu { position: absolute; right: 0; top: 42px; z-index: 70; width: 290px; padding: 6px; border-radius: 14px; border: 1px solid var(--lab-line); background: #171513; box-shadow: 0 20px 50px rgba(0,0,0,.55); display: flex; flex-direction: column; }
.hm-menu[hidden] { display: none; }
body.lab .hm-menu button { display: flex; align-items: center; gap: 10px; min-height: 0 !important; padding: 8px 10px !important; border: 0 !important; border-radius: 10px !important; background: none !important; color: var(--text) !important; text-align: left; }
body.lab .hm-menu button:hover { background: var(--lab-hover) !important; }
.hm-menu button > span:first-child { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--lab-inner); flex: none; }
.hm-menu button > span:last-child { display: flex; flex-direction: column; }
.hm-menu b { font-size: 13.5px; } .hm-menu small { color: var(--lab-dim); font-size: 11.5px; }
body.lab #topbar { display: flex; align-items: center; }
@media (max-width: 760px) { .hm-row { grid-template-columns: 1fr; } .hm-menu { right: -8px; width: 260px; } }
body.lab .hm-menu button { justify-content: flex-start !important; width: 100%; }
body.lab #topbar #saveStatus { margin-left: 12px; white-space: nowrap; }

/* The drag target stays visible without changing a confirmed posting time early. */
.sc-card[draggable=true],.sc-chip[draggable=true],.sc-lrow[draggable=true]{cursor:grab}.sc-moving{opacity:.45}.sc-drop-target{outline:2px solid var(--accent,#FFD84D);outline-offset:-3px;background:rgba(255,216,77,.08)!important}.sc-head p{font-size:13px;color:var(--muted,#aaa);margin:8px 0 0;max-width:560px}

/* Compact variation clip controls keep playback outside the cropped preview. */
.vx-frame { --vx-zoom:1; --vx-filter:none; }
.vx-frame video { transform:scale(var(--vx-zoom)); filter:var(--vx-filter); }
.vx-playback { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:12px; }
.vx-playback output { margin-left:auto; color:var(--lab-sub); font-size:12px; font-variant-numeric:tabular-nums; }
.vx-playback input { width:100%; accent-color:var(--accent); }
.vx-clip-panel { display:flex; flex-direction:column; gap:16px; }
.vx-clip-panel[hidden] { display:none; }
.vx-clip-panel select { min-height:40px; border:1px solid var(--border); border-radius:10px; background:var(--lab-inner); color:var(--text); padding:8px 12px; font:inherit; }
.vx-clip-panel input[type=range] { width:100%; accent-color:var(--accent); }
.vx-quick { display:flex; gap:6px; flex-wrap:wrap; }
.vx-save-error { min-height:1.2em; margin:0; font-size:13px; color:var(--lab-sub); }
.vx-tabs button[aria-selected=true] { color:var(--text); }
.vx-form footer { flex-wrap:wrap; }
@media(max-width:520px) { .vx-back { padding:10px; } .vx-ed { max-height:calc(100dvh - 20px); padding:16px; gap:18px; } .vx-form footer .grow { display:none; } .vx-prev { width:min(240px,100%); } }
/* Search: briefly highlight the Settings section a result opened */
.pk-flash { outline: 2px solid var(--accent) !important; outline-offset: 3px; transition: outline-color .6s; }
