/* ═══════════════════════════════════════════════════════════════════════
   Dashboard section revamp (Oct 2026) — the sections keep their exact
   positions and sizes, but the aesthetic INSIDE each section is redesigned.
   Loaded after style.css so it wins by cascade.

   Design language: "studio console" — confident dark instrument panels.
   Uppercase micro-labels, tabular numerals, hairline borders, inset track
   surfaces, accent green used as signal colour only. No glow-as-decoration,
   no geometric background.

   Layout contract (do not touch): .dash-layout grid, .dash-hero grid,
   rail-card widths, .dash-side column width, article footprints — every
   section sits exactly where it was.

   What it does NOT change: every JS-referenced hook stays put —
   worker-orbs.js anchors (.orb-stage, orb containers/buttons/tooltips),
   the tour's live ids, and all data-testid hooks. .orb-stage never gets a
   stacking context (no transform/filter/opacity) — the orb contract.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. HERO — the command greeting ──────────────────────────────────── */
/* The greeting becomes a two-line display: the moment small above, the name
   huge below. The stats become readout modules — label ABOVE the number, on
   inset tracks. The library bar becomes a console strip with a solid scan
   button. */

#dashboard-page .dash-hero-main {
    gap: 18px;
}

/* Date eyebrow — now a status chip with a live dot. */
#dashboard-page .dash-hero-eyebrow {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(var(--text-bright-rgb), 0.6);
    border: 1px solid var(--white-a10);
    background: var(--black-a30);
    border-radius: var(--radius-pill);
    padding: 6px 14px 6px 11px;
}
#dashboard-page .dash-hero-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: var(--radius-circle);
    background: rgb(var(--accent-rgb));
    flex: none;
}

/* Two-line display greeting: moment small, name enormous. */
#dashboard-page .dash-hero .hello-greeting {
    font-size: clamp(15px, 1.6vw, 17px);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    color: rgba(var(--text-bright-rgb), 0.52);
}
#dashboard-page .dash-hero .hello-greeting > span {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: inherit;
    animation: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
#dashboard-page .hello-greet-lead {
    display: block;
    font-weight: 600;
    color: rgba(var(--text-bright-rgb), 0.52);
    font-size: clamp(14px, 1.5vw, 16px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
#dashboard-page .hello-greet-name {
    display: block;
    color: #ffffff;
    font-size: clamp(38px, 4.6vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.02;
    text-transform: none;
    text-wrap: balance;
}

/* Stats as readout modules: micro label above a display numeral, each on
   an inset track. The divided band is gone. */
#dashboard-page .dash-hero-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
#dashboard-page .dash-hero-number {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 118px;
    border-radius: var(--radius-card);
}
#dashboard-page .dash-hero-number + .dash-hero-number::before {
    content: none;
}
#dashboard-page .dash-hero-number:first-child {
    padding-left: 20px;
}
#dashboard-page .dash-hero-number:last-child {
    padding-right: 20px;
}
#dashboard-page .dash-hero-number-label {
    order: -1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(var(--text-bright-rgb), 0.42);
}
#dashboard-page .dash-hero-number-value {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: #fff;
    line-height: 1;
}
#dashboard-page .dash-hero-number:hover .dash-hero-number-value {
    color: rgb(var(--accent-light-rgb));
}

/* The library console strip: inset track, ringed status dot, the scan
   action as a SOLID button — the primary control on the page. */
#dashboard-page .dash-hero-library .library-status-header {
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    border-radius: var(--radius-xl);
}
#dashboard-page .dash-hero-library .library-status-info {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}
#dashboard-page .dash-hero-library .library-status-dot {
    width: 10px;
    height: 10px;
    flex: none;
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
}
#dashboard-page .dash-hero-library .library-status-title {
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
#dashboard-page .dash-hero-library .library-status-subtitle {
    font-size: 12.5px;
    color: rgba(var(--text-bright-rgb), 0.58);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
    min-width: 0;
}
#dashboard-page .dash-hero-library .library-status-actions {
    order: 2;
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
#dashboard-page .dash-hero-library .library-status-btn {
    min-height: 40px;
    padding: 0 18px;
    font-size: 12.5px;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid rgba(var(--accent-rgb), 0.5);
    border-radius: var(--radius-pill);
    color: rgb(var(--accent-light-rgb));
    background: rgba(var(--accent-rgb), 0.1);
    transition: background var(--dur-quick) ease, border-color var(--dur-quick) ease, color var(--dur-quick) ease, transform var(--dur-quick) ease;
}
#dashboard-page .dash-hero-library .library-status-btn:hover {
    background: rgba(var(--accent-rgb), 0.2);
    border-color: rgba(var(--accent-rgb), 0.85);
    color: #fff;
}
#dashboard-page .dash-hero-library .library-status-btn:active {
    transform: scale(0.97);
}
#dashboard-page .dash-hero-library .library-status-btn.scanning {
    background: rgba(240, 179, 90, 0.92);
    border-color: transparent;
    color: #1c1005;
}
#dashboard-page .library-status-more {
    width: 40px;
    min-height: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--white-a10);
    background: var(--white-a04);
    color: rgba(var(--text-bright-rgb), 0.7);
    transition: background var(--dur-quick) ease, border-color var(--dur-quick) ease;
}
#dashboard-page .library-status-more:hover {
    background: var(--white-a09);
    border-color: var(--white-a20);
    color: #fff;
}

/* ── 2. ORB CARD — uncontained ─────────────────────────────────────────── */
/* The orbs themselves are untouched (JS contract). The container is
   invisible — no border, no background — so the orbs float uncontained
   in the header. Manage Workers becomes a quiet centered pill; the
   status readout stays as floating micro text. */

#dashboard-page .orb-stage {
    /* No transform / filter / opacity here — the orb canvas contract. */
    border: 0;
    background: none;
    padding: 30px 18px 40px;
}
/* Panel label removed — it only made sense on a visible container. */
#dashboard-page .orb-stage::before {
    display: none;
}
#dashboard-page .orb-stage .em-manage-btn {
    flex-basis: auto;
    width: auto;
    max-width: none;
    margin: 16px auto 0;
    padding: 0 26px;
    min-height: 40px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--white-a12);
    background: var(--white-a04);
    justify-content: center;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: rgba(var(--text-bright-rgb), 0.85);
    transition: background var(--dur-quick) ease, border-color var(--dur-quick) ease;
}
#dashboard-page .orb-stage .em-manage-btn:hover {
    background: rgba(var(--accent-rgb), 0.14);
    border-color: rgba(var(--accent-rgb), 0.4);
    color: #fff;
}
/* Status readout, bottom-left: micro label with a larger signal dot. */
#dashboard-page .orb-stage-caption {
    left: 18px;
    bottom: 13px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(var(--text-bright-rgb), 0.45);
    gap: 8px;
}
#dashboard-page .orb-stage-dot {
    width: 8px;
    height: 8px;
}

/* ── 2b. WEEKLY DIGEST — full-width mini banner ─────────────────────── */
/* This-week listening stats. Renders nothing until plays exist. */
#dashboard-page .weekly-digest {
    padding: 20px 24px 18px;
    border-radius: 20px;
    border: 1px solid var(--white-a08);
    background:
        radial-gradient(120% 160% at 8% 0%, rgba(var(--accent-rgb), 0.1) 0%, rgba(0, 0, 0, 0) 55%),
        rgba(0, 0, 0, 0.42);
}
#dashboard-page .wd-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}
#dashboard-page .wd-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgb(var(--accent-light-rgb));
}
#dashboard-page .wd-range {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.42);
}
#dashboard-page .wd-link {
    margin-left: auto;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--white-a55);
    cursor: pointer;
}
#dashboard-page .wd-link:hover {
    color: #fff;
}
#dashboard-page .wd-body {
    display: flex;
    align-items: stretch;
    gap: 28px;
}
#dashboard-page .wd-stats {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 36px;
    align-items: center;
}
#dashboard-page .wd-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
#dashboard-page .wd-num {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
    white-space: nowrap;
}
#dashboard-page .wd-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
}
#dashboard-page .wd-chart {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding-left: 28px;
    border-left: 1px solid var(--white-a08);
}
#dashboard-page .wd-bar-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    width: 22px;
}
#dashboard-page .wd-bar {
    width: 100%;
    min-height: 6px;
    border-radius: var(--radius-sm);
    background: linear-gradient(to top, rgba(var(--accent-rgb), 0.45), rgb(var(--accent-light-rgb)));
}
#dashboard-page .wd-day {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white-a35);
}
@media (max-width: 760px) {
    #dashboard-page .wd-body {
        flex-direction: column;
    }
    #dashboard-page .wd-chart {
        padding-left: 0;
        border-left: none;
        padding-top: 16px;
        border-top: 1px solid var(--white-a08);
    }
}

/* ── 3. LISTEN BAND — the station deck ──────────────────────────────── */
/* Library Radio is a living station: spinning vinyl, dancing EQ, glowing
   transport button. Your Mixes is a real card: kicker, title, and the
   three genuine mix categories as rows. All motion is gated on the
   reduce-effects / max-performance toggles + prefers-reduced-motion. */

