/* JCSS web (docs/brand.md). Colors from brand/tokens.json; dark only; gold is the one accent. */

@font-face {
    font-family: 'Barlow Condensed';
    font-weight: 600;
    font-display: swap;
    src:
        url('/fonts/BarlowCondensed-SemiBold.woff2') format('woff2'),
        url('/fonts/BarlowCondensed-SemiBold.ttf') format('truetype');
}

:root {
    color-scheme: dark;
    --bg: #0b0b0c;
    --surface: #121214;
    --raised: #1a1a1d;
    --hover: #242428;
    --well: #202024;
    --line: #ffffff14;
    --line-hover: #ffffff21;
    --line-strong: #ffffff29;
    --text: #f5f2ea;
    --muted: #8e8b84;
    --faint: #5a5853;
    --gold: #f2bd48;
    --gold-press: #d9a636;
    --on-gold: #0b0b0c;
    --live: #f04b26;
    --ok: #5bbf8a;
    --sans: 'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', monospace;
    --display: 'Barlow Condensed', ui-sans-serif, system-ui, sans-serif;
    /* radii (tokens.json): nest concentrically, outer = inner + inset */
    --r-xs: 3px;
    --r-s: 4px;
    --r-control: 6px;
    --r-panel: 10px;
    --r-group: 14px;
    /* motion: setup controls only (docs/brand.md) */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-swap: cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    border: 0 solid var(--line);
    margin: 0;
    padding: 0;
    transition-timing-function: ease-out;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    text-wrap: balance;
}
p {
    text-wrap: pretty;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
    color: inherit;
}

/* Everything focusable gets the gold ring from the keyboard (components may move it inside). */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.tabular {
    font-variant-numeric: tabular-nums;
}

kbd {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--faint);
}

/* ---- Type ---- */

.display-xl,
.display-lg,
.display-md {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
}
.display-xl {
    font-size: 60px;
}
.display-lg {
    font-size: 48px;
}
.display-md {
    font-size: 30px;
}
.h1 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
}
.h2 {
    font-size: 17px;
    font-weight: 600;
}
.h3 {
    font-size: 18px;
    font-weight: 600;
}
.lead {
    font-size: 18px;
}
.small {
    font-size: 13px;
}
.caption {
    font-size: 12px;
    color: var(--faint);
}
.strong {
    font-weight: 600;
}
.muted {
    color: var(--muted);
}
.faint {
    color: var(--faint);
}
.gold {
    color: var(--gold);
}
.center {
    text-align: center;
    justify-content: center;
}
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.link {
    color: var(--gold);
    transition: color 90ms ease-out;
}
.link-button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.link-button:disabled {
    opacity: 0.5;
    cursor: default;
}
/* Grow text-link fragments without changing line/flex spacing; wrapped footer nav stays separate. */
.link,
:not(.site-footer-links) > .quiet-link {
    padding-block: 5px;
    margin-block: -5px;
}
@media (hover: hover) and (pointer: fine) {
    .link:hover,
    .quiet-link:hover {
        text-decoration: underline;
        color: var(--text);
    }
}
.label {
    font-size: 13px;
    font-weight: 500;
}

/* ---- Layout ---- */

.row {
    display: flex;
    align-items: center;
}
.row.baseline {
    align-items: baseline;
}
.row.end {
    align-items: flex-end;
}
.between {
    justify-content: space-between;
}
.wrap {
    flex-wrap: wrap;
}
.justify-end {
    justify-content: flex-end;
}
/* a quiet button at the end of a row: its text, not its invisible box, meets the edge */
.justify-end > .btn-quiet {
    margin-right: -10px;
}
.grow {
    flex: 1;
}
.shrink-0 {
    flex-shrink: 0;
}
.min-w-0 {
    min-width: 0;
}
.self-start {
    align-self: flex-start;
}
.w-full {
    width: 100%;
}
.gap-2 {
    gap: 8px;
}
.gap-3 {
    gap: 12px;
}
.gap-4 {
    gap: 16px;
}
.stack-1,
.stack-2,
.stack-3,
.stack-4,
.stack-5 {
    display: flex;
    flex-direction: column;
}
.stack-1 {
    gap: 4px;
}
.stack-2 {
    gap: 8px;
}
/* the guest page's mic and camera check (decision 0174) */
.check {
    padding: 16px;
    border-radius: 12px;
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}
/* the guest page's backstage chat (decision 0174) */
.chat-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line);
}
.chat-list:empty {
    display: none;
}
.row-2 {
    display: flex;
    gap: 8px;
}
.row-2 > .input {
    flex: 1;
    min-width: 0;
}
.stack-3 {
    gap: 12px;
}
.stack-4 {
    gap: 16px;
}
.stack-5 {
    gap: 24px;
}
.grid-2 {
    display: grid;
    gap: 12px;
}
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.hero {
    margin: 0 auto;
    display: flex;
    min-height: 100vh;
    max-width: 36rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 24px;
    text-align: center;
}
.narrow {
    max-width: 28rem;
}
.narrow-page {
    margin: 0 auto;
    display: flex;
    min-height: 100vh;
    max-width: 48rem;
    flex-direction: column;
    gap: 40px;
    padding: 64px 24px;
}

/* the mark never squeezes beside a long name */
.logo,
.logo-sm,
.logo-md,
.logo-lg,
.logo-xl,
.logo-xs {
    flex-shrink: 0;
}
.logo {
    width: 28px;
    height: 28px;
}
.logo-sm {
    width: 28px;
    height: 28px;
}
.logo-md {
    width: 32px;
    height: 32px;
}
.logo-lg {
    width: 36px;
    height: 36px;
}
.logo-xl {
    width: 56px;
    height: 56px;
}

.badge-alpha {
    border: 1px solid #f2bd4899;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gold);
}
.badge-sm {
    padding: 2px 8px;
    font-size: 12px;
}
.pill {
    border-radius: 999px;
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
}

/* ---- Surfaces ---- */

.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 10px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 20px;
}
.card-gold {
    box-shadow: inset 0 0 0 1px #f2bd4899;
}
/* a whole card is the link: its fill and ring answer hover, its fill answers a press (a surface this
   big doesn't scale) */
.card-link {
    gap: 8px;
    padding: 16px;
    transition:
        background-color 90ms ease-out,
        box-shadow 90ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .card-link:hover {
        background: var(--raised);
        box-shadow: inset 0 0 0 1px var(--line-hover);
    }
}
.card-link:active {
    background: var(--hover);
}

/* the dashboard (decision 0326): what needs you, then a shelf per show of its edits and recordings */
.dash-status {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 4px;
}
.dash-status-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    color: var(--muted);
    transition: color 90ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .dash-status-item:hover {
        color: var(--text);
    }
}
.dash-meter {
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background: var(--hover);
    overflow: hidden;
}
.dash-meter i {
    display: block;
    height: 100%;
    background: var(--gold);
}
.dash-section {
    display: grid;
    gap: 8px;
    margin-bottom: 28px;
    min-width: 0;
}
.dash-needs,
.dash-links,
.dash-shelf {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dash-needs {
    display: grid;
    gap: 8px;
}
.dash-need {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}
.dash-need-gold {
    box-shadow: inset 0 0 0 1px #f2bd4866;
}
.dash-need-text {
    display: grid;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.dash-need-title {
    font-weight: 600;
    text-wrap: pretty;
}
.dash-shelf-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}
.dash-shelf-name {
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
    .dash-shelf-name:hover {
        color: var(--gold);
    }
}
.dash-spacer {
    flex: 1;
}
/* a row that scrolls sideways; the next tile peeks in at the edge so it reads as more */
.dash-shelf {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}
.dash-tile {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    scroll-snap-align: start;
}
.dash-tile-link {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.dash-tile .drive-thumb {
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow 90ms ease-out;
}
.dash-tile-edit .drive-thumb {
    box-shadow: inset 0 0 0 1px #f2bd4855;
}
@media (hover: hover) and (pointer: fine) {
    a.dash-tile-link:hover .drive-thumb {
        box-shadow: inset 0 0 0 1px var(--line-strong);
    }
    .dash-tile-edit a.dash-tile-link:hover .drive-thumb {
        box-shadow: inset 0 0 0 1px var(--gold);
    }
}
.dash-tile-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-tile-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-tile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}
.dash-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: var(--r-s);
    background: var(--raised);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
    .dash-chip:hover {
        color: var(--text);
    }
}
.dash-derived {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-derived-link {
    color: var(--text);
}
@media (hover: hover) and (pointer: fine) {
    .dash-derived-link:hover {
        color: var(--gold);
    }
}
.dash-tile-more {
    align-content: stretch;
}
.dash-more {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px var(--line);
}
.dash-link-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}
.dash-link-row:first-child {
    border-top: 0;
}
@media (max-width: 640px) {
    .dash-shelf {
        grid-auto-columns: 72%;
    }
    .dash-need {
        flex-wrap: wrap;
    }
}

.alpha {
    display: flex;
    gap: 12px;
    border-radius: 10px;
    background: #f2bd480d;
    box-shadow: inset 0 0 0 1px #f2bd4880;
    padding: 16px;
    text-align: left;
}
.alpha-dot {
    margin-top: 7px;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--gold);
}

.notes {
    border-radius: 10px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}
.notes summary {
    display: flex;
    cursor: pointer;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}
.notes summary::-webkit-details-marker {
    display: none;
}
@media (hover: hover) and (pointer: fine) {
    .notes summary:hover {
        color: var(--text);
    }
}
.notes[open] .chevron {
    transform: rotate(180deg);
}
.chevron {
    transition: transform 140ms ease-out;
}
.prose {
    border-top: 1px solid var(--line);
    padding: 16px;
    font-size: 14px;
}
.prose a {
    color: var(--gold);
}
.prose h2,
.prose h3,
.prose h4 {
    margin-top: 16px;
    font-weight: 600;
}
.prose p {
    margin: 12px 0;
}
.prose ul,
.prose ol {
    padding-left: 20px;
}
.prose ul {
    list-style: disc;
}
.prose li {
    margin: 4px 0;
}
.prose code {
    font-family: var(--mono);
    font-size: 13px;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 12px;
}

.notice,
.error-note {
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    box-shadow: inset 0 0 0 1px var(--line-strong);
    background: var(--raised);
}
.error-note {
    box-shadow: inset 0 0 0 1px #f2bd4880;
}

.danger-zone {
    margin-top: 40px;
}

/* ---- Controls ---- */

.btn {
    display: inline-flex;
    min-height: 36px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 6px;
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition:
        background-color 90ms ease-out,
        box-shadow 90ms ease-out,
        color 90ms ease-out,
        transform 140ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        background: var(--hover);
        box-shadow: inset 0 0 0 1px var(--line-hover);
    }
}
.btn:active {
    transform: scale(0.96);
}
.btn:disabled {
    cursor: default;
    opacity: 0.4;
    transform: none;
}
.btn:focus-visible,
.input:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.btn-primary {
    background: var(--gold);
    box-shadow: none;
    color: var(--on-gold);
    font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        background: var(--gold-press);
        box-shadow: none;
    }
}
.btn-primary:active {
    background: var(--gold-press);
}
.btn-filled {
    background: var(--hover);
}
.btn-ghost {
    background: transparent;
    box-shadow: none;
}
.btn-danger {
    color: var(--text);
}
@media (hover: hover) and (pointer: fine) {
    .btn-danger:hover {
        box-shadow: inset 0 0 0 1px var(--line-strong);
    }
}
/* A secondary or destructive action beside the main one: no fill until hovered. Never red (red is live). */
.btn-quiet {
    background: transparent;
    box-shadow: none;
    color: var(--muted);
}
@media (hover: hover) and (pointer: fine) {
    .btn-quiet:hover {
        background: var(--raised);
        box-shadow: inset 0 0 0 1px var(--line);
        color: var(--text);
    }
}
.btn-sm {
    min-height: 28px;
    padding: 0 10px;
    font-size: 13px;
}

.field {
    display: grid;
    gap: 8px;
}
.input {
    width: 100%;
    min-height: 36px;
    border-radius: 6px;
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    padding: 6px 12px;
    font-size: 14px;
    outline: none;
}
.input::placeholder {
    color: var(--faint);
}
.input-sm {
    min-height: 28px;
    font-size: 13px;
}
.form {
    max-width: 28rem;
}

.dot,
.size-2 {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}
.dot,
.rounded-full {
    border-radius: 999px;
}
.bg-faint {
    background: var(--faint);
}
.bg-gold {
    background: var(--gold);
}
.bg-ok {
    background: var(--ok);
}
/* red is only for live (brand) */
.bg-live {
    background: var(--live);
}
.live {
    color: var(--live);
}

/* A month's use against its cap (Settings › Multistream). */
.usage {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line-strong);
}
.usage-fill {
    height: 100%;
    background: var(--gold);
}
.platform-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--muted);
}

/* ---- Auth ---- */

.auth {
    display: flex;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.auth-card {
    display: flex;
    width: 100%;
    max-width: 24rem;
    flex-direction: column;
    gap: 24px;
}
.auth-logo {
    display: flex;
    justify-content: center;
}

/* ---- Signed in ---- */

.shell {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    width: 15rem;
    flex-shrink: 0;
    flex-direction: column;
    gap: 24px;
    border-right: 1px solid var(--line);
    background: var(--surface);
    padding: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wordmark {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 600;
}
.nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-item {
    display: flex;
    min-height: 32px;
    align-items: center;
    border-radius: var(--r-control);
    padding: 0 10px;
    font-size: 14px;
    white-space: nowrap;
    color: var(--muted);
    transition:
        background-color 90ms ease-out,
        color 90ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .nav-item:hover {
        background: var(--raised);
        color: var(--text);
    }
}
.nav-item.current {
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--text);
}
.sidebar-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* name, email and Log out line up with the nav's labels */
.who {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 0 10px;
}
.sidebar-foot .btn {
    align-self: flex-start;
}
.content {
    flex: 1;
    min-width: 0;
    padding: 32px;
}
.page {
    display: flex;
    width: 100%;
    max-width: 48rem;
    flex-direction: column;
    gap: 24px;
}
/* five tabs don't fit a phone: they scroll sideways instead of widening the page */
.tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: inset 0 -1px 0 var(--line);
}
.tabs::-webkit-scrollbar {
    display: none;
}
.tab {
    flex-shrink: 0;
    border-bottom: 2px solid transparent;
    border-radius: var(--r-control) var(--r-control) 0 0;
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
    color: var(--muted);
    transition: color 90ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .tab:hover {
        color: var(--text);
    }
}
.tab:focus-visible {
    outline-offset: -2px;
}
.tab.current {
    border-color: var(--gold);
    color: var(--text);
}
@media (max-width: 767px) {
    .shell {
        flex-direction: column;
    }
    /* the brand and Log out share the top line; the nav scrolls sideways under them */
    .sidebar {
        position: static;
        height: auto;
        width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 12px 20px;
    }
    .nav {
        order: 3;
        /* grow: the negative margins leave 40px of the line free, and the row has to reach the right edge */
        flex: 1 0 100%;
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -20px;
        padding: 2px 20px;
    }
    .nav::-webkit-scrollbar {
        display: none;
    }
    /* both rows run to the screen's edges and fade out there, so an item that's cut off reads as
       "there's more this way" (the scrollbar is hidden). The fade is as wide as the row's own
       padding, so nothing that fits is dimmed. */
    .tabs {
        margin: 0 -20px;
        padding: 0 20px;
    }
    .nav {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 20px), transparent);
        mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 20px), transparent);
    }
    .tabs {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent);
        mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent);
    }
    .nav-item:first-child {
        margin-left: -10px;
    }
    .nav-item:focus-visible {
        outline-offset: -2px;
    }
    .sidebar-foot {
        margin-top: 0;
        margin-left: auto;
        flex-direction: row;
        align-items: center;
    }
    .sidebar-foot .btn {
        margin-right: -10px;
    }
    .who {
        display: none;
    }
    .content {
        padding: 20px;
    }
    .list-row {
        flex-direction: column;
        align-items: stretch;
    }
    .list-row > .row,
    .list-row > form {
        justify-content: flex-start;
    }
}

/* ---- Join (guests) ---- */

