/* ==========================================================================
   WedPlanner styles. Brand colours: keep in sync with Components/Layout/AppTheme.cs
   ========================================================================== */
html.wp-dark { color-scheme: dark; --wp-other: #C7AEF0; --wp-other-bg: rgba(160, 120, 225, .24); } /* native scrollbars and form controls follow the theme */
:root {
    /* Weddings from the user's other teams: violet, apart from the blue services, gold accents and status colours. */
    --wp-other: #6B4E9B;
    --wp-other-bg: rgba(122, 91, 166, .14);
    --wp-gold: #B08D57;
    --wp-gold-dark: #8E6F3F;
    --wp-gold-light: #D9BE8E;
    --wp-ink: #1C1B1A;
    --wp-cream: #F7F5F2;
    --wp-line: #ECE8E2;
    --wp-muted: #6B6762;
    /* The one corner radius for everything rounded (cards, inputs, buttons, dialogs, chips, labels, images); keep in
       sync with DefaultBorderRadius in AppTheme.cs. Only true circles (avatars, icon buttons, dots, counters) differ. */
    --wp-radius: 6px;
    --wp-bottom-nav: 64px;
    /* Under the bottom bar's buttons, over the iPhone's home line: not the whole 34 pt the iPhone keeps clear (the
       buttons then floated high, ~44 pt of empty bar under their names), only what keeps them off the line itself
       (it takes the lowest ~13 pt): 10 pt, the names ~18 pt above the screen's edge (Bruno, 2026-11-05, as in the CCTV
       app). 0 where there is no home line. Things at the screen's foot without the bar under them (dialogs, sheets,
       the lightbox) keep the whole safe area. */
    --wp-nav-pad: max(0px, calc(env(safe-area-inset-bottom, 0px) - 24px));
}

html, body { font-family: "Titillium Web", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-tap-highlight-color: transparent; }
body { background: var(--mud-palette-background, var(--wp-cream)); }
/* Dark from the first paint: the page streams in, and MudBlazor's palette can arrive a frame after the body, which
   showed the light fallback for a moment (Bruno, 2026-10-24). */
html.wp-dark, html.wp-dark body { background: var(--mud-palette-background, #121110); color: var(--mud-palette-text-primary, #EDE9E3); }
html.wp-neon, html.wp-neon body { background: var(--mud-palette-background, #060C26); color: var(--mud-palette-text-primary, #EEF3FF); }
/* With a personal background picture the colour stays on the page itself only: on the body it would cover the picture. */
html.wp-dark body:has(.app-bg) { background: transparent; }

/* Scrollbars stay hidden and show only while something scrolls, fading out smoothly once it stops: app.js puts
   .is-scrolling on the scrolling element for a moment. The thumb colour is a registered property so it can fade. */
@property --wp-sb { syntax: '<color>'; inherits: false; initial-value: transparent; }
/* MudBlazor's theme injects "html, body * { scrollbar-color }" inline, so this needs a little more specificity. */
html:root, body :not(:root) { scrollbar-color: var(--wp-sb) transparent; }
:where(*) { transition: --wp-sb .6s ease; }
.mud-paper { transition: box-shadow 300ms cubic-bezier(.4, 0, .2, 1), --wp-sb .6s ease; } /* keeps Mud's own transition (menus, dropdown lists) */
:where(.is-scrolling) { --wp-sb: rgba(28, 27, 26, .38); transition-duration: .15s; }
:where(html.wp-dark .is-scrolling, html.wp-dark.is-scrolling) { --wp-sb: rgba(255, 255, 255, .34); }
/* Browsers without scrollbar-color (older Safari): same idea, without the fade. */
@supports not (scrollbar-color: auto) {
    :root ::-webkit-scrollbar-thumb, :root::-webkit-scrollbar-thumb { background: transparent; border-radius: 999px; }
    .is-scrolling::-webkit-scrollbar-thumb { background: rgba(128, 124, 120, .5); }
}

/* Every badge is one size (Bruno, 2026-10-24): status, services, roles, team, locations, deliveries, countdown and the
   picker chips all take the height, text and icon of the "Serviços incluídos" tiles; the width follows the text.
   Counters stay small circles. MudBlazor hard-codes pill-shaped chips in three sizes, hence its size classes here. */
:root { --wp-badge-h: 46px; --wp-badge-font: .9rem; --wp-badge-icon: 24px; }
.mud-chip, .mud-chip.mud-chip-size-small, .mud-chip.mud-chip-size-medium, .mud-chip.mud-chip-size-large,
.tag, .team-tag, .team-role, .countdown-chip, .loc-chip, .loc-state, .deliv-chip, .crew-chip, .wnote-new, .visibility-badge {
    display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; height: var(--wp-badge-h); padding: 0 12px;
    border-radius: var(--wp-radius); font-size: var(--wp-badge-font); font-weight: 600; line-height: 1.2; white-space: nowrap; }
:is(.mud-chip, .tag, .team-tag, .team-role, .countdown-chip, .loc-chip, .loc-state, .deliv-chip, .visibility-badge) .mud-icon-root {
    width: var(--wp-badge-icon); height: var(--wp-badge-icon); font-size: var(--wp-badge-icon); flex: none; }
.mud-chip .mud-chip-icon { margin: 0; } /* the gap spaces it, as in the tiles */

/* Counters (unread, tab totals) are always round: a circle for one digit, a pill with round ends for more. */
.mud-badge:not(.mud-badge-dot):not(.mud-badge-icon), .unread-count, .nav-count, .unread-pill {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    font-size: 11px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
}

/* Clickable icons sit on a soft accent-tinted circle so they read as buttons. Icons inside inputs (clock, clear,
   dropdown) and chips stay bare, and filled icon buttons keep their own colour. */
.mud-icon-button:not(.mud-button-filled):not(.mud-switch-base):not(.mud-input-adornment *):not(.mud-input-clear-button):not(.mud-chip *), .chat-tool { background-color: color-mix(in srgb, var(--mud-palette-primary) 11%, transparent); border-radius: 50%; }
.mud-icon-button:not(.mud-button-filled):not(.mud-switch-base):not(.mud-input-adornment *):not(.mud-input-clear-button):not(.mud-chip *):hover, .chat-tool:hover { background-color: color-mix(in srgb, var(--mud-palette-primary) 22%, transparent); }
.mud-icon-button:disabled { background-color: transparent !important; }
.mud-input-adornment .mud-icon-button, .mud-chip .mud-icon-button, .mud-input-control .mud-input-adornment .mud-icon-button:hover { background-color: transparent; }
/* With a mouse, every clickable icon fills with its colour on hover, so it reads as clickable (Bruno, 2026-10-24): the
   accent by default, red for delete, blue for the services' notes. Icons inside inputs just take the accent. */
.row-delete, .hero-delete { --wp-hover-fill: var(--mud-palette-error); --wp-hover-ink: #fff; }
.row-services > .svc-notes { --wp-hover-fill: var(--mud-palette-info); --wp-hover-ink: #fff; }
@media (hover: hover) {
    :is(.mud-icon-button:not(.mud-button-filled):not(.mud-switch-base):not(.mud-input-adornment *):not(.mud-input-clear-button):not(.mud-chip *):not(:disabled),
        .chat-tool, .member-chat, .msg-act, .row-services > :is(.svc-notes, .row-chat, .row-notes), .rp-actions > *) { transition: background-color .15s ease, color .15s ease; }
    :is(.mud-icon-button:not(.mud-button-filled):not(.mud-switch-base):not(.mud-input-adornment *):not(.mud-input-clear-button):not(.mud-chip *):not(:disabled),
        .chat-tool, .member-chat, .msg-act, .row-services > :is(.svc-notes, .row-chat, .row-notes), .rp-actions > *):hover {
        background-color: var(--wp-hover-fill, var(--mud-palette-primary)) !important; color: var(--wp-hover-ink, var(--mud-palette-primary-text)) !important; }
    .mud-input-adornment .mud-icon-button:not(:disabled):hover { color: var(--mud-palette-primary) !important; }
}
/* Keyboard focus shows as a ring on the same icons. */
:is(.mud-icon-button, .chat-tool, .member-chat, .msg-act, .row-services > :is(.svc-notes, .row-chat, .row-notes), .rp-actions > *):focus-visible {
    outline: 2px solid var(--wp-hover-fill, var(--mud-palette-primary)); outline-offset: 2px; }
/* One control height: buttons, inputs (all dense outlined, 40px) and icon buttons line up side by side. */
.mud-button-root.mud-button { min-height: 40px; }
/* A toggle group's 1px outline goes around its segments, so they are 38px and the group is 40px like the buttons beside it
   (Bruno, 2026-10-24: AGENDAR as tall as Próximos/Realizados/Todos). Segment labels are upper case, like AGENDAR. */
.mud-toggle-group .mud-toggle-item { min-height: 38px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.new-btn { text-transform: uppercase; letter-spacing: .04em; }
/* Dialog buttons in upper case (Bruno, 2026-10-24), like the other buttons that act. */
.mud-dialog :is(.mud-dialog-actions, .photo-pick-row) .mud-button-root { text-transform: uppercase; letter-spacing: .04em; }
.photo-pick-row { display: flex; gap: 8px; }
.photo-pick-row > .file-pick { flex: 1 1 auto; min-width: 0; }
.photo-pick-row .mud-button-root { white-space: nowrap; }
.photo-pick-row > .paste-btn { flex: none; }
.photo-pick-row > .paste-btn[hidden] { display: none; }
.photo-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-thumb { position: relative; width: 76px; height: 76px; border-radius: var(--wp-radius); overflow: hidden; display: grid; place-items: center; flex: none;
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent); color: var(--mud-palette-text-secondary); border: 1px solid var(--mud-palette-lines-default); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A form that opened with what was filled in before and not saved (FormDrafts). */
.draft-note { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; margin-bottom: 12px; border-radius: var(--wp-radius);
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, var(--mud-palette-surface)); color: var(--mud-palette-text-primary); font-size: .85rem; }
.draft-note > .mud-icon-root { color: var(--mud-palette-primary); }
.draft-note > span { flex: 1 1 0; min-width: 0; }
.draft-note > .mud-button-root { flex: none; }
.photo-thumb-remove { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
    cursor: pointer; color: #fff; background: rgba(20, 18, 16, .6); }
.photo-thumb-remove:hover { background: var(--mud-palette-error); }
.photo-thumb-remove .mud-icon-root { width: 16px; height: 16px; }
/* Toggle groups: only the group's outer corners are rounded; the segments meet on straight dividers. */
.mud-toggle-group .mud-toggle-item { border-radius: 0 !important; }
/* Each segment is as wide as its own label, with the same padding both sides; a group stretched wider shares the extra evenly. */
.mud-toggle-group.mud-toggle-group-horizontal { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: auto; }
.mud-toggle-group .mud-toggle-item { padding: 6px 16px !important; white-space: nowrap; }
@media (max-width: 599.98px) { .mud-toggle-group .mud-toggle-item { padding: 6px 12px !important; } }
/* ...and every one of those circles is the same 40px, whatever the icon size. */
.mud-icon-button:not(.mud-input-adornment *):not(.mud-chip *):not(.mud-switch-base), .chat-tool, .avatar-btn { width: 40px; height: 40px; min-width: 40px; padding: 0; flex: none; }
/* Switches: no halo around the thumb; red when off, green when on, in both themes. A focus ring stays for keyboard users. */
.mud-switch .mud-switch-base, .mud-switch .mud-switch-base:hover { background-color: transparent !important; }
.mud-switch .mud-ripple::after { display: none; }
.mud-switch [class*="mud-switch-thumb"] { background-color: var(--mud-palette-error) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.mud-switch .mud-switch-base.mud-checked [class*="mud-switch-thumb"] { background-color: var(--mud-palette-success) !important; }
.mud-switch .mud-switch-track { background-color: var(--mud-palette-error) !important; opacity: .35 !important; }
.mud-switch .mud-switch-base.mud-checked + .mud-switch-track { background-color: var(--mud-palette-success) !important; opacity: .45 !important; }
.mud-switch:has(.mud-switch-input:focus-visible) .mud-switch-track { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
.app-bar .mud-toolbar { gap: 10px; }
@media (max-width: 599px) { .app-bar .mud-toolbar { gap: 6px; } }
a { color: var(--mud-palette-primary, var(--wp-gold)); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--mud-palette-text-secondary) !important; }
.small { font-size: .82rem; }
.upper { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; }
.min-w-0 { min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cursor-pointer { cursor: pointer; }
.text-warning { color: var(--mud-palette-warning) !important; }
.text-error { color: var(--mud-palette-error) !important; }
.text-success { color: var(--mud-palette-success) !important; }
.text-center { text-align: center; }

/* ---------- Layout ---------- */
.app-bar { border-bottom: 1px solid var(--mud-palette-lines-default); backdrop-filter: saturate(1.4) blur(8px); }
.brand { display: flex; align-items: center; margin-left: 4px; color: var(--mud-palette-appbar-text); }
.brand:hover { text-decoration: none; }
.file-pick { position: relative; cursor: pointer; }
.file-pick-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.file-pick-input::-webkit-file-upload-button { cursor: pointer; }
/* MudBadge inside an icon button renders <p><span inline-block> on the text baseline, which lifts
   the icon a few pixels; make it a flex box so badge icons line up with the plain ones. */
.mud-icon-button > p.mud-typography { display: flex; margin: 0; line-height: 0; }
.mud-icon-button .mud-badge-root { display: inline-flex; vertical-align: middle; }
/* Counters on round icon buttons sit over the circle's edge instead of being clipped by it (those buttons have no ripple
   to contain), with a ring in the bar's colour so they stand off the circle. */
.mud-icon-button:has(.mud-badge) { overflow: visible; }
.mud-icon-button .mud-badge.mud-badge-overlap { box-shadow: 0 0 0 2px var(--mud-palette-appbar-background); }
.avatar-btn { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: inherit; }
.avatar-btn:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
/* Browser autofill paints a rectangular background that pokes out of the rounded outline. */
.mud-input input:-webkit-autofill,
.mud-input input:-webkit-autofill:hover,
.mud-input input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--mud-palette-surface) inset;
    box-shadow: 0 0 0 1000px var(--mud-palette-surface) inset;
    -webkit-text-fill-color: var(--mud-palette-text-primary);
    caret-color: var(--mud-palette-text-primary);
    transition: background-color 9999s ease-out 0s;
}
.mud-input.mud-input-outlined input:-webkit-autofill { border-radius: var(--mud-default-borderradius); }
/* One field look everywhere (Bruno, 2026-11-13): outlined, 40px, label always on the top border, empty or not, never
   inside the box nor above it. MudBlazor only floats it once there is a value or focus; this floats it always. */
.mud-input.mud-input-outlined.mud-input-outlined-with-label > .mud-input-outlined-border legend { width: auto; padding: 0 5px; }
.mud-input-control.mud-input-outlined-with-label label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined {
    transform: translate(14px, -6px) scale(.75); max-width: calc((100% - 14px) / .75); }
.mud-input-control.mud-input-outlined-with-label .mud-input-outlined input::placeholder { opacity: .42; }
.mud-input-control.mud-input-outlined-with-label > .mud-input-control-input-container > label.mud-input-label-inputcontrol:not(.mud-disabled, .mud-input-error) { color: var(--mud-palette-text-primary); }
.mud-input-control.mud-input-outlined-with-label .mud-input:focus-within ~ label.mud-input-label-inputcontrol:not(.mud-input-error) { color: var(--mud-palette-primary); }
.brand-logo { height: 34px; width: auto; aspect-ratio: 220 / 48; display: block; }
/* The user's own brand: the logo in a 40px circle like the bar's round buttons, a gold rule, then the brand name above
   "SHOOTPLANNER", as in the SB Studio wordmark. */
.brand { min-width: 0; }
.user-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-brand-logo, .brand-logo-preview { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--mud-palette-surface); }
.user-brand-logo.initials, .brand-logo-preview.initials { display: grid; place-items: center; font-weight: 600; font-size: .95rem; color: var(--mud-palette-primary-text); background: var(--mud-palette-primary); }
.brand-logo-preview { width: 72px; height: 72px; font-size: 1.5rem !important; border: 1px solid var(--mud-palette-lines-default); }
.user-brand-text { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding-left: 10px; border-left: 1.5px solid var(--wp-gold); line-height: 1.1; }
.user-brand-name { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.user-brand-sub { font-size: .64rem; letter-spacing: .24em; color: var(--wp-gold); }
@media (max-width: 599.98px) { .user-brand-name { max-width: 34vw; } }
.dark-only { display: none; }
.mud-theme-dark .dark-only, .wp-dark .dark-only { display: block; }
.mud-theme-dark .light-only, .wp-dark .light-only { display: none; }

.app-drawer .mud-drawer-content { display: flex; flex-direction: column; }
.nav-wrap { display: flex; flex-direction: column; height: 100%; padding: 12px 8px; }
/* Side menu (Bruno, 2026-10-24): every item a square band across the whole menu; the open one stands out by the colour of
   its text and icon, the highlight green of the open wedding tab, on a faint green band with a bar on its left edge. */
.app-nav .mud-nav-item { margin: 0 -8px; width: auto; }
.app-nav .mud-nav-link { border-radius: 0 !important; margin: 0 !important; padding: 10px 24px; color: var(--mud-palette-drawer-text); }
.app-drawer { border-right: 1px solid var(--mud-palette-lines-default); }
.app-nav .mud-nav-link.active { background: color-mix(in srgb, var(--mud-palette-success) 12%, transparent) !important; box-shadow: inset 3px 0 0 var(--mud-palette-success); font-weight: 700; }
.app-nav .mud-nav-link.active, .app-nav .mud-nav-link.active :is(.mud-nav-link-text, .mud-nav-link-icon) { color: var(--mud-palette-success) !important; }
.app-nav .mud-nav-link.active .mud-nav-link-text { font-weight: 700; }
/* Side-menu counters (Mensagens, Notificações) sit at the right end of the item, like the ones on the top bar icons. */
.app-nav .mud-nav-link-text { display: flex; align-items: center; gap: 6px; }
.nav-count { background: var(--mud-palette-error); color: #fff; margin-left: auto; }
.team-switch .team-logo-fallback.team-row-logo { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--wp-radius); background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent); color: var(--mud-palette-primary); }
.team-switch .team-logo-fallback.team-row-logo .mud-icon-root { width: 24px !important; height: 24px !important; }
.team-switch .list-row-title { margin-bottom: 2px; }
.team-switch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
/* Teams list: the row opens the team; Detalhes / Editar / Sair as icons on the right. */
.month-header.team-section { display: flex; align-items: center; gap: 6px; }
.month-header.team-section .mud-icon-root { width: 18px; height: 18px; }
.team-list-row { flex-wrap: wrap; }
.team-list-main { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
/* Whole-row links never underline their content; the row tints instead. */
a:is(.list-row, .wedding-row, .team-list-main, .chat-item, .cal-event, .cal-add):hover { text-decoration: none; }
.team-list-row:has(.team-list-main:hover) { background: var(--mud-palette-action-default-hover); }
.team-list-main:hover .list-row-title { color: var(--mud-palette-primary); }
.team-list-main .team-row-logo { flex: none; border-radius: var(--wp-radius); object-fit: contain; background: #fff; }
.team-list-main .team-logo-fallback.team-row-logo, .team-logo-fallback.team-detail-logo { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--wp-radius); background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent); color: var(--mud-palette-primary); }
.team-list-main .team-logo-fallback.team-row-logo .mud-icon-root, .team-logo-fallback.team-detail-logo .mud-icon-root { width: 26px !important; height: 26px !important; }
.team-list-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.team-list-info { gap: 8px 14px; }
.team-name-tag { max-width: 100%; min-width: 0; }
/* Faces as big as the other lists' (48px, 44px on phones; Bruno, 2026-10-24), overlapping a little. */
.team-people { display: inline-flex; align-items: center; }
.team-people > span { display: inline-flex; }
.team-people .mud-avatar { width: 48px; height: 48px; font-size: .95rem; box-shadow: 0 0 0 2px var(--mud-palette-surface); }
.team-people > span + span { margin-left: -10px; }
.team-people-more { margin-left: 8px !important; font-size: .9rem; font-weight: 600; color: var(--mud-palette-text-secondary); }
@media (max-width: 599.98px) { .team-people .mud-avatar { width: 44px; height: 44px; } }
.team-list-actions { align-items: center; }
/* Phones: the icons stay in the row's top-right corner; the photos go on their own line under the logo and the team's name,
   starting at the logo's left edge (Bruno, 2026-10-26). */
@media (max-width: 599.98px) {
    .list-row.team-list-row { flex-wrap: nowrap; align-items: flex-start; }
    .team-list-main { flex: 1 1 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; }
    .team-list-info { display: contents; }
    .team-list-main .team-name-tag { justify-self: start; }
    .team-list-main .team-people { grid-column: 1 / -1; }
    .team-list-actions { flex: none; flex-wrap: nowrap; margin-top: 3px; }
}
.team-detail-logo { flex: none; margin-right: 10px; border-radius: var(--wp-radius); object-fit: contain; background: #fff; }
.team-edit { max-width: 640px; }
.create-team { flex-wrap: wrap; }
.create-team .mud-input-control { flex: 1 1 180px; }
.create-team > .mud-button-root { flex: none; white-space: nowrap; }

/* Team logos sit on white so dark wordmarks stay visible in the dark theme. */
.team-logo { object-fit: contain; background: #fff; border-radius: var(--wp-radius); flex-shrink: 0; display: inline-block; vertical-align: middle; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.team-logo-fallback { display: inline-flex; flex-shrink: 0; }
.team-logo-lg { border-radius: var(--wp-radius); padding: 4px; }
.team-logo-edit { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.team-logo-edit .team-logo-fallback { width: 72px; height: 72px; border-radius: var(--wp-radius); align-items: center; justify-content: center; background: var(--mud-palette-action-default-hover); color: var(--mud-palette-text-secondary); }
.team-logo-edit .team-logo-fallback .mud-icon-root { width: 36px !important; height: 36px !important; }
.team-logo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* Paired actions (upload / remove) share one variant and, stacked, one width. */
.btn-pair { display: inline-grid; gap: 6px; }
.btn-pair > .mud-button-root { justify-content: flex-start; }
.team-menu-item { display: inline-flex; align-items: center; gap: 8px; }
.team-switch { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 4px 6px; margin: -4px -6px; border: 0; background: none; color: inherit; font: inherit; text-align: left; border-radius: var(--wp-radius); cursor: pointer; }
.team-switch:hover:not(:disabled) { background: var(--mud-palette-action-default-hover); }
.team-switch:hover:not(:disabled) .list-row-title { color: var(--mud-palette-primary); }
.team-switch:disabled { cursor: default; }
/* Marks the teams you manage in the switcher and on the Team page. */
.team-role { color: var(--mud-palette-primary); border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 45%, transparent); }

.app-main { min-height: 100vh; }
.app-container { padding-top: 20px; padding-bottom: 40px; }

.logout-form { margin: 0; }
.logout-btn { all: unset; display: flex; gap: 10px; align-items: center; padding: 8px 16px; width: 100%; box-sizing: border-box; cursor: pointer; font-size: .875rem; }
.logout-btn:hover { background: var(--mud-palette-action-default-hover); }
/* User menu: Perfil and Terminar sessão icons on a coloured tinted circle (accent / red). */
.menu-action, a.menu-action:hover { color: inherit; text-decoration: none; padding: 6px 16px; }
.menu-ico { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; flex: none; }
.ico-profile { color: var(--mud-palette-primary); background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent); }
.ico-logout { color: var(--mud-palette-error); background: color-mix(in srgb, var(--mud-palette-error) 14%, transparent); }
.menu-action:hover .ico-profile { background: color-mix(in srgb, var(--mud-palette-primary) 26%, transparent); }
.menu-action:hover .ico-logout { background: color-mix(in srgb, var(--mud-palette-error) 26%, transparent); }

/* Bottom navigation (phones) */
.bottom-nav { display: none; }
@media (max-width: 959.98px) {
    .bottom-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
        height: calc(var(--wp-bottom-nav) + var(--wp-nav-pad)); padding-bottom: var(--wp-nav-pad);
        background: var(--mud-palette-surface); border-top: 1px solid var(--mud-palette-lines-default);
    }
    .bottom-nav a {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        color: var(--mud-palette-text-secondary); font-size: .68rem; text-decoration: none;
    }
    /* The open item in the highlight green, its icon on a green pill (Bruno, 2026-10-24: it hardly stood out). */
    .bottom-nav a.active { color: var(--mud-palette-success); font-weight: 700; }
    .bottom-nav a .mud-icon-root { box-sizing: content-box; padding: 3px 16px; border-radius: 999px; transition: background-color .15s ease; }
    /* Mensagens wraps its icon in the unread badge: as a flex box it is exactly the icon's height, so its icon and label sit
       where every other item's do (inline, the badge's line box was 5px taller and pushed them apart). */
    .bottom-nav a .mud-badge-root { display: flex; }
    .bottom-nav a.active .mud-icon-root { background: color-mix(in srgb, var(--mud-palette-success) 20%, transparent); }
    .app-container { padding-bottom: calc(var(--wp-bottom-nav) + 32px + var(--wp-nav-pad)); }
    .app-drawer { display: none; }
}

/* ---------- Page chrome ---------- */
/* Steps to put the app on the home screen by hand. */
.install-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.install-steps li { display: flex; align-items: center; gap: 12px; counter-increment: step; }
.install-step-icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: var(--wp-radius); display: grid; place-items: center;
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent); color: var(--mud-palette-primary); }
.install-step-icon::after { content: counter(step); position: absolute; top: -6px; left: -6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
    font-size: .68rem; font-weight: 700; background: var(--mud-palette-primary); color: var(--mud-palette-primary-text); }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-header-text { display: flex; align-items: center; gap: 4px; min-width: 0; }
.page-header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-title { font-size: 1.9rem !important; line-height: 1.15 !important; }
/* Titles are upper case: page, section, card and dialog titles and list group headers. The strings stay normally
   written (they translate as usual); names shown as a title (couple, person, planner) keep their case with .keep-case. */
.page-title, .mud-typography-h5, .mud-typography-h6, .mud-typography-subtitle2, .mud-dialog-title, .title-case, .auth-title,
.auth-hero h2, .cal-sheet-head b, .notes-part-head b, .month-header { text-transform: uppercase !important; letter-spacing: .04em; }
.keep-case, .mud-dialog-title .keep-case { text-transform: none !important; letter-spacing: normal; }
.greeting { margin-bottom: 20px; }

.card { border: 1px solid var(--mud-palette-lines-default); border-radius: var(--wp-radius) !important; background: var(--mud-palette-surface); overflow: hidden; }
.card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
/* Where the wedding tabs show their names (760px up, see .wedding-tabs), a panel heading that only repeats the tab's name
   goes (Bruno, 2026-10-24); its add button stays on the right, and a head left empty goes too. */
@media (min-width: 760px) {
    .wedding-tabs .section-head > .tab-echo { display: none !important; } /* over the neon section titles */
    .wedding-tabs .section-head:has(> .tab-echo) { justify-content: flex-end; }
    .wedding-tabs .section-head:has(> .tab-echo:only-child) { display: none; }
}
/* Header buttons keep their full label; the title wraps first. */
.card-head > .mud-button-root, .section-head > .mud-button-root { flex: none; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar-search { max-width: 360px; flex: 1 1 220px; }
/* The events search is a plain input (it filters in the browser, see e2e.js listFilter). */
.list-search { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: var(--wp-radius); background: transparent; color: var(--mud-palette-text-secondary); }
/* Same frame as the outlined fields beside it: transparent (Néon's dark well), primary 2px border on focus. */
.list-search:hover { border-color: var(--mud-palette-text-primary); }
.list-search:focus-within { border-color: var(--mud-palette-primary); box-shadow: inset 0 0 0 1px var(--mud-palette-primary); }
html.wp-neon .list-search { background: var(--nx-well); border-color: var(--nx-line-soft); }
html.wp-neon .list-search:hover { border-color: var(--nx-line); }
html.wp-neon .list-search:focus-within { border-color: var(--mud-palette-primary); box-shadow: inset 0 0 0 1px var(--mud-palette-primary), 0 0 12px color-mix(in srgb, var(--mud-palette-primary) 40%, transparent); }
.list-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--mud-palette-text-primary); }
.toolbar > .toolbar-search { transition: flex-basis .2s ease; }
.fixed-head .toolbar > .toolbar-search { flex: 0 1 220px; min-width: 160px; }
.fixed-head .toolbar > .toolbar-search:focus-within { flex-basis: 320px; }
/* MudBlazor repeats Class on inner elements, so size only the outer ones. */
/* Filters share whatever width the row has left, up to the right edge. */
/* Filter dropdowns (PickField): their icon on the left, the arrow (it turns up while open) and clear × on the right. */
.pick-field { position: relative; display: flex; min-width: 0; }
.pick-field > .mud-select { flex: 1 1 auto; min-width: 0; }
.pick-field > .pick-field-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none; color: var(--mud-palette-action-default); }
.pick-field .mud-input > input.mud-input-root, .pick-field .mud-input > div.mud-input-root { padding-inline-start: 44px; }
.pick-field .mud-input-adornment-end .mud-icon-root { color: var(--mud-palette-action-default); }
.pick-team-logo { flex: none; }
.toolbar-filters > .toolbar-team, .toolbar-filters > .toolbar-members { flex: 1 1 0; min-width: 170px; }
.toolbar-filters > .toolbar-dates { flex: 1.2 1 0; min-width: 320px; }
/* Multi-select lists: no checkboxes; icon or photo and the name on the left, a toggle on the right (whole row toggles). */
.wp-multi { min-width: 240px; }
.wp-multi .mud-list-item-icon { display: none; }
.wp-multi .mud-list-item-text { flex: 1 1 auto; min-width: 0; margin: 0; }
.pick-row { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; }
.pick-row > .ellipsis { flex: 1 1 auto; min-width: 0; }
.pick-row .mud-avatar { width: 26px; height: 26px; font-size: .7rem; flex: none; }
.pick-row > .mud-icon-root { flex: none; color: var(--mud-palette-text-secondary); }
/* Same look as the switches: red when off, green when on. */
.pick-toggle { flex: none; position: relative; width: 34px; height: 20px; margin-left: auto; border-radius: 999px; background: color-mix(in srgb, var(--mud-palette-error) 35%, transparent); transition: background-color .15s; }
.pick-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--mud-palette-error); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s, background-color .15s; }
.wp-multi .mud-list-item[aria-selected="true"] .pick-toggle { background: color-mix(in srgb, var(--mud-palette-success) 45%, transparent); }
.wp-multi .mud-list-item[aria-selected="true"] .pick-toggle::after { transform: translateX(14px); background: var(--mud-palette-success); }
.wp-multi .mud-list-item[aria-selected="true"] .pick-row > .ellipsis { font-weight: 600; }
.range-presets { display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 0 8px 8px; max-width: 320px; }
/* Extra filters sit in the toolbar row on larger screens and fold behind a button on phones. */
.toolbar-filters { display: contents; }
.filters-toggle { display: none !important; }
@media (max-width: 599.98px) {
    .toolbar-search, .fixed-head .toolbar > .toolbar-search, .fixed-head .toolbar > .toolbar-search:focus-within { flex: 1 1 0; max-width: none; }
    /* "Novo casamento" shrinks to its "+" next to the title. */
    .fixed-head .page-header-actions .btn-text { display: none; }
    .fixed-head .page-header-actions .new-btn { min-width: 40px; padding: 0 10px; }
    .fixed-head .page-header-actions .new-btn .mud-button-icon-start { margin: 0; }
    .filters-toggle { display: inline-flex !important; }
    .toolbar-filters { display: none; flex: 1 1 100%; flex-wrap: wrap; gap: 8px; }
    .toolbar-filters.open { display: flex; }
    .toolbar-filters > .toolbar-team, .toolbar-filters > .toolbar-members, .toolbar-filters > .toolbar-dates { flex: 1 1 100%; min-width: 0; }
}
/* Date headers in the events list stand on their own band, no rule under them (Bruno, 2026-11-17). */
.month-divider { padding: 7px 16px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: color-mix(in srgb, var(--mud-palette-primary) 70%, var(--mud-palette-text-primary));
    background: color-mix(in srgb, var(--mud-palette-primary) 20%, var(--mud-palette-surface)); border: 0; }
html.wp-dark .month-divider { color: color-mix(in srgb, var(--mud-palette-primary) 60%, white);
    background: color-mix(in srgb, var(--mud-palette-primary) 22%, var(--mud-palette-surface)); }
/* The header is a button that folds its month away; the chevron on the right sits on a soft tinted circle. */
button.month-divider { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font-family: inherit; line-height: 1.4;
    cursor: pointer; appearance: none; }
.month-divider-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.month-divider-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
    color: inherit; background: color-mix(in srgb, currentColor 14%, transparent); transition: transform .2s, background-color .15s; }