#dashboard-page .listen-band {
    display: grid;
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}
/* Radio hero: the station deck. */
#dashboard-page .listen-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 20px;
    border: 1px solid var(--white-a09);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
        linear-gradient(180deg, #0e1512, #090c0a);
    box-shadow: 0 16px 40px var(--black-a40);
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    min-width: 0;
    transition: border-color var(--dur-base) ease, transform var(--dur-base) ease;
}
#dashboard-page .listen-hero:hover {
    border-color: rgba(var(--accent-rgb), 0.45);
    transform: translateY(-2px);
}
/* Vinyl: grooved disc with an accent label, slow spin. */
#dashboard-page .listen-vinyl {
    position: relative;
    flex: none;
    width: 66px;
    height: 66px;
    border-radius: var(--radius-circle);
    background:
        radial-gradient(circle at 50% 50%, rgb(var(--accent-rgb)) 0 15%, #0a0c0a 15.5% 21%, transparent 21.5%),
        repeating-radial-gradient(circle at 50% 50%, #16191b 0 2px, #0b0d0e 2px 4px);
    box-shadow:
        0 10px 26px var(--black-a50),
        inset 0 0 0 1px var(--white-a07);
    animation: dash-vinyl-spin 26s linear infinite;
}
#dashboard-page .listen-vinyl::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    border-radius: var(--radius-circle);
    background: #05070a;
    box-shadow: 0 0 0 3px var(--black-a55);
}
@keyframes dash-vinyl-spin {
    to { transform: rotate(360deg); }
}
/* Kicker with a dancing EQ as the live indicator. */
#dashboard-page .listen-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgb(var(--accent-light-rgb));
    margin-bottom: 7px;
}
#dashboard-page .listen-kicker--muted {
    color: rgba(var(--text-bright-rgb), 0.45);
}
#dashboard-page .listen-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 12px;
}
#dashboard-page .listen-eq i {
    width: 3px;
    border-radius: 2px;
    background: rgb(var(--accent-light-rgb));
    transform-origin: bottom;
    animation: dash-eq-bounce 1.1s ease-in-out infinite;
}
#dashboard-page .listen-eq i:nth-child(1) { height: 60%; animation-delay: 0s; }
#dashboard-page .listen-eq i:nth-child(2) { height: 100%; animation-delay: 0.18s; }
#dashboard-page .listen-eq i:nth-child(3) { height: 45%; animation-delay: 0.36s; }
#dashboard-page .listen-eq i:nth-child(4) { height: 80%; animation-delay: 0.1s; }
#dashboard-page .listen-eq i:nth-child(5) { height: 55%; animation-delay: 0.28s; }
@keyframes dash-eq-bounce {
    0%, 100% { transform: scaleY(0.35); }
    50% { transform: scaleY(1); }
}
#dashboard-page .listen-hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    min-width: 0;
}
#dashboard-page .listen-hero-text strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
#dashboard-page .listen-hero-text > span:last-child {
    font-size: 12px;
    color: rgba(var(--text-bright-rgb), 0.6);
    line-height: 1.35;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Transport button: glowing, with a sonar ping. */
#dashboard-page .listen-hero-play {
    position: relative;
    flex: none;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding-left: 3px;
    border-radius: var(--radius-circle);
    background: rgb(var(--accent-rgb));
    color: #06130b;
    box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.35);
    transition: transform var(--dur-quick) ease, background var(--dur-quick) ease;
}
#dashboard-page .listen-hero:hover .listen-hero-play {
    background: rgb(var(--accent-light-rgb));
    transform: scale(1.06);
}
#dashboard-page .listen-hero-play::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: var(--radius-circle);
    border: 2px solid rgba(var(--accent-rgb), 0.5);
    animation: dash-play-ping 2.2s ease-out infinite;
    pointer-events: none;
}
@keyframes dash-play-ping {
    0% { transform: scale(0.85); opacity: 0.9; }
    70%, 100% { transform: scale(1.28); opacity: 0; }
}
/* Mixes tile: kicker, title, and the three real mix categories. */
#dashboard-page .listen-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 22px 66px 22px 24px;
    border-radius: 20px;
    border: 1px solid var(--white-a09);
    background:
        linear-gradient(180deg, var(--white-a04), rgba(255, 255, 255, 0.008)),
        linear-gradient(180deg, #101312, #0a0c0b);
    box-shadow: 0 16px 40px var(--black-a40);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: border-color var(--dur-base) ease, transform var(--dur-base) ease;
}
#dashboard-page .listen-tile:hover {
    border-color: var(--white-a18);
    transform: translateY(-2px);
}
#dashboard-page .listen-tile-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #fff;
}
#dashboard-page .listen-mixrows {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 8px;
}
#dashboard-page .listen-mixrow {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 2px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(var(--text-bright-rgb), 0.72);
    border-top: 1px solid var(--white-a06);
}
#dashboard-page .listen-mixrow i {
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: var(--radius-circle);
    background: rgb(var(--accent-rgb));
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6);
}
#dashboard-page .listen-tile-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-circle);
    border: 1px solid var(--white-a14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(var(--text-bright-rgb), 0.7);
    transition: background var(--dur-quick) ease, border-color var(--dur-quick) ease, color var(--dur-quick) ease;
}
#dashboard-page .listen-tile:hover .listen-tile-arrow {
    background: rgba(var(--accent-rgb), 0.16);
    border-color: rgba(var(--accent-rgb), 0.45);
    color: #fff;
}

/* ── 3b. DISCOVER MIXES IN DASHBOARD ───────────────────────────────── */
#dashboard-page .listen-mixes-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#dashboard-page .listen-mixes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

#dashboard-page .listen-mixes-grid .dsc-quick-tile {
    height: 64px;
}

#dashboard-page .listen-mixes-grid .dsc-quick-tile--flow {
    grid-column: span 2;
}

/* Skeletons while mixes are loading */
.dsc-quick-tile--skeleton {
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 12px;
}
.dsc-quick-tile--skeleton .dsc-quick-art {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    animation: dash-pulse-fade 1.6s ease-in-out infinite alternate;
}
.dsc-quick-skeleton-bar {
    width: 55%;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    animation: dash-pulse-fade 1.6s ease-in-out infinite alternate;
}
@keyframes dash-pulse-fade {
    0% { opacity: 0.4; }
    100% { opacity: 0.85; }
}

@media (max-width: 1350px) and (min-width: 1025px) {
    #dashboard-page .listen-band {
        grid-template-columns: 310px minmax(0, 1fr);
        gap: 10px;
    }
    #dashboard-page .listen-mixes-grid {
        gap: 8px;
    }
    #dashboard-page .listen-mixes-grid .dsc-quick-name {
        font-size: 0.84rem;
    }
    #dashboard-page .listen-hero {
        padding: 16px 18px;
        gap: 14px;
    }
    #dashboard-page .listen-vinyl {
        width: 58px;
        height: 58px;
    }
    #dashboard-page .listen-hero-play {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    #dashboard-page .listen-band {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    #dashboard-page .listen-mixes-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    #dashboard-page .listen-mixes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    #dashboard-page .listen-mixes-grid .dsc-quick-tile {
        height: 56px;
    }
    #dashboard-page .listen-mixes-grid .dsc-quick-art {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
    }
    #dashboard-page .listen-mixes-grid .dsc-quick-name {
        font-size: 0.82rem;
    }
    #dashboard-page .listen-mixes-grid .dsc-quick-open {
        padding-right: 8px;
        gap: 10px;
    }
    #dashboard-page .listen-mixes-grid .dsc-quick-tile:not(.dsc-quick-tile--flow) .dsc-quick-play {
        display: none;
    }
}

@media (max-width: 480px) {
    #dashboard-page .listen-mixes-grid {
        gap: 6px;
    }
    #dashboard-page .listen-mixes-grid .dsc-quick-tile {
        height: 52px;
        border-radius: var(--radius-sm, 8px);
    }
    #dashboard-page .listen-mixes-grid .dsc-quick-art {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
    }
    #dashboard-page .listen-mixes-grid .dsc-quick-name {
        font-size: 0.78rem;
    }
    #dashboard-page .listen-mixes-grid .dsc-quick-tile--flow {
        padding: 0 50px 0 10px;
        gap: 10px;
    }
    #dashboard-page .listen-mixes-grid .dsc-flow-orb {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
    }
    #dashboard-page .listen-mixes-grid .dsc-quick-tile--flow .dsc-quick-name {
        font-size: 0.86rem;
    }
    #dashboard-page .listen-mixes-grid .dsc-quick-tile--flow .dsc-quick-sub {
        font-size: 0.72rem;
    }
    #dashboard-page .listen-mixes-grid .dsc-quick-tile--flow .dsc-quick-play {
        width: 32px;
        height: 32px;
        right: 8px;
    }
}

/* Motion kill switch for the station deck. */
body.reduce-effects #dashboard-page .listen-vinyl,
body.max-performance #dashboard-page .listen-vinyl,
body.reduce-effects #dashboard-page .listen-eq i,
body.max-performance #dashboard-page .listen-eq i,
body.reduce-effects #dashboard-page .listen-hero-play::after,
body.max-performance #dashboard-page .listen-hero-play::after {
    animation: none;
}
@media (prefers-reduced-motion: reduce) {
    #dashboard-page .listen-vinyl,
    #dashboard-page .listen-eq i,
    #dashboard-page .listen-hero-play::after {
        animation: none;
    }
}

/* ── 4. RAILS — sleeve tiles under a masthead ─────────────────────────── */
/* The rail header becomes a masthead: oversized title, count as an accent
   chip, underline tabs instead of the segmented pill. The cards become
   sleeve tiles — their own surface, framed artwork, metadata as micro
   lines inside the tile. */

#dashboard-page .dash-rail-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 0 4px 14px;
    border-bottom: 1px solid var(--white-a08);
}
#dashboard-page .dash-rail-titleblock {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
#dashboard-page .dash-rail-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #fff;
    line-height: 1.05;
}
#dashboard-page .dash-rail-count {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #06130b;
    background: rgb(var(--accent-rgb));
    border-radius: var(--radius-pill);
    padding: 4px 11px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#dashboard-page .dash-rail-titlelink {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    text-align: left;
}
#dashboard-page .dash-rail-titlelink:hover {
    color: rgb(var(--accent-light-rgb));
    text-decoration: none;
}
#dashboard-page .dash-rail-titlelink:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.7);
    outline-offset: 4px;
    border-radius: var(--radius-xs);
}
#dashboard-page .dash-rail-subtitle {
    font-size: 12.5px;
    color: rgba(var(--text-bright-rgb), 0.48);
    line-height: 1.45;
}

/* Underline tabs — the segmented pill is gone. */
#dashboard-page .dash-band-tabs {
    flex: none;
    display: flex;
    gap: 20px;
    padding: 0 2px;
    border-radius: 0;
    border: none;
    background: none;
    box-shadow: none;
}
#dashboard-page .dash-band-tab {
    appearance: none;
    border: none;
    background: none;
    margin: 0;
    padding: 8px 2px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: rgba(var(--text-bright-rgb), 0.5);
    cursor: pointer;
    transition: color var(--dur-quick) ease, border-color var(--dur-quick) ease;
    text-decoration: none;
}
#dashboard-page .dash-band-tab:hover {
    color: rgba(var(--text-bright-rgb), 0.9);
}
#dashboard-page .dash-band-tab.active {
    background: none;
    color: #fff;
    border-bottom-color: rgb(var(--accent-rgb));
    box-shadow: none;
}
#dashboard-page .dash-band-tab:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.7);
    outline-offset: 2px;
}

/* Rail cards in the confident product language (the reference): no chrome
   at all. Artwork floats directly on the background; title / artist /
   meta stack below in quiet sans. The art does all the talking. */
