/* The shared manager frame: one header, tabs, and the chat in the right-hand column.
   Components: UI/Shared Components/Manager. Colours: tokens.css. */

/* ---------- status chip ---------- */
.m-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--gv-radius-pill); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.4; white-space: nowrap; }
/* Words carry the status; the tint only helps the eye. */
.m-chip--mine { color: var(--gv-amber); background: #3b2a08; }
.m-chip--waiting { color: #6fb3ff; background: #0f2440; }
.m-chip--done { color: var(--gv-green); background: #12301f; }
.m-chip--problem { color: #ff8080; background: #3a1414; }
.m-chip--closed, .m-chip--neutral { color: var(--gv-muted); background: #2e2e2e; }

/* ---------- back link ---------- */
.mgr-back { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; min-width: 0; }
.mgr-back__btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gv-line); background: transparent; color: var(--gv-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.mgr-back__btn:hover, .mgr-back__btn:focus-visible { border-color: var(--gv-lime); outline: none; }
.mgr-back__label { color: var(--gv-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mgr-back__extra { margin-left: auto; display: flex; gap: 8px; }
/* The theme (mainapp.css) gives every button padding in content-box sizing, which stretched these 36px circles into ovals. */
.mgr-back__btn, .mgr-rail__close { box-sizing: border-box; padding: 0; }

/* ---------- header card ---------- */
.mgr-head { background: var(--gv-surface); border: 1px solid var(--gv-line); border-radius: var(--gv-radius-card); padding: 18px 20px; margin-bottom: 12px; color: var(--gv-ink); border-top: 3px solid var(--mgr-accent, var(--gv-line)); }
.mgr-head--mine { --mgr-accent: var(--gv-tone-mine); }
.mgr-head--waiting { --mgr-accent: var(--gv-tone-waiting); }
.mgr-head--done { --mgr-accent: var(--gv-tone-done); }
.mgr-head--problem { --mgr-accent: var(--gv-tone-problem); }
.mgr-head--closed { --mgr-accent: var(--gv-tone-closed); }
.mgr-head__top { display: flex; align-items: center; gap: 14px; }
.mgr-head__avatar { flex: none; width: 72px; height: 72px; border-radius: 20px; background: rgba(193, 254, 1, .08); border: 1px solid rgba(193, 254, 1, .35); color: var(--gv-lime); display: flex; align-items: center; justify-content: center; font: 300 26px/1 var(--gv-font-display); letter-spacing: .02em; }
.mgr-head__id { min-width: 0; flex: 1; }
.mgr-head__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gv-muted); }
.mgr-head__title { font-family: var(--gv-font-display); font-weight: 400; font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.mgr-head__sub { margin: 4px 0 0; color: var(--gv-muted); font-size: 13.5px; }
.mgr-head__actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.mgr-head__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 18px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--gv-line); }
.mgr-head__facts dt { font-size: 11.5px; color: var(--gv-muted); font-weight: 400; margin: 0 0 2px; text-transform: none; }
.mgr-head__facts dd { margin: 0; font-weight: 500; font-size: 14.5px; overflow-wrap: anywhere; }
.mgr-head__note { display: block; font-weight: 400; color: var(--gv-muted); font-size: 12.5px; }

/* ---------- step row: "Where this booking is" ---------- */
.mgr-steps { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gv-line); }
.mgr-steps__title { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gv-muted); }
.mgr-steps__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 8px; }
.mgr-step { position: relative; border-top: 4px solid var(--gv-line); padding-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gv-dim); }
.mgr-step--done { border-top-color: var(--gv-green); color: var(--gv-green); }
.mgr-step--now { border-top-color: var(--gv-lime); color: var(--gv-ink); }

/* ---------- "Your move" ---------- */
.mgr-next { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--gv-surface-2); border-left: 3px solid var(--mgr-next, var(--gv-tone-mine)); }
.mgr-next--waiting { --mgr-next: var(--gv-tone-waiting); }
.mgr-next--done { --mgr-next: var(--gv-tone-done); }
.mgr-next--problem { --mgr-next: var(--gv-tone-problem); }
.mgr-next__eyebrow { margin: 0; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gv-muted); }
.mgr-next__text { margin: 2px 0 0; font-weight: 500; font-size: 15px; }
.mgr-next__actions { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }

