﻿/*
   The record page.

   A room of people working through a pile of video on several machines at once, usually in a
   back office with the lights down. The list is dense on purpose — an operator wants to see
   twenty recordings at a glance, not four — and the thumbnail is the thing they actually
   recognise a presentation by.
*/

/*
   The colleagues' picture (issue #13, 2026-10-22): a bar across the top, a title, the status tiles,
   the search and the filters, then the recordings as a table whose head stays put while its rows
   scroll, and the buttons' legend at the foot. The frame and the gap between blocks are the
   preview pages' own (--st-frame, --st-block-gap in preview-station.css). Every colour is the
   look's own palette, so the looks and light/dark still apply.
*/

.record-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: var(--mud-palette-background);
    color: var(--mud-palette-text-primary);
}

/* ── The bar ─────────────────────────────────────────────────────────────── */

.record-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 3.25rem;
    padding: 0 var(--st-frame);
    background: var(--mud-palette-appbar-background);
    color: var(--mud-palette-appbar-text);
    border-bottom: 1px solid var(--mud-palette-divider);
}

.record-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.record-brand-mark {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 4px;
}

.record-nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 0.5rem;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.record-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0 1rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.75;
    cursor: pointer;
}

.record-nav-tab:hover {
    opacity: 1;
}

/* The bar's own text colour, so it reads on a coloured bar (Classic) as on a dark one. */
.record-nav-tab--on {
    border-bottom-color: currentColor;
    font-weight: 600;
    opacity: 1;
}

/* A recording's tab sits in its hover's wrapper, which has to run the bar's full height like the fixed tabs
   (the user, 2026-10-22: the recordings' tabs stood above the others' line). */
.record-nav > .mud-tooltip-root {
    display: flex;
    align-items: stretch;
}

/* A recording's tab: its code, never upper-cased, with the close cross. */
.record-nav-editor {
    text-transform: none;
    padding-right: 0.25rem;
}

.record-bar-end {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* The station's own name: it wrapped mid-word on a real screen once, which made the one thing
   telling an operator WHICH computer they are at the hardest thing on the page to read. */
.record-station,
.record-event {
    font-size: 0.875rem;
    white-space: nowrap;
}

.record-bar-rule {
    width: 1px;
    height: 1.25rem;
    background: var(--mud-palette-divider);
}

.record-operator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

/* ── What a tab shows ────────────────────────────────────────────────────── */

.record-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: var(--st-block-gap);
    padding: var(--st-frame);
    overflow: hidden;
}

/* The other tabs keep their own layout, scrolling inside the frame. */
.record-main > .record-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    margin: calc(-1 * var(--st-frame));
    padding: 12px;
}

.record-files-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.2;
}

/* ── The filters ─────────────────────────────────────────────────────────── */

.record-filters {
    display: flex;
    flex-direction: column;
    gap: var(--st-block-gap);
    flex: 0 0 auto;
}

.record-status-group {
    margin: 0;
    padding: 0 0.75rem 0.75rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    min-width: 0;
}

