:root {
    --paper: #f3faf7;
    --ink: #14332c;
    --muted: #5c756c;
    --line: #d5ebe3;
    --card: #ffffff;
    --ember: #0f766e;
    --ember-soft: #e6f7f2;
    --pine: #0d9488;
    --turquoise: #14b8a6;
    --navy: #0b3d34;
    --shadow: 0 10px 28px rgba(11, 61, 52, 0.06);
    --sidebar: 272px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--ember);
    outline-offset: 2px;
}

.shell { display: flex; width: 100%; min-height: 100vh; }

.sidebar {
    width: var(--sidebar);
    flex: none;
    background: var(--navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 16px 16px;
    overflow: hidden;
    transition: width 0.2s ease, padding 0.2s ease, opacity 0.15s ease;
}

html.nav-closed .sidebar {
    width: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 0 8px 18px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--ember);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand strong { display: block; font-size: 16px; }
.brand small { color: rgba(255, 255, 255, 0.62); font-size: 12px; }

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: auto;
    flex: 1;
    padding-right: 4px;
}

.side-label {
    margin: 16px 12px 6px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.side-link {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.side-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

.side-link.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--ember);
}

.side-user {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-user strong { font-size: 14px; }
.side-user span { color: rgba(255, 255, 255, 0.6); font-size: 12px; margin-bottom: 8px; }

.side-logout {
    width: 100%;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 8px 12px;
    font: inherit;
    cursor: pointer;
}

.side-logout:hover { background: rgba(255, 255, 255, 0.06); }

.main { flex: 1 1 auto; width: 100%; min-width: 0; }
html.nav-closed .main { max-width: 100%; }

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    padding: 28px 28px 8px;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1 { margin: 0; font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; }

.subtitle { margin: 6px 0 0; color: var(--muted); }

.topbar-actions { display: flex; gap: 10px; align-items: center; }

.nav-hide {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.nav-hide-bars {
    width: 16px;
    height: 12px;
    background:
        linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
}
.when-closed { display: none; }
html.nav-closed .when-open { display: none; }
html.nav-closed .when-closed { display: inline; }

.content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding: 16px 28px 40px;
}

.kpi-grid, .split, .split-2, .split-3 {
    display: grid;
    gap: 16px;
}

.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { grid-template-columns: 1.4fr 0.8fr; }
.split-2 { grid-template-columns: 1fr 1fr; }
.split-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.kpi, .panel, .login-card {
    background: var(--card);
    border: 1px solid rgba(227, 219, 205, 0.9);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.kpi { position: relative; overflow: hidden; padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.kpi::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--tone, var(--ember)); }
.kpi-a { --tone: #0f766e; }
.kpi-b { --tone: #14b8a6; }
.kpi-c { --tone: #059669; }
.kpi-d { --tone: #0d9488; }
.kpi p, .kpi small { margin: 0; color: var(--muted); }
.kpi p { font-size: 13px; font-weight: 600; }
.kpi strong { font-size: 30px; letter-spacing: -0.04em; line-height: 1; }
.kpi small { font-size: 12px; }

.panel { padding: 16px 18px 18px; }
.panel-head h2 { margin: 0; font-size: 16px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.panel-head { margin-bottom: 14px; }

.chart-box { position: relative; height: 360px; }
.chart-box.tall { height: 400px; }
.chart-box canvas { width: 100% !important; height: 100% !important; }

.pills { display: inline-flex; gap: 4px; background: rgba(255, 255, 255, 0.7); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.pill {
    text-decoration: none;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.pill.is-active { background: var(--ink); color: #fff; }

.alert {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--ink);
    border-radius: 12px;
    padding: 12px 14px;
}
.alert-warn { border-left-color: #c4841d; background: #fff8ec; }
.alert-bad { border-left-color: #9f2d2d; background: #fdecec; }
.alert ul { margin: 8px 0 0; padding-left: 18px; }
.alert li { margin: 4px 0; word-break: break-word; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.field.grow { flex: 1; }
.field span, .field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    color: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.role-list { display: flex; flex-direction: column; gap: 10px; }
.role-row { display: flex; gap: 10px; align-items: end; }
.role-row .field { min-width: 0; }
.day-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.day-picks label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3faf7;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
}
.day-picks input { accent-color: var(--ember); }
.field select[multiple] { min-height: 220px; }

.btn, .side-logout { font-family: inherit; }
.btn {
    border: 0;
    background: var(--ember);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn:hover { filter: brightness(1.05); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }

.rule {
    background: #f3fbf7;
    border: 1px solid #cfe8dc;
    border-radius: 12px;
    padding: 12px 14px;
    color: #1f5c45;
    font-size: 13px;
}

.table-scroll { max-height: 70vh; overflow: auto; }
.table-wrap { overflow-x: auto; }
table.data th { position: sticky; top: 0; background: #ffffff; z-index: 1; }
table.data tr.total td { font-weight: 700; background: #f3fbf7; }
table.data td.strong { font-weight: 700; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
}
table.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.num, table.data th.num { text-align: right; }

.goal-list { display: flex; flex-direction: column; gap: 14px; }
.goal-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 14px; }
.goal-top strong { font-weight: 600; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ember); border-radius: 99px; }
.progress.is-done > span { background: var(--pine); }

.client-block { margin: 0 0 22px; }
.client-block h3 {
    margin: 0 0 10px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.client-block h3 span { color: var(--muted); font-size: 13px; font-weight: 500; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
    content: "";
    position: absolute;
    left: 91px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--line);
}
.timeline li {
    display: grid;
    grid-template-columns: 72px 16px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 16px;
}
.timeline time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }
.dot {
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 0 4px var(--ember-soft);
    position: relative;
    z-index: 1;
    justify-self: center;
}
.timeline li.is-note .dot { background: #c4841d; box-shadow: 0 0 0 4px #fff3d8; }
.event {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
}
.event header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.event p { margin: 6px 0 0; white-space: pre-wrap; }
.badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ember);
}

.empty { margin: 0; color: var(--muted); }

.help-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    width: 36px;
    height: 42px;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 12px 0 0 12px;
    background: #fff;
    color: var(--ember);
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.help-panel {
    position: fixed;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    width: min(380px, calc(100vw - 72px));
    max-height: min(70vh, 560px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px 16px 18px;
}
.help-panel h2 { margin: 0 0 4px; font-size: 16px; }
.help-panel dl { margin: 0; }
.help-panel dt { margin-top: 12px; font-weight: 700; }
.help-panel dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.day-nav { display: flex; gap: 8px; align-items: center; margin: 0 0 18px; }
.hint { margin: 0; color: var(--muted); font-size: 13px; }

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 32%),
        var(--paper);
}

.login-card { width: min(440px, 100%); padding: 28px; }
.login-card .brand { color: var(--ink); padding: 0 0 18px; }
.login-card .brand small { color: var(--muted); }
.login-card h1 { font-size: 34px; margin-bottom: 6px; }
.login-card .subtitle { margin-bottom: 18px; }
.login-card form { display: flex; flex-direction: column; gap: 12px; }
.login-card .alert { margin-bottom: 14px; }
.login-card .btn { margin-top: 6px; width: 100%; }

.ops { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ops-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ops-filters {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.ops-filters summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 6px 12px;
    cursor: pointer;
    list-style: none;
}
.ops-filters summary::-webkit-details-marker { display: none; }
.ops-filters summary::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ember);
    border-bottom: 2px solid var(--ember);
    transform: rotate(-45deg);
    flex: none;
}
.ops-filters[open] summary::before { transform: rotate(45deg); }
.filter-title { font-size: 13px; font-weight: 700; }
.filter-current {
    color: var(--muted);
    font-size: 13px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.filter-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px 12px;
    padding: 0 12px 10px;
    min-width: 0;
}
.filter-row .field {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.filter-row .field span,
.team-field > span {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.filter-row .field select,
.filter-row .field input {
    width: 158px;
    padding: 7px 8px;
}
.filter-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.team-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}
.team-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
}
.team-list label {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: #f3faf7;
    border-radius: 999px;
    padding: 4px 8px;
    white-space: nowrap;
}
.team-list input { accent-color: var(--ember); }
.filter-clear { color: var(--ember); font-size: 13px; font-weight: 600; text-decoration: none; }
.map-layout { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 8px; align-items: stretch; min-height: 0; }
.map-box { height: 520px; width: 100%; }
.map-table { min-height: 0; min-width: 0; }
.state-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(8, auto);
    grid-auto-columns: minmax(88px, 1fr);
    gap: 2px 10px;
}
.state-grid li { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.state-grid strong { font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
    .kpi-grid, .split, .split-2, .split-3 { grid-template-columns: 1fr 1fr; }
    .map-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .sidebar {
        position: fixed;
        z-index: 30;
        width: min(var(--sidebar), 86vw);
        padding: 22px 16px 16px;
        opacity: 1;
        pointer-events: auto;
        overflow: auto;
        transform: none;
        transition: transform 0.2s ease;
    }
    html.nav-closed .sidebar {
        width: min(var(--sidebar), 86vw);
        padding: 22px 16px 16px;
        opacity: 1;
        transform: translateX(-105%);
    }
    .topbar, .content { padding-left: 16px; padding-right: 16px; }
    .kpi-grid, .split, .split-2, .split-3, .map-layout { grid-template-columns: 1fr; }
    h1 { font-size: 28px; }
}

.tv-app {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: calc(100vh - 180px);
}
.tv-app:fullscreen {
    background: #06211c;
    padding: 18px 28px 16px;
    width: 100%;
    height: 100%;
}
.tv-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.tv-kicker {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tv-bar strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.tv-pace { margin: 0; color: var(--muted); font-size: 14px; }
.tv-controls { display: flex; align-items: center; gap: 10px; }
#tv-updated { color: var(--muted); font-size: 13px; min-width: 9em; }
.tv-filters {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px 14px 12px;
}
.tv-filters summary { cursor: pointer; font-weight: 700; }
.tv-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: end;
    margin-top: 12px;
}
.tv-scenes, .tv-teams { border: 0; margin: 0; padding: 0; min-width: 0; }
.tv-scenes legend, .tv-teams > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.tv-scenes { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.tv-scenes label, .tv-teams label { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.tv-stage {
    position: relative;
    flex: 1;
    min-height: 420px;
    background: var(--navy);
    color: #f3faf7;
    border-radius: 24px;
    padding: 28px 32px;
    overflow: hidden;
}
.tv-slide {
    display: none;
    height: 100%;
}
.tv-slide.is-on { display: flex; flex-direction: column; min-height: 420px; }
.tv-slide h2 { margin: 0; font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.03em; }
.tv-lead { margin: 8px 0 18px; color: rgba(243, 250, 247, 0.72); font-size: 18px; }
.tv-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex: 1;
}
.tv-kpis article {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tv-kpis p { margin: 0; font-size: 18px; color: rgba(243, 250, 247, 0.72); }
.tv-kpis strong {
    font-size: clamp(56px, 8vw, 104px);
    line-height: 0.95;
    letter-spacing: -0.04em;
}
.tv-kpis small { color: rgba(243, 250, 247, 0.66); font-size: 16px; }
.tv-kpis .is-hot strong { color: #5eead4; }
.tv-list, .tv-bars, .tv-people {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
}
.tv-list li, .tv-people li {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 10px 16px;
}
.tv-list strong, .tv-people em {
    font-style: normal;
    font-size: 22px;
    color: #5eead4;
    font-variant-numeric: tabular-nums;
}
.tv-list b, .tv-people b, .tv-bars span { display: block; font-size: 20px; }
.tv-list span, .tv-people span { color: rgba(243, 250, 247, 0.68); }
.tv-people li { grid-template-columns: 1fr auto auto; }
.tv-people .is-wait { color: #fde68a; }
.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
    overflow: auto;
    align-content: start;
    flex: 1;
    min-height: 0;
}
.tv-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    min-width: 0;
}
.tv-card.is-active { box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.55); }
.tv-face {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #134e4a;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    flex: none;
}
.tv-face img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tv-face span { font-weight: 700; font-size: 18px; color: #d1fae5; }
.tv-card b {
    font-size: 14px;
    line-height: 1.2;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tv-count { font-size: 28px; line-height: 1; }
.tv-card > span { color: rgba(243, 250, 247, 0.68); font-size: 12px; }
.tv-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
    color: #d1fae5;
}
.tv-stat svg { width: 15px; height: 15px; flex: none; }
.tv-stat.is-wait { color: #fde68a; }
.tv-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    flex: 1;
    min-height: 0;
    overflow: auto;
}
.tv-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 14px;
    overflow: auto;
}
.tv-col h3 { margin: 0; font-size: 22px; }
.tv-kpis.is-split { gap: 8px; }
.tv-kpis.is-split article { padding: 12px 14px; }
.tv-kpis.is-split strong { font-size: clamp(28px, 3vw, 48px); }
.tv-kpis.is-split p, .tv-kpis.is-split small { font-size: 13px; }
.tv-col .tv-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.tv-col .tv-face { width: 46px; height: 46px; }
.tv-col .tv-list li { grid-template-columns: 92px 1fr; padding: 8px 10px; }
.tv-col .tv-list strong, .tv-col .tv-list b { font-size: 15px; }
.tv-col .tv-empty { font-size: 16px; margin: 4px 0; }
.tv-bars li {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr auto;
    gap: 12px;
    align-items: center;
}
.tv-bars i {
    display: block;
    height: 18px;
    border-radius: 999px;
    background: #14b8a6;
}
.tv-bars b { font-size: 22px; font-variant-numeric: tabular-nums; }
.tv-empty { margin: auto; font-size: 28px; color: rgba(243, 250, 247, 0.8); }
.tv-progress {
    height: 4px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
}
.tv-progress span { display: block; height: 100%; width: 0; background: var(--ember); }
@keyframes tv-grow { from { width: 0; } to { width: 100%; } }
.tv-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-dots button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.tv-dots button.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }

body.is-tv-playing { background: #06211c; overflow: hidden; }
body.is-tv-playing .sidebar,
body.is-tv-playing .topbar,
body.is-tv-playing .tv-filters,
body.is-tv-playing .help-tab,
body.is-tv-playing .help-panel { display: none !important; }
body.is-tv-playing .shell,
body.is-tv-playing .main,
body.is-tv-playing .content { min-height: 100vh; height: 100vh; background: #06211c; }
body.is-tv-playing .content { padding: 18px 28px 16px; }
body.is-tv-playing .tv-app { min-height: 0; height: 100%; }
body.is-tv-playing .tv-kicker,
body.is-tv-playing .tv-pace,
body.is-tv-playing #tv-updated { color: rgba(243, 250, 247, 0.7); }
body.is-tv-playing .tv-bar strong,
body.is-tv-playing .tv-bar { color: #f3faf7; }
body.is-tv-playing .tv-stage { min-height: 0; flex: 1; }
body.is-tv-playing .tv-slide.is-on { min-height: 0; height: 100%; }
body.is-tv-playing #tv-pause { background: transparent; color: #f3faf7; border-color: rgba(255, 255, 255, 0.3); }