#dashboard-page .dash-rail {
    gap: 22px;
    padding: 6px 4px 14px;
}
#dashboard-page .dash-rail .dash-rail-card {
    width: 168px;
    flex: none;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 0;
}
#dashboard-page .dash-rail .dash-rail-card:hover {
    transform: none;
    border: 0;
    background: none;
    box-shadow: none;
}
#dashboard-page .dash-rail-card .ya-card-img {
    position: relative;
    inset: auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
    flex: none;
    background: var(--white-a05);
    box-shadow: 0 8px 24px var(--black-a35);
}
#dashboard-page .dash-rail-card .ya-card-img::after {
    display: none;
}
#dashboard-page .dash-rail-card .ya-card-img img {
    transition: transform var(--dur-slow) ease;
}
#dashboard-page .dash-rail-card:hover .ya-card-img img {
    transform: scale(1.03);
}
#dashboard-page .dash-rail-card .ya-card-gradient {
    display: none;
}
#dashboard-page .dash-rail-card .ya-card-info {
    position: static;
    padding: 0 2px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: auto;
}
#dashboard-page .dash-rail-card .ya-card-name {
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: #fff;
    text-shadow: none;
}
#dashboard-page .dash-rail-card .ya-card-sub {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--white-a55);
}
#dashboard-page .dash-rail-card .ya-card-sub--link:hover {
    color: #fff;
    text-decoration: underline;
}
/* Foot meta: small quiet gray, no caps, no rules, no dots. */
#dashboard-page .dash-rail-badge {
    order: 5;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--white-a35);
    margin-top: 6px;
    padding-top: 0;
    border-top: 0;
}
#dashboard-page .dash-rail-caption {
    position: static;
    order: 6;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    padding: 0 2px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--white-a35);
    background: none;
    border: none;
}
#dashboard-page .dash-rail-caption::before {
    display: none;
}
#dashboard-page .dash-rail-card .ya-card-badges {
    top: 10px;
    left: 10px;
}

/* ── 5. RIGHT COLUMN — monitor panels ────────────────────────────────── */
/* Layout skeleton untouched (376px column). The cards become flat monitor
   panels with ruled headers; the sync health becomes a meter with tick
   marks; rows become ledger entries; Up next rows become mini-panels; the
   tiles become counter modules. */

#dashboard-page .dash-layout {
    grid-template-columns: minmax(0, 1fr) 376px;
    gap: 32px;
}
#dashboard-page .dash-main {
    gap: 30px;
}
#dashboard-page .dash-side {
    gap: 20px;
}
#dashboard-page .dash-side-card {
    padding: 22px 22px 20px;
    border-radius: var(--radius-xl);
}
#dashboard-page .dash-side-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--white-a08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
#dashboard-page .dash-side-title {
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(var(--text-bright-rgb), 0.75);
}
#dashboard-page .dash-side-link {
    font-size: 12.5px;
    font-weight: 650;
    color: rgb(var(--accent-light-rgb));
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Sync health as a meter: display numeral, ticked track, hard-edged fill. */
#dashboard-page .dash-sync-health {
    gap: 10px;
    margin-bottom: 16px;
}
#dashboard-page .dash-sync-health-line {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#dashboard-page .dash-sync-pct {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #fff;
}
#dashboard-page .dash-sync-of {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(var(--text-bright-rgb), 0.45);
    max-width: none;
}
#dashboard-page .dash-sync-bar {
    height: 10px;
    border-radius: 5px;
    background:
        repeating-linear-gradient(90deg, var(--white-a16) 0 1px, transparent 1px 10%),
        var(--white-a06);
    box-shadow: 0 1px 3px var(--black-a40) inset;
    overflow: hidden;
}
#dashboard-page .dash-sync-bar > span {
    border-radius: var(--radius-xs);
    background: rgb(var(--accent-rgb));
}
#dashboard-page .dash-sync-sortbar {
    margin: 0 0 6px;
}
#dashboard-page .dash-sync-sortbar select {
    font-size: 12px;
}
/* Ledger rows: hairline dividers, larger art, status as pills. */
#dashboard-page .dash-sync-rows {
    gap: 0;
}
#dashboard-page .dash-sync-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 9px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--white-a06);
    transition: background var(--dur-fast) ease;
    align-items: center;
}
#dashboard-page .dash-sync-row:last-child {
    border-bottom: none;
}
#dashboard-page .dash-sync-row:hover {
    background: rgba(255, 255, 255, 0.035);
}
#dashboard-page .dash-sync-row .syncband-art {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-control);
    border: 1px solid var(--white-a10);
}
#dashboard-page .dash-sync-name {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.005em;
}
#dashboard-page .dash-sync-missing {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
    color: #fbbf24;
    background: rgba(var(--warning-strong-rgb), 0.12);
    border: 1px solid rgba(var(--warning-strong-rgb), 0.32);
    border-radius: var(--radius-pill);
    padding: 4px 11px;
    white-space: nowrap;
}
#dashboard-page .dash-sync-done {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgb(var(--accent-light-rgb));
}
#dashboard-page .dash-sync-live {
    font-size: 11px;
    font-weight: 750;
    color: #06130b;
    background: rgb(var(--accent-rgb));
    border-radius: var(--radius-pill);
    padding: 4px 11px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#dashboard-page .dash-side-more {
    margin-top: 12px;
    font-size: 12.5px;
    font-weight: 650;
}

/* Up next: mini-panels with a due-state pill. */
#dashboard-page .dash-side-card[data-card="automations"] .dash-autom-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#dashboard-page .dash-side-card[data-card="automations"] .dash-autom-row {
    padding: 11px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--white-a07);
    background: rgba(255, 255, 255, 0.025);
    align-items: center;
}
#dashboard-page .dash-side-card[data-card="automations"] .dash-autom-row:hover {
    border-color: var(--white-a14);
    background: rgba(255, 255, 255, 0.045);
}
#dashboard-page .dash-side-card[data-card="automations"] .dash-autom-name {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.005em;
}
#dashboard-page .dash-side-card[data-card="automations"] .dash-autom-last {
    font-size: 11.5px;
    color: rgba(var(--text-bright-rgb), 0.45);
}
#dashboard-page .dash-side-card[data-card="automations"] .dash-autom-when {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    color: rgba(var(--text-bright-rgb), 0.6);
    background: var(--white-a06);
    border: 1px solid var(--white-a09);
    border-radius: var(--radius-pill);
    padding: 5px 11px;
    white-space: nowrap;
}
#dashboard-page .dash-side-card[data-card="automations"] .dash-autom-dot {
    width: 8px;
    height: 8px;
}

/* Watchlist / wishlist tiles: counter modules — big numeral, accent rule,
   micro label. */
#dashboard-page .dash-tiles.header-quick-nav {
    gap: 16px;
}
#dashboard-page .dash-tiles .dash-tile.header-button {
    min-height: 104px;
    padding: 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--white-a08);
    background: rgba(0, 0, 0, 0.32);
    gap: 8px;
    align-items: flex-start;
    text-align: left;
}
#dashboard-page .dash-tiles .dash-tile .hero-btn-badge {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
#dashboard-page .dash-tiles .dash-tile .hero-btn-badge::after {
    content: '';
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: rgb(var(--accent-rgb));
}
#dashboard-page .dash-tiles .dash-tile .hero-btn-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(var(--text-bright-rgb), 0.5);
}
#dashboard-page .dash-tiles .dash-tile-sub {
    font-size: 11.5px;
    color: rgba(var(--text-bright-rgb), 0.45);
    font-variant-numeric: tabular-nums;
}

/* ── 6. FOOTER — quieter ─────────────────────────────────────────────── */

#dashboard-page .dash-footer {
    margin-top: 12px;
    padding-top: 22px;
}

/* ── 7. RESPONSIVE ───────────────────────────────────────────────────── */

@media (max-width: 1320px) {
    #dashboard-page .dash-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    #dashboard-page .dash-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        align-items: start;
    }
    #dashboard-page .dash-side > .header-quick-nav {
        grid-column: 1 / -1;
    }
}

@media (max-width: 960px) {
    #dashboard-page .hello-greet-name {
        font-size: clamp(32px, 9vw, 42px);
    }
    #dashboard-page .dash-hero-number {
        min-width: 0;
        padding: 10px 16px 9px;
    }
    #dashboard-page .dash-hero-number-value {
        font-size: 23px;
    }
    /* The console strip stacks: status above, actions below. */
    #dashboard-page .dash-hero-library .library-status-header {
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
    }
    #dashboard-page .dash-hero-library .library-status-info {
        flex-wrap: wrap;
    }
    #dashboard-page .dash-hero-library .library-status-subtitle {
        white-space: normal;
    }
    #dashboard-page .dash-hero-library .library-status-actions {
        justify-content: flex-start;
    }
    /* Masthead stacks: title block above the underline tabs. */
    #dashboard-page .dash-rail-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    #dashboard-page .dash-rail-title {
        font-size: 25px;
    }
    #dashboard-page .dash-side {
        grid-template-columns: 1fr;
    }
    #dashboard-page .listen-hero-play {
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 640px) {
    /* The listen band is a 1.55fr/1fr grid at every width above this; on a
       phone the two overflow:hidden cards kept their desktop columns and
       their content clipped mid-word — Library Radio measured 344px of
       content in a 174px box, the mix rows squeezed to ~20px (mobile CSS
       batch #2, RC6). Stack: each card gets the full row. */
    #dashboard-page .listen-band {
        grid-template-columns: 1fr;
    }
    /* …and inside the hero, the desktop row (78px vinyl + nowrap kicker +
       66px play button) still doesn't fit a phone-width card. Batch #2 let
       the kicker wrap, which stacked it word-per-line in the squeezed
       text column (measured 128px wide × 44px tall at 390px, three
       lines — Oct 13 batch, M-15). Instead of wrapping the kicker, give
       the text column the width: the play button leaves the flex row
       and parks at the hero's bottom-right corner (the hero is
       position:relative), the text keeps a right pad so the description
       never runs under it, and the kicker stays on one line, set
       smaller and tighter. */
    #dashboard-page .listen-hero {
        gap: 14px;
        padding: 18px;
    }
    #dashboard-page .listen-vinyl {
        width: 56px;
        height: 56px;
    }
    #dashboard-page .listen-hero-text {
        padding-right: 58px;
    }
    #dashboard-page .listen-kicker {
        white-space: nowrap;
        font-size: 9.5px;
        letter-spacing: 0.1em;
    }
    #dashboard-page .listen-hero-play {
        position: absolute;
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }
    #dashboard-page .dash-hero-eyebrow {
        font-size: 10px;
    }
    #dashboard-page .dash-hero-numbers {
        gap: 8px;
    }
    #dashboard-page .dash-hero-number {
        flex: 1 1 0;
        padding: 10px 14px 9px;
    }
    #dashboard-page .dash-hero-number-value {
        font-size: 20px;
    }
    #dashboard-page .dash-rail .dash-rail-card {
        width: 138px;
    }
    #dashboard-page .dash-side-card {
        padding: 18px;
    }
    #dashboard-page .dash-sync-pct {
        font-size: 36px;
    }
}