.record-status-group legend {
    padding: 0 0.5rem;
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

/* Each tile as wide as its words need, the rest shared out: at 1366 the long names (En cours de montage,
   Export en cours) would be cut in equal columns. */
.record-status-tiles {
    display: flex;
    gap: 0.75rem;
}

.record-status-tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.record-status-tile:hover {
    border-color: var(--mud-palette-primary);
}

.record-status-icon {
    flex: 0 0 auto;
    font-size: 1.75rem !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
}

/* The name gives way before the count does; never a second line (no button wraps). */
.record-status-name {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.record-status-count {
    flex: 0 0 auto;
    min-width: 2.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: #fff;
    background: var(--record-tone, var(--mud-palette-text-disabled));
}

.record-status-tile--ingest { --record-tone: var(--mud-palette-gray-default); }
.record-status-tile--editing { --record-tone: var(--mud-palette-info); }
.record-status-tile--tofix { --record-tone: var(--mud-palette-warning); }
.record-status-tile--deleted { --record-tone: var(--mud-palette-error); }
.record-status-tile--exporting { --record-tone: var(--mud-palette-info); }
.record-status-tile--done { --record-tone: var(--mud-palette-success); }

.record-status-tile .record-status-icon { color: var(--record-tone); }
.record-status-tile--ingest .record-status-icon { color: var(--mud-palette-text-secondary); }

/* On: filled with the look's own colour, as the picture's Terminés. */
.record-status-tile--on {
    background: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

.record-status-tile--on .record-status-icon {
    color: var(--mud-palette-primary-text);
}

.record-status-tile--on .record-status-count {
    background: var(--mud-palette-primary-text);
    color: var(--mud-palette-primary);
}

.record-search {
    margin: 0 !important;
}

.record-filter-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}


.record-filter {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1 1 0;
    min-width: 9rem;
    max-width: 15rem;
}

/* Type holds two short words; Tri and Groupe's longest choices (Más antiguas primero, Sans regroupement) need the most room. */
.record-filter--narrow {
    flex-grow: 0.7;
    min-width: 8rem;
}

.record-filter--wide {
    flex-grow: 1.3;
    min-width: 14.25rem;
    max-width: 17rem;
}

.record-filter-label {
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

.record-filter .mud-input-control {
    margin: 0 !important;
}

.record-filter-switch {
    align-self: center;
    white-space: nowrap;
}

.record-filter-reset {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font: inherit;
    font-size: 0.875rem;
    white-space: nowrap;
    cursor: pointer;
}

/* Below 1600 wide the tiles and the filter row tighten so every word stays whole on one line. */
@media (max-width: 1600px) {
    .record-status-tiles { gap: 0.5rem; }
    .record-status-tile { gap: 0.5rem; padding: 0.625rem 0.625rem; font-size: 0.875rem; }
    .record-status-icon { font-size: 1.375rem !important; width: 1.375rem !important; height: 1.375rem !important; }
    .record-status-count { min-width: 1.75rem; padding: 0.125rem 0.5rem; }
    .record-filter-row { gap: 0.75rem; }
    .record-filter { min-width: 8.5rem; }
    .record-filter--narrow { min-width: 7rem; }
    .record-filter--wide { min-width: 13rem; }
    .record-filter .mud-input,
    .record-filter-switch .mud-typography,
    .record-filter-reset { font-size: 0.875rem; }
}

/* ── The table ───────────────────────────────────────────────────────────── */

.record-table {
    --record-columns: minmax(0, 4.5fr) minmax(0, 1.6fr) minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(12rem, 1.3fr);
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    background: var(--mud-palette-surface);
}

.record-row {
    display: grid;
    grid-template-columns: var(--record-columns);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.record-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0.375rem 1rem;
    border-left: 1px solid var(--mud-palette-lines-default);
}

.record-cell:first-child {
    border-left: 0;
}

.record-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--mud-palette-background-grey);
    font-size: 0.9375rem;
    font-weight: 500;
}

.record-head .record-cell {
    align-items: flex-start;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.record-head-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.record-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem 0.25rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.record-cell-main {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding-left: 0.75rem;
}

/* The picture is 16:9 and holds its shape whether or not a thumbnail exists yet, so the list
   does not jump about as stations describe recordings behind the operator's back. */
.record-card-thumb {
    position: relative;
    flex: 0 0 auto;
    width: clamp(8.5rem, 9.5vw, 12rem);
    aspect-ratio: 16 / 9;
    border: 2px solid var(--mud-palette-lines-default);
    border-radius: 4px;
    background: var(--mud-palette-background-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.record-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.record-card-length {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
}

.record-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    min-width: 0;
}

.record-card-code {
    padding: 1px 8px;
    border-radius: 4px;
    background: var(--mud-palette-background-grey);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* The code with the session beside it: one line, the session giving way first. */
.record-card-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
}

/* Deliberately unlike the title: on a presentation the two ran together and there was no
   telling which was the presentation and which the session it sits in. */
.record-card-session {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.8125rem;
    font-style: italic;
    color: var(--mud-palette-text-secondary);
}

.record-card-session .mud-icon-root {
    vertical-align: -0.2em;
    margin-right: 4px;
}

.record-card-text {
    min-width: 0;
    max-width: 100%;
}

/* Two lines for the title, always: a shorter one keeps the room, a longer one is cut with "…"
   (2026-09-19: "should elipsis ... Want the cards to have same height"). */
.record-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    height: 2.6em;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

/* The speaker, in bold, at the end of the chips' line: on a list of a hundred recordings it is the
   name an operator scans for. */
.record-card-speaker {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 600;
    font-size: 0.8125rem;
}

.record-card-chips {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
    max-width: 100%;
}

.record-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 1px 0.625rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: none;
    font: inherit;
    font-size: 0.8125rem;
    line-height: 1.5;
    white-space: nowrap;
}

.record-chip .mud-icon-root {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

.record-chip--neutral { color: var(--mud-palette-text-secondary); }
.record-chip--info { color: var(--mud-palette-info); }
.record-chip--warning { color: var(--mud-palette-warning); }
.record-chip--error { color: var(--mud-palette-error); cursor: pointer; }
.record-chip--success { color: var(--mud-palette-success); background: color-mix(in srgb, var(--mud-palette-success) 18%, transparent); }
.record-chip--session { color: var(--mud-palette-tertiary); }
.record-chip--presentation { color: var(--mud-palette-primary); }

/* The note is the whole reason TO FIX is worth having. */
.record-card-note {
    padding: 4px 8px;
    border-left: 3px solid var(--mud-palette-warning);
    background: var(--mud-palette-background-grey);
    font-size: 0.8125rem;
}

.record-card-note-by {
    display: block;
    opacity: 0.75;
    font-size: 0.75rem;
}

.record-card-held {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--mud-palette-info);
}

/* A recording somebody else has open is dimmed rather than hidden: the operator needs to see
   that it exists and who has it, not to have it disappear from under them. */
.record-row.record-held {
    opacity: 0.72;
}

.record-when {
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.record-when-time {
    color: var(--mud-palette-text-secondary);
    font-size: 0.875rem;
}

.record-take {
    font-variant-numeric: tabular-nums;
}

.record-take--several {
    color: var(--mud-palette-warning);
    font-weight: 600;
}

.record-card-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.record-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.25rem;
    flex: 0 0 auto;
    border: 1.5px solid var(--record-act);
    border-radius: 4px;
    background: color-mix(in srgb, var(--record-act) 14%, transparent);
    color: var(--record-act);
    cursor: pointer;
}

.record-act:disabled {
    opacity: 0.4;
    cursor: default;
}

.record-act--cut { --record-act: var(--mud-palette-primary); }
.record-act--fix { --record-act: var(--mud-palette-warning); }
.record-act--delete { --record-act: var(--mud-palette-error); }
.record-act--error { --record-act: var(--mud-palette-error); }
.record-act--neutral { --record-act: var(--mud-palette-text-secondary); }

.record-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--mud-palette-text-secondary);
}

