/* Sidebar Programming inherits Driver's existing surface and type system. */
.sidebar-programming-card{display:grid;gap:15px;min-width:0}
.sidebar-programming-card .section-heading{align-items:flex-start}
.sidebar-programming-card .section-subtitle{max-width:100%;line-height:1.5;white-space:normal;overflow:visible;text-overflow:clip}
.sidebar-scope-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.sidebar-scope-options button{
  min-height:44px;padding:10px 12px;border-radius:10px;border:1px solid var(--line-strong);
  background:var(--surface-2);color:var(--muted);font-size:12px;font-weight:720;line-height:1.35
}
.sidebar-scope-options button[aria-pressed="true"]{color:var(--text);background:var(--red-soft);border-color:rgba(255,32,41,.4)}
.sidebar-scope-options button:disabled{opacity:.45}
.sidebar-scope-note{margin:0;color:var(--muted);font-size:11px;line-height:1.6}
.sidebar-programming-status{display:grid;gap:5px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.sidebar-programming-status p{margin:0;font-size:11px;line-height:1.5}
.sidebar-programming-status p[data-tone="good"]{color:var(--good)}
.sidebar-programming-status p[data-tone="warn"],.sidebar-feature-state[data-tone="warn"]{color:var(--warn)}
.sidebar-programming-status p[data-tone="error"]{color:var(--danger)}
.sidebar-programming-status button{justify-self:start;min-height:44px;margin-top:4px}
.sidebar-feature-groups{display:grid;gap:17px;min-width:0}
.sidebar-feature-group{min-width:0}
.sidebar-group-title{margin:0 0 3px;color:var(--muted);font-size:10px;line-height:1.5;font-weight:750;letter-spacing:.09em;text-transform:uppercase}
.sidebar-feature-row{display:flex;gap:14px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--line);min-width:0}
.sidebar-feature-copy{min-width:0;flex:1}
.sidebar-feature-title{margin:0;color:var(--text);font-size:13px;line-height:1.4;font-weight:750}
.sidebar-feature-detail{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.sidebar-feature-state{margin:6px 0 0;color:var(--muted);font-size:10px;line-height:1.55}
.sidebar-feature-actions{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}
.sidebar-switch{
  display:flex;align-items:center;justify-content:center;flex:none;width:52px;min-height:44px;
  padding:0;border:0;border-radius:10px;background:transparent
}
.sidebar-switch-track{display:block;width:43px;height:25px;padding:3px;border:1px solid var(--line-strong);border-radius:999px;background:#282d34}
.sidebar-switch-knob{display:block;width:17px;height:17px;border-radius:50%;background:#eef0f2;box-shadow:0 1px 4px rgba(0,0,0,.32);transition:transform .18s ease}
.sidebar-switch[aria-checked="true"] .sidebar-switch-track{border-color:rgba(255,32,41,.3);background:var(--red)}
.sidebar-switch[aria-checked="true"] .sidebar-switch-knob{transform:translateX(18px)}
.sidebar-switch:disabled{opacity:.45;cursor:not-allowed}
.sidebar-inherit{min-height:44px;max-width:78px;padding:5px 6px;border-radius:8px;color:var(--muted);font-size:10px;line-height:1.35;background:transparent}
.sidebar-inherit:disabled{opacity:.45}
.sidebar-off-now{color:var(--warn);border-color:rgba(246,188,78,.4);font-weight:700}
.sidebar-viewers-choice{padding-top:2px;min-width:0}
.sidebar-viewers-choice .driver-polling-row{gap:14px;align-items:flex-start}
.sidebar-viewers-choice .section-kicker{font-size:11px;letter-spacing:.08em}
.sidebar-viewers-choice .switch{position:relative;display:flex;align-items:center;width:52px;height:44px;margin:0;flex:none;padding:0 8px;border:0;background:transparent}
.sidebar-viewers-choice .switch:before{content:"";position:absolute;left:4px;top:9.5px;width:43px;height:25px;border:1px solid var(--line-strong);border-radius:999px;background:#282d34}
.sidebar-viewers-choice .switch.active:before{border-color:rgba(255,32,41,.3);background:var(--red)}
.sidebar-viewers-choice .switch span{position:relative;width:17px;height:17px}
.sidebar-viewers-choice .switch.active span{transform:translateX(18px)}
.sidebar-viewers-choice .broadcast-profile-status{margin:8px 0 0}
.sidebar-poll-tests{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.sidebar-poll-tests .broadcast-profile-refresh{min-height:44px;margin:3px 5px 3px 0;white-space:normal;text-align:left;line-height:1.45}
#sidebarProgrammingRefresh{min-height:44px;flex:none;white-space:normal;max-width:110px;line-height:1.4}
@media(max-width:440px){
  .sidebar-programming-card{gap:13px}
  .sidebar-programming-card .section-heading{gap:8px}
  .sidebar-feature-row{gap:10px}
  .sidebar-scope-options button{font-size:11px;padding:9px 7px}
  #sidebarProgrammingRefresh{font-size:8px;max-width:90px;padding:8px}
}
@media(prefers-reduced-motion:reduce){.sidebar-switch-knob{transition:none}}
