h1:focus {
    outline: none;
}

:root,
.gatherings-accent-teal {
    --g-primary: #0f766e;
    --g-primary-soft: #ccfbf1;
    --g-secondary: #b45309;
    --g-surface: rgba(255, 255, 255, 0.94);
    --g-surface-dark: rgba(21, 28, 44, 0.94);
    --g-panel-radius: 14px;
    --g-panel-shadow: 0 10px 36px rgba(15, 23, 42, 0.08);
    --g-bg-light: linear-gradient(160deg, #ecfdf5 0%, #f8fafc 42%, #e2e8f0 100%);
    --g-bg-dark: linear-gradient(135deg, rgba(15, 118, 110, 0.78), rgba(15, 23, 42, 0.94)),
        url('/images/background.svg') center / cover no-repeat fixed;
}

.gatherings-accent-ocean {
    --g-primary: #0e7490;
    --g-primary-soft: #cffafe;
    --g-secondary: #0369a1;
    --g-bg-light: linear-gradient(160deg, #ecfeff 0%, #f8fafc 42%, #e2e8f0 100%);
    --g-bg-dark: linear-gradient(135deg, rgba(14, 116, 144, 0.78), rgba(15, 23, 42, 0.94)),
        url('/images/background.svg') center / cover no-repeat fixed;
}

.gatherings-accent-forest {
    --g-primary: #3f6212;
    --g-primary-soft: #ecfccb;
    --g-secondary: #854d0e;
    --g-bg-light: linear-gradient(160deg, #f7fee7 0%, #f8fafc 42%, #e2e8f0 100%);
    --g-bg-dark: linear-gradient(135deg, rgba(63, 98, 18, 0.72), rgba(15, 23, 42, 0.94)),
        url('/images/background.svg') center / cover no-repeat fixed;
}

.gatherings-layout-light {
    min-height: 100vh;
    background: var(--g-bg-light);
}

.gatherings-layout-dark {
    min-height: 100vh;
    background: var(--g-bg-dark);
}

.gatherings-layout {
    min-height: 100vh;
}

.gatherings-layout .mud-main-content {
    padding-top: var(--mud-appbar-height, 64px);
}

.gatherings-main-content-chat {
    padding: var(--mud-appbar-height, 64px) 0 0 0 !important;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.gatherings-bottom-nav-host {
    display: none;
}

.gatherings-event-sticky-actions {
    display: none;
}

.gatherings-appbar-menu-desktop {
    display: inline-flex;
}

.gatherings-layout[data-drawer="hidden"] .mud-main-content {
    margin-left: 0 !important;
    width: 100%;
}

.gatherings-layout[data-drawer="collapsed"] .mud-drawer.gatherings-app-drawer {
    width: 56px !important;
    max-width: 56px !important;
    min-width: 56px !important;
    flex: 0 0 56px !important;
}

.gatherings-layout[data-drawer="collapsed"] .mud-drawer.gatherings-app-drawer .mud-drawer-content {
    width: 56px !important;
    max-width: 56px !important;
}

.gatherings-layout[data-drawer="collapsed"] .mud-main-content {
    margin-left: 56px !important;
    width: calc(100% - 56px);
}

.gatherings-layout[data-drawer="expanded"] .mud-drawer.gatherings-app-drawer {
    width: 220px !important;
    max-width: 220px !important;
    min-width: 220px !important;
    flex: 0 0 220px !important;
}

.gatherings-layout[data-drawer="expanded"] .mud-drawer.gatherings-app-drawer .mud-drawer-content {
    width: 220px !important;
    max-width: 220px !important;
}

.gatherings-layout[data-drawer="expanded"] .gatherings-app-drawer .mud-nav-link-text {
    display: inline !important;
}

.gatherings-layout[data-drawer="expanded"] .mud-main-content {
    margin-left: 220px !important;
    width: calc(100% - 220px);
}

.gatherings-app-drawer .mud-drawer-content {
    width: 100%;
    overflow-x: hidden;
}

.gatherings-app-drawer.gatherings-drawer-collapsed .mud-nav-link-text,
.gatherings-layout[data-drawer="collapsed"] .gatherings-app-drawer .mud-nav-link-text {
    display: none !important;
}

.gatherings-layout[data-drawer="collapsed"] .gatherings-app-drawer .mud-nav-link {
    justify-content: center;
    min-height: 48px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.gatherings-layout[data-drawer="collapsed"] .gatherings-app-drawer .mud-nav-link .mud-icon-root {
    margin-inline-end: 0 !important;
    margin-inline-start: 0 !important;
}

.gatherings-nav-menu .mud-nav-link {
    border-radius: 10px;
    margin: 0.12rem 0.45rem;
    min-height: 42px;
    padding-inline: 0.7rem;
}

.gatherings-nav-menu .mud-nav-link .mud-nav-link-icon,
.gatherings-nav-menu .mud-nav-link .mud-icon-root {
    font-size: 1.35rem;
}

.gatherings-nav-messages-wrap {
    position: relative;
}

.gatherings-nav-unread-badge {
    position: absolute;
    top: 0.35rem;
    inset-inline-end: 0.65rem;
    z-index: 1;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: var(--mud-palette-error);
    color: var(--mud-palette-error-text, #fff);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 0 0 2px var(--mud-palette-drawer-background, #fff);
}

.gatherings-layout[data-drawer="collapsed"] .gatherings-app-drawer .gatherings-nav-unread-badge {
    top: 0.4rem;
    inset-inline-end: 0.35rem;
    min-width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    font-size: 0;
    line-height: 0;
}

.gatherings-layout[data-drawer="collapsed"] .gatherings-app-drawer .gatherings-nav-menu .mud-nav-link {
    margin-inline: 0.25rem;
}

.gatherings-layout[data-drawer="collapsed"] .gatherings-nav-menu {
    padding-top: 0.5rem;
}

/* —— Mobile shell (< md): overlay nav, full-width content; desktop rail unchanged —— */
.gatherings-appbar-search-mobile {
    display: none;
}

.gatherings-profile-avatar {
    margin-inline-end: 0.5rem;
}

.gatherings-profile-menu {
    min-width: 0;
}

.gatherings-mobile-search-dialog {
    min-width: min(100%, 20rem);
    padding-top: 0.25rem;
}

.gatherings-dayof-tray {
    position: sticky;
    top: calc(var(--mud-appbar-height, 64px) + 0.25rem);
    z-index: 4;
}

.gatherings-dayof-tray-panel .gatherings-dayof-tray {
    position: static;
    top: auto;
    z-index: auto;
}

.gatherings-dayof-tray-panel .mud-expand-panel-header {
    padding: 0.65rem 0.85rem;
}

.gatherings-dayof-tray-title {
    width: 100%;
}

.gatherings-mobile-form-dialog .gatherings-mobile-form-dialog-inline-actions {
    display: none;
}

.gatherings-tasting-add-panel .gatherings-tasting-add-search {
    flex: 1 1 12rem;
    min-width: 0;
}

.gatherings-horizontal-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gatherings-horizontal-scroll .mud-table-root {
    min-width: 40rem;
}

.gatherings-attendee-tabs .mud-tabs-toolbar {
    flex-wrap: nowrap;
}

.gatherings-attendee-tabs .mud-tab {
    min-width: 0;
    flex: 0 0 auto;
    max-width: 100%;
    white-space: nowrap;
}

.gatherings-attendee-mobile-card {
    width: 100%;
    min-width: 0;
    text-align: start;
}

.gatherings-attendee-grid-desktop {
    display: none;
}

@media (min-width: 960px) {
    .gatherings-attendee-mobile-card {
        display: none !important;
    }

    .gatherings-attendee-grid-desktop {
        display: grid;
    }
}

.gatherings-attendee-mobile-chips {
    margin-top: 0.15rem;
}

.gatherings-attendee-mobile-meta {
    margin-top: 0.35rem;
}

.gatherings-attendee-mobile-role {
    margin-top: 0.35rem;
    max-width: 14rem;
}

.gatherings-attendee-panels .mud-expand-panel-header .gatherings-attendee-mobile-card {
    padding-inline-end: 0.25rem;
}

@media (max-width: 959.95px) {
    .gatherings-layout[data-drawer="collapsed"] .mud-main-content,
    .gatherings-layout[data-drawer="expanded"] .mud-main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .gatherings-appbar-menu-desktop {
        display: none !important;
    }

    .gatherings-bottom-nav-host {
        display: block;
    }

    .gatherings-has-bottom-nav .mud-main-content {
        padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
    }

    .gatherings-has-bottom-nav.gatherings-main-content-chat,
    .gatherings-has-bottom-nav .gatherings-main-content-chat {
        padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .gatherings-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        padding: 0.2rem 0.15rem calc(0.2rem + env(safe-area-inset-bottom, 0px));
        background: var(--mud-palette-surface);
        border-top: 1px solid var(--mud-palette-lines-default);
        box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
    }

    .gatherings-layout-dark .gatherings-bottom-nav {
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35);
    }

    .gatherings-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.1rem;
        min-height: 3.35rem;
        padding: 0.25rem 0.15rem;
        border: 0;
        background: transparent;
        color: var(--mud-palette-text-secondary);
        text-decoration: none;
        font-size: 0.68rem;
        font-weight: 600;
        line-height: 1.1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .gatherings-bottom-nav-item .mud-icon-root {
        font-size: 1.35rem !important;
    }

    .gatherings-bottom-nav-item.is-active {
        color: var(--mud-palette-primary);
    }

    .gatherings-bottom-nav-icon-wrap {
        position: relative;
        display: inline-flex;
    }

    .gatherings-bottom-nav-badge {
        position: absolute;
        top: -0.35rem;
        right: -0.55rem;
        min-width: 1rem;
        height: 1rem;
        padding: 0 0.25rem;
        border-radius: 999px;
        background: #e53935;
        color: #fff;
        font-size: 0.62rem;
        font-weight: 700;
        line-height: 1rem;
        text-align: center;
    }

    .gatherings-layout[data-drawer="collapsed"] .mud-drawer.gatherings-app-drawer-mobile,
    .gatherings-layout[data-drawer="expanded"] .mud-drawer.gatherings-app-drawer-mobile {
        width: min(280px, 86vw) !important;
        max-width: min(280px, 86vw) !important;
        min-width: 0 !important;
        flex: none !important;
    }

    .gatherings-layout[data-drawer="collapsed"] .mud-drawer.gatherings-app-drawer-mobile .mud-drawer-content,
    .gatherings-layout[data-drawer="expanded"] .mud-drawer.gatherings-app-drawer-mobile .mud-drawer-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .gatherings-layout[data-drawer="collapsed"] .gatherings-app-drawer-mobile .mud-nav-link-text,
    .gatherings-layout[data-drawer="expanded"] .gatherings-app-drawer-mobile .mud-nav-link-text {
        display: inline !important;
        visibility: visible !important;
        width: auto !important;
        overflow: visible !important;
    }

    .gatherings-layout[data-drawer="collapsed"] .gatherings-app-drawer-mobile .mud-nav-link {
        justify-content: flex-start;
        min-height: 48px;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .gatherings-layout[data-drawer="collapsed"] .gatherings-app-drawer-mobile .mud-nav-link .mud-icon-root {
        margin-inline-end: 12px !important;
    }

    .gatherings-appbar-search-desktop {
        display: none !important;
    }

    .gatherings-appbar-search-mobile {
        display: inline-flex;
    }

    .gatherings-profile-menu-name {
        display: none;
    }

    .gatherings-profile-avatar {
        margin-inline-end: 0;
    }

    .gatherings-appbar-title {
        max-width: 38vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1.05rem !important;
    }

    .gatherings-drawer-brand {
        display: block;
        padding: 0.85rem 1rem 0.5rem;
        border-bottom: 1px solid var(--mud-palette-lines-default);
        margin-bottom: 0.35rem;
    }

    .gatherings-drawer-brand-btn {
        justify-content: flex-start;
        padding-inline: 0.25rem !important;
        text-transform: none;
        min-width: 0;
        width: 100%;
    }

    .gatherings-drawer-brand-title {
        font-weight: 650;
        letter-spacing: -0.01em;
        line-height: 1.2;
    }

    .gatherings-page-container.py-4 {
        padding-top: 0.75rem !important;
        padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px)) !important;
        padding-left: max(0.75rem, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(0.75rem, env(safe-area-inset-right, 0px)) !important;
    }

    .page-header .mud-stack-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .gatherings-event-detail-header {
        padding: 0.85rem !important;
    }

    .gatherings-event-detail-title {
        font-size: 1.45rem !important;
        line-height: 1.25 !important;
        word-break: break-word;
        flex: 1 1 100%;
    }

    .gatherings-event-host-actions > .mud-button-root,
    .gatherings-event-host-actions > .mud-menu {
        flex: 1 1 auto;
        min-width: min(100%, 9.5rem);
    }

    .gatherings-event-host-actions .mud-menu .mud-button-root {
        width: 100%;
    }

    .gatherings-event-back {
        margin-inline-start: -0.35rem;
    }

    .gatherings-event-section-panels .mud-expand-panel {
        margin-bottom: 0.35rem !important;
    }

    .gatherings-event-section-panels .mud-expand-panel .mud-expand-panel-header {
        min-height: 2.75rem;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .gatherings-dayof-tray .mud-button-root {
        flex: 1 1 auto;
        min-width: min(100%, 8.5rem);
    }

    .gatherings-dayof-actions {
        gap: 0.35rem;
    }

    .gatherings-mobile-form-dialog .mud-dialog-actions {
        display: none !important;
    }

    .gatherings-mobile-form-dialog .gatherings-mobile-form-dialog-inline-actions {
        display: flex;
        margin-top: 0.75rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--mud-palette-lines-default);
    }

    .gatherings-mobile-form-dialog .mud-dialog {
        margin: 0.75rem auto !important;
        width: calc(100% - 1.5rem) !important;
        max-width: calc(100% - 1.5rem) !important;
        max-height: calc(100dvh - 1.5rem);
        min-height: 0 !important;
        align-self: flex-start;
        border-radius: 12px !important;
    }

    .gatherings-mobile-form-dialog .mud-dialog-content {
        max-height: none;
        overflow: visible;
        padding-bottom: 0.25rem;
    }

    .gatherings-mobile-form-dialog.mud-dialog-width-full {
        width: calc(100% - 1.5rem) !important;
    }

    .gatherings-tasting-add-panel .mud-stack-row {
        width: 100%;
    }

    .gatherings-tasting-add-panel .gatherings-tasting-add-search {
        flex: 1 1 100%;
        width: 100%;
    }

    .gatherings-attendee-panels .mud-expand-panel-header {
        padding-inline: 0.65rem;
    }

    .gatherings-attendee-roster-table .mud-table-root,
    .gatherings-guest-rsvp-table .mud-table-root {
        min-width: 36rem;
    }

    .calendar-agenda-day-selected {
        outline: 2px solid var(--mud-palette-primary);
        outline-offset: -1px;
    }

    .sticky-calendar-toolbar {
        top: 0;
        padding-top: 0.35rem;
    }

    .gatherings-event-sticky-actions {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
        z-index: 1100;
        gap: 0.2rem;
        padding: 0.12rem 0.4rem;
        align-items: center;
        flex-wrap: nowrap;
        background: var(--mud-palette-surface);
        border-top: 1px solid var(--mud-palette-lines-default);
        box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.05);
    }

    .gatherings-event-sticky-actions > .mud-button-root {
        flex: 1 1 0;
        min-width: 0;
        margin: 0;
        min-height: 1.75rem !important;
        max-height: 1.85rem !important;
        height: 1.75rem !important;
        padding: 0 0.28rem !important;
        font-size: 0.5625rem !important;
        line-height: 1 !important;
        letter-spacing: 0.02em;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gatherings-event-sticky-actions > .mud-button-root .mud-button-label {
        font-size: inherit !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gatherings-event-sticky-actions > .mud-button-root .mud-button-icon-start {
        margin-inline-end: 0.12rem !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        font-size: 0.85rem !important;
    }

    .gatherings-event-page-with-sticky {
        padding-bottom: calc(3.5rem + 2.15rem + env(safe-area-inset-bottom, 0px));
    }

    .gatherings-event-page-with-sticky #attendees {
        scroll-margin-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 600px) {
    .gatherings-content-panel:not(:has(.gatherings-section-page)) {
        padding: 0.85rem !important;
        border-radius: 12px;
    }

    .gatherings-content-panel:has(.gatherings-section-page) {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .gatherings-page-container:has(.gatherings-section-page) {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    .gatherings-page-container.py-4 {
        padding-top: 0.5rem !important;
    }

    /* Phone dialogs: content-sized centered cards (scroll when tall, not empty fullscreen) */
    .mud-dialog-container {
        align-items: center !important;
        padding: 0.75rem !important;
    }

    .mud-dialog:not(.mud-dialog-fullscreen) {
        margin: auto !important;
        width: calc(100% - 1.5rem) !important;
        max-width: min(calc(100% - 1.5rem), 28rem) !important;
        max-height: min(85dvh, 40rem) !important;
        min-height: 0 !important;
        height: auto !important;
        border-radius: 12px !important;
        align-self: center;
    }

    .mud-dialog .mud-dialog-content {
        max-height: min(60dvh, 32rem);
        overflow-y: auto;
    }

    .mud-dialog-width-md:not(.mud-dialog-fullscreen),
    .mud-dialog-width-lg:not(.mud-dialog-fullscreen),
    .mud-dialog-width-xl:not(.mud-dialog-fullscreen),
    .mud-dialog-width-xxl:not(.mud-dialog-fullscreen) {
        max-width: min(calc(100% - 1.5rem), 40rem) !important;
        max-height: min(90dvh, 48rem) !important;
    }

    .mud-dialog-width-md .mud-dialog-content,
    .mud-dialog-width-lg .mud-dialog-content,
    .mud-dialog-width-xl .mud-dialog-content,
    .mud-dialog-width-xxl .mud-dialog-content {
        max-height: min(72dvh, 40rem) !important;
    }

    .mud-dialog-width-full:not(.mud-dialog-fullscreen) {
        width: calc(100% - 1rem) !important;
        max-width: calc(100% - 1rem) !important;
        max-height: min(92dvh, 100%) !important;
    }

    /* Tall forms (keyboard-heavy) — top-aligned sheet, still no forced empty height */
    .gatherings-mobile-form-dialog .mud-dialog:not(.mud-dialog-fullscreen),
    .mud-dialog.gatherings-mobile-form-dialog:not(.mud-dialog-fullscreen) {
        margin: 0.75rem auto !important;
        width: calc(100% - 1.5rem) !important;
        max-width: calc(100% - 1.5rem) !important;
        max-height: calc(100dvh - 1.5rem) !important;
        min-height: 0 !important;
        height: auto !important;
        align-self: flex-start;
        border-radius: 12px !important;
    }

    .gatherings-mobile-form-dialog .mud-dialog-content,
    .mud-dialog.gatherings-mobile-form-dialog .mud-dialog-content {
        max-height: none !important;
        overflow: visible;
    }

    .gatherings-create-dialog .mud-dialog:not(.mud-dialog-fullscreen),
    .mud-dialog.gatherings-create-dialog:not(.mud-dialog-fullscreen) {
        max-width: min(calc(100% - 1rem), 40rem) !important;
        max-height: min(92dvh, 48rem) !important;
    }

    .gatherings-create-dialog .mud-dialog-content,
    .mud-dialog.gatherings-create-dialog .mud-dialog-content {
        max-height: min(75dvh, 40rem) !important;
    }

    /* Legacy alias — same as default compact styling */
    .mud-dialog.gatherings-compact-dialog:not(.mud-dialog-fullscreen),
    .gatherings-compact-dialog .mud-dialog:not(.mud-dialog-fullscreen) {
        margin: auto !important;
        width: calc(100% - 1.5rem) !important;
        max-width: min(calc(100% - 1.5rem), 28rem) !important;
        max-height: min(85dvh, 40rem) !important;
        min-height: 0 !important;
        height: auto !important;
        border-radius: 12px !important;
        align-self: center;
    }

    .gatherings-compact-dialog .mud-dialog-content,
    .mud-dialog.gatherings-compact-dialog .mud-dialog-content {
        max-height: min(60dvh, 32rem) !important;
        overflow-y: auto;
    }

    /* Image lightbox stays compact on phones */
    .mud-dialog.gatherings-image-preview-dialog:not(.mud-dialog-fullscreen),
    .gatherings-image-preview-dialog .mud-dialog:not(.mud-dialog-fullscreen) {
        margin: auto !important;
        width: fit-content !important;
        max-width: min(94vw, 26rem) !important;
        max-height: none !important;
        min-height: 0 !important;
        height: auto !important;
        border-radius: 12px !important;
    }

    .gatherings-image-preview-dialog .mud-dialog-content {
        max-height: none !important;
        overflow: hidden !important;
    }
}

.gatherings-appbar-search {
    flex: 1 1 auto;
    max-width: 420px;
    min-width: 200px;
    margin-inline: 0.75rem 0.5rem;
}

.gatherings-appbar-refresh {
    margin-inline-end: 0.25rem;
}

.gatherings-appbar .gatherings-global-search {
    width: 100%;
}

/* Light mode: bright pill on purple app bar */
.gatherings-layout-light .gatherings-appbar .gatherings-global-search .mud-input-root,
.gatherings-layout-light .gatherings-appbar .gatherings-global-search .mud-input-slot {
    background: #ffffff !important;
    border-radius: 999px !important;
    border: 2px solid #ffffff !important;
    box-shadow:
        0 2px 10px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(15, 23, 42, 0.12) !important;
}

.gatherings-layout-light .gatherings-appbar .gatherings-global-search .mud-input-root:hover,
.gatherings-layout-light .gatherings-appbar .gatherings-global-search .mud-input-root.mud-input-root-outlined:focus-within {
    border-color: #ffffff !important;
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.28),
        0 0 0 3px rgba(255, 255, 255, 0.45) !important;
}

.gatherings-layout-light .gatherings-appbar .gatherings-global-search input,
.gatherings-layout-light .gatherings-appbar .gatherings-global-search .mud-input-root input,
.gatherings-layout-light .gatherings-appbar .gatherings-global-search .mud-input-slot input {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a !important;
    font-weight: 500;
}

.gatherings-layout-light .gatherings-appbar .gatherings-global-search input::placeholder,
.gatherings-layout-light .gatherings-appbar .gatherings-global-search .mud-input-root input::placeholder {
    color: #475569 !important;
    opacity: 1 !important;
}

.gatherings-layout-light .gatherings-appbar .gatherings-global-search .mud-input-adornment .mud-icon-root,
.gatherings-layout-light .gatherings-appbar .gatherings-global-search .mud-input-adornment .mud-icon-button {
    color: #334155 !important;
}

/* Dark mode: translucent field on app bar (matches chat search) */
.gatherings-layout-dark .gatherings-appbar .gatherings-global-search .mud-input-root,
.gatherings-layout-dark .gatherings-appbar .gatherings-global-search .mud-input-slot {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

.gatherings-layout-dark .gatherings-appbar .gatherings-global-search .mud-input-root:hover,
.gatherings-layout-dark .gatherings-appbar .gatherings-global-search .mud-input-root.mud-input-root-outlined:focus-within {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.28) !important;
}

.gatherings-layout-dark .gatherings-appbar .gatherings-global-search input,
.gatherings-layout-dark .gatherings-appbar .gatherings-global-search .mud-input-root input,
.gatherings-layout-dark .gatherings-appbar .gatherings-global-search .mud-input-slot input {
    color: rgba(255, 255, 255, 0.95) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
    caret-color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
}

.gatherings-layout-dark .gatherings-appbar .gatherings-global-search input::placeholder,
.gatherings-layout-dark .gatherings-appbar .gatherings-global-search .mud-input-root input::placeholder {
    color: rgba(255, 255, 255, 0.58) !important;
    opacity: 1 !important;
}

.gatherings-layout-dark .gatherings-appbar .gatherings-global-search .mud-input-adornment .mud-icon-root,
.gatherings-layout-dark .gatherings-appbar .gatherings-global-search .mud-input-adornment .mud-icon-button {
    color: rgba(255, 255, 255, 0.72) !important;
}

.gatherings-attendee-grid {
    display: grid;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

/* Guest | Status | Adult | Children | On my way | Check-in */
.gatherings-attendee-grid-guest {
    grid-template-columns:
        minmax(110px, 1.4fr)
        minmax(72px, 0.75fr)
        minmax(64px, 0.65fr)
        minmax(56px, 0.55fr)
        minmax(72px, 0.7fr)
        minmax(64px, 0.6fr);
}

/* + Role */
.gatherings-attendee-grid-host {
    grid-template-columns:
        minmax(110px, 1.4fr)
        minmax(72px, 0.75fr)
        minmax(64px, 0.65fr)
        minmax(56px, 0.55fr)
        minmax(72px, 0.7fr)
        minmax(64px, 0.6fr)
        minmax(96px, 0.85fr);
}

.gatherings-attendee-grid .gatherings-attendee-role-select {
    min-width: 0;
    max-width: 8.5rem;
}

.gatherings-attendee-grid .gatherings-attendee-role-select .mud-input-control {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.gatherings-attendee-grid .gatherings-attendee-role-select .mud-input-slot,
.gatherings-attendee-grid .gatherings-attendee-role-select .mud-input-root {
    min-height: 1.75rem !important;
    font-size: 0.8125rem;
}

.gatherings-attendee-grid .gatherings-attendee-role-select .mud-input-root.mud-input-outlined {
    padding-top: 0;
    padding-bottom: 0;
}

.gatherings-attendee-grid .gatherings-attendee-role-select .mud-select-input {
    padding: 0.15rem 0.35rem !important;
    min-height: 1.75rem;
    line-height: 1.25;
}

.gatherings-attendee-grid-header {
    padding: 0.35rem 0.75rem 0.55rem 3rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.72;
}

.gatherings-attendee-panels .gatherings-attendee-panel {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.gatherings-layout-dark .gatherings-attendee-panels .gatherings-attendee-panel {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.gatherings-attendee-panels .mud-expand-panel-header {
    padding-block: 0.35rem;
    padding-inline: 0.75rem;
    min-height: 0;
}

.gatherings-attendee-name {
    font-weight: 600;
}

.gatherings-attendee-details {
    padding: 0.25rem 0.75rem 0.85rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.gatherings-attendee-detail-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

@media (max-width: 960px) {
    .gatherings-attendee-details {
        padding-left: 0.75rem;
    }
}

/* Form inputs: keep typed text readable in both themes (main content + dialogs only) */
.gatherings-layout-dark .mud-main-content .mud-input-root input,
.gatherings-layout-dark .mud-main-content .mud-input-root textarea,
.gatherings-layout-dark .mud-dialog .mud-input-root input,
.gatherings-layout-dark .mud-dialog .mud-input-root textarea {
    color: var(--mud-palette-text-primary) !important;
    -webkit-text-fill-color: var(--mud-palette-text-primary) !important;
}

.gatherings-layout-dark .mud-main-content .mud-input-root input::placeholder,
.gatherings-layout-dark .mud-main-content .mud-input-root textarea::placeholder,
.gatherings-layout-dark .mud-dialog .mud-input-root input::placeholder,
.gatherings-layout-dark .mud-dialog .mud-input-root textarea::placeholder {
    color: var(--mud-palette-text-secondary) !important;
    opacity: 1 !important;
}

.gatherings-layout-light .mud-main-content .mud-input-root input,
.gatherings-layout-light .mud-main-content .mud-input-root textarea,
.gatherings-layout-light .mud-dialog .mud-input-root input,
.gatherings-layout-light .mud-dialog .mud-input-root textarea {
    color: var(--mud-palette-text-primary) !important;
    -webkit-text-fill-color: var(--mud-palette-text-primary) !important;
}

.gatherings-layout-dark .gatherings-appbar .gatherings-appbar-title,
.gatherings-layout-dark .gatherings-appbar .gatherings-appbar-title-btn,
.gatherings-layout-dark .gatherings-appbar .mud-icon-button,
.gatherings-layout-dark .gatherings-appbar .gatherings-profile-menu {
    color: #ffffff !important;
}

.gatherings-layout-light .gatherings-appbar .gatherings-appbar-title,
.gatherings-layout-light .gatherings-appbar .gatherings-appbar-title-btn,
.gatherings-layout-light .gatherings-appbar .mud-icon-button,
.gatherings-layout-light .gatherings-appbar .gatherings-profile-menu {
    color: #0f172a !important;
}

.gatherings-offline-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    background: #fef3c7;
    color: #92400e;
    border-bottom: 1px solid #fcd34d;
    font-weight: 600;
    font-size: 0.875rem;
    position: sticky;
    top: var(--mud-appbar-height, 64px);
    z-index: 1100;
}

.gatherings-layout-dark .gatherings-offline-banner {
    background: #422006;
    color: #fde68a;
    border-bottom-color: #92400e;
}

.gatherings-search-item {
    padding: 0.15rem 0;
}

.gatherings-bring-avatar {
    display: inline-flex;
    vertical-align: middle;
}

.gatherings-chat-list-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f44336;
    flex-shrink: 0;
    margin-top: 0.45rem;
}

.gatherings-content-panel-chat {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
}

.gatherings-layout-dark .gatherings-content-panel-chat {
    background: rgba(24, 24, 24, 0.98);
}

.gatherings-app-drawer.mud-drawer-mini .mud-nav-link {
    justify-content: center;
}

.gatherings-location-picker {
    width: 100%;
}

.gatherings-location-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.gatherings-location-field {
    position: relative;
    flex: 1 1 14rem;
    min-width: min(100%, 16rem);
}

.gatherings-location-picker-field {
    width: 100%;
}

.gatherings-location-field-geo .mud-input-adornment-start .mud-button-root,
.gatherings-location-field-geo .mud-input-adornment-start .mud-icon-button {
    color: var(--g-primary, var(--mud-palette-primary));
}

.gatherings-location-field-geo .mud-input-adornment-start {
    margin-inline-end: 0.15rem;
}

.gatherings-location-map-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.gatherings-location-helper {
    margin-top: -0.35rem;
}

@media (max-width: 600px) {
    .gatherings-location-map-btn {
        width: 100%;
    }
}

.gatherings-location-map {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.gatherings-location-map .leaflet-container {
    width: 100%;
    height: 100%;
    font: inherit;
}

.gatherings-location-map .leaflet-marker-icon,
.gatherings-location-map .leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
}

.gatherings-location-pin {
    background: transparent !important;
    border: none !important;
    width: 28px !important;
    height: 40px !important;
}

.gatherings-location-pin-svg {
    display: block;
    width: 28px;
    height: 40px;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.35));
    pointer-events: none;
}

.gatherings-layout-light .gatherings-location-map {
    border-color: rgba(15, 23, 42, 0.12);
}

.gatherings-location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.gatherings-landing {
    margin: -0.5rem -0.5rem 0;
}

.gatherings-landing-hero {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1.25rem 1.5rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(38, 166, 154, 0.18), transparent 55%),
        linear-gradient(165deg, #f7f3ec 0%, #e8f2ef 45%, #f0ebe3 100%);
    overflow: hidden;
    animation: gatherings-landing-fade 0.7s ease-out;
}

.gatherings-landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(45, 90, 78, 0.06) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
}

.gatherings-layout-dark .gatherings-landing-hero {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(38, 166, 154, 0.22), transparent 55%),
        linear-gradient(165deg, #1a2220 0%, #121816 50%, #1c1a17 100%);
}

.gatherings-landing-brand {
    display: inline-flex;
    margin-bottom: 0.55rem;
    position: relative;
    animation: gatherings-landing-rise 0.8s ease-out;
}

.gatherings-landing-headline {
    max-width: 28rem;
    font-weight: 500;
    position: relative;
    animation: gatherings-landing-rise 0.9s ease-out;
}

.gatherings-landing-lead {
    max-width: 38rem;
    margin: 0.65rem auto 0;
    opacity: 0.92;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.55;
    animation: gatherings-landing-rise 1s ease-out;
}

.gatherings-landing-cta {
    position: relative;
    animation: gatherings-landing-rise 1.1s ease-out;
}

.gatherings-landing-below {
    padding: 2rem 1rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.gatherings-landing-feature {
    height: 100%;
}

.gatherings-landing-steps {
    padding: 0.5rem 0 0.5rem;
}

.gatherings-step-num {
    color: var(--mud-palette-primary);
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Shared info tiles (landing, home, auth) */
.gatherings-info-tile {
    height: 100%;
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.72);
    box-sizing: border-box;
}

.gatherings-layout-dark .gatherings-info-tile {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.gatherings-info-tile-compact {
    padding: 1rem 1.1rem;
}

.gatherings-info-tile-icon {
    color: var(--mud-palette-primary);
    margin-bottom: 0.4rem;
    font-size: 1.5rem !important;
}

.gatherings-content-panel .gatherings-info-tile.mud-paper {
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, transparent);
}

.gatherings-layout-dark .gatherings-content-panel .gatherings-info-tile.mud-paper {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.18);
}

.gatherings-layout-dark .gatherings-info-tile .mud-text-secondary,
.gatherings-layout-dark .gatherings-landing-feature .mud-text-secondary,
.gatherings-layout-dark .gatherings-auth-brand .mud-text-secondary {
    color: rgba(255, 255, 255, 0.78) !important;
}

@keyframes gatherings-landing-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gatherings-landing-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.gatherings-onboarding {
    display: flex;
    justify-content: center;
    padding: 1rem 0 2rem;
}

.gatherings-onboarding-card {
    width: 100%;
    max-width: 560px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(247,243,236,0.9));
}

.gatherings-layout-dark .gatherings-onboarding-card {
    background: rgba(24, 24, 24, 0.95);
}

.gatherings-home-welcome {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(38, 166, 154, 0.1));
    border-left: 4px solid #0f766e;
    border-radius: 12px;
}

.gatherings-home-welcome-main {
    min-width: min(100%, 18rem);
    flex: 1 1 16rem;
}

.gatherings-home-welcome-actions {
    flex: 0 1 auto;
}

.gatherings-home-next-event {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--mud-palette-surface) 72%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 22%, var(--mud-palette-lines-default));
    max-width: 32rem;
}

.gatherings-home-next-label {
    letter-spacing: 0.04em;
    font-size: 0.7rem !important;
}

.gatherings-home-next-title {
    font-weight: 600;
}

.gatherings-home-stat-chips {
    gap: 0.5rem;
}

.gatherings-home-stat-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-text-primary);
    font-size: 0.85rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.gatherings-home-stat-chip:hover {
    background: color-mix(in srgb, var(--mud-palette-primary) 20%, transparent);
    color: var(--mud-palette-primary);
}

.gatherings-home-stat-chip strong {
    font-size: 1rem;
    color: var(--mud-palette-primary);
}

.gatherings-home-stat {
    text-align: center;
    padding: 0.5rem;
}

.gatherings-home-stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: #0f766e;
}

.gatherings-layout-dark .gatherings-home-stat-value {
    color: #5eead4;
}

.gatherings-home-attention {
    border: 1px solid color-mix(in srgb, var(--mud-palette-warning) 55%, var(--mud-palette-lines-default));
    border-left: 3px solid var(--mud-palette-warning);
    border-radius: 8px;
    background: color-mix(in srgb, var(--mud-palette-warning) 6%, transparent);
    height: 100%;
}

.gatherings-collapsible-header {
    cursor: pointer;
    user-select: none;
}

.gatherings-home-attention-clip {
    /* Only used when more items than the preview limit — leave room for multi-line rows */
    max-height: 16.5rem;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

.gatherings-home-attention .gatherings-home-attention-list > .mud-stack-row {
    align-items: flex-start;
}

.gatherings-home-attention .gatherings-home-attention-list > .mud-stack-row > .mud-icon-root {
    margin-top: 0.2rem;
}

.gatherings-home-commitments {
    height: auto;
    align-self: start;
}

.gatherings-home-stat-inline {
    opacity: 0.85;
}

.gatherings-home-activity {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.gatherings-home-activity-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.15rem;
    color: inherit;
    min-width: 0;
}

.gatherings-home-activity-row:hover .gatherings-home-activity-title {
    color: var(--mud-palette-primary);
}

.gatherings-home-activity-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.gatherings-home-activity-text {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.gatherings-home-activity-title {
    font-size: 0.975rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;
}

.gatherings-home-activity-sub {
    font-size: 0.85rem;
    opacity: 0.78;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

@media (max-width: 600px) {
    .gatherings-home-activity-text {
        flex-direction: column;
        gap: 0.05rem;
        align-items: flex-start;
    }

    .gatherings-home-activity-title {
        max-width: 100%;
    }
}

/* Auth pages */
.gatherings-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 440px);
    gap: 2.5rem;
    align-items: center;
    min-height: calc(100vh - var(--mud-appbar-height, 64px) - 3rem);
    padding: 1.25rem 0 2rem;
}

.gatherings-auth-brand {
    padding: 0.5rem 1rem 0.5rem 0;
}

.gatherings-auth-brand-lockup {
    margin-bottom: 0.85rem;
}

.gatherings-auth-brand-lead {
    max-width: 36rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.55;
}

.gatherings-auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.gatherings-auth-feature-span {
    grid-column: 1 / -1;
}

.gatherings-auth-aside {
    max-width: 36rem;
}

.gatherings-auth-privacy {
    opacity: 0.88;
}

.gatherings-auth-brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.gatherings-auth-brand-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.gatherings-auth-brand-list .mud-icon-root {
    color: #0f766e;
}

.gatherings-layout-dark .gatherings-auth-brand-list .mud-icon-root {
    color: #5eead4;
}

.gatherings-auth-form {
    border-radius: 16px !important;
    width: 100%;
}

@media (max-width: 960px) {
    .gatherings-auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 1.5rem;
        align-items: stretch;
        padding-top: 0.5rem;
    }

    .gatherings-auth-form {
        order: -1;
        grid-row: 1;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    .gatherings-auth-brand {
        grid-row: 2;
        padding: 0;
    }

    .gatherings-auth-brand-lockup {
        display: none;
    }

    .gatherings-auth-feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .gatherings-auth-feature-grid {
        grid-template-columns: 1fr;
    }
}

.gatherings-chat-shell {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

.gatherings-chat-master {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    min-height: 0;
    flex: 1 1 auto;
    background: rgba(250, 250, 250, 0.85);
}

.gatherings-layout-dark .gatherings-chat-master {
    border-right-color: rgba(255, 255, 255, 0.08);
    background: rgba(20, 20, 20, 0.92);
}

.gatherings-chat-master-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.75rem 0.35rem 1rem;
    flex: 0 0 auto;
}

.gatherings-chat-master-search {
    flex: 0 0 auto;
    margin: 0 0.75rem 0.5rem;
}

.gatherings-chat-master-search .gatherings-chat-list-search,
.gatherings-chat-master-search .mud-autocomplete {
    flex: 0 0 auto !important;
    width: 100%;
}

.gatherings-chat-list-search {
    margin: 0;
}

.gatherings-layout-dark .gatherings-chat-list-search .mud-input-root,
.gatherings-layout-dark .gatherings-chat-list-search .mud-input-slot,
.gatherings-layout-dark .gatherings-chat-history-search .mud-input-root,
.gatherings-layout-dark .gatherings-chat-history-search .mud-input-slot {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 8px !important;
}

.gatherings-layout-dark .gatherings-chat-list-search .mud-input-root:hover,
.gatherings-layout-dark .gatherings-chat-list-search .mud-input-root.mud-input-root-outlined:focus-within,
.gatherings-layout-dark .gatherings-chat-history-search .mud-input-root:hover,
.gatherings-layout-dark .gatherings-chat-history-search .mud-input-root.mud-input-root-outlined:focus-within {
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.25) !important;
}

.gatherings-layout-dark .gatherings-chat-list-search .mud-input-root input,
.gatherings-layout-dark .gatherings-chat-history-search .mud-input-root input {
    color: rgba(255, 255, 255, 0.92) !important;
}

.gatherings-layout-dark .gatherings-chat-list-search .mud-input-root input::placeholder,
.gatherings-layout-dark .gatherings-chat-history-search .mud-input-root input::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
    opacity: 1 !important;
}