/* ---------- tabs ---------- */
.mgr-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding-bottom: 2px; }
.mgr-tabs::-webkit-scrollbar { display: none; }
.mgr-tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; min-height: 34px; padding: 5px 14px; border-radius: var(--gv-radius-pill); border: 1px solid var(--gv-line); background: transparent; color: var(--gv-ink); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.mgr-tab:hover, .mgr-tab:focus-visible { border-color: var(--gv-muted); outline: none; }
.mgr-tab--on { background: var(--gv-lime); border-color: var(--gv-lime); color: #111; }
.mgr-tab__badge { min-width: 20px; padding: 0 6px; border-radius: var(--gv-radius-pill); background: var(--gv-amber); color: #111; font-size: 11px; line-height: 20px; text-align: center; }

/* ---------- two columns, the chat on the right ---------- */
.mgr-body { display: block; }
.mgr-main { min-width: 0; }
.mgr-rail__sheethead, .mgr-fab, .mgr-backdrop { display: none; }

@media (min-width: 1100px) {
    .mgr:not(.mgr--single) .mgr-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
    .mgr-rail { position: sticky; top: calc(var(--mud-appbar-height, 64px) + 12px); height: min(calc(100dvh - var(--mud-appbar-height, 64px) - 24px), 760px); display: flex; flex-direction: column; background: var(--gv-surface); border: 1px solid var(--gv-line); border-radius: var(--gv-radius-card); overflow: hidden; }
}

@media (max-width: 1099.98px) {
    .mgr-rail { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400; height: min(82dvh, 640px); display: flex; flex-direction: column; background: var(--gv-surface); border: 1px solid var(--gv-line); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .6); transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; padding-bottom: env(safe-area-inset-bottom, 0px); }
    .mgr-rail.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
    .mgr-rail__sheethead { display: flex; justify-content: center; align-items: center; position: relative; min-height: 30px; padding-top: 6px; flex: none; }
    .mgr-rail__grab { width: 44px; height: 5px; border-radius: 3px; background: #4a4a4a; }
    .mgr-rail__close { position: absolute; right: 10px; top: 6px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gv-line); background: transparent; color: var(--gv-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
    .mgr-backdrop { display: block; position: fixed; inset: 0; z-index: 1399; background: rgba(0, 0, 0, .55); }
    .mgr-fab { display: flex; position: sticky; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); justify-content: flex-end; margin-top: 14px; pointer-events: none; z-index: 5; }
    .mgr-fab__btn { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .55); min-height: 44px; }
    .mgr-fab__count { background: #111; color: var(--gv-lime); border-radius: var(--gv-radius-pill); padding: 0 7px; font-size: 12px; }
    body:has(.mgr-rail.is-open) { overflow: hidden; }
}

/* The chat inside the column fills it. */
.mgr-rail > .chat-page { flex: 1 1 auto; min-height: 0; }

/* ---------- event inbox ---------- */
.mgr-inbox { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; min-height: 0; flex: 1; }
.mgr-inbox__title { margin: 0; font-size: 16px; font-weight: 600; }
.mgr-inbox__note, .mgr-inbox__empty { margin: 0; color: var(--gv-muted); font-size: 13px; }
.mgr-inbox__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; }
.mgr-inbox__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--gv-surface-2); border: 1px solid var(--gv-line); color: var(--gv-ink); text-decoration: none; }
.mgr-inbox__row:hover, .mgr-inbox__row:focus-visible { border-color: var(--gv-lime); outline: none; }
.mgr-inbox__av { width: 40px; height: 40px; border-radius: 50%; background: #2e2e2e; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.mgr-inbox__mid { min-width: 0; display: flex; flex-direction: column; }
.mgr-inbox__row.is-unread b { color: var(--gv-lime); }
.mgr-inbox__sub, .mgr-inbox__last { color: var(--gv-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgr-inbox__when { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11px; color: var(--gv-muted); }
.mgr-inbox__count { background: var(--gv-lime); color: #111; border-radius: var(--gv-radius-pill); padding: 0 7px; font-weight: 700; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
    .mgr-head { padding: 14px; }
    .mgr-head__top { flex-wrap: wrap; gap: 10px; }
    .mgr-head__avatar { width: 48px; height: 48px; border-radius: 14px; font-size: 15px; }
    /* The title keeps the row beside the avatar; the actions go to their own row under it. */
    .mgr-head__id { flex: 1 1 calc(100% - 64px); }
    .mgr-head__actions { margin-left: 0; flex-wrap: wrap; }
    .mgr-head__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mgr-steps__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mgr-next { flex-direction: column; align-items: stretch; }
    .mgr-next__actions > * { flex: 1; }
}

/* ---------- more chip colours: the event's visibility and days to go ---------- */
.m-chip--lime { color: var(--gv-lime); background: #1e2410; }
.m-chip--purple { color: #b59cff; background: #241a48; }

/* ---------- header extras ---------- */
.mgr-next__due { margin: 2px 0 0; color: var(--gv-muted); font-size: 12.5px; }
.mgr-head__dup { margin-top: 14px; }
/* Header buttons at the prototype's sizes: the main action a 36px pill, "Your move" small pills. Scoped to the header,
   so buttons elsewhere on the page keep the app's sizes. */
.mgr-head__actions > .btn-primary, .mgr-head__actions > .btn-alternative { box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: 36px; min-height: 36px; padding: 0 16px; border-width: 2px; font-size: 12px; font-weight: 500; letter-spacing: 1px; line-height: 1; }
.mgr-head__more .mud-icon-button { box-sizing: border-box; width: 36px; height: 36px; padding: 0; border: 1px solid var(--gv-line); color: var(--gv-ink); }
.mgr-next__actions .btn-primary, .mgr-next__actions .btn-alternative { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: 32px; min-height: 32px; padding: 0 14px; border: 2px solid; border-radius: var(--gv-radius-pill); font-size: 11.5px; font-weight: 500; letter-spacing: 1px; line-height: 1; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.mgr-next__actions .btn-primary, .mgr-next__actions a.btn-primary:visited { border-color: var(--gv-lime); color: #121212; }
.mgr-next__actions .btn-primary:hover { color: var(--gv-lime); }
.mgr-next__actions .btn-alternative { background: transparent; border-color: var(--gv-line); color: var(--gv-muted); }
.mgr-next__actions .btn-alternative:hover { border-color: var(--gv-lime); color: #171717; }
/* Inside the header, "Your move" is a row under a line, as in the prototype; the eyebrow carries the tone. */
.mgr-head .mgr-next { background: none; border: 0; border-top: 1px solid var(--gv-line); border-radius: 0; padding: 14px 0 0; margin-top: 14px; }
.mgr-head .mgr-next__eyebrow { color: var(--mgr-next, var(--gv-tone-mine)); }

/* ---------- the rail as a drawer (ManagerLayout RailAsDrawer) ---------- */
/* No column: the page keeps the full width. The page's own button opens the rail as a drawer from the right on a
   computer, and as the sheet from the bottom on a phone (the sheet rules above). */
.mgr.mgr--drawer .mgr-body { display: block; }
.mgr--drawer .mgr-fab { display: none; }
@media (min-width: 1100px) {
    .mgr--drawer .mgr-rail { position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 1400; width: min(420px, 100%); height: auto; border-radius: 0; border: 0; border-left: 1px solid var(--gv-line); box-shadow: -12px 0 40px rgba(0, 0, 0, .55); transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
    .mgr--drawer .mgr-rail.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
    /* The close button sits on the title's line, as in the prototype. */
    .mgr--drawer .mgr-rail__sheethead { display: block; position: absolute; top: 12px; right: 12px; min-height: 0; padding: 0; z-index: 1; }
    .mgr--drawer .mgr-rail__grab { display: none; }
    .mgr--drawer .mgr-rail__close { position: static; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gv-line); background: transparent; color: var(--gv-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
    .mgr--drawer .mgr-backdrop { display: block; position: fixed; inset: 0; z-index: 1399; background: rgba(0, 0, 0, .55); }
    .mgr--drawer .mgr-rail .mgr-inbox { padding-top: 16px; }
    .mgr--drawer .mgr-rail .mgr-inbox__title { font-size: 17px; }
    body:has(.mgr--drawer .mgr-rail.is-open) { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .mgr--drawer .mgr-rail { transition: none; } }
/* The close button sits at the top right of the drawer or sheet: the title keeps clear of it. */
.mgr--drawer .mgr-rail .mgr-inbox__title { padding-right: 48px; }

/* ---------- the Event Manager on the frame (GigManagerPage, .mgr-event), to the prototype's measures ---------- */
/* Inside the old workspace styles: keep the shared header's title size. */
.gig-workspace .mgr-head__title { font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.15; }
/* Header card: 14px corners and a plain 1px edge, no coloured top. */
.mgr-event .mgr-head { border-radius: 14px; border-top-width: 1px; border-top-color: var(--gv-line); }
/* The eyebrow's chips speak in its capitals, as in the prototype ("LINK ONLY", "16 DAYS TO GO"). */
.mgr-head__eyebrow .m-chip { text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
/* The Messages button: a lime circle with the number not read yet. */
.mgr-head__msg { position: relative; box-sizing: border-box; flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: var(--gv-lime); color: #111; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mgr-head__msg:hover, .mgr-head__msg:focus-visible { outline: 2px solid var(--gv-lime); outline-offset: 2px; }
.mgr-head__msg-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: var(--gv-radius-pill); background: var(--gv-red); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; }
/* Tabs: on a computer they share the full width, each with its icon, as in the prototype; on a phone they scroll. */
.gig-workspace--shell .mgr-tabs { margin: 4px 0 12px; }
.mgr-event .mgr-tab { min-height: 34px; padding: 5px 14px; border: 1.5px solid var(--gv-ink); font-size: 12px; letter-spacing: .08em; }
.mgr-event .mgr-tab--on { border-color: var(--gv-lime); }
.mgr-tab__icon { font-size: 18px !important; }
@media (min-width: 900px) {
    .mgr-event .mgr-tab { flex: 1 1 0; justify-content: center; }
}
/* The tabs' panels: the old page's sections start right under the tabs instead of 28px down. */
.mgr-event .gig-panel { padding: 4px 0 20px; }
.mgr-event .gig-panel__heading h2 { font-size: 1.25rem; }
/* A card in the prototype's style: dark surface, 14px corners, an eyebrow, one big number. */
.mgr-card { background: var(--gv-surface); border: 1px solid var(--gv-line); border-radius: 14px; padding: 16px 20px; margin: 0 0 12px; color: var(--gv-ink); }
.mgr-card__eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gv-muted); }
.mgr-card__big { margin: 0; font-family: var(--gv-font-display); font-size: 1.5rem; font-weight: 400; line-height: 1.2; }
.mgr-card__sub { margin: 4px 0 0; color: var(--gv-muted); font-size: 13px; }
.mgr-card__checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* Buttons in the tabs, at the prototype's two sizes: a pill 36px tall with 12px capitals, and a small one 32px tall
   with 10.5px capitals for row and card actions. The old page's rules grow from the text outwards (content-box), so a
   36px minimum became 46px in the guest list and 58px in the line-up; here the height is the whole button. The
   selector names the main column so it beats the components' own sizes (act board, guest list) without !important. */
.mgr-event .mgr-main .btn-primary,
.mgr-event .mgr-main .btn-alternative {
    box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: auto; min-height: 36px; padding: 0 16px; font-size: 12px; line-height: 1.2; letter-spacing: .08em;
}
.mgr-event .mgr-main .btn-sm {
    min-height: 32px; max-width: none; padding: 0 12px; font-size: 10.5px; letter-spacing: .07em; align-self: center;
}
.mgr-event .mgr-main td .btn-sm { vertical-align: middle; }
/* A link dressed as a button ("OPEN" on the acts board) gets the pill's outline too: the app draws it only on <button>. */
.mgr-event .mgr-main a.btn-primary,
.mgr-event .mgr-main a.btn-alternative { border-style: solid; border-width: .15em; border-radius: 10em; text-decoration: none; }
/* On a touch screen the prototype gives every button a bigger target. */
@media (pointer: coarse) {
    .mgr-event .mgr-main .btn-primary, .mgr-event .mgr-main .btn-alternative { min-height: 44px; }
    .mgr-event .mgr-main .btn-sm { min-height: 40px; }
}
/* Door's guest list: the search and the add row as one set of fields, as in the prototype (40px, 10px corners, a thin
   line). 16px text on a touch screen so the phone doesn't zoom in on them. */
.mgr-event .gl input:not([type="checkbox"]):not([type="radio"]),
.mgr-event .gl select {
    box-sizing: border-box; min-height: 40px; height: auto; padding: 0 12px; border: 1px solid var(--gv-line); border-radius: 10px;
    font-size: 14px; line-height: 1.2;
}
@media (pointer: coarse) {
    .mgr-event .gl input:not([type="checkbox"]):not([type="radio"]), .mgr-event .gl select { min-height: 44px; font-size: 16px; }
}
/* Door's guest list on a narrow screen: one row per guest, as in the prototype, instead of a six-column table squeezed
   until words break letter by letter. The name on top, "+1 · list · type · note" in grey under it, the buttons on the
   right. Same markup: the cells are laid out on a grid (the first four take a column each in the second line, sized to
   their words), and the column names stay for screen readers. The edit form and the "no guests" line span the row.
   Screens only: PRINT LIST keeps the table (a printed page is narrower than 768px). */
@media screen and (max-width: 767.98px) {
    .mgr-event .gl__head .gp-actions button { flex: none; }
    .mgr-event .gl__table, .mgr-event .gl__table tbody { display: block; }
    .mgr-event .gl__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .mgr-event .gl__table tr {
        display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto; align-items: center;
        row-gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--gv-line);
    }
    .mgr-event .gl__table td { display: block; padding: 0; border: 0; overflow-wrap: break-word; }
    .mgr-event .gl__table td:nth-child(1) { grid-column: 1 / 5; grid-row: 1; font-weight: 600; }
    .mgr-event .gl__table td:nth-child(2),
    .mgr-event .gl__table td:nth-child(3),
    .mgr-event .gl__table td:nth-child(4),
    .mgr-event .gl__table td:nth-child(5) { grid-row: 2; color: var(--gv-muted); font-size: 13px; white-space: nowrap; }
    .mgr-event .gl__table td:nth-child(2)::before { content: "+"; }
    .mgr-event .gl__table td:nth-child(3)::before,
    .mgr-event .gl__table td:nth-child(4)::before { content: "·"; padding: 0 6px; }
    /* The note gets a line of its own, so a long one wraps between words. */
    .mgr-event .gl__table td:nth-child(5) { grid-column: 1 / 5; grid-row: 3; white-space: normal; min-width: 0; }
    .mgr-event .gl__table td:nth-child(5):empty { display: none; }
    .mgr-event .gl__table td.gl__actions { grid-column: 5; grid-row: 1 / span 3; padding-left: 12px; font-size: 12px; }
    .mgr-event .gl__table td.gl__actions .ds__muted { display: inline-block; max-width: 7.5em; white-space: normal; text-align: right; line-height: 1.3; }
    .mgr-event .gl__table td.gl__actions .btn-sm:first-child { margin-left: 0; }
    .mgr-event .gl__table td[colspan] { grid-column: 1 / -1; grid-row: auto; color: inherit; font-size: inherit; font-weight: 400; white-space: normal; }
    .mgr-event .gl__table td[colspan]::before { content: none; }
}
/* The bookings that are not on the running order, under it in the List view. */
.lu-extra { margin-top: 16px; }
.lu-extra .gig-panel__heading h3 { margin: 0; font-size: 1.05rem; }
.lu-timeline__elsewhere { margin: 0 0 10px; }

/* ---------- one booking on the frame (BookingHubPage, .mgr-booking): both sides ---------- */
.mgr-booking { max-width: min(1440px, calc(100vw - 48px)); margin: 0 auto; padding: 28px 24px 56px; color: var(--gv-ink); }
.mgr-booking .mgr-head__title { font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.15; }
/* The same header card as the Event Manager and the prototype: 14px corners and a plain 1px edge. The status chip
   carries the colour. (Outside acts and venue bookings use .mgr-booking too.) */
.mgr-booking .mgr-head { border-radius: 14px; border-top-width: 1px; border-top-color: var(--gv-line); }
.mgr-booking .mgr-head__eyebrow .genre-chip { letter-spacing: 0; text-transform: none; }
/* The chat needs room to read: a wider right column than the event's inbox. */
@media (min-width: 1100px) {
    .mgr-booking .mgr:not(.mgr--single) .mgr-body { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); }
}
/* The section's cards. The prompts above them (did the gig happen, review) keep the same gap. */
.mgr-booking .mgr-main { display: flex; flex-direction: column; gap: 16px; }
.mgr-booking .mgr-main > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.mgr-booking__panel.gp-stack { gap: 16px; }
.mgr-booking__panel .form-container { width: 100%; max-width: none; margin: 0; padding: 0; }
.mgr-rail__load { margin: auto; }
/* Offer history, newest first. */
.mgr-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mgr-history__row { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-left: 3px solid var(--gv-lime); background: var(--gv-surface-2); border-radius: 0 10px 10px 0; }
.mgr-history__top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) {
    .mgr-booking { max-width: none; padding: 20px 14px 40px; }
}
/* The artist's gig card opens its booking page from the title (ArtistGigCard, shared frame on). */
.agc__link { color: inherit; text-decoration: none; }
.agc__link:hover, .agc__link:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: none; }
/* The chat panel inside a page: what it says before the first message. */
.chat-page__empty { margin: auto; padding: 16px; color: var(--gv-muted); font-size: 13px; text-align: center; }

/* ---------- the chat panel, compact and with quick replies (ChatPanel) ---------- */
.chat-page--compact { height: auto; max-height: 460px; min-height: 260px; border: 1px solid var(--gv-line); border-radius: 14px; overflow: hidden; }
.chat-header--compact { display: none; }
.chat-page__error { margin: 6px 12px 0; color: #ff8080; font-size: 13px; }
.chat-compose__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 8px; }
.chat-compose__chip { min-height: 32px; padding: 4px 12px; border-radius: var(--gv-radius-pill); border: 1px solid rgba(193, 254, 1, .45); background: transparent; color: var(--gv-lime); font-size: 12px; cursor: pointer; }
.chat-compose__chip:hover, .chat-compose__chip:focus-visible { background: rgba(193, 254, 1, .1); outline: none; }
/* The line-up drawer's messages: the compact chat panel (LineupQuickView). */
.lu-chat { margin: 6px 0 8px; }
.lu-chat .chat-page--compact { max-height: 380px; }

/* ---------- outside acts and venue bookings on the frame (ActAdvancePage, VenueBookingPage) ---------- */
/* One column without a chat: keep the act's sections at a readable width. */
.mgr-act { max-width: min(1180px, calc(100vw - 48px)); }
.mgr-head__notes:empty { display: none; }
.mgr-head__notes { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.mgr-head__notes > :first-child { margin-top: 0; }
.mgr-venue .mgr-main { gap: 16px; }
@media (max-width: 760px) { .mgr-act { max-width: none; } }
/* Previous and next act on the back row: readable pills that never push the page sideways. */
.mgr-back__extra .btn-sm { min-height: 32px; padding: 4px 10px; font-size: 11px; max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