.month-divider-toggle .mud-icon-root { width: 18px; height: 18px; }
button.month-divider:hover .month-divider-toggle { background: color-mix(in srgb, currentColor 26%, transparent); }
button.month-divider:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: -2px; }
.month-group.collapsed .month-divider-toggle { transform: rotate(-90deg); }
.month-group.collapsed:not(:last-child) { margin-bottom: 2px; } /* two folded months in a row stay apart */
/* The month header stays at the top of the list while its month scrolls by, and leaves only when its last event's top
   reaches its bottom (Bruno, 2026-11-17): sticky inside .month-sticky, which holds every event but the last (Weddings.razor). The card clips instead of hiding its overflow, so it
   doesn't become the scroll box that sticky would follow. The band is opaque, so nothing shows through it. */
.month-divider { position: sticky; top: 0; z-index: 3; }
.card:has(> .month-group) { overflow: clip; }
/* Folded months hide their rows, except while the search box has text (e2e.js sets .searching): then every match shows. */
.fill-scroll:not(.searching) .month-group.collapsed .wedding-row { display: none; }
.month-group:not(:last-child) > .wedding-row:last-child { border-bottom: 1px solid var(--mud-palette-lines-default); }
.month-header { font-weight: 600; color: var(--mud-palette-text-secondary); margin: 18px 4px 8px; font-size: .9rem; letter-spacing: .02em; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
/* Finance's five or six cards sit in rows of three, wide enough for large amounts on one line. */
@media (min-width: 900px) { .stats-grid.three { grid-template-columns: repeat(3, 1fr); } }
.stat-card { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--mud-palette-lines-default); border-radius: var(--wp-radius) !important; }
.stat-icon { width: 44px; height: 44px; border-radius: var(--wp-radius); display: grid; place-items: center; flex: none; }
.stat-label { font-size: .78rem; color: var(--mud-palette-text-secondary); }
.stat-value { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.stat-hint { font-size: .74rem; color: var(--mud-palette-text-secondary); }
/* Money still to pay or receive in red, all settled in green, each with a small icon. */
.stat-hint.alert, .stat-hint.ok { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.stat-hint.alert { color: var(--mud-palette-error); }
.stat-hint.ok { color: var(--mud-palette-success); }
.stat-hint .mud-icon-root { width: 14px; height: 14px; }
@media (max-width: 599.98px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
    .stat-icon { width: 34px; height: 34px; }
    .stat-value { font-size: 1.1rem; }
}

/* ---------- Wedding rows ---------- */
.wedding-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--mud-palette-lines-default); color: inherit; }
:not(.month-sticky) > .wedding-row:last-child { border-bottom: none; } /* in .month-sticky the month's last event still follows */
.wedding-row:hover { background: var(--mud-palette-action-default-hover); text-decoration: none; }
/* Home: each wedding is its own bordered card, alternating tint so neighbours stand apart. */
.wedding-cards { display: flex; flex-direction: column; gap: 10px; }
.wedding-cards .wedding-row { border: 1px solid var(--mud-palette-lines-default); border-radius: var(--wp-radius); }
.wedding-cards .wedding-row:last-child { border-bottom: 1px solid var(--mud-palette-lines-default); }
.wedding-cards .wedding-row:nth-child(even) { background: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent); }
.wp-dark .wedding-cards .wedding-row:nth-child(even) { background: rgba(255, 255, 255, .035); }
.wedding-cards .wedding-row:hover { background: var(--mud-palette-action-default-hover); }
.wedding-row-main { flex: 1; min-width: 0; }
.wedding-row-title { font-weight: 600; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wedding-row-sub { display: flex; gap: 12px; flex-wrap: wrap; color: var(--mud-palette-text-secondary); font-size: .82rem; margin-top: 2px; }
.wedding-row-sub > span:not(.time-badge) { display: inline-flex; align-items: center; gap: 3px; }
.wedding-row-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.wedding-row-crew { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.wedding-row-crew > .wedding-row-team { display: contents; }
.crew-chip { padding-left: 6px; border: 1px solid var(--mud-palette-lines-default); font-weight: 400; max-width: 260px; min-width: 0; }
.crew-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.role-icons { display: inline-flex; align-items: center; gap: 2px; color: var(--mud-palette-text-secondary); flex-shrink: 0; }
.role-icons > span { display: inline-flex; }
.role-icons .mud-icon-root { width: 15px; height: 15px; }
.wedding-row-deliveries { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--mud-palette-lines-default); }
.deliv-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mud-palette-text-secondary); margin-right: 2px; }
.deliv-chip { background: rgba(91, 125, 166, .12); color: #3f5f86; }
.deliv-date { opacity: .75; }
.deliv-chip.soon { background: rgba(210, 154, 60, .18); color: #9a6c1f; }
.deliv-chip.late { background: rgba(192, 86, 75, .15); color: #b0473c; }
.wp-dark .deliv-chip { color: #9dbbe0; background: rgba(91, 125, 166, .25); }
.wp-dark .deliv-chip.soon { color: #F5BE62; background: rgba(230, 165, 60, .22); }
.wp-dark .deliv-chip.late { color: #f08a7e; background: rgba(192, 86, 75, .25); }
.deliv-chip.done { background: rgba(79, 138, 98, .14); color: #3c6e4c; }
.wp-dark .deliv-chip.done { color: #7BE09C; background: rgba(70, 190, 110, .18); }
/* Delivery badges as progress bars: the fill (--p) grows across the window and the tone moves green → amber → red. */
.deliv-chip.prog { --fill: rgba(79, 138, 98, .34); --track: rgba(79, 138, 98, .10); color: #35663f;
    background: linear-gradient(to right, var(--fill) var(--p), var(--track) var(--p)); }
.deliv-chip.prog.tone-warn { --fill: rgba(210, 154, 60, .40); --track: rgba(210, 154, 60, .12); color: #84591a; }
.deliv-chip.prog.tone-bad { --fill: rgba(192, 86, 75, .36); --track: rgba(192, 86, 75, .10); color: #a23d33; }
.wp-dark .deliv-chip.prog { --fill: rgba(70, 190, 110, .36); --track: rgba(70, 190, 110, .10); color: #8BE8A9; }
.wp-dark .deliv-chip.prog.tone-warn { --fill: rgba(230, 165, 60, .40); --track: rgba(230, 165, 60, .10); color: #F7C875; }
.wp-dark .deliv-chip.prog.tone-bad { --fill: rgba(220, 90, 78, .42); --track: rgba(220, 90, 78, .12); color: #F8A49A; }
.countdown-chip.far { background: rgba(79, 138, 98, .15); color: #3c6e4c; }
.countdown-chip.near { background: rgba(210, 154, 60, .18); color: #9a6c1f; }
.countdown-chip.soon { background: rgba(192, 86, 75, .14); color: #a5443a; }
.wp-dark .countdown-chip.far { background: rgba(70, 190, 110, .24); color: #7BE09C; }
.wp-dark .countdown-chip.near { background: rgba(230, 165, 60, .24); color: #F5BE62; }
.wp-dark .countdown-chip.soon { background: rgba(230, 100, 90, .24); color: #FF9A8F; }
/* The wedding day itself: solid red so it stands out from the rest of the last week. */
.countdown-chip.today, .wp-dark .countdown-chip.today { background: var(--mud-palette-error); color: #fff; letter-spacing: .04em; animation: wp-today-pulse 2s ease-in-out infinite; }
@keyframes wp-today-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192, 86, 75, .45); } 50% { box-shadow: 0 0 0 4px rgba(192, 86, 75, 0); } }
@media (prefers-reduced-motion: reduce) { .countdown-chip.today { animation: none; } }
.crew-chip .mud-avatar { width: 32px; height: 32px; font-size: .74rem; }
/* Still to answer: a dashed edge and a faded inside; the edge itself keeps full strength like the others. */
.crew-chip.pending { border-style: dashed; }
.crew-chip.pending > :not(.wait-dot) { opacity: .75; }
/* Not accepted yet: their photo or initials in black and white (Bruno, 2026-10-25); the waiting badge keeps its colour. */
:is(.crew-chip, .rp-face).pending .mud-avatar { filter: grayscale(1); }
/* A member who hasn't answered the offer (Bruno, 2026-10-25): an amber circle the size of the counters, with an
   hourglass instead of a number, on the badge's top right corner (and on the phone card's faces, a little smaller). */
.crew-chip { position: relative; }
.wait-dot { position: absolute; top: -8px; right: -8px; z-index: 1; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
    background: #E0952B; color: #fff; box-shadow: 0 0 0 2px var(--mud-palette-surface); }
.wait-dot .mud-icon-root { width: 12px !important; height: 12px !important; font-size: 12px !important; }
.rp-face { position: relative; display: inline-flex; flex: none; }
.rp-face .wait-dot { top: -5px; right: -5px; width: 15px; height: 15px; }
.rp-face .wait-dot .mud-icon-root { width: 10px !important; height: 10px !important; font-size: 10px !important; }
/* Computers and tablets: the wedding list's crew badges get a visible, neutral outline that just groups the face, name
   and role icons (Bruno, 2026-10-24). A solid colour per theme, so it reads the same over any card or background picture. */
@media (min-width: 600px) {
    .wedding-row .crew-chip { --wp-crew-edge: #A39D95; border: 1px solid var(--wp-crew-edge) !important; }
    html.wp-dark .wedding-row .crew-chip { --wp-crew-edge: #6A645D; }
    html.wp-neon .wedding-row .crew-chip { --wp-crew-edge: #5F7DCC; }
    .wedding-row .crew-chip.pending { border-style: dashed !important; }
}
/* Computers and tablets: the whole name shows, however many role icons follow (Bruno, 2026-10-24); a badge only cuts
   it when it is wider than the row itself. */
@media (min-width: 600px) { .wedding-row .crew-chip { max-width: 100%; } }
/* Chat with that member, in the accent colour like the wedding's chat icon. */
.member-chat { position: relative; width: 22px; height: 22px; margin-right: -6px; border-radius: 50%; display: grid; place-items: center; flex: none; cursor: pointer; color: var(--mud-palette-primary); background: color-mix(in srgb, var(--mud-palette-primary) 16%, transparent); }
.member-chat:hover { background: color-mix(in srgb, var(--mud-palette-primary) 28%, transparent); }
.member-chat .mud-icon-root { width: 13px; height: 13px; }
.member-chat-dot { position: absolute; top: -1px; right: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--mud-palette-error); box-shadow: 0 0 0 1.5px var(--mud-palette-surface); }
@media (pointer: coarse) { .member-chat::after { content: ""; position: absolute; inset: -5px; } } /* 32px to tap */
.crew-row .member-chat { margin-right: 0; }
.wedding-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.wedding-row-side .mud-chip { margin: 0; }
.row-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
/* The year only on dates outside this year, on every screen (Bruno, 2026-10-24). */
.wedding-row .date-block.this-year .date-year { display: none; }
.tag { background: color-mix(in srgb, var(--wp-gold) 12%, transparent); color: var(--wp-gold-dark); }
.mud-theme-dark .tag, .wp-dark .tag { color: var(--wp-gold-light); }
.avatar-stack { display: flex; }
.avatar-stack .mud-avatar { margin-left: -8px; border: 2px solid var(--mud-palette-surface); }

.date-block { width: 54px; flex: none; text-align: center; border-radius: var(--wp-radius); background: color-mix(in srgb, var(--mud-palette-primary) 13%, var(--mud-palette-surface)); color: var(--mud-palette-text-primary); padding: 7px 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.1; }
.wp-dark .date-block { background: rgba(255, 255, 255, .06); border: 1px solid color-mix(in srgb, var(--wp-gold) 30%, transparent); }
.date-block.cancelled { opacity: .45; }
.date-day { font-family: "Titillium Web", sans-serif; font-size: 1.35rem; font-weight: 600; }
/* The month reads bold and strong in both themes (Bruno, 2026-10-24: the accent itself looked faded on dark). */
.date-month { text-transform: uppercase; font-size: .66rem; letter-spacing: .1em; color: var(--wp-gold-dark); font-weight: 700; }
.wp-dark .date-month { color: color-mix(in srgb, var(--wp-gold) 45%, white); }
.date-year { font-size: .62rem; opacity: .6; }
@media (max-width: 599.98px) {
    .wedding-row { padding: 12px; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
    /* Status and countdown drop under the details so the content gets the full width. */
    .wedding-row-main { flex-basis: calc(100% - 64px); }
    .wedding-row-side { flex-basis: 100%; flex-direction: row; align-items: center; justify-content: flex-end; }
    .wedding-row-side .avatar-stack { display: none; }
}

/* ---------- Lists ---------- */
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--mud-palette-lines-default); color: inherit; }
.list-row:last-child { border-bottom: none; }
a.list-row:hover { background: var(--mud-palette-action-default-hover); text-decoration: none; }
.list-row-main { flex: 1; min-width: 0; }
.list-row-title { font-weight: 600; }
.list-row-title.done { text-decoration: line-through; opacity: .6; }
/* Entregas (Bruno, 2026-10-24): the video's length as plain upper-case text after the name; edit/delete as icons above
   phones, ⋮ on phones. */
.deliv-duration { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--mud-palette-text-secondary); white-space: nowrap; }
.deliv-duration .mud-icon-root { width: 18px; height: 18px; color: var(--mud-palette-info); }
.list-row-title.done .deliv-duration { text-decoration: none; }
.deliv-toggle { flex: none; margin: 0; }
.deliv-menu { display: none; }
@media (max-width: 599.98px) {
    .row-actions.deliv-actions { display: none; }
    .deliv-menu { display: inline-flex; }
    /* Phones: toggle, name and dates, ⋮; the due badge under the dates so the text keeps the width. */
    .deliv-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 8px; padding: 12px 10px 12px 4px; }
    .deliv-row > .deliv-toggle { grid-area: 1 / 1 / span 2 / 2; }
    .deliv-row > .list-row-main { grid-area: 1 / 2; }
    .deliv-row > .deliv-chip { grid-area: 2 / 2; justify-self: start; }
    .deliv-row > .deliv-menu { grid-area: 1 / 3 / span 2 / 4; }
}
/* Faces on the people chips (who can see an item, group members). */
.person-chip .mud-avatar { width: 30px; height: 30px; font-size: .72rem; margin-left: -4px; }
.list-row-sub { font-size: .8rem; color: var(--mud-palette-text-secondary); }
.list-row-notes { margin-top: 3px; font-size: .82rem; white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.kv-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--mud-palette-lines-default); font-size: .9rem; }
.kv-list > div:last-child { border-bottom: none; }
.kv-list > div > span:first-child { color: var(--mud-palette-text-secondary); }
.kv-list .kv-block { flex-direction: column; }
.kv-list .kv-block p { margin: 4px 0 0; white-space: pre-line; }
.kv-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--mud-palette-lines-default); }
.kv-row:last-child { border-bottom: none; }

/* ---------- Wedding detail ---------- */
.wedding-hero {
    background: radial-gradient(120% 140% at 0% 0%, #FFFFFF 0%, color-mix(in srgb, var(--mud-palette-primary) 10%, #FBF8F4) 70%); color: var(--wp-ink);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--wp-radius); margin-bottom: 16px; position: relative; overflow: hidden; display: flex;
}
.wp-dark .wedding-hero { background: radial-gradient(120% 140% at 0% 0%, #2b2825 0%, var(--wp-ink) 60%); color: #F3EEE6; border-color: transparent; }
.wedding-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--wp-gold) 35%, transparent); }
.hero-back, .wedding-hero .mud-icon-button { color: var(--wp-ink) !important; }
.wp-dark .hero-back, .wp-dark .wedding-hero .mud-icon-button { color: #F3EEE6 !important; }
/* Names, day, hours beside the photo; the crew chat (an icon, with its unread counter) and the manager's ⋮ in the top
   right corner, the status in upper case bottom right. Phones first, then every screen (Bruno, 2026-10-24). */
/* A grid only as tall as its content (Bruno, 2026-10-24): the names beside the corner buttons (they wrap rather than run
   under them), then the badges row across the whole width. */
.hero-main { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; column-gap: 12px;
    padding: 18px 10px 10px 22px; position: relative; z-index: 1; } /* the corner buttons and the status sit 10px from the edges */
.wedding-hero-body { display: contents; }
/* The names' first line sits level with the corner icons (42px circles pulled 8px up, 4px on phones), centred on them
   (Bruno, 2026-10-24). */
.hero-title { grid-area: 1 / 1; align-self: start; line-height: 1.2 !important; margin-top: calc(-8px + (42px - 1.2em) / 2) !important; }
.hero-actions { grid-area: 1 / 2; align-self: start; margin: -8px 0 0 0; z-index: 2; display: flex; align-items: center; gap: 6px; }
.hero-chat-btn { position: relative; display: inline-flex; }
.hero-chat-btn > .unread-count { position: absolute; top: -4px; right: -6px; pointer-events: none; min-width: 18px; height: 18px; font-size: .68rem; }
.hero-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin-top: 8px; }
.hero-times { display: flex; flex-wrap: wrap; gap: 8px; }
.wedding-hero-foot { display: flex; margin-left: auto; }
.wedding-hero-foot .hero-status { margin: 0; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
/* The round buttons (back, chat, ⋮) match the wedding list's notes and chat icons: bigger, in a strong accent (the way
   back on the couple's photo keeps its glass). */
.wedding-hero .mud-icon-button { width: 42px !important; height: 42px !important; min-width: 42px !important; }
.wedding-hero .mud-icon-button:not(.hero-photo .hero-back) { color: var(--wp-gold-dark) !important; background-color: color-mix(in srgb, var(--wp-gold) 20%, transparent) !important; }
.wp-dark .wedding-hero .mud-icon-button:not(.hero-photo .hero-back) { color: color-mix(in srgb, var(--wp-gold) 45%, white) !important; background-color: color-mix(in srgb, var(--wp-gold) 30%, transparent) !important; }
.wedding-hero .mud-icon-button .mud-icon-root { width: 24px; height: 24px; font-size: 24px; }
.wedding-hero .hero-actions .mud-icon-button.hero-delete { color: var(--mud-palette-error) !important; background-color: color-mix(in srgb, var(--mud-palette-error) 14%, transparent) !important; }
.wp-dark .wedding-hero .hero-actions .mud-icon-button.hero-delete { color: var(--mud-palette-error) !important; background-color: color-mix(in srgb, var(--mud-palette-error) 20%, transparent) !important; }
@media (max-width: 599.98px) {
    .hero-actions { margin: -4px 0 0 0; gap: 4px; }
    .wedding-hero :is(.hero-remove-photo, .hero-add-photo) { display: none !important; }
    .hero-times { gap: 6px; }
    /* A step smaller than the other badges here, so it doesn't outweigh the names (Bruno, 2026-10-24). */
    /* The status is only its icon, a 34px square on the right, level with the hours (with the day when there are no
       hours; Bruno, 2026-10-27). The full word stays in its title and aria-label. */
    .hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: start; }
    .hero-row .hero-meta { display: contents; }
    .hero-row .hero-meta > * { grid-column: 1; justify-self: start; }
    .hero-row .wedding-hero-foot { grid-column: 2; margin: 0; }
    .hero-row:has(.hero-times) .wedding-hero-foot { grid-row: 2; }
    .wedding-hero-foot .hero-status { width: 34px; height: 34px; padding: 0; justify-content: center; }
    .wedding-hero-foot .hero-status .mud-chip-content { display: none; }
    .wedding-hero-foot .hero-status .mud-icon-root { width: 22px; height: 22px; font-size: 22px; margin: 0; }
}
.price-sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .875rem; padding: 10px 12px; border-radius: var(--wp-radius); background: var(--mud-palette-action-default-hover); }
.price-sum > :nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; }
.couple-photo { border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.wedding-row-title { display: flex; align-items: center; gap: 8px; }
.wedding-row-title .ellipsis { min-width: 0; }
/* Not clipped: the chat icon's counter sits over its circle's edge (the names truncate on their own). */
.wedding-row-title { overflow: visible; }
/* Above phones the couple's names stand out in the lists (Bruno, 2026-10-24); phones have their own card. */
@media (min-width: 600px) {
}
/* Unread chat messages for a wedding (rows, calendar chips, wedding page). */
.wedding-unread { display: inline-flex; align-items: center; gap: 2px; flex: none; padding: 2px 6px 2px 4px; border-radius: var(--wp-radius); color: var(--mud-palette-text-secondary); cursor: pointer; font-weight: 400; }
.wedding-unread:hover { background: var(--mud-palette-action-default-hover); }
.wedding-unread .mud-icon-root { width: 18px; height: 18px; }
.unread-count { background: var(--mud-palette-error); color: #fff; }
.unread-count.compact { min-width: 15px; height: 15px; padding: 0 4px; font-size: .6rem; }
/* The couple's photo: the header's whole left side, flush with its edges, with the way back (top left), the date
   (bottom left) and the manager's photo button (bottom right) on it. */
.hero-photo { position: relative; z-index: 1; flex: none; width: 220px; min-height: 150px; align-self: stretch; overflow: hidden; background: #2b2825; } /* room for the way back and the date */
.hero-photo-open { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.hero-photo-open .couple-photo { width: 100% !important; height: 100% !important; border-radius: 0; display: block; }
.wedding-hero .hero-photo .hero-back { position: absolute; left: 10px; top: 10px; z-index: 2; color: #fff !important; background: rgba(20, 18, 16, .42);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.wedding-hero .hero-photo .hero-back:hover { background: rgba(20, 18, 16, .6); }
.hero-date { position: absolute; left: 10px; bottom: 10px; z-index: 2; color: #fff !important; background: rgba(20, 18, 16, .42) !important;
    border: 1px solid rgba(255, 255, 255, .22) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-date .date-month { color: var(--wp-gold-light) !important; }
.hero-date .date-year { opacity: .8; }
.hero-photo-pick { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: var(--wp-gold); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); overflow: hidden; }
.hero-photo-pick .mud-icon-root { width: 18px; height: 18px; }
.photo-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; cursor: zoom-out; }
.photo-lightbox img { max-width: 100%; max-height: calc(100vh - 100px); border-radius: var(--wp-radius); object-fit: contain; }
.photo-lightbox-caption { color: #F3EEE6; font-family: "Titillium Web", sans-serif; font-size: 1.3rem; }
.hero-title { color: var(--wp-ink); font-size: 2rem !important; text-transform: uppercase; letter-spacing: .03em; } /* upper case (Bruno, 2026-10-24) */
.wp-dark .hero-title { color: #fff; }
.hero-meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } /* the hours under the day (Bruno, 2026-10-24) */
.cap { text-transform: capitalize; }
.cap-first { display: inline-block; }
.cap-first::first-letter { text-transform: uppercase; }
/* The day and hours as badges, in the wedding header and the Equipa tab's rows:
   the day's calendar in blue, the start's clock in green, the end's flag in red. */
.time-badge { display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; height: var(--wp-badge-h); padding: 0 14px;
    border-radius: var(--wp-radius); font-size: var(--wp-badge-font); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
    color: var(--mud-palette-text-primary); background: color-mix(in srgb, var(--mud-palette-info) 12%, transparent); }
.time-badge > span { display: contents; }
.time-badge .mud-icon-root { width: 22px; height: 22px; flex: none; color: var(--mud-palette-info); }
.time-badge .tb-start { color: var(--mud-palette-success); }
.time-badge .tb-end { margin-left: 6px; color: var(--mud-palette-error); }
@media (max-width: 599.98px) {
    /* A step smaller in the phone header (like the status beside them) and on the phone wedding cards, where it then
       fits beside the crew's faces. */
    .hero-meta { gap: 6px; }
    .hero-row { margin-top: 6px; }
    :is(.hero-meta, .rp-times) .time-badge { height: 34px; padding: 0 10px; gap: 6px; font-size: .8rem; }
    :is(.hero-meta, .rp-times) .time-badge .mud-icon-root { width: 18px; height: 18px; }
    :is(.hero-meta, .rp-times) .time-badge .tb-end { margin-left: 4px; }
}
/* Without a photo (every screen) and always on phones, the way back and the date sit beside the names: the way back up
   in the corner, level with the corner icons on the right (10px from the top), the date centred in the room below. */
.hero-lead { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; flex: none; padding: 10px 0 14px 18px; position: relative; z-index: 1; }
.hero-lead > .date-block { margin-block: auto; }
.hero-photo + .hero-lead { display: none; }
@media (max-width: 959.98px) { .hero-photo { width: 180px; } }
/* Phones: no couple photo (Bruno, 2026-10-24: it took too much room). */
@media (max-width: 599.98px) {
    .hero-photo { display: none; }
    .hero-lead, .hero-photo + .hero-lead { display: flex; padding: 10px 0 12px 12px; }
    .hero-main { padding: 14px 10px 10px 16px; }
    .hero-title { font-size: 1.5rem !important; margin-top: calc(-4px + (42px - 1.2em) / 2) !important; }
}
.wedding-tabs .mud-tabs-tabbar { background: transparent; border-bottom: 1px solid var(--mud-palette-lines-default); border-radius: 0 !important; }
/* A line between neighbouring tabs (Bruno, 2026-10-24); the bar's bottom edge is straight, the frame rounds its top. */
.wedding-tabs .mud-tabs-tabbar-wrapper > .mud-tooltip-root + .mud-tooltip-root { border-left: 1px solid var(--mud-palette-lines-default); }
/* As tall as the bar (MudTabs gives it 48px), so the icons sit centred and the hover colour reaches the line under them. */
.wedding-tabs .mud-tab { min-height: 48px; }
/* The open tab stands out in green: its icon, label and underline (Bruno, 2026-10-24). */
.wedding-tabs .mud-tab.mud-tab-active, .wedding-tabs .mud-tab.mud-tab-active .mud-icon-root { color: var(--mud-palette-success) !important; }
.wedding-tabs .mud-tab-slider { background: var(--mud-palette-success) !important; }
/* Every tab label in the app: uppercase with a little tracking. */
.mud-tab { text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
@media (min-width: 760px) and (max-width: 1279.98px) {
    /* Tablets and small desktops: icon above the uppercase label, tabs share the width evenly. */
    .wedding-tabs .mud-tabs-tabbar-content, .wedding-tabs .mud-tabs-tabbar-wrapper { width: 100%; }
    .wedding-tabs .mud-tabs-scroll-button { display: none; }
    .wedding-tabs .mud-tabs-tabbar-wrapper > .mud-tooltip-root { flex: 1 1 0; min-width: 0; }
    .wedding-tabs .mud-tab { width: 100%; min-width: 0 !important; flex-direction: column; gap: 2px; padding: 6px 4px; min-height: 56px;
        font-size: .7rem; letter-spacing: .03em; line-height: 1.2; white-space: normal; text-align: center; }
    .wedding-tabs .mud-tab .mud-icon-root { margin: 0 !important; }
}
@media (max-width: 759.98px) {
    /* Icons only on phones so every tab fits without scrolling; equal widths keep the lines between them evenly spaced. */
    .wedding-tabs .mud-tabs-tabbar-content, .wedding-tabs .mud-tabs-tabbar-wrapper { width: 100%; }
    .wedding-tabs .mud-tabs-tabbar-wrapper > .mud-tooltip-root { flex: 1 1 0; min-width: 0; }
    .wedding-tabs .mud-tab { font-size: 0; padding: 6px 8px; width: 100%; min-width: 0 !important; }
    .wedding-tabs .mud-tab .mud-icon-root { font-size: 1.5rem; margin: 0 !important; }
    .wedding-tabs .mud-tabs-scroll-button { display: none; }
}

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* Phones: a tile with a length takes the whole row, the others fill in two by two. */
@media (max-width: 599.98px) { .service-grid { grid-auto-flow: row dense; } .service-tile.has-duration { grid-column: 1 / -1; } }
.service-tile { display: flex; align-items: center; gap: 8px; box-sizing: border-box; min-height: var(--wp-badge-h); padding: 0 12px; border-radius: var(--wp-radius);
    border: 1px solid rgba(79, 138, 98, .35); background: rgba(79, 138, 98, .08); font-weight: 600; font-size: var(--wp-badge-font); }
.service-tile > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-tile > .svc-duration { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--mud-palette-text-secondary); overflow: visible; }
.service-tile > .svc-duration .mud-icon-root { width: 18px; height: 18px; color: var(--mud-palette-info); }
.switch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px; }

.timeline { position: relative; }
.timeline-item { display: grid; grid-template-columns: 48px 32px 1fr auto; align-items: center; gap: 8px; padding: 6px 0; position: relative; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 71px; top: 38px; bottom: -8px; width: 2px; background: var(--mud-palette-lines-default); }
.timeline-time { font-weight: 600; font-size: .9rem; text-align: right; }
.timeline-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--wp-gold) 14%, transparent); color: var(--wp-gold); }
.timeline-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mud-palette-text-secondary); }
.timeline-sub { font-weight: 600; }

.crew-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--mud-palette-lines-default); }
.crew-row:last-child { border-bottom: none; }
.crew-row.declined { opacity: .5; }
.crew-main { flex: 1; min-width: 0; }
.crew-side { display: flex; align-items: center; gap: 4px; }
/* Team members: PC and tablet show Editar and Remover as icons on the row, phones keep the "⋮" menu (Bruno, 2026-10-26). */
@media (max-width: 599.98px) { .member-act-icons { display: none !important; } }
@media (min-width: 600px) { .member-act-menu { display: none !important; } .member-icons > .member-act-icons { display: contents; } }
/* On phones the status chips wrap above the amount instead of pushing over the role tags. */
@media (max-width: 599px) { .crew-side { flex-wrap: wrap; justify-content: flex-end; max-width: 136px; } }
/* Team details, every screen: the icons in the row's top-right corner, the fee alone in the bottom-right corner, larger and in
   the accent colour (Bruno, 2026-10-26). */
.team-members .crew-row { align-items: stretch; }
.team-members .crew-row > .team-face { align-self: center; }
.team-members .crew-side { flex-direction: column; flex-wrap: nowrap; align-items: flex-end; justify-content: space-between; gap: 8px; max-width: none; }
.team-members .member-icons { display: flex; align-items: center; gap: 4px; }
.team-members .member-fee { font-size: 1.3rem; font-weight: 700; color: var(--mud-palette-primary); }
/* The wedding's Equipa tab (Bruno, 2026-10-24): every row's chat, then the manager's actions, at one size in its top right
   corner; the hours as a badge followed by how many hours that is. Computers and tablets show the actions as icons, phones
   keep them behind ⋮. */
.wedding-crew .crew-actions { display: flex; align-items: center; gap: 6px; }
.wedding-crew .crew-chat { display: inline-flex; }
.wedding-crew .crew-chat .member-chat { width: 40px; height: 40px; background: color-mix(in srgb, var(--mud-palette-primary) 11%, transparent); }
.wedding-crew .crew-chat .member-chat .mud-icon-root { width: 20px; height: 20px; }
.wedding-crew .crew-chat .member-chat-dot { top: 2px; right: 2px; }
.wedding-crew .crew-times { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.wedding-crew .crew-times:empty { display: none; }
@media (min-width: 600px) {
    /* Face, name and the corner icons on the first line; roles, then the hours with the money box on the right (Bruno,
       2026-10-24), across the width under the name, reaching the icons' edge. */
    .wedding-crew .crew-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 0 12px; }
    .wedding-crew .crew-main { display: contents; }
    .wedding-crew .crew-row > .mud-avatar { grid-area: 1 / 1; width: 48px; height: 48px; }
    .wedding-crew .item-title { grid-area: 1 / 2; align-self: center; font-size: 1.3rem; font-weight: 700; line-height: 1.3; min-height: 40px; }
    .wedding-crew .crew-side { grid-area: 1 / 3; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
    .wedding-crew .crew-main > :not(.item-title) { grid-column: 2 / -1; min-width: 0; }
    /* Never two lines: when space runs short the hour badges stack, then the money box's labels wrap. */
    .wedding-crew .crew-info { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(min-content, max-content); align-items: center; gap: 8px 12px; margin-top: 6px; }
    /* The money box sits inside <e2e-fin> (display: contents) since the amounts are encrypted, so it is matched there too. */
    .wedding-crew :is(.crew-info, .crew-info > e2e-fin) > .my-money { grid-column: 2; margin: 0; column-gap: 14px; flex-wrap: nowrap; }
    .wedding-crew :is(.crew-info, .crew-info > e2e-fin) > .my-money b { white-space: nowrap; }
    .wedding-crew .crew-info > .offer-money { grid-column: 1 / -1; }
    .wedding-crew .crew-menu { display: none; }
}
@media (max-width: 599.98px) {
    /* Phones (Bruno, 2026-10-24): face and name, with every action in the top right corner at one size; roles, hours
       and status chips under the name, and the money box across the whole row so its amounts fit on one line. */
    .wedding-crew .crew-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; column-gap: 10px; row-gap: 4px; padding: 14px 12px; }
    .wedding-crew :is(.crew-main, .crew-side) { display: contents; }
    .wedding-crew .crew-row > .mud-avatar { grid-area: 1 / 1; align-self: center; width: 44px; height: 44px; font-size: 1rem; }
    .wedding-crew .item-title { grid-area: 1 / 2; align-self: center; }
    .wedding-crew .crew-actions { grid-area: 1 / 3; align-self: center; }
    .wedding-crew .crew-icon-actions { display: none; }
    .wedding-crew .crew-info { display: contents; }
    .wedding-crew :is(.crew-main, .crew-info) > :not(.item-title, .crew-info), .wedding-crew .crew-side .mud-chip { grid-column: 1 / -1; justify-self: start; margin: 0; }
    .wedding-crew .role-chips { margin-top: 8px; }
    /* The money box inside <e2e-fin> too: missed, it fell into the face's column and squeezed the name (2026-11-13). */
    .wedding-crew :is(.crew-info, .crew-info > e2e-fin) > :is(.my-money, .offer-money) { grid-column: 1 / -1; justify-self: stretch; order: 1; margin-top: 8px; }
    .wedding-crew .my-money { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: stretch; gap: 10px; }
    .wedding-crew .my-money > span { justify-content: space-between; } /* a label on two lines keeps the amounts level */
}
.role-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
/* The Equipa tab's role badges in the open tab's green (Bruno, 2026-10-24); the neon outline follows the text colour. */
.wedding-crew .role-chips .tag { color: var(--mud-palette-success); background: color-mix(in srgb, var(--mud-palette-success) 12%, transparent); }
html.wp-neon .wedding-crew .role-chips .tag { text-shadow: 0 0 8px color-mix(in srgb, var(--mud-palette-success) 45%, transparent); }
.money-small { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.item-title { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item-notes { margin: 8px 0 0; white-space: pre-line; font-size: .9rem; }
.note-text { white-space: pre-line; margin: 0; line-height: 1.5; }
.icon-bubble { width: 42px; height: 42px; flex: none; border-radius: var(--wp-radius); display: grid; place-items: center; background: color-mix(in srgb, var(--wp-gold) 14%, transparent); color: var(--wp-gold); }
.icon-bubble.small { width: 34px; height: 34px; border-radius: var(--wp-radius); }

/* The names can run long, so this one grows downwards instead of overflowing. */
.visibility-badge { height: auto; min-height: var(--wp-badge-h); padding-block: 8px; white-space: normal; margin-top: 8px; background: rgba(91, 125, 166, .12); color: #5B7DA6; }
.visibility-picker { border: 1px dashed var(--mud-palette-lines-default); border-radius: var(--wp-radius); padding: 8px 12px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.photo-tile { position: relative; aspect-ratio: 1; border-radius: var(--wp-radius); overflow: hidden; background: var(--mud-palette-lines-default); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .2s; }
.photo-tile img:hover { transform: scale(1.03); }
.photo-lock { position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: var(--wp-radius); padding: 2px 4px; display: flex; }
.photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: .74rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.photo-strip { display: flex; gap: 6px; overflow-x: auto; margin-top: 12px; }
.photo-strip img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--wp-radius); cursor: zoom-in; flex: none; }
@media (max-width: 599.98px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; } }
/* Photo groups (Bruno, 2026-10-25): one block per group with its name, count and actions, "Sem grupo" last. Photos are
   picked to move with a tick on their corner; while one is dragged (computers) every group shows it can take it. */
.photo-head-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.photo-select-count { font-size: .85rem; color: var(--mud-palette-text-secondary); }
.photo-select-bar { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px;
    background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-primary); border-radius: var(--wp-radius); box-shadow: 0 8px 28px rgba(0, 0, 0, .2); }
.photo-select-bar > .photo-select-count { flex: 1 1 auto; min-width: 0; }
.photo-groups { display: flex; flex-direction: column; gap: 12px; }
.photo-group { border: 1px solid var(--mud-palette-lines-default); border-radius: var(--wp-radius); padding: 4px 12px 12px; transition: border-color .15s; }
.photo-group.collapsed { padding-bottom: 4px; }
.photo-group-head { display: flex; align-items: center; gap: 4px; min-height: 44px; }
.photo-group-toggle { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.photo-group-chevron { flex: none; color: var(--mud-palette-text-secondary); transition: transform .2s; }
.photo-group.collapsed .photo-group-chevron { transform: rotate(-90deg); }
.photo-group-icon { flex: none; color: var(--mud-palette-primary); }
.photo-group.loose .photo-group-icon { color: var(--mud-palette-text-secondary); }
.photo-group-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.photo-group-count { flex: none; font-size: .8rem; color: var(--mud-palette-text-secondary); white-space: nowrap; }
.photo-group-count::before { content: "·"; margin-right: 6px; }
.photo-group-empty { padding: 2px 0 4px 32px; font-size: .85rem; color: var(--mud-palette-text-secondary); }
.photo-group > .photo-grid { margin-top: 4px; }
.photo-group-menu { display: none; }
.photo-groups.dragging .photo-group { border-style: dashed; border-color: var(--mud-palette-primary); }
.photo-tile.selectable img { cursor: pointer; }
.photo-tile.unselectable { opacity: .4; }
.photo-tile.unselectable img { cursor: default; }
.photo-tile:is(.selectable, .unselectable) img:hover { transform: none; }
.photo-tile.picked { box-shadow: inset 0 0 0 3px var(--mud-palette-primary); }
.photo-tile.picked img { transform: scale(.9); border-radius: var(--wp-radius); }
.photo-tile.picked img:hover { transform: scale(.9); }
.photo-pick { position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .35); color: #fff; pointer-events: none; }
.photo-pick .mud-icon-root { width: 24px; height: 24px; }
.photo-tile:not(.picked) .photo-pick .mud-icon-root { color: transparent; box-shadow: inset 0 0 0 2px #fff; border-radius: 50%; width: 20px; height: 20px; }
.photo-tile.picked .photo-pick { background: #fff; color: var(--mud-palette-primary); }
.mud-popover.lightbox-pop { z-index: 2100 !important; }
@media (max-width: 599.98px) {
    .photo-group { padding: 2px 8px 8px; }
    .row-actions.photo-group-actions { display: none; }
    .photo-group-menu { display: inline-flex; }
    .photo-head-actions { width: 100%; }
    .photo-head-actions > * { flex: 1 1 auto; }
    .photo-select-bar { flex-wrap: wrap; padding: 8px 10px; }
    .photo-select-bar > * { flex: 1 1 0; }
    .photo-select-bar > .photo-select-count { flex: 1 1 100%; }
    .photo-select-bar .mud-button-root { width: 100%; }
}

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 10, 10, .92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); border-radius: var(--wp-radius); }
.lightbox-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
/* Stepping through the photos: round arrows on dark glass at the sides (outside the picture from tablets up), a counter
   in the bar, and the next picture sliding in from the side it came from. */
.lightbox { overscroll-behavior: contain; -webkit-user-select: none; user-select: none; }
.lightbox-img.from-next { animation: lightbox-in-next .22s ease-out; }
.lightbox-img.from-prev { animation: lightbox-in-prev .22s ease-out; }
@keyframes lightbox-in-next { from { opacity: 0; transform: translateX(48px); } }
@keyframes lightbox-in-prev { from { opacity: 0; transform: translateX(-48px); } }
.lightbox-preload { display: none; }
.lightbox-nav { position: absolute; top: 50%; z-index: 1; width: 48px; height: 48px; margin-top: -24px; padding: 0; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22); background: rgba(20, 20, 20, .55); color: #fff; cursor: pointer;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .15s ease; -webkit-tap-highlight-color: transparent; }
.lightbox-nav:hover { background: rgba(60, 60, 60, .8); }
.lightbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox-nav .mud-icon-root { font-size: 2rem; }
.lightbox-nav.prev { left: max(16px, env(safe-area-inset-left)); }
.lightbox-nav.next { right: max(16px, env(safe-area-inset-right)); }
.lightbox-count { margin-right: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; opacity: .85; }
@media (min-width: 600px) { .lightbox { padding-inline: 88px; } }
@media (max-width: 599.98px) {
    .lightbox-nav { width: 44px; height: 44px; margin-top: -22px; }
    .lightbox-nav.prev { left: max(8px, env(safe-area-inset-left)); }
    .lightbox-nav.next { right: max(8px, env(safe-area-inset-right)); }
}
@media (prefers-reduced-motion: reduce) { .lightbox-img.from-next, .lightbox-img.from-prev { animation: none; } }

/* ---------- Money ---------- */
.money-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--mud-palette-lines-default); }
.money-row:last-child { border-bottom: none; }
.money-row.sub { padding: 4px 0 4px 8px; border-bottom: none; }
.money-row-main { flex: 1; min-width: 0; }
.money-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.money-progress .mud-progress-linear { flex: 1; }
.crew-money { padding: 12px 0; border-bottom: 1px solid var(--mud-palette-lines-default); }
.crew-money:last-child { border-bottom: none; }
.crew-money-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.crew-money-grid > div { background: var(--mud-palette-background); border-radius: var(--wp-radius); padding: 8px 10px; display: flex; flex-direction: column; }
.crew-money-grid span { font-size: .7rem; color: var(--mud-palette-text-secondary); }
.crew-money-grid b { font-size: .92rem; }
@media (max-width: 599.98px) { .crew-money-grid { grid-template-columns: repeat(2, 1fr); } }
/* Pagamentos à equipa: one line per member, the four amounts in fixed right-aligned columns so they line up from row
   to row; on narrow screens the amounts drop under the name. */
.crew-line { display: flex; align-items: center; gap: 12px; }
.crew-line-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.crew-line-who > b { min-width: 0; }
.crew-line-who .mud-chip { flex-shrink: 0; margin: 0; }
.crew-line-amounts { display: grid; grid-template-columns: repeat(4, 7.5rem); gap: 8px; flex-shrink: 0; }
.crew-line-amounts > div { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.25; }
.crew-line-amounts span { font-size: .7rem; color: var(--mud-palette-text-secondary); white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; }
/* Faces as big as in the other lists (Bruno, 2026-10-24): 48px, 44px on phones. */
.crew-line-who > .mud-avatar { width: 48px; height: 48px; font-size: 1.05rem; flex: none; }
@media (max-width: 599.98px) { .crew-line-who > .mud-avatar { width: 44px; height: 44px; font-size: 1rem; } }
/* A team's members and invites (team page): the same faces. */
.mud-avatar.team-face { width: 48px; height: 48px; font-size: 1.05rem; flex: none; }
@media (max-width: 599.98px) { .mud-avatar.team-face { width: 44px; height: 44px; font-size: 1rem; } }
.crew-line-amounts b { font-size: .92rem; white-space: nowrap; }
.crew-line-action { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.pay-toggle .mud-icon-root { transition: transform .2s ease; }
.pay-toggle.open .mud-icon-root { transform: rotate(180deg); }
/* A member's payments, opened from the arrow (Bruno, 2026-10-24): type, method, date, amount, delete in columns. */
.pay-list { margin: 10px 0 4px; border: 1px solid var(--mud-palette-lines-default); border-radius: var(--wp-radius); overflow: hidden; }
.pay-head, .pay-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 40px; align-items: center; column-gap: 12px; padding: 6px 6px 6px 12px; }
.pay-head { padding-block: 8px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mud-palette-text-secondary);
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent); }
.pay-row { border-top: 1px solid var(--mud-palette-lines-default); font-size: .9rem; }
.pay-row .num, .pay-head .num { text-align: right; }
.pay-kind { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pay-kind small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-amount { white-space: nowrap; }
@media (max-width: 599.98px) {
    /* Phones: type and amount on top, method and date under them, delete on the right. */
    .pay-head { display: none; }
    .pay-row { grid-template-columns: minmax(0, 1fr) auto 40px; grid-template-areas: "kind amount del" "method date del"; row-gap: 2px; }
    .pay-kind { grid-area: kind; } .pay-amount { grid-area: amount; } .pay-delete { grid-area: del; }
    .pay-method { grid-area: method; } .pay-date { grid-area: date; text-align: right; }
    .pay-row :is(.pay-method, .pay-date) { font-size: .8rem; color: var(--mud-palette-text-secondary); }
}
.crew-money.pending .crew-line-amounts, .crew-money.pending .crew-line-who > b { opacity: .55; }
@media (max-width: 899.98px) {
    .crew-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
    .crew-line-amounts { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .crew-line-amounts > div { align-items: flex-start; text-align: left; background: var(--mud-palette-background); border-radius: var(--wp-radius); padding: 8px 10px; }
    .crew-line-action { grid-column: 2; grid-row: 1; }
    .app-bg ~ .mud-layout .crew-line-amounts > div { background: var(--wp-glass-tint); }
}
@media (max-width: 599.98px) { .crew-line-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.table-scroll { overflow-x: auto; }
.data-table td.team-col { white-space: nowrap; width: 1%; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { text-align: left; font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mud-palette-text-secondary); padding: 12px 16px; border-bottom: 1px solid var(--mud-palette-lines-default); white-space: nowrap; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--mud-palette-lines-default); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .num { text-align: right; }
.data-table tr.clickable { cursor: pointer; }
.data-table tr.clickable:hover td { background: var(--mud-palette-action-default-hover); }

/* ---------- Calendar ---------- */
.cal-head { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.cal-title { min-width: 160px; text-align: center; }
/* The month or week stays on one line, so the calendar below never moves: a long week ("28 DEZ – 3 JAN 2027") gets a
   smaller font where it doesn't fit (fitTitle in app.js), and is cut with an ellipsis only on the narrowest screens. */
.cal-head .cal-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Month (Bruno, 2026-10-25): the grid fills its panel edge to edge, no gaps, only 1px lines between the days (the panel's
   own border frames it), so events lasting several days run across the days as one bar (.cal-span, laid in the week's
   grid row). The sizes below are shared by the day cells and the bars, which sit under the day number at their lane. */
.cal-month-card { padding: 0; }
.cal-month-card > .cal-legend { margin: 0; padding: 10px 12px 12px; }
/* Month and week also fill the height left under the filters, the weeks growing by the same amount (Bruno, 2026-10-25); the cells
   minimum heights still hold, so short windows scroll instead of squashing them. */
/* A swipe moves the month or week with the finger and slides it out and the next one in (wpCalSwipe in app.js). */
.fill-scroll:is(.swipe-drag, .swipe-anim) { overflow-x: hidden; }
.fill-scroll:is(.swipe-drag, .swipe-anim) > * { transform: translateX(var(--swipe-x, 0)); opacity: var(--swipe-o, 1); }
.fill-scroll.swipe-anim > * { transition: transform .2s ease-out, opacity .2s ease-out; }
.fill-scroll:has(> .cal-month-card) { display: flex; flex-direction: column; }
.fill-scroll > .cal-month-card { flex: 1 0 auto; display: flex; flex-direction: column; }
.cal-month-card > .cal-grid { flex: 1 0 auto; grid-template-rows: min-content; }
/* Touch screens: the month between its neighbours, in a strip five months wide resting on the middle one; a swipe
   moves the strip through --swipe-x on the viewport (wpCalSwipe in app.js). */
.cal-viewport { flex: 1 0 auto; display: flex; overflow: hidden; }
.cal-track { flex: 1 0 100%; min-width: 0; display: flex; transform: translateX(calc(-200% + var(--swipe-x, 0px))); }
.cal-viewport.swipe-anim > .cal-track { transition: transform .2s ease-out; }
.cal-track > .cal-grid { flex: 0 0 100%; min-width: 0; grid-template-rows: min-content; }
/* Only the month or week on screen sets the strip's height: a fuller neighbour (six weeks, more events) would otherwise
   stretch every month beside it and push LEGENDA and CALENDÁRIOS off the screen. The neighbours take that height and
   clip what doesn't fit while they slide in. */
.cal-track > .cal-grid[inert] { contain: size; min-height: 0; overflow: hidden; }
/* Once the script knows the calendar's free height, a neighbour takes that height (rather than the month on screen's,
   which may be taller), and a week sliding in its own height where that is more (wpCalSwipe's fitStrip). */
.cal-viewport[style*="--cal-avail"] > .cal-track > .cal-grid[inert] { align-self: flex-start; height: var(--cal-avail); }
.cal-viewport[style*="--cal-avail"] > .cal-track > .cal-grid-week[inert].arriving { contain: none; height: auto; min-height: var(--cal-avail); }
@media (min-width: 960px) {
    .fill-scroll:has(> .week-grid-only) { display: flex; flex-direction: column; }
    .fill-scroll > .week-grid-only { flex: 1 0 auto; display: flex; flex-direction: column; }
    .week-grid-only > .cal-week { flex: 1 0 auto; }
}
.cal-grid { --cal-pt: 6px; --cal-px: 6px; --cal-num: 24px; --cal-gap: 3px; --cal-bar: 20px; --cal-line: var(--mud-palette-lines-default);
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.cal-dow { grid-row: 1; text-align: center; font-size: .72rem; line-height: 1.4; text-transform: uppercase; color: var(--mud-palette-text-secondary); padding: 3px 0; letter-spacing: .05em; }
.cal-day { min-height: 92px; min-width: 0; border: 0 solid var(--cal-line); border-width: 0 1px 1px 0; border-radius: 0; padding: var(--cal-pt) var(--cal-px);
    display: flex; flex-direction: column; gap: var(--cal-gap); cursor: pointer; position: relative; }
.cal-day.r0 { border-top-width: 1px; }
.cal-day.cl { border-right-width: 0; }
.cal-day:hover { background: var(--mud-palette-action-default-hover); }
.cal-day.other > * { opacity: .4; }
.cal-day.today .cal-num { background: var(--wp-gold); color: #fff; }
.cal-day.selected { box-shadow: 0 0 0 2px var(--wp-gold) inset; }
.cal-num { align-self: flex-end; font-size: .8rem; font-weight: 600; width: var(--cal-num); height: var(--cal-num); flex: none; border-radius: 50%; display: grid; place-items: center; }
/* A month's weeks share the height evenly, whatever their days hold (Bruno, 2026-10-26): a day shows the events that fit
   and counts the rest under them ("+N", wpCalFit in app.js). Nothing inside counts towards the grid's height (contain),
   only the free height it is given; below --cal-row a week (--weeks of them) stops shrinking and the page scrolls. */
.cal-grid { --cal-row: 92px; --cal-more-h: 14px; }
.cal-grid:not(.cal-grid-week) { contain: size; min-height: calc(22px + var(--weeks, 5) * var(--cal-row)); grid-auto-rows: minmax(var(--cal-row), 1fr); }
.cal-grid:not(.cal-grid-week) > .cal-day { min-height: 0; overflow-x: visible; overflow-y: clip; }
.cal-event[data-fit] { display: none !important; }
.cal-day[data-more]::after { content: "+" attr(data-more); flex: none; height: var(--cal-more-h); line-height: var(--cal-more-h); font-size: .68rem;
    text-align: center; color: var(--mud-palette-text-secondary); }
.cal-day.other[data-more]::after { opacity: .4; }
.cal-lanes { flex: none; height: calc(var(--lanes) * var(--cal-bar) + (var(--lanes) - 1) * var(--cal-gap)); }
.cal-event.cal-span { align-self: start; z-index: 1; height: var(--cal-bar); min-width: 0; border-radius: 0;
    margin: calc(var(--cal-pt) + var(--cal-num) + var(--cal-gap) + var(--lane) * (var(--cal-bar) + var(--cal-gap))) 0 0; }
.cal-event.cal-span.starts { margin-left: var(--cal-px); border-top-left-radius: var(--wp-radius); border-bottom-left-radius: var(--wp-radius); }
.cal-event.cal-span.ends { margin-right: var(--cal-px); border-top-right-radius: var(--wp-radius); border-bottom-right-radius: var(--wp-radius); }

.cal-event { position: relative; font-size: .7rem; padding: 2px 6px; border-radius: var(--wp-radius); background: rgba(79, 138, 98, .15); color: #3c6e4c; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 3px; min-width: 0; border: 1px solid transparent; }
/* Complete or not (Ui.Missing): a small round badge on the chip's top right corner, like the counters, a white tick on
   green or a white "!" on amber. */
.cal-check { width: 14px; height: 14px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: #fff;
    box-shadow: 0 0 0 1.5px var(--mud-palette-surface); }
.cal-check .mud-icon-root { width: 10px !important; height: 10px !important; font-size: 10px !important; }
.cal-check.done { background: var(--mud-palette-success); }
.cal-check.todo { background: #E0952B; }
.cal-check.owed { background: var(--mud-palette-error); }
/* Past weddings with payments missing: the red euro in place of the status icon (lists, PC week cards). */
.week-card-status .owed-icon { color: var(--mud-palette-error); }
.cal-event > .cal-check { position: absolute; top: -6px; right: -5px; z-index: 1; }
.cal-legend-items .cal-check { margin-right: 2px; }
.cal-event > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cal-event:hover { filter: brightness(.94); text-decoration: none; }
.cal-event.status-tentative { background: rgba(210, 154, 60, .18); color: #9a6c1f; }
.cal-event.status-done { background: rgba(120, 120, 120, .15); color: var(--mud-palette-text-secondary); }
.cal-event.awaiting { background: transparent; border: 1px dashed currentColor; }
.wp-dark .cal-event { color: #7BE09C; background: rgba(70, 190, 110, .24); }
.wp-dark .cal-event.status-tentative { color: #F5BE62; background: rgba(230, 165, 60, .24); }
.wp-dark .cal-event.status-done { color: #b9b6b0; background: rgba(160, 160, 160, .16); }
.wp-dark .cal-event.awaiting { background: transparent; }
.cal-event > .unread-count { flex: none; overflow: visible; margin-left: auto; }
/* Weddings in my other teams: blue, with that team's logo or a team icon. */
.cal-event.cal-elsewhere { background: var(--wp-other-bg); color: var(--wp-other); }
.cal-event.cal-elsewhere.awaiting { background: transparent; }
.cal-event.cal-elsewhere .team-logo { border-radius: 50%; object-fit: cover; }
.lg-elsewhere { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: var(--wp-radius); background: var(--wp-other-bg); color: var(--wp-other); margin-right: 2px; }
.lg-elsewhere .mud-icon-root { width: 12px; height: 12px; }
/* Personal calendars (Bruno, 2026-10-25): one's own all-day events in a neutral slate with an event icon (only the owner
   sees them); with one crew member filtered, the days they can't take are hatched with a no-entry sign and get no "+". */
:root { --wp-personal: #56677D; --wp-personal-bg: rgba(86, 103, 125, .14); }
html.wp-dark { --wp-personal: #AFC0D6; --wp-personal-bg: rgba(175, 192, 214, .16); }
/* They open their details (ExternalEventDialog) when clicked (Bruno, 2026-10-25). */
.cal-event.cal-personal, .wp-dark .cal-event.cal-personal { background: var(--wp-personal-bg); color: var(--wp-personal); cursor: pointer; }
.week-card.cal-personal, .wp-dark .week-card.cal-personal { --wk: var(--wp-personal); --wk-bg: var(--wp-personal-bg); cursor: pointer; }
/* An event with a time too short to take the day: outlined instead of filled, its start time first. */
.cal-event.cal-personal.free, .wp-dark .cal-event.cal-personal.free { background: transparent; border-color: color-mix(in srgb, var(--wp-personal) 45%, transparent); }
.week-card.cal-personal.free { background: transparent; border-color: color-mix(in srgb, var(--wp-personal) 35%, transparent); border-left-color: var(--wk); }
.cal-event .cal-time { font-weight: 700; margin-right: 3px; }
.week-card.cal-personal .week-card-title .mud-icon-root { width: 16px; height: 16px; flex: none; }
.personal-row { cursor: pointer; }
.unavailable-row { cursor: default; }
.unavailable-row:hover { background: none; }
.personal-row .wedding-row-title { color: var(--wp-personal); }
.personal-row .personal-icon, .personal-row .blocked-icon { width: 20px; height: 20px; flex: none; }
.unavailable-row .wedding-row-title, .unavailable-row .blocked-icon { color: var(--mud-palette-error); }
.cal-day.member-busy, .cal-week-col.member-busy {
    background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--mud-palette-text-primary) 7%, transparent) 7px 9px); }
.cal-day.member-busy .cal-num { opacity: .55; }
.cal-blocked { position: absolute; top: 5px; left: 5px; width: 24px; height: 24px; display: grid; place-items: center; color: var(--mud-palette-error); }
.cal-blocked .mud-icon-root { width: 18px; height: 18px; }
.cal-week-blocked { display: grid; place-items: center; color: var(--mud-palette-error); }
.cal-week-blocked .mud-icon-root { width: 18px; height: 18px; }
.cal-unavailable { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--mud-palette-error); }
.cal-legend-items .lg-personal .mud-icon-root { width: 16px; height: 16px; color: var(--wp-personal); }
.cal-legend-items .lg-blocked .mud-icon-root { width: 16px; height: 16px; color: var(--mud-palette-error); }
.cal-legend { align-items: center; }
.cal-link-btn { text-transform: uppercase; }

.cal-foot { display: flex; justify-content: flex-end; margin: 12px 0 4px; }
@media (max-width: 599.98px) {
    .cal-blocked { top: 2px; left: 2px; width: 18px; height: 18px; }
    .cal-blocked .mud-icon-root { width: 14px; height: 14px; }
    .cal-legend > * { flex: 1 1 0; }
    .cal-legend .mud-button-root { width: 100%; }
    .cal-foot { justify-content: stretch; margin: 12px 0; }
    .cal-foot .cal-link-btn { width: 100%; }
}
/* The dialog: linked calendars, then the source picker, its steps and the link. */
.cal-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cal-link-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--mud-palette-lines-default); border-radius: var(--wp-radius); }
.cal-link-row.has-error { border-color: color-mix(in srgb, var(--mud-palette-error) 60%, transparent); }
.cal-link-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--wp-personal); background: var(--wp-personal-bg); }
.cal-link-icon .mud-icon-root { width: 20px; height: 20px; }
.cal-link-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.cal-link-main small { font-size: .78rem; }
.cal-link-add-title { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin-bottom: 8px; }
.cal-link-sources { width: 100%; margin-bottom: 10px; }
.cal-link-sources .mud-toggle-item { flex: 1 1 0; }
.cal-link-steps { margin: 0 0 12px; padding-left: 20px; font-size: .88rem; line-height: 1.45; }
.cal-link-steps li + li { margin-top: 4px; }
.cal-link-secret { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .78rem; color: var(--mud-palette-text-secondary); }
.cal-link-secret .mud-icon-root { width: 16px; height: 16px; }
@media (max-width: 599.98px) { .cal-link-sources .cal-view-item > span { display: none; } }
/* One of my calendar's events, opened from the calendar: its facts one per line, then the description as text. */
.ext-event-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ext-event-title { min-width: 0; overflow-wrap: anywhere; }
.ext-event-facts { display: flex; flex-direction: column; gap: 12px; }
.ext-event-fact { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.ext-event-fact > .mud-icon-root { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--wp-personal); }
.ext-event-fact > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ext-event-fact small { font-size: .78rem; }
.ext-event-wrap { overflow-wrap: anywhere; }
.ext-event-link { color: var(--mud-palette-primary); font-size: .85rem; font-weight: 600; }
.ext-event-label { margin: 18px 0 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.ext-event-desc { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.5; padding: 10px 12px;
    border: 1px solid var(--mud-palette-lines-default); border-radius: var(--wp-radius); max-height: 45vh; overflow-y: auto; }
.ext-event-desc a { color: var(--mud-palette-primary); }
.wedding-row.elsewhere { box-shadow: inset 3px 0 0 var(--wp-other); }
.wedding-row-team { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.team-tag { background: var(--wp-other-bg); color: var(--wp-other); }
/* Who runs that team, right after its tag. */
.team-manager { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: .75rem; color: var(--mud-palette-text-secondary); }
.team-manager .team-manager-av { width: 20px; height: 20px; font-size: .6rem; flex: none; }
.team-tag .team-logo { border-radius: 50%; object-fit: cover; }
/* The team's logo (or its icon) at the badges' icon size. */
.team-tag :is(.team-logo, .team-logo-fallback .mud-icon-root) { width: var(--wp-badge-icon) !important; height: var(--wp-badge-icon) !important; }
.team-tag.awaiting { background: transparent; border: 1px dashed currentColor; }
.team-tag.clickable { cursor: pointer; }
.team-tag.clickable:hover { background: color-mix(in srgb, var(--wp-other) 22%, transparent); }
/* Team card opened from a team tag. */
.team-info-person { display: flex; align-items: center; gap: 12px; }
.team-info-members { display: flex; flex-wrap: wrap; gap: 8px; }
.team-info-member { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 3px 10px 3px 3px; border-radius: var(--wp-radius); background: var(--mud-palette-background); font-size: .85rem; }
.cal-second { flex-shrink: 0; display: inline-flex; }
@media (min-width: 960px) { .cal-day { min-height: 104px; } .cal-grid { --cal-row: 104px; } }
.cal-toolbar .cal-head { margin: 0; }
.toolbar-filters > :is(.toolbar-status, .toolbar-services, .toolbar-type) { flex: 1 1 0; min-width: 150px; }
/* Managers get a "+" on hover that starts a wedding on that day (top left, the day's number is on the right). */
.cal-add { position: absolute; top: 5px; left: 5px; width: 24px; height: 24px; border-radius: 50%; display: none; place-items: center;
           background: var(--mud-palette-primary); color: var(--mud-palette-primary-text); text-decoration: none; }
.cal-add .mud-icon-root { width: 16px; height: 16px; }
@media (hover: hover) and (min-width: 600px) { .cal-day:not(.other):hover .cal-add { display: grid; } }
/* The phone sheet listing a day's weddings. */
.cal-sheet-backdrop, .cal-sheet { display: none; }
@media (max-width: 599.98px) {
    .cal-toolbar .cal-head { flex: 1 1 0; min-width: 0; }
    .toolbar-filters > :is(.toolbar-status, .toolbar-services, .toolbar-type) { flex: 1 1 140px; min-width: 0; }
    .cal-sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 1300; background: rgba(0, 0, 0, .35); animation: wp-fade-in .15s ease-out; }
    .cal-sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1301; max-height: 75dvh; overflow-y: auto;
                 padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--mud-palette-surface);
                 border-radius: var(--wp-radius) var(--wp-radius) 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .18); animation: wp-sheet-in .2s ease-out; }
    .cal-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
}
@keyframes wp-sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
/* View switcher (Mês / Semana / Lista): icon and label, the icon alone on phones. */
.cal-view-item { display: inline-flex; align-items: center; gap: 6px; }

/* Week view: seven columns of bigger cards, coloured like the month chips. Like the month (Bruno, 2026-10-25): flush
   with its panel, only lines between the days, and events lasting several days as one bar (.cal-span.week-span) laid
   over the columns under their heads; the --cal-* sizes are shared with the bars' placement. */
.cal-week-card { padding: 0; }
.cal-week-card > .cal-legend { margin: 0; padding: 10px 12px 12px; border-top: 1px solid var(--mud-palette-lines-default); }
.app-bg ~ .mud-layout .cal-week-card > .cal-legend { border-color: var(--wp-glass-border); }
/* The days' heads sit on a line across the week (Bruno, 2026-10-25): each head runs to its column's edges, its height
   (line included) is --cal-num, and the column starts right at it (--cal-pt 0) so the bars land under the line. */
.cal-week { --cal-pt: 0px; --cal-px: 8px; --cal-num: 41px; --cal-gap: 6px; --cal-bar: 28px;
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.cal-week-col { display: flex; flex-direction: column; gap: var(--cal-gap); min-width: 0; min-height: 260px; padding: 0 var(--cal-px) var(--cal-px);
    border-right: 1px solid var(--mud-palette-lines-default); }
.cal-week-col:nth-child(7) { border-right: 0; }
.app-bg ~ .mud-layout .cal-week-col { border-color: var(--wp-glass-border); }
.cal-week-col.today { box-shadow: 0 0 0 2px var(--wp-gold) inset; }
.cal-week-head { display: flex; align-items: center; gap: 6px; height: var(--cal-num); flex: none; margin: 0 calc(-1 * var(--cal-px)); padding: 0 var(--cal-px);
    border-bottom: 1px solid var(--mud-palette-lines-default); }
.app-bg ~ .mud-layout .cal-week-head { border-color: var(--wp-glass-border); }
.cal-event.week-span { font-size: .8rem; padding: 0 8px; gap: 6px; }
.cal-event.week-span .cal-status { width: 16px; height: 16px; }
/* The dates give way first when the bar is short; the title keeps what room there is. */
.cal-event.week-span > span { flex: 0 1 auto; }
.cal-event.week-span > small { flex: 0 1000 auto; min-width: 0; margin-left: auto; padding-left: 8px; font-weight: 400; opacity: .8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-week-dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mud-palette-text-secondary); }
.cal-week-head .cal-num { margin-left: auto; }
.cal-week-col.today .cal-num { background: var(--wp-gold); color: #fff; }
.cal-week-add { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--mud-palette-primary); background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent); opacity: .55; transition: opacity .15s; }
.cal-week-col:hover .cal-week-add, .cal-week-add:focus-visible { opacity: 1; }
.cal-week-add .mud-icon-root { width: 15px; height: 15px; }
.week-card { --wk: #4f8a62; --wk-bg: rgba(79, 138, 98, .10); display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 7px 8px; font-size: .74rem;
    border-radius: var(--wp-radius); border: 1px solid transparent; border-left: 3px solid var(--wk); background: var(--wk-bg); color: var(--mud-palette-text-primary); text-decoration: none; }
.week-card:hover { filter: brightness(.96); text-decoration: none; }
.week-card.status-tentative { --wk: #c58a2a; --wk-bg: rgba(210, 154, 60, .12); }
.week-card.status-done { --wk: #8f8f8f; --wk-bg: rgba(140, 140, 140, .10); }
.wp-dark .week-card { --wk: #7BE09C; --wk-bg: rgba(70, 190, 110, .14); }
.wp-dark .week-card.status-tentative { --wk: #F5BE62; --wk-bg: rgba(230, 165, 60, .14); }
.wp-dark .week-card.status-done { --wk: #b9b6b0; --wk-bg: rgba(160, 160, 160, .12); }
.week-card.cal-elsewhere, .wp-dark .week-card.cal-elsewhere { --wk: var(--wp-other); --wk-bg: var(--wp-other-bg); }
.week-card.awaiting { background: transparent; border-color: var(--wk); border-style: dashed; border-left-style: solid; }
.week-card-title { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .8rem; line-height: 1.25; }
.week-card-names { min-width: 0; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.week-card-title .unread-count { margin-left: auto; flex: none; }
.week-card-line { display: flex; align-items: center; gap: 3px; min-width: 0; white-space: nowrap; color: var(--mud-palette-text-secondary); }
.week-card-line .mud-icon-root, .week-card-status .mud-icon-root { width: 14px; height: 14px; flex: none; }
.week-card-foot { display: flex; align-items: center; gap: 4px; min-height: 18px; }
.week-card-services { display: inline-flex; gap: 3px; color: var(--mud-palette-info); }
.week-card-services .mud-icon-root { width: 14px; height: 14px; }
.week-card .cal-crew { margin-left: auto; }
.week-card-status { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: .7rem; font-weight: 600; color: var(--wk); }
.week-card-status .ml-auto { margin-left: auto; }
.week-days-only { display: none !important; }
@media (max-width: 959.98px) {
    .week-grid-only { display: none !important; }
    .week-days-only { display: flex !important; }
}
/* Below 960px the week is one week of the month grid, its row filling the height (Bruno, 2026-10-25): every chip
   shows, so the names may run over more lines than in the month. */
.cal-grid-week .cal-day { min-height: 160px; }
@media (max-width: 599.98px) {
    .cal-grid-week .cal-event { font-size: .64rem; padding: 3px 3px; }
    .cal-grid-week .cal-event > span { -webkit-line-clamp: 6; }
}
.cal-empty .mud-icon-root { width: 36px; height: 36px; opacity: .6; }

/* The bar under the grid: LEGENDA (opens the legend in a pop-up) and the calendars button, on the right. */
.cal-legend { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cal-legend-btn { text-transform: uppercase; }
.cal-legend-items { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; font-size: .82rem; color: var(--mud-palette-text-secondary); }
.cal-legend-items > span { display: flex; align-items: center; white-space: nowrap; }
.cal-legend-items .lg { display: inline-block; width: 10px; height: 10px; border-radius: var(--wp-radius); margin-right: 6px; vertical-align: -1px; }
.lg.confirmed { background: #4F8A62; } .lg.tentative { background: #D29A3C; } .lg.done { background: #aaa; }
.wp-dark .lg.confirmed { background: #5FD487; } .wp-dark .lg.tentative { background: #F0B04A; }
.lg.awaiting { border: 1px dashed var(--mud-palette-text-secondary); }
.cal-legend-items .lg-icon { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 599.98px) {
    .cal-grid { --cal-pt: 3px; --cal-px: 2px; --cal-num: 22px; --cal-gap: 2px; --cal-bar: 15px; }
    .cal-day { min-height: 56px; }
    .cal-num { font-size: .74rem; }
    /* Narrow cells: let the couple's names wrap over up to three lines instead of cutting them at a few letters. */
    /* The names wrap over up to three lines inside the chip; the chip itself doesn't clip, so its corner badge shows. */
    .cal-event { display: block; white-space: normal; overflow-wrap: anywhere; font-size: .58rem; line-height: 1.2; padding: 2px 3px; border-radius: var(--wp-radius); }
    .cal-event > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; white-space: normal; }
    .cal-event > .cal-check { display: grid; overflow: visible; top: -5px; right: -4px; width: 12px; height: 12px; }
    .cal-event > .cal-check .mud-icon-root { width: 9px !important; height: 9px !important; font-size: 9px !important; }
    .cal-event.cal-span { display: flex; padding: 0 3px; line-height: 1; }
    .cal-event.cal-span > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .cal-grid { --cal-row: 56px; --cal-more-h: 12px; }
    .cal-day[data-more]::after { font-size: .56rem; }
    /* The start time on its own line, so the names never break straight after it. */
    .cal-event .cal-time { display: block; margin-right: 0; }
    .cal-title { min-width: 0; font-size: 1rem !important; }
}

/* ---------- Chat ---------- */
.app-container:has(.chat-layout) { max-width: none; }
.member-option { display: flex; align-items: center; gap: 10px; }
/* Dialogs get a visible edge in the accent colour and a deeper shadow, so they stand apart from the page behind. */
.mud-dialog { border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 80%, transparent); box-shadow: 0 18px 50px rgba(0, 0, 0, .28) !important; }
html.wp-dark .mud-dialog { box-shadow: 0 18px 50px rgba(0, 0, 0, .7) !important; }
.mud-overlay-dialog .mud-overlay-scrim.mud-overlay-dark { background-color: rgba(20, 18, 16, .6); }
.member-select { display: flex; align-items: center; gap: 12px; }
@media (max-width: 599.98px) {
    /* Phones: centred, each option as wide as its text (Bruno, 2026-10-24). */
    .filter-toggle { width: fit-content; max-width: 100%; margin-inline: auto !important; align-self: center; }
}
.chat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 14px; height: calc(100vh - var(--wp-main-top) - 60px); min-height: 420px; }
.chat-list { display: flex; flex-direction: column; overflow-y: auto; }
.chat-list-head { display: flex; align-items: center; padding: 12px 12px 12px 16px; position: sticky; top: 0; background: var(--mud-palette-surface); z-index: 1; border-bottom: 1px solid var(--mud-palette-lines-default); }
.chat-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; color: inherit; border-left: 3px solid transparent; }
.chat-item:hover { background: var(--mud-palette-action-default-hover); text-decoration: none; }
.chat-item.active { background: color-mix(in srgb, var(--wp-gold) 10%, transparent); border-left-color: var(--wp-gold); }
.chat-item-main { flex: 1; min-width: 0; }
.chat-item-top { display: flex; justify-content: space-between; gap: 8px; }
.chat-item-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-bottom { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.unread-pill { background: var(--mud-palette-error); color: #fff; }
.chat-conv { display: flex; flex-direction: column; min-height: 0; }
/* The open conversation's head sits on a slightly darker band (lighter in dark themes: the text colour mixed in), so it
   stands apart from the messages (Bruno, 2026-10-24). */
.chat-conv-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--mud-palette-lines-default);
    background: color-mix(in srgb, var(--mud-palette-text-primary) 6%, transparent); border-top-left-radius: inherit; border-top-right-radius: inherit; }
.conv-avatar { width: 40px; height: 40px; }
.chat-head-sub { display: flex; align-items: center; gap: 6px 10px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.chat-head-sub::-webkit-scrollbar { display: none; }
.chat-head-sub > * { flex: none; }
.chat-head-member { display: inline-flex; align-items: center; gap: 5px; }
.chat-head-member .mud-avatar { width: 20px; height: 20px; font-size: .55rem; }
/* Call buttons, on smartphones only (html.is-phone from app.js): a small accent circle after the member's name. */
.only-phone { display: none !important; }
html.is-phone .only-phone { display: inline-flex !important; }
.chat-call { position: relative; width: 22px; height: 22px; margin-left: 2px; border-radius: 50%; align-items: center; justify-content: center; color: var(--mud-palette-primary); background: color-mix(in srgb, var(--mud-palette-primary) 16%, transparent); }
.chat-call::after { content: ""; position: absolute; inset: -5px; } /* 32px to tap */
.chat-call .mud-icon-root { width: 13px; height: 13px; }
.chat-back { display: none !important; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 4px; background: var(--mud-palette-background); }
.chat-day { align-self: center; font-size: .72rem; color: var(--mud-palette-text-secondary); background: var(--mud-palette-surface); padding: 3px 10px; border-radius: var(--wp-radius); margin: 10px 0; border: 1px solid var(--mud-palette-lines-default); }
.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; }
.msg-sender { font-size: .72rem; color: var(--wp-gold-dark); margin: 6px 0 2px 10px; font-weight: 600; }
.msg.in-group { flex-direction: row; align-items: flex-start; gap: 8px; }
.msg.in-group.first { margin-top: 6px; }
.msg-av { width: 32px; flex: none; }
.msg-av .mud-avatar { width: 32px; height: 32px; }
.msg-col { display: flex; flex-direction: column; min-width: 0; }
.msg.in-group .msg-sender { margin: 0 0 2px 2px; }
@media (max-width: 599px) { .msg-av, .msg-av .mud-avatar { width: 26px; height: 26px; } .msg.in-group { gap: 6px; } }
.msg-bubble { padding: 8px 12px 6px; border-radius: var(--wp-radius); white-space: pre-wrap; word-break: break-word; line-height: 1.4; font-size: .93rem; }
.msg.theirs .msg-bubble { background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-bottom-left-radius: 4px; }
.msg.mine .msg-bubble { background: color-mix(in srgb, var(--mud-palette-primary) 20%, var(--mud-palette-surface)); color: var(--wp-ink); border-bottom-right-radius: 4px; }
.mud-theme-dark .msg.mine .msg-bubble, .wp-dark .msg.mine .msg-bubble { background: color-mix(in srgb, var(--wp-gold) 63%, #000); color: #F3EEE6; }
/* The time is a small badge floating bottom-right on the text's own line: the float keeps the text's size and line
   height, and the badge sits on that baseline, so it lines up with the message. */
.msg-time { float: right; margin-left: 8px; font-size: inherit; line-height: inherit; }
.msg-time > span { display: inline-block; font-size: .68em; line-height: 1.35; padding: 1px 6px; border-radius: var(--wp-radius); font-variant-numeric: tabular-nums;
    color: color-mix(in srgb, currentColor 78%, transparent); background: color-mix(in srgb, currentColor 13%, transparent); }
.msg-bubble e2e-msg { display: inline; }
.msg-text { white-space: pre-wrap; }
.msg-text a { color: inherit; text-decoration: underline; }
.msg-locked { opacity: .7; font-style: italic; }
.msg-attachments { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 4px; }
.msg-img { display: block; padding: 0; border: 0; background: rgba(127,127,127,.15); border-radius: var(--wp-radius); overflow: hidden; cursor: zoom-in; width: min(280px, 62vw); max-height: 360px; }
.msg-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.msg-file { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--wp-radius); border: 1px solid rgba(127,127,127,.3); background: rgba(127,127,127,.08); color: inherit; font: inherit; cursor: pointer; text-align: left; max-width: 280px; }
.msg-file.loading { opacity: .6; cursor: progress; }
.msg-file-icon { font-size: 1.3rem; }
.msg-file-info { display: flex; flex-direction: column; min-width: 0; }
.msg-file-name { font-weight: 600; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-file-size { font-size: .72rem; opacity: .7; }
.e2e-badge { display: inline-flex; align-items: center; gap: 3px; color: #4F8A62; }
.wp-dark .e2e-badge { color: #7BE09C; }
.e2e-badge .mud-icon-root { width: 12px; height: 12px; }
.e2e-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--mud-palette-lines-default); background: color-mix(in srgb, var(--wp-gold) 12%, transparent); font-size: .875rem; }
.e2e-banner span { flex: 1; min-width: 180px; }

.chat-input { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--mud-palette-lines-default); background: var(--mud-palette-surface); }
.chat-input.busy { opacity: .7; pointer-events: none; }
.chat-input-row { display: flex; gap: 6px; align-items: flex-end; }
.chat-input textarea {
    flex: 1; min-width: 0; resize: none; border: 1px solid var(--mud-palette-lines-default); border-radius: var(--wp-radius); padding: 10px 14px; font: inherit;
    max-height: 160px; background: var(--mud-palette-background); color: var(--mud-palette-text-primary); outline: none;
    overflow-y: hidden; /* e2e.js turns scrolling on once the text reaches max-height */
}
.chat-input textarea:focus { border-color: var(--wp-gold); }
.chat-tool { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; color: var(--mud-palette-text-secondary); display: grid; place-items: center; cursor: pointer; position: relative; overflow: hidden; }
.chat-tool:hover { color: var(--wp-gold); }
.send-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--wp-gold); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.send-btn:disabled { background: var(--mud-palette-action-disabled-background); color: var(--mud-palette-action-disabled); box-shadow: none; cursor: default; }
.chat-pending { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chat-pending[hidden], .emoji-pop[hidden], .gif-pop[hidden] { display: none; }
.pending-chip { position: relative; flex: none; display: flex; align-items: center; gap: 6px; max-width: 200px; padding: 4px 28px 4px 4px; border-radius: var(--wp-radius); border: 1px solid var(--mud-palette-lines-default); background: var(--mud-palette-background); font-size: .78rem; }
.pending-chip img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--wp-radius); }
.pending-icon { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.4rem; }
.pending-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-remove { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; line-height: 1; font-size: 15px; }
.emoji-pop { position: absolute; bottom: calc(100% + 6px); left: 8px; z-index: 30; box-shadow: 0 8px 28px rgba(0,0,0,.25); border-radius: var(--wp-radius); overflow: hidden; }
.emoji-pop emoji-picker { --border-radius: var(--wp-radius); width: min(352px, calc(100vw - 32px)); height: 360px; }
/* Reply being written: the quoted message above the input, with a × to drop it. */
.chat-reply { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; margin-bottom: 8px; border-left: 3px solid var(--mud-palette-primary); border-radius: var(--wp-radius); background: var(--mud-palette-background); }
.chat-reply[hidden] { display: none; }
.chat-reply-quote { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .82rem; line-height: 1.35; }
.chat-reply-quote b { font-size: .75rem; color: var(--wp-gold-dark); }
.chat-reply-quote e2e-preview { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
.chat-reply .pending-remove { position: static; flex: none; }

/* Message actions: react and menu icons beside the bubble on hover (a long press on touch), reactions under it. */
.msg-unit { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.msg.mine .msg-unit { align-items: flex-end; }
.msg-line { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.msg.mine .msg-line { flex-direction: row-reverse; }
.msg-line > .msg-bubble { min-width: 0; }
.msg-actions { display: flex; gap: 2px; flex: none; opacity: 0; transition: opacity .12s; }
.msg-unit:hover .msg-actions, .msg-actions:focus-within { opacity: 1; }
@media (hover: none) { .msg-actions { display: none; } }
.msg-act { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--mud-palette-primary); background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent); }
.msg-act:hover { background: color-mix(in srgb, var(--mud-palette-primary) 26%, transparent); }
.msg-act .mud-icon-root { width: 17px; height: 17px; }
@media (pointer: coarse) { .msg-bubble { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } }
.msg-quote { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; min-width: 0; margin: 0 0 4px; padding: 4px 8px; border: 0; border-left: 3px solid var(--mud-palette-primary); border-radius: var(--wp-radius); background: rgba(127, 127, 127, .14); color: inherit; font: inherit; font-size: .82rem; line-height: 1.35; text-align: left; white-space: normal; cursor: pointer; }
.msg-quote b { font-size: .75rem; color: var(--wp-gold-dark); }
.msg.mine .msg-quote { border-left-color: currentColor; }
.msg.mine .msg-quote b { color: inherit; }
.msg-quote e2e-preview { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.msg-unit.flash .msg-bubble { animation: msg-flash 1.6s ease; }
@keyframes msg-flash { 0%, 45% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mud-palette-primary) 60%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
e2e-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin: -5px 8px 2px; position: relative; z-index: 1; }
e2e-reactions:empty { display: none; }
.react-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border: 1px solid var(--mud-palette-lines-default); border-radius: var(--wp-radius); background: var(--mud-palette-surface); color: inherit; font: inherit; font-size: .82rem; line-height: 1.45; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.react-chip.mine { border-color: var(--mud-palette-primary); background: color-mix(in srgb, var(--mud-palette-primary) 16%, var(--mud-palette-surface)); }
.react-count { font-size: .72rem; font-weight: 600; }
/* Floating panel for a message (reaction strip, menu, who reacted); a bottom sheet on touch. */
.msg-pop { position: fixed; z-index: 1500; display: flex; flex-direction: column; min-width: 210px; padding: 6px; border: 1px solid var(--mud-palette-primary); border-radius: var(--wp-radius); background: var(--mud-palette-surface); color: var(--mud-palette-text-primary); box-shadow: 0 14px 36px rgba(0, 0, 0, .28); }
.msg-pop.sheet { left: 0; right: 0; bottom: 0; border-radius: var(--wp-radius) var(--wp-radius) 0 0; border-width: 1px 0 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
.msg-pop-backdrop { position: fixed; inset: 0; z-index: 1499; background: rgba(0, 0, 0, .35); }
.react-strip { display: flex; gap: 2px; justify-content: space-between; }
.react-pick { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: none; font-size: 1.35rem; cursor: pointer; transition: transform .1s; }
.react-pick:hover { background: var(--mud-palette-action-default-hover); transform: scale(1.12); }
.react-pick.mine { background: color-mix(in srgb, var(--mud-palette-primary) 24%, transparent); }
.react-more { font-size: 1.25rem; color: var(--mud-palette-text-secondary); background: var(--mud-palette-background); }
.react-strip ~ .msg-pop-item:first-of-type { margin-top: 6px; }
.react-strip + .msg-pop-item { border-top: 1px solid var(--mud-palette-lines-default); border-radius: 0 0 var(--wp-radius) var(--wp-radius); }
.msg-pop-item { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 10px; border: 0; border-radius: var(--wp-radius); background: none; color: inherit; font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.msg-pop-item:hover { background: var(--mud-palette-action-default-hover); }
.msg-pop-icon { width: 20px; text-align: center; opacity: .75; }
.msg-pop.picker { padding: 0; overflow: hidden; }
.msg-pop.picker emoji-picker { --border-size: 0; width: min(352px, calc(100vw - 16px)); height: 360px; }
.msg-pop.sheet.picker emoji-picker { width: 100%; }
.msg-pop-title { padding: 4px 8px 6px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
.who-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 7px 8px; border: 0; border-radius: var(--wp-radius); background: none; color: inherit; font: inherit; text-align: left; }
button.who-row { cursor: pointer; }
button.who-row:hover { background: var(--mud-palette-action-default-hover); }
.who-name { display: flex; flex-direction: column; line-height: 1.3; }
.who-name small { font-size: .72rem; color: var(--mud-palette-text-secondary); }
.who-emoji { font-size: 1.25rem; }
.chat-conv.dragging .chat-messages { outline: 2px dashed var(--wp-gold); outline-offset: -8px; }

/* Dialogs, toasts and image viewer built by e2e.js (outside Blazor, so the password never crosses the server connection). */
.e2e-backdrop { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.5); display: grid; place-items: center; padding: 16px; }
.e2e-modal { width: min(420px, 100%); background: var(--mud-palette-surface); color: var(--mud-palette-text-primary); border-radius: var(--wp-radius); padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.e2e-modal h3 { margin: 0 0 6px; font-family: "Titillium Web", sans-serif; font-weight: 600; font-size: 1.35rem; }
.e2e-modal form { display: flex; flex-direction: column; gap: 12px; }
.e2e-muted { color: var(--mud-palette-text-secondary); font-size: .9rem; line-height: 1.5; margin: 0 0 6px; }
.e2e-field { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--mud-palette-text-secondary); }
.e2e-field input { font: inherit; font-size: 1rem; padding: 10px 12px; border-radius: var(--wp-radius); border: 1px solid var(--mud-palette-lines-inputs); background: var(--mud-palette-background); color: var(--mud-palette-text-primary); outline: none; }
.e2e-field input:focus { border-color: var(--wp-gold); }
.e2e-error { color: var(--mud-palette-error); font-size: .85rem; margin: 0; min-height: 1em; }
.e2e-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.e2e-btn { font: inherit; font-weight: 600; font-size: .875rem; padding: 8px 16px; border-radius: var(--wp-radius); border: 1px solid var(--mud-palette-lines-default); background: none; color: inherit; cursor: pointer; }
.e2e-btn.primary { background: var(--wp-gold); border-color: var(--wp-gold); color: #fff; }
.e2e-btn.text { border-color: transparent; }
.e2e-btn:disabled { opacity: .6; cursor: progress; }
.e2e-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 12px; }
.e2e-link { font: inherit; font-size: .82rem; border: 0; background: none; padding: 2px 0; color: var(--wp-gold-dark); cursor: pointer; text-decoration: underline; }
.wp-dark .e2e-link { color: var(--wp-gold-light); }
.e2e-link.danger { color: var(--mud-palette-error); }
.e2e-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; letter-spacing: .06em; text-align: center; padding: 14px; border-radius: var(--wp-radius); background: var(--mud-palette-background); border: 1px dashed var(--wp-gold); margin: 8px 0; user-select: all; word-break: break-all; }
.e2e-toast { position: fixed; left: 50%; bottom: calc(24px + var(--wp-bottom-nav, 0px) + var(--wp-nav-pad)); transform: translateX(-50%); z-index: 3100; background: #2b2926; color: #F3EEE6; padding: 10px 16px; border-radius: var(--wp-radius); font-size: .875rem; box-shadow: 0 6px 20px rgba(0,0,0,.3); max-width: calc(100vw - 32px); }
.e2e-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; cursor: zoom-out; }
.e2e-lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: var(--wp-radius); }
.e2e-lightbox-bar .e2e-btn { color: #fff; border-color: rgba(255,255,255,.4); }
@media (max-width: 959.98px) {
    .chat-layout { grid-template-columns: 1fr; height: calc(100vh - var(--wp-main-top) - var(--wp-bottom-nav) - 40px - var(--wp-nav-pad)); }
    .chat-layout.show-list .chat-conv { display: none; }
    .chat-layout.show-conv .chat-list { display: none; }
    .chat-back { display: inline-flex !important; }
    .msg { max-width: 88%; }
    /* Tablets and phones: the chat fills the screen between the app bar and the bottom bar, without margins. */
    .app-container:has(.chat-layout) { padding: 0 !important; }
    .chat-layout { gap: 0; min-height: 0; height: calc(100dvh - var(--wp-main-top) - var(--wp-bottom-nav) - var(--wp-nav-pad)); }
    .chat-layout > * { border-radius: 0 !important; border: 0 !important; }
}

/* ---------- Notifications ---------- */
.bell-popover { width: 360px; max-width: calc(100vw - 24px); }
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; }
.bell-empty { padding: 24px 16px; text-align: center; color: var(--mud-palette-text-secondary); }
.bell-item { display: flex; gap: 10px; padding: 10px 16px; cursor: pointer; border-top: 1px solid var(--mud-palette-lines-default); }
.bell-item:hover { background: var(--mud-palette-action-default-hover); }
.bell-item.unread { background: color-mix(in srgb, var(--wp-gold) 8%, transparent); }
.bell-icon { margin-top: 2px; color: var(--wp-gold); }
.bell-text { min-width: 0; }
.bell-title { font-weight: 600; font-size: .86rem; }
.bell-body { font-size: .8rem; color: var(--mud-palette-text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bell-time { font-size: .7rem; color: var(--mud-palette-text-secondary); margin-top: 2px; }
/* Notificações: the title stays put and the list scrolls inside its panel, which is only as tall as its rows and ends
   a gutter above the window's bottom (or the bottom bar), on every screen. */
.fill-page > .notif-panel { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-bottom: 24px; }
@media (max-width: 599.98px) { .fill-page > .notif-panel { margin-bottom: 16px; } }
.notif-panel > .notif-row:last-child { border-bottom: 0; }
.notif-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--mud-palette-lines-default); cursor: pointer; }
.notif-row:hover { background: var(--mud-palette-action-default-hover); }
.notif-row.unread { background: color-mix(in srgb, var(--wp-gold) 7%, transparent); }
/* Closed envelope = unread (accent), open envelope = read (muted); a click toggles it. */
.notif-read-slot { align-self: center; flex: none; }
.notif-read { color: var(--mud-palette-text-secondary) !important; }
/* Unread: a red closed envelope, the colour of the unread counters. */
.notif-read.unread { color: var(--mud-palette-error) !important; background: color-mix(in srgb, var(--mud-palette-error) 14%, transparent) !important; }
.notif-row.unread .item-title, .bell-item.unread .bell-title { font-weight: 700; }
/* Notification pictures share one 40px slot, so titles line up whether it's a member's photo or the kind's icon. */
.notif-row .notif-actor .mud-avatar, .notif-row .icon-bubble.small { width: 40px; height: 40px; }

/* ---------- Misc ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 16px; color: var(--mud-palette-text-primary); }
.empty-icon { font-size: 48px !important; color: var(--wp-gold); opacity: .7; margin-bottom: 4px; }
.more-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.flag { width: 20px; height: 15px; object-fit: cover; border-radius: var(--wp-radius); box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex-shrink: 0; vertical-align: middle; }
/* The language button is the flag itself, filling the whole 40px circle. */
.lang-menu-item { display: flex; align-items: center; gap: 10px; padding: 8px 18px; color: inherit; white-space: nowrap; }
.lang-menu-item:hover { text-decoration: none; background: var(--mud-palette-action-default-hover); }
.lang-menu-item.active { font-weight: 600; color: var(--wp-gold); }
.lang-option { display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-langs a { display: inline-flex; align-items: center; gap: 6px; }
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 599.98px) { .theme-grid { grid-template-columns: repeat(2, 1fr); } }
/* Perfil > Página inicial: the same tiles as the themes, three a row. */
.start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
/* The top bar's theme menu and the user menu's row of themes (Claro, Escuro, Néon, Automático). */
button.lang-menu-item { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; justify-content: flex-start; }
.lang-menu-item.active .mud-icon-root { color: inherit; }
.menu-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 10px 8px; }
.menu-theme { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 1px solid transparent; border-radius: var(--wp-radius);
    background: none; color: inherit; font: inherit; font-size: .7rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.menu-theme:hover { background: var(--mud-palette-action-default-hover); }
.menu-theme.active { border-color: var(--wp-gold); color: var(--wp-gold-dark); background: color-mix(in srgb, var(--wp-gold) 10%, transparent); }
.wp-dark .menu-theme.active { color: var(--wp-gold-light); }
.theme-option { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: var(--wp-radius); border: 1px solid var(--mud-palette-lines-default); background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.theme-option:hover { border-color: var(--wp-gold); }
.theme-option.active { border-color: var(--wp-gold); background: color-mix(in srgb, var(--wp-gold) 10%, transparent); color: var(--wp-gold-dark); }
.mud-theme-dark .theme-option.active, .wp-dark .theme-option.active, .wp-dark .lang-option.active { color: var(--wp-gold-light); }
.lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lang-option { padding: 12px; border-radius: var(--wp-radius); border: 1px solid var(--mud-palette-lines-default); text-align: center; color: inherit; font-weight: 600; }
.lang-option:hover { text-decoration: none; border-color: var(--wp-gold); }
.lang-option.active { border-color: var(--wp-gold); background: color-mix(in srgb, var(--wp-gold) 10%, transparent); color: var(--wp-gold-dark); }
.profile-avatar { width: 72px !important; height: 72px !important; font-size: 1.6rem !important; }
.user-avatar { font-weight: 600; font-size: .85rem; }

#blazor-error-ui {
    background: #fff4e5; color: #663c00; bottom: 0; box-shadow: 0 -1px 4px rgba(0, 0, 0, .15); display: none; left: 0;
    padding: .7rem 1.25rem; position: fixed; width: 100%; z-index: 3000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ==========================================================================
   Sign-in / registration (static pages, no MudBlazor interactivity)
   ========================================================================== */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--wp-cream); }
.auth-hero {
    background: radial-gradient(120% 120% at 10% 10%, #2e2a26 0%, var(--wp-ink) 55%, #0f0e0d 100%);
    color: #F3EEE6; display: flex; align-items: flex-end; padding: 56px; position: relative; overflow: hidden;
}
.auth-hero::before, .auth-hero::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--wp-gold) 35%, transparent); }
.auth-hero::before { width: 520px; height: 520px; right: -180px; top: -160px; }
.auth-hero::after { width: 300px; height: 300px; right: -40px; top: -20px; }
.auth-hero-inner { position: relative; max-width: 460px; }
.auth-hero-logo { height: 56px; margin-bottom: 32px; }
.auth-hero h2 { font-family: "Titillium Web", sans-serif; font-weight: 600; font-size: 2.4rem; line-height: 1.2; margin: 0 0 12px; }
.auth-hero p { opacity: .75; line-height: 1.6; margin: 0; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-logo { height: 44px; margin-bottom: 28px; display: none; }
.auth-title { font-family: "Titillium Web", sans-serif; font-weight: 600; font-size: 2rem; margin: 0 0 6px; color: var(--wp-ink); }
.auth-sub { color: var(--wp-muted); margin: 0 0 24px; }
.auth-label { display: block; font-size: .82rem; font-weight: 600; color: var(--wp-ink); margin-bottom: 14px; }
.auth-input {
    display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 1rem;
    border: 1px solid #DDD6CC; border-radius: var(--wp-radius); background: #fff; color: var(--wp-ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus { border-color: var(--wp-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp-gold) 18%, transparent); }
.auth-hint { display: block; font-weight: 400; color: var(--wp-muted); font-size: .76rem; margin-top: 4px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 20px; font-size: .86rem; }
.auth-check { display: flex; gap: 6px; align-items: center; color: var(--wp-ink); }
.auth-check input { accent-color: var(--wp-gold); width: 16px; height: 16px; }
.auth-btn {
    width: 100%; padding: 13px; border: none; border-radius: var(--wp-radius); background: var(--wp-ink); color: #fff; font: inherit; font-weight: 600;
    font-size: 1rem; cursor: pointer; transition: background .15s, transform .05s;
}
.auth-btn:hover { background: #33302c; }
.auth-btn:active { transform: translateY(1px); }
.auth-foot { text-align: center; margin-top: 22px; color: var(--wp-muted); font-size: .9rem; }
.auth-error { background: #fbeceb; color: #9b3b32; border: 1px solid #f1c9c4; padding: 10px 14px; border-radius: var(--wp-radius); margin-bottom: 14px; font-size: .9rem; }
.auth-ok { background: #ecf5ef; color: #2f6b45; border: 1px solid #c9e3d1; padding: 10px 14px; border-radius: var(--wp-radius); margin-bottom: 14px; font-size: .9rem; }
.auth-langs { display: flex; justify-content: center; gap: 14px; margin-top: 32px; font-size: .8rem; }
.auth-langs a { color: var(--wp-muted); }
.auth-langs a.active { color: var(--wp-gold-dark); font-weight: 600; }
@media (max-width: 899.98px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
    .auth-logo { display: block; }
    .auth-panel { align-items: flex-start; padding-top: calc(48px + var(--wp-safe-top)); }
}

/* ---------- Map pins (location dialog and "open with" menu) ---------- */
.only-android, .only-apple { display: none !important; }
html.is-android .only-android, html.is-apple .only-apple { display: flex !important; }
.timeline-item .map-open { align-self: center; }
.pin-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: -4px; }
.pin-set { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--mud-palette-success); }
.map-picker { display: flex; flex-direction: column; gap: 6px; }
.map-picker-search { display: flex; gap: 6px; }
.map-picker-search input { flex: 1; min-width: 0; font: inherit; height: 40px; box-sizing: border-box; padding: 0 14px; border-radius: var(--wp-radius); border: 1px solid var(--mud-palette-lines-inputs); background: transparent; color: var(--mud-palette-text-primary); outline: none; }
.map-picker-search input:focus { border-color: var(--mud-palette-primary); box-shadow: inset 0 0 0 1px var(--mud-palette-primary); }
html.wp-neon .map-picker-search input { background: var(--nx-well); border-color: var(--nx-line-soft); }
.map-picker-search button { flex: none; width: 40px; border-radius: var(--wp-radius); border: 0; background: var(--mud-palette-primary); color: var(--mud-palette-primary-text); display: grid; place-items: center; cursor: pointer; }
.map-picker-results { display: flex; flex-direction: column; }
.map-picker-results:empty { display: none; }
.map-picker-result { text-align: left; font: inherit; font-size: .82rem; padding: 7px 10px; border: 0; border-bottom: 1px solid var(--mud-palette-lines-default); background: none; color: var(--mud-palette-text-primary); cursor: pointer; }
.map-picker-result:hover { background: var(--mud-palette-action-default-hover); }
.map-picker-hint { font-size: .8rem; padding: 6px 10px; color: var(--mud-palette-text-secondary); }
.map-picker-map { height: 280px; border-radius: var(--wp-radius); overflow: hidden; border: 1px solid var(--mud-palette-lines-default); z-index: 0; }

/* Notifications about a member: their avatar with the kind as a small badge. */
.notif-actor { position: relative; flex: none; display: inline-flex; }
.notif-kind { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--mud-palette-surface); color: var(--mud-palette-primary); box-shadow: 0 0 0 1px var(--mud-palette-lines-default); }
.notif-kind .mud-icon-root { width: 11px; height: 11px; }
.bell-item .notif-actor { margin-top: 2px; }
.map-picker .leaflet-control-layers { background: var(--mud-palette-surface); color: var(--mud-palette-text-primary); border-radius: var(--wp-radius); font: inherit; font-size: .8rem; }
.map-picker .leaflet-control-layers-base label { display: flex; align-items: center; gap: 4px; margin: 2px 0; cursor: pointer; }

/* Personal background picture: fixed behind the app with a veil in the page colour, so cards and text stay readable. */
.app-bg { position: fixed; inset: 0; z-index: -1; background-size: cover; background-position: center; pointer-events: none; }
.app-bg::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--mud-palette-background) 62%, transparent); }
.app-bg ~ .mud-layout .mud-main-content { background: transparent; }
/* Headings that sit straight on the picture get a soft halo; cards are opaque and need none. */
.app-bg ~ .mud-layout .app-container { text-shadow: 0 0 12px var(--mud-palette-background), 0 0 3px var(--mud-palette-background); }
.app-bg ~ .mud-layout .app-container .mud-paper, .app-bg ~ .mud-layout .app-container .wedding-hero, .app-bg ~ .mud-layout .app-container .chat-layout,
.app-bg ~ .mud-layout .app-container .mud-button-filled { text-shadow: none; }

/* Profile: accent colour swatches and background preview. */
.accent-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.accent-swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 0 0 1px var(--mud-palette-lines-default); }
.accent-swatch.active { box-shadow: 0 0 0 2px var(--mud-palette-surface), 0 0 0 4px var(--mud-palette-text-primary); }
.accent-swatch.custom { background: conic-gradient(#e57373, #ffd54f, #81c784, #64b5f6, #ba68c8, #e57373); color: #fff; }
.accent-swatch .mud-icon-root { width: 18px; height: 18px; }
.accent-preview { display: flex; align-items: center; justify-content: center; gap: 12px; }
.bg-preview { display: block; width: 100%; max-height: 140px; object-fit: cover; border-radius: var(--wp-radius); margin-bottom: 8px; border: 1px solid var(--mud-palette-lines-default); }

/* Location chips on wedding cards: tap to pick a navigation app. */
.wedding-row-locations { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wedding-row-locations .mud-menu { display: inline-flex; }
.loc-chip { border: 1px solid color-mix(in srgb, var(--wp-gold) 45%, transparent); color: var(--mud-palette-text-primary); background: var(--mud-palette-surface); cursor: pointer; white-space: nowrap; max-width: 100%; }
.loc-chip:hover { background: color-mix(in srgb, var(--wp-gold) 12%, var(--mud-palette-surface)); }
.loc-chip .mud-icon-root { color: var(--wp-gold-dark); }
.wp-dark .loc-chip .mud-icon-root { color: var(--wp-gold-light); }
.loc-chip .loc-chip-map { margin-left: 2px; }
.loc-chip.plain { cursor: default; border-style: dashed; }
/* Compact rows (Início): one "Localizações ▾" badge opens the list, and the services sit as bare icons top right. */
.loc-menu-chip .loc-count { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .64rem; font-weight: 700;
    background: color-mix(in srgb, var(--wp-gold) 22%, transparent); }
.loc-chip .loc-menu-arrow { margin: 0 -6px 0 -4px; }
.loc-menu-item .mud-menu-item-text, .loc-menu-back .mud-menu-item-text { display: flex; align-items: center; gap: 8px; min-width: 0; }
.loc-menu-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-menu-next { width: 18px !important; height: 18px !important; opacity: .6; }
.loc-menu-item.passed { opacity: .6; }
.loc-menu-item.next .mud-icon-root:first-child, .loc-menu-item.next .loc-menu-label { color: var(--mud-palette-success); font-weight: 600; }
.loc-menu-back { font-weight: 600; border-bottom: 1px solid var(--mud-palette-lines-default); }
.row-services { display: inline-flex; gap: 6px; flex: none; color: var(--mud-palette-info); }
.row-services > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--mud-palette-info) 14%, transparent); }
.row-services .mud-icon-root { width: 16px; height: 16px; display: block; }
/* Computers and tablets (Bruno, 2026-10-24): bigger service, notes and chat icons top right of each wedding row, and
   bigger role and chat icons on the crew badges. */
@media (min-width: 600px) {
    .row-services { gap: 8px; }
    .row-services > span { width: 40px; height: 40px; }
    .row-services .mud-icon-root { width: 22px; height: 22px; }
    .wedding-row-crew .role-icons { gap: 4px; }
    .wedding-row-crew .role-icons .mud-icon-root { width: 22px; height: 22px; }
    .wedding-row-crew .member-chat { width: 30px; height: 30px; margin-right: -4px; }
    .wedding-row-crew .member-chat .mud-icon-root { width: 18px; height: 18px; }
}
/* Video / speeches icons and the main film / highlights chips open their notes; a gold dot says there are some. */
.svc-notes, .notes-chip { cursor: pointer; position: relative; }
.row-services > .svc-notes:hover { background: color-mix(in srgb, var(--mud-palette-info) 26%, transparent); }
/* The wedding's crew chat, after the services: same circle in the accent colour, with the unread counter on its corner. */
.row-services > .row-chat { position: relative; cursor: pointer; color: var(--mud-palette-primary); background: color-mix(in srgb, var(--mud-palette-primary) 16%, transparent); }
.row-services > .row-chat:hover { background: color-mix(in srgb, var(--mud-palette-primary) 28%, transparent); }
.row-chat > .unread-count { position: absolute; top: -5px; right: -7px; }
/* The wedding's notes, before the video icon: an accent circle like the chat, with the unread notes counter. */
.row-services > .row-notes { position: relative; cursor: pointer; color: var(--mud-palette-primary); background: color-mix(in srgb, var(--mud-palette-primary) 16%, transparent); }
.row-services > .row-notes:hover { background: color-mix(in srgb, var(--mud-palette-primary) 28%, transparent); }
.row-notes > .unread-count { position: absolute; top: -5px; right: -7px; }
/* PC and tablet (Bruno, 2026-10-25): notes and chat are actions, not services, so they're set a little apart after the
   blue service icons in the studio's gold. Fixed values, not --wp-gold (that one follows each person's accent), so they
   differ from the services whatever the accent or theme. */
@media (min-width: 600px) {
    .row-services > :is(.row-notes, .row-chat) { --wp-hover-fill: #B08D57; --wp-hover-ink: #fff; color: #8A6A38; background: rgba(176, 141, 87, .2); }
    .row-services > :is(.row-notes, .row-chat):hover { background: rgba(176, 141, 87, .32); }
    .wp-dark .row-services > :is(.row-notes, .row-chat) { color: #E6C68E; background: rgba(214, 178, 112, .22); }
    .row-services > .row-notes { margin-left: 6px; }
}
/* Drone licence: a PDF chip (opens it), download, and the pilot's upload/replace/remove. */
.drone-license { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.drone-license-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 4px 10px; border-radius: var(--wp-radius);
    font-size: .82rem; font-weight: 600; color: var(--mud-palette-success); background: color-mix(in srgb, var(--mud-palette-success) 11%, transparent); text-decoration: none !important; }
.drone-license-chip:hover { background: color-mix(in srgb, var(--mud-palette-success) 18%, transparent); }
.drone-license-chip .mud-icon-root { width: 18px; height: 18px; flex: none; }
.drone-license-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.drone-license-actions .mud-button-root { text-transform: uppercase; letter-spacing: .04em; }
/* A licence on file: a green "verified" seal on the drone icon's corner. */
.svc-license { position: absolute; bottom: -4px; right: -5px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
    background: var(--mud-palette-surface); color: var(--mud-palette-success); }
.row-services .svc-license .mud-icon-root { width: 14px; height: 14px; }
@media (min-width: 600px) { .row-services .svc-license { width: 18px; height: 18px; } .row-services .svc-license .mud-icon-root { width: 16px; height: 16px; } }
/* No licence yet (Bruno, 2026-10-25): the same corner, a bare red danger sign instead of the seal (no round backing),
   with a thin outline in the surface colour so it stays clear of the drone underneath. */
.svc-license.missing { color: var(--mud-palette-error); background: none; filter: drop-shadow(0 0 1px var(--mud-palette-surface)) drop-shadow(0 0 1px var(--mud-palette-surface)); }
.wnote { padding: 10px 12px; border: 1px solid var(--mud-palette-lines-default); border-radius: var(--wp-radius); }
.wnote.new { border-color: color-mix(in srgb, var(--mud-palette-error) 55%, transparent); background: color-mix(in srgb, var(--mud-palette-error) 5%, transparent); }
.wnote-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wnote-new { letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--mud-palette-error); }
/* Phones (Bruno, 2026-10-24): the faces read at a glance, beside the name: note authors, and the crew on the
   Resumo tab's team card. */
@media (max-width: 599.98px) { .mud-avatar.note-author { width: 44px; height: 44px; font-size: 1rem; flex: none; } }
/* Computers and tablets: as big as the Equipa tab's faces (Bruno, 2026-10-24). */
@media (min-width: 600px) { .mud-avatar.note-author { width: 48px; height: 48px; font-size: 1.05rem; flex: none; } }
.notes-chip:hover { filter: brightness(1.08); }
:is(.svc-notes, .notes-chip).has-notes::after { content: ""; position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--wp-gold); box-shadow: 0 0 0 1.5px var(--mud-palette-surface); }
.notes-part-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.notes-part-head .tag { margin-left: auto; }
.notes-text { white-space: pre-wrap; margin: 0; font-size: .9rem; line-height: 1.5; }
.row-services.in-title { display: none; margin-left: auto; }
/* Compact rows: the times sit right after the couple's names. */
.row-times { display: inline-flex; flex: none; margin-left: 4px; }
.row-times:empty { display: none; }
/* The couple's names: upper case on a rose badge with a heart, the list's most visible badge (Bruno, 2026-10-24). */
:root { --wp-couple: #C2185B; } html.wp-dark { --wp-couple: #FF7AB6; }
.couple-badge { display: inline-flex; align-items: center; gap: 10px; box-sizing: border-box; height: var(--wp-badge-h); padding: 0 16px; min-width: 0; max-width: 100%;
    border-radius: var(--wp-radius); font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1; white-space: nowrap;
    color: var(--wp-couple); background: color-mix(in srgb, var(--wp-couple) 12%, transparent); }
.couple-badge .mud-icon-root { width: 22px; height: 22px; flex: none; }
.couple-badge > .ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html.wp-neon .couple-badge { background: color-mix(in srgb, var(--wp-couple) 10%, transparent); border: 1.5px solid color-mix(in srgb, var(--wp-couple) 60%, transparent);
    box-shadow: 0 0 14px color-mix(in srgb, var(--wp-couple) 35%, transparent), inset 0 0 10px color-mix(in srgb, var(--wp-couple) 12%, transparent);
    text-shadow: 0 0 10px color-mix(in srgb, var(--wp-couple) 55%, transparent); }
html.wp-neon .couple-badge .mud-icon-root { filter: drop-shadow(0 0 5px currentColor); }
.wedding-row-title > .couple-badge { flex: 0 1 auto; }
.rp-names > .couple-badge { height: 40px; padding: 0 12px; gap: 8px; font-size: 1rem; }
.rp-names > .couple-badge .mud-icon-root { width: 18px; height: 18px; }
/* The type's name under the event's name (Bruno, 2026-10-28): the badge grows to two lines. */
.couple-badge.with-type { height: auto; min-height: var(--wp-badge-h); padding-block: 5px; }
.rp-names > .couple-badge.with-type { height: auto; min-height: 40px; padding-block: 4px; }
.couple-badge .badge-lines { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.couple-badge .badge-lines > .ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.couple-badge .badge-type { font-size: .7rem; font-weight: 600; letter-spacing: .02em; text-transform: none; opacity: .85; }
/* Any service but a wedding: the badge in its type's colour (EventBadge), lighter on dark themes. */
.event-typed { --wp-couple: var(--wp-type); }
html.wp-dark .event-typed { --wp-couple: color-mix(in srgb, var(--wp-type) 55%, white); }
.event-type-icon, :is(.time-badge, .pick-row) .mud-icon-root.event-type-icon { color: var(--wp-type); }
html.wp-dark :is(.event-type-icon, :is(.time-badge, .pick-row) .mud-icon-root.event-type-icon) { color: color-mix(in srgb, var(--wp-type) 55%, white); }
.type-option { display: inline-flex; align-items: center; gap: 10px; }
.week-card-title > .event-type-icon { width: 18px; height: 18px; flex: none; }
/* The team's own service types (Definições da equipa) and the dialog that makes one. */
.type-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.type-icon-choice { display: grid; place-items: center; height: 40px; border-radius: var(--wp-radius); border: 1px solid var(--mud-palette-lines-default);
    background: transparent; color: var(--mud-palette-text-secondary); cursor: pointer; }
.type-icon-choice.selected { color: var(--wp-type); border-color: var(--wp-type); background: color-mix(in srgb, var(--wp-type) 12%, transparent); }
.type-color-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.type-color-choice { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 2px var(--mud-palette-surface); }
.type-color-choice.selected { border-color: var(--mud-palette-text-primary); }
.type-list { display: flex; flex-wrap: wrap; gap: 8px; }
.type-list .couple-badge { gap: 8px; }
.type-list .couple-badge .mud-icon-button { margin-right: -10px; }
/* Names, times and locations badge on one line (Bruno, 2026-10-24); when it is full the badges wrap, the names never shrink. */
.wedding-row.compact .wedding-row-title { flex-wrap: wrap; row-gap: 8px; }
.wedding-row-title > .wedding-row-locations { flex: none; flex-wrap: nowrap; margin: 0 0 0 4px; }
.wedding-row-side > .row-services { margin-bottom: 2px; }
.wedding-row:has(.row-services) > .wedding-row-side { align-self: flex-start; }
@media (max-width: 599.98px) {
    /* Phones: the times drop under the names instead of squeezing them. */
    .wedding-row-title:has(.row-times:not(:empty)) { flex-wrap: wrap; row-gap: 0; }
    .row-times { order: 10; flex-basis: 100%; margin-left: 0; }
    .row-services.in-title { display: inline-flex; }
    .row-services.in-side { display: none; }
    .row-services { gap: 4px; }
    .row-services > span { width: 24px; height: 24px; }
    .row-services .mud-icon-root { width: 14px; height: 14px; }
}
/* Compact rows on phones (Bruno, 2026-10-24: the full row was crowded and too small there): WeddingRow's PhoneCard
   replaces the main and side columns with the essentials, bigger. */
.row-phone { display: none; }
/* No couple photo in phone lists either (Bruno, 2026-10-24). */
@media (max-width: 599.98px) { :is(.wedding-row, .week-card) .couple-photo { display: none; } }
@media (max-width: 599.98px) {
    .wedding-row.compact { flex-wrap: nowrap; align-items: center; gap: 12px; padding: 14px 16px; }
    .wedding-row.compact > :is(.wedding-row-main, .wedding-row-side) { display: none; }
    .wedding-row.compact > .date-block { width: 56px; align-self: stretch; justify-content: center; }
    .wedding-row.compact .date-day { font-size: 1.5rem; }
    .wedding-row.compact .date-month { font-size: .72rem; }
    .row-phone { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
    .rp-top, .rp-meta, .rp-bottom { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .rp-names { flex: 1 1 auto; min-width: 0; display: flex; }
    .rp-meta, .rp-bottom { flex-wrap: wrap; row-gap: 6px; } /* the times badge drops under the faces when they don't fit */
    .rp-meta .mud-chip { margin: 0; }
    .rp-noloc { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--mud-palette-warning); }
    .rp-noloc .mud-icon-root { width: 18px; height: 18px; }
    .rp-noloc[role=button] { cursor: pointer; }
    .rp-times { display: inline-flex; margin-left: auto; flex: none; }
    .rp-crew { display: inline-flex; align-items: center; padding-left: 8px; flex: none; }
    .rp-crew .rp-face { margin-left: -8px; }
    .rp-crew .mud-avatar { width: 30px; height: 30px; font-size: .74rem; border: 2px solid var(--mud-palette-surface); }
    .rp-crew .rp-face.pending .mud-avatar { opacity: .5; }
    .rp-more { margin-left: 6px; font-size: .82rem; font-weight: 600; color: var(--mud-palette-text-secondary); }
    .rp-actions { display: inline-flex; gap: 8px; flex: none; }
    /* Darker accent on light, lighter accent on dark, so the icons never look faded over the glass or a picture. */
    .rp-actions > :is(.row-notes, .row-chat) { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
        color: var(--wp-gold-dark); background: color-mix(in srgb, var(--wp-gold) 20%, transparent); }
    .wp-dark .rp-actions > :is(.row-notes, .row-chat) { color: color-mix(in srgb, var(--wp-gold) 45%, white); background: color-mix(in srgb, var(--wp-gold) 30%, transparent); }
    .rp-actions .mud-icon-root { width: 24px; height: 24px; }
    .rp-actions .unread-count.compact { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; font-size: .68rem; }
}
.loc-menu-shown { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.loc-chip.missing { border: 1px dashed var(--mud-palette-warning); color: var(--mud-palette-warning-darken, var(--mud-palette-warning)); background: color-mix(in srgb, var(--mud-palette-warning) 10%, var(--mud-palette-surface)); font-weight: 600; }
.loc-chip.missing .mud-icon-root { color: var(--mud-palette-warning); }
.loc-chip.missing:hover { background: color-mix(in srgb, var(--mud-palette-warning) 18%, var(--mud-palette-surface)); }
.wp-dark .loc-chip.missing { color: color-mix(in srgb, var(--mud-palette-warning) 70%, white); }

/* Role picker: selected roles stand out in green, not just by their check mark. */
.role-picker .mud-chip.mud-chip-selected {
    background: color-mix(in srgb, var(--mud-palette-success) 16%, transparent);
    border-color: var(--mud-palette-success);
    color: var(--mud-palette-success-darken, var(--mud-palette-success));
    font-weight: 600;
}
.role-picker .mud-chip.mud-chip-selected .mud-icon-root { color: var(--mud-palette-success); }
.role-picker .mud-chip:not(.mud-chip-selected) { color: var(--mud-palette-text-secondary); }
.wp-dark .role-picker .mud-chip.mud-chip-selected { color: color-mix(in srgb, var(--mud-palette-success) 55%, white); }
.invited-elsewhere { color: var(--mud-palette-warning); }

/* Location progress on the wedding day: done ones fade to grey, the next one is green. */
.loc-chip.passed { color: var(--mud-palette-text-secondary); border-color: var(--mud-palette-lines-default); background: color-mix(in srgb, var(--mud-palette-text-secondary) 8%, var(--mud-palette-surface)); opacity: .75; }
.loc-chip.passed .mud-icon-root { color: var(--mud-palette-text-secondary); }
.loc-chip.next { color: var(--mud-palette-success-darken, var(--mud-palette-success)); border: 1.5px solid var(--mud-palette-success); background: color-mix(in srgb, var(--mud-palette-success) 14%, var(--mud-palette-surface)); font-weight: 600; }
.loc-chip.next .mud-icon-root { color: var(--mud-palette-success); }
.wp-dark .loc-chip.next { color: color-mix(in srgb, var(--mud-palette-success) 60%, white); }
.loc-state { text-transform: none; letter-spacing: 0; vertical-align: middle; margin-left: 4px; }
.loc-state.passed { color: var(--mud-palette-text-secondary); background: color-mix(in srgb, var(--mud-palette-text-secondary) 12%, transparent); }
.loc-state.next { color: var(--mud-palette-success); background: color-mix(in srgb, var(--mud-palette-success) 14%, transparent); }
/* Phones leave the "A seguir" badge out of the day's programme and the Localizações list, there isn't room for it
   (Bruno, 2026-10-27). */
@media (max-width: 599.98px) { :is(.timeline-title, .location-card) .loc-state.next { display: none; } }
.timeline-item.passed .timeline-time, .timeline-item.passed .timeline-body, .timeline-item.passed .timeline-dot { opacity: .55; }
.timeline-item.next .timeline-dot .mud-icon-root, .timeline-item.next .timeline-time { color: var(--mud-palette-success); font-weight: 700; }
/* Wedding Localizações tab: one location per row; its name in green, its type and time in a vivid purple, all bold
   (Bruno, 2026-10-24). The purple is brighter than the other-team violet so the two don't read alike. */
:root { --wp-loc-kind: #8A2BE2; --wp-loc-address: #B58900; }
html.wp-dark { --wp-loc-kind: #D08CFF; --wp-loc-address: #FFD54A; }
.location-list { display: flex; flex-direction: column; gap: 14px; }
.location-card .loc-title { color: var(--mud-palette-success); font-weight: 700; }
.location-card :is(.loc-kind, .loc-time) { color: var(--wp-loc-kind) !important; font-weight: 700; }
.location-card .loc-time { font-size: 1.05em; }
html.wp-neon .location-card :is(.loc-kind, .loc-time) { text-shadow: 0 0 8px color-mix(in srgb, var(--wp-loc-kind) 45%, transparent); }
/* The address: its icon in yellow, centred on the first line of a wrapping address (Bruno, 2026-10-24). */
.location-card .loc-address { display: flex; width: fit-content; max-width: 100%; align-items: flex-start; gap: 6px; line-height: 20px; }
.location-card .loc-address .mud-icon-root { width: 20px; height: 20px; flex: none; color: var(--wp-loc-address); }
html.wp-neon .location-card .loc-address .mud-icon-root { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--wp-loc-address) 55%, transparent)); }
/* Computers and tablets: map, edit and delete in the card's top right corner, 6px apart (Bruno, 2026-10-24); phones keep
   the map and ⋮ centred, like MudMenu centres itself. */
.location-card :is(.map-open, .row-actions) { align-self: center; }
@media (min-width: 600px) {
    .location-card :is(.map-open, .row-actions) { align-self: flex-start; }
    .location-card .map-open + .row-actions { margin-left: -6px; } /* the card's 12px gap less the icons' own 6px */
}
.location-card .loc-menu { display: none; }
/* A row's own actions as icons instead of a ⋮ menu (locations, notes): delete in red, still confirmed. */
.row-actions { display: inline-flex; gap: 6px; flex: none; }
:is(.row-actions, .pay-row, .team-list-actions) .mud-icon-button.row-delete { color: var(--mud-palette-error) !important; background-color: color-mix(in srgb, var(--mud-palette-error) 14%, transparent) !important; }
.note-list { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 599.98px) { .loc-actions { display: none; } .location-card .loc-menu { display: inline-flex; } }
.location-card.passed > * { opacity: .6; }
.location-card.passed .icon-bubble { filter: grayscale(1); }
.location-card.next { box-shadow: inset 0 0 0 1.5px var(--mud-palette-success); }

/* GIF picker and GIF bubbles */
.gif-pop { position: absolute; bottom: calc(100% + 6px); left: 8px; right: 8px; z-index: 30; max-width: 360px; height: min(380px, 60vh); display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: var(--wp-radius); box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.gif-search { width: 100%; padding: 8px 12px; border-radius: var(--wp-radius); border: 1px solid var(--mud-palette-lines-default); background: var(--mud-palette-background); color: var(--mud-palette-text-primary); font: inherit; outline: none; }
.gif-search:focus { border-color: var(--wp-gold); }
.gif-grid { flex: 1; overflow-y: auto; columns: 2; column-gap: 6px; }
.gif-grid.loading { opacity: .5; }
.gif-item { display: block; width: 100%; margin: 0 0 6px; padding: 0; border: 0; border-radius: var(--wp-radius); overflow: hidden; background: var(--mud-palette-action-default-hover); cursor: pointer; break-inside: avoid; }
.gif-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gif-item:hover { outline: 2px solid var(--wp-gold); }
.gif-empty { column-span: all; padding: 24px 8px; text-align: center; color: var(--mud-palette-text-secondary); font-size: .85rem; }
.gif-credit { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-align: right; color: var(--mud-palette-text-secondary); }
.msg-gif { max-width: min(260px, 70vw); }

/* ---------- Small screens: wrap labels instead of cutting them ---------- */
/* MudTabs wraps each tab in a tooltip root, so that is the flex item: the tabs share the row and their labels wrap. */
.wrap-tabs .mud-tabs-tabbar-content, .wrap-tabs .mud-tabs-tabbar-wrapper { width: 100%; }
.wrap-tabs .mud-tabs-tabbar-wrapper > .mud-tooltip-root { flex: 1 1 0; min-width: 0; }
.wrap-tabs .mud-tabs-scroll-button { display: none; }
.wrap-tabs .mud-tab { white-space: normal; line-height: 1.2; width: 100%; min-width: 0 !important; min-height: 48px; height: 100%; padding: 6px 8px; }
@media (max-width: 374px) { .wrap-tabs .mud-tab { padding: 6px 4px; letter-spacing: .01em; font-size: .8125rem; } }
/* Phones: the theme switch lives in the avatar menu and the language in Perfil, so the bar keeps the bell and avatar on screen. */
@media (max-width: 419px) { .app-bar .theme-toggle, .app-bar .theme-menu { display: none !important; } .app-bar .mud-toolbar-gutters { padding-left: 12px; padding-right: 12px; } }
/* The time pickers need room for "00:00" plus the clock icon: one per row on the narrowest phones. */
@media (max-width: 374px) { .assign-times > .mud-grid-item { flex-basis: 100%; max-width: 100%; } }
/* A crew member's own fee summary inside their crew row. */
.my-money { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; padding: 8px 12px; border: 1px solid var(--mud-palette-lines-default); border-radius: var(--wp-radius); background: color-mix(in srgb, var(--mud-palette-primary) 5%, transparent); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.my-money:hover { background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent); }
.my-money.static { cursor: default; }
.my-money.static:hover { background: color-mix(in srgb, var(--mud-palette-primary) 5%, transparent); }
/* A booking's fee still being agreed: the member's offer card, and the manager's answer on the crew row. */
.offer .mud-alert-message { flex: 1; min-width: 0; }
.offer-body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.offer-text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 2px; }
.offer-fee { font-weight: 600; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.offer-money .offer-actions { margin-top: 8px; }
.offer-note { font-size: .85rem; margin-top: 4px; overflow-wrap: anywhere; }
.offer-wait { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--mud-palette-text-secondary); margin-top: 4px; }
.offer-wait .mud-icon-root { font-size: 1rem; }
.offer-money .offer-wait { display: flex; }
/* A booking not yet accepted (PC and tablet, Bruno 2026-10-25): the accepted layout at zero, the fee on offer marked
   "– A AGUARDAR RESPOSTA"; the offer box below then only carries a counter-offer's note and answers. */
.wedding-crew .crew-info > .pending-money { display: none; }
.pending-tag { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
.pending-tag.asked { color: var(--mud-palette-warning); }
@media (min-width: 600px) {
    .wedding-crew .crew-info > .pending-money { display: inline-flex; }
    .wedding-crew .offer-money > :is(.my-money, .offer-wait) { display: none; }
    .wedding-crew .offer-money.figures-only { display: none; }
}
.my-money > span { display: flex; flex-direction: column; line-height: 1.25; }
.my-money small { font-size: .7rem; color: var(--mud-palette-text-secondary); }
.my-money b { font-size: .95rem; }
.crew-money.pending .crew-money-grid, .crew-money.pending > .d-flex > b { opacity: .55; }

/* Reconnecting quietly (ReconnectModal.razor.js): the page stays as it was, with a thin moving bar under the status bar. */
html.wp-reconnecting body::after { content: ""; position: fixed; z-index: 3000; left: 0; right: 0; top: var(--wp-safe-top, 0px); height: 3px; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--mud-palette-primary), transparent) 0 0 / 40% 100% no-repeat; animation: wp-reconnect-bar 1.1s ease-in-out infinite; }
@keyframes wp-reconnect-bar { from { background-position: -40% 0; } to { background-position: 140% 0; } }
/* Reconnect dialog (ReconnectModal.razor), shown while the live connection is down, usually during an update: the app's
   look, centred, with the page behind it in black and white. ReconnectModal.razor.js toggles the state classes. */
.components-reconnect-first-attempt-visible, .components-reconnect-repeated-attempt-visible, .components-reconnect-failed-visible,
.components-pause-visible, .components-resume-failed-visible, .components-rejoining-animation { display: none; }
#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible { display: block; }
/* A retry hides the first-attempt text, so only one message shows at a time. */
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-failed .components-rejoining-animation { display: none; }
#components-reconnect-modal {
    position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100dvh - 32px);
    width: min(22rem, calc(100vw - 32px)); box-sizing: border-box; padding: 28px 24px 24px;
    background: var(--mud-palette-surface, #fff); color: var(--mud-palette-text-primary, #222);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 45%, transparent); border-radius: var(--wp-radius);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28); font-family: "Titillium Web", system-ui, sans-serif;
}
#components-reconnect-modal:focus, #components-reconnect-modal:focus-visible { outline: none; }
#components-reconnect-modal[open] { animation: wp-reconnect-in .4s cubic-bezier(.05, .89, .25, 1.02) .3s both; }
#components-reconnect-modal::backdrop { background: rgba(0, 0, 0, .18); -webkit-backdrop-filter: grayscale(1); backdrop-filter: grayscale(1); animation: wp-fade-in .5s ease-in-out; }
.components-reconnect-container { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.components-reconnect-container .reconnect-logo { height: 30px; width: auto; }
#components-reconnect-modal p { margin: 0; text-align: center; line-height: 1.45; }
#components-reconnect-modal p span { font-size: .875rem; color: var(--mud-palette-text-secondary, #666); }
#components-reconnect-modal button {
    min-height: 40px; padding: 0 22px; border: 0; border-radius: var(--wp-radius); cursor: pointer;
    background: var(--mud-palette-primary); color: var(--mud-palette-primary-text, #fff); font: inherit; font-weight: 600;
}
#components-reconnect-modal button:hover { filter: brightness(.92); }
.components-rejoining-animation {
    width: 40px; height: 40px; box-sizing: border-box; border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--mud-palette-primary) 20%, transparent); border-top-color: var(--mud-palette-primary);
    animation: wp-spin .9s linear infinite;
}
@keyframes wp-reconnect-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes wp-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wp-spin { to { transform: rotate(360deg); } }
/* "My teams" card: the teams the user runs, then the ones they work for. */
.my-teams-head { display: flex; align-items: center; gap: 6px; margin: 12px 0 4px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
.my-teams-head .mud-icon-root { width: 16px; height: 16px; }
.my-teams > .mud-typography-h6 + .my-teams-head { margin-top: 4px; }
/* Small caps heading above a card when a tab holds more than one list (Finance › By wedding). */
.section-label { margin: 0 0 8px 2px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
/* A fee the member hasn't accepted yet: shown, greyed, and left out of the totals. */
.data-table tr.pending td.num { opacity: .55; }

/* Wedding page: the header and tab bar stay in view and only the tab content scrolls. The page fills the height under
   the app bar (and above the phone's bottom bar), and the tab panels are the scroll area. */
:root { --wp-main-top: calc(var(--mud-appbar-height) - var(--mud-appbar-height) / 8 + var(--wp-safe-top)); } /* the app bar's height, as MudBlazor sizes it */
@media (orientation: landscape) { :root { --wp-main-top: calc(var(--mud-appbar-height) - var(--mud-appbar-height) / 4 + var(--wp-safe-top)); } }
@media (min-width: 600px) { :root { --wp-main-top: calc(var(--mud-appbar-height) + var(--wp-safe-top)); } }
/* iOS 26, installed: while the page is shorter than the screen, iOS gives it a window shorter than the screen by the
   status bar's height (WebKit bug), so the bottom bar stopped that high and left an empty strip under it, about as tall
   as the bar itself. A page at least as tall as the screen gets the whole screen: so the page is made the screen's
   height, the window plus the status bar, never more than the screen itself (100lvh). Without a status bar over the
   page (a computer, Android) the inset is 0 and nothing changes. (Bruno, 2026-11-05, as in the CCTV app.) */
@media (display-mode: standalone) {
    html { min-height: min(100lvh, calc(100% + env(safe-area-inset-top, 0px))); }
}
/* Installed on a phone the page runs under the status bar (viewport-fit=cover, black-translucent): the app bar grows
   by the status bar's height and everything under it moves down with it. */
:root { --wp-safe-top: env(safe-area-inset-top, 0px); }
.app-bar.mud-appbar { padding-top: var(--wp-safe-top); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.mud-layout .mud-main-content.app-main { padding-top: var(--wp-main-top); }
.mud-drawer-fixed.mud-drawer-responsive.mud-drawer-clipped-always.app-drawer { top: var(--wp-main-top); height: calc(100% - var(--wp-main-top)); }
/* The status bar's clock is always white: in the light theme it gets a dark strip behind it. */
html:not(.wp-dark) .app-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--wp-safe-top); background: rgba(18, 17, 16, .6); pointer-events: none; }
.app-container:has(.wedding-page) { padding-bottom: 0; }
/* The frame stops short of the window's bottom (or the bottom bar) by the page's side margin (Bruno, 2026-10-24). */
.wedding-page { --wp-page-end: 24px; display: flex; flex-direction: column; height: calc(100dvh - var(--wp-main-top) - 20px - var(--wp-page-end)); }
@media (max-width: 599.98px) { .wedding-page { --wp-page-end: 16px; } }
.wedding-page > * { flex: none; }
.wedding-page > .wedding-hero { margin-bottom: 12px; }
.wedding-page > .wedding-tabs { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.wedding-page > .wedding-tabs > .mud-tabs-tabbar { flex: none; }
/* The tab bar and its content share one framed card, so they are always the same width with one outline around both
   (Bruno, 2026-10-24); the content scrolls inside the frame, under the bar. The scrollbar's room, where the browser
   reserves any, is kept on both sides so the content stays centred under the bar. */
.wedding-page > .wedding-tabs > .mud-tabs-panels { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges; padding: 16px 16px 24px; }
@media (max-width: 599.98px) { .wedding-page > .wedding-tabs > .mud-tabs-panels { padding: 8px 8px 20px; } }
@media (max-width: 959.98px) {
    .wedding-page { height: calc(100dvh - var(--wp-main-top) - 20px - var(--wp-page-end) - var(--wp-bottom-nav) - var(--wp-nav-pad)); }
}
/* Calendar chips: the status icon first, the crew's photos overlapping at the end. */
.cal-event .cal-status { width: 12px; height: 12px; flex: none; }
.cal-crew { display: inline-flex; align-items: center; flex: none; margin-left: auto; padding-left: 4px; }
.cal-event > .unread-count + .cal-crew { margin-left: 2px; }
.cal-crew .cal-crew-av { width: 16px !important; height: 16px !important; font-size: .5rem !important; box-shadow: 0 0 0 1.5px var(--mud-palette-surface); }
.cal-crew .cal-crew-av + .cal-crew-av { margin-left: -5px; }
.cal-crew-more { margin-left: 2px; font-size: .62rem; font-weight: 600; }
/* Tablets and phones: the chips show only the couple's names; their colour still tells the status. */
@media (max-width: 959.98px) {
    .cal-event > :is(.cal-crew, .cal-status, .cal-second, .unread-count) { display: none !important; }
    .cal-legend-items .lg-secondary { display: none; }
}
/* ---------- Dashboard (Bruno, 2026-10-24): the year in numbers and charts, drawn in plain HTML/CSS so they follow every
   theme. Colours come from the palette (info = done, success = confirmed / on time, warning = to confirm / late, error =
   cancelled / overdue). ---------- */
:root { --wp-chart-track: color-mix(in srgb, var(--mud-palette-text-primary) 9%, transparent); }
.dash-year { display: inline-flex; align-items: center; gap: 4px; }
.dash-year-value { min-width: 56px; text-align: center; font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; }
.fill-page > .dash-scroll { display: flex; flex-direction: column; gap: 16px; }
/* Three cards a row above phones (nine for managers: an even block), two on phones. */
@media (min-width: 600px) { .stats-grid.dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dash-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dash-charts > .dash-wide { grid-column: 1 / -1; }
@media (max-width: 959.98px) { .dash-charts { grid-template-columns: minmax(0, 1fr); gap: 12px; } .fill-page > .dash-scroll { gap: 12px; } }
/* Today's date and the time, big in the middle of the title row on tablets and computers (Bruno, 2026-10-30). */
.page-header.has-center { display: grid; grid-template-columns: 1fr auto 1fr; }
.page-header.has-center > .page-header-actions { justify-self: end; }
.dash-clock { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.15; }
.dash-clock-date { font-size: 1.15rem; font-weight: 600; }
.dash-clock-time { font-size: 2.1rem; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.dash-phone-date { display: none; }
/* Sharing the app: the device's share sheet only where it has one; "Copiar link" says "Link copiado" for a moment. */
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share-actions > .share-native { display: none; }
html.can-share .share-actions > .share-native { display: inline-flex; }
@media (max-width: 599.98px) { .share-actions > .mud-button-root { flex: 1 1 100%; } }
[data-copy].copied > .mud-button-label { visibility: hidden; }
[data-copy].copied::after { content: attr(data-copied); position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; }
/* Unread notifications above the numbers: rows run edge to edge like on Notificações, without the unread tint (all are). */
.dash-notifs > .card-head > .unread-count { flex: none; }
.dash-notifs > .notif-row { margin: 0 -16px; }
.dash-notifs > .card-head + .notif-row { border-top: 1px solid var(--mud-palette-lines-default); }
.dash-notifs > .notif-row .item-title { font-weight: 700; }
.dash-notifs-all { margin-top: 8px; }
@media (max-width: 599.98px) {
    .page-header.has-center { display: flex; }
    .page-header-center { display: none; }
    .dash-phone-date { display: inline; }
    .dash-notifs > .card-head { flex-wrap: nowrap; }
    .dash-notifs > .card-head .btn-text { display: none; }
    .dash-notifs > .card-head > .mud-button-root { min-width: 40px; padding: 0 10px; }
    .dash-notifs > .card-head .mud-button-icon-start { margin: 0; }
}

.chart-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1 1 200px; min-width: 0; }
.chart-legend > li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 44px; align-items: center; gap: 8px; }
.chart-legend.inline { flex-direction: row; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; }
.chart-legend.inline > li { display: inline-flex; gap: 6px; }
.lg-dot { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.lg-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-pct { text-align: right; color: var(--mud-palette-text-secondary); font-weight: 600; }

.donut-chart { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut { position: relative; width: 168px; height: 168px; flex: none; }
.donut-ring { position: absolute; inset: 0; border-radius: 50%;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 24px), #000 calc(100% - 23px)); mask: radial-gradient(farthest-side, transparent calc(100% - 24px), #000 calc(100% - 23px)); }
.donut-hole { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.donut-hole b { font-size: 1.9rem; font-weight: 700; }
.donut-hole small { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
@media (max-width: 599.98px) { .donut-chart { justify-content: center; } .donut { width: 150px; height: 150px; } }
/* The neon glow in the slices' own colours, in every theme: the blur sits on a wrapper, as a filter on the masked ring
   itself would be cut away by its mask. Legend dots glow in their colour too. */
.donut-glow { position: absolute; inset: 0; filter: blur(10px); opacity: .6; pointer-events: none; }
html.wp-dark .donut-glow { opacity: .9; }
html.wp-neon .donut-glow { opacity: 1; filter: blur(12px) saturate(1.5) brightness(1.2); }
.donut-chart .lg-dot { box-shadow: 0 0 6px var(--c); }

.bar-area { display: flex; align-items: stretch; gap: 6px; height: 210px; }
.bar-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar-value { height: 16px; line-height: 16px; font-size: .72rem; font-weight: 600; color: var(--mud-palette-text-secondary); white-space: nowrap; }
.bar-track { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1px solid var(--mud-palette-lines-default); }
.bar-stack { width: min(36px, 80%); display: flex; flex-direction: column-reverse; overflow: hidden; border-radius: min(var(--wp-radius), 6px) min(var(--wp-radius), 6px) 0 0; }
.bar-seg { display: block; min-height: 2px; }
.bar-single { display: block; width: min(16px, 42%); border-radius: min(var(--wp-radius), 6px) min(var(--wp-radius), 6px) 0 0; }
.bar-label { font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: var(--mud-palette-text-secondary); white-space: nowrap; }
.bar-chart.grouped .bar-area { padding-top: 20px; }
@media (max-width: 599.98px) {
    .bar-area { gap: 3px; height: 180px; }
    .bar-label { font-size: .58rem; letter-spacing: 0; }
    .bar-value { font-size: .62rem; }
    .bar-track { gap: 1px; }
}

.hbar-list { display: flex; flex-direction: column; gap: 10px; }
.hbar-row { display: grid; grid-template-columns: 32px minmax(70px, 34%) minmax(0, 1fr) 46px; align-items: center; gap: 10px; }
.hbar-row > .mud-avatar { width: 32px; height: 32px; font-size: .74rem; }
.hbar-icon { justify-self: center; color: var(--mud-palette-primary); }
.hbar-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hbar-track { height: 10px; border-radius: 999px; background: var(--wp-chart-track); overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: inherit; background: var(--mud-palette-primary); }
.hbar-value { text-align: right; }
html.wp-neon :is(.bar-stack, .bar-single, .hbar-fill) { box-shadow: 0 0 10px color-mix(in srgb, var(--mud-palette-primary) 35%, transparent); }
html.wp-neon :is(.donut-hole b, .dash-year-value, .dash-clock-time) { text-shadow: var(--nx-text-glow); }
/* Stat cards with a ring (the Dashboard, Bruno 2026-11-04): icon, label and hint on the left, the value in a ring on the
   right that fills with the share it stands for (--p, 0-100, in --c; or a server-made conic gradient of slices). A blurred
   copy of the coloured part behind it glows in the ring's own colour in every theme, strongest in Néon. */
.stat-card.has-ring > .stat-text { flex: 1 1 auto; min-width: 0; }
.stat-card.has-ring .stat-label { font-size: .84rem; font-weight: 600; }
.stat-ring { --ring: 88px; --stroke: 9px; position: relative; width: var(--ring); height: var(--ring); flex: none; margin-left: auto; }
.stat-ring-arc { position: absolute; inset: 0; border-radius: 50%;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--stroke) - 1px), #000 calc(100% - var(--stroke)));
    mask: radial-gradient(farthest-side, transparent calc(100% - var(--stroke) - 1px), #000 calc(100% - var(--stroke))); }
.stat-ring-glow { position: absolute; inset: -2px; filter: blur(7px); opacity: .65; pointer-events: none; }
html.wp-dark .stat-ring-glow { opacity: .95; }
html.wp-neon .stat-ring-glow { opacity: 1; filter: blur(9px) saturate(1.5) brightness(1.25); }
.stat-ring-hole { position: absolute; inset: var(--stroke); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.05; }
.stat-ring-hole > .stat-value { font-size: 1.35rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.stat-ring-hole > .stat-value:has(.fin-out) { font-size: .92rem; letter-spacing: 0; }
.stat-ring-hole > small { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
@media (max-width: 599.98px) {
    /* Phones, two cards a row: icon and ring side by side on top, the words below. */
    .stat-card.has-ring { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon ring" "text text"; align-items: start; row-gap: 8px; }
    .stat-card.has-ring > .stat-icon { grid-area: icon; }
    .stat-card.has-ring > .stat-ring { grid-area: ring; justify-self: end; --ring: 72px; --stroke: 8px; }
    .stat-card.has-ring > .stat-text { grid-area: text; }
    .stat-card.has-ring .stat-label { font-size: .78rem; }
    .stat-ring-hole > .stat-value { font-size: 1.1rem; }
    .stat-ring-hole > .stat-value:has(.fin-out) { font-size: .74rem; }
    .stat-ring-hole > small { font-size: .58rem; }
}
/* Slimmer stat cards, so five fit on one row. */
.stats-grid.compact .stat-card { padding: 12px; gap: 10px; }
.stats-grid.compact .stat-icon { width: 36px; height: 36px; }
.stats-grid.compact .stat-value { font-size: 1.2rem; }
/* Pages whose title, filters or summary stay put while the rest scrolls in its own area below them (Início,
   Casamentos, Calendário, like a wedding's page), so nothing ever slides past behind or above them. */
.app-container:has(.fill-page) { padding-bottom: 0; }
.fill-page { display: flex; flex-direction: column; height: calc(100dvh - var(--wp-main-top) - 20px); }
.fill-page > * { flex: none; }
.fill-page > .fill-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 24px; }
/* A form on a MudGrid: the scroller gives the grid room for its negative margins, so nothing scrolls sideways. */
.fill-page > .fill-scroll.form-scroll { margin-inline: -12px; padding-inline: 12px; }
.fill-scroll.form-scroll > .mud-grid { margin-inline: -12px; }
.fill-page > .home-lists { margin-top: 16px; }
@media (max-width: 959.98px) {
    .fill-page { height: calc(100dvh - var(--wp-main-top) - 20px - var(--wp-bottom-nav) - var(--wp-nav-pad)); }
}
/* Início's summary: one row of cards on computers (the year's card first). On tablets and phones only "Próximos
   casamentos" shows, with an arrow; tapping it drops the other cards down over the list, and tapping outside closes. */
.home-stats > .stats-more { display: contents; }
.home-stats .stat-first { order: -1; }
.stat-expand, .stats-backdrop { display: none; }
@media (max-width: 959.98px) {
    .home-stats { display: block; position: relative; z-index: 21; }
    .home-stats .stat-card { flex-direction: row; align-items: center; }
    .home-stats > .stat-primary { cursor: pointer; user-select: none; }
    .home-stats .stat-expand { display: block; margin-left: auto; flex: none; transition: transform .2s; color: var(--mud-palette-text-secondary); }
    .home-stats.open .stat-expand { transform: rotate(180deg); }
    .home-stats > .stats-more { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); flex-direction: column; gap: 6px; padding: 6px;
        border-radius: var(--wp-radius); background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
    .home-stats.open > .stats-more { display: flex; animation: wp-fade-in .15s ease-out; }
    .home-stats .stat-first { order: 0; }
    .stats-backdrop { display: block; position: fixed; inset: 0; z-index: 20; }
    .app-bg ~ .mud-layout .home-stats > .stats-more { background: var(--wp-glass-strong); border-color: var(--wp-glass-border); -webkit-backdrop-filter: var(--wp-glass-blur); backdrop-filter: var(--wp-glass-blur); }
}
@media (max-width: 599.98px) {
    .home-stats .stat-icon { width: 32px; height: 32px; }
    .fill-page > .home-lists { margin-top: 8px; }
}
/* Tablets and phones: the scrolling list uses the screen's full width; its cards lose the side margins (the page's
   gutter: 16px on phones, 24px on tablets), borders and corners. */
@media (max-width: 959.98px) {
    .fill-page { --wp-gutter: 24px; }
    .fill-page > .fill-scroll { margin-inline: calc(-1 * var(--wp-gutter)); }
    .fill-page > .fill-scroll.form-scroll { margin-inline: calc(-1 * var(--wp-gutter)); padding-inline: var(--wp-gutter); }
    .fill-scroll > :not(.card) { margin-inline: var(--wp-gutter); }
    .fill-scroll > .card { border-radius: 0 !important; border-left-width: 0 !important; border-right-width: 0 !important; }
    .home-panel > .card-head { border-radius: 0; }
}
@media (max-width: 599.98px) { .fill-page { --wp-gutter: 16px; } }
/* Each list's title and button stick at the top of the scrolling area while its weddings pass under them ("clip",
   unlike "hidden", keeps the rounded corners without trapping the sticky title). */
.home-panel { overflow: clip; }
.home-panel > .card-head { position: sticky; top: 0; z-index: 3; margin: -16px -16px 10px; padding: 16px 16px 10px;
    background: var(--mud-palette-surface); border-radius: var(--wp-radius) var(--wp-radius) 0 0; }
.app-bg ~ .mud-layout .home-panel > .card-head { background: color-mix(in srgb, var(--mud-palette-surface) 94%, transparent) !important; -webkit-backdrop-filter: var(--wp-glass-blur); backdrop-filter: var(--wp-glass-blur); }
/* On phones the title and an icon-only "+" share one line, so the list keeps its room. */
@media (max-width: 599.98px) {
    .home-panel > .card-head { flex-wrap: nowrap; }
    .home-panel > .card-head .btn-text { display: none; }
    .home-panel > .card-head .new-btn { min-width: 40px; padding: 0 10px; }
    .home-panel > .card-head .new-btn .mud-button-icon-start { margin: 0; }
}
/* A page's title and filters above its scrolling list (Casamentos, Calendário). */
.fixed-head { padding-bottom: 4px; }
@media (max-width: 599.98px) {
    .fixed-head .page-header { flex-wrap: nowrap; margin-bottom: 12px; }
    .fixed-head .page-title { font-size: 1.5rem !important; }
    .fixed-head .toolbar { gap: 8px; }
}
.fixed-head > .toolbar { margin-bottom: 8px; }

/* ---------- Personal background: glass ----------
   With a picture behind the app, every surface (app bar, side menu, cards, dialogs, menus) is frosted glass: see-through
   with a blur behind it, so the picture shows and text stays readable. Surfaces inside a surface only tint (one blur is
   enough), outlines go faint, and the sticky bands (page headers, Início's summary) have no fill of their own: they only
   blur what scrolls under them, fading out at their edges. Without a picture none of this applies. */
.app-bg ~ * {
    --wp-glass: color-mix(in srgb, var(--mud-palette-surface) 68%, transparent);
    --wp-glass-strong: color-mix(in srgb, var(--mud-palette-surface) 86%, transparent);
    --wp-glass-tint: color-mix(in srgb, var(--mud-palette-surface) 38%, transparent);
    --wp-glass-blur: blur(14px) saturate(1.2);
    --wp-glass-border: rgba(0, 0, 0, .07);
}
.wp-dark .app-bg ~ * {
    --wp-glass: color-mix(in srgb, var(--mud-palette-surface) 58%, transparent);
    --wp-glass-strong: color-mix(in srgb, var(--mud-palette-surface) 84%, transparent);
    --wp-glass-tint: color-mix(in srgb, var(--mud-palette-surface) 34%, transparent);
    --wp-glass-border: rgba(255, 255, 255, .08);
}
/* No blur available: more opaque, so text still reads. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .app-bg ~ * { --wp-glass: color-mix(in srgb, var(--mud-palette-surface) 88%, transparent); --wp-glass-strong: var(--mud-palette-surface); }
}
.app-bg ~ .mud-layout .app-bar, .app-bg ~ .mud-layout .mud-drawer.app-drawer, .app-bg ~ .mud-layout .bottom-nav,
.app-bg ~ .mud-layout .mud-paper, .app-bg ~ .mud-layout .card, .app-bg ~ .mud-layout .wedding-hero, .app-bg ~ .mud-layout .stat-card {
    background: var(--wp-glass) !important; -webkit-backdrop-filter: var(--wp-glass-blur); backdrop-filter: var(--wp-glass-blur);
    border-color: var(--wp-glass-border) !important;
}
.app-bg ~ .mud-layout .app-bar { border-bottom: 1px solid var(--wp-glass-border); }
.app-bg ~ .mud-layout .mud-drawer.app-drawer { border-right: 1px solid var(--wp-glass-border); }
.app-bg ~ .mud-layout .bottom-nav { border-top-color: var(--wp-glass-border); }
/* Menus, dropdowns, pickers and dialogs: glass too, a little denser since they sit over busy content. */
.app-bg ~ * .mud-popover.mud-paper, .app-bg ~ * .mud-dialog, .app-bg ~ * .mud-picker-paper, .app-bg ~ * .e2e-modal, body:has(.app-bg) > .msg-pop, .app-bg ~ .mud-layout .gif-pop, .app-bg ~ .mud-layout .cal-sheet {
    background: var(--wp-glass-strong) !important; -webkit-backdrop-filter: var(--wp-glass-blur); backdrop-filter: var(--wp-glass-blur);
}
/* Inside a glass surface: a light tint, no second blur. */
.app-bg ~ .mud-layout :is(.mud-paper, .card, .wedding-hero) :is(.mud-paper, .card, .stat-card) {
    background: var(--wp-glass-tint) !important; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.app-bg ~ .mud-layout :is(.chat-list-head, .chat-input, .chat-day, .msg.theirs .msg-bubble, .chat-input textarea, .pending-chip, .crew-money-grid > div,
    .loc-chip, .notif-kind) { background: var(--wp-glass-tint); border-color: var(--wp-glass-border); }
.app-bg ~ .mud-layout .chat-messages { background: transparent; }
.app-bg ~ .mud-layout .wedding-hero::after { border-color: var(--wp-glass-border); }
.app-bg ~ .mud-layout :is(.date-block:not(.hero-date), .cal-day) { border-color: var(--wp-glass-border); }
.app-bg ~ .mud-layout .date-block:not(.hero-date) { background: var(--wp-glass-tint); }
.app-bg ~ .mud-layout :is(.wedding-row, .list-row, .crew-row, .chat-item, .data-table th, .data-table td, .month-divider, .wedding-tabs .mud-tabs-tabbar) { border-color: var(--wp-glass-border); }
.app-bg ~ .mud-layout .month-divider { background: color-mix(in srgb, var(--mud-palette-primary) 28%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
/* Fields, toggles and outlined buttons on the picture get their own glass (inside their rounded corners), so outlined
   boxes don't float over it. */
.app-bg ~ .mud-layout :is(.mud-input-outlined, .list-search, .mud-toggle-group, .mud-button-outlined:not(.mud-toggle-item)):not(:is(.mud-paper, .card, .wedding-hero, .cal-sheet) *) {
    background: var(--wp-glass); border-radius: var(--wp-radius); -webkit-backdrop-filter: var(--wp-glass-blur); backdrop-filter: var(--wp-glass-blur);
}
/* Text straight on the picture (page titles, section headings, tab bars, hints, empty states) gets a glass backing too. */
.app-bg ~ .mud-layout :is(.page-header-text > div, .dash-clock, .greeting, .month-header, .section-label, .section-head > .mud-typography, .cal-head,
    .empty-state, .mud-typography-caption.d-block):not(:is(.mud-paper, .card, .wedding-hero, .cal-sheet) *) {
    width: fit-content; max-width: 100%; padding: 4px 12px; border-radius: var(--wp-radius); text-shadow: none;
    background: var(--wp-glass); -webkit-backdrop-filter: var(--wp-glass-blur); backdrop-filter: var(--wp-glass-blur);
}
.app-bg ~ .mud-layout .empty-state:not(:is(.mud-paper, .card) *) { margin: 0 auto; padding: 28px 32px; }
.app-bg ~ .mud-layout .mud-tabs-tabbar:not(:is(.mud-paper, .card) *) {
    background: var(--wp-glass) !important; -webkit-backdrop-filter: var(--wp-glass-blur); backdrop-filter: var(--wp-glass-blur);
    border-radius: var(--wp-radius); border-bottom-color: transparent; text-shadow: none;
}

/* Couple payments: the deposit / balance not yet recorded, offered as one-tap rows. */
.money-row.suggested { border-bottom: 1px dashed var(--mud-palette-lines-default); }
.money-row.suggested:last-child { border-bottom: none; }
.money-row.suggested > b { color: var(--mud-palette-text-secondary); font-weight: 500; }
/* "Adicionar…" buttons (AddButton): filled, upper case, circled plus. */
.mud-button-root.add-btn { text-transform: uppercase; letter-spacing: .04em; }
/* Fee negotiation dialog (OfferDialog): who asks, the offer against the counter, and the answers. */
.offer-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.offer-compare { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: var(--wp-radius); background: var(--mud-palette-action-default-hover); }
.offer-compare > div { display: flex; flex-direction: column; }
.offer-compare > div:last-child { text-align: right; }
.offer-compare small { font-size: .74rem; color: var(--mud-palette-text-secondary); }
.offer-compare b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.offer-dialog-actions { flex-wrap: wrap; gap: 8px; }
.offer-dialog-actions > .mud-button-root { margin-left: 0 !important; }
.mud-dialog .offer { margin-bottom: 0 !important; }
/* Phones and tablets: no double-tap zoom, and text fields at 16px so iOS doesn't zoom in when one is tapped. */
html.is-phone, html.is-phone body { touch-action: manipulation; }
html.is-phone :is(input:not([type=checkbox]):not([type=radio]), textarea, select) { font-size: 16px; }
/* The keyboard is up (app.js sets kb-open and --wp-vvh, the height left on screen): the bottom bar steps aside and the
   chat fits exactly above the keyboard, its message box touching it. */
@media (max-width: 959.98px) {
    html.kb-open .bottom-nav { display: none; }
    html.kb-open .app-main { min-height: 0; }
    html.kb-open, html.kb-open body { height: var(--wp-vvh); overflow: hidden; }
    html.kb-open .chat-layout { height: calc(var(--wp-vvh) - var(--wp-main-top)); }
    html.kb-open .fill-page, html.kb-open .wedding-page { height: calc(var(--wp-vvh) - var(--wp-main-top) - 20px); }
}
/* The message box's hint stays on one line however narrow the phone. */
.chat-input textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   Néon theme (Bruno, 2026-10-24, after a smart-home dashboard he likes; the dark theme until he asked for a plain
   "Escuro" beside it, which is the light theme's look in dark colours: html.wp-dark alone): a deep navy page with a faint grid,
   translucent cards with a thin luminous outline and a soft glow, badges that glow in their own colour, section
   titles followed by a rule, and numbers that shine. Shapes are the other themes' (Bruno, 2026-11-01: the same 6px
   corners and badges, no pills); only the colours, outlines and glows are Néon's own. The colours are
   MudBlazor's neon dark palette (AppTheme.cs) plus the tokens below; with a personal background picture the glass block
   above still decides the fills, this adds the outlines and glows.
   ========================================================================== */
html.wp-neon {
    --nx-line: rgba(125, 170, 255, .40);
    --nx-line-soft: rgba(125, 170, 255, .20);
    --nx-glow: rgba(70, 130, 255, .28);
    --nx-fill: linear-gradient(160deg, rgba(48, 88, 200, .32), rgba(10, 20, 66, .66));
    --nx-fill-solid: linear-gradient(160deg, #15296A, #0A1442);
    --nx-fill-in: rgba(16, 32, 96, .42);
    --nx-well: rgba(5, 11, 38, .55);
    --nx-bar: rgba(7, 14, 44, .80);
    --nx-text-glow: 0 0 14px rgba(140, 185, 255, .50);
    --nx-ok: #4FE3B0; --nx-warn: #FFC857; --nx-bad: #FF5C7A;
}
/* The page: navy, lighter towards the top, under a faint grid. A fixed layer, so it stays put while lists scroll. */
html.wp-neon body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(rgba(110, 150, 255, .055) 1px, transparent 1px) 0 0 / 36px 36px,
        linear-gradient(90deg, rgba(110, 150, 255, .055) 1px, transparent 1px) 0 0 / 36px 36px,
        radial-gradient(120% 70% at 50% 0%, #16337F 0%, #0B1A4C 42%, #050A22 100%);
}
/* The body stays see-through so this layer (and a personal background picture, above it) shows. */
html.wp-neon body, html.wp-neon .mud-main-content, html.wp-neon .mud-layout { background: transparent; }

/* Bars: dark glass with a glowing edge. */
html.wp-neon :is(.app-bar, .bottom-nav, .mud-drawer.app-drawer) {
    background: var(--nx-bar) !important; -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
}
html.wp-neon .app-bar { border-bottom: 1px solid var(--nx-line-soft); box-shadow: 0 1px 16px rgba(70, 130, 255, .18); }
html.wp-neon .bottom-nav { border-top: 1px solid var(--nx-line-soft); box-shadow: 0 -1px 16px rgba(70, 130, 255, .18); }
html.wp-neon .mud-drawer.app-drawer { border-right: 1px solid var(--nx-line-soft); }
html.wp-neon :is(.bottom-nav a.active, .app-nav .mud-nav-link.active) { text-shadow: 0 0 10px color-mix(in srgb, var(--mud-palette-success) 60%, transparent); }
html.wp-neon :is(.bottom-nav a.active, .app-nav .mud-nav-link.active) .mud-icon-root { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--mud-palette-success) 80%, transparent)); }
html.wp-neon .bottom-nav a.active .mud-icon-root { box-shadow: 0 0 12px color-mix(in srgb, var(--mud-palette-success) 30%, transparent); }

/* Cards: translucent navy with a thin luminous outline, a soft outer glow and a faint inner one. */
html.wp-neon :is(.card, .stat-card, .wedding-hero, .wedding-cards .wedding-row) {
    background: var(--nx-fill); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid var(--nx-line) !important;
    box-shadow: 0 0 18px var(--nx-glow), inset 0 0 18px rgba(90, 140, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .06);
}
html.wp-neon :is(.mud-dialog, .mud-popover.mud-paper, .mud-picker-paper, .cal-sheet) {
    background: var(--nx-fill-solid); border: 1px solid var(--nx-line); box-shadow: 0 0 24px rgba(70, 130, 255, .32), 0 18px 48px rgba(0, 0, 0, .55);
}
/* A surface inside a card only tints, without a second glow. */
html.wp-neon :is(.card, .wedding-hero, .mud-dialog) :is(.card, .stat-card, .mud-paper:not(.mud-popover)) {
    background: var(--nx-fill-in); box-shadow: none; border-color: var(--nx-line-soft) !important; -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* Rows inside a card keep a faint separator. */
html.wp-neon :is(.wedding-row, .list-row, .crew-row, .chat-item, .money-row, .data-table th, .data-table td, .pay-list, .pay-row) { border-color: var(--nx-line-soft); }
html.wp-neon .pay-list { background: var(--nx-well); border-radius: var(--wp-radius); }
html.wp-neon :is(.wedding-row, .list-row):hover { background: rgba(90, 140, 255, .08); }
/* Wedding tiles light up in their state's colour: confirmed mint, to confirm amber, cancelled red; done stays plain. */
html.wp-neon .wedding-cards .wedding-row:nth-child(even) { background: var(--nx-fill); }
html.wp-neon .wedding-cards .wedding-row.st-confirmed { --nx-state: var(--nx-ok); }
html.wp-neon .wedding-cards .wedding-row.st-tentative { --nx-state: var(--nx-warn); }
html.wp-neon .wedding-cards .wedding-row.st-cancelled { --nx-state: var(--nx-bad); }
html.wp-neon .wedding-cards .wedding-row:is(.st-confirmed, .st-tentative, .st-cancelled) {
    border-color: color-mix(in srgb, var(--nx-state) 55%, transparent) !important;
    box-shadow: 0 0 16px color-mix(in srgb, var(--nx-state) 26%, transparent), inset 0 0 18px color-mix(in srgb, var(--nx-state) 8%, transparent);
}
html.wp-neon .wedding-cards .wedding-row.elsewhere { box-shadow: inset 3px 0 0 var(--wp-other), 0 0 16px color-mix(in srgb, var(--nx-state, var(--wp-other)) 22%, transparent); }
html.wp-neon .wedding-cards .wedding-row.st-done { opacity: .82; }

/* The wedding header: a glowing line along its bottom edge, as on the reference's clock card. */
html.wp-neon .wedding-hero {
    background: linear-gradient(90deg, #4FD8FF, #8B7CFF 55%, #FF6FC8) left bottom / 100% 2px no-repeat, var(--nx-fill);
}
html.wp-neon .wedding-hero::after { border-color: var(--nx-line-soft); }

/* Badges: the other themes' shape and text, outlined and glowing in their own colour. Filled ones turn to tinted outlines. */
html.wp-neon :is(.mud-chip, .tag, .team-tag, .team-role, .countdown-chip, .loc-chip, .loc-state, .deliv-chip, .crew-chip, .wnote-new, .visibility-badge) {
    border: 1.5px solid color-mix(in srgb, currentColor 55%, transparent);
    box-shadow: 0 0 12px color-mix(in srgb, currentColor 30%, transparent), inset 0 0 10px color-mix(in srgb, currentColor 10%, transparent);
}
html.wp-neon :is(.crew-chip, .loc-chip) { border-color: var(--nx-line); }
html.wp-neon .mud-chip.mud-chip-filled { background: color-mix(in srgb, var(--wp-chip) 16%, transparent) !important; color: var(--wp-chip) !important; }
html.wp-neon .mud-chip-filled.mud-chip-color-success { --wp-chip: var(--mud-palette-success); }
html.wp-neon .mud-chip-filled.mud-chip-color-warning { --wp-chip: var(--mud-palette-warning); }
html.wp-neon .mud-chip-filled.mud-chip-color-error { --wp-chip: var(--mud-palette-error); }
html.wp-neon .mud-chip-filled.mud-chip-color-info { --wp-chip: var(--mud-palette-info); }
html.wp-neon .mud-chip-filled:is(.mud-chip-color-primary, .mud-chip-color-default) { --wp-chip: var(--mud-palette-primary); }
html.wp-neon .wnote-new { color: var(--nx-bad); background: color-mix(in srgb, var(--nx-bad) 14%, transparent); }
/* Status colours a step brighter, so they read on navy. */
html.wp-neon .countdown-chip.far { color: var(--nx-ok); background: rgba(79, 227, 176, .10); }
html.wp-neon .countdown-chip.near { color: var(--nx-warn); background: rgba(255, 200, 87, .10); }
html.wp-neon .countdown-chip.soon { color: var(--nx-bad); background: rgba(255, 92, 122, .10); }
html.wp-neon .countdown-chip.today { color: #fff; background: var(--nx-bad); }
html.wp-neon .tag { color: color-mix(in srgb, var(--mud-palette-primary) 55%, white); background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent); }

/* Included services: the reference's "closed / locked" tiles, glowing mint. */
html.wp-neon .service-tile {
    border-color: color-mix(in srgb, var(--nx-ok) 55%, transparent); background: color-mix(in srgb, var(--nx-ok) 7%, transparent);
    box-shadow: 0 0 14px color-mix(in srgb, var(--nx-ok) 22%, transparent), inset 0 0 12px color-mix(in srgb, var(--nx-ok) 8%, transparent);
}
html.wp-neon .service-tile > .mud-icon-root:first-child { color: var(--nx-ok); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--nx-ok) 60%, transparent)); }

/* Buttons: filled ones glow in the accent; outlined ones get a luminous edge; round ones a faint ring. */
html.wp-neon .mud-button-filled.mud-button-filled-primary {
    background: color-mix(in srgb, var(--mud-palette-primary) 26%, rgba(10, 20, 66, .6)) !important; color: color-mix(in srgb, var(--mud-palette-primary) 35%, white) !important;
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 80%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--mud-palette-primary) 40%, transparent), inset 0 0 12px color-mix(in srgb, var(--mud-palette-primary) 18%, transparent);
}
html.wp-neon .mud-button-filled.mud-button-filled-primary:hover { background: color-mix(in srgb, var(--mud-palette-primary) 38%, rgba(10, 20, 66, .6)) !important; }
html.wp-neon .mud-button-outlined { box-shadow: 0 0 10px rgba(70, 130, 255, .16); }
html.wp-neon .mud-icon-button:not(.mud-button-filled):not(.mud-switch-base):not(.mud-input-adornment *):not(.mud-input-clear-button):not(.mud-chip *),
html.wp-neon :is(.chat-tool, .rp-actions > .row-notes, .rp-actions > .row-chat, .member-chat) {
    box-shadow: inset 0 0 0 1px var(--nx-line-soft), 0 0 10px rgba(70, 130, 255, .16);
}

/* Fields: dark wells with a luminous outline that brightens on focus. */
html.wp-neon .mud-input-outlined { background: var(--nx-well); border-radius: var(--wp-radius); }
html.wp-neon .mud-input-outlined .mud-input-outlined-border { border-color: var(--nx-line-soft); }
html.wp-neon .mud-input-outlined:hover .mud-input-outlined-border { border-color: var(--nx-line); }
html.wp-neon .mud-input-outlined.mud-shrink:focus-within .mud-input-outlined-border,
html.wp-neon .mud-input-outlined:focus-within .mud-input-outlined-border { box-shadow: 0 0 12px color-mix(in srgb, var(--mud-palette-primary) 40%, transparent); }

/* Tabs: a glowing bar, the active tab and its indicator shine. */
html.wp-neon .wedding-tabs .mud-tabs-tabbar { background: rgba(90, 140, 255, .06) !important; border-bottom: 1px solid var(--nx-line-soft); }
html.wp-neon .wedding-tabs .mud-tabs-tabbar-wrapper > .mud-tooltip-root + .mud-tooltip-root { border-left-color: var(--nx-line-soft); }
html.wp-neon .mud-tab.mud-tab-active { text-shadow: var(--nx-text-glow); }
html.wp-neon .mud-tab.mud-tab-active .mud-icon-root { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--mud-palette-primary) 70%, transparent)); }
html.wp-neon .mud-tab-slider { box-shadow: 0 0 10px var(--mud-palette-primary); }
html.wp-neon .wedding-tabs .mud-tab.mud-tab-active .mud-icon-root { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--mud-palette-success) 70%, transparent)); }
html.wp-neon .wedding-tabs .mud-tab-slider { box-shadow: 0 0 10px var(--mud-palette-success); }

/* Section titles: glowing, upper case, followed by a thin rule (the reference's "SECURITY ———"). */
html.wp-neon :is(.section-head > .mud-typography, .card-head > .mud-typography-h6, .card > .mud-typography-h6:first-child, .section-label) {
    display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0;
    color: color-mix(in srgb, var(--mud-palette-primary) 45%, white); text-shadow: var(--nx-text-glow); letter-spacing: .08em;
}
html.wp-neon :is(.section-head > .mud-typography, .card-head > .mud-typography-h6, .card > .mud-typography-h6:first-child, .section-label)::after {
    content: ""; flex: 1 1 0; min-width: 0; height: 1px; background: linear-gradient(90deg, var(--nx-line), transparent);
}
/* Date headers: their own band, no rule after the text (Bruno, 2026-11-17). */
html.wp-neon .month-divider { background: color-mix(in srgb, rgb(70, 130, 255) 24%, var(--mud-palette-surface)); border: 0; letter-spacing: .08em;
    color: color-mix(in srgb, var(--mud-palette-primary) 45%, white); text-shadow: var(--nx-text-glow); }

/* Numbers and names that shine. */
html.wp-neon :is(.page-title, .hero-title, .date-day, .stat-value, .greeting .mud-typography-h4, .greeting .mud-typography-h5) { text-shadow: var(--nx-text-glow); }
html.wp-neon .date-block:not(.hero-date) { background: var(--nx-fill-in); border: 1px solid var(--nx-line-soft); }
html.wp-neon .date-month { color: color-mix(in srgb, var(--mud-palette-primary) 45%, white); }

/* Value boxes (crew money): dark wells, tiny spaced labels over bright amounts, like "SET TO 76°". */
html.wp-neon :is(.my-money, .crew-money-grid > div, .offer-compare) { background: var(--nx-well); border: 1px solid var(--nx-line-soft); border-radius: var(--wp-radius); }
html.wp-neon :is(.my-money small, .crew-money-grid span, .offer-compare small) { text-transform: uppercase; letter-spacing: .08em; font-size: .64rem; font-weight: 600; }
html.wp-neon .my-money b { text-shadow: 0 0 10px color-mix(in srgb, currentColor 45%, transparent); }
/* The header's day and hours, and each crew member's hours: cyan, with icons that glow. */
html.wp-neon .time-badge { color: #8FE3FF; background: rgba(111, 216, 255, .08); border: 1.5px solid rgba(111, 216, 255, .55);
    box-shadow: 0 0 12px rgba(111, 216, 255, .30), inset 0 0 10px rgba(111, 216, 255, .10); text-shadow: 0 0 8px rgba(111, 216, 255, .45); }
html.wp-neon .time-badge.tb-work { text-transform: none; } /* "8h", not "8H" */
html.wp-neon .time-badge .mud-icon-root { filter: drop-shadow(0 0 5px currentColor); }
html.wp-neon .time-badge .mud-icon-root:not(.tb-start, .tb-end, .event-type-icon) { color: currentColor; }

/* Fields encrypted in the browser (SealedField, SealedAmount) sit in FieldFrame: MudBlazor's own outlined markup and classes,
   so they take the same label, height, background and borders as every other field in every theme. */
.wp-field .mud-input > textarea.mud-input-root { box-sizing: border-box; margin: 0; padding: 10.5px 14px; min-height: 7.5em; max-height: 60vh; resize: vertical; field-sizing: content; }
.wp-field .mud-input.wp-field-multi { align-items: stretch; }
.wp-field .mud-input:has(.invalid) > .mud-input-outlined-border { border-color: var(--mud-palette-error) !important; }
.wp-field .mud-input:has(:disabled) { opacity: .55; }
.wp-field > :is(.sealed-field-help, .sealed-field-hint) { margin: 4px 14px 0; }
.sealed-field-help { font-size: .75rem; color: var(--mud-palette-text-secondary); }
.sealed-field-hint { display: inline-flex; align-items: center; gap: 4px; color: #4F8A62; font-size: .75rem; }
.sealed-field-hint .mud-icon-root { width: 12px; height: 12px; }
.sealed-field-help.error { color: var(--mud-palette-error); }
/* Decrypted place links (e2e-maplink) and names render inline in the text around them. */
e2e-maplink { display: inline; }
/* Event photos decrypted in the browser (<e2e-img>): the <img> inside is laid out as if it stood alone. */
e2e-img { display: contents; }
.e2e-img-locked { display: grid; place-items: center; width: 100%; height: 100%; min-height: 72px; color: var(--mud-palette-text-secondary); }

/* ---------------- Money worked out in the browser (money.js, 2026-11-03) ---------------- */
/* The calculator wraps its markup without a box of its own; values show "…" until the amounts are decrypted. */
e2e-fin { display: contents; }
[data-fin-if]:not(.fin-on) { display: none !important; }
.fin-out:empty::before, e2e-money:empty::before { content: "…"; color: var(--mud-palette-text-secondary); }
.fin-progress { flex: 1; height: 8px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--mud-palette-primary) 22%, transparent); }
.fin-progress > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--mud-palette-primary); transition: width .3s ease; }
.fin-progress.done > span { background: var(--mud-palette-success); }
.form-lock-hint { display: flex; align-items: flex-start; gap: 6px; color: #4F8A62; font-size: .75rem; }
.form-lock-hint .mud-icon-root { width: 14px; height: 14px; flex: none; margin-top: 1px; }

/* ---------- Organisers and suppliers (Bruno, 2026-11-17) ---------- */
/* A supplier's day as an organiser sees it: green free, amber pencilled in, red busy, like owed/settled money. */
.tag.day-free { color: var(--mud-palette-success); background: color-mix(in srgb, var(--mud-palette-success) 12%, transparent); }
.tag.day-tentative { color: var(--mud-palette-warning); background: color-mix(in srgb, var(--mud-palette-warning) 14%, transparent); }
.tag.day-busy { color: var(--mud-palette-error); background: color-mix(in srgb, var(--mud-palette-error) 12%, transparent); }
.supplier-check { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.supplier-check .supplier-date, .supplier-check .supplier-filter { flex: 1 1 220px; max-width: 320px; margin: 0; }
.supplier-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.supplier-row .member-icons { display: inline-flex; align-items: center; gap: 4px; }
.supplier-row .tag { flex-shrink: 0; }
.supplier-noagenda { display: flex; align-items: center; gap: 4px; color: var(--mud-palette-warning) !important; }
.supplier-month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.supplier-month-title { font-weight: 700; text-transform: uppercase; }
.supplier-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.supplier-dow { font-size: .75rem; text-transform: uppercase; opacity: .7; padding-bottom: 2px; }
.supplier-day { padding: 8px 0; border-radius: var(--wp-radius); font-weight: 600; }
.supplier-day.free { color: var(--mud-palette-success); background: color-mix(in srgb, var(--mud-palette-success) 10%, transparent); }
.supplier-day.tentative { color: var(--mud-palette-warning); background: color-mix(in srgb, var(--mud-palette-warning) 16%, transparent); }
.supplier-day.busy { color: var(--mud-palette-error); background: color-mix(in srgb, var(--mud-palette-error) 14%, transparent); text-decoration: line-through; }
.supplier-day.past { opacity: .35; }
.supplier-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 599px) {
    .supplier-row { flex-wrap: wrap; }
    .supplier-row .tag { order: 3; margin-left: 52px; }
    .supplier-check .supplier-date, .supplier-check .supplier-filter { max-width: none; }
}
.flex-none { flex: none; white-space: nowrap; }
/* "O que faz para eventos": one category per line with a toggle on the right (Bruno, 2026-11-17). */
.cat-list { display: flex; flex-direction: column; }
.cat-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 4px; border: 0; border-bottom: 1px solid var(--mud-palette-lines-default); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cat-row:last-child { border-bottom: 0; }
.cat-row:hover { background: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent); }
.cat-row .cat-name { flex: 1; }
.cat-row.on .cat-name { font-weight: 600; }
.cat-row.on .pick-toggle { background: color-mix(in srgb, var(--mud-palette-success) 45%, transparent); }
.cat-row.on .pick-toggle::after { transform: translateX(14px); background: var(--mud-palette-success); }

/* Event of several days (2026-11-17): each day's start and hours in the edit form. */
.event-days-title { font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; color: var(--mud-palette-text-secondary); margin-top: 4px; }
.event-day-name { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.event-day-name .muted { font-size: .85rem; }
/* An event of several days: "12–14" in its date tile, a little smaller so it fits. */
.date-block.multi .date-day { font-size: 1.05rem; white-space: nowrap; letter-spacing: -.02em; }
.wedding-row.compact .date-block.multi .date-day { font-size: 1.1rem; }
/* An event of several days has a chip on each of its days; where it goes on into the next or came from the day
   before, the chip runs to the day's edge, square, so the days read as one event. */
.cal-day > .cal-event.multi.cont-before { margin-left: calc(-1 * var(--cal-px)); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal-day > .cal-event.multi.cont-after { margin-right: calc(-1 * var(--cal-px) - 1px); border-top-right-radius: 0; border-bottom-right-radius: 0; }