.gatherings-layout-dark .gatherings-chat-list-search .mud-input-adornment .mud-icon-root,
.gatherings-layout-dark .gatherings-chat-history-search .mud-input-adornment .mud-icon-root {
    color: rgba(255, 255, 255, 0.65) !important;
}

.gatherings-chat-master-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    align-content: flex-start;
}

.gatherings-chat-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.55rem 0.85rem;
    cursor: pointer;
}

.gatherings-chat-list-item:hover {
    background: rgba(15, 118, 110, 0.08);
}

.gatherings-chat-list-item-active {
    background: rgba(15, 118, 110, 0.14);
    border-left: 3px solid #512BD4;
}

.gatherings-chat-list-body {
    min-width: 0;
    flex: 1;
}

.gatherings-chat-list-time {
    flex-shrink: 0;
    white-space: nowrap;
}

.gatherings-chat-list-body .mud-typography-subtitle2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.gatherings-chat-list-preview {
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gatherings-chat-detail-pane {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.gatherings-chat-detail {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.gatherings-chat-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    height: 100%;
    padding: 1.5rem;
    text-align: center;
    max-width: 28rem;
    margin-inline: auto;
}

.gatherings-chat-detail-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    flex-wrap: wrap;
    min-width: 0;
}

.gatherings-chat-title {
    min-width: 0;
    flex: 0 1 auto;
    font-weight: 600;
}

.gatherings-chat-header-spacer {
    flex: 1 1 auto;
    min-width: 0;
}

.gatherings-chat-history-search {
    flex: 1 1 160px;
    min-width: 120px;
    max-width: 280px;
    margin-left: auto;
}

.gatherings-layout-dark .gatherings-chat-detail-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.gatherings-chat-history {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem;
}

.gatherings-chat-history-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.gatherings-chat-unread-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0 1rem;
    color: var(--g-primary, var(--mud-palette-primary));
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.gatherings-chat-unread-divider::before,
.gatherings-chat-unread-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: color-mix(in srgb, var(--g-primary, var(--mud-palette-primary)) 45%, transparent);
}

