/* Viblu TV Studio (Feed 0.13.0): the Creator Studio page - Viblu TV's look (dark, Inter, the #38bdf8 accent). */
:root {
  --bg: #070b14; --panel: #0f1523; --panel2: #141c2e; --line: #1f2a40; --text: #e7ecf5; --muted: #8b98b0; --dim: #5d6a82;
  --accent: #38bdf8; --accent2: #0ea5e9; --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444; --violet: #a78bfa;
  --r: 14px; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: "Inter Display", Inter, system-ui, sans-serif; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 700; }
.st-boot { padding: 80px 20px; text-align: center; color: var(--muted); }

/* top bar */
.st-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 12px 24px; background: rgba(7, 11, 20, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.st-logo { display: flex; align-items: center; gap: 10px; font-family: "Inter Display", Inter, sans-serif; font-weight: 900; font-size: 18px; color: var(--text); white-space: nowrap; }
.st-logo i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.st-logo b { color: var(--accent); }
.st-logo span { color: var(--muted); font-weight: 600; font-family: Inter, sans-serif; font-size: 13px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
.st-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.st-nav a { color: var(--muted); padding: 7px 12px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.st-nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.st-nav a.on { color: var(--text); background: var(--panel2); }
.st-nav .badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--warn); color: #111; font-size: 12px; text-align: center; }
.st-me { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.st-pill { padding: 4px 10px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 12.5px; }
.st-pill.warn { border-color: rgba(245, 158, 11, .5); color: var(--warn); }

/* layout */
.st-main { max-width: 1280px; margin: 0 auto; padding: 28px 24px 80px; }
.st-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.st-head p { margin: 6px 0 0; color: var(--muted); }
.st-crumb { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.st-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.st-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .st-cols { grid-template-columns: 1fr; } }
.st-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.st-card + .st-card { margin-top: 16px; }
.st-card h3 { margin-bottom: 12px; }
.st-muted { color: var(--muted); }
.st-small { font-size: 13px; }
.st-empty { padding: 50px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
hr.st-hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* buttons, fields */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-weight: 700; cursor: pointer; white-space: nowrap; }
.st-btn:hover { border-color: #2c3a57; background: #182238; text-decoration: none; }
.st-btn.primary { background: var(--accent); border-color: var(--accent); color: #04121c; }
.st-btn.primary:hover { background: #5ccafa; }
.st-btn.ok { background: var(--ok); border-color: var(--ok); color: #04140a; }
.st-btn.bad { color: var(--bad); border-color: rgba(239, 68, 68, .45); }
.st-btn.ghost { background: transparent; }
.st-btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.st-btn[disabled] { opacity: .5; cursor: default; }
.st-field { display: block; margin-bottom: 14px; }
.st-field > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.st-field small { display: block; color: var(--dim); margin-top: 5px; font-size: 12.5px; }
.st-in, .st-field input[type=text], .st-field input[type=number], .st-field input[type=email], .st-field select, .st-field textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #0a101d; color: var(--text); outline: none; }
.st-field textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
.st-in:focus, .st-field input:focus, .st-field select:focus, .st-field textarea:focus { border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(56, 189, 248, .15); }
.st-check { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; cursor: pointer; }
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .st-two { grid-template-columns: 1fr; } }

/* chips and steps */
.st-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.st-chip.live, .st-chip.used { color: var(--ok); border-color: rgba(34, 197, 94, .4); }
.st-chip.review { color: var(--warn); border-color: rgba(245, 158, 11, .45); }
.st-chip.making { color: var(--accent); border-color: rgba(56, 189, 248, .45); }
.st-chip.rejected { color: var(--bad); border-color: rgba(239, 68, 68, .45); }
.st-chip.draft { color: var(--muted); }
.st-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.st-filter button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 13px; }
.st-filter button.on { background: var(--panel2); color: var(--text); border-color: #2c3a57; }
.st-dots { display: flex; gap: 4px; }
.st-dots i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); }
.st-dots i.done { background: var(--ok); }
.st-dots i.running { background: var(--accent); animation: st-pulse 1.2s infinite; }
.st-dots i.failed { background: var(--bad); }
@keyframes st-pulse { 50% { opacity: .35; } }

/* channel cards */
.st-ch { display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: border-color .15s, transform .15s; }
.st-ch:hover { border-color: #2c3a57; transform: translateY(-2px); }
.st-ch .num { font-family: "Inter Display", Inter, sans-serif; font-weight: 900; font-size: 34px; color: var(--accent); line-height: 1; }
.st-ch .stats { display: flex; gap: 14px; color: var(--muted); font-size: 13px; }
.st-ch .stats b { color: var(--text); }
.st-ch.new { align-items: center; justify-content: center; min-height: 170px; border-style: dashed; color: var(--muted); font-weight: 700; }

/* story list */
.st-stories { display: flex; flex-direction: column; gap: 10px; }
.st-story { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; cursor: pointer; }
.st-story:hover { border-color: #2c3a57; }
.st-thumb { width: 112px; aspect-ratio: 16 / 9; border-radius: 10px; background: #0a101d center / cover no-repeat; border: 1px solid var(--line); display: grid; place-items: center; color: var(--dim); font-size: 22px; }
.st-story .t { font-weight: 700; }
.st-story .m { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-story .r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 640px) { .st-story { grid-template-columns: 80px minmax(0, 1fr); } .st-thumb { width: 80px; } .st-story .r { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; } }

/* story steps */
.st-step { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.st-step:first-of-type { border-top: 0; }
.st-step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); }
.st-step.done .n { background: rgba(34, 197, 94, .15); color: var(--ok); border-color: rgba(34, 197, 94, .4); }
.st-step.running .n { background: rgba(56, 189, 248, .15); color: var(--accent); border-color: rgba(56, 189, 248, .45); animation: st-pulse 1.2s infinite; }
.st-step.failed .n { background: rgba(239, 68, 68, .12); color: var(--bad); border-color: rgba(239, 68, 68, .45); }
.st-step .what b { display: block; }
.st-step .what small { color: var(--muted); }
.st-step .err { color: var(--bad); font-size: 13px; margin-top: 4px; }
.st-media { margin-top: 12px; }
.st-media video { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 16 / 9; display: block; }
.st-media-v video { aspect-ratio: 9 / 16; max-width: 300px; }   /* 0.17.54: a story's vertical video */
.st-media audio { width: 100%; margin-top: 8px; }
.st-cost { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.st-shot { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #0b111e; }
.st-shot .st-field { margin-bottom: 8px; }
.st-prompt { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 12.5px; min-height: 260px !important; }

/* table */
.st-table { width: 100%; border-collapse: collapse; }
.st-table th, .st-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.st-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.st-table input { max-width: none; width: 132px; font-variant-numeric: tabular-nums; }
/* 0.15.1 (operator 20 Oct, Settings > Prices showed "0.00ɜ"): room for prices like 0.0003, digits right-aligned, no spin arrows */
.st-table input[type=number] { -moz-appearance: textfield; appearance: textfield; text-align: right; padding-left: 10px; padding-right: 10px; }
.st-table input[type=number]::-webkit-outer-spin-button, .st-table input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* gate, toasts, modal */
.st-gate { max-width: 460px; margin: 12vh auto; text-align: center; }
.st-gate .st-card { padding: 34px; }
.st-gate p { color: var(--muted); }
.st-toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.st-toast { max-width: 420px; padding: 12px 16px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; }
.st-toast.bad { border-color: rgba(239, 68, 68, .55); }
.st-toast.ok { border-color: rgba(34, 197, 94, .5); }
.st-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; z-index: 40; padding: 20px; }
.st-modal > div { width: min(720px, 100%); max-height: 90vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.st-spin { display: inline-block; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: st-rot .8s linear infinite; vertical-align: -2px; }
@keyframes st-rot { to { transform: rotate(360deg); } }

/* 0.13.2: what is being made right now */
.st-busy { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; border-color: rgba(56, 189, 248, .45); background: rgba(56, 189, 248, .07); }
.st-busy .st-spin { width: 22px; height: 22px; border-width: 3px; color: var(--accent); flex: none; }

/* 0.13.3: cast and places, the story's reference pictures, the voice preview */
.st-switch { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 700; white-space: nowrap; }
.st-switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: none; }
.st-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.st-switch input:checked { background: var(--accent); }
.st-switch input:checked::after { transform: translateX(18px); background: #04121c; }
.st-cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.st-castitem { border: 1px solid var(--line); border-radius: 12px; background: #0b111e; overflow: hidden; display: flex; flex-direction: column; }
.st-castitem .pic { background: #0a101d center / cover no-repeat; display: grid; place-items: center; color: var(--dim); font-size: 13px; border-bottom: 1px solid var(--line); }
.st-castitem .pic.person { aspect-ratio: 3 / 4; max-height: 300px; }
.st-castitem .pic.place { aspect-ratio: 16 / 9; }
.st-castitem .body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.st-castitem .look { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 1em; }
.st-castitem .acts { margin-top: auto; gap: 6px; }
.st-castitem.editing { border-color: rgba(56, 189, 248, .45); }
.st-castitem.editing .st-field { margin-bottom: 8px; }
.st-castadd { display: flex; flex-direction: column; gap: 10px; align-items: stretch; justify-content: center; border: 1px dashed var(--line); border-radius: 12px; padding: 16px; min-height: 140px; }
.st-refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-bottom: 6px; }
.st-ref { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #0b111e; }
.st-ref input { position: absolute; top: 10px; left: 10px; width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.st-ref .pic { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 7px; background: #0a101d center / cover no-repeat; }
.st-ref .pic.place { aspect-ratio: 16 / 9; }
.st-ref .nm { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.st-ref:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(56, 189, 248, .2); }
.st-ref.nopic { opacity: .55; cursor: default; }
.st-voice { display: flex; gap: 8px; align-items: stretch; }
.st-voice select { flex: 1; min-width: 0; }
.st-play { min-width: 44px; font-size: 14px; }
.st-play.on { background: var(--accent); border-color: var(--accent); color: #04121c; }
/* 0.13.4: other languages */
.st-lang { border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 2px; margin-bottom: 10px; background: #0b111e; }
.st-lang .st-check { margin-bottom: 10px; }
/* 0.13.5: the website's home page editor (admins) */
.st-main.wide { max-width: none; }
.hp { display: grid; grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .hp { grid-template-columns: minmax(0, 1fr); } }
.hp-prev { position: sticky; top: 76px; }
.hp-devs { margin-bottom: 10px; }
.hp-devs .st-btn.on { background: var(--accent); border-color: var(--accent); color: #04121c; }
.hp-frame { position: relative; height: calc(100vh - 150px); min-height: 480px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #000; }
.hp-frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #070b16; }
.hp-tabs { margin: 0 0 12px; }
#hp-panel h4 { margin: 18px 0 10px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hp-tl { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 6px; }
.hp-tl input, .hp-tl textarea { flex: 1; min-width: 0; }
.hp-lang { font-style: normal; font-size: 11px; font-weight: 800; padding: 11px 4px; color: var(--muted); }
.hp-pic { display: flex; gap: 8px; align-items: center; }
.hp-pic i { width: 64px; height: 40px; flex: none; border-radius: 6px; background: #0a101d center / cover no-repeat; border: 1px solid var(--line); }
.hp-pic input { flex: 1; min-width: 0; }
/* 0.17.62: the channel's thumbnails, big enough to judge (wide 16:9, upright 9:16) */
.th-field .hp-pic { align-items: flex-end; }
.th-field .hp-pic i { width: 256px; height: 144px; }
.th-field.tall .hp-pic i { width: 108px; height: 192px; }
.th-field textarea { margin-top: 8px; }
.th-field .th-note { color: var(--muted); }
/* 0.15.5: the picture/video field, the Media Library and Gemini windows, page buttons */
.hp-pic i { overflow: hidden; display: grid; place-items: center; }
.hp-pic i video { width: 100%; height: 100%; object-fit: cover; }
.hp-pic .hp-ord { flex: none; }
.hp-mbtn { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.st-modal.wide > div { width: min(980px, 100%); }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.mp-grid .st-empty { grid-column: 1 / -1; }
.mp-it { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); color: inherit; cursor: pointer; text-align: left; font: inherit; }
.mp-it:hover, .mp-it:focus-visible { border-color: var(--accent); }
.mp-it i { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 6px; background: #0a101d center / cover no-repeat; overflow: hidden; }
.mp-it i video { width: 100%; height: 100%; object-fit: cover; }
.mp-it small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-it.wait { cursor: default; }
.st-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.st-pager .st-btn.on { background: var(--accent); color: #04121c; border-color: var(--accent); }
.st-pager .st-small { margin-left: 8px; }
.st-field input[type=date] { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: #0a101d; color: var(--text); color-scheme: dark; }
.st-field input[type=range] { width: 100%; accent-color: var(--accent); }
.hp-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 2px; margin-bottom: 10px; background: #0b111e; }
.hp-ih { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hp-ord { display: inline-flex; gap: 4px; flex: none; }
.hp-ord .st-btn.sm { padding: 4px 9px; }
.hp-sec { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; background: #0b111e; }
.hp-sec > .hp-ih { margin: 0; }
.hp-sec.off .hp-sec-n { opacity: .45; }
.hp-sec.open { border-color: rgba(56, 189, 248, .45); }
.hp-sec-n { flex: 1; min-width: 0; }
.hp-sec-n b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-sec-n small { color: var(--muted); font-size: 12px; }
.hp-secform { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.hp-pick { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hp-more summary { cursor: pointer; font-weight: 700; margin: 16px 0 10px; color: var(--muted); }
.hp-rv { color: var(--text); }
/* 0.14.0: the Studio's language (top bar) and the home page editor's languages */
.st-ui { display: inline-flex; gap: 2px; padding: 2px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.st-ui a { padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 800; letter-spacing: .5px; color: var(--muted, #94a3b8); text-decoration: none; }
.st-ui a.on { background: var(--text, #f1f5f9); color: var(--bg, #070b16); }
.hp-langs { margin-bottom: 8px; }
.hp-langs small { opacity: .65; font-weight: 500; margin-left: 4px; }
/* 0.14.1: language ticks, picture and intro */
.st-langpick { gap: 16px; }
.st-langpick .st-check { margin-bottom: 0; }
.st-thumbpic { width: 100%; max-width: 320px; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--panel2) center / cover no-repeat; border: 1px solid var(--line); margin: 4px 0 10px; }
label.st-btn input[type=file] { display: none; }
[hidden] { display: none !important; }   /* 0.14.1: the flex rules never show what is hidden */

/* 0.14.1: the Control Room - monitors on top, the wall of channels, the production line, ads, audience */
.cr-h { margin: 26px 0 12px; font-size: 18px; }
.cr-alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; font-weight: 600; border: 1px solid var(--line); }
.cr-alert.bad { background: rgba(239, 68, 68, .14); border-color: rgba(239, 68, 68, .5); color: #fecaca; }
.cr-alert.warn { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .45); color: #fde68a; }
.cr-monitors { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.cr-pgm { position: relative; background: #000; border: 2px solid var(--bad); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.cr-pgm video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.cr-label { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--bad); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .1em; padding: 3px 8px; border-radius: 6px; }
.cr-pgm-info { padding: 10px 14px 0; background: var(--panel); font-size: 14px; }
.cr-pgm-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 14px 12px; background: var(--panel); }
.cr-pvw { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.cr-empty { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 12px; padding: 24px; color: var(--muted); text-align: center; font-size: 14px; }
.cr-slot { position: relative; border: 2px solid var(--ok); border-radius: 10px; overflow: hidden; background: #000; }
.cr-slot video { width: 100%; aspect-ratio: 16 / 9; display: block; }
.cr-slot-l { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; font-size: 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; }
.cr-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cr-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.cr-tile.pgm { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.cr-tile.pvw { border-color: var(--ok); }
.cr-tile.slate { border-color: var(--warn); }
.cr-pic { position: relative; aspect-ratio: 16 / 9; background: var(--panel2) center / cover no-repeat; }
.cr-st, .cr-lang, .cr-eye { position: absolute; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 2px 7px; border-radius: 5px; }
.cr-st { top: 8px; left: 8px; background: #475569; color: #fff; }
.cr-tile.live .cr-st { background: var(--bad); }
.cr-tile.slate .cr-st { background: var(--warn); color: #111; }
.cr-lang { top: 8px; right: 8px; background: rgba(0, 0, 0, .65); color: #fff; position: absolute; }
.cr-pgm-info .cr-lang, .cr-pgm-info .cr-eye { position: static; display: inline-block; }
.cr-eye { bottom: 8px; left: 8px; background: rgba(0, 0, 0, .7); color: #fff; letter-spacing: 0; font-size: 12px; }
.cr-logo { position: absolute; bottom: 8px; right: 8px; max-height: 26px; max-width: 70px; }
.cr-meta { padding: 9px 11px 6px; font-size: 13px; flex: 1; }
.cr-meta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-now { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.cr-next, .cr-desk { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-bar { display: block; height: 3px; border-radius: 2px; background: var(--line); margin: 6px 0 4px; overflow: hidden; }
.cr-bar s { display: block; height: 100%; background: var(--accent); }
.cr-acts { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 9px 9px; }
.cr-acts button, .cr-acts a { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); cursor: pointer; text-decoration: none; }
.cr-acts button.on { background: var(--accent); color: #031019; border-color: var(--accent); }
.cr-acts .ok { border-color: rgba(34, 197, 94, .5); color: #86efac; }
.cr-acts .bad { border-color: rgba(239, 68, 68, .5); color: #fca5a5; }
.cr-acts .warn { border-color: rgba(245, 158, 11, .6); color: #fde68a; }
.cr-acts button.yt.on { border-color: rgba(255, 0, 51, .6); color: #ff8a9a; }
.cr-acts button.yt.live { background: #ff0033; border-color: #ff0033; color: #fff; }
.cr-tag.yt { background: #ff0033; border-color: #ff0033; color: #fff; }
.cr-tag.bad { border-color: rgba(239, 68, 68, .5); color: #fca5a5; }
#cr-yt { margin-top: 14px; }
.cr-pgm-bar .cr-acts { padding: 0; }
.cr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 22px; align-items: start; }
.cr-cols h4 { margin: 14px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.cr-chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; font-size: 13px; }
.cr-chip.acc b { color: var(--accent); }
.cr-chip.warn b { color: var(--warn); }
.cr-chip.bad b { color: var(--bad); }
.cr-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.cr-list li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.cr-list small { color: var(--muted); }
.cr-tag { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 4px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.cr-err { color: #fca5a5; }
.cr-camp { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cr-ads { display: flex; gap: 4px; flex-shrink: 0; }
.cr-ad { width: 64px; aspect-ratio: 16 / 9; border-radius: 4px; background: var(--panel2) center / cover no-repeat; border: 1px solid var(--line); }
.cr-big b { font-size: 40px; font-family: "Inter Display", Inter, sans-serif; color: var(--accent); }
.cr-days { display: flex; gap: 6px; align-items: flex-end; height: 70px; margin: 6px 0 4px; }
.cr-days span { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.cr-days i { display: block; width: 100%; min-height: 2px; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .8; }
.cr-days small { font-size: 10px; color: var(--muted); }
#cr-langs small { opacity: .6; margin-left: 4px; }
@media (max-width: 900px) { .cr-monitors { grid-template-columns: 1fr; } }
/* 0.15.3: Settings > Channel categories: the names get the room (prices keep 132 px) */
.cat-table input.st-in { width: 100%; min-width: 120px; }
/* 0.15.4: a creator video's two pictures (2:3 poster, 16:9 picture): click to upload */
.cr-pics { display: flex; gap: 6px; align-items: center; }
.cr-pic { display: grid; place-items: center; flex: none; cursor: pointer; border: 1px dashed var(--line); border-radius: 6px; background: var(--panel2) center / cover no-repeat; color: var(--muted); font-size: 10px; font-weight: 700; }
.cr-pic.v { width: 36px; height: 54px; }
.cr-pic.h { width: 80px; height: 45px; }
label.cr-pic:hover { border-color: var(--accent); color: var(--accent); }
i.cr-pic { cursor: default; border-style: solid; }

/* 0.16.0: the ad manager (Studio > Ads): lists with search, filters and pages; the campaign form */
.ad-tabs { margin-bottom: 16px; }
.ad-tabs .badge, .st-filter .badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--warn); color: #111; font-size: 12px; text-align: center; }
.ad-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.ad-tools > .st-in { width: 260px; max-width: 100%; }
.ad-tools .st-filter { margin: 0; }
.ad-tools .st-field { margin: 0; min-width: 150px; }
.ad-sp { flex: 1; }
.ad-scroll { overflow-x: auto; }
.ad-table td { font-size: 14px; }
.ad-table small, .ad-sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ad-name { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.ad-name i { width: 64px; height: 36px; flex: none; border-radius: 6px; background: #0a101d center / cover no-repeat; border: 1px solid var(--line); }
.ad-name span { display: flex; flex-direction: column; }
.ad-note { max-width: 260px; }
.ad-act { white-space: nowrap; text-align: right; }
.ad-act .st-btn + .st-btn { margin-left: 6px; }
.ad-video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; margin: 6px 0 12px; }
.ad-check { margin: 0 0 12px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.ad-prog { height: 8px; border-radius: 99px; background: var(--panel2); overflow: hidden; margin: 6px 0 12px; }
.ad-prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.ad-checks { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #0a101d; margin-top: 6px; }
.ad-checks b { margin-top: 6px; color: var(--muted); }
.ad-chans .st-in { width: 100%; margin-top: 8px; }
.ad-hours { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 6px; }
.ad-hours label { position: relative; }
.ad-hours input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ad-hours span { display: block; text-align: center; padding: 6px 0; border-radius: 6px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ad-hours input:checked + span { background: var(--accent); border-color: var(--accent); color: #04121c; font-weight: 700; }
.ad-hours input:focus-visible + span { outline: 2px solid var(--accent); }
.ad-save { margin-top: 16px; }
.ad-neg { color: var(--bad); }
.ad-pos { color: var(--ok); }
.ad-tot td { font-weight: 700; border-top: 2px solid var(--line); }
.ad-done td { opacity: .55; }
.ad-msg { max-width: 460px; white-space: pre-wrap; }
@media (max-width: 720px) { .ad-hours { grid-template-columns: repeat(6, 1fr); } .ad-tools > .st-in { width: 100%; } }
.st-field input.st-in[type=password] { width: 100%; }

/* 0.16.1: creator sign-up settings (kinds, categories, reserved names), category suggestions */
.cs-cats { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 8px; }
.cs-res { width: 100%; font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 13px; }
.cat-sug { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-table select.st-in { width: 100%; min-width: 140px; }

/* 0.16.2: creators' videos in several languages (creator area, review) */
.cr-version { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; background: #0b111e; }
.cr-version h4 { margin: 0 0 8px; }
.st-table tr.cr-ver td { border-top: 0; padding-top: 2px; }
.cr-rv { margin-bottom: 12px; }
.cr-rv .st-chip { margin-bottom: 6px; }
.cr-rmeta { border-top: 1px solid var(--line); padding-top: 12px; margin: 6px 0 12px; }
.cr-genres { display: flex; flex-wrap: wrap; gap: 2px 16px; max-height: 170px; overflow-y: auto; }
.cr-meta { margin: 14px 0 6px; padding-top: 10px; border-top: 1px solid var(--line, rgba(148, 163, 184, .2)); }
.cr-meta h4 { margin: 0 0 8px; }
.cr-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cr-orient { display: block; margin-top: 4px; color: var(--accent, #38bdf8); }
.cr-mrows { margin: 8px 0 12px; }
.cr-mrows th { width: 160px; }
.cr-subs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.cr-subs .st-chip a { color: inherit; text-decoration: none; margin-left: 2px; }
.cr-subsel { width: auto; padding: 3px 6px; font-size: 12px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
.cr-subsample { max-height: 120px; overflow: auto; white-space: pre-wrap; margin: 0; }
.rw-list { list-style: decimal; margin: 6px 0 10px; padding-left: 22px; }
.rw-list.rw-found, ul.rw-list { list-style: none; padding-left: 0; }
.rw-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.rw-list li > span:last-child { display: flex; gap: 4px; flex: none; }
#rw h4 { margin: 14px 0 4px; }
.lb-places h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lb-sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.lb-site h4 { margin: 4px 0 6px; }
.lb-rows { list-style: none; margin: 0; padding: 0; }
.lb-rows li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--line); }
.lb-rows li > div { flex: 1; min-width: 0; }
.lb-rows li.out b { color: var(--muted); }
.lb-yes { color: var(--ok, #34d399); font-weight: 800; }
.lb-no { color: var(--dim, #5d6a82); font-weight: 800; }
.lb-pick { flex: none; white-space: nowrap; }
.cr-sch h4 { margin: 10px 0 6px; }
.cr-sch-chs, .cr-sch-wds { flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cr-sch-order { margin: 8px 0 0; padding-left: 22px; }
.cr-sch-order li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.cr-sch-order li span:last-child { display: flex; gap: 4px; flex: none; }
.cr-sch-day .st-row { gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.cr-sch-day select { flex: 1; min-width: 160px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.cr-sch-day input[type=time] { width: 150px; }
.cr-sch-next { columns: 2; margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
@media (max-width: 700px) { .cr-sch-next { columns: 1; } }

/* 0.16.4: the Studio's own sign-in */
.st-signin .st-card { text-align: left; }
.st-signin h2 { margin-bottom: 6px; }
.st-signin form { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 8px; }
.st-signin form .st-btn { margin-top: 8px; }
.st-signin .st-in { width: 100%; }
.si-msg { padding: 10px 12px; border-radius: 10px; background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .35); margin: 0 0 14px; }
.si-err { color: var(--bad); min-height: 1.2em; margin: 6px 0 0; font-size: 14px; }
/* 0.16.6: the pages before the Studio: the logo (to the website's home) on top, the website's links at the bottom */
.st-gpage { min-height: 100vh; display: flex; flex-direction: column; }
.st-gtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.st-gtop .st-logo, .st-gback, .st-gfoot a { text-decoration: none; }
.st-gback { color: var(--muted); font-size: 14px; white-space: nowrap; }
.st-gback:hover, .st-gfoot a:hover { color: var(--text); }
.st-gmain { flex: 1 0 auto; padding: 0 16px; }
.st-gpage .st-gate { margin: 8vh auto; }
.st-gfoot { border-top: 1px solid var(--line); padding: 22px clamp(16px, 4vw, 40px); text-align: center; color: var(--muted); font-size: 13px; }
.st-gfoot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
.st-gfoot a { color: var(--muted); }
.st-gfoot p { margin: 0; }

/* 0.16.5: footer link columns */
.hp-sub { border-left: 2px solid var(--line); padding-left: 10px; margin: 8px 0; }

/* 0.17.0: every channel (Channels) and a channel's page */
#cl-scope small { opacity: .65; margin-left: 2px; }
.ad-tools select.st-in { width: auto; min-width: 0; flex: 0 1 auto; }
.cl-row { cursor: pointer; }
.cl-row:hover td { background: rgba(255, 255, 255, .03); }
.cl-table td > small { display: block; margin-top: 2px; }
.cl-table td.num { font-weight: 800; color: var(--muted); width: 44px; }
/* 0.17.74: the list's numbers, switches and totals; a channel's Analytics window */
.cl-table th small { display: block; font-weight: 600; color: var(--dim); font-size: 10.5px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.cl-table td.cl-n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cl-table td.cl-n small { display: block; color: var(--muted); font-size: 11.5px; }
.cl-table .st-switch input { width: 36px; height: 20px; }
.cl-table .st-switch input::after { width: 14px; height: 14px; }
.cl-table .st-switch input:checked::after { transform: translateX(16px); }
.cl-tot { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 4px; color: var(--muted); font-size: 13.5px; }
.cl-tot b { color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.cl-tot small { color: var(--dim); }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.an-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.an-card small { color: var(--muted); font-size: 12px; }
.an-card b { font-size: 22px; font-variant-numeric: tabular-nums; }
.an-card span { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.an-bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding: 6px 0 22px; overflow-x: auto; }
.an-day { flex: 1 0 14px; height: 100%; display: flex; flex-direction: column-reverse; position: relative; min-width: 14px; }
.an-day i { display: block; width: 100%; }
.an-day em { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 9.5px; color: var(--dim); font-style: normal; white-space: nowrap; }
.an-day i.tv, .an-key i.tv { background: var(--accent); }
.an-day i.ph, .an-key i.ph { background: var(--violet); }
.an-day i.pc, .an-key i.pc { background: var(--ok); }
.an-key { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 10px; }
.an-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
.an-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.an-two td.cl-n { text-align: right; white-space: nowrap; }
.ch-ticks { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 4px 0; }
.ch-rot { list-style: decimal; padding-left: 22px; margin: 6px 0 10px; }
.ch-rot li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.ch-rot li > span:first-child { display: inline-block; max-width: calc(100% - 130px); vertical-align: middle; }
.ch-rot li .hp-ord { float: right; }
.ch-sched { max-height: 420px; overflow: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; }
.ch-sched tr.brk td { color: var(--muted); }
.ch-sched tr.on td { background: rgba(56, 189, 248, .12); }
.ch-note { padding: 10px 12px; border-radius: 10px; background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .3); }
.ch-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 14px; }
.ra-list { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; max-height: 50vh; overflow: auto; }
.ra-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--text); cursor: pointer; font: inherit; }
.ra-item:hover { border-color: var(--accent); }
.ra-item.on { opacity: .6; cursor: default; }
.ra-item b { color: var(--accent); }
.ch-stats { color: var(--muted); font-size: 14px; }
.ch-stats b { color: var(--text); }
.mp-audio { display: grid !important; place-items: center; font-size: 34px; color: var(--accent); background: #0a101d; }

/* 0.17.1: a desk's page (Desk, Sources, Look, Voice) */
.dk-hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0 16px; }
.dk-h { margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.dk-form > .dk-h:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.dk-color { display: inline-flex; flex-direction: column; margin-right: 18px; }
.dk-color input[type=color] { width: 64px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.dk-music { list-style: decimal; padding-left: 22px; margin: 6px 0 10px; }
.dk-music li { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.dk-music audio { height: 30px; max-width: 260px; }
.dk-music span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-gen { margin-top: 12px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; }
.dk-gen .st-row { margin: 8px 0 4px; }
.dk-qr { padding: 10px 12px; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.dk-qn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.dk-qn input { width: auto; }
.dk-warn { color: var(--warn, #f59e0b); }
.dk-url { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-save { position: sticky; bottom: 0; padding: 12px 0; background: var(--panel); border-top: 1px solid var(--line); margin-top: 16px; }

/* 0.17.2: news stories (to approve) and a news channel's videos */
.ns-card { margin-bottom: 14px; }
.ns-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }
.ns-src { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; max-height: 440px; overflow: auto; }
.ns-src p { margin: 0 0 8px; }
.ns-text { font-size: 14px; color: var(--muted); line-height: 1.55; }
.vd-table td > small { display: block; margin-top: 3px; }
.vd-heads { max-width: 560px; }
.vd-player { width: 100%; max-height: 70vh; background: #000; border-radius: 10px; margin-top: 10px; }
@media (max-width: 820px) { .ns-cols { grid-template-columns: 1fr; } }

/* 0.17.3: Settings tabs, keys and services, the picture library */
.st-settabs { margin-bottom: 16px; }
.st-settabs a { text-decoration: none; }
.fs-code { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; background: #0a101d; border: 1px solid var(--line); word-break: break-all; user-select: all; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pl-it { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel2); display: flex; flex-direction: column; }
.pl-img { display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #0a101d; cursor: zoom-in; }
.pl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-miss { display: grid; place-items: center; color: var(--muted); font-size: 13px; cursor: default; }
.pl-txt { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.pl-txt .st-btn { align-self: flex-start; margin-top: 4px; }
.pl-tags { color: var(--accent); }
.pl-full { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 10px; background: #000; margin: 10px 0; }
.st-settabs a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 13px; }
.st-settabs a.on { background: var(--panel2); color: var(--text); border-color: #2c3a57; }

/* 0.17.4: deleting a desk or a channel */
.ch-danger { margin-top: 28px; border-color: rgba(239, 68, 68, .45); }
.ch-danger h3 { color: var(--bad); margin-top: 0; }

/* 0.17.5: the Library */
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.lb-card { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel2); color: var(--text); text-decoration: none; padding-bottom: 10px; }
.lb-card:hover { border-color: var(--accent); }
.lb-card i { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #0a101d center / cover no-repeat; color: var(--dim); font-style: normal; font-size: 12px; }
.lb-card b { padding: 0 10px; font-size: 14px; }
.lb-card small { padding: 0 10px; color: var(--muted); font-size: 12px; }
.lb-st.published { color: var(--ok); }
.lb-st.draft, .lb-st.off, .lb-st.archived { color: var(--warn); }
.lb-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.lb-cols > div { display: flex; flex-direction: column; gap: 16px; }
.lb-video video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }
.lb-air { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.lb-eps input.st-in { width: 70px; }
.lb-eps select.st-in { width: auto; }
.lb-season th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 900px) { .lb-cols { grid-template-columns: 1fr; } }

/* 0.17.6: the Bunny library */
.bn-card { padding-bottom: 10px; }
.bn-add { display: flex; gap: 6px; padding: 4px 10px 0; }
.bn-add select.st-in { flex: 1; min-width: 0; padding: 4px 8px; }
.lb-card small a { color: var(--accent); }
/* 0.17.24 the QR code of an ad link, readable by a phone held to the screen */
.ad-qr { display: block; border-radius: 4px; }
/* 0.17.44 identity clips: one block per clip, a line between them; the clips smaller than the main media */
.cr-clip + .cr-clip { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.cr-clip .st-media video { max-width: 360px; }
/* 0.17.46 the look editor: a live preview (web or TV frame) beside its settings */
#cr-look { margin-top: 16px; }
.lk-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.lk-grid h4 { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lk-frame.tv { padding: 14px 14px 30px; background: #05070c; border: 1px solid var(--line); border-radius: 18px; position: relative; }
.lk-frame.tv::after { content: ""; position: absolute; left: 38%; right: 38%; bottom: -14px; height: 14px; background: #0b0f18; border-radius: 0 0 10px 10px; }
.lk-prev { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.lk-frame.tv .lk-prev { border-radius: 4px; }
.lk-prev video, .lk-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: linear-gradient(135deg, #1e293b, #0b1220) center / cover no-repeat; }
.lk-bug { position: absolute; z-index: 2; width: 7.8%; height: auto; pointer-events: none; }
.lk-bug.top-right { top: 5%; right: 3.33%; } .lk-bug.top-left { top: 5%; left: 3.33%; }
.lk-bug.bottom-right { bottom: 5%; right: 3.33%; } .lk-bug.bottom-left { bottom: 5%; left: 3.33%; }
.lk-tabs { margin-top: 10px; flex-wrap: wrap; }
.lk-sep { flex: 1; }
.lk-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lk-pre { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); cursor: pointer; font: inherit; }
.lk-pre b { display: block; font-size: 14px; }
.lk-pre small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.3; }
.lk-pre.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.lk-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 6px 0; font-size: 13px; }
.lk-row label { display: flex; align-items: center; gap: 6px; }
.lk-row input[type=color] { width: 40px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }
.lk-logo { display: block; max-width: 180px; max-height: 70px; margin: 6px 0; background: repeating-conic-gradient(#1f2a40 0 25%, #141c2e 0 50%) 0 0 / 14px 14px; border-radius: 6px; padding: 4px; }
.lk-hist { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.lk-hist li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .lk-grid { grid-template-columns: 1fr; } }
/* 0.17.47 statistics and earnings */
#cr-stats { margin-top: 16px; }
.sx-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sx-head h3 { margin: 0; }
.sx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.sx-tile { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sx-tile b { display: block; font-size: 22px; }
.sx-tile span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.sx-tile small { display: block; font-size: 11px; color: var(--dim); margin-top: 4px; line-height: 1.3; }
.sx-chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding: 6px 0 18px; border-bottom: 1px solid var(--line); }
.sx-bar { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; position: relative; min-width: 3px; }
.sx-bar i { display: block; width: 100%; }
.sx-bar i.l, .sx-legend i.l { background: var(--accent); }
.sx-bar i.v, .sx-legend i.v { background: var(--violet); }
.sx-bar i.l { border-radius: 3px 3px 0 0; }
.sx-bar em { position: absolute; bottom: -18px; left: 0; font-size: 10px; font-style: normal; color: var(--dim); white-space: nowrap; }
.sx-legend { margin: 8px 0 4px; color: var(--muted); }
.sx-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
.sx-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; }
.sx-cols h4, #cr-stats h4, #cs-earn h4 { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sx-share { display: grid; grid-template-columns: 90px 1fr 44px; align-items: center; gap: 8px; font-size: 13px; margin: 6px 0; }
.sx-share i { height: 8px; background: var(--panel2); border-radius: 4px; overflow: hidden; }
.sx-share s { display: block; height: 100%; background: var(--accent); text-decoration: none; }
.sx-share b { text-align: right; font-weight: 600; }
@media (max-width: 900px) { .sx-cols { grid-template-columns: 1fr; } }

/* 0.17.51 Settings > Servers */
.sv-card { margin-bottom: 14px; }
.sv-rules { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 6px 0 12px; }
.sv-rules label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sv-rules select { width: auto; min-width: 150px; }
.sv-workers td, .sv-workers th { font-size: 13px; }
.sv-cmd { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; word-break: break-all; }

/* 0.17.66 Costs */
.co-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.co-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.co-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.co-card b { display: block; font-size: 26px; margin: 4px 0 2px; }
.co-card span { color: var(--muted); font-size: 13px; }
.co-bar { height: 6px; border-radius: 999px; background: var(--panel2); margin-top: 8px; overflow: hidden; }
.co-bar i { display: block; height: 100%; background: var(--ok); }
.co-bar i.warn { background: var(--warn); }
.co-bar i.bad { background: var(--bad); }
.co-banner { display: block; margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r); border: 1px solid rgba(245, 158, 11, .5); color: var(--warn); background: var(--panel); text-decoration: none; font-weight: 600; }
.co-banner.bad { border-color: rgba(239, 68, 68, .5); color: var(--bad); }
.co-days tr[data-coday] { cursor: pointer; }
.co-days tr.on td { background: var(--panel2); }
.co-days td.est, .co-est { color: var(--muted); }
.co-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-prices input { width: 90px; }
.st-chip.warn { color: var(--warn); border-color: rgba(245, 158, 11, .45); }
.st-chip.bad { color: var(--bad); border-color: rgba(239, 68, 68, .45); }
/* 0.17.77: an advertiser's banner under review: its Fire TV card and website banner */
.ad-banner-look { display: grid; gap: 12px; margin: 6px 0 12px; }
.ad-banner-look figure { margin: 0; display: grid; gap: 4px; }
.ad-banner-look img { max-width: 100%; height: auto; border-radius: 8px; background: #0b1220; }
.ad-banner-look figure:first-child img { width: 240px; }
.ad-banner-look figcaption { font-size: 12px; color: var(--muted, #94a3b8); }
