/* Fleet Monitor console. Dark, dense, full-width: the device page leads with its live/recorded
   viewer, map and timeline scrubber; everything else sits in tabs beneath. */
:root {
  --bg: #0c111b; --panel: #151c29; --panel2: #1e2737; --panel3: #263145; --line: #263044; --line2: #34405a;
  --text: #e8edf6; --muted: #8b96ab; --faint: #5e6a80;
  --accent: #5b9bff; --accent2: #3478f0; --accent-soft: rgba(91,155,255,.14);
  --ok: #3ccf7c; --warn: #f2b14a; --bad: #f05d5d; --rec: #ff5a5a;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.25);
  --gutter: clamp(12px, 1.6vw, 22px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 14.5px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { text-wrap: balance; }
.mono, .code, .dev-id { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.stale { color: var(--bad); }  /* e.g. "last recording" older than an hour, or never */
.error { color: var(--bad); min-height: 1em; }
.hidden { display: none !important; }

/* ------------------------------------------------------------ top bar */
.topbar { display: flex; align-items: center; gap: 1.2rem; height: 52px; padding: 0 var(--gutter);
  background: rgba(21,28,41,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1000; }
.brand { font-weight: 700; font-size: 1rem; letter-spacing: .01em; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: 1.1rem; flex: 1; min-width: 0; }
.topbar nav a { color: var(--muted); font-weight: 500; white-space: nowrap; }
.topbar nav a:hover { color: var(--text); text-decoration: none; }
.topbar .spacer { flex: 1; }
.topbar .who { color: var(--faint); font-size: .85rem; }
main { max-width: 1120px; margin: 0 auto; padding: 1.3rem var(--gutter) 4rem; }
main.wide { max-width: 1920px; padding-top: .9rem; }

/* ------------------------------------------------------------ building blocks */
.panel, .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow); min-width: 0; }
.panel { margin-bottom: 1.1rem; }
.panel h2, .card h2 { margin: 0 0 .7rem; font-size: .95rem; font-weight: 650; letter-spacing: .01em; }
.card-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .7rem; }
.card-head h2 { margin: 0 .3rem 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  background: var(--accent2); color: #fff; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: .5rem .9rem; font: inherit; font-size: .9rem; font-weight: 550; cursor: pointer; line-height: 1.2;
  transition: background .12s, border-color .12s; }
.btn:hover { background: var(--accent); text-decoration: none; }
.btn.small { padding: .32rem .65rem; font-size: .82rem; min-height: 32px; }
.btn.ghost { background: transparent; border-color: var(--line2); color: var(--text); }
.btn.ghost:hover { background: var(--panel2); border-color: var(--faint); }
.btn.danger { background: var(--bad); }
.btn-link { color: var(--muted); }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

select, input, .pb-select { font: inherit; }
.pb-select, .picker select, .blueiris select, .config-form input, .config-form select {
  background: var(--panel2); color: var(--text); border: 1px solid var(--line2); border-radius: 7px;
  padding: .3rem .5rem; font-size: .85rem; min-height: 32px; }
input.pb-select { display: inline-block; width: auto; margin: 0; }
.picker { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .84rem; }
.picker select { max-width: 16rem; }
.pb-transport .picker select { max-width: 11.5rem; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); font-size: .88rem; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
td { font-variant-numeric: tabular-nums; }
table.devices tbody tr { cursor: pointer; }
table.devices tbody tr:hover { background: var(--panel2); }
.table-scroll { overflow-x: auto; }

.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .45rem; vertical-align: middle; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(60,207,124,.18); } .dot.off { background: var(--faint); }
.pill { display: inline-flex; align-items: center; padding: .18rem .6rem; border-radius: 999px; font-size: .78rem;
  font-weight: 600; background: var(--panel2); border: 1px solid var(--line2); white-space: nowrap; }
.pill.on { color: var(--ok); border-color: rgba(60,207,124,.5); background: rgba(60,207,124,.08); }
.pill.off { color: var(--muted); }
.pill.rec { color: var(--rec); border-color: rgba(255,90,90,.5); background: rgba(255,90,90,.08); }

.map .nomap, .nomap { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); padding: 1rem; text-align: center; }