.gatherings-chat-new-messages-chip {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    z-index: 2;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    background: var(--g-primary, var(--mud-palette-primary));
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}

.gatherings-chat-new-messages-chip:hover {
    filter: brightness(1.05);
}

.gatherings-chat-pinned-bar {
    flex-shrink: 0;
}

.gatherings-chat-pinned-item {
    justify-content: flex-start;
    text-transform: none;
    max-width: 100%;
}

.gatherings-chat-media-panel {
    flex-shrink: 0;
    max-height: min(42vh, 28rem);
    overflow: auto;
}

.gatherings-chat-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    gap: 0.5rem;
}

.gatherings-chat-media-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: start;
    border-radius: 10px;
    overflow: hidden;
}

.gatherings-chat-media-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    background: color-mix(in srgb, var(--mud-palette-text-secondary) 12%, transparent);
}

.gatherings-chat-media-item:hover img,
.gatherings-chat-media-item:focus-visible img {
    outline: 2px solid var(--g-primary, var(--mud-palette-primary));
    outline-offset: 1px;
}

.gatherings-chat-media-meta {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
    padding: 0 0.1rem;
}

.gatherings-chat-media-sender {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gatherings-chat-media-time {
    font-size: 0.62rem;
    color: var(--mud-palette-text-secondary);
}

.gatherings-chat-composer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

.gatherings-chat-drop-zone {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.gatherings-chat-composer-drag {
    outline: 2px dashed var(--g-primary, var(--mud-palette-primary));
    outline-offset: -2px;
    background: color-mix(in srgb, var(--g-primary, var(--mud-palette-primary)) 8%, transparent);
}

.gatherings-chat-composer-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
    width: 100%;
}

.gatherings-chat-attach-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.gatherings-chat-attach-btn.mud-icon-button {
    flex-shrink: 0;
}

.gatherings-chat-attach-preview {
    border-radius: 0.5rem;
}

.gatherings-chat-attach-pending-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

.gatherings-chat-attach-pending-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
    max-width: 88px;
}