.join {
    margin: 0 auto;
    display: flex;
    min-height: 100vh;
    max-width: 64rem;
    flex-direction: column;
    gap: 24px;
    padding: 32px 24px;
}
.join-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}
/* the room's name takes the line on a phone; the status drops under it */
.join-title {
    display: flex;
    flex: 1 1 20rem;
    min-width: 0;
    align-items: center;
    gap: 12px;
    overflow-wrap: anywhere;
}
.join-grid {
    display: grid;
    gap: 16px;
}
.join [data-join-button]:disabled {
    background: var(--raised);
    color: var(--muted);
    box-shadow: inset 0 0 0 1px var(--line);
    opacity: 1;
}
@media (min-width: 768px) {
    .join-grid {
        grid-template-columns: 2fr 1fr;
    }
}
.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}
.video-frame video {
    width: 100%;
    height: 100%;
}
.video-contain {
    object-fit: contain;
}
.video-cover {
    object-fit: cover;
}
.mirror {
    transform: scaleX(-1);
}
/* over the guest page's big video while it's the backstage room (decision 0174) */
.video-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--gold);
    color: var(--on-gold);
}
.video-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--faint);
}
.self-empty {
    position: absolute;
    inset: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}
.self-empty-title {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}
.self-empty-hint {
    max-width: 26ch;
    font-size: 12px;
    text-wrap: balance;
}
.self-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: var(--r-s);
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
}
.self-empty:not([hidden]) ~ .meter {
    visibility: hidden;
}
.meter {
    position: absolute;
    bottom: 8px;
    left: 8px;
    height: 4px;
    width: 96px;
    overflow: hidden;
    border-radius: 999px;
    background: #ffffff1a;
}
.meter-fill {
    height: 100%;
    width: 0;
    background: var(--ok);
}
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* Production controls: they never move. */
.btn-control {
    flex: 1;
    justify-content: space-between;
    transition: none;
}
.btn-control:active {
    transform: none;
}
.btn-leave {
    flex: 0 0 auto;
}
.btn-full {
    flex-basis: 100%;
}

/* ---- A guest's own channels (decision 0061) ---- */

.own {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}
.platform-picks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.platform-pick {
    padding: 0 8px;
}
.platform-pick[aria-checked='true'] {
    box-shadow: inset 0 0 0 2px var(--gold);
}
.btn-wide {
    width: 100%;
}

/* ---- Setup controls (src/web/controls.tsx) ----
   Switch, segmented choice, copy field and settings group, shared by the signed-in pages.
   They move only to confirm a click (140 ms, ease-out); Reduce Motion keeps only fades. */

.settings-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}
.settings-rows {
    display: flex;
    flex-direction: column;
}

/* A setting: words on the left, its control on the right; the control drops below when narrow. */
.setting {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 16px;
    row-gap: 8px;
    padding: 8px 0;
}
.setting-text {
    display: flex;
    flex: 1 1 12rem;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.setting-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}
.setting-desc {
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
    text-wrap: pretty;
}
.setting-control {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

/* Settings that only apply when the one above is on: they open in place. */
.reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 140ms var(--ease-out),
        opacity 140ms ease-out;
}
.reveal[data-open='true'] {
    grid-template-rows: 1fr;
    opacity: 1;
}
.reveal-inner {
    min-height: 0;
    overflow: hidden;
    /* room for focus rings, which overflow would clip */
    margin: 0 -4px;
    padding: 0 4px;
}

/* On/off. A 36 × 20 track; the hit area grows to 56 × 40 without moving anything. */
.switch {
    position: relative;
    display: inline-flex;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    align-items: center;
    border-radius: 999px;
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    padding: 2px;
    transition:
        background-color 140ms ease-out,
        box-shadow 140ms ease-out,
        transform 140ms ease-out;
}
.switch::after {
    content: '';
    position: absolute;
    inset: -10px;
}
.switch-thumb {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--muted);
    transition:
        transform 140ms var(--ease-out),
        background-color 140ms ease-out;
}
.switch[aria-checked='true'] {
    background: var(--gold);
    box-shadow: none;
}
.switch[aria-checked='true'] .switch-thumb {
    transform: translateX(16px);
    background: var(--on-gold);
}
@media (hover: hover) and (pointer: fine) {
    .switch:hover:not(:disabled) {
        box-shadow: inset 0 0 0 1px var(--line-hover);
    }
    .switch:hover:not(:disabled) .switch-thumb {
        background: var(--text);
    }
    .switch[aria-checked='true']:hover:not(:disabled) {
        background: var(--gold-press);
        box-shadow: none;
    }
    .switch[aria-checked='true']:hover:not(:disabled) .switch-thumb {
        background: var(--on-gold);
    }
}
.switch:active:not(:disabled) {
    transform: scale(0.96);
}
.switch:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

/* One of a few: segments 2 pt inside a well, so the well's radius is the segment's plus 2. */
.segmented {
    display: inline-flex;
    gap: 2px;
    border-radius: calc(var(--r-control) + 2px);
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 2px;
}
.segment {
    min-width: 32px;
    height: 28px;
    cursor: pointer;
    border-radius: var(--r-control);
    background: transparent;
    padding: 0 8px;
    font-family: var(--mono);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    transition:
        background-color 90ms ease-out,
        color 90ms ease-out,
        transform 140ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .segment:hover:not([aria-pressed='true']):not(:disabled) {
        background: var(--raised);
        color: var(--text);
    }
}
.segment[aria-pressed='true'] {
    background: var(--gold);
    color: var(--on-gold);
    font-weight: 600;
}
.segment:active:not(:disabled) {
    transform: scale(0.96);
}
.segment:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.switch:focus-visible,
.segment:focus-visible,
.copy-field:has(.copy-value:focus-visible) {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* A value to copy: mono, cut in the middle so its end stays visible. The button sits 4 pt inside
   the well (well radius 10 = button radius 6 + 4). */
.copy-field {
    display: flex;
    min-height: 36px;
    min-width: 0;
    align-items: center;
    gap: 8px;
    border-radius: var(--r-panel);
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 4px 4px 4px 12px;
}
.copy-value {
    display: flex;
    flex: 1;
    min-width: 0;
    cursor: text;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    user-select: all;
    outline: none;
}
.copy-head {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.copy-tail {
    flex-shrink: 0;
}
.copy-btn {
    flex-shrink: 0;
    gap: 6px;
    background: var(--raised);
    /* the icon side 2 pt less than the text side, so it looks centred */
    padding: 0 12px 0 10px;
}
.swap-icons,
.swap-labels {
    display: grid;
}
/* Both icons and both labels share one cell: the button is as wide as "Copied" either way. */
.swap-icons > *,
.swap-labels > * {
    grid-area: 1 / 1;
    transition:
        opacity 300ms var(--ease-swap),
        transform 300ms var(--ease-swap),
        filter 300ms var(--ease-swap);
}
.swap-icons > svg {
    width: 14px;
    height: 14px;
}
.swap-b,
[data-copied='true'] .swap-a {
    opacity: 0;
    filter: blur(4px);
}
.swap-icons > .swap-b,
[data-copied='true'] .swap-icons > .swap-a {
    transform: scale(0.25);
}
[data-copied='true'] .swap-b {
    opacity: 1;
    filter: blur(0);
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .switch,
    .switch-thumb,
    .segment {
        transition-property: opacity, background-color, color;
    }
    .swap-icons > *,
    .swap-labels > * {
        transition-property: opacity;
        filter: none !important;
        transform: none !important;
    }
    .switch:active,
    .segment:active,
    .btn:active {
        transform: none;
    }
}

/* ---- Guest rooms ---- */

.page-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.room {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: var(--r-group);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 16px 20px 12px;
}
.room-closed {
    padding-bottom: 16px;
    background: transparent;
}
.room-closed .room-name {
    color: var(--muted);
}
.room-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.room-title {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.room-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.room-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 13px;
    color: var(--muted);
}
.room-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.room-invite {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.room .settings-group {
    padding-top: 12px;
}
/* A quiet button's text lines up with the edge and the name, not its (invisible) box. */
.room-head .btn-quiet {
    margin-right: -10px;
}
@media (max-width: 479px) {
    .room {
        padding: 16px 16px 12px;
    }
}

/* ---- Licenses (/licenses) ---- */

.pretty {
    text-wrap: pretty;
}
.license-list {
    display: flex;
    flex-direction: column;
    list-style: none;
}
.license-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-height: 40px;
    padding: 10px 0;
    box-shadow: inset 0 -1px 0 var(--line);
    font-size: 14px;
}
.license-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 90ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .license-name:hover {
        color: var(--gold);
    }
}
.license-version {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--faint);
}
.license-id {
    margin-left: auto;
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

/* ---- JCSS Multistream plan (Settings › Multistream, decision 0075) ---- */

.plan-card {
    gap: 16px;
}
.plan-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.plan-price {
    display: flex;
    flex-shrink: 0;
    align-items: baseline;
    gap: 4px;
}
.plan-amount {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}
.plan-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    font-size: 14px;
    color: var(--muted);
    text-wrap: pretty;
}
.plan-points li {
    position: relative;
    padding-left: 16px;
}
.plan-points li::before {
    content: '';
    position: absolute;
    top: 0.6em;
    left: 2px;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--faint);
}

/* ---- Shows (decision 0110): the account's shared shows and one show's people ---- */

.live-tag {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--live);
}
/* one group, rows split by hairlines: the group's radius is the rows' (square) plus its inset */
.show-list {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--r-group);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}
.show-row {
    display: flex;
    min-height: 64px;
    align-items: center;
    gap: 16px;
    padding: 12px 16px 12px 20px;
    box-shadow: none;
    transition: background-color 90ms ease-out;
}
.show-row + .show-row {
    border-top: 1px solid var(--line);
}
.show-row:active {
    background: var(--hover);
}
@media (hover: hover) and (pointer: fine) {
    .show-row:hover {
        background: var(--raised);
    }
    .show-row:hover:active {
        background: var(--hover);
    }
    .show-row:hover .show-row-chevron {
        color: var(--text);
        transform: translateX(2px);
    }
}
.show-row:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}
.show-row-main {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}
.show-row-name {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}
.show-row-meta,
.person-meta {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    font-size: 13px;
    color: var(--muted);
}
/* one line: the email gives way, so a wrapped line never starts with its "·" */
.person-meta {
    flex-wrap: nowrap;
}
.person-meta > * {
    flex-shrink: 0;
}
.person-meta > .truncate {
    flex-shrink: 1;
}
.show-row-side {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
}
.show-row-chevron {
    width: 14px;
    height: 14px;
    color: var(--faint);
    transition:
        color 90ms ease-out,
        transform 140ms var(--ease-out);
}
.invitation-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 16px 16px 16px 20px;
}
/* the words take the room, so Accept sits at the right until the line is too narrow */
.invitation-row > .stack-1 {
    flex: 1 1 20rem;
}

.back-link {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    margin-left: -4px;
    font-size: 13px;
    color: var(--muted);
    box-shadow: none;
    transition: color 90ms ease-out;
}
.back-link svg {
    width: 14px;
    height: 14px;
}
@media (hover: hover) and (pointer: fine) {
    .back-link:hover {
        color: var(--text);
    }
}
.show-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.show-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    overflow-wrap: anywhere;
}
.plan-note {
    margin-top: -8px;
}

/* ---- The drive (decision 0272) ---- */

.drive-new {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.drive-new .input {
    flex: 1 1 14rem;
    min-width: 0;
}
.drive-new .error-note {
    flex-basis: 100%;
}
/* a project's row, with Delete beside the link rather than inside it */
.drive-row {
    display: flex;
    align-items: center;
}
.drive-row + .drive-row {
    border-top: 1px solid var(--line);
}
.drive-row > .show-row {
    flex: 1;
    min-width: 0;
}
/* one line, as .person-meta: the last part gives way, so no line starts or ends with a "·" */
.drive-row .show-row-meta,
.drive-file .show-row-meta {
    flex-wrap: nowrap;
}
.drive-row .show-row-meta > *,
.drive-file .show-row-meta > * {
    flex-shrink: 0;
}
.drive-row .show-row-meta > .truncate,
.drive-file .show-row-meta > .truncate {
    flex-shrink: 1;
}
.drive-row-action {
    margin-right: 12px;
}
.drive-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 12px 16px 12px 20px;
}
.drive-file + .drive-file {
    border-top: 1px solid var(--line);
}
.drive-file > .show-row-main {
    flex: 1 1 14rem;
}
.drive-file .usage {
    margin-top: 6px;
}
.drive-file .show-row-side {
    margin-left: auto;
    gap: 8px;
}
.drive-drop {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    border-radius: var(--r-group);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    background: var(--surface);
    padding: 16px 20px;
    cursor: pointer;
    transition: box-shadow 90ms ease-out;
}
.drive-drop > .small {
    flex: 1 1 16rem;
}
.drive-drop.over,
.drive-drop:focus-within {
    box-shadow: inset 0 0 0 1px var(--gold);
}

/* the grid: folders and files as cards, a picture on top (decision 0272) */
.drive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 12px;
    padding: 0;
    list-style: none;
}
@media (max-width: 480px) {
    .drive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .drive-card-actions {
        flex-direction: column;
    }
}
.drive-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--r-panel);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow 90ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .drive-card:hover {
        box-shadow: inset 0 0 0 1px var(--line-strong);
    }
}
.drive-card:focus-within {
    box-shadow: inset 0 0 0 1px var(--gold);
}
.drive-card-link {
    display: flex;
    min-width: 0;
    flex-direction: column;
    box-shadow: none;
}
.drive-card-link:focus-visible {
    outline: none;
}
.drive-card-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px 12px;
}
.drive-card-name {
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.drive-card-meta {
    overflow: hidden;
    font-size: 12px;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.drive-card-actions {
    display: flex;
    gap: 4px;
    padding: 0 8px 8px;
}
.drive-card-actions .btn {
    flex: 1;
}
.drive-card .pill {
    position: absolute;
    top: 8px;
    left: 8px;
}
.drive-thumb {
    position: relative;
    display: grid;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    background: var(--well);
}
.drive-thumb video,
.drive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.drive-thumb-ending {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--faint);
}
.drive-thumb-play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: #0b0b0cb3;
    color: var(--text);
}
.drive-thumb-play svg {
    width: 12px;
    height: 12px;
}
.drive-card-icon {
    width: 40px;
    height: 40px;
    color: var(--muted);
}
.drive-card:has(.drive-card-link:hover) .drive-card-icon {
    color: var(--gold);
}
.drive-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.drive-view {
    display: flex;
    gap: 2px;
}
.drive-view .btn.on {
    background: var(--raised);
    color: var(--text);
}

