@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade {
    animation-duration: 0.75s;
    animation-delay: 0.5s;
    animation-name: fadeIn;
    animation-timing-function: cubic-bezier(.26, .53, .74, 1.48);
    animation-fill-mode: backwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.fade-out {
    animation-duration: 0.5s;
    animation-name: fadeOut;
    animation-timing-function: cubic-bezier(.26, .53, .74, 1.48);
    animation-fill-mode: backwards;
}

.centered-element {
    display: block;
    margin: 0 auto;
}

.centering-container {
    align-items: center;
    display: flex;
    width: 100%;
    height: 100vh;
}

.centering-container-inapp {
    align-items: center;
    display: flex;
    width: 100%;
    height: calc(100vh - 80px);
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ---------------------------------------------------------------------------
 * Transcript viewer (dialog on the meetings list, not the room)
 *
 * The separator was rgba(0,0,0,0.06) back when dialogs were a light surface.
 * The portal is dark now, where a black hairline is simply invisible — so it
 * matches the card border used everywhere else.
 * ------------------------------------------------------------------------- */

.transcript-view {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;
}

.transcript-line {
    padding: 6px 0;
    border-bottom: 1px solid var(--card-border);
}

.transcript-line:last-child { border-bottom: none; }

.transcript-speaker {
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 8px;
}

/* A shared-mic voice is a button: clicking says who it was. Styled as the
   speaker name it is, with a dotted underline as the only tell — the
   affordance whispers, because most lines never need it. */
button.transcript-speaker-assignable {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}

button.transcript-speaker-assignable:hover { color: var(--accent-color); }

.transcript-offset {
    font-family: monospace;
    font-size: 0.72rem;
    opacity: 0.6;
}

.transcript-text {
    font-size: 0.92rem;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---------------------------------------------------------------------------
 * Meeting room (meeting.js owns the tiles inside .meeting-grid)
 * ------------------------------------------------------------------------- */

/* MudMainContent reserves the app-bar height as top padding, so a 100vh page
   inside it overflows the viewport by exactly that much — which pushed the
   control bar (and therefore the Leave button) below the fold. Subtract the
   same variable MudBlazor pads with, so the room always fits and the controls
   are reachable without scrolling. */
/* The room is exactly one screen tall, and only its own parts scroll — the
   chat, the transcript, the roster. The Lens shim's test-environment banner
   takes 40px off the top of the viewport and says so in --delve-shim-height;
   without subtracting it the room overflowed by exactly that much and the
   whole page scrolled (2026-08-24, flagged in the walkthrough on the dev site,
   where the banner is always up). Unset everywhere the shim isn't. */
.meeting-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--mud-appbar-height, 64px) - var(--delve-shim-height, 0px));
    background-color: #1a1d21;
}

/* Both bars are deliberately tight. Every pixel they take is a pixel off the
   stage, and what is on the stage — a shared screen, or one of our apps being
   demonstrated — is the reason anyone is looking at the room. */
/* Reads as an extension of the app bar, and stays usable in the lobby: the
   lobby is a full-viewport fixed overlay at z-index 10, which used to bury
   the meeting name and the "All meetings" button underneath it — visible but
   dimmed, and unclickable. 20 puts this bar above the overlay and its aurora,
   so navigation out of a lobby is never trapped behind the theatre. */
.meeting-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 14px;
    /* --background-dark, a hair short of opaque — ON PURPOSE (2026-11-16, bug
       hunt D: "a lighter strip along the bottom edge" of the client's green
       room). This bar sits above the lobby and, on the client side where
       there is no app bar, covers the very top of the lobby's aurora canvas.
       A fully opaque bar there lets Chromium skip drawing the part of the
       canvas it hides — and for this WebGL canvas it skipped the same height
       at the BOTTOM instead, leaving a band as tall as this bar where the
       aurora was missing (measured: band 26px with a 26px bar, 80px with an
       80px one, gone with the bar hidden; 0.999 rounds to opaque and brings it
       back). At 0.99 the bar hides nothing as far as the compositor is
       concerned and looks the same to a person. */
    background-color: rgba(13, 19, 24, 0.99);
    color: #fff;
    min-height: 0;
    position: relative;
    z-index: 20;
}

/* The room's title does not need to be a headline. */
.meeting-header .mud-typography-h6 {
    font-size: 0.95rem;
    line-height: 1.3;
}

.meeting-header .mud-icon-button {
    padding: 5px;
}

.meeting-header .mud-typography { color: #fff; }

/* Header actions sit on #24272c, where MudBlazor's default text colour is very
   nearly the background. Lightened explicitly, with a hover surface so they
   read as controls rather than labels. */
.meeting-header-button {
    color: #dfe3e8 !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.meeting-header-button:hover {
    background-color: rgba(255, 255, 255, 0.10) !important;
    color: #fff !important;
}

.meeting-header-button.is-active {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.22) !important;
    color: var(--mud-palette-primary) !important;
}

/* The grid is a column of two regions: .meeting-strip (participant cameras)
   above .meeting-stage (shared screens). With nothing shared the stage is
   hidden and the strip expands into the ordinary tile grid, so the normal
   case is unchanged. When someone shares, this flips to the Zoom/Teams shape:
   a short filmstrip of faces on top, the shared screen taking the rest. */
.meeting-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 12px;
    padding: 12px;
    overflow: hidden;
}

.meeting-strip {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-auto-rows: minmax(200px, 1fr);
    gap: 12px;
    overflow-y: auto;
    align-content: center;
}

.meeting-stage { display: none; }

/* --- Presenting --------------------------------------------------------- */

.meeting-grid.is-presenting .meeting-strip {
    /* A band of faces, kept short: the stage is what people are here to see. */
    flex: 0 0 auto;
    height: 15vh;
    min-height: 84px;
    max-height: 148px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    align-content: stretch;
    /* Centred: a couple of faces belong in the middle of the band, not shoved
       against the left edge with the rest of it empty. */
    justify-content: center;
    position: relative;
}

/* Moving the people lives on the people. Hidden until the strip is hovered, and
   only while something is on the stage — in the ordinary grid view there is no
   filmstrip to move. */