/* ------------------------------------------------------------ page heads */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap; }
.page-head h1 { margin: .1rem 0; font-size: 1.4rem; }
.back { display: inline-block; font-size: .82rem; color: var(--muted); }
.title-row { display: flex; align-items: center; gap: .6rem; }
.rename-form { display: flex; align-items: center; gap: .4rem; margin: .35rem 0; }
.rename-form input { display: inline-block; width: min(22rem, 60vw); margin: 0; font-size: 1.15rem; font-weight: 600; }
.page-head .error { margin: .2rem 0; }
.head-controls { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* ------------------------------------------------------------ fleet page */
.fleet-summary { display: flex; gap: .5rem; flex-wrap: wrap; flex: 1; justify-content: center; }
.fleet-summary .stat { display: flex; align-items: baseline; gap: .4rem; padding: .35rem .75rem; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.fleet-summary .stat b { font-size: 1.05rem; color: var(--text); font-variant-numeric: tabular-nums; }
.fleet-summary .stat.ok b { color: var(--ok); } .fleet-summary .stat.rec b { color: var(--rec); } .fleet-summary .stat.warn b { color: var(--warn); }
.fleet-layout { display: grid; gap: var(--gutter); }
.fleet-map-card { padding: 0; overflow: hidden; }
.fleet-map { height: clamp(320px, 52vh, 720px); }
.fleet-table-card { padding: .4rem .6rem; }
.update-banner { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; padding: .7rem .9rem;
  border: 1px solid var(--accent2); border-radius: var(--radius); background: var(--accent-soft); flex-wrap: wrap; }
.van-pin-wrap { background: none; border: 0; }
.van-pin { display: flex; align-items: center; gap: .35rem; transform: translate(0, 0); white-space: nowrap; }
.van-pin::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff;
  background: var(--faint); box-shadow: 0 1px 4px rgba(0,0,0,.5); flex: none; }
.van-pin.on::before { background: #2fb36a; }
.van-pin span { background: rgba(12,17,27,.85); color: #fff; font: 600 11.5px/1 system-ui, sans-serif;
  padding: 4px 7px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }

/* ------------------------------------------------------------ device page: header */
.device-page { display: flex; flex-direction: column; gap: var(--gutter); }
.dev-head { display: flex; align-items: center; gap: .6rem 1.2rem; flex-wrap: wrap; }
.dev-title { min-width: 0; }
.dev-title h1 { margin: 0; font-size: 1.35rem; }
.dev-title .back { margin-right: .2rem; }
.dev-id { color: var(--faint); font-size: .75rem; }
.status-pills { display: flex; gap: .4rem; }
.dev-head-spacer { flex: 1; }
.capture-box { display: flex; align-items: center; gap: .3rem .8rem; flex-wrap: wrap; justify-content: flex-end; }
.capture-toggles { display: flex; gap: .4rem; }
.capture-state { font-size: .8rem; }

/* ------------------------------------------------------------ device page: the stage */
.stage { display: grid; gap: var(--gutter);
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  grid-template-areas: "viewer map" "timeline timeline"; }
.stage-viewer { grid-area: viewer; display: flex; flex-direction: column; }
.stage-map { grid-area: map; display: flex; flex-direction: column; padding: .8rem; }
.stage-timeline { grid-area: timeline; padding: .7rem .9rem .8rem; }
.stage-map .card-head { margin-bottom: .6rem; }
.stage-map-canvas { flex: 1; min-height: 300px; border-radius: var(--radius-sm); overflow: hidden; background: var(--panel2); }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap;
  margin-top: .55rem; font-size: .8rem; }

/* Viewer: tall enough to be the focus, short enough that the scrubber is on screen at load. */
.video-wrap { position: relative; background: #000; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/9; }
.stage-viewer .video-wrap { aspect-ratio: auto; height: clamp(200px, 42vh, 620px); }
.video-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.video-wrap img:not([src]) { visibility: hidden; }  /* no broken-image icon before the stream starts */
.video-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.video-placeholder span { text-align: center; padding: 0 1rem; max-width: 34rem; }
.pb-video-wrap video, .pb-video-wrap .pb-live-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.pb-stamp { position: absolute; left: .6rem; top: .5rem; padding: .15rem .45rem; border-radius: 5px;
  background: rgba(0,0,0,.6); color: #fff; font-size: .78rem; pointer-events: none; }
.live-note { margin-top: .6rem; padding: .5rem .7rem; border: 1px solid var(--line2); border-radius: var(--radius-sm);
  background: var(--panel2); font-size: .88rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.pb-transport, .pb-zoombar { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.pb-transport { margin-top: .65rem; }
.pb-play { min-width: 6.4rem; }
.pb-clock { font-size: .92rem; margin-left: .3rem; color: var(--text); }
.pb-spacer { flex: 1; }
.pb-zooms { display: inline-flex; gap: .25rem; flex-wrap: wrap; }
.pb-zooms .btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pb-status:empty { display: none; }
.pb-status { margin-top: .4rem; font-size: .85rem; }

/* Live mode */
.live-only { display: none; align-items: center; gap: .4rem; flex-wrap: wrap; }
.is-live .live-only { display: inline-flex; }
.pb-only { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.is-live .pb-only { display: none; }
.pb-live-btn.active { background: var(--bad); border-color: var(--bad); color: #fff; }
.pb-live-badge { position: absolute; left: .6rem; top: .5rem; padding: .15rem .5rem; border-radius: 5px;
  background: var(--bad); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .05em; pointer-events: none;
  animation: livepulse 2s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .pb-live-badge, .spinner { animation: none; } }

/* Timeline scrubber */
.timeline { margin-top: .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); overflow: hidden; }
.tl-canvas { display: block; width: 100%; touch-action: none; user-select: none; }
.tl-canvas.dragging { cursor: grabbing !important; }
.pb-help { font-size: .76rem; margin: .4rem 0 0; color: var(--faint); }
#pbInfo:empty { display: none; }
#pbInfo { margin: .3rem 0 0; font-size: .85rem; }

/* ------------------------------------------------------------ device page: tabs */
.tabs { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line);
  margin-bottom: calc(var(--gutter) * -1 + .2rem); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted);
  font: inherit; font-size: .9rem; font-weight: 600; padding: .6rem .9rem; cursor: pointer; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-intro { margin: 0 0 .6rem; font-size: .85rem; }

/* Recordings list */
.rec-list-wrap { max-height: 460px; overflow: auto; }
.rec-list-wrap thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
.rec-row { cursor: pointer; }
.rec-row:hover { background: var(--panel2); }
.rec-row.playing { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.rec-row.bad td { color: var(--bad); }
.rec-row .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: .4rem; vertical-align: middle; }
.rec-actions { white-space: nowrap; text-align: right; }
.rec-actions .btn + .btn { margin-left: .3rem; }

/* Trips */
.trip-legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .76rem; color: var(--muted); }
.trip-legend i { display: inline-block; vertical-align: middle; margin-right: .3rem; }
.lg-line { width: 18px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #2f6ede 0 33%, #e8590c 33% 66%, #2b8a3e 66%); }
.lg-stop { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #343a40; background: #fff; }
.lg-now { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: #e03131; }
.trip-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .5rem; max-height: 520px; overflow: auto; }
.trip-list > p { grid-column: 1 / -1; }
.trip-row { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .7rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; font-size: .86rem; background: var(--panel2); }
.trip-row:hover, .trip-row.active { border-color: var(--accent); background: var(--panel3); }
.trip-sw { flex: none; width: 12px; height: 12px; border-radius: 3px; margin-top: .25rem; }
.trip-main { min-width: 0; }
.trip-main .muted { font-size: .8rem; }

/* History */
.chart-block { margin: .5rem 0 1rem; }
.chart-head { font-size: .84rem; color: var(--muted); margin-bottom: .25rem;
  display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.chart { width: 100%; display: block; }
.chart-legend { font-size: .72rem; color: var(--muted); display: inline-flex; gap: .7rem; align-items: center; }
.chart-legend .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: .25rem; vertical-align: middle; }

/* Settings: two columns of rows on wide screens */
.config-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); column-gap: 2.2rem; }
.config-form .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .9rem; }
.config-form .row input[type=number], .config-form .row select { width: 11rem; max-width: 55%; }
.config-form input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent2); }
.config-hint { grid-column: 1 / -1; margin: .8rem 0 0; font-size: .85rem; }

/* Device facts, events, BlueIris */
.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; font-size: .9rem; }
@media (min-width: 900px) { .kv { grid-template-columns: auto 1fr auto 1fr; } }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.app-row { display: flex; align-items: center; gap: .7rem; margin-top: .9rem; padding: .55rem .7rem;
  border: 1px solid var(--line2); border-radius: var(--radius-sm); background: var(--panel2); font-size: .9rem; flex-wrap: wrap; }