.invite-form {
    display: flex;
    max-width: 36rem;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
}
.invite-form fieldset {
    min-width: 0;
}
.invite-form legend {
    margin-bottom: 8px;
}
.role-picks {
    display: grid;
    gap: 8px;
}
@media (min-width: 640px) {
    .role-picks {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* a choice card: the radio is the whole card (well 10 = control 6 + 4) */
.role-pick {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 10px;
    border-radius: var(--r-panel);
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 12px;
    transition:
        background-color 90ms ease-out,
        box-shadow 90ms ease-out,
        transform 140ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .role-pick:hover {
        box-shadow: inset 0 0 0 1px var(--line-hover);
    }
}
.role-pick:active {
    transform: scale(0.98);
}
.role-pick:has(input:checked) {
    background: #f2bd480d;
    box-shadow: inset 0 0 0 1px #f2bd4899;
}
.role-pick:has(input:focus-visible) {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.role-pick input,
.check input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--gold);
}
.role-pick-name {
    font-size: 14px;
    font-weight: 600;
}
.check {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 10px;
}
.made-invite {
    max-width: 36rem;
    padding-top: 8px;
}

.people {
    display: flex;
    flex-direction: column;
    list-style: none;
}
.person {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
}
.person + .person {
    border-top: 1px solid var(--line);
}
.person-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}
.person-initial {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.person-initial svg {
    width: 15px;
    height: 15px;
}
.person-initial-quiet {
    background: transparent;
    color: var(--faint);
}
.person-text {
    display: flex;
    min-width: 0;
    flex: 1 1 14rem;
    flex-direction: column;
    gap: 1px;
}
.person-name {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}
.person-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.person-actions > .btn-quiet:last-child {
    margin-right: -10px;
}
.role-select {
    width: auto;
    min-width: 7.5rem;
    margin-right: 4px;
    cursor: pointer;
}
.disclosure svg {
    width: 12px;
    height: 12px;
    margin-right: -2px;
    transition: transform 140ms var(--ease-out);
}
.disclosure[aria-expanded='true'] svg {
    transform: rotate(180deg);
}
.perms {
    margin-left: 44px;
    border-radius: var(--r-panel);
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 4px 12px;
}
@media (max-width: 479px) {
    .perms {
        margin-left: 0;
    }
    .show-head {
        flex-direction: column;
    }
    .show-title {
        font-size: 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .show-row-chevron,
    .disclosure svg,
    .role-pick {
        transition-property: color, background-color, box-shadow;
    }
}

/* ---- JCSS Pro (decision 0109): the badge, the preview banner, /pro and Settings › Plan ---- */

/* the same pill as the apps' ProBadge: gold on a faint gold fill with a hairline gold border */
.badge-pro {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f2bd481a;
    box-shadow: inset 0 0 0 1px #f2bd4866;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 16px;
    color: var(--gold);
}
.badge-pro-off {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--line-strong);
    color: var(--faint);
}
.preview-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: -32px -32px 24px;
    border-bottom: 1px solid #f2bd4840;
    background: #f2bd4814;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--gold);
}
@media (max-width: 767px) {
    .preview-banner {
        margin: -20px -20px 20px;
    }
}
.preview-banner button {
    font: inherit;
    font-weight: 600;
    color: var(--text);
    background: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.pricing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 720px) {
    .pricing {
        grid-template-columns: 1fr;
    }
}
.pricing .card {
    gap: 16px;
}
.plan-points.included li::before {
    background: var(--gold);
}
.faq {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq dt {
    font-weight: 600;
}
.faq dd {
    margin-top: 4px;
    font-size: 14px;
    color: var(--muted);
    text-wrap: pretty;
}

/* Requests (decision 0082): the public page and the admin list. */
.request-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.request-pre {
    max-height: 320px;
    overflow: auto;
    border-radius: var(--r-control);
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 12px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--muted);
}
.request-plugins {
    display: flex;
    flex-direction: column;
    list-style: none;
}
.request-plugins li {
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
}
.request-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    list-style: none;
    font-size: 12px;
    color: var(--faint);
}
.request-steps li {
    border-top: 2px solid var(--line);
    padding-top: 6px;
}
.request-steps li[data-done='true'] {
    border-color: var(--gold);
    color: var(--muted);
}
.request-steps li[aria-current='step'] {
    color: var(--text);
}
.request-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.request-table th {
    border-bottom: 1px solid var(--line);
    padding: 6px 8px;
    text-align: left;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--faint);
}
.request-table td {
    border-bottom: 1px solid var(--line);
    padding: 8px;
}
.request-table .num {
    text-align: right;
}
.request-table .when {
    white-space: nowrap;
}
/* five columns on a phone: tighter cells, so "Last asked" stays on one line and on screen */
@media (max-width: 480px) {
    .request-table th,
    .request-table td {
        padding-inline: 4px;
    }
}

/* ---- /admin/costs (decision 0121): totals, the accounts table, daily bars ---- */

.cost-totals {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.cost-total {
    gap: 4px;
    padding: 16px;
}
.cost-value {
    font-size: 22px;
    font-weight: 600;
}
.cost-scroll {
    overflow-x: auto;
}
.cost-selected td {
    background: var(--raised);
}
.cost-flag {
    margin-left: 8px;
    color: var(--gold);
}
.cost-note {
    display: block;
    margin-top: 2px;
}
.cost-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
}
.cost-bar-row {
    display: grid;
    grid-template-columns: 44px 1fr 72px;
    align-items: center;
    gap: 8px;
}
.cost-bar-row > :last-child {
    text-align: right;
}
.cost-bar-track {
    height: 8px;
    border-radius: var(--r-xs);
    background: var(--well);
}
.cost-bar {
    display: block;
    height: 100%;
    border-radius: var(--r-xs);
    background: var(--gold);
}
.cost-summary {
    cursor: pointer;
}

/* ---- The public site: home, /manifesto, /churches, /privacy, /terms (src/web/site.tsx) ---- */

.site {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}
.site-main {
    margin: 0 auto;
    display: flex;
    width: 100%;
    max-width: 1080px;
    flex: 1;
    flex-direction: column;
    gap: 112px;
    padding: 0 24px 112px;
}
@media (max-width: 720px) {
    .site-main {
        gap: 80px;
        padding-bottom: 80px;
    }
}
.site-center {
    justify-content: center;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #0b0b0ccc;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
}
.site-nav-inner {
    margin: 0 auto;
    display: flex;
    max-width: 1080px;
    height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
}
.site-brand {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 10px;
}
.site-brand:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: var(--r-control);
}
.site-wordmark {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}
.site-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    border-radius: var(--r-control);
    padding: 0 12px;
    font-size: 14px;
    color: var(--muted);
    transition: color 90ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .site-link:hover {
        color: var(--text);
    }
}
.site-link[data-status='active'] {
    color: var(--text);
}
.site-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}
.site-links .btn {
    margin-left: 8px;
}
@media (max-width: 800px) {
    .site-link-wider {
        display: none;
    }
}
@media (max-width: 560px) {
    .site-link-wide {
        display: none;
    }
}
.logo-xs {
    width: 18px;
    height: 18px;
}
.btn-lg {
    min-height: 44px;
    padding: 0 20px;
    font-size: 15px;
}

/* hero: its parts rise in, staggered, once */
.site-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 112px;
    text-align: center;
}
.site-hero > * {
    animation: site-rise 600ms var(--ease-out) both;
}
.site-hero > :nth-child(2) {
    animation-delay: 60ms;
}
.site-hero > :nth-child(3) {
    animation-delay: 120ms;
}
.site-hero > :nth-child(n + 4) {
    animation-delay: 180ms;
}
.site-picture {
    margin-top: -48px;
    animation: site-rise 700ms 240ms var(--ease-out) both;
}
@keyframes site-rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .site-hero > *,
    .site-picture {
        animation: none;
    }
}
.site-hero-left {
    align-items: flex-start;
    text-align: left;
}
@media (max-width: 720px) {
    .site-hero {
        padding-top: 72px;
    }
    .site-picture {
        margin-top: -32px;
    }
}
.site-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.site-h1 {
    max-width: 14ch;
    font-family: var(--display);
    font-size: clamp(52px, 9vw, 96px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 0.95;
}
.site-h1-sm {
    max-width: 16ch;
    font-size: clamp(44px, 7vw, 72px);
}
.site-sub {
    max-width: 36rem;
    font-size: 18px;
    line-height: 1.55;
    color: var(--muted);
}
.site-hero .site-sub,
.site-band .site-sub {
    margin-bottom: 8px;
}
.site-h2 {
    font-family: var(--display);
    font-size: clamp(34px, 4.5vw, 44px);
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.05;
}
.site-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    scroll-margin-top: 84px;
}

/* the product picture (src/web/studio-picture.tsx) */
.studio-picture {
    overflow: hidden;
    border-radius: var(--r-group);
    background: var(--surface);
    box-shadow:
        inset 0 0 0 1px var(--line-hover),
        0 24px 80px -24px #000000cc;
}
.studio-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: var(--bg);
}

.feature,
.point {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.feature-title {
    font-size: 16px;
    font-weight: 600;
}
.feature-body {
    font-size: 15px;
    color: var(--muted);
}

/* Compare: scrolls sideways on narrow screens, the row names stay put */
.compare-scroll {
    overflow-x: auto;
    border-radius: var(--r-panel);
    box-shadow: inset 0 0 0 1px var(--line);
}
.compare-scroll:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.compare {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 14px;
}
.compare th,
.compare td {
    padding: 12px 14px;
    text-align: center;
    white-space: nowrap;
    color: var(--muted);
}
.compare tbody tr + tr > * {
    box-shadow: inset 0 1px 0 var(--line);
}
.compare thead th {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    box-shadow: inset 0 -1px 0 var(--line);
}
.compare tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bg);
    text-align: left;
    font-weight: 500;
    color: var(--text);
}
.compare .compare-ours {
    background: #f2bd480d;
    color: var(--text);
}
.compare thead .compare-ours {
    color: var(--gold);
}
.compare-yes {
    color: var(--text);
}
.compare-ours .compare-yes {
    color: var(--gold);
}
.compare-no {
    color: var(--faint);
}

/* the closing band */
.site-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-radius: var(--r-group);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 72px 24px;
    text-align: center;
}
.site-band-left {
    align-items: flex-start;
    padding: 48px 40px;
    text-align: left;
}
.site-alpha {
    margin-top: 16px;
    max-width: 28rem;
}
@media (max-width: 720px) {
    .site-band,
    .site-band-left {
        padding: 48px 20px;
    }
}

/* /churches */
.point-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 48px;
    list-style: none;
}
@media (max-width: 600px) {
    .point-list {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Who the home page talks to (src/web/audiences.tsx): the apps' segmented control, with words */
.audience {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
/* The hero's way in (src/routes/index.tsx › GetStarted): record in the studio, or your agent. */
.get-started {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.get-started-segment {
    height: 32px;
    padding: 0 12px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
}
@media (pointer: coarse) {
    .get-started-segment {
        height: 40px;
    }
}
/* Two buttons as wide as the wider one: side by side, or stacked on a phone. */
.button-pair {
    display: inline-grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: 12px;
}
@media (max-width: 520px) {
    .button-pair {
        grid-auto-flow: row;
    }
}
.copy-btn.btn-primary {
    background: var(--gold);
    padding: 0 20px 0 18px;
}
@media (hover: hover) and (pointer: fine) {
    .copy-btn.btn-primary:hover {
        background: var(--gold-press);
    }
}
.copy-btn.btn-lg .swap-icons > svg {
    width: 16px;
    height: 16px;
}

/* Emailing yourself the download link from a phone (src/web/site.tsx › EmailDownloadLink). */
.send-link {
    width: min(100% - 32px, 400px);
    margin: auto;
    border: 0;
    border-radius: var(--r-group);
    background: var(--surface);
    box-shadow:
        inset 0 0 0 1px var(--line-strong),
        0 24px 64px #000000b3;
    padding: 0;
    color: var(--text);
}
.send-link::backdrop {
    background: #0b0b0cb3;
    backdrop-filter: blur(8px);
}
.send-link[open] {
    animation: send-link-in 220ms var(--ease-out);
}
@keyframes send-link-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
}
@media (prefers-reduced-motion: reduce) {
    .send-link[open] {
        animation: none;
    }
}
.send-link-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    text-align: left;
}
.send-link .input {
    min-height: 44px;
    font-size: 16px; /* 16 px or more: iOS Safari doesn't zoom in on focus */
}

.audience-label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}
.audience-segment {
    height: 32px;
    padding: 0 12px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
}
@media (pointer: coarse) {
    .audience-segment {
        height: 40px;
    }
}
@media (max-width: 420px) {
    .audience-segment {
        padding: 0 9px;
    }
}
/* the narrowest phones (320): five words still have to fit one row */
@media (max-width: 359px) {
    .audience-segment {
        padding: 0 5px;
        font-size: 12px;
    }
}

/* Every audience's words share one cell, so switching never moves the page under you; the new one
   fades in through a little blur, the old one goes at once. */
.hero-variants {
    display: grid;
}
.hero-variant {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    visibility: hidden;
    opacity: 0;
    filter: blur(4px);
}
.hero-variant[data-on] {
    visibility: visible;
    opacity: 1;
    filter: none;
    transition:
        opacity 220ms var(--ease-out),
        filter 220ms var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
    .hero-variant {
        filter: none;
    }
}

/* the cards move to their new places when the audience changes (a view transition) */
::view-transition-group(*) {
    animation-duration: 320ms;
    animation-timing-function: var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none;
    }
}

.site-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}
.site-section-head .audience {
    justify-content: flex-start;
}

/* What will you record first: a stage (the studio doing it) over the words. Card 14 = stage 10 + 4. */
.usecases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
}
.usecase {
    display: flex;
    flex-direction: column;
    border-radius: var(--r-group);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 4px;
}
.usecase-stage {
    display: flex;
    aspect-ratio: 4 / 3;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--r-panel);
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 16px;
    container-type: inline-size;
}
.usecase-words {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 18px;
}
.usecase-kicker {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}
.usecase-say {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
}
.usecase-get {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
}
.usecase-arrow {
    color: var(--gold);
}
.usecase-more {
    margin-top: 8px;
    font-size: 14px;
}
.usecase-lead {
    grid-column: 1 / -1;
    flex-direction: row;
}
.usecase-lead .usecase-stage {
    flex: 1.5;
    aspect-ratio: 16 / 9;
    padding: 32px;
}
.usecase-lead .usecase-words {
    flex: 1;
    justify-content: center;
    gap: 12px;
    padding: 32px;
}
.usecase-lead .usecase-say {
    font-family: var(--display);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.05;
}
.usecase-lead .usecase-get {
    font-size: 15px;
}
@media (max-width: 900px) {
    .usecases {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .usecase-lead {
        flex-direction: column;
    }
    .usecase-lead .usecase-words {
        padding: 20px 16px 22px;
    }
}
@media (max-width: 600px) {
    .usecases {
        grid-template-columns: 1fr;
    }
    .usecase-lead .usecase-stage {
        aspect-ratio: 4 / 3;
        padding: 16px;
    }
}

/* ---- The studio, drawn (src/web/studio-ui.tsx): sizes in em, so a mock scales with its stage ---- */

.mock {
    display: flex;
    width: 100%;
    max-width: 44em;
    gap: 1em;
    font-family: var(--sans);
    font-size: clamp(10px, 3.6cqi, 13px);
    line-height: 1.3;
    color: var(--text);
    user-select: none;
}
.mock-label {
    font-family: var(--mono);
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
}
.mock-faint {
    font-size: 0.9em;
    color: var(--faint);
}
.mock-kbd {
    display: inline-grid;
    min-width: 1.6em;
    height: 1.6em;
    place-items: center;
    border-radius: var(--r-xs);
    box-shadow: inset 0 0 0 1px var(--line-hover);
    padding: 0 0.3em;
    font-family: var(--mono);
    font-size: 0.8em;
    color: var(--muted);
}
.mock-dot {
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    flex: none;
    border-radius: 50%;
    background: var(--ok);
}
.mock-dot-live {
    background: var(--live);
}
.mock-dot-gold {
    background: var(--gold);
}
.mock-group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.3em;
}
.mock-group > .mock-label {
    margin-bottom: 0.2em;
}
.mock-row {
    display: flex;
    min-height: 2.2em;
    align-items: center;
    gap: 0.6em;
    border-radius: var(--r-control);
    padding: 0 0.6em;
}
.mock-row-on {
    justify-content: space-between;
    box-shadow: inset 0 0 0 1px var(--gold);
    color: var(--gold);
}
.mock-row-main {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    line-height: 1.2;
}
.mock-pgm {
    font-family: var(--mono);
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gold);
}
.mock-rec {
    display: inline-flex;
    height: 2.4em;
    align-items: center;
    gap: 0.5em;
    border-radius: var(--r-control);
    background: var(--live);
    padding: 0 0.8em;
    font-family: var(--mono);
    font-size: 0.95em;
    font-weight: 700;
    color: var(--on-gold);
    white-space: nowrap;
}
.mock-rec-dot {
    width: 0.55em;
    height: 0.55em;
    flex: none;
    border-radius: 50%;
    background: currentColor;
}
.mock-btn {
    display: inline-flex;
    min-height: 2.4em;
    align-items: center;
    justify-content: space-between;
    gap: 0.6em;
    border-radius: var(--r-control);
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 0 0.5em 0 0.7em;
    font-weight: 500;
    white-space: nowrap;
}
.mock-btn-on {
    box-shadow: inset 0 0 0 1px var(--gold);
    color: var(--gold);
}
.mock-btn-gold {
    background: var(--gold);
    box-shadow: none;
    color: var(--on-gold);
    font-weight: 600;
}
.mock-btn-gold .mock-kbd {
    box-shadow: inset 0 0 0 1px #0b0b0c40;
    color: var(--on-gold);
}
.mock-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
}
.mock-chip {
    display: inline-flex;
    height: 2em;
    align-items: center;
    gap: 0.45em;
    border-radius: var(--r-control);
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 0 0.6em;
    font-size: 0.9em;
    white-space: nowrap;
}
.mock-status {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--mono);
    font-size: 0.8em;
    color: var(--muted);
}
.mock-shot {
    display: block;
    width: 100%;
    border-radius: var(--r-xs);
    background: var(--well);
    object-fit: cover;
    outline: 1px solid #ffffff1a;
    outline-offset: -1px;
}
/* the tally: recording or live */
.mock-shot-live {
    outline: 2px solid var(--live);
    outline-offset: -2px;
}
.mock-shot-169 {
    aspect-ratio: 16 / 9;
}
.mock-shot-916 {
    aspect-ratio: 9 / 16;
}