.gatherings-chat-attach-pending-label {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.gatherings-chat-attach-pending-remove.mud-icon-button {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    padding: 0;
    background: var(--mud-palette-background);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.gatherings-chat-attach-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.gatherings-chat-attach-thumb-video {
    object-fit: cover;
    background: rgba(0, 0, 0, 0.2);
}

.gatherings-chat-attachment-video,
.gatherings-chat-video-attachment video {
    display: block;
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    border-radius: 8px;
    background: #000;
}

.gatherings-chat-media-thumb-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.gatherings-chat-media-file-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 72px;
    background: rgba(var(--mud-palette-action-default-hover), 0.35);
    color: var(--mud-palette-text-secondary);
}

.gatherings-chat-file-attachment {
    margin-bottom: 0.35rem;
    max-width: 100%;
}

.gatherings-chat-file-attachment-inner {
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    background: rgba(var(--mud-palette-action-default-hover), 0.35);
    min-width: min(100%, 16rem);
}

.gatherings-chat-file-attachment-label {
    font-weight: 500;
}

.gatherings-chat-attach-file-icon {
    flex-shrink: 0;
    opacity: 0.85;
}

.gatherings-chat-attachment {
    margin-bottom: 0.35rem;
    max-width: 100%;
}

.gatherings-chat-attachment-img,
.gatherings-clickable-image img {
    display: block;
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    contain: layout style paint;
}

.gatherings-gif-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.5rem;
    max-height: min(50vh, 22rem);
    overflow-y: auto;
    padding: 0.15rem;
}

.gatherings-gif-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    min-width: 0;
}

.gatherings-gif-picker-item:hover:not(:disabled) {
    border-color: rgba(15, 118, 110, 0.45);
    background: rgba(15, 118, 110, 0.06);
}

.gatherings-gif-picker-item:disabled {
    opacity: 0.55;
    cursor: default;
}

.gatherings-gif-picker-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.gatherings-gif-picker-label {
    font-size: 0.7rem;
    line-height: 1.1;
    text-align: center;
    opacity: 0.8;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gatherings-layout-dark .gatherings-gif-picker-item {
    border-color: rgba(255, 255, 255, 0.12);
}

.gatherings-layout-dark .gatherings-gif-picker-item:hover:not(:disabled) {
    border-color: rgba(45, 212, 191, 0.45);
    background: rgba(45, 212, 191, 0.08);
}

.gatherings-chat-composer-row .mud-input-control,
.gatherings-chat-composer-field,
.gatherings-chat-composer-field-wrap {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.gatherings-chat-composer-field-wrap .mud-input-control {
    width: 100%;
}

.gatherings-layout-dark .gatherings-chat-composer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 960px) {
    .gatherings-chat-shell {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
    }

    .gatherings-chat-shell-detail .gatherings-chat-master {
        display: none;
    }

    .gatherings-chat-shell:not(.gatherings-chat-shell-detail) .gatherings-chat-detail-pane {
        display: none;
    }

    .gatherings-chat-shell-detail .gatherings-chat-detail-pane {
        flex: 1 1 auto;
        min-height: 0;
    }

    .gatherings-content-panel.gatherings-content-panel-chat {
        padding: 0 !important;
        border-radius: 0;
    }

    .gatherings-chat-history-search {
        max-width: 140px;
    }
}

.gatherings-content-panel {
    background: var(--g-surface);
    border-radius: var(--g-panel-radius);
    padding: 1.5rem;
    box-shadow: var(--g-panel-shadow);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.gatherings-layout-dark .gatherings-content-panel {
    background: var(--g-surface-dark);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.06);
}

.gatherings-create-dialog .mud-dialog-content,
.gatherings-create-panels .mud-expand-panel-content {
    padding-top: 0.75rem;
}

.gatherings-create-panels .mud-expand-panel {
    border-radius: 10px;
    margin-bottom: 0.35rem;
}

.gatherings-appbar-title {
    letter-spacing: -0.01em;
    font-weight: 650;
}

.gatherings-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    line-height: 1.1;
    color: inherit;
    text-align: start;
}

.gatherings-brand-mark {
    display: block;
    flex-shrink: 0;
}

.gatherings-brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
}

.gatherings-brand-name {
    font-family: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.gatherings-brand-byline {
    font-family: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 0.62em;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.55;
}

.gatherings-brand-lockup-appbar .gatherings-brand-name {
    font-size: 1.15rem;
}

.gatherings-brand-lockup-appbar .gatherings-brand-byline {
    font-size: 0.72rem;
}

.gatherings-brand-lockup-drawer .gatherings-brand-name {
    font-size: 1.05rem;
}

.gatherings-brand-lockup-drawer .gatherings-brand-byline {
    font-size: 0.68rem;
}

.gatherings-brand-lockup-auth .gatherings-brand-name {
    font-size: 2.15rem;
}

.gatherings-brand-lockup-auth .gatherings-brand-byline {
    font-size: 1rem;
}

.gatherings-brand-lockup-hero {
    flex-direction: column;
    gap: 0.65rem;
}

.gatherings-brand-lockup-hero .gatherings-brand-wordmark {
    justify-content: center;
    gap: 0.45rem;
}

.gatherings-brand-lockup-hero .gatherings-brand-name {
    font-size: clamp(2rem, 5vw, 2.75rem);
}

.gatherings-brand-lockup-hero .gatherings-brand-byline {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
}

/* One step larger than Mud Small — filters, status chips, drink gaps */
.gatherings-readable-chips .mud-chip {
    font-size: 0.875rem;
    min-height: 2rem;
    height: auto;
    padding-block: 0.2rem;
}

.gatherings-filter-chips .mud-chip.mud-chip-outlined:hover,
.gatherings-filter-chips .mud-chip.mud-chip-outlined:focus-visible {
    background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
}

.around-now-refresh-bar {
    height: 2px;
}

.around-now-header {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
}

.around-now-title {
    flex: 0 0 auto;
}

.around-now-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex: 0 1 auto;
    min-width: 0;
}

.around-now-radius-select {
    flex: 0 0 8.5rem;
    width: 8.5rem;
}

.around-now-search {
    flex: 0 0 14rem;
    width: 14rem;
    min-width: 8rem;
}

.around-now-refresh-btn {
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .around-now-header {
        flex-direction: column;
        align-items: stretch;
    }

    .around-now-toolbar {
        flex-wrap: wrap;
        margin-left: 0;
        width: 100%;
    }

    .around-now-search {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        min-width: 0;
    }
}

.around-now-place {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.around-now-maps-link {
    display: inline-block;
    margin-top: 0.15rem;
}

.around-now-reactors {
    display: block;
    margin-top: 0.85rem;
}

.gatherings-filter-chips .mud-chip.mud-chip-filled:hover,
.gatherings-filter-chips .mud-chip.mud-chip-filled:focus-visible {
    filter: brightness(1.05);
}

.gatherings-events-kind-filter {
    min-width: min(100%, 11rem);
    max-width: 14rem;
    margin-inline-start: 0.15rem;
}

.gatherings-appbar-title-btn {
    text-transform: none;
    min-width: 0;
    padding-inline: 0.35rem !important;
    justify-content: flex-start;
}

.gatherings-appbar-title-btn:hover .gatherings-appbar-title,
.gatherings-appbar-title-btn:focus-visible .gatherings-appbar-title {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

/* Guest auth actions: keep Login/Register readable on narrow locales */
.gatherings-appbar-auth {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
    gap: 0.1rem;
}

.gatherings-appbar-auth-links {
    display: flex;
    align-items: center;
    min-width: 0;
}

.gatherings-appbar-auth-link {
    min-width: 0 !important;
    padding-inline: 0.55rem !important;
    text-transform: none;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
}

.gatherings-appbar-auth-menu {
    display: none !important;
}

@media (max-width: 720px) {
    .gatherings-appbar-auth-links {
        display: none !important;
    }

    .gatherings-appbar-auth-menu {
        display: inline-flex !important;
    }
}

/* Language button on purple app bar */
.gatherings-layout .mud-appbar .culture-select-btn {
    background-color: #ffffff !important;
    color: #1e1e1e !important;
    text-transform: none;
    font-weight: 500;
    min-width: 120px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.gatherings-layout .mud-appbar .culture-select-btn .mud-icon-root {
    color: #424242 !important;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

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

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.children-page {
    width: 100%;
}

.children-table .children-actions-header,
.children-table .children-actions-cell {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.children-notes {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.gatherings-profile-menu {
    text-transform: none;
    font-weight: 500;
}

.gatherings-emoji-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
}

.gatherings-emoji-btn {
    font-size: 1.25rem;
    min-width: 36px;
}

.gatherings-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    min-width: 280px;
}

.gatherings-notification-bell-wrap {
    position: relative;
    display: inline-flex;
}

.gatherings-notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f44336;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.95);
    pointer-events: none;
}

.gatherings-notification-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f44336;
    margin-top: 0.45rem;
    flex-shrink: 0;
}

.gatherings-notification-unread {
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.16), rgba(13, 148, 136, 0.06));
    border-left: 3px solid #7e57c2;
}

