﻿/* STATISPHERE'S OWN STYLES (Steven, 2026-11-16): the product's brand, from statisphere.co.uk and the logo - the deep
   navy for what you press, the logo's bright blue as the accent (focus rings, highlights). The controls themselves
   (buttons, pills, dialogs, the avatar) are the platform's (platform/account.css), coloured by the variables set here.

   THE PRODUCT'S, NOT A CUSTOMER'S. This is dev, so it reaches every customer: the sign-in page, Forgot password and
   the rest of the account pages wear Statisphere's identity, as Steven asked ("everybody has Statisphere login page
   included in Innotech"). A customer's own logo and menu colours are set IN THE APP, under System settings -> Theme.

   The old --shs-* names keep working below so nothing copied from SHS breaks; they carry Statisphere's values now. */

:root {
    --stat-navy: #102946;       /* the wordmark, and statisphere.co.uk's --navy */
    --stat-navy-dark: #0a1c31;
    --stat-blue: #00A3F9;       /* the logo's bright blue */
    --stat-blue-deep: #025BAE;  /* its deep blue: links, readable on white */
    --stat-page: #F4F9FD;       /* statisphere.co.uk's page tint */

    --shs-red: var(--stat-navy);        /* "the pressable colour": navy here */
    --shs-red-dark: var(--stat-navy-dark);
    --shs-black: var(--stat-navy);
    --shs-grey-dark: var(--stat-navy);  /* the menu's default band: the brand navy */
    --shs-grey: #DEDEDE;
    --shs-grey-light: #EEF4FA;  /* the page behind the panes, cooled to the brand (was SHS's #F3F2F2) */
    --shs-text: #212529;

    --sp-primary: var(--stat-navy);
    --sp-primary-hover: var(--stat-navy-dark);
    --sp-ink: var(--stat-navy);
    --sp-line: var(--shs-grey);
    --sp-soft: var(--shs-grey-light);
    --sp-tab-off: #E2EAF2;      /* a closed tab: a step darker than the page */
    --sp-focus: var(--stat-blue);

    --bs-link-color-rgb: 2, 91, 174;     /* the logo's deep blue */
    --bs-link-hover-color-rgb: 0, 72, 176;
}

html, body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
body { margin: 0; background: #fff; color: var(--shs-text); }

h1:focus { outline: none; }

/* Bootstrap's buttons, on the screens that still use them, look like the platform's command buttons in SHS colours. */
.btn { border-radius: 4px; }
.btn-primary {
    --bs-btn-bg: var(--shs-red); --bs-btn-border-color: var(--shs-red);
    --bs-btn-hover-bg: var(--shs-red-dark); --bs-btn-hover-border-color: var(--shs-red-dark);
    --bs-btn-active-bg: #000; --bs-btn-active-border-color: #000;
    --bs-btn-disabled-bg: var(--shs-red); --bs-btn-disabled-border-color: var(--shs-red);
    --bs-btn-focus-shadow-rgb: 0, 163, 249;
    font-weight: 600;
}
.btn-outline-primary {
    --bs-btn-color: var(--shs-red); --bs-btn-border-color: var(--shs-red);
    --bs-btn-hover-bg: var(--shs-red); --bs-btn-hover-border-color: var(--shs-red); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--shs-red-dark); --bs-btn-active-border-color: var(--shs-red-dark);
}
.btn-outline-secondary {
    --bs-btn-color: #222; --bs-btn-border-color: #c8c8c8; --bs-btn-bg: #fff;
    --bs-btn-hover-bg: #f0f0f0; --bs-btn-hover-color: #222; --bs-btn-hover-border-color: #c8c8c8;
    --bs-btn-active-bg: #e6e6e6; --bs-btn-active-color: #222; --bs-btn-active-border-color: #bdbdbd;
}
.form-control:focus, .form-select:focus { border-color: var(--stat-blue); box-shadow: 0 0 0 .2rem rgba(0, 163, 249, .25); }
/* An unticked radio or box stands out against white (Andy, 2026-11-04: Bootstrap's pale grey was hard to see). */
.form-check-input { border-color: #8a9099; }
.form-check-input:checked { background-color: var(--shs-red); border-color: var(--shs-red); }
.form-check-input:focus { border-color: var(--stat-blue); box-shadow: 0 0 0 .2rem rgba(0, 163, 249, .25); }

/* ---- SHS's Sales data tabs (Sales teams, Sales years, Sales targets; Steven's layout, 2026-10-17) ---- */
/* The bar above a tab's table: filters on the left, the main action on the right. */
.tab-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 12px; }
/* TOOLBARS STAY PUT (Steven, 2026-11-14: "freeze them at the top"): a page's buttons and filters stay at the top as its list
   scrolls under them - on the page's grey, or in a white tab. A tab body on a page that scrolls as a whole doesn't scroll
   by itself, so its toolbar can stick to the page. */