/* a podcast: the sidebar beside the program, in the well */
.mock-podcast {
    align-items: center;
}
.mock-side {
    display: flex;
    width: 38%;
    flex: none;
    flex-direction: column;
    gap: 0.9em;
}
.mock-side .mock-rec {
    align-self: stretch;
}
.mock-program {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 0.5em;
    border-radius: var(--r-control);
    background: var(--well);
    padding: 0.6em;
}
.mock-program-head {
    display: flex;
    align-items: baseline;
    gap: 0.6em;
    font-size: 0.9em;
    color: var(--muted);
}

/* 16:9 and 9:16 */
.mock-shorts {
    align-items: flex-end;
}
.mock-canvas {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 0.5em;
}
.mock-canvas-v {
    flex: 0 0 29%;
}
.mock-canvas-head {
    display: flex;
    min-height: 2em;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
}
.mock-follow-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xs);
}
/* the vertical's crop of the wide picture: full height, 9:16 */
.mock-follow {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 31.6%;
    border-radius: var(--r-xs);
    box-shadow:
        inset 0 0 0 1.5px var(--gold),
        0 0 0 999px #0b0b0c73;
}

/* markers and the recording they land on */
.mock-markers {
    flex-direction: column;
}
.mock-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4em;
}
.mock-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    border-radius: var(--r-control);
    background: var(--well);
    padding: 0.7em;
}
.mock-ruler {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 0.75em;
    color: var(--faint);
}
.mock-track {
    display: flex;
    height: 2.4em;
    gap: 2px;
}
.mock-seg {
    display: flex;
    min-width: 0;
    align-items: center;
    overflow: hidden;
    border-radius: var(--r-xs);
    background: var(--hover);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 0 0.5em;
    font-size: 0.8em;
    white-space: nowrap;
    color: var(--muted);
}
/* a suggested cut: hatched, waiting for you */
.mock-seg-flub {
    background: repeating-linear-gradient(135deg, var(--raised) 0 4px, var(--bg) 4px 8px);
}
.mock-seg-short {
    box-shadow: inset 0 0 0 1px var(--gold);
    color: var(--gold);
}
.mock-flags {
    position: relative;
    height: 1.6em;
}
.mock-flags span {
    position: absolute;
    top: 0;
    display: grid;
    min-width: 1.6em;
    height: 1.6em;
    place-items: center;
    border-radius: var(--r-xs);
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line-hover);
    font-family: var(--mono);
    font-size: 0.75em;
    color: var(--muted);
}
.mock-flags .mock-flag-gold {
    box-shadow: inset 0 0 0 1px var(--gold);
    color: var(--gold);
}

/* an event */
.mock-event {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em 1.2em;
}
.mock-event .mock-row {
    padding: 0;
}
.mock-avatar {
    display: grid;
    width: 2em;
    height: 2em;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--hover);
    font-family: var(--mono);
    font-size: 0.75em;
    font-weight: 600;
    color: var(--muted);
}
.mock-isos {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

/* the Live view */
.mock-church {
    flex-direction: column;
    gap: 0.8em;
}
.mock-live-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mock-on-air {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--mono);
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--live);
}
.mock-live-time {
    font-family: var(--mono);
    font-size: 1.3em;
    font-weight: 600;
}
.mock-live-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45em;
}
.mock-live-btn {
    display: grid;
    height: 3.6em;
    place-items: center;
    border-radius: var(--r-control);
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 1.05em;
    font-weight: 600;
}
.mock-live-btn-on {
    box-shadow: inset 0 0 0 2px var(--live);
}

/* your AI, waiting for you */
.mock-agent {
    flex-direction: column;
    gap: 0.7em;
}
.mock-say {
    max-width: 88%;
    align-self: flex-end;
    border-radius: var(--r-panel);
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 0.6em 0.8em;
}
.mock-steps {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    color: var(--muted);
}
.mock-step {
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.mock-step svg,
.mock-check {
    width: 1.1em;
    height: 1.1em;
    flex: none;
    fill: none;
    stroke: var(--ok);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mock-confirm {
    display: flex;
    align-items: center;
    gap: 0.4em;
    border-radius: var(--r-panel);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    padding: 0.5em 0.5em 0.5em 0.8em;
}
.mock-confirm .mock-row-main {
    gap: 0.15em;
}

/* a premiere */
.mock-premiere {
    position: relative;
    display: grid;
}
.mock-premiere > * {
    grid-area: 1 / 1;
}
.mock-shot-dim {
    filter: brightness(0.4);
}
.mock-premiere-card {
    /* above the dimmed picture, whose filter paints it like a positioned box */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    justify-self: center;
    gap: 0.3em;
    border-radius: var(--r-panel);
    background: #121214e6;
    box-shadow: inset 0 0 0 1px var(--line-strong);
    padding: 0.9em 1.4em;
}
.mock-countdown {
    font-family: var(--mono);
    font-size: 2em;
    font-weight: 600;
    line-height: 1.1;
}

/* small pieces beside words: steps and the built-in list */
.mock-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}
.mock-seg-chip {
    gap: 2px;
    border-radius: calc(var(--r-control) + 2px);
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 2px;
}
.mock-seg-chip > span {
    display: inline-flex;
    height: 2.2em;
    align-items: center;
    border-radius: var(--r-control);
    padding: 0 0.7em;
    font-family: var(--mono);
    font-size: 0.95em;
    color: var(--muted);
}
.mock-seg-chip > .mock-seg-on {
    background: var(--gold);
    color: var(--on-gold);
    font-weight: 600;
}
.mock-words {
    font-size: 1.1em;
}
.mock-words s {
    color: var(--faint);
}
.mock-mini-track {
    width: 100%;
    max-width: 16em;
    height: 2.2em;
    gap: 2px;
}
.mock-mini-track > span {
    height: 100%;
    border-radius: var(--r-xs);
    background: var(--hover);
    box-shadow: inset 0 0 0 1px var(--line);
}
.mock-mini-track > .on {
    box-shadow: inset 0 0 0 1px var(--gold);
}

/* Set it up. Press record. Stop. */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
}
.step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: var(--r-group);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 24px;
}
.step-n {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
}
.step-picture {
    display: flex;
    height: 72px;
    align-items: center;
    font-size: 12px;
}
@media (max-width: 800px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

/* the manifesto, quoted */
.manifesto-band {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    overflow: hidden;
    border-radius: var(--r-group);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 64px 56px;
}
.manifesto-words {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}
/* the script it grew out of, leaning in from the edge */
.manifesto-code {
    margin-right: -120px;
    transform: rotate(-2deg);
}
.manifesto-code .mf-code {
    background: var(--bg);
}
.manifesto-code pre {
    overflow: hidden;
}
@media (max-width: 960px) {
    .manifesto-band {
        grid-template-columns: 1fr;
    }
    .manifesto-code {
        display: none;
    }
}
.manifesto-quote {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.manifesto-quote p {
    max-width: 30ch;
    font-family: var(--display);
    font-size: clamp(30px, 4.2vw, 46px);
    font-weight: 600;
    line-height: 1.08;
}
.manifesto-by {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
@media (max-width: 720px) {
    .manifesto-band {
        padding: 40px 24px;
    }
}

/* The two things every audience gets (home): everything recorded, and made yours by asking. Words beside a stage. */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 48px;
}
.split-flip .split-words {
    order: 2;
}
.split-words {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.split-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
}
.split-example {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: var(--r-panel);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.5;
}
.split-chips {
    flex-wrap: wrap;
    list-style: none;
}
.split-chips .mock-chip {
    height: 28px;
    font-size: 13px;
}
.split-stage {
    align-self: stretch;
    aspect-ratio: auto;
    border-radius: var(--r-group);
    background: var(--surface);
    padding: 32px;
}
.split-stage .mock {
    font-size: clamp(11px, 3.6cqi, 15px);
}
@media (max-width: 900px) {
    .split {
        /* minmax(0, …) as on desktop: a bare 1fr grows to its widest unbreakable content, such as
           the install command, and the page scrolls sideways */
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .split-flip .split-words {
        order: 0;
    }
    .split-stage {
        padding: 20px;
    }
}
.mock-kept {
    flex-direction: column;
    gap: 1.1em;
}
.mock-kept-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}
.mock-kept .mock-chips {
    flex-wrap: wrap;
}
.mock-kept .mock-row {
    min-height: 2.8em;
    padding-block: 0.4em;
}
.mock-ask-head {
    display: flex;
}
.mock-ask .mock-step {
    min-width: 0;
}
.mock-cmd {
    overflow: hidden;
    font-family: var(--mono);
    font-size: 0.9em;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--text);
}

/* After the recording (home): the editor on any video, and a review link for whoever signs off */
.mock-editor .mock-row,
.mock-review .mock-row {
    min-height: 2.8em;
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line);
    padding-block: 0.4em;
}
.mock-transcript {
    font-size: 1.05em;
    line-height: 1.55;
}
.mock-review-frame {
    position: relative;
}
/* the logo the reviewer circled */
.mock-review-logo {
    position: absolute;
    top: 14.4%;
    left: 87.5%;
    translate: -50% -50%;
    border-radius: var(--r-xs);
    background: #0b0b0cb3;
    padding: 0.2em 0.5em;
    font-family: var(--mono);
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.1em;
}
.mock-review-frame svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--gold);
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
}

/* From the take to the final OK: four steps */
.steps-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1040px) {
    .steps-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .steps-4 {
        grid-template-columns: 1fr;
    }
}

/* Virtual Sync, right under the hero picture: the free app that leads people to JCSS (decision 0184) */
.vs-band {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    margin-top: -64px;
    border-radius: var(--r-group);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px #f2bd4899;
    padding: 40px 48px;
    scroll-margin-top: 84px;
}
.vs-band-words {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.vs-band-title {
    font-family: var(--display);
    font-size: clamp(28px, 3.4vw, 36px);
    font-weight: 600;
    line-height: 1.08;
}
.vs-band-stage {
    container-type: inline-size;
    border-radius: var(--r-panel);
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 24px;
}
.vs-band-stage .mock {
    font-size: clamp(11px, 3.6cqi, 14px);
}
@media (max-width: 900px) {
    .vs-band {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: -40px;
        padding: 28px 24px;
    }
}
.mock-sync {
    flex-direction: column;
    gap: 0.9em;
}
.mock-sync-row {
    display: grid;
    grid-template-columns: 5em minmax(0, 1fr);
    align-items: center;
    gap: 0.8em;
}
.mock-sync-track {
    position: relative;
    height: 2.6em;
    border-radius: var(--r-control);
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line);
}
.mock-sync-clap {
    position: absolute;
    top: 0.5em;
    bottom: 0.5em;
    width: 3px;
    translate: -50% 0;
    border-radius: 2px;
    background: var(--text);
}
.mock-sync-was {
    background: var(--faint);
    opacity: 0.6;
}
.mock-sync-on {
    background: var(--gold);
}
.mock-sync-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6em;
}

/* Start with a free piece */
.free-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
}
.free-grid .card {
    justify-content: space-between;
}
.free-grid .card > .stack-2 {
    flex: 1;
}
@media (max-width: 900px) {
    .free-grid {
        grid-template-columns: 1fr;
    }
}

/* Everything you'd bolt onto OBS */
.builtin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 28px;
    list-style: none;
}
.builtin {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.builtin-picture {
    display: flex;
    height: 36px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}
@media (max-width: 960px) {
    .builtin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .builtin-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ---- /manifesto (src/routes/manifesto.tsx) ---- */
.mf-hero {
    padding-top: 96px;
}
.mf-h1 {
    max-width: 15ch;
    font-size: clamp(52px, 9.5vw, 108px);
}
.mf {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: 72px;
}
/* the contents are the apps' scene list: the section you're reading is on program */
.mf-index {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mf-index > .mock-label {
    margin-bottom: 8px;
    font-size: 10px;
}
.mf-index-row {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 10px;
    border-radius: var(--r-control);
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--muted);
    transition:
        background-color 90ms ease-out,
        color 90ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .mf-index-row:hover {
        background: var(--raised);
        color: var(--text);
    }
}
.mf-index-row:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}
.mf-index-on,
.mf-index-on:hover {
    box-shadow: inset 0 0 0 1px var(--gold);
    color: var(--gold) !important;
}
.mf-index-n {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--faint);
}
.mf-index-title {
    flex: 1;
}
.mf-index .mock-pgm {
    font-size: 10px;
}
.mf-body {
    display: flex;
    max-width: 640px;
    flex-direction: column;
    gap: 96px;
}
.mf-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-margin-top: 96px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
}
.mf-section strong {
    font-weight: 600;
    color: var(--text);
}
.mf-n {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
}
.mf-h2 {
    font-family: var(--display);
    font-size: clamp(38px, 5vw, 54px);
    font-weight: 600;
    line-height: 1;
    color: var(--text);
}
.mf-code {
    overflow: hidden;
    border-radius: var(--r-panel);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}
.mf-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: inset 0 -1px 0 var(--line);
    padding: 10px 16px;
    font-size: 13px;
}
.mf-code pre {
    overflow-x: auto;
    padding: 16px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
}
.mf-code-comment {
    color: var(--faint);
}
/* /agents: the prompt's gist; the button copies the whole prompt */
.mf-code ol.agents-steps {
    margin: 0;
    padding: 16px 16px 16px 36px;
    display: grid;
    gap: 8px;
    font-size: 15px;
    line-height: 1.5;
}
.mf-parts {
    overflow: hidden;
    border-radius: var(--r-panel);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 15px;
    line-height: 1.4;
}
.mf-parts-row {
    display: grid;
    grid-template-columns: 1fr 1.25fr 6.5em;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    color: var(--text);
}
.mf-parts-row + .mf-parts-row {
    box-shadow: inset 0 1px 0 var(--line);
}
.mf-parts-head {
    padding-block: 10px;
}
.mf-built {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
}
.mf-built::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    content: '';
}
.mf-section .btn-filled {
    color: var(--text);
}
.mf-sign .mf-signature {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 600;
    color: var(--text);
}
@media (max-width: 900px) {
    /* minmax(0, …): a plain 1fr grows to fit the longest line of code and widens the page */
    .mf {
        grid-template-columns: minmax(0, 1fr);
    }
    .mf-index {
        display: none;
    }
}
@media (max-width: 600px) {
    .mf-parts-row {
        grid-template-columns: 1fr 5.5em;
    }
    .mf-parts-row:not(.mf-parts-head) > :nth-child(2) {
        grid-row: 2;
        font-size: 14px;
    }
    /* the head row stays one line: "In OBS" takes the empty first cell */
    .mf-parts-head > :nth-child(-n + 2) {
        grid-area: 1 / 1;
    }
    .mf-section {
        font-size: 17px;
    }
}

/* OBS import */
.mock-obs {
    flex-direction: column;
    gap: 0.6em;
}
.mock-obs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1em;
}
.mock-obs-head .mock-row-main {
    gap: 0.2em;
}
.mock-obs .mock-group {
    gap: 0;
    border-radius: var(--r-control);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 0.2em 0;
}
.mock-obs-row {
    min-height: 2em;
}
.mock-obs-row .mock-dot {
    /* as wide as the checks beside it (1.1em) */
    margin: 0 0.3em;
}
.mock-obs-note {
    font-size: 0.85em;
    color: var(--gold);
}
.mock-obs-go {
    align-self: flex-end;
    padding: 0 0.9em;
}