/* M-15 floor (Oct 13 fold): the one-line kicker is ~195px at 9.5px/0.1em.
   With the play button parked, the text column holds it down to ~340px
   viewports; below that the hero is overflow:hidden and the kicker would
   clip mid-word into the reserved padding. Only there, let it wrap —
   two balanced lines beat a clipped one. */
@media (max-width: 340px) {
    #dashboard-page .listen-kicker {
        white-space: normal;
    }
}

/* ── 8. CHROMELESS — strip container backgrounds ─────────────────────── */
/* Everything floats on the page background: no hero wash, no stat boxes,
   no Plex strip fill, no rail panels, no side-card fills. Positions and
   sizes unchanged — only the containers dissolve. */
#dashboard-page .dashboard-header.dash-hero {
    background: none;
}
/* Stat modules become bare text groups. */
/* stylelint-disable-next-line no-duplicate-selectors -- order-sensitive: a rule between the copies sets the same property at equal specificity */
#dashboard-page .dash-hero-number {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 2px 0;
}
/* Plex strip becomes a floating toolbar. */
/* stylelint-disable-next-line no-duplicate-selectors -- order-sensitive: a rule between the copies sets the same property at equal specificity */
#dashboard-page .dash-hero-library .library-status-header {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 8px 0;
    max-width: none;
}
/* Rail panels dissolve — the shelf floats on the page. */
#dashboard-page .dash-card--rail {
    background: none;
    border: 0;
    box-shadow: none;
}
/* Right-column cards dissolve into floating panels. */
/* stylelint-disable-next-line no-duplicate-selectors -- order-sensitive: a rule between the copies sets the same property at equal specificity */
#dashboard-page .dash-side-card {
    background: none;
    border: 0;
    box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   9. THE LISTENING ROOM (Nov 2026)

   The page is rearranged, so this section supersedes the "layout contract"
   at the top of the file for the music dashboard: the right-hand rail is
   gone. The hero keeps the greeting, the library and the orbs; what you
   came to play is the first row under it; the system is a board of four
   cards, two by two; the shelves run the full width.

   Everything is scoped to .dash-room, the class the music dashboard's root
   carries. The video dashboard shares these components and does not have
   it, so nothing here reaches it.

   The orb contract still holds: .orb-stage and its ancestors get no
   transform, filter or opacity. The backdrop is a child that clips itself,
   so the hero needs no overflow and the orb tooltips still escape it.
   ═══════════════════════════════════════════════════════════════════════ */

#dashboard-page.dash-room {
    gap: 22px;
}

/* ── the hero ── */
/* No frame. The greeting sits on the page and the orbs have the right half
   to themselves: a card around the two left the space between them reading
   as an empty box. The stage is wide on purpose, worker-orbs.js stretches
   the orbit to fill a wide stage. */
#dashboard-page.dash-room .dashboard-header.dash-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: center;
    margin: 0;
    padding: 10px 6px 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
/* the old card's accent lines along its bottom edge */
#dashboard-page.dash-room .dashboard-header.dash-hero .dashboard-header-sweep,
#dashboard-page.dash-room .dashboard-header.dash-hero::after {
    display: none;
}
/* The last cover you played, behind the greeting. It clips itself to the
   hero's corners, so the blur cannot spill and the hero stays overflow
   visible for the orbs. */
#dashboard-page.dash-room .room-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    filter: blur(52px) saturate(1.5);
    opacity: 0.5;
    /* a pool of colour behind the orbs that is gone well before the edges
       (a blurred image still ends in a hard line where its box does), so the
       cover lights the right of the page without drawing a box round it */
    -webkit-mask-image: radial-gradient(closest-side at 72% 50%, var(--black-a90) 0%, var(--black-a40) 45%, transparent 82%);
    mask-image: radial-gradient(closest-side at 72% 50%, var(--black-a90) 0%, var(--black-a40) 45%, transparent 82%);
    animation: room-drift 40s ease-in-out infinite alternate;
}
@keyframes room-drift {
    to { object-position: 60% 40%; }
}
body.reduce-effects #dashboard-page.dash-room .room-backdrop,
body.max-performance #dashboard-page.dash-room .room-backdrop {
    display: none;
}
#dashboard-page.dash-room .dash-hero-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px clamp(18px, 2.4vw, 34px);
}
#dashboard-page.dash-room .orb-stage {
    min-height: 240px;
    padding: 18px 12px 34px;
    /* the orbs' own light, for when no cover has been played yet */
    background: radial-gradient(closest-side at 50% 46%, rgba(var(--accent-rgb), 0.14), transparent 100%);
}
/* "2 workers busy" sits under the nucleus it describes, not in a far corner */
#dashboard-page.dash-room .orb-stage-caption {
    left: 0;
    right: 0;
    justify-content: center;
}
/* Quick scan sits on the library line it acts on, not across the hero */
#dashboard-page.dash-room .dash-hero-library .library-status-header {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 16px;
}
#dashboard-page.dash-room .dash-hero-library .library-status-info {
    flex: 0 1 auto;
}
#dashboard-page.dash-room .dash-hero-library .library-status-actions {
    margin-left: 0;
}

/* ── under the hero: setup, downloads, and what you came to play ── */
#dashboard-page.dash-room .room-top {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

/* everything on the page shares the hero's left and right edge */
#dashboard-page.dash-room .room-top > .dash-card,
#dashboard-page.dash-room .room-shelves > .dash-card {
    padding-left: 0;
    padding-right: 0;
}

/* ── the board: two by two ── */
#dashboard-page.dash-room .room-board {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}
#dashboard-page.dash-room .room-board > * {
    grid-column: span 5;
    min-width: 0;
    margin: 0;
}
#dashboard-page.dash-room .room-board > .weekly-digest,
#dashboard-page.dash-room .room-board > [data-card='sync'] {
    grid-column: span 7;
}
/* the video dashboard's board: its week leads the first row, and its count
   tiles (three or four of them, no pictures) share the rest evenly */
#dashboard-page.dash-room .room-board > [data-card='week'] {
    grid-column: span 7;
}
#dashboard-page.dash-room .room-board > .dash-tiles[data-rail='tiles'] {
    width: auto;
    max-width: none;
    grid-template-columns: none;
}
#dashboard-page.dash-room .dash-tiles[data-rail='tiles'] .dash-tile {
    max-width: none;
    justify-content: center;
}
/* Up next alone on its row (nothing downloading): its list runs in two
   columns so the row is used, not stretched */
#dashboard-page.dash-room .room-board > [data-card='automations']:last-child:nth-child(odd) .dash-autom-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
}
/* a card alone on its row takes the row */
#dashboard-page.dash-room .room-board > :only-child,
#dashboard-page.dash-room .room-board > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
#dashboard-page.dash-room .room-board > .weekly-digest,
#dashboard-page.dash-room .room-board > .dash-side-card,
#dashboard-page.dash-room .room-board > .dash-tiles {
    background: var(--white-a03);
    border: 1px solid var(--white-a08);
    border-radius: 20px;
    box-shadow: none;
}
#dashboard-page.dash-room .room-board > .weekly-digest,
#dashboard-page.dash-room .room-board > .dash-side-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
}

/* card heads on the board: a quiet label, its link as a capsule */
#dashboard-page.dash-room .dash-side-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    border: 0;
}
#dashboard-page.dash-room .dash-side-title,
#dashboard-page.dash-room .wd-kicker {
    flex: 1;
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-2);
}
#dashboard-page.dash-room .dash-side-link,
#dashboard-page.dash-room .wd-link {
    height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--white-a08);
    color: var(--text-1);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--dur-fast) ease;
}
#dashboard-page.dash-room .dash-side-link:hover,
#dashboard-page.dash-room .wd-link:hover {
    background: var(--white-a16);
}
#dashboard-page.dash-room .dash-side-more {
    align-self: flex-start;
    margin-top: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-2);
    font-size: 13px;
    cursor: pointer;
}
#dashboard-page.dash-room .dash-side-more:hover {
    color: var(--text-1);
}

/* ── this week ── */
#dashboard-page.dash-room .wd-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}
#dashboard-page.dash-room .wd-kicker {
    flex: none;
}
#dashboard-page.dash-room .wd-range {
    flex: 1;
    font-size: 12px;
    color: var(--text-3);
}
#dashboard-page.dash-room .wd-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
}
#dashboard-page.dash-room .wd-lead {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 6px 14px;
    min-width: 0;
}
#dashboard-page.dash-room .wd-lead .wd-num {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text-1);
}
#dashboard-page.dash-room .wd-lead .wd-label {
    margin-top: 0;
    padding-bottom: 4px;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-2);
}
/* the week keeps its shape on a wide screen: seven bars close enough to
   read as one chart, not seven marks across the card */
