:root {
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-synthesis: none; color-scheme: dark;
  --bg:#0b1117; --surface:#111a23; --raised:#17232e; --hover:#1b2b37;
  --text:#e7edf3; --secondary:#c0cdd7; --muted:#99aab8; --line:#293641;
  --accent:#81d9ce; --accent-hover:#a3e6dd; --accent-ink:#102824;
  --match:#efbd73; --match-bg:#342b20; --match-border:#5c492d;
  --danger:#f0aaa2; --danger-bg:#2c1d23; --danger-border:#704745;
  --warning:#e8cb95; --warning-bg:#2a261e; --warning-border:#655332;
  --success:#acd7b7; --focus:#9ceee3;
  --space-xs:4px; --space-sm:8px; --space-md:12px; --space-lg:16px;
  --space-xl:24px; --space-section:32px; --radius:6px;
  --line-tight:1.2; --line-normal:1.5; --line-read:1.65;
  --transition:120ms ease;
}
* {box-sizing:border-box}
body {margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-size:13px;line-height:var(--line-normal);letter-spacing:-.005em}
button,input,select,textarea {font:inherit} button {cursor:pointer} button:disabled{cursor:not-allowed;opacity:.45}
a {color:var(--accent)} [hidden]{display:none!important}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {outline:2px solid var(--focus);outline-offset:3px}
button,a,input,textarea,select {-webkit-tap-highlight-color:transparent}
h1,h2,h3,p {margin:0} h1{font-size:25px;font-weight:600;line-height:var(--line-tight);letter-spacing:-.025em} h2{font-size:17px;line-height:var(--line-tight);letter-spacing:-.018em;font-weight:600}
.topbar {height:48px;padding:0 4%;display:flex;align-items:center;justify-content:space-between;gap:var(--space-lg);border-bottom:1px solid var(--line);background:var(--surface)}
.brand {text-decoration:none;display:flex;align-items:center;gap:var(--space-sm);font-size:16px;font-weight:700;color:var(--text);white-space:nowrap}
.brand-symbol {font-size:28px;color:var(--accent);font-weight:400;line-height:1}.brand-light{font-weight:400;color:var(--secondary)}
.connection {font:10px ui-monospace,SFMono-Regular,monospace;display:flex;align-items:center;gap:var(--space-sm);color:var(--muted)}
.dot{width:6px;height:6px;border-radius:50%;background:var(--muted)}.dot.connected{background:var(--success)}.dot.offline{background:var(--danger)}
.divider{height:13px;width:1px;background:var(--line);margin:0 var(--space-sm)}
#operator-link {text-decoration:none;border-left:1px solid var(--line);padding-left:var(--space-lg);margin-left:var(--space-sm);white-space:nowrap}
main {max-width:1320px;margin:auto;padding:var(--space-md) 4% var(--space-section)}
.tabs {display:flex;gap:var(--space-xl);border-bottom:1px solid var(--line);margin-bottom:var(--space-md)}
.tab {background:none;border:0;border-bottom:2px solid transparent;color:var(--muted);padding:var(--space-sm) 0;font-size:13px;white-space:nowrap}
.tab.selected{color:var(--accent);border-color:var(--accent)}
.stream-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--space-xl);margin-bottom:var(--space-sm)}
.subtitle{color:var(--muted);font-size:12px;line-height:var(--line-read);margin-top:var(--space-sm)}
.capture-summary{display:flex;flex-direction:row;align-items:center;gap:var(--space-sm);background:none;border:0;padding:var(--space-sm) 0;color:var(--secondary);font-size:12px;white-space:nowrap}
.capture-summary strong{font-weight:600;font-variant-numeric:tabular-nums}.capture-summary #configured-count{color:var(--muted)}.summary-action{color:var(--accent);font-size:11px}
.match-toolbar{display:flex;justify-content:space-between;align-items:center;gap:var(--space-lg);margin-bottom:var(--space-sm)}
.keyword-summary{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-sm);font-size:12px;color:var(--secondary)}
.criterion-label{font-size:12px;color:var(--muted);margin-right:var(--space-xs)}
.keyword-tag{display:inline-block;color:var(--match);background:var(--match-bg);border:1px solid var(--match-border);border-radius:3px;padding:2px 7px;font-size:11px;line-height:var(--line-normal)}
.filter-control{display:flex;align-items:center;gap:var(--space-sm);min-width:0}.filter-control label{color:var(--muted);font-size:12px;white-space:nowrap}
select{color:var(--secondary);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:8px 28px 8px 10px;font-size:12px;max-width:300px;min-width:0}
.monitor-health{color:var(--muted);font-size:12px;margin:var(--space-sm) 0 var(--space-lg);line-height:var(--line-read)}.monitor-health.delayed{color:var(--warning)}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:var(--space-lg);gap:var(--space-md);border-bottom:1px solid var(--line)}
.stream-count{display:flex;align-items:center;gap:var(--space-sm);padding:var(--space-md) var(--space-xl);border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}
.count-badge{font:10px ui-monospace,monospace;padding:2px 6px;border-radius:3px;background:var(--raised);color:var(--secondary)}
.entry{padding:var(--space-lg) var(--space-xl);border-bottom:1px solid var(--line);min-width:0}.entry:last-child{border-bottom:0}
.entry-meta{display:flex;justify-content:space-between;align-items:center;gap:var(--space-lg);font-size:11px;color:var(--muted);min-width:0}.entry-source{font-weight:600;color:var(--secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.entry-meta time{flex-shrink:0;font-size:10px;font-variant-numeric:tabular-nums}
.entry-text{font-size:14px;line-height:var(--line-read);color:var(--text);margin:var(--space-sm) 0 var(--space-md);overflow-wrap:anywhere}
.entry-foot{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md)}.offset{font:10px ui-monospace,monospace;color:var(--muted);line-height:var(--line-read)}
.play-button{border:0;background:none;color:var(--accent);padding:var(--space-sm) 0;font-size:12px;font-weight:500;white-space:nowrap}
.clip-stream .entry{display:grid;grid-template-columns:minmax(0,1fr) 120px;column-gap:var(--space-xl);padding:20px var(--space-xl)}
.clip-stream .entry-meta{grid-column:1}.clip-stream .entry-text{grid-column:1;margin-bottom:0;font-size:15px}
.clip-stream .entry-foot{grid-column:2;grid-row:1/3;display:flex;flex-direction:column-reverse;align-items:flex-end;justify-content:center;gap:var(--space-sm)}
.clip-stream .play-button{background:var(--accent);color:var(--accent-ink);border:1px solid var(--accent);border-radius:var(--radius);padding:10px 13px;min-height:42px;font-size:12px}
.clip-stream .entry-foot .keyword-tag{font-size:10px;border:0;background:none;padding:0;color:var(--muted)}
.clip-player{display:block;width:100%;height:34px;margin:var(--space-lg) 0 0;grid-column:1/-1}.clip-error{color:var(--danger);font-size:12px;grid-column:1/-1;margin-top:var(--space-sm)}
mark{background:var(--match-bg);color:var(--match);border-radius:2px;padding:1px 2px}
.stream-end{display:flex;justify-content:space-between;align-items:center;gap:var(--space-lg);margin-top:var(--space-lg)}.footnote{font-size:11px;color:var(--muted);line-height:var(--line-read);margin-top:var(--space-lg)}.stream-end .footnote{margin:0}
.button{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-sm);border:1px solid var(--line);border-radius:var(--radius);padding:9px 14px;font-size:12px;font-weight:500;text-decoration:none;white-space:nowrap;min-height:36px;transition:background var(--transition),border-color var(--transition)}
.button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.button.quiet{background:var(--surface);border-color:var(--line);color:var(--accent)}.button.small{padding:6px 10px;min-height:30px;font-size:11px;flex-shrink:0}.button-group{display:flex;gap:var(--space-sm)}
.text-button{background:none;border:0;color:var(--accent);padding:0;font-size:inherit}
.empty{text-align:center;color:var(--muted);padding:40px var(--space-xl);font-size:13px;line-height:var(--line-read)}.empty h2{font-size:17px;color:var(--secondary);margin-bottom:var(--space-md)}.empty p{margin-bottom:var(--space-md)}.empty small{font-size:12px;line-height:var(--line-read)}.empty .button{margin-top:var(--space-md)}
.onboard{border:1px solid var(--line);border-radius:var(--radius);margin-bottom:var(--space-xl);background:var(--surface)}.empty-symbol{font-size:30px;color:var(--accent)}
.clip-loading{padding:var(--space-xl)}.skeleton-row{height:66px;background:var(--raised);border-radius:var(--radius);margin-bottom:var(--space-lg);animation:pulse 1.6s ease-in-out infinite}.skeleton-row:last-child{margin-bottom:0}@keyframes pulse{50%{opacity:.45}}
.notice{border:1px solid var(--line);background:var(--raised);color:var(--secondary);border-radius:var(--radius);padding:var(--space-md) var(--space-lg);margin:0 0 var(--space-lg);font-size:12px;line-height:var(--line-read);white-space:pre-wrap;overflow-wrap:anywhere}.notice.error{border-color:var(--danger-border);background:var(--danger-bg);color:var(--danger)}.notice.warning{border-color:var(--warning-border);background:var(--warning-bg);color:var(--warning)}
.section-intro{margin-bottom:var(--space-md)}.section-intro h2{font-size:20px;margin-bottom:var(--space-sm)}.section-intro p,.helper{color:var(--muted);font-size:12px;line-height:var(--line-read)}
.workspace-tools{display:flex;justify-content:space-between;align-items:center;gap:var(--space-lg);margin-bottom:var(--space-lg)}
.feed-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:var(--space-md);margin-bottom:var(--space-xl)}
.feed-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:var(--space-lg);min-width:0}.feed-top,.feed-bottom{display:flex;justify-content:space-between;align-items:center;gap:var(--space-md)}.airport{font:14px ui-monospace,monospace}.feed-status{font-size:10px;text-transform:uppercase;letter-spacing:.035em;color:var(--muted)}.feed-status.running{color:var(--success)}.feed-status.starting{color:var(--warning)}.feed-status.error{color:var(--danger)}.feed-name{font-size:12px;color:var(--secondary);margin:var(--space-sm) 0 var(--space-lg);overflow-wrap:anywhere}.lag{color:var(--muted);font:10px ui-monospace,monospace;line-height:var(--line-read)}.lag.delayed{color:var(--warning)}.feed-error{font-size:11px;line-height:var(--line-read);color:var(--danger);overflow-wrap:anywhere;margin-top:var(--space-md)}
.entry-list{max-height:660px;overflow:auto;scrollbar-color:var(--line) transparent;scrollbar-width:thin}
.history-filters{display:flex;align-items:center;gap:var(--space-xl);flex-wrap:wrap}.history-list:empty{display:none}.history-kind{font:9px ui-monospace,monospace;letter-spacing:.035em;color:var(--muted);margin-right:var(--space-sm)}.load-more{text-align:center;margin-top:var(--space-xl)}
.setup-heading{display:flex;justify-content:space-between;align-items:center;gap:var(--space-xl)}.setup-panel{padding-bottom:var(--space-xl);margin-bottom:var(--space-xl)}.setup-panel .panel-heading{border:0}.setup-panel .helper{padding:0 var(--space-xl) var(--space-lg)}.setup-panel textarea{width:calc(100% - 48px);margin:var(--space-sm) var(--space-xl) var(--space-md)}.field-label{display:block;margin:0 var(--space-xl);font-size:12px;color:var(--secondary)}.muted{color:var(--muted);font-size:12px;margin-left:var(--space-sm);font-weight:400}.eyebrow{font:10px ui-monospace,monospace;letter-spacing:.035em;color:var(--muted);display:block;margin-bottom:var(--space-sm)}
.feed-edit{position:relative;margin:0 var(--space-xl);padding:var(--space-lg) 32px var(--space-lg) 0;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-md);align-items:end}.feed-edit .url-field{grid-column:1/-1}.feed-edit label{font-size:11px;display:flex;flex-direction:column;gap:var(--space-sm);color:var(--muted)}.feed-edit .remove-feed{position:absolute;right:-8px;top:16px;border:0;background:none;color:var(--accent);padding:10px}
input:not([type=checkbox]),textarea{border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:var(--radius);padding:10px;font-size:13px;min-width:0}textarea{resize:vertical;line-height:var(--line-read)}input::placeholder,textarea::placeholder{color:var(--muted)}
footer{border-top:1px solid var(--line);padding:var(--space-xl) 4%;display:flex;justify-content:space-between;color:var(--muted);font:9px ui-monospace,monospace;letter-spacing:.035em}
@media(hover:hover){.button.primary:hover,.clip-stream .play-button:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.button.quiet:hover{background:var(--hover)}.tab:hover,.text-button:hover{color:var(--accent-hover)}.feed-edit .remove-feed:hover{color:var(--danger)}}
@media(max-width:768px){
 main{padding:var(--space-sm) var(--space-lg) var(--space-xl)}.topbar{height:48px;padding:0 var(--space-lg)}.brand{font-size:13px}.brand-symbol{font-size:24px}.connection{gap:var(--space-xs);justify-content:flex-end;flex-wrap:wrap;font-size:9px}.connection .divider,#clock{display:none}#operator-link{padding-left:var(--space-sm);margin-left:var(--space-xs)}
 .tabs{gap:var(--space-lg);margin-bottom:var(--space-md);overflow-x:auto}.tab{font-size:12px;min-height:44px;padding-bottom:var(--space-sm)}
 .stream-heading{align-items:center;gap:var(--space-md);margin-bottom:var(--space-sm)}h1{font-size:20px}.subtitle{font-size:12px;max-width:240px}.capture-summary{font-size:10px;white-space:normal;text-align:right;max-width:150px;padding-top:0;line-height:var(--line-read)}.summary-action{font-size:11px}
 .match-toolbar{align-items:center;flex-direction:row;flex-wrap:wrap;gap:var(--space-sm)}.match-toolbar .filter-control{width:100%}.match-toolbar select{flex:1;max-width:none}.monitor-health{font-size:12px}
 .clip-stream .entry{display:block;padding:var(--space-lg)}.entry{padding:var(--space-lg)}.entry-meta{gap:var(--space-sm)}.entry-meta time{font-size:9px}.clip-stream .entry-text{font-size:14px;margin:var(--space-md) 0}.clip-stream .entry-foot{flex-direction:row;align-items:center;justify-content:space-between}.clip-stream .entry-foot .keyword-tag{font-size:11px}.clip-stream .play-button{min-height:44px}.play-button{min-height:44px}.stream-count{padding:var(--space-md) var(--space-lg)}
 .stream-end{align-items:flex-start}.stream-end .button{flex-shrink:0}.footnote{font-size:10px}.button{min-height:44px}.empty{padding:var(--space-xl) var(--space-lg)}
 .workspace-tools{flex-wrap:wrap;align-items:flex-start}.history-filters{gap:var(--space-md);width:100%}.history-filters .filter-control{width:100%}.history-filters select{flex:1;max-width:none}.feed-edit{grid-template-columns:repeat(2,minmax(0,1fr))}.feed-edit label:first-child{grid-column:1/-1}.feed-list{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}.setup-heading{align-items:flex-start;flex-direction:column}.setup-panel textarea,input:not([type=checkbox]),select{font-size:16px;min-height:44px}.setup-panel textarea{font-size:16px}.section-intro h2{font-size:20px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

.search-name{display:block;width:calc(100% - 48px);margin:var(--space-sm) var(--space-xl) var(--space-lg);padding:10px;color:var(--text);background:var(--raised);border:1px solid var(--line);border-radius:var(--radius)}
.search-expression{margin:var(--space-sm) var(--space-xl) var(--space-lg);white-space:pre-wrap;overflow-wrap:anywhere;color:var(--secondary);font-size:12px;line-height:var(--line-read)}
.transcription-details{grid-column:1/-1;margin-top:var(--space-sm);font-size:11px;color:var(--muted)}
.transcription-details summary{cursor:pointer;color:var(--accent);width:fit-content;padding:var(--space-xs) 0}
.transcription-details dl{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:var(--space-md);row-gap:var(--space-xs);margin:var(--space-sm) 0 0}
.transcription-details dt{color:var(--muted)}.transcription-details dd{margin:0;color:var(--secondary);overflow-wrap:anywhere;white-space:pre-wrap}
.transcription-details dl+dl{border-top:1px solid var(--line);padding-top:var(--space-sm)}
@media(max-width:768px){.transcription-details summary{min-height:44px;display:flex;align-items:center;gap:var(--space-xs)}.transcription-details summary::before{content:'▸'}.transcription-details[open] summary::before{content:'▾'}}

/* Compact workspace chrome keeps radio clips ahead of explanatory text. */
h1 .count-badge{vertical-align:middle;margin-left:var(--space-xs)}
.live-status{font-size:11px;color:var(--muted);margin-right:auto;white-space:nowrap}
.feed-controls:has(.button-group button:not([hidden])){justify-content:flex-end}
.feed-controls:not(:has(.button-group button:not([hidden]))){display:none}
@media(max-width:768px){
 .capture-summary .summary-action{display:none}.live-status{margin-left:auto;margin-right:0}.match-toolbar .filter-control{flex-basis:100%}.stream-heading h1{white-space:nowrap}
 #history-view .workspace-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-sm)}
 .history-filters{display:contents}.history-filters .filter-control:first-child{grid-column:1/-1}
 .history-filters .filter-control{min-width:0}.history-filters select{width:0}
}
 
/* The archive uses the regular ATC Monitor chrome and clip layout. */
.replay-mode #clock{display:inline;font-variant-numeric:tabular-nums;white-space:nowrap}
.replay-mode main{padding-top:0}
.replay-mode .tabs{align-items:center;gap:var(--space-lg);margin-bottom:var(--space-sm);overflow:visible}
.replay-mode .tabs .tab{align-self:stretch}
.replay-mode .replay-actions{align-items:center;margin-inline-start:auto;padding-block:var(--space-xs);flex-shrink:0}
.replay-actions .primary,.replay-speed{min-height:36px}
.replay-actions .primary{min-width:64px}
.replay-actions .replay-restart{width:38px;padding-inline:0;font-size:18px;line-height:1}
.replay-speed{width:62px;appearance:none;text-align:center;padding-inline:var(--space-sm)}
.replay-mode .stream-heading{gap:var(--space-sm);margin-bottom:var(--space-xs)}
.replay-mode .clip-stream .entry{padding-block:var(--space-md)}
.replay-mode .clip-stream .entry-meta{justify-content:flex-start;gap:var(--space-md);font-size:13px}
.replay-mode .clip-stream .entry-meta time{font-size:12px}
.replay-mode .clip-stream .entry-text{font-size:15px}
.replay-mode .clip-stream .entry-foot .play-button{min-height:38px}
.replay-mode .empty{padding:var(--space-xl) var(--space-lg)}
.replay-mode .empty p{margin:0}
@media(max-width:768px){
 .replay-mode .connection #connection-dot,.replay-mode .connection #connection-label{display:none}
 .replay-mode #clock{font-size:10px}
 .replay-mode .tabs{gap:var(--space-sm)}
 .replay-mode .stream-heading h1{font-size:20px}
 .replay-actions{gap:var(--space-xs)}
 .replay-actions .primary,.replay-actions .replay-restart,.replay-speed{min-height:44px}
 .replay-actions .primary{min-width:48px;padding-inline:var(--space-sm)}
 .replay-actions .replay-restart{width:44px}
 .replay-speed{width:62px;font-size:16px;padding-inline:var(--space-xs)}
 .replay-mode .match-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--space-sm)}
 .replay-mode .match-toolbar .filter-control{width:auto}
 .replay-mode .match-toolbar select{width:100%;min-height:44px;font-size:16px}
 .replay-mode .match-toolbar label,.replay-mode .criterion-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .replay-mode .live-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .replay-mode .clip-stream .entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-sm)}
 .replay-mode .clip-stream .entry-meta{grid-column:1;flex-direction:column;align-items:flex-start;gap:2px}
 .replay-mode .clip-stream .entry-meta time{white-space:nowrap}
 .replay-mode .clip-stream .entry-source{max-width:100%}
 .replay-mode .clip-stream .entry-text{grid-column:1/-1;margin:0}
 .replay-mode .clip-stream .entry-foot{grid-row:1;grid-column:2}
 .replay-mode .clip-stream .entry-foot .play-button{min-height:44px}
}
.replay-tab-short{display:none}
@media(max-width:420px){
 .replay-tab-long{display:none}
 .replay-tab-short{display:inline}
 .replay-mode .tabs{gap:var(--space-xs)}
 .replay-mode .tabs .tab{font-size:11px}
 .replay-mode .replay-speed{width:58px}
}