/* ---- /use-cases (src/routes/use-cases.tsx) ---- */
.site-section-more {
    align-self: flex-start;
    font-size: 15px;
}
.uc-hero {
    padding-top: 96px;
}
.uc-h1 {
    max-width: 16ch;
    font-size: clamp(48px, 8vw, 88px);
}
.uc-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.uc-jump-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    border-radius: var(--r-control);
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 0 12px;
    font-size: 13px;
    color: var(--muted);
    transition:
        background-color 90ms ease-out,
        color 90ms ease-out,
        transform 140ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .uc-jump-link:hover {
        background: var(--hover);
        color: var(--text);
    }
}
.uc-jump-link:active {
    transform: scale(0.96);
}
.uc-jump-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.uc-list {
    display: flex;
    flex-direction: column;
    gap: 112px;
}
.uc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 56px;
    scroll-margin-top: 96px;
}
/* every other one has the picture first */
.uc:nth-child(even) .uc-words {
    order: 2;
}
.uc-words {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}
.uc-h2 {
    font-family: var(--display);
    font-size: clamp(34px, 4.2vw, 48px);
    font-weight: 600;
    line-height: 1.02;
}
.uc-body {
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
}
.uc-facts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.uc-fact {
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
}
.uc-fact .mock-label {
    font-size: 10px;
}
.uc-uses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.uc-uses .mock-chip,
.uc-more-list .mock-chip {
    height: 28px;
    font-size: 13px;
}
.uc-more {
    font-size: 15px;
}
.uc-stage {
    border-radius: var(--r-group);
    background: var(--surface);
    padding: 32px;
}
.uc-more-list {
    display: flex;
    max-width: 40rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
}
@media (max-width: 860px) {
    .uc {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .uc:nth-child(even) .uc-words {
        order: 0;
    }
    .uc-list {
        gap: 80px;
    }
    .uc-stage {
        padding: 20px;
    }
}
@media (max-width: 480px) {
    .uc-fact {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* ---- /pro (src/routes/pro.tsx) ---- */
.pricing-hero {
    padding-top: 96px;
}
.pricing-h1 {
    max-width: 15ch;
    font-size: clamp(48px, 8vw, 92px);
}

/* What are you paying for now: the tools as the apps' rows with switches, the sum beside them.
   The panel is 14 = the sum's well 10 + 4. */
.stack-calc {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.stack-calc-head .audience {
    justify-content: flex-start;
}
.stack-calc-body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 4px;
    border-radius: var(--r-group);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 4px;
}
.stack-tools {
    display: flex;
    flex-direction: column;
    padding: 20px 20px 16px;
}
.stack-tools > .mock-label {
    margin-bottom: 6px;
    font-size: 10px;
}
.stack-label-jcss {
    margin-top: 20px;
}
.stack-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    min-height: 56px;
    padding: 8px 0;
    font-size: 15px;
}
.stack-row + .stack-row {
    box-shadow: inset 0 1px 0 var(--line);
}
.stack-row-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.stack-row-does {
    font-size: 13px;
    color: var(--muted);
}
.stack-price {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
}
.stack-sum {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: var(--r-panel);
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 28px;
}
.stack-sum-line {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stack-sum .mock-label {
    font-size: 10px;
}
.stack-sum-value {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
}
.stack-sum-unit {
    margin-left: 6px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
}
.stack-sum-saved {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    box-shadow: inset 0 1px 0 var(--line);
    padding-top: 20px;
}
.stack-sum-saved .stack-sum-unit {
    margin-left: 0;
}
.stack-saved {
    font-family: var(--display);
    font-size: clamp(56px, 7vw, 80px);
    font-weight: 600;
    line-height: 0.95;
    color: var(--gold);
}
.stack-saved-words {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
}
@media (max-width: 820px) {
    .stack-calc-body {
        grid-template-columns: 1fr;
    }
    .stack-tools {
        padding: 16px 14px 12px;
    }
    .stack-sum {
        padding: 20px;
    }
}

/* What you'll need */
.needs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
}
.need {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: var(--r-group);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 24px;
}
.need-chips {
    margin-bottom: 12px;
    font-size: 13px;
}
@media (max-width: 800px) {
    .needs {
        grid-template-columns: 1fr;
    }
}

/* Good questions: one hairline list; the + turns into a × when open */
.qa-list {
    display: flex;
    max-width: 48rem;
    flex-direction: column;
    border-radius: var(--r-group);
    box-shadow: inset 0 0 0 1px var(--line);
}
.qa + .qa {
    box-shadow: inset 0 1px 0 var(--line);
}
.qa-q {
    display: flex;
    min-height: 56px;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: var(--r-group);
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    list-style: none;
    transition: color 90ms ease-out;
}
.qa-q::-webkit-details-marker {
    display: none;
}
@media (hover: hover) and (pointer: fine) {
    .qa-q:hover {
        color: var(--gold);
    }
}
.qa-q:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}
.qa-icon {
    width: 16px;
    height: 16px;
    flex: none;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.5;
    stroke-linecap: round;
    transition: transform 140ms var(--ease-out);
}
.qa[open] .qa-icon {
    transform: rotate(45deg);
}
.qa-a {
    max-width: 40rem;
    padding: 0 20px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
    .qa-icon {
        transition: none;
    }
}

/* ---- Social cards (src/routes/og-card.$name.tsx): 1200 × 630, captured by scripts/og.sh ---- */
.og {
    display: grid;
    width: 1200px;
    height: 630px;
    grid-template-columns: minmax(0, 1fr) 520px;
    align-items: center;
    gap: 48px;
    overflow: hidden;
    background: var(--bg);
    padding: 56px 64px;
}
.og-words {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: 20px;
}
.og-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: auto;
}
.og-logo {
    width: 36px;
    height: 36px;
}
.og-wordmark {
    font-size: 34px;
}
.og-h1 {
    font-family: var(--display);
    font-size: 76px;
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.01em;
}
.og-url {
    margin-top: auto;
    font-family: var(--mono);
    font-size: 16px;
    color: var(--muted);
}
.og-picture {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
}
.og-picture.usecase-stage {
    aspect-ratio: auto;
    height: 440px;
    border-radius: var(--r-group);
    background: var(--surface);
    padding: 28px;
}
.og .site-eyebrow {
    font-size: 15px;
}
/* the mocks read at a thumbnail's size */
.og-picture .mock {
    font-size: 15px;
}
.og-picture-bare > * {
    width: 100%;
}
.og-sum {
    min-height: 440px;
}
/* the app's window, cropped from the hero's poster, leaning off the edge */
.og-shot {
    width: 760px !important;
    max-width: none;
    margin-right: -300px;
    border-radius: var(--r-panel);
    outline: 1px solid #ffffff1a;
    outline-offset: -1px;
}

/* /privacy, /terms */
.legal {
    display: flex;
    max-width: 40rem;
    flex-direction: column;
    gap: 16px;
    padding-top: 72px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}
.legal header {
    margin-bottom: 16px;
}
.legal h1,
.legal h2,
.legal strong {
    color: var(--text);
}
.legal h2 {
    margin-top: 24px;
    font-size: 17px;
    font-weight: 600;
}
.legal strong {
    font-weight: 600;
}
.legal ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 20px;
    list-style: disc;
}
.legal li::marker {
    color: var(--faint);
}
.legal a {
    color: var(--gold);
}
@media (hover: hover) and (pointer: fine) {
    .legal a:hover {
        text-decoration: underline;
    }
}

.site-footer {
    box-shadow: inset 0 1px 0 var(--line);
}
.site-footer-inner {
    margin: 0 auto;
    display: flex;
    max-width: 1080px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 24px;
}
.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    font-size: 13px;
    color: var(--muted);
}

/* the guest page's camera and mic menus, side by side */
.device-picks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.device-picks select {
    min-width: 0;
    text-overflow: ellipsis;
}

/* review links (decision 0169): the video, its comments beside it (under it on a phone) */
.review-page {
    margin: 0 auto;
    display: flex;
    min-height: 100vh;
    max-width: 80rem;
    flex-direction: column;
    gap: 24px;
    padding: 32px 24px 64px;
}
.review-layout {
    display: grid;
    gap: 24px;
    align-items: start;
}
/* On a phone (decision 0299, 0309): the header and the video stay at the top, then the notes, and
   the comment bar docks at the bottom. */