#dashboard-page.dash-room .wd-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    height: 150px;
    margin: 0;
    padding: 0;
    border: 0;
}
#dashboard-page.dash-room .wd-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
    height: 100%;
}
/* what the bar is worth, over it */
#dashboard-page.dash-room .wd-val {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-3);
    white-space: nowrap;
}
/* the room a bar grows in: the top of it is kept for the cover a bar wears */
#dashboard-page.dash-room .wd-stick {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: 0;
    padding-top: 16px;
}
/* the album played most that day, on top of its bar */
#dashboard-page.dash-room .wd-bar-cover {
    position: absolute;
    top: -14px;
    left: 50%;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    border-radius: 7px;
    outline: 2px solid var(--bg-primary);
    object-fit: cover;
    box-shadow: 0 8px 18px var(--black-a45);
}
#dashboard-page.dash-room .wd-bar-cover--none {
    display: none;
}
#dashboard-page.dash-room .wd-bar-col--best .wd-val,
#dashboard-page.dash-room .wd-bar-col--today .wd-day {
    color: var(--text-1);
}
#dashboard-page.dash-room .wd-bar-col--today .wd-day {
    font-weight: 700;
}
/* a bar that wears a cover is tall enough to carry it clear of the day */
#dashboard-page.dash-room .wd-bar:has(.wd-bar-cover) {
    min-height: 16px;
}
/* a day with nothing played is a mark on the floor, not a missing bar */
#dashboard-page.dash-room .wd-bar-col--none .wd-bar {
    background: var(--white-a16);
    animation: none;
}
#dashboard-page.dash-room .wd-bar {
    position: relative;
    width: 100%;
    max-width: 46px;
    min-height: 3px;
    border-radius: 9px 9px 4px 4px;
    background: linear-gradient(rgb(var(--accent-light-rgb)), rgb(var(--accent-rgb)));
    transform-origin: bottom;
    animation: room-grow 0.9s var(--ease-decelerate) 0.3s both;
}
@keyframes room-grow {
    from { transform: scaleY(0.08); }
}
#dashboard-page.dash-room .wd-day {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-3);
}
/* this week against the last one */
#dashboard-page.dash-room .wd-trend {
    margin-left: auto;
    margin-bottom: 3px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--white-a08);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
#dashboard-page.dash-room .wd-trend--up {
    background: rgba(var(--success-rgb), 0.14);
    color: var(--success);
}
/* on repeat: the albums the week was made of */
#dashboard-page.dash-room .wd-repeat {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
#dashboard-page.dash-room .wd-repeat-title {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}
#dashboard-page.dash-room .wd-repeat-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 12px;
    padding: 6px 0;
}
#dashboard-page.dash-room .wd-repeat-row + .wd-repeat-row {
    border-top: 1px solid var(--white-a06);
}
#dashboard-page.dash-room .wd-repeat-art {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    object-fit: cover;
    background: var(--white-a08);
}
#dashboard-page.dash-room .wd-repeat-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 12px;
    color: var(--text-3);
}
#dashboard-page.dash-room .wd-repeat-text > * {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#dashboard-page.dash-room .wd-repeat-text b {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-1);
}
#dashboard-page.dash-room .wd-repeat-plays {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-2);
    white-space: nowrap;
}
#dashboard-page.dash-room .wd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
#dashboard-page.dash-room .wd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--white-a08);
    font-size: 12.5px;
    color: var(--text-2);
}
#dashboard-page.dash-room .wd-chip b {
    color: var(--text-1);
    font-weight: 700;
}
#dashboard-page.dash-room .wd-chip--artist img {
    width: 22px;
    height: 22px;
    margin-left: -6px;
    border-radius: var(--radius-circle);
    object-fit: cover;
}

/* ── the two counts: a few of what each one counts ── */
/* the pictures are sized off the card's own width (cqw), so five faces fit
   a half-width tile on a small laptop as well as on a wide screen */
#dashboard-page.dash-room .room-board > .dash-tiles {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 0;
    overflow: hidden;
    container-type: inline-size;
}
#dashboard-page.dash-room .dash-tiles .dash-tile {
    flex: 1;
    min-width: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    padding: 18px 20px 20px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    background: radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb), 0.16), transparent 62%);
    transition: background-color var(--dur-fast) ease;
}
#dashboard-page.dash-room .dash-tiles .dash-tile + .dash-tile {
    border-left: 1px solid var(--white-a08);
}
#dashboard-page.dash-room .dash-tiles .dash-tile:hover {
    background-color: var(--white-a05);
    transform: none;
}
#dashboard-page.dash-room .dash-tiles .hero-btn-badge {
    position: static;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.95;
    font-variant-numeric: tabular-nums;
    color: transparent;
    background: linear-gradient(180deg, var(--text-1) 30%, rgb(var(--accent-rgb)));
    -webkit-background-clip: text;
    background-clip: text;
}
#dashboard-page.dash-room .dash-tiles .hero-btn-badge::after {
    display: none;
}
#dashboard-page.dash-room .dash-tiles .hero-btn-label {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-1);
}
#dashboard-page.dash-room .dash-tiles .dash-tile-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-2);
}
#dashboard-page.dash-room .dash-tiles .dash-tile-sub::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: var(--radius-circle);
    background: rgb(var(--accent-rgb));
    animation: room-blink 2.4s ease-in-out infinite;
}
@keyframes room-blink {
    50% { opacity: 0.25; }
}
/* the slot keeps its height with no pictures, so the two tiles stay level */
#dashboard-page.dash-room .room-tile-art {
    --room-pic: clamp(34px, 10.5cqw, 54px);
    display: flex;
    min-height: calc(var(--room-pic) + 4px);
    margin-bottom: 14px;
}
#dashboard-page.dash-room .room-tile-art img {
    width: var(--room-pic);
    height: var(--room-pic);
    object-fit: cover;
    box-shadow: 0 8px 18px var(--black-a45);
    transition: transform var(--dur-base) var(--ease-standard);
}
/* watched artists are people: round, overlapping, the newest in front */
#dashboard-page.dash-room .room-tile-art--faces {
    flex-direction: row-reverse;
    justify-content: flex-end;
}
#dashboard-page.dash-room .room-tile-art--faces img {
    margin-left: calc(var(--room-pic) * -0.3);
    border-radius: var(--radius-circle);
    outline: 3px solid var(--bg-primary);
}
#dashboard-page.dash-room .room-tile-art--faces img:last-child {
    margin-left: 0;
}
#dashboard-page.dash-room .dash-tile:hover .room-tile-art--faces img {
    transform: translateX(calc(var(--n) * 5px));
}
/* wished songs are records: square sleeves, fanned like a hand of cards */
#dashboard-page.dash-room .room-tile-art--sleeves {
    position: relative;
    align-self: stretch;
}
#dashboard-page.dash-room .room-tile-art--sleeves img {
    position: absolute;
    left: calc(var(--n) * var(--room-pic) * 0.56);
    top: 2px;
    border-radius: 9px;
    transform: rotate(calc((var(--n) - 2) * 5deg));
    transform-origin: 50% 120%;
}
#dashboard-page.dash-room .dash-tile:hover .room-tile-art--sleeves img {
    transform: rotate(calc((var(--n) - 2) * 9deg)) translateY(-3px);
}

/* ── the two counts, what each is made of ── */
#dashboard-page.dash-room .dash-tile-lead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}
#dashboard-page.dash-room .dash-tile-from {
    font-size: 12px;
    color: var(--text-2);
}
#dashboard-page.dash-room .dash-tile-facts {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 6px;
    min-width: 0;
    margin-top: 12px;
}
#dashboard-page.dash-room .dash-tile-fact {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: baseline;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-2);
}
#dashboard-page.dash-room .dash-tile-fact b {
    color: var(--text-1);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
#dashboard-page.dash-room .dash-tile-newest {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 10px;
    min-width: 0;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--white-a06);
    font-size: 12px;
    color: var(--text-3);
}
#dashboard-page.dash-room .dash-tile-newest img {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
}
#dashboard-page.dash-room .dash-tile-newest > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#dashboard-page.dash-room .dash-tile-newest b {
    color: var(--text-1);
    font-weight: 600;
}
/* the music board's two counts are always one over the other: each has a
   number, what it is made of and its newest thing, which is a row's worth.
   with room (the card is the container) the parts sit beside the number */
#dashboard-page.dash-room .room-board > .header-quick-nav {
    flex-direction: column;
}
#dashboard-page.dash-room .room-board > .header-quick-nav .dash-tile + .dash-tile {
    border-left: 0;
    border-top: 1px solid var(--white-a08);
}
@container (min-width: 440px) {
    #dashboard-page.dash-room .room-board > .header-quick-nav .dash-tile {
        display: grid;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
        align-content: center;
        align-items: center;
        column-gap: 20px;
    }
    #dashboard-page.dash-room .room-board > .header-quick-nav .dash-tile-facts {
        align-self: center;
        margin-top: 0;
    }
    #dashboard-page.dash-room .room-board > .header-quick-nav .dash-tile-newest {
        grid-column: 1 / -1;
    }
}

/* ── playlist sync ── */
#dashboard-page.dash-room .dash-sync-say {
    flex: 1;
    min-width: 0;
}
/* the playlists themselves: how many are whole, how many are short */
#dashboard-page.dash-room .dash-sync-mix {
    display: flex;
    gap: 2px;
    height: 6px;
    margin-top: 9px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--white-a08);
}
#dashboard-page.dash-room .dash-sync-mix i {
    display: block;
    flex-basis: 0;
    height: 100%;
}
#dashboard-page.dash-room .dash-sync-mix-whole {
    background: var(--success);
}
#dashboard-page.dash-room .dash-sync-mix-short {
    background: var(--warning);
}
#dashboard-page.dash-room .dash-sync-mixkey {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 600;
}
#dashboard-page.dash-room .dash-sync-mixkey span::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: var(--radius-circle);
    background: currentColor;
}
#dashboard-page.dash-room .dash-sync-mixkey-whole {
    color: var(--success);
}
#dashboard-page.dash-room .dash-sync-mixkey-short {
    color: var(--warning);
}
/* how much of one playlist is in the library */
#dashboard-page.dash-room .dash-sync-cover {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}
#dashboard-page.dash-room .dash-sync-cover i {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    background: var(--white-a08);
}
#dashboard-page.dash-room .dash-sync-cover u {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: rgba(var(--accent-rgb), 0.8);
}
#dashboard-page.dash-room .dash-sync-cover em {
    flex: none;
    font-size: 11.5px;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    color: var(--text-3);
    white-space: nowrap;
}
#dashboard-page.dash-room .dash-sync-health {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
    margin: 0;
}
@property --room-pct {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%;
}
#dashboard-page.dash-room .dash-sync-ring {
    --room-pct: var(--pct);
    flex: none;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-circle);
    background: conic-gradient(rgb(var(--accent-rgb)) 0 var(--room-pct), var(--white-a08) var(--room-pct) 100%);
    animation: room-sweep 1.1s var(--ease-out) 0.35s both;
}
@keyframes room-sweep {
    from { --room-pct: 0%; }
}
#dashboard-page.dash-room .dash-sync-ring .dash-sync-pct {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-circle);
    background: var(--bg-primary);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-1);
}
#dashboard-page.dash-room .dash-sync-of {
    margin: 0;
    min-width: 0;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-2);
}
#dashboard-page.dash-room .dash-sync-of b {
    display: block;
    font-size: 15px;
    color: var(--text-1);
}
#dashboard-page.dash-room .dash-sync-sortbar {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    padding: 2px;
    margin: 0;
    border-radius: var(--radius-pill);
    background: var(--white-a05);
    overflow-x: auto;
}
#dashboard-page.dash-room .dash-sync-sort {
    flex: 1 0 auto;
    height: 28px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius-pill);
    background: none;
    color: var(--text-3);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}