.meeting-strip-move {
    display: none;
    position: absolute;
    top: 4px;
    right: 6px;
    z-index: 5;
    padding: 3px 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background-color: rgba(20, 22, 26, 0.82);
    color: #dfe3e8;
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.meeting-grid.is-presenting .meeting-strip-move { display: block; }
/* In a tall room the faces can only go across the top (roomIsPortrait in
   meeting.js), so the control hides — [hidden] alone loses to the rule above. */
.meeting-strip-move[hidden] { display: none !important; }
.meeting-grid.is-presenting .meeting-strip:hover .meeting-strip-move { opacity: 1; }
.meeting-strip-move:hover { background-color: rgba(40, 44, 52, 0.95); color: #fff; }

/* Faces down the side instead of across the top. A wide stage is usually short
   of height rather than width — a 16:10 app in a 16:9 room letterboxes against
   the height — so moving the filmstrip to a column hands the stage back the
   vertical space it was missing and costs width it had spare. */
.meeting-grid.is-presenting.strip-side {
    flex-direction: row-reverse;
}

.meeting-grid.is-presenting.strip-side .meeting-strip {
    height: auto;
    max-height: none;
    flex: 0 0 clamp(150px, 15vw, 260px);
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

.meeting-grid.is-presenting.strip-side .meeting-strip .meeting-tile {
    width: 100%;
    height: auto;
    flex: 0 0 auto;
}

.meeting-grid.is-presenting .meeting-strip .meeting-tile {
    flex: 0 0 auto;
    height: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
}

/* The people strip pages rather than scrolls (meeting.js "The people strip
   beside a shared screen"): the faces past the page are hidden, and an arrow
   at either end of the row says how many more there are that way. The arrows
   are items in the row (first and last by `order`), so they sit right beside
   the faces however wide the window is. */
.meeting-grid .meeting-tile.tile-strip-off { display: none !important; }

.meeting-strip-nav {
    display: none;
    flex: 0 0 auto;
    align-self: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background-color: rgba(20, 22, 26, 0.85);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.meeting-strip-nav:hover { background-color: rgba(40, 44, 52, 0.98); }
.meeting-grid.is-presenting:not(.is-designed) .meeting-strip-nav:not([hidden]) { display: block; }
.meeting-strip-nav.is-prev { order: -1; }
.meeting-strip-nav.is-next { order: 100000; }

/* Filmstrip tiles are small: keep the stats readout to a single clipped line
   so it cannot wrap over the participant's name. */
.meeting-grid.is-presenting .meeting-strip .meeting-tile-stats {
    font-size: 0.6rem;
    max-width: calc(100% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meeting-grid.is-presenting .meeting-stage {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 12px;
}

.meeting-grid.is-presenting .meeting-stage .meeting-tile {
    flex: 1;
    min-height: 0;
}

/* A Lens walkthrough on the stage. Sits in the same region a shared screen
   does and behaves the same way — the filmstrip shrinks, the stage takes the
   room — because to everyone watching it is the same gesture.

   Comparison mode is the marquee case: two packets side by side, equal halves,
   proving our app against the one it replaces screen for screen. It collapses
   to stacked rows on a narrow viewport, where two half-width screenshots would
   be too small to read and the point of the comparison would be lost. */
.meeting-grid.is-presenting .meeting-walkthrough {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 12px;
}

.meeting-walkthrough .wt-panel {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Matches the tile treatment so a walkthrough and a shared screen sit on
       the stage looking like the same kind of object. */
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

/* contain, never cover: a screenshot is evidence, and cropping the edge off
   somebody's application to fill a panel would cut away the part of the screen
   the demo is about. Letterboxing is the honest failure. */
.meeting-walkthrough .wt-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
/* A stream has no picture size of its own to be "auto" about — it fills the
   panel's width and moment-replay fits the page inside, height included. */
.meeting-walkthrough .wt-replay { width: 100%; }

@media (max-width: 900px) {
    .meeting-grid.is-presenting .meeting-walkthrough.is-comparison {
        flex-direction: column;
    }
}

/* ---- A document (or an image) on the stage -------------------------------
   Sits in the same region as a walkthrough and a shared screen, because to
   everyone in the room it is the same gesture: somebody is showing us
   something. White rather than the tiles' black — a document is read, and a
   page of text in a black frame reads as a screenshot of a page of text. */
.meeting-grid.is-presenting .meeting-artifact {
    flex: 1;
    min-height: 0;
    display: flex;
    position: relative;
}

.meeting-artifact .artifact-pane {
    flex: 1;
    min-width: 0;
    min-height: 0;
    position: relative;
    /* The clip that makes an image's region a region: the rest of the picture
       is laid out past these edges and simply not shown. */
    overflow: hidden;
    border-radius: 12px;
    background-color: #fff;
}

.meeting-artifact[data-kind="image"] .artifact-pane {
    background-color: #0d1116;
}

/* pointer-events: none is load-bearing, not styling. Without it a frame
   scrolls itself under anyone's wheel — including a client's — and the room
   silently stops looking at the same thing. Every gesture is taken on the
   pane instead, and only Delve's turns into a viewport. */
.meeting-artifact .artifact-media {
    pointer-events: none;
    user-select: none;
}

.meeting-artifact iframe.artifact-media {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.meeting-artifact img.artifact-media {
    position: absolute;
    max-width: none;
    max-height: none;
    display: block;
}

.meeting-tile {
    position: relative;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meeting-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meeting-tile.tile-screen video {
    object-fit: contain;
    background-color: #000;
}

/* No self-view mirror anywhere (2026-10-06, by request): your own tile, the
   green room, the waiting room, Settings and the phone all show the picture
   everyone else receives. A mirrored self-view put a held-up page or a
   background with words on it backwards, and made the same person look
   different on two screens of the same room. */

/* Camera off: hide the (black) video entirely and let the avatar show through,
   so a participant with their camera down still reads as present. */
.meeting-tile.tile-cam-off video { opacity: 0; }

.meeting-tile-avatar {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #23272e;
    pointer-events: none;
}

.meeting-tile.tile-cam-off .meeting-tile-avatar { display: flex; }

.meeting-tile-initials {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #3c4250, #2b3038);
    color: #e8ecf1;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid #454c57;
}

.meeting-tile-avatar-name {
    color: #c8cdd4;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
}

/* In the presentation filmstrip the tiles are small — shrink the avatar to match. */
.meeting-grid.is-presenting .meeting-strip .meeting-tile-initials {
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
}

.meeting-grid.is-presenting .meeting-strip .meeting-tile-avatar-name { display: none; }

.meeting-tile.tile-disconnected { outline: 2px solid #d32f2f; }

/* Their connection dropped but they are still in the meeting (2026-10-08): the
   tile stays put and says so — a vanished tile read as them having left. Three
   ways in (2026-10-12): the media server dropped them; their meeting connection
   died and the tile waits for them to rejoin; or the media server already reads
   their link as LOST, seconds in, before either timeout fires. */
.meeting-tile.tile-reconnecting::after {
    content: "Reconnecting…";
    position: absolute;
    /* Bottom centre, just above the name label (2026-10-12). At the top it sat
       on the stats row, and on the big stage tile the room's own banners ("No
       sound is reaching us…") covered it; the middle is the avatar on a tile
       with no video; and a dropped person has no live captions to collide
       with down here. */
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(246, 196, 83, 0.92);
    color: #1a1d22;
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 3;
}
.meeting-tile.tile-reconnecting .meeting-tile-avatar { opacity: 0.6; }

/* OUR internet dropped (2026-10-15): the chip goes on our own tile, where the
   problem is, instead of "Reconnecting…" under everyone else's name. */
.meeting-tile.tile-own-offline::after {
    content: "You're offline";
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(211, 47, 47, 0.92);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 3;
}

/* A share with no sound (2026-10-16): on the presenter's own share tile only.
   Quiet by design — dark, not red — because a silent share is usually right;
   the tooltip says why there is no sound, and a click re-shares a tab with it. */
.meeting-share-nosound {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border: 0;
    border-radius: 10px;
    background: rgba(20, 24, 28, 0.78);
    color: #fff;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    z-index: 3;
}
.meeting-share-nosound:hover { background: rgba(45, 106, 90, 0.95); }

.meeting-tile-label {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 2px 10px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    /* Above the camera-off avatar backdrop (2026-08-26, by request): the
       avatar is appended after the label, so DOM order was quietly hiding
       the bottom-left name exactly when the face wasn't there to identify
       them — and on the filmstrip, where the avatar's own centered name is
       hidden, that left no name at all. The corner name is the constant. */
    z-index: 2;
}

.meeting-tile-stats {
    position: absolute;
    right: 8px;
    top: 8px;
    padding: 1px 8px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #9be27d;
    font-family: monospace;
    font-size: 0.7rem;
}

/* The client's room does not show the read-out. It is an operating instrument —
   ours to watch, and Lens's to assert on — not something a client should have to
   look past to see the person they came to talk to. */
.meeting-grid.no-tile-stats .meeting-tile-stats { display: none; }

/* The task item dialog's verb row (2026-08-25, from live testing): every
   button the same size, one line each, no resizing when a label changes —
   equal flex shares do all three at once, and nowrap guards the longest
   label ("Marked as in progress") at the dialog's width. */
.home-item-verb {
    flex: 1 1 0;
    white-space: nowrap;
}

/* "A bit wider", not Medium's full 960px — the dialog options only offer
   coarse steps, so the width is capped here instead. */
.home-item-dialog {
    max-width: 780px;
    width: 100%;
}

/* With the read-out hidden the controls below it close the gap (2026-08-25,
   flagged in the walkthrough: "turning off stream info should move the other
   stuff up so that its not just floating there"). Their resting offsets assume
   the stats line above them exists; these overrides are the stats line's height
   subtracted, not a second layout system. */
.meeting-grid.no-tile-stats .meeting-tile-speakercount { top: 8px; }
.meeting-grid.no-tile-stats .meeting-tile-forcetranscribe { top: 34px; }

/* Your own tile with the camera off has no stream to read out — the line is a
   lone "…" — so the controls under it hung below an invisible row (2026-08-25,
   flagged in the walkthrough: "the stream info should move up if the camera
   is off"). The empty line goes and the controls take its place, the same
   offsets as above. Other people's camera-off tiles keep theirs: that line
   still carries their audio, which is the thing worth watching then. */
.meeting-tile.tile-local.tile-cam-off .meeting-tile-stats { display: none; }
.meeting-tile.tile-local.tile-cam-off .meeting-tile-speakercount { top: 8px; }
.meeting-tile.tile-local.tile-cam-off .meeting-tile-forcetranscribe { top: 34px; }

/* Staff-only speaker-count picker, sat under the stats readout in the tile's
   top-right. Semi-transparent until hovered so a room full of tiles is not a
   wall of chrome. */
.meeting-tile-speakercount {
    position: absolute;
    right: 8px;
    top: 32px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #d7c07a;
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 120ms ease-in-out;
}

.meeting-tile:hover .meeting-tile-speakercount,
.meeting-tile.tile-shared-mic .meeting-tile-speakercount {
    opacity: 1;
}

.meeting-tile-speakercount select {
    background-color: transparent;
    color: #d7c07a;
    border: 1px solid #6b5c2e;
    border-radius: 3px;
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    padding: 0 2px;
    cursor: pointer;
}

/* The dropdown list itself renders with the OS palette, so the options need a
   readable background of their own rather than inheriting the tile's. */
.meeting-tile-speakercount select option { background-color: #23272e; color: #e6e6e6; }

/* A flagged tile gets a warm border so it is identifiable at a glance, matching
   the "Person N" badge colour in the transcript. */
.meeting-tile.tile-shared-mic { outline: 2px solid #6b5c2e; outline-offset: -2px; }

/* The always-transcribe toggle (staff, same capability as the count picker),
   sitting under the count picker. Faint until hovered — except when it is ON
   or its tile is ringed red, when it must be findable without hunting.
   Drawn as a miniature slider beside its label (2026-08-25, flagged in the
   walkthrough: "the auto thing should be a toggle like stream info so its
   clear it can be clicked") — the affordance is the point, so it borrows the
   header switch's grammar at tile scale rather than reading as a text chip. */
.meeting-tile-forcetranscribe {
    position: absolute;
    right: 8px;
    top: 58px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border: none;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #d7c07a;
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 120ms ease-in-out;
    z-index: 2;
}

.meeting-tile:hover .meeting-tile-forcetranscribe,
.meeting-tile.tile-transcript-stale .meeting-tile-forcetranscribe,
.meeting-tile-forcetranscribe.is-on {
    opacity: 1;
}

/* ON reads green — the same "being heard" green as the speaking ring, because
   that is what forcing it buys. */
.meeting-tile-forcetranscribe.is-on { color: #57c98a; }

/* The mini switch itself: a track and a knob, teal when on like every other
   switch in the product, sized to live inside a tile without becoming chrome. */
.mtf-track {
    display: inline-block;
    width: 22px;
    height: 12px;
    border-radius: 6px;
    background-color: #4a5058;
    position: relative;
    transition: background-color 120ms ease-in-out;
    flex: 0 0 auto;
}

.mtf-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #c8cdd4;
    transition: left 120ms ease-in-out, background-color 120ms ease-in-out;
}

.meeting-tile-forcetranscribe.is-on .mtf-track { background-color: #1e9e83; }
.meeting-tile-forcetranscribe.is-on .mtf-knob { left: 12px; background-color: #eafff7; }

.meeting-lobby {
    position: fixed;
    inset: 0;
    display: flex;
    /* Centred by the card's own auto margins, not by align-items (2026-11-12).
       A flex container that centres a child taller than itself pushes the
       child's top above the scroll area, where no scrolling reaches it: at
       1440x900 the green room's title sat cut off under the bars, and a
       768-high laptop lost the top of the camera preview too. With auto
       margins the card still sits in the middle when there is room, and
       starts at the top and scrolls when there is not. The top padding clears
       the app bar and the meeting's header, which are drawn over this layer. */
    align-items: flex-start;
    justify-content: center;
    background-color: rgba(26, 29, 33, 0.85);
    z-index: 10;
    padding: 104px 16px 16px;
    overflow-y: auto;
}

.meeting-lobby > * { margin-top: auto; margin-bottom: auto; }

/* --- Green room (pre-join check) ---------------------------------------- */

/* Opaque on purpose, stated explicitly. The card was quietly transparent all
   along — invisible over the old flat gray, obvious the moment the aurora
   started playing behind it, with the meeting title unreadable through the
   glyphs. #1a1e24 is what the old stack actually rendered to (the lobby's
   rgba(26,29,33,.85) over the body gradient), so the card looks exactly as it
   always did — it just no longer depends on what is behind it. Wider than the
   login card because it carries device names and a preview, both of which were
   getting truncated at 460px. */
.lobby-card {
    min-width: 320px;
    width: 100%;
    max-width: 600px;
    background-color: #1a1e24 !important;
    background-image: none;
    border: 1px solid rgba(245, 245, 245, 0.10);
    /* Above the aurora canvas. The canvas is position:fixed and therefore
       positioned; an unpositioned card paints UNDER it regardless of DOM
       order, which showed up as "the card is transparent" — it wasn't, the
       0.7-opacity aurora was painting over the card. Same reason the login
       screen wraps its card in a positioned .login-overlay. */
    position: relative;
    z-index: 1;
}

/* Back from a network drop: covers the green room that is quietly reopening
   the camera and mic underneath, so the person sees one "Reconnecting…" from
   the drop to the room (2026-10-15). Opaque, and above the green room's card
   (z-index 1) — the card stays rendered so its preview keeps producing frames. */
.lobby-rejoin-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: #1a1d21;
}

.lobby-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Full width at 16:9, whatever the screen's height (2026-11-17, Cormac:
       "the video of yourself that you see should be bigger — have it be what
       it was before"). For five days it gave up height on a short screen so
       Join stayed in view without scrolling (2026-11-12), which on a laptop
       made the one thing the green room is for — a look at yourself — a strip
       under 200px tall. The card scrolls from the top when it is taller than
       the screen (see .meeting-lobby), so nothing is cut off. */
    background-color: #14171a;
    border-radius: 10px;
    overflow: hidden;
}

/* The host div Blazor renders; meeting.js creates the <video> inside it. */
.lobby-preview-host {
    width: 100%;
    height: 100%;
}

.lobby-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lobby-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #14171a;
    color: #c8cdd4;
    text-align: center;
}

.lobby-meter-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lobby-meter {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Width is driven straight from meeting.js's analyser loop — no Blazor
   round-trip, so it tracks the voice smoothly. */
.lobby-meter-fill {
    width: 0%;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #50aa31, #8fd14f);
    transition: width 0.06s linear;
}

.lobby-hint {
    display: block;
    margin-top: 4px;
    opacity: 0.7;
}

.lobby-toggles {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Which camera and microphone feed the room — two selects side by side,
   stacking on narrow screens. */
.lobby-devices {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lobby-devices .mud-select {
    flex: 1 1 180px;
    min-width: 0;
}

/* --- The audio check (AudioCheckPanel) ------------------------------------ */
/* One block, three homes: the green room's card, the room's Test microphone
   dialog and Settings → Audio. It reuses .lobby-devices for its two selects,
   so mic and speaker sit side by side and stack together on narrow screens
   exactly as the camera row does. Only the buttons and the one-line verdict
   need rules of their own. */
.audio-check-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* The verdict line is load-bearing — "Recording… speak normally", "Playing
   back…", "Hear yourself? Your mic works." — so it is not dimmed as far as the
   hints around it, and it holds its line height whatever it currently says, so
   the card does not jump between states. */
.audio-check-caption {
    opacity: 0.85;
    min-height: 1.4em;
}

/* --- Holding room (waiting for the host to start) ------------------------- */

.holding-center {
    position: relative;
    z-index: 1;                 /* above the fixed aurora canvas */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 640px;
    padding: 24px;
}

.holding-logo {
    height: 40px;
    opacity: 0.95;
}

.holding-soon {
    color: var(--text-light);
}

.holding-roster-label {
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.holding-roster {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

.holding-roster-name {
    padding: 4px 14px;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    background: rgba(15, 20, 25, 0.6);
    font-size: 0.85rem;
    color: var(--text-light);
}

.holding-leave {
    color: var(--text-muted) !important;
}

/* The waiting room's mirror — the last look before walking in. Still a
   glance surface, not a vanity monitor — the roster and the promise below it
   have to read — but bigger than it was (2026-11-17, Cormac: "the waiting room
   camera, I'd like to be a bit bigger. Right now it's kind of small"): 280px
   wide until then. Never wider than the screen it is on. The 3-2-1 countdown
   that used to live here is gone — approval now opens a door instead of
   starting a fire drill. */
.holding-preview {
    width: min(400px, 86vw);
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background-color: #14171a;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

.holding-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.holding-connecting {
    margin-bottom: 12px;
}

.lobby-backgrounds,
.lobby-setups {   /* the device-setup row reads like the background row beneath it */
    text-align: center;
}

.lobby-bg-options {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.meeting-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 10px;
    background-color: #24272c;
    border-top: 1px solid #33373d;
    transition: max-height 0.18s ease, padding 0.18s ease, opacity 0.15s ease;
    max-height: 70px;
    overflow: hidden;
}

/* Three zones. The centre is what you are doing to the room and stays centred in
   the window regardless of how wide the side zones grow, which is why the sides
   are equal-basis flex rather than auto. */
.meeting-controls-left,
.meeting-controls-right {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.meeting-controls-right { justify-content: flex-end; }

.meeting-controls-center {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Collapsed by the person sharing, who needs the room's height more than they
   need a row of buttons they are not currently pressing. Height rather than
   display:none so it slides, and so the handle that brings it back never moves. */
.meeting-controls.is-collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-top-color: transparent;
}

/* The sliver that puts the bar back. Always present while sharing, so there is
   never a moment where the controls are gone and nothing says how to return. */
.meeting-controls-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 1px 0 2px 0;
    background-color: #24272c;
    border-top: 1px solid #33373d;
    color: #aeb6c0;
    font-family: 'Lato', sans-serif;
    font-size: 0.66rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    user-select: none;
}

.meeting-controls-handle:hover { color: #fff; background-color: #2b2f35; }

/* State lives on .is-off / .is-active rather than MudBlazor Color values. The
   previous blanket `.meeting-controls .mud-icon-button { color: #fff }` won
   against MudBlazor's own colour classes, which silently flattened the red
   hang-up button and the muted-mic state into the same white as everything
   else — the whole bar read as one row of identical grey glyphs. */
.meeting-control {
    background-color: #343941 !important;
    color: #f2f4f7 !important;
    width: 31px;
    height: 31px;
    padding: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

/* Size.Large asks MudBlazor for a large glyph; the button itself is deliberately
   small, so the icon is brought back in proportion rather than overflowing it. */
.meeting-control .mud-icon-root {
    font-size: 1.15rem;
}

/* The bar's own controls, as opposed to the icon-only ones on the annotation
   toolbar. The caption used to be a sibling of the button, which meant the
   target was 31px while the words underneath it — the part people actually read
   to find the control — were not pressable at all, and the bar still paid the
   height for them. Folding the label inside buys a 46px target in a bar that is
   shorter than it was. Native <button> rather than MudIconButton because
   MudIconButton has no slot for anything but the glyph. */
.meeting-control.is-labelled {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    position: relative;
    width: auto;
    min-width: 56px;
    height: 46px;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: 'Lato', sans-serif;
}

.meeting-control.is-labelled .mud-icon-root {
    font-size: 1.3rem;
}

.meeting-control:hover {
    background-color: #454c57 !important;
    transform: translateY(-1px);
}

/* Muted mic / camera off — the states you must be able to spot instantly. */
.meeting-control.is-off {
    background-color: #b3261e !important;
    color: #fff !important;
}

.meeting-control.is-off:hover { background-color: #c9392f !important; }

/* On: a panel open, a screen being shared. The app's own colour (2026-11-12)
   — these were a blue (#1e6feb) that appears nowhere else in the product,
   where every other "on" is the theme's teal. */
.meeting-control.is-active {
    background-color: var(--mud-palette-primary) !important;
    color: var(--mud-palette-primary-text) !important;
}

.meeting-control.is-active:hover { background-color: var(--mud-palette-primary-lighten) !important; }

/* Labels make the bar readable at a glance instead of asking people to decode
   icons — the same reason Zoom and Teams caption theirs. The colour is inherited
   so a muted or active button carries its caption with it rather than leaving a
   grey word sitting on a red background. */
.meeting-control-label {
    font-size: 0.6rem;
    line-height: 1;
    color: inherit;
    opacity: 0.8;
    letter-spacing: 0.02em;
    user-select: none;
    white-space: nowrap;
}

.meeting-control:hover .meeting-control-label { opacity: 1; }

/* Unread chat, on the button rather than beside it — a badge outside the button
   would put the count back in the dead space the label just vacated. */
.meeting-control-badge {
    position: absolute;
    top: 3px;
    right: 5px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 8px;
    background-color: #b3261e;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
}

/* The standing-ask dot on the client's Add file button: what "Later" folds the
   ask card down to. Amber like the other waiting marks, not red — a reminder
   that something was asked for, not an alarm that something is wrong. */
.meeting-control-dot {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d9b45f;
    animation: waiting-pulse 1.6s ease-in-out infinite;
}

/* The same mark inside the More menu, on the item the button's dot is about —
   inline after the label rather than absolute, so it rides the text. */
.meeting-menu-dot {
    display: inline-block;
    margin-left: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d9b45f;
    vertical-align: middle;
}

/* Somebody is in the waiting room. Amber, not the chat badge's red: it asks
   the host to act (approve them) rather than announcing something missed, and
   the two must be tellable apart in peripheral vision. The gentle pulse is
   what makes a host glance down mid-sentence. */
.meeting-control-badge.is-waiting {
    background-color: #e0a63c;
    color: #201a0c;
    animation: waiting-pulse 2s ease-in-out infinite;
}

@keyframes waiting-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(224, 166, 60, 0.55); }
    50% { box-shadow: 0 0 0 5px rgba(224, 166, 60, 0); }
}

/* A chat message just landed and the chat is shut (2026-11-19): the Chat
   button itself stirs for a few seconds — the count in its corner had been
   there all along and nobody saw it arrive. A ring drawn INSIDE the button,
   because the bar clips anything outside it, and in the unread badge's red so
   the two read as one fact. It settles; the count stays until the chat is
   opened. */
.meeting-control.has-news::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid #ff6b60;
    pointer-events: none;
    animation: chat-news 1.1s ease-in-out infinite;
}
.meeting-control.has-news .meeting-control-badge { animation: chat-news-badge 1.1s ease-in-out infinite; }

@keyframes chat-news {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 1; }
}
@keyframes chat-news-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
    .meeting-control.has-news::after { animation: none; opacity: 1; }
    .meeting-control.has-news .meeting-control-badge { animation: none; }
}

/* Split control: the button toggles the device, the caret beside it opens
   that device's menu — the shape Zoom and Teams both use. */
.meeting-control-split {
    display: flex;
    align-items: center;
    gap: 2px;
}

.meeting-caret {
    width: 22px !important;
    height: 46px !important;
    min-width: 22px !important;
    padding: 0 !important;
    border-radius: 0 12px 12px 0 !important;
    background-color: #343941 !important;
    color: #c8cdd4 !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.meeting-caret:hover {
    background-color: #454c57 !important;
    color: #fff !important;
}

/* The caret wears the toggle's off-state too (2026-08-25, flagged in the
   walkthrough: "the arrow part of the button should also turn red") — the
   pair reads as one control, so half of it staying grey read as a bug. A
   shade darker than the toggle keeps the seam visible; the hover matches the
   toggle's own. */
.meeting-caret.is-off {
    background-color: #9e2118 !important;
    color: #fff !important;
}

.meeting-caret.is-off:hover { background-color: #c9392f !important; }

/* Round the toggle's right edge off so the pair reads as one control. */
.meeting-control-split .meeting-control {
    border-radius: 12px 0 0 12px !important;
}

.meeting-device-menu {
    min-width: 260px;
    max-width: 340px;
}

.meeting-menu-heading {
    display: block;
    padding: 8px 16px 2px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* The one item in a person's ⋯ menu that takes something away from them
   (Remove, 2026-11-03) reads as such — last, after a divider, and red. */
.meeting-menu-danger, .meeting-menu-danger .mud-menu-item-text { color: #e57373; }

.meeting-controls-divider {
    width: 1px;
    height: 30px;
    margin: 0 6px;
    background-color: #3d434c;
}

/* Deliberately not shaped like the toggles beside it — a pill, not a rounded
   square — so the one button that ends your presence in the room is never
   mistaken for one that flips a setting. Same height so the row still reads as
   a row. */
.meeting-leave {
    background-color: #b3261e !important;
    color: #fff !important;
    height: 46px;
    min-width: 0 !important;
    padding: 0 22px !important;
    border-radius: 23px !important;
    font-size: 0.8rem !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.meeting-leave:hover {
    background-color: #c9392f !important;
    transform: translateY(-1px);
}

/* End meeting — staff only. Outlined red beside the filled-red Leave: related
   to leaving, clearly not the same thing. */
.meeting-end {
    color: #ff8a80 !important;
    border: 1.5px solid rgba(255, 138, 128, 0.55) !important;
    height: 52px;
    padding: 0 20px !important;
    border-radius: 26px !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background-color 0.15s ease;
}

.meeting-end:hover {
    background-color: rgba(179, 38, 30, 0.28) !important;
}

/* Meeting side panel (chat + transcript) */

.meeting-main {
    flex: 1;
    display: flex;
    min-height: 0;
    position: relative;   /* anchors the captions overlay over the video area */
}

.meeting-main .meeting-grid { flex: 1; }

/* The panel must never grow the page. A flex item defaults to
   min-height: auto, which means it expands to fit its content — that is what
   let a long transcript push the panel off the bottom of the viewport and
   behind the control bar. Every wrapper between the panel and the scrolling
   list needs min-height: 0 for the height limit to actually reach the list. */
.meeting-panel {
    width: 360px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background-color: #24272c;
    border-left: 1px solid #33373d;
}

.meeting-panel-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* The panel's tab strip. This was MudTabs, and replacing it with markup fixed
   three things at once. MudTabs sets an unqualified `transition: .3s` on its
   panel container and its tab-bar wrapper, so every property animated — opening
   the panel spent a third of a second going from nothing to readable. It laid
   the strip out as a `width: max-content` wrapper, so tabs took their natural
   width and bunched at the left with dead space beside them, or overflowed into
   scroll arrows when there were four. And it positioned its active-tab underline
   from a JS measurement, which pointed at the wrong tab as soon as the widths
   were overridden.

   Every one of those was something being fought rather than used. The state is a
   single int this page already owns, so the tabs are buttons and the underline is
   a border on whichever one is active. Even shares of the strip, no animation,
   no measuring. */
.meeting-panel-tabs {
    display: flex;
    flex: 0 0 auto;
    border-bottom: 1px solid #33373d;
}

.meeting-panel-tab {
    position: relative;   /* anchors .meeting-panel-tab-badge */
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 4px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #aeb6c0;
    font-family: 'Lato', sans-serif;
    font-size: 0.6rem;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.12s ease, background-color 0.12s ease;
}

.meeting-panel-tab .mud-icon-root { font-size: 1.15rem; }

/* The panel's own way out — sits at the strip's end, deliberately narrower
   than the tabs so a reach for Files can't land on Close. */
.meeting-panel-close {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    background: none;
    border: none;
    color: #aeb6c0;
    cursor: pointer;
}

.meeting-panel-close:hover {
    color: #e8ecf1;
    background-color: rgba(255, 255, 255, 0.05);
}

/* The header's stream-info slider: same MudSwitch as the home customizer,
   trimmed to header scale — the default label margin pushed the row taller
   than the buttons beside it. */
.meeting-header-switch { margin: 0 4px 0 0; }

.meeting-header-switch .mud-switch-label-small,
.meeting-header-switch .mud-typography {
    font-size: 0.8rem;
    white-space: nowrap;
}

.meeting-panel-tab:hover {
    color: #e8ecf1;
    background-color: rgba(255, 255, 255, 0.05);
}

.meeting-panel-tab.is-active {
    color: var(--mud-palette-primary);
    border-bottom-color: var(--mud-palette-primary);
}


.meeting-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse; /* newest pinned at the bottom, no scroll JS */
    padding: 8px 12px;
    gap: 8px;
}

.meeting-chat-line, .meeting-transcript-line { color: #e6e6e6; }

.meeting-chat-name {
    font-weight: 700;
    font-size: 0.8rem;
    color: #9be27d;
    margin-right: 8px;
}

.meeting-chat-time { font-size: 0.7rem; color: #9a9a9a; }

/* "Person 1" / "Person 2" within a shared microphone. Deliberately quieter
   than the account name it sits beside: the account is who we know, the person
   number is only who we can tell apart. */
.meeting-subspeaker {
    font-size: 0.7rem;
    font-weight: 600;
    color: #d7c07a;
    border: 1px solid #6b5c2e;
    border-radius: 3px;
    padding: 0 4px;
    margin-right: 8px;
    white-space: nowrap;
}

.meeting-chat-text { font-size: 0.9rem; white-space: pre-wrap; word-break: break-word; }

.meeting-transcript-partial .meeting-chat-text { font-style: italic; color: #b9b9b9; }

.meeting-chat-input {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-top: 1px solid #33373d;
}

.meeting-chat-input .mud-input-control { flex: 1; }

.meeting-panel .mud-input-slot, .meeting-panel .mud-input { color: #e6e6e6 !important; }

@media (max-width: 800px) {
    .meeting-panel { position: absolute; right: 0; top: 48px; bottom: 56px; z-index: 5; }
}

/* ---------------------------------------------------------------------------
 * In-meeting parity: active speaker, hand, reactions, pin, tile actions
 * ------------------------------------------------------------------------- */

/* Active speaker — a green ring on whoever is talking. box-shadow (inset) rather
   than outline so it never fights the outline-based disconnected/shared-mic
   states, and reads through the tile's rounded corners. */
.meeting-tile.is-speaking {
    box-shadow: inset 0 0 0 3px #57c98a;
}

/* Pinned tile (on the stage) gets a quiet blue ring to say "this is here on
   purpose", distinct from the green speaking ring. */
.meeting-tile.tile-pinned {
    box-shadow: inset 0 0 0 2px #1e6feb;
}

/* No-transcript watch (staff only) — the transcriber hasn't heard this open
   microphone in over a minute. An overlay, not the box-shadow the speaking
   ring uses and not an outline either, because both lose to a tile's video:
   an inset box-shadow paints beneath children, and an inset outline paints
   beneath the LOCAL tile's video, whose mirror transform makes it a stacking
   context (both verified by pixel in a Lens run). A positioned ::after with
   a z-index beats every video. pointer-events: none so the tile's click and
   its corner controls stay reachable; the remedy for the ring is the tile's
   always-transcribe toggle. */
.meeting-tile.tile-transcript-stale::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 4px solid #d9534f;
    border-radius: 12px;
    pointer-events: none;
    z-index: 3;
}

/* The ring is a diagnostic, so it goes with the other diagnostics (2026-11-04,
   by request — Kyle on 10/26, after Jason asked what the red border around his
   picture meant: "like the debug overlay… otherwise has it off"). Stream info
   off hides it; the watch itself keeps running, so turning Stream info on
   shows the true state at once. The tile's always-transcribe toggle, the
   remedy, is unaffected. */
.meeting-grid.no-tile-stats .meeting-tile.tile-transcript-stale::after {
    display: none;
}

/* Hover actions cluster (fullscreen, pin), top-left so it clears the stats and
   speaker-count chrome on the right. Faint until the tile is hovered. */
.meeting-tile-actions {
    position: absolute;
    left: 8px;
    top: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 120ms ease-in-out;
    z-index: 2;
}

.meeting-tile:hover .meeting-tile-actions { opacity: 1; }

.meeting-tile-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 7px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.meeting-tile-action:hover { background-color: rgba(30, 111, 235, 0.85); }
.meeting-tile-action.is-on { background-color: #1e6feb; }

/* Floating emoji reaction — rises and fades over the sender's tile. */
.meeting-reaction-float {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    font-size: 2.4rem;
    pointer-events: none;
    animation: reaction-rise 2.4s ease-out forwards;
    z-index: 3;
}

@keyframes reaction-rise {
    0%   { opacity: 0; transform: translate(-50%, 10px) scale(0.6); }
    15%  { opacity: 1; transform: translate(-50%, 0) scale(1.1); }
    30%  { transform: translate(-50%, -6px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -90px) scale(1); }
}

/* Telepointer — a viewer's click on a shared screen, drawn as a dot with an
   expanding ring and the pointer's name, at the same content spot on every
   view of the share. The crosshair cursor is the affordance. These rules are
   duplicated as TELEPOINTER_CSS in meeting.js for the presenter's Document
   PiP monitor (app.css never reaches that window) — keep the two in step. */
.meeting-share-pointable { cursor: crosshair; }

.meeting-telepointer {
    position: absolute;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    z-index: 12;
    pointer-events: none;
}

.meeting-telepointer-dot {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #4fc3f7;
    box-shadow: 0 0 8px #4fc3f7;
}

.meeting-telepointer-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #4fc3f7;
    /* The rings announce; forwards-fill ends them faded so the dot and name
       carry the rest of the ping's (dismissable) life without strobing. */
    animation: telepointer-ring 0.7s ease-out 4 forwards;
}

.meeting-telepointer-name {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 1px 6px;
    border-radius: 8px;
    white-space: nowrap;
}

@keyframes telepointer-ring {
    from { transform: scale(1); opacity: 0.9; }
    to   { transform: scale(3.6); opacity: 0; }
}

/* Live-captions overlay — one band across the bottom of the video area, the way
   Zoom/Teams render CC. Sits above the grid, below the control bar.

   CENTRED ON THE VIDEO, NOT ON THE ROOM (2026-11-06, by request: with the side
   panel open "it will go over that a bit"). The band is positioned inside
   .meeting-main, which holds the side panel as well as the video, so 50% of it
   was the middle of video + panel and a wide band ran under the panel's edge.
   Everything that takes the right-hand side of .meeting-main is subtracted
   first — the panel (--cap-panel) and the faces down the side during a share
   (--cap-strip) — and the band centres on, and is sized to, what is left. */
.meeting-main {
    --cap-panel: 0px;
    --cap-strip: 0px;
    --cap-room: calc(100% - var(--cap-panel) - var(--cap-strip));
}
.meeting-main:has(> .meeting-panel) { --cap-panel: 360px; }
/* Below 800px the panel floats over the video instead of beside it (and on a
   phone it takes the whole room), so there is no column to keep clear. */
@media (max-width: 800px) { .meeting-main:has(> .meeting-panel) { --cap-panel: 0px; } }
.meeting-page.is-phone .meeting-main:has(> .meeting-panel) { --cap-panel: 0px; }
/* The strip's width is its own clamp from .strip-side, plus the room's gap. */
.meeting-main:has(> .meeting-grid.is-presenting.strip-side) {
    --cap-strip: calc(clamp(150px, 15vw, 260px) + 12px);
}

.meeting-captions {
    position: absolute;
    left: calc(var(--cap-room) / 2);
    bottom: 16px;
    transform: translateX(-50%);
    max-width: min(900px, calc(var(--cap-room) * 0.8));
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.72);
    color: #fff;
    pointer-events: none;
    z-index: 4;
}

.meeting-caption-line { font-size: 1.05rem; line-height: 1.35; }
/* A live line is only dimmed (2026-11-04). Italics or a trailing "…" change
   the text's width, so the line would re-wrap the moment it became final and
   the band would jump under the reader. */
.meeting-caption-partial { opacity: 0.8; }

/* One band per person speaking (2026-11-05) — see CaptionBands in the room
   page. The name is the band's own label, at the start, and never scrolls:
   only the words beside it roll. They sit in a window bottom-aligned in a
   column, so what does not fit overflows off the TOP and is clipped there and
   the newest words are always on the last line. Two lines when one person is
   talking; one line each when several are (.is-several). The window, not the
   band, clips, so no sliver of a rolled-off line shows. */
.meeting-caption-band {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.05rem;
    line-height: 1.35;
}
.meeting-caption-band .meeting-caption-who {
    flex: none;
    /* Room for a full name on a phone (a 296px band); a very long one ends in
       an ellipsis rather than squeezing the words to nothing. */
    max-width: 42%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    color: #9be27d;
}
.meeting-caption-roll {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-height: 2.7em;
    overflow: hidden;
}
.meeting-captions.is-several .meeting-caption-roll { max-height: 1.35em; }

/* The band FITS ITS WORDS (2026-11-06, by request: "the captions black
   background should be fitting the text rather then being a set size"). It
   used to keep one fixed width so it would not resize as words arrived; a
   short line then sat in a wide black slab. Now it is as wide as its text, up
   to a share of the video (not the window — sized off the window it ran into
   the bottom-left name label at 1024 wide), and once the words wrap it holds
   that full width, so only a short, new band grows. */
.meeting-captions.meeting-captions-live {
    width: max-content;
    max-width: min(900px, calc(var(--cap-room) * 0.76));
    box-sizing: border-box;
}

/* In-room notices — the mic-silence warning and the ask-to-mute prompt. A
   floating card at the top of the video area: unmissable without covering
   faces, and gone the moment it's answered. */
/* The stack owns the position; each notice is a plain row inside it. Two
   absolutely-positioned notices at the same top used to land on each other
   (2026-08-24, the walkthrough: a mute-ask over the mic warning). */
/* CHAT OVER THE STAGE (2026-11-19) — see FlashChat in MeetingRoomPage. A chat
   line that arrives while the Chat tab is not showing, drawn like a caption
   but larger and with the sender's name on top: "your name, but in the middle
   and bigger font… for a couple of moments and then it fades away" (Kyle,
   11/16). Centred on the video area with the captions' own measure
   (--cap-room), so it keeps clear of an open panel; in the lower part of the
   stage, not its dead centre, so a shared screen's working area stays
   readable. It takes no clicks. Each line fades itself out over its own life
   (--life, set per line); the page drops it on the next tick. */
.meeting-chat-flashes {
    position: absolute;
    bottom: 22px;
    left: calc(var(--cap-room) / 2);
    transform: translateX(-50%);
    width: max-content;
    max-width: min(760px, calc(var(--cap-room) * 0.8));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5;
    pointer-events: none;
}
/* Captions on: the chat sits above the band (two caption lines and its
   padding), so neither covers the other. */
.meeting-chat-flashes.is-above-captions { bottom: 112px; }

.meeting-chat-flash {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 20px 12px;
    border-radius: 14px;
    background: rgba(10, 14, 18, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    text-align: center;
    animation: chat-flash var(--life, 7s) ease-out forwards;
}
.meeting-chat-flash-who {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #7fd3c8;
}
.meeting-chat-flash-who .mud-icon-root { font-size: 0.95rem; }
.meeting-chat-flash-text {
    font-size: 1.45rem;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@keyframes chat-flash {
    0% { opacity: 0; transform: translateY(8px); }
    4% { opacity: 1; transform: none; }
    86% { opacity: 1; }
    100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .meeting-chat-flash { animation: none; } }
@media (max-width: 600px) {
    .meeting-chat-flashes { bottom: 58px; max-width: calc(var(--cap-room) * 0.92); }
    .meeting-chat-flashes.is-above-captions { bottom: 150px; }
    .meeting-chat-flash-text { font-size: 1.15rem; }
}

/* The host's line at the top of Audio settings, when "Check their audio"
   came with one: the part written for this person, so it is the larger text. */
.meeting-audio-check-note { margin-top: 4px; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }

.meeting-room-notices {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: min(640px, 90%);
    z-index: 6;
}

.meeting-room-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background-color: rgba(20, 20, 24, 0.92);
    color: #fff;
    max-width: 100%;
}

.meeting-room-notice-text { min-width: 0; }

/* The door banner (2026-10-20): the one notice a host must not read past, so
   it carries the warning colour on its edge rather than the stack's quiet
   border, and lands with a single pulse — noticeable, then still, because a
   meeting is going on underneath it. */
.meeting-door-notice { border-color: var(--mud-palette-warning); box-shadow: 0 0 0 1px var(--mud-palette-warning), 0 6px 24px rgba(0, 0, 0, 0.45); animation: meeting-door-arrive 1.2s ease-out 1; }
.meeting-door-notice .meeting-door-notice-since { color: #c9ced6; font-variant-numeric: tabular-nums; }
@keyframes meeting-door-arrive {
    0% { transform: translateY(-8px); opacity: 0; box-shadow: 0 0 0 1px var(--mud-palette-warning), 0 0 0 0 rgba(255, 193, 7, 0.55); }
    35% { transform: none; opacity: 1; }
    100% { box-shadow: 0 0 0 1px var(--mud-palette-warning), 0 0 0 14px rgba(255, 193, 7, 0); }
}
@media (prefers-reduced-motion: reduce) { .meeting-door-notice { animation: none; } }

.meeting-rec-chip-off { cursor: default; }

/* ---------------------------------------------------------------------------
   The client side (2026-08-24): headers that keep their line, and the
   project card as one object with sub-tabs instead of three stacked cards.
   --------------------------------------------------------------------------- */

/* A section header row: the label and its timezone note stay on one line
   and the verbs wrap under them on a narrow screen, instead of the label
   squeezing the note into the margin. */
.client-section-row { flex-wrap: wrap; row-gap: 8px; }
.client-section-row .client-section-label { margin-bottom: 0; white-space: nowrap; }
.client-section-row .tz-note { flex: none; }

.client-page-head { gap: 12px; align-items: baseline; flex-wrap: wrap; }
.client-page-head .page-title { margin-bottom: 0; white-space: nowrap; }
.client-page-head .tz-note { flex: none; }

.client-project-card { overflow: hidden; }

.client-project-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 20px 16px;
}

.client-project-site { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.client-project-eyebrow {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.client-project-url {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--mud-palette-text-primary);
    text-decoration: none;
    word-break: break-all;
}

a.client-project-url:hover { text-decoration: underline; }

.client-project-updated {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.92rem;
    color: var(--mud-palette-primary);
    cursor: pointer;
}

.client-project-updated:hover { text-decoration: underline; }

.client-project-update { padding: 0 20px 16px; }
.client-project-update-line { font-size: 1.02rem !important; }

.client-project-tabs {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}

.client-project-tab {
    flex: 1 1 170px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    color: var(--mud-palette-text-primary);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease;
}

.client-project-tab:hover {
    background: rgba(42, 157, 143, 0.12);
    border-color: rgba(42, 157, 143, 0.35);
}

.client-project-tab-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 600;
}

.client-project-tab-sub { font-size: 0.85rem; color: var(--text-muted); }

.client-project-files { align-self: center; margin-left: 4px; }

@media (max-width: 600px) {
    .client-project-head { flex-direction: column; align-items: stretch; }
}

/* The meetings list's section anchors: the jump links scroll to these, and
   the offset keeps the header from landing under the app bar. */
.meetings-section-anchor { scroll-margin-top: 80px; }
.meetings-section-empty { color: var(--text-muted); margin-bottom: 8px; }

/* ---------------------------------------------------------------------------
   Files in the meeting.

   Two verbs: add a file, or keep what is on the shared screen. The ask that
   goes with them is deliberately NOT styled like the secret-drop envelope —
   that one blocks the room because a credential is urgent, and this one must
   not, because the whole premise is that the ask outlives the meeting.
   --------------------------------------------------------------------------- */

/* The ask, as the person being asked sees it. Sits above the control bar,
   over the video, and can be dismissed with "Later" without losing anything —
   the request is still open on their home page tomorrow. */
.meeting-file-ask {
    position: absolute;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
    z-index: 20;
    width: min(420px, calc(100vw - 32px));
    padding: 14px 16px;
    background: rgba(24, 27, 32, 0.97);
    border: 1px solid #3b4048;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.meeting-file-ask-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aeb6c0;
    font-size: 0.78rem;
}

/* The review card's hide control rides the header's right edge. */
.meeting-file-review-hide {
    margin-left: auto;
}

/* The staff review card: client files waiting on a decision, one row each with
   its own check and cross. Sits at the right edge rather than centered like the
   ask card — it can hold several rows and may sit there while the conversation
   continues, so it reads as a sidebar, not an interruption. */
.meeting-file-review-card {
    position: absolute;
    right: 16px;
    bottom: 92px;
    z-index: 20;
    width: min(360px, calc(100vw - 32px));
    max-height: 40vh;
    overflow-y: auto;
    padding: 12px 14px;
    background: rgba(24, 27, 32, 0.97);
    border: 1px solid #3b4048;
    border-left: 3px solid #d9b45f;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.meeting-file-review-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0 0;
    color: #aeb6c0;
}

.meeting-file-review-main { flex: 1; min-width: 0; }

.meeting-file-review-name {
    color: #e6e6e6;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.meeting-file-review-meta {
    color: #8b939d;
    font-size: 0.72rem;
}

/* The two verdicts colored apart, so a reflex click cannot mistake one for the
   other at the moment it matters. */
.meeting-file-review-yes { color: #2a9d8f; }
.meeting-file-review-no { color: #e07a6a; }

/* The waiting-room light in the app bar: a client is at a door nobody is
   behind. Amber, quietly pulsing, next to the wordmark — present on every
   staff screen for exactly as long as the situation is, and one click from
   fixing it. */
.waiting-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.waiting-indicator-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 4px 12px;
    background: rgba(217, 180, 95, 0.12);
    border: 1px solid rgba(217, 180, 95, 0.45);
    border-radius: 16px;
    color: #d9b45f;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

.waiting-indicator-chip:hover {
    background: rgba(217, 180, 95, 0.22);
}

.waiting-indicator-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.waiting-indicator-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d9b45f;
    animation: waiting-pulse 1.6s ease-in-out infinite;
}

@keyframes waiting-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* The pre-meeting countdown chip wears the waiting-indicator's shape with the
   escalation as colour: green with time in hand, amber inside ten minutes,
   red inside five. The amber tier deliberately IS the base chip style —
   "getting close" and "somebody is at the door" carry the same weight. */
.waiting-indicator-chip.is-soon {
    background: rgba(82, 176, 136, 0.12);
    border-color: rgba(82, 176, 136, 0.45);
    color: #52b088;
}
.waiting-indicator-chip.is-soon:hover { background: rgba(82, 176, 136, 0.22); }
.waiting-indicator-chip.is-soon .waiting-indicator-dot { background: #52b088; animation: none; }

.waiting-indicator-chip.is-now {
    background: rgba(229, 115, 115, 0.12);
    border-color: rgba(229, 115, 115, 0.5);
    color: #e57373;
}
.waiting-indicator-chip.is-now:hover { background: rgba(229, 115, 115, 0.22); }
.waiting-indicator-chip.is-now .waiting-indicator-dot { background: #e57373; }

/* The cheat-sheet page: section cards fill their grid cell so a short column
   beside a long one doesn't float; notes flow in columns when there are many. */
.cheatsheet-card { height: 100%; }
.cheatsheet-notes { columns: 2 360px; column-gap: 16px; }
.cheatsheet-notes .prep-note { break-inside: avoid; }

/* The flagged plan leads the sheet — amber border, the person-to-person mark. */
.cheatsheet-plan { border-left: 3px solid #d9b45f; }

/* --- The prep run — the brief as a board you clear ------------------------
   Rows carry their state as colour: reviewed dims (read, done), flagged glows
   amber (this is the plan), dismissed strikes (counted as feedback). Actions
   hide until the row is hovered, the roster's own quiet-until-needed rule. */
.prep-run-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.prep-run-progress { flex: 0 0 220px; }
.prep-run-count { color: #10131a; font-weight: 700; }
.prep-run-done { color: #6fbf73; font-size: 0.82rem; font-weight: 600; }
.prep-run-hint { color: #8b939d; font-size: 0.78rem; }

.prep-run-player {
    padding: 1px 8px;
    border: 1px solid #3b4048;
    border-radius: 10px;
    color: #aeb6c0;
    font-size: 0.72rem;
}

.prep-run-plan {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-left: 3px solid #d9b45f;
    border-radius: 0 8px 8px 0;
    background: rgba(217, 180, 95, 0.07);
}
.prep-run-plan-item { font-size: 0.9rem; padding: 2px 0; }

.prep-item {
    border-radius: 6px;
    padding: 2px 6px;
    margin: 0 -6px 2px;
}
.prep-item-line { display: flex; align-items: center; gap: 6px; }
.prep-item-text { flex: 1; min-width: 0; }

.prep-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 0;
    opacity: 0;
    transition: opacity 120ms ease;
    white-space: nowrap;
}

/* Small icon buttons still carry ~8px of MudBlazor padding, which made each
   action taller than its row — the button's hit-box leaked into the row
   below, and a click meant for one line landed on its neighbour (found by a
   robot clicking exactly centre). Shrunk until a row owns its own clicks. */
.prep-item-actions .mud-icon-button { padding: 2px; }
.prep-item-actions .mud-icon-button .mud-icon-root { font-size: 1.05rem; }
.prep-item:hover .prep-item-actions { opacity: 1; }
.prep-item-actions .is-on { opacity: 1; color: var(--mud-palette-primary); }

.prep-item.is-reviewed .prep-item-text { opacity: 0.55; }
.prep-item.is-flagged { background: rgba(217, 180, 95, 0.1); }
.prep-item.is-dismissed .prep-item-text { opacity: 0.4; text-decoration: line-through; }

.prep-item-by { color: #8b939d; font-size: 0.7rem; }

.prep-note-item { margin-left: 12px; }

/* Prep-page planning notes — stickies pinned under a section header. The
   amber edge is deliberately the waiting-indicator's colour family: both mean
   "a person left this for a person". */
.prep-note {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 10px;
    margin-bottom: 8px;
    border-left: 3px solid #d9b45f;
    border-radius: 0 6px 6px 0;
    background: rgba(217, 180, 95, 0.07);
}

.prep-note-text { flex: 1; min-width: 0; }

.prep-note-meta {
    color: #8b939d;
    font-size: 0.72rem;
    white-space: nowrap;
}

.prep-note.is-composing {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border-left-color: #3b4048;
}

/* Prep-page "Who's coming" — the wall board's answer vocabulary at reading
   distance instead of glancing distance.

   Same three marks as .board-person-dot, deliberately: a green ring means
   coming, struck-and-faded means declined, dimmed means maybe, and NO ANSWER IS
   THE PLAIN ROW — the state every invitation starts in, which must never read
   as a refusal on the one screen somebody plans the meeting from. A face
   instead of initials because this list is read once, close up, not scanned
   across a room. */
.prep-who {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.prep-who-name { flex: 1; min-width: 0; }

.prep-who-side {
    color: #8b939d;
    font-size: 0.72rem;
    white-space: nowrap;
}

.prep-who-answer {
    font-size: 0.78rem;
    white-space: nowrap;
    color: #8b939d;
}

.prep-who.is-yes .prep-who-avatar { box-shadow: 0 0 0 2px rgba(76, 175, 130, 0.85); border-radius: 50%; }
.prep-who.is-yes .prep-who-answer { color: #6fbf73; }

.prep-who.is-maybe { opacity: .7; }

.prep-who.is-no { opacity: .5; }
.prep-who.is-no .prep-who-name { text-decoration: line-through; }

/* The tally above the rows: what the section is actually asked for at T-minus-
   an-hour — how many of them are turning up, and who still owes an answer. */
.prep-who-tally {
    color: #8b939d;
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.meeting-file-ask-label {
    margin-top: 6px;
    color: #f2f4f7;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.3;
}

.meeting-file-ask-note {
    margin-top: 4px;
    color: #aeb6c0;
    font-size: 0.85rem;
    line-height: 1.35;
}

.meeting-file-ask-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

/* The Files tab. */
.meeting-files {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 6px 0 12px;
}

/* Section titles in the Files panel (2026-10-06, by request: "the title of each
   section be a header and white") — a real header, not the old tiny grey
   all-caps label. */
.meeting-files-section {
    padding: 14px 12px 6px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.meeting-files-empty {
    padding: 4px 12px 10px;
    color: #8b939d;
    font-size: 0.82rem;
    line-height: 1.4;
}

.meeting-file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #2c3037;
    color: #aeb6c0;
}

.meeting-file-main { flex: 1; min-width: 0; }

.meeting-file-name {
    display: block;
    color: #e6e6e6;
    font-size: 0.88rem;
    /* Filenames are load-bearing here — people refer to these things by name
       out loud — so they wrap rather than being cut off with an ellipsis. */
    overflow-wrap: anywhere;
}

a.meeting-file-name { text-decoration: none; }
a.meeting-file-name:hover { text-decoration: underline; color: #fff; }

.meeting-file-meta {
    margin-top: 2px;
    color: #8b939d;
    font-size: 0.74rem;
    line-height: 1.3;
}

/* What was being said when the file landed. Set as a quotation and clamped to
   three lines — it is a jog to the memory, not a transcript, and a file row
   that grows to eight lines stops being a list. */
.meeting-file-said {
    margin-top: 4px;
    padding-left: 8px;
    border-left: 2px solid #3b4048;
    color: #7d858f;
    font-size: 0.72rem;
    font-style: italic;
    line-height: 1.35;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* A retracted file keeps its row. The record surviving the bytes is the point:
   "was it actually deleted?" cannot be answered by an absence. */
.meeting-file-row.is-gone { opacity: 0.55; }
.meeting-file-row.is-gone .meeting-file-name { text-decoration: line-through; }

.meeting-file-row.is-waiting { color: #d9b45f; }

/* A client file held for review, staff-side only. A left accent and a faint wash
   so it reads as "not in the room yet, a decision is owed" rather than as one of
   the files that already landed. The Accept/Reject controls sit where delete
   would. */
.meeting-file-row.is-pending {
    border-left: 3px solid #d9b45f;
    background: rgba(217, 180, 95, 0.06);
}

.meeting-file-review {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* An outstanding ask on the home page — what Delve Group is waiting on from
   you, above the meeting list. Deliberately a full-width row rather than a card
   in a grid: there are usually zero or one of these, and a lone card in a
   three-column grid reads as a widget to ignore. */
.home-ask {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-ask-main { flex: 1; min-width: 0; }

@media (max-width: 600px) {
    .home-ask { flex-direction: column; align-items: stretch; }
}

/* Composing an ask, pointed at one named person. */
.meeting-file-compose {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #3b4048;
    border-radius: 8px;
}

.meeting-file-compose-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.meeting-file-compose-hint {
    color: #8b939d;
    font-size: 0.74rem;
    line-height: 1.35;
}

/* Count of outstanding asks, on the Files tab itself. */
.meeting-panel-tab-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 15px;
    padding: 0 4px;
    background: var(--mud-palette-primary);
    border-radius: 8px;
    color: #10131a;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 15px;
}

/* People / roster tab */
/* No top padding: the panel's first section bar sits flush under the tabs. */
.meeting-roster { display: flex; flex-direction: column; padding: 0 0 6px; overflow-y: auto; }

.meeting-roster-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #2c3037;
}

.meeting-roster-name { flex: 1 1 120px; min-width: 0; overflow-wrap: anywhere; color: #e6e6e6; font-size: 0.9rem; }
.meeting-roster-name .meeting-roster-you { color: #9a9a9a; font-size: 0.78rem; margin-left: 4px; }

/* Mic/cam/hand state icons on a roster row. Muted-red when off. */
.meeting-roster-state { display: flex; align-items: center; gap: 6px; color: #aeb6c0; }
.meeting-roster-state .is-off { color: #e57373; }

/* Host controls on a roster row — quiet until the row is hovered. They wrap
   onto more rows rather than run off a narrow panel (2026-10-03, by request),
   and drop under the name when they can't sit beside it. */
.meeting-roster-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 2px; max-width: 100%; margin-left: auto; opacity: 0.5; transition: opacity 120ms ease; }
.meeting-roster-row:hover .meeting-roster-actions { opacity: 1; }

/* Per-person volume (2026-10-07): the level beside the name whenever it isn't
   100%, and the slider on its own line under the row while it's open. */
.meeting-roster-level { margin-left: 6px; padding: 0 5px; border-radius: 8px; font-size: 0.72rem; color: #0a0e14; background: #f6c453; }
.meeting-roster-volume { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #aeb6c0; }
.meeting-roster-volume-slider { flex: 1 1 120px; min-width: 100px; }
.meeting-roster-volume-value { min-width: 38px; text-align: right; font-size: 0.8rem; color: #e6e6e6; font-variant-numeric: tabular-nums; }
.meeting-roster-volume-note { flex: 0 0 100%; font-size: 0.75rem; color: #f6c453; }

/* "Mute all" header action above the roster. */
.meeting-roster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #33373d;
}

/* A clean labelled bar between the People panel's sections (2026-10-06, by
   request): a solid strip instead of a thin divider and a floating caption, so
   "in the room", "waiting" and "expected" read as distinct groups rather than a
   vague gap. The Expected bar carries its own actions (Invite, Copy link).
   No margin above: the bar itself is the separation, and a gap on top of it
   read as a stray hole between the last person and the next heading. The
   rows' own bottom border would double the bar's top one, so it goes. */
.meeting-roster-sectionbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid #33373d;
    border-bottom: 1px solid #33373d;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}
.meeting-roster-row + .meeting-roster-sectionbar { border-top: none; }
.meeting-roster-sectionbar > span:first-child { min-width: 0; }
/* The actions never break mid-label ("Copy" over "link"); the heading wraps
   instead when the panel is narrow. */
.meeting-roster-sectionbar-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.meeting-roster-sectionbar-actions .mud-button-root { white-space: nowrap; }

/* Reaction picker — a compact row of emoji in the control bar's menu. */
.meeting-reaction-picker { display: flex; gap: 4px; padding: 6px 8px; }

.meeting-reaction-picker button {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    padding: 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.12s ease, transform 0.12s ease;
}

.meeting-reaction-picker button:hover { background-color: rgba(255, 255, 255, 0.12); transform: scale(1.15); }

/* The create card's three sections — Details, When, Who (2026-10-12, by
   request) — each under a small title, a rule and some air between them, so
   the long form reads as three questions rather than one column of fields. */
.new-meeting-section + .new-meeting-section {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.new-meeting-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mud-palette-primary);
    margin-bottom: 6px;
}

/* The create card's invitee sections (Delve people / Clients / Optional, each
   a picker over its chips). Not scrollable (2026-10-12, by request: "only the
   drop down should be scrollable") — the box grows with its chips, and the
   picker's list is the one thing that scrolls. */
.meeting-create-invitees {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    padding: 4px 10px;
}

/* Bundled reaction art (see REACTION_ART in meeting.js). Sized to match the
   old glyphs so the picker and the float feel unchanged — only consistent. */
.meeting-reaction-picker button img { width: 24px; height: 24px; display: block; }
.meeting-reaction-float img { width: 40px; height: 40px; display: block; }

/* Meeting paused because the media server went away. Sits over the video area,
   deliberately hard to miss: while this is up nothing is being carried or
   recorded, and the room must not look healthy. */
.meeting-media-paused {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(720px, calc(100% - 32px));
    padding: 10px 16px;
    border-radius: 10px;
    background-color: rgba(120, 40, 40, 0.94);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.35;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* It is drawn inside the notices stack (2026-11-16), first, so it and the
   microphone warning can no longer land on each other: the stack owns the
   position, and while the banner is up the stack takes the banner's own
   width and its place above everything on the stage. */
.meeting-room-notices .meeting-media-paused {
    position: static;
    transform: none;
    max-width: 100%;
}
.meeting-room-notices.has-paused {
    z-index: 20;
    max-width: min(720px, calc(100% - 32px));
}

/* ===========================================================================
 * Delve Group brand
 *
 * The palette lives in DelveTheme.cs (MudBlazor consumes it there); these are
 * the same values as CSS variables for the handful of places raw CSS is the
 * right tool, plus the chrome and page furniture that MudBlazor has no opinion
 * about. Values trace to delve-website/BRAND_GUIDE.md — keep them in step.
 * ========================================================================= */

/* Values mirror the deployed delve-website's :root (app.css), which is the
   source of truth for the brand — NOT that repo's BRAND_GUIDE.md, which is a
   generation behind (gold on warm dark). Current brand is teal on navy. If
   these drift from the website again, the website wins. */
:root {
    --primary-color: #0f1419;
    --secondary-color: #1a2332;
    --tertiary-color: #243044;
    --background-dark: #0d1318;

    --accent-color: #2A9D8F;
    --accent-color-dark: #1e7268;
    --accent-color-light: #48BB78;

    --white: #f8fafc;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;

    --card-bg: rgba(15, 20, 25, 0.7);
    --card-border: rgba(42, 157, 143, 0.15);

    --gradient-accent: linear-gradient(135deg, #2A9D8F 0%, #1e7268 100%);
    --gradient-primary: linear-gradient(165deg, #0f1419 0%, #1a2332 50%, #243044 100%);
}

/* The app shell sits on the brand gradient rather than a flat fill. Fixed
   attachment so scrolling a long list does not drag the gradient with it. */
body {
    background: var(--primary-color);
    background-image: var(--gradient-primary);
    background-attachment: fixed;
}

/* The error strip was `lightyellow`, which on a dark portal reads as a rendering
   fault rather than an error. */
#blazor-error-ui {
    background: #3a2a1a;
    color: var(--white);
    border-top: 1px solid var(--accent-color);
}

/* In the meeting room the bar goes to the top (2026-11-13, verification V3).
   At the bottom it lay over the control bar — Mute and Leave — until someone
   found its small dismiss cross, so a failed button press also took the room's
   controls away. The room stays up after such a failure (it sits outside the
   page error boundary on purpose), so the controls must stay usable too; the
   error stays on screen, just over the room's title instead. */
body:has(.meeting-page) #blazor-error-ui {
    top: 0;
    bottom: auto;
    border-top: none;
    border-bottom: 1px solid var(--accent-color);
    z-index: 1500;
}

/* --- App bar ------------------------------------------------------------- */

/* The client meeting room runs with no app bar at all (2026-08-26): the
   layout wears this class, the height variable every calc reads goes to zero,
   and the room owns the whole viewport. */
.portal-no-appbar {
    --mud-appbar-height: 0px;
}

.portal-no-appbar .mud-main-content {
    padding-top: 0 !important;
}

.portal-appbar {
    background-color: rgba(13, 19, 24, 0.92) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--card-border);
}

.portal-wordmark {
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
}

/* The client side's app-bar brand: the same logo file as the login screen.
   Sized for the dense (48px) bar. */
.portal-logo {
    display: block;
    height: 22px;
}

/* The staff-side mark, beside the wordmark. Moment's icon is a line with a dot
   at its exact midpoint — the instant — which is why the wordmark no longer
   carries an accent dot of its own: it was the same idea said twice, and the
   version in the logo is the one that means something.

   Sized to the cap height of the wordmark rather than the 48px dense bar, so the
   two read as one lockup instead of a picture next to a word. */
.portal-mark {
    display: block;
    height: 15px;
    width: auto;
    margin-right: 7px;
    /* The file is white on transparent; this is what lets one asset serve a dark
       app bar and anything else we put it on later. */
    opacity: 0.95;
}

.portal-appbar-user {
    color: var(--text-muted);
}

/* The account menu wears the same quiet colour the plain name did — it is the
   name, just clickable now. */
.portal-user-menu,
.portal-user-menu .mud-icon-root {
    color: var(--text-muted) !important;
    text-transform: none;
}

/* --- Portal side rail ----------------------------------------------------- */

.portal-sidenav {
    background-color: var(--background-dark) !important;
    border-right: 1px solid var(--card-border);
}

/* Nav sections scroll; the footer (the mobile ellipsis) stays put at the
   bottom. The drawer content is already a flex column in MudBlazor. */
.portal-sidenav .sidenav-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 16px;
}

.portal-sidenav .sidenav-footer {
    flex: 0 0 auto;
    border-top: 1px solid var(--card-border);
    padding: 4px 8px;
}

.sidenav-eyebrow {
    display: block;
    color: var(--accent-color);
    text-transform: uppercase;
    line-height: 1.2;
}

.portal-sidenav .mud-nav-link.active {
    color: var(--accent-color) !important;
    background-color: rgba(212, 175, 125, 0.1);
    border-right: 2px solid var(--accent-color);
}

/* The chat page's own left pane — the channel list that left the global rail
   (2026-08-12; the messenger shape). Sibling of .chat-main inside .chat-shell. */
.chat-list-pane {
    /* Width is a variable so the drag handle can move it without a re-render
       (chat.js writes --chat-list-width on the shell). 240px is what the pane
       was before it could be dragged, and is what stands until somebody does. */
    flex: 0 0 var(--chat-list-width, 240px);
    border-right: 1px solid var(--card-border);
    overflow-y: auto;
    /* Contained so flicking past the end of the channel list does not start
       scrolling whatever is behind it. */
    overscroll-behavior: contain;
    min-width: 0;
    min-height: 0;
    padding-top: 8px;
}

/* The drag handle, sitting ON the border rather than beside it: 6px wide with a
   negative margin so it overlaps the pane's own 1px edge, which keeps the layout
   exactly where it was while giving the pointer something it can actually hit.
   Invisible until hovered — a permanently drawn grab bar is furniture on a page
   that is mostly text. */
.chat-split {
    flex: 0 0 6px;
    margin-left: -3px;
    margin-right: -3px;
    z-index: 2;
    cursor: col-resize;
    background: transparent;
    transition: background-color 0.15s ease;
}

.chat-split:hover,
.chat-split:focus-visible,
.chat-split.is-dragging { background: rgba(212, 175, 125, 0.45); }

.chat-split:focus-visible { outline: none; }

/* While a drag is in flight: no text selection anywhere, and the resize cursor
   everywhere, so passing over a channel name does not flip to an I-beam. */
body.chat-split-dragging { cursor: col-resize; user-select: none; }

/* Below the breakpoint the two panes take turns, so there is no line between
   them to drag. */
@media (max-width: 959.98px) {
    .chat-split { display: none; }
}

/* Below the breakpoint the staff panes take turns: the list owns /chat, the
   thread owns /chat/{id} (with its own back button). Scoped to the staff
   shell — the client shell keeps its slim rail behavior untouched. */
@media (max-width: 959.98px) {
    .chat-shell-staff.has-channel .chat-list-pane { display: none; }
    .chat-shell-staff:not(.has-channel) .chat-main { display: none; }
    .chat-shell-staff:not(.has-channel) .chat-list-pane { flex: 1 1 auto; }
}

/* The Manage section's shell: its own inner nav beside the page body — the
   settings-page pattern, replacing the rail's old Manage mode. */
.manage-shell {
    display: flex;
    align-items: flex-start;
    min-height: calc(100dvh - 48px);
}

.manage-nav {
    flex: 0 0 200px;
    border-right: 1px solid var(--card-border);
    padding-top: 12px;
    position: sticky;
    top: 48px;
    align-self: stretch;
}

.manage-body {
    flex: 1 1 auto;
    min-width: 0;
}

/* On a phone the inner nav folds to a top strip that scrolls sideways —
   two stacked left columns would leave no room for the page. */
@media (max-width: 959.98px) {
    .manage-shell { flex-direction: column; }
    .manage-nav {
        flex: 0 0 auto;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
        position: static;
        overflow-x: auto;
    }
    .manage-nav .mud-navmenu { display: flex; flex-wrap: nowrap; }
    .manage-nav .mud-nav-item { flex: 0 0 auto; }
}

/* A nav item's label with a trailing indicator (the Chat unread dot). */
.sidenav-item-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Below the responsive breakpoint (960px — Breakpoint.Md, set on the drawer in
   PortalSideNav) the rail becomes an overlay, and MudBlazor un-clips it: the
   framework's own media rules pull an overlay drawer to full height, covering
   the app bar — including the account button that summoned it, which turns the
   toggle into a one-way switch whose only exits are the backdrop and
   navigating. Pin the drawer and its scrim back under the bar instead: the
   chrome stays visible, the button opens AND closes, and the overlay reads
   as the same rail it is on desktop, just temporary. The dense app bar is
   height minus a quarter — MudBlazor's own arithmetic, mirrored. !important
   because the framework rule carries five classes of specificity. */
@media (max-width: 959.98px) {
    .mud-appbar-dense ~ .portal-sidenav.mud-drawer-fixed.mud-drawer-responsive {
        top: calc(var(--mud-appbar-height, 64px) - var(--mud-appbar-height, 64px)/4) !important;
        height: calc(100% - var(--mud-appbar-height, 64px) + var(--mud-appbar-height, 64px)/4) !important;
    }

    /* The scrim is a sibling of the drawer, not a child, so it is named by its
       own classes; this app has exactly one responsive-md drawer. */
    .mud-drawer-overlay-responsive.mud-drawer-overlay-md {
        top: calc(var(--mud-appbar-height, 64px) - var(--mud-appbar-height, 64px)/4);
    }
}

/* --- Page furniture ------------------------------------------------------ */

/* Every page opens the same way: a small gold eyebrow, a title, and one line
   saying what the page is for. Consistency here is most of what separates a
   product from a set of screens. */
.page-shell {
    padding: 32px 32px 64px 32px;
    max-width: 1360px;
}

.page-eyebrow {
    display: block;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.page-title {
    margin-bottom: 6px;
}

.page-subtitle {
    color: var(--text-muted);
    max-width: 780px;
    margin-bottom: 28px;
}

.section-label {
    display: block;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* --- Cards --------------------------------------------------------------- */

.delve-card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background-image: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Lift only where the whole card is a link — a hover animation on something
   that cannot be clicked reads as a bug. */
.delve-card-interactive {
    cursor: pointer;
}

.delve-card-interactive:hover {
    transform: translateY(-4px);
    border-color: rgba(42, 157, 143, 0.35);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.delve-card-accent {
    border-color: rgba(42, 157, 143, 0.3);
}

/* --- Stat tiles ---------------------------------------------------------- */

.stat-tile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    min-width: 150px;
}

.stat-value {
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--white);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* --- Status dots --------------------------------------------------------- */

/* A coloured dot plus a word. The dot alone would be the only carrier of
   meaning, which fails for anyone who cannot separate the hues. */
.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 8px;
    flex: 0 0 auto;
}

.status-dot-ok { background-color: #6fbf73; }
.status-dot-warn { background-color: #e0b050; }
.status-dot-bad { background-color: #e5736b; }
.status-dot-idle { background-color: rgba(245, 245, 245, 0.3); }

/* Reserved for genuinely live state (the media server starting). Anything that
   pulses permanently just becomes noise. */
.status-dot-live {
    background-color: #6fbf73;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.25); }
}

/* --- Tags ---------------------------------------------------------------- */

.delve-tag {
    display: inline-block;
    background: rgba(212, 175, 125, 0.15);
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 100px;
}

.delve-tag-quiet {
    background: rgba(245, 245, 245, 0.08);
    color: var(--text-muted);
}

/* --- Tables -------------------------------------------------------------- */

/* MudBlazor's dark table is nearly borderless, which makes a dense list hard to
   scan. A hairline per row and a legible header is the whole fix. */
.delve-table {
    background-color: transparent !important;
}

.delve-table th {
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted) !important;
    border-bottom: 1px solid var(--card-border) !important;
}

.delve-table td {
    border-bottom: 1px solid rgba(245, 245, 245, 0.06) !important;
}

.delve-table tbody tr:hover {
    background-color: rgba(245, 245, 245, 0.04);
}

/* --- Login --------------------------------------------------------------- */

/* The website's aurora, full-viewport behind the login card. Same placement
   CSS as delve-website; the animation itself is aurora.js. */
#aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

/* Everything interactive on the login screen sits above the canvas. */
.login-overlay {
    position: relative;
    z-index: 1;
}

/* Frosted glass over the aurora — the website's card recipe (case studies,
   code window): translucent near-black, backdrop blur, quiet border. The
   background-color must stay translucent or the backdrop-filter has nothing
   to do. */
.login-card {
    width: 460px;
    max-width: calc(100vw - 32px);
    background-color: rgba(11, 15, 21, 0.62) !important;
    border: 1px solid rgba(245, 245, 245, 0.16);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    background-image: none;
}

.login-logo {
    display: block;
    height: 44px;
    margin: 4px auto 16px auto;
}

/* One fixed-height slot between the logo and the input, holding whichever one
   thing is true right now: nothing, a hint, an error, the loading bar, or
   "we sent a code". The fixed height is the entire point — the card must not
   change size as the login moves through its states, so every state's message
   lives HERE and nothing is ever inserted above or below the input. */
.login-status {
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 8px;
    overflow: hidden;
}

.login-status-bar {
    width: 70%;
}

.login-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.login-error { color: #e5736b; font-size: 0.85rem; }
.login-success { color: #6fbf73; font-size: 0.85rem; }

/* --- Secret drop ---------------------------------------------------------- */

/* The anonymous drop page reuses the login card wholesale (same aurora, same
   frosted glass); these are only the pieces the login never needed. */
.drop-headline {
    font-size: 1.1rem;
    font-weight: 600;
}

/* The envelope label — the one thing on the page that is about the request
   rather than the mechanics, so it gets the accent. */
.drop-label {
    color: var(--mud-palette-primary);
    overflow-wrap: anywhere;
}

/* The in-meeting envelope: the same frosted card, centered over the room on a
   half scrim. The meeting stays visible at the edges on purpose — the
   conversation carries on around the envelope, and the person filling it in
   should feel the room still there rather than yanked away. Sits above tiles
   and captions, below nothing; there is no higher-priority surface in a room. */
.meeting-secret-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 9, 13, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* The envelope rows left with the "Collect a secret" card (2026-08-19 — the
   verb lives in the meeting room now). tools-drop-waiting stays: the voice
   card still wears it for "in the room · elapsed". */
.tools-drop-waiting { color: var(--mud-palette-info); }

/* The drop card's status strip. Same fixed-height doctrine as .login-status —
   an error or the progress bar appears HERE and nothing below it moves — but
   one line tall, because this card has no standing instruction text and the
   login's 48px slot read as a hole between the label and the first box. */
.drop-status {
    height: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 4px;
    overflow: hidden;
}

/* Masks the multiline secret boxes. A textarea cannot be a password input, so
   the discs come from CSS: -webkit-text-security is non-standard but held by
   every Chromium and WebKit browser. Firefox ignores it and shows the pasted
   text plain — a recorded trade: a visible secret beats a PEM key silently
   flattened to one line, and the depositor is looking at their own screen. */
.drop-secret-input textarea {
    -webkit-text-security: disc;
    font-family: ui-monospace, Menlo, monospace;
}

/* --- Chat ---------------------------------------------------------------- */

/* THE PAGE DOES NOT SCROLL. The chat is two scrolling regions — the channel
   list and the message pane — inside a box that is exactly the viewport under
   the app bar, with the header and the composer pinned around them. The same
   shape .meetings-page settled on, and here for a sharper reason: a chat page
   where the document scrolls loses the composer exactly when you want it.

   The height is derived from --mud-appbar-height rather than hardcoding 48px
   (2026-09-03). The bar is DENSE, and MudBlazor expresses a dense bar as three
   quarters of that variable (64px by default) — which is exactly where the 48
   came from, and is also the padding-top it puts on .mud-main-content. So the
   same expression is written here rather than its answer: the number was right
   and the dependency was undeclared, which is the kind of thing that silently
   goes 16px wrong the day somebody changes a theme. It also makes the client
   meeting room work for free, since .portal-no-appbar sets the variable to 0 and
   this resolves to the whole viewport.

   min-height:0 is the load-bearing line, repeated on every flex child down the
   chain. A flex item's default min-height is auto — "at least as tall as my
   content" — so without it an inner overflow:auto never engages: the box grows
   to fit its messages instead, the shell grows with it, and the page scrolls.
   That is the whole failure mode, and it is invisible until there is enough
   history to overflow. */
.chat-shell {
    --chat-appbar: calc(var(--mud-appbar-height, 64px) - var(--mud-appbar-height, 64px) / 4);
    display: flex;
    height: calc(100dvh - var(--chat-appbar));
    min-height: 0;
    overflow: hidden;
}

/* The client's shell also subtracts the tab strip that sits above it inside
   the gutter container — otherwise the page overflows the viewport by exactly
   the strip's height and the composer hides below the fold. */
.chat-shell-client {
    height: calc(100dvh - var(--chat-appbar) - 60px);
}

.chat-section-label {
    padding: 18px 16px 6px 16px;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* The search box sits between the Chat header and the section list. */
.chat-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 12px;
    padding: 4px 8px;
    background: rgba(245, 245, 245, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    transition: border-color 0.15s ease;
}

.chat-search:focus-within { border-color: var(--accent-color); }

.chat-search-icon { color: var(--text-muted); flex: 0 0 auto; }

.chat-search input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light);
    font-size: 0.85rem;
    font-family: inherit;
}

.chat-search input::placeholder { color: var(--text-muted); }

.chat-search-clear {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.chat-search-clear:hover { color: var(--text-light); }

/* A section label made clickable: the same type as .chat-section-label, plus a
   caret and room for a collapsed-section unread dot. */
.chat-section-head {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 16px 6px 10px;
    cursor: pointer;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    user-select: none;
    transition: color 0.15s ease;
}

.chat-section-head:hover { color: var(--text-light); }

.chat-section-caret { color: var(--text-muted); flex: 0 0 auto; }

.chat-section-head .chat-unread-dot { margin-left: 2px; }

.chat-section-empty {
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.chat-channel {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.chat-channel:hover {
    background-color: rgba(245, 245, 245, 0.05);
    color: var(--white);
}

.chat-channel.is-current {
    background-color: rgba(212, 175, 125, 0.12);
    color: var(--accent-color);
    box-shadow: inset 2px 0 0 var(--accent-color);
}

/* People you have not messaged yet sit quietly below the real conversations. */
.chat-channel-muted { color: var(--text-muted); }

.chat-channel-hash {
    color: var(--text-muted);
    font-weight: 600;
}

/* Two lines before it is cut (2026-11-12), and the whole name on hover. A
   project channel is "Company — Project", and on one line two projects of one
   company were cut to the same text: "Northwind Fuel Co. — …", twice. */
.chat-channel-name {
    flex: 1 1 auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.chat-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-accent);
    flex: 0 0 auto;
}

.chat-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* See .chat-shell: without this the message pane never scrolls and the
       page does instead. */
    min-height: 0;
}

.chat-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--card-border);
    flex: 0 0 auto;
}

.chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
    padding: 16px 20px;

    /* The avatar column, named once here because four rules below and the
       system line all have to agree on it: 36 + 12 is the 48px of gutter a
       message's words start after. */
    --chat-gutter: 36px;
    --chat-gutter-gap: 12px;
}

.chat-more { text-align: center; margin-bottom: 8px; }

/* --- Messages, grouped by sender (2026-09-04, by request) ------------------
   The messenger shape. Every line is a two-column grid — gutter, then words —
   so the words start at the same x whether or not the line drew a face, and a
   long message wraps against that column instead of under the avatar.

   Which line draws a face is decided in C# (ChatPage.StartsGroup): a different
   sender, a gap over five minutes, or a new day. The SPACE between groups is
   what says "somebody new is talking" — hence a tight 2px between lines of one
   group and a clear 14px above a new one, with no divider drawn at all. */
.chat-message {
    display: grid;
    grid-template-columns: var(--chat-gutter) minmax(0, 1fr);
    column-gap: var(--chat-gutter-gap);
    /* Top, not centre: the face belongs beside the first line of a long
       message, not floating halfway down it. */
    align-items: start;
    /* Pulled out into the pane's own padding so the hover wash reads as a full
       row rather than a floating rectangle. */
    margin: 0 -8px 2px;
    padding: 1px 8px;
    border-radius: 8px;
}

.chat-message.is-group-start { margin-top: 14px; }

.chat-message:hover { background-color: rgba(245, 245, 245, 0.03); }

.chat-gutter {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2px;
}

/* A grouped line's own time, in the gutter where its avatar would have been —
   revealed on hover, because "when exactly was this one" is worth having and
   not worth printing forty times down a column. Opacity rather than display so
   the gutter never changes width as the pointer moves. */
.chat-gutter-time {
    font-size: 0.62rem;
    line-height: 1.7;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
}

.chat-message:hover .chat-gutter-time,
.chat-message:focus-within .chat-gutter-time { opacity: 1; }

/* min-width:0 or a pasted URL in a grid cell refuses to wrap and widens the
   whole column — the same rule .chat-main needs one level up. */
.chat-message-main { min-width: 0; }

.chat-message-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 1px;
}

.chat-author {
    font-family: Montserrat, system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--white);
}

.chat-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Messages keep their line breaks and wrap long tokens, so a pasted URL does
   not push the whole column sideways. */
.chat-body {
    font-size: 0.92rem;
    color: var(--text-light);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* The room talking about itself — no face, no group, and deliberately still
   its own quiet italic. Indented to the text column so the conversation stays
   one column of words with a note in it, rather than a step to the left. */
.chat-system {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 10px 0 10px calc(var(--chat-gutter) + var(--chat-gutter-gap));
}

/* The "jump to newest" chip. Between the messages and the composer, centred,
   and out of the flow so it does not resize the pane as it appears and
   disappears — a scroll region that changes height when a message lands is a
   scroll region that fights the person reading it. */
.chat-newest {
    position: relative;
    height: 0;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.chat-newest > * { position: absolute; bottom: 6px; }

/* --- Searching the conversation (2026-09-03, by request) -------------------
   The strip and its filters sit in the FIXED part of the chat column, above the
   scrolling results, so the query and the filters you set stay readable while
   you read down a long list of hits. */
.chat-searchbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 0 16px;
    flex: 0 0 auto;
}

.chat-search-wide { flex: 1 1 auto; margin: 0; }

.chat-search-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px 16px 10px 16px;
    border-bottom: 1px solid var(--card-border);
    flex: 0 0 auto;
}

/* A filter is a toggle, so it has two states and says which it is in. Plain
   buttons rather than MudChips: the row sits inside a dense strip, and the chip
   component's own padding and ripple make it twice this tall. */
.chat-filter {
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    padding: 2px 12px;
    font-family: inherit;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chat-filter:hover { color: var(--text-light); border-color: var(--text-muted); }

.chat-filter.is-on {
    background: rgba(212, 175, 125, 0.14);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Separates the scope pair from the has: pair, so the two groups do not read as
   one row of six unrelated toggles. */
.chat-filter-gap { width: 10px; }

.chat-filter-from { max-width: 190px; }

/* Results reuse the message pane's scrolling box — same region, different
   contents — so "follow newest" and the page's no-scroll rule need no second
   version for search. */
.chat-results { padding-top: 10px; }

.chat-result {
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.chat-result:hover { background-color: rgba(245, 245, 245, 0.05); }

.chat-result-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

.chat-result-where { font-size: 0.72rem; color: var(--accent-color); }

/* Clamped to three lines: a result is a pointer at a message, not the message.
   The full thing is one click away, which is the whole point of the row. */
.chat-result-text {
    font-size: 0.88rem;
    color: var(--text-light);
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-result-badges { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* The message a jump landed on. A brief wash of the accent rather than a
   persistent highlight: it answers "which one" and then gets out of the way,
   with no state anywhere that has to remember to clear it. */
@keyframes chat-found-flash {
    from { background-color: rgba(212, 175, 125, 0.28); }
    to { background-color: transparent; }
}

.chat-message-found {
    animation: chat-found-flash 2.2s ease-out;
    border-radius: 8px;
}

/* The New-channel button on the Employee channels heading. Pushed to the right
   by a spacer and dimmed until the heading is hovered, so the section reads as
   a label rather than as a toolbar. */
.chat-section-add {
    display: inline-flex;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.chat-section-head:hover .chat-section-add,
.chat-section-add:focus-within { opacity: 1; }

.chat-composer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 20px 16px 20px;
    border-top: 1px solid var(--card-border);
    flex: 0 0 auto;
}

.chat-composer-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.chat-input {
    flex: 1 1 auto;
    resize: none;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background-color: rgba(245, 245, 245, 0.05);
    color: var(--white);
    font-family: Lato, system-ui, sans-serif;
    font-size: 0.92rem;
    line-height: 1.5;
    outline: none;
}

.chat-input:focus { border-color: rgba(212, 175, 125, 0.5); }

/* Attachments on a message: images and video render inline, other files show as
   a download chip. Capped so a big image does not take over the scroll. */
.chat-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.chat-attach-image img,
.chat-attach-video {
    max-width: min(420px, 100%);
    max-height: 320px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    display: block;
}

.chat-attach-image { display: inline-block; line-height: 0; }

.chat-attach-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background-color: rgba(245, 245, 245, 0.05);
    color: var(--white);
    text-decoration: none;
    max-width: 320px;
}

.chat-attach-file:hover { background-color: rgba(245, 245, 245, 0.09); }
.chat-attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-attach-size { color: var(--text-muted); font-size: 0.8rem; flex: 0 0 auto; }

/* Files staged in the composer, before the message is sent. */
.chat-pending {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chat-pending-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background-color: rgba(245, 245, 245, 0.05);
    font-size: 0.85rem;
    max-width: 260px;
}

.chat-pending-busy { color: var(--text-muted); padding-right: 12px; }

/* The staged-meeting chip above the composer — shows the meeting that will be
   attached to the next message, and travels with it (see ChatDraftService's
   meeting lane). */
.chat-context {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 4px 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background-color: rgba(212, 175, 125, 0.08);
    font-size: 0.85rem;
    max-width: 100%;
    align-self: flex-start;
}

.chat-context-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The whose-clock-is-this note — one per time-bearing page, quiet on purpose. */
.tz-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.tz-note-icon { font-size: 0.85rem !important; }

/* A meeting attached to a message — a clickable card in the thread, opening the
   meeting. Styled like a file attachment with the accent tint of the chip it
   was staged from. */
.chat-meeting-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background-color: rgba(212, 175, 125, 0.08);
    color: var(--white);
    cursor: pointer;
    max-width: 360px;
}

.chat-meeting-card:hover { background-color: rgba(212, 175, 125, 0.14); }

.chat-meeting-text { display: flex; flex-direction: column; min-width: 0; }
.chat-meeting-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-meeting-when { color: var(--text-muted); font-size: 0.8rem; }

/* The block-bookings month grid on the home page: each day is a toggle, so a
   crunch can keep its Wednesday open. Red-tinted selection on purpose — these
   are days being taken AWAY from clients, not days being chosen for them. */
.block-cal {
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 8px 10px 10px 10px;
}

.block-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.block-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.block-cal-dow {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 2px 0;
}

.block-cal-day {
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.85rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.block-cal-day:hover:not(:disabled) { background-color: rgba(245, 245, 245, 0.09); }
.block-cal-day:disabled { color: var(--text-muted); opacity: 0.35; cursor: default; }
.block-cal-day--selected { background-color: rgba(229, 72, 77, 0.3); }
.block-cal-day--selected:hover:not(:disabled) { background-color: rgba(229, 72, 77, 0.42); }
.block-cal-day--due { box-shadow: inset 0 0 0 1.5px var(--mud-palette-primary); }

/* A file being dragged over the message pane. */
.chat-main.is-dropping {
    outline: 2px dashed rgba(212, 175, 125, 0.6);
    outline-offset: -8px;
    background-color: rgba(212, 175, 125, 0.04);
}

.chat-empty {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* --- Empty states -------------------------------------------------------- */

.empty-state {
    padding: 48px 24px;
    text-align: center;
    border: 1px dashed var(--card-border);
    border-radius: 16px;
    color: var(--text-muted);
}

/* --- Meeting tools console ------------------------------------------------
   The second-window operating view. Laid out for a window parked beside the
   meeting rather than for the app shell: two columns, both scrolling
   independently, so the transcript can be long without pushing the controls off
   screen. Denser than the rest of the portal on purpose — this surface is read
   at a glance mid-sentence, not browsed. */

.tools-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: #5a1f1f;
    border-bottom: 1px solid #7a2b2b;
    color: #ffd9d9;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.tools-shell {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 96px);
    padding: 16px 20px 12px 20px;
    gap: 12px;
}

.tools-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.tools-title { margin: 0; }

.tools-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tools-source-select { min-width: 240px; }

/* Status pills. Live/demo and warm/cold are load-bearing, not decorative — a
   cold cache is the difference between a two-second answer and a ten-second one,
   and demo-vs-live decides whether you can trust what you are reading. */
.tools-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background-color: var(--card-bg);
    color: var(--text-light);
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    white-space: nowrap;
}

.tools-stat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: currentColor;
}

.tools-stat.is-live { color: #9be27d; border-color: rgba(155, 226, 125, 0.4); }
.tools-stat.is-demo { color: var(--accent-color); border-color: rgba(42, 157, 143, 0.4); }
.tools-stat.is-cold { color: var(--accent-color); border-color: rgba(42, 157, 143, 0.4); }

.tools-body {
    display: flex;
    gap: 14px;
    flex: 1;
    min-height: 0;
}

.tools-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.tools-col-ask { flex: 1; min-width: 0; }
.tools-col-transcript { flex: 1.05; min-width: 0; }
.tools-col-answers { flex: 1; min-width: 0; }

/* Three columns is the intended shape and holds down to a fairly narrow window —
   a 1440px laptop gets three. The columns simply get narrower and the chip rows
   wrap to two lines, which is a cheaper trade than shrinking the type.
   Below this, the answers column drops to its own row rather than being squeezed
   into something unreadable; it is the one read after a press rather than during. */
@media (max-width: 1150px) {
    .tools-body { flex-wrap: wrap; }
    .tools-col-ask { flex: 1 1 46%; }
    .tools-col-transcript { flex: 1 1 46%; }
    .tools-col-answers { flex: 1 1 100%; max-height: 420px; }
}

@media (max-width: 900px) {
    .tools-body { flex-direction: column; }
    .tools-shell { height: auto; }
    .tools-col { overflow-y: visible; }
    .tools-col-answers { max-height: none; }
}

.tools-card {
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background-color: var(--card-bg);
    padding: 14px 16px;
}

.tools-card-fill {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.tools-card-head { margin-bottom: 10px; }
.tools-muted { color: var(--text-muted); display: block; }

.tools-field { margin-bottom: 12px; }

.tools-field-label {
    display: block;
    color: var(--text-muted);
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.tools-chiprow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Native buttons rather than MudChip: these are toggles that need a pressed
   state and a keyboard focus ring, and dressing a chip up as a control fights
   the component. */
.tools-chip {
    padding: 5px 11px;
    border: 1px solid var(--card-border);
    border-radius: 13px;
    background-color: transparent;
    color: var(--text-light);
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.tools-chip:hover { background-color: rgba(245, 245, 245, 0.07); }

.tools-chip.is-on {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #1a1a1a;
    font-weight: 700;
}

.tools-primary { margin-top: 4px; }

/* --- candidates --- */

.tools-candidates { display: flex; flex-direction: column; gap: 8px; }

.tools-candidate {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 11px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.tools-candidate:hover:not(:disabled) {
    background-color: rgba(245, 245, 245, 0.06);
    border-color: var(--accent-color);
}

.tools-candidate:disabled { opacity: 0.5; cursor: default; }

.tools-candidate-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.tools-candidate-at { font-variant-numeric: tabular-nums; }
.tools-candidate-who { color: var(--text-light); font-weight: 700; }
.tools-candidate-who.is-us { color: var(--accent-color); }
.tools-candidate-conf { margin-left: auto; font-variant-numeric: tabular-nums; }

.tools-candidate-text {
    color: var(--white);
    font-size: 0.83rem;
    line-height: 1.35;
}

.tools-candidate-note {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.68rem;
}

/* --- voice --- */

.tools-recordrow { display: flex; align-items: center; gap: 12px; }

.tools-reclive {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ff6b6b;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
}

.tools-recdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ff3b30;
    animation: tools-pulse 1s ease-in-out infinite;
}

@keyframes tools-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

/* --- answers --- */

.tools-answers {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.tools-answer {
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--accent-color);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background-color: rgba(245, 245, 245, 0.03);
}

/* A skipped question: one muted line, deliberately not a card — the point is
   "the detector saw this and declined", kept reviewable so the filter can be
   tuned, never something that competes with the answers. */
.tools-answer.is-skipped {
    border-left-color: var(--text-muted);
    padding: 6px 12px;
    opacity: 0.75;
}

.tools-answer-skip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tools-answer-skip-q {
    color: var(--white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tools-answer-skip-why { flex: 0 0 auto; font-style: italic; }

/* Expanded: the ellipsis one-liner becomes the full question and reason,
   wrapping freely. The whole row is the toggle. */
.tools-answer-skip { cursor: pointer; }

.tools-answer-skip.is-expanded { align-items: flex-start; }

.tools-answer-skip-full { min-width: 0; }

.tools-answer-skip-full .tools-answer-skip-q {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.tools-answer-skip-full .tools-answer-skip-why { margin-top: 2px; }

.tools-answer-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.66rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.tools-answer-kind {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-color);
    font-weight: 700;
}

.tools-answer-latency, .tools-answer-cost {
    font-variant-numeric: tabular-nums;
}

.tools-answer-cost { margin-left: auto; }

.tools-answer-scope {
    color: var(--text-muted);
    font-family: 'Lato', sans-serif;
    font-size: 0.64rem;
    margin-bottom: 4px;
}

/* Asked -> detected -> answered, as a single line you read left to right. The gaps
   are the point, so they are the part that is coloured; the clock times are only
   there to anchor them against the transcript column beside it. */
.tools-answer-timing {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-family: 'Lato', sans-serif;
    font-size: 0.6rem;
    gap: 4px;
    margin-bottom: 6px;
}

.tools-t-point {
    color: var(--text-muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tools-t-gap {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    color: var(--text-muted);
    padding: 1px 4px;
    white-space: nowrap;
}

/* The only number that matters to the person in the room. */
.tools-t-total {
    color: var(--white);
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}

/* The question is not a caption. An answer lands tens of seconds behind the room —
   sometimes a minute — so before reading it out the presenter has to know what is
   being answered and frame it ("you asked earlier about…"). Reading the answer
   alone, cold, into a conversation that has moved on is the failure this prevents.
   Sized to be read at a glance rather than squinted at; italic stays, because it
   is a quotation of something somebody said. */
.tools-answer-q {
    color: var(--text-light);
    font-size: 0.88rem;
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.45;
}

/* The line that gets read out loud, so it is the only thing at full size. */
.tools-answer-headline {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Pinned: the answer to the thing you just asked, held at the top while you are
   probably still talking about it. Sticky rather than merely first, so scrolling
   the column to read an older one does not lose it. */
.tools-answer.is-pinned {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #23262b;
    border-color: var(--accent-color);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.tools-answer-pin {
    padding: 1px 6px;
    border-radius: 8px;
    background-color: var(--accent-color);
    color: #1a1a1a;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Auto-detected: nobody asked for this one. Different edge colour and a muted
   headline so it can never be mistaken at a glance for the answer you requested
   — the whole risk of an unbidden feed is that it gets read as a reply. */
.tools-answer.is-auto {
    border-left-color: var(--accent-color);
    background-color: rgba(42, 157, 143, 0.05);
}

.tools-answer.is-auto .tools-answer-kind { color: var(--accent-color); }
.tools-answer.is-auto .tools-answer-headline { font-weight: 600; color: var(--text-light); }

.tools-answer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

/* Where an answer came from. Behind the More button rather than on the card face:
   it is what makes an answer checkable, but it is read when challenged, not while
   deciding whether to say the headline out loud. */
.tools-prov {
    padding: 2px 7px;
    border-radius: 9px;
    font-family: 'Lato', sans-serif;
    font-size: 0.64rem;
    border: 1px solid var(--card-border);
    color: var(--text-light);
}

/* Question confidence and answer confidence, side by side and never merged.
   Colour carries the level so the pair reads at a glance mid-sentence; the wording
   behind it ("high — I traced every call site") is in the tooltip, because that is
   worth reading when you are challenged and not before. */
.tools-answer-conf {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 6px;
}

.tools-conf-chip {
    padding: 2px 7px;
    border-radius: 9px;
    font-family: 'Lato', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.01em;
    border: 1px solid var(--card-border);
    color: var(--text-light);
    white-space: nowrap;
}

.tools-conf-chip.is-high {
    background-color: rgba(155, 226, 125, 0.12);
    border-color: rgba(155, 226, 125, 0.35);
    color: #9be27d;
}

.tools-conf-chip.is-mid {
    background-color: rgba(224, 164, 74, 0.13);
    border-color: rgba(224, 164, 74, 0.38);
    color: #e0a44a;
}

.tools-conf-chip.is-low {
    background-color: rgba(179, 38, 30, 0.18);
    border-color: rgba(179, 38, 30, 0.5);
    color: #e08a84;
}

/* Not a failure state — "asked by hand" and "not stated" both land here, and
   neither is a problem. Muted rather than coloured so it does not read as one. */
.tools-conf-chip.is-unknown {
    background-color: rgba(245, 245, 245, 0.05);
    border-color: var(--card-border);
    color: var(--text-muted);
}


.tools-answer-detail {
    margin-top: 8px;
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.5;
}

.tools-answer-caveat {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 7px;
    color: var(--accent-color);
    font-size: 0.72rem;
    line-height: 1.4;
}

.tools-answer-more {
    margin-top: 6px;
    padding: 0;
    border: none;
    background: none;
    color: var(--accent-color);
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    cursor: pointer;
}

/* --- transcript --- */

.tools-transcript-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.tools-transcript-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tools-selcount {
    color: var(--accent-color);
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
}

.tools-transcript {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* One turn = one button. Selection is the highest-precision way to say "the
   question is here", and it has to survive being clicked in a hurry, so the
   whole row is the target rather than a checkbox on the end of it. */
.tools-turn {
    display: grid;
    grid-template-columns: 42px 88px 1fr;
    gap: 9px;
    align-items: start;
    width: 100%;
    text-align: left;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background-color: transparent;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: background-color 0.1s ease;
}

.tools-turn:hover { background-color: rgba(245, 245, 245, 0.06); }

.tools-turn.is-selected {
    background-color: rgba(42, 157, 143, 0.16);
    border-color: var(--accent-color);
}

/* Outside the chosen lookback: dimmed rather than hidden, so widening the window
   is an obvious next move instead of a guess. */
.tools-turn.is-outside { opacity: 0.38; }

.tools-turn-at {
    color: var(--text-muted);
    font-size: 0.66rem;
    font-variant-numeric: tabular-nums;
    padding-top: 2px;
}

.tools-turn-who {
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tools-turn.is-us .tools-turn-who { color: var(--accent-color); }

.tools-turn-text {
    color: var(--white);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* --- prompt inspector --- */

.tools-part {
    border: 1px solid var(--card-border);
    border-radius: 9px;
    padding: 8px 10px;
    margin-bottom: 7px;
}

.tools-part.is-cached { border-left: 3px solid #9be27d; }
.tools-part.is-fresh { border-left: 3px solid var(--accent-color); }

.tools-part-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    margin-bottom: 4px;
}

.tools-part-name { color: var(--white); font-weight: 700; }
.tools-part-tokens { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tools-part-tag { margin-left: auto; color: var(--text-muted); }

.tools-part-body {
    color: var(--text-light);
    font-size: 0.74rem;
    line-height: 1.45;
}

/* Not-in-a-meeting: the console's most common resting state, so it explains
   itself and what will happen rather than showing an empty pane. */
.tools-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
}

.tools-empty .mud-icon-root {
    font-size: 2rem;
    color: var(--text-muted);
}

/* --- Tools activity (review surface, its own tab) ------------------------- */

/* The two overlap numbers get their own treatment because they are the point of
   the page: everything else is context for reading them. */
.tools-overlap {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.tools-overlap-card {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--accent-color);
    border-radius: 14px;
    background-color: var(--card-bg);
}

.tools-overlap-value {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-color);
    font-variant-numeric: tabular-nums;
}

.tools-overlap-label { color: var(--white); font-size: 0.9rem; }
.tools-overlap-note { color: var(--text-muted); font-size: 0.75rem; line-height: 1.45; }

.tools-statgrid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tools-statbox {
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background-color: var(--card-bg);
}

.tools-statbox-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.tools-statbox-label { color: var(--text-muted); font-size: 0.72rem; }

/* Which door gets used. A bar rather than a number because the comparison
   between them is the whole question, and eyes read bars faster. */
.tools-kinds { display: flex; flex-direction: column; gap: 8px; max-width: 620px; }

.tools-kind-head {
    display: flex;
    justify-content: space-between;
    font-family: 'Lato', sans-serif;
    font-size: 0.76rem;
    margin-bottom: 3px;
}

.tools-kind-name { color: var(--white); }
.tools-kind-count { color: var(--text-muted); font-variant-numeric: tabular-nums; }

.tools-kind-bar {
    height: 7px;
    border-radius: 4px;
    background-color: rgba(245, 245, 245, 0.07);
    overflow: hidden;
}

.tools-kind-fill {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 4px;
}

.tools-log { display: flex; flex-direction: column; gap: 8px; }

.tools-logrow {
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--accent-color);
    border-radius: 10px;
    padding: 10px 12px;
    background-color: var(--card-bg);
}

.tools-logrow.is-auto {
    border-left-color: var(--accent-color);
    background-color: rgba(42, 157, 143, 0.04);
}

.tools-logrow-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-family: 'Lato', sans-serif;
    font-size: 0.66rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.tools-log-kind {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--accent-color);
}

.tools-logrow.is-auto .tools-log-kind { color: var(--accent-color); }
.tools-log-who { color: var(--text-light); font-weight: 700; }
.tools-log-conf { font-variant-numeric: tabular-nums; }
.tools-log-when { margin-left: auto; font-variant-numeric: tabular-nums; }

/* The overlap flag is the finding, so it is the one thing here that is coloured
   like a result rather than metadata. */
.tools-log-flag.is-overlap {
    padding: 1px 7px;
    border-radius: 8px;
    background-color: rgba(155, 226, 125, 0.14);
    border: 1px solid rgba(155, 226, 125, 0.35);
    color: #9be27d;
    font-weight: 700;
}

.tools-log-q { color: var(--white); font-size: 0.85rem; line-height: 1.4; }

.tools-log-a {
    margin-top: 4px;
    color: var(--text-light);
    font-size: 0.78rem;
    line-height: 1.4;
}

.tools-log-meta {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    color: var(--text-muted);
    font-family: 'Lato', sans-serif;
    font-size: 0.66rem;
}

/* Duplicate flag on the answer card itself, so the redundancy shows in the
   moment rather than only in the log afterwards. */
.tools-answer-dupe {
    padding: 1px 6px;
    border-radius: 8px;
    background-color: rgba(155, 226, 125, 0.14);
    border: 1px solid rgba(155, 226, 125, 0.35);
    color: #9be27d;
    font-weight: 700;
}

/* "already asked · 12:03" — the mark on a question the room had answered before.
   Amber rather than red: this is history, not a warning, and the answer beneath it
   is a real, fresh one. A button because it goes somewhere — the answer it cites. */
.tools-answer-repeat {
    padding: 1px 6px;
    border-radius: 8px;
    background-color: rgba(240, 180, 90, 0.14);
    border: 1px solid rgba(240, 180, 90, 0.4);
    color: #f0b45a;
    font-weight: 700;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
}

.tools-answer-repeat:hover {
    background-color: rgba(240, 180, 90, 0.26);
}

/* The answer it cites, lit for a moment after the jump so the eye lands on it. */
.tools-answer.is-flash {
    box-shadow: 0 0 0 2px rgba(240, 180, 90, 0.55);
    transition: box-shadow 0.4s ease;
}

/* Answer-it-anyway, on a question that never got an answer. Deliberately small and
   quiet: it sits on a muted refusal line and must not out-shout the answers. */
.tools-answer-anyway {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--text-color, #e8e8e8);
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
}

.tools-answer-anyway:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.14);
}

.tools-answer-anyway:disabled {
    opacity: 0.45;
    cursor: default;
}

/* "↓ Newest" — shown only while the reader has scrolled away from the live end. */
.tools-followpin {
    padding: 1px 8px;
    border-radius: 8px;
    background-color: rgba(var(--accent-color-rgb, 155, 226, 125), 0.14);
    border: 1px solid var(--accent-color, #9be27d);
    color: var(--accent-color, #9be27d);
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
}

.tools-followpin:hover {
    background-color: rgba(var(--accent-color-rgb, 155, 226, 125), 0.26);
}

/* Verdict buttons. Four rather than a thumbs pair, because the three ways a
   detection can be wrong are different bugs and want telling apart. Only the
   chosen one is coloured — an unrated row should look unrated at a glance, since
   the good-catch rate means nothing until most rows are rated. */
.tools-verdicts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.tools-verdict {
    padding: 4px 10px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background-color: transparent;
    color: var(--text-light);
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.tools-verdict:hover:not(:disabled) { background-color: rgba(245, 245, 245, 0.07); }
.tools-verdict:disabled { opacity: 0.5; cursor: default; }

.tools-verdict.is-on.is-good {
    background-color: rgba(155, 226, 125, 0.9);
    border-color: rgba(155, 226, 125, 0.9);
    color: #10240f;
    font-weight: 700;
}

.tools-verdict.is-on.is-bad {
    background-color: #b3261e;
    border-color: #b3261e;
    color: #fff;
    font-weight: 700;
}

.tools-verdict-by {
    margin-left: 4px;
    color: var(--text-muted);
    font-family: 'Lato', sans-serif;
    font-size: 0.66rem;
}

/* The recording indicator. Staff-side only — a client is never sent the state
   that renders it. The dot pulses because the honest job of this chip is to be
   noticed: a recording indicator that reads like every other chip in the header
   is one people stop seeing, and "was that being recorded?" is not a question
   anyone should have to ask afterwards. */
.meeting-rec-chip {
    font-weight: 700;
    letter-spacing: 0.06em;
}

.meeting-rec-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #fff;
    animation: meeting-rec-pulse 1.6s ease-in-out infinite;
}

@keyframes meeting-rec-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

/* Someone watching a recording with motion sensitivity still needs to know it
   is recording; they just should not be made to watch it blink. */
@media (prefers-reduced-motion: reduce) {
    .meeting-rec-dot { animation: none; }
}

/* ============================================================
   Meeting tools — Insights tab
   Everything the console knows about itself. Styled from the same
   tokens as the console proper: this is another view of that tool,
   not a different page that happens to be nearby.
   ============================================================ */

.ins-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 18px 26px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Section nav reuses .tools-chip so it reads as the same control
   family as the console's scope chips. */
.ins-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ins-nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ins-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 28px 4px;
}

.ins-lede {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 2px 0 4px;
    max-width: 78ch;
}

/* --- headline tiles: state before detail --- */
.ins-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px;
}

.ins-tile {
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background-color: var(--card-bg);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ins-tile-v {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-light);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.ins-tile-k {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Good/warn is a border + value tint, never colour alone: the number
   and its label always say the same thing the colour does. */
.ins-tile.is-good { border-color: rgba(155, 226, 125, 0.45); }
.ins-tile.is-good .ins-tile-v { color: #9be27d; }
.ins-tile.is-warn { border-color: rgba(232, 131, 90, 0.5); }
.ins-tile.is-warn .ins-tile-v { color: #ec835a; }

/* --- chart cards --- */
.ins-chartcard {
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background-color: var(--card-bg);
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ins-chart-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.ins-chart-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
}

.ins-note {
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.5;
    margin: 0;
    max-width: 78ch;
}

.ins-legend {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ins-sw {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 5px;
    vertical-align: -1px;
}

.ins-sw.is-good   { background-color: var(--accent-color); }
.ins-sw.is-over   { background-color: #ec835a; }
.ins-sw.is-line   { background: transparent; border-top: 2px dashed rgba(226, 232, 240, 0.5); border-radius: 0; height: 0; width: 16px; }
.ins-sw.is-detect { background-color: rgba(42, 157, 143, 0.45); }
.ins-sw.is-answer { background-color: var(--accent-color); }

/* --- the per-answer bar chart ---
   The 20s bar is drawn as a dashed rule across the plot rather than
   written down, so "over the line" is a thing you see rather than a
   number you compare. */
.ins-bars {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 132px;
    padding-top: 6px;
}

.ins-bars.has-target::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--target);
    border-top: 1px dashed rgba(226, 232, 240, 0.35);
    pointer-events: none;
}

.ins-bar {
    flex: 1;
    min-width: 4px;
    min-height: 2px;
    border-radius: 4px 4px 0 0;
    background-color: var(--accent-color);
    transition: filter 0.12s ease;
}

.ins-bar:hover { filter: brightness(1.25); }
.ins-bar.is-over { background-color: #ec835a; }
.ins-bar.is-cost { background-color: rgba(42, 157, 143, 0.75); }

.ins-axis {
    display: flex;
    justify-content: space-between;
    font-size: 0.66rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- labelled rows (usage, cost by kind) --- */
.ins-rows { display: flex; flex-direction: column; gap: 7px; }

.ins-row {
    display: grid;
    grid-template-columns: 116px 1fr 62px;
    align-items: center;
    gap: 10px;
}

.ins-row-k { font-size: 0.78rem; color: var(--text-light); }

.ins-row-track {
    height: 8px;
    border-radius: 5px;
    background-color: rgba(226, 232, 240, 0.08);
    overflow: hidden;
}

.ins-row-fill {
    height: 100%;
    border-radius: 5px;
    background-color: var(--accent-color);
}

.ins-row-v {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* --- where the wait goes --- */
.ins-split { display: flex; flex-direction: column; gap: 8px; }

.ins-split-bar {
    display: flex;
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
    /* A 2px gap between segments so two fills never touch. */
    gap: 2px;
    background-color: rgba(226, 232, 240, 0.06);
}

.ins-split-a { background-color: rgba(42, 157, 143, 0.45); }
.ins-split-b { background-color: var(--accent-color); }

.ins-split-key {
    display: flex;
    gap: 18px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* --- misses --- */
.ins-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.ins-list li {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 10px;
    align-items: baseline;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.45;
}

.ins-t {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    font-size: 0.72rem;
}

.ins-kind {
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- rating queue --- */
.ins-rate {
    border-top: 1px solid var(--card-border);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ins-rate-q { font-size: 0.82rem; color: var(--text-light); line-height: 1.45; }
.ins-rate-a { font-size: 0.76rem; color: var(--text-muted); line-height: 1.45; }
.ins-verdicts { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================================================
   Console: tab strip, liveness strip, compacted answer card
   ============================================================ */

.tools-tabs { display: flex; gap: 6px; align-items: center; }

/* The always-on "is it working" strip. It answers a question you have
   continuously, which is the only kind of thing that earns permanent
   space on this page. */
.tools-live {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px;
    border-bottom: 1px solid var(--card-border);
    background-color: rgba(15, 20, 25, 0.5);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.tools-live-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-weight: 700;
}

.tools-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.tools-live.is-on .tools-live-dot {
    background-color: #9be27d;
    animation: tools-live-pulse 2.4s ease-in-out infinite;
}

.tools-live.is-on .tools-live-state { color: #9be27d; }

@keyframes tools-live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .tools-live.is-on .tools-live-dot { animation: none; }
}

/* Ticks: one per detector pass over the recent past, so "keeping up"
   is visible without reading a number. */
.tools-live-ticks {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.tools-live-tick {
    width: 3px;
    border-radius: 2px;
    background-color: rgba(42, 157, 143, 0.55);
}

.tools-live-tick.is-hit { background-color: var(--accent-color); }
.tools-live-spacer { margin-left: auto; }

/* Confidence, compacted: two claims that stay two claims, but as a
   pair of small meters rather than two sentences of percentages. */
.tools-conf2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.tools-conf2-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tools-conf2-label {
    font-size: 0.64rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tools-conf2-meter {
    width: 34px;
    height: 5px;
    border-radius: 3px;
    background-color: rgba(226, 232, 240, 0.12);
    overflow: hidden;
}

.tools-conf2-fill { height: 100%; border-radius: 3px; background-color: var(--accent-color); }

/* The number itself. A meter alone read as a dash you had to hover to decode. */
.tools-conf2-val {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.tools-conf2-fill.is-mid { background-color: #e8c35a; }
.tools-conf2-fill.is-low { background-color: #ec835a; }
.tools-conf2-fill.is-unknown { background-color: rgba(226, 232, 240, 0.3); }

/* Diagnostics behind More: kept for testing, off the face of the card. */
.tools-diag {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid var(--card-border);
    font-size: 0.68rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Collapsed scope summary — the controls are set-and-forget, so they
   fold away and the line says what they currently mean. */
.tools-scope-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-muted);
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    text-align: left;
}

.tools-scope-summary:hover { color: var(--text-light); }
.tools-scope-summary .tools-scope-val { color: var(--text-light); }

/* --- insights: filter bar, clickable marks, detail panel --- */

.ins-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--card-border);
}

.ins-filter-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ins-meeting-select { min-width: 190px; max-width: 260px; }

.ins-filter-count {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.ins-sec { display: flex; flex-direction: column; gap: 14px; }

.ins-tile-sub {
    font-size: 0.66rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Says out loud when a rate has too little behind it to be read. */
.ins-callout {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(232, 131, 90, 0.4);
    border-radius: 12px;
    background-color: rgba(232, 131, 90, 0.07);
    color: var(--text-light);
    font-size: 0.78rem;
    line-height: 1.5;
}

/* Bars are buttons: a mark you cannot open is an assertion you cannot check. */
button.ins-bar {
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.ins-bar.is-picked {
    outline: 2px solid var(--text-light);
    outline-offset: 1px;
}

button.ins-bar:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.ins-axis span:nth-child(2) {
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.7;
}

.ins-linkrow {
    display: grid;
    grid-template-columns: 62px 1fr auto;
    gap: 10px;
    align-items: baseline;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 3px 0;
    cursor: pointer;
    color: var(--text-light);
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    line-height: 1.45;
}

.ins-linkrow:hover { color: var(--accent-color); }
.ins-linkrow:focus-visible { outline: 1px solid var(--accent-color); outline-offset: 2px; }

.ins-detail {
    border: 1px solid var(--accent-color);
    border-radius: 14px;
    background-color: var(--card-bg);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ins-detail-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.ins-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
}

.ins-close:hover { color: var(--text-light); }

.ins-detail-q {
    margin: 0;
    color: var(--text-light);
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.45;
}

.ins-detail-a {
    margin: 0;
    color: var(--white);
    font-size: 0.85rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

/* ------------------------------------------------------------------
   Agent activity — Manage → Agent activity
   ------------------------------------------------------------------
   Deliberately built from the console's insight styling (ins-*) rather than
   MudBlazor cards: this is a log you scan, and the two surfaces should read
   as one instrument. A row is a button so the whole thing is a hit target
   and the keyboard gets it for free.                                    */

.agent-run {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    margin-bottom: 6px;
    overflow: hidden;
    background: var(--mud-palette-surface);
}

.agent-run.is-open { border-color: var(--mud-palette-primary); }

.agent-run-head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.agent-run-head:hover { background: var(--mud-palette-action-default-hover); }

.agent-run-badge {
    flex: 0 0 auto;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Spoke is the unremarkable case and is styled that way. Declined reads as a
   success, because it is one — an agent choosing not to fill the room is the
   feature working, and colouring it like a fault would teach the opposite. */
.agent-run-badge.is-spoke { background: var(--mud-palette-primary); color: #fff; }
.agent-run-badge.is-declined { background: var(--mud-palette-success); color: #fff; }
.agent-run-badge.is-gated { background: var(--mud-palette-warning); color: #fff; }
.agent-run-badge.is-trouble { background: var(--mud-palette-error); color: #fff; }

.agent-run-who { flex: 0 0 auto; font-weight: 600; }
.agent-run-room { flex: 0 0 auto; opacity: 0.7; font-size: 0.85rem; }

.agent-run-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.9;
    font-size: 0.9rem;
}

.agent-run-meta {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.78rem;
    opacity: 0.7;
    white-space: nowrap;
}

.agent-run-warn { color: var(--mud-palette-warning); font-weight: 600; }

.agent-run-body {
    padding: 4px 12px 12px;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.agent-run-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.82rem;
    opacity: 0.85;
    padding: 8px 0;
}

.agent-run-fold { margin: 4px 0; }

.agent-run-fold > summary {
    cursor: pointer;
    padding: 5px 0;
    font-size: 0.85rem;
    opacity: 0.85;
    user-select: none;
}

.agent-run-fold > summary:hover { opacity: 1; }

.agent-run-sub {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.6;
    margin: 8px 0 2px;
}

/* Wraps rather than scrolls horizontally: these are prompts and tool results
   read for their content, and a horizontal scrollbar per block turns reading
   one into an errand. */
.agent-run-pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0 0 6px;
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--mud-palette-background-grey);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.78rem;
    max-height: 320px;
    overflow-y: auto;
}

.agent-run-turns {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 360px;
    overflow-y: auto;
    padding: 4px 0;
}

.agent-run-turn {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 5px;
    background: var(--mud-palette-background-grey);
}

.agent-run-turn.is-own { background: var(--mud-palette-action-default-hover); }

.agent-run-turn-role {
    flex: 0 0 62px;
    opacity: 0.55;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-top: 1px;
}

@media (max-width: 700px) {
    .agent-run-head { flex-wrap: wrap; }
    .agent-run-text { flex-basis: 100%; white-space: normal; }
}

/* ------------------------------------------------------------------
   Agent typing indicator — chat
   ------------------------------------------------------------------
   Sits between the message list and the composer. Deliberately quiet: it
   reports that a colleague is mid-thought, which is ambient information, not
   an event. It earns its place because staying silent is now a normal outcome
   for an agent — without it, "deciding" and "decided not to" look identical,
   and a twenty-second tool loop looks like nothing happening.               */

.chat-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 8px;
    font-size: 0.8rem;
    opacity: 0.65;
    font-style: italic;
}

.chat-typing-dots {
    display: inline-flex;
    gap: 3px;
    align-items: flex-end;
    height: 10px;
}

.chat-typing-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: chat-typing-bounce 1.25s ease-in-out infinite;
}

.chat-typing-dots i:nth-child(2) { animation-delay: 0.16s; }
.chat-typing-dots i:nth-child(3) { animation-delay: 0.32s; }

@keyframes chat-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
    30%           { transform: translateY(-4px); opacity: 1; }
}

/* Motion here is decoration, and the words carry the whole meaning without
   it. Anyone who has asked for less movement gets a static row.            */
@media (prefers-reduced-motion: reduce) {
    .chat-typing-dots i { animation: none; opacity: 0.6; }
}

/* ---- The call widget ---------------------------------------------------- */
/* Floats above the page, corner-anchored until dragged (call.js swaps to
   explicit coordinates on first grab). High z-index because it holds the only
   controls for answering a call and must never end up behind a dialog.       */

.call-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    width: 300px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    animation: call-widget-in 0.22s ease-out;
}

/* Shrunk to just its header: answered, and now waiting out of the way. */
.call-widget.is-min { width: 220px; }

.call-widget.is-dragging {
    /* No transition while dragging — the pointer is the animation. */
    transition: none;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
}

.call-widget-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: grab;
    user-select: none;
    border-bottom: 1px solid var(--card-border);
}

.call-widget.is-min .call-widget-head { border-bottom: none; }
.call-widget-head:active { cursor: grabbing; }

.call-widget-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: var(--accent-color);
    animation: call-widget-pulse 1.8s ease-in-out infinite;
}

/* Both said yes — the pulse stops and it goes solid. */
.call-widget-dot.is-go { animation: none; background: var(--accent-color-light); }

.call-widget-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
}

.call-widget-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.call-widget-icon:hover { color: var(--text-light); }

.call-widget-body { padding: 12px; }

/* What the call is about, in the caller's words. Given room to breathe: it is
   the line the whole widget exists to deliver.                              */
.call-widget-subject {
    font-size: 0.9rem;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 10px;
    padding-left: 8px;
    border-left: 2px solid var(--accent-color);
}

.call-widget-who {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* The last status line before the buttons carries the gap for the group. */
.call-widget-who:last-of-type { margin-bottom: 12px; }

.call-widget-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.call-widget-go {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

@keyframes call-widget-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes call-widget-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* The pulse is decoration; the words carry the meaning. */
@media (prefers-reduced-motion: reduce) {
    .call-widget { animation: none; }
    .call-widget-dot { animation: none; }
}

/* Captions on, nobody talking yet. Quieter than a live caption line: it is a
   reassurance, not something to read.                                       */
.meeting-captions-idle .meeting-caption-line {
    color: var(--text-muted);
    font-style: italic;
}

/* The holding room's privacy line — the camera is warm, nobody can see it. */
.holding-privacy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

/* The two ways out of the code step. Side by side and quiet — they must never
   compete with the code field or the Log in button.                         */
.login-alt-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

/* A meeting that is happening right now. The client's home can hold several
   cards that are otherwise identical; this is the one they came for.        */
.meeting-card-live {
    border-left: 3px solid var(--accent-color);
    box-shadow: 0 0 0 1px rgba(42, 157, 143, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------------------------
   Walkthrough driver (/tools/walkthrough)

   The staff side of the walkthrough stage: pickers, the segment timeline, the
   narration the packet was written with, and a thumbnail of what the room is
   actually looking at. Everything here is internal — the room receives the
   screenshots and nothing else.
   ------------------------------------------------------------------------ */

.wtd-pickers {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wtd-picker { min-width: 320px; flex: 1 1 320px; }

/* One column per panel, so a comparison is driven the way it is shown.

   Given the leftover space, not sized to content: the screenshot is what the
   presenter directs from, and at confirmation size you could not tell which
   form the room was looking at. An earlier version sized this to content
   because flexing once clipped the controls off the bottom of the panel —
   that failure is prevented differently now: the image is the only flexible
   child, so it absorbs every pixel of give and the scrubber, narration and
   filmstrip keep their intrinsic height. */
.wtd-panels {
    display: flex;
    gap: 16px;
    flex: 1 1 auto;
    min-height: 0;
}

.wtd-panel {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background-color: var(--card-bg);
    /* When the shell squeezes a panel below its intrinsic height (the playlist
       card sharing the column made this real), clip the tail — a truncated
       filmstrip beats narration bleeding over the card below it. */
    overflow: hidden;
}

.wtd-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.wtd-panel-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

.wtd-panel-sub {
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.wtd-dot { margin: 0 6px; opacity: 0.5; }

.wtd-step { display: flex; align-items: center; flex: 0 0 auto; }

/* The screen itself — the panel's one flexible child, so it takes all the
   height the shell can spare and gives it back before anything else clips.
   This began life capped at 220px as "confirmation, not presentation", and
   real use reversed the doctrine: directing a demo means reading the actual
   screen — which field is focused, what an error toast says — and at
   thumbnail size the presenter was squinting at the very thing they were
   narrating. The floor keeps it legible when narration runs long. */
.wtd-thumb {
    width: 100%;
    flex: 1 1 auto;
    min-height: 160px;
    object-fit: contain;
    background-color: #000;
    border-radius: 6px;
    display: block;
}

.wtd-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 120px;
    color: var(--text-muted);
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    background-color: rgba(245, 245, 245, 0.04);
}

.wtd-segment-title { font-weight: 600; font-size: 0.85rem; }

/* The script, not a subtitle. Set to read at a glance mid-sentence — a
   presenter looks at this between two things they are saying out loud. */
.wtd-narration {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-light);
}

.wtd-coderefs { display: flex; flex-wrap: wrap; gap: 6px; }

.wtd-coderef {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.68rem;
    padding: 2px 7px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The shape of the demo you are in the middle of giving. */
.wtd-timeline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    border-top: 1px solid var(--card-border);
    padding-top: 8px;
}

.wtd-beat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 6px;
    border: none;
    border-radius: 5px;
    background: none;
    color: var(--text-muted);
    font-family: 'Lato', sans-serif;
    font-size: 0.74rem;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

.wtd-beat:hover { background-color: rgba(245, 245, 245, 0.07); color: var(--text-light); }

.wtd-beat.is-current {
    background-color: rgba(42, 157, 143, 0.15);
    color: var(--text-light);
    box-shadow: inset 2px 0 0 var(--accent-color);
}

.wtd-beat-n { flex: 0 0 auto; opacity: 0.6; font-variant-numeric: tabular-nums; }

.wtd-beat-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Which capture of a multi-shot segment a slide is. Several slides share a
   segment title, so without this the deck reads as a stutter. */
.wtd-beat-shot {
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 8px;
    opacity: 0.55;
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------------
   Walkthrough driver — the Lens browser, the scrubber and the filmstrip.

   Sized for the real numbers: thousands of selectable sources, and decks up to
   269 screenshots. Everything here has to stay usable on one screen with a
   client waiting, which is why the source list is virtualized, the deck is
   scrubbed rather than scrolled, and the filmstrip is a window rather than the
   whole thing.
   ------------------------------------------------------------------------ */

.wtd-browser {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 8px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background-color: var(--card-bg);
    padding: 10px 12px;
}

.wtd-browser-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wtd-search { min-width: 260px; flex: 1 1 260px; }
.wtd-filter { min-width: 140px; flex: 0 0 auto; }

.wtd-count {
    margin-left: auto;
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Fixed height so the browser never pushes the stage controls off screen —
   the rows scroll, the page does not. */
.wtd-rows {
    height: 260px;
    overflow-y: auto;
    border-top: 1px solid var(--card-border);
}

/* With something on the stage the browser is a way back to the list, not the
   main event — it shrinks so the whole driver still fits one screen, which is
   the bar for using this in front of somebody. */
.tools-shell.is-showing .wtd-rows { height: 130px; }
.tools-shell.is-showing .wtd-browser { flex: 0 0 auto; }

/* The library folded away while a deck is up. One slim row that says how to
   get the browser back; every other pixel goes to the screenshot being
   presented. A button, full width, because mid-demo nobody aims at small
   targets. */
.wtd-library-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 12px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background-color: var(--card-bg);
    color: var(--text-muted);
    font-family: 'Lato', sans-serif;
    font-size: 0.76rem;
    cursor: pointer;
    text-align: left;
    flex: 0 0 auto;
}

.wtd-library-bar:hover { color: var(--text-light); border-color: var(--accent-color); }

/* The same affordance inside the open browser, for folding it back down. */
.wtd-library-bar.is-open {
    border: none;
    padding: 0 0 2px 0;
    background: none;
    width: auto;
}

.wtd-row {
    display: grid;
    /* kind · project · title · pair side · media · date · actions. The media
       column fits "▶ recording · 116s" — 52px fit a bare count and made the
       new labels wrap the whole grid onto a second line, which is how the
       Left/Right buttons ended up unclickable (2026-08-24). */
    /* … then the ↔ flip (2026-08-26): an issue that arrived as both a
       recording and stills shows once, and this is where it swaps. */
    /* … and the ⚡ event-log column (2026-09-02) between media and the flip. */
    grid-template-columns: 84px 120px 1fr 56px 110px 48px 84px 52px 160px;
    align-items: center;
    gap: 10px;
    padding: 5px 6px;
    border-bottom: 1px solid rgba(245, 245, 245, 0.05);
    font-family: 'Lato', sans-serif;
    font-size: 0.76rem;
}

.wtd-row:hover { background-color: rgba(245, 245, 245, 0.05); }
.wtd-row.is-picked { background-color: rgba(42, 157, 143, 0.12); }
/* Which side a comparison pick went to, readable from the row itself: an edge
   in the side's colour, and the lit button names it. */
.wtd-row.is-picked.is-left { background-color: rgba(42, 157, 143, 0.2); box-shadow: inset 4px 0 0 #2a9d8f; }
.wtd-row.is-picked.is-right { background-color: rgba(233, 160, 60, 0.18); box-shadow: inset 4px 0 0 #e9a03c; }
.wtd-slot-label.is-left { color: #2a9d8f; }
.wtd-slot-label.is-right { color: #e9a03c; }

/* Run vs walkthrough at a glance: they are different kinds of thing and a
   150-screen run behaves nothing like a 4-beat packet. */
.wtd-kind {
    display: inline-block;
    text-align: center;
    padding: 1px 7px;
    border-radius: 9px;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wtd-kind.is-run { border-color: rgba(42, 157, 143, 0.5); color: var(--accent-color); }

.wtd-row-project { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtd-row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtd-row-count { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-muted); }

/* The ↔ cell. Always in the grid, invisible when the row has nothing to flip
   to — a sometimes-cell would shift every column after it. */
.wtd-row-flip { display: flex; justify-content: flex-start; }
.wtd-row-flip.is-none { visibility: hidden; }
.wtd-flip-btn {
    font-family: 'Lato', sans-serif;
    font-size: 0.66rem;
    white-space: nowrap;
    padding: 1px 7px;
    border-radius: 8px;
    border: 1px solid rgba(42, 157, 143, 0.45);
    background: transparent;
    color: var(--accent-color);
    cursor: pointer;
}
.wtd-flip-btn:hover { background: rgba(42, 157, 143, 0.12); }
.wtd-row-date { color: var(--text-muted); white-space: nowrap; }
.wtd-row-actions { display: flex; gap: 2px; justify-content: flex-end; }

/* The chosen sources and their spans. */
.wtd-chosen {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background-color: var(--card-bg);
}

.wtd-slot { flex: 1 1 280px; min-width: 0; }

.wtd-slot-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.wtd-slot-title {
    font-weight: 600;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wtd-slot-sub, .wtd-slot-empty {
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.wtd-span { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.wtd-span-field { width: 90px; }
.wtd-span-count { font-family: 'Lato', sans-serif; font-size: 0.72rem; color: var(--text-muted); }

.wtd-chosen-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

/* Scrubbing a long deck. The slider is the coarse move and the box is the exact
   one; together they cover "somewhere near the end" and "slide 137". */
.wtd-scrub { display: flex; align-items: center; gap: 12px; }
.wtd-slider { flex: 1; min-width: 0; }
.wtd-jump { width: 92px; flex: 0 0 auto; }

/* The window onto nearby slides. Horizontal, small, and never the whole deck. */
.wtd-filmstrip {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-top: 6px;
    border-top: 1px solid var(--card-border);
}

.wtd-film {
    position: relative;
    flex: 0 0 auto;
    width: 86px;
    height: 54px;
    padding: 0;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    background-color: #000;
    overflow: hidden;
    cursor: pointer;
}

.wtd-film img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.75; }
.wtd-film:hover img { opacity: 1; }

.wtd-film.is-current {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.wtd-film.is-current img { opacity: 1; }

.wtd-film-n {
    position: absolute;
    left: 2px;
    bottom: 2px;
    padding: 0 4px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 0.62rem;
    font-variant-numeric: tabular-nums;
}

/* Which panel the arrow keys drive — shown only in an unlinked comparison,
   where the answer isn't obvious. An accent edge and a soft ring rather than a
   fill: the panel is mostly screenshot, and a presenter reading it mid-sentence
   needs "the keys are here" at the edge of vision, not a highlight competing
   with the thing being presented. */
.wtd-panel.is-keys {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px rgba(42, 157, 143, 0.35);
}

/* The badge next to the chevrons that says the keys live here. Small and
   labelled "arrows" because a bare keyboard glyph reads as "shortcuts exist",
   which is not the claim being made. */
.wtd-keys-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    margin-right: 4px;
    border-radius: 10px;
    background-color: rgba(42, 157, 143, 0.15);
    color: var(--accent-color);
    font-family: 'Lato', sans-serif;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* --- The run of show ------------------------------------------------------
   The playlist tab's card: the pre-planned schedule and its run controls.
   Reads like the other wtd surfaces — card border, Lato metadata — because it
   drives the same stage; only the picking changed. */
.wtd-playlist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background-color: var(--card-bg);
    /* The ROWS scroll; the card does not (2026-08-20, by request — "I should
       see Add a segment without scrolling"). When the whole card scrolled,
       an appended row pushed the add strip below the fold, and mid-run the
       controls could leave the screen. Now the head, any live/test band and
       the add strip are pinned; .wtd-pl-rows is the one scroll region. */
    min-height: 0;
    overflow: hidden;
}

/* In the playlist tab with a deck up, the panels take a fixed share and the
   schedule gets the rest — the presenter needs both the slide and the Next
   button, and unbounded flex made them fight for the same pixels. */
.tools-shell.is-playlist .wtd-panels { flex: 0 0 auto; height: 42vh; }

/* Mid-run the deck is on the ROOM's screen — the driver needs the schedule
   more than a big copy of what everyone else is looking at ("you can't see
   the slides at all", 2026-08-21). Smaller stage, rows visible. */
.tools-shell.is-playlist.has-runbar .wtd-panels { height: 28vh; }

/* And mid-run the page becomes a normal scrolling document: unfolding the
   builder ATTACHES the library below instead of squeezing everything into
   the viewport — nothing shrinks, you scroll (2026-08-21, by request). */
.tools-shell.has-runbar { height: auto; }
.tools-shell.has-runbar .wtd-rows { height: 260px; }

/* The run of show is the page's main event (2026-08-24, flagged in the
   walkthrough: "the run of show is way too small") — the floor rises now
   that the library is one bounded, self-scrolling block below it. */
.tools-shell.is-playlist .wtd-playlist { flex: 1 1 auto; min-height: 380px; }

/* The browser under a plan tab keeps its natural, BOUNDED height — the pairs
   and the rows each scroll internally — and the playlist keeps the flex.
   Without this the two fought over the same pixels and the schedule card,
   Add-segment button included, was crushed to nothing the moment the pair
   list grew (2026-08-24: "the library takes up the entire screen, you can't
   do anything — it seems like you can't even add them"). */
.tools-shell.is-playlist .wtd-browser { flex: 0 0 auto; }

/* Last line of defence, driver page only: when stage + plan + library still
   exceed the viewport, the page scrolls instead of flexbox crushing or
   overlapping the cards. */
.tools-shell.is-driver { overflow-y: auto; }

.wtd-pl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.wtd-pl-title { font-weight: 600; font-size: 0.95rem; }

.wtd-pl-sub {
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.wtd-pl-actions { display: flex; align-items: center; gap: 8px; }

/* ---- Documents tab -------------------------------------------------------
   The written half of the driver. Shaped like the run of show — the same card,
   the same head — because it is the same job in a different medium: choose a
   thing, put it in front of the room, drive it. */
.wtd-docs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background-color: var(--card-bg);
    min-height: 0;
    overflow: hidden;
}

.tools-shell.is-playlist .wtd-docs { flex: 1 1 auto; min-height: 320px; }

/* The driving strip: what is up, which section, how big. Pinned at the top of
   the card rather than beside the row that staged it — mid-demo you are looking
   at the room, not hunting a list for the controls. */
.wtd-doc-drive {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: var(--surface-2, rgba(127, 143, 160, 0.12));
}

.wtd-doc-drive-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 0;
    flex: 1 1 200px;
}

.wtd-doc-ver {
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    color: var(--text-muted);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0 6px;
}

.wtd-doc-pages,
.wtd-doc-zoom { display: flex; align-items: center; gap: 2px; }

.wtd-doc-count {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 4.5em;
    text-align: center;
}

.wtd-doc-jump { max-width: 220px; }

.wtd-doc-hint {
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.wtd-doc-hint kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 0 4px;
}

/* The one scroll region, same stance as .wtd-pl-rows: the head and the driving
   strip stay put, the list moves under them. */
.wtd-doc-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
}

.wtd-doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.wtd-doc-row:hover { background-color: rgba(127, 143, 160, 0.10); }

.wtd-doc-row.is-on {
    border-color: var(--mud-palette-success, #2e7d32);
    background-color: rgba(46, 125, 50, 0.10);
}

.wtd-doc-row-text { min-width: 0; }

.wtd-doc-row-name {
    font-size: 0.88rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wtd-doc-row-meta {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* The live-step card. Loud on purpose: when the schedule is on a marker the
   stage is deliberately empty, and without this the driver reads as broken
   exactly when the presenter is busiest. */
.wtd-pl-now {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(42, 157, 143, 0.5);
    background-color: rgba(42, 157, 143, 0.1);
}

.wtd-pl-now-title { font-weight: 600; font-size: 0.9rem; }

.wtd-pl-now-notes { font-size: 0.8rem; margin-top: 2px; white-space: pre-wrap; }

.wtd-pl-now-hint {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.wtd-pl-rows {
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* The one scroll region of the playlist card — see the card's comment. */
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.wtd-pl-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    /* Constant height (2026-08-20, by request): the schedule reads as a grid
       of steps, and a long title must not make one row taller than the rest —
       it truncates instead (the row's main block already ellipsizes). With the
       card scrolling and rows fixed, an append moves the scroll position, not
       the layout. */
    flex: 0 0 auto;
    height: 46px;
    overflow: hidden;
}

.wtd-pl-row:hover { background-color: rgba(245, 245, 245, 0.04); }

.wtd-pl-row.is-current {
    border-color: var(--accent-color);
    background-color: rgba(42, 157, 143, 0.1);
}

/* Drag-to-reorder. The whole card drags; the grip is the affordance. */
.wtd-pl-grip {
    flex: 0 0 auto;
    color: var(--text-muted);
    opacity: 0.45;
    cursor: grab;
}

.wtd-pl-row:hover .wtd-pl-grip { opacity: 0.9; }

.wtd-pl-row.is-dragging { opacity: 0.35; }

/* The seam the card will land in — a line above or below the row under the
   pointer, matching the midline split the JS module computes. */
.wtd-pl-row.is-drop-before { box-shadow: inset 0 2px 0 var(--accent-color); }

.wtd-pl-row.is-drop-after { box-shadow: inset 0 -2px 0 var(--accent-color); }

.wtd-pl-n {
    flex: 0 0 auto;
    width: 20px;
    text-align: right;
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.wtd-pl-kind { flex: 0 0 auto; opacity: 0.7; }

.wtd-pl-row-main { flex: 1 1 auto; min-width: 0; }

.wtd-pl-row-title {
    font-size: 0.84rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wtd-pl-row-sub {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wtd-pl-row-actions { flex: 0 0 auto; display: flex; align-items: center; }

.wtd-pl-edit {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 6px 28px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    background-color: rgba(245, 245, 245, 0.03);
}

.wtd-pl-edit-actions { display: flex; gap: 8px; }

.wtd-pl-add {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--card-border);
}

/* The four segment-type buttons. They reuse .tools-chip so "pick a kind"
   reads as the same control the mode tabs are — the lit chip is the open
   picker, and clicking it again puts the picker away. */
.wtd-pl-add-types {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wtd-pl-add-types .tools-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wtd-pl-add-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-right: 4px;
}

/* Pushes Undo/Clear to the row's far end — housekeeping sits apart from
   the four add types so a reach for "Discussion" never lands on "Clear". */
.wtd-pl-add-spacer { flex: 1 1 auto; }

.wtd-pl-add-hint {
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* The comparison pair being collected before it becomes one segment. */
.wtd-pl-pair {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px dashed var(--card-border);
}

.wtd-pl-pair-slot {
    display: inline-flex;
    gap: 6px;
    font-size: 0.8rem;
    min-width: 0;
}

.wtd-pl-pair-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    align-self: center;
}

/* A side that holds a pick says so loudly — tick, tinted box, its colour
   matching the row edge in the library. */
.wtd-pl-pair-slot { align-items: center; padding: 2px 6px; border-radius: 6px; border: 1px solid transparent; }
.wtd-pl-pair-slot.is-held.is-left { border-color: #2a9d8f; background: rgba(42, 157, 143, 0.14); }
.wtd-pl-pair-slot.is-held.is-right { border-color: #e9a03c; background: rgba(233, 160, 60, 0.14); }
.wtd-pl-pair-empty { opacity: 0.6; font-style: italic; }
.wtd-pl-pair-title { font-weight: 600; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtd-pl-pair-slot.is-left .wtd-pl-pair-check { color: #2a9d8f; }
.wtd-pl-pair-slot.is-right .wtd-pl-pair-check { color: #e9a03c; }

.wtd-pl-marker-form {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.wtd-pl-marker-title { flex: 2 1 260px; }

.wtd-pl-marker-notes { flex: 3 1 320px; }

/* --- Send-to-Fulcrum project picker ---------------------------------------
   Hand-rolled combobox (see SendTranscriptDialog's comment for the state
   machine MudAutocomplete couldn't express). The list is an absolutely
   positioned card under the field, inside the dialog's own stacking
   context. */
.stf-picker { position: relative; }

/* Applied to the MudPopover paper — positioning is the popover's job now
   (it portals out of the dialog's clipped overflow); this only shapes it. */
.stf-list {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--card-border);
    border-radius: 6px;
}

.stf-item {
    padding: 7px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stf-item:hover { background-color: rgba(42, 157, 143, 0.14); }

.stf-item-empty { cursor: default; color: var(--text-muted); font-style: italic; }

.stf-item-empty:hover { background-color: transparent; }

/* A project you're not a member of: dimmed and labelled, still pickable and
   still hovering like the rest (2026-08-31). Picking one to read the refusal —
   and find out whose project it is to ask — is a legitimate move, so this
   marks the row rather than fencing it off. */
.stf-item-foreign { color: var(--text-muted); }

.stf-item-note {
    display: block;
    font-size: 0.7rem;
    font-style: italic;
    opacity: 0.75;
}

/* The missed-form-step shake. Small on purpose — a nudge, not an earthquake. */
@keyframes stf-shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

.stf-shake { animation: stf-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }

/* --- Client tab bar -------------------------------------------------------
   The client's whole navigation: three tabs under the app bar. Styled as a
   quiet segmented strip rather than Mud tabs so it reads as portal chrome,
   not page content. Active tab picks up the theme accent. */
.client-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 0 2px;
}

.client-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--mud-palette-text-secondary);
    transition: background-color 120ms ease, color 120ms ease;
}

.client-tab:hover {
    background: var(--mud-palette-action-default-hover);
    color: var(--mud-palette-text-primary);
}

.client-tab.is-active {
    background: var(--mud-palette-primary-hover);
    color: var(--mud-palette-primary);
}

/* The review-queue count on a project channel row — a number, not a dot,
   because "how many are waiting" is the question a queue answers. Red like
   the unread dot family; it means a person owes an action. */
.chat-pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--mud-palette-error);
    color: var(--mud-palette-error-text, #fff);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 4px;
    flex-shrink: 0;
}

/* The trash on a channel row: present but quiet — revealed on the row's
   hover so the list stays a list until you mean to prune it. */
.chat-row-archive {
    margin-left: auto;
    opacity: 0;
    transition: opacity 100ms ease;
    line-height: 0;
}

.chat-channel:hover .chat-row-archive {
    opacity: 0.65;
}

.chat-row-archive:hover {
    opacity: 1;
}

/* ---------------------------------------------------------------------------
   The phone in the meeting: the pairing dialog's QR on the desktop, and the
   whole /phone page. The page is thumb-first — three verbs, full-viewport,
   no chrome — because it is used one-handed while the other hand holds the
   thing being shown.
--------------------------------------------------------------------------- */

/* White backing on purpose: the portal is dark, and a QR without a light
   quiet zone is a QR the phone's camera hunts at. */
.companion-qr {
    width: min(240px, 70vw);
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    line-height: 0;
}

.companion-qr svg {
    width: 100%;
    height: auto;
}

.companion-code {
    letter-spacing: 0.35em;
    font-weight: 600;
    user-select: all;   /* one tap selects the whole code for a copy */
}

.phone-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mud-palette-background);
    padding: 12px;
}

.phone-card {
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px;
    border-radius: 12px;
    background: var(--mud-palette-surface);
}

.phone-center {
    align-items: center;
    text-align: center;
}

.phone-logo {
    height: 36px;
    align-self: center;
    margin-bottom: 4px;
}

.phone-muted {
    opacity: 0.7;
}

.phone-code-field input {
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* The in-room shape: header, stage, status line, verbs. The stage flexes to
   whatever the viewport gives; the verbs never shrink below thumb size. */
.phone-room {
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-room-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 4px 0;
}

.phone-room-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phone-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 12px;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-preview,
.phone-preview video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.phone-stage-empty {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 32px;
}

/* The reassurance chip while the rear camera is live: what the phone sees,
   the room sees. Mirrors the walkthrough stage's "everyone is looking at
   this" framing. */
.phone-stage-live {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--mud-palette-primary) 85%, transparent);
    color: #fff;
    font-size: 0.75rem;
    white-space: nowrap;
}

.phone-status {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    min-height: 1.2em;
}

.phone-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.phone-verb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 6px;
    min-height: 84px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font-size: 0.8rem;
    cursor: pointer;
}

.phone-verb small {
    font-size: 0.65rem;
    opacity: 0.6;
    line-height: 1.2;
    text-align: center;
}

.phone-verb.is-active {
    border-color: var(--mud-palette-primary);
    background: var(--mud-palette-primary-hover);
    color: var(--mud-palette-primary);
}

.phone-verb:disabled {
    opacity: 0.5;
    cursor: default;
}

/* The phone page's own bottom sheet (2026-11-19) — the "be careful" step
   before this phone's screen goes on the stage. Its own markup because the
   phone layout carries no dialog host. */
.phone-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 40;
}
.phone-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 41;
    padding: 18px 18px max(18px, env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
}
.phone-sheet-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

/* The "grab your phone" prompt: docked to the right edge rather than centered
   — an invitation during a live conversation, not a gate. Sized so the QR is
   scannable at arm's length without eclipsing anyone's face. */
.meeting-companion-prompt {
    position: absolute;
    right: 16px;
    top: 64px;
    z-index: 20;
    width: 250px;
    padding: 14px 16px;
    background: rgba(24, 27, 32, 0.97);
    border: 1px solid #3b4048;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.companion-qr-small {
    width: 170px;
}

.meeting-companion-prompt-how {
    font-size: 0.78rem;
    opacity: 0.85;
    line-height: 1.4;
}

/* The client's chat rail — appears only when they have more than one room.
   Reuses the drawer's row styles; this is just the column that holds them. */
.chat-client-rail {
    flex: 0 0 210px;
    border-right: 1px solid var(--card-border);
    overflow-y: auto;
    padding: 8px;
}

.chat-client-rail-head {
    display: block;
    padding: 6px 8px 4px;
}

/* The engagement, one block: the operating facts run as a strip across the
   top, and the work splits beneath it — tickets carrying two thirds, the
   Fulcrum board the rest. The paper supplies the chrome; these lay it out. */
.project-block {
    padding: 0;
    overflow: hidden; /* the strip's tint runs to the paper's own corners */
}

/* The header strip: every operating fact in one band — counters, reminder,
   production link, asks. Wraps on narrow screens; the tint and bottom border
   keep it reading as the block's header rather than a row of orphans. */
.project-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    padding: 10px 16px;
    background: var(--mud-palette-background-grey);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.strip-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

/* The project hub (2026-10-22/23, dev only — PortalFeatures.ProjectHub).
   Laid out like the meetings page: a header band flush under the app bar
   (the project, its people, the switcher, its site links), and a main region
   that scrolls beneath it, holding the two file areas side by side. */
.ph-page {
    height: calc(100dvh - (var(--mud-appbar-height, 64px) - var(--mud-appbar-height, 64px) / 4));
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.ph-toolbar {
    flex: 0 0 auto;
    background: var(--mud-palette-appbar-background);
    box-shadow: 0 1px 0 var(--card-border), 0 6px 14px rgba(0, 0, 0, 0.25);
    padding: 12px 0 10px;
    z-index: 1;
}
.ph-title { font-weight: 600; }
.ph-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.ph-sites { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 0.88rem; }
.ph-site { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-color, #2A9D8F); font-weight: 600; text-decoration: none; }
.ph-site:hover { text-decoration: underline; }
.ph-site.is-empty { color: var(--text-muted, #8b939d); font-weight: 400; }
.ph-sites.is-editing { gap: 8px; }
.ph-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; align-items: start; }

/* The file areas (ProjectFileShelf): a card each, a path to click back
   along, then folders and files. */
.hub-card {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 0;
    max-height: 360px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.015);}
.hub-shelf { max-height: none;}
.hub-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;}
.hub-card-title { font-family: Montserrat, system-ui, sans-serif; font-weight: 600; font-size: 0.95rem;}
.hub-card-count { font-size: 0.75rem; color: var(--text-muted, #8b939d);}
.hub-pending { color: #e8b04a;}
.hub-divider {
    font-family: Montserrat, system-ui, sans-serif; font-size: 0.62rem; font-weight: 600;
    letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted, #8b939d);
    margin: 10px 0 2px;}
.hub-empty { font-size: 0.8rem; color: var(--text-muted, #8b939d); padding: 4px 2px;}
.hub-private {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.72rem; color: #e8b04a;
    border: 1px solid rgba(232, 176, 74, 0.4); border-radius: 10px; padding: 0 8px;}
.hub-shared {
    display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem;
    color: var(--accent-color, #2A9D8F); border: 1px solid rgba(42, 157, 143, 0.45); border-radius: 10px; padding: 0 8px;}
.shelf-newfolder { display: flex; align-items: center; gap: 8px; margin-bottom: 6px;}
.shelf-text { flex: 1; min-width: 0;}
.shelf-text .shelf-name { display: block;}
.shelf-text .shelf-meta { white-space: normal;}
.shelf-row.is-pending { background: rgba(232, 176, 74, 0.06);}
.shelf-asks { margin-bottom: 6px;}
.shelf-path { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; font-size: 0.8rem;}
.shelf-crumb { background: none; border: none; color: var(--accent-color, #2A9D8F); cursor: pointer; padding: 0 2px; font: inherit;}
.shelf-crumb:last-child { color: inherit; font-weight: 600; cursor: default;}
.shelf-sep { color: var(--text-muted, #8b939d);}
.shelf-row {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 4px; border-radius: 6px;}
.shelf-row:hover { background: rgba(255, 255, 255, 0.04);}
.shelf-folder { cursor: pointer;}
.shelf-icon { color: var(--accent-color, #2A9D8F);}
.shelf-name { flex: 1; min-width: 0; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit;}
a.shelf-name:hover { text-decoration: underline;}
.shelf-meta { font-size: 0.74rem; color: var(--text-muted, #8b939d); white-space: nowrap;}

/* The work area: tickets lead at roughly two thirds, the board keeps the
   rest. Flex basis rather than a grid so a narrow window stacks them. */
.project-columns {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    padding: 14px 16px;
}

.project-tickets {
    flex: 2 1 480px;
    min-width: 0;
}

.project-board {
    flex: 1 1 240px;
    min-width: 220px;
}

/* The board column scrolls to the tickets' horizon, not its own. */
.board-scroll {
    max-height: 660px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

.project-glance-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

/* ---- Week calendar --------------------------------------------------------- */
.cal-scroll { max-height: calc(100vh - 240px); overflow: auto; }
.cal-grid { display: grid; grid-template-columns: 56px repeat(7, minmax(110px, 1fr)); min-width: 830px; }
.cal-head { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--mud-palette-lines-default);
    border-left: 1px solid var(--mud-palette-lines-default);
    position: sticky; top: 0; z-index: 5; background: var(--mud-palette-surface); }
.cal-gutter.cal-head { border-left: none; }
.cal-dayname { font-size: 0.72rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.04em; }
.cal-daynum { font-size: 1.05rem; font-weight: 600; }
.cal-today .cal-daynum { color: var(--mud-palette-primary); }
.cal-today { background: rgba(var(--mud-palette-primary-rgb), 0.06); }
.cal-gutter { position: relative; }
.cal-hour-label { font-size: 0.68rem; opacity: 0.6; text-align: right; padding: 1px 6px 0 0; box-sizing: border-box; }
.cal-daycol { position: relative; border-left: 1px solid var(--mud-palette-lines-default); }
.cal-hour-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--mud-palette-lines-default); opacity: 0.35; }
.cal-block { position: absolute; right: 2px; border-radius: 6px; padding: 2px 6px; overflow: hidden;
    cursor: pointer; box-sizing: border-box; box-shadow: 0 1px 3px rgba(0,0,0,0.18); transition: filter 0.1s; }
.cal-block:hover { filter: brightness(1.08); }
.cal-block-title { font-size: 0.72rem; font-weight: 600; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-block-time { font-size: 0.64rem; opacity: 0.9; }
.cal-client { background: var(--mud-palette-primary); color: #fff; }
.cal-internal { background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-primary); }

/* Board rows show their whole title — a task you cannot read is a task the
   column failed to show. The column scrolls; the rows wrap. */
.project-glance-row.board-row { align-items: flex-start; }

/* The meeting card: header row carries the when (in-flow, right side — nothing
   can overlap it), the meta line stays quiet, and the description clamps to two
   lines. A card is a row in a list, not the meeting's biography. */
.meeting-card-when { opacity: 0.75; white-space: nowrap; }
.meeting-card-meta { opacity: 0.65; display: block; margin-top: 2px; }

/* The header's left side: the name and every tag, wrapping among themselves.
   It has to wrap INSIDE this box rather than in the header row, because the row
   also holds the spacer and the date — let the row wrap and the date lands on a
   line of its own, left-aligned, which is exactly the overlap-adjacent mess the
   in-flow header was built to end. min-width:0 so a long meeting name shrinks
   instead of shoving the date off the card. */
.meeting-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    min-width: 0;
}

/* One spacing rule for the row, not two. MudBlazor gives every chip a 4px
   margin of its own, which on a five-chip row adds to the gap above and makes
   the deliberate grouping below (10px between tags, 4px inside the pressable
   pair) unreadable. The gap is the only spacing in here. */
.meeting-card-head .mud-chip { margin: 0; }

/* --- The client and project chips --------------------------------------- */

/* The pressable pair, kept together: client, project and the pencil wrap as one
   unit, so the pencil is never orphaned onto a line without the chips it
   explains. */
.card-chip-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    row-gap: 4px;
}

/* Pressable, and it has to LOOK pressable standing still — the Purpose and Chat
   tags beside it are read-only, so a real border rather than MudBlazor's tinted
   fill, and a lift on hover that no static tag has. */
.card-chip {
    cursor: pointer;
    transition: background-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.card-chip:hover {
    background-color: rgba(248, 250, 252, 0.08) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

/* The client chip carries its tone (set inline, per client) — the avatar makes
   it a who, next to the folder chip's what. */
.card-chip-client .mud-avatar {
    font-size: 0.66rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    margin-left: -6px;
}

/* Empty: dashed, accent, and an offer rather than a gap. */
.card-chip-empty { border-style: dashed !important; }

/* The pencil trailing the pair says what the pair is for, once, quietly — it
   brightens with them so the chips read as one editable group. */
.card-chip-pen {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 120ms ease;
}

.card-chip-row:hover .card-chip-pen { opacity: 0.9; }

/* The picker that replaces the chips, in their place in the row. It gets a
   minimum it will not go below and a maximum it will not pass — under that
   minimum it wraps to its own line under the meeting name, which is a better
   reading than a search box too narrow to show a project name. The close
   button sits tight against it so the pair reads as one control you can back
   out of. */
.card-picker {
    display: inline-flex;
    align-items: center;
    flex: 1 1 260px;
    min-width: 240px;
    max-width: 420px;
}

.card-picker-field { flex: 1 1 auto; }
.meeting-card-desc {
    opacity: 0.85;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tickets: each one visibly its own block — tinted, bordered — inside a
   scroll region so a busy project doesn't take over the page. */
.ticket-scroll {
    max-height: 660px;
    overflow-y: auto;
    padding-right: 4px;
}

.ticket-card {
    position: relative;
    background: var(--mud-palette-background-grey);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
}

/* The staff page's ticket cards: a hard frame and a darker header band, so
   each ticket's start and end read at scroll speed without reading any text.
   Additive on purpose — the base .ticket-card stays shared with the client's
   /project and /project/plan pages, which keep their quieter look. */
.ticket-framed {
    border: 1px solid var(--mud-palette-lines-inputs);
    overflow: hidden; /* the head band fills to the card's own corners */
}
.ticket-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    /* Darker than the body, not another palette surface: the band is a
       boundary marker, and a plain darkening reads as one at any theme. */
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}
/* The title carries the header: full-strength and bold, against a page whose
   default text sits a step lighter. */
.ticket-head .ticket-title {
    font-weight: 700;
    color: var(--mud-palette-text-primary);
}
.ticket-byline {
    margin-left: auto;
    white-space: nowrap;
    opacity: 0.85;
}
/* The reference is part of the title's line, never the corner — it briefly wore
   .ticket-byline, whose margin-left:auto shoved every numbered ticket's title
   toward the middle while unnumbered ones hugged the edge. A handle sits where
   the hand is. */
.ticket-ref {
    font-family: monospace;
    opacity: 0.7;
    white-space: nowrap;
}
/* Two stacked rows in the head band: identity, then state. */
.ticket-head--two-line {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}
.ticket-head-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.ticket-head-row--state { min-height: 24px; }
/* The priority tint. A left accent plus a faint wash of the same colour over
   the dark band — enough that scanning the column reads the urgencies without
   reading a word, faint enough that the band stays a band. Red for blocking,
   orange for normal, green for whenever (2026-08-14, by decree). Open tickets
   only; the class is simply absent on completed ones. */
.ticket-head--blocking {
    border-left: 3px solid #e5484d;
    background: linear-gradient(rgba(229, 72, 77, 0.14), rgba(229, 72, 77, 0.14)), rgba(0, 0, 0, 0.35);
}
.ticket-head--normal {
    border-left: 3px solid #f5a524;
    background: linear-gradient(rgba(245, 165, 36, 0.10), rgba(245, 165, 36, 0.10)), rgba(0, 0, 0, 0.35);
}
.ticket-head--whenever {
    border-left: 3px solid #46a758;
    background: linear-gradient(rgba(70, 167, 88, 0.10), rgba(70, 167, 88, 0.10)), rgba(0, 0, 0, 0.35);
}
/* The verbs' own column: narrow, stacked, out of the content's way. */
.ticket-verbs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 132px;
    flex: none;
    margin-left: 12px;
    align-items: stretch;
}
.ticket-verbs .mud-chip { justify-content: center; }
.ticket-body {
    padding: 10px 14px 12px;
}

.project-glance-link {
    color: inherit;
    text-decoration: none;
}

.project-glance-link:hover span {
    text-decoration: underline;
}

/* The project half of a client's app-bar identity — quieter than the name,
   because "who am I" outranks "which engagement". */
.portal-user-project {
    margin-left: 6px;
    opacity: 0.65;
    font-weight: 400;
    text-transform: none;
}


/* A ticket the client just made slides into the list and glows for a beat —
   the visible link between "Send it" and where the thing now lives. */
@keyframes ticket-arrive {
    0% { transform: translateY(-8px); opacity: 0; box-shadow: 0 0 0 2px var(--mud-palette-primary); }
    40% { transform: translateY(0); opacity: 1; box-shadow: 0 0 0 2px var(--mud-palette-primary); }
    100% { box-shadow: 0 0 0 0 transparent; }
}
.ticket-arrived { animation: ticket-arrive 1.2s ease-out; }

/* The deliverables approval box. The sort-into-columns drop zones died
   2026-08-15 when priority became the client's dial — approval is a flat
   list now, just "are these the right words". */
.deliverable-card { overflow: hidden; }

/* Booking: the setup page's weekday rows, and the client's slot chips.
   Slot buttons are deliberately plain outlined buttons — a time is a choice,
   not a status, and chips read as status. */
.booking-day-row { min-height: 56px; }
.booking-day-switch { min-width: 150px; padding-top: 6px; }

/* Hours clients can book: the day rows on the left, the week at a glance on
   the right (2026-08-26, flagged in the walkthrough — a calendar view of the
   hours, and several blocks a day). The strip is a picture of the rows: seven
   columns over a 6 AM–9 PM scale, one bar per block, redrawn as the rows
   change. Narrow screens stack it under the rows. */
.booking-hours-layout { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.booking-hours-rows { flex: 1 1 520px; min-width: 0; }
.booking-day-blocks { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.booking-block-row { min-height: 48px; }
.booking-add-block { align-self: flex-start; margin-left: -8px; }
.booking-day-off { padding-top: 14px; }

.booking-week {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 52px repeat(7, 44px);
    gap: 0 4px;
    height: 240px;
    padding-top: 22px;
    position: relative;
}
.booking-week-hours { position: relative; font-size: 0.7rem; color: var(--mud-palette-text-secondary); }
.booking-week-hours span { position: absolute; right: 6px; transform: translateY(-50%); white-space: nowrap; }
.booking-week-day { display: flex; flex-direction: column; height: 100%; }
.booking-week-day-name {
    position: absolute; top: 0; font-size: 0.7rem; text-align: center; width: 44px;
    color: var(--mud-palette-text-secondary);
}
.booking-week-col {
    position: relative; flex: 1 1 auto;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}
.booking-week-day.is-off .booking-week-col { background: rgba(255, 255, 255, 0.015); }
.booking-week-block {
    position: absolute; left: 3px; right: 3px;
    background: var(--mud-palette-primary);
    border-radius: 3px; opacity: 0.85;
}
.booking-slot { min-width: 92px; }

/* "Open as a calendar": the bookable-hours dialog (2026-08-28, flagged in the
   walkthrough — look at your availability on a calendar and make it there).
   Seven lanes over a 6 AM–9 PM scale, one absolutely-positioned box per
   window. The lanes are a grid so a column is always exactly a seventh of the
   width: the C# side turns a clientX into a day by dividing, and a flex row
   with its own rounding would put a box in Tuesday when you pressed in
   Wednesday. touch-action:none because a drag down the grid is a drag, not a
   scroll. */
.bookcal { user-select: none; }
.bookcal:focus { outline: none; }
.bookcal:focus-visible { outline: 1px solid var(--mud-palette-primary); outline-offset: 4px; }
.bookcal-head { display: flex; }
.bookcal-corner { flex: 0 0 62px; }
.bookcal-headdays { flex: 1 1 auto; display: grid; grid-template-columns: repeat(7, 1fr); }
.bookcal-dayhead { text-align: center; padding-bottom: 5px; font-size: 0.8rem; }
.bookcal-dayhead.is-off { color: var(--mud-palette-text-secondary); }
.bookcal-dayname { display: block; }
.bookcal-daydate { display: block; font-size: 0.68rem; color: var(--mud-palette-text-secondary); }
.bookcal-body { display: flex; }
.bookcal-gutter {
    flex: 0 0 62px; position: relative;
    font-size: 0.7rem; color: var(--mud-palette-text-secondary);
}
.bookcal-gutter span { position: absolute; right: 8px; transform: translateY(-50%); white-space: nowrap; }
.bookcal-lanes {
    flex: 1 1 auto; position: relative;
    display: grid; grid-template-columns: repeat(7, 1fr);
    touch-action: none; cursor: crosshair;
}
.bookcal-day {
    position: relative; overflow: hidden;
    border-left: 1px solid var(--mud-palette-lines-default);
    background: rgba(255, 255, 255, 0.03);
}
.bookcal-day:last-child { border-right: 1px solid var(--mud-palette-lines-default); }
.bookcal-day.is-off { background: rgba(255, 255, 255, 0.012); }
.bookcal-hourline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--mud-palette-lines-default); opacity: 0.45; }

/* The overlay: hatched, grey, and unreachable. It is the week you already
   have, drawn UNDER the hours you are declaring — never a thing to grab, so
   pointer-events go straight through to the lane behind it. */
.bookcal-busy {
    position: absolute; left: 0; right: 0; z-index: 1;
    pointer-events: none; overflow: hidden; border-radius: 2px;
    background: repeating-linear-gradient(45deg,
        rgba(255, 255, 255, 0.11) 0 5px, rgba(255, 255, 255, 0.03) 5px 10px);
    border-left: 2px solid rgba(255, 255, 255, 0.28);
}
.bookcal-busy span {
    display: block; padding: 2px 4px;
    font-size: 0.65rem; line-height: 1.2;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.bookcal-box {
    position: absolute; left: 4px; right: 4px; z-index: 2;
    background: var(--mud-palette-primary); opacity: 0.92;
    border-radius: 4px; cursor: grab; overflow: hidden;
}
.bookcal-box.is-selected { outline: 2px solid var(--mud-palette-text-primary); outline-offset: -1px; }
.bookcal-box.is-draft { opacity: 0.6; pointer-events: none; }
.bookcal-box-label {
    font-size: 0.65rem; line-height: 1.2; padding: 2px 4px;
    color: var(--mud-palette-primary-text); white-space: nowrap;
}
.bookcal-box-label.is-end { position: absolute; bottom: 0; right: 2px; padding-top: 0; }
/* Grabbable edges, taller than they look: an 8px target on a 44px hour is the
   difference between resizing and accidentally moving the whole block. */
.bookcal-grip { position: absolute; left: 0; right: 0; height: 9px; cursor: ns-resize; }
.bookcal-grip.is-top { top: 0; }
.bookcal-grip.is-bottom { bottom: 0; }
.bookcal-x {
    position: absolute; top: 0; right: 0; z-index: 3;
    width: 18px; height: 18px; padding: 0; line-height: 16px;
    background: transparent; border: 0; border-radius: 3px;
    color: var(--mud-palette-primary-text); font-size: 0.9rem; cursor: pointer;
}
.bookcal-x:hover { background: rgba(0, 0, 0, 0.28); }

/* The staff home list and the Tasks tab. A completed deadline stays in the
   tab's management list but reads as history, not work. */
.home-task-row { min-height: 40px; }
/* The text half of a home row: shrinks, and breaks an unbroken run of
   characters rather than pushing the chip off a 390 px screen (2026-11-14). */
.home-row-text { min-width: 0; overflow-wrap: anywhere; }
.deadline-done { opacity: 0.55; }

/* A personal (non-meeting) event on the calendar: visually quieter than a
   meeting — it has nothing behind it to click into — and hatched so "my own
   time" reads differently from "a room I could join". */
.cal-event {
    background: repeating-linear-gradient(
        45deg,
        var(--mud-palette-background-grey),
        var(--mud-palette-background-grey) 6px,
        var(--mud-palette-surface) 6px,
        var(--mud-palette-surface) 12px);
    border-left: 3px solid var(--mud-palette-text-secondary);
    cursor: default;
}

/* Current deliverables: crossing into a new engagement must be unmissable.
   Each project is a hard-framed section opened by a darker head band (the
   ticket-framed pattern, reused because it already taught eyes what a band
   means), and each deliverable card wears its horizon on its left edge —
   accent for "by next meeting", quiet for "longer-term" — so the split reads
   at scroll speed without reading a single chip. */
.deliv-project {
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: 8px;
    overflow: hidden; /* the head band fills to the section's own corners */
}
.deliv-project-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: var(--mud-palette-background-grey);
    border-bottom: 1px solid var(--mud-palette-lines-inputs);
}
.deliv-project-counts { color: var(--mud-palette-text-secondary); white-space: nowrap; }
.deliv-card {
    padding: 10px 12px;
    border-radius: 6px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-left-width: 4px;
}
.deliv-next { border-left-color: var(--mud-palette-primary); }
.deliv-later { border-left-color: var(--mud-palette-lines-inputs); }

/* A task row invites the click that opens it. */
.home-task-clickable { cursor: pointer; border-radius: 6px; }
.home-task-clickable:hover { background: var(--mud-palette-action-default-hover); }

/* The leave menu, owned (2026-08-14): a plain conditional div instead of a
   MudMenu, because the room re-renders every second (the clock) and a popover
   re-registered under an open menu ate the first item-click — the FIFTH
   sighting of the popover-under-re-render failure, this time on the button a
   person presses while wrapping up in front of a client. Lens never caught it
   because a driver clicks faster than the next clock tick; a human never
   beats one. A div in the page's own tree just re-renders and keeps working. */
.meeting-leave-wrap { position: relative; }

.meeting-leave-menu {
    /* FIXED, not absolute: the control bar clips its children
       (overflow: hidden for the collapse animation), and an absolute menu
       rendered inside it was invisible-but-present — Playwright found the
       button, no pointer could reach it. Fixed positioning escapes the clip;
       the bar lives at the viewport bottom, so the offsets are stable. */
    position: fixed;
    bottom: 64px;
    right: 14px;
    z-index: 40;
    min-width: 250px;
    background-color: #262b32;
    border: 1px solid #3d434c;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.meeting-leave-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    color: #e6e8eb;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
}

.meeting-leave-menu button:hover { background-color: #343a42; }
/* End meeting… set apart from Leave (2026-10-13): a rule above it and red,
   so the item that ejects everyone never reads as the one that just leaves. */
.meeting-leave-sep { height: 1px; margin: 4px 8px; background: rgba(255, 255, 255, 0.12); }
.meeting-leave-menu button.meeting-leave-end { color: #f87171; }
.meeting-leave-menu button.meeting-leave-end:hover { background-color: rgba(248, 113, 113, 0.12); }

/* Click-away: transparent, fixed, one layer under the menu. Ours, so a
   re-render can never orphan it the way Mud's overlay could. */
.meeting-leave-backdrop {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: transparent;
}

/* Client-side section headers (2026-08-14, by request): louder than the staff
   overline — the small caps blended into the background on the pages clients
   actually live in, and a section boundary should read at a glance. */
.client-section-label {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    color: var(--mud-palette-text-primary) !important;
    display: block;
}

/* The client's project switcher: pinned, because MudSelect's OUTER wrapper is
   the flex item (Style lands inside it) — left unpinned it grew into half the
   header row and the visible control floated mid-air instead of sitting flush
   with the card edge below. */
.project-switcher {
    width: 300px !important;
    flex: none !important;
    margin-left: auto;
}

/* A row in the Projects page's "Needs you" list. Clickable, so it says so on
   hover — the rest of that page's papers are inert and a row that navigates
   should not look identical to one that doesn't. */
.project-attention-row {
    transition: background-color .12s ease;
}

.project-attention-row:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

/* The Insights toolbar's meeting filter — a sibling of the multi-select, not a
   child of it (see the note at its markup). Narrow enough to sit in the filter
   row without crowding the presets. */
.ins-meeting-filter {
    max-width: 190px;
}

/* Home page section headers (2026-08-20, by request: "bigger and more contrast
   with the background").

   Both homes are a stack of sections — Your day, Upcoming meetings, Your tasks,
   Deadlines, Deliverables on the Delve side; Your project, Upcoming meetings,
   Action items on the client's — and the staff side was labelling them with the
   same muted small-caps overline used for a caption. At a glance the page read
   as one long column with grey text in it rather than as five answers to five
   questions.

   So: real heading size, full-strength text, and no uppercase. The small-caps
   treatment is what made these recede in the first place; keeping it and only
   nudging the size would have kept the problem. This is the client-section rule
   from 2026-08-14 grown up and applied to both sides, so the two homes stop
   disagreeing about how loud a section boundary is.

   Scoped to the home page on purpose — .section-label is worn by a dozen other
   staff surfaces where a quiet caption IS the right call, and widening this
   globally would shout on every one of them. */
.home-section-label {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    color: var(--mud-palette-text-primary) !important;
    display: block;
    margin-bottom: 10px;
}

/* The prep doors on a home "Upcoming meetings" row. Faint until the row is
   hovered — the row's own job is to say what and when, and three icons at full
   strength on every line turns a glance into a menu. Same restraint the meeting
   tiles' hover actions use. */
.home-meeting-preps {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    opacity: 0.45;
    transition: opacity .12s ease;
}

.home-task-row:hover .home-meeting-preps,
.home-meeting-preps:focus-within {
    opacity: 1;
}

/* --- Walkthrough driver: before/after pairs, side captions, test run ------ */

/* The pairs' own scrolling box is GONE (2026-08-24, flagged in the
   walkthrough: "we can't have two different scrolls for the same feature") —
   pair rows now live at the head of .wtd-rows, the library's one scroll, and
   the Show filter is how pairs are asked for. Only the label and row styles
   below remain. */

.wtd-pairs-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 6px 6px 2px;
}

/* The before/after chip a paired row wears in the full list, now that pair
   halves are listed rather than folded away. */
.wtd-pair-side {
    flex: 0 0 auto;
    font-family: 'Lato', sans-serif;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1px 6px;
    border-radius: 8px;
    border: 1px solid rgba(42, 157, 143, 0.45);
    color: var(--accent-color);
    text-align: center;
}

/* The cell is always rendered — the row is a grid, and a sometimes-cell would
   shift every column after it — but an unpaired row keeps it invisible. */
.wtd-pair-side.is-none { visibility: hidden; }

.wtd-pair-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 4px;
    height: 40px;
    overflow: hidden;
    /* Never flex-shrunk: a dozen pairs in a bounded box were being crushed
       into each other, rows printing over rows (2026-08-24, "riding some
       overlap"). Fixed rows, and the box above scrolls instead. */
    flex: 0 0 auto;
}

/* The Recording/Stills flip on a pair row whose issue arrived in both media
   (2026-08-26). Reuses the header's mode chips: same "which of two" gesture,
   same look, and small enough that the row still fits in its 40px. */
.wtd-media-toggle {
    display: inline-flex;
    gap: 2px;
    flex: 0 0 auto;
}

/* The room caption field, in the span rows — wide enough for "Before we fixed
   it", not wide enough to crowd the numbers. */
.wtd-caption-field { width: 170px; flex: 0 0 auto; }

/* The rehearsal band. Sits where the live panels would, styled unmistakably
   as NOT the room — the whole point of the mode is that nobody else sees it. */
.wtd-pl-test {
    border: 1px dashed var(--accent-color);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Full height (2026-08-20, by request): while rehearsing, the schedule
       folds away and this band IS the tab — the slides should read at the
       size the room would see them, not as thumbnails over a list. */
    flex: 1 1 auto;
    min-height: 0;
}

.wtd-pl-test-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.wtd-pl-test-panels {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
}

.wtd-pl-test-panel {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wtd-pl-test-img {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    object-fit: contain;
    border-radius: 6px;
    background: #000;
}

.wtd-pl-test-caption {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(42, 157, 143, 0.25);
}

/* --- Meeting room: the stage's side captions ------------------------------ */

/* "Before" / "After" over a comparison panel — the one presenter-authored
   string the room's stage copy carries. Floats over the top-left corner of
   the panel so it never costs the screenshot any height. */
.wt-panel { position: relative; }

.wt-side-title {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 2px 12px;
    border-radius: 12px;
    color: #fff;
    background: rgba(15, 23, 30, 0.75);
    pointer-events: none;
}

/* ---- Walkthrough driver: per-frame cuts ---------------------------------
   The cut control on a filmstrip thumb, and the restore strip beneath it.
   Cutting is per-placement and reversible, so the visual weight is small —
   an affordance, not an alarm. */

.wtd-film-cut {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 10px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    opacity: 0;
    cursor: pointer;
}

.wtd-film:hover .wtd-film-cut { opacity: 1; }
.wtd-film-cut:hover { background-color: rgba(180, 40, 40, 0.9); }

.wtd-cutrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.wtd-cutrow-label { font-size: 12px; opacity: 0.7; }

.wtd-cutchip {
    padding: 2px 8px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: none;
    color: inherit;
    font-size: 12px;
    cursor: pointer;
}

.wtd-cutchip:hover { border-color: var(--accent-color); }

/* The plan editor's frame grid: every frame of the span, cut ones dimmed
   under their mark, one click either way. */

.wtd-frames-toggle {
    padding: 2px 10px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: none;
    color: inherit;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.wtd-frames-toggle:hover { border-color: var(--accent-color); }

.wtd-framegrid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 10px;
    max-height: 240px;
    overflow-y: auto;
}

.wtd-frame {
    position: relative;
    width: 86px;
    height: 54px;
    padding: 0;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    background-color: #000;
    overflow: hidden;
    cursor: pointer;
}

.wtd-frame img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; }
.wtd-frame.is-cut img { opacity: 0.25; }
.wtd-frame.is-cut { border-color: rgba(180, 40, 40, 0.7); }

.wtd-frame-cutmark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: rgba(255, 120, 120, 0.95);
}

/* ---- Walkthrough driver: the timeline -----------------------------------
   The plan against the clock. Lane 0 is the stage (conflicts go red), lane 1
   runs alongside. Blocks are positioned in percent so the axis owns scale;
   the drag module works in pixels and converts at release. */

.wtd-timeline {
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
}

.wtd-tl-controls { display: flex; align-items: center; gap: 8px; }

.wtd-tl-ruler {
    position: relative;
    height: 18px;
    margin: 10px 0 2px 84px;
    border-bottom: 1px solid var(--card-border);
}

.wtd-tl-tick {
    position: absolute;
    transform: translateX(-50%);
    font-size: 10px;
    opacity: 0.6;
}

.wtd-tl-lanerow {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 8px;
}

.wtd-tl-lanelabel {
    flex: 0 0 76px;
    font-size: 11px;
    opacity: 0.7;
    align-self: center;
    text-align: right;
}

.wtd-tl-lane {
    position: relative;
    flex: 1 1 auto;
    height: 44px;
    border: 1px dashed var(--card-border);
    border-radius: 6px;
    background:
        repeating-linear-gradient(to right,
            transparent, transparent calc(100% / 12 - 1px),
            var(--card-border) calc(100% / 12 - 1px), var(--card-border) calc(100% / 12));
}

.wtd-tl-block {
    position: absolute;
    top: 4px;
    bottom: 4px;
    min-width: 14px;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    background-color: rgba(38, 166, 154, 0.22);
    display: flex;
    align-items: center;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.wtd-tl-block.is-marker {
    /* Color-coded per the 8/21 sync: a Lens thing is one color, a person
       talking on camera is another. Amber = a human does this live. */
    border-style: dashed;
    border-color: rgba(255, 193, 7, 0.7);
    background-color: rgba(255, 193, 7, 0.12);
}

.wtd-tl-block.is-selected { box-shadow: 0 0 0 2px var(--accent-color); }

.wtd-tl-block.is-conflict {
    border-color: rgba(220, 70, 70, 0.9);
    background-color: rgba(220, 70, 70, 0.18);
}

.wtd-tl-block.is-dragging { opacity: 0.85; cursor: grabbing; z-index: 3; }

.wtd-tl-blocktitle {
    padding: 0 8px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.wtd-tl-resize {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
}

.wtd-tl-inspector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid var(--card-border);
    border-radius: 6px;
}

.wtd-tl-inspname { font-size: 13px; font-weight: 600; margin-right: 4px; }

.wtd-tl-shelf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

/* ---- Walkthrough driver: the pinned run bar ------------------------------
   The live run's only controls. Fixed to the viewport because the one thing a
   presenter must never scroll for mid-meeting is the stop button — the fold
   is where it went missing (2026-08-21). */

.wtd-runbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    /* Above the app bar and every card, below the rehearsal overlay. */
    z-index: 1300;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(15, 23, 30, 0.92);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.wtd-runbar-step { font-size: 12px; opacity: 0.75; white-space: nowrap; }

.tools-shell.has-runbar { padding-bottom: 84px; }

/* ---- Walkthrough driver: the rehearsal, full screen ----------------------
   A popout, not a band: the rehearsal is a private performance of the whole
   meeting and it gets the whole screen the meeting would. */

.wtd-testoverlay {
    position: fixed;
    /* Not inset:0 (2026-08-27, by request): on dev the Lens shim's banner
       owns the top 40px of the viewport at a z-index nothing beats, and an
       overlay that starts at 0 hides its own head — Back, Next, Drop this
       frame — under the recording bar. The shim publishes its height; in
       prod the variable is unset, resolves to 0, and this IS inset:0. */
    top: var(--delve-shim-height, 0px);
    left: 0;
    right: 0;
    bottom: 0;
    /* Above MudBlazor's app bar (~1100) — a fullscreen rehearsal with the
       portal's toolbar poking through, covering its own Stop button, is not
       fullscreen. */
    z-index: 1400;
    display: flex;
    flex-direction: column;
    background: var(--mud-palette-background, #12181e);
}

.wtd-testoverlay-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-bottom: 1px solid var(--card-border);
    font-size: 13px;
}

.wtd-testoverlay-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    overflow: auto;
}

.wtd-testoverlay-body .wtd-pl-test-panels { flex: 1 1 auto; min-height: 0; }

.wtd-testoverlay-body .wtd-pl-test-img {
    /* Head bar + captions + hint all live inside the viewport too — sizing
       the image to nearly the whole screen clipped its bottom edge off
       (2026-08-21). */
    max-height: calc(100vh - 220px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* ---- Walkthrough driver: comparison pacing ------------------------------
   The beat strip: each column is one press of Next — left frame over right
   frame. Authored by appending (both / left only / right only); a column's
   ✕ removes that beat. */

.wtd-pacing { margin: 6px 0 10px; }

.wtd-pacing-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.wtd-pacing-beat {
    position: relative;
    flex: 0 0 auto;
    width: 86px;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    overflow: hidden;
    background-color: #000;
}

.wtd-pacing-beat img {
    width: 100%;
    height: 32px;
    object-fit: cover;
    display: block;
    opacity: 0.85;
}

.wtd-pacing-beat img + img { border-top: 1px solid var(--card-border); }

.wtd-pacing-beat .wtd-film-cut { opacity: 0; }
.wtd-pacing-beat:hover .wtd-film-cut { opacity: 1; }

.wtd-pacing-n {
    position: absolute;
    left: 2px;
    bottom: 2px;
    padding: 0 4px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 10px;
}

.wtd-pacing-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

/* ---- Walkthrough driver: the frame review -------------------------------- */

.wtd-review-frame { position: relative; text-align: center; }

.wtd-review-frame.is-cut img { opacity: 0.3; }

.wtd-review-cutband {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(180, 40, 40, 0.85);
    color: #fff;
    font-size: 14px;
}

/* ---- Walkthrough driver: the segment studio ------------------------------
   One step, played alone: the stage above, the film below, every slide
   wearing its cue — the press of Next it arrives on. */

.wtd-studio-stage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px 0;
}

.wtd-studio-panel {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    /* The event editor made a panel taller than the stage the ordinary case,
       and a centered flex child taller than its container overflows BOTH ways
       — up over the studio header, where it ate the Save button's clicks
       (found by Lens, 2026-09-01). Capped and scrolled instead, both modes. */
    max-height: 100%;
    overflow: auto;
}

.wtd-studio-panel img {
    max-width: 100%;
    max-height: calc(100vh - 320px);
    object-fit: contain;
    border: 1px solid var(--card-border);
    border-radius: 6px;
}

.wtd-studio-strips {
    flex: 0 0 auto;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--card-border);
}

.wtd-studio-striprow {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.wtd-studio-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 14px 2px 2px;   /* headroom for the cue badges */
}

.wtd-studio-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 86px;
    height: 54px;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    background-color: #000;
    cursor: pointer;
}

.wtd-studio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.75;
    border-radius: 3px;
}

.wtd-studio-thumb:hover img { opacity: 1; }

.wtd-studio-thumb.is-active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.wtd-studio-thumb.is-active img { opacity: 1; }

.wtd-studio-thumb.is-selected { outline: 2px solid #fff; outline-offset: 1px; }

/* The cue: which press this slide arrives on. Above the thumb, because it is
   the schedule, not the content. */
.wtd-cue {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 18px;
    text-align: center;
    padding: 0 5px;
    border-radius: 8px;
    background-color: var(--accent-color);
    color: #06211d;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
}

.wtd-studio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 13px;
}

.wtd-browser-close { align-self: center; }

/* Video variants share the still surfaces' geometry. */
.wtd-studio-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.75; }
.wtd-studio-panel video { max-width: 100%; max-height: calc(100vh - 320px); border: 1px solid var(--card-border); border-radius: 6px; }
.wt-video { background: #000; }
.wtd-video-badge { color: var(--accent-color); font-weight: 700; white-space: nowrap; }

/* --- Settings pages (2026-08-27) -------------------------------------------
   The section reuses .manage-shell / .manage-nav / .manage-body for its
   frame. What follows is only what Settings adds: the microphone test meter
   (the green room's meter, same drive from meeting.js's analyser loop) and
   the camera preview tile. */
.settings-meter {
    width: 100%;
    max-width: 420px;
    height: 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.settings-meter-fill {
    width: 0%;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #50aa31, #8fd14f);
    transition: width 0.06s linear;
}

/* Settings → Video → Appearance: a background is chosen by looking at it.
   Each swatch shows what the effect IS — the photographic ones point at the
   very file the pipeline composites, the computed ones paint their own
   colours here — so nobody has to apply one to find out what it looks
   like. */
.bg-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
    max-width: 560px;
}

.bg-swatch {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    /* Fill the cell. Without this a button sizes to its LABEL, so "Dusk" and
       "Charcoal" came out different widths and the grid read as ragged. */
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(226, 232, 240, 0.14);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: center;
    transition: border-color 120ms ease, transform 120ms ease;
}

.bg-swatch:hover { border-color: rgba(42, 157, 143, 0.55); }
.bg-swatch:focus-visible { outline: 2px solid #2a9d8f; outline-offset: 2px; }

/* The chosen one is stated twice — a ring AND the label going bright — because
   a single teal hairline on a dark tile is easy to miss at a glance. */
.bg-swatch.is-chosen {
    border-color: #2a9d8f;
    box-shadow: 0 0 0 1px #2a9d8f inset;
}
.bg-swatch.is-chosen .bg-swatch-name { color: #2a9d8f; }

.bg-swatch-art {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #14171a;
}

.bg-swatch-name {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.2;
}

/* "None" is the camera as it is: no treatment, drawn as an empty frame. */
.bg-swatch-none {
    background-image: linear-gradient(135deg, #1f2733 0%, #2b3542 100%);
    border: 1px dashed rgba(226, 232, 240, 0.22);
}

/* Blur says what it does to the picture rather than naming a colour. */
.bg-swatch-blur {
    background-image: linear-gradient(135deg, #2b3542 0%, #46586b 55%, #2b3542 100%);
    filter: blur(2.5px);
}

/* Aurora's own ribbon colours, straight off background.js's LAYERS. */
.bg-swatch-aurora {
    background-image:
        radial-gradient(120% 80% at 25% 75%, rgba(42, 170, 130, 0.95) 0%, rgba(42, 170, 130, 0) 60%),
        radial-gradient(110% 75% at 70% 70%, rgba(128, 90, 213, 0.85) 0%, rgba(128, 90, 213, 0) 62%),
        radial-gradient(90% 60% at 50% 85%, rgba(60, 195, 115, 0.55) 0%, rgba(60, 195, 115, 0) 65%),
        linear-gradient(180deg, #0f1419 0%, #131a22 100%);
}

/* Anything with an image behind it, including an uploaded one. */
.bg-swatch-photo { background-color: #0f1419; }

/* A cell so the remove button can sit ON the tile without the tile's own
   button swallowing the click — nesting a button inside a button is invalid
   and Blazor would route the press to the wrong handler. */
.bg-swatch-cell { position: relative; display: flex; }

.bg-swatch-cell .bg-swatch-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(15, 20, 25, 0.72);
    opacity: 0;
    transition: opacity 120ms ease;
}

/* Revealed on hover or keyboard focus. Hidden at rest because the grid is for
   choosing, not for tidying: a row of × marks reads as a list of mistakes. */
.bg-swatch-cell:hover .bg-swatch-remove,
.bg-swatch-cell:focus-within .bg-swatch-remove { opacity: 1; }

.bg-swatch-add { border-style: dashed; }
.bg-swatch-addart {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background-image: linear-gradient(135deg, #1a212b 0%, #232c38 100%);
}

.settings-camera-preview {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #0b1220;
    overflow: hidden;
}

/* Why the preview is dark, said ON the preview with the way out beside it
   (2026-09-29) — a toast that has gone by the time anyone reads it was the
   "brown bar" nobody could act on. */
.settings-camera-problem {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    background: rgba(11, 18, 32, 0.92);
}

.settings-camera-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Your own tile can step aside in a 1:1 (meeting.js syncSelfTileVisibility). */
.meeting-tile.tile-self-hidden { display: none; }

/* Roster rows wear the person's face (Settings → Profile photo, or initials). */
.meeting-roster-avatar { flex: 0 0 auto; width: 28px !important; height: 28px !important; font-size: 0.75rem !important; }

/* The camera-off tile's photo (Settings → Profile). Sized like the initials
   disc it replaces; the disc stays in the DOM underneath as the fallback and
   is hidden only while a photo is actually present. */
.meeting-tile-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #454c57;
}
.meeting-tile-avatar:has(.meeting-tile-photo) .meeting-tile-initials { display: none; }
.meeting-grid.is-presenting .meeting-strip .meeting-tile-photo { width: 44px; height: 44px; }

/* The face that opens a sender's group, in the message list's gutter (photo or
   initials). Sized to that column — see .chat-gutter — rather than to the line
   of text it used to sit inside. */
.chat-avatar { width: 32px !important; height: 32px !important; font-size: 0.8rem !important; }

/* ---- Walkthrough driver: the cutting room (2026-08-27) -------------------
   A recording's editor: the private player, a scrubber that draws the edit
   (cuts hatched red, speed-ups amber), the in/out marks, and the list. */
.wtd-cutroom { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px; }
.wtd-cutroom-video {
    width: 100%;
    max-height: 62vh;
    background: #000;
    border-radius: 8px;
    object-fit: contain;
}
.wtd-cut-scrub {
    position: relative;
    height: 28px;
    border-radius: 6px;
    background: #1c2530;
    border: 1px solid var(--card-border);
    cursor: pointer;
    overflow: hidden;
    user-select: none;
}
.wtd-cut-span {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
    overflow: hidden;
    white-space: nowrap;
}
.wtd-cut-span.is-cut {
    background: repeating-linear-gradient(135deg, rgba(220, 60, 60, 0.55) 0 6px, rgba(220, 60, 60, 0.25) 6px 12px);
    color: #ffd9d9;
}
.wtd-cut-span.is-rate { background: rgba(240, 170, 40, 0.45); color: #fff1cc; }
.wtd-cut-selection { position: absolute; top: 0; bottom: 0; background: rgba(120, 180, 255, 0.22); pointer-events: none; }
.wtd-cut-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: #8fc1ff; pointer-events: none; }
.wtd-cut-mark.is-in::after, .wtd-cut-mark.is-out::after {
    content: ''; position: absolute; top: 0; width: 8px; height: 8px; background: #8fc1ff;
}
.wtd-cut-mark.is-in::after { left: 0; }
.wtd-cut-mark.is-out::after { right: 0; }
.wtd-cut-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; pointer-events: none; box-shadow: 0 0 4px rgba(0,0,0,0.6); }
.wtd-cut-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wtd-cut-gap { flex: 0 0 16px; }
.wtd-cut-marks { font-variant-numeric: tabular-nums; opacity: 0.8; font-size: 13px; margin: 0 6px; }
.wtd-cut-list { display: flex; flex-direction: column; gap: 4px; max-height: 20vh; overflow: auto; }
.wtd-cut-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.wtd-cut-row-when { font-variant-numeric: tabular-nums; }
.wtd-cut-chip { padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.wtd-cut-chip.is-cut { background: rgba(220, 60, 60, 0.35); color: #ffd9d9; }
.wtd-cut-chip.is-rate { background: rgba(240, 170, 40, 0.35); color: #fff1cc; }
.wtd-medium-switch { font-weight: 600; }

/* ---- The event editor (2026-09-01; rebuilt 2026-10-14) --------------------
   A video is crafted by reading its events: each row is one step said in a
   sentence, its filmed → played length, and one speed control. The wait after
   a step is folded into its row. Finer controls live in the selected step's
   panel, so a row never gives its words up to make room for inputs. */
.wtd-events { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--card-border); padding-top: 8px; min-width: 0; text-align: left; }
.wtd-event-inspector, .wtd-cut-controls { text-align: left; }
.wtd-events-head { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.wtd-events-title { font-weight: 700; font-size: 13px; letter-spacing: 0.03em; }
/* The whole-recording rules, on their own line so switching one on never
   reflows the head above it. */
.wtd-events-policies { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 30px; }
.wtd-policy-num { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; opacity: 0.85; }
.wtd-events-list { display: flex; flex-direction: column; gap: 2px; max-height: 30vh; overflow: auto; }

.wtd-event-row {
    border-radius: 6px;
    border: 1px solid transparent;
    padding: 2px 4px;
    cursor: pointer;
}
.wtd-event-row:hover { background: rgba(255, 255, 255, 0.04); }
.wtd-event-row.is-selected { border-color: var(--accent-color); background: rgba(80, 200, 180, 0.08); }
.wtd-event-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-height: 28px; }
.wtd-event-n { width: 24px; flex: none; text-align: right; opacity: 0.5; font-variant-numeric: tabular-nums; }
.wtd-event-at {
    flex: none; width: 50px;
    background: none; border: none; padding: 0; cursor: pointer; text-align: left;
    color: var(--accent-color); font-variant-numeric: tabular-nums; font-size: 12.5px;
}
.wtd-event-what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtd-event-dur { flex: none; min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; opacity: 0.65; font-size: 12px; }
.wtd-event-dur s { opacity: 0.55; margin-right: 3px; }
.wtd-event-dur.is-changed { opacity: 1; color: #f0c060; }
.wtd-event-dur.is-cut { opacity: 1; color: #e48a8a; }
.wtd-event-row.is-edited .wtd-event-what { color: #fff; }

/* The one speed control: a tight segmented strip, lit where the step is. */
.wtd-speed { display: inline-flex; align-items: center; flex: none; gap: 0; }
.wtd-speed-opt {
    background: transparent;
    color: inherit;
    border: 1px solid var(--card-border);
    margin-left: -1px;
    padding: 2px 7px;
    font-size: 11.5px;
    line-height: 18px;
    cursor: pointer;
    opacity: 0.75;
}
.wtd-speed-opt:first-child { border-radius: 10px 0 0 10px; margin-left: 0; }
.wtd-speed-opt:last-of-type { border-radius: 0 10px 10px 0; }
.wtd-speed-opt:only-of-type { border-radius: 10px; }
.wtd-speed-opt:hover { opacity: 1; background: rgba(255, 255, 255, 0.06); }
.wtd-speed-opt.is-on { opacity: 1; background: rgba(240, 170, 40, 0.35); border-color: rgba(240, 170, 40, 0.6); color: #fff1cc; position: relative; }
.wtd-speed-opt.is-cutopt.is-on { background: rgba(220, 60, 60, 0.4); border-color: rgba(220, 60, 60, 0.7); color: #ffd9d9; }
/* "As filmed" lit is the resting state, not an edit — quiet, so the amber and
   red of real edits are what the eye finds scanning down the log. */
.wtd-speed-opt.is-asfilmed.is-on { background: rgba(255, 255, 255, 0.10); border-color: var(--card-border); color: inherit; opacity: 0.9; }
.wtd-speed-custom { margin-left: 6px; font-size: 11.5px; padding: 1px 7px; border-radius: 10px; background: rgba(240, 170, 40, 0.35); color: #fff1cc; }
.wtd-speed-custom.is-mixed { background: rgba(255, 255, 255, 0.08); color: inherit; opacity: 0.8; }
/* Shift-click picks a range; the browser must not also select the row text. */
.wtd-event-row, .wtd-track-block, .wtd-result-block { user-select: none; }

/* The wait folded into a step's row — or standing alone before the first step. */
.wtd-event-idle { display: flex; align-items: center; gap: 8px; font-size: 12px; padding-left: 32px; min-height: 24px; opacity: 0.7; }
.wtd-event-idle.is-active { opacity: 1; }
.wtd-event-idle.is-cut .wtd-idle-what { text-decoration: line-through; text-decoration-color: rgba(228, 138, 138, 0.7); }
.wtd-event-idle .wtd-event-at { width: 50px; }
.wtd-idle-mark { opacity: 0.5; width: 10px; }
.wtd-idle-what { flex: 1; min-width: 0; color: #e0a0a0; }
.wtd-event-idle .wtd-speed-opt { border-radius: 10px; margin-left: 0; }
.wtd-event-row.is-orphan { cursor: default; }
.wtd-event-row.is-orphan .wtd-event-idle { padding-left: 0; }
.wtd-event-row.is-time .wtd-event-n,
.wtd-event-row.is-time .wtd-event-what { color: #e0b070; }

/* The selected step's panel: the controls the row has no room for. */
.wtd-event-inspector {
    display: flex; flex-direction: column; gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    background: rgba(80, 200, 180, 0.05);
}
.wtd-inspect-head { display: flex; align-items: center; gap: 8px; }
.wtd-inspect-title { font-weight: 600; font-size: 13.5px; }
.wtd-inspect-detail { font-size: 11.5px; opacity: 0.6; word-break: break-word; }
.wtd-inspect-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wtd-inspect-label { font-size: 12px; opacity: 0.75; }
.wtd-event-num { width: 74px; flex: none; }
.wtd-event-num .mud-input { font-size: 12.5px; }
.wtd-event-note .mud-input { font-size: 12.5px; }

/* The event track (above the scrubber) and the result (below it), 2026-10-14.
   One palette for a step everywhere: slate as filmed, amber faster, blue
   slower, red cut — the same reading as the row's filmed → plays. */
.wtd-cut-track, .wtd-result-bar {
    position: relative;
    height: 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}
.wtd-track-block, .wtd-result-block {
    position: absolute;
    top: 2px;
    bottom: 2px;
    border-radius: 2px;
    background: rgba(140, 165, 195, 0.38);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.55);
    cursor: pointer;
}
.wtd-track-block:hover, .wtd-result-block:hover { filter: brightness(1.35); }
.wtd-track-block.is-faster, .wtd-result-block.is-faster { background: rgba(240, 170, 40, 0.62); }
.wtd-track-block.is-slower, .wtd-result-block.is-slower { background: rgba(110, 160, 240, 0.62); }
.wtd-track-block.is-cut {
    background: repeating-linear-gradient(135deg, rgba(220, 60, 60, 0.55) 0 4px, rgba(220, 60, 60, 0.2) 4px 8px);
}
.wtd-track-block.is-active, .wtd-result-block.is-active { box-shadow: inset 0 -3px 0 #fff; }
.wtd-track-block.is-selected, .wtd-result-block.is-selected {
    outline: 2px solid var(--accent-color);
    outline-offset: -1px;
    z-index: 2;
}
/* A measured wait: a thin bar along the bottom of its step, red when cut. */
.wtd-track-wait {
    position: absolute;
    bottom: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 1;
}
.wtd-track-wait.is-cut { background: #e05555; }
.wtd-cut-result { display: flex; flex-direction: column; gap: 3px; }
.wtd-result-caption { display: flex; align-items: baseline; gap: 6px; font-size: 12px; font-variant-numeric: tabular-nums; opacity: 0.85; }
.wtd-result-caption b { font-size: 13px; }
.wtd-result-of { opacity: 0.75; }
.wtd-result-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; pointer-events: none; box-shadow: 0 0 4px rgba(0,0,0,0.6); z-index: 3; }

/* The editor's parts are fragments (track, marks, events) drawn under a film
   or once in the shared editor; their wrapper must not exist for layout, so
   the pop-out grid still places each part by its own class. */
.wtd-frag { display: contents; }

/* Before and after, one editor (2026-10-14): both films pinned side by side
   on top — they never scroll away while you edit — and the shared editor
   filling the rest: the event log scrolling on its own, the selected step's
   panel beside it rather than under it. */
/* Before and after (2026-10-15 redesign, Cormac: "the two videos next to each
   other playing, and on the side there is a bar showing the events … screen
   space is very limited and it needs to be maximized"). Films side by side,
   each with ONE slim timeline; one transport under both; the steps down the
   right, full height, scrolling on their own. */
.wtd-studio-stage.is-shared {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 390px;
    /* Films, then their transport right under them; whatever height is left
       over sits below, never between a film and its controls. */
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 6px 10px;
    padding: 8px 10px 6px;
    align-items: stretch;
    overflow: hidden;
}
.wtd-studio-stage.is-shared > .wtd-studio-panel {
    grid-row: 1; max-height: none; overflow: hidden;
    display: flex; flex-direction: column; gap: 4px; min-height: 0;
}
.wtd-studio-stage.is-shared > .wtd-studio-panel > moment-replay,
.wtd-studio-stage.is-shared > .wtd-studio-panel > video { max-height: calc(100vh - 250px); flex: 0 1 auto; }
.wtd-studio-stage.is-shared .wtd-studio-sidehead { margin-bottom: 0; gap: 6px; }
.wtd-studio-stage.is-shared .wtd-studio-caption { max-width: 150px; }
.wtd-studio-stage.is-shared .wtd-studio-cutroom { gap: 3px; padding: 0; }
.wtd-studio-stage.is-shared .wtd-cut-scrub { height: 22px; }
.wtd-side-time { display: flex; gap: 10px; justify-content: space-between; font-size: 11.5px; opacity: 0.75; font-variant-numeric: tabular-nums; }
.wtd-studio-panel.is-editing > moment-replay,
.wtd-studio-panel.is-editing > video { box-shadow: 0 0 0 2px var(--accent-color); }
.wtd-shared-transport {
    grid-column: 1 / 3; grid-row: 2;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    border-top: 1px solid var(--card-border); padding-top: 6px;
}
.wtd-shared-editor {
    grid-column: 3; grid-row: 1 / 4;
    min-height: 0; display: flex; flex-direction: column;
    border-left: 1px solid var(--card-border); padding-left: 10px;
    text-align: left;
}

/* The steps panel: a head, the policies, then the list taking the rest. */
.wtd-steps { display: flex; flex-direction: column; gap: 6px; min-height: 0; height: 100%; }
.wtd-steps-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wtd-steps-count { font-size: 11.5px; opacity: 0.7; }
.wtd-steps-policies { display: flex; gap: 6px; flex-wrap: wrap; }
.tools-chip.is-danger { color: #e48a8a; }
.wtd-steps-list { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 2px; }
.wtd-sstep { padding: 3px 6px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; }
.wtd-sstep:hover { background: rgba(255, 255, 255, 0.04); }
.wtd-sstep.is-active { background: rgba(217, 180, 95, 0.12); }
.wtd-sstep.is-selected { border-color: var(--accent-color); }
.wtd-sstep.is-noise { opacity: 0.6; }
.wtd-step-what { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.wtd-step-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtd-step-twin { flex: none; font-size: 10.5px; padding: 0 5px; border-radius: 8px; background: rgba(80, 200, 180, 0.16); color: #9fe3d6; }
.wtd-step-twin.is-alone { background: transparent; color: inherit; opacity: 0.55; border: 1px dashed var(--card-border); }
.wtd-step-line, .wtd-step-part { display: flex; align-items: center; gap: 6px; font-size: 11.5px; min-height: 22px; }
.wtd-step-part { padding-left: 14px; border-left: 2px solid rgba(240, 170, 40, 0.5); margin-left: 4px; }
.wtd-step-at { width: 46px; flex: none; color: var(--accent-color); font-variant-numeric: tabular-nums; cursor: pointer; }
.wtd-step-dur { flex: 1; min-width: 0; opacity: 0.7; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtd-step-dur.is-changed { opacity: 1; color: #f0c060; }
.wtd-step-dur.is-cut { opacity: 1; color: #e48a8a; }
.wtd-step-speed { display: inline-flex; flex: none; }
.wtd-step-speed button {
    background: transparent; color: inherit; border: 1px solid var(--card-border); margin-left: -1px;
    padding: 0 5px; font-size: 10.5px; line-height: 17px; cursor: pointer; opacity: 0.75;
}
.wtd-step-speed button:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.wtd-step-speed button:last-child { border-radius: 0 8px 8px 0; }
.wtd-step-speed button:hover { opacity: 1; background: rgba(255, 255, 255, 0.06); }
.wtd-step-speed button.is-on { opacity: 1; background: rgba(240, 170, 40, 0.35); border-color: rgba(240, 170, 40, 0.6); color: #fff1cc; }
/* ×1 lit is just "as filmed" — quiet, so amber means a change was made. */
.wtd-step-speed button:nth-child(2).is-on { background: rgba(255, 255, 255, 0.10); border-color: var(--card-border); color: inherit; }
.wtd-step-speed button:first-child.is-on { background: rgba(220, 60, 60, 0.4); border-color: rgba(220, 60, 60, 0.7); color: #ffd9d9; }
.wtd-step-split, .wtd-step-join {
    flex: none; background: transparent; color: inherit; border: 1px solid var(--card-border);
    border-radius: 8px; padding: 0 6px; font-size: 11px; line-height: 17px; cursor: pointer; opacity: 0.75;
}
.wtd-step-split:hover, .wtd-step-join:hover { opacity: 1; }

/* The steps, drawn inside the film's one timeline bar. */
.wtd-scrub-step {
    position: absolute; top: 3px; bottom: 3px;
    background: rgba(255, 255, 255, 0.10);
    border-left: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 2px; pointer-events: none;
}
.wtd-scrub-step.is-noise { background: rgba(255, 255, 255, 0.04); }
.wtd-scrub-step.is-selected { background: rgba(80, 200, 180, 0.35); }

/* A step's twin on the other side: how long it plays there. Teal when edits
   mirror, grey when mirroring is off, a quiet "only Before" when it has none. */
.wtd-twin {
    flex: none;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 9px;
    font-variant-numeric: tabular-nums;
    background: rgba(80, 200, 180, 0.14);
    color: #9fe3d6;
    white-space: nowrap;
}
.wtd-twin.is-unmirrored { background: rgba(255, 255, 255, 0.06); color: inherit; opacity: 0.7; }
.wtd-twin.is-alone { background: transparent; border: 1px dashed var(--card-border); color: inherit; opacity: 0.6; }

/* "Mark a stretch": the hand's fallback when events exist — one quiet row. */
.wtd-cut-marksrow.is-quiet { opacity: 0.85; }
.wtd-cut-runs { font-size: 13px; font-variant-numeric: tabular-nums; opacity: 0.85; margin-right: 6px; }

/* The pop-out (2026-09-01): one side takes the whole studio — film beside the
   event log, the selected step's panel under the transport. */
.wtd-studio-panel.is-popout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    /* The transport and the scrubber sit UNDER the film (2026-09-02, by
       request: "it feels weird that they are to the side"); the event log
       takes the right column. The cutting room's box dissolves (display:
       contents) so its rows can be placed here. */
    grid-template-areas:
        "head head"
        "film events"
        "scrub events"
        "transport events"
        "marks events"
        "list events";
    grid-template-rows: auto auto auto auto auto 1fr;
    gap: 8px 14px;
    align-items: start;
    width: 100%;
    /* Taller than the stage is the normal case (the full log is long), and the
       stage centers its children — an overgrown centered child overflows BOTH
       ways and sat on top of the studio header, where it swallowed the Save
       button's clicks (found by Lens, 2026-09-01). The panel scrolls instead. */
    max-height: 100%;
    overflow: auto;
}
.wtd-studio-stage:has(.is-popout) { align-items: stretch; }
.wtd-studio-panel.is-popout .wtd-studio-sidehead { grid-area: head; }
.wtd-studio-panel.is-popout > video, .wtd-studio-panel.is-popout > moment-replay, .wtd-studio-panel.is-popout > img { grid-area: film; }
.wtd-studio-panel.is-popout .wtd-cutroom { display: contents; }
.wtd-studio-panel.is-popout .wtd-cut-scrub { grid-area: scrub; }
.wtd-studio-panel.is-popout .wtd-cut-transport { grid-area: transport; }
.wtd-studio-panel.is-popout .wtd-cut-marksrow { grid-area: marks; }
.wtd-studio-panel.is-popout .wtd-events { grid-area: events; align-self: stretch; border-top: none; padding-top: 0; }
.wtd-studio-panel.is-popout .wtd-cut-list,
.wtd-studio-panel.is-popout .wtd-event-inspector { grid-area: list; }
.wtd-studio-panel.is-popout .wtd-cut-list { max-height: 26vh; }
/* Two sides at once: each film gives up height so its event log has room to
   be read and edited; pop a side out for the big picture. */
.wtd-studio-panel:not(.is-popout) > moment-replay { max-height: 34vh; }
.wtd-studio-panel:not(.is-popout) > video { max-height: 34vh; }
.wtd-studio-panel:not(.is-popout) .wtd-events-list { max-height: 34vh; }
.wtd-studio-panel.is-popout video { max-height: 62vh; }
/* The popped-out film leaves the step's panel room below it. */
.wtd-studio-panel.is-popout > moment-replay { max-height: 58vh; }
.wtd-studio-panel.is-popout .wtd-events-list { max-height: calc(100vh - 260px); }

/* ---- Walkthrough driver: the studio as the editor (2026-08-27) ----------- */
.wtd-studio-title { min-width: 220px; max-width: 420px; }
.wtd-studio-title .mud-input { font-weight: 600; }
.wtd-studio-press { font-size: 12px; opacity: 0.7; white-space: nowrap; }
.wtd-studio-sidehead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.wtd-studio-caption { max-width: 220px; }
.wtd-shape-chips { display: inline-flex; gap: 4px; }
.wtd-shape-chips .tools-chip[disabled] { opacity: 0.35; cursor: not-allowed; }
.wtd-studio-cutroom { padding: 8px 0 0; gap: 8px; }
.wtd-studio-notes { margin-top: 8px; }
.wtd-pl-test-panel .wtd-shape-chips { margin-bottom: 6px; }

/* ---------------------------------------------------------------------------
   The team board (2026-08-27, one-shot) — see BoardPage. Two faces: the desk
   view inside the page shell, and the monitor face (.board-display) filling
   the viewport with bigger type. Block colours follow the kind, and derived
   or example blocks are drawn hollow so nobody mistakes them for a real one.
   ------------------------------------------------------------------------- */
.board-shell { --board-line: rgba(255, 255, 255, 0.07); }
.board-display { padding: 28px 36px; min-height: 100vh; background: #0f1418; }
.board-display-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.board-display-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 2rem; }
.board-display-date { color: var(--mud-palette-text-secondary); font-size: 1.1rem; }
.board-display-clock { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 2.6rem; color: var(--accent-color); }

/* WHAT USED TO BE HERE: the day timeline — an hour gutter, hour lines, a red
   now-line and blocks placed and sized by the clock (.board-day, .board-block,
   .board-hour-*, .board-now-line). Deleted 2026-09-04 with the drawing it
   styled: a block's height WAS its duration at 64px an hour, so a half-hour
   meeting was thirty-two pixels, and the monitor face now has to fit a title
   readable from ten feet and three 56px faces inside every meeting. Both faces
   of the board draw the same day columns of cards now — see .board-week.
   The display head above it stays; it is the only chrome the monitor has. */

/* Kinds. Meetings solid; the rest tinted; generated and example blocks hollow. */
.kind-client   { background: #1f8f7a; color: #fff; }
.kind-internal { background: #2a5aa8; color: #fff; }
.kind-focus    { background: #5b4b9c; color: #fff; }
.kind-event    { background: #4a5563; color: #fff; }
.kind-prep     { background: #7a5a1f; color: #fff; }
.kind-away     { background: repeating-linear-gradient(135deg, #3a3f46 0 6px, #2c3036 6px 12px); color: #cfd4da; }
.board-chip.is-derived { background: transparent; border: 1px dashed #c9a24a; color: #e5c76f; }
.board-chip.is-example { opacity: 0.75; border-style: dotted; border-color: rgba(255,255,255,0.5); }

/* Week: a row per person. */
.board-week { display: grid; grid-template-columns: 150px repeat(7, minmax(0, 1fr)); gap: 4px; }
.board-week-corner {}
.board-week-dayhead { text-align: center; font-size: 0.8rem; color: var(--mud-palette-text-secondary); padding-bottom: 4px; }
.board-week-daynum { font-size: 1.2rem; font-weight: 700; color: var(--mud-palette-text-primary); }
.board-week-dayhead.is-today .board-week-daynum { color: var(--accent-color); }
.board-week-person { font-weight: 700; padding: 8px 6px; border-top: 1px solid var(--board-line); }
.board-week-cell { min-height: 84px; padding: 4px; border-top: 1px solid var(--board-line); background: rgba(255,255,255,0.02); border-radius: 4px; display: flex; flex-direction: column; gap: 3px; }
.board-week-cell.is-today { background: rgba(0, 200, 160, 0.06); }
.board-chip { font-size: 0.72rem; padding: 2px 6px; border-radius: 4px; border: 1px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.board-chip-time { opacity: 0.8; margin-right: 3px; }
/* No .board-legend: the board says nothing in sentences any more (2026-09-04,
   by request: "no text at the bottom of the board at all ... colours only,
   nothing to read"). The chips that named the two meeting kinds went with the
   caption — a legend is a thing to read, and the card's own colour is already
   the same green and blue the legend was demonstrating. */
.board-example-switch { margin: 0 4px; }

/* The lobby's join block: the approval notice stacks ABOVE the button and
   gets the card's width, rather than sharing a row with it and wrapping to a
   two-word column (2026-08-27). */
.lobby-join {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.lobby-join-note { text-align: center; max-width: 42ch; }
/* LoadedGate: the space an empty state will occupy, held silently until the
   first read answers. No spinner — see the component. */
.loaded-gate { width: 100%; }

/* ---------------------------------------------------------------------------
   Settings → Profile → "Add a photo": the webcam dialog and the phone-upload
   dialog (2026-08-28, flagged in the walkthrough: "for add a photo i want
   options they should be: upload a file, take a picture(this uses the
   webcam), and upload from phone").

   Preview and still share one box and one size, so pressing "Take picture"
   freezes the picture where it stood instead of resizing the dialog under a
   thumb. The QR square reuses .companion-qr — the phone in a meeting and the
   phone holding a photo are the same camera pointed at the same screen.
--------------------------------------------------------------------------- */
.avatar-cam {
    width: min(320px, 70vw);
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #0f1419;
    line-height: 0;
}

/* Unmirrored, like every self-view now: the live picture is the photo you
   are about to take, the way everyone else will see it. */
.avatar-cam-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-cam img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The typeable fallback under the QR: a URL is long, and a dialog that grows
   a horizontal scrollbar to hold one is worse than a wrapped line. */
.avatar-phone-url {
    word-break: break-all;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* The closing screen — the last thing a client sees of a meeting.
   Centred in an otherwise empty page on purpose: the person reading it has
   finished and is reaching for the close button, so nothing competes with the
   one line telling them they are done. */
.closing-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.closing-screen-head { max-width: 34rem; }

.closing-screen-tick {
    color: var(--mud-palette-success);
    opacity: 0.85;
}

.closing-screen-sub { max-width: 30rem; }

.closing-screen-panels {
    margin-top: 3rem;
    max-width: 62rem;
    text-align: left;
}

.closing-screen-panel { height: 100%; }

/* The editor's preview pane. Constrained so the real screen's full-height
   centring reads as a screen rather than swallowing the page. */
.closing-preview {
    overflow: hidden;
}

.closing-preview .closing-screen {
    min-height: 34rem;
    padding: 2rem 1rem;
}

.markdown-bullet {
    display: flex;
    align-items: flex-start;
    margin: 0.25rem 0;
}

.markdown-bullet-dot {
    flex: 0 0 auto;
    margin-right: 0.6rem;
    line-height: 1.5;
    opacity: 0.7;
}

/* --- The meeting board's people markers ---------------------------------- */

.board-people {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
}

.board-person-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    flex: 0 0 auto;
}

.board-people.is-compact .board-person-dot {
    width: 16px;
    height: 16px;
    font-size: 8px;
}

/* A client meeting with nobody on it is a warning, not an absence of data. */
.board-people-none {
    font-size: 10px;
    font-style: italic;
    opacity: .8;
    color: var(--mud-palette-warning);
}

/* The meetings view drops the person rows, so its grid is equal day columns
   rather than a label column plus seven. HOW MANY is the page's to say, in
   --board-days: the desk draws seven of them twice, the monitor four (see
   BoardPage.DisplayDays — a card that holds a ten-foot title and three 56px
   faces needs about 300px, and four is what a 1920 screen gives it). */
.board-week.is-meetings {
    grid-template-columns: repeat(var(--board-days, 7), minmax(0, 1fr));
}

.board-week-cell.is-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 5rem;
}

.board-chip-meeting {
    display: block;
    cursor: pointer;
}

.board-week-empty {
    opacity: .35;
    font-size: 12px;
    text-align: center;
    padding-top: .5rem;
}

/* --- The calendar's team view -------------------------------------------- */

/* A meeting on the team view: one block, full width unless something actually
   overlaps it, with the dots for who from Delve is on it. */
.cal-team-meeting {
    background: rgba(45, 106, 90, 0.55);
    border: 1px solid rgba(120, 200, 170, 0.35);
    cursor: pointer;
}

/* Time somebody's own calendar has taken. Quieter than a meeting on purpose:
   it is context for scheduling, not a thing to click into. */
.cal-team-busy {
    background: rgba(120, 130, 150, 0.28);
    border: 1px dashed rgba(200, 210, 230, 0.25);
    cursor: default;
}

.cal-team-meeting .board-people,
.cal-team-busy .board-people { margin-top: 2px; }

.cal-key-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    flex: 0 0 auto;
}

/* A short team block: title and dots share a row, the time drops. Without this
   a 45-minute meeting clipped its own attendee dots. */
.cal-block.is-short {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
}

.cal-block.is-short .cal-block-title {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cal-block.is-short .cal-block-time { display: none; }
.cal-block.is-short .board-people { margin-top: 0; flex: 0 0 auto; }

/* --- The calendar on the wall -------------------------------------------- */
/* Read from the back of the room: no chrome, large type, days as columns.
   Nothing here is clickable, because nothing in the room has a mouse. */

.caldisplay {
    min-height: 100vh;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.caldisplay-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.caldisplay-title { font-size: 1.4rem; font-weight: 700; letter-spacing: .02em; }
.caldisplay-range { font-size: 2.1rem; font-weight: 800; line-height: 1.1; }
.caldisplay-clock { font-size: 2.1rem; font-weight: 800; opacity: .85; }

.caldisplay-weeks {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* One row per week, seven equal days. More weeks means shorter rows, which is
   what "show me the month" should cost. */
.caldisplay-week {
    flex: 1 1 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .5rem;
    min-height: 0;
}

.caldisplay-day {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--board-line, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    padding: .4rem .5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.caldisplay-day.is-today {
    border-color: var(--mud-palette-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* An empty day recedes rather than shouting its emptiness. */
.caldisplay-day.is-empty { opacity: .45; }

.caldisplay-dayhead {
    display: flex;
    align-items: baseline;
    gap: .4rem;
}

.caldisplay-dayname { font-size: .85rem; text-transform: uppercase; opacity: .7; }
.caldisplay-daynum { font-size: 1.3rem; font-weight: 700; }

.caldisplay-item {
    border-radius: 6px;
    padding: .3rem .45rem;
    font-size: .95rem;
    line-height: 1.25;
}

.caldisplay-item.is-meeting {
    background: rgba(45, 106, 90, 0.55);
    border: 1px solid rgba(120, 200, 170, 0.35);
}

.caldisplay-item.is-busy {
    background: rgba(120, 130, 150, 0.22);
    border: 1px dashed rgba(200, 210, 230, 0.22);
}

.caldisplay-time { font-size: .8rem; opacity: .8; }
.caldisplay-name { font-weight: 600; }

/* ---------------------------------------------------------------------------
   The comparison viewer (2026-08-28) — a list of issues, two panes each. The
   panes are deliberately equal and side by side: the whole claim of the page is
   "this, then that", and a layout that makes one bigger argues for it.
   ------------------------------------------------------------------------- */
.cmp-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.cmp-list { max-height: 78vh; overflow-y: auto; }
.cmp-row { padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.cmp-row:hover { background: rgba(255, 255, 255, 0.04); }
.cmp-row.is-on { background: rgba(0, 200, 160, 0.10); }
.cmp-row-title { font-weight: 600; font-size: 0.9rem; }
.cmp-row-sub { font-size: 0.75rem; color: var(--mud-palette-text-secondary); }
.cmp-group { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mud-palette-text-secondary); padding: 10px 10px 4px; }
.cmp-main { min-width: 0; }
.cmp-issues { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.cmp-side { background: rgba(255, 255, 255, 0.02); border-radius: 8px; padding: 10px; min-width: 0; }
.cmp-side-head { font-weight: 700; margin-bottom: 6px; }
.cmp-side-meta { font-weight: 400; font-size: 0.8rem; color: var(--mud-palette-text-secondary); }
.cmp-video { width: 100%; max-height: 46vh; background: #000; border-radius: 6px; display: block; }
/* The replay is a live DOM at the tester's own viewport, so it is scaled to fit
   rather than resized — resizing would re-lay-out their page and stop being
   what they saw. */
.cmp-replay { width: 100%; height: 46vh; max-height: 46vh; background: #0b0f12; border-radius: 6px; overflow: hidden; position: relative; }
.cmp-replay .replayer-wrapper { transform-origin: top left; }
.cmp-missing { padding: 24px; text-align: center; color: var(--mud-palette-text-secondary); font-size: 0.85rem; }
.cmp-controls { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.cmp-ctl-label { font-size: 0.75rem; color: var(--mud-palette-text-secondary); margin: 0 2px 0 8px; }
.cmp-controls .mud-button-root { min-width: 44px; padding: 2px 8px; }
.cmp-save { display: flex; gap: 6px; margin-top: 8px; }
.cmp-adjusted { margin-top: 8px; font-size: 0.75rem; color: var(--mud-palette-text-secondary); }

/* A client's dot: the same initials and the same colour, worn as an outline
   rather than a fill, so one glance separates our side from theirs without a
   legend to read. */
.board-person-dot.is-client {
    background: transparent;
    border: 1.5px solid currentColor;
    font-weight: 800;
}

/* What somebody answered, on their dot.

   No answer is drawn exactly as a dot always was: it is the state every
   invitation starts in, and making it look like a problem would put a warning
   on every meeting the moment RSVP shipped. */
.board-person-dot.rsvp-yes {
    box-shadow: 0 0 0 2px rgba(76, 175, 130, 0.85);
}

.board-person-dot.rsvp-maybe { opacity: .55; }

/* Declined: faded and struck, so a full row still shows who was asked while
   making it obvious they are not coming. */
.board-person-dot.rsvp-no {
    opacity: .4;
    text-decoration: line-through;
}


/* ---- moment-replay (2026-09-01): an rrweb stream on the stage ------------
   The element scales rrweb's wrapper to its own width (see moment-replay.js);
   the box just has to be a block with a floor colour and a pointer, since a
   click is play/pause. */
moment-replay { display: block; position: relative; background: #000; cursor: pointer; overflow: hidden; border-radius: 8px; }
moment-replay .moment-replay-host { position: relative; width: 100%; overflow: hidden; }
/* Out of the layout (2026-10-14): the wrapper keeps the recording's full
   width in layout even when scaled down, and in the room's flex panels that
   1912px pushed a before/after's second side off the screen. The host's height
   is set by _fit; its width is the element's. */
moment-replay .replayer-wrapper { position: absolute; left: 0; top: 0; float: none; margin: 0; }
moment-replay .replayer-mouse-tail { display: none; }

/* The meetings page's pinned strip: title, New Meeting and the filters hold at
   the top while the long list scrolls under them (2026-09-01, by request —
   every scope change or jump used to mean scrolling back up). Offset by the app
   bar's 48px like .manage-nav; opaque so the cards slide beneath rather than
   through; z-index above the cards' own chips and menus but below dialogs. */
.meetings-page {
    /* The page is two regions, not a scroll of its own (2026-09-02, by
       request): a bar flush under the app bar, and a list that scrolls
       beneath it. The height is the viewport minus the app bar, so the list
       region — not the window — is what scrolls, and the bar never has
       anything pass through it. */
    /* The dense app bar is three quarters of the MudBlazor variable (64px → 48px);
       reading the variable with a 48px fallback was 16px too tall and left the page
       itself scrolling by exactly that much (2026-09-04). Same expression the chat
       page derives as --chat-appbar. */
    height: calc(100dvh - (var(--mud-appbar-height, 64px) - var(--mud-appbar-height, 64px) / 4));
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.meetings-toolbar {
    flex: 0 0 auto;
    background: var(--mud-palette-appbar-background);
    box-shadow: 0 1px 0 var(--card-border), 0 6px 14px rgba(0, 0, 0, 0.25);
    padding-top: 10px;
    padding-bottom: 2px;
    z-index: 1;
}

.meetings-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    /* A jump lands the section's anchor at the top of THIS region, not
       under the bar. */
    scroll-padding-top: 8px;
}

/* --- Series folders on the meetings list (2026-09-01, by request) ---------
   A series shows as ONE card per section — the meeting you would act on next
   in Upcoming, the one that last ended in Past — and opens onto the rest.
   The other occurrences are ordinary cards, moved in behind a rule: the indent
   is the whole of "these belong to the card above", so no child card has to
   repeat the series marker to say what it is part of. The rule is the lines
   colour rather than the primary, because it is punctuation, not a highlight. */
.meeting-series-child {
    margin-left: 8px;
    padding-left: 18px;
    border-left: 2px solid var(--mud-palette-lines-default);
}

/* The door sits on its own line under the header, pulled back so its label
   lines up with the meeting's name rather than with the chips' inset — a text
   button's own padding would otherwise make it read as indented from the card. */
.meeting-series-toggle { margin-left: -8px; margin-top: 2px; }

/* ---------------------------------------------------------------------------
   The green room's loading view (2026-09-01, by request: "the green room looks
   weird when it's loading so let's have it get a loading screen or something").

   The weirdness was not slowness, it was a control panel drawn around missing
   data: for the whole acquire the card showed two empty selects, greyed test
   buttons, a black preview box and a "this browser plays through the system's
   default speaker" line that disappeared the moment the speaker list arrived —
   and the card resized under the reader when it did.

   So the panel is drawn from the first paint, exactly as it will finally be,
   and held invisible while it fills. That is the whole trick: the thing being
   waited for is also the thing reserving the space, so the card cannot resize
   when the wait ends and there is no measurement here to go stale. The two
   layers share one grid cell; the loading view sits over the panel rather than
   replacing it, which is why the card is its final height from the first frame.

   opacity rather than display:none or visibility:hidden on purpose — the
   preview <video> lives in this panel, and a browser that stops compositing it
   also stops firing requestVideoFrameCallback, which is precisely the signal
   the page waits on to decide the camera is ready. Hiding it would make the
   wait it is hiding take longer. See MeetingRoomPage's .lobby-green markup.
--------------------------------------------------------------------------- */
.lobby-green { display: grid; }

.lobby-green > * { grid-area: 1 / 1; min-width: 0; }

/* pointer-events beside the inert attribute in the markup: inert covers focus,
   clicks and assistive tech in current browsers, this covers the ones where it
   is not implemented yet. Neither is decoration — an invisible Join-adjacent
   panel that still accepts clicks is worse than a visible dead one. */
.lobby-green.is-warming > .lobby-green-panel {
    opacity: 0;
    pointer-events: none;
}

.lobby-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
}

/* Dimmer than the sentence above it: one line is what we are doing, the other
   is what to do if the browser interrupts. */
.lobby-loading-note { max-width: 44ch; }

/* The audio check's buttons, centred for the green room only (2026-09-01, by
   request: "the buttons on the green room I would like to be centered"). The
   modifier rides on the panel root so the caption under the buttons — and the
   "system's default speaker" line under that — follow the row rather than
   staying hung on the left edge while it moves. The room's Test microphone
   dialog and Settings → Audio deliberately do not set it: both live in
   left-aligned surroundings, where a centred row is the same mistake mirrored. */
.audio-check.is-centered .audio-check-actions { justify-content: center; }
.audio-check.is-centered .lobby-hint { text-align: center; }

/* --- BEGIN: countdown chip — press and hold to dismiss (2026-09-01) --------
   Added as its own block at the end of the file rather than folded into the
   .waiting-indicator rules above, so the chip's existing look is untouched and
   this can be lifted out whole.

   The gesture is Torque's (SessionManagerModule's project buttons: a timer
   armed on the press, cancelled by the release); the LOOK is new, because
   Torque's hold opens a menu and this one destroys something, so it has to
   show its work while it happens. Two things move together over exactly the
   hold: the chip drains to grey — "this is on its way out" — and a sweep
   fills it left to right, which is the timer made visible.

   Everything here is CSS transition rather than animation on purpose. A
   transition runs when the class arrives and REVERSES INSTANTLY when it
   leaves, which is precisely the cancel semantics: let go early and the chip
   is simply itself again, with no half-played animation to unwind. */

.waiting-indicator-chip {
    /* the sweep's containing block, and the clip that keeps it inside the
       pill's rounded ends */
    position: relative;
    overflow: hidden;
    /* a long press must not select the meeting's name instead */
    user-select: none;
    -webkit-user-select: none;
}

.waiting-indicator-hold {
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left center;
    background: rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

/* Sits under the dot and the text, which are in the normal flow — no z-index
   needed, and none wanted: the sweep is behind the words, so the countdown
   stays readable the whole way across. */
.waiting-indicator-chip > .waiting-indicator-dot,
.waiting-indicator-chip > .waiting-indicator-text {
    position: relative;
}

/* --hold-ms is written on the element by UpcomingMeetingIndicator, so the
   duration has ONE home (its HoldMs const) and the animation cannot drift out
   of step with the timer it is depicting. */
.waiting-indicator-chip.is-dismissing {
    color: #8b939d;
    border-color: rgba(139, 147, 157, 0.5);
    background: rgba(139, 147, 157, 0.14);
    transition:
        color var(--hold-ms, 600ms) linear,
        border-color var(--hold-ms, 600ms) linear,
        background-color var(--hold-ms, 600ms) linear;
}

/* Greying means greying: the urgency dot loses its colour and its pulse with
   the rest of it. A red dot still throbbing inside a chip being put down
   would be the one part still arguing. */
.waiting-indicator-chip.is-dismissing .waiting-indicator-dot {
    background: #8b939d;
    animation: none;
    transition: background var(--hold-ms, 600ms) linear;
}

.waiting-indicator-chip.is-dismissing .waiting-indicator-hold {
    transform: scaleX(1);
    transition: transform var(--hold-ms, 600ms) linear;
}

/* The hover lift is a pointer telling you the chip is pressable; during a hold
   it is already saying something louder. */
.waiting-indicator-chip.is-dismissing:hover {
    background: rgba(139, 147, 157, 0.14);
}
/* --- END: countdown chip — press and hold to dismiss ---------------------- */

/* ---- Event-log indicator (2026-09-02): which decks the event editor can cite */
.wtd-log-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 700; background: rgba(240, 170, 40, 0.22); color: #ffe2a8; white-space: nowrap; }
.wtd-log-badge.is-none { visibility: hidden; }
.wtd-log-badge.is-empty { background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.55); font-weight: 600; }

/* A recording's place in a filmstrip (2026-09-02): a glyph, never an img —
   a stream's URL is JSON, and a film has no still to thumb. */
.wtd-thumb-film { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 40px; background: #0d1216; color: rgba(255,255,255,0.7); font-size: 18px; border-radius: 4px; }

/* --- START: the board's card — a title, a time, a grid of faces ------------
   (2026-09-02 as two sides; rebuilt 2026-09-04, by request: "the board should
   support 3 columns of people per meeting; we don't want text indicating
   people's status — just colours. This is a TV we glance at throughout the
   day", and "the meeting TITLE ... must be readable from ~10 feet on a TV".)

   ONE CARD, DRAWN TWICE. The desk view and the monitor use the same markup and
   the same rules; the monitor face only rescales them (see the .board-display
   block at the end). That is what lets the two faces be trusted to say the same
   thing — the last time they had separate drawings, one of them was still
   showing 20px initials.

   WHAT WENT: the two sides (ours left, theirs right, a hairline between), and
   the status chip under every face. The split cost half the card's width to say
   which side somebody was on and capped each side at one narrow column of
   faces; the name's colour says it now for nothing. The chip said the status in
   words at 0.55rem, which is a sentence nobody standing at the door can read —
   the ring says it in colour instead. */

/* The card is the board's chip with a body. .board-chip is a one-line
   ellipsised chip by design, so the card explicitly takes that back — a title
   that wraps and a grid of faces cannot be nowrap. */
.board-card {
    white-space: normal;
    overflow: hidden;
    padding: 6px 8px;
}

/* THE TITLE IS THE BIGGEST THING ON THE CARD. Two lines, then ellipsis: one
   line truncates "[REDACTED] — quarterly strategy" to something that could be any
   [REDACTED] meeting, and three lets a badly named room push the faces out of the
   cell. Montserrat and 700 because this is a heading now, not a label. */
.board-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* The client under the title, and only when the title does not already contain
   it — see BoardPage.CardSubtitle. Quiet: it is the answer to a question the
   title has usually already answered. */
.board-card-sub {
    font-size: 0.7rem;
    line-height: 1.2;
    opacity: .75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The time is SECOND, not small (2026-09-04, by request: "the meeting TIME on
   each card should be big as well ... just visually second to the title"). Its
   own line under the title, semibold and at full contrast, because "which
   meeting" and "when" are the two things read from the door and the second one
   being a 0.72rem grey prefix was the state this replaced. */
.board-card-when {
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-top: 1px;
    opacity: .95;
}

/* THE MEETING HAPPENING NOW is lit rather than labelled. This is what replaced
   the monitor's red now-line: the line was a fact about the grid, a ring is a
   fact about the card somebody is actually looking at, and it costs no words.

   WHITE, and neither of the two colours a card is already painted in nor any of
   the four the faces on it wear. The accent teal this started as vanished
   against a client card, which is green — and any of the status colours would
   have said something about the meeting in the vocabulary the room reads as
   being about a person. White belongs to nothing else on the board, so "the lit
   one is happening now" is the only thing it can mean. */
.board-chip-meeting.is-live {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

/* THREE COLUMNS OF PEOPLE, wrapping to further rows. A fixed three rather than
   auto-fit: every card in a column then has its faces in the same three places,
   which is what makes a day scannable instead of readable, and a meeting of
   seven wraps to three-three-one rather than reflowing per card width. */
.board-people.is-names {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 4px;
    margin-top: 6px;
}

/* "no one yet" is a sentence, not a grid cell. */
.board-people.is-empty.is-names {
    display: block;
    margin-top: 6px;
}

/* TWO SIDES, ONE CARD (2026-09-04, by request: "there should be separation
   between Delve and clients"). When a meeting has both, the single grid above
   is swapped for a stack of two: each side keeps its own three columns rather
   than sharing one grid, which is what would let a client's face land next to
   a Delve one in the same row with nothing between them. */
.board-people.is-names.has-groups {
    display: flex;
    flex-direction: column;
    margin-top: 6px;
    gap: 0;
}

.board-people-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 4px;
}

/* THE LINE ITSELF, and nothing else — no label, because the name colour
   already says which side is which (see .board-name-row.is-staff /
   .is-client). The card's own muted border colour, so the split reads as
   structure rather than as a new piece of chrome on a surface that otherwise
   carries none. */
.board-people-divider {
    height: 1px;
    margin: 8px 0;
    background: var(--board-line, rgba(255, 255, 255, 0.08));
}

/* One person: the face, and their first name under it. Under rather than
   beside, because a third of a day column is about sixty pixels and a name
   beside a ringed face in sixty pixels is "Cor…". */
.board-name-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.board-name-text {
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* WHICH SIDE, IN COLOUR — the whole of what is left of the card's two columns.
   Delve blue, client green: the same two the board already paints an internal
   and a client meeting with, so the room is not asked to learn a third
   vocabulary, and they ride the NAME rather than a border or a heading so a
   card that is mostly faces gains no chrome and no words. */
.board-name-row.is-staff .board-name-text { color: #b6d2ff; }
.board-name-row.is-client .board-name-text { color: #8ff2da; }

/* Two weeks, stacked. The gap is what separates this week from next at a
   glance; without it the fourteen days read as one long grid. */
.board-fortnight-week + .board-fortnight-week { margin-top: 14px; }

/* ---------------------------------------------------------------------------
   The board fills its box (2026-10-20) — see board-fit.js. The drawing inside
   .board-fit-inner is zoomed as one piece to the largest size that fits; the
   box scrolls only when even the smallest readable size does not.
   --------------------------------------------------------------------------- */
.board-fit { overflow: auto; position: relative; }
/* The board takes the whole width it is given (2026-10-20). Every other page
   stops at 1360px because lines of text past that are hard to read; the board
   is a grid of day columns, and stopping it short only leaves a bare strip down
   the right of a wide screen that the fit could have used. Bottom padding goes
   too — the fit stretches the board to the window's edge itself. */
.page-shell.board-shell { max-width: none; padding-bottom: 0; }
/* A flex column, so the height the fit leaves over goes to the weeks — the
   day cells stretch to the bottom of the box instead of the board stopping
   short of it. */
.board-fit-inner { display: flex; flex-direction: column; }
.board-fit-inner > .board-week { flex: 1 1 auto; grid-template-rows: auto 1fr; }
.board-display { height: 100dvh; min-height: 0; display: flex; flex-direction: column; box-sizing: border-box; }
.board-display .board-fit { flex: 1 1 auto; min-height: 0; }

/* Whose calendar (2026-10-20): Meetings, then the team. Pills, so the one that
   is on reads from across the room as a lit block rather than an underline. */
.board-who { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.board-who-chip {
    font: inherit; font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: var(--mud-palette-text-secondary);
}
.board-who-chip.is-on { background: var(--accent-color); border-color: var(--accent-color); color: #0f1418; font-weight: 700; }
.board-display .board-who { justify-content: flex-end; margin: -6px 0 12px; }
.board-focus-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px 4px; }
.board-focus-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.4rem; }
.board-focus-what { color: var(--mud-palette-text-secondary); font-size: 1.1rem; }

/* A person's appointments: the calendar page's own Outlook blue (.cal-outlook),
   so an Outlook appointment looks the same on every surface; a Moment event in
   grey. Tentative is dashed and Free is faint, as there. */
.board-appt { cursor: default; color: var(--white); }
.board-appt.src-outlook { background: rgba(0, 120, 212, 0.18); border-left: 3px solid #0078d4; }
.board-appt.src-event { background: rgba(255, 255, 255, 0.05); border-left: 3px solid #8a8f98; }
.board-appt.is-tentative { border-left-style: dashed; opacity: .75; }
.board-appt.is-free { opacity: .5; }
.board-allday {
    display: flex; gap: 6px; align-items: baseline; padding: 3px 8px; border-radius: 4px;
    background: rgba(0, 120, 212, 0.28); font-size: 0.8rem; line-height: 1.25; overflow: hidden;
}
.board-allday.src-event { background: rgba(255, 255, 255, 0.08); }
.board-allday-tag { font-weight: 700; text-transform: uppercase; font-size: 0.66rem; letter-spacing: .05em; opacity: .8; flex: none; }
.board-allday-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-display .board-allday { font-size: 1.05rem; }
.board-display .board-allday-tag { font-size: 0.8rem; }
.board-display .board-focus-name { font-size: 2rem; }
.board-display .board-focus-what { font-size: 1.4rem; }

/* Tour mode (2026-10-20): every title on the calendar and every client's name
   blurs; the shape of the fortnight — who is busy when, whose faces are on what
   — stays, which is what makes it worth showing a visitor at all. Staff names
   stay: they are the people standing in the room. */
.board-shell.is-tour .board-card-title,
.board-shell.is-tour .board-card-sub,
.board-shell.is-tour .board-allday-title,
.board-shell.is-tour .board-name-row.is-client .board-name-text { filter: blur(7px); user-select: none; }
/* --- END: the board's card ------------------------------------------------ */

/* --- START: spotlight the speaker (local view) ---------------------------- */
/*
   The spotlight borrows the layout that already exists rather than inventing
   one: the spotlit camera is moved into .meeting-stage, the same region a
   shared screen and a host's pin use, so it inherits the big slot, the short
   filmstrip and every rule already written for them. Nothing here resizes
   anything — the only new paint is the mark below.

   The mark is amber, deliberately not the green speaking ring and not the blue
   pinned ring. Those three say different things and a viewer has to be able to
   tell them apart at a glance: green is "talking right now", blue is "somebody
   decided the room should look at this", amber is "this browser is following
   the conversation and it is currently here". Inset box-shadow like the other
   two, so it reads through the rounded corners and never fights the outlines
   the disconnected and shared-mic states use.
*/
.meeting-tile.tile-spotlit {
    box-shadow: inset 0 0 0 3px #e0a33a;
}

/* Both at once — talking AND holding the spotlight, which is the common case —
   draws the green ring inside the amber one rather than one silently winning.
   Two rings is the honest picture: who is talking and who the view is on are
   separate facts that usually, but not always, agree. */
.meeting-tile.tile-spotlit.is-speaking {
    box-shadow: inset 0 0 0 3px #e0a33a, inset 0 0 0 6px #57c98a;
}

/* A host's pin outranks the spotlight for the stage (see stagedCameraId), so
   it outranks it for the ring too — a tile that is both should say the thing
   the room was told, not the thing this browser worked out. */
.meeting-tile.tile-spotlit.tile-pinned {
    box-shadow: inset 0 0 0 2px #1e6feb;
}

/* --- END: spotlight the speaker (local view) ------------------------------ */

/* --- START: the board's status ring — a face, circled with what they are doing
   (2026-09-02 as the RSVP; drawn from PersonStatusReader and made the ONLY
   status mark 2026-09-04) --------------------------------------------------

   THE RING IS THE STATUS, and now it is all of it. It used to be a small ring
   hung on the side of a dot that already carried a colour, a fill weight and a
   strike-through; then a word sat under it as well. Both of those are gone. The
   board hangs on a television that is glanced at from across a room, and a
   glance carries a colour and nothing else — so the mark is the person's FACE,
   the ring round it is what they are doing about this meeting, and the legend
   is four colours long: green they are here or coming, amber a maybe, red a no,
   grey nobody has heard from them.

   THE CLASSES ARE PersonStatusReader'S OWN (is-inroom, is-joined, is-accepted,
   is-tentative, is-noanswer, is-declined), applied straight from the status
   rather than translated through a ring vocabulary of this stylesheet's
   invention. The reader also decides the order the faces stand in, so what a
   face wears and where it stands cannot come to disagree. */

/* The ring lives on a wrapper, not on the avatar, so its thickness never eats
   into the photo — a face cropped by its own border is a worse photo and a
   thinner ring at the same time. */
.board-face {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 3px solid transparent;
    line-height: 0;
    /* A hairline of the card's own dark under the ring, on every state. The
       card is coloured by purpose — a client meeting is green — and a green
       "coming" ring sitting directly on a green card is the one combination
       where the answer stops being obvious. This lifts the ring off whatever
       it lands on without tinting it. */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

/* MudAvatar's Small is 2rem, which is a roster row's face, not a board card's.
   Set here rather than by passing a Style from the component, because it is a
   fact about this SURFACE and not about the person. */
.board-face .mud-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 11px;
    font-weight: 700;
}

/* IN THE ROOM RIGHT NOW is the loudest thing on the board, because it is the
   only status that is happening rather than promised: a brighter green than the
   palette's, with a soft glow, so a meeting in progress is findable from the
   door without reading a word of the card it is on. */
.board-face.is-inroom {
    border-color: #2bff9e;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 10px rgba(43, 255, 158, 0.55);
}

/* Was here, and is not now. Blue rather than a faded green: "came at 10:02 and
   left" is a fact, not a weaker yes, and fading it would file it next to a
   decline. The one colour outside the four-word legend, and the only one that
   can only ever be true about a meeting that has already started. */
.board-face.is-joined { border-color: #63d3ef; }

/* Coming, maybe, not coming. Straight from the palette, so "yes" is the same
   green here as every other yes in the portal. */
.board-face.is-accepted { border-color: var(--mud-palette-success); }
.board-face.is-tentative { border-color: var(--mud-palette-warning); }
.board-face.is-declined { border-color: var(--mud-palette-error); }

/* NOBODY HAS ANSWERED YET is dashed and grey — visibly unanswered, visibly not
   a refusal. It has to be a real ring rather than no ring at all: a bare face
   would read as "nobody asked them", and the difference between "we are waiting
   on Nina" and "we never invited Nina" is the whole reason the board is looked
   at on a Thursday. */
.board-face.is-noanswer {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.38);
}

/* AND THE PHOTO RECEDES WITH IT (2026-09-04, by request: "a person who has NOT
   answered the invitation should have their profile picture greyed out a bit
   ... so the un-answered faces visibly recede and the answered ones pop").

   The filter is on the AVATAR, not on the wrapper, or it would desaturate the
   ring that is doing the talking. Everybody who has answered keeps their full
   colour, including a decline — they told us, and a board that dims the people
   who replied is punishing the wrong ones. */
.board-face.is-noanswer .mud-avatar {
    filter: grayscale(.8) opacity(.55);
}
/* --- END: the board's status ring ----------------------------------------- */

/* --- START: the control bar stays put ------------------------------------- */
/*
   2026-09-01, by request: "when you share your screen or something is
   spotlighted it moves the button bar at the bottom, or will close something
   if you have it open like the reaction button."

   Two causes, both of them layout. The bar itself is the last row of the room's
   flex column, so it can only be pushed by its own siblings — pinned here so a
   grid, a stage or a notice can never squeeze it. And the buttons INSIDE it
   moved because the two share-only controls (Hide, Keep) were in the flow of
   the centre zone: they appeared when a share started and slid every other
   button sideways, including the React button an open picker was hanging from.

   The fix is to take those two out of the flow entirely. .meeting-controls-center
   keeps its geometry whatever the stage is doing, so nothing under the cursor
   moves and nothing anchored to a button loses its anchor. The one movement the
   bar is still allowed is the deliberate one: pressing Hide while sharing.
*/
.meeting-controls,
.meeting-controls-handle {
    flex: 0 0 auto;
}

/* THE STAFF COCKPIT (2026-11-19, Kyle on 11/16: "eliminate the more button and
   just kind of splay all of those buttons out across the bottom"). The staff
   bar (.is-cockpit — the client's bar never has the class) carries every verb
   More used to hold, so its middle is three times as long as it was.

   Hide and Keep were floated beside the centre zone here (left: 100%) so that
   a share starting could not slide the bar. There is no free space left to
   float into, so on this bar they have fixed seats instead — see the note in
   MeetingRoomPage — and the client's bar always had them in its flow. The
   floating cluster is gone.

   The ends hold still and the middle gives: Mute and video on the left and
   Leave on the right are never squeezed or scrolled, the middle is centred in
   what is left, and if a window is too narrow for it the middle scrolls
   sideways. Leave cannot be pushed off the edge at any width. */
.meeting-controls.is-cockpit .meeting-controls-left,
.meeting-controls.is-cockpit .meeting-controls-right { flex: 0 0 auto; }

.meeting-controls.is-cockpit .meeting-controls-center {
    flex: 1 1 auto;
    min-width: 0;
    gap: 5px;
    padding: 2px 0;                 /* room for the hover lift inside the scroll box */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #4a515c transparent;
    justify-content: flex-start;
    justify-content: safe center;   /* centred until it overflows */
    /* The middle is measured, not the window: what is left between the two
       ends is what decides whether the words fit (see the @container rule). */
    container-type: inline-size;
    container-name: cockpit;
}

.meeting-controls.is-cockpit .meeting-controls-center > *,
.meeting-controls.is-cockpit .meeting-control.is-labelled { flex: 0 0 auto; }
.meeting-controls.is-cockpit .meeting-controls-center .meeting-control.is-labelled { min-width: 50px; padding: 4px 7px; }
.meeting-controls.is-cockpit .meeting-controls-divider { margin: 0 3px; }

/* The cheat sheet is a link wearing the button. */
a.meeting-control.is-labelled { text-decoration: none; box-sizing: border-box; }

/* A seat with nothing to do right now (Keep with nothing shared, Add file
   mid-upload): there, and plainly not live. */
.meeting-control:disabled { opacity: 0.38; cursor: default; }
.meeting-control:disabled:hover { background-color: #343941 !important; transform: none; }

/* The narrow window's copies of the host's bar-end controls: only where the
   bar has hidden the originals (.meeting-bar-roomy, below). */
.meeting-bar-narrow { display: none; }

/* When the middle is too narrow for its words it keeps its seats and drops
   the words — the tooltips carry them — and the two ends keep theirs. Asked of
   the middle itself, so the door control or the "Assistant on" chip taking
   room at the right end is counted without anyone doing sums: every button
   with its label is about 930px (measured 2026-11-19, the dev-only Test
   clients and the after-a-follow-up Invite included). On a 1536px laptop the
   words stay; around 1400px and below they go. */
@container cockpit (max-width: 940px) {
    .meeting-controls.is-cockpit .meeting-controls-center .meeting-control-label { display: none; }
    .meeting-controls.is-cockpit .meeting-controls-center .meeting-control.is-labelled {
        min-width: 0; width: 42px; padding: 4px;
    }
}

/* A window narrower than a laptop's: the host's two bar-end controls shrink
   to their icons so the middle is not left a sliver to scroll in. Their
   tooltips say what they are. */
@media (max-width: 1100px) {
    .meeting-page:not(.is-phone) .meeting-controls.is-cockpit .meeting-bar-roomy .mud-button-root {
        min-width: 0; padding-left: 10px; padding-right: 10px; margin-right: 6px !important;
    }
    .meeting-page:not(.is-phone) .meeting-controls.is-cockpit .meeting-bar-roomy .mud-button-label { font-size: 0; gap: 0; }
    .meeting-page:not(.is-phone) .meeting-controls.is-cockpit .meeting-bar-roomy .mud-button-icon-start { margin: 0; }
    .meeting-page:not(.is-phone) .meeting-controls.is-cockpit .meeting-bar-roomy .mud-button-icon-start .mud-icon-root { font-size: 1.3rem; }
}
/* --- END: the control bar stays put --------------------------------------- */

/* The event the playhead is on (2026-09-02): lit, and kept in view. */
.wtd-event-row.is-active { background: rgba(240, 170, 40, 0.16); box-shadow: inset 3px 0 0 #f0aa28; }
.wtd-event-row.is-active .wtd-event-what { color: #ffe2a8; }

/* --- START: the board's television scale (2026-09-04) ---------------------
   What used to be here: the status chip (.board-status-chip and its mini
   form) — the person's status in a word, a colour and a glyph. Deleted with
   the words themselves: "we don't want text indicating people's status — just
   colours. This is a TV we glance at throughout the day." The colours it
   defined live on in the ring above, which is the same fact in the one channel
   that survives the distance.

   THE MONITOR FACE IS THE SAME CARD, BIGGER. Only sizes here — no rule below
   changes what anything MEANS, or the two faces of the board would be two
   boards. The numbers are the ask: faces at least 56px, first names at least
   1.1rem, a ring of at least 4px, and a title readable from about ten feet. */

.board-display .board-week-dayhead { font-size: 1.15rem; padding-bottom: 8px; }
.board-display .board-week-daynum { font-size: 1.9rem; }

.board-display .board-week-cell {
    min-height: 10rem;
    padding: 8px;
    gap: 10px;
    border-radius: 8px;
}

.board-display .board-week-empty { font-size: 1.1rem; padding-top: 1rem; }

.board-display .board-card {
    padding: 12px 14px;
    border-radius: 10px;
    /* No pointer on the monitor: there is no cursor in front of it, and the
       card being clickable is a convenience for the desk view only. */
    cursor: default;
}

/* ~1.7rem: the size a meeting name is read at from across the room, and two
   lines of it before the ellipsis. */
.board-display .board-card-title {
    font-size: 1.7rem;
    line-height: 1.15;
}

.board-display .board-card-sub { font-size: 1.05rem; opacity: .8; }

/* Second to the title and nowhere near small — the time is the other half of
   what the door asks. */
.board-display .board-card-when {
    font-size: 1.35rem;
    font-weight: 600;
    opacity: 1;
    margin-top: 4px;
}

.board-display .board-people.is-names { gap: 12px 8px; margin-top: 12px; }
.board-display .board-people.is-empty.is-names { margin-top: 10px; }
.board-display .board-people-none { font-size: 1rem; }
.board-display .board-people-group { gap: 12px 8px; }

/* Read from across a room rather than a desk: the line doubles in weight and
   gets more air around it, same as every other mark on this face of the
   board (see .board-display .board-face below). */
.board-display .board-people-divider { height: 2px; margin: 14px 0; }

.board-display .board-name-text { font-size: 1.15rem; line-height: 1.2; }

/* A 4px ring minimum was the ask; 5 is what a 60px face carries without the
   ring reading as a hairline at four metres. */
.board-display .board-face { border-width: 5px; }

.board-display .board-face .mud-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 22px;
}

/* The live card's ring grows with everything else, and gains a halo: two
   pixels of anything is invisible at the distance this face is read from. */
.board-display .board-chip-meeting.is-live {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.92), 0 0 26px rgba(255, 255, 255, 0.28);
}
/* --- END: the board's television scale ------------------------------------ */

/* --- START: the time box (2026-09-29) -------------------------------------
   TimeSelect's quarter-hour list. The box itself is a stock MudTextField; only
   the list is ours, because it is a plain listbox rather than a MudAutocomplete
   now (see TimeSelect.razor for why the autocomplete went). Rows are sized and
   coloured like a dense MudList so the list reads as the same family as every
   other dropdown in the product. The wrapper is the popover's anchor, which is
   why it is positioned. */
.moment-time-select {
    position: relative;
}

.moment-time-options {
    padding: 4px 0;
}

.moment-time-option {
    padding: 6px 16px;
    font-size: 0.875rem;
    line-height: 1.43;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.moment-time-option:hover {
    background-color: var(--mud-palette-action-default-hover);
}

.moment-time-option.selected {
    color: var(--mud-palette-primary);
    background-color: var(--mud-palette-primary-hover);
    font-weight: 500;
}
/* --- END: the time box ----------------------------------------------------- */

/* --- START: the date box (2026-09-29) -------------------------------------
   DateSelect: MudDatePicker in a wrapper app.js finds it by. The wrapper
   stands where the bare picker used to, so it takes the picker's share of a
   row and hands it on. (Its Today button moved onto the New Meeting form,
   2026-10-12.) */
.moment-date-select {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.moment-date-select > .mud-picker {
    flex: 1 1 auto;
    min-width: 0;
}
/* --- END: the date box ----------------------------------------------------- */

/* --- START: the New Meeting schedule rows (2026-10-12) ---------------------
   Two rows under the description: WHEN (date, time, then Now / Today / View
   calendars), and below it length, series and Local AI. Every control keeps
   its own width and the row reads left to right. Without this the date box's
   flex-grow — right where it is a field on its own — takes the whole first
   row and squeezes "View calendars" onto two lines, and the length box's
   autocomplete does the same to the second row, pushing Repeat and Local AI
   to the far edge. */
.new-meeting-row > * {
    flex: 0 0 auto;
}

.new-meeting-row .moment-date-select {
    flex: 0 0 190px;
}

.new-meeting-row .mud-button-root {
    white-space: nowrap;
}

/* Row two lines up on its first line: Length is a field with a label above
   it, and the checkbox and the Repeat button each sit in a slot (below) as
   tall as that field, centred in it. */
.new-meeting-row.new-meeting-options {
    align-items: flex-start;
}

.new-meeting-slot {
    display: flex;
    align-items: center;
    min-height: 52px;
}

/* --- END: the New Meeting schedule rows ------------------------------------ */

/* --- START: Set as default (2026-09-29) ------------------------------------
   DefaultDeviceButton's settled state: a quiet mark rather than a disabled
   button, because "this is already your default" is information, not a
   control you are being refused. */
.default-device-mark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
}
/* --- END: Set as default --------------------------------------------------- */

/* --- START: gallery fit and the three layouts (2026-09-29) -----------------
   See meeting.js "Layout". The gallery is laid out as centred rows of tiles
   sized by fitGallery (--tile-w/--tile-h) — a flex row wraps and centres a
   short last row, which a grid cannot. Only while nothing is on the stage:
   the presenting shapes above keep their own rules. */
.meeting-grid:not(.is-presenting) .meeting-strip.is-fitted {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    /* (2026-10-06) A fitted gallery never overflows, so it never scrolls. The
       scrollbar the base rule allows only ever appeared for the instant a
       resize had shrunk the strip under tiles still at the old size — and the
       fit, measuring then, came out a scrollbar too narrow and had to be
       redone a frame later. */
    overflow: hidden;
}

.meeting-grid:not(.is-presenting) .meeting-strip.is-fitted > .meeting-tile {
    flex: 0 0 var(--tile-w);
    width: var(--tile-w);
    height: var(--tile-h);
    min-height: 0;
}

/* The speaking ring, ON TOP of the video. It was an inset box-shadow, which
   paints beneath a tile's children — the video covers it, so on every tile
   with a camera on, "who is talking" showed only as a sliver at the rounded
   corners. A positioned overlay above the video is what makes it visible.
   ::before, because ::after is the staff no-transcript ring. */
.meeting-tile.is-speaking::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 3px #57c98a;
    pointer-events: none;
    z-index: 3;
}

/* Highlight speaker: nobody moves, and the person talking is unmistakable —
   a thicker ring and a glow outside the tile (an outer shadow is not hidden
   by the video the way an inset one is). */
.meeting-grid.layout-highlight .meeting-tile {
    transition: box-shadow 180ms ease;
}
.meeting-grid.layout-highlight .meeting-tile.is-speaking {
    box-shadow: 0 0 0 3px #57c98a, 0 0 26px 6px rgba(87, 201, 138, 0.55);
}
.meeting-grid.layout-highlight .meeting-tile.is-speaking::before {
    box-shadow: inset 0 0 0 4px #57c98a;
}
/* --- END: gallery fit and the three layouts -------------------------------- */

/* The Layout menu's two-line options: the name, and what it means. */
.meeting-layout-option { display: flex; flex-direction: column; line-height: 1.25; }
.meeting-layout-option-hint { font-size: 0.75rem; opacity: 0.65; }

/* --- START: designed layouts (2026-09-29) ----------------------------------
   meeting.js applyDesign: the grid becomes the positioning frame, the strip
   and the stage step out of the way (display: contents — their tiles are
   positioned against the grid itself), and every tile takes the place its
   design gave it. The tiles glide between places when the speaker spot
   changes hands. */
.meeting-grid.is-designed { position: relative; }
.meeting-grid.is-designed .meeting-strip,
.meeting-grid.is-designed .meeting-stage { display: contents !important; }
.meeting-grid.is-designed .meeting-tile {
    position: absolute;
    min-height: 0;
    margin: 0;
    transition: left 250ms ease, top 250ms ease, width 250ms ease, height 250ms ease;
}
.meeting-grid.is-designed .meeting-strip-move { display: none !important; }
.meeting-grid .meeting-tile.tile-designed-out { display: none !important; }
/* --- END: designed layouts -------------------------------------------------- */

/* --- START: the layout designer (2026-09-29) -------------------------------
   Settings → Layouts and the room's "Design layouts…". The frame is the
   meeting's 16:9 area; tiles are positioned in percentages of it, the same
   fractions the room places real tiles by. touch-action: none so a drag on a
   tablet moves the tile rather than the page. */
.ld { display: flex; flex-direction: column; gap: 12px; }
.ld-toolbar, .ld-actions, .ld-rule, .ld-saved { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ld-count { display: flex; align-items: center; gap: 8px; }
.ld-count-text { min-width: 84px; text-align: center; }
.ld-frame {
    position: relative;
    width: 100%;
    max-width: 780px;
    aspect-ratio: 16 / 9;
    background: #0b1220;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    user-select: none;
    touch-action: none;
    overflow: hidden;
}
.ld-empty {
    position: absolute; inset: 0; display: grid; place-items: center;
    opacity: 0.6; font-size: 0.875rem;
}
.ld-tile {
    position: absolute;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: #1d2733;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    cursor: grab;
    overflow: hidden;
}
.ld-tile.is-selected { box-shadow: inset 0 0 0 2px var(--mud-palette-primary); }
.ld-tile.kind-speaker { box-shadow: inset 0 0 0 3px #57c98a, 0 0 18px 3px rgba(87, 201, 138, 0.35); }
.ld-tile.kind-speaker.is-selected { box-shadow: inset 0 0 0 3px var(--mud-palette-primary), 0 0 18px 3px rgba(87, 201, 138, 0.35); }
.ld-tile.kind-screen {
    background: repeating-linear-gradient(135deg, #16202c 0 14px, #1a2531 14px 28px);
}
.ld-tile.is-dragging { cursor: grabbing; opacity: 0.9; z-index: 5; }
.ld-avatar {
    width: 32%; max-width: 64px; aspect-ratio: 1;
    border-radius: 50%;
    background: #3a4a5c;
    display: grid; place-items: center;
    font-weight: 600;
}
.ld-screen-icon { opacity: 0.7; }
.ld-name { font-size: 0.75rem; opacity: 0.8; white-space: nowrap; }
.ld-resize {
    position: absolute; right: 3px; bottom: 3px; width: 14px; height: 14px;
    border-right: 2px solid rgba(255, 255, 255, 0.55);
    border-bottom: 2px solid rgba(255, 255, 255, 0.55);
    cursor: nwse-resize;
}
.ld-hint, .ld-status { opacity: 0.7; }
.ld-selection { min-height: 38px; display: flex; align-items: center; }
/* --- END: the layout designer ---------------------------------------------- */

/* --- The layouts sandbox (dev only, 2026-10-02) — LayoutsPage. The room's
   own grid, given a height of its own since there is no room around it. */
.meeting-grid.layouts-sandbox {
    height: 62vh;
    min-height: 420px;
    border-radius: 12px;
    background: #14171c;
}

/* Test clients' windows (dev only): the real client app in a frame, parked off
   screen so it sits in the meeting without being seen. "Open their screen"
   moves that session to its own browser tab instead (see ShowTestClient), at
   which point this hidden frame is no longer rendered for it. */
.test-client-frame { position: fixed; left: -20000px; top: 0; width: 1280px; height: 800px; }
.test-client-frame iframe { width: 100%; height: 100%; border: 0; background: #14171c; }
/* Test clients' Say and Drop (2026-10-09): one row each, its last report under it. */
.test-client-row { padding: 6px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.14); }
.test-client-status { font-size: 0.8rem; color: #f6c453; padding-left: 2px; }
.test-voice-who { color: #2A9D8F; font-weight: 600; margin-right: 6px; }
.test-drop-heading { font-size: 0.75rem !important; opacity: 0.8; }

/* --- The meeting on a phone (2026-10-05) -----------------------------------
   The client's meeting, fitted to a phone: every control in one row with Leave
   always on screen, a one-line header, notices that wrap instead of towering,
   and a green room whose settings fold away. Keyed on .is-phone (a phone, not a
   narrow desktop window), set by MeetingRoomPage. */
.meeting-page.is-phone .meeting-controls { gap: 4px; padding: 4px 6px; max-height: none; }
.meeting-page.is-phone .meeting-controls-left,
.meeting-page.is-phone .meeting-controls-right { flex: 0 0 auto; gap: 4px; }
.meeting-page.is-phone .meeting-controls-center { flex: 1 1 auto; gap: 4px; }
.meeting-page.is-phone .meeting-control.is-labelled { min-width: 0; width: 40px; height: 42px; padding: 4px; border-radius: 10px; }
.meeting-page.is-phone .meeting-controls-center,
.meeting-page.is-phone .meeting-controls-left,
.meeting-page.is-phone .meeting-controls-right { gap: 3px; }
.meeting-page.is-phone .meeting-control-label { display: none; }
.meeting-page.is-phone .meeting-control-split .mud-menu { display: none; }
.meeting-page.is-phone .meeting-header { gap: 6px; padding: 3px 8px; flex-wrap: nowrap; overflow: hidden; }
.meeting-page.is-phone .meeting-header .mud-typography-h6 {
    flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.meeting-page.is-phone .meeting-spotlight-switch { display: none; }
/* A host on a phone still sees who is at the door; the title gives way first. */
.meeting-page.is-phone .meeting-room-notice { max-width: calc(100vw - 16px); flex-wrap: wrap; font-size: 0.85rem; }
.meeting-page.is-phone .lobby-green-panel:not(.settings-open) .lobby-phone-optional { display: none; }
/* Chat and People take the whole room on a phone — a 360px panel beside a
   390px screen left a sliver of video nobody could use. */
.meeting-page.is-phone .meeting-panel { flex: 0 0 100%; width: 100%; min-width: 0; border-left: none; }
/* Leave as a red round button with just its icon — the word was the one thing
   that pushed it off the screen. */
.meeting-page.is-phone .meeting-leave { min-width: 0; width: 46px; height: 42px; padding: 0; border-radius: 10px; }
.meeting-page.is-phone .meeting-leave .mud-button-label { font-size: 0; gap: 0; }
.meeting-page.is-phone .meeting-leave .mud-button-icon-start { margin: 0; }
.meeting-page.is-phone .meeting-leave .mud-button-icon-start .mud-icon-root { font-size: 1.5rem; }

/* A small phone (320-375 wide: an iPhone SE, a mini). During a share the bar
   gains Hide, and eight 40px buttons plus gaps came to ~350px — Leave was
   pushed off the right edge (2026-11-05, phone pass). Narrower buttons and
   gaps keep every one on screen, Leave included, without dropping any. */
@media (max-width: 374px) {
    .meeting-page.is-phone .meeting-controls { gap: 2px; padding: 4px 4px; }
    .meeting-page.is-phone .meeting-controls-center,
    .meeting-page.is-phone .meeting-controls-left,
    .meeting-page.is-phone .meeting-controls-right { gap: 2px; }
    .meeting-page.is-phone .meeting-control.is-labelled { width: 34px; padding: 2px; }
    .meeting-page.is-phone .meeting-leave { width: 40px; }
}

/* On a phone the caption band sits ABOVE the stage's name label rather than on
   it: the band is most of a phone's width, so there is no room beside the
   label as there is on a desktop (2026-11-05, phone pass — in spotlight the
   speaker's name read through the captions). */
.meeting-page.is-phone .meeting-captions { bottom: 46px; }

/* A NARROW DESKTOP WINDOW (2026-11-13, D2 of the bug hunt). The rules above
   key on .is-phone — a phone, not a desktop window dragged narrow — so a
   staff room at 390px kept its labelled desktop bar, and People, More and
   Leave fell off the right edge with no way to reach them. The same compact
   bar by width.
   Revised the same day after verification (V3): scrolling the whole bar
   sideways kept everything but put Leave past the edge with nothing saying
   it was there. Now the ends hold still — Mute and video on the left, Leave
   on the right, never scrolled — the host's door and assistant step into
   More (.meeting-bar-roomy), the buttons slim down so a 390px window fits the
   rest, and only the middle may scroll.
   2026-11-19: the staff bar has no More. Its middle scrolls at every width
   now (.is-cockpit), and the door and the assistant ride in it here as plain
   bar buttons (.meeting-bar-narrow). */
@media (max-width: 600px) {
    .meeting-page:not(.is-phone) .meeting-controls { gap: 4px; padding: 4px 6px; max-height: none; overflow: hidden; }
    .meeting-page:not(.is-phone) .meeting-controls-left,
    .meeting-page:not(.is-phone) .meeting-controls-right { flex: 0 0 auto; gap: 3px; }
    .meeting-page:not(.is-phone) .meeting-controls-center {
        flex: 1 1 auto; min-width: 0; gap: 3px; overflow-x: auto;
        justify-content: flex-start; justify-content: safe center;   /* centred until it overflows */
    }
    .meeting-page:not(.is-phone) .meeting-bar-roomy { display: none; }
    .meeting-page:not(.is-phone) .meeting-bar-narrow { display: contents; }
    .meeting-page:not(.is-phone) .meeting-controls.is-cockpit .meeting-controls-center .meeting-control.is-labelled { width: 36px; }
    .meeting-page:not(.is-phone) .meeting-controls.is-cockpit .meeting-controls-divider { display: none; }
    .meeting-page:not(.is-phone) .meeting-control.is-labelled { min-width: 0; width: 36px; height: 42px; padding: 4px; border-radius: 10px; flex: 0 0 auto; }
    .meeting-page:not(.is-phone) .meeting-caret { width: 16px !important; min-width: 16px !important; height: 42px !important; }
    .meeting-page:not(.is-phone) .meeting-control-label { display: none; }
    .meeting-page:not(.is-phone) .meeting-leave { min-width: 0; width: 42px; height: 42px; padding: 0; border-radius: 10px; }
    .meeting-page:not(.is-phone) .meeting-leave .mud-button-label { font-size: 0; gap: 0; }
    .meeting-page:not(.is-phone) .meeting-leave .mud-button-icon-start { margin: 0; }
    .meeting-page:not(.is-phone) .meeting-panel { flex: 0 0 100%; width: 100%; min-width: 0; border-left: none; }

    /* Captions: the speaker's name on its own line above their words, whole,
       instead of cut to "Alder BH-D…" beside them — at this width the band
       has no room for both side by side. */
    .meeting-caption-band { flex-direction: column; gap: 0; }
    .meeting-caption-band .meeting-caption-who { max-width: 100%; }
}

/* Tooltips on a touch screen (2026-11-05, phone pass). There is no hover, so a
   tap shows the tooltip and it stays — "Chat with the room" sat over the room
   after the chat had opened. A touch screen cannot use them as intended, so
   they are not shown there at all. */
@media (hover: none) and (pointer: coarse) {
    .mud-tooltip { display: none !important; }
}

/* Snackbars on a phone-width screen: the message across the full width and its
   action underneath, rather than a column three words wide beside a button
   (the same-network notice in a meeting was the worst case). Outside the
   meeting page, so a width query rather than .is-phone. */
@media (max-width: 600px) {
    .mud-snackbar { flex-wrap: wrap; min-width: 0; width: calc(100vw - 16px); max-width: calc(100vw - 16px); }
    .mud-snackbar .mud-snackbar-content-message { flex: 1 1 100%; }
    .mud-snackbar .mud-snackbar-content-action { margin-left: auto; }
}

/* Manage → Projects: the client, and beside it its company (or the press that
   makes one). Wraps under the name when the column is narrow. */
.project-list-client { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }

/* Manage → Training feedback (2026-10-07). The QR sits on white — a code
   without its quiet zone against a dark card is the one a phone won't read. */
.training-share { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.training-qr { width: 168px; height: 168px; flex: 0 0 auto; background: #fff; border-radius: 10px; padding: 4px; }
.training-qr svg { width: 100%; height: 100%; display: block; }
.training-link { font-family: monospace; word-break: break-all; color: var(--white); }
.training-row { cursor: pointer; }
.training-row.is-selected > td { background: rgba(42, 157, 143, 0.12); }
.training-file { padding: 4px 0; }
.training-response { padding: 12px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.18); line-height: 1.5; }
.training-response-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; color: #f6c453; margin-bottom: 4px; }
.training-response-head span:not(:first-child) { color: var(--text-muted); font-size: 0.9rem; }
.training-response-when { margin-left: auto; }
.training-response-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.training-quote-text { font-size: 1.05rem; line-height: 1.5; white-space: pre-wrap; }

/* The home page's meeting popup (2026-10-07): the prep doors in a row, then
   who's coming with each answer coloured like the prep page's. */
.meeting-quick-doors { display: flex; flex-wrap: wrap; gap: 8px; }
.meeting-quick-people { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.meeting-quick-person { display: flex; align-items: center; gap: 10px; }
.meeting-quick-name { flex: 1; min-width: 0; }
.meeting-quick-side { margin-left: 6px; font-size: 0.78rem; color: var(--text-muted); }
.meeting-quick-answer { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; white-space: nowrap; }
.meeting-quick-answer.is-yes { color: #6fbf73; }
.meeting-quick-answer.is-no { color: #e57373; }
.meeting-quick-answer.is-maybe { color: #f6c453; }
.meeting-quick-answer.is-none { color: var(--text-muted); }

/* An Outlook appointment on your calendar (2026-10-07): Outlook's own blue,
   quieter than a Moment meeting — it's time taken, not a room to open.
   Tentative is dashed; one marked Free is faint, because it doesn't block. */
.cal-outlook {
    background: rgba(0, 120, 212, 0.18);
    border-left: 3px solid #0078d4;
    color: var(--white);
    cursor: default;
}
.cal-outlook.is-tentative { border-left-style: dashed; background: rgba(0, 120, 212, 0.1); }
.cal-outlook.is-free { opacity: 0.5; }

/* "View calendars" from the New Meeting form (2026-10-07): a week of the chosen
   people, one coloured lane each, and the green half-hours where all of them
   are free. */
.calendars-dialog .mud-dialog-content { padding-top: 4px; }
.calendars-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 4px 0 8px; font-size: 0.8rem; }
/* The people shown, as removable chips that double as the lane key (2026-10-12). */
.calendars-person-chip { margin: 0; }
.calendars-person-chip .cal-key-swatch { margin-right: 6px; }
.calendars-key-item { display: inline-flex; align-items: center; gap: 6px; }
.calendars-free-swatch { width: 14px; height: 10px; border-radius: 3px; background: rgba(72, 187, 120, 0.45); }
.calendars-scroll { max-height: 62vh; overflow: auto; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 8px; }
.calendars-grid { display: grid; grid-template-columns: 52px repeat(7, minmax(96px, 1fr)); min-width: 760px; }
.calendars-head { position: sticky; top: 0; z-index: 3; padding: 6px 4px; text-align: center; font-size: 0.8rem;
    background: var(--mud-palette-surface); border-bottom: 1px solid rgba(148, 163, 184, 0.2); }
.calendars-head.is-today b { color: var(--accent-color); }
.calendars-gutter { border-right: 1px solid rgba(148, 163, 184, 0.15); }
.calendars-hour { font-size: 0.7rem; color: var(--text-muted); text-align: right; padding-right: 6px; transform: translateY(-6px); }
.calendars-day { position: relative; border-right: 1px solid rgba(148, 163, 184, 0.12); }
.calendars-line { position: absolute; left: 0; right: 0; border-top: 1px solid rgba(148, 163, 184, 0.1); }
.calendars-free { position: absolute; left: 2px; right: 2px; z-index: 1; border: 0; border-radius: 4px; padding: 0;
    background: rgba(72, 187, 120, 0.13); cursor: pointer; }
.calendars-free:hover { background: rgba(72, 187, 120, 0.55); }
.calendars-block { position: absolute; z-index: 2; overflow: hidden; padding: 1px 4px; border-radius: 4px;
    font-size: 0.68rem; line-height: 1.25; color: #fff; pointer-events: auto;
    background: color-mix(in srgb, var(--who) 55%, transparent); border-left: 3px solid var(--who); }
.calendars-block.is-outlook { background: color-mix(in srgb, var(--who) 35%, transparent); }
.calendars-block.is-tentative { border-left-style: dashed; }
.calendars-block span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The meeting screen's Sites menu (2026-10-08): the address beside its name, quieter. */
.meeting-site-url { margin-left: 8px; color: #8b939d; font-size: 0.78rem; }

/* Manage → Forms (2026-10-09). The share block borrows .training-share/-qr/-link. */
.form-q { border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 10px; }
.form-q-num { min-width: 22px; color: #8b939d; font-weight: 700; }

/* The editor, round three (2026-10-13, by request: the editor was "a wall"):
   each question one line until it is clicked open, fine print under "More
   options", drag a line to move it, a + between lines to add one there — and
   the form as people will see it, live, beside it. */
.form-builder.with-preview { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.form-builder-preview { position: sticky; top: 64px; }
/* The preview popped out (2026-10-13): over everything, the full width or a
   phone's screen (390 × 844, an everyday phone) in a rounded frame. */
.form-preview-popout { position: fixed; inset: 0; z-index: 1500; display: flex; flex-direction: column; background: #0b1016; }
.form-preview-popout-bar { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid rgba(148, 163, 184, 0.2); background: #111821; font-size: 0.9rem; }
/* Bottom-left, clear of anything a recording or sharing banner lays over the
   top of the screen: the way out and the Computer / Phone switch together. */
.form-preview-popout-dock { position: absolute; left: 20px; bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 10px;
    padding: 6px; border-radius: 10px; background: rgba(17, 24, 33, 0.92); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); }
.form-preview-popout-device { background: #111821; }
.form-preview-popout-stage { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; align-items: center; overflow: auto; }
.form-preview-popout-stage.is-desktop .form-preview-popout-frame { width: 100%; height: 100%; border: 0; }
.form-preview-popout-stage.is-phone { padding: 16px; }
.form-preview-popout-stage.is-phone .form-preview-popout-frame {
    width: 390px; height: min(844px, calc(100vh - 100px)); flex: 0 0 auto;
    border: 10px solid #1f2733; border-radius: 36px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); background: #0f1419;
}
/* Five tabs in the narrower column: MudBlazor's 160px minimum per tab pushed
   the last two behind scroll arrows. */
.form-editor-tabs .mud-tab { min-width: 0 !important; padding-left: 10px !important; padding-right: 10px !important; }
.form-builder.with-preview .form-editor-tabs .mud-tab .mud-icon-root { display: none; }
.form-preview-head { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 0.85rem; color: #8b939d; }
.form-preview-head b { color: #e2e8f0; font-weight: 600; }
.form-preview-frame { display: block; width: 100%; height: calc(100vh - 140px); min-height: 420px; border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 12px; background: #0f1419; }
.form-preview-device .mud-toggle-item { padding: 0 8px !important; min-height: 26px; font-size: 0.75rem; }
.form-preview-note { margin: -2px 0 6px; font-size: 0.75rem; color: #8b939d; }
/* The side preview as a phone (2026-10-15): the pop-out's 390 × 844 phone, in
   its rounded frame, scaled to sit in the 360px column — a real phone's
   viewport, so the form lays itself out exactly as it will in a pocket. The
   negative margin gives back the height the scale took off. */
.form-preview-side.is-phone { display: flex; justify-content: center; overflow: hidden; }
.form-preview-side.is-phone .form-preview-frame {
    flex: 0 0 auto; width: 390px; height: 844px; min-height: 0;
    border: 10px solid #1f2733; border-radius: 36px; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    transform: scale(0.84); transform-origin: top center; margin-bottom: calc(-864px * 0.16);
}
@media (max-width: 1280px) {
    .form-builder.with-preview { grid-template-columns: minmax(0, 1fr); }
    .form-builder-preview { position: static; }
    .form-preview-frame { height: 640px; }
}
.form-q-list .form-q { margin: 0; background: rgba(255, 255, 255, 0.015); transition: border-color 0.12s, background-color 0.12s; }
.form-q-list .form-q.is-open { border-color: rgba(42, 157, 143, 0.7); background: rgba(42, 157, 143, 0.05); }
.form-q-list .form-q.is-page { border-style: dashed; }
.form-q-list .form-q.is-drop-target { box-shadow: 0 -3px 0 0 #2A9D8F; }
.form-q-head { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px; cursor: pointer; user-select: none; }
.form-q-head:hover { background: rgba(255, 255, 255, 0.03); border-radius: 10px; }
.form-q-grip { cursor: grab; opacity: 0.4; flex-shrink: 0; }
.form-q-type-icon { opacity: 0.7; flex-shrink: 0; }
.form-q-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-q-title.is-empty { opacity: 0.55; font-style: italic; }
.form-q.is-page .form-q-title { color: #2A9D8F; font-weight: 600; }
.form-q-req { color: #f6c453; font-weight: 700; margin-left: -4px; }
.form-q-badges { display: flex; gap: 4px; flex-shrink: 0; }
.form-q-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border: 1px solid rgba(148, 163, 184, 0.3); border-radius: 999px; font-size: 0.72rem; color: #9aa4b2; white-space: nowrap; }
.form-q-badge.is-logic { color: #2A9D8F; border-color: rgba(42, 157, 143, 0.5); }
.form-q-actions { display: none; flex-shrink: 0; }
.form-q-head:hover .form-q-actions, .form-q.is-open .form-q-actions { display: flex; }
.form-q-chevron { opacity: 0.55; flex-shrink: 0; }
.form-q-body { padding: 4px 12px 12px; }
.form-q-more { display: flex; flex-direction: column; gap: 6px; padding-left: 12px; border-left: 2px solid rgba(148, 163, 184, 0.25); }
.form-q-insert { position: relative; height: 8px; }
.form-q-insert .mud-menu { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; opacity: 0; transition: opacity 0.12s; }
.form-q-insert:hover .mud-menu, .form-q-insert:focus-within .mud-menu { opacity: 1; }
.form-q-insert-btn { background: #1a2332 !important; border: 1px solid rgba(42, 157, 143, 0.6) !important; }
.form-q-insert:hover::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(42, 157, 143, 0.5); }
@media (max-width: 760px) { .form-q-badges { display: none; } }
.form-row { cursor: pointer; }
.form-summaries { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.form-summary { border: 1px solid rgba(148, 163, 184, 0.14); }
.form-summary-unit { font-size: 0.8rem; color: #8b939d; }
.form-bar { display: grid; grid-template-columns: minmax(0, 1fr) 90px 28px; gap: 8px; align-items: center; margin-top: 6px; font-size: 0.85rem; }
.form-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-bar-track { height: 8px; border-radius: 4px; background: rgba(148, 163, 184, 0.18); overflow: hidden; }
.form-bar-fill { display: block; height: 100%; background: #2A9D8F; }
.form-bar-n { text-align: right; font-variant-numeric: tabular-nums; }
.form-response { padding: 10px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.18); }
.form-response-head { display: flex; align-items: center; justify-content: space-between; color: #f6c453; font-size: 0.85rem; }
.form-answer { display: grid; grid-template-columns: minmax(140px, 30%) 1fr; gap: 12px; padding: 2px 0; }
.form-answer-q { color: #8b939d; font-size: 0.85rem; }
.form-answer-a { white-space: pre-wrap; word-break: break-word; }

/* Form builder, round two (2026-10-09). */
.form-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.form-template { cursor: pointer; border: 1px solid rgba(148, 163, 184, 0.18); }
.form-template:hover { border-color: #2A9D8F; }
.form-q-checks { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.form-q-small { max-width: 180px; }
.form-q-wide { min-width: 280px; max-width: 420px; }
.form-conds { margin-top: 4px; }
.form-conds-none { font-size: 0.8rem; color: #8b939d; }
.form-conds-head { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: #8b939d; margin: 4px 0; }
.form-cond { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.form-cond-q { max-width: 280px; }
.form-cond-op { max-width: 170px; }
.form-cond-v { max-width: 280px; }
.form-grid-row { font-size: 0.85rem; margin-top: 4px; }
.form-response-emails { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.78rem; color: #8b939d; margin-top: 4px; }

/* Responses as a table and one by one (2026-10-13). The table scrolls
   sideways when a form has many questions — never up and down on its own;
   the page does that. */
.form-resp-table-wrap { overflow-x: auto; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 10px; }
.form-resp-table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 0.86rem; }
.form-resp-table th { padding: 8px 10px; text-align: left; font-weight: 600; white-space: nowrap; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid rgba(148, 163, 184, 0.25); }
.form-resp-table th.is-sortable { cursor: pointer; user-select: none; }
.form-resp-table th.is-sortable:hover, .form-resp-table th.is-sorted { color: #2A9D8F; }
.form-resp-table td { max-width: 260px; padding: 7px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.form-resp-table tbody tr { cursor: pointer; }
.form-resp-table tbody tr:hover td { background: rgba(255, 255, 255, 0.04); }
.form-resp-table tbody tr:last-child td { border-bottom: none; }
.form-resp-table td.is-empty, .form-answer-a.is-empty { color: #64748b; }
.form-resp-when { color: #f6c453; }
.form-resp-one { padding: 6px 16px 14px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 10px; }
.form-resp-one-head { margin: 0 -16px 8px; padding: 0 8px 6px; border-bottom: 1px solid rgba(148, 163, 184, 0.18); }
.form-resp-one .form-answer { padding: 6px 0; border-bottom: 1px dashed rgba(148, 163, 184, 0.1); }
.form-resp-section { margin: 14px 0 4px; font-size: 0.9rem; font-weight: 600; color: #2A9D8F; }



/* The agenda's clock on a playlist row (2026-10-14): the same "0–5 · 5 min"
   the prep page's agenda shows, so the two views of one plan read alike. */
.wtd-pl-slot {
    flex: 0 0 auto;
    display: inline-flex; flex-direction: column; align-items: flex-end;
    min-width: 48px;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}
.wtd-pl-slot-at { font-size: 0.74rem; color: var(--text-muted); }
.wtd-pl-slot-min { font-size: 0.68rem; opacity: 0.75; }
.wtd-pl-row-outcome { color: #9fe3d6; }
.wtd-pl-row-doc { color: #e8d6a8; }


/* ---------------------------------------------------------------------------
   Booking types (2026-10-20). Staff: one bordered block per type on Settings →
   Booking. Client: the types as cards to choose from on /book — a name, a
   length, and the line about what it is for.
   --------------------------------------------------------------------------- */
.booking-type { border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.booking-type-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.booking-type-choice {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer;
    font: inherit; color: inherit; padding: 12px 14px; border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.03);
}
.booking-type-choice:hover { border-color: var(--accent-color); }
.booking-type-choice.is-on { border-color: var(--accent-color); background: rgba(0, 200, 160, 0.10); box-shadow: 0 0 0 1px var(--accent-color); }
.booking-type-choice-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; }
.booking-type-choice-length { font-size: 0.85rem; color: var(--accent-color); font-weight: 600; }
.booking-type-choice-about { font-size: 0.82rem; color: var(--mud-palette-text-secondary); margin-top: 4px; }

/* A file dragged over the meeting room (2026-11-04) — see armPasteAndDrop in
   meeting-files.js. Over everything, catching no pointer events of its own, so
   the drop still lands on the page underneath. */
.meeting-drop-overlay {
    position: fixed;
    inset: 12px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed var(--mud-palette-primary, #1e9e8a);
    border-radius: 16px;
    background: rgba(15, 20, 25, 0.72);
    color: #fff;
    font-size: 1.4rem;
    pointer-events: none;
}

/* The walkthrough library on a phone (2026-11-14, bug hunt I: at 390 px the
   nine fixed columns ran past the edge — every title squeezed to nothing and
   the Add / Left / Right buttons cut off). Below 700 px a row wraps instead:
   kind and title on the first line, the facts that have something to say on
   the next, the buttons on their own line at the right. The empty cells that
   hold the grid's columns on a wide screen are dropped here, since a wrapped
   row has no columns to hold. */
@media (max-width: 700px) {
    .wtd-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 8px;
    }
    .wtd-row > .wtd-row-title { flex: 1 1 60%; min-width: 0; }
    .wtd-row > .wtd-row-project:empty,
    .wtd-row > .is-none { display: none; }
    .wtd-row > .wtd-row-count { text-align: left; }
    .wtd-row > .wtd-row-actions { flex: 1 1 100%; flex-wrap: wrap; }
}

/* ---------------------------------------------------------------------------
   "Lay out the series" — a meeting carried by a finger (2026-11-16, see
   series-layout-drag.js). The copy that follows the finger, the day it is
   over, and the original, dimmed while it is away.
   --------------------------------------------------------------------------- */
.layout-day-meeting-ghost {
    position: fixed;
    z-index: 3000; /* over the dialog it was lifted from */
    pointer-events: none; /* elementFromPoint must see the day underneath */
    opacity: 0.92;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    margin: 0 !important;
}
.layout-day-meeting-held { opacity: 0.35; }
.layout-day.layout-day-over { background: var(--mud-palette-action-default-hover); box-shadow: inset 0 0 0 2px var(--mud-palette-primary); }

/* ---------------------------------------------------------------------------
   Settings → Booking: the links to hand out (2026-11-16). What it is, the
   address in a selectable monospace run, and Copy; on a phone the address
   takes its own line and wraps anywhere rather than pushing the page wide.
   --------------------------------------------------------------------------- */
.booking-link-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.booking-link-row + .booking-link-row { border-top: 1px solid var(--mud-palette-lines-default); }
.booking-link-what { flex: 0 0 180px; font-weight: 600; }
.booking-link-url { flex: 1 1 260px; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; overflow-wrap: anywhere; user-select: all; opacity: 0.9; }
@media (max-width: 600px) { .booking-link-what { flex-basis: 100%; } }

/* ---------------------------------------------------------------------------
   The public booking page (/b/{key}, 2026-11-16) — the login card, wider,
   because it holds a week of times; it scrolls inside the window on a phone
   rather than running off it.
   --------------------------------------------------------------------------- */
.public-book { align-items: flex-start; overflow-y: auto; padding: 24px 12px; }
.public-book-card.login-card { width: 100%; max-width: 560px; margin: auto; }
.public-book-when { font-weight: 600; font-size: 1.05rem; }
.public-book-days { display: flex; flex-direction: column; gap: 12px; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
.public-book-day-name { font-weight: 600; margin-bottom: 4px; }

/* The client's switcher (2026-11-18): All, each company, then that company's
   projects — chips that wrap on a phone rather than scroll off it. */
.meeting-scope-bar { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 4px; }
.meeting-scope-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.meeting-scope-projects { padding-left: 4px; }
.meeting-company-label { opacity: .75; }

/* ---------------------------------------------------------------------------
   The meeting's chat, kept (2026-11-18): the paperclip in the room's composer,
   and the Chat tab on the meeting's page afterwards — the room's own line
   shape (name, time, words) on the page's lighter ground.
   --------------------------------------------------------------------------- */
.meeting-chat-input .meeting-chat-attach { color: #c9ced6; }
.artifacts-chat { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.artifacts-chat-name { font-weight: 600; margin-right: 8px; }
.artifacts-chat-time { font-size: 0.78rem; opacity: 0.65; }
.artifacts-chat-text { white-space: pre-wrap; overflow-wrap: anywhere; }