.danger-row { display: flex; gap: .6rem; margin-top: 1.1rem; }
.events { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow: auto; }
.events li { padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.events .lvl { font-family: ui-monospace, monospace; font-size: .74rem; padding: 0 .35rem; border-radius: 4px; margin-right: .5rem; }
.events .warn { background: rgba(242,177,74,.18); color: var(--warn); }
.events .error { background: rgba(240,93,93,.18); color: var(--bad); }
.events .info { background: var(--panel2); color: var(--muted); }
.blueiris, .track-controls { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.blueiris input { flex: 1; min-width: 14rem; background: var(--panel2); color: var(--text); border: 1px solid var(--line2);
  border-radius: 7px; padding: .45rem .6rem; font: inherit; font-size: .85rem; }

/* ------------------------------------------------------------ login / register */
.login-card, .register-grid { max-width: 420px; margin: 3rem auto; }
.register-grid { max-width: 640px; }
.login-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.login-card h1 { margin-top: 0; }
form label { display: block; margin-bottom: .8rem; }
form input { display: block; width: 100%; margin-top: .25rem; padding: .55rem .65rem; background: var(--panel2); color: var(--text);
  border: 1px solid var(--line2); border-radius: 7px; font: inherit; }
.login-card button { width: 100%; padding: .65rem; }
.qr-box { display: flex; justify-content: center; padding: 1rem; background: #fff; border-radius: var(--radius-sm); width: fit-content; margin: 0 auto 1rem; }
.qr-box svg { width: 220px; height: 220px; }
.manual dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; }
.manual .code { font-size: 1.1rem; letter-spacing: .1em; }
.wait-row { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; color: var(--muted); }
.spinner { width: 1rem; height: 1rem; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ Leaflet tweaks */
.leaflet-container { background: var(--panel2); font: 12px/1.4 system-ui, sans-serif; }
.leaflet-control-layers { border-radius: 8px !important; }
.leaflet-control-layers-expanded { padding: 4px 8px !important; font-size: 12px; }
.leaflet-control-layers-base label { display: inline-flex; align-items: center; gap: 2px; margin: 0 4px 0 0; }
.leaflet-control-layers-base { display: flex; }
.leaflet-control-layers-base label input { margin: 0 2px 0 0; }

/* ------------------------------------------------------------ responsive */
/* Below ~1100px the stage stacks: viewer, then the scrubber, then the map. */
@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "viewer" "timeline" "map"; }
  .stage-map-canvas { min-height: 0; height: clamp(280px, 48vh, 460px); flex: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 10px; }
  body { font-size: 14px; }
  main, main.wide { padding: .6rem var(--gutter) 3rem; }
  .topbar { gap: .7rem; }
  .topbar .who { display: none; }
  .topbar nav { gap: .8rem; font-size: .88rem; }
  .topbar .nav-register { display: none; }   /* the Fleet page has its own Register button */
  .card, .panel { padding: .75rem; border-radius: 10px; }
  .dev-head { gap: .5rem .8rem; }
  .dev-title h1 { font-size: 1.15rem; }
  .capture-box { justify-content: flex-start; width: 100%; }
  .stage-viewer .video-wrap { height: auto; aspect-ratio: 16/9; }
  .pb-clock { width: 100%; margin: .2rem 0 0; order: 10; }
  .pb-help { display: none; }
  .rec-list-wrap td:nth-child(4), .rec-list-wrap th:nth-child(4) { display: none; }
  .fleet-summary { justify-content: flex-start; order: 3; width: 100%; }
  .btn.small { min-height: 36px; }
}

/* Captions (karaoke-style, over the video) */
.pb-captions { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); max-width: min(92%, 52rem);
  padding: .35rem .7rem; border-radius: 8px; background: rgba(0,0,0,.72); text-align: center;
  font-size: clamp(14px, 1.6vw, 22px); line-height: 1.35; font-weight: 600; pointer-events: none; z-index: 2; }