#dashboard-page.dash-room .dash-sync-sort[aria-pressed='true'] {
    background: var(--white-a16);
    color: var(--text-1);
}
#dashboard-page.dash-room .dash-sync-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}
#dashboard-page.dash-room .dash-sync-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 8px 6px;
    margin: 0 -6px;
    border: 0;
    border-radius: 12px;
    background: none;
}
#dashboard-page.dash-room .dash-sync-row:hover,
#dashboard-page.dash-room .dash-sync-row:focus-within {
    background: var(--white-a06);
}
#dashboard-page.dash-room .dash-sync-row .syncband-art {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 9px;
}
#dashboard-page.dash-room .dash-sync-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
#dashboard-page.dash-room .dash-sync-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#dashboard-page.dash-room .dash-sync-sub {
    display: flex;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
}
#dashboard-page.dash-room .dash-sync-sub > * {
    padding: 0;
    border: 0;
    background: none;
    font-size: inherit;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
#dashboard-page.dash-room .dash-sync-sub > * + *::before {
    content: '·';
    margin-right: 6px;
    color: var(--text-3);
}
#dashboard-page.dash-room .dash-sync-missing {
    color: var(--warning);
}
#dashboard-page.dash-room .dash-sync-done,
#dashboard-page.dash-room .dash-sync-live {
    color: var(--success);
}
#dashboard-page.dash-room .dash-sync-next {
    color: var(--text-3);
    overflow: hidden;
    text-overflow: ellipsis;
}
/* the row's actions show when you point at it; always on touch */
#dashboard-page.dash-room .dash-sync-actions,
#dashboard-page.dash-room .dash-autom-actions {
    flex: none;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--dur-fast) ease;
}
#dashboard-page.dash-room .dash-sync-row:hover .dash-sync-actions,
#dashboard-page.dash-room .dash-sync-row:focus-within .dash-sync-actions,
#dashboard-page.dash-room .dash-autom-row:hover .dash-autom-actions,
#dashboard-page.dash-room .dash-autom-row:focus-within .dash-autom-actions {
    opacity: 1;
}
@media (hover: none) {
    #dashboard-page.dash-room .dash-sync-actions,
    #dashboard-page.dash-room .dash-autom-actions {
        opacity: 1;
    }
}
#dashboard-page.dash-room .dash-sync-act {
    width: 28px;
    height: 28px;
    min-height: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--radius-circle);
    background: var(--white-a08);
    color: var(--text-2);
    cursor: pointer;
}
#dashboard-page.dash-room .dash-sync-act:hover:not(:disabled) {
    background: var(--white-a16);
    color: var(--text-1);
}

/* ── up next ── */
#dashboard-page.dash-room [data-card='automations'] .dash-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
    padding: 0;
}
#dashboard-page.dash-room .dash-autom-lane {
    position: relative;
    height: 34px;
    /* the hover card places itself in lane widths (cqw) */
    container-type: inline-size;
}
#dashboard-page.dash-room .dash-autom-lane::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 9px;
    height: 2px;
    border-radius: 1px;
    background: var(--white-a16);
}
#dashboard-page.dash-room .dash-autom-mark {
    position: absolute;
    top: 4px;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: var(--radius-circle);
    background: rgb(var(--accent-rgb));
    outline: 3px solid var(--bg-primary);
    border: 0;
    padding: 0;
    /* mobile.css gives every button a 38px floor: the point is a dot, and
       the stop around it is the place to tap */
    min-height: 0;
    font: inherit;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-out);
}
#dashboard-page.dash-room .dash-autom-mark--live {
    margin-left: 0;
    background: var(--success);
    animation: room-ping 1.8s ease-out infinite;
}
@keyframes room-ping {
    0% { box-shadow: 0 0 0 3px rgba(var(--success-rgb), 0.55); }
    100% { box-shadow: 0 0 0 12px rgba(var(--success-rgb), 0); }
}
#dashboard-page.dash-room .dash-autom-tick {
    position: absolute;
    bottom: 0;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-3);
}
#dashboard-page.dash-room .dash-autom-tick--start { left: 0; }
#dashboard-page.dash-room .dash-autom-tick--mid { left: 50%; transform: translateX(-50%); }
#dashboard-page.dash-room .dash-autom-tick--end { right: 0; }
#dashboard-page.dash-room .dash-autom-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}
#dashboard-page.dash-room .dash-side-card[data-card='automations'] .dash-autom-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 8px 6px;
    margin: 0 -6px;
    border: 0;
    border-radius: 12px;
    background: none;
}
#dashboard-page.dash-room .dash-autom-row:hover,
#dashboard-page.dash-room .dash-autom-row:focus-within {
    background: var(--white-a06);
}
/* how long until it runs comes first: it is what the card is about */
#dashboard-page.dash-room .dash-side-card[data-card='automations'] .dash-autom-when {
    order: -1;
    flex: none;
    width: 70px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 12px;
    font-family: var(--font-mono);
    text-align: left;
}
#dashboard-page.dash-room .dash-autom-when > * {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    letter-spacing: 0;
    text-transform: none;
    color: rgb(var(--accent-light-rgb));
}
#dashboard-page.dash-room .dash-autom-when .dash-autom-live-pill {
    color: var(--success);
}
#dashboard-page.dash-room .dash-autom-when .dash-autom-paused {
    color: var(--text-3);
}
#dashboard-page.dash-room .dash-autom-row .dash-autom-dot {
    display: none;
}
#dashboard-page.dash-room .dash-autom-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
#dashboard-page.dash-room .dash-autom-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#dashboard-page.dash-room .dash-autom-meta {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
}
#dashboard-page.dash-room .dash-autom-last--bad {
    color: var(--warning);
}
#dashboard-page.dash-room .dash-autom-run {
    height: 28px;
    min-width: 28px;
    min-height: 0;
    padding: 0 10px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--white-a08);
    color: var(--text-1);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
#dashboard-page.dash-room .dash-autom-run:hover:not(:disabled) {
    background: var(--white-a16);
}

/* ── the shelves: the newest leads, the row fades where it runs on ── */
#dashboard-page.dash-room .room-shelves {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}
/* the feed switch is the same pill row the other redrawn pages use */
#dashboard-page.dash-room .dash-band-tabs {
    gap: 0;
    padding: 2px;
    border-radius: var(--radius-pill);
    background: var(--white-a05);
    max-width: 100%;
    overflow-x: auto;
}
#dashboard-page.dash-room .dash-band-tab {
    height: 28px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-3);
    white-space: nowrap;
}
#dashboard-page.dash-room .dash-band-tab.active {
    background: var(--white-a16);
    color: var(--text-1);
}
/* every card on a shelf is the same size. the first one used to be larger,
   which left the row ragged and a band of nothing under the other eight */
#dashboard-page.dash-room .room-shelves .dash-rail-card .ya-card-img {
    transition:
        transform var(--dur-base) var(--ease-standard),
        box-shadow var(--dur-base) var(--ease-standard);
}
#dashboard-page.dash-room .room-shelves .dash-rail-card:hover .ya-card-img,
#dashboard-page.dash-room .room-shelves .dash-rail-card:focus-within .ya-card-img {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px var(--black-a50);
}
#dashboard-page.dash-room .room-shelves .dash-rail {
    -webkit-mask-image: linear-gradient(90deg, var(--black-a95) calc(100% - 56px), transparent);
    mask-image: linear-gradient(90deg, var(--black-a95) calc(100% - 56px), transparent);
}

/* ── things arrive in order, once ── */
#dashboard-page.dash-room .room-top,
#dashboard-page.dash-room .room-board > *,
#dashboard-page.dash-room .room-shelves > * {
    animation: room-rise 0.6s var(--ease-decelerate) both;
}
#dashboard-page.dash-room .room-board > :nth-child(1) { animation-delay: 0.08s; }
#dashboard-page.dash-room .room-board > :nth-child(2) { animation-delay: 0.13s; }
#dashboard-page.dash-room .room-board > :nth-child(3) { animation-delay: 0.18s; }
#dashboard-page.dash-room .room-board > :nth-child(4) { animation-delay: 0.23s; }
#dashboard-page.dash-room .room-shelves > * { animation-delay: 0.28s; }
@keyframes room-rise {
    from {
        opacity: 0.35;
        transform: translateY(14px);
    }
}
body.reduce-effects #dashboard-page.dash-room .room-top,
body.reduce-effects #dashboard-page.dash-room .room-board > *,
body.reduce-effects #dashboard-page.dash-room .room-shelves > *,
body.reduce-effects #dashboard-page.dash-room .wd-bar,
body.reduce-effects #dashboard-page.dash-room .dash-sync-ring,
body.reduce-effects #dashboard-page.dash-room .dash-autom-mark--live,
body.reduce-effects #dashboard-page.dash-room .dash-tile-sub::before,
body.max-performance #dashboard-page.dash-room .room-top,
body.max-performance #dashboard-page.dash-room .room-board > *,
body.max-performance #dashboard-page.dash-room .room-shelves > *,
body.max-performance #dashboard-page.dash-room .wd-bar,
body.max-performance #dashboard-page.dash-room .dash-sync-ring,
body.max-performance #dashboard-page.dash-room .dash-autom-mark--live,
body.max-performance #dashboard-page.dash-room .dash-tile-sub::before {
    animation: none;
}

/* ── tablet and down: the board is one column, the hero stacks. Between
   this and 1200 the shell itself holds a 1200px floor, so the desktop
   layout is what a landscape tablet gets. ── */
@media (max-width: 768px) {
    #dashboard-page.dash-room .dashboard-header.dash-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 4px;
        gap: 14px;
    }
    /* the workers sit in three tight rows of five (spacing pass, below) */
    #dashboard-page.dash-room .orb-stage {
        min-height: 0;
    }
    #dashboard-page.dash-room .room-board > *,
    #dashboard-page.dash-room .room-board > .weekly-digest,
    #dashboard-page.dash-room .room-board > [data-card='week'],
    #dashboard-page.dash-room .room-board > [data-card='sync'] {
        grid-column: 1 / -1;
    }
    #dashboard-page.dash-room .room-board > [data-card='automations']:last-child:nth-child(odd) .dash-autom-rows {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ── phone ── */