.gatherings-notification-unread .gatherings-notification-title {
    font-weight: 700;
    color: #311b92;
}

.gatherings-notification-read {
    background: transparent;
    opacity: 0.72;
}

.gatherings-notification-read .gatherings-notification-title {
    font-weight: 400;
    color: inherit;
}

.gatherings-layout-dark .gatherings-notification-unread .gatherings-notification-title {
    color: #ede7f6;
}

.gatherings-chat-list-avatar-fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 118, 110, 0.15);
    color: #0f766e;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.gatherings-chat-list-avatar-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gatherings-emoji-picker-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    max-width: 180px;
}

.gatherings-notification-body {
    flex: 1;
    min-width: 0;
}

.gatherings-notification-time {
    flex-shrink: 0;
    white-space: nowrap;
    opacity: 0.75;
    margin-left: auto;
}

.gatherings-layout-dark .gatherings-notification-unread {
    background: linear-gradient(90deg, rgba(94, 234, 212, 0.22), rgba(15, 118, 110, 0.12));
    border-left-color: #5eead4;
}

.gatherings-chat-row {
    display: flex;
    margin-bottom: 0.75rem;
    max-width: 100%;
    min-width: 0;
}

.gatherings-chat-row-mine {
    justify-content: flex-end;
}

.gatherings-chat-row-theirs {
    justify-content: flex-start;
    align-items: flex-end;
    gap: 0.5rem;
}

.gatherings-chat-avatar {
    flex-shrink: 0;
}

.gatherings-chat-bubble {
    max-width: min(75%, 420px);
    min-width: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.gatherings-chat-message-text {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
}

.gatherings-chat-message-link {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.gatherings-chat-reply-quote {
    border-left: 3px solid rgba(0, 0, 0, 0.2);
    padding-left: 0.5rem;
    margin-bottom: 0.35rem;
    opacity: 0.9;
}

.gatherings-layout-dark .gatherings-chat-reply-quote {
    border-left-color: rgba(255, 255, 255, 0.28);
}

.gatherings-chat-reply-quote-name {
    font-weight: 600;
}

.gatherings-chat-reply-quote-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.gatherings-chat-reply-bar {
    border-radius: 0.5rem;
}

.gatherings-chat-msg-action {
    opacity: 0.55;
}

.gatherings-chat-msg-action:hover {
    opacity: 1;
}

.gatherings-chat-reactions .mud-chip,
.gatherings-chat-reaction-chip.mud-chip {
    height: 1.5rem;
    font-size: 0.75rem;
    margin: 0;
}

.gatherings-chat-reaction-menu {
    max-width: min(92vw, 15rem) !important;
}

.gatherings-chat-reaction-picker {
    display: grid;
    grid-template-columns: repeat(6, minmax(2rem, 1fr));
    gap: 0.1rem;
    padding: 0.25rem;
    width: min(92vw, 15rem);
    max-width: 100%;
    box-sizing: border-box;
}

.gatherings-chat-reaction-picker-btn {
    min-width: 2rem !important;
    padding: 0.2rem !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
}

.gatherings-chat-gif-attachment {
    position: relative;
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    cursor: pointer;
}

.gatherings-chat-gif-paused {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 8px;
}

.gatherings-layout-dark .gatherings-chat-gif-paused {
    background: rgba(255, 255, 255, 0.08);
}

.gatherings-chat-gif-attachment .gatherings-chat-attachment-img,
.gatherings-chat-gif-attachment img {
    display: block;
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
}

.gatherings-chat-gif-toggle {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    background: rgba(0, 0, 0, 0.55) !important;
    color: #fff !important;
    opacity: 0.85;
    pointer-events: auto;
    z-index: 1;
}

.gatherings-chat-gif-toggle:hover {
    opacity: 1;
}

.gatherings-chat-bubble-mine {
    background: rgba(15, 118, 110, 0.18);
    border-bottom-right-radius: 4px;
}

.gatherings-chat-bubble-theirs {
    background: rgba(0, 0, 0, 0.06);
    border-bottom-left-radius: 4px;
}

.gatherings-layout-dark .gatherings-chat-bubble-theirs {
    background: rgba(255, 255, 255, 0.08);
}

.gatherings-chat-bubble-mentioned {
    outline: 2px solid rgba(255, 193, 7, 0.85);
    outline-offset: 1px;
}

.gatherings-layout-dark .gatherings-chat-bubble-mentioned {
    outline-color: rgba(255, 213, 79, 0.9);
}

.gatherings-chat-row-announcement {
    justify-content: center;
}

.gatherings-chat-bubble-announcement {
    max-width: min(90%, 520px);
    width: 100%;
    background: rgba(15, 118, 110, 0.1);
    border: 1px solid rgba(15, 118, 110, 0.28);
    border-radius: 12px;
    text-align: center;
}

.gatherings-layout-dark .gatherings-chat-bubble-announcement {
    background: rgba(45, 212, 191, 0.12);
    border-color: rgba(45, 212, 191, 0.35);
}

.gatherings-chat-announcement-label {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 0.15rem;
}

.gatherings-chat-deleted {
    font-style: italic;
    opacity: 0.75;
}

.gatherings-chat-mention-menu {
    max-height: 180px;
    overflow: auto;
}

.gatherings-chat-sender {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.gatherings-chat-time {
    opacity: 0.7;
    margin-top: 0;
    flex: 0 0 auto;
    white-space: nowrap;
}

.gatherings-chat-bubble-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.1rem;
    margin-top: 0.35rem;
    min-width: 0;
}

.gatherings-chat-bubble-meta .gatherings-chat-msg-action {
    flex: 0 0 auto;
    margin: 0;
}

.gatherings-chat-bubble-meta .mud-icon-button {
    padding: 4px;
}

.gatherings-chat-bubble-mine .gatherings-chat-bubble-meta {
    justify-content: flex-end;
}

.gatherings-emoji-picker {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
    min-width: 220px;
}

.gatherings-child-diet-card {
    height: 100%;
}

.gatherings-child-diet-section {
    font-size: 0.92rem;
}

.gatherings-child-diet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.gatherings-child-diet-tag {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    background: rgba(15, 118, 110, 0.12);
}

.gatherings-child-diet-tag-error { background: rgba(244, 67, 54, 0.15); }
.gatherings-child-diet-tag-primary { background: rgba(15, 118, 110, 0.15); }
.gatherings-child-diet-tag-info { background: rgba(3, 169, 244, 0.15); }
.gatherings-child-diet-tag-success { background: rgba(76, 175, 80, 0.15); }
.gatherings-child-diet-tag-secondary { background: rgba(156, 39, 176, 0.15); }
.gatherings-child-diet-tag-warning { background: rgba(255, 152, 0, 0.15); }

/* -------------------------------------------------------------------------- */
/* Theme contrast — light & dark (custom surfaces beyond MudBlazor defaults)  */
/* -------------------------------------------------------------------------- */

/* Light: chat search & composer on pale panels */
.gatherings-layout-light .gatherings-chat-list-search .mud-input-root,
.gatherings-layout-light .gatherings-chat-list-search .mud-input-slot,
.gatherings-layout-light .gatherings-chat-history-search .mud-input-root,
.gatherings-layout-light .gatherings-chat-history-search .mud-input-slot {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.2) !important;
    border-radius: 8px !important;
}

.gatherings-layout-light .gatherings-chat-composer .mud-input-root {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.gatherings-layout-light .gatherings-chat-composer .mud-input-slot,
.gatherings-layout-dark .gatherings-chat-composer .mud-input-slot {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.gatherings-layout-dark .gatherings-chat-composer .mud-input-root {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.gatherings-layout-light .gatherings-chat-composer .mud-input-root:hover,
.gatherings-layout-light .gatherings-chat-composer .mud-input-root.mud-input-root-outlined:focus-within,
.gatherings-layout-dark .gatherings-chat-composer .mud-input-root:hover,
.gatherings-layout-dark .gatherings-chat-composer .mud-input-root.mud-input-root-outlined:focus-within {
    border: none !important;
    box-shadow: none !important;
}

.gatherings-layout-light .gatherings-chat-composer .mud-input-outlined-border {
    border-color: rgba(15, 23, 42, 0.2) !important;
}

.gatherings-layout-light .gatherings-chat-composer .mud-input-root.mud-input-root-outlined:focus-within .mud-input-outlined-border {
    border-color: rgba(15, 118, 110, 0.5) !important;
}

.gatherings-layout-dark .gatherings-chat-composer .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, 0.28) !important;
}

.gatherings-layout-dark .gatherings-chat-composer .mud-input-root.mud-input-root-outlined:focus-within .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, 0.45) !important;
}

.gatherings-layout-light .gatherings-chat-list-search .mud-input-root:hover,
.gatherings-layout-light .gatherings-chat-list-search .mud-input-root.mud-input-root-outlined:focus-within,
.gatherings-layout-light .gatherings-chat-history-search .mud-input-root:hover,
.gatherings-layout-light .gatherings-chat-history-search .mud-input-root.mud-input-root-outlined:focus-within {
    border-color: rgba(15, 118, 110, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.14) !important;
}

.gatherings-layout-light .gatherings-chat-list-search .mud-input-root input,
.gatherings-layout-light .gatherings-chat-history-search .mud-input-root input,
.gatherings-layout-light .gatherings-chat-composer .mud-input-root input,
.gatherings-layout-light .gatherings-chat-composer .mud-input-root textarea {
    color: #0f172a !important;
}

.gatherings-layout-light .gatherings-chat-list-search .mud-input-root input::placeholder,
.gatherings-layout-light .gatherings-chat-history-search .mud-input-root input::placeholder,
.gatherings-layout-light .gatherings-chat-composer .mud-input-root input::placeholder,
.gatherings-layout-light .gatherings-chat-composer .mud-input-root textarea::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

/* Chat composer: one outlined pill, text vertically centered */
.gatherings-chat-composer-field.mud-input-control {
    margin-top: 0;
    margin-bottom: 0;
}

.gatherings-chat-composer-field .mud-input-root.mud-input-root-outlined {
    min-height: 2.75rem;
}

.gatherings-chat-composer-field .mud-input-root.mud-input-root-outlined .mud-input-outlined-border {
    border-radius: 1.25rem;
}

.gatherings-chat-composer-field .mud-input-control-input-container {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.gatherings-chat-composer-field textarea.mud-input-slot {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    padding: 0.625rem 0.875rem !important;
    margin: 0 !important;
    min-height: 2.75rem;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    line-height: 1.25rem !important;
    font-size: 1rem;
    resize: none;
    overflow: hidden;
}

.gatherings-layout-dark .gatherings-chat-composer .mud-input-root textarea::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
    opacity: 1 !important;
}

.around-now-compose-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
    width: 100%;
}

.around-now-duration-field {
    flex: 0 1 25%;
    min-width: 5.5rem;
    max-width: 7.5rem;
}

.around-now-compose-photo {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.around-now-duration-hint {
    display: block;
    margin-top: -0.15rem;
}

.gatherings-layout-light .gatherings-chat-list-search .mud-input-adornment .mud-icon-root,
.gatherings-layout-light .gatherings-chat-history-search .mud-input-adornment .mud-icon-root {
    color: #475569 !important;
}

/* Dark: secondary copy on custom panels */
.gatherings-layout-dark .gatherings-content-panel .mud-text-secondary,
.gatherings-layout-dark .gatherings-content-panel-chat .mud-text-secondary {
    color: rgba(255, 255, 255, 0.68) !important;
}

/* Filled primary: solid teal + white (mint + white fails contrast). */
.gatherings-layout-dark .mud-button-filled.mud-button-filled-primary {
    background-color: #0f766e !important;
    color: #ffffff !important;
}

.gatherings-layout-dark .mud-button-filled.mud-button-filled-primary:hover {
    background-color: #0d9488 !important;
}

/* Outlined/text primary: brighter mint so they stay visible on dark surfaces. */
.gatherings-layout-dark .mud-button-outlined-primary,
.gatherings-layout-dark .mud-button-text-primary,
.gatherings-layout-dark a.mud-link {
    color: #5eead4 !important;
}

.gatherings-layout-dark .mud-button-outlined-primary {
    border-color: #5eead4 !important;
}

.gatherings-layout-dark .gatherings-home-welcome {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.28), rgba(38, 166, 154, 0.18));
    border-left-color: #5eead4;
}

.gatherings-layout-dark .gatherings-home-next-event {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(94, 234, 212, 0.28);
}

.gatherings-layout-dark .gatherings-home-stat-chip {
    background: rgba(94, 234, 212, 0.12);
}

.gatherings-layout-dark .gatherings-home-stat-chip:hover {
    background: rgba(94, 234, 212, 0.22);
}

.gatherings-layout-dark .gatherings-home-stat-chip strong {
    color: #5eead4;
}

.gatherings-layout-dark .gatherings-landing-lead,
.gatherings-layout-dark .gatherings-auth-brand-lead {
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.88);
}

.gatherings-layout-dark .gatherings-chat-list-avatar-fallback {
    background: rgba(94, 234, 212, 0.28);
    color: #ede7f6;
}