.tab-bar { position: sticky; top: -20px; z-index: 5; background: #f3f2f2; padding-block: 8px; }   /* -20px: up over the page's own padding */
.sp-settings > .sp-tab-body .tab-bar { top: -18px; }   /* a settings tab scrolls by itself, inside its own padding */
/* A page grid's column headings stay in view under the toolbar as the page scrolls (Steven, 2026-11-14: "it doesn't make
   sense for the grid column header to scroll away") - Media, Slides, Broadcasts, Channels. The toolbar sticks 20px up and
   is 50px tall, so it ends 30px down; in a pop-up they scroll as they did. */
.sp-grid.tv-grid > thead th, .sp-grid.md-grid > thead th { position: sticky; top: 30px; z-index: 4; box-shadow: inset 0 -1px 0 #d9dde2; }
.dlg .sp-grid > thead th { position: static; box-shadow: none; }
.sp-tab-body .tab-bar, .sp-subtab-body .tab-bar { background: #fff; }
.shs-main > .sp-subtab-wrap > .sp-subtab-body { overflow: visible; }
.tv-grid th { white-space: nowrap; }
.tab-bar > .cmd-btn-primary:last-child { margin-left: auto; }
.tab-bar-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; margin: 0; }
.tab-bar-field { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--sp-ink); margin: 0; }
.tab-bar-field .edit-input { width: auto; min-width: 100px; }
/* Says why a grid in the bar below cannot be edited - a figure that is worked out, not typed. */
.tab-bar-note { font-size: 13px; color: #666; font-style: italic; }
/* Above a grid that is worked out rather than typed into - says where the figures come from and where to change them. */
.tgt-derived { font-size: 13px; color: #666; margin: 10px 0 0; }
.sp-grid .num, .edit-input.num { text-align: right; font-variant-numeric: tabular-nums; }
.sp-grid tfoot th { background: var(--sp-soft); border-top: 1px solid #ced4da; padding: 9px 12px; }
.sw { display: inline-flex; align-items: center; gap: 8px; padding-left: 2.5em; }
/* Sales targets: twelve months across - scrolls sideways on a narrow screen rather than squashing. */
.table-scroll { overflow-x: auto; }
.targets-grid td, .targets-grid th { white-space: nowrap; }
/* Editing one team's year: a month to a line, the amount on the right, the year's total under a rule (2026-11-25). */
.target-list { display: flex; flex-direction: column; margin-bottom: 8px; }
.target-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 3px 0;
    border-bottom: 1px solid #eef0f2; }
.target-row label { margin: 0; font-weight: 500; }
.target-row .money-edit { width: 170px; flex: none; }
.target-year { border-bottom: 0; border-top: 2px solid #ced4da; margin-top: 4px; padding-top: 8px; font-size: 15px; }
.target-year b { width: 170px; text-align: right; padding-right: 12px; font-variant-numeric: tabular-nums; }
/* Sales years: a header - the year, then Add and Delete beside it (Andy, 2026-10-17) - over the months beside the
   non-working days. */
.year-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding-bottom: 14px; margin-bottom: 16px;
    border-bottom: 1px solid var(--sp-line); }
.year-head-label { font-size: 1.1rem; font-weight: 600; color: var(--sp-ink); }
.year-head-pick { width: auto; min-width: 110px; font-size: 1.1rem; font-weight: 600; padding: 4px 10px; }
.year-head .cmd-btn:first-of-type { margin-left: 6px; }
/* The two columns are the same height - the months' - and both headings take the same room, so the tables line up. */
.wd-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: stretch; }
.wd-cols > section > .acct-h, .wd-head { display: flex; align-items: center; gap: 12px; height: 34px; margin: 0 0 6px; }
.wd-head .acct-h { margin: 0; }
/* THE NON-WORKING DAYS END WHERE THE MONTHS END (Andy, 2026-10-17): the list sits in a box laid over the column's free
   space (absolutely, so its own length never makes the row taller) and scrolls inside it, headings kept in view. */
.wd-days { display: flex; flex-direction: column; min-height: 0; }
.wd-scroll-wrap { position: relative; flex: 1; min-height: 240px; }
.wd-scroll { position: absolute; inset: 0; overflow-y: auto; border: 1px solid #ced4da; background: #fff; }
.wd-scroll .sp-grid { border: 0; }
.wd-scroll thead th { position: sticky; top: 0; z-index: 1; }
.wd-type { width: auto; min-width: 140px; padding: 3px 8px; }
.wd-fixed { display: inline-block; padding: 3px 8px; color: #555; }
/* ---- Orders: Order enquiry, Credit enquiry, Sales by team ---- */
/* The dates (or year and month), Refresh and a note; Export at the right. */
.tab-bar > .cmd-btn-primary.enq-refresh { margin-left: 0; }
.tab-bar-field > label { margin: 0; }
.date-box { width: 150px; }
.wd-date { width: 180px; }
.enq-note { font-size: 12.5px; }
/* Export to Excel: the spreadsheet icon and the words (ExcelButton); at the right of a bar. */
.excel-btn { display: inline-flex; align-items: center; gap: 6px; }
.tab-bar > .excel-btn { margin-left: auto; }
/* Sales targets' Import from Excel (2026-11-25): a label round a hidden file picker, beside the export. */
.import-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 6px; cursor: pointer; }
.import-btn input[type=file] { display: none; }
.import-btn.disabled { opacity: .55; pointer-events: none; }
.import-scroll { max-height: 50vh; overflow-y: auto; }
.import-grid { width: 100%; }
.import-grid tr.muted td { color: #8a8f96; }
.import-problems { margin: 6px 0 0; padding-left: 18px; }
.export-only { display: none; }
.enq-grid { font-size: 13px; }
/* ONE BAR ABOVE THE GRID (Andy, 2026-10-18): the search on the left - DevExpress puts it on the right - and Export to
   Excel (the grid's toolbar, which DevExpress puts on a row of its own) laid over the same bar at the right. A grid
   without a search keeps the toolbar as its own bar. */
.enq-grid { position: relative; }
.enq-grid > .dxbl-grid-top-panel { align-self: stretch; }
.enq-grid > .dxbl-grid-top-panel > .dxbl-grid-search-box-container { margin-left: 0; }
.enq-grid > .dxbl-grid-toolbar-container { display: flex; justify-content: flex-end; }
.enq-grid:has(> .dxbl-grid-top-panel) > .dxbl-grid-toolbar-container { position: absolute; top: 0; right: 0; width: auto; border: 0; z-index: 1; }
/* THE GRID SCROLLS ITSELF (Andy, 2026-10-17): the tab fills the pane, and the grid fills what the bar above leaves -
   its own rows scroll, so the headings, the totals footer and the pager are always in view. */
.sp-settings > .sp-tab-body > .enq { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.enq > * { flex: none; }
.enq > .enq-grid { flex: 1 1 auto; min-height: 240px; }
/* A count to press, for a team's orders or credits. */
.enq-link { border: 0; background: none; padding: 0; color: var(--shs-red-dark); font-weight: 600; text-decoration: underline; cursor: pointer; }
.enq-link:hover { color: var(--shs-red); }
/* The team's orders or credits in a dialog: a fixed height, the grid scrolling inside it. */
.enq-dlg { height: 62vh; display: flex; flex-direction: column; }
.enq-dlg > .enq-grid { flex: 1 1 auto; min-height: 0; }
/* System settings → Odoo: what to pull, from when, and the button, on one line. */
.od-pull { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 14px; }
.od-pull .form-field { margin-bottom: 0; }
.od-pull .edit-input { width: auto; min-width: 170px; }
/* One column on a narrow window: the list gets a height of its own. */
@media (max-width: 1100px) { .wd-cols { grid-template-columns: 1fr; } .wd-scroll-wrap { height: 420px; flex: none; } }
/* Broadcasts: fields in pairs; the merge-field chips under the message; the history's heading; the preview
   at 16:9. */
.nf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: end; }
.nf-three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; align-items: end; }
/* Edit channel's Name and Background: level at the top, Background's note under it (Steven, 2026-11-14). */
.nf-two.ch-pair { align-items: start; }
/* Edit channel's tabs: one height for all (Steven, 2026-11-14), scrolling inside if there's more. */
.ch-panel { height: min(56vh, 520px); overflow-y: auto; padding-right: 6px; }
/* Edit channel: fields sized to what goes in them (Steven, 2026-11-14: "boxes again are massive"). */
.nf-two.ch-pair { grid-template-columns: max-content max-content; gap: 0 28px; }
#ch-name { width: 320px; }
#ch-bg, #ch-theme { width: auto; min-width: 180px; max-width: 320px; }
#ch-comments { max-width: 668px; }
.nf-three.ch-nums { grid-template-columns: repeat(3, max-content); gap: 0 28px; }
#ch-gap, #ch-exp, #ch-catch { width: 90px; }
@media (max-width: 700px) { .nf-two.ch-pair, .nf-three.ch-nums { grid-template-columns: 1fr; } #ch-name { width: 100%; } }
.nf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 14px; }
.nf-on { margin-bottom: 12px; }
.nf-help { margin: -6px 0 12px; }
.nf-chosen { margin: 6px 0 0 24px; }
.nf-preview { aspect-ratio: 16 / 9; width: 100%; background: #000; }
/* Media's filter bar (was TV → Clips). A hidden item is greyed, bar its picture and Edit. */
.fx-search { max-width: 200px; }
.fx-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.fx-hidden td:not(.u-actions):not(:first-child) { opacity: .55; }

/* ---- MEDIA (Steven, 2026-11-11): the list, an item's page, the preview ---- */
.md-intro { margin: 0 0 12px; font-size: 13.5px; }
.md-scroll { overflow-x: auto; }
@media (min-width: 900px) { .md-scroll { overflow: visible; } }   /* wide enough not to need it - and its headings can stick */
.md-grid td { vertical-align: middle; }
.md-col-pic { width: 150px; }
/* A picture, with Preview on it: 128 x 72 in the list, larger on the item's page. The words carry it, not the colour. */
.md-pic { position: relative; display: block; width: 128px; aspect-ratio: 16 / 9; padding: 0; border: 1px solid #cfd3d9; border-radius: 4px;
    overflow: hidden; background: #1d1d1b; cursor: pointer; }
.md-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.md-pic-none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 6px; color: #e6e6e6;
    font-size: 11.5px; line-height: 1.25; text-align: center; }
.md-pic-play { position: absolute; left: 5px; bottom: 5px; background: rgba(0,0,0,.8); color: #fff; font-size: 11.5px; font-weight: 600;
    padding: 2px 7px; border-radius: 3px; }
.md-pic:hover .md-pic-play, .md-pic:focus-visible .md-pic-play { background: var(--shs-red); }
.md-pic:focus-visible { outline: 3px solid var(--sp-focus); outline-offset: 2px; }
.md-pic-lg { width: 384px; max-width: 100%; border-radius: 6px; }
.md-pic-lg .md-pic-play { left: 10px; bottom: 10px; font-size: 13px; padding: 4px 10px; }
.md-pic-lg .md-pic-none { font-size: 14px; }
/* An overlay: whole, on a checkerboard, so what's see-through shows. */
.md-pic-overlay { background: repeating-conic-gradient(#99a0a8 0 25%, #c3c8ce 0 50%) 0 0 / 12px 12px; }
.md-pic-overlay img { object-fit: contain; padding: 6px; box-sizing: border-box; }
/* Media's Type filter (MediaTypeFilter): a drop-down of ticks - overlays as a choice under images. */
.mt-filter { position: relative; }
.mt-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 210px; text-align: left; cursor: pointer; font-weight: 400; }
.mt-caret { font-size: 11px; color: #555; }
.mt-shade { position: fixed; inset: 0; z-index: 30; }
.mt-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 31; display: flex; flex-direction: column; gap: 2px; min-width: 240px; padding: 6px;
    background: #fff; border: 1px solid #c8ccd2; border-radius: 6px; box-shadow: 0 8px 22px rgba(0,0,0,.16); font-weight: 400; }
.mt-choice, .mt-sub { display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px 6px; border-radius: 4px; cursor: pointer; font-size: 13.5px; }
.mt-choice:hover, .mt-sub:hover { background: #f0f2f5; }
.mt-choice { white-space: nowrap; }
/* Select all, with a line under it. */
.mt-all { font-weight: 600; border-bottom: 1px solid #e6e8ec; border-radius: 4px 4px 0 0; padding-bottom: 8px; margin-bottom: 4px; }
/* Include overlays: under Images, indented, its explanation on a line of its own. */
.mt-sub { align-items: flex-start; padding-left: 30px; }
.mt-sub input { margin-top: 3px; }
.mt-sub-text { display: flex; flex-direction: column; white-space: nowrap; }
.mt-sub-hint { font-size: 12px; color: #666; }
.mt-sub.mt-off { opacity: .55; cursor: default; }
/* A sound: a speaker for its picture, and listened to in the preview. */
.md-pic-sound { position: absolute; inset: 0; margin: auto; width: 40%; height: 60%; color: #e6e6e6; }
.md-listen { display: flex; flex-direction: column; gap: 10px; padding: 10px 0; }
.md-listen audio { width: 100%; }
/* Background or overlay (UsedAsPicker): each choice with what it means; the chosen one ticked and outlined. */
.md-usedas { border: 0; padding: 0; margin: 0 0 12px; }
.md-usedas > legend { float: none; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.md-usedas-choices { display: flex; flex-direction: column; gap: 6px; margin-bottom: 5px; }
.md-usedas-choice { display: flex; gap: 9px; align-items: flex-start; padding: 8px 10px; border: 1px solid #ced4da; border-radius: 5px; cursor: pointer; margin: 0; }
.md-usedas-choice.on { border-color: var(--shs-black); box-shadow: inset 0 0 0 1px var(--shs-black); }
.md-usedas-choice input { margin-top: 4px; }
.md-usedas-choice .cell-sub { display: block; }

.md-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #555; margin-bottom: 12px; }
.md-pane { background: #fff; border: 1px solid #ced4da; border-radius: 6px; padding: 16px 18px; margin-bottom: 14px; }
.md-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.md-facts-wrap { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.md-title-row, .md-vars-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.md-h { font-size: 17px; font-weight: 600; color: var(--sp-ink); margin: 0; }
.md-title-act { margin-left: auto; }
.md-facts { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 7px 14px; margin: 0; font-size: 13.5px; }
.md-facts dt { font-weight: 600; color: #555; font-size: 13px; }
.md-facts dd { margin: 0; }
.md-vars { padding: 0; overflow: hidden; }
.md-vars-head { padding: 14px 18px; }
.md-vars-grid { border-left: 0; border-right: 0; border-bottom: 0; }
/* Every variation has the same four buttons, greyed where they don't apply, so they line up. */
.md-col-acts { width: 1%; white-space: nowrap; }
.md-acts { display: flex; justify-content: flex-end; gap: 6px; }

/* The preview: what to play on the left, the item on its own on the right. */
.md-prev { display: flex; flex-wrap: wrap; gap: 18px; }
.md-prev-pick { flex: 1 1 250px; max-width: 320px; min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.md-prev-legend { font-size: 13px; font-weight: 600; color: var(--sp-ink); margin-bottom: 4px; float: none; width: auto; padding: 0; }
.md-var { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #c8ccd2; border-radius: 6px; padding: 9px 10px; margin: 0; cursor: pointer; }
.md-var.on { border: 2px solid var(--shs-black); padding: 8px 9px; background: #f6f6f6; }
.md-var input { margin-top: 3px; }
.md-var-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.md-var-top { display: flex; gap: 8px; align-items: baseline; }
.md-var-len { margin-left: auto; font-size: 12px; color: #555; font-variant-numeric: tabular-nums; white-space: nowrap; }
.md-prev-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.md-prev-screen { aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 4px; overflow: hidden; }
.md-prev-screen video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.md-prev-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---- THE VARIATION PLAYER (Media/VariationPlayer, js/variation-player.js): sizes in cqw - hundredths of the screen's
   width - so the words sit the same at any size, the preview's or a TV's. ---- */
.vp-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vp { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; overflow: hidden; border-radius: 4px; container-type: inline-size; }
.vp-studio { position: absolute; inset: 0; }
/* An image (a background, or an overlay on its own): filling the screen, or all of it on a colour or a checkerboard. */
.vp-still { position: absolute; inset: 0; overflow: hidden; background: #000; }
.vp-still-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vp-still.vp-whole .vp-still-img { object-fit: contain; }
.vp-still.vp-checker { background: repeating-conic-gradient(#99a0a8 0 25%, #c3c8ce 0 50%) 0 0 / 3cqw 3cqw; }
.vp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .6s ease; }
.vp.vp-held .vp-video, .vp.vp-held-start .vp-video { filter: blur(var(--vp-blur, 0)) brightness(var(--vp-dark, 1)); }
/* Studio animations laid over it, see-through, each in its own box. */
.vp-overlays, .vp-overlay { position: absolute; inset: 0; pointer-events: none; }
.vp-texts, .vp-curtain { position: absolute; inset: 0; pointer-events: none; }
.vp-curtain { background: #000; opacity: 0; }
.vp-text { position: absolute; width: max-content; max-width: 88%; font-weight: 700; line-height: 1.15; text-align: center; white-space: pre-line; }
.vp-p-TopLeft { left: 5%; top: 6%; text-align: left; }
.vp-p-TopMiddle { left: 50%; top: 6%; transform: translateX(-50%); }
.vp-p-TopRight { right: 5%; top: 6%; text-align: right; }
.vp-p-MiddleLeft { left: 5%; top: 50%; transform: translateY(-50%); text-align: left; }
.vp-p-Centre { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.vp-p-MiddleRight { right: 5%; top: 50%; transform: translateY(-50%); text-align: right; }
.vp-p-BottomLeft { left: 5%; bottom: 7%; text-align: left; }
.vp-p-BottomMiddle { left: 50%; bottom: 7%; transform: translateX(-50%); }
.vp-p-BottomRight { right: 5%; bottom: 7%; text-align: right; }
.vp-s-Large { font-size: 6cqw; }
.vp-s-Medium { font-size: 4.2cqw; }
.vp-s-Small { font-size: 3cqw; }
/* Words are drawn twice, one over the other (Media/TextCss): the outline and shadow behind, the fill in front. */
.vp-text { display: grid; }
.vp-text > span { grid-area: 1 / 1; }
.vp-tx-back { user-select: none; }
.vp-sound-note { position: absolute; right: 2%; bottom: 3%; border: 0; border-radius: 4px; padding: 6px 12px; background: rgba(0,0,0,.8);
    color: #fff; font-size: 13px; cursor: pointer; }
.vp-sound-note[hidden] { display: none; }
/* Words placed by dragging (X, Y: their middle), and pictures over it. */
.vp-text.vp-free { transform: translate(-50%, -50%); }
.vp-pic { position: absolute; height: auto; }
.vp-pic.vp-free { transform: translate(-50%, -50%); }
/* Cut out: square, so a face fills it, then shaped. */
.vp-pic-Circle, .vp-pic-Square, .vp-pic-Rounded { aspect-ratio: 1; overflow: hidden; box-sizing: border-box; }
.vp-pic-img { position: absolute; max-width: none; }
.vp-pic-Circle { border-radius: 50%; }
.vp-pic-Rounded { border-radius: 16%; }
/* The editor's chosen one: outlined, black and white so it shows on anything. */
/* Poppins (bold) for the words, from the Celebration Studio's own copy. */
@font-face { font-family: 'ShsPoppins'; src: url('celebrations/assets/Poppins-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
/* The usual buttons under the picture. */
.vp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.vp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 34px; height: 30px; padding: 0 8px;
    border: 1px solid #c8c8c8; background: #fff; border-radius: 4px; color: var(--shs-black); cursor: pointer; font: inherit; font-size: 13px; }
.vp-btn:hover { background: #f0f0f0; }
.vp-btn-main { min-width: 44px; background: var(--shs-black); border-color: var(--shs-black); color: #fff; }
.vp-btn-main:hover { background: #333; }
.vp-btn-wide { margin-left: 6px; }
.vp-clock { font-variant-numeric: tabular-nums; min-width: 96px; text-align: center; font-size: 13px; }
.vp:fullscreen { border-radius: 0; background: #000; }

/* ---- THE TV'S ITEMS (Tv/ItemStage, js/tv-item.js; the TV restructure, 2026-11-14): each item a layer on the stage, the
   newer over the older, ARRIVING its way over --in - the one before staying until it has fully arrived. A drawn transition
   (light burst, shutter) plays over everything on the stage's canvas; the item fades in under its peak. A VIDEO never
   animates itself (a TV can't play it then - black): it goes in underneath, whole, and what was up makes way over it
   (ItemStage, ti-going-*). ---- */
.ch-slide { position: absolute; inset: 0; }
.ch-in-fade { animation: ch-fade var(--in, 800ms) ease-out both; }
.ch-in-slide { animation: ch-slide var(--in, 700ms) cubic-bezier(.25,.46,.45,.94) both; }
.ch-in-bounce { animation: ch-bounce var(--in, 900ms) ease-out both; }
.ch-in-light-burst, .ch-in-shutter { animation: ch-fade calc(var(--in, 1500ms) * .27) ease-out calc(var(--in, 1500ms) * .43) both; }
@keyframes ch-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ch-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes ch-bounce {
    0% { opacity: 0; transform: scale(.82); }
    55% { opacity: 1; transform: scale(1.04); }
    78% { transform: scale(.985); }
    100% { opacity: 1; transform: scale(1); }
}
/* Making way for a slide arriving over it (ItemStage): a video fades to the channel's background over the same time (in a
   preview - on a TV it's gone, and the background back, before the slide comes); a slide
   goes at once; with a light burst or a shutter, anything goes at the flash's peak. */
.ch-slide.ti-going-fade { animation: ch-fade-out var(--out, 800ms) ease-out both; }
.ch-slide.ti-going-drawn { animation: ch-fade-out calc(var(--out, 1500ms) * .1) linear calc(var(--out, 1500ms) * .43) both; }
.ch-slide.ti-going-now { visibility: hidden; animation: none; }
@keyframes ch-fade-out { from { opacity: 1; } to { opacity: 0; } }
.ti-paused .ch-slide, .ti-paused .ch-slide * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .ch-slide { animation: none; } }
/* A Message card or media item: built in its host. Media fills the stage, cropped to fit; the logo isn't laid over it. */
.ti-host { position: absolute; inset: 0; overflow: hidden; container-type: size; }
.ti-media .ti-host { background: #000; }
.ti-root .db-logo { display: none; }
.ti-box { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform: translate(-50%, -50%) scale(var(--stage-k, 1)); overflow: hidden; }
.ti-logo { position: absolute; left: 971px; top: 39px; width: 210px; height: auto; pointer-events: none; }
.cb-media { position: absolute; inset: 0; display: block; }
.cb-media .vp { position: absolute; left: 50%; top: 50%; width: max(100cqw, 177.778cqh); height: max(100cqh, 56.25cqw); aspect-ratio: auto;
    transform: translate(-50%, -50%); border-radius: 0; }
.cb-media .vp-sound-note { pointer-events: auto; font-size: 20px; }
.ti-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* A TV (js/tv-watchdog.js marks the page): nobody's there to click - it plays muted if sound isn't allowed, and says nothing. */
.tv-unattended .vp-sound-note { display: none !important; }
.cb-msg { position: absolute; inset: 0; color: #fff; transform-origin: 50% 45%; --gib: "Figtree", "Segoe UI", system-ui, sans-serif; }
.cb-frame { position: absolute; left: 0; top: 0; overflow: visible; }
.cb-fill { fill: rgba(0, 0, 0, .55); stroke: rgba(255, 255, 255, .85); stroke-width: 2; }
.cb-title { position: absolute; left: 100px; top: 23px; width: 860px; margin: 0; font: 700 46px/104px var(--gib); color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-logo { position: absolute; left: 971px; top: 39px; width: 210px; height: auto; }
.cb-card { position: absolute; left: 73px; top: 157px; width: 1132px; height: 400px; }
.cb-who { position: absolute; left: 36px; top: 28px; right: 36px; display: flex; align-items: center; gap: 22px;
    font: 700 40px var(--gib); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 3px; }
/* The team's photo in a circle (as TeamAvatar), or its initials on its colour. */
.cb-av { flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; width: 88px; height: 88px;
    border-radius: 50%; background: hsl(var(--cb-hue, 0) 45% 42%); color: #fff; box-shadow: 0 0 0 2px rgb(255 255 255 / .85); }
.cb-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-initials { font-weight: 700; font-size: 35px; line-height: 1; letter-spacing: .02em; }
.cb-text { position: absolute; left: 36px; right: 36px; top: 140px; margin: 0; font: 400 42px/1.3 var(--gib);
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cb-text-top { top: 40px; -webkit-line-clamp: 7; }
/* The Dark and Light themes (Core.Channels.ChannelThemes): their panels and accent strip, their ink. */
.cb-soft { display: none; }
.th-soft .cb-std { display: none; }
.th-soft .cb-soft { display: inline; }
.th-soft .cb-soft-dark { fill: rgba(var(--panel), var(--panel-a)); }
.th-soft .cb-soft-red { fill: var(--accent); }
/* THE TITLE STRIP OFF (Channel.ShowTitleStrip): the accent band under a slide's title. Each slide type hides its
   own in its own scoped file, because scoped CSS outranks this one; the broadcast card's is here, where it is
   drawn. The accent itself stays - the progress bar, the rings round photos and a spotlight's backing use it. */
.th-no-strip .cb-soft-red { display: none; }
.th-soft .cb-msg, .th-soft .cb-title { color: var(--ink); }
/* Over a video, an animation or an image: solid - its picture is busier than a background (as over a held clip). */
.cb-step-media .cb-fill { fill: rgb(0, 0, 0); }
.th-soft .cb-step-media .cb-soft-dark { fill: rgb(var(--panel)); }

/* ---- A BROADCAST'S PAGE (Tv/BroadcastPage; the mock-up's board 11): when it fires (and when it's over) down the left,
   the celebration's preview docked on the right, ending level; the steps under them side by side, their parts lined up
   row for row (a subgrid), so a short Plays leaves a gap rather than pulling its message up. ---- */
.bc-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bc-top .md-crumbs { flex: 1 1 300px; margin: 0; }
.bc-acts { display: flex; gap: 6px; }
.bc-layout { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin-bottom: 14px; }
.bc-left { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.bc-left .md-pane { margin: 0; }
.bc-grow { flex: 1 1 auto; }
.bc-fire { display: flex; flex-direction: column; gap: 10px; }
.bc-f { display: flex; flex-direction: column; gap: 4px; }
.bc-f .vx-h { margin: 0; }
.bc-f > .edit-input { width: 100%; }
.bc-push { margin-top: auto; padding-top: 10px; border-top: 1px solid #e6e8ec; }
.bc-pane-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bc-on { font-size: 13px; }
.bc-band { display: flex; align-items: center; gap: 6px; }
.bc-band .money-edit { flex: 1 1 0; min-width: 0; }
/* The left (Steven, 2026-11-12): labels beside the fields; For which teams, one box ("All teams" till some are picked);
   then a line for each broadcast it overlaps - a clash marked ⚠ and in words, so colour is never all there is. */
.bc-rows { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 10px; align-items: center; }
.bc-rows .vx-h { margin: 0; }
.bc-rows > .edit-input, .bc-tags { width: 100%; }
.bc-plays { font-size: 13px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bc-plays span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-rows.bc-push { align-items: start; }
/* The broadcasts list: Check now with what it checks beside it, on the right with + Add broadcast. */
.bl-check { display: inline-flex; align-items: center; gap: 8px; }
.bc-lab { display: inline-flex; align-items: center; gap: 5px; }
.bc-lab .bc-info { margin-left: 0; }
.bc-rel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bc-rel li { font-size: 12.5px; line-height: 1.35; padding: 3px 8px; border-left: 3px solid #8a8f9a; background: #f6f7f9; border-radius: 0 4px 4px 0; }
.bc-rel li.bc-rel-clash { border-left-color: var(--shs-red); background: #fdf0f0; }
.bc-h2 { font-size: 15px; }
.bc-end { font-size: 13px; }
.bc-cel { flex: 999 1 560px; min-width: 0; margin: 0; display: flex; flex-direction: column; align-items: center; }
.bc-cel .cbp { max-width: 960px; }
.bc-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); column-gap: 14px; }
.bc-step { margin: 0; grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.bc-step.bc-add { display: flex; align-items: center; justify-content: center; border-style: dashed; background: transparent; }
@media (max-width: 900px) {
    .bc-steps { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 14px; }
    .bc-step { grid-row: auto; grid-template-rows: none; }
}
.bc-step-h { display: flex; align-items: center; gap: 10px; }
.bc-step-h .md-h { font-size: 15px; }
.bc-gap { flex: 1 1 0; }
.bc-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--shs-black); color: #fff; font-weight: 700; font-size: 13px; }
.bc-step .vx-row { grid-template-columns: 96px minmax(0, 1fr); }
.bc-step .vx-row.bc-row-first { margin-top: 0; }
.bc-step .vx-words .edit-input { width: 100%; }
.bc-wide { width: 100%; }
.bc-item { display: flex; align-items: center; gap: 10px; border: 1px solid #d9dde2; border-radius: 6px; padding: 7px 8px; background: #fafbfc; margin-top: 8px; }
.bc-thumb { flex: none; display: flex; align-items: center; justify-content: center; width: 80px; height: 45px; border-radius: 4px; overflow: hidden;
    background: #2a3a4a; color: #fff; font-size: 10.5px; text-align: center; }
.bc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-item-t { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.bc-item-t strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* What a media step plays (Steven, 2026-11-12): squares in a row - one, or the ones it picks from at random - that scrolls
   sideways rather than growing, so the message under it stays in line with the next step's. The picture changes it. */
.bc-random { font-size: 12px; color: #6b7280; margin: 0 0 4px; }
.bc-choices { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 6px; margin-top: 4px; scroll-snap-type: x proximity; }
.bc-sq { flex: none; width: 128px; display: flex; flex-direction: column; gap: 2px; border: 1px solid #d9dde2; border-radius: 6px; padding: 5px;
    background: #fafbfc; scroll-snap-align: start; }
.bc-sq-pic { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
    border-radius: 4px; overflow: hidden; background: #1d1d1b; color: #fff; font-size: 11px; cursor: pointer; }
.bc-sq-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-sq-change { position: absolute; inset: auto 0 0 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; padding: 2px 0; opacity: 0; transition: opacity .12s; }
.bc-sq-pic:hover .bc-sq-change, .bc-sq-pic:focus-visible .bc-sq-change { opacity: 1; }
.bc-sq-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-sq-foot { display: flex; align-items: center; gap: 4px; min-height: 20px; }
.bc-sq-facts { flex: 1 1 auto; min-width: 0; font-size: 11px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-sq-act { flex: none; border: 1px solid #d9dde2; background: #fff; border-radius: 4px; width: 22px; height: 20px; display: inline-flex; align-items: center;
    justify-content: center; font-size: 11px; color: #444; text-decoration: none; padding: 0; cursor: pointer; }
.bc-sq-act:hover { border-color: #444; color: #000; }
.bc-sq-add { align-items: center; justify-content: center; border-style: dashed; background: transparent; color: #444; font-size: 12px; cursor: pointer; min-height: 116px; }
.bc-sq-add span { font-size: 22px; line-height: 1; }
.bc-sq-add:hover { border-color: #444; }
.bl-more { position: absolute; right: 2px; bottom: 2px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 10px; font-weight: 600; padding: 0 4px; border-radius: 3px; }
.bc-part-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.bc-part-h .vx-h { margin: 0; }

/* ---- TV → BROADCASTS' LIST (Tv/BroadcastsTab): each broadcast's steps, one under the other - its number, a picture, what
   it plays and for how long, and whether a message is over it. ---- */
.bl-cel { display: flex; flex-direction: column; gap: 4px; }
.bl-step { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bl-no { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
    background: var(--shs-black); color: #fff; font-size: 11px; font-weight: 700; }
.bl-play-cell { width: 84px; text-align: center; padding-left: 18px !important; padding-right: 18px !important; }
/* A broadcast's celebration played in a pop-up: a round play button, as a video's. */
.bl-play { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0 0 0 2px; border: 0;
    border-radius: 50%; background: var(--shs-black); color: #fff; cursor: pointer; }
.bl-play:hover, .bl-play:focus-visible { background: var(--shs-red); outline: none; }
.bl-thumb { position: relative; flex: none; width: 48px; height: 27px; border-radius: 3px; background: #2a3a4a; }
.bl-thumb > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.bl-thumb[tabindex] { cursor: zoom-in; }
/* Pointed at, or clicked: a bigger picture under it, named. */
.bl-zoom { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: 260px; padding: 4px; background: #fff;
    border: 1px solid #c8ccd2; border-radius: 6px; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.bl-zoom img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.bl-zoom-cap { display: block; padding: 4px 2px 0; font-size: 12px; color: #333; white-space: normal; }
.bl-thumb:hover .bl-zoom, .bl-thumb:focus .bl-zoom { display: block; }
.bl-what { min-width: 0; }
.bl-msg { font-size: 12px; font-weight: 600; color: var(--shs-black); }

/* ---- TV → CHANNELS' GRID (Tv/ChannelsTab): the name on one line, its comments beside it, slides and broadcasts as a count
   with View for the detail (Steven, 2026-11-12). ---- */
.ch-name-cell { white-space: nowrap; }
.ch-comments { min-width: 160px; max-width: 320px; }
.ch-comments > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-count-cell { white-space: nowrap; }
.ch-count-cell > span { margin-right: 8px; }
/* The Plays summary in a set width, so each row's View button lines up (Steven, 2026-11-14). */
.ch-plays-cell > span { display: inline-block; min-width: 10.5em; }
.ch-view { margin: 0; }
.ch-view-lede { margin: 0 0 10px; }
.ch-view-foot { margin: 10px 0 0; }

/* ---- CHOOSING WHAT A STEP PLAYS (Tv/StepChooser; board 12): tiles, the one clicked opened wide with its variations. ---- */
.sc-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.sc-bar input[type="search"] { flex: 1 1 220px; width: auto; }
.sc-fld { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin: 0; }
.sc-fld select { width: auto; font-weight: 400; }
.sc-note { margin: 0 0 10px; }
.sc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 900px) { .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sc-tile { display: flex; flex-direction: column; padding: 0; border: 1px solid #c8ccd2; border-radius: 6px; overflow: hidden; background: #fff;
    color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sc-tile:hover { border-color: #8a929c; }
.sc-tile.sc-has { border: 2px solid var(--shs-black); }
.sc-tile.sc-open { grid-column: span 2; border: 2px solid var(--shs-black); cursor: default; }
.sc-pic { position: relative; display: block; aspect-ratio: 16 / 9; background: #2a3a4a; color: #fff; }
.sc-pic.sc-pic-open { aspect-ratio: auto; height: 150px; }
.sc-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-pic-none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 6px; font-size: 12px; text-align: center; }
.sc-tag { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 3px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 11px; }
.sc-sel { position: absolute; right: 6px; top: 6px; padding: 1px 6px; border-radius: 3px; background: var(--shs-black); color: #fff; font-size: 11px; font-weight: 700; }
.sc-cap { padding: 8px 10px 2px; font-weight: 600; font-size: 13.5px; }
.sc-cap-open { display: flex; align-items: center; gap: 8px; }
.sc-cap-open .cell-sub { font-weight: 400; }
.sc-gap { flex: 1 1 0; }
.sc-meta { padding: 0 10px 9px; font-size: 12.5px; color: #555; }
.sc-vars { display: flex; flex-direction: column; gap: 4px; padding: 4px 10px 10px; }
/* A row: chosen with the round button on its left (the whole left side is its label), previewed with the button on its
   right - two different things, kept apart. */
.sc-var { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 8px; border: 1px solid #dfe2e6; border-radius: 5px; font-size: 13px; }
.sc-var.sc-on { border: 2px solid var(--shs-black); padding: 5px 7px; }
.sc-var-pick { display: flex; align-items: center; gap: 9px; flex: 1 1 auto; min-width: 0; margin: 0; cursor: pointer; }
.sc-var.sc-no .sc-var-pick { opacity: .6; cursor: not-allowed; }
.sc-var input { accent-color: var(--shs-black); }
.sc-var-t { flex: 1 1 auto; min-width: 0; }
.sc-var-play { flex: none; }
.sc-var-play.sc-playing { border-color: var(--shs-black); font-weight: 600; }
.sc-new { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 2px 0; }
/* The opened tile's picture plays the master when clicked; Preview plays here too, with the usual buttons. */
.sc-pic-btn { width: 100%; border: 0; padding: 0; cursor: pointer; font: inherit; }
.sc-pic-play { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 4px; background: rgba(0, 0, 0, .78); color: #fff;
    font-size: 12px; font-weight: 600; }
.sc-pic-btn:hover .sc-pic-play { background: var(--shs-red); }
.sc-player { padding: 10px 10px 0; }
.sc-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.sc-foot-l { font-size: 12.5px; font-weight: 600; color: #333; }
.sc-chip { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--shs-black); border-radius: 6px; background: #fff; font-size: 13px; }
.sc-foot-note { margin-right: auto; }

/* ---- A CELEBRATION'S PREVIEW (Tv/CelebrationPreview): the stage as the TV shows it, a big play button and what it is
   over it while it isn't playing (Steven, 2026-11-12: "like you normally do with YouTube"), the usual buttons and a plain
   timeline of its steps under it - the playhead dragged to go anywhere. ---- */
.cbp { display: flex; flex-direction: column; gap: 8px; min-width: 0; width: 100%; }
.cbp-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.cbp-screen:fullscreen { border-radius: 0; aspect-ratio: auto; }
.cbp-screen > .cbp-theme { position: absolute; inset: 0; }
.cbp-screen .cbp-theme .db-host { min-height: 0; }
.cbp-area { position: absolute; inset: 0; z-index: 6; border: 0; padding: 0; background: transparent; cursor: pointer; }
.cbp-poster { position: absolute; inset: 0; z-index: 7; display: none; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; border: 0; padding: 0; color: #fff; background: transparent; cursor: pointer; font: inherit; text-align: center; }
.cbp.cb-is-paused:not(.cb-is-dragging) .cbp-poster { display: flex; }
.cbp.cb-at-edge .cbp-poster { background: rgba(0, 0, 0, .45); }
.cbp-big { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%;
    background: rgba(0, 0, 0, .65); border: 2px solid rgba(255, 255, 255, .9); margin-top: 64px; }
.cbp-poster:hover .cbp-big { background: var(--shs-red, #E30613); border-color: var(--shs-red, #E30613); }
/* A step that picks at random (Steven, 2026-11-12): what it picks from, under the title - a highlight runs over them as it
   picks (js/celebration-player.js, shuffle), and stays on the one picked: a thick white frame, bigger - not colour alone. */
.cbp-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 10px; max-width: 92%; }
.cbp-pick-h { font-size: 12px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.cbp-pick-row { display: flex; gap: 6px; max-width: 100%; overflow: hidden; justify-content: center; }
.cbp-sq { flex: none; width: 64px; height: 36px; border-radius: 4px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .35); background: #1d1d1b;
    display: flex; align-items: center; justify-content: center; font-size: 9px; color: #fff; opacity: .65; transition: transform .08s, opacity .08s; }
.cbp-sq img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbp-sq.on, .cbp-sq.picked { border: 3px solid #fff; opacity: 1; transform: scale(1.18); }
.cbp-poster-picks.is-shuffling { cursor: progress; }
.cbp-poster-picks.is-shuffling .cbp-big { opacity: .4; }
.cbp-poster-title { font-size: 20px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); margin-top: 10px; }
.cbp-poster-sub { font-size: 13.5px; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
/* Paused part way (or dragged to a moment): just the button, so the moment can be seen. */
.cbp:not(.cb-at-edge) .cbp-poster-title, .cbp:not(.cb-at-edge) .cbp-poster-sub { display: none; }
.cbp:not(.cb-at-edge) .cbp-big { margin-top: 0; }
.cbp.cb-is-paused .cb-i-pause, .cbp:not(.cb-is-paused) .cb-i-play,
.cbp.cb-is-muted .cb-i-sound, .cbp:not(.cb-is-muted) .cb-i-muted { display: none; }
.cbp-tl { display: flex; flex-direction: column; gap: 2px; user-select: none; }
.cbp-ruler { position: relative; height: 18px; border-bottom: 1px solid #cfd3d9; font-size: 10.5px; color: #555; }
.cbp-ruler span { position: absolute; top: 2px; transform: translateX(-50%); white-space: nowrap; }
.cbp-ruler span:first-child { transform: none; }
.cbp-ruler span:last-child { transform: translateX(-100%); }
.cb-tl-track { position: relative; cursor: pointer; touch-action: none; }
.cbp-lane { position: relative; height: 34px; }
.cbp-bar { position: absolute; top: 4px; bottom: 4px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .3); box-sizing: border-box;
    display: flex; align-items: center; padding: 0 8px; font-size: 12px; overflow: hidden; white-space: nowrap; color: #fff; }
.cbp-bar-1 { background: #1b2a38; }
.cbp-bar-2 { background: #2b2b2b; }
.cb-ph { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--shs-red, #E30613); z-index: 2; pointer-events: none; }
.cb-ph-grip { position: absolute; top: 0; left: -7px; width: 12px; height: 12px; background: var(--shs-red, #E30613); border-radius: 2px 2px 6px 6px; }
.cb-ph-time { position: absolute; top: -2px; left: 8px; background: var(--shs-red, #E30613); color: #fff; font-size: 10.5px; padding: 0 4px;
    border-radius: 2px; white-space: nowrap; }

/* ---- THE VARIATION EDITOR (Media/VariationEditor): the name and buttons; the player and the timeline on the left, the
   settings on the right. Every bar on the timeline says what it is - the shades only help. ---- */
.ve-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ve-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 14px; }
.ve-left { flex: 3 1 600px; min-width: 0; }
.ve-right { flex: 1 1 340px; min-width: 0; }
.ve-hint { margin: 6px 0 0; }
.ve-tl-head { padding: 0 0 12px; }
.ve-tl { position: relative; }
.ve-ruler { position: relative; height: 18px; margin-left: 130px; border-bottom: 1px solid #cfd3d9; font-size: 11px; color: #555; }
.ve-ruler span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ve-trk { display: flex; align-items: center; width: 100%; height: 36px; border: 0; border-bottom: 1px solid #eceef2; background: none; padding: 0;
    text-align: left; font: inherit; color: inherit; }
.ve-trk-btn { cursor: pointer; }
.ve-trk-btn:hover { background: #fafafa; }
.ve-trk-btn.on { background: #f3f3f3; }
.ve-trk-btn.on .ve-trk-l { font-weight: 700; }
.ve-trk-l { flex: 0 0 130px; font-size: 12.5px; color: #333; padding-right: 8px; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ve-trk-a { position: relative; flex: 1; height: 26px; }
.ve-bar { position: absolute; top: 1px; height: 24px; display: flex; align-items: center; padding: 0 7px; box-sizing: border-box; border-radius: 4px;
    border: 1px solid rgba(0,0,0,.28); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ve-trk-btn.on .ve-bar { border: 2px solid var(--shs-black); font-weight: 600; }
.ve-b-pic { background: #d3dbe5; color: #18222e; }
.ve-b-hold { background: repeating-linear-gradient(135deg, #e6ebf1 0 6px, #d3dbe5 6px 12px); color: #18222e; }
.ve-b-fade { top: 15px; height: 10px; padding: 0; background: #1d1d1b; border-color: #1d1d1b; font-size: 0; }
.ve-b-text { background: #f6dfc5; color: #3b2408; }
.ve-b-snd { background: #d7e8d0; color: #16300f; }
.ve-tl-acts { display: flex; gap: 8px; margin-top: 12px; }
.ve-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ve-pane-h { margin-bottom: 10px; }
.ve-nums { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 8px; font-size: 13.5px; }
.ve-nums label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.ve-n { width: 76px; }
.ve-sel { width: auto; }
.ve-off { opacity: .55; }
.ve-place-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.ve-place { display: grid; grid-template-columns: repeat(3, 34px); gap: 4px; margin-top: 4px; }
.ve-place button { height: 24px; border: 1px solid #c8c8c8; border-radius: 3px; background: #fff; font-size: 12px; cursor: pointer; padding: 0; }
.ve-place button[aria-pressed="true"] { background: var(--shs-black); border-color: var(--shs-black); color: #fff; font-weight: 700; }
.ve-place-sel { flex: 1 1 160px; display: flex; flex-direction: column; gap: 4px; }
.ve-checks { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ve-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid #c8c8c8; border-radius: 5px; overflow: hidden; }
.ve-seg button { border: 0; border-right: 1px solid #c8c8c8; background: #fff; padding: 5px 12px; font-size: 13.5px; cursor: pointer; color: #222; }
.ve-seg button:last-child { border-right: 0; }
.ve-seg button[aria-pressed="true"] { background: var(--shs-black); color: #fff; font-weight: 700; }
/* An animation's own settings, as its template lists them. */
.ve-group { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #555; margin: 14px 0 6px; }
.ve-group:first-of-type { margin-top: 4px; }
.ve-field { margin-bottom: 10px; }
.ve-field input[type="range"] { width: 100%; }
.ve-colour { display: inline-flex; align-items: center; gap: 8px; }
.ve-colour input[type="color"] { width: 44px; height: 30px; padding: 0; border: 1px solid #c8c8c8; border-radius: 4px; background: #fff; }
.ve-image { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ve-image img { height: 40px; max-width: 120px; object-fit: contain; background: #eee; border: 1px solid #ddd; border-radius: 3px; padding: 2px; }
.ve-image .form-control { flex: 1 1 200px; }
/* TV → Channels: the edit dialog's headings, the slides table's boxes, and Add slide under it. */
.ch-h { font-size: 15px; font-weight: 700; color: var(--sp-ink); margin: 14px 0 8px; }
.ch-slides .edit-input { padding: 3px 8px; }
.ch-add { margin: 8px 0 4px; }
/* A leaderboard's insights (on the slide since 2026-11-04): one line each - name, Icon tick, Panel tick (2026-11-03). */
.ch-insights-ticks { display: grid; grid-template-columns: auto 44px 44px; justify-content: start; align-items: center; gap: 2px 6px; white-space: nowrap; font-size: 13px; }
.ch-insights-ticks input { margin: 0; }
.ch-ins-h { font-size: 11px; color: var(--muted, #6c757d); text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.ch-ins-c { text-align: center; }
/* A channel's slide's insights on or off; the info button opens what the slide plays (Andy, 2026-11-04). */
.ch-ins-on { position: relative; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; }
.ch-info-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0;
    border-radius: 50%; background: none; color: #6b7585; cursor: pointer; }
.ch-info-btn:hover, .ch-info-btn.on { background: #eef1f6; color: var(--sp-ink); }
.ch-info-btn:focus-visible { outline: 2px solid var(--sp-focus); outline-offset: 1px; }
.ch-info-shade { position: fixed; inset: 0; z-index: 20; }
/* max-width: none - .cp-pop's 100% (later in the file, so this is .cp-pop.ch-info-pop to win) would squeeze it to the cell. */
.cp-pop.ch-info-pop { position: absolute; top: 100%; right: -8px; z-index: 21; width: 300px; max-width: none; white-space: normal; text-align: left; }
/* Where a Media item is used (MediaUses; Steven, 2026-11-12): the count, underlined, opens the list - each one a link. */
.ub { position: relative; display: inline-block; }
.ub-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer;
    text-decoration: underline dotted; text-underline-offset: 3px; }
.ub-btn:hover { text-decoration-style: solid; color: var(--sp-ink); }
.ub-btn:focus-visible { outline: 2px solid var(--sp-focus); outline-offset: 2px; }
/* Fixed to the screen and placed by js/pop.js (hidden till then), so the grid it's in can't cut it off. */
.cp-pop.ub-pop { position: fixed; top: 0; left: 0; z-index: 21; width: 290px; max-width: none; margin: 0; white-space: normal; text-align: left; visibility: hidden; }
.ub-list { display: flex; flex-direction: column; padding: 6px; max-height: 240px; overflow-y: auto; }
.ub-item { display: flex; gap: 10px; align-items: baseline; padding: 6px 8px; border-radius: 6px; color: var(--sp-ink); text-decoration: none; font-size: 13.5px; }
.ub-item:hover { background: #f4f6fa; text-decoration: underline; }
.ub-kind { flex: none; width: 70px; font-size: 11.5px; color: #6b7585; text-transform: uppercase; letter-spacing: .03em; }
.ch-info-body { padding: 10px 14px 12px; font-size: 13px; }
.ch-info-grid { display: grid; grid-template-columns: 1fr 52px 52px; align-items: center; row-gap: 4px; margin-bottom: 10px; }
.ch-info-mark { text-align: center; }
.ch-info-yes { color: #1a8a3a; font-weight: 700; }
.ch-info-no { color: #a0a7b2; }
.ch-info-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 10px; padding-top: 10px; border-top: 1px solid #e3e7ee; }
.ch-info-dl:empty { display: none; }
.ch-info-dl dt { font-weight: 600; color: var(--sp-ink); }
.ch-info-dl dd { margin: 0; }
.ch-pause { font-size: 13px; margin-top: 10px; }
.ch-pause .form-check { margin-bottom: 6px; }
.ch-pause-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ch-pause-row .edit-input { width: 64px; padding: 3px 8px; }
.ch-which { margin: 0 0 8px; padding: 0; border: 0; }
.ch-which .form-check { margin-bottom: 4px; }
.ch-rules { margin: 4px 0 6px 26px; }
.ch-legend { font-size: 13px; font-weight: 600; color: var(--sp-ink); margin-bottom: 4px; }

/* A TV nobody is watching over (js/tv-watchdog.js): no "reconnecting" box, it keeps showing what it has and recovers itself. */
html.tv-unattended #components-reconnect-modal { display: none !important; }

/* Sales data → Sales teams: the team's photo beside its name, and choosing one in Edit. */
.team-name-cell { display: inline-flex; align-items: center; gap: 10px; }
.team-photo-pick { display: flex; align-items: center; gap: 16px; padding: 4px 2px; }
/* A team's photo framed in its circle (Steven, 2026-11-12): the square it's saved as, the circle it's seen in marked -
   outside it dimmed, its edge a white ring. Dragged to place; the slider zooms. */
.tp { display: flex; gap: 16px; align-items: flex-start; }
.tp-view { position: relative; flex: none; width: 200px; height: 200px; border-radius: 6px; overflow: hidden; background: #2b2b2b;
    cursor: grab; touch-action: none; }
.tp-view:active { cursor: grabbing; }
.tp-view canvas { display: block; width: 100%; height: 100%; }
.tp-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 200px rgba(0, 0, 0, .55), inset 0 0 0 2px #fff; pointer-events: none; }
.tp-empty .tp-view { cursor: default; }
.tp-none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tp-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tp-zoom-row { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 0; }
.tp-zoom-row[hidden] { display: none; }
.tp-zoom { flex: 1; min-width: 120px; }
.team-photo-cmds { display: flex; flex-wrap: wrap; gap: 8px; }

/* Money typed into a DevExpress spin edit: right-aligned, as figures are everywhere else. */
.money-edit input { text-align: right; font-variant-numeric: tabular-nums; }
/* A clip's categories (CategoryPicker), as Standpoint CRM's card labels: pills, + for a list to tick, and create. The list
   opens in place, under the pills, not floating: in a dialog a floating one is cut off by the dialog's edge. */
.cp { position: relative; margin-bottom: 14px; }
.cp-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 32px; }
.cp-pill { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; padding: 5px 8px 5px 10px; border-radius: 5px; background: #e8eefb; color: #1d3a7a; }
.cp-x { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font-size: 14px; line-height: 1; opacity: .7; }
.cp-x:hover { opacity: 1; }
.cp-plus { width: 30px; height: 30px; border-radius: 6px; border: 0; background: #eef1f6; color: #44506a; cursor: pointer; padding: 0; font-size: 18px; line-height: 1; }
.cp-plus:hover, .cp-plus.on { background: #e2e7ef; }
.cp-pop { margin-top: 6px; width: 320px; max-width: 100%; background: #fff; border: 1px solid #d5dbe5; border-radius: 10px;
    box-shadow: 0 4px 12px rgba(1, 29, 83, .10); }
.cp-pop-h { display: flex; align-items: center; padding: 6px 6px 6px 14px; border-bottom: 1px solid #e3e7ee; font-size: 13.5px; }
.cp-pop-h b { flex: 1; }
.cp-close { width: 28px; height: 28px; border: 0; background: none; font-size: 18px; color: #555; cursor: pointer; border-radius: 6px; }
.cp-close:hover { background: #f4f6fa; }
.cp-pop-body { padding: 8px; max-height: 220px; overflow-y: auto; }
.cp-find { width: 100%; margin-bottom: 6px; }
.cp-opt { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; font: inherit; text-align: left; }
.cp-opt:hover { background: #f4f6fa; }
.cp-opt-name { flex: 1; font-size: 14px; }
.cp-tick { width: 18px; color: #1d3a7a; font-weight: 700; text-align: center; }
.cp-new { color: #1d3a7a; font-weight: 600; }
.cp-none { padding: 6px 8px; }

/* A channel's accent colour (TV → Channels, Dark and Light): the swatches, and one of your own. */
.ch-accents { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.ch-swatch.on { border-color: var(--sp-ink); box-shadow: inset 0 0 0 2px #fff; }
.ch-swatch-own { width: 34px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }

/* THE TV THEMES' COLOURS (Core.Channels.ChannelThemes; Andy, 2026-11-04). Dark and Light share their shapes (th-soft, in each
   slide's styles) and differ only here; the player sets --accent and --panel-a from the channel. Panels are r, g, b so a
   slide can give them the channel's opacity: rgba(var(--panel), var(--panel-a)). */
.th-soft { --accent: #E30613; --panel-a: .9;
    --panel: 29, 29, 27; --card: 51, 51, 51; --band: #4a4a4a; --row: #333; --line: #555; --track: #555; --track-edge: #777;
    --ink: #fff; --ink-2: rgba(255, 255, 255, .85); --ink-3: rgba(255, 255, 255, .65);
    --gold: #f2c230; --lit-bg: #fff; --lit-fade: rgba(255, 255, 255, .75); --lit-ink: #333; }
.th-light {
    --panel: 250, 250, 248; --card: 255, 255, 255; --band: #dddcd8; --row: #ebebe8; --line: #c8c8c4; --track: #d6d6d2; --track-edge: #b4b4b0;
    --ink: #1d1d1b; --ink-2: #3d3d3a; --ink-3: #5f5e5a;
    --gold: #a87b00; --lit-bg: #1d1d1b; --lit-fade: rgba(29, 29, 27, .8); --lit-ink: #fff; }
/* A video's own sound's quiet spells: drawn over its bar on the timeline (hatched, and saying so), set on the right. */
.ve-b-quiet { background: repeating-linear-gradient(45deg, #fff 0 5px, #d7e8d0 5px 10px); color: #16300f; z-index: 1; font-weight: 600; }
.ve-quiet { border: 1px solid #e3e5e8; border-radius: 6px; padding: 8px 10px 2px; margin-bottom: 8px; }

/* ---- THE VARIATION EDITOR, take 2 (Media/VariationEditor; Steven, 2026-11-11 - Camtasia's layout, kept simple): things to
   add | the picture | what's chosen, then the timeline full width. Bars say what they are and carry an icon on their line;
   the chosen one is outlined in black and marked with an arrow - never colour alone. ---- */
/* Where it is | its name, centred over the picture | the buttons - one line, in the work area's columns. */
.ve2-head { display: grid; grid-template-columns: 210px minmax(0, 1fr) 330px; gap: 12px; align-items: center; margin-bottom: 10px; }
.ve2-head .md-crumbs { margin: 0; flex-wrap: nowrap; white-space: nowrap; min-width: 0; }
.ve2-head .md-crumbs a { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ve2-name { justify-self: center; width: 100%; max-width: clamp(420px, calc((100vh - 490px) * 1.7778), 760px); box-sizing: border-box;
    font-size: 15px; font-weight: 600; text-align: center; }
.ve2-head .ve-acts { grid-column: 3; justify-content: flex-end; margin: 0; }
@media (max-width: 1200px) { .ve2-head { grid-template-columns: minmax(0, 1fr); } .ve2-head .ve-acts { grid-column: auto; } .ve2-name { justify-self: stretch; } }
.ve2-work { display: grid; grid-template-columns: 210px minmax(0, 1fr) 330px; gap: 12px; align-items: start; margin-bottom: 12px; }
/* The picture sets the height; the panels either side scroll within it, so picking something never pushes the
   timeline down out of sight. The picture is sized to leave room for the timeline under it. */
.ve2-work > .ve2-add, .ve2-work > .ve2-props { height: 0; min-height: 100%; overflow-y: auto; overflow-x: hidden; box-sizing: border-box; }
@media (max-width: 1200px) {
    .ve2-work { grid-template-columns: minmax(0, 1fr); }
    .ve2-work > .ve2-add, .ve2-work > .ve2-props { height: auto; min-height: 0; overflow: visible; }
}
.ve2-add { padding: 10px 12px; margin: 0; }
.ve2-ph { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #444; margin: 0 0 8px; }
.ve2-ph-gap { margin-top: 14px; }
.ve2-tool { display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid #c8ccd2; border-radius: 5px; padding: 7px 9px; margin-bottom: 6px;
    background: #fafafa; font: inherit; font-size: 13px; text-align: left; cursor: grab; color: var(--shs-black); }
.ve2-tool:hover { background: #f0f0f0; }
.ve2-tool-sm { padding: 5px 8px; font-size: 12.5px; }
.ve2-tool .cell-sub { margin-left: auto; }
.ve2-icon { flex: none; vertical-align: -3px; }
.ve2-upload { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.ve2-upload input[type="file"] { font-size: 12px; max-width: 100%; }
.ve2-stage { min-width: 0; }
.ve2-screen { position: relative; max-width: clamp(420px, calc((100vh - 490px) * 1.7778), 760px); margin: 0 auto; }
.ve2-guide-v, .ve2-guide-h { position: absolute; pointer-events: none; z-index: 5; }
.ve2-guide-v { top: 0; height: calc(100% - 38px); border-left: 1px dashed #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.ve2-guide-h { left: 0; right: 0; border-top: 1px dashed #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.ve2-guide-v[hidden], .ve2-guide-h[hidden], .ve2-snapline[hidden], .ve2-box[hidden] { display: none; }
/* The line a laid-over animation shows above (Steven, 2026-11-12): dashed, with a tab saying so, dragged up or down. A tall
   invisible strip round it is what's grabbed. */
.ve2-cut { position: absolute; z-index: 6; height: 14px; margin-top: -7px; cursor: ns-resize; touch-action: none; }
.ve2-cut::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; border-top: 2px dashed #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }
.ve2-cut-tag { position: absolute; right: 6px; bottom: 9px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; font-weight: 600;
    padding: 1px 6px; border-radius: 3px; white-space: nowrap; pointer-events: none; }
/* What's chosen, while paused in the editor: a dashed box round it and corner handles to size it (dragged). Drawn over
   the picture by js/variation-editor.js - not part of it, so never in Preview, Full preview or on a TV. */
.ve2-box { position: absolute; z-index: 6; pointer-events: none; border: 2px dashed #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.6), inset 0 0 0 1px rgba(0,0,0,.6); }
.ve2-handle { position: absolute; width: 11px; height: 11px; background: #fff; border: 2px solid var(--shs-black); box-sizing: border-box;
    pointer-events: auto; touch-action: none; }
.ve2-handle[data-corner="nw"] { left: -7px; top: -7px; cursor: nwse-resize; }
.ve2-handle[data-corner="ne"] { right: -7px; top: -7px; cursor: nesw-resize; }
.ve2-handle[data-corner="sw"] { left: -7px; bottom: -7px; cursor: nesw-resize; }
.ve2-handle[data-corner="se"] { right: -7px; bottom: -7px; cursor: nwse-resize; }
/* Words and pictures can be dragged on the picture. */
.ve2-screen .vp-texts [data-kind] { pointer-events: auto; cursor: move; user-select: none; }
.ve2-props { min-width: 0; }
.ve2-props .md-pane { margin-bottom: 10px; }
.ve2-colour { width: 44px; height: 28px; padding: 0; border: 1px solid #c8c8c8; border-radius: 4px; background: #fff; }
.ve2-snaprow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 10px; }
.ve2-snaprow .ve-place { margin: 0; }
.ve2-picrow { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.ve2-picrow > div { flex: 1; min-width: 0; }
.ve2-picthumb.ve2-thumb-Circle, .ve2-picthumb.ve2-thumb-Square, .ve2-picthumb.ve2-thumb-Rounded { width: 54px; height: 54px; object-fit: cover; box-sizing: border-box; }
.ve2-picthumb.ve2-thumb-Circle { border-radius: 50%; }
.ve2-picthumb.ve2-thumb-Rounded { border-radius: 16%; }
/* Which part of a picture a cut-out shows: the whole picture, the part outside the cut-out dimmed; the outline is dragged. */
.ve2-crop { position: relative; display: inline-block; max-width: 100%; overflow: hidden; line-height: 0; user-select: none; border-radius: 4px; margin: 2px 0 4px;
    background: #2a3a4a; }
.ve2-crop-img { display: block; max-width: 100%; max-height: 190px; }
.ve2-crop-win { position: absolute; box-sizing: border-box; border: 2px solid #fff; outline: 1px solid #1d1d1b; box-shadow: 0 0 0 9999px rgba(0,0,0,.5);
    cursor: move; touch-action: none; }
.ve2-crop-Circle { border-radius: 50%; }
.ve2-crop-Rounded { border-radius: 16%; }
/* A row of choices: the chosen one ticked, outlined and bold. */
.ve2-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ve2-seg button { border: 1px solid #c8ccd2; border-radius: 4px; background: #fafafa; padding: 4px 8px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--shs-black); }
.ve2-seg button:hover { background: #f0f0f0; }
.ve2-seg button[aria-pressed="true"] { background: #fff; font-weight: 700; outline: 2px solid var(--shs-black); outline-offset: -1px; }
.ve2-dips { margin-top: 4px; }
.ve2-dips .ve2-tool { cursor: pointer; }
.ve2-picrow input[type="file"] { max-width: 100%; font-size: 12px; }
.ve2-picthumb { width: 96px; height: 54px; object-fit: contain; background: #2a3a4a; border-radius: 4px; flex: none; }

.ve2-tl { padding: 10px 12px 12px; }
.ve2-tl-bar { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.ve2-lanes { position: relative; user-select: none; }
.ve2-row { display: flex; align-items: stretch; min-height: 40px; border-bottom: 1px solid #eceef2; }
.ve2-row-main { min-height: 52px; }
.ve2-row-sound { min-height: 50px; }
.ve2-ruler-row { min-height: 22px; border-bottom: 1px solid #cfd3d9; }
.ve2-lh { flex: 0 0 140px; display: flex; align-items: center; gap: 6px; padding: 0 8px; box-sizing: border-box; border-right: 1px solid #eceef2;
    font-size: 12.5px; font-weight: 600; color: #333; cursor: pointer; }
.ve2-lh:hover { background: #fafafa; }
/* A row's ⓘ: what it is - its words, its image, its sound - shown beside it as it's pointed at, or tabbed to. */
.ve2-info { position: relative; flex: none; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px;
    border-radius: 50%; border: 1.5px solid #6b727c; color: #4a5059; background: #fff; font: 700 10.5px/1 Georgia, serif; font-style: italic; cursor: help; }
.ve2-info:hover, .ve2-info:focus-visible { border-color: var(--shs-black); color: #fff; background: var(--shs-black); outline: none; }
.ve2-info::after { content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); z-index: 40;
    max-width: 420px; padding: 5px 9px; border-radius: 5px; background: var(--shs-black); color: #fff; font: 400 12.5px/1.35 "Segoe UI", system-ui, sans-serif;
    font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 14px rgba(0,0,0,.2);
    opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; }
.ve2-info:hover::after, .ve2-info:focus-visible::after { opacity: 1; visibility: visible; }
.ve2-la { position: relative; flex: 1; min-width: 0; cursor: text; }
.ve2-ruler { position: relative; flex: 1; font-size: 10.5px; color: #555; cursor: pointer; }
.ve2-ruler span { position: absolute; top: 3px; transform: translateX(-50%); white-space: nowrap; }
.ve2-ruler span:first-child { transform: none; }
.ve2-bar { position: absolute; top: 5px; bottom: 5px; border-radius: 4px; border: 1px solid rgba(0,0,0,.3); overflow: hidden; box-sizing: border-box;
    font-size: 11.5px; display: flex; align-items: center; cursor: pointer; }
.ve2-movable { cursor: grab; }
.ve2-movable:active { cursor: grabbing; }
.ve2-sel { border: 2px solid var(--shs-black); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--shs-black); z-index: 2; }
.ve2-sel .ve2-label { font-weight: 700; }
.ve2-label { position: relative; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; pointer-events: none; }
.ve2-b-video { background: #1b2a38; color: #fff; }
.ve2-b-video .ve2-label { text-shadow: 0 1px 2px #000; }
.ve2-film { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: .85; pointer-events: none; }
.ve2-b-freeze { background: repeating-linear-gradient(135deg, #e6ebf1 0 6px, #cfd8e3 6px 12px); color: #18222e; }
.ve2-b-black { background: repeating-linear-gradient(90deg, #1d1d1b 0 4px, #555 4px 8px); color: #fff; top: 30px; }
.ve2-b-text { background: #f6dfc5; color: #3b2408; }
.ve2-b-picture { background: #e1d5f0; color: #2a1640; }
.ve2-b-overlay { background: #fde8a6; color: #3a2c00; }
.ve2-b-sound { background: #d7e8d0; color: #16300f; }
.ve2-b-own { background: transparent; border-style: dashed; color: #16300f; }
.ve2-b-own .ve2-label { background: rgba(255,255,255,.8); border-radius: 3px; margin-left: 4px; padding: 0 4px; }
/* A volume change: see-through, so the sound's volume line shows it going down or up (Steven, 2026-11-12: "not just
   silent"); its words small at its foot. */
/* In the lower half of its sound's row, always over the sound (Steven, 2026-11-12: dragging one "wasn't doing it" once its
   sound was chosen) - the upper half is the sound's, its ends for stretching it. */
.ve2-b-quiet { top: 52%; background: rgba(29, 29, 27, .07); color: #1d1d1b; border: 1.5px solid var(--shs-black); z-index: 3; font-weight: 600;
    align-items: flex-end; }
.ve2-b-quiet.ve2-sel { z-index: 4; }
.ve2-b-quiet .ve2-label { font-size: 10.5px; background: rgba(255, 255, 255, .85); border-radius: 3px; padding: 0 3px; margin: 0 0 2px 2px; }
.ve2-wave { position: absolute; top: 4px; bottom: 4px; height: calc(100% - 8px); width: 100%; pointer-events: none; }
.ve2-bar .ve2-wave { left: 0; }
/* A sound's volume line: over its waveform and its volume changes; the chosen sound's can be dragged up or down. */
.ve2-vol { position: absolute; inset: 4px 0; width: 100%; height: calc(100% - 8px); pointer-events: none; z-index: 2; }
.ve2-vol polyline { fill: none; stroke: var(--shs-black); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ve2-vol-live polyline { stroke: var(--shs-red); stroke-width: 2.5; }
.ve2-vol polyline.ve2-vol-hit { stroke: transparent; stroke-width: 10; pointer-events: stroke; cursor: ns-resize; }
.vx-adds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ve2-ramp { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.ve2-ramp-in { left: 0; background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,0)); }
.ve2-ramp-out { right: 0; background: linear-gradient(270deg, rgba(255,255,255,.95), rgba(255,255,255,0)); }
.ve2-edge { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; z-index: 3; }
.ve2-edge-start { left: 0; }
.ve2-edge-end { right: 0; }
.ve2-edge:hover, .ve2-sel .ve2-edge { background: rgba(29,29,27,.35); }
/* A bar's fade grips (Steven, 2026-11-12: "I can't see how to fade sound in / out with the mouse"): big enough to find, just
   inside its ends - on the bar under the pointer, and always on the one chosen. */
.ve2-fade { position: absolute; top: 1px; width: 13px; height: 13px; background: #fff; border: 2px solid var(--shs-black); border-radius: 50%;
    box-sizing: border-box; box-shadow: 0 0 0 1px #fff; cursor: ew-resize; z-index: 4; display: none; }
.ve2-fade-out { margin-left: 0; }
.ve2-fade:hover { background: var(--shs-black); }
.ve2-bar:hover .ve2-fade, .ve2-sel .ve2-fade { display: block; }
.ve2-row-drop .ve2-la { display: flex; align-items: center; padding: 0 8px; }
.ve2-drop { font-size: 11.5px; color: #666; border: 1px dashed #9aa3ad; border-radius: 4px; padding: 3px 10px; background: #f7f8fa; }
.ve2-dropping .ve2-drop { border-color: var(--shs-black); color: var(--shs-black); }
.ve2-over { position: absolute; left: 140px; right: 0; top: 0; bottom: 0; pointer-events: none; }
.ve2-playhead { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--shs-red); z-index: 6; }
.ve2-ph-grip { position: absolute; top: 0; left: -7px; width: 12px; height: 14px; background: var(--shs-red); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
    pointer-events: auto; cursor: ew-resize; }
.ve2-ph-time { position: absolute; top: 0; left: 7px; font-size: 10.5px; background: var(--shs-red); color: #fff; padding: 0 4px; border-radius: 2px; white-space: nowrap; }
.ve2-snapline { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--shs-black); z-index: 5; }

/* ---- THE VARIATION EDITOR'S PANELS (Media/VariationEditor; Steven, 2026-11-11: "more stylish for all, aligned, tidy,
   consistent"): a head - what it is, and Remove - then sections under small headings, each rows of a label (left) and its
   controls (right). Chosen things are ticked and outlined - never colour alone. ---- */
.vx-panel { padding: 12px 14px 14px; }
.vx-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vx-head .md-h { display: flex; align-items: center; gap: 7px; font-size: 15px; min-width: 0; }
.vx-sec { border-top: 1px solid #e6e8ec; margin-top: 10px; padding-top: 9px; }
.vx-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #555; margin: 0 0 7px; }
.vx-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 8px; margin: 6px 0; }
.vx-row-top { align-items: start; }
.vx-row-top > .vx-l { padding-top: 4px; }
.vx-l { font-size: 12.5px; color: #444; }
.vx-c { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 0; font-size: 12.5px; color: #333; }
.vx-c .edit-input.vx-num { width: 54px; padding: 3px 5px; font-size: 12.5px; text-align: right; }
.vx-c .edit-input.vx-sel { width: auto; max-width: 100%; padding: 3px 6px; font-size: 12.5px; }
.vx-c .edit-input.vx-grow { flex: 1; width: auto; min-width: 0; }
.vx-range { flex: 1; min-width: 70px; }
.vx-val { min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.vx-colour { width: 34px; height: 26px; padding: 0 2px; border: 1px solid #c8ccd2; border-radius: 4px; background: #fff; cursor: pointer; }
.vx-hint { font-size: 11.5px; color: #666; margin: 6px 0 0; }
.vx-c .vx-hint { margin: 0; flex-basis: 100%; }
.vx-choice { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 5px 0; font-size: 13px; }
.vx-panel .ve2-seg { margin-bottom: 2px; }

/* The words, with the Field button inside their box, and its menu of fields. */
.vx-words { position: relative; margin-bottom: 4px; }
.vx-words .edit-input { padding-right: 76px; }
.vx-field-btn { position: absolute; right: 5px; top: 5px; border: 1px solid #c8ccd2; border-radius: 4px; background: #f4f5f7; padding: 2px 8px;
    font: inherit; font-size: 12px; font-weight: 600; color: var(--shs-black); cursor: pointer; }
.vx-field-btn:hover { background: #eceef1; }
.vx-field-btn[aria-expanded="true"] { background: #fff; outline: 2px solid var(--shs-black); }
.vx-menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff; border: 1px solid #c8ccd2; border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,.15); padding: 4px; }
.vx-menu button { display: flex; align-items: baseline; gap: 10px; width: 100%; border: 0; background: none; border-radius: 4px; padding: 5px 8px;
    font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.vx-menu button:hover, .vx-menu button:focus-visible { background: #f0f2f5; }
.vx-menu code { min-width: 82px; color: var(--shs-black); font-weight: 700; }
.vx-menu span { color: #666; }

/* Looks to start from, each shown in itself. */
.vx-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.vx-preset { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 0; border: 1px solid #c8ccd2; border-radius: 6px;
    background: #2a3a4a; overflow: hidden; cursor: pointer; font: inherit; }
.vx-preset[aria-pressed="true"] { outline: 2px solid var(--shs-black); outline-offset: 1px; }
.vx-sample { display: inline-grid; font-size: 22px; font-weight: 700; line-height: 1.15; }
.vx-sample > span { grid-area: 1 / 1; }
.vx-preset-name { align-self: stretch; margin-top: 4px; padding: 2px 4px; background: #fff; color: #333; font-size: 11px; text-align: center; white-space: nowrap; }
.vx-preset[aria-pressed="true"] .vx-preset-name { font-weight: 700; }

/* An image's panel: what it is, and Change… - always there (Steven, 2026-11-12). */
.vx-chosen { display: flex; gap: 10px; align-items: center; }
.vx-chosen-pic { flex: 0 0 96px; height: 62px; padding: 0; border: 1px solid #c8ccd2; border-radius: 5px; background: #2a3a4a; overflow: hidden;
    cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; font: inherit; font-size: 12px; }
.vx-chosen-pic img { width: 100%; height: 100%; object-fit: contain; }
.vx-chosen-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.vx-chosen-text strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
/* What's see-through shows as a checkerboard. */
.vx-checker { background: repeating-conic-gradient(#99a0a8 0 25%, #c3c8ce 0 50%) 0 0 / 12px 12px; }

/* The Choose an image window: search and category, then the team's photo, overlays (with the upload) and backgrounds. */
.vx-choose-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.vx-choose-bar input[type="search"] { flex: 1 1 220px; }
.vx-choose-cat { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; margin: 0; }
.vx-choose-cat select { width: auto; }
.vx-choose-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
.vx-choose-note { grid-column: span 3; align-self: center; margin: 0; }
.vx-choose-grid + .vx-h, .vx-choose-grid + .vx-hint + .vx-h { margin-top: 14px; }
.vx-tile { position: relative; display: flex; flex-direction: column; padding: 0; border: 1px solid #c8ccd2; border-radius: 6px; background: #fff; overflow: hidden;
    cursor: pointer; font: inherit; }
.vx-tile-pic { display: flex; align-items: center; justify-content: center; height: 78px; background: #2a3a4a; }
.vx-tile-pic.vx-checker { background: repeating-conic-gradient(#99a0a8 0 25%, #c3c8ce 0 50%) 0 0 / 12px 12px; }
.vx-tile-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vx-tile-name { background: #fff; color: #333; font-size: 12px; padding: 5px 7px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-tile[aria-pressed="true"] { outline: 3px solid var(--shs-black); outline-offset: 0; }
.vx-tile[aria-pressed="true"] .vx-tile-name { font-weight: 700; }
.vx-tile-upload { background: #f7f7f7; border-style: dashed; border-color: #8a8a8a; }
.vx-tile-plus { display: flex; align-items: center; justify-content: center; height: 78px; font-size: 30px; color: #333; }
.vx-tile-upload .vx-tile-name { font-weight: 600; }
/* A background image's bar: itself, again and again along its time. */
.ve2-still { position: absolute; inset: 0; background-repeat: repeat-x; background-size: auto 100%; background-position: left center; opacity: .85; }
.vx-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.vx-upload { position: relative; overflow: hidden; }

/* A sound's volume changes, each picked to change it. */
.vx-item { display: flex; align-items: center; gap: 6px; width: 100%; margin-bottom: 5px; padding: 5px 8px; border: 1px solid #c8ccd2; border-radius: 5px;
    background: #fafafa; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.vx-item:hover { background: #f0f0f0; }
.vx-item-sub { margin-left: auto; color: #666; }

/* ---- HOME (Steven, 2026-11-12): a welcome, and a card for each part of the app the person can use ---- */
.home-welcome { margin-bottom: 18px; }
.home-h { font-size: 1.4rem; font-weight: 600; margin: 0 0 6px; color: var(--shs-black); }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; max-width: 1200px; }
.home-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: #fff; border: 1px solid #ced4da; border-radius: 6px;
    color: var(--shs-text); text-decoration: none; border-left: 4px solid var(--shs-red); }
.home-card:hover, .home-card:focus-visible { box-shadow: 0 4px 14px rgba(0,0,0,.1); color: var(--shs-text); }
.home-card:focus-visible { outline: 3px solid var(--sp-focus); outline-offset: 2px; }
.home-card-top { display: flex; align-items: center; gap: 10px; }
.home-card-name { font-size: 1.05rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; }
.home-card:hover .home-card-name { text-decoration-color: currentColor; }
.home-card-text { font-size: 13.5px; color: #4a4f55; }
.home-when { display: flex; flex-wrap: wrap; gap: 6px; color: #444; }
.home-dot { color: #999; }

/* ---- THE TV RESTRUCTURE'S EDITORS (2026-11-14): a list of items, + Add, a channel's tabs, a broadcast's page. Fields sized to
   what goes in them and lined up; few words (Steven). ---- */
.le { display: grid; gap: 4px; }
.le-h, .le-r { display: grid; grid-template-columns: 18px 64px minmax(0, 1fr) 176px 78px 22px; gap: 10px; align-items: center; }
.le-h { font-size: 12px; color: #6b7280; padding: 0 9px; }
.le-h-item { grid-column: 1 / span 3; }
.le-r { border: 1px solid #d9dde2; border-radius: 6px; padding: 5px 8px; background: #fff; }
.le-move { display: grid; }
.le-move button { border: 0; background: none; padding: 0; font-size: 10px; line-height: 1.35; color: #555; cursor: pointer; }
.le-move button:disabled { opacity: .2; cursor: default; }
.le-pic { width: 64px; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #2b2b29; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; }
.le-pic:hover, .le-pic:focus-visible { outline: 2px solid var(--shs-red); outline-offset: 1px; }
.le-name { border: 0; background: none; padding: 0; font-weight: 700; color: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.le-name:hover, .le-name:focus-visible { color: var(--shs-red-dark); text-decoration: underline; }
.le-what select { max-width: 100%; }
.le-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.le-glyph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font: 700 13px/1 system-ui, sans-serif; box-shadow: inset 0 3px 0 var(--shs-red); }
.le-what { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13.5px; }
.le-what > b { overflow-wrap: anywhere; }
.le-what > .cell-sub { flex-basis: 100%; margin-top: -2px; }
.le .le-var { width: auto; max-width: 280px; font-size: 12.5px; padding: 1px 6px; height: auto; min-height: 0; }
.le-check { font-size: 12.5px; display: inline-flex; gap: 4px; align-items: center; margin: 0; }
/* A media row's videos (it picks one): each with its picture, stacked; two or more bracketed against the one transition
   and length they share - those on the videos' line, so they sit in the middle of the bracket - and "+ Add another" and
   "Picks one at random" on a line under them. */
.le-r-media { row-gap: 2px; }
.le-r-media > .le-move { grid-row: 1 / span 2; }
.le-r-media > .le-vs { grid-column: 2 / span 2; grid-row: 1; }
.le-r-media > .le-tr { grid-column: 4; grid-row: 1; }
.le-r-media > .le-len { grid-column: 5; grid-row: 1; }
.le-r-media > .le-x { grid-column: 6; grid-row: 1; }
.le-under { grid-column: 2 / span 4; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) 176px 78px; column-gap: 10px; align-items: center; }
.le-rand { grid-column: 2 / span 2; }
.le-vs { min-width: 0; display: grid; gap: 5px; position: relative; }
/* A channel's media row, as it was before those (Steven, 2026-11-14): the videos and + Add another together. */
.le-set { grid-column: 2 / span 2; min-width: 0; display: grid; gap: 3px; }
.le-vs.le-many { padding-right: 16px; }
.le-vs.le-many::after { content: ""; position: absolute; top: 3px; bottom: 3px; right: 0; width: 8px; border: 2px solid #aeb4bd; border-left: 0; border-radius: 0 7px 7px 0; }
.le-v { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; }
.le-another { justify-self: start; margin-left: 74px; }
/* One, then the next: an arrow down between rows, under the pictures. */
.le-then { height: 14px; margin: -2px 0; padding-left: 70px; color: #8a919b; line-height: 0; }
.le-out { border: 0; background: none; color: #6b7280; cursor: pointer; font-size: 11px; padding: 0 2px; }
.le-out:hover, .le-out:focus-visible { color: var(--shs-red); }
.le-link { border: 0; background: none; padding: 0; color: var(--shs-red-dark); font-size: 12px; text-decoration: underline; cursor: pointer; }
.le-tr, .le-len { display: flex; gap: 4px; align-items: center; font-size: 13px; white-space: nowrap; }
.le .le-tr select { width: 108px; padding: 2px 6px; }
.le-num, .ch-grid .le-num { width: 58px !important; text-align: right; padding: 2px 6px; }
.le-x { border: 0; background: none; color: #888; cursor: pointer; font-size: 15px; padding: 0; }
.le-x:hover { color: var(--shs-red); }
.le-f { display: flex; justify-content: space-between; align-items: center; padding: 3px 2px 0; }
.le-empty { border: 1px dashed #c9ced6; border-radius: 6px; padding: 10px; color: #6b7280; font-size: 13px; text-align: center; }
@media (max-width: 760px) {
    .le-h { display: none; }
    .le-r { grid-template-columns: 18px 64px minmax(0, 1fr) 22px; }
    .le-tr, .le-len { grid-column: 3 / span 2; }
    .le-r-media > .le-x { grid-column: 4; grid-row: 1; }
    .le-r-media > .le-tr { grid-column: 2 / span 3; grid-row: 3; }
    .le-r-media > .le-len { grid-column: 2 / span 3; grid-row: 4; }
    .le-under { grid-column: 2 / span 3; grid-template-columns: 1fr; }
    .le-rand { grid-column: auto; }
}

/* + Add (Tv/ItemPicker): type chips, slides as buttons, Media as tiles with their variations under them. */
.ip-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 8px; }
.ip-bar .ip-search { width: 220px; }
.ip-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ip-chip { border: 1px solid #c9ced6; background: #fff; color: #222; border-radius: 99px; padding: 3px 11px; font-size: 13px; cursor: pointer; }
.ip-chip.on { background: var(--shs-black); border-color: var(--shs-black); color: #fff; }
.ip-h { font-size: 13px; font-weight: 700; color: #4b5563; margin: 12px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.ip-slides { display: flex; flex-wrap: wrap; gap: 6px; }
.ip-slide { display: grid; gap: 1px; text-align: left; border: 1px solid #d9dde2; border-radius: 6px; background: #fafbfc; padding: 6px 10px; cursor: pointer; max-width: 300px; }
.ip-slide:hover, .ip-slide:focus-visible { border-color: #444; background: #fff; }
.ip-open { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 16px;
    }
.ip-open-l { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ip-open-h { display: grid; gap: 2px; }
.ip-open-h b { font-size: 15px; }
.ip-choices { display: grid; gap: 6px; }
.ip-choice { display: grid; gap: 1px; text-align: left; border: 1px solid #d9dde2; border-radius: 6px; background: #fafbfc; padding: 7px 10px; cursor: pointer; }
.ip-choice:hover, .ip-choice:focus-visible { border-color: #444; }
.ip-choice.on { border: 2px solid var(--shs-black); background: #fff; padding: 6px 9px; }
.ip-choice.ip-no { opacity: .6; }
.sc-tile .ip-used { margin-top: -7px; }
/* Uploading a video a TV may not play: said, in amber, before Upload anyway. */
.md-tv-warn { margin-top: 12px; padding: 9px 12px; border: 1px solid #e0b252; border-left-width: 4px; border-radius: 6px; background: #fff8e6; color: #3d2f00; font-size: 13px; display: grid; gap: 4px; }
.ip-open-acts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.ip-why { margin-right: auto; color: var(--shs-red-dark); }
.ip-open-r { min-width: 0; }
@media (max-width: 900px) { .ip-open { grid-template-columns: minmax(0, 1fr); } }

/* A channel's editor: name and comments on a line, then tabs. */
.ch-top { display: grid; grid-template-columns: auto 260px auto minmax(0, 380px); justify-content: start; gap: 8px 10px; align-items: center; margin-bottom: 12px; }
.ch-top label { margin: 0; font-weight: 600; font-size: 13.5px; }
.ch-tabs { display: flex; gap: 2px; border-bottom: 1px solid #d9dde2; margin-bottom: 12px; }
.ch-tabs button { border: 1px solid transparent; border-bottom: 0; background: none; color: #4b5563; padding: 7px 14px; border-radius: 6px 6px 0 0; font-size: 13.5px; cursor: pointer; margin-bottom: -1px; }
.ch-tabs button.on { background: #fff; border-color: #d9dde2; color: #111; font-weight: 600; box-shadow: inset 0 3px 0 var(--shs-red); }
.ch-grid { display: grid; grid-template-columns: max-content auto; gap: 10px 14px; align-items: center; justify-content: start; }
.ch-grid > label, .ch-grid > .form-label { margin: 0; font-size: 13.5px; }
.ch-grid .ch-sel { width: 240px; }
.ch-tick-h { font-size: 12px; font-weight: 700; color: #4b5563; text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 4px; }
.ch-tick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; border: 1px solid #e3e6eb; border-radius: 6px; padding: 6px 10px; margin-bottom: 4px; background: #fafbfc; }
.ch-tick label { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 0; cursor: pointer; font-size: 13.5px; }
.ch-tick.ch-off label { opacity: .7; }
.ch-tick.ch-refused { border-color: var(--shs-red); background: #fdf0f0; }
.ch-why { grid-column: 1 / -1; font-size: 12.5px; color: var(--shs-red-dark); }
.ch-rules .ch-why { display: block; }
.ch-gap { display: block; font-size: 12px; color: #7a4300; }
.ch-gap-row { background: #fff4e0; border: 1px solid #ecc283; border-radius: 6px; padding: 5px 10px; margin-bottom: 8px; font-size: 12.5px; }

/* A broadcast's page: what it is and who sees what on the left; the preview, then the checks, on the right. */
.bc-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); gap: 14px; align-items: stretch; }
/* Who sees what reaches down to the bottom of the preview beside it - further, when there's more in it (Steven, 2026-11-14:
   "it just looks not as good coming short of it"). */
.bc-left > .md-pane:last-child { flex: 1 1 auto; }
.bc-left, .bc-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: none; flex: none; }
.bc-left .md-pane, .bc-right .md-pane { margin: 0; }
@media (max-width: 1100px) { .bc-layout { grid-template-columns: minmax(0, 1fr); } }
.bc-grid { display: grid; grid-template-columns: max-content auto; gap: 10px 14px; align-items: center; justify-content: start; }
.bc-grid > label, .bc-grid > .form-label { margin: 0; font-size: 13.5px; font-weight: 600; }
.bc-line { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.bc-grid .bc-name { width: 260px; }
.bc-grid .bc-when, .bc-line .bc-when { width: 260px; }
.bc-line .money-edit { width: 124px; }
.bc-chan { font-size: 13px; border: 1px solid #d9dde2; border-radius: 99px; padding: 1px 10px; background: #fafbfc; }
.bc-who-h { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; }
.bc-seg { display: inline-flex; border: 1px solid #c9ced6; border-radius: 6px; overflow: hidden; }
.bc-seg button { border: 0; background: #fff; color: #222; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.bc-seg button + button { border-left: 1px solid #c9ced6; }
.bc-seg button.on { background: var(--shs-black); color: #fff; font-weight: 600; }
/* Sales-specific: a tab per team with its own list, Everyone else, + Team; the tab's list under them. */
.bc-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; border-bottom: 1px solid #d9dde2; margin-bottom: 8px; }
.bc-tab { border: 1px solid #d9dde2; border-bottom: 0; border-radius: 6px 6px 0 0; background: #f3f4f6; color: #374151; padding: 5px 12px; font-size: 13px;
    cursor: pointer; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.bc-tab.on { background: #fff; color: #111; font-weight: 600; border-color: #9aa1ab; border-bottom: 1px solid #fff; }
.bc-tab-else { font-style: italic; }
.bc-tab-n { font-size: 11px; font-weight: 400; font-style: normal; color: #6b7280; background: #e5e7eb; border-radius: 99px; padding: 0 6px; }
.bc-add { position: relative; align-self: center; margin-left: 6px; }
.bc-add-menu { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; display: grid; min-width: 170px; background: #fff; border: 1px solid #c9ced6;
    border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); padding: 4px; }
.bc-add-menu button { border: 0; background: none; text-align: left; padding: 5px 10px; border-radius: 4px; font-size: 13px; cursor: pointer; }
.bc-add-menu button:hover, .bc-add-menu button:focus-visible { background: #f3f4f6; }
.bc-list { display: grid; gap: 6px; }
.bc-list-h { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.bc-pv { margin-bottom: 10px; }
.bc-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bc-checks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 6px; font-size: 13px; padding: 4px 8px; border-radius: 5px; border: 1px solid #e3e6eb; }
.bc-checks li > span { font-weight: 800; text-align: center; }
.bc-checks .bc-ck-ok { background: #edf7ef; border-color: #a6d4b1; }
.bc-checks .bc-ck-ok > span { color: #1d6b35; }
.bc-checks .bc-ck-no { background: #fdf0f0; border-color: var(--shs-red); }
.bc-checks .bc-ck-no > span { color: var(--shs-red-dark); }
.bc-checks .bc-ck-warn { background: #fff4e0; border-color: #ecc283; }
.bc-checks .bc-ck-warn > span { color: #7a4300; }
.bc-checks .bc-ck-note > span { color: #6b7280; }

/* A list's preview (Tv/ListPreview): the TV's stage, 16:9, a big Play over it while it isn't playing. */
.lp { display: grid; gap: 6px; }
.lp-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.lp-theme, .lp-theme > .ti-root { position: absolute; inset: 0; }
.lp-theme .db-host { min-height: 0; }
.lp-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: rgba(0, 0, 0, .25); cursor: pointer; }
.lp-play span { width: 72px; height: 72px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 28px; display: grid; place-items: center; padding-left: 5px; }
.lp-play:hover span { background: var(--shs-red); }
.lp-now { margin-top: 4px; }
.lp-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Its buttons, and the timeline of its items - the one up lit, the playhead over them; click one to play from it. */
.lp-bar { margin-top: 6px; }
.lp-tl { position: relative; display: flex; gap: 2px; margin-top: 6px; }
.lp-seg { flex: 1 1 0; min-width: 0; border: 1px solid #c9ced6; border-radius: 3px; background: #f3f4f6; color: #374151; font-size: 11.5px;
    padding: 3px 6px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.lp-seg:hover, .lp-seg:focus-visible { border-color: #444; }
.lp-seg.on { background: var(--shs-black); border-color: var(--shs-black); color: #fff; }
.lp-ph { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--shs-red); pointer-events: none;
    transition: left .2s linear; }
/* An item that picks at random: its videos over the top of the screen - click one to play with it. */
.lp-picks { position: absolute; left: 0; right: 0; top: 0; display: grid; gap: 4px; padding: 8px 10px; background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,0)); }
.lp-pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lp-pick-h { color: #fff; font-size: 12px; margin-right: 2px; text-shadow: 0 1px 2px #000; }
.lp-pick { width: 72px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid rgba(255,255,255,.7); border-radius: 3px; overflow: hidden; background: #222;
    color: #fff; font-size: 10px; cursor: pointer; }
.lp-pick:hover, .lp-pick:focus-visible { border-color: var(--shs-red); }
.lp-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ti-root { position: relative; width: 100%; height: 100%; }
.bl-items { font-size: 13px; }

/* MAKING A STUDIO ANIMATION'S TV VERSION (StudioRenderWorker): a quiet chip in the header, with its %. */
.srw { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid #d5dbe5; border-radius: 999px;
    background: #f7f9fc; color: #3b4452; font-size: 12.5px; white-space: nowrap; }
.srw-spin { width: 12px; height: 12px; border: 2px solid #c9d1dd; border-top-color: #3b4452; border-radius: 50%; animation: srw-turn .9s linear infinite; }
@keyframes srw-turn { to { transform: rotate(360deg); } }
.md-tv { white-space: nowrap; }
.md-tv-ready { color: #1f6f43; }
.md-tv-making { font-weight: 600; }
.md-tv-wait { font-weight: 600; color: #8a4b00; }
/* Its heading's ⓘ (TvVersionInfo): small, beside the words; its popup, a short key. */
.md-tv-h { white-space: nowrap; }
.md-tv-h .md-tv-info { width: 22px; height: 22px; vertical-align: middle; margin-left: 2px; text-transform: none; }
.cp-pop.md-tv-pop { width: 330px; font-weight: normal; text-transform: none; letter-spacing: normal; }
.md-tv-pop p { margin: 0 0 8px; }
.md-tv-key { display: grid; grid-template-columns: max-content 1fr; gap: 4px 10px; margin: 0; }
.md-tv-key dt { font-weight: 600; }
.md-tv-key dd { margin: 0; }
/* A choice whose TV version isn't ready yet (ItemPicker): said under its name. */
.ip-choice .ip-tv { font-weight: 600; color: #8a4b00; }

/* ===== SYSTEM SETTINGS → THEME (2026-11-15): the menu logo, the menu colours, and Statisphere's palette.
   The preview box wears the chosen menu colour, so the logo is judged against what it will actually sit on. ===== */
.gn-logo-row { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.gn-logo-preview { display: flex; align-items: center; justify-content: center; width: 224px; height: 64px;
    background: var(--shs-grey-dark); border-radius: 6px; }
.gn-logo-preview img { max-width: 128px; max-height: 44px; }
.gn-logo-actions { display: flex; flex-direction: column; gap: 10px; }
.gn-colour-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.gn-colour { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--sp-line); border-radius: 6px; background: #fff; cursor: pointer; }
.gn-colour-hex { width: 110px; font-family: ui-monospace, Consolas, monospace; }
.gn-colour-label { width: 90px; font-size: 13.5px; font-weight: 600; color: var(--sp-ink); }

/* The palette dropdown on each colour (PerformanceFinance.Kpi's Settings > Colours): one button showing the colour
   now, which opens the palette - each brand colour across its tint strengths - plus any other colour and a way back
   to the app's own. Core.Platform.Appearance.BrandPalette holds the colours and derives the tints. */
.col-pickwrap { position: relative; display: inline-block; }
.col-choose { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--sp-line); background: #fff;
    border-radius: 8px; padding: 5px 9px; min-width: 190px; cursor: pointer; font-size: 13.5px; }
.col-choose:hover:not(:disabled) { border-color: #999; }
.col-choose:disabled { opacity: .6; cursor: default; }
.col-choose i { width: 26px; height: 22px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, .14); flex: none; }
.col-choose span { flex: 1; text-align: left; white-space: nowrap; }
.col-choose b { color: #888; font-size: 11px; }

.col-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; background: #fff; border: 1px solid #d0d0d0;
    border-radius: 10px; padding: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); }
.col-pop-row { display: grid; grid-template-columns: 112px repeat(6, 28px); gap: 4px; align-items: center; margin-bottom: 4px; }
.col-pop-name { font-size: 12px; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-chip { width: 28px; height: 22px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, .12); padding: 0; cursor: pointer; }
.col-chip.col-on { outline: 2px solid #1a1a1a; outline-offset: 1px; }
.col-pop-tints span { font-size: 10.5px; color: #888; text-align: center; }
.col-pop-foot { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding-top: 8px;
    border-top: 1px solid #eee; font-size: 12.5px; white-space: nowrap; }
.col-pop-foot input[type=color] { width: 34px; height: 26px; padding: 1px; vertical-align: middle; cursor: pointer; }
.col-today { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer;
    font-size: 12.5px; color: var(--sp-ink); }
.col-today i { width: 18px; height: 16px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .14); }
/* Catches a click anywhere else, so the dropdown shuts. */
.col-backdrop { position: fixed; inset: 0; z-index: 20; }

/* The background picker (Web/Components/Tv/BackgroundPicker.razor), on a channel and on a slide: what kind, then
   whichever extra control that kind needs - a colour, or which image or video. */
.bg-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bg-pick .bg-kind { max-width: 230px; }
.bg-pick .bg-media { max-width: 260px; }
/* The "what does this mean" button, and its popover - which floats OVER the dialog rather than pushing it open. */
.bg-info-wrap { position: relative; display: inline-flex; }
.bg-info { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1px solid var(--sp-line);
    background: transparent; color: var(--sp-ink); font-size: 12px; font-weight: 700; font-family: Georgia, serif;
    font-style: italic; line-height: 1; cursor: pointer; padding: 0; display: inline-flex;
    align-items: center; justify-content: center; }
/* Never filled or coloured in - it is a quiet "i", open or shut (Steven, 2026-11-16). */
.bg-info:hover { border-color: #999; }
.bg-info-pop { position: absolute; z-index: 40; top: calc(100% + 8px); left: -8px; width: 330px;
    background: #fff; border: 1px solid #d0d0d0; border-radius: 8px; padding: 10px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16); font-size: 12.5px; line-height: 1.45; color: var(--sp-ink);
    font-weight: 400; font-style: normal; text-align: left; white-space: normal; }

/* Categories: adding one in the Categories dialog, and the way back to it from a clip's picker (2026-11-16). */
.fx-cat-add { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.fx-cat-add .edit-input { max-width: 260px; }
.cp-pop-foot { border-top: 1px solid #eee; padding: 8px 10px; text-align: right; }
.cp-manage { border: 0; background: none; padding: 0; cursor: pointer; font-size: 12.5px; color: var(--stat-blue-deep); }
.cp-manage:hover { text-decoration: underline; }
.bg-choose { min-width: 200px; }
.sc-tile.sc-on { outline: 2px solid var(--sp-focus); outline-offset: 2px; }
.bg-cat { max-width: 200px; }

/* What a media tile is doing, over a picture it already has (MediaPicture). */
.md-pic-busy { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: 11px;
    background: rgba(16, 41, 70, .82); color: #fff; text-align: center; }

/* SYSTEM SETTINGS → SALES DATA (Steven, 2026-11-17): the shape of sales reporting. Radio rows with a hint under each,
   and a preview of the tabs an administrator will be left with. */
.ss-note { margin: 8px 0 0; }
.ss-sub { margin: 12px 0 0 18px; padding-left: 14px; border-left: 2px solid var(--sp-line); }
.ss-sub .form-field { margin-bottom: 6px; }
/* In line with the other settings screens (Steven, 2026-11-17): 14px, as the app's own text, not the 13.5px a hint
   is set in - these are choices to read, not notes. */
.ss-radio { display: flex; align-items: flex-start; gap: 9px; margin: 8px 0; font-size: 14px; cursor: pointer; }
.ss-radio input { margin: 3px 0 0; flex: none; }
.ss-radio.ss-off { opacity: .5; cursor: default; }
.ss-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.ss-pill { font-size: 12.5px; padding: 4px 11px; border-radius: 13px; background: var(--sp-soft); color: var(--sp-ink);
    border: 1px solid var(--sp-line); font-weight: 600; }
.ss-avail-row { display: flex; gap: 9px; align-items: flex-start; padding: 4px 0; font-size: 13.5px; }
.ss-avail-row.ss-off { color: #8a8f9a; }
.ss-tick { flex: none; width: 15px; font-weight: 700; color: #2d5c2d; }
.ss-avail-row.ss-off .ss-tick { color: #b6bac4; }
.ss-setup .form-check-label, .ss-setup .form-switch span { font-size: 14px; }
/* Each question is its own block, with air between them and a hairline so the eye finds the breaks (Steven,
   2026-11-17: "a little spacing between sections"). */
.ss-q { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--sp-line); }
.ss-q:last-of-type { border-bottom: 0; }
.ss-q .acct-h { margin-bottom: 10px; }
.ss-foot { margin: 4px 0 0; font-size: 13px; color: #5f5e5a; }
.ss-save { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--sp-line); display: flex; align-items: center; gap: 12px; }
.sp-src { font-size: 12.5px; background: var(--sp-soft); padding: 2px 7px; border-radius: 4px; color: var(--sp-ink); }

/* SYSTEM SETTINGS -> DATA SOURCES (Steven, 2026-11-17): where the figures come from, one card per source with a plug
   showing its health and a dialog behind it. Only one source drives the figures (Core.Sources.SalesSources). */
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); gap: 14px; margin-top: 12px; }
.ds-card { display: flex; flex-direction: column; min-height: 150px; padding: 14px 16px; border: 1px solid var(--sp-line); border-radius: 10px; background: #fff; }
.ds-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; min-height: 24px; }
.ds-name { font-size: 15px; font-weight: 700; color: var(--sp-ink); }
.ds-plug { width: 12px; height: 12px; border-radius: 50%; background: #c8c8c8; flex: none; }
.ds-plug.on { background: #198754; }
.ds-plug.off { background: #6c757d; }
.ds-plug.warn { background: #ffc107; }
.ds-desc { flex: 1 1 auto; margin: 0 0 12px; font-size: 13px; line-height: 1.4; color: #5f5e5a; }
.ds-btn {
    width: 100%; height: 36px; margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: #fff;
}
.ds-btn-connect { background: var(--sp-ink); }
.ds-btn-on { background: #198754; }
.ds-btn-off { background: #6c757d; }
.ds-btn-warn { background: #fff3cd; color: #8a6d00; }
.ds-btn:hover:not(:disabled) { filter: brightness(1.12); }
.ds-pair { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 0 12px; }
.ds-check { display: block; margin: 4px 0; font-size: 13.5px; }
.ds-check input { margin-right: 6px; }
.ds-query { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--sp-line); }
.ds-sql { width: 100%; box-sizing: border-box; font-family: ui-monospace, Consolas, monospace; font-size: 13px; resize: vertical; }
.ds-query-error { margin: 8px 0 0; font-size: 13px; }
.ds-result { max-height: 320px; overflow: auto; margin-top: 8px; border: 1px solid var(--sp-line); border-radius: 6px; }
.ds-result .sp-grid { font-size: 12px; font-family: ui-monospace, Consolas, monospace; }
.ds-result .sp-grid td { padding: 4px 8px; white-space: nowrap; }
.ds-null { color: #9a9a96; font-style: italic; }
.ds-h { font-size: 14px; color: var(--sp-ink); margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--sp-line); }
.ds-active { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 11px; background: #e6f2ec; color: #216047; }

/* TV → DISPLAYS: the address somebody reads off this screen and types on a TV remote, so it is bigger than the
   ordinary note it sits in (Steven, 2026-11-17: "show it in a larger font on the TV page so people can read it"). */
.tv-addr { font-size: 15px; color: var(--sp-ink); }
.tv-addr b { font-size: 19px; font-weight: 600; letter-spacing: .01em; }

/* CHOOSE A BACKGROUND: an animation whose TV version isn't made yet is still listed, dimmed, and says so - it is not
   hidden from a list somebody can see it in elsewhere (Steven, 2026-11-17). */
.sc-tile.sc-waiting .sc-pic { opacity: .45; }
.sc-tile.sc-waiting .sc-cap { color: #6c757d; }
.sc-notready { color: var(--sp-danger); font-weight: 600; }
