/* The Riot Studio – styles. Cockpit look: dark panels with screws, LEDs, rocker switches, digit displays. */
@font-face { font-family: "Outfit"; src: url("../fonty/Outfit.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Mr Dafoe"; src: url("../fonty/MrDafoe-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "VT323"; src: url("../fonty/VT323-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #0d0b1a; --panel: #17142b; --panel2: #1f1b3a; --line: rgba(255,255,255,.1);
  --text: #f3f0ff; --muted: #a49cc4; --accent: #ff2e88; --accent2: #b44dff; --danger: #ff4d6d;
  --font: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
  --glow: 0 0 4px rgba(255,255,255,.35), 0 0 10px rgba(255,46,136,.9), 0 0 24px rgba(255,46,136,.6), 0 0 46px rgba(255,46,136,.3);
  --glow-text: 0 0 4px #fff, 0 0 12px var(--accent), 0 0 26px rgba(255,46,136,.7);
  --green: #3dff8a; --amber: #ffc43d;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; color: var(--text); font-family: var(--font); background: var(--bg);
       /* the same neon light as the top of theriotreel.com (side glow violet instead of blue) */
       background-image: radial-gradient(120% 60% at 50% 0%, rgba(255,46,136,.35), transparent 60%),
                         radial-gradient(80% 50% at 100% 30%, rgba(180,77,255,.12), transparent 60%),
                         linear-gradient(180deg, #1a0b3a 0%, var(--bg) 55%);
       background-attachment: fixed; }
button, input, textarea, select { font: inherit; color: inherit; }
.hidden { display: none !important; }
a { color: var(--accent); }
.neon { font-family: "Mr Dafoe", cursive; font-weight: 400; color: #fff5fb; display: inline-block;
        text-shadow: 0 0 4px #fff, 0 0 12px var(--accent), 0 0 28px var(--accent), 0 0 52px rgba(255,46,136,.55); transform: rotate(-4deg); }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: var(--bg); position: sticky; top: 0; z-index: 30; }
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #ffd6ea 12%, #fff5fb 50%, #ffd6ea 88%, transparent);
  box-shadow: 0 0 6px var(--accent), 0 0 14px var(--accent), 0 0 30px rgba(255,46,136,.7), 0 0 60px rgba(255,46,136,.4); }
.brand { font-size: 32px; line-height: 1; text-decoration: none; padding: 2px 6px; }
.crumb { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crumb b { color: var(--text); cursor: pointer; } .crumb b:hover { text-decoration: underline dotted; }
.steps { margin-left: auto; display: flex; gap: 4px; background: var(--panel); border-radius: 99px; padding: 4px; }
.steps button { border: 0; background: transparent; padding: 6px 14px; border-radius: 99px; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.steps button.on { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin-left: auto; }
.steps:not(.hidden) ~ .who { margin-left: 0; }

/* ---------- buttons ---------- */
.btn { border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; cursor: pointer; background: var(--accent); color: #fff;
       transition: filter .15s, transform .15s; box-shadow: var(--glow); text-shadow: 0 0 6px rgba(255,255,255,.6); }
.btn:hover { filter: brightness(1.1); } .btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; text-shadow: none; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid rgba(255,77,109,.4); box-shadow: none; text-shadow: none; }
.btn:disabled { opacity: .5; cursor: default; }
.linkbtn { background: none; border: 0; color: #fff5fb; text-shadow: var(--glow-text); cursor: pointer; padding: 0; font-size: 13px; }

main.page { max-width: 1100px; margin: 0 auto; padding: 28px 16px 60px; }

/* ---------- auth ---------- */
.auth { max-width: 380px; margin: 8vh auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; text-align: center; }
.auth label, .auth input { text-align: left; }
.auth h1 { margin: 6px 0 18px; font-size: clamp(42px, 13vw, 54px); line-height: 1.1; white-space: nowrap; }
.auth p { margin: 0 0 20px; color: var(--muted); }
/* Continue with Google / Facebook */
.sso { display: grid; gap: 10px; margin-bottom: 16px; }
.ssobtn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 10px; font-weight: 700;
  font-size: 15px; text-decoration: none; transition: filter .15s, box-shadow .15s; }
.ssobtn svg { width: 20px; height: 20px; flex: none; }
.ssobtn.google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.ssobtn.facebook { background: #1877F2; color: #fff; border: 1px solid #1877F2; }
.ssobtn:hover { filter: brightness(1.05); box-shadow: 0 0 0 3px rgba(255,46,136,.35); }
.ssobtn.off { opacity: .5; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin: 4px 0 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 9px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.tabs button.on { background: var(--panel2); color: var(--text); }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
input[type=email], input[type=password], input[type=text], input[type=search], input[type=datetime-local], textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); outline: none; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--glow); }

/* ---------- Riot look for the browser's own bits (same on Windows, Mac, Android, iPhone) ---------- */
* { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(255,46,136,.45); color: #fff; }
input, textarea { caret-color: var(--accent); }
::placeholder { color: #6f6890; opacity: 1; }
textarea { resize: none; }
input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* the browser's saved-password fill (yellow / light blue) */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); caret-color: var(--accent); transition: background-color 9999s ease 0s;
  box-shadow: 0 0 0 40px var(--bg) inset; }
input:-webkit-autofill:focus { box-shadow: 0 0 0 40px var(--bg) inset, var(--glow); }
/* keyboard focus: a pink ring instead of the system blue one (mouse clicks show none) */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 12px rgba(255,46,136,.55); }
input:focus-visible, textarea:focus-visible { outline: none; }

/* tooltips (js/riotui.js turns every title="…" into this) */
.rtip { position: fixed; z-index: 200; max-width: 280px; padding: 6px 10px; border-radius: 8px; pointer-events: none;
  background: #0d0b1a; color: #fff5fb; font-size: 12.5px; line-height: 1.35; border: 1px solid rgba(255,46,136,.6);
  box-shadow: 0 8px 24px rgba(0,0,0,.55), 0 0 12px rgba(255,46,136,.3); opacity: 0; transform: translateY(3px);
  transition: opacity .12s, transform .12s; }
.rtip.on { opacity: 1; transform: none; }

/* sliders: our track and knob; the pink part follows the value (--p, set by riotui.js) */
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 22px; margin: 0; cursor: pointer;
  accent-color: auto; filter: none; touch-action: none; --p: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; border: 1px solid #3a3456;
  background: linear-gradient(90deg, var(--accent) 0 var(--p), #0b0918 var(--p) 100%); box-shadow: 0 0 8px rgba(255,46,136,.35); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%;
  background: #fff5fb; border: 2px solid var(--accent); box-shadow: 0 0 6px var(--accent), 0 0 14px rgba(255,46,136,.6); transition: transform .1s; }
input[type=range]:active::-webkit-slider-thumb, input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.15); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; border: 1px solid #3a3456; background: #0b0918; }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 8px rgba(255,46,136,.5); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff5fb; border: 2px solid var(--accent);
  box-shadow: 0 0 6px var(--accent), 0 0 14px rgba(255,46,136,.6); }

/* date & time picker (js/riotui.js) */
.rpick { position: fixed; z-index: 150; width: 300px; padding: 14px; border-radius: 16px; background: var(--panel2, #17142b);
  border: 1px solid rgba(255,46,136,.55); box-shadow: 0 20px 60px rgba(0,0,0,.65), 0 0 26px rgba(255,46,136,.25); user-select: none;
  animation: rpIn .14s ease-out; }
@keyframes rpIn { from { opacity: 0; transform: translateY(6px); } }
.rpick.sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; border-radius: 18px 18px 0 0; padding-bottom: 22px; }
.rp-title { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rp-month { font: 22px/1 VT323, monospace; color: var(--amber); text-shadow: 0 0 6px rgba(255,196,61,.6); letter-spacing: .04em; }
.rp-nav { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #0b0918; color: #fff; font-size: 18px; cursor: pointer; }
.rp-nav:hover:not(:disabled) { border-color: var(--accent); box-shadow: var(--glow); } .rp-nav:disabled { opacity: .3; cursor: default; }
.rp-dow, .rp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.rp-dow span { font-size: 10.5px; font-weight: 700; color: var(--muted); padding: 2px 0 4px; }
.rp-days button { height: 34px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font-size: 13px; cursor: pointer; }
.rp-days button:hover:not(:disabled) { background: rgba(255,46,136,.16); border-color: rgba(255,46,136,.5); }
.rp-days button:disabled { color: #4a4566; cursor: default; }
.rp-days button.today { border-color: rgba(255,196,61,.6); color: var(--amber); }
.rp-days button.on { background: var(--accent); color: #fff; border-color: #ffd0e5; box-shadow: var(--glow); font-weight: 700; }
.rp-time { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 8px; padding: 8px; border-radius: 10px;
  background: #050409; border: 1px solid #2a2540; }
.rp-unit { display: grid; justify-items: center; gap: 2px; }
.rp-unit button { width: 44px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; touch-action: none; }
.rp-unit button:hover { color: #fff; background: rgba(255,46,136,.2); }
.rp-dig, .rp-colon { font: 44px/1 VT323, monospace; color: var(--amber); text-shadow: 0 0 8px rgba(255,196,61,.7); }
.rp-quick { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.rp-quick button { padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line); background: #0b0918; color: var(--muted); font-size: 12px; cursor: pointer; }
.rp-quick button:hover { color: #fff; border-color: var(--accent); }
.rp-quick button.on { background: rgba(255,46,136,.22); border-color: var(--accent); color: #fff; }
.rp-sum { text-align: center; font-size: 12.5px; color: #7dffb0; margin: 10px 0 2px; min-height: 17px; }
.rp-sum.bad { color: var(--danger); }
.rp-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.rp-foot .btn:disabled { opacity: .4; }
.clockdisp.pick { cursor: pointer; } .clockdisp.pick:hover { border-color: rgba(255,196,61,.6); box-shadow: 0 0 10px rgba(255,196,61,.25); }
.whenpick { margin-top: 6px; width: 100%; justify-content: center; }
.auth .btn { width: 100%; margin-top: 20px; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; margin-top: 12px; }

/* ---------- clip list ---------- */
.head h1 { margin: 0 0 20px; font-size: 28px; }
.drop { border: 2px dashed rgba(255,46,136,.35); border-radius: 18px; padding: 34px 16px; text-align: center; background: rgba(255,46,136,.04);
        cursor: pointer; margin-bottom: 26px; box-shadow: 0 0 22px rgba(255,46,136,.15), inset 0 0 22px rgba(255,46,136,.08); }
.drop.over { background: rgba(255,46,136,.1); border-color: var(--accent); box-shadow: var(--glow); }
.drop b { font-size: 18px; } .drop p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.progress { height: 8px; background: var(--panel2); border-radius: 99px; overflow: hidden; margin: 16px auto 0; max-width: 420px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .2s; box-shadow: var(--glow); }
.progress.busy i { width: 100% !important; animation: upbusy 1s ease-in-out infinite alternate; }   /* sent – the Studio checks it */
@keyframes upbusy { from { opacity: .35; } to { opacity: 1; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: rgba(255,46,136,.5); box-shadow: var(--glow); }
.card .th { aspect-ratio: 16/9; background: #000 center/cover no-repeat; position: relative; }
.card .th span { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.75); padding: 2px 7px; border-radius: 6px; font-size: 12px; }
/* 🗑 on each clip card (top right; shows on hover, always on touch screens) */
.card .th .cdel { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(13,11,26,.85); border: 1px solid var(--line); font-size: 14px; cursor: pointer; opacity: 0; transition: opacity .12s, border-color .12s; padding: 0; }
.card:hover .th .cdel, .card .th .cdel:focus-visible { opacity: 1; }
.card .th .cdel:hover { border-color: var(--danger); background: rgba(255,77,109,.3); }
@media (hover: none) { .card .th .cdel { opacity: 1; } }
/* clip status on the thumbnail */
.card .th .cstat { position: absolute; left: 8px; top: 8px; right: auto; bottom: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 6px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: rgba(13,11,26,.85); border: 1px solid var(--line); }
.card .th .cstat i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.card .th .cstat span { position: static; background: none; padding: 0; font-size: inherit; }
.cstat.ok { border-color: rgba(125,255,176,.55); color: #7dffb0; } .cstat.ok i { background: rgba(61,255,138,.2); }
.cstat.wait { border-color: rgba(255,196,61,.6); color: var(--amber); } .cstat.wait i { background: rgba(255,196,61,.2); }
.cstat.saved { border-color: rgba(180,77,255,.6); color: #d6a8ff; } .cstat.saved i { background: rgba(180,77,255,.2); }
.cstat.exp { color: var(--muted); } .cstat.exp i { background: rgba(255,255,255,.08); }
.cstat.bad { border-color: rgba(255,77,109,.6); color: var(--danger); } .cstat.bad i { background: rgba(255,77,109,.2); }
/* 📦 archived clip: only the edit is kept – faded thumbnail; the archive button sits left of 🗑 */
.cstat.arch { border-color: rgba(120,200,255,.55); color: #9fd8ff; } .cstat.arch i { background: rgba(120,200,255,.18); }
.card.arch .th { box-shadow: inset 0 0 0 999px rgba(8,8,18,.6); } .card.arch:hover .th { box-shadow: inset 0 0 0 999px rgba(8,8,18,.35); }
.card .th .carch { right: 46px; } .card .th .ccopy { right: 84px; font-size: 16px; }
.card .th .ccopy:hover { border-color: var(--accent); background: rgba(255,46,136,.25); } .card .th .carch:hover { border-color: #9fd8ff; background: rgba(120,200,255,.25); }
.drop .clipcount { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.drop .clipcount.full { color: var(--amber); }
.card .archsoon { color: var(--amber); }
.card .meta { padding: 12px 14px; } .card .meta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta small { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 30px 0; grid-column: 1 / -1; }

/* ---------- cockpit building blocks ---------- */
.mod { position: relative; background: linear-gradient(180deg, #1c1834, #141127); border: 1px solid rgba(255,255,255,.08);
       border-radius: 12px; padding: 12px 12px 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -8px 18px rgba(0,0,0,.25); min-width: 0; }
.mod::before, .mod::after { content: ""; position: absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%;
                            background: #3a3456; box-shadow: inset 0 1px 1px rgba(0,0,0,.6); }   /* panel screws */
.mod::before { left: 6px; } .mod::after { right: 6px; }
.lbl { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #8d84b5; margin: 0 0 8px 8px; font-weight: 700; }
.lbl em { font-style: normal; color: #fff5fb; text-shadow: 0 0 8px rgba(255,46,136,.8); letter-spacing: .1em; }
.led { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: #3a3456; }
.led.g { background: var(--green); box-shadow: 0 0 6px var(--green), 0 0 12px rgba(61,255,138,.6); }
.led.a { background: var(--amber); box-shadow: 0 0 6px var(--amber), 0 0 12px rgba(255,196,61,.6); }
.led.r { background: #ff3d6e; box-shadow: 0 0 6px #ff3d6e; }
/* rocker switch (a real checkbox underneath) */
.sw { appearance: none; -webkit-appearance: none; margin: 0; width: 34px; height: 18px; border-radius: 5px; background: #0b0918;
      border: 1px solid #3a3456; position: relative; flex: none; cursor: pointer; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 12px; border-radius: 3px; background: #5b5480; transition: left .12s; }
.sw:checked { border-color: var(--accent); box-shadow: 0 0 8px rgba(255,46,136,.6); }
.sw:checked::after { left: 16px; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.key { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: #0b0918;
       border: 1px solid rgba(255,255,255,.1); font-size: 12px; font-weight: 600; box-shadow: 0 2px 0 #05040b; cursor: pointer; color: var(--text); white-space: nowrap; }
.key:hover { border-color: rgba(255,46,136,.5); }
.key.on { border-color: var(--accent); color: #fff5fb; box-shadow: 0 0 8px rgba(255,46,136,.6), 0 2px 0 #05040b; }
.key.del { color: #ff6b88; border-color: rgba(255,77,109,.4); }
.key:disabled { opacity: .45; cursor: default; }
.seg { display: inline-flex; background: #0b0918; border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: 6px; font-size: 12px; color: var(--muted); font-weight: 600; cursor: pointer;
              display: inline-flex; gap: 6px; align-items: center; }
.seg button.on { background: var(--accent); color: #fff; box-shadow: 0 0 8px rgba(255,46,136,.6); }
.display { background: #050409; border: 1px solid #2a2540; border-radius: 8px; padding: 6px 10px; }
.digits { font: 26px/1 VT323, monospace; color: var(--green); text-shadow: 0 0 6px rgba(61,255,138,.7); letter-spacing: .04em; }
.digits.amber { color: var(--amber); text-shadow: 0 0 6px rgba(255,196,61,.7); }
.digits.pink { color: #ffd0e5; text-shadow: 0 0 6px rgba(255,46,136,.8); }
.next { border: 2px solid #ffd0e5; border-radius: 12px; padding: 11px 20px; font-weight: 900; letter-spacing: .1em; color: #fff; cursor: pointer;
        background: radial-gradient(circle at 50% 30%, #ff5ca5, var(--accent) 55%, #b80f5c); box-shadow: 0 4px 0 #6e0836, 0 0 22px rgba(255,46,136,.7); }
.next:active { transform: translateY(2px); box-shadow: 0 2px 0 #6e0836, 0 0 22px rgba(255,46,136,.7); }
.next small { display: block; font-size: 10px; letter-spacing: .14em; font-weight: 700; opacity: .9; margin-top: 2px; }
.next.armed { background: radial-gradient(circle at 50% 30%, #ffe08a, var(--amber) 55%, #b88300); border-color: #fff3c4; color: #2a1d00;
              box-shadow: 0 4px 0 #6b4c00, 0 0 26px rgba(255,196,61,.8); animation: pulse .8s infinite alternate; }
@keyframes pulse { to { filter: brightness(1.15); } }

/* ? help bubbles */
.q { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; margin-left: 4px; vertical-align: 1px;
     font: 700 10px/1 Outfit, sans-serif; font-style: normal; letter-spacing: 0; text-transform: none; color: #fff;
     background: #3a3456; cursor: help; position: relative; outline: none; flex: none; }
.q:hover, .q:focus { background: var(--accent); box-shadow: 0 0 8px rgba(255,46,136,.7); z-index: 40; }
.q::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
            width: 240px; padding: 10px 12px; border-radius: 10px; background: #fff; color: #1a1530; z-index: 40;
            font: 500 12.5px/1.4 Outfit, sans-serif; letter-spacing: 0; text-transform: none; text-align: left;
            box-shadow: 0 10px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .15s; }
.q::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); z-index: 41;
             border: 6px solid transparent; border-top-color: #fff; opacity: 0; transition: opacity .15s; }
.q:hover::after, .q:focus::after, .q:hover::before, .q:focus::before { opacity: 1; }
.mod > .lbl > .q { position: absolute; top: 9px; right: 10px; margin: 0; }   /* a block's ? sits in its top-right corner */
.mod:has(> .lbl > .q)::after { display: none; }
.mod > .lbl > .q::after { left: auto; right: -6px; transform: none; bottom: auto; top: calc(100% + 10px); }
.mod > .lbl > .q::before { left: auto; right: 2px; transform: none; bottom: auto; top: calc(100% + 4px); border-top-color: transparent; border-bottom-color: #fff; }
/* the bubbles are drawn by js/riotui.js (.qtip, always on top, never cut off) – the old CSS ones are off */
.q::after, .q::before { display: none !important; }
.qtip { position: fixed; z-index: 210; width: max-content; max-width: min(260px, calc(100vw - 12px)); padding: 10px 12px; border-radius: 10px;
  background: #fff; color: #1a1530; font: 500 12.5px/1.4 Outfit, sans-serif; text-align: left; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity .12s, transform .12s; }
.qtip.on { opacity: 1; transform: none; }
.qtip i { position: absolute; bottom: -6px; width: 0; height: 0; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.qtip.below i { bottom: auto; top: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: #fff; }

/* ---------- workspace: preview + cockpit ---------- */
.ws { display: grid; gap: 10px 16px; padding: 12px 20px 16px; height: calc(100vh - 62px); min-height: 640px;
      grid-template-columns: var(--pvw, 360px) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto;
      grid-template-areas: "act act" "pv tools" "pv tools" "pv tl"; }
.ws.pub { grid-template-areas: "act act" "pv pub" "pv pub" "pv pub"; }   /* the top row runs the full width, the same in both formats and steps */
/* 16:9 – a wide monitor; tools beside it, actions across the top and the timeline across the bottom */
.ws.wide { grid-template-columns: minmax(0, 1fr) clamp(560px, 38vw, 780px); grid-template-rows: auto auto minmax(0, 1fr) auto;
           grid-template-areas: "act act" "pv tools" "pv tools" "tl tl"; }
/* the same columns as Edit (monitor 3/7), so the monitor is exactly as big in both steps */
.ws.wide.pub { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr);
  grid-template-areas: "act act act" "pv pub pub" "pv pub pub" "pv pub pub"; }
.ws.pub .tools, .ws.pub .tlm { display: none; }
.ws.pub .actions .edit-only, .ws:not(.pub) .actions .pub-only { display: none; }
/* EXPORT sits where NEXT: PUBLISH is – same height, its second line just smaller */
.actions #goBtn { padding: 5px 18px 6px; line-height: 1.15; } .actions #goBtn small { font-size: 9px; margin-top: 1px; }
.actions .goq { flex: none; margin-left: -4px; }
/* split button: the action + ▾ to choose it */
.gosplit { display: flex; align-items: stretch; flex: none; }
.gosplit .gomenu { padding: 0 12px; letter-spacing: 0; display: grid; place-items: center; }
/* a big, clear chevron */
.gosplit .gomenu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.6)); transition: transform .15s; }
.gosplit .gomenu:hover svg { transform: translateY(2px); }
/* one colour per choice, the whole button (action + arrow) the same; armed = the same colour, pulsing */
.gosplit { --g1: #ff5ca5; --g2: var(--accent); --g3: #b80f5c; --gb: #ffd0e5; --gs: #6e0836; --gl: rgba(255,46,136,.7); --gt: #fff; }   /* Schedule */
.gosplit[data-mode="now"]    { --g1: #ffe08a; --g2: var(--amber); --g3: #b88300; --gb: #fff3c4; --gs: #6b4c00; --gl: rgba(255,196,61,.75); --gt: #2a1d00; }
.gosplit[data-mode="export"] { --g1: #d39bff; --g2: #b44dff; --g3: #6d1fb3; --gb: #ecd6ff; --gs: #3d0f66; --gl: rgba(180,77,255,.7); --gt: #fff; }   /* violet */
/* Save for later = the same pink as Schedule (the default colours above) */
/* one piece: the frame, colour and glow belong to the whole button – no line between the action and the arrow */
.gosplit { border: 2px solid var(--gb); border-radius: 12px; overflow: hidden; color: var(--gt);
  background: radial-gradient(120% 140% at 45% 30%, var(--g1), var(--g2) 55%, var(--g3));
  box-shadow: 0 4px 0 var(--gs), 0 0 22px var(--gl); transition: transform .1s; }
.gosplit:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--gs), 0 0 22px var(--gl); }
.gosplit .next, .gosplit .next.armed { background: transparent; border: 0; border-radius: 0; box-shadow: none; color: inherit; animation: none; }
.gosplit .next:active { transform: none; box-shadow: none; }
.gosplit .gomenu:hover { background: rgba(255,255,255,.12); }
.gosplit.armed .gomenu { display: none; }   /* the confirmation: just CLICK TO FIRE, no arrow */
/* CLICK TO FIRE is always gold, whatever the action */
.gosplit.armed { --g1: #ffe08a; --g2: var(--amber); --g3: #b88300; --gb: #fff3c4; --gs: #6b4c00; --gl: rgba(255,196,61,.75); --gt: #2a1d00; }
.gosplit.armed { border-color: #fff; animation: firePulse .75s ease-in-out infinite alternate; }
/* CLICK TO FIRE: a clearly visible pulse – the glow grows and fades, the button brightens a little */
@keyframes firePulse {
  from { box-shadow: 0 4px 0 var(--gs), 0 0 10px var(--gl), 0 0 0 1px var(--gb); filter: brightness(1); }
  to   { box-shadow: 0 4px 0 var(--gs), 0 0 38px 6px var(--gl), 0 0 0 4px rgba(255,236,170,.55); filter: brightness(1.18); }
}
.gosplit[data-mode="now"] .gomenu svg, .gosplit[data-mode="export"] .gomenu svg { filter: none; }
.gomenu2 .titem em { font-size: 15px; }
.actions #back, .actions #pBack { min-width: 112px; justify-content: center; }
.ws:not(.pub) .pubdeck { display: none; }

.actions { grid-area: act; display: flex; align-items: center; gap: 10px; min-width: 0; }
.actions .stat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actions .sp { flex: 1; }

/* preview column */
.pvcol { grid-area: pv; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 0; min-width: 0; }
.nets { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nets button { min-width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; padding: 0 12px; background: var(--panel2);
               border: 1px solid var(--line); font-size: 12px; font-weight: 800; color: var(--muted); cursor: pointer; }
.nets button.on { background: #fff; color: #111; box-shadow: var(--glow); }
.device { position: relative; background: #000; }
.ws:not(.wide) .device { height: var(--pvh, min(calc(100vh - 210px), 760px)); aspect-ratio: 9 / 16; padding: 9px; border-radius: 36px;
                         box-shadow: 0 0 0 2px #2c2840, 0 30px 60px rgba(0,0,0,.6), 0 0 40px rgba(255,46,136,.18); }
/* 16:9: the monitor's size is set by fitDevice() in studio.js – as big as the free space allows */
.ws.wide .device { padding: 8px; border-radius: 14px; flex: none;
                   box-shadow: 0 0 0 2px #2c2840, 0 20px 50px rgba(0,0,0,.6), 0 0 40px rgba(255,46,136,.18); }
.ws.wide .pvcol { justify-content: flex-start; align-items: center; align-self: stretch; overflow: hidden; }
.ws.wide .pvcol .nets { align-self: stretch; }
.ws.wide .nets { justify-content: flex-start; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; display: grid; place-items: center; }
.ws:not(.wide) .screen { border-radius: 28px; } .ws.wide .screen { border-radius: 8px; }
.screen:fullscreen { border-radius: 0; }
.frame { position: relative; overflow: hidden; background: #000; cursor: grab; touch-action: none; }
.frame.drag { cursor: grabbing; }
.frame video { position: absolute; max-width: none; pointer-events: none; }
.pvcap { color: var(--muted); font-size: 12px; text-align: center; }
.fsbtn { position: absolute; right: -14px; top: -14px; z-index: 6; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
         background: #1c1834; border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 17px; cursor: pointer; box-shadow: 0 0 10px rgba(255,46,136,.5); }
.ws.wide .fsbtn { right: 14px; top: 14px; width: auto; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 700; gap: 6px; display: flex; }
.exitfs { display: none; position: absolute; right: 18px; top: 16px; z-index: 8; padding: 8px 14px; border-radius: 99px; background: rgba(13,11,26,.85);
          border: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.screen:fullscreen .exitfs { display: block; }
.prep { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7,6,15,.9); color: var(--muted); text-align: center; padding: 20px; z-index: 5; }

/* network chrome over the preview (pointer-events: none so editing still works through it) */
.chrome { position: absolute; inset: 0; pointer-events: none; z-index: 3; color: #fff; font-size: 12px; text-shadow: 0 1px 2px #000; }
.chrome .top { position: absolute; top: 3%; left: 0; right: 0; text-align: center; font-weight: 600; opacity: .9; }
.chrome .right { position: absolute; right: 2.5%; bottom: 17%; display: grid; gap: 10px; justify-items: center; font-size: 10px; }
.chrome .right i { width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.4); display: grid; place-items: center; font-style: normal; font-size: 15px; }
.chrome .bottom { position: absolute; left: 4%; right: 18%; bottom: 3.5%; }
.chrome .bottom b { display: block; font-size: 13px; }
.chrome .bottom span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chrome .player { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.chrome .player .prog { height: 3px; background: rgba(255,255,255,.35); border-radius: 2px; margin-bottom: 7px; overflow: hidden; }
.chrome .player .prog b { display: block; height: 100%; background: #ff2e55; }
.chrome .player .ctl { display: flex; gap: 14px; align-items: center; } .chrome .player .ctl .sp { flex: 1; }
.safe { position: absolute; border: 1.5px dashed rgba(255,255,255,.45); border-radius: 8px; pointer-events: none; z-index: 2; }
.safe::after { content: "safe zone"; position: absolute; right: 6px; top: 4px; font-size: 10px; color: rgba(255,255,255,.7); }
.screen:fullscreen .safe { display: none; }

/* text overlay in the preview (kit layer scaled to the frame) */
.ov { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.ov .rk-layer { transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.ov .rk:not(.rk-wm) { pointer-events: auto; cursor: move; touch-action: none; user-select: none; }
body.dragging, body.dragging * { cursor: grabbing !important; user-select: none !important; }
.ov .rk .moveh { display: none; position: absolute; pointer-events: auto; z-index: 3; touch-action: none; cursor: move;
  left: calc(-20px * var(--inv)); top: calc(-20px * var(--inv)); width: calc(24px * var(--inv)); height: calc(24px * var(--inv));
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 calc(6px * var(--inv)) var(--accent), 0 0 calc(14px * var(--inv)) var(--accent); }
.ov .rk .moveh::after { content: "✥"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 700 calc(16px * var(--inv))/1 system-ui, sans-serif; }
.ov .rk.sel .moveh { display: block; }
.ov .rk.sel { outline: calc(2px * var(--inv)) dashed #fff; outline-offset: calc(8px * var(--inv)); }
.ov .rk.empty { opacity: .45 !important; }
.ov .rk .roth, .ov .rk .sizeh { display: none; position: absolute; pointer-events: auto; z-index: 3;
  width: calc(22px * var(--inv)); height: calc(22px * var(--inv)); background: #fff; touch-action: none;
  box-shadow: 0 0 calc(6px * var(--inv)) var(--accent), 0 0 calc(14px * var(--inv)) var(--accent); }
.ov .rk.sel .roth, .ov .rk.sel .sizeh { display: block; }
.ov .rk .roth { left: calc(-20px * var(--inv)); bottom: calc(-20px * var(--inv)); border-radius: 50%; cursor: grab; }
.ov .rk .roth::after { content: "⟲"; position: absolute; inset: 0; display: grid; place-items: center; color: #1a0010; font: 700 calc(15px * var(--inv))/1 system-ui, sans-serif; }
.ov .rk .sizeh { right: calc(-20px * var(--inv)); bottom: calc(-20px * var(--inv)); border-radius: calc(5px * var(--inv)); cursor: nwse-resize; }
/* ✎ edit = opens the Selected popup; top-right corner (✥ top-left, ⟲ bottom-left, ■ bottom-right) */
.ov .rk .penh { display: none; position: absolute; pointer-events: auto; z-index: 4; cursor: pointer; padding: 0; border: 0;
  right: calc(-20px * var(--inv)); top: calc(-20px * var(--inv)); width: calc(26px * var(--inv)); height: calc(26px * var(--inv));
  border-radius: 50%; background: #fff; box-shadow: 0 0 calc(6px * var(--inv)) var(--accent), 0 0 calc(14px * var(--inv)) var(--accent); }
/* the pen is drawn with a mask (the ✎ character is missing in many fonts) */
.ov .rk .penh::after { content: ""; position: absolute; inset: 22%; background: #c4005c;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zm17.71-10.21a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zm17.71-10.21a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ov .rk.sel .penh, .ov .rk:hover .penh { display: block; }
.ov .rk .penh:hover { background: var(--accent); } .ov .rk .penh:hover::after { background: #fff; }
.screen:fullscreen .ov .rk.sel { outline: none; }
.screen:fullscreen .ov .rk .moveh, .screen:fullscreen .ov .rk .roth, .screen:fullscreen .ov .rk .sizeh { display: none; }

/* ---------- edit tools ---------- */
.tools { grid-area: tools; display: grid; gap: 10px; min-height: 0; grid-template-rows: auto auto; align-content: start;
         grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas:
           "fmt fmt fmt fmt add add add add mus mus mus mus" "sel sel sel sel sel sel sel sel mix mix mix mix"; }
.ws.wide .tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "fmt add" "sel sel" "mus mix";
                 overflow: hidden; align-content: start; gap: 8px; }
.tools .mod, .zoomrow { min-width: 0; } .zoomrow input { min-width: 0; }
.ws.wide .addkeys .key { padding: 6px 4px; } .ws.wide .addkeys .key b { font-size: 15px; }
.ws.wide .kits4 button { height: 30px; } .ws.wide .ifield textarea { height: 34px; min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
.ws.wide .instr { margin-top: 6px; } .ws.wide .gauge .digits { font-size: 17px; } .ws.wide .gauge .t { display: inline; margin-right: 6px; }
.ws.wide .gauge { display: flex; align-items: center; justify-content: center; gap: 4px; }
.ws.wide .radio { padding: 4px 10px; } .ws.wide .radio .digits { font-size: 17px; } .ws.wide .mkeys { margin-top: 6px; }
.ws.wide .selhint { padding: 4px 8px 6px; }
.ws.wide .lbl { margin-bottom: 6px; }
.ws.wide .tools .mod { padding-top: 10px; padding-bottom: 8px; }
.ws.wide .recent { display: none; }
.ws.wide .m-sel .rowk { margin-top: 6px; } .ws.wide .instr .gauge { padding: 4px 6px; }
.ws.wide .zoomrow { margin-top: 6px; } .ws.wide .fmt2 .key { padding: 6px 4px; }
.ws.wide .ch { gap: 2px; }
.m-fmt { grid-area: fmt; } .m-add { grid-area: add; } .m-mus { grid-area: mus; } .m-sel { grid-area: sel; } .m-mix { grid-area: mix; }
.fmt2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fmt2 .key { flex-direction: column; gap: 4px; padding: 8px 4px; } .fmt2 .key i { border: 2px solid currentColor; border-radius: 3px; display: block; }
.fmt2 .key small { font-size: 10px; color: var(--muted); font-weight: 500; }
.zoomrow { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .1em; }
.zoomrow input { flex: 1; } .zoomrow .digits { font-size: 20px; min-width: 52px; text-align: right; }
.addkeys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.addkeys .key { flex-direction: column; gap: 2px; padding: 9px 4px; font-size: 13px; } .addkeys .key b { font-size: 18px; line-height: 1; }
.recent { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 11px; color: var(--muted); min-height: 30px; flex-wrap: wrap; }
.recent button { width: 30px; height: 30px; border-radius: 8px; background: #0b0918; display: grid; place-items: center; font-size: 17px;
                 border: 1px solid rgba(255,255,255,.08); cursor: pointer; padding: 2px; }
.recent button img { width: 100%; height: 100%; object-fit: contain; }
.recent button:hover { border-color: var(--accent); }
.radio .digits { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.radio small { font: 14px/1.1 VT323, monospace; color: #a08a4a; display: block; }
.mkeys { display: flex; gap: 6px; margin-top: 8px; } .mkeys .key { flex: 1; }
.mpanel { position: fixed; z-index: 35; max-height: calc(100vh - 140px); overflow-y: auto; background: var(--panel2); border: 1px solid rgba(255,46,136,.5);
          border-radius: 12px; padding: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.55); }
.mnote { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.mlist { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; } .mlist:empty { display: none; }
.mrow { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px 6px 6px; border-radius: 10px;
        background: var(--bg); border: 1px solid transparent; cursor: pointer; }
.mrow:hover { border-color: rgba(255,46,136,.35); } .mrow.on { border-color: var(--accent); box-shadow: var(--glow); }
.mrow .pv { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--panel); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 13px; }
.mrow .pv.playing { background: var(--accent); }
.mrow b { display: block; font-size: 14px; } .mrow small { color: var(--muted); font-size: 12px; }
.mrow .use { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mrow.on .use { color: #fff5fb; text-shadow: var(--glow-text); }
.genres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.genres button { border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: 6px 11px; cursor: pointer; font-size: 13px; }
.genres button.on { border-color: var(--accent); color: #fff5fb; box-shadow: var(--glow); }
.genbtn { width: 100%; margin-bottom: 10px; }

/* selected-item inspector */
.m-sel { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 8px 14px; align-content: start; }
.m-sel > .lbl { grid-column: 1 / -1; margin-bottom: 0; }
.ws.wide .m-sel { grid-template-columns: minmax(0, 1fr); }
.selhint { grid-column: 1 / -1; color: var(--muted); font-size: 13px; padding: 10px 8px 14px; }
.ifield { position: relative; }
.ifield textarea { min-height: 40px; height: 40px; resize: vertical; padding: 9px 44px 9px 11px; font-size: 14px; }
.ifield .embtn { position: absolute; right: 6px; top: 5px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--panel2); font-size: 17px; cursor: pointer; }
.ifield .plbl { font-size: 11px; color: var(--muted); margin: 0 0 4px; display: block; }
.emgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 4px; }
.emgrid button { height: 34px; border: 0; border-radius: 8px; background: var(--bg); font-size: 20px; cursor: pointer; }
.emgrid button:hover { background: rgba(255,46,136,.25); }
#iEmoji { margin-top: 6px; max-height: 120px; overflow-y: auto; }
.kits4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.kits4 button { position: relative; height: 40px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); background: #2a2f38 center/cover; cursor: pointer; overflow: hidden; padding: 0; }
.kits4 button::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.kits4 button .rk { pointer-events: none; max-width: 96%; }
.kits4 button small { position: absolute; left: 4px; bottom: 2px; font-size: 9px; font-weight: 700; color: #fff; text-transform: uppercase;
                      background: rgba(0,0,0,.55); padding: 0 4px; border-radius: 3px; z-index: 1; }
.kits4 button.on { border-color: var(--accent); box-shadow: 0 0 8px rgba(255,46,136,.7); }
.rowk { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.rowk .t { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #8d84b5; font-weight: 700; margin-right: 2px; min-width: 52px; }
.instr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.ws.wide .instr { grid-template-columns: repeat(3, 1fr); }
.gauge { background: #0b0918; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 8px 6px; text-align: center; cursor: pointer; }
.gauge:hover { border-color: rgba(255,46,136,.5); }
.gauge .t { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #8d84b5; font-weight: 700; }
.gauge .digits { font-size: 21px; display: block; }
.dial { width: 46px; height: 46px; margin: 4px auto 2px; border-radius: 50%; border: 2px solid #3a3456; position: relative; background: radial-gradient(circle, #1c1834 55%, #0b0918 56%); }
.dial i { position: absolute; left: 50%; top: 5px; width: 3px; height: 17px; margin-left: -1.5px; background: var(--accent); border-radius: 2px;
          transform-origin: 50% 17px; box-shadow: 0 0 6px var(--accent); }
.vbar { height: 46px; width: 14px; margin: 4px auto 2px; border-radius: 4px; background: #050409; border: 1px solid #3a3456; position: relative; overflow: hidden; }
.vbar b { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, var(--accent), #ffd0e5); }
.gauge.xy { grid-column: 1 / -1; display: flex; justify-content: space-around; align-items: center; cursor: default; }
.ws.wide .gauge.xy { grid-column: auto; }
.gauge.xy .digits { display: inline; font-size: 20px; }
.ws.wide .dial, .ws.wide .vbar { display: none; }

/* mixer */
.m-mix { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; align-content: start; }
.m-mix > .lbl { grid-column: 1 / -1; }
.ch { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
.ch input[type=range] { writing-mode: vertical-lr; direction: rtl; width: 30px; height: 120px; margin: 0; }
.ch .digits { font-size: 20px; }
.ch.off { opacity: .4; }
.mixrow { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.mixrow span { display: flex; align-items: center; gap: 6px; }
.ws.wide .m-mix { grid-template-columns: 1fr; }
.ws.wide .ch { grid-template-columns: 50px 1fr 50px; justify-items: stretch; align-items: center; }
.ws.wide .ch input[type=range] { writing-mode: horizontal-tb; direction: ltr; width: 100%; height: auto; }

/* timeline module */
.tlm { grid-area: tl; padding: 10px 14px 12px; min-width: 0; }
.transport { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.transport .play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: var(--glow);
                   border: 0; color: #fff; cursor: pointer; }
.transport .play svg { width: 17px; height: 17px; }
.transport .display { display: flex; align-items: baseline; gap: 6px; } .transport .display small { font: 18px/1 VT323, monospace; color: #2c8f5a; }
.transport .sp { flex: 1; }
.tl { position: relative; height: 42px; border-radius: 10px; background: var(--panel2); cursor: pointer; background-size: 100% 100%;
      touch-action: none; user-select: none; }
.tl canvas.wave { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
.tl2 { margin-top: 6px; background: #0b0918; border: 1px dashed rgba(255,46,136,.25); }
.tl2 .vblock { position: absolute; top: 0; bottom: 0; border-radius: 8px; border: 2px solid rgba(255,46,136,.75); cursor: grab; overflow: hidden; touch-action: none;
  box-shadow: 0 0 10px rgba(255,46,136,.35); z-index: 1; }
.tl2 .vblock.picked { border-color: #fff; box-shadow: 0 0 0 1px var(--accent), 0 0 16px rgba(255,46,136,.7); }
.tl2 .vblock canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tl2 .vblock .vname { position: absolute; left: 14px; top: 2px; font-size: 10.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000; pointer-events: none;
  white-space: nowrap; overflow: hidden; max-width: calc(100% - 28px); }
.tl2 .vblock .e1, .tl2 .vblock .e2 { position: absolute; top: 0; bottom: 0; width: 9px; background: rgba(255,46,136,.85); cursor: ew-resize; z-index: 2; }
.tl2 .vblock .e1 { left: 0; } .tl2 .vblock .e2 { right: 0; }
.tl .shade { position: absolute; top: 0; bottom: 0; background: rgba(7,6,15,.72); pointer-events: none; }
.tl .sel { position: absolute; top: 0; bottom: 0; border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent); pointer-events: none;
           filter: drop-shadow(0 0 4px var(--accent)) drop-shadow(0 0 10px rgba(255,46,136,.7)); }
.tl .h { position: absolute; top: -4px; bottom: -4px; width: 14px; margin-left: -7px; background: var(--accent); border-radius: 5px; cursor: ew-resize;
         display: grid; place-items: center; z-index: 2; box-shadow: var(--glow); }
.tl .h::after { content: ""; width: 2px; height: 16px; background: #1a0010; border-radius: 2px; }
.tl .ph { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; z-index: 3; box-shadow: 0 0 6px rgba(255,255,255,.8); }
/* fixed height: bars that don't overlap in time share a row; more rows = thinner rows (never a scrollbar) */
.lanes { position: relative; height: 104px; margin-top: 8px; overflow: hidden; }   /* height grows with the bars (drawLanes) */.lane .bar3.lift { z-index: 5; opacity: .9; box-shadow: var(--glow), 0 6px 16px rgba(0,0,0,.6); cursor: grabbing; transition: none; }
.bartip { position: fixed; z-index: 40; pointer-events: none; padding: 3px 8px; border-radius: 6px; background: #0b0918; color: #7dffb0;
          font: 600 12px/1.2 "Share Tech Mono", ui-monospace, monospace; border: 1px solid rgba(255,46,136,.7); box-shadow: 0 0 10px rgba(255,46,136,.5); white-space: nowrap; }
.bartip.hidden { display: none; }
.lane-drop { position: absolute; left: 0; right: 0; height: 2px; background: #ff2e88; box-shadow: 0 0 8px #ff2e88, 0 0 2px #fff; border-radius: 2px; z-index: 6; pointer-events: none; display: none; }
.tempty { position: absolute; left: 2px; top: 34px; color: var(--muted); font-size: 13px; pointer-events: none; } .tempty:empty { display: none; }
.tlm { position: relative; }
.lane { position: absolute; left: 0; right: 0; background: rgba(255,255,255,.03); border-radius: 7px; }
.lane .bar3 { position: absolute; top: 1px; bottom: 1px; border-radius: 7px; cursor: grab; touch-action: none; min-width: 34px; overflow: hidden;
              background: rgba(255,46,136,.28); border: 1px solid rgba(255,46,136,.65); color: #fff; font-size: 12px; padding: 0 16px; user-select: none;
              display: flex; align-items: center; }
.lane .bar3:hover { background: rgba(255,46,136,.4); } .lane .bar3.drag { cursor: grabbing; }
.lane .bar3 .lbl3 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.lane .bar3.caption { background: rgba(180,77,255,.25); border-color: rgba(180,77,255,.65); }
.lane .bar3.sticker { background: rgba(255,196,0,.22); border-color: rgba(255,196,0,.7); }
.lane .bar3.video { background: repeating-linear-gradient(90deg, rgba(42,33,96,.9) 0 30px, rgba(51,40,122,.9) 30px 32px); border-color: #25e0c8;
  box-shadow: 0 0 8px rgba(37,224,200,.35); }
.lane .bar3.video.sel { box-shadow: 0 0 0 1px #25e0c8, 0 0 14px rgba(37,224,200,.6); }
.lane .bar3.music { background: rgba(80,200,140,.2); border-color: rgba(80,200,140,.65); cursor: default; }
.lane .bar3.sel { box-shadow: var(--glow); border-color: #fff5fb; }
.lane .bar3 .e1, .lane .bar3 .e2 { position: absolute; top: 0; bottom: 0; width: 12px; cursor: ew-resize; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.lane .bar3 .e1 { left: 0; border-radius: 6px 0 0 6px; } .lane .bar3 .e2 { right: 0; border-radius: 0 6px 6px 0; }
.lane .bar3 .e1::after, .lane .bar3 .e2::after { content: ""; width: 4px; height: 12px; pointer-events: none;
  border-left: 1.5px solid rgba(255,255,255,.85); border-right: 1.5px solid rgba(255,255,255,.85); }

/* sticker picker (a floating panel over the tools) */
.stpick { position: fixed; z-index: 35; width: min(720px, calc(100vw - 40px)); max-height: calc(100vh - 120px); overflow-y: auto;
          background: var(--panel2); border: 1px solid rgba(255,46,136,.5); border-radius: 14px; padding: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.sthead { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 8px; font-size: 13px; color: var(--muted); }
.sthead b { color: var(--text); font-weight: 600; }
.sttabs { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 3px; }
.sttabs button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; }
.sttabs button.on { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.packhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.packhead b { display: block; color: var(--text); font-size: 14px; } .packhead small { color: var(--muted); font-size: 12px; }
.packpv span { height: 58px; border-radius: 10px; background: var(--bg); padding: 4px; display: grid; place-items: center; }
.packpv span.more { font-size: 12px; font-weight: 700; color: #fff5fb; background: rgba(255,46,136,.25); text-align: center; }
.packsearch { margin-bottom: 8px; }
.packgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; max-height: 300px; overflow-y: auto; }
.packgrid button { height: 58px; border: 1px solid transparent; border-radius: 10px; background: var(--bg); cursor: pointer; padding: 4px; }
.packgrid button:hover { border-color: var(--accent); background: rgba(255,46,136,.12); }
.packgrid img, .packpv img { width: 100%; height: 100%; object-fit: contain; }
/* My stickers (PRO) */
.sttabs .probadge { margin-left: 4px; font-size: 8px; padding: 2px 4px; vertical-align: 1px; }
.minegrid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.minegrid button { height: 92px; }
.minecell { position: relative; }
.minecell > button:first-child { width: 100%; background: repeating-conic-gradient(#1b1830 0 25%, #14112a 0 50%) 0 0 / 14px 14px; }   /* shows transparency */
.minedel { position: absolute; top: 4px; right: 4px; width: 22px !important; height: 22px !important; padding: 0 !important; border-radius: 50% !important;
  background: rgba(13,11,26,.85) !important; border: 1px solid var(--line) !important; color: var(--muted); font-size: 10px; opacity: 0; transition: opacity .12s; }
.minecell:hover .minedel, .minedel:focus-visible { opacity: 1; } .minedel:hover { color: #fff; border-color: var(--danger) !important; }
@media (hover: none) { .minedel { opacity: 1; } }
.mineup { display: grid; place-items: center; align-content: center; gap: 2px; height: 92px; margin: 0; border-radius: 10px; cursor: pointer; text-align: center;
  border: 1px dashed rgba(255,46,136,.6); background: rgba(255,46,136,.08); color: #fff; padding: 4px; }
.mineup:hover, .mineup.over { background: rgba(255,46,136,.2); box-shadow: 0 0 12px rgba(255,46,136,.35); }
.mineup b { font-size: 22px; line-height: 1; color: var(--accent); } .mineup span { font-size: 12px; font-weight: 700; } .mineup small { font-size: 9.5px; color: var(--muted); }
.mineup.busy { pointer-events: none; animation: popWait .9s infinite alternate; }
.mineopt { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.minelock { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 18px 12px; border: 1px dashed rgba(255,46,136,.45); border-radius: 12px; }
.minelock .ico { font-size: 30px; } .minelock p { margin: 0; color: var(--muted); font-size: 13px; max-width: 460px; } .minelock .soon { color: var(--amber); margin-top: 6px; }
.minemsg { color: var(--muted); font-size: 13px; }
.stlic { margin: 10px 0 0; font-size: 12px; text-align: right; } .stlic a { color: var(--muted); }
.stgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 12px; }
.stgrid button { position: relative; height: 84px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; overflow: hidden; background: #2a2f38 center/cover; padding: 0; }
.stgrid button:hover { border-color: var(--accent); box-shadow: var(--glow); }
.stgrid button .rk { pointer-events: none; }
/* text style picker (＋ Title / ＋ Caption / ✎ Change style) – each style shown over the clip */
.txgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.txgrid button { position: relative; height: 120px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; overflow: hidden;
  background: #2a2f38 center/cover; padding: 0; }
.txgrid button:hover { border-color: var(--accent); box-shadow: var(--glow); }
.txgrid button.on { border: 2px solid var(--accent); box-shadow: var(--glow); }
.txgrid button .rk { pointer-events: none; }
.txgrid button small { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); text-align: left; }
@media (max-width: 599px) { .txgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stmode { flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 10px; border-radius: 9px; background: rgba(255,46,136,.12);
  border: 1px solid rgba(255,46,136,.4); }
.stmode small { color: var(--muted); font-size: 11.5px; }

/* ---------- publish deck ---------- */
.pubdeck { grid-area: pub; display: grid; gap: 10px; min-height: 0; grid-template-columns: repeat(12, minmax(0, 1fr));
           grid-template-rows: auto auto minmax(0, 1fr) auto auto; align-content: stretch; }
.p-act { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.p-act .stat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); } .p-act .sp { flex: 1; }
.p-nets { grid-column: 1 / -1; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.tile { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 9px; background: #0e0c1d;
        border: 1px solid rgba(255,255,255,.06); }
.tile .ic { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.tile b { font-size: 13px; display: block; line-height: 1.1; } .tile small { font-size: 11px; color: var(--muted); }
.tile .r { display: grid; gap: 5px; justify-items: end; }
.tile.off { opacity: .55; }
/* tile: logo · name + light / status · switch · action button at the far right */
.tiles { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tiles .tile { grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 8px; }

/* post type chip (REEL ▾) + its menu */
.ptype { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; cursor: pointer; white-space: nowrap;
  background: rgba(255,46,136,.16); border: 1px solid rgba(255,46,136,.55); color: #fff; font: 800 10px/1 var(--font); letter-spacing: .1em; }
.ptype i { font-style: normal; font-size: 8px; opacity: .75; }
.ptype:hover { background: rgba(255,46,136,.3); }
.ptype.fixed { cursor: default; background: transparent; border-color: rgba(255,255,255,.15); color: var(--muted); }
.tile.off .ptype { opacity: .6; }
.rfloat { position: fixed; z-index: 120; padding: 8px; border-radius: 14px; background: var(--panel2); border: 1px solid rgba(255,46,136,.55);
  box-shadow: 0 16px 44px rgba(0,0,0,.6), 0 0 22px rgba(255,46,136,.22); animation: rpIn .12s ease-out; max-height: calc(100vh - 16px); overflow-y: auto; }
.rfloat.sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto !important; border-radius: 18px 18px 0 0; padding-bottom: 20px; }
.titem { display: grid; grid-template-columns: 18px 1fr; gap: 1px 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent;
  color: var(--text); text-align: left; cursor: pointer; }
.titem:hover { background: rgba(255,255,255,.05); } .titem.on { background: rgba(255,46,136,.18); }
.titem em { font-style: normal; color: var(--accent); font-weight: 800; grid-row: 1 / span 2; }
.titem b { font-size: 13.5px; } .titem small { color: var(--muted); font-size: 12px; }

/* caption: template tab + network tabs */
.ctabs { display: flex; align-items: flex-end; gap: 6px; border-bottom: 1px solid rgba(255,46,136,.35); }
.ctabrow { display: flex; align-items: flex-end; gap: 4px; min-width: 0; overflow: hidden; }
.ctab { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; min-width: 44px; padding: 0 11px;
  border-radius: 10px 10px 0 0; background: #0e0c1d; border: 1px solid rgba(255,255,255,.08); border-bottom: 0; color: var(--muted);
  font: 700 13px var(--font); cursor: pointer; }
.ctab:hover { color: #fff; }
.ctab.on { background: var(--panel2); color: #fff; border-color: rgba(255,46,136,.55); box-shadow: 0 -4px 14px rgba(255,46,136,.18); height: 37px; margin-bottom: -1px; }
.ctab svg { width: 18px; height: 18px; fill: #fff; } .ctab.youtube svg { width: 21px; height: 21px; }
.ctab.youtube svg { fill: #FF0000; } .ctab.facebook svg { fill: #1877F2; } .ctab.instagram svg { fill: url(#igGrad); }
.ctab.tiktok svg { filter: drop-shadow(-1px -1px 0 #25F4EE) drop-shadow(1px 1px 0 #FE2C55); }
.cst { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.ctab .cst { position: absolute; top: 4px; right: 4px; }
.cst.own { background: var(--accent); box-shadow: 0 0 6px var(--accent); } .cst.link { background: #6a6390; } .cst.story { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.tplbtn { margin-left: auto; margin-bottom: 5px; flex: none; }
.cbody { position: relative; background: var(--panel2); border: 1px solid rgba(255,46,136,.35); border-top: 0; border-radius: 0 0 12px 12px;
  padding: 10px; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.p-cap .cbody textarea { flex: 1; }
.cbody.locked textarea, .cbody.locked #capTitle, .cbody.locked .tagin { opacity: .3; }
.ownbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; color: #ff8cc0; }
.ownbar .key { margin-left: auto; }
.cbody .lock { position: absolute; inset: 10px; border: 1px dashed rgba(255,46,136,.6); border-radius: 12px; display: grid; place-items: center;
  text-align: center; background: rgba(13,11,26,.7); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); padding: 10px; z-index: 2; }
.cbody .lock.story { border-color: rgba(255,196,61,.6); }
.cbody .lock p { margin: 6px 0 4px; color: #fff; } .cbody .lock small { color: var(--muted); display: block; margin-bottom: 10px; }
.cbody .lock .ico { font-size: 22px; }

/* hashtags field */
.tagin { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; padding: 5px 8px; margin: 6px 0 2px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg); cursor: text; }
.tagin:focus-within { border-color: var(--accent); box-shadow: var(--glow); }
.tagin input { flex: 1; min-width: 150px; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 4px 2px !important; font-size: 13.5px; }
.tagt { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 9px; border-radius: 99px; background: rgba(255,46,136,.16);
  border: 1px solid rgba(255,46,136,.5); color: #ffd0e5; font-size: 12.5px; font-weight: 600; }
.tagt button { width: 16px; height: 16px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; font-size: 9px; cursor: pointer; padding: 0; }
.tagt button:hover { background: var(--danger); }
.tagn { font: 17px/1 VT323, monospace; color: var(--green); margin-left: auto; } .tagn.over { color: var(--amber); }
.pop { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: #5b5480; }
.pop.hot { background: #ff7a2e; box-shadow: 0 0 6px #ff7a2e; } .pop.ok { background: var(--green); box-shadow: 0 0 6px var(--green); }
.pop.niche { background: #4dc3ff; box-shadow: 0 0 6px #4dc3ff; } .pop.wait { background: #a49cc4; animation: popWait .9s infinite alternate; }
@keyframes popWait { to { opacity: .25; } }

/* ✨ suggestions + ⭐ templates */
.btn.pro { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(90deg, #b44dff, var(--accent)); }
.probadge { font: 800 9px/1 var(--font); letter-spacing: .12em; padding: 3px 6px; border-radius: 5px; background: var(--amber); color: #2a1d00;
  box-shadow: 0 0 8px rgba(255,196,61,.6); text-shadow: none; }
.sugh { display: flex; align-items: center; gap: 8px; padding: 4px 6px 8px; } .sugh b { font-size: 14px; }
.rfloat p { margin: 4px 6px 8px; color: var(--muted); font-size: 13px; line-height: 1.5; } .rfloat p b { color: #fff; }
.rfloat .soon { color: var(--amber); } .rfloat .hint2 { font-size: 12px; }
.sugs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sug { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 10px; background: #0e0c1d; border: 1px solid rgba(255,255,255,.08); }
.sug.on { border-color: var(--accent); box-shadow: 0 0 14px rgba(255,46,136,.3); }
.sug .sh b { display: block; font-size: 14px; } .sug .sh small { color: var(--muted); font-size: 11.5px; }
.st2 { display: grid; gap: 3px; }
.st2 button { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; color: #ffd0e5; font-size: 13px; padding: 3px 4px; border-radius: 6px; cursor: pointer; text-align: left; }
.st2 button:hover { background: rgba(255,46,136,.15); } .st2 button.added { color: var(--green); }
.sug > button { justify-self: start; }
@media (max-width: 599px) { .sugs { grid-template-columns: 1fr; } }
.tlist { display: grid; gap: 6px; }
.titem2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.titem2 .use { display: grid; gap: 2px; text-align: left; padding: 9px 11px; border-radius: 10px; background: #0e0c1d; border: 1px solid rgba(255,255,255,.07);
  color: var(--text); cursor: pointer; min-width: 0; }
.titem2 .use:hover { border-color: var(--accent); box-shadow: 0 0 12px rgba(255,46,136,.3); }
.titem2 .use b { font-size: 14px; } .titem2 .use small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttypes { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.ttypes svg { width: 13px; height: 13px; fill: #fff; } .ttypes span { margin-right: 6px; }
.titem2 .del { width: 30px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.titem2 .del:hover { color: #fff; border-color: var(--danger); background: rgba(255,80,110,.2); }
.tfoot { display: flex; justify-content: flex-end; margin-top: 10px; }
.tile .tx { min-width: 0; }
.tile .tx b { display: flex; align-items: center; gap: 7px; min-width: 0; }
.tile .tx .nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .tx .led { flex: none; }
.tile .tx small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .act:empty { display: none; }
.bar2.off { opacity: .4; }
#capTitle:disabled { opacity: .45; cursor: not-allowed; }
.tile.conn small { color: #7dffb0; }

/* network logos: white when not connected, the network's own colours when connected */
.nic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; }
.nic svg { width: 22px; height: 22px; fill: #fff; transition: fill .2s; }
.nic.youtube svg { width: 26px; height: 26px; }
.nic.youtube.on svg { fill: #FF0000; }
.nic.facebook.on svg { fill: #1877F2; }
.nic.instagram.on svg { fill: url(#igGrad); }
.nic.tiktok.on svg { filter: drop-shadow(-1.3px -1px 0 #25F4EE) drop-shadow(1.3px 1px 0 #FE2C55); }
.nic.x.on svg { filter: drop-shadow(0 0 4px rgba(255,255,255,.55)); }   /* X's own colours are black and white */
/* preview chips with logos: white logo; the chosen chip is white with the logo in the network's colours */
.nets button.nicb { padding: 0; width: 40px; }
.nets button.nicb svg { width: 19px; height: 19px; fill: #fff; }
.nets button.nicb.youtube svg { width: 22px; height: 22px; }
.nets button.nicb.on svg { fill: #111; }
.nets button.nicb.on.youtube svg { fill: #FF0000; } .nets button.nicb.on.facebook svg { fill: #1877F2; }
.nets button.nicb.on.instagram svg { fill: url(#igGrad); }
.nets button.nicb.on.tiktok svg { fill: #111; filter: drop-shadow(-1.2px -1px 0 #25F4EE) drop-shadow(1.2px 1px 0 #FE2C55); }
.actions .nets button.nicb { width: 34px; } .actions .nets button.nicb svg { width: 16px; height: 16px; }
.actions .nets button.nicb.youtube svg { width: 19px; height: 19px; }
.accrow .nic { width: 34px; height: 34px; } .accrow .nic svg { width: 26px; height: 26px; }
.accrow .nic.youtube svg { width: 30px; height: 30px; }
.tbtn { height: 26px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--accent); background: rgba(255,46,136,.18); color: #fff;
        font: 700 11.5px/1 inherit; cursor: pointer; box-shadow: 0 0 10px rgba(255,46,136,.35); white-space: nowrap; }
.tbtn:hover { background: var(--accent); }
.tbtn.ghost { width: 22px; height: 22px; padding: 0; border-color: var(--line); background: transparent; color: var(--muted); box-shadow: none; font-size: 10px; }
.tbtn.ghost:hover { color: #fff; border-color: var(--danger); background: rgba(255,80,110,.2); }
.tbtn.ghost2 { background: transparent; border-color: var(--line); box-shadow: none; color: var(--muted); }
.tbtn.ghost2:hover { color: #fff; border-color: var(--accent); background: rgba(255,46,136,.18); }

/* ---------- Accounts window ---------- */
.modal.acc > div { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-color: rgba(255,46,136,.5);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 30px rgba(255,46,136,.2); }
.acchead { display: flex; align-items: center; gap: 10px; } .acchead h3 { margin: 0; flex: 1; }
.acchead .ix { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #0b0918; color: var(--muted); cursor: pointer; }
.acchead .ix:hover { color: #fff; border-color: var(--accent); }
.accintro { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 8px 0 14px !important; }
.accrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; margin-bottom: 8px;
  border-radius: 10px; background: #0e0c1d; border: 1px solid rgba(255,255,255,.06); }
.accrow.on { border-color: rgba(125,255,176,.35); }
.accrow .ic { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.accrow b { display: block; font-size: 14.5px; } .accrow small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.accrow.on small { color: #7dffb0; }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.accsetup { margin: -2px 0 12px; padding: 12px 14px; border-radius: 10px; background: rgba(255,46,136,.06); border: 1px dashed rgba(255,46,136,.45); font-size: 13px; }
.accsetup .t { margin: 0 0 6px !important; color: #fff !important; } .accsetup .t a { margin-left: 6px; color: #ff8cc0; font-weight: 700; }
.accsetup ol { margin: 0 0 10px; padding-left: 20px; color: var(--muted); line-height: 1.55; } .accsetup ol b { color: #fff; }
.accsetup .ru { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.accsetup .ru span, .accsetup label span { color: var(--muted); font-size: 12px; min-width: 110px; }
.accsetup code { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 6px; background: #0b0918; color: #7dffb0; font-size: 12px; overflow-wrap: anywhere; }
.accsetup label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.accsetup label input { flex: 1; min-width: 0; }
.accsetup .note { color: #ffd166 !important; font-size: 12px; margin: 4px 0 8px !important; }
.accsetup .row { display: flex; justify-content: flex-end; margin: 0 !important; }
.accnote { color: var(--muted); font-size: 12.5px; }
.acchead2 { margin: 16px 2px 8px !important; font-size: 10px !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; }
.accsetup .kcfgrow .kcfgl { color: var(--muted); font-size: 12px; font-weight: 400; min-width: 110px; }
.accsetup .jsonbtn { display: inline-flex; align-items: center; cursor: pointer; margin: 0; min-width: 0; color: #fff; font-size: 13px; }
.accsetup .jsonbtn:hover { border-color: var(--accent); }
@media (max-width: 899px) { #accBtn { padding: 8px 10px; } }
.p-cap { grid-column: 1 / 9; display: flex; flex-direction: column; min-height: 0; }
.p-cap .seg { margin-bottom: 8px; align-self: flex-start; }
.p-cap .seg .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.p-cap input[type=text] { margin-bottom: 6px; padding: 8px 10px; font-size: 14px; }
.p-cap textarea { flex: 1; min-height: 70px; resize: none; padding: 9px 10px; font-size: 14px; }
.tb { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.tb .note { font-size: 11px; color: var(--muted); margin-left: auto; }
.p-gauges { grid-column: 9 / -1; display: grid; gap: 10px; align-content: start; }
.dialrow { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.ring { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 10px rgba(255,46,136,.35); }
.ring span { width: 44px; height: 44px; border-radius: 50%; background: #141127; display: grid; place-items: center; font: 21px/1 VT323, monospace; color: #fff5fb; }
.dialrow small { color: var(--muted); font-size: 11px; display: block; }
.bars2 { display: grid; gap: 6px; }
.bar2 { font-size: 11px; color: var(--muted); }
.bar2 i { display: block; height: 6px; border-radius: 3px; background: #2a2540; margin-top: 3px; overflow: hidden; }
.bar2 i b { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--amber)); }
.chk { display: grid; gap: 6px; font-size: 12.5px; }
.chk div { display: flex; align-items: center; gap: 8px; } .chk div em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 11px; }
/* 9:16: right column = Schedule → Pre-flight → Video → Options (next to the caption and the row under it);
   under the caption: Title and Limits next to each other */
.ws:not(.wide) .p-gauges { grid-row: 2 / span 2; }
.p-gauges > .mod { grid-column: auto; }
.p-title { grid-column: 1 / 5; } .p-limits { grid-column: 5 / 9; }
.ws:not(.wide) .p-title, .ws:not(.wide) .p-limits { grid-row: 3; }
.clockdisp { background: #050409; border-radius: 8px; padding: 6px 8px; border: 1px solid #2a2540; text-align: center; }
.clockdisp .d { font: 17px/1 VT323, monospace; color: var(--amber); text-shadow: 0 0 6px rgba(255,196,61,.6); }
.clockdisp .t { font: 34px/1 VT323, monospace; color: var(--amber); text-shadow: 0 0 8px rgba(255,196,61,.7); }
.p-clock .seg { margin-top: 8px; } .p-clock input[type=datetime-local] { margin-top: 6px; padding: 6px 8px; font-size: 12px; color-scheme: dark; }
.p-opts { grid-column: 5 / 9; display: grid; gap: 7px; align-content: start; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.srow span { display: flex; align-items: center; gap: 7px; }
.p-pre { grid-column: 9 / -1; }
.p-com { grid-column: 1 / 8; display: flex; align-items: center; gap: 10px; }
.p-com .lbl { margin: 0; white-space: nowrap; } .p-com input { padding: 7px 10px; font-size: 13px; }
.p-jobs { grid-column: 8 / -1; display: grid; gap: 6px; align-content: center; }
.job { background: #0e0c1d; border-radius: 9px; padding: 7px 10px; font-size: 12.5px; border: 1px solid rgba(255,255,255,.06); }
.job .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.job .bar2 { margin-top: 5px; }
.job a { font-weight: 700; text-decoration: none; color: #fff5fb; text-shadow: var(--glow-text); }
.job .e { color: var(--danger); margin-top: 4px; }
.job .n { color: #ffd166; margin-top: 4px; }
.job.post .when { color: var(--muted); font-weight: 400; }
.job.post.done { border-color: rgba(125,255,176,.35); } .job.post.error { border-color: rgba(255,80,110,.45); }
.job.post .st .linkbtn { margin-left: 4px; }
.ws.wide .pubdeck { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: none; align-content: start; }
.pubdeck { overflow: hidden; }
.ws.wide .p-cap, .ws.wide .p-com, .ws.wide .p-jobs { grid-column: 1 / -1; }
.ws.wide .p-gauges { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* Schedule · Options / Pre-flight · Video */
/* 16:9 Publish (placeGauges() in studio.js): monitor at the top as in Edit, Pre-flight · Video under it;
   Schedule · Options right under the networks */
.ws.wide.pub .pvcol { justify-content: flex-start; }
.p-under { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 10px; align-self: stretch; width: 100%; flex: none; }
.p-sched { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }   /* Options · Schedule · Pre-flight */
.ws.wide .p-sched > .mod, .ws.wide .p-under > .mod { grid-column: auto; }
/* Title + Limits in one block: the ring on the left, the limit bars on the right */
.p-tl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.p-tl > .mod { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; min-width: 0; }
.ws.wide .p-tl > .mod { grid-column: auto; grid-row: 1; }
.p-tl > .mod::before, .p-tl > .mod::after { display: none; }
.p-tl > .mod > .lbl { margin-left: 0; }
.p-tl > .p-title > .lbl .q { display: none; }   /* one ? for the block (Limits') is enough */
.p-tl .dialrow { grid-template-columns: auto; justify-items: center; text-align: center; gap: 6px; }   /* ring above 0/100 */
.p-tl .dialrow small { display: block; margin-top: 2px; }
/* all three networks in one row */
.ws.wide .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ws.wide .tiles .tile { gap: 6px; padding: 8px; }
.ws.wide .tiles .tile .tbtn { padding: 0 8px; }
.ws.wide .p-title, .ws.wide .p-limits { grid-column: span 3; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal > div { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; width: min(720px, 100%); }
.modal h3 { margin: 0 0 8px; } .modal p { color: var(--muted); margin: 0 0 18px; }
.modal .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #fff; color: #1a1530; padding: 10px 16px; border-radius: 99px;
         font-weight: 600; z-index: 70; box-shadow: 0 10px 30px rgba(0,0,0,.5); }


/* 16:9 – keep the tools column inside the screen without scrolling */
.ws.wide #radioSub { display: none; }
.ws.wide .m-mix { gap: 2px 10px; } .ws.wide .mixrow { font-size: 12px; }
.ws.wide .ch .digits { font-size: 17px; }
.ws.wide #iInstr { display: none !important; }   /* 16:9: rotate/size via the corner handles – the gauges don't fit */
.ws.wide .m-sel .rowk .t { min-width: 0; }
.ws.wide .p-cap textarea { flex: none; height: 96px; min-height: 96px; }
/* a block never gets squeezed under its content – when the deck doesn't fit, fitTools scales it instead */
.ws.wide .pubdeck { grid-auto-rows: max-content; align-content: start; }
.ws:not(.wide) .pubdeck { grid-template-rows: max-content minmax(max-content, 1fr) max-content max-content;
  grid-auto-rows: max-content; }

/* the clip page fills the real window height (whatever the header/zoom), nothing below it */
body.proj { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
body.proj > .bar { flex: none; }
body.proj .ws { flex: 1; height: auto; min-height: 0; }
/* 16:9: give the monitor every pixel – network chips go up into the actions row, caption becomes a tooltip */
.actions .nets { flex-wrap: nowrap; }
.actions .nets button { height: 34px; min-width: 34px; font-size: 12px; }
.ws.wide #pvCap { display: none; }
.ws.wide .tlm { padding: 6px 12px 8px; }
.ws.wide .tlm > .lbl { height: 0; margin: 0; }
.ws.wide .transport { margin-bottom: 6px; }
.ws.wide .transport .play { width: 34px; height: 34px; }
.ws.wide .transport .digits { font-size: 22px; }
.ws.wide .tl { height: 34px; }
.ws.wide .lanes { height: 82px; margin-top: 6px; }
.ws.wide { gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.ws.wide .tlm > .lbl { font-size: 0; }   /* the heading text would sit under the play button; its ? stays in the corner */

/* ---------- neon scrollbars (js/neonscroll.js) – the browser's own ones are hidden everywhere ---------- */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
.has-nscroll { padding-right: 14px !important; }
.nscroll { position: fixed; width: 6px; border-radius: 3px; background: #0b0918; border: 1px solid #3a3456; display: none; cursor: pointer;
           --lit: 0; box-shadow: 0 0 calc(var(--lit) * 14px) rgba(255,46,136, calc(var(--lit) * .8)); }
.nscroll b { position: absolute; left: -1px; right: -1px; top: 0; border-radius: 3px;
             background: linear-gradient(180deg, rgba(255,46,136,.35), var(--accent) 70%, #ffd0e5);
             box-shadow: 0 0 6px var(--accent), 0 0 calc(4px + var(--lit) * 14px) rgba(255,46,136,.8); opacity: calc(.15 + var(--lit) * .85); }
.nscroll i { position: absolute; left: 50%; width: 12px; height: 16px; margin: -8px 0 0 -6px; border-radius: 4px; background: #d8d3ee;
             box-shadow: 0 2px 0 #05040b, 0 0 calc(var(--lit) * 10px) var(--accent); transition: background .15s; }
.nscroll:hover i, .nscroll.drag i { background: #fff; }

/* ---------- 9:16 edit layout: 4 blocks in a row on top, the timeline under them, the selected item under that ---------- */
.ws:not(.wide):not(.pub) { grid-template-columns: var(--pvw, 360px) repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto auto minmax(0, 1fr);
  grid-template-areas: "act act act act act" "pv fmt add mus mix" "pv tl tl tl tl" "pv sel sel sel sel" "pv . . . ."; align-content: start; }
.ws:not(.wide):not(.pub) .tools { display: contents; }
.ws:not(.wide) .m-sel { align-self: start; }
.m-sel.none { display: none !important; }   /* shown only while a text or sticker is being edited */
/* mixer: horizontal faders in both formats */
.m-mix { grid-template-columns: 1fr; gap: 2px 10px; }
.ch { grid-template-columns: 50px 1fr 50px; justify-items: stretch; align-items: center; }
.ch input[type=range] { writing-mode: horizontal-tb; direction: ltr; width: 100%; height: auto; }
.ch .digits { font-size: 17px; text-align: right; }
.mixrow { font-size: 12px; }
/* the first row under the sliders sits as far from them as the MIXER heading does (heading gap = 10 px, grid gap = 2 px) */
#chVoice + .mixrow, #chVoice + .mixrow.hidden + .mixrow { margin-top: 8px; }
.ws.wide #chVoice + .mixrow, .ws.wide #chVoice + .mixrow.hidden + .mixrow { margin-top: 6px; }
#iVideo .vhint { font-size: 12px; color: var(--muted); }
.m-mus #radioSub { display: none; }
.m-mus .radio { padding: 4px 10px; } .m-mus .radio .digits { font-size: 17px; }
.m-fmt .fmt2 .key small { white-space: normal; text-align: center; }
.tempty { top: auto; bottom: 56px; left: 16px; right: 16px; text-align: center; }   /* in the empty lanes area, not over the play button */
.ws.wide .tempty { bottom: 40px; }

/* ---------- 16:9 edit layout: like 9:16 – video on the left, everything else (blocks, timeline, selected) on the right ---------- */
/* the monitor takes 3/7 of the width (≈ 43 %), the two tool columns share the rest */
.ws.wide:not(.pub) {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr); grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
  grid-template-areas: "act act act" "pv fmt add" "pv tl tl" "pv sel sel" "pv . ." "pv . ."; align-content: start; }
/* Music + Mixer under the monitor, side by side */
.e-under { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-self: stretch; flex: none; }
.e-under > .mod { grid-area: auto; min-width: 0; }
.ws.wide:not(.pub) .tools { display: contents; }
.ws.wide .m-sel { grid-template-columns: minmax(0, 1fr); }
.ws.wide .tlm > .lbl { font-size: 10px; height: auto; margin: 0 0 6px 8px; }
.ws.wide .lanes { height: 120px; }
.ws.wide .tempty { bottom: 56px; }
/* when the window is too small (or the browser is zoomed in) the workspace scrolls – with our neon scrollbar */
body.proj .ws { overflow-y: auto; overflow-x: hidden; }

/* floating pickers are moved to <body> (outside the scaled workspace) – only on the clip page */
body:not(.proj) > .stpick, body:not(.proj) > .mpanel, body:not(.proj) > .m-sel { display: none !important; }

/* ---------- Selected = popup over the tools (placeInspector() puts it just above the timeline) ---------- */
#inspector { position: fixed; z-index: 34; margin: 0; overflow: visible;
  background: var(--panel2); border: 1px solid rgba(255,46,136,.6);
  box-shadow: 0 18px 50px rgba(0,0,0,.65), 0 0 24px rgba(255,46,136,.25); animation: popIn .14s ease-out; }
@keyframes popIn { from { opacity: 0; transform: translateY(8px); } }
#inspector > .lbl { display: flex; align-items: center; gap: 6px; padding-right: 0; }
#inspector .ix { margin-left: 8px; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #0b0918;
  color: var(--muted); font-size: 13px; cursor: pointer; display: grid; place-items: center; }
#inspector .ix:hover { color: #fff; border-color: var(--accent); box-shadow: var(--glow); }
#inspector > .lbl .q { position: static; margin-left: auto; }   /* ? on the far side, next to ✕ */

/* ---------- full screen: the timeline over the bottom of the video on a see-through background ---------- */
.screen:fullscreen .tlm, .screen:fullscreen #inspector { grid-area: auto; }   /* the stage is a grid too – no named areas there */
.screen:fullscreen .tlm { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 9; margin: 0;
  background: rgba(10,8,22,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.14); box-shadow: none; }
.screen:fullscreen .tlm > .lbl { display: none; }
.screen:fullscreen .lanes { height: 96px; }
.screen:fullscreen .lane { background: rgba(255,255,255,.05); }
.screen:fullscreen #inspector { background: rgba(18,15,34,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.screen:fullscreen .exitfs { z-index: 10; }

/* ---------- phone (under 900 px): one column, the page scrolls; desktops get the scaled dashboard (fitWs) ---------- */
@media (max-width: 899px) {
  .bar { padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
  .bar .brand { font-size: 26px; white-space: nowrap; }
  .bar .crumb, #whoEmail { display: none; }
  .bar .who { margin-left: auto; } .bar .who .btn { padding: 8px 12px; }
  .bar .steps { order: 3; width: 100%; display: flex; } .bar .steps button { flex: 1; }
  body.proj { display: block; height: auto; overflow-x: hidden; overflow-y: auto; }
  #stage { contain: paint; }
  #vProj.ws, #vProj.ws.wide { height: auto; min-height: 0; padding: 10px 12px 24px; gap: 10px; overflow: visible;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: none;
    grid-template-areas: "act" "pv" "tl" "sel" "fmt" "add" "mus" "mix"; }
  #vProj.ws.pub { grid-template-areas: "act" "pv" "pub"; }
  #vProj .tools { display: contents; }
  #vProj.ws.pub .tools, #vProj.ws.pub .tlm { display: none; }   /* Edit's blocks must not join the Publish grid */
  .actions { flex-wrap: wrap; gap: 6px; }
  .actions .stat { order: 9; width: 100%; white-space: normal; }
  .actions .next { padding: 10px 14px; font-size: 14px; }
  .ws:not(.wide) .device { height: auto; width: min(100%, calc((70vh) * 9 / 16)); margin: 0 auto; }
  .ws.wide .device { width: 100% !important; }
  .pvcol { align-items: center; }
  #vProj .pubdeck { grid-template-columns: minmax(0, 1fr); overflow: visible; zoom: 1 !important; }
  #vProj .pubdeck > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  #vProj .p-gauges { grid-template-columns: minmax(0, 1fr) !important; }
  /* the Selected popup is a bottom sheet on a phone */
  body > #inspector { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 70vh; overflow-y: auto; border-radius: 16px 16px 0 0;
    grid-template-columns: minmax(0, 1fr); }
  body > #inspector > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  /* phone: rotate and resize with the corner handles in the preview – the Rotate/Size gauges are left out */
  body > #inspector .gauge[data-a=rot], body > #inspector .gauge[data-a=size] { display: none; }
  .stpick { left: 8px !important; right: 8px; width: auto; }
}

/* ---------- own video in the clip (PRO): facecam, stream ---------- */
.addkeys { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
.addkeys .key { position: relative; }
.addkeys .key .probadge { position: absolute; top: -6px; right: -4px; font-size: 8px; padding: 2px 4px; }
.addkeys .key.more { color: var(--muted); border-style: dashed; }
.soonb { font: 800 9px var(--font); letter-spacing: .1em; color: var(--amber); margin-left: 4px; }
.tmenu .titem:disabled { cursor: default; opacity: .75; } .tmenu .titem:disabled:hover { background: transparent; }
.tmenu > p { margin: 4px 8px 8px; color: var(--muted); font-size: 12.5px; } .tmenu > p b { color: #fff; }
/* in the preview: sizes in px of a 1080-wide frame at size 1 – same as VIDEO_SIZE in render.py; frame = 3.5 % of the width */
.rk.rk-video { width: calc(var(--u) * 324px); height: calc(var(--u) * 324px); max-width: none; padding: 0; overflow: hidden; background: #111; box-sizing: border-box; position: absolute; }
.rk.rk-video.sh-v916 { width: calc(var(--u) * 243px); height: calc(var(--u) * 432px); border-radius: calc(var(--u) * 14.6px); }
.rk.rk-video.sh-h169 { width: calc(var(--u) * 432px); height: calc(var(--u) * 243px); border-radius: calc(var(--u) * 14.6px); }
.rk.rk-video .vclip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.rk.rk-video video, .rk.rk-video canvas.vghost { position: absolute; display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; max-width: none; }
.rk.rk-video canvas.vghost { display: none; opacity: .35; }
.rk.rk-video.inside canvas.vghost { display: block; }
/* moving the picture inside the shape: violet frame, grab cursor */
.ov .rk.rk-video.inside { cursor: grab; box-shadow: 0 0 0 calc(3px * var(--inv)) #b44dff, 0 0 calc(18px * var(--inv)) rgba(180,77,255,.9); }
.ov .rk.rk-video.inside::after { border-color: #b44dff !important; }
.ov .rk.rk-video.inside .roth, .ov .rk.rk-video.inside .sizeh, .ov .rk.rk-video.inside .moveh { display: none !important; }
/* Selected → Inside: the whole video small, the shape on it */
#iVideo .vinside { align-items: center; flex-wrap: nowrap; gap: 8px; }
#iVideo .vinside input[type=range] { flex: 1; min-width: 70px; }
.vmini { position: relative; flex: none; border-radius: 8px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.vmini img { width: 100%; height: 100%; object-fit: fill; display: block; }
.vring { position: absolute; border: 2px solid #b44dff; box-shadow: 0 0 0 999px rgba(7,6,15,.62), 0 0 10px rgba(180,77,255,.8); cursor: move; touch-action: none; }
.vzoom { flex: 1; min-width: 0; } .vzoom .rowk { margin-bottom: 6px; flex-wrap: nowrap; } .vzoom input[type=range] { flex: 1; min-width: 70px; }
#vInside.on { border-color: #b44dff; box-shadow: 0 0 8px rgba(180,77,255,.6); }
.rk.rk-video.sh-circle { border-radius: 50%; }
.rk.rk-video::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.rk.rk-video.fr-neon::after { border: calc(var(--u) * 11.3px) solid #ff2e88; } .rk.rk-video.fr-white::after { border: calc(var(--u) * 11.3px) solid #fff; }
.rk.rk-video.sh-v916:not(.fr-none)::after, .rk.rk-video.sh-h169:not(.fr-none)::after { border-width: var(--fw, calc(var(--u) * 8.5px)); }   /* 3.5 % of the shorter side */
/* side handles of a box-shaped video: drag = only the width / only the height */
.ov .rk .sideh { display: none; position: absolute; pointer-events: auto; z-index: 3; touch-action: none; background: #fff; border: calc(2px * var(--inv)) solid var(--accent);
  border-radius: calc(4px * var(--inv)); box-shadow: 0 0 calc(6px * var(--inv)) rgba(255,46,136,.8); }
.ov .rk.sel .sideh { display: block; } .ov .rk.inside .sideh { display: none !important; }
.ov .rk .sideh.sl, .ov .rk .sideh.sr { top: 50%; width: calc(10px * var(--inv)); height: calc(28px * var(--inv)); margin-top: calc(-14px * var(--inv)); cursor: ew-resize; }
.ov .rk .sideh.sl { left: calc(-5px * var(--inv)); } .ov .rk .sideh.sr { right: calc(-5px * var(--inv)); }
.ov .rk .sideh.st, .ov .rk .sideh.sb { left: 50%; height: calc(10px * var(--inv)); width: calc(28px * var(--inv)); margin-left: calc(-14px * var(--inv)); cursor: ns-resize; }
.ov .rk .sideh.st { top: calc(-5px * var(--inv)); } .ov .rk .sideh.sb { bottom: calc(-5px * var(--inv)); }
.ov .rk.rk-video { overflow: visible; }
/* the "Add a video" window */
.vddrop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 20px 16px; border-radius: 14px; border: 2px dashed rgba(255,46,136,.6);
  background: rgba(255,46,136,.06); margin-bottom: 12px; cursor: pointer; }
.vddrop:hover, .vddrop.over { background: rgba(255,46,136,.12); box-shadow: 0 0 16px rgba(255,46,136,.25); }
.vddrop i { font-style: normal; font-size: 24px; } .vddrop small { color: var(--muted); font-size: 12.5px; max-width: 460px; }
.vddrop .progress { width: 100%; margin-top: 6px; }
.vdgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.vdcard { position: relative; display: grid; gap: 3px; cursor: pointer; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: #0b0918; }
.vdcard:hover, .vdcard:focus-visible { border-color: var(--accent); box-shadow: 0 0 12px rgba(255,46,136,.35); }
.vdcard .th { position: relative; aspect-ratio: 16/9; border-radius: 8px; background: #000 center/cover; }
.vdcard .th em { position: absolute; right: 6px; bottom: 6px; font-style: normal; font-size: 11px; background: rgba(0,0,0,.7); padding: 1px 6px; border-radius: 5px; }
.vdcard .th .prep { position: absolute; left: 6px; top: 6px; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--amber); background: rgba(0,0,0,.7); padding: 1px 6px; border-radius: 5px; }
.vdcard b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vdcard small { color: var(--muted); font-size: 11px; }
.vdlock { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 18px 10px 10px; }
.vdlock .lk-ico { font-size: 26px; } .vdlock p { color: var(--muted); margin: 0 0 8px; max-width: 480px; font-size: 13.5px; } .vdlock p b { color: #fff; }
/* Selected → video */
#iVideo .rowk { flex-wrap: wrap; }
#iVideo input[type=range] { flex: 1; min-width: 90px; }
#iVideo .digits { font-size: 17px; }
#iVideo .key.on { border-color: #25e0c8; box-shadow: 0 0 8px rgba(37,224,200,.45); color: #fff; }

/* ---------- voice comments (PRO): VOICE strip, recorder, REC over the preview ---------- */
.tl3 { border-color: rgba(180,77,255,.35); }
.tl3 .tltag { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font: 800 9px var(--font); letter-spacing: .14em; color: rgba(180,77,255,.7); pointer-events: none; }
.tl3 .vcblock { border-color: rgba(180,77,255,.8); box-shadow: 0 0 10px rgba(180,77,255,.35); }
.tl3 .vcblock.picked { border-color: #fff; box-shadow: 0 0 0 1px #b44dff, 0 0 16px rgba(180,77,255,.75); }
.tl3 .vcblock .e1, .tl3 .vcblock .e2 { background: rgba(180,77,255,.9); }
#iVoice input[type=range] { flex: 1; min-width: 80px; max-width: 200px; }
#iVoice .key.on { border-color: #b44dff; box-shadow: 0 0 8px rgba(180,77,255,.55); }
.vcpick .rowk { margin-bottom: 10px; flex-wrap: wrap; }
.vcpick .rowk .t { min-width: 64px; }
#vcMics { display: flex; gap: 6px; flex-wrap: wrap; }
.vcmeter { display: flex; gap: 3px; height: 16px; flex: 1; max-width: 340px; }
.vcmeter u { flex: 1; border-radius: 2px; background: #221d40; text-decoration: none; transition: background .06s; }
.vcmeter u.g { background: var(--green, #3dff8a); } .vcmeter u.y { background: #ffd166; } .vcmeter u.r { background: #ff3b3b; }
.vclvl { font-size: 12px; color: var(--muted); min-width: 140px; }
.vcrec { display: flex; align-items: center; gap: 16px; margin: 4px 0 14px; }
.vcrec > div { display: grid; gap: 3px; } .vcrec small { color: var(--muted); font-size: 12px; } .vcrec b small { font-weight: 500; }
.vcrec .digits { font-size: 20px; color: var(--green, #3dff8a); }
.vcbtn { width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff; background: #0b0918; display: grid; place-items: center; cursor: pointer; flex: none; }
.vcbtn i { width: 26px; height: 26px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 14px #ff3b3b; transition: border-radius .15s; }
.vcbtn.stop i { width: 22px; height: 22px; border-radius: 5px; animation: vcpulse 1s infinite; }
.vcbtn:disabled { opacity: .4; cursor: default; }
@keyframes vcpulse { 50% { box-shadow: 0 0 4px #ff3b3b; } }
.vchear { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.vcnote { color: var(--muted); font-size: 12px; }
.vctakes .sthead { margin-top: 4px; }
.vctake { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: #0b0918; margin-bottom: 6px; }
.vctake.on { border-color: #b44dff; box-shadow: 0 0 10px rgba(180,77,255,.4); }
.vctake .digits { font-size: 18px; } .vctake small { color: var(--muted); font-size: 12px; }
.vcover { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.vccount { position: absolute; inset: 0; display: grid; place-items: center; font: 140px/1 VT323, monospace; color: #fff; background: rgba(7,6,15,.45);
  text-shadow: 0 0 4px rgba(255,255,255,.35), 0 0 10px rgba(255,46,136,.9), 0 0 24px rgba(255,46,136,.6); }
.vcbadge { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 9px; border-radius: 14px; background: rgba(0,0,0,.65); }
.vcbadge i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; animation: vcpulse 1s infinite; }
.vcbadge b { font: 800 13px var(--font); color: #fff; }
.vcbadge em { width: 60px; height: 6px; border-radius: 3px; background: #221d40; overflow: hidden; }
.vcbadge em span { display: block; height: 100%; width: 0; background: #b44dff; box-shadow: 0 0 6px #b44dff; }

/* ---------- 💬 subtitles (PRO): SUBS strip, the Subtitles window ---------- */
.tl4 { border-color: rgba(255,210,61,.35); }
.tl4 .tltag { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font: 800 9px var(--font); letter-spacing: .14em; color: rgba(255,210,61,.7); pointer-events: none; }
.tl4 .sbblock { position: absolute; top: 5px; bottom: 5px; border-radius: 6px; background: rgba(255,210,61,.13); border: 1px solid rgba(255,210,61,.75); cursor: grab;
  overflow: hidden; touch-action: none; z-index: 1; display: flex; align-items: center; }
.tl4 .sbblock span { font: 700 10px var(--font); color: #ffe9a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; pointer-events: none; }
.tl4 .sbblock.picked { border-color: #fff; box-shadow: 0 0 0 1px #ffd23d, 0 0 12px rgba(255,210,61,.7); } .tl4 .sbblock.picked span { color: #fff; }
.tl4 .sbblock .e1, .tl4 .sbblock .e2 { position: absolute; top: 0; bottom: 0; width: 6px; cursor: ew-resize; z-index: 2; }
.tl4 .sbblock .e1 { left: 0; } .tl4 .sbblock .e2 { right: 0; }
.tl4 .sbblock:hover .e1, .tl4 .sbblock:hover .e2, .tl4 .sbblock.picked .e1, .tl4 .sbblock.picked .e2 { background: rgba(255,210,61,.8); }
#iSub .key.on { border-color: #ffd23d; box-shadow: 0 0 8px rgba(255,210,61,.5); }
.sbpick .rowk { margin-bottom: 10px; flex-wrap: wrap; } .sbpick .rowk .t { min-width: 74px; }
.sbpick .key small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.sbsrc { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #0b0918; color: #fff; border-radius: 9px; padding: 6px 10px;
  font: 600 12.5px var(--font); cursor: pointer; }
.sbsrc i { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--muted); display: grid; place-items: center; font: normal 900 10px var(--font); }
.sbsrc.on { border-color: var(--cyan, #25e0c8); } .sbsrc.on i { border-color: var(--cyan, #25e0c8); background: var(--cyan, #25e0c8); color: #062a25; }
.sbsrc.off { opacity: .4; cursor: default; }
.sbstyles { align-items: stretch !important; }
.sbsty { --u: .27; --lu: .27; width: 128px; height: 66px; border-radius: 10px; border: 1px solid var(--line); background: #111 linear-gradient(135deg, #2a1f66, #0b0918);
  position: relative; display: grid; place-items: end center; padding-bottom: 8px; cursor: pointer; color: #fff; }
.sbsty.on { border-color: #ffd23d; box-shadow: 0 0 10px rgba(255,210,61,.5); }
.sbsty small { position: absolute; left: 7px; top: 4px; font: 800 10px var(--font); color: #fff; text-shadow: 0 1px 3px #000; }
.sbsty .rk-sub { position: static; transform: none; max-width: 100%; white-space: nowrap; }
.sbsty .rk-sub:not(.rk-sub-pop) span.on { color: inherit; transform: none; }
.sbgo { align-items: center; gap: 12px !important; }
.sbpick .progress { margin: 0 0 10px; max-width: none; }
.sbhead, .sbline { display: grid; grid-template-columns: 74px 1fr 26px; gap: 10px; align-items: center; }
#sbList.en .sbhead, #sbList.en .sbline { grid-template-columns: 74px 1fr 1fr 26px; }
.sbhead { padding: 0 8px 6px; font: 800 10px var(--font); letter-spacing: .12em; color: var(--muted); }
.sblines { max-height: 300px; overflow-y: auto; display: grid; gap: 3px; padding-right: 4px; }
.sbline { padding: 5px 8px; border-radius: 9px; border: 1px solid transparent; }
.sbline:nth-child(odd) { background: rgba(255,255,255,.025); }
.sbline.on { border-color: #ffd23d; background: rgba(255,210,61,.06); }
.sbline .digits { font-size: 17px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.sbline .src { color: var(--muted); font-size: 12.5px; }
.sbline input { width: 100%; border: 1px solid var(--line); background: #0b0918; color: #fff; border-radius: 8px; padding: 6px 9px; font: 600 13px var(--font); }
.sbline input:focus { outline: none; border-color: #ffd23d; box-shadow: 0 0 8px rgba(255,210,61,.4); }
.sbline .ix { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; }

/* 🎙 voice: bars on the lanes (violet, with their waveform), the dock under the timeline, the growing REC bar */
.lane .bar3.voice { background: rgba(180,77,255,.2); border-color: rgba(180,77,255,.75); }
.lane .bar3.voice:hover { background: rgba(180,77,255,.32); }
.lane .bar3.voice.sel { box-shadow: 0 0 0 1px #b44dff, 0 0 14px rgba(180,77,255,.7); border-color: #fff; }
.lane .bar3.voice canvas.vwave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .75; }
.lane .bar3.voice .lbl3 { position: relative; text-shadow: 0 1px 3px #000; }
.vdock { display: grid; gap: 10px; margin-top: 10px; }
.vdock:empty { display: none; }
.vdock > .stpick { position: static; z-index: auto; width: auto; max-height: none; overflow: visible; margin: 0; animation: none;
  box-shadow: none; border-color: rgba(180,77,255,.55); }
.vdock > .stpick.hidden { display: none; }
#inspector.docked { position: static; z-index: auto; width: auto !important; zoom: 1; animation: none; box-shadow: none; border-color: rgba(180,77,255,.55); }
#inspector.docked.none { display: none !important; }
.vcpick .vcrec { margin-bottom: 10px; }
#vcSolo.on { border-color: #b44dff; box-shadow: 0 0 8px rgba(180,77,255,.6); }
.tl .recbar { position: absolute; top: 3px; bottom: 3px; background: rgba(255,59,59,.35); border: 1px solid #ff3b3b; border-radius: 6px; z-index: 3;
  box-shadow: 0 0 10px rgba(255,59,59,.6); pointer-events: none; overflow: hidden; }
.tl .recbar span { font: 800 10px var(--font); color: #fff; padding: 0 6px; line-height: 34px; white-space: nowrap; }
#inspector.docked { grid-area: auto !important; justify-self: stretch; }
.tlm:has(#vcPick:not(.hidden)) .tempty, .tlm:has(#inspector.docked:not(.none)) .tempty { display: none; }
/* recorder over the tools: record button on the left, mic & level on the right */
.vcpick { overflow-y: auto; }
.vcgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 8px 18px; align-items: center; margin-bottom: 6px; }
.vcgrid .vcrec { margin: 0; }
.vcside .rowk { margin-bottom: 6px !important; flex-wrap: nowrap; } .vcside .rowk .t { min-width: 58px !important; }
.vcside .vcnote { display: block; margin: 0 0 0 64px; }
.vcside #vcMics { flex-wrap: wrap; }
#iVoice .vcvoices { display: inline-flex; gap: 6px; flex-wrap: wrap; }
#iVoice .key:disabled { opacity: .5; cursor: default; }

/* ===== 🎥 Camera (PRO): record yourself with the webcam ===== */
.cmgrid { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: 8px 18px; margin-bottom: 8px; }
.cmprev { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(60% 60% at 50% 35%, #2a2150, #0b0918 75%); display: grid; place-items: center; margin-bottom: 8px; }
.cmprev canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cmprev .cmres, .cmprev .cmmir { position: absolute; top: 7px; font: 800 10px Outfit, sans-serif; background: rgba(0,0,0,.6); padding: 3px 8px; border-radius: 8px; }
.cmprev .cmres { left: 7px; color: var(--green, #3dff8a); } .cmprev .cmmir { right: 7px; }
.cmprev .cmrecdot { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; font: 800 11px Outfit, sans-serif; color: #fff; background: #ff2e88; padding: 3px 10px; border-radius: 10px; box-shadow: 0 0 12px #ff2e88; }
.cmgrid .vcside .rowk { flex-wrap: wrap; }
.cmgrid #cmCams { display: flex; flex-wrap: wrap; gap: 6px; }
.cmgrid .key.on { border-color: var(--accent, #ff2e88); }
.cmgrid input[type=range] { width: 150px; }
.vctake .cmth { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
/* the live bubble on the clip while the camera window is open */
.rk.rk-video canvas.cmbub { position: absolute; display: block; pointer-events: none; max-width: none; }
.ov .rk.rk-video.camlive { cursor: grab; }
.ov .rk.rk-video.camlive:active { cursor: grabbing; }
.ov .cmguide { position: absolute; pointer-events: none; z-index: 50; border: 0 dashed rgba(37,224,200,.9); }
.ov .cmguide.v { top: 0; bottom: 0; border-left-width: calc(1.5px * var(--inv, 1)); }
.ov .cmguide.h { left: 0; right: 0; border-top-width: calc(1.5px * var(--inv, 1)); }
.ov .cmtip { position: absolute; z-index: 51; translate: -50% 0; pointer-events: none; font: 800 calc(13px * var(--inv, 1)) Outfit, sans-serif; color: #25e0c8;
  background: rgba(7,6,15,.75); padding: calc(3px * var(--inv, 1)) calc(9px * var(--inv, 1)); border-radius: calc(9px * var(--inv, 1)); white-space: nowrap; }
#iAvaRow .minemsg { margin: 0; }
#iAvaState .key { margin-left: 6px; }

/* ===== ⚑ Cover: the picked cover moment – the same pink flag on the button, the timeline and the badges ===== */
.fl { font-style: normal; color: var(--accent); text-shadow: 0 0 6px rgba(255,46,136,.8); }
.cvkey.on { border-color: var(--accent); box-shadow: 0 0 8px rgba(255,46,136,.45); }
.tlm:has(#cvFlag:not(.hidden)) .transport { margin-bottom: 24px; }   /* room for the flag above the strip */
.cvflag { position: absolute; top: -24px; bottom: -4px; width: 22px; margin-left: -2px; z-index: 4; cursor: grab; touch-action: none; outline: none; }
.cvflag.hidden { display: none; }
.cvflag > .fl { position: absolute; left: -4px; top: -4px; font-size: 27px; line-height: 1; pointer-events: none; }
.cvflag .stem { position: absolute; left: 0; top: 20px; bottom: 0; width: 3px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); pointer-events: none; }
.cvflag.drag { cursor: grabbing; }
.cvtip { position: absolute; left: 24px; top: -2px; display: none; align-items: center; gap: 4px; white-space: nowrap; padding: 3px 4px 3px 8px; border-radius: 8px;
  background: rgba(7,6,15,.9); border: 1px solid rgba(255,46,136,.6); color: var(--accent); font: 700 11.5px var(--font); box-shadow: 0 0 10px rgba(255,46,136,.35); }
.cvtip #cvT { color: #fff; }
.cvflag:hover .cvtip, .cvflag:focus .cvtip, .cvflag.drag .cvtip { display: inline-flex; }
.cvflag.flip .cvtip { left: auto; right: 6px; }   /* near the right end: the label opens to the left */
.cvx { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0 4px; border-radius: 5px; }
.cvx:hover { color: #fff; background: rgba(255,46,136,.3); }
.cvbadge { position: absolute; left: 50%; top: 12px; translate: -50% 0; z-index: 6; pointer-events: none; padding: 4px 10px; border-radius: 12px;
  background: rgba(0,0,0,.65); border: 1px solid var(--accent); color: var(--accent); font: 800 11px var(--font); letter-spacing: .08em; box-shadow: 0 0 10px rgba(255,46,136,.5); }
.cvbadge.hidden { display: none; }
.card .th.cv { background-size: contain; }   /* ⚑ the cover is the export's shape (9:16 / 16:9) – shown whole */
.card .th .cvpin { position: absolute; left: 8px; top: 8px; font: 800 11px var(--font); font-style: normal; color: var(--accent); background: rgba(0,0,0,.7);
  padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(255,46,136,.6); }
/* ⚑ Cover in Publish – on top of the Pre-flight block */
.pcov { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: start; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.pcov .img { width: 54px; aspect-ratio: 9 / 16; border-radius: 7px; background: #000 center/cover no-repeat; border: 2px solid var(--accent); box-shadow: 0 0 8px rgba(255,46,136,.45); }
.ws.wide .pcov .img { aspect-ratio: 16 / 9; width: 96px; }
.ws.wide .pcov { grid-template-columns: 96px minmax(0, 1fr); }
.pcov .img.none { display: grid; place-items: center; border-style: dashed; box-shadow: none; background: #0b0918; font-size: 20px; }
.pcov b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.pcov small { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.pcov .key { margin-top: 6px; padding: 4px 9px; font-size: 11.5px; }