.gatherings-layout-dark .gatherings-chat-bubble-mine {
    background: rgba(15, 118, 110, 0.38);
}

.gatherings-chat-send-btn.mud-icon-button {
    background: rgba(15, 118, 110, 0.14);
}

.gatherings-layout-dark .gatherings-chat-send-btn.mud-icon-button {
    background: rgba(94, 234, 212, 0.24);
    color: #ede7f6 !important;
}

.gatherings-layout-dark .gatherings-chat-send-btn.mud-icon-button:disabled {
    opacity: 0.45;
}

.gatherings-layout-dark .gatherings-notification-unread .gatherings-notification-subtitle {
    color: rgba(255, 255, 255, 0.82);
}

.gatherings-layout-light .gatherings-notification-unread .gatherings-notification-subtitle {
    color: rgba(15, 118, 110, 0.78);
}

.gatherings-layout-dark .gatherings-notification-time {
    color: rgba(255, 255, 255, 0.65);
}

.gatherings-layout-dark .gatherings-notification-read {
    opacity: 0.78;
}

.gatherings-layout-dark .gatherings-child-diet-tag {
    color: rgba(255, 255, 255, 0.92);
}

.gatherings-layout-dark .validation-message {
    color: #fca5a5;
}

.gatherings-layout-dark .invalid {
    outline-color: #f87171;
}

/* App bar search: keep above generic Mud input theme overrides */
.gatherings-layout-dark .gatherings-appbar-search .gatherings-global-search .mud-input-root,
.gatherings-layout-dark .gatherings-appbar-search .gatherings-global-search .mud-input-slot {
    background: rgba(255, 255, 255, 0.12) !important;
}

.gatherings-layout-dark .gatherings-appbar-search .gatherings-global-search input,
.gatherings-layout-dark .gatherings-appbar-search .gatherings-global-search .mud-input-root input,
.gatherings-layout-dark .gatherings-appbar-search .gatherings-global-search .mud-input-slot input {
    color: rgba(255, 255, 255, 0.95) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
    caret-color: rgba(255, 255, 255, 0.95) !important;
}

/* Calendar month grid */
.calendar-month { user-select: none; }
.sticky-calendar-toolbar {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 0.5rem 0 0.75rem;
    margin-bottom: 0.75rem;
    background: var(--mud-palette-background);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}
.gatherings-kind-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}
.gatherings-kind-chips .mud-chip {
    cursor: pointer;
}
.calendar-weekdays, .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}
.calendar-weekday {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 0.35rem 0;
    opacity: 0.7;
}
.calendar-day {
    min-height: 96px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 4px;
    background: rgba(255,255,255,0.65);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.calendar-day-out { opacity: 0.45; }
.calendar-day-today { outline: 2px solid var(--mud-palette-primary); }
.calendar-day-selected { background: rgba(15, 118, 110, 0.12); }
.calendar-day-busy { box-shadow: inset 0 -3px 0 rgba(245, 158, 11, 0.85); }
.calendar-day-header {
    display: flex;
    align-items: center;
    gap: 4px;
}
.calendar-day-num { font-size: 0.8rem; font-weight: 600; }
.calendar-day-add { margin-left: auto; width: 24px; height: 24px; }
.calendar-busy-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #f59e0b; display: inline-block;
}
.calendar-day-events { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.calendar-chip {
    font-size: 0.68rem;
    line-height: 1.2;
    padding: 2px 4px;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: grab;
}
.calendar-chip-host { background: rgba(15, 118, 110, 0.2); }
.calendar-chip-going { background: rgba(59, 130, 246, 0.18); }
.calendar-chip-invited { background: rgba(168, 85, 247, 0.18); }
.calendar-chip-cancelled { opacity: 0.5; text-decoration: line-through; }
.calendar-more { font-size: 0.65rem; opacity: 0.7; }
.gatherings-layout-dark .calendar-day {
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(255,255,255,0.08);
}

/* Compact numeric / filter fields (Explore age gap, edit capacity, etc.) */
.gatherings-compact-number {
    width: 7.5rem;
    max-width: 7.5rem;
    flex: 0 0 auto;
}

.gatherings-compact-number .mud-input-control,
.gatherings-edit-event .gatherings-compact-number.mud-input-control {
    margin-top: 0;
}

/* Sectioned form pages (Edit Event, Profile, …) — centered column + sticky action bar */
.gatherings-content-panel:has(.gatherings-section-page) {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
}

.gatherings-layout-dark .gatherings-content-panel:has(.gatherings-section-page) {
    background: transparent;
    border: none;
    box-shadow: none;
}

.gatherings-section-page {
    --gatherings-edit-bar-height: 4.25rem;
    --gatherings-section-nav-width: 11.5rem;
    --gatherings-edit-panel-body-max: 48rem;
    width: 100%;
    max-width: 100%;
    padding-bottom: 2rem;
}

.gatherings-section-page--form {
    padding-bottom: 2rem;
}

.gatherings-section-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

.gatherings-section-nav {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
}

.gatherings-section-main {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.gatherings-section-nav-rail {
    position: relative;
    top: auto;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: calc(100dvh - var(--mud-appbar-height, 64px) - var(--gatherings-edit-bar-height) - 2rem);
    overflow: auto;
    padding: 0.55rem;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 88%, transparent);
    background: var(--g-surface, var(--mud-palette-surface));
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.gatherings-layout-dark .gatherings-section-nav-rail {
    background: var(--g-surface-dark, var(--mud-palette-surface));
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.gatherings-section-nav-group-label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    font-weight: 700;
    margin: 0.55rem 0 0.15rem;
    padding: 0 0.45rem;
}

.gatherings-section-nav-group-label:first-child {
    margin-top: 0;
}

.gatherings-section-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 70%, transparent);
    background: color-mix(in srgb, var(--mud-palette-background) 55%, var(--g-surface, var(--mud-palette-surface)));
    color: var(--mud-palette-text-primary);
    text-align: start;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 550;
    line-height: 1.3;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.gatherings-layout-dark .gatherings-section-nav-link {
    background: color-mix(in srgb, var(--mud-palette-background) 40%, var(--g-surface-dark, var(--mud-palette-surface)));
    border-color: rgba(255, 255, 255, 0.08);
}

.gatherings-section-nav-link:hover,
.gatherings-section-nav-link:focus-visible {
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, var(--g-surface, var(--mud-palette-surface)));
    border-color: color-mix(in srgb, var(--g-primary, var(--mud-palette-primary)) 35%, transparent);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    outline: none;
}

.gatherings-section-nav-link-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gatherings-section-nav-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    padding: 0.15rem 0 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    width: 100%;
    max-width: 100%;
}

.gatherings-section-nav-chip {
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 90%, transparent);
    background: var(--g-surface, var(--mud-palette-surface));
    color: var(--mud-palette-text-primary);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
}

.gatherings-layout-dark .gatherings-section-nav-chip {
    background: var(--g-surface-dark, var(--mud-palette-surface));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.gatherings-section-nav-chip:hover,
.gatherings-section-nav-chip:focus-visible {
    border-color: var(--g-primary, var(--mud-palette-primary));
    background: color-mix(in srgb, var(--g-primary, var(--mud-palette-primary)) 8%, var(--g-surface, var(--mud-palette-surface)));
    outline: none;
}

@media (min-width: 1280px) {
    .gatherings-section-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .gatherings-section-nav {
        position: sticky;
        top: calc(var(--mud-appbar-height, 64px) + var(--gatherings-edit-bar-height, 4.25rem) + 0.75rem);
        align-self: flex-start;
        width: var(--gatherings-section-nav-width);
        flex: 0 0 var(--gatherings-section-nav-width);
        z-index: 8;
    }

    .gatherings-event-detail-layout .gatherings-section-nav {
        top: calc(var(--mud-appbar-height, 64px) + 0.75rem);
    }

    .gatherings-section-nav-rail {
        position: static;
        top: auto;
        max-height: calc(100dvh - var(--mud-appbar-height, 64px) - var(--gatherings-edit-bar-height, 4.25rem) - 2rem);
    }

    .gatherings-event-detail-layout .gatherings-section-nav-rail {
        max-height: calc(100dvh - var(--mud-appbar-height, 64px) - 2rem);
    }
}

.gatherings-section-group-heading {
    display: block;
    color: var(--mud-palette-text-secondary) !important;
    margin: 0.15rem 0 0.55rem;
    letter-spacing: 0.08em;
}

.gatherings-section-anchor {
    scroll-margin-top: calc(var(--mud-appbar-height, 64px) + var(--gatherings-edit-bar-height, 4.25rem) + 1rem);
}

.gatherings-event-detail-layout .gatherings-section-anchor {
    scroll-margin-top: calc(var(--mud-appbar-height, 64px) + 1rem);
}

.gatherings-event-detail-layout {
    margin-top: 0.35rem;
}

.gatherings-event-detail-layout .gatherings-event-section-panels .mud-expand-panel-text,
.gatherings-event-detail-layout .gatherings-event-section-panels .mud-expand-panel-header {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.00714em;
}

.gatherings-event-detail-layout .gatherings-collapsible-header .mud-typography-h6,
.gatherings-event-detail-layout .gatherings-collapsible-header .mud-typography-subtitle1 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.00714em;
}

.gatherings-attendee-roster-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gatherings-attendee-roster-desktop {
    display: none;
}

.gatherings-attendee-roster-card {
    border-radius: 12px !important;
}

.gatherings-attendee-tabs-panels {
    min-height: 3rem;
}

@media (min-width: 960px) {
    .gatherings-attendee-roster-mobile {
        display: none !important;
    }

    .gatherings-attendee-roster-desktop {
        display: block;
    }
}

.gatherings-attendee-tabs .mud-tabs-toolbar-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gatherings-attendee-tabs .mud-tabs-toolbar-content::-webkit-scrollbar {
    display: none;
}

.gatherings-attendee-tabs .mud-tab {
    font-size: 0.78rem;
    padding-inline: 0.55rem;
}

.gatherings-edit-panel-body {
    max-width: var(--gatherings-edit-panel-body-max);
}

.gatherings-edit-section-heading {
    min-width: 0;
    flex: 1 1 auto;
}

.gatherings-edit-section-heading-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
}

.gatherings-edit-section-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.gatherings-section-status-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}

.gatherings-section-status-chip--neutral {
    background: color-mix(in srgb, var(--mud-palette-text-secondary) 14%, transparent);
    color: var(--mud-palette-text-secondary);
}

.gatherings-section-status-chip--warning {
    background: color-mix(in srgb, var(--mud-palette-warning) 18%, transparent);
    color: var(--mud-palette-warning-darken, #b45309);
}

.gatherings-section-status-chip--success {
    background: color-mix(in srgb, var(--mud-palette-success) 16%, transparent);
    color: var(--mud-palette-success-darken, #15803d);
}

.gatherings-layout-dark .gatherings-section-status-chip--warning {
    color: var(--mud-palette-warning);
}

.gatherings-layout-dark .gatherings-section-status-chip--success {
    color: var(--mud-palette-success);
}

.gatherings-edit-unsaved-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.gatherings-edit-unsaved-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--mud-palette-warning);
    flex-shrink: 0;
}

