:root {
  --bg: #070c18;
  --panel: #0f1930;
  --rule: #22304e;
  --ink: #f4f1ea;
  --dim: #9fb0cc;
  --red: #d7263d;
  --red-deep: #9e0f22;
  --gold: #f2c14e;
  --green: #35b27a;
  --amber: #e3a72f;
  --navy: #0a1836;
  --serif: Georgia, 'DejaVu Serif', 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cond: 'Avenir Next Condensed', 'DIN Condensed', 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.grow { flex: 1; }

.mast { display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: var(--panel); border-bottom: 3px solid var(--red); }
.mast h1 { font: 700 20px var(--serif); letter-spacing: .08em; text-transform: uppercase; }
.meta { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.onair { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.onair i { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.onair.live { color: var(--red); }
.onair.live i { background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; padding: 24px; max-width: 1560px; margin: 0 auto; }
@media (max-width: 980px) { main { grid-template-columns: minmax(0, 1fr); padding: 16px; } .meta#editor { display: none; } }

/* ---------- The stage ---------- */
.stage { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; container-type: inline-size; border: 1px solid var(--rule); }
.stage:fullscreen { border: 0; width: 100vw; height: 100vh; aspect-ratio: auto; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; }

.curtain { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2.4cqw; padding: 6cqw; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #17306a 0%, #0a1836 45%, #050a16 100%); }
.curtain[hidden] { display: none; }
.curtain-line { font: 600 2.5cqw/1.25 var(--cond); letter-spacing: .01em; max-width: 30em; color: #dfe7f7; text-wrap: balance; }
.start { padding: 1.3cqw 2.8cqw; font: 700 1.9cqw var(--cond); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--red); border: 0; cursor: pointer; }
.start:hover { filter: brightness(1.12); }
.start[disabled] { opacity: .7; cursor: progress; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- The telecast layer (all sizes in cqw so it scales with the stage) ----------
   Layout after the grammar of Hindi news channels: a red topic band at the top,
   the logo with a 24-hour clock under it at top right, the anchor at a desk,
   and at the bottom a band of rotating headlines above a crawl. */
.tc { position: absolute; inset: 0; overflow: hidden; font-family: var(--cond); color: #fff; user-select: none; }
/* Hindi: a Devanagari face, and no letter-spacing, which breaks conjuncts. */
.tc:lang(hi) { --cond: 'Kohinoor Devanagari', 'Noto Sans Devanagari', 'Nirmala UI', 'Mukta', sans-serif; --sans: 'Kohinoor Devanagari', 'Noto Sans Devanagari', 'Nirmala UI', sans-serif; }
.tc:lang(hi) * { letter-spacing: 0 !important; }
.tc[data-scene='off'] { display: none; }

/* The studio */
.tc-bg { position: absolute; inset: 0; background: radial-gradient(90% 75% at 72% 30%, #6b0f1d 0%, #3a0912 40%, #14040a 78%, #070205 100%); }
.tc-bg i { position: absolute; display: block; }
.tc-bg i:nth-child(1) { left: 0; right: 0; bottom: 8cqw; height: 22cqw; background: linear-gradient(180deg, transparent, rgba(255, 60, 80, .08) 60%, rgba(255, 255, 255, .05)); }
.tc-bg i:nth-child(2) { width: 60cqw; height: 60cqw; right: -6cqw; top: -18cqw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 100, .28), transparent 62%); animation: breathe 9s ease-in-out infinite alternate; }
.tc-bg i:nth-child(3) { inset: 0; opacity: .14; background:
  repeating-linear-gradient(90deg, transparent 0 7.6cqw, rgba(255, 255, 255, .5) 7.6cqw 7.68cqw),
  repeating-linear-gradient(0deg, transparent 0 7.6cqw, rgba(255, 255, 255, .25) 7.6cqw 7.66cqw);
  mask-image: radial-gradient(70% 60% at 70% 40%, #000, transparent); animation: grid 30s linear infinite; }
@keyframes breathe { to { transform: scale(1.12); opacity: .8; } }
@keyframes grid { to { background-position: 7.68cqw 0, 0 7.66cqw; } }

/* Full-screen pictures, for the report read over them */
.pic { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.tc[data-shot='vo'] .pic.on { opacity: 1; }
.pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; animation: kenburns 38s ease-out both; }
.pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 2, 5, .55) 0%, rgba(10, 2, 5, 0) 18%, rgba(10, 2, 5, .05) 50%, rgba(10, 2, 5, .85) 84%, rgba(10, 2, 5, .95) 100%); }
.pic figcaption { position: absolute; z-index: 1; left: 3cqw; top: 7.6cqw; font: 600 1cqw var(--sans); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .8); text-shadow: 0 0 .5cqw #000; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.16) translate(-1.2%, -1%); } }
.plate { position: absolute; left: 3cqw; top: 9cqw; font: 800 13cqw/0.9 var(--cond); text-transform: uppercase; color: transparent; -webkit-text-stroke: .12cqw rgba(255, 255, 255, .16); opacity: 0; transition: opacity .6s; }
.tc[data-shot='vo'] .plate.on { opacity: 1; }

/* The anchor shot: a box with the story beside the presenter */
.ots { position: absolute; left: 3.5cqw; top: 9.4cqw; width: 50cqw; aspect-ratio: 16 / 9; background: #1a0509 center / cover; border: .3cqw solid #fff; box-shadow: 0 1.2cqw 3cqw rgba(0, 0, 0, .5); opacity: 0; transform: perspective(60cqw) rotateY(8deg) translateX(-2cqw); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.tc[data-shot='anchor'][data-scene='story'] .ots.on { opacity: 1; transform: perspective(60cqw) rotateY(8deg); }
.ots img { width: 100%; height: 100%; object-fit: cover; }
.ots img:not([src]) { display: none; }
.ots figcaption { position: absolute; left: 0; bottom: 0; background: var(--red); font: 800 1.5cqw/1 var(--cond); padding: .7cqw 1.1cqw .55cqw; text-transform: uppercase; letter-spacing: .06em; }
.ots figcaption:empty { display: none; }

/* The presenter: original, illustrated, and labelled as AI */
.presenter { position: absolute; right: 4cqw; bottom: 8.2cqw; width: 30cqw; height: 40cqw; opacity: 0; transform: translateX(3cqw); transition: opacity .45s, transform .55s cubic-bezier(.2, .8, .2, 1); z-index: 1; }
.tc[data-shot='anchor'] .presenter { opacity: 1; transform: none; }
.tc[data-scene='story'][data-shot='anchor'] .presenter { right: 3cqw; }
.presenter-svg { position: absolute; left: 50%; bottom: 3.2cqw; width: 26cqw; transform: translateX(-50%); filter: drop-shadow(0 1cqw 2cqw rgba(0, 0, 0, .45)); }
#p-head { transform-box: view-box; transform-origin: 200px 300px; }
#p-eyes { transform-box: fill-box; transform-origin: center; transition: transform .07s; }
#p-eyes.blink { transform: scaleY(.1); }
#p-lip-low { transition: transform .06s linear; }
.desk { position: absolute; left: -4cqw; right: -4cqw; bottom: 0; height: 7cqw; background: linear-gradient(180deg, #e9ecf2 0%, #c4cad6 9%, #1b0408 10%, #2a060d 100%); border-top: .2cqw solid rgba(255, 255, 255, .7); box-shadow: 0 -1cqw 2cqw rgba(0, 0, 0, .35); display: grid; place-items: center; }
.desk span { font: 800 1.3cqw var(--cond); letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .55); padding-top: .8cqw; }
.strap { position: absolute; left: -2cqw; bottom: 8cqw; display: flex; align-items: stretch; box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .4); opacity: 0; transform: translateX(-2cqw); transition: opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.strap.on { opacity: 1; transform: none; }
.strap b { background: #fff; color: #120206; font: 800 1.7cqw/1 var(--cond); padding: .7cqw 1cqw .55cqw; }
.strap span { background: var(--gold); color: #2a1800; font: 700 1.15cqw/1 var(--cond); padding: .95cqw .8cqw .6cqw; text-transform: uppercase; letter-spacing: .1em; }

/* Top band and bug */
.tb { position: absolute; left: 0; top: 1.6cqw; right: 22cqw; height: 4.2cqw; display: flex; align-items: center; gap: 1.2cqw; padding: 0 1.6cqw 0 2.4cqw; background: linear-gradient(90deg, var(--red-deep), var(--red) 70%, #e8384d); clip-path: polygon(0 0, 100% 0, calc(100% - 1.6cqw) 100%, 0 100%); z-index: 3; box-shadow: 0 .4cqw 1.2cqw rgba(0, 0, 0, .35); }
.tb-live { display: inline-flex; align-items: center; gap: .45cqw; background: #fff; color: var(--red); font: 800 1.2cqw/1 var(--cond); padding: .5cqw .7cqw .38cqw; text-transform: uppercase; letter-spacing: .12em; flex: none; }
.tb-live i { width: .7cqw; height: .7cqw; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
.tb-text { font: 700 1.85cqw/1 var(--cond); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .02em; }
.bug { position: absolute; right: 2.2cqw; top: 1.2cqw; width: 18cqw; display: grid; justify-items: stretch; z-index: 3; filter: drop-shadow(0 .4cqw 1cqw rgba(0, 0, 0, .45)); }
.bug-logo { display: flex; font: 900 1.9cqw/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.bug-logo b { background: var(--red); padding: .8cqw .7cqw .6cqw; flex: 1; text-align: center; font-weight: 900; }
.bug-logo span { background: #fff; color: var(--red); padding: .8cqw .7cqw .6cqw; flex: 1; text-align: center; }
.bug-clock { background: #120206; text-align: center; font: 800 2cqw/1 var(--cond); padding: .5cqw 0 .3cqw; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.bug-date { background: #120206; text-align: center; font: 600 .95cqw/1 var(--cond); padding: 0 0 .5cqw; color: rgba(255, 255, 255, .7); text-transform: uppercase; letter-spacing: .12em; }

.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; z-index: 2; }
.tc[data-scene='story'] .scene-story, .tc[data-scene='opener'] .scene-opener, .tc[data-scene='slate'] .scene-slate, .tc[data-scene='bulletin'] .scene-bulletin { opacity: 1; visibility: visible; transition: opacity .45s ease; }

/* Lower third */
.l3 { position: absolute; left: 3cqw; right: 3cqw; bottom: 9.4cqw; transform: translateY(1.5cqw); opacity: 0; transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .4s, right .5s; }
.tc[data-shot='anchor'] .l3 { right: 37cqw; }
.l3.on { transform: none; opacity: 1; }
.l3-tags { display: flex; gap: 0; align-items: stretch; }
.tag { font: 700 1.2cqw/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; padding: .62cqw 1cqw .5cqw; white-space: nowrap; }
.tag:empty { display: none; }
.tag.beat { background: var(--red); color: #fff; }
.tag.why { background: #fff; color: #120206; }
.tag.status { background: var(--amber); color: #201400; }
.tag.status.good { background: var(--green); color: #02170d; }
.tag.status.alert { background: var(--red); color: #fff; }
.tag.rerun { background: #3a3f52; color: #fff; }
.l3-head { background: #fff; color: #120206; font: 800 3.1cqw/1.12 var(--cond); padding: .9cqw 1.3cqw .75cqw; border-left: .7cqw solid var(--red); text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.l3-head.long { font-size: 2.6cqw; }
.tc:lang(hi) .l3-head { line-height: 1.3; }
.l3-src { background: #120206; color: rgba(255, 255, 255, .88); font: 600 1.15cqw/1.2 var(--cond); letter-spacing: .09em; text-transform: uppercase; padding: .55cqw 1.3cqw .45cqw; border-left: .7cqw solid var(--red-deep); transition: background .4s, color .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l3-src.lit { background: var(--red-deep); color: #fff; border-left-color: #fff; }

/* Cards: background, positions, what is not known */
.card { position: absolute; right: 3cqw; top: 8cqw; width: 43cqw; max-height: 25cqw; overflow: hidden; background: rgba(18, 2, 6, .94); border-top: .4cqw solid var(--gold); padding: 1.5cqw 1.7cqw 1.4cqw; transform: translateX(4cqw); opacity: 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .35s; box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .45); }
.card.on { transform: none; opacity: 1; }
.card-label { font: 700 1.15cqw/1.2 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.card[data-kind='context'] .card-label { color: #9cc3ff; }
.card[data-kind='context'] { border-top-color: #4d8df0; }
.card-who { font: 800 2.1cqw/1.12 var(--cond); margin-top: .6cqw; }
.card-who:empty { display: none; }
.card-text { font: 500 1.62cqw/1.34 var(--sans); margin-top: .7cqw; color: #fff4f4; }
.card-note { font: 500 1cqw/1.3 var(--sans); margin-top: .9cqw; color: rgba(255, 255, 255, .6); }
.card-note:empty { display: none; }

.caption { position: absolute; left: 3cqw; bottom: 9.4cqw; max-width: 60cqw; z-index: 4; background: rgba(0, 0, 0, .78); font: 500 1.5cqw/1.3 var(--sans); padding: .45cqw 1cqw; text-wrap: balance; }
.caption:empty, .tc.nocc .caption { display: none; }

/* Opening, bulletin and slates sit left of the presenter */
.scene-opener, .scene-bulletin, .scene-slate { padding: 8.4cqw 38cqw 10cqw 4cqw; display: flex; flex-direction: column; }
.op-date { font: 700 1.3cqw var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.op-hello { font: 800 5cqw/1.1 var(--cond); margin-top: .4cqw; }
.op-heads { margin-top: 1.6cqw; display: grid; gap: .8cqw; counter-reset: h; }
.op-heads li { display: grid; grid-template-columns: 3cqw 1fr; align-items: start; gap: 1cqw; opacity: 0; transform: translateX(-2cqw); transition: opacity .45s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.op-heads li.on { opacity: .62; transform: none; }
.op-heads li.now { opacity: 1; }
.op-heads li::before { counter-increment: h; content: counter(h); font: 800 2.1cqw/1 var(--cond); background: var(--red); height: 3cqw; display: grid; place-items: center; }
.op-heads li.now::before { background: #fff; color: var(--red); }
.op-heads b { display: block; font: 700 1cqw var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.op-heads span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 700 2.1cqw/1.14 var(--cond); }
.tc:lang(hi) .op-heads span { -webkit-line-clamp: 1; font-size: 2cqw; line-height: 1.4; }
.op-promise { margin-top: auto; font: 600 1.6cqw var(--cond); color: #ffe6e9; opacity: 0; transition: opacity .5s; }
.op-promise.on { opacity: 1; }

.bl-title { display: inline-flex; align-self: flex-start; background: var(--gold); color: #2a1800; font: 900 2.2cqw/1 var(--cond); padding: .7cqw 1.2cqw .55cqw; text-transform: uppercase; letter-spacing: .06em; }
.bl-now { margin-top: 2cqw; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .6cqw 1.2cqw; }
.bl-n { grid-row: span 2; font: 900 6cqw/1 var(--cond); color: var(--red); -webkit-text-stroke: .1cqw #fff; font-variant-numeric: tabular-nums; }
.bl-place { font: 800 1.5cqw/1 var(--cond); color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.bl-place:empty { display: none; }
.bl-head { font: 800 3.4cqw/1.15 var(--cond); text-wrap: balance; animation: wipe .5s cubic-bezier(.2, .8, .2, 1); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tc:lang(hi) .bl-head { line-height: 1.35; font-size: 3cqw; }
.bl-list { margin-top: auto; display: flex; gap: .5cqw; }
.bl-list li { flex: 1; height: .6cqw; background: rgba(255, 255, 255, .22); }
.bl-list li.done { background: var(--red); }
.bl-list li.now { background: #fff; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.scene-slate { justify-content: center; gap: 1cqw; }
.sl-kicker { font: 700 1.3cqw var(--cond); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.sl-head { font: 800 4.6cqw/1.08 var(--cond); text-wrap: balance; }
.sl-sub { font: 500 1.6cqw/1.4 var(--sans); color: #ffe6e9; text-wrap: balance; }

/* Breaking: the full-screen flash */
.flash { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: var(--red); clip-path: inset(0 100% 0 0); pointer-events: none; }
.flash b { font: 900 9cqw/1 var(--cond); text-transform: uppercase; color: #fff; letter-spacing: .02em; text-shadow: 0 .6cqw 0 var(--red-deep); }
.flash.on { animation: flash 2.2s cubic-bezier(.7, 0, .3, 1) both; }
@keyframes flash { 0% { clip-path: inset(0 100% 0 0); } 18%, 70% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }

/* Bottom: the headlines band above the crawl */
.bb { position: absolute; left: 0; right: 0; bottom: 3.6cqw; height: 4.6cqw; display: flex; align-items: stretch; z-index: 5; box-shadow: 0 -.4cqw 1.2cqw rgba(0, 0, 0, .3); }
.bb-label { display: grid; place-items: center; padding: 0 1.6cqw; background: var(--red); font: 900 1.8cqw/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; min-width: 15cqw; }
.bb.breaking .bb-label { background: var(--gold); color: var(--red); animation: alarm 1s steps(2) infinite; }
@keyframes alarm { 50% { background: #fff; } }
.bb-track { flex: 1; background: #fff; overflow: hidden; display: flex; align-items: center; }
.bb-text { color: var(--red); font: 800 2.15cqw/1.1 var(--cond); padding: 0 1.6cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-text.in { animation: wipe .55s cubic-bezier(.2, .8, .2, 1); }
.bb.breaking .bb-track { background: #fff8e0; }

.ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 3.6cqw; display: flex; align-items: stretch; background: #120206; z-index: 5; }
.ticker-label { display: grid; place-items: center; padding: 0 1.2cqw; background: var(--red-deep); font: 800 1.05cqw var(--cond); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; min-width: 15cqw; }
.ticker-track { flex: 1; overflow: hidden; position: relative; }
.ticker-run { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; white-space: nowrap; will-change: transform; font: 600 1.5cqw var(--cond); animation: ticker linear infinite; animation-duration: var(--run, 60s); }
.ticker-run span { padding: 0 1.4cqw; }
.ticker-run b { color: var(--gold); font-weight: 800; margin-right: .6cqw; }
.ticker-run i { width: .9cqw; height: .9cqw; background: var(--red); display: inline-block; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-count { display: grid; place-items: center; padding: 0 1.2cqw; background: var(--red); font: 800 1.2cqw var(--cond); letter-spacing: .1em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticker-count:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .tc-bg i, .pic img, .ticker-run, .tb-live i, .onair.live i, .bb.breaking .bb-label, .flash.on { animation: none; }
  .ticker-run { position: static; overflow: hidden; }
}

/* ---------- Under the stage ---------- */
.controls { display: flex; align-items: center; gap: 10px; padding: 10px 0 0; flex-wrap: wrap; }
.controls[hidden] { display: none; }
.controls button { background: var(--panel); border: 1px solid var(--rule); padding: 6px 12px; cursor: pointer; font-size: 13px; }
.controls button:hover { border-color: var(--dim); }
.controls button[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.controls input[type='range'] { width: 110px; accent-color: var(--red); }

.now { padding: 22px 0; }
.kicker { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.badge.good { color: var(--green); }
.badge.warn { color: var(--amber); }
.badge.alert { color: var(--red); }
.now h2 { font: 700 30px/1.2 var(--serif); margin: 8px 0 10px; text-wrap: balance; }
.now h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 20px 0 6px; }
.now h3 .soft { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.why { color: var(--dim); }
.now dt { font-weight: 700; margin-top: 8px; }
.plain li { padding: 3px 0 3px 16px; position: relative; }
.plain li::before { content: ''; position: absolute; left: 0; top: 12px; width: 7px; height: 2px; background: var(--amber); }
.links li { padding: 5px 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.links b { color: var(--dim); font-weight: 600; margin-right: 8px; }

.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--rule); padding: 16px; }
.panel h2 { font: 700 15px var(--serif); letter-spacing: .06em; text-transform: uppercase; }
.panel summary { cursor: pointer; }
.panel summary h2 { display: inline; }
.hint { color: var(--dim); font-size: 13px; margin-top: 6px; }

.field { display: block; margin-top: 14px; }
.field span, .field-label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 14px 0 6px; }
.field span { margin-top: 0; }
.field select { width: 100%; background: var(--bg); color: inherit; border: 1px solid var(--rule); padding: 8px 10px; font: inherit; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.field input { width: 100%; background: var(--bg); border: 1px solid var(--rule); padding: 8px 10px; }
.field input:focus { border-color: var(--dim); outline: none; }

.beats, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips { margin-top: 8px; }
.chips:empty { display: none; }
.beats label { cursor: pointer; }
.beats input, .seg input { position: absolute; opacity: 0; }
.beats span { display: block; padding: 5px 12px; border: 1px solid var(--rule); border-radius: 99px; text-transform: capitalize; color: var(--dim); }
.beats input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.beats input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chips button { background: none; border: 1px solid var(--dim); border-radius: 99px; padding: 4px 10px 4px 12px; cursor: pointer; }
.chips button::after { content: '×'; margin-left: 8px; color: var(--dim); }
.seg { display: inline-flex; border: 1px solid var(--rule); }
.seg label { cursor: pointer; }
.seg span { display: block; padding: 6px 16px; color: var(--dim); }
.seg input:checked + span { background: var(--ink); color: var(--bg); font-weight: 600; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: var(--dim); font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--red); }

.tabs { display: flex; gap: 4px; margin: 12px 0 4px; border-bottom: 1px solid var(--rule); }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--dim); padding: 6px 10px; cursor: pointer; }
.tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--red); }
.tabs b { font-weight: 400; font-variant-numeric: tabular-nums; }

.stories { max-height: 440px; overflow-y: auto; }
.stories li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.stories li.playing { border-left: 3px solid var(--red); padding-left: 10px; }
.stories li.off, .stories li.aired { opacity: .5; }
.stories .t { font: 600 15px/1.3 var(--serif); overflow-wrap: anywhere; }
.stories .m { font-size: 12px; color: var(--dim); margin-top: 3px; }
.stories .lead { color: var(--red); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stories .mine { color: var(--ink); font-weight: 700; }

.feeds li { display: flex; gap: 8px; justify-content: space-between; padding: 5px 0; font-size: 13px; border-bottom: 1px solid var(--rule); }
.feeds .ok { color: var(--green); }
.feeds .bad { color: var(--amber); text-align: right; overflow-wrap: anywhere; }

.charter { margin-top: 10px; }
.charter li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.charter strong { font-family: var(--serif); display: block; }
.charter span { color: var(--dim); font-size: 13px; display: block; }
.charter em { color: var(--dim); font-size: 12px; font-style: normal; opacity: .8; display: block; margin-top: 4px; }
