/* ══════════════════════════════════════════════════════════
   MOBILE APP EXPERIENCE — Guest List (Phase: Mobile)
   Native app feel: FAB, bottom tabs, sheets, app bar
   Only active at ≤768px — desktop is completely unaffected
══════════════════════════════════════════════════════════ */

/* --- Base: hidden on desktop --- */
.mob-appbar,
.mob-search-bar,
.mob-fab,
.mob-tabbar,
.mob-sheet-overlay,
.mob-global-appbar,
.mob-hub-page,
.mob-global-nav,
.mob-profile-page,
.mob-gal-hint,
.mob-photos-actions,
.mob-cl-actions,
.mob-budget-actions,
#mob-budget-list,
#mob-vd-list,
#mob-guest-list,
#mob-gb-list,
#mob-msg-list,
#mob-reg-list,
#mob-event-list,
#mob-hh-list,
#mob-q-list,
#mob-meal-list {
    display: none;
}

@media (max-width: 768px) {
    /* ═══════════════════════════════════════════════════════
   GLOBAL MOBILE NAVIGATION — hide sidebar, show bottom nav
═══════════════════════════════════════════════════════ */

    /* ─── Remove desktop min-height that causes iOS Safari overscroll ─── */
    body,
    #app,
    .layout {
        min-height: auto !important;
    }

    /* ─── HIDE SIDEBAR + BURGER ON MOBILE ─── */
    .mob-menu-btn,
    .sidebar-overlay,
    .sidebar {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
        padding: 16px 16px calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* ─── GLOBAL APP BAR ─── */
    .mob-global-appbar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 40;
        padding: 14px 16px;
        margin: -16px -16px 16px;
        background: rgba(251, 247, 240, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(44, 24, 16, 0.06);
    }
    .mob-global-titles {
        flex: 1;
        min-width: 0;
    }
    .mob-global-appbar h2 {
        font-family: var(--heading-font, "Georgia", serif);
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--txt, #2c1810);
        margin: 0;
        letter-spacing: -0.02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mob-global-subtitle {
        font-size: 0.68rem;
        color: var(--txt-m, #8a7a6c);
        margin: 2px 0 0;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mob-global-subtitle:empty {
        display: none;
    }
    .mob-back-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        border: none;
        background: rgba(44, 24, 16, 0.04);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--txt, #2c1810);
        cursor: pointer;
        flex-shrink: 0;
        transition:
            background 0.2s,
            transform 0.15s;
    }
    .mob-back-btn:active {
        transform: scale(0.9);
        background: rgba(44, 24, 16, 0.1);
    }
    .mob-global-actions {
        display: flex;
        gap: 4px;
        flex-shrink: 0;
    }

    /* ─── PROFILE AVATAR IN APP BAR ─── */
    .mob-profile-avatar {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(135deg, #b8956a 0%, #d4b896 100%);
        color: #fff;
        font-family: "Cormorant Garamond", Georgia, serif;
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        margin-left: 4px;
        transition:
            transform 0.2s,
            box-shadow 0.2s;
        box-shadow: 0 2px 8px rgba(184, 149, 106, 0.25);
    }
    .mob-profile-avatar:active {
        transform: scale(0.9);
    }

    /* ─── MOBILE PROFILE PAGE ─── */
    .mob-profile-page {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 50;
        background: var(--cream, #faf5ee);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        animation: mppSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .mob-profile-page.open {
        display: block;
    }
    @keyframes mppSlideIn {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }

    .mpp-back-btn {
        position: absolute;
        top: 16px;
        left: 16px;
        z-index: 5;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        border: none;
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #e8d5b0;
        cursor: pointer;
        transition:
            background 0.2s,
            transform 0.15s;
    }
    .mpp-back-btn:active {
        transform: scale(0.9);
        background: rgba(255, 255, 255, 0.2);
    }

    /* Header */
    .mpp-header {
        position: relative;
        background: linear-gradient(160deg, #2c1810 0%, #3d2e1f 40%, #4a3828 100%);
        padding: 60px 24px 36px;
        text-align: center;
        overflow: hidden;
    }
    .mpp-header-grain {
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
        pointer-events: none;
    }
    .mpp-avatar {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        background: linear-gradient(135deg, #b8956a 0%, #e8d5b0 100%);
        color: #2c1810;
        font-family: "Cormorant Garamond", Georgia, serif;
        font-size: 1.6rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
        box-shadow: 0 4px 20px rgba(184, 149, 106, 0.4);
        letter-spacing: 0.04em;
    }
    .mpp-couple-names {
        font-family: "Cormorant Garamond", Georgia, serif;
        font-size: 1.5rem;
        font-weight: 600;
        color: #e8d5b0;
        margin: 0 0 6px;
        letter-spacing: 0.02em;
    }
    .mpp-email {
        font-family: "Jost", sans-serif;
        font-size: 0.75rem;
        color: rgba(232, 213, 176, 0.55);
        margin: 0 0 14px;
    }
    .mpp-plan {
        display: inline-block;
        padding: 3px 14px;
        border-radius: 20px;
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        background: rgba(184, 149, 106, 0.15);
        color: #b8956a;
        border: 1px solid rgba(184, 149, 106, 0.25);
    }

    /* Countdown */
    .mpp-countdown-wrap {
        padding: 24px 20px 20px;
        text-align: center;
    }
    .mpp-countdown-label {
        font-family: "Jost", sans-serif;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: var(--txt-l, #8b7a68);
        margin: 0 0 14px;
        font-weight: 500;
    }
    .mpp-countdown {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
    }
    .mpp-cd-unit {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 58px;
    }
    .mpp-cd-num {
        font-family: "Cormorant Garamond", Georgia, serif;
        font-size: 2.4rem;
        font-weight: 700;
        color: var(--txt, #2c1810);
        line-height: 1;
        background: linear-gradient(135deg, #2c1810 0%, #b8956a 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .mpp-cd-lbl {
        font-family: "Jost", sans-serif;
        font-size: 0.6rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--txt-l, #8b7a68);
        margin-top: 4px;
    }
    .mpp-cd-sep {
        font-family: "Cormorant Garamond", Georgia, serif;
        font-size: 1.6rem;
        color: var(--txt-xl, #b0a090);
        margin-top: -12px;
    }
    .mpp-wedding-date {
        font-family: "Jost", sans-serif;
        font-size: 0.72rem;
        color: var(--txt-m, #5a4a38);
        margin: 16px 0 0;
        font-weight: 500;
    }

    /* Stats */
    .mpp-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0 16px 16px;
    }
    .mpp-stat-card {
        background: #fff;
        border-radius: 14px;
        padding: 16px;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        box-shadow: 0 1px 4px rgba(44, 32, 22, 0.05);
    }
    .mpp-stat-card svg {
        color: var(--gold, #b8956a);
        flex-shrink: 0;
        margin-top: 2px;
    }
    .mpp-stat-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }
    .mpp-stat-val {
        font-family: "Cormorant Garamond", Georgia, serif;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--txt, #2c1810);
        line-height: 1.2;
    }
    .mpp-stat-lbl {
        font-size: 0.62rem;
        color: var(--txt-l, #8b7a68);
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    /* Actions */
    .mpp-actions {
        padding: 0 16px 16px;
    }
    .mpp-action-btn {
        display: flex;
        align-items: center;
        gap: 14px;
        width: 100%;
        padding: 14px 16px;
        border: none;
        background: #fff;
        border-radius: 12px;
        margin-bottom: 6px;
        font-family: "Jost", sans-serif;
        font-size: 0.82rem;
        color: var(--txt, #2c1810);
        cursor: pointer;
        transition: background 0.15s;
        text-align: left;
        box-shadow: 0 1px 3px rgba(44, 32, 22, 0.04);
    }
    .mpp-action-btn:active {
        background: rgba(184, 149, 106, 0.08);
    }
    .mpp-action-btn svg {
        color: var(--txt-m, #5a4a38);
        flex-shrink: 0;
    }
    .mpp-divider {
        height: 1px;
        background: rgba(44, 32, 22, 0.06);
        margin: 10px 0 16px;
    }
    .mpp-logout {
        color: #c0392b !important;
    }
    .mpp-logout svg {
        color: #c0392b !important;
    }
    .mpp-member-since {
        text-align: center;
        font-size: 0.65rem;
        color: var(--txt-xl, #b0a090);
        padding: 8px 16px 32px;
        margin: 0;
    }

    /* ─── GLOBAL BOTTOM TAB BAR ─── */
    .mob-global-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 45;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-top: 1px solid rgba(44, 24, 16, 0.06);
        padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 24px rgba(44, 24, 16, 0.05);
    }
    .mob-gnav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        border: none;
        background: none;
        cursor: pointer;
        padding: 8px 2px 4px;
        position: relative;
        color: var(--txt-m, #8a7a6c);
        transition: color 0.2s;
        -webkit-tap-highlight-color: transparent;
    }
    .mob-gnav-btn span {
        font-size: 0.6rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        transition: color 0.2s;
    }
    .mob-gnav-btn svg {
        transition: transform 0.2s;
    }
    .mob-gnav-btn.active {
        color: var(--gold, #b8956a);
    }
    .mob-gnav-btn.active svg {
        transform: scale(1.12);
    }
    .mob-gnav-btn.active::after {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 3px;
        border-radius: 0 0 4px 4px;
        background: var(--gold, #b8956a);
    }
    .mob-gnav-btn:active {
        opacity: 0.6;
    }

    /* ─── HUB PAGE (shown/hidden by JS) ─── */
    .mob-hub-page {
        padding: 4px 0 20px;
        animation: mobHubIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
    }
    @keyframes mobHubIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .mob-hub-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .mob-hub-card {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 18px 18px;
        background: #fff;
        border-radius: 16px;
        border: 1px solid rgba(44, 24, 16, 0.06);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition:
            transform 0.15s,
            box-shadow 0.15s,
            border-color 0.15s;
        position: relative;
        overflow: hidden;
        animation: mobCardIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
    }
    .mob-hub-card:active {
        transform: scale(0.98);
        box-shadow: 0 2px 12px rgba(44, 24, 16, 0.06);
    }
    .mob-hub-card-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(184, 149, 106, 0.08);
        color: var(--gold, #b8956a);
        transition: background 0.2s;
    }
    .mob-hub-card:active .mob-hub-card-icon {
        background: rgba(184, 149, 106, 0.15);
    }
    .mob-hub-card-info {
        flex: 1;
        min-width: 0;
    }
    .mob-hub-card-title {
        font-size: 0.92rem;
        font-weight: 600;
        color: var(--txt, #2c1810);
        margin: 0 0 2px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .mob-hub-card-desc {
        font-size: 0.72rem;
        color: var(--txt-m, #8a7a6c);
        margin: 0;
        line-height: 1.3;
    }
    .mob-hub-card-arrow {
        flex-shrink: 0;
        color: var(--txt-xl, #c4b5a7);
        transition: transform 0.2s;
    }
    .mob-hub-card:active .mob-hub-card-arrow {
        transform: translateX(3px);
    }

    /* Hub card: premium lock */
    .mob-hub-card.is-locked {
        opacity: 0.65;
    }
    .mob-hub-card.is-locked .mob-hub-card-icon {
        background: rgba(44, 24, 16, 0.04);
        color: var(--txt-m, #8a7a6c);
    }
    .mob-hub-lock {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        font-size: 0.52rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #fff;
        background: linear-gradient(135deg, var(--gold, #b8956a), #c9a474);
        padding: 2px 7px;
        border-radius: 6px;
        line-height: 1.2;
    }

    /* Hub section header (optional) */
    .mob-hub-section-label {
        font-size: 0.58rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--txt-xl, #c4b5a7);
        padding: 16px 4px 8px;
    }
    .mob-hub-section-label:first-child {
        padding-top: 4px;
    }

    /* Hub page visibility controlled by JS (display is set inline) */

    /* ═══════════════════════════════════════════════════════
   GUEST TAB — MOBILE SPECIFICS (existing, adapted)
═══════════════════════════════════════════════════════ */

    /* ─── GUESTS APP BAR (hidden — replaced by global app bar) ─── */
    .mob-appbar {
        display: none !important;
    }
    .mob-appbar-actions {
        display: flex;
        gap: 4px;
    }
    .mob-appbar-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        border: none;
        background: rgba(44, 24, 16, 0.04);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--txt, #2c1810);
        cursor: pointer;
        position: relative;
        text-decoration: none;
        transition:
            background 0.2s,
            transform 0.15s;
    }
    .mob-appbar-btn:active {
        transform: scale(0.92);
        background: rgba(44, 24, 16, 0.08);
    }
    .mob-appbar-btn-active {
        color: #dc2626;
        background: rgba(220, 38, 38, 0.06);
    }
    .mob-appbar-btn-active::after {
        content: "";
        position: absolute;
        top: 6px;
        right: 6px;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #dc2626;
        border: 1.5px solid #fff;
    }
    .mob-filter-badge {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--terra, #c85a2a);
        display: none;
    }
    .mob-filter-badge.active {
        display: block;
    }

    /* ─── SEARCH BAR (expandable, under global app bar) ─── */
    .mob-search-bar {
        display: none;
        align-items: center;
        gap: 10px;
        padding: 0 18px 12px;
        margin: -16px -16px 12px;
        background: rgba(251, 247, 240, 0.94);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        animation: mobSlideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .mob-search-bar.open {
        display: flex;
    }
    .mob-search-bar svg {
        flex-shrink: 0;
        color: var(--txt-m, #8a7a6c);
    }
    .mob-search-bar input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 0.88rem;
        color: var(--txt, #2c1810);
        outline: none;
        padding: 8px 0;
    }
    .mob-search-bar input::placeholder {
        color: var(--txt-xl, #c4b5a7);
    }
    .mob-search-cancel {
        border: none;
        background: none;
        color: var(--terra, #c85a2a);
        font-size: 0.78rem;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        padding: 6px 2px;
    }

    /* ─── HIDE DESKTOP ELEMENTS ON MOBILE ─── */
    #tab-guests .page-header,
    #tab-guests .guests-subnav,
    #tab-guests .guests-quick-add,
    #tab-guests .guests-filters {
        display: none !important;
    }

    /* Hide all tab-panel page-headers on mobile (global app bar replaces them) */
    .tab-panel > .page-header {
        display: none !important;
    }
    /* Hide gallery desktop elements on mobile (moved to appbar/filter sheet/FAB) */
    #tab-gallery .gal-filters,
    #tab-gallery .section-desc,
    #tab-gallery .view-toggle,
    #tab-gallery .upload-zone,
    #tab-gallery .upload-progress,
    #tab-gallery .gal-stats,
    #tab-gallery .bulk-bar {
        display: none !important;
    }

    /* Gallery mobile hint + FAB */
    .mob-gal-hint {
        display: block;
        font-size: 0.7rem;
        color: var(--txt-l, #a09080);
        text-align: center;
        padding: 16px 20px;
        letter-spacing: 0.02em;
        background: rgba(255, 255, 255, 0.6);
        border: 2px dashed rgba(44, 32, 22, 0.1);
        border-radius: 16px;
        margin: 8px 16px;
    }
    /* Gallery FAB inherits .mob-fab styles (gold gradient, 56px circle, spring animation) */

    /* ─── GALLERY: mobile cards + detail sheet ─── */
    #tab-gallery .table-wrap {
        display: block;
        overflow: visible;
    }
    #tab-gallery .table-wrap table {
        display: none;
    }
    .mob-gal-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .mob-gal-card {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: #fff;
        border-radius: 14px;
        border: 1px solid rgba(44, 24, 16, 0.06);
        cursor: pointer;
        transition: background 0.15s;
    }
    .mob-gal-card:active {
        transform: scale(0.985);
    }
    .mob-gal-card-thumb {
        width: 56px;
        height: 56px;
        border-radius: 10px;
        overflow: hidden;
        flex-shrink: 0;
        background: rgba(44, 24, 16, 0.04);
    }
    .mob-gal-card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .mob-gal-card-info {
        flex: 1;
        min-width: 0;
    }
    .mob-gal-card-name {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--txt, #2c1810);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mob-gal-card-meta {
        font-size: 0.68rem;
        color: var(--txt-m, #8a7a6c);
        margin-top: 2px;
    }
    .mob-gal-card-caption {
        font-size: 0.68rem;
        color: var(--gold, #b8956a);
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mob-gal-card-chevron {
        flex-shrink: 0;
        color: rgba(44, 24, 16, 0.2);
    }

    /* Gallery detail: full-width image preview */
    .mob-gal-preview {
        /* margin: -20px -20px 16px -20px; */
        border-radius: 16px;
        overflow: hidden;
        background: rgba(44, 24, 16, 0.03);
        max-height: 50vh;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
    }
    .mob-gal-preview img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
        max-height: 50vh;
    }
    .mob-gal-title {
        font-size: 0.92rem;
        font-weight: 600;
        color: var(--txt, #2c1810);
        margin-bottom: 4px;
        word-break: break-all;
    }
    .mob-gal-caption {
        font-size: 0.78rem;
        color: var(--txt-m, #8a7a6c);
        margin-bottom: 14px;
        line-height: 1.4;
    }

    /* ─── GUEST PHOTOS: hide desktop elements on mobile ─── */
    #tab-photos .filters,
    #tab-photos .photo-preview-modal-inner,
    #tab-photos .header-actions,
    #photo-subtabs-nav,
    #tab-photos .photos-free-banner,
    #photos-view-toggle,
    #photos-table-view,
    #ph-bulk-bar {
        display: none !important;
    }

    /* PHOTOS: mobile grid view (3 columns) */
    .mob-photo-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
    }
    .mob-photo-grid-item {
        position: relative;
        aspect-ratio: 1;
        border-radius: 4px;
        overflow: hidden;
        background: var(--cream-d, #e8ddd0);
        animation: mobCardIn 0.25s ease both;
        cursor: pointer;
    }
    .mob-photo-grid-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .mob-photo-grid-item:active {
        transform: scale(0.97);
    }
    .mob-photo-grid-video {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(44,24,16,0.08);
        color: var(--txt-m, #8a7a6c);
    }
    .mob-photo-grid-dot {
        position: absolute;
        top: 5px;
        right: 5px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: 1.5px solid #fff;
    }

    /* PHOTOS: quick action buttons grid */
    .mob-photos-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px 0;
    }
    .mob-photos-action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 10px;
        background: #fff;
        border-radius: 12px;
        border: 1px solid rgba(44, 24, 16, 0.08);
        font-size: 0.76rem;
        font-weight: 600;
        color: var(--txt, #2c1810);
        text-decoration: none;
        transition:
            background 0.15s,
            transform 0.15s;
    }
    .mob-photos-action-btn:active {
        background: rgba(44, 24, 16, 0.03);
        transform: scale(0.97);
    }
    .mob-photos-action-btn svg {
        flex-shrink: 0;
        color: var(--gold, #b8956a);
    }

    /* PHOTOS: dashboard padding */
    #photos-dashboard {
        padding: 2px 16px 14px;
    }

    /* PHOTOS: auto-approve toggle mobile */
    #tab-photos .photos-auto-approve {
        padding: 0 16px 8px;
    }

    /* PHOTOS: quota bar + grid full width */
    #tab-photos .photos-quota-bar {
        margin: 0 0 8px;
    }
    #tab-photos .photos-grid {
        display: block;
        padding: 0;
    }

    /* PHOTOS: mobile cards */
    .mob-photo-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .mob-photo-card {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: #fff;
        border-radius: 14px;
        cursor: pointer;
        transition: background 0.15s;
        animation: mobCardIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
    }
    .mob-photo-card:active {
        transform: scale(0.985);
    }
    .mob-photo-card-thumb {
        width: 56px;
        height: 56px;
        border-radius: 10px;
        overflow: hidden;
        flex-shrink: 0;
        background: rgba(44, 24, 16, 0.03);
    }
    .mob-photo-card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .mob-photo-card-video {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(44, 24, 16, 0.06);
        color: var(--txt-m, #8a7a6c);
    }
    .mob-photo-card-info {
        flex: 1;
        min-width: 0;
    }
    .mob-photo-card-name {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--txt, #2c1810);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mob-photo-card-meta {
        font-size: 0.68rem;
        color: var(--txt-m, #8a7a6c);
        margin-top: 2px;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .mob-photo-status-dot {
        display: inline-block;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        flex-shrink: 0;
    }
    .mob-photo-card-caption {
        font-size: 0.68rem;
        color: var(--gold, #b8956a);
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mob-photo-card-chevron {
        flex-shrink: 0;
        color: rgba(44, 24, 16, 0.2);
    }

    /* PHOTOS: detail sheet preview */
    .mob-photo-preview {
        border-radius: 16px;
        overflow: hidden;
        background: rgba(44, 24, 16, 0.03);
        max-height: 50vh;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
    }
    .mob-photo-preview img,
    .mob-photo-preview video {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
        max-height: 50vh;
    }
    .mob-photo-detail-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 6px;
    }
    .mob-photo-detail-name {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--txt, #2c1810);
    }
    .mob-photo-detail-status {
        font-size: 0.62rem;
        font-weight: 600;
        color: #fff;
        padding: 3px 10px;
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }
    .mob-photo-detail-caption {
        font-size: 0.78rem;
        color: var(--txt-m, #8a7a6c);
        margin-bottom: 14px;
        line-height: 1.4;
    }

    /* ─── CHECKLIST: mobile redesign ─── */
    #tab-checklist .checklist-filters,
    #tab-checklist .checklist-toolbar,
    #tab-checklist .checklist-categories {
        display: none !important;
    }
    #tab-checklist .checklist-progress {
        margin: 0 0 8px;
        border-radius: 14px;
    }
    #tab-checklist .checklist-list {
        padding: 0;
    }

    /* CHECKLIST: quick action buttons */
    .mob-cl-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px 0;
    }
    .mob-cl-action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 10px;
        background: #fff;
        border-radius: 12px;
        border: 1px solid rgba(44, 24, 16, 0.08);
        font-size: 0.76rem;
        font-weight: 600;
        color: var(--txt, #2c1810);
        cursor: pointer;
        transition:
            background 0.15s,
            transform 0.15s;
    }
    .mob-cl-action-btn:active {
        background: rgba(44, 24, 16, 0.03);
        transform: scale(0.97);
    }
    .mob-cl-action-btn svg {
        flex-shrink: 0;
        color: var(--gold, #b8956a);
    }

    /* CHECKLIST: mobile cards */
    .mob-cl-cards {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 0;
    }
    .mob-cl-card {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 12px;
        background: #fff;
        border-radius: 14px;
        border-left: 3px solid #f59e0b;
        cursor: pointer;
        transition: background 0.15s;
        animation: mobCardIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
    }
    .mob-cl-card:active {
        transform: scale(0.985);
    }
    .mob-cl-card.completed {
        opacity: 0.55;
    }
    .mob-cl-card.completed .mob-cl-card-title {
        text-decoration: line-through;
    }
    .mob-cl-card.overdue {
        background: #fef2f2;
    }

    /* Custom checkbox */
    .mob-cl-check {
        flex-shrink: 0;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        border: 2px solid rgba(44, 24, 16, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        background: #fff;
    }
    .mob-cl-check input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }
    .mob-cl-checkmark svg {
        opacity: 0;
        transform: scale(0.5);
        transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        color: #fff;
    }
    .mob-cl-check.checked {
        background: var(--sage, #6b9b7a);
        border-color: var(--sage, #6b9b7a);
    }
    .mob-cl-check.checked .mob-cl-checkmark svg {
        opacity: 1;
        transform: scale(1);
    }

    .mob-cl-card-body {
        flex: 1;
        min-width: 0;
    }
    .mob-cl-card-title {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--txt, #2c1810);
        line-height: 1.3;
    }
    .mob-cl-card-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 4px;
        font-size: 0.66rem;
        color: var(--txt-m, #8a7a6c);
    }
    .mob-cl-cat {
        background: rgba(44, 24, 16, 0.04);
        padding: 2px 7px;
        border-radius: 6px;
        font-weight: 500;
    }
    .mob-cl-due {
        font-weight: 500;
    }
    .mob-cl-due.overdue {
        color: #ef4444;
        font-weight: 600;
    }
    .mob-cl-chevron {
        flex-shrink: 0;
        color: rgba(44, 24, 16, 0.2);
    }

    /* CHECKLIST: detail sheet */
    #mob-cl-status-chips,
    #mob-cl-cat-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    .mob-cl-detail-top {
        margin-bottom: 16px;
    }
    .mob-cl-detail-title {
        font-size: 1rem;
        font-weight: 700;
        color: var(--txt, #2c1810);
        line-height: 1.3;
        margin-bottom: 8px;
    }
    .mob-cl-detail-badges {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }
    .mob-cl-pri-badge {
        font-size: 0.62rem;
        font-weight: 600;
        color: #fff;
        padding: 3px 10px;
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .mob-cl-done-badge {
        font-size: 0.62rem;
        font-weight: 600;
        color: #fff;
        background: var(--sage, #6b9b7a);
        padding: 3px 10px;
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .mob-cl-overdue-badge {
        font-size: 0.62rem;
        font-weight: 600;
        color: #fff;
        background: #ef4444;
        padding: 3px 10px;
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    /* ─── DASHBOARD COUNTERS: horizontal scroll strip ─── */
    .guests-dashboard {
        display: flex !important;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 2px 0 14px;
        grid-template-columns: unset !important;
        scrollbar-width: none;
    }
    .guests-dashboard::-webkit-scrollbar {
        display: none;
    }
    .guests-counter {
        flex: 0 0 auto;
        min-width: 120px;
        scroll-snap-align: start;
        padding: 12px 16px;
        border-radius: 14px;
    }
    #tab-guests .guests-counter-chart {
        flex: 0 0 220px;
        min-width: 220px;
        grid-column: unset !important;
    }

    /* ─── GUEST CARDS: app-style ─── */
    #guests-tbody tr {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition:
            transform 0.15s,
            box-shadow 0.15s;
    }
    #guests-tbody tr:active {
        transform: scale(0.985);
        box-shadow: none;
    }
    /* Hide inline actions & checkboxes on mobile — detail sheet replaces them */
    #guests-tbody .td-check,
    #guests-tbody .td-actions {
        display: none !important;
    }
    /* Name cell — allow more space */
    #guests-tbody td:nth-child(2) {
        font-size: 0.88rem;
    }

    /* ─── Sort bottom sheet ─── */
    .mob-sheet-compact {
        max-height: 60vh;
    }
    .mob-sheet-title {
        padding: 0 20px 12px;
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--txt, #2c2016);
        letter-spacing: 0.02em;
    }
    .mob-sort-options {
        padding: 0 12px 12px;
    }
    .mob-sort-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 13px 12px;
        border: none;
        background: none;
        font-size: 0.84rem;
        font-family: inherit;
        color: var(--txt, #2c2016);
        border-radius: 10px;
        cursor: pointer;
        transition: background 0.15s;
    }
    .mob-sort-btn:active {
        background: rgba(44, 32, 22, 0.06);
    }
    .mob-sort-btn.active {
        background: rgba(184, 149, 106, 0.12);
        color: var(--gold, #b8956a);
        font-weight: 600;
    }
    .mob-sort-btn svg {
        flex-shrink: 0;
        opacity: 0.5;
    }
    .mob-sort-btn.active svg {
        opacity: 1;
        color: var(--gold, #b8956a);
    }
    .mob-sort-dir {
        margin-left: auto;
        font-size: 0.7rem;
        opacity: 0.5;
        font-weight: 400;
    }
    .mob-sort-btn.active .mob-sort-dir {
        opacity: 0.8;
    }

    /* ─── GUESTBOOK: mobile app style ─── */
    #tab-guestbook .page-header,
    #tab-guestbook .filters,
    #tab-guestbook .gb-subtitle,
    #tab-guestbook .table-wrap,
    #tab-guestbook .pagination {
        display: none !important;
    }

    /* ─── MESSAGES: mobile app style ─── */
    #tab-messages.active {
        position: static !important;
        display: block !important;
        z-index: auto !important;
        overflow: visible !important;
        animation: none !important;
        padding: 0 !important;
    }
    #tab-messages .msgbox-layout,
    #tab-messages .msgbox-backdrop,
    #tab-messages .msgbox-mobile-tabs,
    #tab-messages .msg-dashbar,
    #tab-messages .msg-reminder-card,
    #tab-messages .msg-templates {
        display: none !important;
    }

    /* ─── REGISTRY: mobile app style ─── */
    #tab-registry .page-header,
    #tab-registry .reg-filter-bar,
    #tab-registry .reg-items,
    #tab-registry .reg-subtabs,
    #tab-registry .reg-filters {
        display: none !important;
    }
    .reg-public-link {
        margin-top: 0 !important;
        margin-bottom: 20px;
    }

    /* Dashboard counters — horizontal scroll strip */
    .reg-dashboard {
        display: flex !important;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        /* padding: 2px 0 14px; */
        grid-template-columns: unset !important;
        scrollbar-width: none;
    }
    .reg-dashboard::-webkit-scrollbar {
        display: none;
    }
    .reg-counter {
        flex: 0 0 auto;
        min-width: 120px;
        scroll-snap-align: start;
    }

    /* ─── EVENTS SUB-TAB: mobile app style ─── */
    #subtab-events .subtab-header .btn {
        display: none !important;
    }
    #subtab-events .empty-card .btn {
        display: none !important;
    }
    #events-tbody tr {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition:
            transform 0.15s,
            box-shadow 0.15s;
    }
    #events-tbody tr:active {
        transform: scale(0.985);
        box-shadow: none;
    }
    #events-tbody .td-actions {
        display: none !important;
    }

    /* ─── HOUSEHOLDS SUB-TAB: mobile app style ─── */
    #subtab-households .subtab-header .btn {
        display: none !important;
    }
    #subtab-households .empty-card .btn {
        display: none !important;
    }
    #households-tbody tr {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition:
            transform 0.15s,
            box-shadow 0.15s;
    }
    #households-tbody tr:active {
        transform: scale(0.985);
        box-shadow: none;
    }
    #households-tbody .td-actions {
        display: none !important;
    }

    /* ─── QUESTIONS SUB-TAB: mobile app style ─── */
    #subtab-questions .subtab-header .btn {
        display: none !important;
    }
    #subtab-questions .empty-card .btn {
        display: none !important;
    }
    #questions-tbody tr {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition:
            transform 0.15s,
            box-shadow 0.15s;
    }
    #questions-tbody tr:active {
        transform: scale(0.985);
        box-shadow: none;
    }
    #questions-tbody .td-actions {
        display: none !important;
    }
    #questions-tbody .td-drag {
        display: none !important;
    }

    /* ─── MEALS SUB-TAB: mobile app style ─── */
    #subtab-meals .meals-add-row {
        display: none !important;
    }
    .meal-option-row {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.15s;
    }
    .meal-option-row:active {
        transform: scale(0.985);
    }
    .meal-option-actions {
        display: none !important;
    }

    /* ─── Bottom sheet form fields ─── */
    .mob-sheet-form {
        padding: 0 20px 8px;
    }
    .mob-sheet-field {
        margin-bottom: 16px;
    }
    .mob-sheet-field label {
        display: block;
        font-size: 0.72rem;
        font-weight: 500;
        color: var(--txt-m, #8a7e72);
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .mob-sheet-field input[type="text"] {
        width: 100%;
        padding: 12px 14px;
        border: 1.5px solid rgba(44, 32, 22, 0.12);
        border-radius: 10px;
        font-size: 0.88rem;
        font-family: inherit;
        background: #fff;
        transition: border-color 0.2s;
    }
    .mob-sheet-field input[type="text"]:focus {
        outline: none;
        border-color: var(--gold, #b8956a);
    }
    .mob-color-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .mob-color-input {
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        padding: 2px;
    }
    .mob-color-preview {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        border: 1.5px solid rgba(44, 32, 22, 0.1);
    }

    /* ─── FAB ─── */
    .mob-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 16px);
        right: 20px;
        z-index: 46;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(135deg, var(--gold, #b8956a), #c9a474);
        color: #fff;
        cursor: pointer;
        box-shadow:
            0 6px 20px rgba(184, 149, 106, 0.4),
            0 2px 6px rgba(0, 0, 0, 0.1);
        transition:
            transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
            box-shadow 0.2s;
        animation: mobFabIn 0.4s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
    .mob-fab:active {
        transform: scale(0.88);
        box-shadow: 0 2px 8px rgba(184, 149, 106, 0.3);
    }
    @keyframes mobFabIn {
        from {
            opacity: 0;
            transform: scale(0) rotate(-45deg);
        }
        to {
            opacity: 1;
            transform: scale(1) rotate(0);
        }
    }

    /* ─── GUESTS BOTTOM TAB BAR ─── */
    .mob-tabbar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 45;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-top: 1px solid rgba(44, 24, 16, 0.06);
        padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 24px rgba(44, 24, 16, 0.05);
    }
    .mob-tabbar-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        border: none;
        background: none;
        cursor: pointer;
        padding: 8px 2px 4px;
        position: relative;
        color: var(--txt-m, #8a7a6c);
        transition: color 0.2s;
        -webkit-tap-highlight-color: transparent;
    }
    .mob-tabbar-btn span {
        font-size: 0.6rem;
        font-weight: 600;
        letter-spacing: 0.02em;
    }
    .mob-tabbar-btn svg {
        width: 22px;
        height: 22px;
        transition: transform 0.2s;
    }
    .mob-tabbar-btn.active {
        color: var(--gold, #b8956a);
    }
    .mob-tabbar-btn.active svg {
        transform: scale(1.12);
    }
    .mob-tabbar-btn.active::after {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 3px;
        border-radius: 0 0 4px 4px;
        background: var(--gold, #b8956a);
    }
    .mob-tabbar-btn:active {
        opacity: 0.6;
    }

    /* Pad guests content so bottom tab bar doesn't overlap */
    #tab-guests {
        padding-bottom: 80px !important;
    }

    /* ─── BOTTOM SHEETS (shared) ─── */
    .mob-sheet-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 50;
        background: rgba(44, 24, 16, 0.35);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        align-items: flex-end;
        opacity: 0;
        transition: opacity 0.35s ease;
    }
    .mob-sheet-overlay.open {
        opacity: 1;
    }
    .mob-sheet {
        width: 100%;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        border-radius: 20px 20px 0 0;
        padding: 8px 20px calc(20px + env(safe-area-inset-bottom, 0px));
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    }
    .mob-sheet-overlay.open .mob-sheet {
        transform: translateY(0);
    }
    .mob-sheet-handle {
        width: 40px;
        height: 4px;
        border-radius: 2px;
        background: rgba(44, 24, 16, 0.18);
        margin: 8px auto 12px;
        cursor: grab;
        touch-action: none;
    }
    .mob-sheet-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 20px;
        color: var(--txt, #2c1810);
    }

    /* ─── FILTER SHEET ─── */
    .mob-sheet-section {
        margin-bottom: 20px;
    }
    .mob-sheet-section > label {
        /* display: block; */
        /* font-size: 0.62rem; */
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--txt-m, #8a7a6c);
        margin-bottom: 10px;
    }
    .mob-segmented {
        display: flex;
        gap: 0;
        background: rgba(44, 24, 16, 0.04);
        border-radius: 10px;
        padding: 3px;
    }
    .mob-segmented button {
        flex: 1;
        border: none;
        background: none;
        padding: 9px 4px;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--txt-m, #8a7a6c);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }
    .mob-segmented button.active {
        background: #fff;
        color: var(--txt, #2c1810);
        box-shadow: 0 1px 4px rgba(44, 24, 16, 0.08);
    }
    .mob-chip-scroll {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 2px 0;
        scrollbar-width: none;
    }
    .mob-chip-scroll::-webkit-scrollbar {
        display: none;
    }
    .mob-chip {
        flex: 0 0 auto;
        padding: 7px 14px;
        border-radius: 100px;
        font-size: 0.7rem;
        font-weight: 500;
        border: 1px solid rgba(44, 24, 16, 0.1);
        background: #fff;
        color: var(--txt, #2c1810);
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }
    .mob-chip.active {
        background: var(--gold, #b8956a);
        color: #fff;
        border-color: var(--gold, #b8956a);
    }
    .mob-sheet-apply {
        width: 100%;
        padding: 14px;
        border: none;
        border-radius: 14px;
        background: var(--txt, #2c1810);
        color: #fff;
        font-size: 0.82rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        cursor: pointer;
        transition: opacity 0.2s;
        margin-top: 8px;
    }
    .mob-sheet-apply:active {
        opacity: 0.8;
    }
    .mob-sheet-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.82rem;
        font-weight: 500;
        color: var(--txt, #2c1810);
        cursor: pointer;
    }
    .mob-sheet-toggle input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--gold, #b8956a);
        cursor: pointer;
    }
    /* iOS-style toggle switch */
    .mob-switch-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        font-size: 0.82rem;
        font-weight: 500;
        color: var(--txt, #2c1810);
        cursor: pointer;
    }
    .mob-switch-row input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }
    .mob-switch-track {
        display: block;
        position: relative;
        flex-shrink: 0;
        width: 44px;
        height: 26px;
        border-radius: 13px;
        background: #ddd;
        transition: background 0.25s;
    }
    .mob-switch-track::before {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .mob-switch-row input:checked + .mob-switch-track {
        background: var(--gold, #b8956a);
    }
    .mob-switch-row input:checked + .mob-switch-track::before {
        transform: translateX(18px);
    }
    /* Switch card — text left, toggle right, tinted bg */
    .mob-switch-card {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 14px 16px;
        border-radius: 14px;
        background: rgba(44, 24, 16, 0.04);
        border: 1px solid rgba(44, 24, 16, 0.06);
        cursor: pointer;
        transition:
            background 0.25s,
            border-color 0.25s;
        text-transform: none !important;
        letter-spacing: 0 !important;
        position: relative;
    }
    .mob-switch-card.active {
        background: rgba(184, 149, 106, 0.12);
        border-color: rgba(184, 149, 106, 0.3);
    }
    .mob-switch-card .mob-switch-track {
        flex-shrink: 0;
    }
    .mob-switch-card.active .mob-switch-track {
        background: var(--gold, #b8956a);
    }
    .mob-switch-card.active .mob-switch-track::before {
        transform: translateX(18px);
    }
    .mob-switch-card-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
        flex: 1;
        min-width: 0;
    }
    .mob-switch-card-label {
        font-size: 0.84rem;
        font-weight: 600;
        color: var(--txt, #2c1810);
        text-transform: none !important;
        letter-spacing: 0 !important;
    }
    .mob-switch-card-status {
        font-size: 0.7rem;
        font-weight: 400;
        color: var(--txt-l, #8b7e74);
        transition: color 0.25s;
    }
    .mob-switch-card.active .mob-switch-card-status {
        color: var(--gold, #b8956a);
    }
    .mob-sheet-action-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 12px 14px;
        border: 1px solid rgba(44, 24, 16, 0.1);
        border-radius: 12px;
        background: #fff;
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--txt, #2c1810);
        cursor: pointer;
        transition: background 0.15s;
    }
    .mob-sheet-action-btn:active {
        background: var(--cream-d, #e8ddd0);
    }

    /* ─── GUEST DETAIL SHEET ─── */
    .mob-detail-header {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(44, 24, 16, 0.06);
    }
    .mob-detail-avatar {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.82rem;
        font-weight: 700;
        color: #fff;
        flex-shrink: 0;
    }
    .mob-detail-name {
        flex: 1;
        min-width: 0;
    }
    .mob-detail-name h4 {
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 2px;
        color: var(--txt, #2c1810);
    }
    .mob-detail-name small {
        font-size: 0.72rem;
        color: var(--txt-m, #8a7a6c);
    }
    .mob-detail-rows {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
    .mob-detail-row {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }
    .mob-detail-row svg {
        flex-shrink: 0;
        color: var(--txt-xl, #c4b5a7);
        margin-top: 1px;
    }
    .mob-detail-row-content {
        flex: 1;
        min-width: 0;
    }
    .mob-detail-row-label {
        font-size: 0.58rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--txt-m, #8a7a6c);
        font-weight: 600;
        margin-bottom: 1px;
    }
    .mob-detail-row-value {
        font-size: 0.82rem;
        color: var(--txt, #2c1810);
        word-break: break-word;
    }
    .mob-detail-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding-top: 16px;
        border-top: 1px solid rgba(44, 24, 16, 0.06);
    }
    .mob-detail-actions button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 8px;
        border: 1px solid rgba(44, 24, 16, 0.08);
        border-radius: 12px;
        background: #fff;
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--txt, #2c1810);
        cursor: pointer;
        transition: all 0.15s;
    }
    .mob-detail-actions button:active {
        background: rgba(44, 24, 16, 0.03);
        transform: scale(0.97);
    }
    .mob-detail-actions button.mob-action-danger {
        color: #dc2626;
        border-color: rgba(220, 38, 38, 0.15);
    }
    .mob-detail-actions button.mob-action-primary {
        background: var(--txt, #2c1810);
        color: #fff;
        border-color: transparent;
    }

    /* ─── ANIMATIONS ─── */
    @keyframes mobSlideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    @keyframes mobCardIn {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    #guests-tbody tr {
        animation: mobCardIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
    }
    #guests-tbody tr:nth-child(1) {
        animation-delay: 0s;
    }
    #guests-tbody tr:nth-child(2) {
        animation-delay: 0.03s;
    }
    #guests-tbody tr:nth-child(3) {
        animation-delay: 0.06s;
    }
    #guests-tbody tr:nth-child(4) {
        animation-delay: 0.09s;
    }
    #guests-tbody tr:nth-child(5) {
        animation-delay: 0.12s;
    }
    #guests-tbody tr:nth-child(6) {
        animation-delay: 0.15s;
    }
    #guests-tbody tr:nth-child(7) {
        animation-delay: 0.18s;
    }
    #guests-tbody tr:nth-child(8) {
        animation-delay: 0.21s;
    }
    #guests-tbody tr:nth-child(n + 9) {
        animation-delay: 0.24s;
    }
    /* ─── DISABLE TEXT SELECTION ON CARDS (prevents browser select on long-press) ─── */
    .mob-vd-card,
    .mob-cl-card,
    .mob-gal-card,
    .mob-photo-card,
    .mob-budget-card,
    .mob-guest-card,
    .mob-gb-card,
    .mob-msg-card,
    .mob-reg-card,
    .mob-event-card,
    .mob-hh-card,
    .mob-q-card,
    .mob-meal-card {
        -webkit-user-select: none;
        user-select: none;
    }

    /* ─── Bottom padding for all mobile card lists (above bottom nav) ─── */
    #mob-guest-list,
    #mob-gb-list,
    #mob-msg-list,
    #mob-reg-list,
    #mob-budget-list,
    #mob-vd-list,
    #mob-event-list,
    #mob-hh-list,
    #mob-q-list,
    #mob-meal-list {
        padding-bottom: 55px;
    }

    /* ═══ GUEST LIST MOBILE CARDS ═══ */
    #mob-guest-list {
        display: block !important;
    }
    .mob-guest-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 4px 0;
    }
    .mob-guest-card {
        position: relative;
        z-index: 1;
        background: #fff;
        border-radius: 14px;
        padding: 14px 40px 14px 16px;
        border-left: 3px solid var(--terra);
        box-shadow: 0 1px 4px rgba(44, 24, 16, 0.06);
        cursor: pointer;
        transition: transform 0.12s;
        animation: mobCardIn 0.25s ease both;
    }
    .mob-guest-card:active {
        transform: scale(0.985);
    }
    .mob-guest-card-top {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
    }
    .mob-guest-status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
    }
    .mob-guest-status-label {
        font-size: 0.68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: var(--txt-m);
    }
    .mob-guest-meal {
        margin-left: auto;
        font-size: 0.72rem;
        font-weight: 500;
        color: var(--sage);
    }
    .mob-guest-card-name {
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--txt, #2c1810);
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 30px);
    }
    .mob-guest-card-meta {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }
    .mob-guest-email {
        font-size: 0.72rem;
        color: var(--txt-l, #8b7e74);
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }
    .mob-guest-tags {
        font-size: 0.65rem;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 10px;
        background: rgba(143, 168, 135, 0.12);
        color: var(--sage, #8fa887);
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .mob-guest-plusone {
        font-size: 0.65rem;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 8px;
        background: rgba(196, 145, 138, 0.15);
        color: var(--terra);
    }
    .mob-guest-thanked {
        position: absolute;
        right: 32px;
        top: 14px;
        color: var(--terra, #c4918a);
        font-size: 0.6rem;
    }
    .mob-guest-chevron {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--txt-l);
        opacity: 0.4;
    }

    /* ═══ EVENTS MOBILE CARDS ═══ */
    #mob-event-list {
        display: block !important;
    }
    .mob-event-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 4px 0;
    }
    .mob-event-card {
        position: relative;
        z-index: 1;
        background: #fff;
        border-radius: 14px;
        padding: 14px 40px 14px 16px;
        border-left: 3px solid var(--gold, #b8956a);
        box-shadow: 0 1px 4px rgba(44, 24, 16, 0.06);
        cursor: pointer;
        transition: transform 0.12s;
        animation: mobCardIn 0.25s ease both;
    }
    .mob-event-card:active {
        transform: scale(0.985);
    }
    .mob-ev-card-top {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
    }
    .mob-ev-date {
        font-size: 0.68rem;
        font-weight: 600;
        color: var(--gold, #b8956a);
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .mob-ev-card-name {
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--txt, #2c1810);
        margin-bottom: 4px;
    }
    .mob-ev-card-loc {
        font-size: 0.72rem;
        color: var(--txt-l, #8b7e74);
        display: flex;
        align-items: center;
        gap: 4px;
        margin-bottom: 6px;
    }
    .mob-ev-card-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .mob-ev-tag {
        display: inline-block;
        font-size: 0.62rem;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 10px;
        background: rgba(143, 168, 135, 0.12);
        color: var(--sage, #8fa887);
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .mob-ev-tag.all {
        background: rgba(184, 149, 106, 0.12);
        color: var(--gold, #b8956a);
    }

    /* ═══ HOUSEHOLDS MOBILE CARDS ═══ */
    #mob-hh-list {
        display: block !important;
    }
    .mob-hh-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 4px 0;
    }
    .mob-hh-card {
        position: relative;
        z-index: 1;
        background: #fff;
        border-radius: 14px;
        padding: 14px 40px 14px 16px;
        box-shadow: 0 1px 4px rgba(44, 24, 16, 0.06);
        cursor: pointer;
        transition: transform 0.12s;
        animation: mobCardIn 0.25s ease both;
    }
    .mob-hh-card:active {
        transform: scale(0.985);
    }
    .mob-hh-card-top {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
    }
    .mob-hh-count {
        font-size: 0.68rem;
        font-weight: 600;
        color: var(--txt-m, #5a4a3e);
    }
    .mob-hh-card-name {
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--txt, #2c1810);
        margin-bottom: 6px;
    }
    .mob-hh-card-members {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
    }
    .mob-hh-avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 700;
        font-size: 0.58rem;
        border: 2px solid #fff;
        margin-right: -6px;
    }
    .mob-hh-avatar.more {
        background: var(--cream-d, #e8ddd0);
        color: var(--txt-m);
        font-size: 0.6rem;
    }
    .mob-hh-card-addr {
        font-size: 0.72rem;
        color: var(--txt-l, #8b7e74);
        display: flex;
        align-items: center;
        gap: 4px;
        margin-top: 4px;
    }

    /* ═══ QUESTIONS MOBILE CARDS ═══ */
    #mob-q-list {
        display: block !important;
    }
    .mob-q-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 4px 0;
    }
    .mob-q-card {
        position: relative;
        z-index: 1;
        background: #fff;
        border-radius: 14px;
        padding: 14px 40px 14px 16px;
        box-shadow: 0 1px 4px rgba(44, 24, 16, 0.06);
        cursor: pointer;
        transition: transform 0.12s;
        animation: mobCardIn 0.25s ease both;
    }
    .mob-q-card:active {
        transform: scale(0.985);
    }
    .mob-q-card-top {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 6px;
    }
    .mob-q-type {
        display: inline-block;
        font-size: 0.65rem;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 10px;
        background: rgba(143, 168, 135, 0.12);
        color: var(--sage, #8fa887);
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .mob-q-req {
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--terra, #c4918a);
    }
    .mob-q-cond {
        font-size: 0.65rem;
        color: var(--txt-l, #8b7e74);
        font-style: italic;
    }
    .mob-q-card-text {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--txt, #2c1810);
        margin-bottom: 4px;
        line-height: 1.3;
    }
    .mob-q-card-opts {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 4px;
    }
    .mob-q-opt {
        display: inline-block;
        font-size: 0.62rem;
        font-weight: 500;
        padding: 2px 8px;
        border-radius: 10px;
        background: rgba(44, 24, 16, 0.05);
        color: var(--txt-m, #5a4a3e);
    }
    .mob-q-opt.more {
        background: rgba(184, 149, 106, 0.12);
        color: var(--gold, #b8956a);
    }

    /* Question templates — horizontal scroll like dashboard */
    .questions-templates {
        margin: 0 -16px;
        padding: 0 16px;
    }
    .questions-templates h3 {
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--txt-m, #5a4a3e);
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .questions-template-grid {
        display: flex !important;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }
    .questions-template-grid::-webkit-scrollbar {
        display: none;
    }
    .questions-template-grid .template-card {
        flex: 0 0 auto;
        min-width: 120px;
        max-width: 140px;
        scroll-snap-align: start;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 0.72rem;
    }

    /* ═══ MEALS MOBILE CARDS ═══ */
    #mob-meal-list {
        display: block !important;
    }
    .mob-meal-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 4px 0;
    }
    .mob-meal-card {
        position: relative;
        z-index: 1;
        background: #fff;
        border-radius: 14px;
        padding: 14px 40px 14px 16px;
        box-shadow: 0 1px 4px rgba(44, 24, 16, 0.06);
        cursor: pointer;
        transition: transform 0.12s;
        animation: mobCardIn 0.25s ease both;
    }
    .mob-meal-card:active {
        transform: scale(0.985);
    }
    .mob-meal-card-top {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
    }
    .mob-meal-color {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        flex-shrink: 0;
    }
    .mob-meal-count {
        font-size: 0.68rem;
        font-weight: 600;
        color: var(--txt-m, #5a4a3e);
        margin-left: auto;
    }
    .mob-meal-card-name {
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--txt, #2c1810);
        margin-bottom: 6px;
    }
    .mob-meal-bar {
        height: 5px;
        border-radius: 3px;
        background: #f0ebe2;
        overflow: hidden;
    }
    .mob-meal-bar-fill {
        height: 100%;
        border-radius: 3px;
        transition: width 0.3s;
    }
    .mob-meal-dietary {
        margin-top: 16px;
        padding: 14px 16px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 1px 4px rgba(44, 24, 16, 0.06);
    }
    .mob-meal-dietary-title {
        font-size: 0.74rem;
        font-weight: 700;
        color: var(--txt-m, #5a4a3e);
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .mob-meal-dietary-row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 4px 0;
        font-size: 0.78rem;
        color: var(--txt, #2c1810);
    }
    .mob-meal-dietary-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--sage, #8fa887);
        flex-shrink: 0;
    }
    .mob-meal-dietary-count {
        margin-left: auto;
        font-weight: 700;
        color: var(--txt-m);
        font-size: 0.75rem;
    }

    /* ═══ GUESTBOOK MOBILE CARDS ═══ */
    #mob-gb-list {
        display: block !important;
    }
    .mob-gb-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 4px 0;
    }
    .mob-gb-card {
        position: relative;
        z-index: 1;
        background: #fff;
        border-radius: 14px;
        padding: 14px 36px 14px 16px;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        box-shadow: 0 1px 4px rgba(44, 24, 16, 0.06);
        cursor: pointer;
        transition: transform 0.12s;
        animation: mobCardIn 0.25s ease both;
    }
    .mob-gb-card:active {
        transform: scale(0.985);
    }
    .mob-gb-card-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 700;
        font-size: 0.72rem;
    }
    .mob-gb-card-body {
        flex: 1;
        min-width: 0;
    }
    .mob-gb-card-top {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
    }
    .mob-gb-card-name {
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--txt, #2c1810);
    }
    .mob-gb-card-date {
        margin-left: auto;
        font-size: 0.68rem;
        color: var(--txt-l, #8b7e74);
        white-space: nowrap;
    }
    .mob-gb-card-msg {
        font-size: 0.78rem;
        color: var(--txt-m, #5a4a3e);
        line-height: 1.4;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .mob-gb-card-thanked {
        position: absolute;
        bottom: 10px;
        right: 12px;
        color: var(--terra, #c4918a);
        font-size: 0.8rem;
    }
    .mob-gb-chevron {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--txt-l);
        opacity: 0.4;
    }

    /* ═══ MESSAGES MOBILE CARDS ═══ */
    #mob-msg-list {
        display: block !important;
    }
    .mob-msg-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 4px 0;
    }
    .mob-msg-card {
        position: relative;
        z-index: 1;
        background: #fff;
        border-radius: 14px;
        padding: 14px 40px 14px 16px;
        border-left: 3px solid var(--terra);
        box-shadow: 0 1px 4px rgba(44, 24, 16, 0.06);
        cursor: pointer;
        transition: transform 0.12s;
        animation: mobCardIn 0.25s ease both;
    }
    .mob-msg-card:active {
        transform: scale(0.985);
    }
    .mob-msg-card-top {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
    }
    .mob-msg-status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
    }
    .mob-msg-status-label {
        font-size: 0.68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: var(--txt-m);
    }
    .mob-msg-channel {
        margin-left: 2px;
        font-size: 0.72rem;
    }
    .mob-msg-date {
        margin-left: auto;
        font-size: 0.68rem;
        color: var(--txt-l);
        white-space: nowrap;
    }
    .mob-msg-card-subject {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--txt, #2c1810);
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 30px);
    }
    .mob-msg-card-meta {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .mob-msg-recipients {
        font-size: 0.72rem;
        color: var(--txt-l, #8b7e74);
    }
    .mob-msg-chevron {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--txt-l);
        opacity: 0.4;
    }
    /* Messages menu grid */
    .mob-msg-menu-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .mob-msg-menu-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 14px 8px;
        border-radius: 12px;
        border: 1px solid rgba(44, 24, 16, 0.08);
        background: #fff;
        cursor: pointer;
        transition:
            background 0.15s,
            transform 0.12s;
        font-family: "Jost", sans-serif;
        font-size: 0.72rem;
        color: var(--txt, #2c1810);
        text-align: center;
    }
    .mob-msg-menu-item:active {
        transform: scale(0.96);
        background: rgba(44, 24, 16, 0.04);
    }
    .mob-msg-menu-item svg {
        color: var(--terra, #c8582a);
        flex-shrink: 0;
    }

    /* ═══ REGISTRY MOBILE CARDS ═══ */
    #mob-reg-list {
        display: block !important;
    }
    .mob-reg-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 4px 0;
    }
    .mob-reg-card {
        position: relative;
        z-index: 1;
        background: #fff;
        border-radius: 14px;
        padding: 14px 40px 14px 16px;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        box-shadow: 0 1px 4px rgba(44, 24, 16, 0.06);
        cursor: pointer;
        transition: transform 0.12s;
        animation: mobCardIn 0.25s ease both;
    }
    .mob-reg-card:active {
        transform: scale(0.985);
    }
    .mob-reg-card.purchased {
        opacity: 0.7;
    }
    .mob-reg-card-img {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        overflow: hidden;
        flex-shrink: 0;
        background: #f5f0e8;
    }
    .mob-reg-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .mob-reg-card-body {
        flex: 1;
        min-width: 0;
    }
    .mob-reg-card-top {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
    }
    .mob-reg-status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
    }
    .mob-reg-cat {
        display: inline-block;
        font-size: 0.65rem;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 10px;
        background: rgba(143, 168, 135, 0.12);
        color: var(--sage, #8fa887);
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .mob-reg-purchased {
        font-size: 0.72rem;
        color: #22c55e;
        font-weight: 700;
    }
    .mob-reg-price {
        margin-left: auto;
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--terra, #c4918a);
    }
    .mob-reg-card-title {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--txt, #2c1810);
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 30px);
    }
    .mob-reg-card-desc {
        font-size: 0.72rem;
        color: var(--txt-l, #8b7e74);
        line-height: 1.3;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }
    .mob-reg-fund-bar {
        height: 5px;
        border-radius: 3px;
        background: #f0ebe2;
        margin-top: 6px;
        overflow: hidden;
    }
    .mob-reg-fund-fill {
        height: 100%;
        border-radius: 3px;
        background: linear-gradient(90deg, #b8956a, #d4a76a);
        transition: width 0.3s;
    }
    .mob-reg-chevron {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--txt-l);
        opacity: 0.4;
        flex-shrink: 0;
    }

    /* ─── REGISTRY GRID VIEW ─── */
    .mob-reg-grid-view .mob-reg-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .mob-reg-grid-view .mob-reg-card {
        flex-direction: column;
        padding: 10px;
    }
    .mob-reg-grid-view .mob-reg-card-img {
        width: 100%;
        height: 80px;
        margin-bottom: 8px;
    }
    .mob-reg-grid-view .mob-reg-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .mob-reg-grid-view .mob-reg-chevron {
        display: none;
    }
    .mob-reg-grid-view .mob-reg-card-top {
        flex-wrap: wrap;
    }
    .mob-reg-grid-view .mob-reg-card-title {
        font-size: 0.78rem;
    }
    .mob-reg-grid-view .mob-reg-card-desc {
        display: none;
    }
    .mob-reg-detail-img {
        width: 100%;
        height: 180px;
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 12px;
        background: #f5f0e8;
    }
    .mob-reg-detail-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ─── REGISTRY CATEGORY CARDS ─── */
    .mob-reg-cat-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 4px 0;
    }
    .mob-reg-cat-card {
        position: relative;
        z-index: 1;
        background: #fff;
        border-radius: 14px;
        padding: 14px 40px 14px 16px;
        box-shadow: 0 1px 4px rgba(44, 24, 16, 0.06);
        cursor: pointer;
        transition: transform 0.12s;
        animation: mobCardIn 0.25s ease both;
        -webkit-user-select: none;
        user-select: none;
    }
    .mob-reg-cat-card:active {
        transform: scale(0.985);
    }
    .mob-reg-cat-card-top {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
    }
    .mob-reg-cat-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        border-radius: 8px;
        background: rgba(184, 149, 106, 0.1);
        color: var(--gold, #b8956a);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    /* ─── REGISTRY GIVERS MOBILE ─── */
    .contrib-kebab-btn {
        display: none !important;
    }
    .reg-contributions-section {
        margin-top: 16px;
        padding-top: 0;
        border-top: none;
    }
    .mob-contrib-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 4px 0;
    }
    .mob-contrib-card {
        position: relative;
        z-index: 1;
        background: #fff;
        border-radius: 14px;
        padding: 14px 40px 14px 14px;
        box-shadow: 0 1px 4px rgba(44, 24, 16, 0.06);
        cursor: pointer;
        transition: transform 0.12s;
        animation: mobCardIn 0.25s ease both;
        -webkit-user-select: none;
        user-select: none;
    }
    .mob-contrib-card:active {
        transform: scale(0.985);
    }
    .mob-contrib-card-top {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .mob-contrib-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, #e8d5a8, #d4a76a);
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: "Cormorant Garamond", serif;
        font-size: 0.85rem;
        color: #fff;
        flex-shrink: 0;
        font-weight: 600;
    }
    .mob-contrib-card-info {
        flex: 1;
        min-width: 0;
    }
    .mob-contrib-card-name {
        font-size: 0.82rem;
        font-weight: 500;
        color: var(--txt, #2c1810);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mob-contrib-card-meta {
        font-size: 0.68rem;
        color: var(--txt-l, #8b7a68);
        margin-top: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mob-contrib-card-amount {
        font-family: "Cormorant Garamond", serif;
        font-size: 1rem;
        font-weight: 600;
        color: #c5a55a;
        flex-shrink: 0;
    }
    .mob-contrib-thanked {
        color: #C4918A;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    .mob-contrib-chevron {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--txt-xl, #b0a090);
    }

    /* ─── REGISTRY FAB ACTION SHEET ─── */
    .mob-reg-fab-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 8px 0 4px;
    }
    .mob-reg-fab-action {
        display: flex;
        align-items: center;
        gap: 14px;
        width: 100%;
        padding: 14px 16px;
        border: 1px solid rgba(44, 24, 16, 0.08);
        border-radius: 14px;
        background: #fff;
        cursor: pointer;
        transition: background 0.15s;
        text-align: left;
    }
    .mob-reg-fab-action:active {
        background: var(--cream-d, #e8ddd0);
    }
    .mob-reg-fab-action-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .mob-reg-fab-action-title {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--txt, #2c1810);
    }
    .mob-reg-fab-action-desc {
        font-size: 0.72rem;
        color: var(--txt-m, #7a6b63);
        margin-top: 2px;
    }

    /* ─── SWIPE-LEFT-TO-DELETE ─── */
    .mob-swipe-indicator {
        position: absolute;
        left: 0;
        right: 0;
        background: #ef4444;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 20px;
        color: #fff;
        font-weight: 600;
        font-size: 0.72rem;
        gap: 8px;
        z-index: 0;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.15s;
    }
    .mob-swipe-indicator.visible {
        opacity: 1;
    }

    /* ─── LONG-PRESS BULK SELECT ─── */
    .mob-card-check {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 2px solid rgba(44, 24, 16, 0.15);
        background: #fff;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 3;
        transition: all 0.2s;
    }
    .mob-selecting .mob-card-check {
        display: flex;
    }
    .mob-card-check.checked {
        background: var(--gold, #b8956a);
        border-color: var(--gold, #b8956a);
        color: #fff;
    }
    .mob-card-selected {
        background: rgba(184, 149, 106, 0.08) !important;
        border-left-color: var(--gold, #b8956a) !important;
    }

    /* ─── BULK ACTION BAR ─── */
    .mob-bulk-bar {
        position: fixed;
        bottom: 55px;
        left: 0;
        right: 0;
        background: rgba(44, 24, 16, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: #fff;
        display: flex;
        align-items: center;
        padding: 8px 12px;
        z-index: 100;
        transform: translateY(calc(100% + 55px));
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .mob-bulk-bar.visible {
        transform: translateY(0);
    }
    .mob-bulk-bar-close {
        background: none;
        border: none;
        color: #fff;
        margin-right: 8px;
        padding: 4px;
        line-height: 1;
    }
    .mob-bulk-bar-count {
        flex: 1;
        font-weight: 600;
        font-size: 0.68rem;
        white-space: nowrap;
    }
    .mob-bulk-bar-actions {
        display: flex;
        gap: 6px;
    }
    .mob-bulk-bar-btn {
        background: none;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        font-size: 0.6rem;
        font-weight: 600;
        padding: 5px 10px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 3px;
        white-space: nowrap;
    }
    .mob-bulk-bar-btn:active {
        background: rgba(255, 255, 255, 0.1);
    }
    .mob-bulk-bar-btn.danger {
        color: #fca5a5;
        border-color: rgba(252, 165, 165, 0.3);
    }

    /* ─── UNDO TOAST ─── */
    .mob-undo-toast {
        position: fixed;
        bottom: 130px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        background: rgba(44, 24, 16, 0.92);
        color: #fff;
        padding: 10px 16px;
        border-radius: 12px;
        font-size: 0.72rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: 110;
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    .mob-undo-toast.visible {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }
    .mob-undo-toast button {
        background: var(--gold, #b8956a);
        border: none;
        color: #fff;
        font-weight: 700;
        font-size: 0.68rem;
        padding: 4px 12px;
        border-radius: 6px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
} /* end 768px */

/* ─── 480px refinements ─── */
@media (max-width: 480px) {
    .mob-global-appbar {
        padding: 12px 16px;
        margin: -16px -16px 12px;
    }
    .mob-global-appbar h2 {
        font-size: 1.15rem;
    }
    .mob-gnav-btn span {
        font-size: 0.52rem;
    }
    .mob-gnav-btn svg {
        width: 22px;
        height: 22px;
    }
    .mob-hub-card {
        padding: 16px 14px;
        gap: 14px;
    }
    .mob-hub-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
    .mob-hub-card-title {
        font-size: 0.86rem;
    }
    .mob-appbar {
        padding: 12px 16px;
        margin: -16px -16px 12px;
    }
    .mob-search-bar {
        padding: 0 16px 10px;
        margin: -4px -16px 10px;
    }
    .mob-tabbar-btn span {
        font-size: 0.5rem;
    }
    .mob-detail-actions {
        grid-template-columns: 1fr 1fr;
    }
    .mob-segmented button {
        font-size: 0.62rem;
        padding: 8px 2px;
    }
}