/* ── The foot ────────────────────────────────────────────────────────────── */

.record-legend {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: calc(-0.5 * var(--st-block-gap));
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.record-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.record-legend-item--cut { color: var(--mud-palette-primary); }
.record-legend-item--fix { color: var(--mud-palette-warning); }
.record-legend-item--delete { color: var(--mud-palette-error); }

.record-legend .preview-powered-by {
    margin-left: auto;
    font-size: 0.8125rem;
}

.record-legend .preview-powered-by__brand {
    margin-left: 0.25em;
    font-weight: 600;
}

.record-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--mud-palette-text-secondary);
}

/* ── The editor ──────────────────────────────────────────────────────────── */

.record-editor {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 110px);
    overflow: hidden;
}

.record-editor-stage {
    display: flex;
    gap: 8px;
    padding: 8px 12px 0;
    min-height: 0;
    flex: 1 1 auto;
}

.record-editor-video {
    flex: 1 1 auto;
    min-height: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-editor-video video {
    max-width: 100%;
    max-height: 100%;
}

/* The meter: peak, held upright beside the picture the way a mixing console has it. */
.record-vu {
    width: 18px;
    flex: 0 0 auto;
    background: #111;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

/*
   The colours sit where they do because the scale is DECIBELS, not amplitude (-60 dB at the
   bottom, full scale at the top). Amber from about -12 dB and red from about -3 dB, which is
   where somebody watching a congress recording wants to be told.
*/
.record-vu-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
        #1b5e20 0%,
        #2e7d32 55%,
        #9ccc65 72%,
        #f9a825 80%,
        #ef6c00 92%,
        #c62828 100%);
    /* Fast up, so a transient is not missed; the peak mark below is what makes it readable. */
    transition: height 40ms linear;
}

/* Peak hold — the mark falls back slowly, so a moment ago is still visible. */
.record-vu-peak {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
    transition: bottom 120ms linear;
    pointer-events: none;
}

/* ── The scrub bar ───────────────────────────────────────────────────────── */

.record-scrub {
    position: relative;
    height: 68px;
    margin: 10px 12px 0;
    background: var(--mud-palette-background-grey);
    border-radius: 4px;
    cursor: pointer;
    overflow: visible;
}

.record-wave {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.record-wave polygon {
    fill: var(--mud-palette-primary);
    opacity: 0.55;
}

/* What will actually be in the finished file, laid over the waveform. */
.record-scrub-keep {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(76, 175, 80, 0.18);
    border-left: 2px solid rgba(76, 175, 80, 0.9);
    border-right: 2px solid rgba(76, 175, 80, 0.9);
    pointer-events: none;
}

/* Every presentation cut from a session on the bar at once, each in its own colour, with its code
   (Raoul, 26SFORL 2026-10-02; 2026-10-03: distinct colours). The one being edited is solid,
   the others are faint so it is clear which the handles move. */
.record-scrub-keep[data-colour] {
    background: none;
    border-left: 2px solid var(--target-colour);
    border-right: 2px solid var(--target-colour);
}

/* The tint, as a layer of the presentation's own colour. */
.record-scrub-keep[data-colour]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--target-colour);
    opacity: 0.22;
}

