/* ============================================================================================================
   CLIENT LOOK — "Lobby family" (owner's pick 2026-11-13; docs/product/APP-BEHAVIOR.md, client look).
   The ONE stylesheet every client-facing page of this app uses for the look. Staff screens never match it:
   every rule is scoped by a wrapper class on the page's own root element.

     .lobby             the scope (tokens live on :root, inert until read). Alone it gives the warm ivory page
                        (forms, documents, money).
     .lobby .lobby-dark the fuller dark ground of the waiting room (short moments: thank-you, voice note, link expired,
                        payment received / failed). Put both classes on the page root: class="lobby lobby-dark".

   Building blocks (add the class to the page's EXISTING element — never add an element just for the look):
     .lobby-band        dark band in the lobby's colours with the gold line under it (top of forms / documents)
     .lobby-card        a card with the gold hairline and the lobby's two gold corner marks
     .lobby-eyebrow     small spaced capitals in gold
     .lobby-title       serif heading (Cormorant Garamond)            .lobby-ruled  gold rule under it (::after)
     .lobby-ruled.is-center  the rule centred
     .lobby-text        body copy in the muted tone of the ground      .lobby-rule   a gold rule as its own element
     .lobby-btn         gold button        .lobby-btn-outline  quiet outlined button
     .lobby-link        gold link          .lobby-mark  ring around an icon (gold; .is-bad = soft rose)
     .lobby-note        soft gold notice box (+ .is-info / .is-pending / .is-ok)  .lobby-foot   footer line
   The page's layout (LandingPageLayout app bar, PublicLayout header/footer) follows automatically: the rules at the end
   restyle them only while a .lobby page is on screen (:has), so the layouts themselves are not edited.

   Tokens come from the live waiting room, src/CoSurgCore.Endpoints/wwwroot/virtual-waiting/presentation.html (:root),
   which is served by the API app on its own host and keeps its own inline styles — it is the family's source.
   Fonts: Cormorant Garamond + Jost, loaded in index.html in the one Google Fonts request.
   ============================================================================================================ */

/* ---------- tokens ----------
   Declared on :root: they are inert names until a .lobby rule reads them, so staff screens are untouched, and they
   exist whether or not the browser knows :has() (a selector list holding :has() is dropped whole by an older
   browser — so every :has() rule in this file stands alone, never in a list with a plain selector). */