.gatherings-edit-unsaved-text {
    font-size: 0.72rem;
    color: var(--mud-palette-warning-darken, #b45309);
    font-weight: 600;
}

.gatherings-layout-dark .gatherings-edit-unsaved-text {
    color: var(--mud-palette-warning);
}

.gatherings-edit-sticky-tools {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
    margin-left: auto;
}

.gatherings-profile-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gatherings-profile-header {
    position: sticky;
    top: var(--mud-appbar-height, 64px);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 85%, transparent);
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.gatherings-layout-dark .gatherings-profile-header {
    background: color-mix(in srgb, var(--g-surface-dark, var(--mud-palette-surface)) 92%, transparent);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.gatherings-profile-header-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.gatherings-profile-header-eyebrow {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    line-height: 1.2;
    margin-bottom: 0.1rem;
}

.gatherings-profile-header-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.gatherings-profile-header-save {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

@media (min-width: 600px) {
    .gatherings-profile-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .gatherings-profile-header-main {
        flex: 1 1 auto;
        min-width: 0;
    }

    .gatherings-profile-header-toolbar {
        flex: 0 0 auto;
        flex-wrap: nowrap;
    }
}

.gatherings-layout-dark .gatherings-profile-hero {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.gatherings-profile-hero-avatar {
    flex-shrink: 0;
    width: 4.5rem !important;
    height: 4.5rem !important;
    font-size: 1.25rem;
    font-weight: 650;
}

.gatherings-profile-hero-body {
    min-width: 0;
    flex: 1 1 auto;
    max-width: var(--gatherings-edit-panel-body-max);
}

.gatherings-profile-hero-name {
    font-weight: 650;
    letter-spacing: -0.015em;
}

.gatherings-profile-hero-progress {
    margin-top: 0.55rem;
}

.gatherings-edit-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    padding: 0.35rem max(0.75rem, env(safe-area-inset-right, 0px)) calc(0.35rem + env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 80%, transparent);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.gatherings-layout-dark .gatherings-edit-mobile-bar {
    background: color-mix(in srgb, var(--mud-palette-surface) 88%, transparent);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.gatherings-edit-mobile-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: nowrap;
    width: 100%;
}

.gatherings-edit-mobile-bar-inner > .mud-button-root {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
}

.gatherings-edit-mobile-bar-inner > .mud-button-filled {
    flex: 0 1 auto;
    min-width: 7.5rem;
    max-width: 11rem;
}

.gatherings-edit-mobile-bar-inner > .mud-button-root:only-child {
    flex: 0 1 auto;
    max-width: 12rem;
    margin-left: 0;
}

.gatherings-section-page--form {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

.gatherings-edit-sticky-bar {
    position: sticky;
    top: var(--mud-appbar-height, 64px);
    z-index: 1100;
    margin: 0 0 0.85rem;
    background: color-mix(in srgb, var(--mud-palette-surface) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 80%, transparent);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.gatherings-edit-sticky-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.55rem 0.85rem;
    min-height: var(--gatherings-edit-bar-height);
    box-sizing: border-box;
}

.gatherings-edit-sticky-back {
    flex: 0 0 auto;
}

.gatherings-edit-sticky-title {
    min-width: 0;
    flex: 1 1 10rem;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.gatherings-edit-sticky-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    line-height: 1.2;
}

.gatherings-edit-sticky-name {
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(100%, 40rem);
}

.gatherings-edit-sticky-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.gatherings-layout-dark .gatherings-edit-sticky-bar {
    background: color-mix(in srgb, var(--mud-palette-surface) 82%, transparent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

@media (max-width: 959.95px) {
    .gatherings-edit-sticky-inner {
        padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    }

    .gatherings-edit-sticky-actions .mud-button-filled {
        min-width: 5.5rem;
    }
}

/* Edit Event — modern section cards */
.gatherings-edit-event {
    width: 100%;
}

.gatherings-edit-panels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gatherings-edit-panels.mud-expansion-panels {
    gap: 0.75rem;
}

.gatherings-edit-panels .mud-expand-panel,
.gatherings-edit-section.mud-expand-panel {
    background: var(--g-surface, var(--mud-palette-surface));
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 85%, transparent);
    border-radius: 16px !important;
    margin-bottom: 0 !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.gatherings-layout-dark .gatherings-edit-panels .mud-expand-panel,
.gatherings-layout-dark .gatherings-edit-section.mud-expand-panel {
    background: var(--g-surface-dark, var(--mud-palette-surface));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.gatherings-edit-panels .mud-expand-panel:last-child {
    border-bottom: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 85%, transparent);
}

.gatherings-layout-dark .gatherings-edit-panels .mud-expand-panel:last-child {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.gatherings-edit-panels .mud-expand-panel .mud-expand-panel-header {
    padding: 0.95rem 1.1rem !important;
}

.gatherings-edit-panels .mud-expand-panel .mud-expand-panel-content {
    padding: 0 1.1rem 1.15rem !important;
}

.gatherings-edit-section-title {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.gatherings-edit-section-icon {
    color: var(--g-primary, var(--mud-palette-primary));
    opacity: 0.9;
    margin-top: 0.1rem;
}

.gatherings-edit-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    align-items: start;
}

.gatherings-edit-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 1rem;
}

.gatherings-edit-inline-check {
    display: flex;
    align-items: center;
    min-height: 40px;
}

@media (max-width: 1279.95px) {
    .gatherings-section-page--form .gatherings-section-group-heading {
        display: none;
    }

    .gatherings-section-page--form {
        overflow-x: hidden;
    }

    .gatherings-section-nav-chips {
        flex-wrap: nowrap;
        margin-bottom: 0.65rem;
        padding-bottom: 0.45rem;
        mask-image: linear-gradient(to right, transparent 0, #000 0.5rem, #000 calc(100% - 0.5rem), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0.5rem, #000 calc(100% - 0.5rem), transparent 100%);
    }

    .gatherings-edit-sticky-inner {
        gap: 0.35rem;
    }

    .gatherings-edit-expand-toggle {
        display: none !important;
    }

    .gatherings-section-page--profile .gatherings-edit-unsaved-text {
        display: none;
    }

    .gatherings-profile-header-toolbar {
        display: none !important;
    }

    .gatherings-section-page--form > .gatherings-edit-sticky-bar {
        margin-bottom: 0.5rem;
    }

    .gatherings-section-page--form > .gatherings-edit-sticky-bar .gatherings-edit-sticky-tools {
        display: none !important;
    }

    .gatherings-section-page--form {
        padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 600px) {
    .gatherings-section-page {
        --gatherings-edit-bar-height: 5.5rem;
    }

    .gatherings-section-page--form {
        padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
    }

    .gatherings-edit-field-grid,
    .gatherings-edit-check-grid {
        grid-template-columns: 1fr;
    }

    .gatherings-edit-sticky-actions--desktop {
        display: none !important;
    }

    .gatherings-edit-mobile-bar {
        bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
        padding-top: 0.35rem;
        padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px));
    }
}

.gatherings-compact-number .mud-input-control-helper-container {
    margin-top: 0;
}

.gatherings-compact-number .mud-input-slot,
.gatherings-compact-number .mud-input-root {
    min-height: 36px !important;
}

.gatherings-compact-number .mud-input-root input {
    font-size: 0.875rem !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.shopping-drag-ghost {
    position: absolute;
    top: -1000px;
    left: -1000px;
    z-index: 10000;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    pointer-events: none;
}

.shopping-drag-handle {
    cursor: grab;
    display: inline-flex;
    touch-action: none;
}

@media (pointer: coarse) {
    .shopping-drag-handle {
        display: none !important;
    }
}

.shopping-open-item-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.35rem 0.25rem;
}

.shopping-open-item-mobile-head {
    display: flex;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
}

.shopping-open-item-mobile-text {
    flex: 1 1 auto;
    min-width: 0;
}

.shopping-open-item-mobile-utilities {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-top: -0.15rem;
}

.shopping-open-item-mobile-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
}

.shopping-open-item-mobile-actions .shopping-move-btn,
.shopping-open-item-mobile-actions .shopping-could-not-find-btn,
.shopping-open-item-mobile-actions .shopping-bought-btn {
    width: 100%;
    min-height: 2.5rem;
    text-transform: none;
    font-weight: 600;
}

.shopping-open-item-mobile-actions .shopping-bought-btn {
    grid-column: 1 / -1;
}

.shopping-list-picker .mud-input-label {
    font-weight: 600;
}

.shopping-toolbar-row {
    display: flex;
    width: 100%;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 0.5rem 0 0.65rem;
    margin-bottom: 0.25rem;
    background: color-mix(in srgb, var(--mud-palette-background) 92%, transparent);
    backdrop-filter: blur(6px);
}

.shopping-list-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.shopping-list-header-meta {
    flex-wrap: wrap !important;
    min-width: 0;
    width: 100%;
}

.shopping-list-header-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(100%, 18rem);
}

.shopping-list-header-counts {
    flex: 0 1 auto;
    white-space: nowrap;
}

.shopping-list-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
}

.shopping-add-cluster {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    flex: 0 1 26rem;
    min-width: 14rem;
    max-width: 28rem;
    flex-wrap: nowrap;
}

.shopping-inline-add {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    max-width: 22rem;
}

.shopping-inline-add .shopping-compact-field,
.shopping-inline-add .mud-input-control {
    flex: 1 1 auto;
    min-width: 0;
}

/* Align Add with the outlined input row (not helper text / label centering). */
.shopping-inline-add > .shopping-add-btn {
    margin-top: 0.5rem;
    align-self: flex-start;
}

.shopping-add-cluster > .shopping-add-btn {
    /* Placeholder-only dense field — keep Add centered on the input. */
    margin-top: 0;
    align-self: center;
}

.shopping-trip-event-link {
    align-self: flex-start;
    width: auto;
    max-width: 100%;
}

.shopping-trip-event-link .mud-chip,
.shopping-trip-event-link a.mud-chip {
    width: auto !important;
    max-width: 100%;
}

.shopping-trip-event-link .mud-chip .mud-chip-icon,
.shopping-trip-event-link .mud-chip .mud-icon-root {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

.shopping-trip-quick-add {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--mud-palette-surface);
    width: 100%;
    max-width: 28rem;
}

.shopping-trip-quick-add-cluster {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.shopping-trip-quick-add-cluster .shopping-trip-add-btn {
    align-self: flex-end;
}

.shopping-trip-add-btn {
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 10px;
    min-width: 7.25rem;
    height: 2.5rem;
    padding-inline: 1.15rem;
}

.shopping-trip-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.shopping-trip-item-body {
    min-width: 0;
    flex: 1 1 auto;
}

.shopping-trip-item-text {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

.shopping-trip-item-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.4rem;
    flex: 0 0 auto;
}

.shopping-trip-item-actions .shopping-trip-action-btn {
    width: 100%;
    min-height: 2.15rem;
    height: 2.15rem;
    text-transform: none;
    font-weight: 600;
    font-size: 0.8125rem;
}

@media (min-width: 960px) {
    .shopping-trip-item {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .shopping-trip-item-actions {
        width: auto;
        min-width: 16rem;
        max-width: 20rem;
        flex: 0 0 auto;
    }

    .shopping-trip-item-actions .shopping-trip-action-btn {
        min-height: 2rem;
        height: 2rem;
    }
}

.shopping-trip-category {
    margin-top: 0.65rem;
}

.shopping-trip-category:first-child {
    margin-top: 0;
}

.shopping-trip-category-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.1rem 0 0.35rem 0.35rem;
    color: var(--mud-palette-text-secondary);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
}

.shopping-trip-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    background: rgba(128, 128, 128, 0.14);
    color: var(--mud-palette-text-secondary);
}

.shopping-trip-category-items {
    padding-left: 0.65rem;
    margin-left: 0.2rem;
    border-left: 2px solid rgba(128, 128, 128, 0.2);
}

.tasting-flight-photo-input {
    max-width: 11rem;
    font-size: 0.75rem;
}

.shopping-category-items {
    padding-left: 1.35rem;
    margin-top: 0.15rem;
    border-left: 2px solid rgba(128, 128, 128, 0.28);
}

.shopping-add-field {
    flex: 1 1 auto;
    min-width: 0;
}

.shopping-add-btn {
    flex: 0 0 auto;
    min-width: 3.5rem !important;
    height: 2rem !important;
    padding: 0 0.65rem !important;
}

.shopping-sort-cluster {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 12.5rem;
}

.shopping-sort-caption {
    margin: 0 0 0.2rem;
    color: var(--mud-palette-text-secondary);
    font-size: 0.75rem !important;
    line-height: 1.2;
    text-align: center;
}

.shopping-sort-menu {
    width: 100%;
}

.shopping-sort-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    width: 12.5rem;
    min-height: 2rem;
    margin: 0;
    padding: 0 0.35rem 0 0.65rem;
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font: inherit;
    font-size: 1rem;
    line-height: 1.2;
    cursor: pointer;
}

.shopping-sort-trigger:hover {
    border-color: var(--mud-palette-action-default);
}

.shopping-sort-trigger-label {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shopping-sort-trigger-icon {
    flex: 0 0 auto;
    opacity: 0.7;
}

.shopping-compact-field {
    flex: 1 1 auto;
    min-width: 0;
}

.shopping-compact-field.mud-input-control,
.shopping-compact-field .mud-input-control {
    margin-top: 0 !important;
}

.shopping-compact-field .mud-input-control-input-container {
    margin-top: 0 !important;
}

.shopping-compact-field .mud-input > input,
.shopping-compact-field .mud-select-input {
    min-height: 1.85rem !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    font-size: 0.875rem !important;
}

.guest-jobs-list {
    width: 100%;
}

.guest-job-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 28rem;
    padding: 0.4rem 0.25rem;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.9375rem;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    border-radius: 0.375rem;
}

.guest-job-row:hover:not(:disabled) {
    background: rgba(15, 23, 42, 0.04);
}

.guest-job-row:disabled,
.guest-job-row--done {
    cursor: default;
    opacity: 0.72;
}

.gatherings-layout-dark .guest-job-row:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
}

/* Tasting half-star rating (5 stars, 0.5 steps) */
.tasting-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.tasting-star {
    position: relative;
    display: inline-flex;
    line-height: 0;
}

.tasting-star__icon {
    pointer-events: none;
}

.tasting-star__hit {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

.tasting-star__hit--half {
    left: 0;
}

.tasting-star__hit--full {
    right: 0;
}

.tasting-star-rating--readonly .tasting-star__hit {
    display: none;
}

.tasting-star-rating__value {
    margin-left: 0.35rem;
    font-size: 0.875rem;
}

.tasting-category-chips .mud-chip {
    font-size: 1rem;
    min-height: 2.5rem;
    padding-inline: 0.9rem;
}

.tasting-view-bar-wrap {
    display: block;
    width: 100%;
}

.tasting-view-bar.mud-button-group {
    display: flex;
    width: fit-content;
    max-width: 100%;
}

.tasting-category-block {
    display: block;
    width: 100%;
}

.tasting-category-chips .mud-chip .mud-icon-root {
    font-size: 1.15rem;
}

.tasting-view-bar .mud-button {
    text-transform: none;
    font-weight: 600;
    padding-inline: 1rem;
}

.tasting-filter-row .mud-chip {
    font-size: 1rem;
    min-height: 2.5rem;
    padding-inline: 0.9rem;
}

.tasting-search-bar {
    align-items: center !important;
}

.tasting-search-bar .mud-input-control {
    margin-top: 2px;
}

.tasting-search-bar .mud-input-slot,
.tasting-search-bar .mud-select-input {
    min-height: 2.25rem;
    font-size: 0.875rem;
}

.tasting-search-autocomplete {
    flex: 1 1 220px;
}

.tasting-rating-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.tasting-your-rating {
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent);
}

.tasting-your-rating__stars {
    display: flex;
    justify-content: flex-start;
}

.tasting-rating-photo {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--mud-palette-background-gray);
}

.tasting-rating-photo img,
.tasting-rating-photo .mud-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tasting-rating-photo__delete {
    position: absolute;
    top: 2px;
    right: 2px;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.55) !important;
}