@media (max-width: 959.98px) {
    .review-page {
        gap: 16px;
        padding: 16px 16px 0;
    }
    .review-head {
        position: sticky;
        top: 0;
        z-index: 3;
        height: 56px;
        margin: -16px -16px 0;
        padding: 0 16px;
        background: var(--bg);
    }
    .review-layout {
        gap: 16px;
    }
    .review-main {
        display: contents;
    }
    .review-main > :not(.review-stage-wrap, .review-takes, .review-version) {
        order: 3;
    }
    .review-layout > .review-side {
        order: 2;
    }
    /* decision 0301: the video stays at the top while you scroll to the comment box and write, at
       most 38% of the screen tall so a portrait video leaves room to type */
    .review-stage-wrap {
        position: sticky;
        top: 56px;
        z-index: 2;
        margin: -16px -16px 0;
        padding: 0 16px 8px;
        background: var(--bg);
    }
    .review-stage-wrap .review-stage {
        width: min(100%, calc(38svh * var(--ar)));
    }
    .review-title {
        overflow: hidden;
        font-size: 16px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .review-heading {
        min-width: 0;
        flex: 1;
    }
    .review-page .card {
        border-radius: var(--r-group);
        padding: 16px;
    }
    /* under 16px, iOS zooms the page when a field takes focus */
    .review-page .input {
        font-size: 16px;
    }
}
/* a finger's target (decision 0301): 44px on a phone */
@media (max-width: 959.98px) and (pointer: coarse) {
    .review-page .btn {
        min-height: 44px;
        padding: 0 14px;
    }
    .review-page .review-pen {
        width: 44px;
    }
}
.review-who {
    display: grid;
    gap: 8px;
}
@media (min-width: 480px) and (max-width: 959.98px) {
    .review-who {
        grid-template-columns: 1fr 1fr;
    }
    .review-who-why {
        grid-column: 1 / -1;
    }
}
@media (min-width: 960px) {
    .review-layout {
        grid-template-columns: minmax(0, 1fr) 22rem;
    }
    .review-heading {
        min-width: 0;
    }
    .review-side {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        position: sticky;
        top: 24px;
    }
}
/* the video and what's drawn on it (decision 0231): the stage is the frame's exact shape, so a
   point on the drawing is the same point of the picture */
.review-stage {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--r-xs);
    background: #000;    /* the frame's edge on a black video against a near-black page */
    outline: 1px solid rgba(255, 255, 255, 0.1);
    outline-offset: -1px;
}
.review-stage {
    width: min(100%, calc(75vh * var(--ar)));
}
.review-video {
    display: block;
    width: 100%;
    height: 100%;
}
.review-marks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    touch-action: none;
}
.review-marks[data-drawing] {
    pointer-events: auto;
    cursor: crosshair;
    box-shadow: inset 0 0 0 2px var(--gold);
}
.review-approval[data-approved] {
    box-shadow: inset 0 0 0 1px var(--gold);
}
.review-approved {
    color: var(--gold);
}
/* the owner's agent at work on the notes (decision 0294), and under the comment it's on (0301) */
.review-progress[data-working] .dot,
.review-chip[data-working]::before,
.review-agent[data-working] .dot {
    animation: review-working 1.6s ease-in-out infinite;
}
@keyframes review-working {
    50% {
        opacity: 0.35;
    }
}
@media (prefers-reduced-motion: reduce) {
    .review-progress[data-working] .dot,
    .review-chip[data-working]::before,
    .review-agent[data-working] .dot {
        animation: none;
    }
}
.review-said {
    margin: 0;
    padding: 0;
    list-style: none;
}
.review-said-item {
    display: grid;
    grid-template-columns: 3.5em 1fr;
    gap: 8px;
    width: 100%;
    padding: 6px 8px;
    border: 0;
    border-radius: var(--r-control);
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 120ms var(--ease-out);
}
@media (hover: hover) {
    .review-said-item:hover {
        background: var(--hover);
    }
}
.review-said-item[data-current] {
    background: var(--hover);
    box-shadow: inset 2px 0 0 var(--gold);
}
.review-said-item:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
}
.review-input {
    font: inherit;
    resize: vertical;
    min-height: 64px;
}
/* a set of takes (decision 0305): a card each, the one playing outlined in gold */
.review-take-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.review-take {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    transition: box-shadow 120ms var(--ease-out);
}
.review-page .review-take {
    padding: 8px;
}
.review-steps .review-take {
    cursor: pointer;
}
.review-take[data-current] {
    box-shadow: inset 0 0 0 1px var(--gold);
}
.review-take[data-picked] {
    box-shadow: inset 0 0 0 2px var(--gold);
}
.review-take-watch {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    border-radius: var(--r-xs);
    overflow: hidden;
    background: #000;
    cursor: pointer;
    aspect-ratio: 16 / 9;
}
.review-take-watch:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.review-take-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.review-take-label {
    position: absolute;
    top: 4px;
    left: 4px;
    min-width: 20px;
    border-radius: var(--r-xs);
    background: rgba(0, 0, 0, 0.7);
    padding: 1px 6px;
    color: var(--gold);
    font-weight: 600;
    font-size: 12px;
    text-align: center;
}
.review-take-body {
    min-width: 0;
}
.review-take-what {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 14px;
}
/* Step through a round (decision 0308): a segment per change, one change at a time, then the picks */
.review-steps {
    min-width: 0;
}
.review-steps-bar {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 4px;
}
.review-step-seg {
    position: relative;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: var(--well);
    cursor: pointer;
    transition: background-color 200ms ease;
}
/* a 4 px bar, a finger-sized target */
.review-step-seg::after {
    content: '';
    position: absolute;
    inset: -14px 0;
}
.review-step-seg[data-done] {
    background: var(--ok);
}
.review-step-seg[data-current] {
    background: var(--gold);
}
.review-step-seg:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}
.review-step {
    animation: review-step-in 220ms var(--ease-out) both;
}
.review-step[data-back] {
    animation-name: review-step-back;
}
@keyframes review-step-in {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
}
@keyframes review-step-back {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
}
.review-step-ask {
    padding-left: 12px;
    box-shadow: inset 2px 0 0 var(--line-strong);
}
.review-take-chosen {
    align-items: center;
    min-height: 32px;
}
.review-check {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--on-gold);
    font-size: 11px;
    font-weight: 700;
    animation: review-check-in 300ms cubic-bezier(0.2, 0, 0, 1) both;
}
@keyframes review-check-in {
    from {
        opacity: 0;
        transform: scale(0.25);
        filter: blur(4px);
    }
}
.review-picks {
    margin: 0;
    padding: 0;
    list-style: none;
}
.review-picks > li {
    align-items: center;
    padding: 12px 14px;
}
.review-picks > li + li {
    border-top: 1px solid var(--line);
}
.review-picks-what {
    flex: 1 1 0;
    min-width: 0;
}
.review-picks-asked {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
@media (prefers-reduced-motion: reduce) {
    .review-step,
    .review-check {
        animation: none;
    }
}
/* the comment box's one footer row (decision 0301): the moment, the pen, Comment */
.review-moment {
    border-radius: var(--r-xs);
    background: var(--well);
    padding: 2px 8px;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
    white-space: nowrap;
}
.review-pen {
    width: 32px;
    padding: 0;
    color: var(--muted);
}
.review-pen[aria-pressed='true'] {
    background: var(--gold);
    color: var(--on-gold);
}
/* talking notes (decision 0360): listening, and what's heard so far */
.review-talking {
    border-radius: var(--r-xs);
    background: var(--well);
    padding: 8px 10px;
}
.review-talking-dot {
    display: block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: review-talking 1.4s ease-in-out infinite;
}
@keyframes review-talking {
    50% {
        opacity: 0.35;
    }
}
@media (prefers-reduced-motion: reduce) {
    .review-talking-dot {
        animation: none;
    }
}
/* empty, Comment waits as an outline rather than a dim gold that reads as broken */
.review-send:disabled {
    opacity: 1;
    background: transparent;
    color: var(--faint);
}
.review-agent {
    align-items: baseline;
}
.review-agent .dot {
    transform: translateY(-1px);
}
.review-reply {
    border-top: 0;
    border-left: 2px solid var(--line-strong);
    padding: 0 0 0 12px;
}
.review-time {
    padding: 0 6px;
    border: 0;
    border-radius: var(--r-xs);
    background: var(--well);
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
    cursor: pointer;
}
.review-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
/* the review page, simpler (decision 0309): one header button, a versions menu, one row per note, a
   docked comment bar */
.review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.review-head-actions {
    position: relative;
    flex: none;
}
/* decision 0315: the video's shapes, each a link to its own page; a frame of each shape beside its name */
.review-shape {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.review-shape[aria-current='page'] {
    background: var(--gold);
    color: var(--on-gold);
    font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
    .review-shape:hover:not([aria-current='page']) {
        background: var(--raised);
        color: var(--text);
    }
}
/* on a phone the frames say it, so the title keeps its room */
@media (max-width: 599.98px) {
    .review-shape-name {
        display: none;
    }
}
.review-shape-icon {
    height: 12px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
}
/* decision 0346: sound alone, a round dot where a frame would be */
.review-shape-icon[data-audio] {
    width: 12px;
    border-radius: 50%;
}
.review-outputs {
    min-width: 0;
    max-width: 50vw;
    overflow-x: auto;
    scrollbar-width: none;
}
.review-outputs .review-shape {
    flex: none;
    white-space: nowrap;
}
/* on a phone the outputs scroll sideways, so the title keeps its share of the bar */
@media (max-width: 599.98px) {
    .review-head-actions:has(.review-outputs) {
        flex: 0 1 auto;
        min-width: 0;
    }
    .review-head:has(.review-outputs) .review-heading {
        flex: 1 0 38%;
    }
}
/* decision 0346: a podcast plays in a strip the width of the page, with nothing to draw on */
.review-stage[data-audio] {
    width: 100%;
    background: var(--raised);
}
.review-stage[data-audio] {
    padding-bottom: 12px;
}
/* the browser's own controls sit inside the strip with the waveform's inset, not flush to its edges */
.review-stage[data-audio] .review-video {
    width: calc(100% - 24px);
    height: 56px;
    margin: 8px 12px 0;
    border-radius: var(--r-xs);
}
/* decision 0347: its waveform over the player, played in gold, a tick at each note */
.review-wave {
    position: relative;
    height: 88px;
    margin: 12px 12px 0;
    cursor: pointer;
    touch-action: none;
}
.review-wave-bars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    stroke: var(--faint);
    stroke-width: 0.6;
}
.review-wave-played {
    stroke: var(--gold);
    clip-path: inset(0 calc(100% - var(--played)) 0 0);
}
.review-wave-note {
    position: absolute;
    top: -4px;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--text);
    pointer-events: none;
}
.review-progress {
    white-space: nowrap;
}
@media (max-width: 359.98px) {
    .review-progress {
        display: none;
    }
}
/* decision 0319: the versions as a row under the video, then what this one changed, on the page */
.review-versions {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -4px;
    padding: 2px 4px;
}
.review-versions::-webkit-scrollbar {
    display: none;
}
.review-version-tab {
    display: inline-flex;
    flex: none;
    align-items: baseline;
    gap: 3px;
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--r-control);
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition:
        background-color 120ms var(--ease-out),
        color 120ms var(--ease-out);
}
.review-version-take {
    color: var(--faint);
    font-size: 11px;
}
@media (hover: hover) and (pointer: fine) {
    .review-version-tab:hover:not([aria-current]) {
        background: var(--raised);
        color: var(--text);
    }
}
.review-version-tab {
    position: relative;
}
.review-version-tab[aria-current] {
    color: var(--text);
    font-weight: 600;
}
.review-version-tab[aria-current]::after {
    content: '';
    position: absolute;
    right: 10px;
    bottom: 2px;
    left: 10px;
    height: 2px;
    border-radius: 1px;
    background: var(--gold);
}
.review-version-tab:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}
@media (pointer: coarse) {
    .review-version-tab {
        min-height: 40px;
    }
}
/* the version's note: one line until it's opened */
.review-version-note {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}
.review-version-note[aria-expanded='true'] {
    display: block;
    white-space: pre-wrap;
}
.review-changes {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}
.review-change {
    display: grid;
    grid-template-columns: 64px auto 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 6px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.review-changes li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.review-changes li > .review-change {
    flex: 1;
    min-width: 0;
}
.review-change-before[data-current] {
    color: var(--gold);
}
/* Before (decision 0355): the version before, over the stage */
.review-before {
    position: absolute;
    inset: 0;
    background: #000;
}
.review-before-bar {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    align-items: center;
    padding: 6px 8px 6px 12px;
    border-radius: var(--r-control);
    background: rgba(14, 14, 16, 0.85);
}
.review-changes li + li {
    box-shadow: inset 0 1px 0 var(--line);
}
.review-change-thumb {
    width: 64px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--r-xs);
    background: #000;
    pointer-events: none;
}
/* a vertical video's change (#76): its own shape, centred in the column, not a 16:9 crop of it */
.review-change-thumb[data-tall] {
    justify-self: center;
    width: auto;
    height: 48px;
    aspect-ratio: 9 / 16;
}
.review-change[data-current] .review-change-what {
    color: var(--gold);
}
.review-change:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: var(--r-control);
}
@media (hover: hover) and (pointer: fine) {
    .review-change:hover .review-change-what {
        color: var(--text);
        text-decoration: underline;
        text-decoration-color: var(--line-strong);
        text-underline-offset: 3px;
    }
}
/* a note: its moment, its words, one chip */
.review-rows {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}
.review-row + .review-row {
    box-shadow: inset 0 1px 0 var(--line);
}
.review-row[data-resolved] {
    opacity: 0.55;
}
.review-row-head {
    display: flex;
    align-items: center;
    gap: 8px;
}
.review-row-main {
    display: flex;
    flex: 1;
    min-width: 0;
    min-height: 44px;
    align-items: baseline;
    gap: 8px;
    padding: 10px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
/* its time only goes there (decision 0316); the row plays it. Level with the words' first line */
.review-row-time {
    position: relative;
    flex: none;
    align-self: flex-start;
    margin-top: 11px;
    line-height: 22px;
}
/* a finger's target around the small time */
.review-row-time::after {
    content: '';
    position: absolute;
    inset: -11px -4px;
}
.review-row-body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.review-row-author {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.review-row-text {
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.review-row[data-open] .review-row-text {
    display: block;
    white-space: pre-wrap;
}
.review-row-main:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: var(--r-control);
}
.review-row-count {
    flex: none;
}
/* the note whose moment is on screen (decision 0320): its time lights up, as its drawing shows */
.review-row-time {
    transition:
        background-color 150ms ease-out,
        color 150ms ease-out;
}
.review-row[data-now] .review-row-time {
    background: var(--gold);
    color: var(--bg);
}
/* the review keys (decision 0322): one quiet line under the video, only where there's a keyboard */
.review-keys {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    margin: 8px 0 0;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.review-keys kbd {
    padding: 1px 4px;
    border-radius: var(--r-xs);
    background: var(--well);
    color: var(--muted);
}
.review-rate {
    margin-left: auto;
    color: var(--gold);
}
@media (pointer: coarse) {
    .review-keys {
        display: none;
    }
}
/* a note's or a reply's links (decision 0320): long ones break rather than widen the page */
.review-links {
    margin: 0;
    padding: 0;
    list-style: none;
}
.review-link {
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 2px;
}
/* a note's own links, under it: one line each, the whole address in its tooltip */
.review-link-line {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.review-row-more {
    padding: 0 0 12px;
}
.review-chip {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: var(--well);
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    white-space: nowrap;
}
.review-chip::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--faint);
}
.review-chip[data-tone='ok']::before {
    background: var(--ok);
}
.review-chip[data-tone='gold']::before {
    background: var(--gold);
}
.review-chip[data-tone='now'] {
    background: var(--gold);
    color: var(--on-gold);
}
.review-chip[data-tone='now']::before {
    display: none;
}
button.review-chip {
    color: var(--text);
    cursor: pointer;
    transition:
        background-color 120ms var(--ease-out),
        transform 120ms var(--ease-out);
}
/* a finger's target around a small chip */
button.review-chip::after {
    content: '';
    position: absolute;
    inset: -10px -4px;
}
button.review-chip:active {
    transform: scale(0.96);
}
@media (hover: hover) {
    button.review-chip:hover {
        background: var(--line-strong);
    }
    button.review-chip[data-tone='now']:hover {
        background: var(--gold);
    }
}
button.review-chip:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
/* the comment bar: one line that grows as you write */
.review-dock-bar {
    align-items: flex-end;
}
.review-dock-input {
    flex: 1;
    min-width: 0;
    min-height: 36px;
    max-height: 30svh;
    resize: none;
}
.review-dock-who {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* the moment row is always there (#77): taking focus mounts nothing above the field, so iOS
   Safari's tap stays on it; one line tall whatever it holds */
.review-dock-what {
    align-items: center;
    min-height: 22px;
}
.review-dock-what[data-idle] .review-moment {
    color: var(--muted);
}
/* the focus ring inside the field (#94): .review-side scrolls, which would clip an outline drawn
   outside it; an inset ring keeps the corners and can't be cut off */
.review-dock-input:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--gold);
}
@media (max-width: 959.98px) {
    .review-dock {
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin: 0 -16px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--bg);
        box-shadow: 0 -1px 0 var(--line);
    }
    /* few notes: the bar still sits at the bottom of the screen; each part the screen's full width,
       not as wide as its words (the desktop grid's align-items: start would make it that) */
    .review-layout {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: stretch;
    }
    .review-layout > .review-side {
        flex: 1;
    }
    .review-side > .review-dock {
        margin-top: auto;
    }
}
@media (max-width: 959.98px) and (pointer: coarse) {
    .review-dock-input {
        min-height: 44px;
    }
}
@media (min-width: 960px) {
    .review-dock {
        position: sticky;
        bottom: 0;
        padding-top: 12px;
        background: var(--bg);
    }
}

/* ---- Fingers (pointer: coarse): everything you tap is at least 40px tall, and form text is 16px
   so iOS doesn't zoom the page when a field takes focus ---- */
@media (pointer: coarse) {
    .btn,
    .input,
    .nav-item,
    .brand,
    .uc-jump-link,
    .auth-logo,
    a.row {
        min-height: 40px;
    }
    /* wrapped footer links: a full target per row, so two rows' tap areas don't overlap */
    .site-footer-links {
        row-gap: 22px;
    }
    .input {
        font-size: 16px;
    }
    .cost-summary {
        padding-block: 7px;
    }
    /* small buttons and text links keep their size; the area that takes the tap grows around them */
    .btn-sm {
        min-height: 32px;
    }
    .btn-sm,
    .quiet-link,
    .back-link,
    .uc-more,
    .site-section-more,
    a.license-id {
        position: relative;
    }
    .btn-sm::after,
    .quiet-link::after,
    .back-link::after,
    .uc-more::after,
    .site-section-more::after,
    a.license-id::after {
        position: absolute;
        inset: -4px 0;
        content: '';
    }
    .back-link::after {
        inset-block: -6px;
    }
    .uc-more::after,
    .site-section-more::after {
        inset-block: -8px;
    }
    .quiet-link::after,
    a.license-id::after {
        inset-block: -11px;
    }
    /* Padding adds 10px; keep the other 12px below, clear of the preceding line's links. */
    :not(.site-footer-links) > .quiet-link::after {
        inset-block: 0 -12px;
    }
    /* it clips its own overflow (the ellipsis), so it grows by padding instead */
    .license-name {
        margin: -10px -12px;
        padding: 10px 12px;
    }
}

/* The browser editor (decision 0229) */
.editor {
    max-width: 1400px;
}
.editor-head h1 {
    overflow-wrap: anywhere;
}
/* Undo and Save version; a saved version's name and note for the agent (decision 0349) */
.editor-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}
.editor-save {
    max-width: 40rem;
    gap: 10px;
    padding: 16px;
}
.editor-save-ask {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}
.editor-save-ask input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--gold);
}
.editor-version-note {
    color: var(--muted);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.pill-gold {
    color: var(--gold);
    box-shadow: inset 0 0 0 1px #f2bd4899;
}
.editor-status::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 999px;
    background: var(--faint);
    vertical-align: 1px;
}
.editor-status-live::before {
    background: var(--ok);
}
.editor-status-offline {
    color: var(--text);
}
.editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    margin-top: 24px;
    align-items: start;
}
@media (max-width: 860px) {
    .editor-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
.editor-side {
    position: sticky;
    top: 24px;
}
.editor-scene {
    display: grid;
    gap: 10px;
    transition: box-shadow 120ms var(--ease-out);
}
.editor-scene.editor-on {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent);
}
.editor-scene-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-variant-numeric: tabular-nums;
}
.editor-scene-title .editor-input {
    font-weight: 600;
}
.editor-scene-actions {
    display: flex;
    gap: 2px;
}
.editor-input {
    width: 100%;
    resize: vertical;
}
.editor-input:disabled {
    opacity: 1;
    background: transparent;
    box-shadow: none;
}
.editor-duration {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 76px;
    font-variant-numeric: tabular-nums;
}
.editor-duration .editor-input {
    text-align: right;
}
.editor-here {
    color: var(--gold);
}
.editor-clips {
    display: grid;
    gap: 6px;
    font-size: 13px;
}
.editor-clip {
    display: grid;
    gap: 6px;
    padding: 8px 10px;
    border-radius: var(--r-control);
    background: var(--well);
}
.editor-clip-hidden {
    opacity: 0.5;
}
.editor-var {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}
.editor-people,
.editor-activity,
.editor-versions {
    display: grid;
    gap: 8px;
    list-style: none;
    font-size: 13px;
}
.editor-person {
    display: flex;
    align-items: center;
    gap: 8px;
}
.edit-row {
    color: inherit;
    text-decoration: none;
}
.edit-row:hover .person-name {
    color: var(--gold);
}
/* the show page's edit: the row opens the editor, its review link sits beside it */
.edit-item {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}
.edit-item > .edit-row {
    flex: 1;
    min-width: 0;
}
.editor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.editor-row > .min-w-0,
.editor-row > .grow {
    flex: 1 1 auto;
}
textarea.editor-input {
    font-family: var(--sans);
    line-height: 1.5;
}

/* The edit drawn live (decision 0286) */
.editor-preview-canvas {
    width: 100%;
    height: auto;
    background: #000;
    border-radius: 6px;
    display: block;
}
.editor-preview-bar {
    align-items: center;
    gap: 12px;
}
.editor-preview-scrub {
    flex: 1;
    accent-color: var(--gold);
}

/* Dialing in a motion's timing (decision 0285) */
.editor-motions {
    display: grid;
    gap: 6px;
    list-style: none;
}
.curve-editor {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 10px;
    border-radius: var(--r-control);
    background: var(--surface);
}
.curve-graph {
    width: 100%;
    height: auto;
    touch-action: none;
    user-select: none;
}
.curve-box {
    fill: none;
    stroke: var(--line-strong);
    stroke-dasharray: 3 3;
}
.curve-linear {
    stroke: var(--line-strong);
    fill: none;
}
.curve-line {
    stroke: var(--gold);
    stroke-width: 2;
    fill: none;
}
.curve-arm {
    stroke: var(--muted);
    stroke-width: 1;
}
.curve-handle {
    fill: var(--bg);
    stroke: var(--gold);
    stroke-width: 2;
    cursor: grab;
}
.curve-handle:active {
    cursor: grabbing;
    fill: var(--gold);
}
.curve-dot {
    fill: var(--text);
}
.curve-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.curve-length {
    width: 96px;
}