:root {
	--lb-ink: #1b2330; --lb-ink2: #3a4150; --lb-mut: #6f6858; --lb-soft: #9a9384;
	--lb-bg: #f8f3ea; --lb-paper: #fffdf8; --lb-line: #e8dfcc; --lb-field: #d8cdb5;
	--lb-gold: #c39b54; --lb-gold-soft: #e3c98f; --lb-gold-ink: #8a6a2e;
	--lb-gold-deep: #7a5c24;   /* gold text on the soft gold fill #f6ecd8 (5.3:1; gold-ink there is only 4.28) */
	--lb-night: #11161f; --lb-cream: #f6efe2; --lb-cream-dim: #e3dac6; --lb-white: #fbf7ee;
	--lb-teal: #6fd2c5; --lb-rose: #e08a96;
	--lb-serif: 'Cormorant Garamond', Georgia, serif;
	--lb-sans: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--lb-rule: linear-gradient(90deg, var(--lb-gold), var(--lb-gold-soft));
	--lb-band: radial-gradient(70% 140% at 82% 0%, rgba(195,155,84,.22), transparent 60%),
	           linear-gradient(125deg, #0f131a 0%, #1e160b 60%, #141922 100%);
	--lb-ground: radial-gradient(90% 70% at 78% 18%, rgba(195,155,84,.16), transparent 62%),
	             linear-gradient(125deg, #0f131a 0%, #1a150d 58%, #11161f 100%);
	/* what the building blocks read — ivory by default, swapped by .lobby-dark (and inside a .lobby-band) */
	--lb-fg: var(--lb-ink); --lb-fg-mut: var(--lb-mut); --lb-heading: var(--lb-ink);
	--lb-accent: var(--lb-gold-ink); --lb-hair: var(--lb-line);
}
.lobby-dark {
	--lb-fg: var(--lb-cream); --lb-fg-mut: var(--lb-cream-dim); --lb-heading: var(--lb-white);
	--lb-accent: var(--lb-gold-soft); --lb-hair: rgba(227,201,143,.18);
}
body:has(.lobby-dark) {
	--lb-fg: var(--lb-cream); --lb-fg-mut: var(--lb-cream-dim); --lb-heading: var(--lb-white);
	--lb-accent: var(--lb-gold-soft); --lb-hair: rgba(227,201,143,.18);
}

.lobby { font-family: var(--lb-sans); color: var(--lb-fg); background: var(--lb-bg); -webkit-font-smoothing: antialiased; }
.lobby.lobby-dark { background: transparent; }   /* the dark ground is painted on the layout behind it (end of file) */
/* Mud text takes the family's sans (Mud sets its own font on every typography class). */
.lobby .mud-typography { font-family: var(--lb-sans); }

/* ---------- building blocks ---------- */
.lobby .lobby-band { background: var(--lb-band); color: var(--lb-cream); box-shadow: inset 0 -2px 0 rgba(195,155,84,.55); }

.lobby .lobby-card {
	position: relative; background: var(--lb-paper); color: var(--lb-fg);
	border: 1px solid rgba(195,155,84,.38); border-radius: 16px; box-shadow: 0 14px 34px rgba(60,44,20,.07);
}
.lobby-dark .lobby-card {
	background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
	border-color: rgba(195,155,84,.42); box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.lobby .lobby-card::before, .lobby .lobby-card::after {
	content: ""; position: absolute; width: 16px; height: 16px; border: 1.5px solid var(--lb-gold); opacity: .55; pointer-events: none;
}
.lobby .lobby-card::before { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.lobby .lobby-card::after { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }
.lobby-dark .lobby-card::before, .lobby-dark .lobby-card::after { opacity: .75; }

.lobby .lobby-eyebrow { font-family: var(--lb-sans); font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--lb-accent); }
.lobby-dark .lobby-eyebrow { letter-spacing: .3em; }

.lobby .lobby-title { font-family: var(--lb-serif); font-weight: 500; letter-spacing: 0; line-height: 1.12; color: var(--lb-heading); }
.lobby .lobby-ruled::after { content: ""; display: block; width: 56px; height: 2px; margin: 14px 0 0; background: var(--lb-rule); }
.lobby .lobby-ruled.is-center::after { margin-left: auto; margin-right: auto; }
.lobby .lobby-rule { display: block; width: 72px; height: 2px; border: 0; margin: 14px 0; background: var(--lb-rule); }

.lobby .lobby-text { font-family: var(--lb-sans); color: var(--lb-fg-mut); font-weight: 400; line-height: 1.6; }

.lobby .lobby-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
	border-radius: 10px; border: 1px solid var(--lb-gold); background: linear-gradient(180deg, #d2ad68, var(--lb-gold));
	color: var(--lb-night) !important; font-family: var(--lb-sans); font-weight: 500; font-size: 15px; text-decoration: none !important;
	transition: filter .18s ease;
}
.lobby .lobby-btn:hover { filter: brightness(1.06); }
.lobby .lobby-btn-outline {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
	border-radius: 99px; border: 1px solid rgba(195,155,84,.5); background: transparent; color: var(--lb-fg) !important;
	font-family: var(--lb-sans); font-weight: 400; text-decoration: none !important;
}
.lobby-dark .lobby-btn-outline { background: rgba(255,255,255,.04); border-color: rgba(227,201,143,.45); }

/* Mud's colour helpers carry !important, so the link colour does too (scoped to .lobby). */
.lobby .lobby-link { color: var(--lb-accent) !important; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(195,155,84,.55); }

.lobby .lobby-mark {
	width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	border: 1px solid rgba(195,155,84,.5); background: #fbf4e4; color: var(--lb-gold-ink); box-shadow: none;
}
.lobby-dark .lobby-mark { background: rgba(195,155,84,.08); border-color: rgba(227,201,143,.55); color: var(--lb-gold-soft); }
.lobby .lobby-mark .mud-icon-root { color: inherit !important; font-size: 1.75rem !important; }
.lobby .lobby-mark.is-bad { background: rgba(224,138,150,.08); border-color: rgba(224,138,150,.55); color: var(--lb-rose); }

.lobby .lobby-note { background: #f6ecd8; border: 1px solid #ead9b3; color: var(--lb-ink2); border-radius: 12px; }
.lobby-dark .lobby-note { background: rgba(195,155,84,.12); border-color: rgba(227,201,143,.42); color: var(--lb-cream-dim); }
/* Kinds of notice, so notices that meant different things still look different: a left edge and a faint tint.
   .is-info soft gold · .is-pending amber · .is-ok teal (the waiting room's live colour). Readable on ivory and dark. */
.lobby .lobby-note.is-info { border-left: 3px solid var(--lb-gold); }
.lobby .lobby-note.is-pending { background: #f8e6c4; border-color: #e8c98a; border-left: 3px solid #c98a2b; }
.lobby .lobby-note.is-ok { background: #e6f2ee; border-color: #bfdcd3; border-left: 3px solid #3f9e90; }
.lobby-dark .lobby-note.is-info { border-left: 3px solid var(--lb-gold-soft); }
.lobby-dark .lobby-note.is-pending { background: rgba(224,160,72,.14); border-color: rgba(236,182,102,.5); border-left: 3px solid #ecb666; color: var(--lb-cream); }
.lobby-dark .lobby-note.is-ok { background: rgba(111,210,197,.10); border-color: rgba(111,210,197,.45); border-left: 3px solid var(--lb-teal); color: var(--lb-cream); }

.lobby .lobby-foot { color: var(--lb-mut); letter-spacing: .06em; font-family: var(--lb-sans); }
.lobby-dark .lobby-foot { color: rgba(227,218,198,.66); }

/* ---------- forms and documents: the band pages (ivory .lobby without .lobby-dark) ---------- */
/* Inside the band the building blocks read the dark set: heading in white, text in cream, accent in soft gold. */
.lobby .lobby-band { --lb-fg: var(--lb-cream); --lb-fg-mut: var(--lb-cream-dim); --lb-heading: var(--lb-white); --lb-accent: var(--lb-gold-soft); }

/* .lobby-band.is-bleed — the band runs edge to edge of the screen from inside a centred page. Only its paint is
   widened (a layer behind it), so the page's own widths and layout are unchanged; the layout clips the overflow. The
   layer also reaches 24px up, under the fixed bar, so the layout's loading-bar slot never shows as a light seam. */
.lobby .lobby-band.is-bleed { position: relative; isolation: isolate; background: none; box-shadow: none; }
.lobby .lobby-band.is-bleed::before {
	content: ""; position: absolute; z-index: -1; top: -24px; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
	background: var(--lb-band); box-shadow: inset 0 -2px 0 rgba(195,155,84,.55); pointer-events: none;
}
/* Default room for a band (zero specificity, so a page that sizes its own band wins) and the size of a Mud title in it. */
:where(.lobby .lobby-band.is-bleed) { padding-top: 34px; padding-bottom: 32px; margin-bottom: 28px; }
.lobby .lobby-band .mud-typography.lobby-title { font-size: clamp(2rem, 1.55rem + 1.4vw, 2.6rem); }
.lobby .lobby-band .mud-typography.lobby-text { font-size: 1rem; }

/* Mud's controls on an ivory page. Its "primary" becomes the lobby's ink (chips, checkboxes, switches, focused fields,
   the date picker); field edges the warm hairline. Popovers (date picker, selects) render outside the page, so the
   same values are set on body while such a page is shown — two rules, never one list (see tokens). */
.lobby:not(.lobby-dark) {
	--mud-palette-primary: #1b2330; --mud-palette-primary-rgb: 27,35,48; --mud-palette-primary-text: #f6efe2;
	--mud-palette-primary-darken: #11161f; --mud-palette-primary-lighten: #3a4150; --mud-palette-primary-hover: rgba(27,35,48,.06);
	--mud-palette-lines-inputs: #d8cdb5; --mud-palette-action-disabled-background: #ece6da;
}
body:has(.lobby:not(.lobby-dark)) {
	--mud-palette-primary: #1b2330; --mud-palette-primary-rgb: 27,35,48; --mud-palette-primary-text: #f6efe2;
	--mud-palette-primary-darken: #11161f; --mud-palette-primary-lighten: #3a4150; --mud-palette-primary-hover: rgba(27,35,48,.06);
	--mud-palette-lines-inputs: #d8cdb5; --mud-palette-action-disabled-background: #ece6da;
}
.lobby:not(.lobby-dark) .mud-input.mud-input-outlined { background: #fff; border-radius: 10px; }
.lobby:not(.lobby-dark) .mud-input.mud-input-outlined .mud-input-outlined-border { border-radius: 10px; }
.lobby:not(.lobby-dark) :is(.mud-input, .mud-input-label, .mud-input-helper-text, .mud-button-root, .mud-chip) { font-family: var(--lb-sans); }
/* Filled buttons take the lobby's gold; outlined ones the quiet ivory button. Words and casing as written. */
.lobby:not(.lobby-dark) .mud-button-root { text-transform: none; letter-spacing: .02em; font-weight: 500; }
.lobby:not(.lobby-dark) .mud-button-filled.mud-button-filled-primary:not(:disabled) {
	background: linear-gradient(180deg, #d2ad68, var(--lb-gold)); color: var(--lb-night); border: 1px solid var(--lb-gold);
	--mud-ripple-color: var(--lb-night); box-shadow: 0 8px 20px rgba(138,106,46,.18);
}
.lobby:not(.lobby-dark) .mud-button-filled.mud-button-filled-primary:not(:disabled):hover { filter: brightness(1.05); }
.lobby:not(.lobby-dark) .mud-button-outlined { border: 1px solid var(--lb-field); color: var(--lb-ink); background: var(--lb-paper); border-radius: 10px; }
.lobby:not(.lobby-dark) .mud-button-outlined:hover { border-color: var(--lb-gold); background: #fbf4e4; }
/* Info notices read as the lobby's soft gold note; warnings and errors keep their own colours. */
.lobby:not(.lobby-dark) .mud-alert-text-info { background: #f6ecd8; color: var(--lb-ink2); border: 1px solid #ead9b3; border-radius: 12px; }
.lobby:not(.lobby-dark) .mud-alert-text-info .mud-alert-icon { color: var(--lb-gold-ink); }
.lobby:not(.lobby-dark) .mud-alert-outlined-info { border-color: #ead9b3; background: #f6ecd8; color: var(--lb-ink2); }
.lobby:not(.lobby-dark) .mud-alert-outlined-info .mud-alert-icon { color: var(--lb-gold-ink); }
.lobby:not(.lobby-dark) .mud-alert-outlined-success { border-color: #bfdcd3; background: #e6f2ee; color: var(--lb-ink2); }
.lobby:not(.lobby-dark) .mud-alert-outlined-success .mud-alert-icon { color: #3f9e90; }
/* The progress line in deep gold on a pale warm track (≈4:1, so the part done reads against the part to do). */
.lobby:not(.lobby-dark) .mud-progress-linear.mud-progress-linear-color-primary::before { background-color: #efe4cc; opacity: 1; }
.lobby:not(.lobby-dark) .mud-progress-linear.mud-progress-linear-color-primary .mud-progress-linear-bar { background-color: var(--lb-gold-ink); }

/* ---------- booking pages: /book-appointment and the coordinator link /available-appointments/scheduler ----------
   Root: the page's .appointment-booking-shell plus .lobby. The layout's top bar is the band (neither page has a title of
   its own to move into it). The doctor / coordinator card, the calendar and the slots are ivory lobby cards; the
   calendar's marks are gold. Look only: every rule below is scoped to these two pages. The calendar's pills carry their
   colour inline; each kind is matched by the class the page sets on its calendar event (is-available, is-full,
   is-loading, is-blocked — BpCalendarEvent.CssClass), never by the words it shows. */
.lobby.appointment-booking-shell { background: transparent; }
.lobby.appointment-booking-shell :is(.doctor-card, .coordinator-card, .calendar-card, .slots-card, .doctor-selector-card) {
	border-radius: 16px; box-shadow: 0 14px 34px rgba(60,44,20,.07);
}
.lobby.appointment-booking-shell .lobby-title.mud-typography-h6 { font-family: var(--lb-serif); font-weight: 500 !important; font-size: 1.45rem; color: var(--lb-ink) !important; }
.lobby.appointment-booking-shell .lobby-title.mud-typography-h6 .mud-icon-root { color: var(--lb-gold-ink); font-size: 1.25rem; }
.lobby.appointment-booking-shell .lobby-title.mud-typography-h5 { font-family: var(--lb-serif); font-weight: 500 !important; font-size: 1.7rem; }
/* The doctor / coordinator card: ink on ivory, the initials and the fact icons in gold rings. */
.lobby.appointment-booking-shell :is(.doctor-card, .coordinator-card) { color: var(--lb-ink); }
.lobby.appointment-booking-shell :is(.doctor-avatar, .coordinator-avatar) {
	background: #fbf4e4; border: 1px solid rgba(195,155,84,.55); color: var(--lb-gold-ink);
	font-family: var(--lb-serif); font-weight: 500; font-size: 2.1rem;
}
.lobby.appointment-booking-shell .info-icon { border-radius: 50%; background: #fbf4e4; border: 1px solid rgba(195,155,84,.5); color: var(--lb-gold-ink); }
.lobby.appointment-booking-shell :is(.doctor-card, .coordinator-card) .mud-divider { background: var(--lb-line) !important; }
.lobby.appointment-booking-shell :is(.doctor-card, .coordinator-card) .mud-typography-caption { color: var(--lb-mut); opacity: 1 !important; letter-spacing: .04em; }
/* The chosen day, the slots */
.lobby.appointment-booking-shell .selected-date-badge { background: var(--lb-night); color: var(--lb-gold-soft); font-weight: 500; }
.lobby.appointment-booking-shell .slot-button { border: 1px solid var(--lb-field) !important; background: #fff; border-radius: 10px !important; }
.lobby.appointment-booking-shell .slot-button:hover:not(:disabled) {
	border-color: var(--lb-gold) !important; background: #fbf4e4 !important; box-shadow: inset 0 0 0 1px var(--lb-gold), 0 6px 16px rgba(138,106,46,.12);
}
.lobby.appointment-booking-shell .slot-button .mud-icon-root { color: var(--lb-gold-ink) !important; }
/* A slot that cannot be booked (the read-only link, the cooldown) still reads as off. */
.lobby.appointment-booking-shell .slot-button:disabled { background: #f4eee2; border-color: var(--lb-line) !important; }
.lobby.appointment-booking-shell .slot-button:disabled :is(.slot-time, .mud-icon-root) { color: var(--lb-soft) !important; }
.lobby.appointment-booking-shell .slot-time { font-family: var(--lb-sans); font-weight: 500; color: var(--lb-ink); }
.lobby.appointment-booking-shell .mud-divider { border-color: var(--lb-line); }
/* The read-only note (coordinator link opened without a coordinator): the soft gold box; its words in ink. */
.lobby.appointment-booking-shell .read-only-banner.lobby-note { padding: 16px 20px; }
.lobby.appointment-booking-shell .read-only-banner .mud-typography { color: var(--lb-ink2) !important; }
.lobby.appointment-booking-shell .read-only-banner .mud-typography-subtitle1 { color: var(--lb-ink) !important; }
.lobby.appointment-booking-shell .read-only-banner .mud-icon-root { color: var(--lb-gold-ink) !important; }
/* The calendar (BpCalendar, month view) */
.lobby.appointment-booking-shell .bp-calendar-view-title-btn .bp-calendar-view-title { font-family: var(--lb-serif); font-weight: 500; font-size: 1.45rem; color: var(--lb-ink); }
.lobby.appointment-booking-shell .bp-cal-table { border-color: var(--lb-line); border-radius: 12px; }
.lobby.appointment-booking-shell .bp-cal-table :is(th, td) { border-color: var(--lb-line); }
.lobby.appointment-booking-shell .bp-cal-table th { background: #fbf6ec; color: var(--lb-gold-ink); font-weight: 500; letter-spacing: .14em; }
.lobby.appointment-booking-shell .bp-cal-day-cell { background: var(--lb-paper); }
.lobby.appointment-booking-shell .bp-cal-day-cell-clickable:hover .bp-cal-day-cell { background: #fbf4e4; }
.lobby.appointment-booking-shell .bp-cal-day.bp-cal-other-month .bp-cal-day-cell { background: #f4eee2; }
.lobby.appointment-booking-shell .bp-cal-day.bp-cal-day-today .bp-cal-day-cell { background: #fbf4e4; outline-color: var(--lb-gold); }
.lobby.appointment-booking-shell .bp-cal-month-pill-event { box-shadow: none; font-weight: 500; }
.lobby.appointment-booking-shell .bp-cal-month-pill-event.is-available { background: #f6ecd8 !important; color: var(--lb-gold-deep); border: 1px solid #e3c98f; }
.lobby.appointment-booking-shell .bp-cal-month-pill-event.is-full { background: #ece6da !important; color: var(--lb-ink2); border: 1px solid #ddd3bf; }
.lobby.appointment-booking-shell .bp-cal-month-pill-event.is-loading { background: #f3eee4 !important; color: var(--lb-mut); }
.lobby.appointment-booking-shell .bp-cal-month-pill-event.is-blocked { background: rgba(224,138,150,.16) !important; color: #a4404f; border: 1px solid rgba(224,138,150,.55); }
.lobby.appointment-booking-shell .bp-cal-month-pill-due { background: var(--lb-night); color: var(--lb-gold-soft); border-color: var(--lb-night); }

/* ---------- money pages: the quote (/public/quote/…), payment received and could not be completed ----------
   Look only. Nothing here decides or hides what is paid: every figure, branch and button is in the markup as before.
   Quote (root .lobby.quote-page, band): the quote's own header (number, name, status) is the dark band under the public
   header; the figures stay plain ink on the ivory card for reading; the total in serif over a gold rule. */
.lobby.quote-page { background: transparent; }
.lobby.quote-page .quote-shell { margin-top: 0 !important; }
.lobby.quote-page .quote-band { max-width: 720px; margin: 0 auto 26px; padding: 30px 24px 30px; }
.lobby.quote-page .quote-band .mud-typography.lobby-title { font-weight: 500 !important; font-size: clamp(1.9rem, 1.6rem + 1vw, 2.3rem); }
.lobby.quote-page .quote-band .mud-typography.lobby-text { color: var(--lb-cream-dim) !important; font-size: 1rem; }
.lobby.quote-page .quote-band .mud-chip { align-self: flex-start; margin: 4px 0 0; background: transparent; border: 1px solid rgba(227,201,143,.55); color: var(--lb-gold-soft); font-family: var(--lb-sans); letter-spacing: .08em; }
/* The header's rule went up with the header; the band's gold line takes its place. */
.lobby.quote-page .quote-card .quote-head-rule { display: none; }
.lobby.quote-page .quote-card { color: var(--lb-ink); }
.lobby.quote-page .quote-lines { background: transparent; box-shadow: none; }
.lobby.quote-page .quote-lines :is(th, td) { font-family: var(--lb-sans); color: var(--lb-ink); border-bottom-color: var(--lb-line); }
.lobby.quote-page .quote-lines th { color: var(--lb-gold-ink); font-weight: 500; letter-spacing: .06em; }
.lobby.quote-page .quote-lines td { font-variant-numeric: tabular-nums; }
.lobby.quote-page .quote-totals .mud-typography { color: var(--lb-ink); font-variant-numeric: tabular-nums; }
.lobby.quote-page .quote-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid transparent; border-image: var(--lb-rule) 1; align-items: baseline; }
.lobby.quote-page .quote-total .mud-typography { font-family: var(--lb-serif); font-weight: 600 !important; font-size: 1.75rem; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; }
.lobby.quote-page .quote-totals .mud-typography-caption { color: var(--lb-mut) !important; letter-spacing: .02em; }
.lobby.quote-page .quote-closed { color: var(--lb-mut) !important; }
/* The answer after accept / decline: the lobby's teal note (success), as on the other ivory pages. */
.lobby.quote-page .mud-alert-text-success { background: #e6f2ee; color: var(--lb-ink2); border: 1px solid #bfdcd3; border-radius: 12px; }
.lobby.quote-page .mud-alert-text-success .mud-alert-icon { color: #3f9e90; }
.lobby.quote-page .quote-lines table td:not(:first-child) { white-space: nowrap; }
/* Room under the last line (the buttons) so the card's bottom-right gold corner mark sits clear of them (mark: 9px in,
   16px tall; 12px on a phone). */
.lobby.quote-page .quote-card.pa-6 { padding-bottom: 36px !important; }
/* On a phone the four columns fit the card (they scrolled sideways before, hiding Amount): tighter cells and margins
   only; every column and figure stays. The table still scrolls if a figure is ever wider. */
@media (max-width: 600px) {
	.lobby.quote-page .quote-shell { margin-left: 0 !important; margin-right: 0 !important; }
	.lobby.quote-page .quote-band { padding: 24px 18px 24px; margin-bottom: 20px; }
	.lobby.quote-page .quote-card.pa-6 { padding: 22px 14px 32px !important; }
	.lobby.quote-page .quote-lines table :is(th, td) { padding: 8px 5px; font-size: .85rem; }
	.lobby.quote-page .quote-lines table th { letter-spacing: .02em; }
	.lobby.quote-page .quote-lines table :is(th, td):first-child { padding-left: 2px; }
	.lobby.quote-page .quote-lines table :is(th, td):last-child { padding-right: 2px; }
}

/* Payment received / could not be completed (root .lobby.lobby-dark): the fuller dark, a gold ring (soft rose on
   failure), serif heading over the gold rule. Each page's own <style> keeps its layout; only the colours, type and
   ring are taken over here. */
.lobby-dark:is(.success-page, .failure-page) { min-height: calc(100vh - 64px); }
.lobby-dark:is(.success-page, .failure-page) :is(.success-card, .failure-card) { padding: 44px 40px 40px; }
.lobby-dark:is(.success-page, .failure-page) :is(.success-icon-wrapper, .failure-icon-wrapper) { margin-bottom: 22px; }
.lobby-dark:is(.success-page, .failure-page) :is(.success-title, .failure-title) { font-size: 2.15rem; margin: 0 0 14px; }
.lobby-dark:is(.success-page, .failure-page) :is(.success-subtitle, .failure-subtitle) { font-size: 1rem; }
.lobby-dark:is(.success-page, .failure-page) .transaction-id { color: var(--lb-fg-mut); opacity: .8; letter-spacing: .04em; font-variant-numeric: tabular-nums; word-break: break-all; }
.lobby-dark:is(.success-page, .failure-page) .contact-info { padding-top: 18px; border-top: 1px solid var(--lb-hair); }
.lobby-dark:is(.success-page, .failure-page) .contact-info .mud-text-secondary { color: var(--lb-fg-mut) !important; }
.lobby-dark:is(.success-page, .failure-page) .footer-links { padding: 22px 20px; }
@media (max-width: 600px) {
	.lobby-dark:is(.success-page, .failure-page) { min-height: calc(100vh - 56px); }
	.lobby-dark:is(.success-page, .failure-page) :is(.success-card, .failure-card) { padding: 32px 22px 28px; }
	.lobby-dark:is(.success-page, .failure-page) :is(.success-title, .failure-title) { font-size: 1.85rem; }
}

/* ---------- the layout around a lobby page (only while one is on screen) ---------- */
html:has(.lobby) { background: var(--lb-bg, #f8f3ea); }
html:has(.lobby-dark) { background: #11161f; }

/* LandingPageLayout — app bar becomes the band, with the gold logo in its (empty) left slot; the language button stays. */
body:has(.lobby) .landing-appbar {
	background: var(--lb-band) !important; border-bottom: 0; box-shadow: inset 0 -2px 0 rgba(195,155,84,.55);
	backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--lb-cream);
}
body:has(.lobby) .landing-appbar .appbar-left::before {
	content: ""; display: block; width: 122px; height: 48px;
	background: url('../images/fusionMD_logo.png') left center / contain no-repeat;
	filter: drop-shadow(0 4px 12px rgba(0,0,0,.45));
}
body:has(.lobby) .landing-appbar .action-icon-btn,
body:has(.lobby) .landing-appbar .mud-icon-button { color: var(--lb-gold-soft) !important; }
body:has(.lobby) .landing-appbar .appbar-divider { background: linear-gradient(180deg, transparent 0%, rgba(227,201,143,.35) 20%, rgba(227,201,143,.35) 80%, transparent 100%); }
body:has(.lobby) .landing-content-area { background: var(--lb-bg); }
/* A page with an edge-to-edge band: the bar hands its gold line to the band, and the widened paint is clipped. */
/* ...but only while the band is directly under the bar: a notice above the band (the no-fee form's expired invitation)
   keeps the bar's own line. */
body:has(.lobby .lobby-band.is-bleed):not(:has(.lobby > .mud-alert ~ * .lobby-band.is-bleed)) .landing-appbar { box-shadow: none; }
body:has(.lobby .lobby-band.is-bleed) .landing-content-area { overflow-x: clip; }

body:has(.lobby-dark) .landing-appbar {
	background: rgba(15,19,26,.55) !important; box-shadow: none;
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
body:has(.lobby-dark) .landing-content-area { background: var(--lb-ground); background-color: #11161f; }

/* PublicLayout — header becomes the band with the gold logo; footer quiet. */
body:has(.lobby) .public-page-container { background: var(--lb-bg); font-family: var(--lb-sans); }
body:has(.lobby) .public-header { background: var(--lb-band); box-shadow: inset 0 -2px 0 rgba(195,155,84,.55); }
body:has(.lobby) .public-header .public-logo-img { content: url('../images/fusionMD_logo.png'); filter: drop-shadow(0 4px 12px rgba(0,0,0,.45)); }
body:has(.lobby) .public-header .header-contact { background: transparent; border: 1px solid rgba(227,201,143,.5); color: var(--lb-gold-soft); font-family: var(--lb-sans); }
body:has(.lobby) .public-footer { background: transparent; }
body:has(.lobby) .public-footer .footer-content p { color: var(--lb-mut); letter-spacing: .04em; font-family: var(--lb-sans); }
body:has(.lobby) .public-footer .footer-links a { color: var(--lb-gold-ink); }
/* A page with an edge-to-edge band: the header hands its gold line to the band, and the widened paint is clipped. */
body:has(.lobby .lobby-band.is-bleed):not(:has(.lobby > .mud-alert ~ * .lobby-band.is-bleed)) .public-header { box-shadow: none; }
body:has(.lobby .lobby-band.is-bleed) .public-page-container { overflow-x: clip; }

body:has(.lobby-dark) .public-page-container { background: var(--lb-ground); background-color: #11161f; }
body:has(.lobby-dark) .public-header { background: transparent; box-shadow: none; }
body:has(.lobby-dark) .public-footer { border-top: 1px solid rgba(227,201,143,.18); }
body:has(.lobby-dark) .public-footer .footer-content p { color: rgba(227,218,198,.66); }
body:has(.lobby-dark) .public-footer .footer-links a { color: var(--lb-gold-soft); }

/* A browser without :has() (Safari < 15.4, Chrome < 105, Firefox < 121) leaves the layout light; the dark page then paints
   its own ground so its cream text never lands on white. */
@supports not selector(:has(*)) {
	/* ...and an edge-to-edge band paints only its own box, since the layout cannot clip the widened paint. */
	.lobby .lobby-band.is-bleed::before { left: 0; right: 0; }
	.lobby.lobby-dark { background: var(--lb-ground); background-color: #11161f; border-radius: 16px; padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 600px) {
	.lobby .lobby-card::before, .lobby .lobby-card::after { width: 12px; height: 12px; }
	body:has(.lobby) .landing-appbar .appbar-left::before { width: 96px; height: 40px; }
}