@media (max-width: 640px) {
    #dashboard-page.dash-room {
        gap: 16px;
    }
    #dashboard-page.dash-room .dashboard-header.dash-hero {
        padding: 22px 18px;
        border-radius: 22px;
    }
    #dashboard-page.dash-room .room-backdrop {
        clip-path: inset(0 round 22px);
    }
    #dashboard-page.dash-room .room-board > .weekly-digest,
    #dashboard-page.dash-room .room-board > .dash-side-card {
        padding: 16px;
    }
    #dashboard-page.dash-room .wd-body {
        grid-template-columns: minmax(0, 1fr);
    }
    #dashboard-page.dash-room .dash-tiles .dash-tile {
        padding: 16px;
    }
    #dashboard-page.dash-room .dash-tiles .hero-btn-badge {
        font-size: 42px;
    }
    #dashboard-page.dash-room .dash-sync-ring {
        width: 76px;
        height: 76px;
    }
    #dashboard-page.dash-room .dash-sync-ring .dash-sync-pct {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
    #dashboard-page.dash-room .dash-side-card[data-card='automations'] .dash-autom-when {
        width: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #dashboard-page.dash-room .room-backdrop,
    #dashboard-page.dash-room .room-top,
    #dashboard-page.dash-room .room-board > *,
    #dashboard-page.dash-room .room-shelves > *,
    #dashboard-page.dash-room .wd-bar,
    #dashboard-page.dash-room .dash-sync-ring,
    #dashboard-page.dash-room .dash-autom-mark--live,
    #dashboard-page.dash-room .dash-tile-sub::before {
        animation: none;
    }
}

/* ── the video dashboard's board ──
   The week beside the counts, then what is downloading and what runs next,
   each across the whole row. Side by side they left a sixth of the row empty
   and stretched whichever card was shorter to the height of the other. */
#dashboard-page.dash-room[data-media='video'] .room-board > [data-card='downloads'],
#dashboard-page.dash-room[data-media='video'] .room-board > [data-card='automations'] {
    grid-column: 1 / -1;
}
/* Up next runs in two columns whatever sits around it */
#dashboard-page.dash-room[data-media='video'] .room-board > [data-card='automations'] .dash-autom-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
}
/* downloads sit side by side, a card wide each, at their own height */
#dashboard-page.dash-room[data-media='video'] .room-board > [data-card='downloads'] .vdn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
    gap: 10px;
}
/* posters, not record sleeves: taller than wide, and the tile makes room */
#dashboard-page.dash-room .room-tile-art--posters {
    min-height: calc(var(--room-pic) * 1.5 + 6px);
}
#dashboard-page.dash-room .room-tile-art--posters img {
    height: calc(var(--room-pic) * 1.5);
    border-radius: 7px;
}
#dashboard-page.dash-room[data-media='video'] .dash-tiles[data-rail='tiles'] .dash-tile {
    justify-content: flex-start;
    overflow: hidden;
}
/* three or four tiles share the card, so the posters are smaller than the
   music tiles' pictures and a long label takes a second line */
#dashboard-page.dash-room[data-media='video'] .dash-tiles[data-rail='tiles'] .room-tile-art {
    --room-pic: clamp(24px, 6.4cqw, 46px);
}
#dashboard-page.dash-room[data-media='video'] .dash-tiles[data-rail='tiles'] .hero-btn-label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
}
#dashboard-page.dash-room[data-media='video'] .dash-tiles[data-rail='tiles'] .hero-btn-badge {
    font-size: clamp(30px, 9cqw, 52px);
}

@media (max-width: 768px) {
    #dashboard-page.dash-room[data-media='video'] .room-board > [data-card='automations'] .dash-autom-rows {
        grid-template-columns: minmax(0, 1fr);
    }
    #dashboard-page.dash-room .room-tile-art--posters {
        display: none;
    }
}
#dashboard-page.dash-room[data-media='video'] .room-shelves {
    gap: 38px;
}

/* ═══════════════════════════════════════════════
   THE LISTENING ROOM, spacing pass (Nov 12 2026)
   Nothing new on the page: the same sections, given the room they need and
   no more. On a wide screen the four system cards were two by two, each a
   thousand pixels wide around three hundred pixels of content.
   ═══════════════════════════════════════════════ */

/* ── the hero's left side: date, greeting, name, numbers, library ── */
#dashboard-page.dash-room .dash-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
    align-content: center;
}
#dashboard-page.dash-room .dash-hero-main > * {
    grid-column: 1 / -1;
    min-width: 0;
}
/* the date is a chip, not a bar: a grid child stretches unless told not to */
#dashboard-page.dash-room .dash-hero-main > .dash-hero-eyebrow {
    justify-self: start;
}
/* the three numbers are a quiet line under the name, not a second headline */
#dashboard-page.dash-room .dash-hero-numbers .dash-hero-number-value {
    font-size: 17px;
}

/* ── the board: all four across when each can have a column of its own ── */
#dashboard-page.dash-room .room-board-wrap {
    container: room-board / inline-size;
    min-width: 0;
}
@container room-board (min-width: 1500px) {
    #dashboard-page.dash-room .room-board {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
    }
    #dashboard-page.dash-room .room-board > *,
    #dashboard-page.dash-room .room-board > .weekly-digest,
    #dashboard-page.dash-room .room-board > [data-card='sync'],
    #dashboard-page.dash-room .room-board > :only-child,
    #dashboard-page.dash-room .room-board > :last-child:nth-child(odd) {
        grid-column: auto;
    }
    /* a column is narrow: the week's number over its chart, the chart the
       width of the card */
    #dashboard-page.dash-room .room-board .wd-body {
        grid-template-columns: minmax(0, 1fr);
    }
    #dashboard-page.dash-room .room-board .wd-chart {
        justify-self: stretch;
        max-width: none;
        height: 132px;
    }
    #dashboard-page.dash-room .room-board > .weekly-digest .wd-chips {
        margin-top: 0;
    }
    /* the two counts one over the other */
    #dashboard-page.dash-room .room-board > .dash-tiles {
        flex-direction: column;
    }

    #dashboard-page.dash-room .room-board > .dash-tiles .dash-tile + .dash-tile {
        border-left: 0;
        border-top: 1px solid var(--white-a08);
    }
    #dashboard-page.dash-room .room-board > [data-card='automations']:last-child:nth-child(odd) .dash-autom-rows {
        display: block;
    }
}

/* ── a phone: the name on one line, whatever its length ── */
@media (max-width: 768px) {
    #dashboard-page.dash-room .hello-greet-name {
        font-size: min(42px, calc((100vw - 92px) / (var(--name-len, 12) * 0.6)));
        white-space: nowrap;
        text-wrap: nowrap;
    }
    #dashboard-page.dash-room .dash-hero-main {
        row-gap: 10px;
    }
    /* one frame, not two: the shell already insets the page, so the page's
       own border and padding only narrowed everything by another 26px */
    #dashboard-page.dash-room {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        gap: 16px;
    }
    /* stacked, the hero is tall and narrow and the cover's glow became a
       streak down through the text. the workers keep their own light */
    #dashboard-page.dash-room .dashboard-header.dash-hero > .room-backdrop {
        display: none;
    }
    /* the workers as three tight rows of five, not a square a screen tall */
    #dashboard-page.dash-room .orb-stage .header-actions {
        display: grid;
        grid-template-columns: repeat(5, 40px);
        justify-content: space-between;
        gap: 10px 0;
        width: 100%;
        height: auto;
    }
    #dashboard-page.dash-room .orb-stage .header-actions .enrich-worker,
    #dashboard-page.dash-room .orb-stage .header-actions .enrich-worker-btn {
        width: 40px;
        height: 40px;
    }
    #dashboard-page.dash-room .orb-stage .header-actions .em-manage-btn {
        grid-column: 1 / -1;
        justify-self: stretch;
        justify-content: center;
        margin-top: 4px;
    }
    /* shelves: the caption's lines sit together under the cover */
    #dashboard-page.dash-room .room-shelves {
        gap: 22px;
    }
    #dashboard-page.dash-room .room-shelves > .dash-card {
        padding-top: 0;
        padding-bottom: 0;
    }
    #dashboard-page.dash-room .room-shelves .dash-rail-card .ya-card-img {
        margin-bottom: 8px;
    }
    #dashboard-page.dash-room .room-shelves .dash-rail-card .dash-rail-caption,
    #dashboard-page.dash-room .room-shelves .dash-rail-card .ya-card-info {
        gap: 1px;
        margin: 0;
        padding: 0;
        min-height: 0;
    }
    #dashboard-page.dash-room .room-shelves .dash-rail-card .dash-rail-caption > *,
    #dashboard-page.dash-room .room-shelves .dash-rail-card .ya-card-info > * {
        margin: 0;
        padding-top: 0;
        padding-bottom: 0;
        min-height: 0;
        line-height: 1.3;
    }
    /* four sort pills share the row instead of the last one running off it */
    #dashboard-page.dash-room .dash-sync-sortbar {
        display: flex;
    }
    #dashboard-page.dash-room .dash-sync-sort {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 4px;
        font-size: 12px;
        white-space: nowrap;
    }
    /* quick settings: a label, then the switches two by two */
    #dashboard-page.dash-room .dash-quick-settings {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    #dashboard-page.dash-room .dash-quick-settings-label,
    #dashboard-page.dash-room .dash-qs-accent {
        grid-column: 1 / -1;
    }
    #dashboard-page.dash-room .dash-qs-toggle {
        justify-content: flex-start;
        min-width: 0;
    }
}

/* The hovered worker comes to the front, tooltip and all. Each worker is its
   own layer while the grid is shown (the reveal animation and the fade make
   one), so a tooltip's own z-index only counted inside its worker, and the
   workers after it in the grid were painted over it. */
#dashboard-page.dash-room .orb-stage .header-actions > .enrich-worker:hover,
#dashboard-page.dash-room .orb-stage .header-actions > .enrich-worker:focus-within,
#dashboard-page.dash-room .orb-stage .header-actions > .video-enrich-container:hover,
#dashboard-page.dash-room .orb-stage .header-actions > .video-enrich-container:focus-within {
    z-index: 20;
}

