/* Dashboard styles, part 8 of 8: menus, Channels, encoder settings, aligned forms, the playlist and guide editors.
 * The parts load in this order, and a later rule wins over an earlier one. */

/* ---------- menus ("⋯") ---------- */
.menu {
  position: absolute; z-index: 90; min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 18px 44px -14px rgba(16, 24, 40, 0.32), 0 2px 6px rgba(16, 24, 40, 0.08);
}
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--text); font: inherit; font-size: 12px; font-weight: 550; text-align: left; cursor: pointer;
}
.menu-item .icon { width: 16px; height: 16px; flex: none; color: var(--muted); }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-2); outline: none; }
.menu-item.danger, .menu-item.danger .icon { color: var(--danger); }
.menu-sep { border-top: 1px solid var(--border); margin: 6px 2px; }
.btn.active { background: var(--surface-2); border-color: var(--border-strong); }
.confirm-text { margin: 0 0 6px; }
.confirm-note { margin: 0 0 6px; }

/* ---------- Channels page ---------- */
.page-note { margin: -6px 0 0; color: var(--muted); }
.ch-card { overflow: visible; }
.ch-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.ch-toolbar[hidden] { display: none; }
.ch-toolbar .search { flex: 1 1 260px; max-width: 360px; }
.ch-toolbar select { width: auto; }
.ch-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.ch-list { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.3fr) max-content max-content max-content; column-gap: 24px; }
.ch-list.no-owner { grid-template-columns: minmax(0, 3fr) max-content max-content max-content; }
.ch-list > .empty { grid-column: 1 / -1; }
.ch-row {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.3fr) 70px 100px 300px;
  column-gap: 24px; align-items: center; padding: 15px 20px; border-top: 1px solid var(--border);
}
.ch-list.no-owner .ch-row { grid-template-columns: minmax(0, 3fr) 70px 100px 300px; }
@supports (grid-template-columns: subgrid) {
  .ch-row, .ch-list.no-owner .ch-row { grid-template-columns: subgrid; }
}
.ch-list > .ch-row:first-child { border-top: 0; }
.ch-hdr { padding-top: 10px; padding-bottom: 10px; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.ch-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 650; font-size: 12.5px; }
.ch-name a { color: var(--text); text-decoration: none; }
.ch-name a:hover { color: var(--accent-strong); text-decoration: underline; }
.ch-sub { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.ch-meta { display: none; }
.ch-num { font-variant-numeric: tabular-nums; }
.ch-acts { display: flex; gap: 6px; justify-content: flex-end; }
.ch-acts .btn { white-space: nowrap; }
.ch-warn { grid-column: 1 / -1; margin-top: 10px; }
.ch-warn .tip-warn { margin: 0; }
@media (max-width: 1180px) {
  .ch-list, .ch-list.no-owner { display: block; }
  .ch-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
  .ch-hdr, .ch-row > .ch-owner, .ch-row > .ch-num { display: none; }
  .ch-main { flex: 1 1 260px; min-width: 0; }
  .ch-meta { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
  .ch-warn { flex-basis: 100%; margin-top: 0; }
}
@media (max-width: 640px) {
  .ch-row { padding: 16px; }
  .ch-acts { justify-content: flex-start; flex-wrap: wrap; }
  .ch-count { margin-left: 0; }
}

/* ---------- encoder settings dialog ---------- */
.modal.wide { width: 660px; }
.enc-top { display: flex; align-items: center; gap: 2px; margin: 2px 0 10px; }
.enc-fld { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.enc-fld .lbl { display: flex; align-items: center; font-weight: 600; font-size: 12px; }
.enc-fld code {
  display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 10px;
  font-family: var(--mono); font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
}
.enc-fld code.dots { color: var(--muted); letter-spacing: 0.08em; }
.enc-fld .acts { display: flex; gap: 6px; }
.enc-note { margin: 2px 0 8px; color: var(--muted); font-size: 12px; }
.enc-sec { display: flex; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.enc-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; margin-top: 12px; font-size: 12px; }
.enc-tips .k { color: var(--muted); font-size: 11.5px; margin-bottom: 2px; }
.enc-tips .v { font-weight: 550; }
.preview-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; min-height: 22px; color: var(--muted); font-size: 12px; }
.preview-line .icon { width: 15px; height: 15px; color: var(--ok); }
.preview-line code { font-family: var(--mono); font-size: 11.5px; color: var(--text); overflow-wrap: anywhere; }
.preview-line.bad { color: var(--danger); }
@media (max-width: 640px) {
  .enc-fld { grid-template-columns: minmax(0, 1fr) auto; }
  .enc-fld .lbl { grid-column: 1 / -1; margin-bottom: -4px; }
  .enc-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- aligned forms: equal columns, every field on the grid ---------- */
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.fgrid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fgrid.one { grid-template-columns: minmax(0, 1fr); align-items: start; }
.fgrid > * { min-width: 0; }
.fgrid label:not(.check) { display: flex; align-items: center; font-size: 11.5px; font-weight: 600; margin-bottom: 6px; }
.fgrid input:not([type=checkbox]):not([type=radio]), .fgrid select { width: 100%; }
.fgrid .span2 { grid-column: span 2; }
.fgrid .span3 { grid-column: span 3; }
.fgrid .full { grid-column: 1 / -1; }
.fgrid .fineprint, .fgrid .form-error { margin: 0; }
.fg-head {
  grid-column: 1 / -1; display: flex; align-items: center; margin: 6px 0 -4px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 650;
}
.fgrid details { grid-column: 1 / -1; }
.fgrid details > summary { cursor: pointer; font-weight: 600; font-size: 12px; }
.fgrid details > .fgrid { margin-top: 12px; }
.fg-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.fg-foot .grow { flex: 1; }
@media (max-width: 900px) {
  .fgrid, .fgrid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid .span3 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .fgrid .span2, .fgrid .wide { grid-column: 1 / -1; }
}
.fgrid[hidden] { display: none; }
.fgrid > .full.stack { gap: 0; }
.pv-warn { padding: 0 16px 14px; }
.pv-warn .tip-warn { margin: 0; }
/* under the preview (2026-10-25): the stream's size and rate, this connection's speed, Link and Embed, the slow warning */
.pv-bar.pv-bar2 { border-top: 0; padding-top: 0; }
.pv-facts { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-facts b { color: var(--text); font-weight: 600; }
.pv-speed { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.pv-speed[hidden] { display: none; }
.pv-speed .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.pv-speed b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.pv-speed.ok .dot { background: var(--ok); }
.pv-speed.warn .dot, .pv-speed.bad .dot { background: var(--warn); }
.pv-speed.bad b { color: var(--warn); }
.pv-slow { padding: 14px 16px; background: var(--warn-tint); border-top: 1px solid var(--warn-border); }
.pv-slow[hidden] { display: none; }
.pv-slow p { margin: 0 0 6px; }
.pv-slow .pv-slow-title { font-weight: 700; color: var(--warn); }
.pv-slow-btns { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pv-still { position: absolute; inset: 0; background: #0b1220; }
.pv-still[hidden], .pv-still img[hidden], .pv-still .msg[hidden], .preview .pl[hidden] { display: none; }
.pv-still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.pv-still .msg { position: absolute; inset: 0; display: grid; place-items: center; color: #cbd5e1; font-size: 12px; }
.pv-still .pv-play { position: absolute; left: 12px; bottom: 12px; }
p.tip-warn.label-tip { display: flex; }
.search input { padding-left: 34px; }
.modal.danger .modal-ico { background: var(--danger-soft); color: var(--danger); box-shadow: 0 0 0 1px var(--danger-border); }
.fg-foot > .form-error { flex: 1; margin: 0; text-align: left; }

/* ---------- playlist and guide editors ---------- */
.card > .pg-settings { border-bottom: 1px solid var(--border); }
.pg-settings .set-row:first-child { border-top: 0; }
.pg-settings[hidden] { display: none; }
.pg-body { padding: 20px 24px 24px; }
/* Add videos: this channel's uploads, above the strip or the playlist */
.channel-uploads { margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.in-detail .channel-uploads { margin: 12px 0 0; }
.pg-strip { margin-bottom: 26px; }
.pg-strip[hidden] { display: none; }
.pg-strip-head { font-size: 12px; font-weight: 650; margin-bottom: 2px; }
.pg-labels { position: relative; height: 22px; overflow: hidden; }
.pg-lab { position: absolute; bottom: 5px; font-size: 11.5px; font-weight: 650; color: var(--accent-strong); white-space: nowrap; }
.pg-lab::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 1px; height: 5px; background: var(--accent); }
.pg-lab.end { right: 0; }
.pg-lab.end::after { left: auto; right: 0; }
.pg-bar { position: relative; height: 30px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.pg-seg { position: absolute; top: 0; bottom: 0; }
.pg-seg.loop, .pg-key.loop, .pg-seg.between, .pg-key.between { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.pg-seg.fixed, .pg-key.fixed { background: var(--accent); }
.pg-seg.filler, .pg-key.filler { background: repeating-linear-gradient(135deg, var(--surface-2) 0 4px, var(--border-strong) 4px 5px); }
.pg-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--danger); }
.pg-ticks { position: relative; height: 18px; margin-top: 5px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pg-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.pg-ticks span:first-child { transform: none; }
.pg-ticks span:last-child { transform: translateX(-100%); }
.pg-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.pg-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--border); }
.pg-key.now { width: 3px; border: 0; background: var(--danger); }
.pg-sec + .pg-sec { margin-top: 28px; }
.pg-sec-head { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.pg-sec-head h3 { font-size: 12.5px; margin: 0; }
.pg-sec-head .meta { color: var(--muted); font-size: 12px; margin-left: 10px; }
.pg-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.pg-list > .pg-group + .pg-group { border-top: 1px solid var(--border); }
.pg-row {
  display: grid; grid-template-columns: 26px 160px minmax(0, 1fr) 170px max-content; grid-template-areas: "num when main next acts";
  align-items: center; gap: 14px; padding: 10px 14px 10px 16px;
}
.pg-row.can-open { cursor: pointer; }
.pg-row.can-open:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
.pg-row.open { background: var(--surface-2); }
.pg-num { grid-area: num; color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; text-align: right; }
.pg-when { grid-area: when; min-width: 0; }
.pg-main { grid-area: main; min-width: 0; }
.pg-open { display: block; width: 100%; min-width: 0; padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: inherit; }
button.pg-open:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: 6px; }
.pg-title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-sub { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.pg-tags[hidden] { display: none; }
.pg-pill { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); border: 1px solid var(--accent-border); font-weight: 650; font-size: 11.5px; white-space: nowrap; }
.pg-then { color: var(--muted); font-size: 11.5px; padding-left: 10px; white-space: nowrap; }
.pg-next { grid-area: next; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-next.on { color: var(--ok); font-weight: 650; }
.pg-next .k { display: none; }
.pg-acts { grid-area: acts; display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.pg-play .icon { width: 13px; height: 13px; }
.pg-panel { padding: 16px 18px 18px 56px; background: var(--surface-2); border-top: 1px solid var(--border); }
.pg-panel textarea { width: 100%; min-height: 64px; font: inherit; font-size: 12px; resize: vertical; }
.pg-panel .fgrid { align-items: start; }
.pg-flabel { display: block; font-size: 11.5px; font-weight: 600; margin-bottom: 6px; }
.pg-days { display: flex; flex-wrap: wrap; gap: 4px; }
.pg-days .pl-day { width: 34px; height: 36px; }
.pg-panel-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.pg-panel-foot .grow { flex: 1; }
.pg-add { margin-top: 10px; }
.pg-empty { padding: 18px; color: var(--muted); text-align: center; font-size: 12px; }
@media (max-width: 760px) {
  .pg-body { padding: 16px; }
  .pg-row { grid-template-columns: minmax(0, 1fr) max-content; grid-template-areas: "when acts" "main main" "next next"; gap: 4px 10px; padding: 12px 14px; }
  .pg-num { display: none; }
  .pg-next .k { display: inline; color: var(--muted); }
  .pg-panel { padding: 14px; }
  .pg-ticks span:nth-child(even) { display: none; }
  .pg-play .t { display: none; }
}

/* A paused channel's row: tinted, so it stands out from the offline ones. */
.ch-row.paused { background: var(--warn-tint); }
.paused-note { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.paused-note .grow { flex: 1; }
.pg-next.paused { color: var(--warn); font-weight: 600; }

/* A 24/7 channel's logo card: preview (the channel's picture with the logo
   placed as the server places it) beside the settings. */
.logo-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.logo-prev { padding: 20px 24px; }
.logo-frame { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: 8px; overflow: hidden; }
.logo-frame.over { outline: 2px dashed var(--accent); outline-offset: 2px; }
.logo-frame > .logo-pic { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-frame > .logo-mark { position: absolute; display: block; pointer-events: none; }
.logo-frame > .logo-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b8bdc8; font-size: 12px; }
.logo-frame > [hidden] { display: none; }
.logo-cap { color: var(--muted); font-size: 11.5px; margin-top: 8px; }
.logo-rows { border-left: 1px solid var(--border); }
.logo-rows .set-row:first-child { border-top: 0; }
.logo-rows input[type=range] { width: 170px; accent-color: var(--accent); }
.logo-rows .dropzone { width: 100%; padding: 22px 16px; }
.logo-none .logo-rows .dimmable { opacity: .5; }
.logo-val { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.corner-name { font-weight: 600; min-width: 84px; }
.corner-pick { position: relative; width: 84px; height: 48px; flex: none; border: 1.5px solid var(--border-strong); border-radius: 6px; background: var(--surface-2); }
.corner-pick button { position: absolute; width: 22px; height: 13px; padding: 0; border-radius: 3px; border: 1.5px solid var(--border-strong); background: var(--surface); cursor: pointer; }
.corner-pick button[aria-checked=true] { background: var(--accent); border-color: var(--accent); }
.corner-pick button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.corner-pick button:disabled { cursor: default; }
.corner-pick .top-left { top: 5px; left: 5px; }
.corner-pick .top-right { top: 5px; right: 5px; }
.corner-pick .bottom-left { bottom: 5px; left: 5px; }
.corner-pick .bottom-right { bottom: 5px; right: 5px; }
@media (min-width: 641px) { .logo-rows .set-label { flex: 1 1 150px; } .logo-rows .set-control { flex-wrap: nowrap; } }
@media (max-width: 900px) {
  .logo-body { grid-template-columns: minmax(0, 1fr); }
  .logo-prev { padding: 16px; }
  .logo-rows { border-left: 0; border-top: 1px solid var(--border); }
}

/* The playlist editor's video picker (media-picker.js): tick many videos, add them in one go. */
.modal.pick { width: min(640px, calc(100vw - 32px)); }
.pick-tools { display: flex; gap: 10px; align-items: center; margin: 2px 0 12px; flex-wrap: wrap; }
.pick-tools input[type="search"] { flex: 1; min-width: 160px; }
.pick-link { font: inherit; font-size: 12px; font-weight: 600; color: var(--accent-strong); background: none; border: 0; padding: 4px 2px; cursor: pointer; }
.pick-link:hover { text-decoration: underline; }
.pick-link:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: 4px; }
.pick-list { border: 1px solid var(--border); border-radius: 12px; max-height: min(380px, 50vh); overflow: auto; overscroll-behavior: contain; }
.pick-list:empty { display: none; }
.pick-group { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; padding: 8px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.pick-row { display: grid; grid-template-columns: 22px 40px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 12.5px; cursor: pointer; }
.pick-row:last-child { border-bottom: 0; }
.pick-row:hover:not(.off) { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
.pick-row.on { background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
.pick-row.off { cursor: default; color: var(--muted); }
.pick-row input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.pick-row:focus-within { box-shadow: inset 0 0 0 2px var(--ring); }
/* Up to "10000": a circle that grows into a pill for longer numbers. */
.pick-ord { justify-self: start; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pick-ord:empty { padding: 0; }
.pick-row.on .pick-ord { color: #fff; background: var(--accent); }
.pick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.pick-len { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.pick-tag { font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.pick-tag.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.pick-none { margin: 4px 0 0; color: var(--muted); }
.pick-sum { margin-right: auto; font-size: 12px; color: var(--muted); }
.pick-sum.bad { color: var(--danger); font-weight: 600; }
@media (max-width: 560px) {
  .pick-row { grid-template-columns: 22px 40px minmax(0, 1fr) auto; gap: 8px; }
  /* No room for "in the playlist"; "can't be played" stays (its row has no length). */
  .pick-row > :nth-child(4):not(.bad) { display: none; }
  .pick-row > .pick-len:empty { display: none; }
  .pick .modal-foot .pick-sum { flex-basis: 100%; }
  .pick .modal-foot .btn { flex: 1; justify-content: center; }
}

/* The sidebar folds to its icons (js/ui/sidebar.js; class side-slim on <html>, set
   before the first paint). Not under 900 px, where the sidebar is a top bar. */
.sidebar { z-index: 45; }
.side-fold { position: absolute; top: 76px; right: -13px; z-index: 2; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--muted); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12); cursor: pointer; }
.side-fold:hover { color: var(--text); border-color: var(--border-strong); }
.side-fold:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.side-fold .icon { width: 14px; height: 14px; transition: transform 0.15s; }
.signout-ico { display: none; }
.nav-tip { position: fixed; z-index: 90; transform: translateY(-50%); pointer-events: none; background: #111827; color: #fff; font-size: 12px; font-weight: 600; line-height: 1; padding: 8px 10px; border-radius: 7px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.nav-tip::before { content: ""; position: absolute; left: -5px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 0; border-right-color: #111827; }
@media (min-width: 901px) {
  :root.side-slim { --sidebar: 68px; }
  .side-slim .side-fold .icon { transform: rotate(180deg); }
  .side-slim .sidebar { padding: 0 10px 12px; }
  .side-slim .sidebar-top { justify-content: center; padding: 0; }
  .side-slim .brand { font-size: 0; gap: 0; }
  .side-slim .clock { display: none; }
  .side-slim .nav { margin: 0 -10px; padding: 0 10px 8px; }
  .side-slim .nav-group { font-size: 0; padding: 9px 6px 7px; }
  .side-slim .nav-group::after { content: ""; display: block; height: 1px; background: var(--border); }
  .side-slim .nav-group:first-child { display: none; }
  .side-slim .nav a { justify-content: center; padding: 10px 0; }
  .side-slim .nav a > span:not(.count) { display: none; }
  .side-slim .nav a .count { position: absolute; top: 2px; right: 1px; margin: 0; padding: 0 5px; font-size: 10px; line-height: 15px; }
  .side-slim .nav a[aria-current="page"]::before { left: -10px; }
  .side-slim .sidebar-foot { flex-direction: column; justify-content: center; align-items: center; gap: 8px; }
  .side-slim #whoami, .side-slim #version { display: none !important; }
  .side-slim #health-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .side-slim .signout-text { display: none; }
  .side-slim .signout-ico { display: block; width: 18px; height: 18px; }
  .side-slim #signout { padding: 6px; }
}
@media (max-width: 900px) {
  .side-fold, .nav-tip { display: none !important; }
}

/* ---------- the 24/7 channel list (2026-10-25): one row per channel, kept and filled in place */
.po-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.po-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.po-table th { text-align: left; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.po-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.po-table tbody tr:last-child td { border-bottom: 0; }
.po-table tbody tr:hover td { background: var(--surface-2); }
.po-table td.po-c-pic, .po-table th.po-c-pic { width: 112px; padding-right: 4px; }
.po-pic { position: relative; display: block; width: 112px; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: #0b1220; }
.po-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.po-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #cbd5e1; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; }
.po-ph[hidden], .po-pic img[hidden] { display: none; }
.po-namerow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.po-name { font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.po-name:hover { color: var(--accent); }
.po-sub { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.po-sub .icon { width: 14px; height: 14px; flex: none; }
.po-sub.warn { color: var(--warn); font-weight: 600; }
.po-sub.bad { color: var(--danger); font-weight: 700; }
.po-c-now { min-width: 200px; }
.po-now-t { font-weight: 600; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-now-t.dim { color: var(--muted); font-weight: 500; }
.po-now-t.live { color: var(--danger); }
.po-prog { height: 4px; max-width: 280px; margin: 6px 0 3px; border-radius: 2px; background: var(--border); overflow: hidden; }
.po-prog i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.po-prog[hidden], .po-time[hidden] { display: none; }
.po-time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.po-next { display: inline-flex; gap: 6px; align-items: baseline; max-width: 240px; min-width: 0; color: var(--muted); font-size: 12px; }
.po-next b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.po-next span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-table td.po-c-act { text-align: right; white-space: nowrap; }
.po-c-act > * { vertical-align: middle; }
.po-c-act > * + * { margin-left: 6px; }
/* Narrower than six columns can hold: each channel becomes a small card. */
@media (max-width: 1180px) {
  .po-table thead { display: none; }
  .po-table, .po-table tbody { display: block; }
  .po-table tr { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .po-table tbody tr:last-child { border-bottom: 0; }
  .po-table td, .po-table td.po-c-pic { display: block; width: auto; padding: 0; border: 0; }
  .po-table tbody tr:hover td { background: none; }
  .po-table td.po-c-pic { grid-row: 1 / span 3; }
  .po-c-name { grid-column: 2; }
  .po-c-status { grid-column: 3; grid-row: 1; }
  .po-c-now { grid-column: 2 / span 2; min-width: 0; }
  .po-c-next { grid-column: 2 / span 2; }
  .po-table td.po-c-act { grid-column: 2 / span 2; text-align: left; margin-top: 6px; }
  .po-now-t, .po-prog, .po-next { max-width: none; }
}
@media (max-width: 560px) {
  .po-table tr { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 4px 10px; }
  .po-pic { width: 88px; }
  .po-table td.po-c-act { grid-column: 1 / -1; }
}

/* ---------- a 24/7 channel's page (2026-10-24): on air, up next, open tabs */
/* minmax(0, 1fr): a grid track would otherwise grow to its widest table (the
   as-run log made a phone page 513 px wide). */
.pc-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pc-body > [hidden], .pc-settings[hidden] { display: none !important; }
.pc-settings { margin-bottom: 16px; }
.pc-onair, .pc-paused { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.pc-paused { grid-template-columns: minmax(0, 1fr) auto; padding: 18px 20px; }
.pc-shot { display: grid; gap: 6px; min-width: 0; }
.pc-pic { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b1220; }
.pc-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pc-pic img[hidden], .pc-pic .msg[hidden] { display: none; }
.pc-pic .msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center; color: #cbd5e1; font-size: 11.5px; }
.pc-cap { font-size: 11.5px; color: var(--muted); }
.pc-kicker { font-size: 11px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ok); }
.pc-kicker.live { color: var(--danger); }
.pc-kicker.idle { color: var(--muted); }
.pc-title { font-size: 17px; font-weight: 700; margin: 2px 0; overflow-wrap: anywhere; }
.pc-sub { color: var(--muted); font-size: 12px; margin: 0; }
.pc-bar { height: 6px; max-width: 560px; margin: 10px 0 5px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.pc-bar i { display: block; width: 0; height: 100%; background: var(--accent); }
.pc-times { display: flex; justify-content: space-between; max-width: 560px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pc-skipnote { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); }
.pc-bar[hidden], .pc-times[hidden], .pc-btns[hidden], .pc-skipnote[hidden] { display: none; }
.pc-btns { display: flex; gap: 8px; }
.pc-upnext { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.pc-upnext:empty { display: none; }
.pc-label { align-self: center; margin-right: 4px; font-size: 11px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pc-next { display: grid; gap: 2px; flex: 1 1 180px; min-width: 0; padding: 9px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.pc-next b { font-size: 12px; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.pc-next .t { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-next small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.pc-next.idle .t { color: var(--muted); }
.pc-none { align-self: center; margin: 0; font-size: 12px; color: var(--muted); }
/* The page's tabs sit in its grid, which spaces them already. */
.subtabs.pc-tabs { margin: 4px 0 0; }
.pc-count { margin-left: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pc-asrun-head { justify-content: flex-start; flex-wrap: wrap; }
.pc-asrun-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pc-asrun-tools label { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.pc-asrun-tools select { width: auto; }
.pc-asrun td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-asrun .t { font-weight: 600; }
.pc-pager { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.pc-pager:empty { display: none; }
.pc-pager .grow { flex: 1; }
@media (max-width: 700px) {
  .pc-onair { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }
  .pc-paused { grid-template-columns: minmax(0, 1fr); }
  .pc-title { font-size: 15px; }
  .pc-btns .btn { flex: 1 1 0; justify-content: center; }
  .pc-upnext { flex-direction: column; gap: 6px; }
  .pc-label { align-self: flex-start; }
  .pc-next { flex: none; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 8px 11px; }
  .pc-asrun-tools { width: 100%; margin-left: 0; }
}

/* ---------- the playlist editor (2026-10-24): toolbar, today, two tables,
   a Save bar that stays in view */
.pe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pe > [hidden] { display: none !important; }
.pe > .channel-uploads { margin: 0; }
.pe-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.pe-tool { display: flex; align-items: center; gap: 8px; }
.pe-tool > label { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pe-tool select { width: auto; max-width: 260px; }
.pe-tool input[type=datetime-local] { width: auto; }
.pe-tool input[hidden] { display: none; }
.pe-started { font-size: 12px; color: var(--muted); }
.pe-tools .grow, .pe-box-head .grow { flex: 1; }
.pe-notes > * { margin: 0; }
.pe-notes > * + * { margin-top: 10px; }
.pe-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pe-box-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.pe-box-head h3 { margin: 0; font-size: 13.5px; }
.pe-box-head .meta { font-size: 12px; color: var(--muted); }
.pe-box-head .pg-legend { margin: 0; }
.pe-day { padding: 14px 18px 10px; }
.pg-bar.inside { height: 44px; }
.pg-bar.inside .pg-seg { padding: 5px 6px; overflow: hidden; box-shadow: inset -1px 0 0 var(--surface); }
.pg-bar.inside .pg-seg.loop.alt { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.pg-in { display: block; font-size: 11.5px; font-weight: 650; line-height: 1.25; color: var(--accent-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-seg small { display: block; font-size: 10.5px; opacity: 0.85; white-space: nowrap; overflow: hidden; }
.pg-seg.fixed .pg-in, .pg-seg.fixed small { color: var(--on-accent); }
.pe-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pe-table th { padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pe-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.pe-table tbody tr:last-child td { border-bottom: 0; }
.pe-table .c-ck { width: 34px; padding-left: 18px; padding-right: 4px; }
.pe-ck { display: flex; align-items: center; margin: 0; cursor: pointer; }
.pe-table input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.pe-table .c-grip { width: 28px; padding: 0 2px; }
.pe-table .c-num { width: 30px; text-align: right; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.pe-table .c-when { width: 170px; }
.pe-table .c-main { width: 100%; max-width: 0; }
.pe-table .c-len { width: 86px; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.pe-table .c-next { width: 160px; white-space: nowrap; }
.pe-table .c-play { width: 1%; padding-right: 0; white-space: nowrap; }
.pe-table .c-acts { width: 1%; padding-right: 18px; text-align: right; white-space: nowrap; }
.pe-table .pg-next { overflow: visible; }
.pe-row.can-open { cursor: pointer; }
.pe-row.can-open:hover td { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.pe-row.sel td { background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
.pe-row.open td { background: var(--surface-2); }
.pe-row.on-air td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.pe-row.follow .c-when { padding-left: 26px; }
.pe-row.follow .pg-then { padding-left: 0; }
.pe-open { display: block; width: 100%; min-width: 0; padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: inherit; }
button.pe-open:focus-visible { outline: none; border-radius: 6px; box-shadow: 0 0 0 3px var(--ring); }
.pe-title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-sub { display: block; margin-top: 1px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-grip { display: grid; place-items: center; width: 24px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--faint); cursor: grab; }
.pe-grip:hover { background: var(--surface-2); color: var(--muted); }
.pe-grip:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.pe-grip .icon { width: 16px; height: 16px; stroke-width: 3.2; }
.pe-row.dragging td { opacity: 0.45; }
.pe-row.drop-before td { box-shadow: inset 0 2px 0 var(--accent); }
.pe-row.drop-after td { box-shadow: inset 0 -2px 0 var(--accent); }
.pe-panel-row > td { padding: 0; background: var(--surface-2); }
.pe-panel-row .pg-panel { border-top: 0; }
.pe-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 18px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); font-size: 12px; }
.pe-selbar[hidden] { display: none; }
.pe-selbar b { color: var(--accent-strong); }
.pe-selbar .grow { flex: 1; }
.pe-empty { margin: 0; padding: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.pe-savebar { position: sticky; bottom: 12px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 11px 16px; background: var(--surface); border: 1px solid var(--accent-border); border-radius: 12px; box-shadow: 0 10px 30px rgba(16, 24, 40, 0.16); }
.pe-save-msg { flex: 1; min-width: 0; font-size: 12.5px; }
.pe-save-msg b { color: var(--warn); }
.pe-savebar .form-error { margin: 0; }
.pe-savebar .form-error:empty { display: none; }
@media (max-width: 700px) {
  .pe-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pe-tool { flex-wrap: wrap; }
  .pe-tool > label { min-width: 74px; }
  .pe-tool select { flex: 1; max-width: none; }
  .pe-tools .grow { display: none; }
  .pe-box-head { padding: 12px 14px; }
  .pe-day { padding: 12px 14px 8px; }
  .pe-table thead { display: none; }
  .pe-table, .pe-table tbody { display: block; }
  .pe-table tr.pe-row { display: grid; grid-template-columns: 30px auto minmax(0, 1fr) auto; grid-template-areas: "ck main main acts" "ck next len acts"; column-gap: 8px; row-gap: 2px; padding: 10px 12px 10px 4px; border-bottom: 1px solid var(--border); }
  .pe-table tr.pe-row.has-when { grid-template-areas: "ck when when acts" "ck main main acts" "ck next len acts"; }
  .pe-table tbody tr.pe-row td { display: block; padding: 0; border: 0; background: none; box-shadow: none; }
  .pe-table tr.pe-row.sel { background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
  .pe-table tr.pe-row.open { background: var(--surface-2); }
  .pe-table tr.pe-row.on-air { box-shadow: inset 3px 0 0 var(--ok); }
  .pe-table tbody tr.pe-row:last-child { border-bottom: 0; }
  .pe-table .c-grip, .pe-table .c-num, .pe-table .c-play { display: none !important; }
  .pe-table .c-ck { grid-area: ck; align-self: start; width: auto; padding: 2px 0 0 8px !important; }
  .pe-table .c-when { grid-area: when; width: auto; padding-bottom: 2px !important; }
  .pe-table .c-main { grid-area: main; width: auto; max-width: none; }
  .pe-table .c-next { grid-area: next; width: auto; font-size: 11.5px; }
  .pe-table .c-len { grid-area: len; width: auto; font-size: 11.5px; }
  .pe-table .c-len::before { content: "· "; }
  .pe-table .c-acts { grid-area: acts; align-self: center; width: auto; }
  .pe-table .pg-next .k { display: inline; color: var(--muted); }
  .pe-row.follow .c-when { padding-left: 0; }
  .pe-table .pe-panel-row, .pe-table .pe-panel-row > td { display: block; }
  .pe-selbar { padding: 8px 14px; }
  .pe-savebar { bottom: 8px; }
  .pe-save-msg { flex-basis: 100%; }
}

/* Rewind (the stream's Output tab, Server → Playback) */
.rw-sel { min-width: 180px; }
.rw-now { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rw-now .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.rw-now b { color: var(--text); font-weight: 600; }
.rw-held { margin-left: 8px; color: var(--warn); font-size: 11.5px; font-weight: 600; }
.rw-low { color: var(--warn); font-weight: 600; }
.rw-table .rw-total td { font-weight: 700; background: var(--surface-2); }
.rw-table td a { font-weight: 600; }

/* Adaptive bitrate qualities (the stream's Output tab) */
.tq-editor { padding: 0 24px 18px; }
.tq-table td { vertical-align: middle; }
.tq-size { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.tq-size b { font-weight: 600; min-width: 44px; }
.tq-kbps { display: inline-flex; align-items: center; gap: 6px; }
.tq-kbps input { width: 96px; min-width: 0; }
.tq-kbps input:disabled { opacity: 0.5; }
.tq-over { margin-left: 8px; color: var(--muted); font-size: 11.5px; }
.tq-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; }
.tq-btns { display: inline-flex; gap: 8px; }
.tq-editor .tip-warn { margin-top: 10px; }
.tq-sug { display: none; }
@media (max-width: 640px) {
  .tq-editor { padding: 0 16px 16px; }
  .tq-over, .tq-sug { display: block; margin: 2px 0 0 26px; color: var(--muted); font-size: 11.5px; }
  .tq-table th:nth-child(3), .tq-table td:nth-child(3) { display: none; }
  .tq-kbps input { width: 84px; }
}
.tq-over[hidden] { display: none; }

/* TR 101 290: the pill is a button that opens the report (ui/ts-report.js) */
/* A long error list wraps (a phone), its corners still round on one line. */
.pill-btn { border: 0; cursor: pointer; font-family: inherit; white-space: normal; text-align: left; max-width: 100%; border-radius: 12px; }
.pill-btn:hover { filter: brightness(0.96); }
.pill-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.modal.ts-report { width: min(980px, calc(100vw - 32px)); }
.ts-report h3 { font-size: 13px; margin: 18px 0 8px; }
.ts-report .ts-sum { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ts-report .ts-off td { color: var(--muted); }
.ts-report td.num, .ts-report th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ts-report .ts-bad { color: var(--warn); font-weight: 600; }
.ts-report tr.ts-group td { background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 600; padding-top: 7px; padding-bottom: 7px; }
.ts-report tbody tr:not(.ts-group) td:first-child { white-space: nowrap; }
/* Likely cause and what to do (the server's tsmon.Advise), above the checks */
.ts-report .ts-advice-item { border: 1px solid var(--border); border-left: 3px solid var(--warn); border-radius: 8px; padding: 10px 12px; background: var(--surface); }
.ts-report .ts-advice-item + .ts-advice-item { margin-top: 8px; }
.ts-report .ts-advice-checks { font-size: 11.5px; font-weight: 600; color: var(--warn); margin-bottom: 4px; }
.ts-report .ts-advice-item p { margin: 0; font-size: 12.5px; line-height: 1.5; }
.ts-report .ts-advice-item p + p { margin-top: 4px; }
.ts-report .ts-advice-fix strong { font-weight: 600; }
/* What the errors mean for viewers comes first: the server judges each
   report (tsmon.Verdict); notes that can't reach viewers are folded, grey. */
.ts-report .ts-verdict { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--ok-border); background: var(--ok-tint); border-radius: 10px; padding: 12px 14px; }
.ts-report .ts-verdict-warn { border-color: var(--warn-border); background: var(--warn-tint, var(--warn-soft)); }
.ts-report .ts-verdict-icon { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--surface); background: var(--ok); }
.ts-report .ts-verdict-warn .ts-verdict-icon { background: var(--warn); }
.ts-report .ts-verdict-title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.ts-report .ts-verdict p { margin: 0; font-size: 12.5px; line-height: 1.5; }
.ts-report .ts-verdict p + p { margin-top: 4px; }
.ts-report .ts-advice-item.ts-note { border-left-color: var(--border-strong); }
.ts-report .ts-note .ts-advice-checks { color: var(--muted); }
.ts-report .ts-noted { color: var(--muted); }
.ts-report .ts-fold { margin-top: 14px; }
.ts-report .ts-fold > summary { cursor: pointer; font-weight: 600; font-size: 12.5px; padding: 6px 0; }
.ts-report .ts-fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ts-report .ts-fold[open] > summary { margin-bottom: 6px; }
.ts-report .ts-fold > .ts-advice > .fineprint { margin: 0 0 8px; }
@media (max-width: 640px) {
  .ts-report .data th, .ts-report .data td { padding-left: 8px; padding-right: 8px; }
}

/* Broadcast → Analyse (pages/broadcast/analyse.js) */
.an-judge { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.an-judge .label-tip { font-size: 11.5px; font-weight: 600; }
.an-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.data tr.an-selected td { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.an-h { font-size: 13px; margin: 18px 0 8px; }
.an-report dd code { overflow-wrap: anywhere; }
.an-strip { display: flex; align-items: flex-end; gap: 2px; height: 56px; border-bottom: 1px solid var(--border); }
.an-strip span { flex: 1 1 0; min-width: 2px; max-width: 16px; border-radius: 2px 2px 0 0; background: var(--ok); opacity: 0.45; }
.an-strip span.p1 { background: var(--danger); opacity: 1; }
.an-strip span.p2 { background: var(--warn); opacity: 1; }
.an-strip span.p3 { background: var(--info); opacity: 1; }
.an-strip span.gap { background: var(--border); opacity: 1; }
.an-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.an-report .ts-report { margin-top: 18px; }

/* The stream page's Viewers tab and the figures links (Viewers tab, Channels page). */
:root { --vw-bar: #4f46e5; }
:root[data-theme="dark"] { --vw-bar: #7c83f5; }
.vw-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.vw-tools .seg { flex: 0 1 auto; max-width: 100%; flex-wrap: wrap; }
.vw .kpis { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.vw-note { font-size: 12px; margin: 0; }
.vw-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 160px auto; column-gap: 8px; }
.vw-axis { display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin: -6px 0; }
.vw-plot { position: relative; }
.vw-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.vw-grid i { display: block; border-top: 1px solid var(--border); }
.vw-grid i:last-child { border-top-color: var(--border-strong); }
.vw-bars { position: relative; height: 100%; display: grid; gap: 2px; align-items: end; outline: none; }
.vw-bars.dense { gap: 1px; }
.vw-bars:focus-visible { box-shadow: 0 0 0 3px var(--ring); border-radius: 4px; }
.vw-bar { height: 100%; display: flex; align-items: flex-end; cursor: default; }
.vw-bar span { display: block; width: 100%; background: var(--vw-bar); border-radius: 4px 4px 0 0; min-height: 0; }
.vw-bars.dense .vw-bar span { border-radius: 2px 2px 0 0; }
.vw-bar.on span { background: var(--accent-strong); }
.vw-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--toast); color: #fff; border-radius: var(--radius-sm); padding: 6px 10px; font-size: 11.5px; white-space: nowrap; pointer-events: none; display: flex; flex-direction: column; gap: 1px; box-shadow: var(--shadow-lg); z-index: 2; }
.vw-tip strong { font-size: 12.5px; }
.vw-ticks { grid-column: 2; position: relative; height: 18px; font-size: 11.5px; color: var(--muted); }
.vw-ticks span { position: absolute; top: 4px; white-space: nowrap; }
.vw-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.vw-split .card { margin: 0; }
.vw-share { display: grid; grid-template-columns: minmax(90px, 1.2fr) minmax(60px, 2fr) auto; align-items: center; gap: 10px; padding: 5px 0; font-size: 12.5px; }
.vw-share-bar { height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.vw-share-bar span { display: block; height: 100%; background: var(--vw-bar); border-radius: 4px; }
.vw-share-val { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; }
.vw-days .num, .vw-days th.num { text-align: right; font-variant-numeric: tabular-nums; }
.vw-missing td { color: var(--muted); }
.vw-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.vw-link code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 640px) {
  .vw-chart { grid-template-rows: 130px auto; }
  .vw-share { grid-template-columns: minmax(80px, 1fr) minmax(40px, 1fr) auto; }
}

/* Multiview: a summary of all channels, then the wall with a details panel
   beside it (wide screens) or the list, grouped by type. */
.mv-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 14px; overflow: hidden; box-shadow: var(--shadow); }
.mv-sum { padding: 9px 14px; border-right: 1px solid var(--border); min-width: 0; }
.mv-sum:last-child { border-right: 0; }
.mv-sum small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.mv-sum strong { font-size: 19px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mv-sum strong em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 5px; letter-spacing: 0; }
.mv-sum.bad strong { color: var(--danger); }
.mv-sum.warn strong { color: var(--warn); }
.mv .head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mv .seg button { display: inline-flex; align-items: center; gap: 5px; }
.mv .seg .icon { width: 13px; height: 13px; }
.mv-sizes button { min-width: 30px; justify-content: center; }
.mv-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1100px) { .mv.is-wall .mv-body { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 1099px) { .mv .mv-insp { display: none; } }
.mv-main { min-width: 0; }
/* the wall: the picture first, the name and figures under it */
.mv-wall { --tile: 230px; gap: 10px; }
.mv-wall .tile { border-radius: 10px; box-shadow: 0 0 0 1px var(--border), var(--shadow); border: 0; }
.mv-wall .tile:hover { box-shadow: 0 0 0 1px var(--accent-border), var(--shadow); }
.mv-wall .tile.sel { box-shadow: 0 0 0 2px var(--accent), 0 6px 18px -8px rgba(79, 70, 229, 0.45); }
.mv-wall .tile.alarm { box-shadow: 0 0 0 2px var(--danger); }
.mv-wall .tile.warn { box-shadow: 0 0 0 2px var(--warn-border-strong); }
.mv-wall .tile.alarm .tile-info { background: var(--danger-tint); }
.mv-wall .tile.warn .tile-info { background: var(--warn-tint); }
.mv-wall .tile.sel.alarm { box-shadow: 0 0 0 2px var(--danger), 0 0 0 4px var(--accent-border); }
.mv-wall .tile-info { border-top: 0; padding: 7px 10px 8px; gap: 2px; }
.mv-wall .tile-head .name { font-size: 12px; }
.mv-wall .tile-head .name:hover { text-decoration: underline; text-underline-offset: 2px; }
.mv-wall .tile-line { gap: 8px; font-size: 11.5px; }
.mv-wall .tile-line .mv-fig { flex: none; }
.mv-eye { display: inline-flex; align-items: center; gap: 3px; }
.mv-eye .icon { width: 12px; height: 12px; }
.mv-spark { margin-left: auto; flex: 0 1 54px; min-width: 24px; display: flex; }
.mv-spark .spark, .mv-rate .spark { width: 100%; height: 16px; }
.mv-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.mv-dot.ok { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16); }
.mv-dot.warn { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
.mv-dot.bad { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }
.mv-live { display: inline-flex; align-items: center; gap: 5px; height: 19px; padding: 0 7px; border-radius: 5px; background: var(--danger-soft); color: var(--danger); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; }
.mv-live i { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }
.mv-empty { padding: 48px 16px; }
/* the details panel */
.mv-insp { position: sticky; top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 12px; min-width: 0; }
.mv-insp-empty { display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--muted); padding: 40px 12px; }
.mv-insp-empty .icon { width: 26px; height: 26px; color: var(--faint); }
.mv-insp-empty p { margin: 0; }
.mv-ih { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mv-ih h2 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-ih .tile-kind { margin-left: 0; }
.mv-close { padding: 0 6px; }
.mv-pshot { border-radius: 8px; overflow: hidden; }
.mv-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mv-kv div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; min-width: 0; }
.mv-kv small { display: block; color: var(--faint); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.mv-kv strong { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv-insp .callout { margin: 0; }
.mv-insp .mv-note { margin: 0; white-space: pre-line; font-size: 12px; }
.mv-insp section { display: grid; gap: 6px; }
.mv-insp h3 { margin: 0; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; display: flex; gap: 8px; }
.mv-chart-now { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text); }
.mv-linebox { position: relative; height: 80px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mv-line { position: absolute; inset: 0; width: 100%; height: 100%; }
.mv-line .grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mv-line .area { fill: var(--accent-area); }
.mv-line .stroke { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.mv-line-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.mv-line-top { position: absolute; left: 6px; top: 3px; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.mv-line-tip { position: absolute; bottom: 4px; transform: translateX(-50%); background: var(--toast); color: #fff; font-size: 11.5px; border-radius: 6px; padding: 2px 7px; white-space: nowrap; pointer-events: none; }
.mv-xlabs { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); }
.mv-hm { display: grid; grid-template-columns: 14px minmax(0, 1fr) 46px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--muted); }
.mv-hm .num { text-align: right; }
.mv-hbar { height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.mv-hbar i, .mv-hmeter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c55e 0 70%, #eab308 70% 90%, #ef4444 90%); background-size: 100% 100%; transition: width 0.2s linear; }
.mv-onair { margin: 0; display: grid; }
.mv-onair small { color: var(--muted); }
.mv-recent div { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); font-size: 12px; }
.mv-recent div:first-child { border-top: 0; padding-top: 0; }
.mv-recent .mv-ev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-recent small { color: var(--faint); white-space: nowrap; }
.mv-recent p { margin: 0; font-size: 12px; }
.mv-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.mv-acts .btn { display: inline-flex; align-items: center; gap: 5px; }
/* the list */
.mv-list td { vertical-align: middle; }
.mv-list .mv-grp td { background: var(--surface-2); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 6px 12px; }
.mv-row { cursor: pointer; }
.mv-row:hover td { background: var(--surface-2); }
.mv-row.alarm td { background: var(--danger-tint); }
.mv-row.alarm td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.mv-row.warn td:first-child { box-shadow: inset 3px 0 0 var(--warn-border-strong); }
.mv-thumbcell { width: 112px; }
.mv-thumb { position: relative; width: 104px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #0b1220; }
.mv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mv-thumb .msg { position: absolute; inset: 0; display: grid; place-items: center; color: #94a3b8; }
.mv-name b { display: block; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.mv-name small, .mv-air small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.mv-list td .tile-rec { margin-left: 6px; }
.mv-rate { min-width: 90px; }
.mv-rate span { display: block; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv-rate .spark { display: block; width: 80px; }
.mv-hmeter { display: grid; gap: 3px; width: 90px; }
.mv-hmeter span { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.mv-viewers { font-weight: 700; font-variant-numeric: tabular-nums; }
.mv-air span { white-space: nowrap; }
.mv-problem .bad { color: var(--danger); font-weight: 700; }
.mv-problem .warn { color: var(--warn); font-weight: 600; }
.mv-open { text-align: right; }
.mv-open .btn { display: inline-flex; align-items: center; gap: 5px; }
/* full screen: the page alone */
.mv:fullscreen { background: var(--bg); padding: 18px 22px; overflow: auto; }
/* the list's sortable headings */
.mv-list th .mv-sorth { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.mv-list th .mv-sorth:hover { color: var(--text); }
.mv-list th.sorted .mv-sorth { color: var(--accent-strong); }
.mv-arrow { font-size: 9px; }

/* Server → History: the range switch above the charts, the report's
   period switch and CSV button inside its card. */
.hist-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hist-tools.in-card { padding: 12px 16px 4px; justify-content: space-between; }
/* A phone: the switches wrap rather than widen the page. */
.hist-tools .seg { flex: 0 1 auto; flex-wrap: wrap; max-width: 100%; }
.mpts-pid-fields input[type="checkbox"] { width: auto; }
/* Ad break card (stream Overview) */
.ad-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ad-row select { flex: 1 1 140px; min-width: 0; }
.ad-status { margin-top: 10px; font-weight: 600; }
.ad-bar { height: 6px; border-radius: 3px; background: var(--border); margin-top: 8px; overflow: hidden; }
.ad-bar-fill { height: 100%; width: 0; background: var(--warn); transition: width 0.4s linear; }
.ad-bar[hidden] { display: none; }
.ad-where { margin-top: 8px; font-size: 11.5px; }

/* Clearing alerts (ui/alert-clear.js): Clear beside a Multiview tile's line
   (outside its link), the grey "N cleared" mark, the details panel's lists,
   and the Overview's cleared rows. */
.tile-cell { position: relative; display: grid; min-width: 0; }
.tile-act { position: absolute; right: 7px; bottom: 5px; display: flex; gap: 4px; }
.tile-act:empty { display: none; }
.tile-line.has-act { padding-right: 30px; }
.tile-line.has-mark { padding-right: 80px; }
.wall-small .tile-line.has-mark { padding-right: 44px; }
.btn.mv-clear.icon-btn { width: 24px; height: 22px; padding: 0; justify-content: center; }
.mv-clear .icon, .mv-cleared .icon { width: 13px; height: 13px; }
.mv-cleared, .btn.mv-cleared { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; box-shadow: none; }
.btn.mv-cleared:hover { color: var(--text); border-color: var(--accent-border); }
.wall-small .mv-cleared .word { display: none; }
.mv-problem .mv-clear, .mv-problem .mv-cleared { margin-left: 8px; vertical-align: middle; }
.mv-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mv-alerts li { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mv-alerts li > span { min-width: 0; }
.mv-alerts .btn { flex: none; }
.mv-alerts-cleared { color: var(--muted); padding: 0 2px; }
.mv-alerts-cleared small { display: block; color: var(--faint); margin-top: 2px; }
.attn li.cleared { opacity: 0.75; }
.attn .attn-acts { display: flex; gap: 6px; margin: 4px 0 0 -9px; }

/* Overview: a figure whose data stopped arriving (pages/overview.js markLate) */
.kpi.late { border-style: dashed; }
.kpi.late .value, .kpi.late .meter { opacity: 0.45; }
.kpi.late .sub { color: var(--warn); font-weight: 600; }

/* The Watch page and Embed cards on a channel's Output tab (pages/stream/watch-page.js) */
.wp-colors { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wp-swatches { display: flex; gap: 6px; }
.wp-swatch { width: 24px; height: 24px; border-radius: 6px; border: 0; padding: 0; cursor: pointer; }
.wp-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.fgrid .wp-colors input[type=color] { width: 40px; height: 28px; padding: 0 2px; border-radius: 6px; cursor: pointer; }
.wp-logo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 38px; }
.wp-logo-img { height: 36px; width: auto; max-width: 140px; object-fit: contain; }
.wp-logo-none { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.wp-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wp-checks { display: grid; gap: 6px; align-content: start; }
.fgrid .wp-checks label.wp-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 400; margin: 0; text-transform: none; letter-spacing: 0; }
.fgrid.wp-grid { align-items: start; }
.wp-rows { border-top: 1px solid var(--border); }
.wp-code { width: 100%; font: 11.5px/1.5 var(--mono); resize: vertical; }
@media (max-width: 640px) { .wp-grid { grid-template-columns: minmax(0, 1fr); } .wp-grid .span2 { grid-column: 1 / -1; } }

/* Server → Relays: the destination fields */
.rl-dests { display: grid; gap: 8px; }
.rl-dests + .btn { margin-top: 8px; }
@media (max-width: 640px) {
  /* a destination per block: address and state, the details under them */
  .relay-dests thead { display: none; }
  .relay-dests tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .relay-dests td { display: block; padding: 0; border: 0; }
  .relay-dests td:nth-child(3) { grid-column: 1 / -1; }
  .relay-dests code { overflow-wrap: anywhere; }
}

/* Edit boxes (destinations, relays, inputs, bundles): the add form's fields,
   filled in, under the row they edit. */
.edit-box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; background: var(--surface-2); display: grid; gap: 12px; }
.edit-row > td { padding: 0 12px 14px; background: transparent; }
.edit-row:hover > td { background: transparent; }
.bundle > .edit-box { margin: 0 16px 16px; }
.rl-edit-dests { display: grid; gap: 8px; }
.rl-edit-dests + .btn { margin-top: 8px; }
.rl-edit-dest { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.edit-box > .form-error:empty { display: none; }

/* An srt:// destination's link line on the Restream tab (round trip, resent, given up). */
.srt-link { display: flex; gap: 7px; align-items: baseline; margin-top: 4px; font-size: 12px; color: var(--text); }
.srt-link b { font-weight: 600; }
.srt-link .light { width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(1px); background: var(--ok); }
.srt-link.warn .light { background: #d97706; }
.srt-link.note .light { background: var(--faint); }