/* Event seating chart — tall workspace so round rooms aren't a thin strip */
.seating-canvas-wrap {
    width: 100%;
    height: min(80vh, 920px);
    min-height: 420px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.25);
    touch-action: none;
}

.seating-canvas-wrap.is-zoomable {
    cursor: grab;
}

.seating-canvas-wrap.is-panning,
.seating-canvas.is-panning {
    cursor: grabbing;
}

.seating-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    user-select: none;
}

.seating-canvas.is-readonly .seating-table-body,
.seating-canvas.is-readonly .seating-obstacle-body,
.seating-canvas.is-readonly .seating-seat {
    cursor: default;
}

.seating-room {
    fill: rgba(45, 212, 191, 0.08);
    stroke: rgba(45, 212, 191, 0.55);
    stroke-width: 2;
}

.seating-table-body {
    fill: rgba(30, 41, 59, 0.92);
    stroke: rgba(148, 163, 184, 0.7);
    stroke-width: 1.5;
    cursor: grab;
}

.seating-canvas.is-dragging,
.seating-canvas.is-dragging .seating-table-body,
.seating-canvas.is-dragging .seating-obstacle-body {
    cursor: grabbing;
}

.seating-canvas.is-rotating,
.seating-canvas.is-rotating .seating-rotate-handle {
    cursor: grabbing;
}

.seating-rotate-arm {
    stroke: rgba(45, 212, 191, 0.7);
    stroke-width: 1.5;
    pointer-events: none;
}

.seating-rotate-handle {
    cursor: grab;
}

.seating-rotate-handle circle {
    fill: #0f172a;
    stroke: #2dd4bf;
    stroke-width: 2;
}

.seating-rotate-handle path,
.seating-rotate-handle polyline {
    stroke: #2dd4bf;
    fill: none;
    pointer-events: none;
}

.seating-obstacle.is-selected .seating-rotate-handle circle {
    stroke: #fbbf24;
}

.seating-obstacle.is-selected .seating-rotate-handle path,
.seating-obstacle.is-selected .seating-rotate-handle polyline {
    stroke: #fbbf24;
}

.seating-table.is-selected .seating-table-body {
    stroke: #2dd4bf;
    stroke-width: 2.5;
}

.seating-table.is-mine .seating-table-body {
    stroke: #38bdf8;
}

.seating-table-label {
    fill: #e2e8f0;
    font-size: 11px;
    pointer-events: none;
    font-weight: 600;
    user-select: none;
}

.seating-obstacle-body {
    fill: rgba(148, 163, 184, 0.28);
    stroke: rgba(148, 163, 184, 0.65);
    stroke-width: 1.5;
    stroke-dasharray: 5 3;
    cursor: grab;
}

.seating-obstacle.kind-wall .seating-obstacle-body {
    fill: rgba(100, 116, 139, 0.55);
    stroke-dasharray: none;
}

.seating-obstacle.kind-stage .seating-obstacle-body {
    fill: rgba(251, 191, 36, 0.22);
    stroke: rgba(251, 191, 36, 0.7);
}

.seating-obstacle.kind-pillar .seating-obstacle-body {
    fill: rgba(148, 163, 184, 0.45);
    stroke-dasharray: none;
}

.seating-obstacle.kind-bar .seating-obstacle-body {
    fill: rgba(244, 114, 182, 0.2);
    stroke: rgba(244, 114, 182, 0.65);
}

.seating-obstacle.is-selected .seating-obstacle-body {
    stroke: #fbbf24;
    stroke-width: 2.5;
}

.seating-obstacle-label {
    fill: #cbd5e1;
    font-size: 10px;
    pointer-events: none;
    user-select: none;
}

.seating-seat circle {
    fill: rgba(148, 163, 184, 0.35);
    stroke: rgba(226, 232, 240, 0.7);
    stroke-width: 1;
    cursor: pointer;
}

.seating-seat.is-filled circle {
    fill: #2dd4bf;
    stroke: #99f6e4;
}

.seating-seat.is-mine circle {
    fill: #38bdf8;
    stroke: #e0f2fe;
    stroke-width: 2;
}

.gatherings-layout-light .seating-canvas-wrap {
    background: rgba(241, 245, 249, 0.9);
}

.gatherings-layout-light .seating-room {
    fill: rgba(13, 148, 136, 0.08);
    stroke: rgba(13, 148, 136, 0.5);
}

.gatherings-layout-light .seating-table-body {
    fill: #fff;
    stroke: #94a3b8;
}

.gatherings-layout-light .seating-table-label {
    fill: #0f172a;
}

.gatherings-layout-light .seating-obstacle-body {
    fill: rgba(148, 163, 184, 0.2);
}

.gatherings-layout-light .seating-obstacle-label {
    fill: #475569;
}

.gatherings-layout-light .seating-rotate-handle circle {
    fill: #fff;
}

.gatherings-layout-light .seating-rotate-arm {
    stroke: rgba(13, 148, 136, 0.65);
}

/* Destructive dropdown menu items (delete, cancel event, etc.) */
.gatherings-menu-item-danger .mud-list-item-text,
.gatherings-menu-item-danger .mud-list-item-icon {
    color: var(--mud-palette-error) !important;
}

.gatherings-menu-item-danger:hover,
.gatherings-menu-item-danger.mud-list-item-clickable:hover {
    background-color: rgba(var(--mud-palette-error-rgb), 0.08);
}

.gatherings-table-actions-col {
    width: 3rem;
    text-align: right;
    white-space: nowrap;
}

.gatherings-events-table .mud-table-row .gatherings-table-actions-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.gatherings-events-table .mud-table-row .gatherings-table-actions-col::before {
    flex: 1 1 auto;
    text-align: left;
}

.gatherings-event-list-card {
    cursor: pointer;
    border-radius: 12px !important;
}

.gatherings-event-list-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.gatherings-event-list-card-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.gatherings-event-list-card-title {
    font-weight: 650;
    line-height: 1.25;
}

.gatherings-event-list-card-actions {
    flex: 0 0 auto;
    margin-left: auto;
}

.gatherings-event-list-card-chips {
    margin-top: 0.35rem;
}

.gatherings-event-list-card-meta {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 70%, transparent);
}

.gatherings-event-list-card-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.35;
}

.gatherings-event-list-card-label {
    color: var(--mud-palette-text-secondary);
    flex: 0 0 auto;
}

.gatherings-event-list-card-value {
    text-align: right;
    min-width: 0;
}

.gatherings-friends-panel {
    border-radius: 14px !important;
    overflow: hidden;
    width: 100%;
}

.gatherings-friends-search-wrap {
    padding: 0.75rem 0.85rem 0.35rem;
    border-bottom: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 55%, transparent);
}

.gatherings-friends-search {
    width: 100%;
}

.gatherings-friends-list-scroll {
    max-height: min(28rem, 55vh);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.gatherings-friend-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.65rem 0.55rem 0.85rem;
    border-bottom: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 65%, transparent);
}

.gatherings-friend-row:last-child {
    border-bottom: none;
}

.gatherings-friend-row-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 0.5rem;
    padding: 0.15rem 0.25rem 0.15rem 0;
}

.gatherings-friend-row-main:hover .gatherings-friend-name,
.gatherings-friend-row-main:focus-visible .gatherings-friend-name {
    color: var(--mud-palette-primary);
}

.gatherings-friend-avatar {
    flex: 0 0 auto;
}

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

.gatherings-friend-name {
    display: block;
    font-weight: 650;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--mud-palette-primary);
}

.gatherings-friend-meta {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gatherings-friend-row-actions {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.1rem;
}

.gatherings-friend-chat-btn {
    flex: 0 0 auto;
}

.gatherings-friends-requests-banner {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 35%, var(--mud-palette-lines-default)) !important;
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-surface));
}

.gatherings-friend-request-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    padding: 0.35rem 0.15rem;
}

.gatherings-friend-request-name {
    flex: 1 1 auto;
    min-width: 6rem;
}

.gatherings-friends-suggestions {
    border-radius: 14px !important;
    overflow: hidden;
}

.gatherings-friends-suggestions-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.9rem;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.gatherings-friends-suggestions-toggle:hover {
    background: color-mix(in srgb, var(--mud-palette-primary) 5%, transparent);
}

.gatherings-friends-suggestions-title {
    flex: 1 1 auto;
    font-weight: 650;
    font-size: 0.95rem;
}

.gatherings-friends-suggestions-body {
    padding: 0 0.9rem 0.9rem;
    border-top: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 55%, transparent);
}

.gatherings-host-rotation-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding: 0.4rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 45%, transparent);
}

.gatherings-host-rotation-row:last-child {
    border-bottom: none;
}

.gatherings-host-rotation-text {
    flex: 1 1 10rem;
    min-width: 0;
}

.gatherings-nearby-events {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0.55rem;
}

.gatherings-nearby-event-card {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 70%, transparent);
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, var(--mud-palette-background));
    color: inherit;
    text-decoration: none;
    min-width: 0;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.gatherings-nearby-event-card:hover,
.gatherings-nearby-event-card:focus-visible {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 45%, var(--mud-palette-lines-default));
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-surface));
}

.gatherings-nearby-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 960px) {
    .gatherings-friends-list-scroll {
        max-height: min(32rem, 60vh);
    }

    .gatherings-friend-row {
        padding: 0.6rem 0.75rem 0.6rem 1rem;
    }
}

.club-list-card {
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.club-list-card:hover {
    box-shadow: var(--g-panel-shadow);
}

/* Club tags */
.club-tag-chip {
    font-size: 0.95rem !important;
    font-weight: 500;
}

.club-tag-chip .mud-chip-content {
    font-size: inherit !important;
}

.club-new-tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.club-new-tag-field {
    flex: 0 0 16rem;
    width: 16rem;
    max-width: 100%;
}

.club-new-tag-field .mud-input-control {
    margin-top: 0 !important;
}

.club-new-tag-field .mud-input > input.mud-input-slot,
.club-new-tag-field .mud-input-slot {
    min-height: 2.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.club-tag-color-select {
    flex: 0 0 10.5rem;
    width: 10.5rem;
    max-width: 100%;
}

.club-tag-color-select .mud-input-control {
    margin-top: 0 !important;
}

.club-tag-swatch-inline {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.club-tag-group {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0 0.85rem;
    border-left: 4px solid transparent;
}

.club-tag-group-toggle {
    cursor: pointer;
    user-select: none;
}

.club-member-tags-dialog .mud-dialog {
    max-width: 36rem;
}

.gatherings-clickable-image {
    display: block;
    max-width: 100%;
    cursor: zoom-in;
}

.gatherings-clickable-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Image lightbox: hug the picture — no forced full-width/height, no scrollbars */
.gatherings-image-preview-dialog.mud-dialog,
.gatherings-image-preview-dialog .mud-dialog {
    width: fit-content !important;
    max-width: min(96vw, 42rem) !important;
    min-height: 0 !important;
    height: auto !important;
}

@media (min-width: 601px) {
    .gatherings-image-preview-dialog.mud-dialog,
    .gatherings-image-preview-dialog .mud-dialog {
        max-width: min(96vw, 46rem) !important;
    }

    .gatherings-image-preview-frame {
        max-height: min(82vh, 720px);
    }

    .gatherings-image-preview-img {
        max-width: min(94vw, 44rem);
        max-height: min(82vh, 720px);
    }
}

.gatherings-image-preview-dialog .mud-dialog-title {
    display: none;
}

.gatherings-image-preview-dialog .mud-dialog-content {
    padding: 0.5rem 0.75rem 0.65rem !important;
    overflow: hidden !important;
    max-height: none !important;
    overscroll-behavior: contain;
}

.gatherings-image-preview-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.gatherings-image-preview-title {
    align-self: flex-start;
    margin: 0;
    line-height: 1.2;
}

.gatherings-image-preview-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    width: 100%;
    padding-top: 0.15rem;
}

.gatherings-image-preview-frame {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: 100%;
    min-height: 0;
    max-height: min(82vh, 680px);
    margin-inline: auto;
    overflow: hidden;
    touch-action: pan-x pan-y;
    user-select: none;
    -webkit-user-select: none;
    isolation: isolate;
}

.gatherings-image-preview-frame--zoomed {
    cursor: grab;
    touch-action: none;
}

.gatherings-image-preview-frame--zoomed.gatherings-image-preview-frame--panning {
    cursor: grabbing;
}

.gatherings-image-preview-img {
    display: block;
    max-width: min(94vw, 40rem);
    max-height: min(82vh, 680px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transform-origin: center center;
    transition: transform 0.12s ease-out;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
    will-change: transform;
}

.gatherings-image-preview-img--panning {
    transition: none;
}