/* The edit's timeline: In and Out lengths dragged at each piece's ends (decision 0285) */
.timeline-area {
    position: relative;
    display: grid;
    gap: 3px;
    padding: 4px 0;
    border-radius: var(--r-panel);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    overflow: hidden;
    cursor: text;
}
.timeline-row {
    position: relative;
    height: 26px;
}
.timeline-scene {
    height: 32px;
}
.timeline-row:has(.timeline-scene) {
    height: 32px;
}
.timeline-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    min-width: 2px;
    border-radius: var(--r-s);
    background: var(--raised);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
}
.timeline-bar:hover {
    background: var(--hover);
    color: var(--text);
}
.timeline-bar.editor-on {
    box-shadow: inset 0 0 0 1px var(--gold);
    color: var(--text);
}
.timeline-label {
    position: absolute;
    top: 0;
    bottom: 0;
    /* clear of the trim edge and an In handle at its nearest */
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
}
.timeline-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    background: color-mix(in srgb, var(--gold) 22%, transparent);
    pointer-events: none;
}
.timeline-zone-in {
    border-radius: var(--r-s) 0 0 var(--r-s);
}
.timeline-zone-out {
    border-radius: 0 var(--r-s) var(--r-s) 0;
}
.timeline-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    margin: 0 -5px;
    cursor: ew-resize;
    touch-action: none;
}
.timeline-handle::after {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: 2px;
    border-radius: 1px;
    background: var(--gold);
    opacity: 0.7;
    transition: opacity 120ms var(--ease-out);
}
.timeline-handle:hover::after,
.timeline-handle-on::after {
    opacity: 1;
}
.timeline-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--text);
    pointer-events: none;
}
.timeline-movable {
    cursor: grab;
    touch-action: none;
}
.timeline-shifting {
    cursor: grabbing;
    background: var(--hover);
    box-shadow: inset 0 0 0 1px var(--gold);
    color: var(--text);
    z-index: 1;
}
.timeline-edge {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: col-resize;
    touch-action: none;
}
.timeline-edge-start {
    left: -2px;
}
.timeline-edge-end {
    right: -2px;
}
.timeline-edge::after {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 3px;
    width: 2px;
    border-radius: 1px;
    background: var(--text);
    opacity: 0;
    transition: opacity 120ms var(--ease-out);
}
.timeline-bar:hover .timeline-edge::after,
.timeline-shifting .timeline-edge::after {
    opacity: 0.5;
}
.timeline-edge:hover::after {
    opacity: 1;
}

/* The timeline for a finger (decision 0348, step 6): zoomed in the playhead stays in the middle
   and the edit moves under it; the cuts' roll grips, the Voice row, a held scene and where it'd
   go, and the picked edge in gold */
.timeline:focus-visible {
    outline: none;
}
.timeline:focus-visible .timeline-area {
    box-shadow: inset 0 0 0 1px var(--gold);
}
.timeline-area {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.timeline-fixed {
    cursor: grab;
}
.timeline-fixed .timeline-playhead {
    width: 2px;
    margin-left: -1px;
    background: var(--gold);
}
.timeline-seams {
    height: 16px;
}
.timeline-rowlabel-seams {
    height: 16px;
}
.timeline-seam {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 16px;
    margin-left: -8px;
    cursor: ew-resize;
    touch-action: none;
}
.timeline-seam::after {
    content: '';
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: 4px;
    width: 8px;
    border-radius: 3px;
    background: var(--hover);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    transition: background 120ms var(--ease-out);
}
.timeline-seam::before {
    /* the cut it rolls, up through the scenes */
    content: '';
    position: absolute;
    bottom: 100%;
    left: 7.5px;
    width: 1px;
    height: 6px;
    background: var(--line-strong);
}
.timeline-seam:hover::after,
.timeline-seam-on::after,
.timeline-edge-on.timeline-seam::after {
    background: var(--gold);
    box-shadow: none;
}
.timeline-edge-on::after {
    opacity: 1 !important;
    background: var(--gold);
}
.timeline-voice,
.timeline-rowlabel-voice {
    height: 36px;
}
.timeline-voice {
    border-radius: var(--r-s);
    background: color-mix(in srgb, var(--raised) 60%, transparent);
}
.timeline-wave {
    display: block;
    width: 100%;
    height: 100%;
    color: var(--muted);
}
.timeline-voice-far {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding-left: 8px;
    pointer-events: none;
}
.timeline-lifted {
    opacity: 0.6;
    box-shadow: inset 0 0 0 1px var(--gold);
    transform: translateY(-2px);
}
.timeline-reordering {
    cursor: grabbing;
}
.timeline-drop {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 3px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--gold);
    pointer-events: none;
}
.timeline-outside {
    position: absolute;
    top: 0;
    bottom: 0;
    background: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 8px);
    pointer-events: none;
}
@media (pointer: coarse) {
    /* a finger's handles: 44px to grab, on the picked scene's ends and each cut */
    .timeline-row:has(.timeline-scene),
    .timeline-scene,
    .timeline-rowlabel-scene {
        height: 44px;
    }
    .timeline-seams,
    .timeline-rowlabel-seams {
        height: 28px;
    }
    .timeline-seam {
        width: 44px;
        margin-left: -22px;
    }
    .timeline-seam::after {
        left: 18px;
        width: 8px;
        border-radius: 4px;
    }
    .timeline-scene .timeline-edge {
        width: 22px;
    }
    .timeline-scene.editor-on .timeline-edge::after {
        opacity: 1;
        top: 8px;
        bottom: 8px;
        left: 8px;
        width: 4px;
        border-radius: 2px;
        background: var(--gold);
    }
    .timeline-scene.editor-on .timeline-edge-end::after {
        left: auto;
        right: 8px;
    }
}

/* The edit as a script beside the picture, over the timeline (decision 0293) */
.editor-stage {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 16px;
    align-items: stretch;
}
.editor-stage-quiet {
    grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 900px) {
    .editor-stage {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* A phone or iPad (decision 0348, step 7): full screen like an app, without the site's nav. The
   picture on top, then Script or Timeline, one at a time, filling the rest of the screen; the
   brief and scene cards, and who's here and the versions, each a sheet from the bottom */
.editor-pane-toggle,
.editor-sheet-btn,
.editor-sheet-head,
.editor-sheet-backdrop {
    display: none;
}
.editor-sheet-btn {
    gap: 6px;
}
@media (max-width: 1024px), (pointer: coarse) {
    .shell:has(.editor) {
        display: block;
        min-height: 0;
    }
    .shell:has(.editor) > .sidebar {
        display: none;
    }
    .shell:has(.editor) .content {
        padding: calc(10px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom))
            calc(16px + env(safe-area-inset-left));
    }
    .editor {
        max-width: none;
        height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        gap: 10px;
    }
    .editor > .stack-3 {
        gap: 6px;
    }
    .editor-grid {
        display: flex;
        flex: 1;
        min-height: 0;
        margin-top: 0;
        align-items: stretch;
    }
    .editor-grid > .stack-4 {
        display: flex;
        flex: 1;
        flex-direction: column;
        min-height: 0;
        gap: 10px;
    }
    .editor-stage {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .editor-pane-script .editor-stage {
        flex: 1;
        min-height: 0;
    }
    .editor-stage > .editor-preview {
        order: 0;
        flex-shrink: 0;
    }
    /* the picture never takes more than about two fifths of the screen (an iPad held sideways) */
    .editor-preview-canvas {
        width: auto;
        max-width: 100%;
        max-height: 38dvh;
        margin: 0 auto;
    }
    .editor-pane-toggle {
        display: flex;
        order: 1;
        flex-shrink: 0;
    }
    .editor-pane-toggle .segment {
        flex: 1;
        height: 36px;
        font-family: var(--sans);
        font-size: 14px;
    }
    .editor-stage > .script {
        order: 2;
        flex: 1;
        min-height: 0;
        max-height: none;
    }
    .editor-pane-timeline .timeline {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }
    .editor-pane-script .timeline,
    .editor-pane-timeline .editor-stage > .script {
        display: none;
    }
    /* the title gets the line; Scenes, Versions, Undo and Save version wrap under it */
    .editor-head {
        flex-wrap: wrap;
        gap: 8px;
    }
    .editor-head > .min-w-0 {
        flex: 1 1 100%;
    }
    .editor-head h1 {
        font-size: 22px;
        line-height: 1.2;
    }
    .editor-head .muted {
        font-size: 13px;
    }
    .editor-sheet-btn {
        display: inline-flex;
    }
    .editor-sheet-head {
        display: flex;
    }
    .editor-sheet {
        position: fixed;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        max-width: 40rem;
        max-height: 85dvh;
        margin: 0 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: var(--r-group) var(--r-group) 0 0;
        background: var(--surface);
        box-shadow:
            inset 0 0 0 1px var(--line-strong),
            0 -24px 64px #000000b3;
        padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
        transform: translateY(100%);
        visibility: hidden;
        transition:
            transform 240ms var(--ease-out),
            visibility 0s 240ms;
    }
    .editor-sheet-head {
        position: sticky;
        top: -16px;
        z-index: 1;
        margin: -16px -20px 0;
        padding: 16px 20px 8px;
        background: var(--surface);
    }
    .editor-sheet-versions .editor-side,
    .editor-sheet-details .editor-details {
        transform: none;
        visibility: visible;
        transition: transform 240ms var(--ease-out);
    }
    .editor-sheet-versions .editor-sheet-backdrop,
    .editor-sheet-details .editor-sheet-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 49;
        background: #0b0b0cb3;
        backdrop-filter: blur(8px);
    }
}
@media (pointer: coarse) {
    .editor-pane-toggle .segment {
        height: 44px;
    }
}
@media (max-width: 600px) {
    .editor-head-actions kbd {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .editor-sheet {
        transition: none !important;
    }
}

.script {
    max-height: 460px;
    overflow-y: auto;
    padding: 12px 16px;
    border-radius: var(--r-panel);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}
.script-scene + .script-scene {
    margin-top: 18px;
}
.script-head {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 0 0 6px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}
.script-head:hover,
.script-scene.editor-on .script-head {
    color: var(--text);
}
.script-num,
.timeline-num {
    display: inline-grid;
    min-width: 16px;
    height: 16px;
    place-items: center;
    padding: 0 4px;
    border-radius: var(--r-s);
    background: var(--hover);
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
}
.script-scene.editor-on .script-num {
    background: var(--gold);
    color: var(--on-gold);
}
.script-para {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    margin: 10px 0 0;
    line-height: 1.6;
}
.script-stamp {
    padding-top: 3px;
    font-size: 11px;
}
.script-quiet {
    margin: 8px 0 0;
    font-size: 13px;
}
.script-word {
    border-radius: 3px;
    cursor: pointer;
}
.script-word:hover {
    background: var(--hover);
}
.script-now {
    background: color-mix(in srgb, var(--gold) 30%, transparent);
}
.timeline-frame {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
}
.timeline-gutter {
    display: grid;
    align-content: start;
    gap: 3px;
    padding: 4px 0;
}
.timeline-rowlabel {
    display: flex;
    height: 26px;
    align-items: center;
    color: var(--faint);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.timeline-rowlabel-scene {
    height: 32px;
}
.timeline-num {
    flex-shrink: 0;
    margin-right: 6px;
}

/* a name too long for its bar ends in an ellipsis (the whole name is the bar's tooltip) */
.timeline-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* the review page's Open in editor (decision 0328): "Edit" on a phone, so the title keeps its room */
.review-editor-short {
    display: none;
}
@media (max-width: 640px) {
    .review-editor-long {
        display: none;
    }
    .review-editor-short {
        display: inline;
    }
}

/* the home page's hero (src/web/studio-hero.tsx, decision 0333): the app's two windows on a
   1280×720 plane at its own point sizes (brand/tokens.json), scaled to the page and leaned back
   at rest; it faces the person while they use it */
.studio-hero {
    --s: 1;
    --t: 0;
    position: relative;
    margin: 0;
    height: calc(720px * var(--s) + 56px);
    perspective: 2400px;
}
.hero-source {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
/* when the browser won't start the recording by itself (Low Power Mode, or with less motion) */
.hero-play {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--gold);
    color: var(--on-gold);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 32px #000000b3;
    transform: translate(-50%, -50%);
    cursor: pointer;
}
.hero-play:active {
    transform: translate(-50%, -50%) scale(0.96);
}
.hero-play .app-icon {
    width: 16px;
    height: 16px;
}
.hero-tilt {
    position: absolute;
    top: 0;
    left: 0;
    width: 1280px;
    height: 720px;
    transform-origin: 0 0;
    transform: scale(var(--s));
}
.hero-plane {
    --d: 0;
    position: relative;
    width: 1280px;
    height: 720px;
    border-radius: 12px;
    background: var(--bg);
    box-shadow:
        inset 0 0 0 1px var(--line-hover),
        0 40px 120px -40px #000000e6;
    transform: rotateX(9deg) rotateY(-11deg) rotateZ(1.5deg) scale(0.94);
    transform-origin: 50% 60%;
    transition: transform 900ms var(--ease-out);
    animation: hero-drift 18s ease-in-out infinite alternate;
    overflow: hidden;
    user-select: none;
}
.studio-hero:hover .hero-plane,
.studio-hero:focus-within .hero-plane,
.studio-hero[data-reduced] .hero-plane {
    transform: none;
    animation: none;
}
@keyframes hero-drift {
    to {
        transform: rotateX(6deg) rotateY(-5deg) rotateZ(0.5deg) scale(0.95);
    }
}

/* the app: its type roles and controls */
.app {
    font-family: -apple-system, BlinkMacSystemFont, var(--sans);
    font-size: 13px;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
.app button {
    font: inherit;
    color: inherit;
}
.app-window {
    position: absolute;
    inset: 0;
    background: var(--bg);
}
.app-studio {
    display: grid;
    grid-template-columns: 264px 1fr 316px;
    clip-path: inset(0 calc(var(--d) * 100%) 0 0);
}
.app-editor {
    display: flex;
    flex-direction: column;
    clip-path: inset(0 0 0 calc((1 - var(--d)) * 100%));
}
.app-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--faint);
    white-space: nowrap;
}
.app-detail {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--faint);
    white-space: nowrap;
}
.app-caption {
    font-size: 11px;
    color: var(--faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-key {
    display: inline-grid;
    place-items: center;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xs);
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 600;
    color: var(--muted);
}
.app-icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}
.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    background: var(--raised);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: default;
}
button.app-btn {
    cursor: pointer;
    transition:
        background 90ms ease-out,
        transform 140ms ease-out;
}
button.app-btn:hover {
    background: var(--hover);
}
button.app-btn:active {
    transform: scale(0.96);
}
.app-btn[data-on] {
    border-color: var(--gold);
    color: var(--gold);
}
.app-btn-quiet {
    background: transparent;
    color: var(--muted);
}
.app-btn-gold {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--on-gold);
}
button.app-btn-gold:hover {
    background: var(--gold-press);
}
.app-btn-gold .app-key {
    border-color: #0b0b0c40;
    color: var(--on-gold);
}
.app-btn-gold-line {
    border-color: var(--gold);
    background: transparent;
    color: var(--gold);
}
.app-wide {
    flex: 1;
    justify-content: flex-start;
}
.app-seg {
    display: inline-flex;
    padding: 2px;
    border-radius: var(--r-control);
    background: var(--raised);
}
.app-seg > * {
    height: 22px;
    padding: 0 9px;
    border: 0;
    border-radius: var(--r-s);
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
}
.app-seg button {
    cursor: pointer;
}
.app-seg [data-on] {
    background: var(--gold);
    color: var(--on-gold);
}
.app-spacer {
    flex: 1;
}
.app-plus {
    margin-left: auto;
    color: var(--muted);
    font-size: 15px;
    line-height: 1;
}
.app-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 8px;
}
.app-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--display);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.app-mark {
    width: 19px;
    height: 19px;
}