/* ═══════════════════════════════════════════════
   THE BOARD'S CARDS, refined (Nov 12 2026)
   This Week as seven days and the counts with what they are made of are the
   video dashboard's (video-dashboard.module.css). Up next is shared by both
   dashboards: the next run named on the line, close runs as one mark, and
   what just ran beside what is coming.
   ═══════════════════════════════════════════════ */

/* ── the video board: the week across the row, or two thirds beside the counts ── */
#dashboard-page.dash-room .video-board-wrap {
    container: video-board / inline-size;
    min-width: 0;
}
#dashboard-page.dash-room[data-media='video'] .room-board > [data-card='week'],
#dashboard-page.dash-room[data-media='video'] .room-board > .dash-tiles[data-rail='tiles'] {
    grid-column: 1 / -1;
}
#dashboard-page.dash-room[data-media='video'] .room-board > .dash-tiles[data-rail='tiles'] {
    flex-wrap: wrap;
    align-content: stretch;
}
@container video-board (min-width: 1180px) {
    #dashboard-page.dash-room[data-media='video'] .room-board > [data-card='week'] {
        grid-column: span 8;
    }
    /* beside the week the counts are a column: one over the other, the
       issues and findings line at the foot */
    #dashboard-page.dash-room[data-media='video'] .room-board > .dash-tiles[data-rail='tiles'] {
        grid-column: span 4;
        flex-direction: column;
        flex-wrap: nowrap;
    }
}

/* Make it yours sits on the board: no frame of its own, its two studios are
   the cards */
#dashboard-page.dash-room[data-media='video'] .room-board > [data-card='studios'] {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    container: studios-band / inline-size;
}
@container video-board (min-width: 1180px) {
    #dashboard-page.dash-room[data-media='video'] .room-board > [data-card='automations']:not(:last-child) {
        grid-column: span 8;
    }
    /* beside Up next: its heading starts where that card's heading does */
    #dashboard-page.dash-room[data-media='video'] .room-board > [data-card='studios'] {
        grid-column: span 4;
        padding-top: 22px;
    }
}

/* ── up next ── */
#dashboard-page.dash-room .dash-autom-count {
    font-size: 12.5px;
    color: var(--text-3);
    white-space: nowrap;
}
/* the next run, named where it sits on the line */
#dashboard-page.dash-room .dash-autom-lane:has(.dash-autom-flag) {
    margin-top: 24px;
}
#dashboard-page.dash-room .dash-autom-flag {
    position: absolute;
    bottom: calc(100% - 1px);
    max-width: 70%;
    padding: 2px 9px;
    border-radius: 7px;
    background: rgba(var(--accent-rgb), 0.16);
    color: var(--text-2);
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateX(-9px);
}
#dashboard-page.dash-room .dash-autom-flag--left {
    transform: translateX(calc(-100% + 9px));
}
#dashboard-page.dash-room .dash-autom-flag b {
    color: var(--text-1);
    font-weight: 600;
}
#dashboard-page.dash-room .dash-autom-mark--lead {
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.22);
}
/* several runs landing together: one mark that says how many */
#dashboard-page.dash-room .dash-autom-mark--many {
    top: 1px;
    width: auto;
    min-width: 20px;
    height: 18px;
    margin-left: -10px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    color: var(--bg-primary);
    font-size: 10.5px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
/* ── a point on the line, and the card it opens ──
   each point is a stop: hover or focus it and a card says what the run is,
   when it fires, how often, and what its last run did. the card places
   itself: centred on the point, held inside the line at either end */
#dashboard-page.dash-room .dash-autom-stop {
    position: absolute;
    top: 0;
    width: 0;
    height: 22px;
}
/* a wider place to rest the pointer, and the way down to the card */
#dashboard-page.dash-room .dash-autom-stop::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -14px;
    width: 28px;
    height: 34px;
}
#dashboard-page.dash-room .dash-autom-lane:hover,
#dashboard-page.dash-room .dash-autom-lane:focus-within,
#dashboard-page.dash-room .dash-autom-stop:hover,
#dashboard-page.dash-room .dash-autom-stop:focus-within {
    z-index: 20;
}
#dashboard-page.dash-room .dash-autom-stop:hover > .dash-autom-mark,
#dashboard-page.dash-room .dash-autom-mark:focus-visible {
    transform: scale(1.25);
}
#dashboard-page.dash-room .dash-autom-mark:focus-visible {
    outline-color: var(--text-1);
}
#dashboard-page.dash-room .dash-autom-pop {
    --pop-w: min(330px, 100cqw);
    position: absolute;
    top: calc(100% + 8px);
    left: clamp(
        calc(var(--at) * -1cqw),
        calc(var(--pop-w) / -2),
        calc((100 - var(--at)) * 1cqw - var(--pop-w))
    );
    width: var(--pop-w);
    max-height: min(460px, 70vh);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--white-a14);
    border-radius: var(--radius-xl);
    background: var(--bg-raised);
    box-shadow: 0 16px 40px var(--black-a40);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition:
        opacity var(--dur-fast) ease,
        transform var(--dur-quick) var(--ease-out),
        visibility 0s linear var(--dur-quick);
}
#dashboard-page.dash-room .dash-autom-stop:hover > .dash-autom-pop,
#dashboard-page.dash-room .dash-autom-stop:focus-within > .dash-autom-pop {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}
#dashboard-page.dash-room .dash-autom-pop-title {
    padding: 6px 10px 4px;
    color: var(--text-3);
    font-size: 11.5px;
}
#dashboard-page.dash-room .dash-autom-pop-run {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 0;
    border-radius: var(--radius-lg);
    background: none;
    color: var(--text-2);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background var(--dur-fast) ease;
}
#dashboard-page.dash-room .dash-autom-pop-run:hover,
#dashboard-page.dash-room .dash-autom-pop-run:focus-visible {
    background: var(--white-a06);
}
#dashboard-page.dash-room .dash-autom-pop-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
#dashboard-page.dash-room .dash-autom-pop-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--text-1);
    font-size: 13.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#dashboard-page.dash-room .dash-autom-pop-when {
    flex: none;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    background: rgba(var(--accent-rgb), 0.16);
    color: var(--text-1);
    font-family: var(--font-mono);
    font-size: 11.5px;
}
#dashboard-page.dash-room .dash-autom-pop-when--live {
    background: rgba(var(--success-rgb), 0.18);
}
#dashboard-page.dash-room .dash-autom-pop-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}
#dashboard-page.dash-room .dash-autom-pop-fact {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
#dashboard-page.dash-room .dash-autom-pop-fact i {
    color: var(--text-3);
    font-size: 11px;
    font-style: normal;
}
#dashboard-page.dash-room .dash-autom-pop-fact b {
    overflow: hidden;
    color: var(--text-1);
    font-size: 12.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#dashboard-page.dash-room .dash-autom-pop-said {
    padding-top: 9px;
    border-top: 1px solid var(--white-a08);
    font-size: 12.5px;
    line-height: 1.4;
}
#dashboard-page.dash-room .dash-autom-pop-said--bad {
    color: var(--warning);
}
/* coming up beside just ran */
#dashboard-page.dash-room .dash-autom-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 14px 34px;
    align-items: start;
}
#dashboard-page.dash-room .dash-autom-col,
#dashboard-page.dash-room .dash-autom-ran {
    min-width: 0;
}
#dashboard-page.dash-room .dash-autom-col-title {
    margin: 0 0 2px;
    color: var(--text-3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
/* with just ran beside it the list is one column, wherever the card sits */
#dashboard-page.dash-room .room-board > [data-card='automations'] .dash-autom-cols .dash-autom-rows,
#dashboard-page.dash-room[data-media='video'] .room-board > [data-card='automations'] .dash-autom-cols .dash-autom-rows {
    display: flex;
}
#dashboard-page.dash-room .dash-autom-glyph {
    flex: none;
    order: -1;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--white-a06);
    color: var(--text-2);
}
#dashboard-page.dash-room .dash-autom-glyph svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* the countdown still leads the row, then the picture of the work */
#dashboard-page.dash-room .dash-side-card[data-card='automations'] .dash-autom-glyph ~ .dash-autom-when {
    order: -2;
}
#dashboard-page.dash-room .dash-autom-ran-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0 -6px;
    padding: 8px 6px;
    border-radius: 12px;
    cursor: pointer;
}
#dashboard-page.dash-room .dash-autom-ran-row:hover {
    background: var(--white-a06);
}
#dashboard-page.dash-room .dash-autom-ran-when {
    flex: none;
    order: -2;
    width: 70px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--success);
}
#dashboard-page.dash-room .dash-autom-ran-when--bad {
    color: var(--warning);
}
/* the card measures itself: under 700px it has room for what is coming, not
   for both lists side by side (half a board, or one of four across) */
#dashboard-page.dash-room .room-board > [data-card='automations'] {
    container: up-next / inline-size;
    /* a point's card may hang below a short Up next: it is not cut off, and
       the card it belongs to comes above its neighbours while it is open */
    overflow: visible;
}
#dashboard-page.dash-room .room-board > [data-card='automations']:hover,
#dashboard-page.dash-room .room-board > [data-card='automations']:focus-within {
    z-index: 20;
}
@container up-next (max-width: 700px) {
    #dashboard-page.dash-room .dash-autom-cols {
        grid-template-columns: minmax(0, 1fr);
    }
    #dashboard-page.dash-room .dash-autom-ran {
        display: none;
    }
    #dashboard-page.dash-room .dash-autom-col-title {
        display: none;
    }
}
@media (max-width: 768px) {
    #dashboard-page.dash-room[data-media='video'] .room-board > .dash-tiles[data-rail='tiles'] {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    #dashboard-page.dash-room .dash-autom-cols {
        grid-template-columns: minmax(0, 1fr);
    }
    #dashboard-page.dash-room .dash-autom-flag {
        max-width: 92%;
    }
    /* a phone scrolls: just ran goes under what is coming, with its heading */
    #dashboard-page.dash-room .dash-autom-ran,
    #dashboard-page.dash-room .dash-autom-col-title {
        display: block;
    }
    /* what a run did is the point of the row: let it take a second line */
    #dashboard-page.dash-room .dash-autom-ran-row .dash-autom-meta {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: normal;
    }
    /* a phone has room for two thirds of a name on one line: give it two */
    #dashboard-page.dash-room .dash-side-card[data-card='automations'] .dash-autom-name {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: normal;
        line-height: 1.25;
    }
}
