:root {
  color-scheme: light;
  --bg: #f4f6f7;
  --surface: #fff;
  --surface-raised: #edf3f4;
  --border: #d7dfe3;
  --text: #182c37;
  --muted: #4b626e;
  --accent: #006c70;
  --ok: #267452;
  --danger: #a93a34;
  --sky: #316a95;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: 1440px;
  --gutter: 32px;
}
* { box-sizing: border-box; }
html { scrollbar-color: #97a9b2 var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); }
button, input, select, textarea { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
a { color: inherit; text-decoration: none; }
:where(button,a,input,select,textarea,summary,[tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.record-origin { display:inline-flex; align-items:center; max-width:100%; margin-top:4px; padding:2px 7px; border:1px solid #d8dfe4; border-radius:20px; background:#f4f6f8; color:#435966; font-size:10px; font-weight:650; line-height:1.5; overflow-wrap:anywhere; }
.record-origin-field { background:#edf8f1; border-color:#c9e5d4; color:#236442; }
.record-origin-synthetic { background:#f5efff; border-color:#dfd0f0; color:#6b4194; }
.record-origin-sql_test,.record-origin-demo { background:#fff7e9; border-color:#ecdcbf; color:#865a17; }
.record-origin-notice { display:flex; flex-wrap:wrap; gap:8px; align-items:baseline; margin:0 0 14px; color:var(--muted); font-size:12px; }
.record-origin-notice .record-origin { flex-shrink:0; margin:0; }
.record-origin-notice .record-origin-description { flex:1 1 220px; min-width:0; }
.player-tags .record-origin { margin-top:0; }
.player-source-diagnostics { max-width:40rem; color:var(--muted); font-size:11px; }
.player-source-diagnostics summary { cursor:pointer; }
.player-source-diagnostics p { margin:6px 0 0; overflow-wrap:anywhere; }
::selection { background: #d4eeed; color: #173b3d; }
svg { display: block; }

.app-shell { min-height: 100vh; }
.shell-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar, #nav, .content, .main-footer { width: min(100%,var(--page)); margin-inline: auto; padding-inline: var(--gutter); }
.topbar { min-height: 58px; display: flex; align-items: center; gap: 17px; }
.brand, .login-brand { display: flex; align-items: center; gap: 9px; color: var(--text); white-space: nowrap; text-align: left; }
.brand { padding: 0; border: 0; background: transparent; }
.brand>div, .login-brand>div { display: flex; gap: 5px; align-items: baseline; font-size: 16px; }
.brand strong, .login-brand strong { font-weight: 700; letter-spacing: -.35px; }
.brand>div>span, .login-brand>div>span { color: var(--muted); font-weight: 450; }
.brandmark { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px; background: var(--accent); color: #fff; }
.brandmark svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.workspace { min-width: 0; padding-left: 16px; border-left: 1px solid var(--border); }
.workspace strong, .account strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace strong { color: var(--muted); font-size: 12px; font-weight: 540; }
.portal-client { display: none; color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.2; }
@media (max-width: 760px) {
  [data-presentation="ted_enerji"] .brand { flex-direction: column; align-items: flex-start; gap: 2px; }
  [data-presentation="ted_enerji"] .portal-client { display: block; }
}
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.source-pill { display: flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; font-size: 11px; }
.source-pill span { width: 6px; height: 6px; border-radius: 50%; background: #788d98; }
.source-pill b { font-weight: 520; }
.account { display: flex; align-items: center; gap: 10px; padding-left: 13px; border-left: 1px solid var(--border); }
.account strong { max-width: 148px; font-size: 12px; font-weight: 630; }
.account small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }
.icon-button { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; padding: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); }
.icon-button:hover { background: var(--surface-raised); color: var(--accent); border-color: var(--border); }
.icon-button svg, .nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar { border-top: 1px solid #e6ebee; }
#nav { display: flex; min-height: 42px; align-items: stretch; gap: 4px; }
.nav-item { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 8px 13px 7px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 560; white-space: nowrap; }
.nav-item svg { width: 15px; height: 15px; }
.nav-item:hover { background: #f4f7f8; color: var(--accent); }
.nav-item.active { color: var(--accent); border-color: var(--accent); font-weight: 680; }
/* Keep the vertical menu in one column; the sidebar owns vertical scrolling. */
.sidebar #nav { flex-wrap: nowrap; flex-shrink: 0; min-width: 0; }
.sidebar .nav-item { min-width: 0; white-space: normal; text-align: left; }
.sidebar .nav-item > span { min-width: 0; overflow-wrap: anywhere; }
.mobile-menu, .menu-scrim { display: none; }

main { display: flex; flex-direction: column; min-height: calc(100vh - 102px); min-width: 0; }
.content { min-width: 0; flex: 1; padding-top: 25px; padding-bottom: 36px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 17px; }
h1 { margin: 0; font-size: clamp(23px,3vw,29px); line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
h2 { margin: 0; color: var(--text); font-size: 15px; font-weight: 650; }
.page-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.eyebrow { display: inline-block; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .025em; }
.mono { font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.button, .row-button { display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 34px; padding: 6px 11px; border: 1px solid #b9c9d0; border-radius: 4px; background: var(--surface); color: var(--accent); font-size: 12px; font-weight: 620; white-space: nowrap; }
.button:hover, .row-button:hover { background: var(--surface-raised); border-color: #8fa7af; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: #005b60; border-color: #005b60; }
.row-button { min-height: 29px; padding: 4px 7px; }
.link-text { border: 0; padding: 3px 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 620; white-space: nowrap; }
.link-text:hover { text-decoration: underline; text-underline-offset: 3px; }
.badge { display: inline-flex; gap: 6px; align-items: center; padding: 2px 6px; border-radius: 3px; background: #edf1f3; color: #425962; font-size: 11px; font-weight: 560; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.ready, .badge.succeeded { background: #eaf4ee; color: var(--ok); }
.badge.failed, .badge.quarantined { background: #fbefed; color: var(--danger); }
.badge.running, .badge.raw_verified, .badge.retry, .badge.converting { background: #faf2e5; color: #83520c; }
.badge.converted, .badge.queued { background: #eaf2f8; color: #315e80; }

.panel { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 15px; border-bottom: 1px solid var(--border); }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.table-wrap { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { padding: 9px 13px; border-bottom: 1px solid var(--border); background: #f7f9fa; color: var(--muted); font-size: 11px; font-weight: 650; white-space: nowrap; }
td { padding: 10px 13px; border-bottom: 1px solid #e8edf0; color: var(--text); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f3f8f8; }
td strong { display: block; font-size: 12px; font-weight: 610; }
td small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.video-list-table .video-tags-cell{min-width:190px;max-width:310px;vertical-align:top}
.video-tags{display:flex;flex-wrap:wrap;align-items:flex-start;gap:5px;margin-top:6px;max-width:290px}
.video-tag{display:flex;flex:0 1 auto;flex-direction:column;gap:3px;min-width:0;max-width:100%;padding:5px 7px;border:1px solid #b9d2db;border-radius:4px;background:#eff7f9;color:#224e5e}
.video-tag.ai{border-color:#d9c8a0;background:#fbf6e9;color:#77561f}
.video-tag.unknown{border-color:var(--border);background:var(--surface-raised);color:var(--muted)}
.video-tag-value{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font:600 12px/1.4 var(--sans,system-ui,sans-serif);white-space:normal}
.video-tag-origin{display:block;font-size:10px;font-weight:500;line-height:1.35}
.video-tags .video-tag-note{flex-basis:100%;margin:0;font:400 10px/1.4 var(--sans,system-ui,sans-serif);white-space:normal;overflow-wrap:anywhere}
.video-tag-details{flex-basis:100%;min-width:0;max-width:100%;font:400 11px/1.45 var(--sans,system-ui,sans-serif)}
.video-tag-details>summary{cursor:pointer;color:var(--accent);font-size:10px;white-space:normal}
.video-tag-detail-list{display:grid;gap:8px;margin-top:7px}
.video-tag-detail-list>section{min-width:0;padding:7px;border-left:2px solid #a9c8d1;background:var(--surface-raised)}
.video-tag-full{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere;font:500 12px/1.5 var(--sans,system-ui,sans-serif)}
.video-tag-evidence{white-space:normal;overflow-wrap:anywhere}
.video-tag-evidence .link-text{font-size:11px;white-space:normal;text-align:left}
.video-tag-quote{margin:6px 0 0;padding-left:8px;border-left:2px solid #d3bf93;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);font-size:11px}
.video-tag-details-panel{margin:14px 0;padding:12px;border:1px solid var(--border);border-radius:4px}
.video-tag-details-panel>summary{font-size:12px;font-weight:600}
.video-inspector-cell{min-width:150px;max-width:200px;vertical-align:top}
.video-inspector-state{display:block;font:400 11px/1.5 var(--sans,system-ui,sans-serif);color:var(--muted);white-space:normal;overflow-wrap:anywhere}
.field { display: flex; flex: 0 1 140px; min-width: 110px; flex-direction: column; gap: 5px; }
.field.search { flex: 1 1 190px; min-width: 150px; }
.field label, .login-card label { color: var(--muted); font-size: 12px; font-weight: 580; }
.field input, .field select, .login-card input { min-width: 0; max-width: 100%; min-height: 35px; padding: 6px 8px; border: 1px solid #a8b9c2; border-radius: 4px; background: var(--surface); color: var(--text); font-size: 12px; }
input::placeholder, textarea::placeholder { color: #627680; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 14px 15px; border-bottom: 1px solid var(--border); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 15px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.pagination>div { display: flex; gap: 7px; }
.empty { padding: 38px 16px; text-align: center; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 9px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-raised); color: var(--accent); }
.empty-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.empty h3 { margin: 0 0 4px; color: var(--text); font-size: 14px; }
.empty p { max-width: 42ch; margin: auto; font-size: 12px; }
.loading { padding: 45px 16px; text-align: center; color: var(--muted); }
.note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-raised); color: var(--muted); font-size: 12px; }
.note b { color: var(--text); }
.note p { margin: 3px 0 0; }
.note>span { color: var(--accent); }
.main-footer { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }

.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 16px; overflow: hidden; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.stat-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; min-width: 0; min-height: 74px; padding: 12px 15px; border: 0; background: var(--surface); color: inherit; text-align: left; }
.stat-card + .stat-card { border-left: 1px solid var(--border); }
button.stat-card:hover { background: #f0f7f7; }
button.stat-card:focus-visible { outline-offset: -3px; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { display: block; margin-top: 1px; color: var(--text); font-size: 25px; font-weight: 640; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-icon { color: #718a96; }
.stat-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.65; }
.overview-content { display: grid; grid-template-columns: minmax(0,1fr) minmax(290px,326px); gap: 16px; align-items: start; }
.analytics-grid { display: grid; gap: 13px; min-width: 0; }
.analytics-grid .panel-header { padding-block: 11px; }
.chart-chip { display: inline-flex; align-items: center; color: var(--muted); font-size: 11px; white-space: nowrap; }
.topbar-actions>.chart-chip { padding: 3px 6px; border: 1px solid var(--border); border-radius: 3px; font-size: 10px; }
.chart-body { padding: 11px 14px 12px; }
.chart-legend { display: flex; gap: 12px; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.chart-legend span, .status-row>span { display: flex; align-items: center; gap: 6px; }
.chart-key { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 1px; background: var(--chart-color,#647b86); }
.chart-key.ptt, .status-ready { --chart-color: var(--accent); }
.chart-key.video, .status-processing { --chart-color: var(--sky); }
.status-waiting { --chart-color: #956116; }
.status-problem { --chart-color: var(--danger); }
.activity-plot { position: relative; min-width: 0; }
.activity-plot svg { width: 100%; height: 103px; padding-left: 26px; overflow: visible; }
.activity-gridline { stroke: #e2e9ec; stroke-width: 1; vector-effect: non-scaling-stroke; }
.activity-bars rect { transform-box: fill-box; transform-origin: bottom center; animation: bar-enter .45s ease-out both; animation-delay: var(--delay); }
.activity-bars .ptt { fill: var(--accent); }
.activity-bars .video { fill: #6195b4; }
.activity-day .chart-column { fill: transparent; stroke: transparent; vector-effect: non-scaling-stroke; }
.activity-day:hover .chart-column, .activity-day:focus .chart-column { fill: #006c7010; stroke: #6a8c98; }
.activity-day:focus { outline: none; }
.activity-axis { display: grid; grid-template-columns: repeat(14,minmax(0,1fr)); margin: 4px 0 0 26px; color: var(--muted); text-align: center; font-size: 9px; }
.activity-axis span { visibility: hidden; }
.activity-axis span:is(:first-child,:nth-child(5),:nth-child(9),:last-child) { visibility: visible; }
.activity-axis span:last-child { text-align: right; }
.activity-scale { position: absolute; inset: 0 auto 0 0; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-size: 9px; pointer-events: none; }
.chart-inspect { min-height: 15px; margin-top: 7px; color: var(--muted); font-size: 11px; }
@keyframes bar-enter { from { transform: scaleY(.02); } to { transform: scaleY(1); } }
.status-visual { margin-bottom: 8px; }
.status-totals { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.status-totals strong { color: var(--ok); font-size: 17px; font-weight: 670; font-variant-numeric: tabular-nums; }
.status-visual svg { width: 100%; height: 5px; }
.status-track { stroke: #e5eceb; stroke-width: 4; }
.status-progress { stroke: var(--ok); stroke-width: 4; stroke-dasharray: var(--percent) 100; animation: progress-enter .6s ease-out both; }
@keyframes progress-enter { from { stroke-dasharray: 0 100; } to { stroke-dasharray: var(--percent) 100; } }
.status-list { margin: 0; }
.status-row { display: flex; justify-content: space-between; gap: 8px; min-height: 23px; padding: 3px 0; color: var(--muted); font-size: 11px; }
.status-row b { color: var(--text); font-size: 11px; font-weight: 620; font-variant-numeric: tabular-nums; }
.recent-panel .panel-header { min-height: 55px; padding-block: 10px; }
.recent-panel table { min-width: 690px; }
.recent-panel td { height: 52px; }
.recent-panel td:nth-child(4) { min-width: 95px; }
.record-type { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; color: var(--muted); font-size: 11px; font-weight: 570; }
.record-type svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.recent-actions { display: flex; gap: 8px; }
.recent-actions .button { min-height: 30px; }
.overview-bounds { margin: 0; padding: 9px 13px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.overview-bounds strong { color: var(--text); font-weight: 550; }

.login-screen { min-height: 100vh; display: grid; place-items: center; }
.login-entry { width: min(100%,410px); padding: 18px; }
.login-card { padding: 25px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.login-brand { margin-bottom: 21px; }
.login-card h1 { font-size: 24px; }
.login-card>p { margin: 5px 0 19px; color: var(--muted); font-size: 13px; }
.login-card label { display: block; margin-bottom: 12px; }
.login-card input { display: block; width: 100%; margin-top: 4px; }
.login-card .button { width: 100%; justify-content: space-between; margin-top: 4px; }
.login-entry footer { margin-top: 12px; color: var(--muted); text-align: center; font-size: 11px; }
.error { color: var(--danger) !important; }
.login-card .error { margin-bottom: 0; }
.error:empty { display: none; }
.toast { position: fixed; z-index: 50; inset: auto auto 20px 50%; transform: translateX(-50%); max-width: 90vw; padding: 10px 14px; border: 1px solid #a8b9c2; border-radius: 4px; background: var(--surface); color: var(--text); font-size: 12px; box-shadow: 0 5px 18px #152d3b22; }

dialog { width: min(860px,94vw); max-height: 92vh; padding: 0; border: 1px solid #a8b9c2; border-radius: 6px; background: var(--surface); color: var(--text); box-shadow: 0 15px 55px #152d3b33; }
dialog::backdrop { background: #1c33425c; }
.dialog-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 17px; border-bottom: 1px solid var(--border); background: var(--surface); }
.dialog-header h2 { margin-top: 2px; }
#detail-body { padding: 16px 17px; }
.detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin: 16px 0; }
.detail-grid dt { margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.detail-grid dd { margin: 0; overflow-wrap: anywhere; font-size: 12px; }
audio, video { width: 100%; max-height: 420px; border-radius: 4px; }
video { background: #111a20; }
.media-pending { padding: 21px 12px; border: 1px dashed #a8b9c2; border-radius: 4px; background: var(--surface-raised); color: var(--muted); text-align: center; font-size: 12px; }
.detail-note { color: var(--muted); font-size: 11px; }
.detail-source { max-height: 100px; overflow: auto; padding: 8px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--muted); word-break: break-all; font: 11px var(--mono); }

@media (max-width: 1100px) {
  :root { --gutter: 20px; }
  .overview-content { grid-template-columns: minmax(0,1fr); }
  .analytics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  :root { --gutter: 13px; }
  main { min-height: calc(100vh - 53px); }
  .topbar { min-height: 53px; gap: 7px; }
  .mobile-menu { display: grid; }
  .workspace, .account>div, .source-pill { display: none; }
  .account { padding-left: 2px; border: 0; }
  .topbar-actions { gap: 1px; }
  .topbar-actions>.chart-chip { font-size: 9px; }
  .brand>div { font-size: 14px; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 6; width: min(260px,82vw); background: var(--surface); border-right: 1px solid var(--border); transform: translateX(-100%); visibility: hidden; transition: transform .16s, visibility .16s; }
  .sidebar.open { transform: translateX(0); visibility: visible; }
  #nav { flex-direction: column; gap: 2px; padding: 12px 8px; }
  .nav-item { min-height: 41px; border: 0; border-left: 2px solid transparent; border-radius: 3px; }
  .nav-item.active { background: #e9f3f2; }
  .menu-scrim { display: block; position: fixed; z-index: 5; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #18374655; }
  .content { padding-top: 19px; }
  .page-heading { align-items: flex-start; margin-bottom: 13px; }
  .page-heading p { font-size: 12px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-card { min-height: 63px; padding: 10px 12px; }
  .stat-card:nth-child(3) { border-left: 0; }
  .stat-card:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .stat-value { font-size: 22px; }
  .analytics-grid { grid-template-columns: minmax(0,1fr); }
  .overview-content { gap: 12px; }
  .panel-header, .chart-body, .toolbar, .pagination { padding-inline: 11px; }
  .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .field.search { flex-basis: 100%; min-width: 0; }
}
@media (max-width: 420px) {
  .topbar-actions>.chart-chip { max-width: 65px; white-space: normal; line-height: 1.1; }
  .brand>div>span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

.location-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}.map-container{position:relative;min-height:420px;background:linear-gradient(#f5f7fb99,#f5f7fb99),repeating-linear-gradient(0deg,transparent,transparent 38px,#dde5ef 39px),repeating-linear-gradient(90deg,transparent,transparent 38px,#dde5ef 39px);display:flex;align-items:center;justify-content:center}.map-container svg{width:100%;height:420px}.map-label{position:absolute;bottom:14px;left:16px;font-size:10px;padding:6px 9px;border:1px solid #e2e7f0;border-radius:5px;background:#ffffffd9;color:#8a97ac}.map-container circle{cursor:pointer}.point-list{max-height:420px;overflow-y:auto;border-left:1px solid #e9edf5}.point-button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #eff2f6;background:#fff;padding:14px 20px;color:#64728a;font-size:11px}.point-button:hover,.point-button.active{background:#f4f0fb}.point-button small{display:block;margin-top:4px;color:#a3aec0}.location-stats{padding:15px 24px;border-top:1px solid #e9edf5;font-size:11px;color:#95a1b4}

/* Record processing controls share the existing detail dialog and never affect playback. */
.processing-section{margin:26px 0;border-top:1px solid #e6eaf2;padding-top:24px}.processing-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.processing-heading h3{font-size:17px;margin:4px 0 0;color:#34425b;font-weight:600}.processing-heading h4{font-size:12px;font-weight:600;margin:0;color:#52627d}.processing-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0;margin:0 0 20px;list-style:none;gap:10px}.processing-stage{display:flex;gap:9px;align-items:flex-start;background:#f6f7fb;border:1px solid #e7eaf2;border-radius:8px;padding:13px 10px;min-width:0}.stage-number{flex:0 0 22px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:11px;background:#e7eaf2;color:#8b97a9}.processing-stage.complete{background:#f0f8f4;border-color:#dceee3}.processing-stage.complete .stage-number{background:#daeee1;color:#508c6d}.processing-stage.blocked .stage-number{background:#fae9d7;color:#b8874b}.processing-stage.queued .stage-number{background:#eee6fb;color:#8c65c7}.processing-stage strong{display:block;font-size:11px;font-weight:600;color:#58677f}.processing-stage small{display:block;font-size:10px;color:#8c98ac;margin-top:3px}.processing-stage p{font-size:10px;line-height:1.55;color:#9a896d;margin:7px 0 0;overflow-wrap:anywhere}.processing-card{border:1px solid #e5e9f2;border-radius:8px;background:#fff;margin-bottom:12px;overflow:hidden}.processing-card>summary{cursor:pointer;padding:15px 16px;background:#fbfbfe;color:#52617b;font-size:12px;font-weight:550;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px}.processing-card>summary:before{content:'+';color:#9b83c1;font-size:19px;font-weight:400}.processing-card[open]>summary:before{content:'−'}.processing-card>summary span{margin-right:auto}.processing-card>summary small{font-size:10px;font-weight:400;color:#9aa5b6;text-align:right}.processing-card[open]>summary{border-bottom:1px solid #e9edf4}.processing-card>form{padding:17px 18px}.processing-card fieldset{border:0;padding:0;margin:0;min-width:0}.processing-card fieldset:disabled{opacity:.62}.processing-card label{display:block;font-size:11px;color:#7e8ba0;margin:15px 0}.processing-card input:not([type=checkbox]),.processing-card textarea{display:block;width:100%;border:1px solid #dfe5ee;border-radius:6px;padding:9px 11px;background:#fff;color:#465671;font-size:12px;font-family:inherit;margin-top:7px;max-width:100%}.processing-card textarea{resize:vertical;min-height:65px;line-height:1.6}.processing-card textarea.processing-json{font-family:'SFMono-Regular',Consolas,monospace;font-size:11px;min-height:145px;tab-size:2;white-space:pre}.processing-card input::placeholder,.processing-card textarea::placeholder{color:#adb6c5}.processing-card .processing-confirm{display:flex;align-items:flex-start;gap:9px;background:#f6f3fc;padding:11px;border-radius:6px;color:#847296;line-height:1.7;font-size:11px}.processing-confirm input{flex:0 0 15px;width:15px;height:15px;margin:2px 0 0;accent-color:#7755c9}.processing-confirm span{min-width:0}.processing-time-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.processing-time-fields input{font-family:'SFMono-Regular',Consolas,monospace!important;font-size:10px!important}.processing-help{font-size:11px;line-height:1.8;color:#919caf;margin:0 0 10px}.processing-warning{padding:10px 12px;background:#fff6e9;color:#b48d54;border-radius:6px;font-size:11px;line-height:1.7}.processing-error{color:#b86e62;font-size:11px;line-height:1.8;margin:13px 0 0;overflow-wrap:anywhere}.merge-preflight{padding:16px 18px 0;font-size:11px;color:#8794a8}.merge-preflight strong{color:#718099;font-size:11px;font-weight:600}.merge-preflight p{margin:6px 0}.merge-preflight ul{margin:9px 0 0;padding-left:18px;color:#b48d54}.merge-preflight li{margin:4px 0}.merge-preflight .processing-good{color:#5b967c}.processing-history{margin-top:24px;border-top:1px solid #edf0f5;padding-top:20px}.processing-history ul{list-style:none;padding:0;margin:0}.processing-history li{padding:12px 0;border-top:1px solid #f0f2f7;display:flex;align-items:center;justify-content:space-between;gap:14px}.processing-history strong{display:block;color:#7b88a0;font-size:11px;font-weight:500}.processing-history small{display:block;font-size:10px;color:#a2acbd;line-height:1.7;margin-top:3px}.processing-section[aria-busy=true]{opacity:.7}textarea:focus-visible,summary:focus-visible{outline:3px solid #a78bfa;outline-offset:3px}
@media(max-width:800px){.processing-stages{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.processing-stage{padding:11px 9px}.processing-heading{align-items:flex-start}.processing-heading h3{font-size:15px}.processing-heading .button{font-size:10px;padding:7px 9px;white-space:nowrap}.processing-card>summary{padding:12px;font-size:11px}.processing-card>summary small{max-width:105px;font-size:9px}.processing-card>form{padding:13px}.processing-time-fields{grid-template-columns:1fr;gap:0}.processing-history li{align-items:flex-start}.processing-history .badge{margin-top:2px}.processing-card input:not([type=checkbox]),.processing-card textarea{font-size:16px}.processing-card textarea.processing-json{font-size:12px}.processing-history .processing-heading{flex-wrap:wrap}#detail-body{padding:20px}.dialog-header{padding:18px 20px}}

.latest-merge{padding:15px 18px;background:#f6f3fc;display:flex;justify-content:space-between;align-items:center;gap:14px}.latest-merge strong{font-size:11px;color:#79688f;font-weight:600;margin-right:9px}.latest-merge p{font-size:11px;color:#9d8b71;margin:8px 0 0;line-height:1.7}.latest-merge .link-text{flex-shrink:0}@media(max-width:800px){.latest-merge{align-items:flex-start;flex-direction:column;gap:10px}.latest-merge .link-text{padding:0}}
.processing-stage small{color:#6f7e95}.processing-stage p{color:#8a6b3b}.processing-card label{color:#66758f}.processing-help{color:#6f7d93}.processing-warning{color:#8a6732}.processing-error{color:#a45749}.processing-card fieldset:disabled{opacity:1}.processing-card fieldset:disabled input:not([type=checkbox]),.processing-card fieldset:disabled textarea{background:#f6f7fb;color:#8290a6}.processing-history small{color:#7b899f}.latest-merge p{color:#8a6b3b}

/* Native merged-media playback: video and timed PTT metadata are independent UI. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
dialog.merge-player-dialog{width:min(1280px,96vw);max-height:94vh}
.merge-player-dialog #detail-body{padding:22px 26px 26px}
.merge-player-dialog .dialog-header h2{overflow-wrap:anywhere}
.merge-player{--player-progress:0%;min-width:0}
.player-meta-strip{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}
.player-tags{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}
.player-generation{font-size:11px;color:#7e8ba1}
.player-demo{display:inline-flex;padding:4px 9px;border-radius:5px;background:#fff4df;border:1px solid #f0dfbe;font-size:10px;font-weight:600;color:#967137}
.player-provenance{font-size:11px;color:#7d8aa0;text-align:right;overflow-wrap:anywhere}
.player-source-meta{display:grid;grid-template-columns:1fr 1fr 1.4fr .7fr;gap:18px;margin:0 0 22px}
.player-source-meta>div{min-width:0}
.player-source-meta dt{font-size:9px;font-weight:550;letter-spacing:.7px;color:#8794aa;margin-bottom:5px}
.player-source-meta dd{margin:0;color:#52617b;font-size:12px;overflow-wrap:anywhere}
.player-source-meta dd.mono{font-size:10px}
.player-demo-note{margin:-8px 0 20px;padding:10px 13px;background:#fff9ed;border:1px solid #f1e5d0;border-radius:7px;color:#967544;font-size:11px;line-height:1.7}
.player-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:stretch}
.player-stage{min-width:0;align-self:start;border:1px solid #e2e7f0;border-radius:10px;overflow:hidden;background:#111b2e}
.player-stage video{display:block;width:100%;max-height:560px;aspect-ratio:16/9;object-fit:contain;border-radius:0;background:#0d1524}
.player-viewport{position:relative;isolation:isolate;background:#0d1524;--player-overlay-inset:clamp(7px,1.1vw,14px)}
.badge.event_only{background:#e6f3f3;color:#376a70}
.player-event-only{margin-top:16px;padding-top:14px;border-top:1px solid #e3e8f1}
.player-event-only h3{font-size:12px}.player-event-only p,.player-event-only small{color:#6f7f95;font-size:11px;line-height:1.5}
.player-event-only ul{list-style:none;margin:8px 0 0;padding:0}.player-event-only li{margin-top:8px;overflow-wrap:anywhere}.player-event-only small{display:block;margin-top:3px}
/* Independent top corners leave the lower picture for speech subtitles. No blur. */
#player-video-clock.player-watermark{
 position:absolute;z-index:1;top:var(--player-overlay-inset);left:var(--player-overlay-inset);right:auto;
 display:flex;flex-direction:column;align-items:flex-start;gap:2px;max-width:calc(45% - var(--player-overlay-inset));
 padding:6px 8px;border-radius:4px;background:rgba(4,10,20,.78);color:#fff;opacity:1;
 font:600 clamp(10px,1.1vw,14px)/1.3 var(--mono,ui-monospace,monospace);font-variant-numeric:tabular-nums;
 letter-spacing:0;text-align:left;text-shadow:0 1px 2px #000;pointer-events:none;user-select:none;
}
#player-clock-value{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.player-viewport .player-live-meta{
 position:absolute;z-index:1;top:var(--player-overlay-inset);right:var(--player-overlay-inset);
 display:flex;flex-direction:column;align-items:stretch;max-width:calc(48% - var(--player-overlay-inset));min-width:0;
 max-height:calc(43% - var(--player-overlay-inset));overflow:hidden;
 padding:6px 8px;border-radius:4px;background:rgba(4,10,20,.78);color:#fff;
 font-size:clamp(10px,1.1vw,14px);line-height:1.35;text-align:right;text-shadow:0 1px 2px #000;
 pointer-events:none;user-select:none;
}
.player-viewport .player-channel{min-width:0}
.player-viewport .player-channel>span{display:block;color:#c5dce4;font-size:.65em;font-weight:500;line-height:1.25;letter-spacing:.08em;text-transform:uppercase}
.player-viewport .player-channel>strong{display:block;min-width:0;max-width:100%;font-size:1em;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#player-captions{
 position:static;inset:auto;transform:none;display:flex;flex-direction:column;gap:4px;width:auto;max-width:none;
 padding:5px 0 0;margin:5px 0 0;border-top:1px solid #ffffff30;border-radius:0;background:none;color:#fff;
 font-size:1em;line-height:1.35;text-align:right;pointer-events:none;
}
#player-captions[hidden]{display:none}
.player-caption-line{display:flex;align-items:baseline;justify-content:flex-end;gap:5px;min-width:0}
.player-caption-line>span{font-size:.65em;letter-spacing:.08em;color:#c5dce4;flex-shrink:0}
.player-caption-line>strong{display:block;flex:1 1 auto;min-width:0;max-width:100%;font-weight:650;color:#78e6ed;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Higher specificity keeps speaker markup distinct from the later generic cue rule. */
#player-viewport #merge-video::cue{color:#fff;font-weight:400;text-shadow:0 1px 2px #000;background-color:rgba(4,10,20,.86)}
#player-viewport #merge-video::cue(b){color:#78e6ed;font-weight:700}
@media(max-width:480px){
 #player-video-clock.player-watermark,.player-viewport .player-live-meta{padding:5px 6px;font-size:10px}
 #player-captions{padding-top:4px;margin-top:4px;gap:3px}
 .player-caption-line{gap:4px}
}
.player-fullscreen{position:absolute;z-index:2;right:10px;bottom:9px;display:grid;place-items:center;width:32px;height:32px;padding:6px;border:1px solid #ffffff50;border-radius:5px;color:#fff;background:#07111dcc;cursor:pointer}.player-fullscreen[hidden]{display:none}.player-fullscreen svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.player-fullscreen:focus-visible{outline:2px solid #fff;outline-offset:3px}
.player-viewport:fullscreen{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#000;--player-overlay-inset:clamp(12px,2vw,24px)}
.player-viewport:fullscreen video{width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain}
.player-viewport:fullscreen #player-video-clock{font-size:clamp(12px,1.3vw,22px)}
.player-viewport:fullscreen .player-live-meta{font-size:clamp(13px,1.5vw,24px)}
.player-viewport:fullscreen #player-captions{position:static;inset:auto;font-size:1em}
.player-fullscreen-play{display:none}.player-viewport:fullscreen .player-fullscreen-play{display:block;position:absolute;z-index:2;left:14px;bottom:12px;border:1px solid #ffffff70;border-radius:5px;padding:7px 14px;background:#07111dcc;color:#fff;font:inherit;cursor:pointer}
.player-pilot-controls,.player-pilot-export{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 14px;background:#18243a;color:#d2dbea;font-size:11px}
.player-pilot-loading{display:flex;flex:1;min-width:120px;flex-direction:column;gap:4px}
.player-pilot-loading progress{width:100%;height:7px;accent-color:#a78bfa}
.player-pilot-controls .button,.player-pilot-export .button{padding:6px 11px;min-height:34px;font-size:11px}
.player-pilot-export{justify-content:space-between;border-top:1px solid #34415b}
.player-pilot-export>span{flex:1;min-width:120px}
.player-annotated-export{padding:14px;border-top:1px solid #34415b;background:#122b3c;color:#e1edf3;font-size:11px;line-height:1.5}
.player-annotated-export>strong{display:block;font-size:13px;color:#fff}
.player-annotated-export>p{margin:6px 0;color:#d0dfe7;overflow-wrap:anywhere}
.player-annotated-export #player-annotated-coverage.has-warning{color:#ffda91;font-weight:600}
.player-annotated-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.player-annotated-actions .button{max-width:100%;white-space:normal;text-align:center}
.player-annotated-actions [hidden]{display:none}
.player-playback-status{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 14px;background:#18243a;color:#c2cede;font-size:10px}
.player-playback-status .mono{font-size:10px;color:#a7b6ce;white-space:nowrap}
.player-media-error{padding:12px 14px;margin:0;background:#fff1eb;color:#9b5745;font-size:11px}
.player-speakers{min-width:0;border:1px solid #e3e8f1;border-radius:10px;background:#fbfcff;padding:17px}
.player-speakers-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.player-speakers-heading .eyebrow{font-size:9px;letter-spacing:1px}
.player-speakers h3{font-size:14px;color:#45536e;font-weight:600;line-height:1.4;margin:5px 0 0}
.player-active-count{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#edf0f7;color:#93a0b5;font-size:19px;font-weight:650;font-variant-numeric:tabular-nums;flex-shrink:0}
.player-active-count.has-overlap{background:#eee5fb;color:#8057bd}
#player-active-users{display:flex;flex-direction:column;gap:10px}
.player-speaker-card{border:1px solid #e0e6ef;border-left:3px solid var(--speaker-color);background:#fff;border-radius:7px;padding:12px 13px;min-width:0}
.player-speaker-card>div{display:flex;align-items:center;gap:5px;color:#6f7f95;font-size:8px;font-weight:650;letter-spacing:.8px}
.player-speaker-card i,.player-event-name i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--speaker-color);flex-shrink:0}
.player-speaker-card strong{font-size:13px;line-height:1.5;color:#41506b;font-weight:600;display:block;margin:5px 0 4px;overflow-wrap:anywhere}
.player-speaker-card small{font-size:9px;color:#8c98ad}
.player-no-speaker{min-height:165px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:18px 9px;color:#9ca9bd}
.player-no-speaker>span{font-size:35px;line-height:1;color:#c4b7de;margin-bottom:13px}
.player-no-speaker strong{font-size:12px;color:#7c8ba2;font-weight:500}
.player-no-speaker p{font-size:10px;line-height:1.7;margin:7px 0 0;max-width:190px}
.player-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:15px}
.player-section-heading h3{font-size:14px;font-weight:600;color:#4f5e79;margin:0}
.player-section-heading p{font-size:11px;color:#8491a7;margin:4px 0 0}
.player-section-heading>span{font-size:10px;color:#8c99ad;white-space:nowrap;padding-top:3px}
.player-timeline-section{border:1px solid #e4e9f2;border-radius:10px;background:#fafbfe;margin-top:22px;padding:18px 20px 20px;min-width:0}
.player-seek{width:100%;height:20px;margin:0;accent-color:#805ac8;cursor:pointer}
.player-seek:disabled{cursor:default}
.player-time-axis{display:flex;justify-content:space-between;margin:2px 0 16px;font:9px "SFMono-Regular",Consolas,monospace;color:#8e9ab0;font-variant-numeric:tabular-nums}
.player-timeline-rows{display:flex;flex-direction:column;gap:11px}
.player-timeline-row{display:grid;grid-template-columns:145px minmax(0,1fr);gap:14px;align-items:center;min-width:0}
.player-track-name{font-size:11px;color:#718099;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-track{height:24px;border-radius:4px;position:relative;background:repeating-linear-gradient(to right,transparent,transparent calc(25% - 1px),#dfe4ee calc(25% - 1px),#dfe4ee 25%),#edf0f6;min-width:0}
.player-track:after{content:"";position:absolute;top:-3px;bottom:-3px;width:2px;border-radius:2px;left:min(var(--player-progress),calc(100% - 2px));background:#584a73;pointer-events:none;z-index:1}
.player-span{position:absolute;top:5px;height:14px;min-width:4px;border:0;border-radius:3px;background:var(--speaker-color);opacity:.82;padding:0;transition:opacity .12s}
.player-span:hover,.player-span:focus-visible{opacity:1;z-index:2}
.player-empty-timeline{font-size:11px;color:#8c99af;text-align:center;padding:12px;margin:0}
.player-events{margin-top:25px}
.player-event-list{padding:0;margin:0;list-style:none;border:1px solid #e6eaf2;border-radius:8px;overflow:hidden;max-height:270px;overflow-y:auto}
.player-event-list:empty{display:none}
.player-event-list li+li{border-top:1px solid #eef1f6}
.player-event{display:grid;grid-template-columns:85px minmax(0,1fr) 80px 15px;align-items:center;gap:12px;width:100%;background:#fff;border:0;text-align:left;padding:12px 15px;color:#8492a8;min-height:44px}
.player-event:hover{background:#f8f6fc}
.player-event.active{background:#f4effb;box-shadow:inset 3px 0 var(--speaker-color)}
.player-event-name{display:flex;align-items:center;gap:8px;min-width:0;font-size:11px;font-weight:550;overflow-wrap:anywhere;color:#596983}
.player-event-name i{width:6px;height:6px}
.player-event-time,.player-event-duration{font-size:10px}
.player-event-duration{text-align:right;color:#96a2b5}
.player-color-0{--speaker-color:#4ca78c}.player-color-1{--speaker-color:#669ade}.player-color-2{--speaker-color:#a578ca}.player-color-3{--speaker-color:#d59b61}.player-color-4{--speaker-color:#c98499}.player-color-5{--speaker-color:#78a8af}.player-color-6{--speaker-color:#a0a35f}.player-color-7{--speaker-color:#9a8ab8}
.player-layout{grid-template-columns:minmax(0,1fr) 320px;align-items:start}
.player-stage{position:sticky;top:100px}
.player-speakers{position:sticky;top:100px;max-height:calc(94vh - 130px);overflow-y:auto;scrollbar-gutter:stable}
.player-count-label{display:flex;flex-direction:column;align-items:center;gap:4px;flex-shrink:0}
.player-count-label>small{font-size:8px;color:#8694aa;white-space:nowrap}
.player-speakers-heading{margin-bottom:8px}
.player-roster-note{font-size:9px;line-height:1.6;color:#8190a7;margin:0 0 13px}
#player-active-users{max-height:350px;overflow-y:auto;padding:1px 3px 1px 1px;scrollbar-gutter:stable}
.player-speaker-card{transition:border-color .15s,background .15s;opacity:1}
.player-speaker-card.active{border-color:var(--speaker-color);background:#f6f5fd;box-shadow:0 0 0 1px var(--speaker-color)}
.player-speaker-card.active .player-speaker-status{color:#5c4979}
.player-speaker-card.completed{background:#f8fafc}
.player-speaker-card:not(.active) .player-speaker-status i{background:#aab5c6}
.player-speaker-card strong{margin-bottom:4px}
.player-user-type{display:block;font-size:10px;line-height:1.5;color:#66768f;overflow-wrap:anywhere;margin:0 0 5px}
.player-speaker-card small[data-roster-summary]{display:block;font-size:8px;line-height:1.7;color:#7d8ba3;overflow-wrap:anywhere}
.player-name-variants{font-size:8px;color:#8d9bb1;font-weight:400;white-space:nowrap}
.player-sidebar-events{margin-top:18px;border-top:1px solid #e1e7f0;padding-top:15px}
.player-sidebar-events .player-section-heading{gap:8px;margin-bottom:10px}
.player-sidebar-events .player-section-heading h3{font-size:12px}
.player-sidebar-events .player-section-heading p{font-size:9px;line-height:1.5}
.player-sidebar-events .player-section-heading>span{font-size:9px}
.player-sidebar-events .player-event-list{max-height:235px;background:#fff}
.player-sidebar-events .player-event{grid-template-columns:57px minmax(0,1fr) 43px;gap:6px;padding:10px 8px}
.player-sidebar-events .player-event>span:last-child{display:none}
.player-sidebar-events .player-event-time,.player-sidebar-events .player-event-duration{font-size:8px}
.player-event-person{min-width:0;display:flex;flex-direction:column;gap:3px}
.player-event-user-type{font-size:8px;line-height:1.5;color:#7b8ba4;overflow-wrap:anywhere;padding-left:13px}
.player-sidebar-events .player-event-name{font-size:10px;line-height:1.5;gap:6px}
.player-sidebar-events .player-event-name i{width:5px;height:5px}
.player-timeline-section{margin-top:22px}
@media(max-width:1000px){
 .player-layout{grid-template-columns:minmax(0,1fr) 235px;gap:14px}.player-speakers{padding:14px}.player-source-meta{grid-template-columns:1fr 1fr;gap:14px 20px}.player-speakers h3{font-size:12px}.player-speaker-card{padding:10px}.player-speaker-card strong{font-size:12px}.player-timeline-row{grid-template-columns:125px minmax(0,1fr)}
}
@media(min-width:701px) and (max-width:1000px){.player-layout{grid-template-columns:minmax(0,1fr) 255px}.player-sidebar-events .player-event{grid-template-columns:49px minmax(0,1fr) 35px;gap:4px;padding:9px 6px}.player-sidebar-events .player-event-name{font-size:9px}.player-user-type{font-size:9px}.player-sidebar-events .player-event-time,.player-sidebar-events .player-event-duration{font-size:7px}}
@media(max-width:700px){.player-stage{position:static}.player-speakers{position:static;max-height:none;overflow:visible;scrollbar-gutter:auto}#player-active-users{max-height:350px;padding:1px 2px;scrollbar-gutter:auto}.player-speaker-card .player-user-type{grid-column:1/-1;grid-row:2;font-size:10px;margin:3px 0 0}.player-speaker-card small[data-roster-summary]{grid-column:1/-1;grid-row:3;font-size:8px;margin-top:2px}.player-speaker-card>div.player-speaker-status{align-self:start;max-width:130px;overflow-wrap:anywhere;white-space:normal;line-height:1.5;text-align:right}.player-roster-note{margin-bottom:10px}.player-sidebar-events{margin-top:14px;padding-top:13px}.player-sidebar-events .player-section-heading{flex-direction:row;align-items:flex-start}.player-sidebar-events .player-event-list{max-height:265px}.player-sidebar-events .player-event{grid-template-columns:59px minmax(0,1fr) 44px;gap:7px;padding:11px 9px}.player-sidebar-events .player-event-time,.player-sidebar-events .player-event-duration{font-size:9px}.player-sidebar-events .player-event-name{font-size:11px}.player-event-user-type{font-size:9px}}
@media(max-width:700px){
 dialog.merge-player-dialog{width:96vw;max-height:94vh}.merge-player-dialog #detail-body{padding:16px}.merge-player-dialog .dialog-header{padding:15px 16px}.merge-player-dialog .dialog-header h2{font-size:16px}.merge-player-dialog .dialog-header .eyebrow{font-size:9px}.player-meta-strip{align-items:flex-start;flex-direction:column;gap:8px;margin-bottom:17px}.player-provenance{text-align:left;font-size:10px}.player-source-meta{gap:14px 12px;margin-bottom:18px}.player-source-meta dd{font-size:11px}.player-source-meta dd.mono{font-size:9px}.player-source-meta dt{font-size:8px}.player-demo-note{font-size:10px;margin-top:-3px}.player-layout{grid-template-columns:minmax(0,1fr);gap:14px}.player-stage video{max-height:none}.player-speakers{padding:14px}.player-speakers-heading{margin-bottom:10px}.player-speakers h3{font-size:13px}#player-active-users{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.player-speaker-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;padding:10px 12px}.player-speaker-card>div{grid-column:2;grid-row:1;justify-content:flex-end;font-size:7px}.player-speaker-card strong{grid-column:1;grid-row:1;margin:0;font-size:12px}.player-speaker-card small{grid-column:1/-1;font-size:9px;margin-top:3px}.player-no-speaker{min-height:75px;padding:6px}.player-no-speaker>span{display:none}.player-no-speaker p{max-width:none;margin-top:4px}.player-timeline-section{padding:15px 12px;margin-top:16px}.player-section-heading{flex-direction:column;gap:3px;margin-bottom:11px}.player-section-heading h3{font-size:13px}.player-section-heading p{font-size:10px}.player-section-heading>span{font-size:9px;padding:0}.player-time-axis{font-size:8px}.player-timeline-row{grid-template-columns:88px minmax(0,1fr);gap:8px}.player-track-name{font-size:9px}.player-track{height:26px}.player-span{top:5px;height:16px}.player-events{margin-top:20px}.player-event{grid-template-columns:68px minmax(0,1fr) 48px;gap:7px;padding:11px 10px}.player-event-name{font-size:10px;gap:5px}.player-event-time,.player-event-duration{font-size:9px}.player-event>span:last-child{display:none}.player-playback-status{padding:9px 10px;font-size:9px}.player-playback-status .mono{font-size:9px}
}

/* Explicit, admin-only video topic catalogue editor. */
.tag-definitions-panel .panel-header{align-items:flex-start;flex-wrap:wrap}
.tag-definition-count{color:var(--muted);font-size:12px;white-space:nowrap}
.tag-definition-help{padding:14px 16px;border-bottom:1px solid var(--border);background:#f7fafb;color:var(--muted);font-size:12px;line-height:1.6}
.tag-definition-help p{margin:0}.tag-definition-help p+p{margin-top:6px}
.tag-definition-fields{border:0;padding:0;margin:0;min-width:0}
.tag-definition-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(200px,1.6fr) auto auto;gap:14px;align-items:start;padding:15px 16px;border-bottom:1px solid var(--border)}
.tag-definition-row>label{min-width:0}
.tag-definition-name>span,.tag-definition-aliases>span{display:block;margin-bottom:5px;color:var(--text);font-size:12px;font-weight:600}
.tag-definition-row input:not([type=checkbox]){display:block;width:100%;min-width:0;height:38px;padding:7px 9px;border:1px solid #adc0c9;border-radius:4px;background:#fff;color:var(--text);font-size:13px}
.tag-definition-aliases>small{display:block;margin-top:4px;color:var(--muted);font-size:10px}
.tag-definition-active{display:flex;align-items:center;gap:6px;min-height:38px;padding-top:24px;font-size:12px}
.tag-definition-active input{width:16px;height:16px;margin:0;accent-color:var(--accent)}
.tag-definition-remove{margin-top:24px;color:var(--danger);min-height:38px}
.tag-definition-add{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px}
.tag-definition-add>span,.tag-definition-empty{font-size:12px;color:var(--muted)}
.tag-definition-empty{padding:18px 16px;margin:0;border-bottom:1px solid var(--border)}
.tag-definition-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:15px 16px;border-top:1px solid var(--border);background:#f7fafb}
.tag-definition-footer>div{min-width:0}.tag-definition-footer p{margin:0;font-size:12px;overflow-wrap:anywhere}
.tag-definition-error{color:var(--danger);margin-top:6px!important}
.tag-definition-status{color:var(--muted)}
.tag-definition-reload{white-space:normal;text-align:left;margin-top:6px}
@media(min-width:721px){#nav{flex-wrap:wrap}}
@media(max-width:600px){
 .tag-definition-row{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:13px}
 .tag-definition-name,.tag-definition-aliases{grid-column:1/-1}
 .tag-definition-row input:not([type=checkbox]){font-size:16px}
 .tag-definition-active{grid-column:1;padding-top:0;min-height:34px}
 .tag-definition-remove{grid-column:2;margin-top:0;min-height:34px}
 .tag-definition-footer{flex-direction:column;padding:13px}
 .tag-definition-footer>.button{width:100%;white-space:normal}
 .tag-definition-help,.tag-definition-add{padding:13px}
}

/* Persisted technical inspection results, separate from speech topic tags. */
.video-inspector-note{display:block;margin-top:5px;color:var(--muted);font-size:10px}
.video-analysis-panel{margin:18px 0;padding:16px;border:1px solid var(--border);border-radius:5px;background:#fbfcfd;min-width:0}
.video-analysis-heading h3{margin:0 0 5px;font-size:15px}.video-analysis-heading p{margin:0 0 14px;font-size:12px;color:var(--muted);line-height:1.6}
.video-analysis-panel h4{font-size:12px;margin:17px 0 8px}.video-analysis-note,.video-analysis-coverage p{font-size:12px;line-height:1.65;color:var(--muted);margin:8px 0;overflow-wrap:anywhere}
.video-analysis-components{list-style:none;margin:14px 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.video-analysis-components li{display:flex;justify-content:space-between;gap:8px;padding:8px;background:white;border:1px solid var(--border);border-radius:3px;font-size:11px;min-width:0;overflow-wrap:anywhere}
.video-analysis-components strong{color:var(--muted);font-weight:500;text-align:right}
.video-analysis-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.video-analysis-metrics>div{min-width:0;background:white;border:1px solid var(--border);padding:10px}
.video-analysis-metrics dt{font-size:10px;color:var(--muted);margin-bottom:5px;overflow-wrap:anywhere}.video-analysis-metrics dd{font-size:13px;margin:0;overflow-wrap:anywhere}
.video-analysis-findings{list-style:none;padding:0;margin:10px 0;display:grid;gap:8px}.video-analysis-findings>li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px;border:1px solid #e4d7ad;background:#fffcf4;border-radius:3px;min-width:0}
.video-analysis-findings>li>div{min-width:0}.video-analysis-findings strong{display:block;font-size:12px;overflow-wrap:anywhere}.video-analysis-findings small{display:block;font-size:10px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.video-analysis-findings p{font-size:11px;margin:6px 0 0;line-height:1.6;overflow-wrap:anywhere}
.video-analysis-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.video-analysis-actions .button{white-space:normal}.video-analysis-error{font-size:12px;color:var(--danger);line-height:1.6;overflow-wrap:anywhere}
@media(max-width:600px){.video-analysis-panel{padding:12px}.video-analysis-components,.video-analysis-metrics{grid-template-columns:minmax(0,1fr)}.video-analysis-findings>li{flex-direction:column}.video-analysis-actions{flex-direction:column}.video-analysis-actions .button{width:100%}}
.video-ppe-result{margin-top:18px;padding-top:1px;border-top:1px solid var(--border)}
.video-ppe-not-assessed{padding:10px 12px;background:#f2f6fa;border-left:3px solid #8397a6;font-size:12px;line-height:1.65;color:#405869;overflow-wrap:anywhere}
.video-ppe-evidence{margin:12px 0}.video-ppe-evidence>summary{font-size:12px;font-weight:600;cursor:pointer;line-height:1.6}
.video-ppe-evidence>p{padding:0 6px}.video-ppe-detections>li{background:#f6f9fc;border-color:#d9e3ec}.video-ppe-tracks{list-style:none;padding:0;display:grid;gap:8px}.video-ppe-tracks li{padding:10px;border:1px solid var(--border);border-radius:3px;background:#fff;min-width:0}.video-ppe-tracks strong{display:block;font-size:12px;overflow-wrap:anywhere}.video-ppe-tracks small{display:block;color:var(--muted);font-size:10px;line-height:1.6;overflow-wrap:anywhere}.video-ppe-tracks p{font-size:11px;margin:6px 0 0;line-height:1.6;overflow-wrap:anywhere}

.video-ai-result{margin-top:18px;padding-top:1px;border-top:1px solid var(--border);min-width:0}
.video-ai-evidence{margin:12px 0}.video-ai-evidence>summary{font-size:12px;font-weight:600;cursor:pointer;line-height:1.6}
.video-ai-observed-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.video-ai-result .video-analysis-findings>li{background:#f6f9fc;border-color:#d9e3ec}
.video-analysis-components li>div{min-width:0;text-align:right}.video-analysis-components li>div>strong{display:block}.video-analysis-components small{display:block;margin-top:5px;font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.video-analysis-components .video-analysis-component-failed{background:#fff7f5;border-color:#e7bcb3}.video-analysis-component-failed strong{color:var(--danger)}