/* the studio: sidebar, program and inspector */
.app-side,
.app-inspector {
    display: flex;
    flex-direction: column;
    padding: 14px 14px 12px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    min-width: 0;
}
.app-inspector {
    border-right: 0;
    border-left: 1px solid var(--line);
}
.app-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 18px;
}
.app-show {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.app-show-name {
    font-size: 15px;
    font-weight: 600;
}
.app-dot-ok {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 3px;
    border-radius: 50%;
    background: var(--ok);
    vertical-align: middle;
}
.app-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.app-rec {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 10px;
    border-radius: var(--r-control);
    background: var(--live);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: #1a0b06;
}
.app-rec i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1a0b06;
}
.app-rec b {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.app-rec .app-key {
    margin-left: auto;
    border-color: #1a0b0640;
    color: #1a0b06;
}
.app-pill {
    padding: 1px 5px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 700;
}
.app-scenes {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.app-scene {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 28px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: var(--r-control);
    background: transparent;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 90ms ease-out;
}
.app-scene:hover {
    background: var(--raised);
}
.app-scene[data-on] {
    border-color: var(--gold);
    color: var(--gold);
}
.app-pgm {
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 700;
}
.app-scene-key {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--faint);
}
.app-shots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.app-shots .app-btn {
    justify-content: flex-start;
}
.app-shots .app-key {
    margin-left: auto;
}
.app-side-foot {
    display: flex;
    margin-top: auto;
}
.app-center {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0 18px;
}
.app-head {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
}
.app-head-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.app-head .app-btn-gold-line {
    margin-left: auto;
}
.app-well {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 386px;
    padding: 12px;
    border-radius: var(--r-panel);
    background: var(--raised);
}
.app-program {
    position: relative;
    width: 450px;
}
.app-program .app-picture,
.app-vertical .app-picture {
    outline: 2px solid var(--live);
    outline-offset: 0;
}
.app-vertical {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 186px;
}
.app-picture {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 2px;
    background: #000;
}
.app-picture-vertical {
    aspect-ratio: 9 / 16;
}
.app-burned {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 7%;
    z-index: 3;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 3px #000000d9;
}
.app-picture-vertical .app-burned {
    bottom: auto;
    top: 52%;
    font-size: 13px;
}
.app-preview-picture .app-burned {
    font-size: 22px;
}
.app-preview-vertical .app-burned {
    font-size: 15px;
}
.app-karaoke [data-now] {
    color: var(--gold);
}
.app-captions {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    color: var(--gold);
}
.app-caption-line {
    flex: 1;
    overflow: hidden;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}
.app-section-pad {
    margin: 4px 0 6px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.app-section-pad .app-plus {
    margin-left: 0;
}
.app-monitor {
    margin-left: auto;
}
.app-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 30px;
}
.app-strip-name {
    width: 60px;
    font-weight: 500;
}
.app-meter {
    position: relative;
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: var(--well);
    overflow: hidden;
}
.app-meter i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--ok);
}
.app-fader {
    position: relative;
    width: 96px;
    height: 4px;
    border-radius: 2px;
    background: var(--gold);
}
.app-fader i {
    position: absolute;
    top: -6px;
    left: 70%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
}
.app-mini {
    padding: 2px 5px;
    border-radius: var(--r-xs);
    background: var(--raised);
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 600;
    color: var(--faint);
}
.app-status {
    margin-top: auto;
    padding: 8px 0;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--faint);
    text-align: right;
}
.app-tabs {
    display: flex;
    padding: 2px;
    margin: 6px 0 18px;
    border-radius: var(--r-control);
    background: var(--raised);
}
.app-tabs span {
    flex: 1;
    height: 26px;
    border-radius: var(--r-s);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 26px;
    text-align: center;
}
.app-tabs [data-on] {
    background: var(--gold);
    color: var(--on-gold);
}
.app-inspect-pad {
    margin-bottom: 8px;
}
.app-inspect-name {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
}
.app-prop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    color: var(--muted);
}
.app-prop b {
    color: var(--text);
    font-weight: 500;
}
.app-layer {
    display: flex;
    align-items: center;
    height: 28px;
    padding-left: 6px;
}
.app-toggle {
    position: relative;
    width: 28px;
    height: 16px;
    border-radius: 999px;
    background: var(--well);
}
.app-toggle[data-on] {
    background: var(--gold);
}
.app-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
}
.app-toggle[data-on]::after {
    left: 14px;
}

/* the editor: toolbar, transcript, preview, transport and timeline */
.app-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.app-toolbar .app-logo {
    margin-right: 4px;
}
.app-editor-top {
    display: grid;
    grid-template-columns: 420px 1fr;
    height: 406px;
    border-bottom: 1px solid var(--line);
}
.app-transcript {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding: 14px 16px 0 18px;
    border-right: 1px solid var(--line);
    background: var(--surface);
}
.app-search {
    height: 26px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    background: var(--bg);
    color: var(--faint);
    font-size: 12px;
    line-height: 24px;
}
.app-cutrow {
    display: flex;
    align-items: center;
    gap: 6px;
}
.app-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 8px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-control);
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 140ms ease-out;
}
.app-chip:active {
    transform: scale(0.96);
}
.app-chip span {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--faint);
}
.app-chip[data-on] {
    border-color: var(--gold);
    color: var(--text);
}
.app-script {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin-right: -10px;
    padding-right: 10px;
    scrollbar-width: thin;
}
.app-script-scene {
    margin: 10px 0 14px;
}
.app-script-head {
    font-size: 11px;
    color: var(--muted);
}
.app-script p {
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.6;
}
.app-stamp {
    margin-right: 6px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--faint);
}
.app-word {
    border-radius: 3px;
    cursor: pointer;
}
.app-word:hover {
    background: var(--hover);
}
.app-word-cut[data-on] {
    color: var(--faint);
    text-decoration: line-through;
    text-decoration-color: var(--gold);
}
.app-word-now {
    background: var(--gold);
    color: var(--on-gold);
}
.app-word-now:hover {
    background: var(--gold);
}
.app-pause {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--faint);
    text-decoration: none;
}
s.app-pause[data-on] {
    color: var(--gold);
    text-decoration: line-through;
}
.app-preview {
    display: flex;
    flex-direction: column;
    padding: 12px 18px;
    min-width: 0;
}
.app-preview-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.app-preview-picture {
    align-self: center;
    width: 600px;
}
.app-preview-vertical {
    width: 186px;
}
.app-transport {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 46px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
}
.app-timecode {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.app-timeline {
    display: grid;
    grid-template-columns: 72px 1fr;
    flex: 1;
    min-height: 0;
    padding: 6px 16px 0 0;
}
.app-track-names {
    display: grid;
    grid-template-rows: 22px 16px 54px 58px;
    padding-left: 16px;
    align-items: center;
}
.app-tracks {
    position: relative;
    display: grid;
    grid-template-rows: 22px 16px 54px 58px;
    cursor: pointer;
}
.app-chapters,
.app-ruler,
.app-voice,
.app-layouts {
    position: relative;
}
.app-chapter {
    position: absolute;
    top: 2px;
    overflow: hidden;
    padding-left: 6px;
    border-left: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.app-chapter b {
    display: inline-grid;
    place-items: center;
    min-width: 15px;
    height: 15px;
    margin-right: 4px;
    border-radius: var(--r-xs);
    background: var(--raised);
    font-family: var(--mono);
    font-size: 9.5px;
}
.app-chapter[data-on] {
    color: var(--text);
}
.app-chapter[data-on] b {
    background: var(--gold);
    color: var(--on-gold);
}
.app-ruler span {
    position: absolute;
    padding-left: 3px;
    border-left: 1px solid var(--line-strong);
    font-family: var(--mono);
    font-size: 9.5px;
    color: var(--faint);
}
.app-voice {
    margin: 3px 0;
    border-radius: var(--r-s);
    background: var(--raised);
}
.app-voice svg {
    position: absolute;
    inset: 4px 0;
    width: 100%;
    height: calc(100% - 8px);
    fill: #8e8b84;
}
.app-cutzone {
    position: absolute;
    top: 0;
    bottom: 0;
    border-inline: 1px solid var(--gold);
    background: repeating-linear-gradient(-45deg, #f2bd4833 0 3px, transparent 3px 7px);
}
.app-layout-cell {
    position: absolute;
    top: 2px;
    bottom: 2px;
    overflow: hidden;
    border-left: 1px solid var(--bg);
}
.app-layout-name {
    position: absolute;
    top: 3px;
    left: 5px;
    z-index: 1;
    font-family: var(--mono);
    font-size: 9.5px;
    color: #fff;
    text-shadow: 0 1px 2px #000;
    white-space: nowrap;
}
.app-thumbs {
    display: flex;
    height: 100%;
}
.app-thumbs i {
    flex: none;
    width: 96px;
    height: 100%;
    background-repeat: no-repeat;
}
.app-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--t) * 100%);
    width: 2px;
    margin-left: -1px;
    background: var(--gold);
    pointer-events: none;
}
.app-timeline-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
}

/* the divider between the two windows, and the picture parts */
.hero-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc((1 - var(--d)) * 100%);
    width: 2px;
    margin-left: -1px;
    background: var(--gold);
    box-shadow: 0 0 24px #f2bd4899;
    cursor: ew-resize;
    touch-action: none;
}
.hero-divider:focus-visible {
    outline: none;
}
.hero-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--on-gold);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -1px;
    box-shadow: 0 6px 24px #00000099;
    /* at either edge it rides inward, so it's always whole and in reach */
    translate: calc((var(--d) * 2 - 1) * 26px) 0;
    transition: transform 160ms var(--ease-out);
}
.hero-divider:hover .hero-handle,
.hero-divider:focus-visible .hero-handle {
    transform: scale(1.08);
}
.hero-divider:focus-visible .hero-handle {
    box-shadow:
        0 0 0 3px var(--bg),
        0 0 0 5px var(--gold);
}
.hero-mirror {
    position: absolute;
    display: block;
    transition:
        left 700ms var(--ease-swap),
        top 700ms var(--ease-swap),
        width 700ms var(--ease-swap),
        height 700ms var(--ease-swap),
        opacity 400ms var(--ease-out),
        border-radius 700ms var(--ease-swap);
}
.hero-mirror-round {
    border-radius: 6px;
    box-shadow: 0 6px 20px #00000080;
}
.hero-mirror-blur {
    filter: blur(14px) brightness(0.55);
    transform: scale(1.1);
}
.hero-followbox {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    border: 1.5px solid var(--gold);
    box-shadow: 0 0 0 100vmax #0b0b0c4d;
    pointer-events: none;
}
.hero-followbox span {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 1px 4px;
    border-radius: var(--r-xs);
    background: var(--gold);
    color: var(--on-gold);
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 700;
}
.hero-modes {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.hero-modes button {
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--well);
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition:
        background 160ms var(--ease-out),
        color 160ms var(--ease-out);
}
.hero-modes button:hover {
    color: var(--text);
}
.hero-modes button[data-on] {
    background: var(--raised);
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--gold);
}

/* the hero on a phone: the studio and the editor at sizes a finger and eye can use, in one place
   so switching between them doesn't move the page */
.hero-phone {
    display: none;
}
@media (max-width: 720px) {
    .studio-hero {
        height: auto;
        perspective: none;
    }
    .hero-tilt {
        display: none;
    }
    .hero-phone {
        display: grid;
        border-radius: var(--r-panel);
        background: var(--surface);
        box-shadow: inset 0 0 0 1px var(--line-hover);
        overflow: hidden;
    }
    .phone-view {
        grid-area: 1 / 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 0;
        padding: 12px;
        transition: opacity 300ms var(--ease-out);
    }
    .phone-view[inert] {
        opacity: 0;
        visibility: hidden;
    }
    .phone-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        height: 32px;
    }
    .phone-bar .app-logo {
        font-size: 18px;
    }
    .phone-bar .app-rec {
        flex: none;
    }
    .phone-head {
        display: flex;
        align-items: baseline;
        gap: 8px;
    }
    .phone-program {
        position: relative;
    }
    .phone-program .app-picture,
    .phone-vertical .app-picture {
        outline: 2px solid var(--live);
    }
    .phone-split {
        display: grid;
        grid-template-columns: 38% 1fr;
        gap: 12px;
    }
    .phone-vertical {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .phone-controls {
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
    }
    .phone-controls .app-scene {
        height: 40px;
        padding: 0 10px;
        font-size: 14px;
        white-space: nowrap;
    }
    .phone-controls .app-label {
        margin-top: 2px;
    }
    .phone-shots,
    .hero-phone .app-cutrow {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .phone-shots .app-btn {
        justify-content: center;
        min-width: 0;
        padding: 0 4px;
    }
    .phone-shots .app-btn,
    .phone-transport .app-btn,
    .phone-bar .app-btn {
        height: 40px;
        padding: 0 10px;
        font-size: 13px;
    }
    .phone-transport .app-btn-gold {
        width: 48px;
    }
    .phone-preview {
        align-self: center;
        width: 100%;
    }
    .phone-preview-vertical {
        width: 46%;
    }
    .phone-preview .app-burned {
        font-size: 15px;
    }
    .phone-vertical .app-burned {
        font-size: 10px;
    }
    .phone-transport .app-timecode {
        font-size: 12px;
        white-space: nowrap;
    }
    .hero-phone .app-captions {
        height: auto;
        margin-top: 4px;
    }
    .phone-audio {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }
    .phone-transport {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .phone-transport .app-seg {
        margin-left: auto;
    }
    .phone-transport .app-seg button {
        height: 36px;
        padding: 0 12px;
        line-height: 36px;
    }
    .hero-phone .app-cutrow .app-chip {
        justify-content: center;
        min-width: 0;
        height: 40px;
        padding: 0 4px;
        font-size: 13px;
    }
    .hero-phone .app-script {
        flex: 1 0 132px;
        mask-image: linear-gradient(transparent, #000 14px);
        margin-right: 0;
        padding-right: 0;
    }
    .hero-phone .app-script p {
        font-size: 15px;
    }
    .hero-phone .app-timeline {
        flex: none;
        grid-template-columns: 1fr;
        padding: 0;
    }
    .hero-phone .app-track-names {
        display: none;
    }
    .hero-phone .app-tracks {
        grid-template-rows: 22px 16px 44px 44px;
    }
    .hero-phone .app-chapter {
        font-size: 11px;
    }
    .hero-modes {
        position: static;
        margin-top: 14px;
    }
}
@media (max-width: 359px) {
    .phone-total {
        display: none;
    }
    .phone-controls .app-scene {
        padding: 0 8px;
        font-size: 13px;
    }
}
/* a scene's trim edges sit inside its own bar (decision 0348): at a cut, the left half trims the
   scene going out and the right half the one coming in, never both at once */
.timeline-scene .timeline-edge-start {
    left: 0;
}
.timeline-scene .timeline-edge-end {
    right: 0;
}

/* the script's edits (decision 0348): picked words, what was cut struck through, and the bar
   of what can be done with the pick, kept in view at the script's foot */
.script {
    position: relative;
}
.script-word {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
.script-picked,
.script-word.script-picked:hover {
    background: color-mix(in srgb, var(--gold) 25%, transparent);
    box-shadow: 0 0 0 1px var(--gold);
}
.script-cut {
    color: var(--faint);
    text-decoration: line-through;
}
.script-cut.script-picked {
    color: var(--muted);
}
.script-bar {
    position: sticky;
    bottom: -12px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    margin: 12px -16px -12px;
    padding: 8px 16px;
    border-top: 1px solid var(--line);
    background: var(--raised);
}
.script-bar > :first-child {
    margin-right: auto;
}
@media (pointer: coarse) {
    .script-bar .btn {
        min-height: 44px;
    }
}
.script-scene + .script-scene.script-carries {
    margin-top: 0;
}

/* What a scene is for and how it does it (decision 0350): the agent's, one quiet line under the
   scene's heading until opened; misses in gold */
.script-intent {
    margin: 4px 0 6px;
}
.script-intent > summary {
    width: fit-content;
    cursor: pointer;
    list-style: none;
}
.script-intent > summary::-webkit-details-marker {
    display: none;
}
.script-intent > summary::before {
    content: '▸ ';
    color: var(--faint);
}
.script-intent[open] > summary::before {
    content: '▾ ';
}
.script-intent-body {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: var(--r-control);
    background: var(--raised);
}
.script-verdicts li {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.script-verdicts .btn {
    margin-left: auto;
}
.editor-notes > summary {
    width: fit-content;
    cursor: pointer;
}
.editor-notes[open] > summary {
    margin-bottom: 6px;
}

/* two takes of a line (decision 0348): A and B where the earlier one starts, the one playing in gold */
.script-take {
    display: inline-flex;
    gap: 2px;
    margin-right: 4px;
    vertical-align: 1px;
}
.script-take button {
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border: 0;
    border-radius: var(--r-xs);
    background: var(--raised);
    color: var(--muted);
    font: 600 10px/18px var(--mono);
    cursor: pointer;
}
.script-take button[aria-pressed='true'] {
    background: var(--gold);
    color: var(--on-gold);
    cursor: default;
}
@media (hover: hover) and (pointer: fine) {
    .script-take button[aria-pressed='false']:hover {
        background: var(--hover);
        color: var(--text);
    }
}
@media (pointer: coarse) {
    .script-take button {
        min-width: 32px;
        height: 28px;
        line-height: 28px;
    }
}
