/* ═══════════════════════════════════════════════════════════════════
   MOBILE DEVICE OVERRIDE — keeps mobile layout in landscape too.
   Applied via JS: <html class="mobile-device"> on real mobile devices.
   These rules ensure structural mobile layout persists across rotation.
═══════════════════════════════════════════════════════════════════ */
html.mobile-device body,
html.mobile-device #app,
html.mobile-device .layout {
    min-height: auto !important;
}
html.mobile-device .mob-menu-btn,
html.mobile-device .sidebar-overlay,
html.mobile-device .sidebar {
    display: none !important;
}
html.mobile-device .main-content {
    margin-left: 0 !important;
    padding: 16px 16px calc(64px + env(safe-area-inset-bottom, 0px)) !important;
}
html.mobile-device .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);
}
html.mobile-device .mob-global-titles {
    flex: 1;
    min-width: 0;
}
html.mobile-device .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;
}
html.mobile-device .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;
}
html.mobile-device .mob-global-subtitle:empty {
    display: none;
}
html.mobile-device .mob-title-editable {
    cursor: pointer;
    border-bottom: 1px dashed rgba(184, 149, 106, 0.5);
    padding-bottom: 1px;
}
html.mobile-device .mob-title-edit-input {
    font-family: var(--heading-font, "Georgia", serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--txt, #2c1810);
    letter-spacing: -0.02em;
    border: none;
    border-bottom: 2px solid var(--gold, #b8956a);
    background: transparent;
    outline: none;
    width: 100%;
    padding: 0 0 2px;
    margin: 0;
    caret-color: var(--gold, #b8956a);
}
html.mobile-device .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;
}
html.mobile-device .mob-global-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
html.mobile-device .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;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 4px;
}
html.mobile-device .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);
}
/* Hide global nav + guests tabbar on entire QR tab */
body.mob-qr-tab .mob-global-nav,
body.mob-qr-tab .mob-tabbar {
    display: none !important;
}
/* Hide global nav on photos tab (has own subtab bar) */
body.mob-photos-tab .mob-global-nav {
    display: none !important;
}
html.mobile-device .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);
    -webkit-tap-highlight-color: transparent;
}
html.mobile-device .mob-gnav-btn span {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
html.mobile-device .mob-gnav-btn.active {
    color: var(--gold, #b8956a);
}
html.mobile-device .mob-gnav-btn.active svg {
    transform: scale(1.12);
}
html.mobile-device .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);
}
html.mobile-device .mob-hub-page {
    padding: 4px 0 20px;
}
html.mobile-device .mob-hub-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
html.mobile-device .mob-hub-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(44, 24, 16, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
html.mobile-device .mob-hub-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(184, 149, 106, 0.08), rgba(184, 149, 106, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold, #b8956a);
    flex-shrink: 0;
}
html.mobile-device .mob-hub-card-info {
    flex: 1;
    min-width: 0;
}
html.mobile-device .mob-hub-card-title {
    font-family: var(--heading-font, "Georgia", serif);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--txt, #2c1810);
    margin: 0 0 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
html.mobile-device .mob-hub-card-desc {
    font-size: 0.72rem;
    color: var(--txt-m, #8a7a6c);
    line-height: 1.35;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.mobile-device .mob-hub-card-arrow {
    color: var(--txt-xl, #b0a090);
    flex-shrink: 0;
}
html.mobile-device .mob-hub-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--txt-xl, #b0a090);
    padding: 16px 4px 6px;
    margin: 0;
}
html.mobile-device .mob-hub-section-label:first-child {
    padding-top: 0;
}
/* Hide all desktop page-headers on mobile device */
html.mobile-device .tab-panel > .page-header {
    display: none !important;
}
/* Appbar buttons */
html.mobile-device .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;
}
/* Sheets */
html.mobile-device .mob-sheet-overlay {
    display: none;
}
html.mobile-device .mob-sheet-overlay.open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(44, 24, 16, 0.15);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: flex-end;
    justify-content: center;
}
html.mobile-device .mob-fab {
    position: fixed;
    bottom: 75px;
    right: 20px;
    z-index: 30;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #b8956a, #d4b896);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(184, 149, 106, 0.35);
}
/* Profile page */
html.mobile-device .mob-profile-page {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--cream, #faf5ee);
    overflow-y: auto;
}
html.mobile-device .mob-profile-page.open {
    display: block;
}
/* Mobile tabbar for subtabs */
html.mobile-device .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);
}
html.mobile-device .mob-tabbar-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px 2px;
    color: var(--txt-m, #8a7a6c);
    font-size: 0.58rem;
    font-weight: 600;
}
html.mobile-device .mob-tabbar-btn.active {
    color: var(--gold, #b8956a);
}
/* Search bar */
html.mobile-device .mob-search-bar {
    display: none;
    padding: 0 16px 10px;
    margin: -10px -16px 12px;
    background: rgba(251, 247, 240, 0.94);
}
html.mobile-device .mob-search-bar.open {
    display: block;
}