.pb-captions span { transition: color .12s; }
.pb-captions .said { color: #fff; }
.pb-captions .next { color: rgba(255,255,255,.5); }
.pb-captions .now { color: #111; background: #ffd166; border-radius: 4px; padding: 0 .15em; }
.pb-captions .unsure { font-style: italic; }

/* Transcript search */
.pb-searchbar { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .55rem; }
.pb-search { width: min(26rem, 100%); padding-left: .65rem; }
.stt-status { font-size: .78rem; }
.stt-status.warn { color: var(--warn); }
.search-results { margin-top: .55rem; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.hit-row { display: flex; align-items: baseline; gap: .7rem; width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--line); color: var(--text); font: inherit; font-size: .86rem; padding: .45rem .65rem; cursor: pointer; }
.hit-row:hover, .hit-row.active { background: var(--panel2); }
.hit-row.active { box-shadow: inset 3px 0 0 #ffd166; }
.hit-time { flex: none; color: var(--muted); font-size: .78rem; }
.hit-text { flex: 1; min-width: 0; }
.hit-text mark { background: #ffd166; color: #111; border-radius: 3px; padding: 0 .15em; }
.hit-src { flex: none; font-size: .76rem; }
@media (max-width: 640px) { .hit-row { flex-wrap: wrap; gap: .2rem .6rem; } .stt-status { width: 100%; } }

/* Live captions */
.pb-captions .live-line { display: block; }
.pb-captions .live-line.partial { color: rgba(255,255,255,.72); font-style: italic; }
.pb-captions .live-line.older { font-size: .85em; color: rgba(255,255,255,.6); }
.cc-chip { font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .15rem .45rem; border-radius: 5px;
  border: 1px solid var(--line2); color: var(--muted); }
.cc-chip.on { border-color: #ffd166; color: #ffd166; }
.ff-badge { font-size: .76rem; font-weight: 700; color: #ffd166; padding: .12rem .45rem; border: 1px solid rgba(255,209,102,.5); border-radius: 5px; }

/* Speakers */
.spk { font-weight: 800; margin-right: .1em; }
.spk-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
table.voices td { vertical-align: middle; }
.voice-name { width: min(14rem, 100%); }
.hit-row .spk { flex: none; }