.record-scrub-keep[data-active="false"] {
    border-left-style: dashed;
    border-right-style: dashed;
}

.record-scrub-keep[data-active="false"]::before {
    opacity: 0.1;
}

.record-scrub-code {
    position: absolute;
    top: 2px;
    left: 4px;
    padding: 0 4px;
    border-radius: 3px;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
    color: #fff;
    background: var(--target-colour);
}

.record-scrub-keep[data-active="false"] .record-scrub-code {
    opacity: 0.75;
}

/* The same colour beside the presentation in "Files to produce". */
.record-target-colour {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: var(--target-colour);
}

/* What is being cut, above the picture (Raoul, 2026-10-02): title, room, date and time. */
.record-editor-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    padding: 6px 12px 0;
}

.record-editor-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* The trim points, to grab and drag. Wider than they look, so a finger finds them. */
.record-trim {
    position: absolute;
    top: -6px;
    bottom: -6px;
    width: 12px;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 3;
    touch-action: none;
}

.record-trim::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 3px;
    width: 6px;
    border-radius: 3px;
    background: var(--target-colour, rgba(76, 175, 80, 1));
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
}

.record-scrub-played {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.record-scrub-head {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    background: var(--mud-palette-error);
    pointer-events: none;
}

/* The tile under the pointer, the way a video site shows one. */
.record-scrub-preview {
    position: absolute;
    bottom: 74px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
}

.record-scrub-tile {
    border: 2px solid var(--mud-palette-surface);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background-color: #000;
    background-repeat: no-repeat;
}

.record-scrub-tile-time {
    text-align: center;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 3px;
    margin-top: 2px;
    padding: 0 4px;
}

/* ── Transport and panels ────────────────────────────────────────────────── */

.record-transport {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    padding: 6px 12px;
}

.record-clock input {
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.record-editor-panels {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    padding: 0 12px 12px;
    overflow: auto;
    flex: 0 0 auto;
    max-height: 42vh;
}

@media (max-width: 1100px) {
    .record-editor-panels {
        grid-template-columns: 1fr;
    }
}

.record-editor-actions {
    border-top: 1px solid var(--mud-palette-divider);
}


/* The edit tab's hover: the tab itself only has room for a code, so everything else lives here. */
.record-tab-tip {
    text-align: left;
    max-width: 420px;
    padding: 2px;
}

.record-tab-tip-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.record-tab-tip-row {
    display: flex;
    gap: 10px;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.record-tab-tip-label {
    flex: 0 0 auto;
    min-width: 92px;
    opacity: 0.7;
}

/* ffmpeg's own words, on the ERROR chip's hover (2026-09-19). Monospace and wrapping,
   because it is a tool's output and an operator may well be copying it to somebody else. */
.record-card-error-message {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 9rem;
    overflow: auto;
    margin-bottom: 6px;
}

/* "Is anything actually happening?" — beside the station name, on every tab (2026-09-19). */
.record-activity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    cursor: default;
}

.record-activity-text {
    font-size: 0.75rem;
    opacity: 0.85;
    white-space: nowrap;
}

.record-activity-tip {
    text-align: left;
    max-width: 520px;
    padding: 2px;
}

/* The live log. Monospace so the times line up, and scrolling rather than growing without end. */
.record-activity-log {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.6875rem;
    line-height: 1.6;
    max-height: 11rem;
    overflow: auto;
}

.record-activity-when {
    opacity: 0.6;
    margin-right: 8px;
}


/* The activity panel is a menu now, so the pointer can travel into it and scroll the log
   (2026-09-19: "I cannot come off chip and get to log area to scroll"). */
.record-activity-menu {
    padding: 10px 12px;
    max-width: 560px;
}

.record-activity-menu .record-activity-log {
    max-height: 16rem;
}

/* The panel's sections: Doing now, Waiting, Stations, Problems, Thrown away today (CUT-SFORL, 2026-10-01). */
.record-activity-heading {
    margin-top: 8px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.record-activity-quiet {
    opacity: 0.6;
}

.record-activity-warn {
    color: var(--mud-palette-warning);
}

/* "Skip and delete" / "Stop export" at the end of a Doing now row. */
.record-activity-skip {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0 6px;
    min-width: 0;
    font-size: 0.6875rem;
    line-height: 1.4;
}

/* Under a Doing now row: the exact command and its last lines, closed until asked for. */
.record-activity-run {
    margin: 0 0 4px 102px;
    font-size: 0.6875rem;
}

.record-activity-run summary {
    cursor: pointer;
    opacity: 0.7;
}

.record-activity-run pre {
    margin: 4px 0 0;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.625rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 12rem;
    overflow: auto;
    user-select: text;
}

/* Problems and thrown-away recordings: one line each, scrolling past a handful. */
.record-activity-list {
    font-size: 0.75rem;
    line-height: 1.5;
    max-height: 9rem;
    overflow: auto;
    word-break: break-word;
}

/* The checklist is a TAB, so it takes the window like every other one: the flex chain from the
   page down through the tab panel already carries the height, and this is the last link in it
   (2026-09-19). */
.record-checklist {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 12px 16px;
}
