/* Tight, consistent filter toolbar. All rules scoped to channel pages. */
.tsc-video-toolbar{padding:14px!important;margin:15px 0 18px!important;border:1px solid #374152!important;border-radius:13px!important;background:#1b222e!important;box-shadow:none!important}
.tsc-video-toolbar form.tsc-video-form{display:grid!important;grid-template-columns:minmax(170px,2fr) minmax(132px,1fr) minmax(135px,1fr) auto!important;gap:10px!important;align-items:end!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.tsc-video-toolbar .tsc-video-field{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;margin:0!important;min-width:0!important;width:auto!important;line-height:1.25!important}
.tsc-video-toolbar .tsc-video-field>span{display:block!important;margin:0!important;font-size:.73rem!important;font-weight:650!important;color:#c5cfdf!important;white-space:nowrap}
.tsc-video-toolbar .tsc-video-field input,.tsc-video-toolbar .tsc-video-field select{display:block!important;min-width:0!important;width:100%!important;height:42px!important;min-height:42px!important;max-height:42px!important;box-sizing:border-box!important;margin:0!important;padding:0 11px!important;border:1px solid #465066!important;border-radius:8px!important;background:#121822!important;color:#f4f6fb!important;font:inherit!important;font-size:.84rem!important;line-height:42px!important}
.tsc-video-toolbar .tsc-video-action{display:flex!important;align-items:flex-end!important;min-width:0!important}
.tsc-video-toolbar .tsc-video-apply{height:42px!important;min-height:42px!important;width:auto!important;padding:0 16px!important;margin:0!important;white-space:nowrap!important;font-size:.84rem!important;border-radius:8px!important;align-self:auto!important}
.tsc-video-toolbar .tsc-video-meta{margin-top:10px!important;font-size:.73rem!important}.tsc-video-toolbar .tsc-video-meta a{text-decoration:none!important}
.tsc-history-chart .tsc-chart-header{display:flex;align-items:start;justify-content:space-between;gap:12px}
.tsc-history-chart .tsc-chart-header>div:first-child{min-width:0}
.tsc-history-chart .tsc-zoom-controls{display:flex;gap:3px;align-items:center;margin:0;flex:none}
.tsc-history-chart .tsc-zoom-controls button{padding:4px 9px!important;min-width:30px!important;min-height:30px!important;border-radius:7px!important;border:1px solid #465169!important;background:#252b38!important;color:#e9eff9!important;font-size:.79rem!important;line-height:1.2!important}
.tsc-history-chart .tsc-zoom-controls button:hover{border-color:#f87e9b!important}
.tsc-history-chart .tsc-chart-surface{touch-action:pan-y;cursor:crosshair;user-select:none}
.tsc-history-chart .tsc-chart-surface.is-dragging{cursor:grabbing;touch-action:none}
.tsc-history-chart .tsc-chart-surface svg{overflow:hidden}
.tsc-history-chart .tsc-datapoint{pointer-events:auto}
.tsc-history-chart .tsc-crosshair{pointer-events:none}
.tsc-history-chart .tsc-graph-tooltip{bottom:auto;top:8px;z-index:8;white-space:normal}
@media(max-width:780px){.tsc-video-toolbar form.tsc-video-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.tsc-video-toolbar .tsc-video-query{grid-column:1/-1!important}.tsc-video-toolbar .tsc-video-action{grid-column:1/-1!important}.tsc-video-toolbar .tsc-video-apply{width:100%!important}.tsc-history-chart .tsc-chart-header{flex-wrap:wrap}}
@media(max-width:450px){.tsc-video-toolbar{padding:11px!important}.tsc-video-toolbar .tsc-video-field>span{font-size:.71rem!important}.tsc-history-chart .tsc-zoom-controls button{min-height:30px!important}}

.tsc-format-refresher{color:#ffa0b8;font-size:.8rem;text-decoration:none;font-weight:700}.tsc-mix-coverage-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0 -4px}.tsc-mix-coverage-actions small{font-size:.72rem;color:#a5b1c4}

/* Opt-in, cursor-anchored wheel zoom. No scroll trapping before a chart is clicked. */
.tsc-history-chart .tsc-wheel-lock-toggle{white-space:nowrap!important;min-width:80px!important}
.tsc-history-chart .tsc-wheel-lock-toggle[aria-pressed="true"]{color:#ffdce6!important;background:#482937!important;border-color:#f57799!important}
.tsc-history-chart .tsc-wheel-lock-hint{color:#a6b6cb;font-weight:500}
.tsc-history-chart.tsc-wheel-locked .tsc-wheel-lock-hint{color:#ffb9ce}
.tsc-history-chart.tsc-wheel-locked .tsc-chart-surface{cursor:zoom-in}
.tsc-history-chart .tsc-chart-surface:focus-visible{outline:2px solid #f57799;outline-offset:3px;border-radius:8px}
.tsc-history-chart .tsc-zoom-controls{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:600px){.tsc-history-chart .tsc-chart-header{align-items:flex-start}.tsc-history-chart .tsc-zoom-controls{justify-content:flex-start}}
