/* 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.ttf') format('truetype');
}

:root {
    color-scheme: dark;
    --bg: #0b0b0c;
    --surface: #121214;
    --raised: #1a1a1d;
    --hover: #242428;
    --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;
}

.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);
}
.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;
}
.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;
}

.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;
}
.card-link {
    gap: 8px;
    padding: 16px;
}
.card-link:hover {
    background: var(--raised);
}

.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;
}
.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 {
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    color: var(--muted);
}
.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;
}
.who {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.content {
    flex: 1;
    min-width: 0;
    padding: 32px;
}
.page {
    display: flex;
    width: 100%;
    max-width: 48rem;
    flex-direction: column;
    gap: 24px;
}
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
}
.tab {
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--muted);
}
.tab:hover {
    color: var(--text);
}
.tab.current {
    border-color: var(--gold);
    color: var(--text);
}
@media (max-width: 767px) {
    .shell {
        flex-direction: column;
    }
    .sidebar {
        position: static;
        height: auto;
        width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .nav {
        flex-direction: row;
    }
    .sidebar-foot {
        margin-top: 0;
        margin-left: auto;
        flex-direction: row;
        align-items: center;
    }
    .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-grid {
    display: grid;
    gap: 16px;
}
@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);
}
.video-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--faint);
}
.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);
}
.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);
}

/* 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;
}
