/*
 * Giggly - Event Discovery App
 *
 * Structure:
 * 1. Reset & Base Styles
 * 2. Theme Variables
 * 3. Landing Page
 * 4. App Layout (Header, Tabs, Events)
 * 5. Search Overlay
 * 6. Bottom Navigation
 * 7. Modals
 * 8. Responsive
 *
 * Brand tokens / fonts / global accents: public/css/giggly-brand.css (see BRANDING.md).
 * Bump the ?v= below when changing giggly-brand.css.
 *
 * Brand sheet (tokens + self-hosted @font-face). Keep this a SINGLE @import —
 * a second top-level @import can leave mobile style.css stuck on media=print.
 */

@import url('/css/giggly-brand.css?v=20260726-map-all-events-warm-v1');

/* ==========================================================================
   1. Reset & Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* iOS Safari fixes */
body {
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* iOS Safari (non-standalone): 1px scroll range helps collapse browser chrome in landscape. */
html.giggly-ios-safari-chrome-nudge body {
    min-height: calc(100dvh + 1px);
}

/* Fix iOS input zoom */
input,
select,
textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
}

/* Fix iOS button appearance */
button,
input[type="submit"],
input[type="button"] {
    -webkit-appearance: none;
    appearance: none;
}

/* Fix iOS sticky hover states */
@media (hover: none) {
    .filter-button:hover,
    .star-button:hover,
    .ticket-button:hover {
        transform: none;
    }
}

/* ==========================================================================
   2. Theme Variables
   ========================================================================== */

:root {
    --bg: #ffffff;
    --bg-gradient-start: #f8f9fa;
    --bg-gradient-end: #e9ecef;
    /* Fallbacks if brand sheet is late; giggly-brand.css overrides these. */
    --text: #031926;
    --text-secondary: #6c757d;
    --accent-pink: #77ACA2;
    --accent-purple: #468189;
    --accent-blue: #77ACA2;
    --border: #dee2e6;
    --tag-bg: rgba(119, 172, 162, 0.14);
    --tag-border: rgba(119, 172, 162, 0.36);
    --footer-text: #adb5bd;
    /* Bar D: inner frosted row; controls / scroll padding derive from this + 60px Bar C + gap. */
    --bottom-bar-height: 68px;
    /* Bar A / Bar B / Bar C / Bar D centred shell — mobile cap 840px; desktop grows to 1600px. */
    --giggly-chrome-max-width: 840px;
    --giggly-chrome-max-desktop: 1600px;
    --giggly-chrome-half-width: 420px;
    --giggly-chrome-search-half-width: 400px;
    /* Feed / events list column — stays at mobile cap while chrome bars grow on desktop. */
    --giggly-feed-content-max-width: 840px;
    /* Side nav glyphs (calendar, wallet) sit a hair high vs the FAB +; align to its visual centre. */
    --bottom-bar-side-icon-nudge-y: 5px;
    /* Optical: following-feed midpoint sits slightly right of calendar↔FAB centre — nudge left (negative). */
    --bottom-bar-feed-mid-nudge-x: -3px;
}

/* Scope to html so iOS home-screen / standalone WebKit always resolves tokens from the document element. */
html[data-theme='dark'] {
    --bg: #031926;
    --bg-gradient-start: #031926;
    --bg-gradient-end: #0a2a38;
    --text: #e8eef0;
    --text-secondary: #a8c0c4;
    --border: #1a3a46;
    --tag-bg: rgba(119, 172, 162, 0.18);
    --tag-border: rgba(119, 172, 162, 0.4);
    --footer-text: #1a3a46;
}

/* Literal fallbacks if a custom property fails to inherit (PWA / WK quirks). */
html[data-theme='dark'] body.view-event-page,
html[data-theme='dark'] body.ticket-wallet-page {
    background-color: #031926;
    color: #e8eef0;
}

@media (min-width: 992px) {
    :root {
        --giggly-chrome-max-width: min(var(--giggly-chrome-max-desktop), calc(100vw - 32px));
        --giggly-chrome-half-width: calc(var(--giggly-chrome-max-width) / 2);
        --giggly-chrome-search-half-width: max(0px, calc(var(--giggly-chrome-half-width) - 20px));
        --giggly-feed-content-max-width: 600px;
    }
}

/*
 * PWA / home-screen: fill the webview. body.app-mode must NOT be position:fixed — on iOS
 * WebKit, nested position:fixed (.bottom-bar, .controls-bar) then anchor to that box instead
 * of the viewport, leaving a white band under Bar D.
 */
html.giggly-app-active {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    /* Avoid 100dvh here — it tracks the dynamic viewport and shrinks with the IME, moving the whole feed. */
    min-height: 100lvh;
    overflow-x: hidden;
    /* Keep page scroll layer fixed so list scroll (#eventsContainer) never hides Bar A / Bar B */
    overflow-y: hidden;
}

@supports (-webkit-touch-callout: none) {
    html.giggly-app-active {
        min-height: 100lvh;
        height: 100lvh;
    }

    /*
     * iOS WebKit: fill-available follows the visible band and shrinks when the software keyboard opens,
     * so the flex column behind it compresses (flash / “background moves with keyboard”).
     * Large viewport height stays stable; IME should overlay (see interactive-widget=overlays-content).
     */
    html.giggly-app-active:has(body.search-bar-keyboard-mode) {
        height: 100lvh !important;
        min-height: 100lvh !important;
    }
}

body {
    font-family: var(--font-sans, 'League Spartan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body.modal-open,
body.app-mode.modal-open {
    overflow: hidden !important;
}

/*
 * The calendar list scrolls inside #eventsContainer, not on body. Locking body overflow alone
 * leaves that region scrollable, so pans/wheel chain to the events behind modals. This showed
 * up most clearly with the legacy edit modal: the list behind appeared to scroll instead of
 * the dialog. Same rule helps add/view/edit/settings while any modal is open.
 */
body.modal-open #eventsContainer {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
}

/*
 * Search-keyboard mode pins header/tabs/controls at z-index ~2147482xxx. Active modals must sit
 * above that layer so the overlay receives taps and in-modal scrolling.
 */
body.modal-open .modal.active {
    z-index: 2147483000;
}

body.modal-open .modal.giggly-avatar-crop-modal.active {
    z-index: 2147483060;
}

body.modal-open .modal.giggly-header-crop-modal.active {
    z-index: 2147483060;
}

body.modal-open .modal.giggly-user-settings-avatar-preview.active {
    z-index: 2147483065;
}

/* Events-added leaderboard opens on top of Settings; must sit above the settings sheet/footer. */
body.modal-open .modal.giggly-events-added-leaderboard-modal.active {
    z-index: 2147483012;
}

/* While leaderboard is open, hide the settings modal from hit-testing and painting (avoids footer bleeding through). */
body.modal-open .modal.giggly-user-settings-modal.giggly-user-settings-modal--obscured-by-leaderboard.active {
    visibility: hidden;
    pointer-events: none;
}

/* Flyer picker stacks above add/edit sheet */
body.modal-open .event-flyer-pick-modal-root.active {
    z-index: 2147483100;
}

/* Genre picker: second-layer sheet on top of add/edit event (not an iframe). */
body.modal-open #eventGenrePickModal.modal.active {
    z-index: 2147483100;
    display: flex !important;
    position: fixed;
    inset: 0;
    /* Pin to the top so growing selected-genre rows don't re-center and shove the sheet off-screen. */
    align-items: flex-start;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top, 0px)) 16px 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    overscroll-behavior: none;
}

body.modal-open #eventGenrePickModal.modal.active .add-event-genre-picker-wrap {
    width: min(520px, calc(100vw - 32px));
    max-height: min(85dvh, 720px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    /* Keep height budget fixed; selected pills scroll inside the grid, not by growing the sheet. */
    flex: 0 1 auto;
    align-self: center;
}

/*
 * Month calendar: grid + day drill-in stay .active while users open set times, stars, or ticket
 * swap from embedded cards. Those UIs appear earlier in the DOM; equal modal z-index stacked the
 * calendar on top. Ticket swap uses .floating-panel (not .modal) and was ~1005 — far below.
 */
body.modal-open .modal.feed-month-cal-modal.active {
    z-index: 2147482980;
    /* Allow taps to reach close/footer reliably after day-list scroll (.feed-month-cal-modal.active uses touch-action:none). */
    touch-action: auto;
}

body.modal-open #setTimesPopoverModal.modal.active,
body.modal-open #feedStarsModal.modal.active {
    z-index: 2147483020;
}

body.modal-open #ticketSwapPanel.floating-panel.ticket-swap-panel.ticket-swap-panel--viewport.active {
    z-index: 2147483020;
}

body.modal-open .modal.giggly-auth-phone-modal.active {
    z-index: 2147483300 !important;
}

body.modal-open #ticketSwapInfoModal.floating-panel.ticket-swap-info-modal.active {
    z-index: 2147483025;
}

/* Category/genre pickers opened from the filter panel — must sit above #filterSortPanel (2147482002). */
body.giggly-filter-pick-modal-open .filter-pick-modal.active,
.filter-pick-modal.active {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483200 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
}

body.giggly-filter-pick-modal-open .filter-pick-modal.active .filter-pick-modal__sheet {
    position: relative !important;
    width: min(840px, 100%) !important;
    max-height: min(72vh, 640px) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22) !important;
}

body.modal-open .ticket-swap-qty-root.is-open {
    z-index: 2147483035;
}

/* Manage-qty sheet: always stack above Bar D / ticket panel (does not rely on body.modal-open). */
#ticketSwapQtyRoot.ticket-swap-qty-root.is-open {
    z-index: 2147483042;
    isolation: isolate;
}

body.modal-open #ticketSwapQtyRoot.ticket-swap-qty-root.is-open {
    z-index: 2147483042;
}

body.modal-open #ticketSwapMarkBoughtRoot.ticket-swap-qty-root.is-open {
    z-index: 2147483050;
}

/*
 * Month calendar (iOS): rubber-band / scroll chaining can move the feed behind the overlay.
 * Lock overscroll on the document while the picker is open; consume vertical pans on the dimmed
 * backdrop, but keep pan-y on the sheet and day-event list.
 */
html.feed-month-cal-scroll-lock {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

html.feed-month-cal-scroll-lock body {
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

html.feed-month-cal-scroll-lock body.app-mode #eventsApp {
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

.feed-month-cal-modal.active {
    touch-action: none;
    overscroll-behavior: none;
}

.feed-month-cal-modal.active .feed-month-cal-modal__sheet {
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.feed-month-cal-modal.active .feed-month-cal-day__list {
    touch-action: pan-y;
    overscroll-behavior: contain;
}

/*
 * Tag hub parent chrome (events.html): Event/List/Favourites + search live on the parent shell for embed=1.
 * Base layout applies on all viewports; fixed pinning below uses touch media + search-bar-keyboard-mode.
 */
#eventsApp[data-tag-hub-active='1'] .tag-hub-parent-embed-chrome:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 12px 8px;
    max-width: var(--giggly-chrome-max-width);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    z-index: 106;
}

.tag-hub-parent-embed-chrome__subnav {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 5px;
    padding: 6px 8px 8px;
    border-radius: 14px;
    margin: 0 auto;
    width: calc(100% - 8px);
    max-width: 820px;
    box-sizing: border-box;
    background: rgba(245, 245, 247, 0.82);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
}

:root[data-theme='dark'] .tag-hub-parent-embed-chrome__subnav {
    background: rgba(36, 28, 52, 0.78);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.tag-hub-parent-embed-chrome__btn {
    flex: 1 1 0%;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(0, 0, 0, 0.07);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:root[data-theme='dark'] .tag-hub-parent-embed-chrome__btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(232, 228, 237, 0.82);
}

.tag-hub-parent-embed-chrome__btn.is-active {
    color: #111827;
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

:root[data-theme='dark'] .tag-hub-parent-embed-chrome__btn.is-active {
    color: #111827;
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Phase 2 (touch): search field focused — Bar C tracks IME; stay docked until IME is actually open */
@media (hover: none), (pointer: coarse) {
    /*
     * Only hide Bar D once the keyboard is open. Hiding it on mere focus drops Bar C onto
     * the nav (bottom:0) before the IME reports an inset.
     */
    body.search-bar-keyboard-mode.giggly-search-kb-ime-open .bottom-bar {
        display: none !important;
    }

    /*
     * Pin Bars A/B to the viewport while the keyboard is up. Otherwise iOS can pan the layout
     * viewport when the list scrolls, so flex chrome slides with the events layer.
     * --search-kb-header-h / --search-kb-tabs-h are set in JS when mode activates.
     */
    body.search-bar-keyboard-mode .app-header {
        position: fixed;
        top: var(--search-kb-vv-pad, 0px);
        left: 0;
        right: 0;
        max-width: var(--giggly-chrome-max-width);
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        z-index: 2147482600;
    }

    body.search-bar-keyboard-mode .filter-tabs {
        position: fixed;
        top: calc(var(--search-kb-vv-pad, 0px) + var(--search-kb-header-h, 72px));
        left: 0;
        right: 0;
        max-width: var(--giggly-chrome-max-width);
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
        z-index: 2147482500;
    }

    body.search-bar-keyboard-mode #eventsApp {
        overscroll-behavior: none;
    }

    /* Extra top inset replaces in-flow chrome (non-lite fixed Bars A/B only). */
    body.search-bar-keyboard-mode .events-container {
        padding-top: calc(
            20px + var(--search-kb-header-h, 0px) + var(--search-kb-tabs-h, 0px) + var(--search-kb-vv-pad, 0px)
        );
        /*
         * Prime a modest bottom tail while the keyboard is up so the first
         * .search-results-filtered frame does not jump flyers behind Bar C.
         */
        padding-bottom: calc(
            160px + max(var(--bar-c-kb-bottom, 0px), 0px) + env(safe-area-inset-bottom)
        );
        scroll-padding-bottom: 88px;
        overscroll-behavior: contain;
    }

    /*
     * In search-filtered keyboard mode the user must be able to scroll a single result
     * card fully above Bar C (the search input bar, ~60px, sitting above the keyboard).
     * Use max() so padding is always at least 320px even if --bar-c-kb-bottom is 0px
     * (the CSS var fallback only fires when the property is *unset*, not when it is 0px).
     */
    body.search-bar-keyboard-mode .events-container.search-results-filtered {
        padding-bottom: calc(
            max(340px, 128px + 42lvh) +
            max(var(--bar-c-kb-bottom, 0px), 320px) +
            80px +
            env(safe-area-inset-bottom)
        );
    }

    /*
     * Tag hub iframe: push the host down like Promoter/Venues — margin on the iframe column (not padding on
     * #eventsApp) so iOS home-screen PWA does not leave the embed sliding under fixed Bars A/B when the IME opens.
     */
    body.search-bar-keyboard-mode
        #eventsApp[data-tag-hub-embed-keyboard-lock='1']
        #tagHubIframeHost:not([hidden]) {
        margin-top: calc(
            20px + var(--search-kb-header-h, 0px) + 4px + var(--search-kb-tabs-h, 0px) + var(--search-kb-vv-pad, 0px) +
                var(--tag-hub-parent-chrome-h, 0px)
        );
    }

    body.search-bar-keyboard-mode #eventsApp[data-tag-hub-active='1'] .tag-hub-parent-embed-chrome:not([hidden]) {
        position: fixed;
        left: 0;
        right: 0;
        top: calc(
            var(--search-kb-vv-pad, 0px) + var(--search-kb-header-h, 72px) + 4px + var(--search-kb-tabs-h, 48px)
        );
        max-width: var(--giggly-chrome-max-width);
        margin-left: auto;
        margin-right: auto;
        padding-top: 2px;
        z-index: 2147482400;
        pointer-events: auto;
        isolation: isolate;
    }

    /*
     * Main feed search (My Calendar / All Events): Bars A/B are position:fixed out of flow, so the
     * no-hits strip stayed in the flex column and could scroll away under the keyboard. Pin it under
     * the fixed tabs; reserve its height via --search-feed-no-hits-h (set in JS when the banner shows).
     */
    body.search-bar-keyboard-mode #feedSearchNoResultsBanner:not([hidden]) {
        position: fixed;
        left: 0;
        right: 0;
        max-width: var(--giggly-chrome-max-width);
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        top: calc(var(--search-kb-vv-pad, 0px) + var(--search-kb-header-h, 72px) + 4px + var(--search-kb-tabs-h, 48px));
        z-index: 2147482450;
        box-shadow: 0 1px 0 var(--border);
    }

    body.search-bar-keyboard-mode:has(#feedSearchNoResultsBanner:not([hidden])) .events-container {
        padding-top: calc(
            20px + var(--search-kb-header-h, 0px) + 4px + var(--search-kb-tabs-h, 0px) + var(--search-kb-vv-pad, 0px) +
                var(--search-feed-no-hits-h, 0px)
        );
    }

    /*
     * iOS: a pan starting on Bar C (filter / search) can chain to the layout viewport and
     * drag the fixed bar with the "background". Lock browser pan/zoom from this layer only;
     * touches on #eventsContainer still scroll the list.
     * Never set touch-action:none on the search input — Android Chromium then refuses typing.
     */
    body.search-bar-keyboard-mode .controls-bar,
    body.search-bar-keyboard-mode .controls-bar *:not(input):not(textarea) {
        touch-action: none;
    }

    body.search-bar-keyboard-mode .controls-bar input,
    body.search-bar-keyboard-mode .controls-bar textarea {
        touch-action: manipulation;
    }

    /* Pin Bar C from the bottom: never below the docked (above Bar D) position until IME inset is real */
    body.search-bar-keyboard-mode .controls-bar {
        top: auto !important;
        bottom: max(
            calc(var(--bottom-bar-height, 70px) + max(env(safe-area-inset-bottom, 0px), 8px)),
            env(keyboard-inset-height, 0px),
            env(keyboard-inset-bottom, 0px),
            var(--bar-c-kb-bottom, 0px)
        ) !important;
        z-index: 2147482000;
        isolation: isolate;
        overscroll-behavior: none;
    }

    /*
     * Promoter Channels: reserve the tall scroll tail before the keyboard paints (pointerdown / focus),
     * not only when body.search-bar-keyboard-mode flips — avoids a one-frame padding jump under the
     * category pills (flash). Cleared when search closes or PC embed hides.
     */
    #eventsApp[data-promoter-channels-active='1'][data-giggly-pc-search-keyboard-prime='1']
        #promoterChannelsEmbedRoot
        [data-pc-e-scroll-body] {
        padding-bottom: calc(max(340px, 128px + 42lvh) + env(safe-area-inset-bottom));
        scroll-padding-bottom: 88px;
    }

    #eventsApp[data-venue-channels-active='1'][data-giggly-pc-search-keyboard-prime='1']
        #venueChannelsEmbedRoot
        [data-pc-e-scroll-body] {
        padding-bottom: calc(max(340px, 128px + 42lvh) + env(safe-area-inset-bottom));
        scroll-padding-bottom: 88px;
    }

    /*
     * Promoter Channels: #eventsContainer is display:none — without this spacer, fixing Bars A/B
     * removes them from flex flow and the embed jumps under the header when the keyboard opens.
     */
    body.search-bar-keyboard-mode
        #eventsApp[data-promoter-channels-active='1']
        #promoterChannelsIframeHost:not([hidden]) {
        margin-top: calc(
            20px + var(--search-kb-header-h, 0px) + 4px + var(--search-kb-tabs-h, 0px) + var(--search-kb-vv-pad, 0px)
        );
    }

    body.search-bar-keyboard-mode
        #eventsApp[data-venue-channels-active='1']
        #venueChannelsIframeHost:not([hidden]) {
        margin-top: calc(
            20px + var(--search-kb-header-h, 0px) + 4px + var(--search-kb-tabs-h, 0px) + var(--search-kb-vv-pad, 0px)
        );
    }

    body.app-mode.search-bar-keyboard-mode {
        overscroll-behavior-y: none;
    }

    /*
     * Main My Calendar / All Events: do not pull header + tabs out of the flex column (see
     * body.giggly-search-kb-main-lite in JS). Bar C still tracks the keyboard; Bar D still hides.
     */
    body.search-bar-keyboard-mode.giggly-search-kb-main-lite .app-header {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-width: var(--giggly-chrome-max-width);
        margin-left: auto;
        margin-right: auto;
        z-index: 110;
    }

    body.search-bar-keyboard-mode.giggly-search-kb-main-lite .filter-tabs {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-width: var(--giggly-chrome-max-width);
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
        z-index: 105;
    }

    body.search-bar-keyboard-mode.giggly-search-kb-main-lite .events-container {
        /*
         * Bars A/B stay in-flow under main-lite. Reset the non-lite chrome-spacer padding-top
         * (20 + header + tabs) or the list jumps down when --search-kb-*-h is set.
         */
        padding-top: 20px !important;
        scroll-padding-bottom: 88px;
        overscroll-behavior: contain;
        scroll-behavior: auto;
    }

    body.search-bar-keyboard-mode.giggly-search-kb-main-lite .events-container.search-results-filtered {
        padding-bottom: calc(
            max(340px, 128px + 42lvh) +
            max(var(--bar-c-kb-bottom, 0px), 320px) +
            80px +
            env(safe-area-inset-bottom)
        );
    }

    body.search-bar-keyboard-mode.giggly-search-kb-main-lite #feedSearchNoResultsBanner:not([hidden]) {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-width: var(--giggly-chrome-max-width);
        margin: 0 auto;
        box-sizing: border-box;
        z-index: auto;
        box-shadow: none;
    }

    /*
     * Main feed lite: env(keyboard-inset-*) when available; JS --bar-c-kb-bottom fills gaps where
     * WebKit reports 0 so Bar C still clears the IME.
     */
    body.search-bar-keyboard-mode.giggly-search-kb-main-lite .controls-bar {
        bottom: max(
            calc(var(--bottom-bar-height, 70px) + max(env(safe-area-inset-bottom, 0px), 8px)),
            env(safe-area-inset-bottom, 0px),
            env(keyboard-inset-height, 0px),
            env(keyboard-inset-bottom, 0px),
            var(--bar-c-kb-bottom, 0px)
        ) !important;
    }

    /*
     * Standalone /feed: no Bar B — pin Bar A, hide "Your Feed" title, list starts under header.
     */
    html.giggly-following-feed-standalone body.search-bar-keyboard-mode #followingFeedStandaloneTitle {
        display: none !important;
    }

    html.giggly-following-feed-standalone body.search-bar-keyboard-mode:not(.giggly-search-kb-main-lite) .events-container {
        padding-top: calc(12px + var(--search-kb-header-h, 72px) + var(--search-kb-vv-pad, 0px));
    }

    html.giggly-following-feed-standalone
        body.search-bar-keyboard-mode:not(.giggly-search-kb-main-lite):has(#feedSearchNoResultsBanner:not([hidden]))
        .events-container {
        padding-top: calc(
            12px + var(--search-kb-header-h, 72px) + var(--search-kb-vv-pad, 0px) + var(--search-feed-no-hits-h, 0px)
        );
    }

    html.giggly-following-feed-standalone body.feed-page.search-bar-keyboard-mode {
        height: 100lvh !important;
        min-height: 100lvh !important;
    }

    /*
     * Profile Feed: #eventsApp is the scroll root with sticky Bar A. Keyboard mode must not
     * switch Bar A to fixed or inflate events-container padding — that is the up/bounce flash.
     * Bar C still tracks the IME via --bar-c-kb-bottom.
     */
    html.giggly-user-feed-profile body.search-bar-keyboard-mode .app-header,
    html.giggly-user-feed-profile body.search-bar-keyboard-mode.giggly-search-kb-main-lite .app-header {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
        width: 100%;
        max-width: var(--giggly-chrome-max-width);
        margin-left: auto;
        margin-right: auto;
        z-index: 520;
    }

    html.giggly-user-feed-profile body.search-bar-keyboard-mode .events-container,
    html.giggly-user-feed-profile body.search-bar-keyboard-mode.giggly-search-kb-main-lite .events-container,
    html.giggly-user-feed-profile.giggly-following-feed-standalone
        body.search-bar-keyboard-mode
        .events-container,
    html.giggly-user-feed-profile.giggly-following-feed-standalone
        body.search-bar-keyboard-mode.giggly-search-kb-main-lite
        .events-container {
        padding-top: 20px;
    }

    html.giggly-user-feed-profile
        body.search-bar-keyboard-mode:has(#feedSearchNoResultsBanner:not([hidden]))
        .events-container,
    html.giggly-user-feed-profile.giggly-following-feed-standalone
        body.search-bar-keyboard-mode:has(#feedSearchNoResultsBanner:not([hidden]))
        .events-container {
        padding-top: 20px;
    }

    /*
     * Freeze feed scroll while focusing search. Independent of search-bar-keyboard-mode so we can
     * lock on touchstart before iOS pans the list to "reveal" the fixed input.
     * Once profile/following search is active, keep #eventsApp scrollable so matches can pin
     * under Bar 1 (JS also clears the lock classes when the query is 3+ chars).
     */
    html.giggly-search-feed-scroll-lock,
    html.giggly-search-feed-scroll-lock body {
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    body.giggly-search-feed-scroll-lock #eventsApp,
    body.giggly-search-feed-scroll-lock #eventsContainer,
    body.search-bar-keyboard-mode.giggly-search-kb-scroll-frozen #eventsApp,
    body.search-bar-keyboard-mode.giggly-search-kb-scroll-frozen #eventsContainer {
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    /*
     * Profile following feed scrolls #eventsApp and pins search hits under Bar 1.
     * Never freeze that scrollport — keyboard lock classes must not win here.
     */
    html.giggly-user-feed-profile body.feed-page #eventsApp,
    html.giggly-user-feed-profile body.feed-page.giggly-search-feed-scroll-lock #eventsApp,
    html.giggly-user-feed-profile body.feed-page.search-bar-keyboard-mode.giggly-search-kb-scroll-frozen #eventsApp,
    html.giggly-user-feed-profile.giggly-profile-feed-searching body.feed-page #eventsApp,
    html.giggly-user-feed-profile body.feed-page.giggly-profile-feed-searching #eventsApp {
        /* clip (not hidden): paired overflow-x:hidden breaks sticky subnav under Bar 1 */
        overflow-x: clip !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

/* ==========================================================================
   3. Landing Page
   ========================================================================== */

.container {
    text-align: center;
    max-width: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-logo-link {
    display: block;
    width: fit-content;
    margin: 0 auto 40px;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.logo {
    width: 180px;
    height: 180px;
    margin: 0;
    animation: float 3s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

h1 {
    font-size: 72px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    background: var(--brand-btn-bg, #468189);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.landing-description {
    font-size: 18px;
    color: var(--text);
    line-height: 1.6;
    margin: 0 auto 20px;
    max-width: 440px;
    opacity: 0.9;
}

.landing-tagline {
    font-size: 16px;
    font-style: italic;
    color: var(--text-secondary);
    margin: 0 auto 32px;
    max-width: 440px;
    opacity: 0.8;
}

.landing-signup-prompt {
    font-size: 17px;
    color: var(--text);
    line-height: 1.55;
    margin: 0 auto 24px;
    max-width: 440px;
    opacity: 0.92;
}

.tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    color: var(--accent-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.beta-badge {
    background: var(--brand-btn-bg, #468189);
    color: white;
    border: none;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 0;
    margin-left: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    vertical-align: middle;
}

.theme-toggle:hover {
    transform: scale(1.2);
}

.theme-toggle:active {
    transform: scale(0.9);
}

.auth-box {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 30px;
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.auth-input::placeholder {
    color: var(--text-secondary);
}

.auth-button {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    background: var(--brand-btn-bg, #468189);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.auth-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.auth-button:active:not(:disabled) {
    transform: translateY(0);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-button-secondary {
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    font-size: 14px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-button-secondary:hover {
    border-color: var(--accent-blue);
    color: var(--text);
}

.status-message {
    display: none;
    padding: 12px;
    margin-top: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.status-message.success {
    background: rgba(119, 172, 162, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.status-message.error {
    background: rgba(119, 172, 162, 0.1);
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
}

.footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--footer-text);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

body.app-mode .footer {
    display: none;
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 14px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--text);
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   4. App Layout (Header, Tabs, Events)
   ========================================================================== */

.app-container {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 0;
    isolation: isolate;
}

body.app-mode {
    position: relative;
    width: 100%;
    max-width: 100vw;
    /*
     * Definite height for flex + list scroll. Do NOT max-height with dvh/fill-available on iOS
     * standalone — it often caps the layout shorter than the physical display, so position:fixed
     * bottom:0 leaves a large white band under Bars C/D (~15–20% of the screen).
     * Use 100lvh (large viewport), not 100dvh — dvh tracks the IME and compresses the column when the keyboard overlays.
     */
    height: 100vh;
    height: 100lvh;
    min-height: 100vh;
    min-height: 100lvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    background: var(--bg);
    overflow: hidden;
    box-sizing: border-box;
}

@supports (-webkit-touch-callout: none) {
    body.app-mode {
        min-height: -webkit-fill-available;
    }
}

/*
 * iOS WebKit: giggly-ios-app-shell = overscroll + feed touch-action on all surfaces (incl. home-screen PWA).
 * giggly-ios-safari-tab = Safari in a **browser tab** only (not display-mode standalone / navigator.standalone).
 * Fixed Bar A/B + #eventsApp padding-top (--giggly-ios-*) is tab-only; pinning all iOS broke Bar B in the PWA.
 */
@supports (-webkit-touch-callout: none) {
    html.giggly-ios-app-shell {
        overscroll-behavior: none;
        overscroll-behavior-y: none;
        height: 100%;
    }

    html.giggly-ios-app-shell body.app-mode {
        overscroll-behavior: none;
        overscroll-behavior-y: none;
    }

    html.giggly-ios-app-shell.giggly-ios-safari-tab
        body.app-mode:not(.tag-hub--embed):not(.search-bar-keyboard-mode):not(.events-page)
        #eventsApp:not([data-giggly-add-event-embed='1']):not([data-giggly-edit-event-embed='1']):not([data-giggly-add-event-standalone='1']) {
        position: relative;
        overscroll-behavior: contain;
        padding-top: var(--giggly-ios-chrome-stack-h, calc(132px + env(safe-area-inset-top, 0px)));
        box-sizing: border-box;
    }

    /*
     * Events Safari tab: Bars A/B are fixed, but clearance comes from mount min-heights only.
     * padding-top + mount spacers stacked and left a huge white band under All Events.
     */
    html.giggly-ios-app-shell.giggly-ios-safari-tab
        body.events-page:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #eventsApp:not([data-giggly-add-event-embed='1']):not([data-giggly-edit-event-embed='1']):not([data-giggly-add-event-standalone='1']) {
        position: relative;
        overscroll-behavior: contain;
        padding-top: 0 !important;
        box-sizing: border-box;
    }

    html.giggly-ios-app-shell.giggly-ios-safari-tab
        body.events-page:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #eventsApp:not([data-giggly-add-event-embed='1']):not([data-giggly-edit-event-embed='1']):not([data-giggly-add-event-standalone='1'])
        > #gigglyAppHeaderBar1Mount {
        flex: 0 0 auto !important;
        min-height: var(
            --giggly-ios-header-h,
            calc(73px + max(env(safe-area-inset-top, 0px), var(--giggly-sat-fallback, 0px)))
        ) !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    html.giggly-ios-app-shell.giggly-ios-safari-tab
        body.events-page:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #eventsApp:not([data-giggly-add-event-embed='1']):not([data-giggly-edit-event-embed='1']):not([data-giggly-add-event-standalone='1'])
        > #gigglyFilterTabsMount {
        flex: 0 0 auto !important;
        min-height: var(--giggly-ios-filter-bar-h, 49px) !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* /feed has no Bar B — don't reserve Events tab stack height before chrome is measured. */
    html.giggly-ios-app-shell.giggly-ios-safari-tab.giggly-following-feed-standalone
        body.feed-page:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #eventsApp:not([data-giggly-add-event-embed='1']):not([data-giggly-edit-event-embed='1']) {
        padding-top: var(--giggly-ios-chrome-stack-h, calc(var(--giggly-ios-header-h, calc(73px + env(safe-area-inset-top, 0px))) + 56px));
    }

    /*
     * Non-Events Safari tab (Feed/Friends/Directory): padding-top clears fixed chrome —
     * collapse mount spacers so they don't double the gap. Events uses mounts instead.
     */
    html.giggly-ios-app-shell.giggly-ios-safari-tab:not(.giggly-user-feed-profile)
        body.app-mode:not(.events-page):not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #eventsApp:not([data-giggly-add-event-embed='1']):not([data-giggly-edit-event-embed='1']):not([data-giggly-add-event-standalone='1'])
        > #gigglyAppHeaderBar1Mount,
    html.giggly-ios-app-shell.giggly-ios-safari-tab:not(.giggly-user-feed-profile)
        body.app-mode:not(.events-page):not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #eventsApp:not([data-giggly-add-event-embed='1']):not([data-giggly-edit-event-embed='1']):not([data-giggly-add-event-standalone='1'])
        > #gigglyFilterTabsMount {
        min-height: 0 !important;
        height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: visible !important;
        flex: 0 0 0 !important;
    }

    html.giggly-ios-app-shell.giggly-ios-safari-tab
        body.app-mode:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #eventsApp:not([data-giggly-add-event-embed='1']):not([data-giggly-edit-event-embed='1']):not([data-giggly-add-event-standalone='1'])
        header.app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: var(--giggly-chrome-max-width);
        margin: 0 auto;
        z-index: 520;
        box-sizing: border-box;
    }

    /* Profile feed scrolls #eventsApp — sticky Bar A, not fixed (fixed scrolls with overflow parent). */
    html.giggly-user-feed-profile.giggly-ios-app-shell.giggly-ios-safari-tab
        body.feed-page:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #eventsApp:not([data-giggly-add-event-embed='1']):not([data-giggly-edit-event-embed='1'])
        #gigglyAppHeaderBar1Mount,
    html.giggly-user-feed-profile.giggly-ios-app-shell.giggly-ios-safari-tab
        body.feed-page:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #eventsApp:not([data-giggly-add-event-embed='1']):not([data-giggly-edit-event-embed='1'])
        > header.app-header {
        position: sticky;
        top: 0;
        left: auto;
        right: auto;
        width: 100%;
        max-width: var(--giggly-chrome-max-width);
        margin: 0 auto;
        z-index: 520;
        box-sizing: border-box;
    }

    html.giggly-ios-app-shell.giggly-ios-safari-tab
        body.app-mode:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #eventsApp:not([data-giggly-add-event-embed='1']):not([data-giggly-edit-event-embed='1'])
        .filter-tabs {
        position: fixed;
        top: var(--giggly-ios-header-h, calc(73px + env(safe-area-inset-top, 0px)));
        left: 0;
        right: 0;
        width: 100%;
        max-width: var(--giggly-chrome-max-width);
        margin: 0 auto;
        margin-top: 0;
        z-index: 519;
        box-sizing: border-box;
        background: var(--bg, rgba(255, 255, 255, 0.92));
    }

    html.giggly-ios-app-shell.giggly-ios-safari-tab.giggly-following-feed-standalone
        body.feed-page:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #followingFeedStandaloneTitle:not([hidden]) {
        position: fixed;
        /* Flush under Bar A — do not use a larger filter-top (left a see-through gap). */
        top: var(--giggly-ios-header-h, calc(73px + env(safe-area-inset-top, 0px)));
        left: 0;
        right: 0;
        width: 100%;
        max-width: var(--giggly-chrome-max-width);
        margin: 0 auto;
        margin-top: 0;
        z-index: 519;
        box-sizing: border-box;
        background: var(--bg, #ffffff);
    }

    /* Directory hub: only Bar A — don't reserve Events Bar B stack (huge white band). */
    html.giggly-ios-app-shell.giggly-ios-safari-tab
        body.giggly-directory-hub-page.app-mode:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #eventsApp {
        padding-top: var(
            --giggly-ios-header-h,
            calc(73px + max(env(safe-area-inset-top, 0px), var(--giggly-sat-fallback, 0px)))
        );
    }

    /*
     * Artists / DJs / Promoters / Venues / Festivals / Designers (Safari browser tab):
     * mobile hides Bar B, so Events A+B stack padding left a huge white band under the
     * nav before the page title (e.g. "Artists").
     */
    html.giggly-ios-app-shell.giggly-ios-safari-tab
        body.promoter-channels-page.app-mode:not(.giggly-directory-hub-page):not(.tag-hub--embed):not(
            .search-bar-keyboard-mode
        )
        #eventsApp {
        padding-top: var(
            --giggly-ios-header-h,
            calc(73px + max(env(safe-area-inset-top, 0px), var(--giggly-sat-fallback, 0px)))
        ) !important;
    }

    /* From-hub Directory topbar: shell already uses --pc-topbar-clearance — don't stack both. */
    html.giggly-ios-app-shell.giggly-ios-safari-tab.giggly-mobile-dir-from-hub
        body.promoter-channels-page.app-mode:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #eventsApp {
        padding-top: 0 !important;
    }

    /* Friends: pin Bar A + tabs; chat list scrolls underneath (Safari tab / not PWA). */
    html.giggly-ios-app-shell.giggly-ios-safari-tab
        body.friends-page.app-mode:not(.tag-hub--embed):not(.search-bar-keyboard-mode):not(.giggly-friends-search-open)
        #eventsApp {
        position: relative;
        overscroll-behavior: contain;
        padding-top: var(--giggly-ios-chrome-stack-h, calc(132px + env(safe-area-inset-top, 0px)));
        box-sizing: border-box;
        flex: 1 1 0%;
        min-height: 0;
        height: 100%;
        overflow: hidden;
    }

    html.giggly-ios-app-shell.giggly-ios-safari-tab
        body.friends-page.app-mode:not(.tag-hub--embed):not(.search-bar-keyboard-mode):not(.giggly-friends-search-open)
        #eventsApp
        .giggly-friends-tabs {
        position: fixed;
        top: var(--giggly-ios-header-h, calc(73px + env(safe-area-inset-top, 0px)));
        left: 0;
        right: 0;
        width: 100%;
        max-width: var(--giggly-chrome-max-width, 840px);
        margin: 0 auto;
        margin-top: 0;
        z-index: 519;
        box-sizing: border-box;
        background: var(--bg, #ffffff);
    }

    html.giggly-ios-app-shell.giggly-ios-safari-tab
        body.friends-page.app-mode:not(.tag-hub--embed):not(.search-bar-keyboard-mode):not(.giggly-friends-search-open)
        #eventsApp
        > #gigglyAppHeaderBar1Mount {
        min-height: 0 !important;
        height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        flex: 0 0 0 !important;
    }

    html.giggly-ios-app-shell.giggly-ios-safari-tab
        body.friends-page.app-mode:not(.tag-hub--embed):not(.search-bar-keyboard-mode):not(.giggly-friends-search-open)
        #eventsApp
        .giggly-friends-main {
        flex: 1 1 0%;
        min-height: 0;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    /*
     * Promoters / Venues use the same #eventsApp fixed Bar A + Bar B stack as index (see above).
     */

    /* Ticket wallet / resale: iOS app shell (Safari tab + home-screen PWA) fixed Bar A + ticket tabs. */
    html.giggly-ios-app-shell
        body.app-mode.ticket-wallet-page:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #ticketWalletApp {
        position: relative;
        overscroll-behavior: contain;
        padding-top: var(--giggly-ios-chrome-stack-h, calc(132px + env(safe-area-inset-top, 0px)));
        box-sizing: border-box;
    }

    html.giggly-ios-app-shell
        body.app-mode.ticket-wallet-page:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #ticketWalletApp header.app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: var(--giggly-chrome-max-width);
        margin: 0 auto;
        z-index: 520;
        box-sizing: border-box;
    }

    html.giggly-ios-app-shell
        body.app-mode.ticket-wallet-page:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #ticketWalletApp #gigglyAppHeaderBar1Mount {
        flex: 0 0 auto;
        min-height: var(--giggly-ios-header-h, calc(73px + env(safe-area-inset-top, 0px)));
    }

    html.giggly-ios-app-shell
        body.app-mode.ticket-wallet-page:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #ticketWalletApp > .ticket-wallet-tabs {
        position: fixed;
        top: var(--giggly-ios-filter-top, 84px);
        left: 0;
        right: 0;
        width: 100%;
        max-width: var(--giggly-chrome-max-width);
        margin: 0 auto;
        margin-top: 0;
        z-index: 519;
        box-sizing: border-box;
    }

    html.giggly-ios-app-shell body.app-mode #eventsContainer {
        overscroll-behavior: contain;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
    }

    html.giggly-ios-app-shell body.app-mode .filter-tabs__scroll {
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
    }
}

/*
 * Deprecated white cloak — kept inert so any leftover class from older JS builds
 * does not blank the viewport. Prefer giggly-leaving-to-directory hub shell.
 */
html.giggly-main-tab-nav-leaving body::before {
    content: none !important;
    display: none !important;
}

html.giggly-main-tab-nav-leaving #eventsContainer,
html.giggly-main-tab-nav-leaving .giggly-directory-hub__main,
html.giggly-main-tab-nav-leaving .giggly-user-feed-profile,
html.giggly-main-tab-nav-leaving .filter-tabs,
html.giggly-main-tab-nav-leaving .controls-bar,
html.giggly-main-tab-nav-leaving .giggly-profile-feed__tabs,
html.giggly-main-tab-nav-leaving .giggly-profile-controls {
    visibility: visible !important;
    pointer-events: auto !important;
}

/*
 * Feed landing: keep list + profile banner cloaked until one atomic reveal
 * (giggly-feed-nav-ready). Avoids white → banner/ghost flyer → settled feed.
 * Leaving to Directory uses a fixed #gigglyOutgoingDirectoryHub overlay.
 */
html.giggly-skip-landing-flash:not(.giggly-feed-nav-ready):not(.giggly-events-nav-ready):not(
        .giggly-leaving-to-directory
    )
    body.feed-page
    #eventsContainer,
html.giggly-skip-landing-flash:not(.giggly-feed-nav-ready):not(.giggly-events-nav-ready):not(
        .giggly-leaving-to-directory
    )
    body.feed-page
    #gigglyUserFeedProfileMount {
    visibility: hidden !important;
}

html.giggly-skip-landing-flash:not(.giggly-feed-nav-ready):not(.giggly-events-nav-ready):not(
        .giggly-leaving-to-directory
    )
    body.events-page
    #eventsContainer:not(:has(.event-card)):not(:has(.events-feed-loading)):not(:has(.empty-state)):not(
        :has(.feed-page__empty)
    ):not(:has(.giggly-dir-leave-shell)) {
    visibility: hidden;
}

/* Keep Bars C/D visible during tab-switch warm paint — only hide the empty list slot. */
html.giggly-skip-landing-flash:not(.giggly-feed-nav-ready):not(.giggly-events-nav-ready):not(
        .giggly-leaving-to-directory
    )
    body.app-mode.events-page
    .controls-bar,
html.giggly-skip-landing-flash:not(.giggly-feed-nav-ready):not(.giggly-events-nav-ready):not(
        .giggly-leaving-to-directory
    )
    body.app-mode.events-page
    .bottom-bar.bottom-bar--with-icons {
    visibility: visible;
}

/*
 * Tag hub **embed** document (iframe): do not size `body` with `dvh`/`lvh`. On iOS (incl. home-screen PWA),
 * the dynamic viewport height shrinks when the software keyboard opens, so the flex column compresses and
 * the Event / List / Favourites bar jumps upward even with `interactive-widget=overlays-content`.
 * Height 100% follows the iframe box (parent freezes host height while searching) so the keyboard overlays.
 * `html.tag-hub-embed-doc` is set from tag.html when `?embed=1`.
 */
html.tag-hub-embed-doc {
    height: 100%;
    overflow: hidden;
    min-height: 0;
}

body.app-mode.tag-hub--embed {
    height: 100%;
    min-height: 0 !important;
    max-height: 100%;
    /* Override the 100vh / 100dvh / 100lvh stack on `body.app-mode` for this document only. */
}

@supports (-webkit-touch-callout: none) {
    body.app-mode.tag-hub--embed {
        min-height: 0 !important;
    }

    /*
     * Standalone /tag.html (not embed): while searching, do not let min-height: -webkit-fill-available track the
     * IME-shrunk band — that compresses the flex column and shoves the Event/List/Favourites bar under the header.
     * Match main app: stable large viewport height so the keyboard overlays the list (interactive-widget=overlays-content).
     */
    body.app-mode:not(.tag-hub--embed).tag-hub-search-keyboard-mode {
        min-height: 100lvh !important;
        height: 100lvh !important;
        /* `body.app-mode` uses overflow:hidden; that traps fixed chrome when the IME resizes the band. */
        overflow: visible !important;
    }

}

/*
 * Fill body: list scrolls in #eventsContainer. Avoid overflow:hidden on #eventsApp — on iOS,
 * fixed Bars C/D inside that ancestor pin to the wrong box and sit above the real bottom.
 * body.app-mode keeps overflow:hidden; horizontal spill is clipped by children / max-width.
 */
body.app-mode #eventsApp {
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 992px) {
    body.app-mode.events-page #eventsApp,
    body.app-mode.feed-page #eventsApp,
    body.app-mode.promoter-channels-page #eventsApp,
    body.app-mode.ticket-wallet-page #ticketWalletApp {
        max-width: var(--giggly-chrome-max-width);
        margin-left: auto;
        margin-right: auto;
    }

    /* Grid view: let the events shell use the full viewport width (3 cards per row). */
    body.app-mode.events-page #eventsApp:has(#eventsContainer.events-container--feed-show-grid),
    body.app-mode.events-page #eventsApp:has(.events-container.events-container--feed-show-grid) {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    #eventsContainer.events-container--feed-show-grid,
    .events-container.events-container--feed-show-grid {
        max-width: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: max(20px, env(safe-area-inset-left, 0px));
        padding-right: max(20px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    #eventsContainer.events-container--feed-show-grid > .giggly-events-grid,
    .events-container.events-container--feed-show-grid > .giggly-events-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
        width: 100%;
        box-sizing: border-box;
        align-items: stretch;
        align-content: start;
    }

    #eventsContainer.events-container--feed-show-grid .giggly-events-grid > .event-card,
    .events-container.events-container--feed-show-grid .giggly-events-grid > .event-card {
        margin-bottom: 0;
        min-width: 0;
        width: 100%;
        max-width: none;
    }

    /* Your Feed: narrow centred event column; Bar A/C/D stay full chrome width. */
    html.giggly-following-feed-standalone #followingFeedStandaloneTitle:not([hidden]),
    html.giggly-following-feed-standalone #eventsContainer,
    html.giggly-following-feed-standalone .events-container,
    html.giggly-following-feed-standalone #feedSearchNoResultsBanner,
    body.feed-page #followingFeedStandaloneTitle:not([hidden]),
    body.feed-page #eventsContainer,
    body.feed-page .events-container,
    body.feed-page #feedSearchNoResultsBanner {
        max-width: var(--giggly-feed-content-max-width);
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
    }

    html.giggly-ios-app-shell.giggly-ios-safari-tab.giggly-following-feed-standalone
        body.feed-page:not(.tag-hub--embed):not(.search-bar-keyboard-mode)
        #followingFeedStandaloneTitle:not([hidden]) {
        max-width: var(--giggly-feed-content-max-width);
    }

    /*
     * All Events (desktop): flyer layouts stay narrow; list view uses full chrome width.
     * JS toggles .events-container--feed-show-list when the user picks List View.
     */
    html:not(.giggly-following-feed-standalone)
        body.app-mode.events-page:not(.feed-page):not(.promoter-channels-page)
        #eventsContainer:not(.events-container--feed-show-list):not(.events-container--feed-show-grid),
    html:not(.giggly-following-feed-standalone)
        body.app-mode.events-page:not(.feed-page):not(.promoter-channels-page)
        .events-container:not(.events-container--feed-show-list):not(.events-container--feed-show-grid),
    html:not(.giggly-following-feed-standalone)
        body.app-mode.events-page:not(.feed-page):not(.promoter-channels-page)
        #eventsApp:has(.events-container:not(.events-container--feed-show-list):not(.events-container--feed-show-grid))
        #feedSearchNoResultsBanner {
        max-width: var(--giggly-feed-content-max-width);
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Mobile safety net: never show desktop header nav below 992px (e.g. restored session chrome). */
@media (max-width: 991.98px) {
    header.app-header .giggly-desktop-primary-nav-wrap,
    header.app-header .giggly-desktop-primary-nav,
    header.app-header #gigglyDesktopAddBtn,
    .giggly-desktop-search-row,
    .giggly-desktop-subnav-slot,
    .giggly-desktop-show-by {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    html.giggly-desktop-nav-active .bottom-bar,
    html.giggly-desktop-nav-active [data-giggly-bottom-bar-mount] .bottom-bar,
    html.giggly-desktop-nav-active #eventsApp > .bottom-bar,
    html.giggly-desktop-nav-active #ticketWalletApp > .bottom-bar {
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    html.giggly-desktop-nav-active #eventsControlsBar,
    html.giggly-desktop-nav-active #directoryControlsBar {
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/*
 * Touch / mobile feed + All Events: stacked flyers always use the full viewport width. Prevents Android
 * landing with stale desktop grid markup or a stuck giggly-desktop-nav-active class.
 */
@media (max-width: 991.98px), (hover: none), (pointer: coarse) {
    html.giggly-following-feed-standalone #followingFeedStandaloneTitle:not([hidden]),
    html.giggly-following-feed-standalone #eventsContainer,
    html.giggly-following-feed-standalone .events-container,
    html.giggly-following-feed-standalone #feedSearchNoResultsBanner,
    body.feed-page #followingFeedStandaloneTitle:not([hidden]),
    body.feed-page #eventsContainer,
    body.feed-page .events-container,
    body.feed-page #feedSearchNoResultsBanner,
    html.events-page-root #eventsContainer,
    html.events-page-root .events-container,
    html.events-page-root #feedSearchNoResultsBanner,
    body.events-page #eventsContainer,
    body.events-page .events-container,
    body.events-page #feedSearchNoResultsBanner,
    html.giggly-desktop-nav-active.giggly-following-feed-standalone #eventsContainer,
    html.giggly-desktop-nav-active body.feed-page #eventsContainer,
    html.giggly-desktop-nav-active.events-page-root #eventsContainer,
    html.giggly-desktop-nav-active body.events-page #eventsContainer {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    html.giggly-following-feed-standalone #eventsContainer.events-container--feed-show-grid > .giggly-events-grid,
    html.giggly-following-feed-standalone .events-container.events-container--feed-show-grid > .giggly-events-grid,
    body.feed-page #eventsContainer.events-container--feed-show-grid > .giggly-events-grid,
    body.feed-page .events-container.events-container--feed-show-grid > .giggly-events-grid,
    html.events-page-root #eventsContainer.events-container--feed-show-grid > .giggly-events-grid,
    html.events-page-root .events-container.events-container--feed-show-grid > .giggly-events-grid,
    body.events-page #eventsContainer.events-container--feed-show-grid > .giggly-events-grid,
    body.events-page .events-container.events-container--feed-show-grid > .giggly-events-grid {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html.giggly-following-feed-standalone .event-card--feed-layout-grid,
    body.feed-page .event-card--feed-layout-grid,
    html.events-page-root .event-card--feed-layout-grid,
    body.events-page .event-card--feed-layout-grid {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    html.giggly-following-feed-standalone .event-card--feed-layout-grid .event-card-v2__grid-flyer-column,
    body.feed-page .event-card--feed-layout-grid .event-card-v2__grid-flyer-column,
    html.events-page-root .event-card--feed-layout-grid .event-card-v2__grid-flyer-column,
    body.events-page .event-card--feed-layout-grid .event-card-v2__grid-flyer-column {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html.giggly-following-feed-standalone .event-card-v2__flyer-column,
    html.giggly-following-feed-standalone .event-card-v2__flyer,
    body.feed-page .event-card-v2__flyer-column,
    body.feed-page .event-card-v2__flyer,
    html.events-page-root .event-card-v2__flyer-column,
    html.events-page-root .event-card-v2__flyer,
    body.events-page .event-card-v2__flyer-column,
    body.events-page .event-card-v2__flyer {
        max-width: 100%;
        overflow: hidden;
    }

    html.giggly-following-feed-standalone .event-card-v2__flyer-img,
    body.feed-page .event-card-v2__flyer-img,
    html.events-page-root .event-card-v2__flyer-img,
    body.events-page .event-card-v2__flyer-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
        object-position: center top;
    }
}

/*
 * Touch / phone shell (stamped by giggly-desktop-nav-boot.js).
 * OEM browsers (Xiaomi/POCO) often spoof hover/pointer media queries, so shell
 * layout must key off this class — not only (pointer: coarse).
 *
 * Size bumps apply with .giggly-touch-shell-enlarged — stamped for Android,
 * wide OEM/"Desktop site" viewports (~700px+), and larger max phones (~428px+).
 * Standard iPhone Pro widths (~393px) keep the original compact chrome.
 * --giggly-touch-ui-scale (>1) multiplies those metrics: modest on normal
 * Android / large phones, larger when "Desktop site" forces a ~980px layout
 * viewport onto a phone screen.
 */
html.giggly-touch-shell {
    --giggly-touch-ui-scale: 1;
}

html.giggly-touch-shell.giggly-touch-shell-enlarged {
    /* Taller Bar D so labeled tabs + FAB read larger on Android / wide / max phones. */
    --bottom-bar-height: calc(78px * var(--giggly-touch-ui-scale, 1));
    --controls-btn: calc(54px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell .filter-tabs {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

html.giggly-touch-shell .filter-tabs__scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center;
    gap: calc(10px * var(--giggly-touch-ui-scale, 1));
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    scrollbar-width: none;
}

html.giggly-touch-shell .filter-tabs__scroll .filter-tab,
html.giggly-touch-shell .filter-tabs__scroll a.filter-tab,
html.giggly-touch-shell .filter-tabs__scroll button.filter-tab,
html.giggly-touch-shell .filter-tabs__tag-pills,
html.giggly-touch-shell .filter-tabs__pinned-strip {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    min-width: max-content !important;
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .filter-tabs__scroll .filter-tab {
    font-size: calc(16px * var(--giggly-touch-ui-scale, 1));
    font-weight: 500;
    padding: calc(10px * var(--giggly-touch-ui-scale, 1)) calc(14px * var(--giggly-touch-ui-scale, 1));
    min-height: calc(40px * var(--giggly-touch-ui-scale, 1));
    border-radius: calc(14px * var(--giggly-touch-ui-scale, 1));
    line-height: 1.2;
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .filter-tabs__scroll .filter-tab .tab-count {
    font-size: calc(14px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .filter-tab__cal-icon {
    width: calc(17px * var(--giggly-touch-ui-scale, 1));
    height: calc(17px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .filter-tabs__pinned-strip .filter-tab.filter-tab--add-category {
    max-width: min(240px, 70vw);
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-title.event-card-v2__title,
html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__title,
html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__name {
    font-size: calc(1.125rem * var(--giggly-touch-ui-scale, 1));
    line-height: 1.3;
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-time.event-card-v2__time,
html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__time,
html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__promoter-name,
html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__promoter-kicker {
    font-size: calc(15px * var(--giggly-touch-ui-scale, 1));
    line-height: 1.35;
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__promoter-avatar-wrap {
    width: calc(30px * var(--giggly-touch-ui-scale, 1));
    height: calc(30px * var(--giggly-touch-ui-scale, 1));
    min-width: calc(30px * var(--giggly-touch-ui-scale, 1));
    min-height: calc(30px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__footer {
    --event-v2-footer-chip-height: calc(38px * var(--giggly-touch-ui-scale, 1));
    --event-v2-footer-chip-font-size: calc(14px * var(--giggly-touch-ui-scale, 1));
    gap: calc(14px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__footer .ticket-button,
html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__footer-icons .ticket-button,
html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__footer-icons-row__status .ticket-button {
    height: var(--event-v2-footer-chip-height);
    min-height: var(--event-v2-footer-chip-height);
    max-height: none;
    padding: 0 calc(16px * var(--giggly-touch-ui-scale, 1));
    font-size: calc(15px * var(--giggly-touch-ui-scale, 1));
    border-radius: 999px;
    flex-shrink: 0;
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__heart-disc {
    width: calc(42px * var(--giggly-touch-ui-scale, 1));
    height: calc(42px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__heart-glyph {
    font-size: calc(18px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__heart-count {
    font-size: calc(15px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__clock,
html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__ticket-swap {
    width: calc(42px * var(--giggly-touch-ui-scale, 1));
    height: calc(42px * var(--giggly-touch-ui-scale, 1));
    min-width: calc(42px * var(--giggly-touch-ui-scale, 1));
    min-height: calc(42px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__clock svg,
html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__clock-svg,
html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__ticket-swap-svg {
    width: calc(24px * var(--giggly-touch-ui-scale, 1));
    height: calc(24px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__footer-icons .event-card-v2__footer-icons-row__left {
    gap: calc(12px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__footer-icons .view-event-page__stars-group-svg {
    width: calc(26px * var(--giggly-touch-ui-scale, 1));
    height: calc(26px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .bottom-bar--labeled .bottom-bar__nav-item {
    min-width: calc(60px * var(--giggly-touch-ui-scale, 1));
    max-width: calc(104px * var(--giggly-touch-ui-scale, 1));
    min-height: calc(54px * var(--giggly-touch-ui-scale, 1));
    padding: calc(6px * var(--giggly-touch-ui-scale, 1)) calc(6px * var(--giggly-touch-ui-scale, 1)) calc(7px * var(--giggly-touch-ui-scale, 1));
    gap: calc(4px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .bottom-bar--labeled .bottom-bar__nav-icon {
    width: calc(34px * var(--giggly-touch-ui-scale, 1));
    height: calc(34px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .bottom-bar--labeled .bottom-bar__nav-icon .bottom-bar__calendar-icon,
html.giggly-touch-shell.giggly-touch-shell-enlarged .bottom-bar--labeled .bottom-bar__nav-icon .bottom-bar__feed-icon,
html.giggly-touch-shell.giggly-touch-shell-enlarged .bottom-bar--labeled .bottom-bar__nav-icon .bottom-bar__ticket-icon {
    width: calc(32px * var(--giggly-touch-ui-scale, 1));
    height: calc(32px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .bottom-bar--labeled .bottom-bar__nav-icon .bottom-bar__directory-icon {
    width: calc(34px * var(--giggly-touch-ui-scale, 1));
    height: calc(34px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .bottom-bar--labeled .bottom-bar__nav-label {
    font-size: calc(11.5px * var(--giggly-touch-ui-scale, 1));
}

/* Center + FAB on Bar D */
html.giggly-touch-shell.giggly-touch-shell-enlarged .bottom-bar .add-btn,
html.giggly-touch-shell.giggly-touch-shell-enlarged .bottom-bar.bottom-bar--with-icons > .add-btn {
    width: calc(60px * var(--giggly-touch-ui-scale, 1));
    height: calc(60px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .bottom-bar .add-btn svg,
html.giggly-touch-shell.giggly-touch-shell-enlarged .bottom-bar.bottom-bar--with-icons > .add-btn svg {
    width: calc(28px * var(--giggly-touch-ui-scale, 1));
    height: calc(28px * var(--giggly-touch-ui-scale, 1));
}

/* Bar C: filter / month pill / search — override fixed 48px control-btn boxes */
html.giggly-touch-shell.giggly-touch-shell-enlarged .controls-bar,
html.giggly-touch-shell.giggly-touch-shell-enlarged #eventsControlsBar,
html.giggly-touch-shell.giggly-touch-shell-enlarged #directoryControlsBar {
    height: calc(68px * var(--giggly-touch-ui-scale, 1));
    --controls-btn: calc(54px * var(--giggly-touch-ui-scale, 1));
    padding-left: calc(12px * var(--giggly-touch-ui-scale, 1));
    padding-right: calc(12px * var(--giggly-touch-ui-scale, 1));
    gap: calc(8px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .controls-bar .control-btn,
html.giggly-touch-shell.giggly-touch-shell-enlarged #eventsControlsBar .control-btn,
html.giggly-touch-shell.giggly-touch-shell-enlarged #directoryControlsBar .control-btn {
    width: calc(54px * var(--giggly-touch-ui-scale, 1));
    height: calc(54px * var(--giggly-touch-ui-scale, 1));
    min-width: calc(54px * var(--giggly-touch-ui-scale, 1));
    min-height: calc(54px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .controls-bar .control-btn svg,
html.giggly-touch-shell.giggly-touch-shell-enlarged #eventsControlsBar .control-btn svg,
html.giggly-touch-shell.giggly-touch-shell-enlarged #directoryControlsBar .control-btn svg {
    width: calc(28px * var(--giggly-touch-ui-scale, 1));
    height: calc(28px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .controls-bar__trailing {
    flex-basis: calc(54px * var(--giggly-touch-ui-scale, 1));
    width: calc(54px * var(--giggly-touch-ui-scale, 1));
    height: calc(54px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .controls-bar__center,
html.giggly-touch-shell.giggly-touch-shell-enlarged .controls-bar__month-search-slot,
html.giggly-touch-shell.giggly-touch-shell-enlarged .controls-month-nav {
    height: calc(54px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .controls-month-nav__pill {
    height: calc(54px * var(--giggly-touch-ui-scale, 1));
    min-height: calc(54px * var(--giggly-touch-ui-scale, 1));
    grid-template-rows: calc(54px * var(--giggly-touch-ui-scale, 1));
    border-radius: calc(27px * var(--giggly-touch-ui-scale, 1));
    font-size: calc(16px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .controls-month-nav__chev {
    font-size: calc(28px * var(--giggly-touch-ui-scale, 1));
    min-width: calc(48px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .controls-month-nav__month,
html.giggly-touch-shell.giggly-touch-shell-enlarged .controls-month-nav__year-inline {
    font-size: calc(16px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .search-container {
    height: calc(54px * var(--giggly-touch-ui-scale, 1));
    border-radius: calc(27px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .search-container .search-icon {
    width: calc(20px * var(--giggly-touch-ui-scale, 1));
    height: calc(20px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .search-input-slide {
    font-size: calc(16px * var(--giggly-touch-ui-scale, 1));
}

/* Header (Bar A) */
html.giggly-touch-shell.giggly-touch-shell-enlarged .app-header .header-logo,
html.giggly-touch-shell.giggly-touch-shell-enlarged header.app-header .header-logo,
html.giggly-touch-shell.giggly-touch-shell-enlarged .app-header .header-logo--mascot,
html.giggly-touch-shell.giggly-touch-shell-enlarged header.app-header .header-logo--mascot {
    width: calc(44px * var(--giggly-touch-ui-scale, 1));
    height: calc(52px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .app-header .header-wordmark,
html.giggly-touch-shell.giggly-touch-shell-enlarged header.app-header .header-wordmark {
    height: calc(38px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .app-header .profile-avatar,
html.giggly-touch-shell.giggly-touch-shell-enlarged header.app-header .profile-avatar,
html.giggly-touch-shell.giggly-touch-shell-enlarged #profileAvatar {
    width: calc(42px * var(--giggly-touch-ui-scale, 1));
    height: calc(42px * var(--giggly-touch-ui-scale, 1));
    min-width: calc(42px * var(--giggly-touch-ui-scale, 1));
    min-height: calc(42px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .app-header h1,
html.giggly-touch-shell.giggly-touch-shell-enlarged .app-header h1#appTitle {
    font-size: calc(24px * var(--giggly-touch-ui-scale, 1));
}

/* Modal / sheet close targets */
html.giggly-touch-shell.giggly-touch-shell-enlarged .modal-close {
    width: calc(40px * var(--giggly-touch-ui-scale, 1));
    height: calc(40px * var(--giggly-touch-ui-scale, 1));
    font-size: calc(36px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .add-event-modal__close {
    width: calc(42px * var(--giggly-touch-ui-scale, 1));
    height: calc(42px * var(--giggly-touch-ui-scale, 1));
    font-size: calc(24px * var(--giggly-touch-ui-scale, 1));
}

/* Follow / Unfollow pills */
html.giggly-touch-shell.giggly-touch-shell-enlarged .giggly-user-follow-btn,
html.giggly-touch-shell.giggly-touch-shell-enlarged .giggly-social-badge-btn,
html.giggly-touch-shell.giggly-touch-shell-enlarged .feed-follow-source__follow-btn,
html.giggly-touch-shell.giggly-touch-shell-enlarged body.promoter-channels-page .directory-channel-follow-btn,
html.giggly-touch-shell.giggly-touch-shell-enlarged body.venues-channels-directory-page .directory-channel-follow-btn,
html.giggly-touch-shell.giggly-touch-shell-enlarged .promoter-channels-page .directory-channel-follow-btn,
html.giggly-touch-shell.giggly-touch-shell-enlarged body.artists-channels-directory-page .artist-dir-follow-btn,
html.giggly-touch-shell.giggly-touch-shell-enlarged body.djs-channels-directory-page .artist-dir-follow-btn,
html.giggly-touch-shell.giggly-touch-shell-enlarged body.designers-channels-directory-page .designer-dir-follow-btn,
html.giggly-touch-shell.giggly-touch-shell-enlarged body.artist-channel-page .pc-hero-follow-btn.artist-channel-follow-btn {
    padding: calc(9px * var(--giggly-touch-ui-scale, 1)) calc(14px * var(--giggly-touch-ui-scale, 1));
    font-size: calc(0.85rem * var(--giggly-touch-ui-scale, 1));
    border-radius: calc(11px * var(--giggly-touch-ui-scale, 1));
    min-height: calc(36px * var(--giggly-touch-ui-scale, 1));
    box-sizing: border-box;
}

/* Directory hub tiles — widen enough for Promoters wordmark on Android. */
html.giggly-touch-shell.giggly-touch-shell-enlarged .giggly-directory-hub__menu {
    width: calc(300px * var(--giggly-touch-ui-scale, 1)) !important;
    max-width: min(92vw, calc(340px * var(--giggly-touch-ui-scale, 1))) !important;
    gap: calc(28px * var(--giggly-touch-ui-scale, 1)) !important;
    --dir-icon-col: calc(1.75cap * var(--giggly-touch-ui-scale, 1));
    --dir-icon-gap: calc(0.5em * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .giggly-directory-hub__link {
    padding: calc(13px * var(--giggly-touch-ui-scale, 1)) calc(12px * var(--giggly-touch-ui-scale, 1)) !important;
    border-radius: calc(16px * var(--giggly-touch-ui-scale, 1));
    min-width: 0;
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .giggly-directory-hub__link-icon {
    height: calc(1.35cap * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .giggly-directory-hub__link-label {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
    height: calc(1.05cap * var(--giggly-touch-ui-scale, 1));
    width: auto;
    object-fit: contain;
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .giggly-directory-hub__link--designers .giggly-directory-hub__link-label {
    height: calc(1.18cap * var(--giggly-touch-ui-scale, 1));
}

/*
 * View event / channel topbar, artist social icons, detail pills.
 * event.html now loads giggly-desktop-nav-boot.js so these classes apply on Android.
 */
html.giggly-touch-shell.giggly-touch-shell-enlarged .view-event-page .pc-topbar,
html.giggly-touch-shell.giggly-touch-shell-enlarged .promoter-channel-page .pc-topbar {
    grid-template-columns:
        calc(56px * var(--giggly-touch-ui-scale, 1))
        1fr
        calc(56px * var(--giggly-touch-ui-scale, 1));
    gap: calc(8px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .view-event-page .pc-topbar__back,
html.giggly-touch-shell.giggly-touch-shell-enlarged .promoter-channel-page .pc-topbar__back,
html.giggly-touch-shell.giggly-touch-shell-enlarged .festival-pro-page .pc-topbar__back {
    width: calc(46px * var(--giggly-touch-ui-scale, 1));
    height: calc(46px * var(--giggly-touch-ui-scale, 1));
    font-size: calc(1.25rem * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .view-event-page .pc-topbar__title,
html.giggly-touch-shell.giggly-touch-shell-enlarged .promoter-channel-page .pc-topbar__title {
    font-size: calc(24px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .view-event-page .pc-topbar__logo,
html.giggly-touch-shell.giggly-touch-shell-enlarged .promoter-channel-page .pc-topbar__logo {
    width: calc(38px * var(--giggly-touch-ui-scale, 1));
    height: calc(44px * var(--giggly-touch-ui-scale, 1));
    border-radius: 0;
}

/* Feed + view-event artist carousel / cards.
 * Scale avatars/icons, but keep row min-heights tight — oversized link
 * min-heights were creating empty bands between name, socials, and genres. */
html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__headline-artist-panel,
html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__headline-artist-panel-inner,
html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__headline-artist-top {
    grid-template-columns: calc(32px * var(--giggly-touch-ui-scale, 1)) minmax(0, 1fr);
    column-gap: calc(12px * var(--giggly-touch-ui-scale, 1));
    row-gap: 0;
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__headline-artist-top--listen {
    grid-template-columns:
        calc(32px * var(--giggly-touch-ui-scale, 1)) minmax(0, 1fr) auto;
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__headline-artist-avatar-wrap {
    width: calc(32px * var(--giggly-touch-ui-scale, 1));
    height: calc(32px * var(--giggly-touch-ui-scale, 1));
    min-width: calc(32px * var(--giggly-touch-ui-scale, 1));
    min-height: calc(32px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__headline-artist-nav {
    width: calc(26px * var(--giggly-touch-ui-scale, 1));
    height: calc(26px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__headline-artist-links {
    margin-top: 2px;
    min-height: calc(30px * var(--giggly-touch-ui-scale, 1));
    gap: 0 calc(4px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__headline-artist-meta {
    margin-top: 4px;
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__headline-artist-link {
    min-height: calc(30px * var(--giggly-touch-ui-scale, 1));
    padding: 2px 2px;
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__headline-artist-link svg,
html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__headline-artist-link .giggly-platform-icon {
    width: calc(26px * var(--giggly-touch-ui-scale, 1));
    height: calc(26px * var(--giggly-touch-ui-scale, 1));
    --giggly-platform-icon-size: calc(26px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .view-event-page__artist-list .event-card-v2__headline-artist-links {
    margin-top: 2px;
    min-height: calc(28px * var(--giggly-touch-ui-scale, 1));
    gap: 0 calc(4px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .view-event-page__artist-list .event-card-v2__headline-artist-link {
    min-height: calc(28px * var(--giggly-touch-ui-scale, 1));
    padding: 2px 2px;
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .view-event-page__artist-list .event-card-v2__headline-artist-link svg,
html.giggly-touch-shell.giggly-touch-shell-enlarged .view-event-page__artist-list .event-card-v2__headline-artist-link .giggly-platform-icon {
    width: calc(24px * var(--giggly-touch-ui-scale, 1));
    height: calc(24px * var(--giggly-touch-ui-scale, 1));
    --giggly-platform-icon-size: calc(24px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__headline-artist--links-double-row .event-card-v2__headline-artist-links {
    min-height: calc(60px * var(--giggly-touch-ui-scale, 1));
}

/* View-event detail pills / status chip */
html.giggly-touch-shell.giggly-touch-shell-enlarged #eventPageMetaRow .view-event-page__meta-pills.event-card-v2__footer-chips-flow {
    --event-v2-footer-chip-height: calc(34px * var(--giggly-touch-ui-scale, 1));
    --event-v2-footer-chip-font-size: calc(13px * var(--giggly-touch-ui-scale, 1));
    gap: calc(10px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged #eventPageMetaRow .view-event-page__meta-pills.event-card-v2__footer-chips-flow .event-card-v2__pill {
    padding: 0 calc(12px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .view-event-page__icons-row__status-slot .ticket-button {
    height: calc(38px * var(--giggly-touch-ui-scale, 1));
    min-height: calc(38px * var(--giggly-touch-ui-scale, 1));
    max-height: none;
    line-height: calc(38px * var(--giggly-touch-ui-scale, 1)) !important;
    font-size: calc(15px * var(--giggly-touch-ui-scale, 1));
    padding: 0 calc(16px * var(--giggly-touch-ui-scale, 1)) !important;
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .view-event-page__artist-genre-pill,
html.giggly-touch-shell.giggly-touch-shell-enlarged .event-card-v2__headline-artist-genre-pill {
    height: calc(26px * var(--giggly-touch-ui-scale, 1));
    min-height: calc(26px * var(--giggly-touch-ui-scale, 1));
    font-size: calc(12.5px * var(--giggly-touch-ui-scale, 1));
    padding: 0 calc(11px * var(--giggly-touch-ui-scale, 1));
}

html.giggly-touch-shell.giggly-touch-shell-enlarged .view-event-page__artist-toptrack-btn {
    min-height: calc(36px * var(--giggly-touch-ui-scale, 1));
    padding: calc(8px * var(--giggly-touch-ui-scale, 1)) calc(12px * var(--giggly-touch-ui-scale, 1));
    font-size: calc(0.85rem * var(--giggly-touch-ui-scale, 1));
}

/* ── Desktop top navigation (992px+); mobile chrome unchanged ── */
@media (min-width: 992px) {
    /* Calendar lives in primary nav on desktop — only hide Bar B pill once the
       desktop shell is active. Touch phones with a wide CSS viewport (OEM / 
       "Desktop site") keep the Calendar pill in the scrollable Bar B row. */
    html.giggly-desktop-nav-active body:not(.events-calendar-page):not(.events-calendar-day-page) #eventsApp #eventsCalendarNavPill,
    html.giggly-desktop-nav-active body:not(.events-calendar-page):not(.events-calendar-day-page) #eventsApp .filter-tab--calendar-nav {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    html.giggly-desktop-nav-active {
        --giggly-desktop-subnav-h: 48px;
        --giggly-desktop-search-row-h: 68px;
        --giggly-desktop-header-stack-h: calc(var(--giggly-desktop-subnav-h, 0px) + 0px);
    }

    html.giggly-desktop-nav-active.giggly-desktop-events-subnav {
        --giggly-desktop-header-stack-h: calc(
            var(--giggly-desktop-search-row-h, 68px) + var(--giggly-desktop-subnav-h, 48px)
        );
    }

    /* Tickets has no Show-by/search chrome — don't reserve the empty 68px search row. */
    html.giggly-desktop-nav-active.giggly-desktop-tickets-subnav {
        --giggly-desktop-header-stack-h: var(--giggly-desktop-subnav-h, 48px);
    }

    html.giggly-desktop-nav-active.giggly-desktop-tickets-subnav .giggly-desktop-search-row {
        display: none !important;
    }

    html.giggly-desktop-nav-active .bottom-bar,
    html.giggly-desktop-nav-active [data-giggly-bottom-bar-mount],
    html.giggly-desktop-nav-active [data-giggly-bottom-bar-mount] .bottom-bar,
    html.giggly-desktop-nav-active #eventsApp > .bottom-bar,
    html.giggly-desktop-nav-active #eventsApp > .bottom-bar.bottom-bar--with-icons,
    html.giggly-desktop-nav-active #ticketWalletApp > .bottom-bar,
    html.giggly-desktop-nav-active #ticketWalletApp > [data-giggly-bottom-bar-mount],
    html.giggly-desktop-nav-active body.app-mode.events-page .bottom-bar,
    html.giggly-desktop-nav-active body.feed-page.app-mode .bottom-bar,
    html.giggly-desktop-nav-active body.ticket-wallet-page .bottom-bar,
    html.giggly-desktop-nav-active body.promoter-channels-page .bottom-bar,
    html.giggly-desktop-nav-active .bottom-bar-container {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    html.giggly-desktop-nav-active #eventsControlsBar,
    html.giggly-desktop-nav-active #directoryControlsBar {
        display: none !important;
    }

    /*
     * Lock Bar A to one desktop height across Events / Feed / Directory / Tickets.
     * Header lives inside #gigglyAppHeaderBar1Mount — do not require :scope > header.
     * !important beats page critical CSS that previously forced a taller Directory bar.
     */
    html.giggly-desktop-nav-active header.app-header,
    html.giggly-desktop-nav-active header.app-header.app-header--desktop-chrome {
        flex-wrap: nowrap;
        align-items: center;
        min-height: 60px !important;
        height: 60px !important;
        max-height: 60px !important;
        padding: 8px 20px !important;
        padding-top: 8px !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    html.giggly-desktop-nav-active #gigglyAppHeaderBar1Mount {
        min-height: 60px !important;
        height: 60px !important;
        max-height: 60px !important;
        flex-shrink: 0;
    }

    /* Festival Pro: festival topbar is Bar A — never show / size the main Giggly mount. */
    html.giggly-desktop-nav-active body.festival-pro-page #gigglyAppHeaderBar1Mount,
    html.giggly-desktop-nav-active #festivalProApp > #gigglyAppHeaderBar1Mount {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        flex-shrink: 0;
        pointer-events: none !important;
    }

    html.giggly-desktop-nav-active body.ticket-wallet-page #ticketWalletApp {
        max-width: var(--giggly-chrome-max-width);
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-top: 0 !important;
    }

    html.giggly-desktop-nav-active header.app-header .app-header__actions {
        min-width: 148px;
        gap: 18px;
    }

    html.giggly-desktop-nav-active header.app-header.app-header--desktop-chrome #headerSettingsBtn[hidden] {
        display: flex !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 24px;
        min-width: 24px;
        flex-shrink: 0;
    }

    html.giggly-desktop-nav-active body.ticket-wallet-page #headerSettingsBtn[hidden] {
        display: flex !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 24px;
        min-width: 24px;
        flex-shrink: 0;
    }

    html.giggly-desktop-nav-active body.ticket-wallet-page .ticket-wallet-scrollport {
        margin-top: 0 !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-primary-nav-wrap {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        justify-content: center;
    }

    html.giggly-desktop-nav-active .header-left {
        flex: 0 0 auto;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row {
        position: relative;
        z-index: 110;
        width: 100%;
        max-width: none;
        margin: 0;
        box-sizing: border-box;
        /* Reserve the final row height up front. The month-nav + search + show-by controls
           mount via JS ~0.6s after first paint; without a reserved height the row grew from
           ~21px to ~68px and shoved Bar B (+ the whole feed) down 48px — a late settle that
           reads as the sub-nav "bouncing" into place. */
        min-height: var(--giggly-desktop-search-row-h, 68px);
        padding: 10px 0;
        background: rgba(255, 255, 255, 0.5);
        -webkit-backdrop-filter: blur(28px) saturate(180%);
        backdrop-filter: blur(28px) saturate(180%);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    :root[data-theme='dark'] html.giggly-desktop-nav-active .giggly-desktop-search-row {
        background: rgba(26, 15, 46, 0.72);
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row[hidden] {
        display: none !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        justify-content: stretch;
        gap: 12px;
        width: 100%;
        max-width: var(--giggly-chrome-max-width);
        margin: 0 auto;
        padding: 0 20px;
        box-sizing: border-box;
        min-width: 0;
    }

    html.giggly-desktop-nav-active .giggly-desktop-show-by {
        flex: 0 0 auto;
        grid-column: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        position: relative;
        z-index: 2;
        pointer-events: auto;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row__center {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 0;
        width: 100%;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--events .giggly-desktop-search-row__center {
        justify-content: stretch;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--feed .giggly-desktop-search-row__center {
        grid-column: 1 / 3;
        justify-content: stretch;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--feed .giggly-desktop-month-search-slot {
        display: none !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--directory .giggly-desktop-search-row__center {
        grid-column: 1 / 3;
        justify-content: stretch;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner > #dirSearchContainer {
        display: none !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--directory .giggly-desktop-search-row__center #dirSearchContainer {
        display: flex !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-month-search-slot {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        max-width: min(840px, 100%);
        height: 48px;
        min-height: 48px;
        position: relative;
    }

    html.giggly-desktop-nav-active .giggly-desktop-month-search-slot .controls-month-nav:not([hidden]) {
        display: block;
        width: 100%;
        height: 48px;
        position: relative;
        z-index: 2;
    }

    html.giggly-desktop-nav-active .giggly-desktop-month-search-slot .controls-month-nav[hidden] {
        display: none !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-month-search-slot .controls-month-nav__pill {
        width: 100%;
    }

    /* Month/search swap in desktop row — same stacking as mobile Bar C */
    html.giggly-desktop-nav-active .giggly-desktop-month-search-slot .search-container {
        position: absolute;
        inset: 0;
        width: 100%;
        max-width: 100%;
        height: 48px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 1;
    }

    html.giggly-desktop-nav-active .giggly-desktop-month-search-slot .search-container.active,
    html.giggly-desktop-nav-active .giggly-desktop-month-search-slot .search-container.giggly-desktop-search-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: 3;
    }

    html.giggly-desktop-nav-active .giggly-desktop-month-search-slot .search-container[hidden] {
        display: none !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--events .giggly-desktop-search-row__center #navSearch:not(.hidden) {
        display: flex !important;
        flex-shrink: 0;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--events .giggly-desktop-search-row__center #closeSearchShellBtn:not(.hidden) {
        display: flex !important;
        flex-shrink: 0;
    }

    /* Latest Added: keep search open in the month slot (no magnifier / close shell). */
    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--latest-added .giggly-desktop-month-search-slot .search-container.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: 3;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--latest-added .giggly-desktop-search-row__center #navSearch,
    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--latest-added .giggly-desktop-search-row__center #closeSearchShellBtn {
        display: none !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--latest-added .giggly-desktop-month-search-slot .controls-month-nav {
        display: none !important;
    }

    /* Feed: single always-visible events search bar */
    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--feed .giggly-desktop-search-row__center > .search-container {
        position: relative;
        inset: auto;
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        height: 48px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: flex !important;
    }

    /* Directory: full-width venue/promoter search only */
    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--directory .giggly-desktop-search-row__center > #searchContainer {
        display: none !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--directory .giggly-desktop-search-row__center #dirSearchContainer {
        position: relative;
        inset: auto;
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        height: 48px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: flex !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row__center .control-btn {
        flex: 0 0 auto;
        margin: 0;
    }

    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner > .control-btn {
        grid-column: 3;
        flex: 0 0 auto;
        margin: 0;
    }

    html.giggly-desktop-nav-active .giggly-desktop-show-by {
        order: unset;
    }

    html.giggly-desktop-nav-active .giggly-desktop-show-by[hidden] {
        display: none !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-show-by__label {
        flex: 0 0 auto;
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--text-secondary);
        white-space: nowrap;
    }

    html.giggly-desktop-nav-active .giggly-desktop-show-by__options {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px;
        border-radius: 999px;
        background: color-mix(in srgb, var(--text) 6%, transparent);
    }

    html.giggly-desktop-nav-active .giggly-desktop-show-by__btn {
        border: none;
        background: transparent;
        color: var(--text-secondary);
        font: inherit;
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1;
        padding: 7px 12px;
        border-radius: 999px;
        cursor: pointer;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
        pointer-events: auto;
        position: relative;
        z-index: 1;
    }

    html.giggly-desktop-nav-active .giggly-desktop-show-by__btn--active {
        background: #ffffff;
        color: #212529;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
    }

    :root[data-theme='dark'] html.giggly-desktop-nav-active .giggly-desktop-show-by__btn--active {
        background: #ffffff;
        color: #212529;
    }

    html.giggly-desktop-nav-active.giggly-desktop-feed-route .giggly-desktop-show-by,
    html.giggly-desktop-nav-active.giggly-desktop-feed-route #filterSortBtn,
    html.giggly-desktop-nav-active.giggly-desktop-feed-route #navSearch,
    html.giggly-desktop-nav-active.giggly-desktop-feed-route #closeSearchShellBtn {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    html.giggly-desktop-nav-active.giggly-desktop-feed-route .giggly-desktop-search-row {
        display: none !important;
    }

    html.giggly-desktop-nav-active.giggly-desktop-feed-route .giggly-desktop-search-row__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    html.giggly-desktop-nav-active.giggly-desktop-feed-route .giggly-desktop-search-row__center {
        grid-column: 1;
    }

    html.giggly-desktop-nav-active.giggly-desktop-events-subnav #filterSortPanel.filter-sort-panel.floating-panel.active {
        bottom: auto;
        top: calc(var(--giggly-desktop-header-stack-h, 116px) + 8px);
        z-index: 1002;
        max-height: min(70vh, 520px);
        overflow: auto;
    }

    html.giggly-desktop-nav-active #filterSortPanel label[for='filterShowBySelect'],
    html.giggly-desktop-nav-active #filterSortPanel #filterShowBySelect {
        display: none !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-month-row {
        width: 100%;
        max-width: var(--giggly-chrome-max-width);
        margin: 0 auto;
        padding: 8px 20px 4px;
        box-sizing: border-box;
    }

    html.giggly-desktop-nav-active .giggly-desktop-month-row[hidden] {
        display: none !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-month-row .controls-month-nav {
        width: 100%;
        max-width: 840px;
        margin: 0 auto;
    }

    html.giggly-desktop-nav-active .giggly-desktop-month-row .controls-month-nav__pill {
        width: 100%;
    }

    html.giggly-desktop-nav-active #eventsContainer.events-container--feed-show-grid .feed-month-divider,
    html.giggly-desktop-nav-active .events-container.events-container--feed-show-grid .feed-month-divider {
        display: none !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-month-search-slot .search-input-slide,
    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--feed .search-input-slide,
    html.giggly-desktop-nav-active .giggly-desktop-search-row__inner--directory .search-input-slide {
        width: 100% !important;
        max-width: none !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        padding-left: 34px;
    }

    html.giggly-desktop-nav-active .giggly-desktop-header-tools {
        display: none !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-primary-nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 2px;
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    html.giggly-desktop-nav-active .giggly-desktop-primary-nav::-webkit-scrollbar {
        display: none;
    }

    html.giggly-desktop-nav-active .giggly-desktop-primary-nav__item {
        flex-shrink: 0;
        border: none;
        background: transparent;
        color: var(--text);
        /* Explicit brand face + 15px so Events/Feed/Calendar match directory pages
           (those inherit system UI via body.promoter-channels-page and looked larger). */
        font-family: var(--font-sans, 'League Spartan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
        font-size: 15px;
        font-weight: 600;
        line-height: 1.2;
        padding: 6px 10px;
        border-radius: 999px;
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        opacity: 1;
        transition: background 0.15s ease, color 0.15s ease;
    }

    html.giggly-desktop-nav-active .giggly-desktop-primary-nav__item:hover {
        background: rgba(70, 129, 137, 0.1);
    }

    html.giggly-desktop-nav-active .giggly-desktop-primary-nav__item--active {
        opacity: 1;
        color: var(--accent-purple);
        background: rgba(70, 129, 137, 0.14);
    }

    html.giggly-desktop-nav-active .giggly-desktop-primary-nav__item--auth-required:not(.giggly-desktop-primary-nav__item--active) {
        color: #9ca3af;
        opacity: 0.72;
    }

    html.giggly-guest-mode.giggly-desktop-nav-active .giggly-desktop-primary-nav__item--auth-required {
        color: #9ca3af;
        opacity: 0.72;
        background: transparent;
    }

    html.giggly-guest-mode.giggly-desktop-nav-active
        .giggly-desktop-primary-nav__item--auth-required.giggly-desktop-primary-nav__item--active {
        color: #9ca3af;
        opacity: 0.72;
        background: transparent;
    }

    :root[data-theme='dark'] html.giggly-desktop-nav-active .giggly-desktop-primary-nav__item--auth-required:not(.giggly-desktop-primary-nav__item--active) {
        color: #8b8499;
        opacity: 0.78;
    }

    :root[data-theme='dark'] html.giggly-guest-mode.giggly-desktop-nav-active .giggly-desktop-primary-nav__item--auth-required {
        color: #8b8499;
        opacity: 0.78;
        background: transparent;
    }

    :root[data-theme='dark'] html.giggly-guest-mode.giggly-desktop-nav-active
        .giggly-desktop-primary-nav__item--auth-required.giggly-desktop-primary-nav__item--active {
        color: #8b8499;
        opacity: 0.78;
        background: transparent;
    }

    html.giggly-desktop-nav-active.giggly-guest-mode .giggly-desktop-header-add,
    html.giggly-guest-mode.giggly-desktop-nav-active #gigglyDesktopAddBtn {
        display: none !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-header-add {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 50%;
        position: static;
        left: auto;
        top: auto;
        transform: none;
        background: var(--brand-btn-bg, #468189) !important;
        color: #fff !important;
        font: inherit;
        font-size: 20px;
        font-weight: 600;
        line-height: 1;
        cursor: pointer;
        opacity: 1 !important;
        -webkit-tap-highlight-color: transparent;
        box-shadow: 0 4px 16px rgba(119, 172, 162, 0.4);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    html.giggly-desktop-nav-active .giggly-desktop-header-add:hover {
        transform: scale(1.08);
        box-shadow: 0 8px 24px rgba(119, 172, 162, 0.5);
        background: var(--brand-btn-bg, #468189) !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-header-add:active {
        transform: scale(0.95);
    }

    html.giggly-desktop-nav-active .giggly-desktop-primary-nav__add {
        display: none !important;
    }

    html.giggly-desktop-nav-active #eventsApp > .controls-bar {
        display: none !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-subnav-slot {
        width: 100%;
        max-width: var(--giggly-chrome-max-width);
        margin: 0 auto;
        box-sizing: border-box;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        /* Flex default min-width:auto prevented the pill row from shrinking, so
           wide genre strips overflowed and clipped the left pills with no scroll. */
        min-width: 0;
        overflow: hidden;
        flex: 0 0 auto;
    }

    html.giggly-desktop-nav-active .giggly-desktop-subnav-slot[hidden] {
        display: none !important;
    }

    html.giggly-desktop-nav-active .giggly-desktop-subnav-mount,
    html.giggly-desktop-nav-active #gigglyFilterTabsMount.giggly-desktop-subnav-mount {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        /* Critical CSS sets a 49px iOS spacer min-height on #gigglyFilterTabsMount —
           clear it in the desktop subnav so it doesn't stack with filter-tabs padding. */
        min-height: 0 !important;
        height: auto !important;
        box-sizing: border-box;
        flex: 0 0 auto;
    }

    html.giggly-desktop-nav-active .giggly-desktop-subnav-mount .filter-tabs,
    html.giggly-desktop-nav-active .giggly-desktop-subnav-slot .ticket-wallet-tabs,
    html.giggly-desktop-nav-active .giggly-desktop-subnav-mount.ticket-wallet-tabs {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        z-index: 105;
        box-sizing: border-box;
    }

    /* flex-start (not center): genre/category pills hydrate after first paint; centering
       would shift My Calendar / All Events sideways each time the row grows ("wobble"). */
    html.giggly-desktop-nav-active .giggly-desktop-subnav-mount .filter-tabs__scroll {
        justify-content: flex-start;
        padding-left: 12px;
        padding-right: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        /* Keep scrollbar overlay/hidden — a classic 6px track inflated the Bar B band. */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    html.giggly-desktop-nav-active .giggly-desktop-subnav-mount .filter-tabs__scroll::-webkit-scrollbar {
        display: none;
        height: 0;
        width: 0;
    }

    html.giggly-desktop-nav-active.giggly-desktop-events-subnav .giggly-desktop-subnav-slot .filter-tabs,
    html.giggly-desktop-nav-active .giggly-desktop-subnav-mount .filter-tabs {
        min-height: 0;
        height: auto;
        padding: 6px 0 8px;
        flex: 0 0 auto;
    }

    /* Tighten the white band between Bar B and the first flyer row on desktop. */
    html.giggly-desktop-nav-active.giggly-desktop-events-subnav #eventsContainer,
    html.giggly-desktop-nav-active.giggly-desktop-events-subnav .events-container {
        padding-top: 8px;
    }

    /* Kill pill chrome transitions on desktop — label/active updates should not animate/flicker. */
    html.giggly-desktop-nav-active .giggly-desktop-subnav-mount .filter-tabs .filter-tab {
        transition: none !important;
    }

    html.giggly-desktop-nav-active.giggly-desktop-events-subnav .giggly-desktop-subnav-slot .filter-tabs {
        display: flex !important;
    }

    html.giggly-desktop-nav-active.giggly-desktop-events-subnav #eventsCalendarNavPill,
    html.giggly-desktop-nav-active.giggly-desktop-events-subnav .filter-tab--calendar-nav,
    html.giggly-desktop-nav-active .giggly-desktop-subnav-slot #eventsCalendarNavPill,
    html.giggly-desktop-nav-active .giggly-desktop-subnav-mount #eventsCalendarNavPill,
    html.giggly-desktop-nav-active #gigglyFilterTabsMount #eventsCalendarNavPill,
    html.giggly-desktop-nav-active #gigglyFilterTabsMount .filter-tab--calendar-nav {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Directory Venues/Promoters pills moved to primary nav on desktop */
    html.giggly-desktop-nav-active.giggly-desktop-directory-route #gigglyFilterTabsMount,
    html.giggly-desktop-nav-active.giggly-desktop-directory-route .giggly-desktop-subnav-slot,
    html.giggly-desktop-nav-active.giggly-desktop-directory-route .filter-tabs,
    html.giggly-desktop-nav-active.giggly-desktop-directory-route .filter-tabs--directory {
        display: none !important;
    }

    html.giggly-desktop-nav-active.giggly-desktop-directory-route #filterSortBtn,
    html.giggly-desktop-nav-active.giggly-desktop-directory-route #dirSearchBtn,
    html.giggly-desktop-nav-active.giggly-desktop-directory-route #dirCloseSearchBtn,
    html.giggly-desktop-nav-active.giggly-desktop-directory-route .giggly-desktop-search-row__inner > .control-btn,
    html.giggly-desktop-nav-active.giggly-desktop-directory-route .giggly-desktop-search-row__inner #navSearch {
        display: none !important;
    }

    /* No events subnav on Calendar */
    html.giggly-desktop-nav-active.giggly-desktop-calendar-route #gigglyFilterTabsMount,
    html.giggly-desktop-nav-active.giggly-desktop-calendar-route .giggly-desktop-subnav-slot,
    html.giggly-desktop-nav-active.giggly-desktop-calendar-route .filter-tabs,
    html.giggly-desktop-nav-active.giggly-desktop-calendar-route .giggly-desktop-search-row {
        display: none !important;
    }

    html.giggly-desktop-nav-active.giggly-desktop-calendar-route:not(.giggly-desktop-calendar-day-route)
        .giggly-desktop-show-by {
        display: none !important;
    }

    html.giggly-desktop-nav-active.giggly-following-feed-standalone #gigglyFilterTabsMount,
    html.giggly-desktop-nav-active.giggly-following-feed-standalone .giggly-desktop-subnav-slot,
    html.giggly-desktop-nav-active.giggly-following-feed-standalone .filter-tabs {
        display: none !important;
    }

    html.giggly-desktop-nav-active.giggly-desktop-tickets-subnav #ticketWalletApp .giggly-desktop-subnav-slot {
        display: flex !important;
        align-items: center;
        justify-content: center;
        /* Match Events / Friends subnav gap under Bar A. */
        padding: 4px 20px 10px;
        box-sizing: border-box;
    }

    html.giggly-desktop-nav-active.giggly-desktop-tickets-subnav #ticketWalletApp .giggly-desktop-subnav-slot .ticket-wallet-tabs {
        display: flex !important;
    }

    html.giggly-desktop-nav-active.giggly-desktop-festival-subnav #festivalProApp .giggly-desktop-subnav-slot {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 8px 20px 10px;
        box-sizing: border-box;
    }

    html.giggly-desktop-nav-active.giggly-desktop-festival-subnav #festivalProApp .giggly-desktop-subnav-slot .festival-pro-footer {
        display: inline-flex !important;
    }

    html.giggly-desktop-nav-active .ticket-wallet-app > #gigglyAppHeaderBar1Mount,
    html.giggly-desktop-nav-active .ticket-wallet-app header.app-header,
    html.giggly-desktop-nav-active #ticketWalletApp header.app-header.app-header--desktop-chrome {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: var(--giggly-chrome-max-width) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    html.giggly-desktop-nav-active #ticketWalletApp .ticket-wallet-tabs,
    html.giggly-desktop-nav-active .giggly-desktop-subnav-slot .ticket-wallet-tabs,
    html.giggly-desktop-nav-active .giggly-desktop-subnav-mount.ticket-wallet-tabs,
    html.giggly-desktop-nav-active .ticket-wallet-tabs.ticket-wallet-tabs--desktop-pill {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        z-index: 105;
        padding: 0 12px 8px !important;
        border-radius: 0 !important;
        background: transparent !important;
        border-bottom: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        overflow-x: auto !important;
    }

    html.giggly-desktop-nav-active #ticketWalletApp .ticket-wallet-tabs.ticket-wallet-tabs--desktop-pill .ticket-wallet-tabs__btn,
    html.giggly-desktop-nav-active .giggly-desktop-subnav-slot .ticket-wallet-tabs .ticket-wallet-tabs__btn,
    html.giggly-desktop-nav-active .giggly-desktop-subnav-mount.ticket-wallet-tabs .ticket-wallet-tabs__btn,
    html.giggly-desktop-nav-active .ticket-wallet-tabs.ticket-wallet-tabs--desktop-pill .ticket-wallet-tabs__btn {
        border: 1px solid transparent !important;
        background: #e5e7eb !important;
        color: #4b5563 !important;
        font-family: var(--font-sans, 'League Spartan', sans-serif) !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        padding: 7px 11px !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
    }

    html.giggly-desktop-nav-active #ticketWalletApp .ticket-wallet-tabs.ticket-wallet-tabs--desktop-pill .ticket-wallet-tabs__btn--active,
    html.giggly-desktop-nav-active .giggly-desktop-subnav-slot .ticket-wallet-tabs .ticket-wallet-tabs__btn--active,
    html.giggly-desktop-nav-active .ticket-wallet-tabs.ticket-wallet-tabs--desktop-pill .ticket-wallet-tabs__btn--active {
        background: var(--brand-teal, #77aca2) !important;
        color: var(--brand-white, #ffffff) !important;
        box-shadow: none !important;
    }

    html.giggly-desktop-nav-active #ticketWalletApp .ticket-wallet-tabs.ticket-wallet-tabs--desktop-pill .ticket-wallet-tabs__btn--muted,
    html.giggly-desktop-nav-active .giggly-desktop-subnav-slot .ticket-wallet-tabs .ticket-wallet-tabs__btn--muted,
    html.giggly-desktop-nav-active .ticket-wallet-tabs.ticket-wallet-tabs--desktop-pill .ticket-wallet-tabs__btn--muted {
        background: #e5e7eb !important;
        color: #4b5563 !important;
    }

    :root[data-theme='dark'] html.giggly-desktop-nav-active #ticketWalletApp .ticket-wallet-tabs.ticket-wallet-tabs--desktop-pill .ticket-wallet-tabs__btn,
    :root[data-theme='dark'] html.giggly-desktop-nav-active .giggly-desktop-subnav-slot .ticket-wallet-tabs .ticket-wallet-tabs__btn,
    :root[data-theme='dark'] html.giggly-desktop-nav-active .ticket-wallet-tabs.ticket-wallet-tabs--desktop-pill .ticket-wallet-tabs__btn {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #d1d5db !important;
    }

    :root[data-theme='dark'] html.giggly-desktop-nav-active #ticketWalletApp .ticket-wallet-tabs.ticket-wallet-tabs--desktop-pill .ticket-wallet-tabs__btn--active,
    :root[data-theme='dark'] html.giggly-desktop-nav-active .giggly-desktop-subnav-slot .ticket-wallet-tabs .ticket-wallet-tabs__btn--active,
    :root[data-theme='dark'] html.giggly-desktop-nav-active .ticket-wallet-tabs.ticket-wallet-tabs--desktop-pill .ticket-wallet-tabs__btn--active {
        background: var(--brand-teal, #77aca2) !important;
        color: var(--brand-white, #ffffff) !important;
    }

    html.giggly-desktop-nav-active body.ticket-wallet-page .ticket-wallet-scrollport {
        margin-top: 0 !important;
    }

    html.giggly-desktop-nav-active #ticketWalletApp {
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
        max-height: 100dvh;
        overflow: hidden;
    }

    html.giggly-desktop-nav-active #ticketWalletApp .ticket-wallet-scrollport {
        flex: 1 1 0%;
        min-height: 0;
        overflow-y: auto !important;
    }

    /* Calendar month/year chevrons: compact row centred at content width on desktop */
    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal-modal__header-main,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal-modal__header-main {
        max-width: var(--giggly-chrome-max-width);
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
        padding: 0 20px;
    }

    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal-modal__title-row,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal-modal__title-row {
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr) 52px !important;
        align-items: center;
        justify-items: stretch;
        width: min(100%, 840px) !important;
        max-width: 840px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        gap: 0;
        flex: 0 0 auto;
    }

    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal-modal__header-main,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal-modal__header-main {
        display: block;
        max-width: var(--giggly-chrome-max-width);
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
        padding: 0 20px;
    }

    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal-modal__title-row
        .feed-month-cal-modal__nav-arrow,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal-modal__title-row
        .feed-month-cal-modal__nav-arrow {
        width: 48px;
        min-width: 48px;
        height: 48px;
        min-height: 48px;
    }

    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal-modal__title-row
        .feed-month-cal-modal__nav-arrow:first-of-type,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal-modal__title-row
        .feed-month-cal-modal__nav-arrow:first-of-type {
        justify-self: end;
    }

    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal-modal__title-row
        .feed-month-cal-modal__nav-arrow:last-of-type,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal-modal__title-row
        .feed-month-cal-modal__nav-arrow:last-of-type {
        justify-self: start;
    }

    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__cell--has-event,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__cell--has-event {
        justify-content: center;
    }

    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__cell-meta,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__cell-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        width: 100%;
        gap: 8px;
        margin-top: 0;
        padding-top: 6px;
        flex: 0 0 auto;
    }

    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__daynum,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__daynum {
        flex: 0 0 auto;
        margin-bottom: 2px;
        font-size: 1rem;
        font-weight: 700;
    }

    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__meta-row--events,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__meta-row--events {
        width: 100%;
        min-height: 0;
        justify-content: center;
        justify-self: center;
    }

    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__meta-row--likes,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__meta-row--likes {
        width: 100%;
        min-height: 0;
        justify-content: center;
        justify-self: center;
    }

    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__meta-likes-placeholder,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__meta-likes-placeholder {
        display: none;
    }

    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__events-num,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__events-num {
        font-size: 1rem;
        font-weight: 700;
    }

    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__cal-icon,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__cal-icon {
        width: 16px;
        height: 16px;
    }

    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__likes-glyph,
    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__likes-num,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__likes-glyph,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal__likes-num {
        font-size: 1rem;
        font-weight: 700;
    }

    html.giggly-desktop-nav-active .promoter-channels-page__title {
        color: var(--text);
        -webkit-text-fill-color: var(--text);
        background: none;
    }

    html.giggly-desktop-nav-active #eventsContainer.events-container--feed-show-grid,
    html.giggly-desktop-nav-active .events-container.events-container--feed-show-grid {
        max-width: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: max(20px, env(safe-area-inset-left, 0px));
        padding-right: max(20px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    /*
     * Desktop grid: 3 feed-style cards per row (flyer on top, details below).
     * !important beats the touch safety net ((hover:none)/(pointer:coarse)) on hybrid desktops.
     */
    html.giggly-desktop-nav-active #eventsContainer.events-container--feed-show-grid > .giggly-events-grid,
    html.giggly-desktop-nav-active .events-container.events-container--feed-show-grid > .giggly-events-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
        align-items: stretch;
        align-content: start;
    }

    html.giggly-desktop-nav-active #eventsContainer.events-container--feed-show-grid .giggly-events-grid > .event-card {
        margin-bottom: 0;
        min-width: 0;
        width: 100%;
        max-width: none;
        height: 100%;
    }

    html.giggly-desktop-nav-active .event-card.event-card--feed-layout-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0;
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__admin-review-banner {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 6;
        margin: 0;
        border-radius: 0;
        width: 100%;
        box-sizing: border-box;
        background: #fecaca;
        border-top: 1px solid #dc3545;
        color: #7f1d1d;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    :root[data-theme='dark'] html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__admin-review-banner {
        background: #7f1d1d;
        border-top-color: #f87171;
        color: #fecaca;
    }

    /* Banners sit over the top of the flyer (stacked card), not beside it. */
    html.giggly-desktop-nav-active .event-card--feed-layout-grid > .event-card-v2__draft-publish-banner,
    html.giggly-desktop-nav-active .event-card--feed-layout-grid > .event-card-v2__ticket-wallet-banner--grid,
    html.giggly-desktop-nav-active .event-card--feed-layout-grid > .event-on-sale-at__grid-banner {
        position: absolute;
        top: 0;
        z-index: 6;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid > .event-card-v2__draft-publish-banner,
    html.giggly-desktop-nav-active .event-card--feed-layout-grid > .event-card-v2__ticket-wallet-banner--grid {
        left: 0;
        right: 0;
        width: 100%;
        padding: 8px 12px;
        font-size: 12px;
    }

    /* On Sale At: centred pill straddling the top edge (half on card / half above). */
    html.giggly-desktop-nav-active .event-card--feed-layout-grid > .event-on-sale-at__grid-banner {
        left: 50%;
        right: auto;
        width: max-content;
        max-width: calc(100% - 20px);
        z-index: 8;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid.event-card--grid-on-sale-at {
        overflow: visible;
        margin-top: 14px;
    }

    html.giggly-desktop-nav-active
        .event-card--feed-layout-grid
        > .event-on-sale-at__grid-banner
        .ticket-button--on-sale-at-large {
        width: auto;
        max-width: 100%;
        min-height: 0;
        padding: 7px 14px;
        border-radius: 999px;
        font-size: 12px;
        line-height: 1.25;
        white-space: nowrap;
        box-shadow:
            0 2px 10px color-mix(in srgb, var(--accent-blue, #77ACA2f) 28%, transparent),
            0 1px 3px color-mix(in srgb, #000000 12%, transparent);
        pointer-events: auto;
    }

    html.giggly-desktop-nav-active
        .event-card--feed-layout-grid
        > .event-on-sale-at__grid-banner
        .event-on-sale-at__pill-text {
        font-size: 12px;
        white-space: nowrap;
    }

    /* Wallet banner is built single-line for the grid — keep it to one row */
    html.giggly-desktop-nav-active .event-card--feed-layout-grid > .event-card-v2__ticket-wallet-banner--grid {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Keep the flyer share button clear of top banners */
    html.giggly-desktop-nav-active
        .event-card--feed-layout-grid:has(
            > .event-card-v2__draft-publish-banner,
            > .event-card-v2__ticket-wallet-banner--grid
        )
        .event-card-v2__grid-share-btn {
        top: 42px;
    }

    /* Centre the Draft Event ribbon halfway down the grid flyer and size it to fit */
    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__flyer-draft-ribbon {
        font-size: 0.78rem;
        padding: 6px 10px;
        border-radius: 6px;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-flyer--empty.event-card-v2__grid-flyer--draft {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Flyer on top: fixed 3:4 box so every card in a row matches; blur fills letterbox. */
    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__grid-flyer-column {
        position: relative;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        aspect-ratio: 3 / 4;
        align-self: stretch;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-flyer {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background: rgba(15, 23, 42, 0.08);
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-flyer--empty,
    html.giggly-desktop-nav-active .event-card-v2__grid-flyer--pending {
        background: rgba(15, 23, 42, 0.08);
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-flyer-blur {
        position: absolute;
        inset: -24px;
        width: calc(100% + 48px);
        height: calc(100% + 48px);
        object-fit: cover;
        filter: blur(18px) saturate(1.15);
        transform: scale(1.08);
        opacity: 0.88;
        pointer-events: none;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-flyer-img {
        position: relative;
        z-index: 1;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
        background: transparent;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-flyer-pdf {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--text);
        text-decoration: none;
    }

    /* Details stretch so cards in a CSS-grid row share the same info-block height. */
    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__details {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 0;
        padding: 14px 14px 12px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        gap: 6px;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-share-btn {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: none;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        color: var(--text);
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    :root[data-theme='dark'] html.giggly-desktop-nav-active .event-card-v2__grid-share-btn {
        background: rgba(26, 15, 46, 0.88);
        color: var(--text);
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-share-btn svg {
        width: 16px;
        height: 16px;
        display: block;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-flyer[data-grid-flyer-open='1'] {
        cursor: zoom-in;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-head-link {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        background: transparent;
        color: inherit;
        font: inherit;
        text-align: left;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-head-link:hover .event-title,
    html.giggly-desktop-nav-active .event-card-v2__grid-head-link:hover .event-card-v2__artists {
        text-decoration: underline;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__promoter-line--promoter,
    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__venue-promoter-pair .event-card-v2__promoter-line--promoter {
        display: none !important;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__description,
    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__footer-icons,
    html.giggly-desktop-nav-active .event-card--feed-layout-grid .pc-promoter-feed-card__bottom-cta,
    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__footer-chips-row {
        display: none !important;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__grid-head-block {
        flex: 0 0 auto;
        min-height: calc(2 * 1.25rem);
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__time {
        flex-shrink: 0;
        margin: 0;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__promoter-line--venue {
        flex-shrink: 0;
        margin: 0;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-branch-badge {
        flex-shrink: 0;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__footer {
        margin-top: auto;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 4px;
        padding-top: 4px;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__headline-artist {
        flex-shrink: 0;
        margin-top: 4px;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__festival-pro-feed-banner--grid {
        flex-shrink: 0;
        margin-top: 4px;
        min-height: 84px;
        padding: 10px 12px;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid:has(.event-card-v2__headline-artist-panel--multi) .event-card-v2__details {
        overflow: visible;
    }

    html.giggly-desktop-nav-active .event-card.event-card--feed-layout-grid:has(.event-card-v2__headline-artist-panel--multi) {
        overflow: visible;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__headline-artist-links {
        flex-wrap: nowrap;
        overflow: hidden;
    }

    /* Desktop grid: compact artist carousel — row 1 name, row 2 social links (no genre/meta row). */
    html.giggly-desktop-nav-active .event-card-v2__headline-artist--grid-compact .event-card-v2__headline-artist-stage {
        min-height: 0 !important;
        height: auto;
    }

    html.giggly-desktop-nav-active .event-card-v2__headline-artist--grid-compact .event-card-v2__headline-artist-panel-inner {
        grid-template-rows: auto auto;
        row-gap: 2px;
    }

    html.giggly-desktop-nav-active .event-card-v2__headline-artist--grid-compact .event-card-v2__headline-artist-top {
        grid-template-rows: auto;
        align-items: center;
    }

    html.giggly-desktop-nav-active .event-card-v2__headline-artist--grid-compact .event-card-v2__headline-artist-kicker {
        display: none;
    }

    html.giggly-desktop-nav-active
        .event-card-v2__headline-artist--grid-compact
        .event-card-v2__headline-artist-top
        .event-card-v2__headline-artist-avatar-wrap {
        grid-row: 1;
    }

    html.giggly-desktop-nav-active
        .event-card-v2__headline-artist--grid-compact
        .event-card-v2__headline-artist-top
        .event-card-v2__headline-artist-name-row {
        grid-row: 1;
        grid-column: 2;
        align-self: center;
    }

    html.giggly-desktop-nav-active .event-card-v2__headline-artist--grid-compact .event-card-v2__headline-artist-links {
        grid-row: 2;
        margin-top: 0;
        min-height: 28px;
    }

    html.giggly-desktop-nav-active
        .event-card-v2__headline-artist--grid-compact.event-card-v2__headline-artist--links-double-row
        .event-card-v2__headline-artist-links {
        min-height: 56px;
    }

    html.giggly-desktop-nav-active
        .event-card-v2__headline-artist--grid-compact
        .event-card-v2__headline-artist-top--listen
        .event-card-v2__headline-artist-listen {
        grid-row: 1;
    }

    html.giggly-desktop-nav-active .event-card-v2__headline-artist--grid-compact .event-card-v2__headline-artist-meta {
        display: none !important;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__headline-artist-genre-pills {
        display: none;
    }

    html.giggly-desktop-nav-active
        .event-card--feed-layout-grid
        .event-card-v2__headline-artist-meta:not(:has(.event-card-v2__headline-artist-about)) {
        display: none;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-category-row {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        overflow: hidden;
        gap: 4px;
        width: 100%;
        min-width: 0;
        min-height: 22px;
        max-height: 22px;
        margin-top: 0;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-category-row .event-card-v2__pill--category {
        flex-shrink: 0;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-category-row .event-card-v2__pill--genre {
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-actions-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        min-width: 0;
        min-height: 32px;
        max-height: 32px;
        margin-top: 0;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-actions-row__left {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        min-width: 0;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-actions-row__status {
        flex: 0 0 auto;
        margin-left: auto;
        min-width: 0;
        max-width: 55%;
        display: flex;
        justify-content: flex-end;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-actions-row__status .ticket-button {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-stars-cluster {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-stars-cluster .event-card-v2__stars-group {
        width: 22px;
        height: 22px;
        padding: 0;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-stars-cluster .view-event-page__stars-group-svg {
        width: 18px;
        height: 18px;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-stars-cluster .event-card-v2__heart-count {
        font-size: 0.75rem;
        min-width: 0;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-stars-cluster .event-card-v2__heart {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        padding: 0;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-stars-cluster .event-card-v2__heart-disc {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-head-block {
        min-width: 0;
        max-width: 100%;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-head-block .event-card-v2__grid-head-link {
        display: block;
        text-align: left;
        width: 100%;
        max-width: 100%;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-head-clamp-inner {
        display: block;
        overflow: hidden;
        text-align: left;
        line-height: 1.25rem;
        max-width: 100%;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-head-clamp-inner .event-card-v2__title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.9375rem;
        font-weight: 700;
        margin: 0;
        line-height: 1.25rem;
        max-width: 100%;
        word-break: break-word;
    }

    html.giggly-desktop-nav-active .event-card-v2__grid-head-clamp-inner .event-card-v2__artists {
        display: block;
        font-size: 0.8125rem;
        margin: 0;
        line-height: 1.25rem;
        color: var(--text-secondary);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Compact multi-venue row: keep flex icon stack (do not force the old 2-row text-only grid). */
    html.giggly-desktop-nav-active .event-card-v2__promoter-line__inner--various {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        max-width: 100%;
        min-width: 0;
    }

    html.giggly-desktop-nav-active .event-card-v2__promoter-line__inner--various .event-card-v2__promoter-text-col {
        flex: 1 1 auto;
        min-width: 0;
    }

    html.giggly-desktop-nav-active .feed-month-cal__cell--search-hidden {
        visibility: hidden;
        pointer-events: none;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__pill--type {
        display: none !important;
    }

    /* Grid cards: smaller venue header ("Venue:") and venue name */
    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__promoter-kicker {
        font-size: 11px;
    }

    html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__promoter-name {
        font-size: 12px;
    }

    html.giggly-desktop-nav-active body.modal-open .modal.giggly-grid-flyer-lightbox.active {
        display: flex;
    }

    .giggly-grid-flyer-lightbox {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 2147483000;
        align-items: center;
        justify-content: center;
        padding: 24px;
        box-sizing: border-box;
    }

    .giggly-grid-flyer-lightbox.active {
        display: flex;
    }

    .giggly-grid-flyer-lightbox__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.72);
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .giggly-grid-flyer-lightbox__panel {
        position: relative;
        z-index: 1;
        max-width: min(92vw, 720px);
        max-height: min(88vh, 960px);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }

    .giggly-grid-flyer-lightbox__close {
        position: absolute;
        top: -12px;
        right: -12px;
        z-index: 2;
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 999px;
        background: var(--bg);
        color: var(--text);
        font-size: 1.35rem;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 2px 12px rgba(15, 23, 42, 0.2);
        pointer-events: auto;
    }

    .giggly-grid-flyer-lightbox__media {
        pointer-events: auto;
        max-width: 100%;
        max-height: min(88vh, 960px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .giggly-grid-flyer-lightbox__media img {
        display: block;
        max-width: 100%;
        max-height: min(88vh, 960px);
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(15, 23, 42, 0.35);
    }

    .giggly-grid-flyer-lightbox__media iframe {
        width: min(92vw, 640px);
        height: min(80vh, 840px);
        border: none;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 32px rgba(15, 23, 42, 0.35);
    }

    html.giggly-desktop-nav-active body.modal-open .giggly-grid-listen-modal.active {
        display: block;
    }

    .giggly-grid-listen-modal {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 2147483001;
        pointer-events: none;
    }

    .giggly-grid-listen-modal.active {
        display: block;
        pointer-events: auto;
    }

    .giggly-grid-listen-modal__backdrop {
        position: absolute;
        inset: 0;
        border: none;
        padding: 0;
        background: transparent;
        cursor: pointer;
    }

    .giggly-grid-listen-modal__panel {
        position: fixed;
        z-index: 1;
        width: 420px;
        max-width: calc(100vw - 24px);
        padding: 14px 14px 12px;
        border-radius: 14px;
        border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
        background: var(--bg);
        box-shadow: 0 10px 36px rgba(15, 23, 42, 0.28);
        box-sizing: border-box;
        pointer-events: auto;
    }

    :root[data-theme='dark'] .giggly-grid-listen-modal__panel {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    }

    .giggly-grid-listen-modal__close {
        position: absolute;
        top: 6px;
        right: 6px;
        z-index: 2;
        width: 28px;
        height: 28px;
        border: none;
        border-radius: 999px;
        background: color-mix(in srgb, var(--text) 8%, transparent);
        color: var(--text);
        font-size: 1.2rem;
        line-height: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .giggly-grid-listen-modal__media {
        width: 100%;
        min-height: 352px;
    }

    .giggly-grid-listen-modal__media .event-card-v2__headline-artist-embed {
        margin-top: 0;
        min-height: 352px;
    }

    .giggly-grid-listen-modal__media iframe {
        display: block;
        width: 100%;
        height: 352px;
        border: 0;
        border-radius: 12px;
    }

    .giggly-grid-listen-modal__media .event-card-v2__headline-artist-embed--mixcloud {
        min-height: var(--giggly-mixcloud-embed-h, 180px);
    }

    .giggly-grid-listen-modal__media .event-card-v2__headline-artist-embed--mixcloud iframe {
        height: var(--giggly-mixcloud-embed-h, 180px);
    }

    html.giggly-desktop-nav-active body.events-calendar-page #eventsCalendarPage {
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    html.giggly-desktop-nav-active .events-container,
    html.giggly-desktop-nav-active #eventsContainer,
    html.giggly-desktop-nav-active .promoter-channels-page__scroll-body {
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px) + var(--events-feed-scroll-tail, 0px));
    }

    html.giggly-desktop-nav-active #eventsContainer:not(.events-container--feed-show-list):not(.events-container--feed-show-grid),
    html.giggly-desktop-nav-active .events-container:not(.events-container--feed-show-list):not(.events-container--feed-show-grid),
    html.giggly-desktop-nav-active.giggly-following-feed-standalone #eventsContainer,
    html.giggly-desktop-nav-active body.feed-page #eventsContainer {
        max-width: var(--giggly-feed-content-max-width) !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box;
    }

    html.giggly-desktop-nav-active body.events-calendar-day-page
        #eventsCalDayCards:not(.events-container--feed-show-list):not(.events-container--feed-show-grid) {
        max-width: var(--giggly-feed-content-max-width) !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box;
    }

    html.giggly-desktop-nav-active body.events-calendar-day-page
        #eventsCalendarDayPage:has(#eventsCalDayCards.events-container--feed-show-grid),
    html.giggly-desktop-nav-active body.events-calendar-day-page
        #eventsCalendarDayPage:has(#eventsCalDayCards.events-container--feed-show-list) {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    html.giggly-desktop-nav-active body.events-calendar-day-page
        .events-calendar-day-page__cards-scroll:has(.events-container--feed-show-grid),
    html.giggly-desktop-nav-active body.events-calendar-day-page
        .events-calendar-day-page__cards-scroll:has(.events-container--feed-show-list),
    html.giggly-desktop-nav-active body.events-calendar-day-page
        #eventsCalDayCards.events-container--feed-show-grid,
    html.giggly-desktop-nav-active body.events-calendar-day-page
        #eventsCalDayCards.events-container--feed-show-list {
        max-width: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: max(20px, env(safe-area-inset-left, 0px));
        padding-right: max(20px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    html.giggly-desktop-nav-active body.events-calendar-day-page
        #eventsCalDayCards.events-container--feed-show-grid
        > .giggly-events-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
        width: 100%;
        box-sizing: border-box;
        align-items: stretch;
        align-content: start;
    }

    html.giggly-desktop-nav-active body.events-calendar-day-page
        #eventsCalDayCards.events-container--feed-show-grid
        .giggly-events-grid
        > .event-card {
        margin-bottom: 0;
        min-width: 0;
        width: 100%;
        max-width: none;
    }

    html.giggly-desktop-nav-active.giggly-desktop-calendar-day-route
        body.events-calendar-day-page
        .events-calendar-day-page__date-nav-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 840px) minmax(0, 1fr);
        align-items: center;
        width: 100%;
        max-width: none;
        margin: 0 auto;
        box-sizing: border-box;
        padding: 0 20px;
        column-gap: 0;
        position: static;
        min-height: 0;
    }

    html.giggly-desktop-nav-active.giggly-desktop-calendar-day-route
        .events-calendar-day-page__show-by-slot {
        display: flex !important;
        align-items: center;
        min-width: 0;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    html.giggly-desktop-nav-active.giggly-desktop-calendar-day-route
        .events-calendar-day-page__filter-slot {
        display: flex !important;
        align-items: center;
        min-width: 0;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    html.giggly-desktop-nav-active.giggly-desktop-calendar-day-route
        .events-calendar-day-page__filter-slot[hidden] {
        display: none !important;
    }

    html.giggly-desktop-nav-active.giggly-desktop-calendar-day-route
        .events-calendar-day-page__filter-slot:not([hidden]) {
        position: static;
        transform: none;
    }

    html.giggly-desktop-nav-active.giggly-desktop-calendar-day-route
        body.events-calendar-day-page
        .events-calendar-day-page__date-nav-cluster {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        max-width: 840px;
        margin: 0;
        justify-self: center;
    }

    html.giggly-desktop-nav-active body.events-calendar-day-page
        .events-calendar-day-page__date-nav
        .feed-month-cal-modal__header-main {
        display: block;
        max-width: none;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }

    html.giggly-desktop-nav-active body.events-calendar-day-page
        .events-calendar-day-page__date-nav
        .events-calendar-day-page__date-nav-cluster,
    html.giggly-desktop-nav-active body.events-calendar-day-page
        .events-calendar-day-page__date-nav
        .feed-month-cal-modal__title-row {
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) 48px !important;
        align-items: center;
        justify-items: stretch;
        width: 100% !important;
        max-width: 840px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        gap: 0;
        flex: 0 0 auto;
        min-height: 48px;
    }

    html.giggly-desktop-nav-active body.events-calendar-day-page
        .events-calendar-day-page__date-nav
        .feed-month-cal-modal__title-row
        .feed-month-cal-modal__title {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        line-height: 1.15;
        padding: 0 8px;
        box-sizing: border-box;
        align-self: center;
    }

    html.giggly-desktop-nav-active body.events-calendar-day-page
        .events-calendar-day-page__date-nav
        .feed-month-cal-modal__title-row
        .feed-month-cal-modal__nav-arrow {
        width: 48px;
        min-width: 48px;
        height: 48px;
        min-height: 48px;
        align-self: center;
    }

    html.giggly-desktop-nav-active body.events-calendar-day-page
        .events-calendar-day-page__date-nav
        .feed-month-cal-modal__title-row
        .feed-month-cal-modal__nav-arrow:first-of-type {
        justify-self: start;
    }

    html.giggly-desktop-nav-active body.events-calendar-day-page
        .events-calendar-day-page__date-nav
        .feed-month-cal-modal__title-row
        .feed-month-cal-modal__nav-arrow:last-of-type {
        justify-self: end;
    }

    html.giggly-desktop-nav-active #ticketWalletApp .ticket-wallet-scrollport {
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }
}

/* Before embed mode is applied, hide the main app shell so the feed does not flash in the iframe. */
html.giggly-add-event-embed-flash #eventsApp:not([data-giggly-add-event-embed='1']) {
    visibility: hidden !important;
}

/* Full-page ?addEvent=1 deep link: hide feed until the normal add modal opens (not embed layout). */
html.giggly-add-event-direct-flash #eventsApp {
    visibility: hidden !important;
}

/* View-event iframe: hide feed until openEditModal adds #editEventModal.active (flash removed there). */
html.giggly-view-event-edit-flash #eventsApp {
    visibility: hidden !important;
    pointer-events: none;
}

html.giggly-view-event-edit-flash body.app-mode {
    background: var(--bg, #fff);
}

#eventsApp[data-giggly-view-event-edit-embed='1']
    > *:not(#editEventModal):not(#eventFlyerPickModal):not(#eventGenrePickModal):not(#gigglyFlyerPickInputsMount) {
    display: none !important;
}

#eventsApp[data-giggly-view-event-edit-embed='1'] #editEventModal {
    display: none;
}

#eventsApp[data-giggly-view-event-edit-embed='1'] #editEventModal.active {
    display: flex !important;
}

#eventsApp[data-giggly-view-event-edit-embed='1'] #eventFlyerPickModal {
    display: none;
}

#eventsApp[data-giggly-view-event-edit-embed='1'] #eventFlyerPickModal.active {
    display: flex !important;
}

#eventsApp[data-giggly-view-event-edit-embed='1'] .event-flyer-pick-modal-root.active {
    z-index: 2147483200 !important;
}

#eventsApp[data-giggly-view-event-edit-embed='1'] #eventGenrePickModal.active {
    z-index: 2147483200 !important;
}

/*
 * View-event edit iframe: fill the frame and pin Delete/Save to the sheet bottom.
 * Without this, the default phone rules (fixed footer + 92dvh sheet) leave a white band under the buttons.
 */
html.giggly-app-active:has(#eventsApp[data-giggly-view-event-edit-embed='1']) {
    height: 100%;
    min-height: 100%;
}

@supports (-webkit-touch-callout: none) {
    html.giggly-app-active:has(#eventsApp[data-giggly-view-event-edit-embed='1']) {
        height: 100%;
        min-height: 100%;
    }

    html.giggly-app-active:has(#eventsApp[data-giggly-view-event-edit-embed='1']) body.app-mode {
        height: 100%;
        min-height: 100%;
    }
}

#eventsApp[data-giggly-view-event-edit-embed='1'] {
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    box-sizing: border-box;
}

#eventsApp[data-giggly-view-event-edit-embed='1'] .modal.add-event-modal.active {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
}

#eventsApp[data-giggly-view-event-edit-embed='1'] .modal.add-event-modal.active .add-event-modal__sheet {
    flex: 1 1 auto;
    height: 100%;
    max-height: 100% !important;
    min-height: 0;
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
    overflow: hidden;
    /* Do not use 92dvh — IME shrink moves fixed header/footer with the sheet. */
}

/*
 * View-event edit iframe: align sheet header with Bar A (.app-header) — safe-area + padding so Close is tappable.
 */
#eventsApp[data-giggly-view-event-edit-embed='1'] {
    --giggly-ve-edit-header-safe-top: env(safe-area-inset-top, 0px);
    --giggly-ve-edit-header-block-h: calc(var(--giggly-ve-edit-header-safe-top) + 8px + 12px + 58px);
    --giggly-ve-edit-form-top-pad: calc(var(--giggly-ve-edit-header-block-h) + 20px);
}

/* Header pinned to iframe top; only #editEventModal .add-event-form scrolls (not genre/flyer pickers). */
#eventsApp[data-giggly-view-event-edit-embed='1'] #editEventModal.modal.add-event-modal.active .add-event-modal__header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1011;
    flex-shrink: 0;
    background: var(--bg);
    box-sizing: border-box;
    padding: 12px 20px !important;
    padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
}

#eventsApp[data-giggly-view-event-edit-embed='1'] #editEventModal.modal.add-event-modal.active .add-event-modal__close {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/*
 * Footer pinned to iframe bottom; keyboard overlays (interactive-widget=overlays-content).
 * Do not use in-flow flex footer — viewport shrink was lifting the bar with focused fields.
 */
#eventsApp[data-giggly-view-event-edit-embed='1'] #editEventModal.modal.add-event-modal.active .add-event-modal__sheet > .modal-actions,
#eventsApp[data-giggly-view-event-edit-embed='1']
    #editEventModal.modal.add-event-modal.active
    .add-event-modal__sheet
    > .modal-actions.edit-event-modal-actions,
#eventsApp[data-giggly-view-event-edit-embed='1'] #editEventModal.modal.add-event-modal.active .edit-event-modal-actions {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 1010;
    flex-shrink: 0;
    will-change: auto;
    background: var(--bg);
    border-top: 1px solid var(--add-event-row-border, rgba(0, 0, 0, 0.08));
    box-sizing: border-box;
    padding: 12px 20px 12px !important;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
}

#eventsApp[data-giggly-view-event-edit-embed='1'] #editEventModal.modal.add-event-modal.active .add-event-modal__sheet > .add-event-form {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: var(--giggly-ve-edit-form-top-pad, 96px) !important;
    /* Footer is fixed — reserve bar height only; IME scroll room comes from .add-event-form__kb-scroll-tail (JS). */
    padding-bottom: max(96px, calc(68px + env(safe-area-inset-bottom, 0px))) !important;
    scroll-padding-top: var(--giggly-ve-edit-form-top-pad, 96px);
    scroll-padding-bottom: max(80px, calc(68px + env(safe-area-inset-bottom, 0px)));
}

#eventsApp[data-giggly-view-event-edit-embed='1'] #editEventModal.modal.add-event-modal.active .add-event-form :is(textarea, input, select, .add-event-custom-select__trigger) {
    scroll-margin-top: var(--giggly-ve-edit-form-top-pad, 96px);
    scroll-margin-bottom: 12px;
}

html.giggly-view-event-edit-embed-kb-lock
    #eventsApp[data-giggly-view-event-edit-embed='1']
    #editEventModal.modal.add-event-modal.active
    .add-event-modal__sheet
    > .add-event-form {
    scroll-padding-bottom: max(120px, min(32vh, 240px));
}

html.giggly-view-event-edit-embed-kb-lock
    #eventsApp[data-giggly-view-event-edit-embed='1']
    #editEventModal.modal.add-event-modal.active
    .add-event-form
    :is(textarea, input, select, .add-event-custom-select__trigger) {
    scroll-margin-bottom: max(16px, min(28vh, 200px));
}

/*
 * iOS PWA: freeze shell height while the IME is open so dvh / flex shrink does not lift header/footer.
 * --giggly-view-event-edit-kb-lock-h is set from events.html when the child posts keyboard active.
 */
html.giggly-view-event-edit-embed-kb-lock.giggly-app-active,
html.giggly-view-event-edit-embed-kb-lock.giggly-app-active body.app-mode {
    height: var(--giggly-view-event-edit-kb-lock-h, 100lvh) !important;
    min-height: var(--giggly-view-event-edit-kb-lock-h, 100lvh) !important;
    max-height: var(--giggly-view-event-edit-kb-lock-h, 100lvh) !important;
    overflow: hidden !important;
}

html.giggly-view-event-edit-embed-kb-lock #eventsApp[data-giggly-view-event-edit-embed='1'] {
    height: var(--giggly-view-event-edit-kb-lock-h, 100%) !important;
    min-height: var(--giggly-view-event-edit-kb-lock-h, 100%) !important;
    max-height: var(--giggly-view-event-edit-kb-lock-h, 100%) !important;
    overflow: hidden !important;
}

html.giggly-edit-event-embed-flash #eventsApp:not([data-giggly-edit-event-embed='1']) {
    visibility: hidden !important;
}

/* Add-event opened inside promoter-channel iframe: hide main shell, show modal only. */
#eventsApp[data-giggly-add-event-embed='1']
    > *:not(#addEventModal):not(#eventFlyerPickModal):not(#eventGenrePickModal):not(#gigglyFlyerPickInputsMount) {
    display: none !important;
}

#eventsApp[data-giggly-add-event-embed='1'] #addEventModal {
    display: none;
}

#eventsApp[data-giggly-add-event-embed='1'] #addEventModal.active {
    display: flex !important;
}

#eventsApp[data-giggly-add-event-embed='1'] #eventFlyerPickModal {
    display: none;
}

#eventsApp[data-giggly-add-event-embed='1'] #eventFlyerPickModal.active {
    display: flex !important;
}

#eventsApp[data-giggly-add-event-embed='1'] .event-flyer-pick-modal-root.active {
    z-index: 2147483200 !important;
}

#eventsApp[data-giggly-add-event-embed='1'] #eventGenrePickModal.active {
    z-index: 2147483200 !important;
}

#eventsApp[data-giggly-edit-event-embed='1']
    > *:not(#editEventModal):not(#eventFlyerPickModal):not(#eventGenrePickModal):not(#gigglyFlyerPickInputsMount) {
    display: none !important;
}

#eventsApp[data-giggly-edit-event-embed='1'] #editEventModal {
    display: none;
}

#eventsApp[data-giggly-edit-event-embed='1'] #editEventModal.active {
    display: flex !important;
}

#eventsApp[data-giggly-edit-event-embed='1'] #eventFlyerPickModal {
    display: none;
}

#eventsApp[data-giggly-edit-event-embed='1'] #eventFlyerPickModal.active {
    display: flex !important;
}

#eventsApp[data-giggly-edit-event-embed='1'] .event-flyer-pick-modal-root.active {
    z-index: 2147483200 !important;
}

#eventsApp[data-giggly-edit-event-embed='1'] #eventGenrePickModal.active {
    z-index: 2147483200 !important;
}

/* Edit-event embed layout: see shared add-event-embed rules above (#eventsApp[data-giggly-edit-event-embed]). */

/*
 * Promoter/venue add-event iframe: stable full height (lvh / % — not dvh, which shrinks with the IME).
 * Footer stays at the physical bottom of the sheet; keyboard overlays (interactive-widget=overlays-content).
 */
html.giggly-app-active:has(#eventsApp[data-giggly-add-event-embed='1']),
html.giggly-app-active:has(#eventsApp[data-giggly-edit-event-embed='1']) {
    height: 100%;
    min-height: 100%;
}

@supports (-webkit-touch-callout: none) {
    html.giggly-app-active:has(#eventsApp[data-giggly-add-event-embed='1']),
    html.giggly-app-active:has(#eventsApp[data-giggly-edit-event-embed='1']) {
        height: 100%;
        min-height: 100%;
    }

    html.giggly-app-active:has(#eventsApp[data-giggly-add-event-embed='1']) body.app-mode,
    html.giggly-app-active:has(#eventsApp[data-giggly-edit-event-embed='1']) body.app-mode {
        height: 100%;
        min-height: 100%;
    }
}

#eventsApp[data-giggly-add-event-embed='1'],
#eventsApp[data-giggly-edit-event-embed='1'] {
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    box-sizing: border-box;
}

#eventsApp[data-giggly-add-event-embed='1'] .modal.add-event-modal.active,
#eventsApp[data-giggly-edit-event-embed='1'] .modal.add-event-modal.active {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    align-items: stretch;
    justify-content: flex-start;
}

#eventsApp[data-giggly-add-event-embed='1'] .modal.add-event-modal.active .add-event-modal__sheet,
#eventsApp[data-giggly-edit-event-embed='1'] .modal.add-event-modal.active .add-event-modal__sheet {
    flex: 1 1 auto;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* Opacity only — transform on the sheet breaks position:fixed and pins the footer to a shrinking box. */
    animation: giggly-embed-add-sheet-fade 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes giggly-embed-add-sheet-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 539px) {
    #eventsApp[data-giggly-add-event-embed='1'] .modal.add-event-modal.active .add-event-modal__sheet > .modal-actions,
    #eventsApp[data-giggly-edit-event-embed='1'] .modal.add-event-modal.active .add-event-modal__sheet > .modal-actions {
        position: static;
        margin-top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        z-index: 2;
        flex-shrink: 0;
        will-change: auto;
        background: var(--bg);
        border-top: 1px solid var(--add-event-row-border, rgba(0, 0, 0, 0.08));
        box-sizing: border-box;
        padding-top: 12px;
        padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
        padding-left: 20px;
        padding-right: 20px;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
    }

    #eventsApp[data-giggly-add-event-embed='1'] .modal.add-event-modal.active .add-event-modal__sheet > .add-event-form,
    #eventsApp[data-giggly-edit-event-embed='1'] .modal.add-event-modal.active .add-event-modal__sheet > .add-event-form {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding-bottom: 24px;
        scroll-padding-bottom: 24px;
    }
}

/* Standalone /events/add-event — viewport-pinned Bar A + Bar D (same model as events .bottom-bar).
   Do NOT position:fixed html/body/#eventsApp — iOS WebKit nests fixed descendants inside that box
   instead of the viewport, leaving the Create bar floating above a white band. */
html.giggly-add-event-page-root {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100lvh;
    overflow-x: hidden;
    overflow-y: hidden;
    background: var(--bg);
}

html.giggly-add-event-page-root body.giggly-add-event-page.app-mode {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100lvh;
    overflow: hidden;
    overscroll-behavior: none;
    background: var(--bg);
}

@supports (-webkit-touch-callout: none) {
    html.giggly-add-event-page-root {
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
    }

    html.giggly-add-event-page-root body.giggly-add-event-page.app-mode {
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
    }
}

html.giggly-add-event-page-root body.giggly-add-event-page.modal-open {
    overflow: hidden !important;
}

#eventsApp[data-giggly-add-event-standalone='1'] {
    position: relative;
    width: 100%;
    max-width: 840px;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100lvh;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: var(--bg);
    box-sizing: border-box;
}

/* Bar A: fixed to the layout viewport top (not scrolled off on iOS PWA). */
#eventsApp[data-giggly-add-event-standalone='1'] > header.app-header,
#eventsApp[data-giggly-add-event-standalone='1'] > #gigglyAppHeaderBar1Mount,
#eventsApp[data-giggly-add-event-standalone='1'] > #gigglyAppHeaderBar1Mount .app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-shrink: 0;
    order: -1;
    z-index: 520;
    box-sizing: border-box;
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
}

/* Hide feed/settings chrome — file inputs stay in DOM for programmatic click.
   Create and edit modals are both allowlisted; inactive edit is hidden below. */
#eventsApp[data-giggly-add-event-standalone='1']
    > *:not(#gigglyAppHeaderBar1Mount):not(#addEventModal):not(#editEventModal):not(#eventFlyerPickModal):not(#eventGenrePickModal):not(#appMessageModal):not(#flyerProcessingOverlay):not(#gigglyFlyerPickInputsMount) {
    display: none !important;
}

#eventsApp[data-giggly-add-event-standalone='1'] > #appMessageModal:not(.active) {
    display: none !important;
}

/* Create flow: inactive edit modal must not overlay the add-event sheet. */
#eventsApp[data-giggly-add-event-standalone='1']:not([data-giggly-add-event-edit-pending='1']):not([data-giggly-add-event-editing='1'])
    > #editEventModal:not(.active) {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Full-page edit: hide create shell while editing. */
#eventsApp[data-giggly-add-event-edit-pending='1'] #addEventModal,
#eventsApp[data-giggly-add-event-editing='1'] #addEventModal,
#eventsApp[data-giggly-add-event-standalone='1']:has(#editEventModal.active) #addEventModal {
    display: none !important;
}

#eventsApp[data-giggly-add-event-standalone='1'] #addEventModal.modal.add-event-modal.active,
#eventsApp[data-giggly-add-event-standalone='1'] #editEventModal.modal.add-event-modal.active,
#eventsApp[data-giggly-add-event-edit-pending='1'] #editEventModal.modal.add-event-modal,
#eventsApp[data-giggly-add-event-editing='1'] #editEventModal.modal.add-event-modal {
    position: fixed;
    top: var(--giggly-standalone-header-h, 73px);
    left: 0;
    right: 0;
    bottom: calc(var(--bottom-bar-height, 62px) + max(env(safe-area-inset-bottom, 0px), 8px));
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    height: auto;
    max-height: none;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    touch-action: auto;
    pointer-events: auto;
    box-sizing: border-box;
    z-index: 1;
    visibility: visible !important;
}

#eventsApp[data-giggly-add-event-standalone='1'] #addEventModal.modal.add-event-modal.active .add-event-modal__sheet,
#eventsApp[data-giggly-add-event-standalone='1'] #editEventModal.modal.add-event-modal.active .add-event-modal__sheet,
#eventsApp[data-giggly-add-event-edit-pending='1'] #editEventModal.modal.add-event-modal .add-event-modal__sheet,
#eventsApp[data-giggly-add-event-editing='1'] #editEventModal.modal.add-event-modal .add-event-modal__sheet {
    flex: 1 1 auto;
    height: 100%;
    max-height: none;
    min-height: 0;
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
}

#eventsApp[data-giggly-add-event-standalone='1'] #addEventModal.modal.add-event-modal.active .add-event-form,
#eventsApp[data-giggly-add-event-standalone='1'] #editEventModal.modal.add-event-modal.active .add-event-form,
#eventsApp[data-giggly-add-event-edit-pending='1'] #editEventModal.modal.add-event-modal .add-event-form,
#eventsApp[data-giggly-add-event-editing='1'] #editEventModal.modal.add-event-modal .add-event-form {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: calc(var(--bottom-bar-height, 62px) + max(env(safe-area-inset-bottom, 0px), 8px) + 32px);
    scroll-padding-bottom: calc(var(--bottom-bar-height, 62px) + max(env(safe-area-inset-bottom, 0px), 8px) + 16px);
}

#eventsApp[data-giggly-add-event-standalone='1'] #addEventModal .add-event-form:has(.add-event-custom-select.is-open),
#eventsApp[data-giggly-add-event-standalone='1'] #editEventModal .add-event-form:has(.add-event-custom-select.is-open),
#eventsApp[data-giggly-add-event-standalone='1'] #addEventModal .add-event-form:has(.venue-suggest-list:not([hidden])),
#eventsApp[data-giggly-add-event-standalone='1'] #editEventModal .add-event-form:has(.venue-suggest-list:not([hidden])),
#eventsApp[data-giggly-add-event-standalone='1'] #addEventModal .add-event-form.add-event-form--overflow-visible,
#eventsApp[data-giggly-add-event-standalone='1'] #editEventModal .add-event-form.add-event-form--overflow-visible {
    overflow: visible;
}

#eventsApp[data-giggly-add-event-standalone='1'] #addEventModal .add-event-modal__header--standalone,
#eventsApp[data-giggly-add-event-standalone='1'] #editEventModal .add-event-modal__header--standalone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px 12px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--add-event-row-border, rgba(0, 0, 0, 0.08));
    background: var(--bg);
}

#eventsApp[data-giggly-add-event-standalone='1'] #addEventModal .add-event-modal__title--standalone,
#eventsApp[data-giggly-add-event-standalone='1'] #editEventModal .add-event-modal__title--standalone {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text, #212529);
}

:root[data-theme='dark']
    #eventsApp[data-giggly-add-event-standalone='1']
    #addEventModal
    .add-event-modal__title--standalone,
:root[data-theme='dark']
    #eventsApp[data-giggly-add-event-standalone='1']
    #editEventModal
    .add-event-modal__title--standalone {
    color: var(--text, #e8e4ed);
}

#eventsApp[data-giggly-add-event-standalone='1'] #addEventSubmitBtn.add-event-submit-btn {
    touch-action: manipulation;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

#eventsApp[data-giggly-add-event-standalone='1'] #addEventModal .add-event-custom-select.is-open,
#eventsApp[data-giggly-add-event-standalone='1'] #editEventModal .add-event-custom-select.is-open {
    z-index: 40;
}

#eventsApp[data-giggly-add-event-standalone='1'] #addEventModal.modal.add-event-modal.active .add-event-modal__sheet,
#eventsApp[data-giggly-add-event-standalone='1'] #editEventModal.modal.add-event-modal.active .add-event-modal__sheet {
    padding-bottom: 0;
}

/* Bar D band: viewport-fixed — same box model as .bottom-bar on the events page. */
#eventsApp[data-giggly-add-event-standalone='1'] #addEventModal.modal.add-event-modal.active .add-event-modal__sheet > .modal-actions,
#eventsApp[data-giggly-add-event-standalone='1'] #editEventModal.modal.add-event-modal.active .add-event-modal__sheet > .modal-actions,
#eventsApp[data-giggly-add-event-standalone='1'] #editEventModal.modal.add-event-modal.active .edit-event-modal-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    flex-shrink: 0;
    width: 100%;
    max-width: min(840px, 100%);
    margin: 0 auto;
    z-index: 999;
    transform: none !important;
    will-change: auto;
    box-sizing: border-box;
    touch-action: manipulation;
    min-height: calc(var(--bottom-bar-height) + max(env(safe-area-inset-bottom, 0px), 8px));
    height: calc(var(--bottom-bar-height) + max(env(safe-area-inset-bottom, 0px), 8px));
    padding: 0 20px max(env(safe-area-inset-bottom, 0px), 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    align-self: stretch;
}

:root[data-theme='dark']
    #eventsApp[data-giggly-add-event-standalone='1']
    #addEventModal.modal.add-event-modal.active
    .add-event-modal__sheet
    > .modal-actions,
:root[data-theme='dark']
    #eventsApp[data-giggly-add-event-standalone='1']
    #editEventModal.modal.add-event-modal.active
    .add-event-modal__sheet
    > .modal-actions,
:root[data-theme='dark']
    #eventsApp[data-giggly-add-event-standalone='1']
    #editEventModal.modal.add-event-modal.active
    .edit-event-modal-actions {
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

#eventsApp[data-giggly-add-event-standalone='1'] #addEventModal.modal.add-event-modal.active .add-event-modal-actions {
    margin-top: 0;
    padding: 0;
    width: 100%;
}

#eventsApp[data-giggly-add-event-standalone='1'] #addEventModal.modal.add-event-modal.active .add-event-modal-actions .auth-button.full-width,
#eventsApp[data-giggly-add-event-standalone='1'] #addEventSubmitBtn.add-event-submit-btn {
    margin: 0;
    width: 100%;
    max-height: var(--bottom-bar-height);
    box-sizing: border-box;
    background: #000;
    color: #fff;
    border: none;
}

#eventsApp[data-giggly-add-event-standalone='1'] #addEventSubmitBtn.add-event-submit-btn:hover:not(:disabled),
#eventsApp[data-giggly-add-event-standalone='1'] #addEventSubmitBtn.add-event-submit-btn:active:not(:disabled) {
    transform: none;
    opacity: 0.92;
}

html.giggly-add-event-modal-kb-open
    #eventsApp[data-giggly-add-event-standalone='1']
    #addEventModal.modal.add-event-modal.active
    .add-event-modal__sheet
    > .add-event-form {
    scroll-padding-bottom: max(120px, min(36vh, 280px));
}

#eventsApp[data-giggly-add-event-standalone='1'] #eventFlyerPickModal,
#eventsApp[data-giggly-add-event-standalone='1'] #eventGenrePickModal {
    display: none;
}

#eventsApp[data-giggly-add-event-standalone='1'] #eventFlyerPickModal.modal.active,
#eventsApp[data-giggly-add-event-standalone='1'] #eventGenrePickModal.modal.active,
#eventsApp[data-giggly-add-event-standalone='1'] #eventFlyerInfoModal.modal.active,
body > #eventFlyerPickModal.modal.event-flyer-pick-modal-root.active,
body > #eventGenrePickModal.modal.add-event-modal.active,
body > #eventFlyerInfoModal.modal.event-flyer-info-modal.active {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 2147483100;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    touch-action: auto;
}

#eventsApp[data-giggly-view-event-edit-embed='1'] #eventFlyerInfoModal.modal.active {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 2147483100;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    touch-action: auto;
}

body > #eventGenrePickModal.modal.add-event-modal.active .add-event-genre-picker-wrap {
    width: min(520px, calc(100vw - 32px));
    max-height: min(85dvh, 720px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

#gigglyFlyerPickInputsMount {
    position: fixed;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    border: 0;
    margin: 0;
    padding: 0;
}

#gigglyFlyerPickInputsMount input[type='file'] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: 0;
}

html.giggly-add-event-embed-kb-lock {
    overscroll-behavior: none;
}

html.giggly-add-event-embed-kb-lock body.app-mode {
    overscroll-behavior: none;
}

html.giggly-link-existing-event-embed-flash #eventsApp:not([data-giggly-link-existing-event-embed='1']) {
    visibility: hidden !important;
}

#eventsApp[data-giggly-link-existing-event-embed='1'] > *:not(#linkExistingEventEmbedModal) {
    display: none !important;
}

#eventsApp[data-giggly-link-existing-event-embed='1'] #linkExistingEventEmbedModal {
    display: none;
}

#eventsApp[data-giggly-link-existing-event-embed='1'] #linkExistingEventEmbedModal.active {
    display: flex !important;
}

#eventsApp[data-giggly-link-existing-event-embed='1'] {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
}

#eventsApp[data-giggly-link-existing-event-embed='1'] .modal.add-event-modal.active {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: flex-end;
}

#eventsApp[data-giggly-link-existing-event-embed='1'] .modal.add-event-modal.active .add-event-modal__sheet {
    max-height: 100dvh;
    height: 100dvh;
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

@media (max-width: 539px) {
    #eventsApp[data-giggly-link-existing-event-embed='1'] .modal.add-event-modal.active .add-event-modal__sheet > .modal-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        z-index: 1010;
        flex-shrink: 0;
        will-change: transform;
        background: var(--bg);
        border-top: 1px solid var(--add-event-row-border, rgba(0, 0, 0, 0.08));
        box-sizing: border-box;
        padding-top: 12px;
        padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
        padding-left: 20px;
        padding-right: 20px;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
    }

    #eventsApp[data-giggly-link-existing-event-embed='1'] .modal.add-event-modal.active .add-event-modal__sheet > .add-event-form,
    #eventsApp[data-giggly-link-existing-event-embed='1'] .modal.add-event-modal.active .link-existing-event-embed-modal__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding-bottom: max(180px, calc(72px + env(safe-area-inset-bottom, 0px)));
        scroll-padding-bottom: max(120px, calc(72px + env(safe-area-inset-bottom, 0px)));
    }

    #eventsApp[data-giggly-link-existing-event-embed='1'] .modal.add-event-modal.active .add-event-modal__sheet {
        animation: giggly-embed-add-sheet-fade 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    :root[data-theme='dark']
        #eventsApp[data-giggly-link-existing-event-embed='1']
        .modal.add-event-modal.active
        .add-event-modal__sheet
        > .modal-actions {
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
    }
}

.link-existing-event-embed-modal__body {
    padding: 0 16px 16px;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.link-existing-event-embed-modal__hint {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: var(--text-secondary, #64748b);
}

.link-existing-event-embed-modal__search {
    width: 100%;
    box-sizing: border-box;
}

.link-existing-event-embed-modal__results {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.link-existing-event-embed-modal__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.link-existing-event-embed-modal__thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e5e7eb;
}

.link-existing-event-embed-modal__thumb--empty {
    display: inline-block;
}

.link-existing-event-embed-modal__meta {
    flex: 1 1 auto;
    min-width: 0;
}

.link-existing-event-embed-modal__title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
}

.link-existing-event-embed-modal__sub {
    margin-top: 2px;
    font-size: 0.8rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.3;
}

/* Tag hub / promoter channels: month label is driven by iframe or hidden list — disable month nav interaction. */
#eventsApp[data-tag-hub-active='1'] #feedMonthNav .controls-month-nav__chev,
#eventsApp[data-tag-hub-active='1'] #feedMonthNav .controls-month-nav__labels,
#eventsApp[data-promoter-channels-active='1'] #feedMonthNav .controls-month-nav__chev,
#eventsApp[data-promoter-channels-active='1'] #feedMonthNav .controls-month-nav__labels {
    pointer-events: none;
    opacity: 0.55;
}

#eventsApp[data-tag-hub-active='1'] #eventsContainer,
#eventsApp[data-promoter-channels-active='1'] #eventsContainer,
#eventsApp[data-venue-channels-active='1'] #eventsContainer {
    display: none !important;
}

/* Tag hub iframe: keep parent flex column stable (matches promoter embed — avoids chrome jumping when the iframe keyboard opens). */
#eventsApp[data-tag-hub-active='1'] {
    overflow: hidden;
    overscroll-behavior-y: none;
    min-height: 0;
}

#eventsApp[data-tag-hub-active='1'] .filter-tabs {
    margin-bottom: 8px;
}

/*
 * Tag iframe search (parent `events.html`): we used to set overflow:hidden on html/body here to stop
 * the shell scrolling under Bars A/B — on iOS WK that blocks touch/focus to the iframe and freezes
 * the search field + tab taps. Only reduce rubber-band; scroll nudges stay in events.html.
 */
html.giggly-tag-hub-embed-kb-lock {
    overscroll-behavior: none;
}

html.giggly-tag-hub-embed-kb-lock body.app-mode {
    overscroll-behavior: none;
}

/*
 * Tag search keyboard (touch): iframe told parent to freeze #tagHubIframeHost height — keep flex
 * shrink from collapsing the host when the embed relayouts.
 */
#eventsApp[data-tag-hub-embed-keyboard-lock='1'] #tagHubIframeHost.tag-hub-iframe-host {
    flex-shrink: 0;
}

/* iOS home-screen: reduce rubber-band scroll on the shell while the tag iframe owns the keyboard. */
html:has(#eventsApp[data-tag-hub-embed-keyboard-lock='1']) {
    overscroll-behavior-y: none;
}

#eventsApp[data-promoter-channels-active='1'] .filter-tabs {
    margin-bottom: 2px;
    padding-bottom: 0;
}

/* Promoter Channels: confine scroll to the embed list — header + subnav stay fixed above [data-pc-e-scroll-body]. */
#eventsApp[data-promoter-channels-active='1'] {
    overflow: hidden;
    overscroll-behavior-y: none;
    min-height: 0;
}

/* Venue Channels (same shell as promoter): lock app column scroll so only [data-pc-e-scroll-body] moves. */
#eventsApp[data-venue-channels-active='1'] {
    overflow: hidden;
    overscroll-behavior-y: none;
    min-height: 0;
}

#promoterChannelsIframeHost.tag-hub-iframe-host:not([hidden]),
#venueChannelsIframeHost.tag-hub-iframe-host:not([hidden]) {
    overflow: hidden;
    min-height: 0;
}

/* While restoring scroll (return from event view / tab sync), avoid a visible flash at list top */
#eventsContainer.events-feed--scroll-restore {
    visibility: hidden;
}

/* Shown while the feed fetch is in flight (avoid an empty / black panel) */
.events-feed-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    color: var(--text);
    opacity: 0.85;
    font-size: 15px;
}

/* [hidden] must beat display:flex (e.g. tag hub Event View after load). */
.events-feed-loading[hidden] {
    display: none !important;
}

/* Fill the allocated list column without a tall vh min-height (reduces jump when events paint) */
.events-container.events-container--loading {
    display: flex;
    flex-direction: column;
}

.events-container.events-container--loading .events-feed-loading {
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    min-height: min(240px, 42dvh);
    min-height: min(240px, 42vh);
}

/* Staged Mine → All: previous feed stays mounted (dimmed) until first batch paints — faster perceived tab switch than a blank loading shell. */
#eventsContainer.events-container--staged-all-switch {
    opacity: 0.66;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

@supports (-webkit-touch-callout: none) {
    #eventsContainer.events-container--staged-all-switch {
        transition: none;
    }

    /* Pending list flyers: stable block so the column does not collapse then pop when /api/events/:id returns. */
    .event-card-v2__flyer[data-flyer-pending='1'] {
        min-height: 120px;
        min-width: 120px;
        background: color-mix(in srgb, var(--bg, #fff) 88%, var(--text, #212529) 8%);
    }

    :root[data-theme='dark'] .event-card-v2__flyer[data-flyer-pending='1'] {
        background: color-mix(in srgb, var(--bg, #1a0f2e) 88%, var(--text, #e8e4ed) 10%);
    }
}

.events-feed-loading__text {
    animation: events-feed-loading-pulse 1.1s ease-in-out infinite;
}

/* iOS WebKit: opacity pulsing on the loading row fights the first feed paint and reads as a flicker. */
@supports (-webkit-touch-callout: none) {
    .events-feed-loading__text {
        animation: none;
        opacity: 0.72;
    }
}

@keyframes events-feed-loading-pulse {
    0%,
    100% {
        opacity: 0.55;
    }
    50% {
        opacity: 1;
    }
}

.app-header {
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 20px;
    /* max() against the persisted inset: on iOS PWA cold launch env() is 0 for the
       first frames, which painted the header under the notch and then "pulled it
       down" when the inset arrived. --giggly-sat-fallback is set in <head> by
       giggly-app-chrome-persist.js from the last measured inset (0 elsewhere). */
    padding-top: calc(8px + max(env(safe-area-inset-top, 0px), var(--giggly-sat-fallback, 0px)));
    max-width: var(--giggly-chrome-max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 110;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.header-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    /* Do not use min-width:0 here — it lets the flex item shrink and can hide the logo on iOS. */
    min-width: min-content;
    flex-shrink: 0;
    position: relative;
    z-index: 4;
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.header-back-btn {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.1;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.header-back-btn:hover {
    text-decoration: underline;
}

/* Brand mark: mascot + wordmark (login modal assets) */
.header-logo,
.header-logo--mascot {
    display: block;
    width: 40px;
    height: 48px;
    border-radius: 0;
    flex-shrink: 0;
    object-fit: contain;
    image-rendering: auto;
    shape-rendering: geometricPrecision;
}

.header-wordmark {
    display: block;
    height: clamp(36px, 6.2vw, 44px) !important;
    width: auto !important;
    max-width: min(200px, 52vw) !important;
    object-fit: contain;
    flex-shrink: 0;
    image-rendering: auto;
    shape-rendering: geometricPrecision;
}

/* Friends & Groups: chrome restore can keep older markup — keep wordmark large here too */
body.friends-page .header-wordmark,
body.friends-page #appTitle .header-wordmark {
    height: clamp(36px, 6.2vw, 44px) !important;
    max-width: min(200px, 52vw) !important;
}

:root[data-theme='dark'] .header-wordmark {
    /* Ink wordmark → light on dark header */
    filter: brightness(0) invert(1);
}

.app-header h1,
.app-header h1#appTitle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 24px;
    margin: 0;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* Override global marketing `h1` gradient + transparent fill (otherwise title can disappear). */
    color: var(--text);
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: var(--text);
}

/* Filter tabs — horizontal scroll row (ticket-wallet–style pills); list scrolls in #eventsContainer */
.filter-tabs {
    padding: 4px 0 8px;
    max-width: var(--giggly-chrome-max-width);
    margin: 0 auto;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: none;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 105;
}

:root[data-theme="dark"] .filter-tabs {
    background: rgba(26, 15, 46, 0.72);
}

.filter-tabs__scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none;
    padding: 0 16px 0 20px;
    box-sizing: border-box;
    scroll-behavior: auto;
}

.filter-tabs__scroll::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    flex: 0 0 auto;
    padding: 7px 11px;
    background: #e5e7eb;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #4b5563;
    font-family: var(--font-sans, 'League Spartan', sans-serif);
    font-size: 14px;
    font-weight: 600;
    font-synthesis: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    white-space: nowrap;
}

/* Admin review pill: hidden by default — only platform staff after /api/session confirms role. */
#adminReviewNavPill {
    display: none !important;
}

html.giggly-platform-staff #adminReviewNavPill {
    display: inline-block !important;
}

/* Tag hub pills: snap inactive styles (no interpolate through “white”) when leaving active. */
.filter-tab.filter-tab--tag {
    transition: none;
    position: relative;
    z-index: 2;
    touch-action: pan-x;
}

/* My Calendar / All Events: no transition — the 150ms ease on .filter-tab read as sluggish tab switches
   even when JS applies .active immediately (see switchFeedTab). */
.filter-tab[data-filter] {
    transition: none !important;
    /* Own compositor layer: reduces full-chrome invalidation when the feed below repaints (iOS PWA). */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    position: relative;
    z-index: 2;
    /* pan-x: allow horizontal scroll of Bar B while finger is on a pill (manipulation blocks parent scroll on some iOS builds). */
    touch-action: pan-x;
}

/* Removed :active state - was causing highlight flash during scrolling */

.filter-tab.active {
    background: var(--brand-teal, #77aca2);
    color: var(--brand-white, #ffffff);
    font-weight: 600;
    border-width: 1.5px;
    border-style: solid;
    border-color: transparent;
    box-shadow: none;
}

.tab-count {
    font-size: 13px;
    opacity: 0.75;
    font-weight: 400;
}

/* My Calendar / All Events: tabular nums so digits don't wobble as counts update.
   No min-width reserve — pill stays as narrow as its text so the gap to "Latest Added"
   looks the same as all other inter-pill gaps. */
.filter-tab[data-filter] .tab-count {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    text-align: end;
    vertical-align: baseline;
    box-sizing: border-box;
    padding-inline: 0.3ch;
}

/* Hide the count span when it has no content yet (avoids invisible reserved space). */
.filter-tab[data-filter] .tab-count:empty {
    display: none;
}

.filter-tab:hover:not(.active) {
    color: #374151;
}

:root[data-theme='dark'] .filter-tab {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
}

:root[data-theme='dark'] .filter-tab.active {
    background: var(--brand-teal, #77aca2);
    color: var(--brand-white, #ffffff);
    font-weight: 600;
    border-width: 1.5px;
    border-style: solid;
    border-color: transparent;
    box-shadow: none;
}

:root[data-theme='dark'] .filter-tab:hover:not(.active) {
    color: #e5e7eb;
}

/* Removed dark mode :active state too */
:root[data-theme='dark'] .filter-tab[data-filter]:active-DISABLED {
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    font-weight: 600;
    border-width: 1.5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.28);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Tag pills + pinned category nav: same active treatment as My Calendar / All Events (tag/anchor reset border above). */
.filter-tab.filter-tab--tag.active,
a.filter-tab.filter-tab--tag.active {
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    border-width: 1.5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.26);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

:root[data-theme='dark'] .filter-tab.filter-tab--tag.active,
:root[data-theme='dark'] a.filter-tab.filter-tab--tag.active {
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    font-weight: 600;
    border-width: 1.5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.28);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-button {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.icon-button:hover {
    transform: scale(1.1);
}

/* Bar A: owner / admin settings gear (immediately left of profile avatar) */
.app-header__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex-shrink: 0;
    /* Reserve avatar slot so auth resolve never shifts Bar A layout. */
    min-width: 36px;
    min-height: 36px;
}

/* First open (no localStorage auth hint): invisible avatar reserves space until session resolves. */
html.giggly-auth-pending:not(.giggly-guest-mode) #profileAvatar,
html.giggly-avatar-pending:not(.giggly-guest-mode) #profileAvatar,
html:not(.giggly-guest-mode) #profileAvatar:not([data-giggly-avatar-ready='1']) {
    display: flex !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none;
    background: transparent !important;
    color: transparent !important;
}

html:not(.giggly-guest-mode) #profileAvatar[hidden] {
    display: flex !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none;
}

html.giggly-avatar-pending:not(.giggly-guest-mode) #profileAvatar[data-giggly-avatar-ready='1'],
html:not(.giggly-guest-mode) #profileAvatar[data-giggly-avatar-ready='1'] {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
}

/* Header Add Event — brand teal circle icon, left of profile avatar (admin gear further left). */
.header-add-event-btn {
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
    transition: transform 0.2s ease;
}

.header-add-event-btn__icon {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
}

/* Authed hint: keep Add Event visible even if the button still has [hidden] from a late mount. */
html[data-giggly-authed-hint] #headerAddEventBtn {
    display: inline-flex !important;
    min-width: 36px;
    min-height: 36px;
}

.header-add-event-btn[hidden] {
    display: none !important;
}

html.giggly-guest-mode #headerAddEventBtn,
html.giggly-guest-mode .header-add-event-btn {
    display: none !important;
}

.header-add-event-btn:hover {
    transform: scale(1.05);
}

.header-add-event-btn:active {
    transform: scale(0.95);
}

.header-add-event-btn svg {
    display: none;
}

.header-settings-btn {
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #868e96;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.header-settings-btn[hidden] {
    display: none !important;
}

/* Logged-out users must never see the admin settings wheel. */
html.giggly-guest-mode #headerSettingsBtn,
html.giggly-guest-mode .header-settings-btn {
    display: none !important;
}

:root[data-theme='dark'] .header-settings-btn {
    color: #adb5bd;
}

.header-settings-btn:hover {
    color: #495057;
    opacity: 1;
}

:root[data-theme='dark'] .header-settings-btn:hover {
    color: #dee2e6;
}

.header-settings-btn:active {
    opacity: 0.75;
}

.header-settings-btn svg {
    display: block;
    width: 24px;
    height: 24px;
}

.giggly-bar-one-panel {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(84px + env(safe-area-inset-top, 0px)) 16px 24px;
    background: rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
}

.giggly-bar-one-panel[hidden] {
    display: none !important;
}

.giggly-bar-one-panel__sheet {
    width: min(100%, 520px);
    border-radius: 24px;
    border: 1px solid rgba(70, 129, 137, 0.18);
    background: var(--card-bg, #ffffff);
    color: var(--text, #212529);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
    padding: 22px;
    position: relative;
    box-sizing: border-box;
}

.giggly-bar-one-panel__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.giggly-bar-one-panel__title {
    margin: 0 36px 14px 0;
    font-size: 22px;
}

.giggly-bar-one-panel__body {
    color: var(--text-secondary, #6c757d);
    line-height: 1.5;
}

.giggly-bar-one-panel__actions {
    display: grid;
    gap: 10px;
}

.giggly-bar-one-panel__actions .auth-button-secondary {
    display: block;
    text-align: center;
    text-decoration: none;
}

/* Profile avatar */
.profile-avatar[hidden] {
    display: none !important;
}

html:not(.giggly-guest-mode) .profile-avatar[hidden] {
    display: flex !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none;
}

.profile-avatar:not([data-giggly-avatar-ready='1']) {
    background: transparent !important;
    color: transparent !important;
}

.profile-avatar:not([data-giggly-avatar-ready='1']) img {
    opacity: 0;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-teal-deep, #468189);
    background-color: var(--brand-teal-deep, #468189);
    color: #ffffff;
    border: none;
    font-size: 13px;
    letter-spacing: -0.04em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
}

:root[data-theme='dark'] .profile-avatar:not(:has(img)) {
    background: var(--brand-teal-deep, #468189);
    background-color: var(--brand-teal-deep, #468189);
    color: #ffffff;
}

.profile-avatar:has(img) {
    background: transparent;
    background-color: transparent;
}

.profile-avatar:hover,
.profile-avatar:active {
    transition: transform 0.2s ease;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-avatar:active {
    transform: scale(0.95);
}

/* Old filter/search bars - removed, using tabs + expandable search now */

/* ==========================================================================
   5. Bottom Bars and Controls
   ========================================================================== */

/* Controls bar - search and filter buttons */
.controls-bar {
    position: fixed;
    top: auto;
    bottom: calc(var(--bottom-bar-height) + max(env(safe-area-inset-bottom, 0px), 8px));
    left: 0;
    right: 0;
    height: 60px;
    background: transparent;
    border-top: none;
    display: none; /* Hidden by default, shown after app loads */
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    gap: 8px;
    --controls-pad: 12px;
    --controls-gap: 8px;
    --controls-btn: 48px;
    z-index: 1000;
    max-width: var(--giggly-chrome-max-width);
    margin: 0 auto;
}

.controls-bar__center {
    flex: 1 1 0%;
    min-width: 0;
    height: 48px;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    margin: 0 2px;
}

/* Month pill and search field swap in the same flex width (Bar C centre). */
.controls-bar__month-search-slot {
    flex: 1 1 0%;
    min-width: 0;
    height: 48px;
    position: relative;
}

/* Search field stacks above the month pill; block taps from reaching chevrons/labels underneath. */
.controls-bar__month-search-slot:has(.search-container.active) .controls-month-nav {
    pointer-events: none;
}

/* Trailing: search magnifier OR shell close (same 48px cell). */
.controls-bar__trailing {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.controls-bar__trailing > .control-btn {
    position: absolute;
    inset: 0;
    margin: 0;
}

.control-btn--search-shell-close {
    padding: 0;
}

/* Outer shell: sits in the flex slot; inner .controls-month-nav__pill is the white bar */
.controls-month-nav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 48px;
    position: relative;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

/* Explicit grid so ‹ month › never stack vertically (survives cache / UA quirks) */
.controls-month-nav__pill {
    display: grid;
    grid-template-columns: minmax(48px, 56px) minmax(120px, 1fr) minmax(48px, 56px);
    grid-template-rows: 48px;
    align-items: center;
    justify-items: stretch;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0;
    color: #000000;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

:root[data-theme='dark'] .controls-month-nav__pill {
    background: var(--bg);
    color: var(--text);
    border-color: var(--border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

:root[data-theme='dark'] .controls-month-nav__chev {
    color: var(--text);
}

@media (hover: hover) and (pointer: fine) {
    :root[data-theme='dark'] .controls-month-nav__chev:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.08);
    }
}

:root[data-theme='dark'] .controls-month-nav__month-line .controls-month-nav__month,
:root[data-theme='dark'] .controls-month-nav__year-inline {
    color: var(--text);
}

.controls-month-nav__chev {
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #000000;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    transition: opacity 0.15s ease;
}

.controls-month-nav__chev:first-of-type {
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
}

.controls-month-nav__chev:last-of-type {
    grid-column: 3;
    grid-row: 1;
    z-index: 1;
}

/* Avoid sticky grey hover on touch (iOS keeps :hover after tap) */
@media (hover: hover) and (pointer: fine) {
    .controls-month-nav__chev:hover:not(:disabled) {
        background: rgba(0, 0, 0, 0.06);
    }
}

.controls-month-nav__chev:active:not(:disabled),
.controls-month-nav__chev:focus {
    background: transparent;
}

.controls-month-nav__chev:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
    background: transparent;
}

.controls-month-nav__chev--disabled,
.controls-month-nav__chev:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: transparent;
    pointer-events: none;
}

.controls-month-nav__labels {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 0;
    height: 100%;
    text-align: center;
    padding: 0 8px;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
    z-index: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.controls-month-nav__labels:focus {
    outline: none;
}

.controls-month-nav__labels:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

/* Month + year label, centered in the month nav pill. */
.controls-month-nav__month-line {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.35ch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 0.9375rem;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.controls-month-nav__month-line .controls-month-nav__month {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    text-align: center;
    font-size: inherit;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.controls-month-nav__year-inline {
    flex: 0 0 auto;
    font-size: inherit;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    color: #000000;
    opacity: 0.78;
    white-space: nowrap;
}

.controls-month-nav__labels > .controls-month-nav__cal-icon {
    display: none;
}

/* Filled calendar glyph (same as footer); keep month control in accent blue. */
.controls-month-nav__cal-icon path,
.controls-month-nav__cal-icon rect {
    fill: currentColor;
    stroke: none;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.control-btn:hover {
    border-color: var(--accent-purple);
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

/* Hide search / shell-close when inactive — remove from layout/stack so taps don't pass
   through to the page below (iOS would fire document click and collapse search). */
#navSearch.hidden,
#closeSearchShellBtn.hidden {
    display: none !important;
}

/* Search field: occupies the month-nav slot only (not the full Bar C width). */
.search-container {
    position: absolute;
    inset: 0;
    width: auto;
    height: 48px;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-direction: row; /* Icon left, input middle, optional inner clear */
    gap: 8px;
    z-index: 1; /* Below month pill (2) when collapsed; .active raises to 3 */
    background: rgba(255, 255, 255, 0.95); /* Higher opacity for more contrast */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px; /* Pill shape - half of height (48px / 2) */
    border: 1px solid rgba(0, 0, 0, 0.08); /* More visible border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Stronger drop shadow */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease;
    pointer-events: none;
}

:root[data-theme="dark"] .search-container {
    background: rgba(26, 15, 46, 0.85); /* Higher opacity for dark mode */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Stronger dark mode shadow */
}

/* Form wrapper is layout-transparent so Bar C flex + min-width rules stay unchanged. */
.feed-search-field-form {
    display: contents;
}

.search-container.active {
    padding: 0 10px;
    pointer-events: auto;
    z-index: 3;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); /* Slightly stronger when active */
    opacity: 1;
    visibility: visible;
    /* Solid surface while typing: backdrop blur on each keypress is costly on iOS WebKit. */
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

:root[data-theme="dark"] .search-container.active {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    background: var(--bg);
}

.search-input-slide {
    flex: 1;
    min-width: 0; /* Let the row shrink so inner clear stays visible (flex default min-content). */
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 17px;
    font-weight: 400;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* iOS WebKit: cut autocorrect/replace UI and word-selection chrome that fights feed search + clear. Typing, caret, backspace, and paste still work. */
@supports (-webkit-touch-callout: none) {
    .search-input-slide,
    .ticket-wallet-search-wrap__input {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

.search-input-slide::selection {
    background: rgba(70, 129, 137, 0.25);
}

.search-input-slide::-webkit-selection {
    background: rgba(70, 129, 137, 0.25);
}

.search-input-slide::-moz-selection {
    background: rgba(70, 129, 137, 0.25);
}

.search-input-slide {
    caret-color: var(--accent-purple);
}

.search-input-slide::placeholder {
    color: rgba(60, 60, 67, 0.6); /* iOS placeholder grey */
}

:root[data-theme="dark"] .search-input-slide::placeholder {
    color: rgba(235, 235, 245, 0.6); /* iOS dark placeholder */
}

.close-search-btn {
    pointer-events: auto; /* Override parent's pointer-events: none */
    background: rgba(120, 120, 128, 0.16); /* iOS circle background */
    border: none;
    outline: none;
    color: rgba(60, 60, 67, 0.6);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto; /* keep ✕ pinned to the right edge */
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.close-search-btn:disabled {
    opacity: 0.42;
    cursor: default;
    transform: none;
}

.close-search-btn svg {
    display: block;
}

:root[data-theme="dark"] .close-search-btn {
    background: rgba(118, 118, 128, 0.24);
    color: rgba(235, 235, 245, 0.6);
}

:root[data-theme="dark"] .close-search-btn:disabled {
    opacity: 0.38;
}

.close-search-btn:active:not(:disabled) {
    transform: scale(0.9);
    background: rgba(120, 120, 128, 0.24);
}

/* Events + Feed: show Bar D as soon as the bar markup exists (don't wait for session boot). */
body.app-mode.events-page .bottom-bar,
body.feed-page.app-mode .bottom-bar,
body.friends-page.app-mode .bottom-bar {
    display: flex;
}

body.app-mode.events-page .controls-bar,
body.feed-page.app-mode .controls-bar,
body.friends-page.app-mode .controls-bar {
    display: flex;
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    touch-action: manipulation;
    box-sizing: border-box;
    /* Paint into home-indicator zone; min 8px below FAB when env() is 0 (less dead space than 20px). */
    min-height: calc(var(--bottom-bar-height) + max(env(safe-area-inset-bottom, 0px), 8px));
    height: calc(var(--bottom-bar-height) + max(env(safe-area-inset-bottom, 0px), 8px));
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 8px);
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: none; /* Hidden by default, shown after app loads */
    align-items: center;
    justify-content: center;
    z-index: 999;
}

:root[data-theme="dark"] .bottom-bar {
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.add-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-btn-bg, #468189);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(119, 172, 162, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.add-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(119, 172, 162, 0.5);
}

.add-btn:active {
    transform: scale(0.95);
}

/* OLD STYLES - IGNORE */
.floating-control-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: fixed;
    bottom: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.floating-control-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-purple);
}

.floating-control-btn:active {
    transform: scale(0.95);
}

#filterSortBtn {
    left: 20px;
    pointer-events: auto; /* Make button clickable */
}

#navSearch {
    right: 20px;
    pointer-events: auto; /* Make button clickable */
}

/*
 * Search field has text but panel is collapsed — remind user a filter is active.
 * Explicit svg stroke: some WebKit builds ignore currentColor on stroke for this icon.
 */
button#navSearch.control-btn.has-pending-search {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

button#navSearch.control-btn.has-pending-search svg circle,
button#navSearch.control-btn.has-pending-search svg path {
    stroke: var(--accent-blue);
}

/* Centred FAB Add button - coloured gradient */
.fab-add-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-btn-bg, #468189);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(119, 172, 162, 0.4);
    transition: all 0.3s ease;
    position: fixed;
    bottom: 52px;
    bottom: calc(52px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto; /* Make button clickable */
}

.fab-add-btn:hover {
    transform: translateX(-50%) scale(1.08);
    box-shadow: 0 12px 32px rgba(119, 172, 162, 0.5);
}

.fab-add-btn:active {
    transform: translateX(-50%) scale(0.95);
}

/* Floating panels - appear above controls bar */
.floating-panel {
    display: none;
    position: fixed;
    bottom: 128px;
    bottom: calc(128px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    padding: 16px;
    min-width: 200px;
    border: 1px solid var(--border);
}

:root[data-theme="dark"] .floating-panel {
    background: rgba(26, 15, 46, 0.95);
}

.floating-panel.active {
    display: block;
    animation: slideIn 0.3s ease;
}

/*
 * Filter panel: align with centered 840px controls rail — inner left to inner right (same
 * right edge as the search button). max() keeps correct insets when the bar is full-width vs centered.
 */
#filterSortPanel.filter-sort-panel {
    left: max(20px, calc(50% - 400px));
    right: max(20px, calc(50% - 400px));
    min-width: 0;
    width: auto;
    max-width: none;
}

#filterSortPanel.filter-sort-panel.active {
    z-index: 2147482002;
}

body.giggly-filter-sort-panel-open #filterSortPanel.filter-sort-panel.active {
    display: block;
    z-index: 2147482002;
}

/* Ticket swap dock: panel lives here when closed (display:contents = no layout box). */
.ticket-swap-panel-dock {
    display: contents;
}

/* Default (parked in dock when closed) */
#ticketSwapPanel.floating-panel.ticket-swap-panel {
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    width: calc(100vw - 24px);
    max-width: none;
    min-width: 0;
    padding: 0;
    overflow: visible;
    max-height: none;
    z-index: 1002;
    overscroll-behavior: contain;
}

/* Open in-card: same scroll layer as #eventsContainer (no JS scroll sync — no judder). */
#ticketSwapPanel.floating-panel.ticket-swap-panel.ticket-swap-panel--in-card {
    position: absolute;
    /* Bleed to match event card inner width (same inset as .event-card / .event-card-v2__details padding). */
    left: -16px;
    right: -16px;
    top: 0;
    margin-top: 2px;
    width: auto !important;
    max-width: none !important;
    bottom: auto;
    padding: 0;
    max-height: none;
    overflow: visible;
    z-index: 2;
    box-sizing: border-box;
    overscroll-behavior: visible;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    animation: none;
}

#ticketSwapPanel.ticket-swap-panel--in-card .filter-sort-panel__header.add-event-modal__header {
    padding-left: 16px;
    padding-right: 16px;
}

#ticketSwapPanel.ticket-swap-panel--in-card .filter-sort-panel__body.ticket-swap-panel__body {
    padding-left: 16px;
    padding-right: 16px;
}

/* Whole card stacks above following list rows so the sheet can extend over them; still under Bars C/D (999–1000). */
.event-card.event-card--v2.event-card--ticket-swap-open {
    position: relative;
    z-index: 40;
}

.event-card.event-card--v2:has(.event-card-v2__flyer).event-card--ticket-swap-open {
    overflow: visible !important;
}

.event-card-v2__ticket-swap-mount {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

#ticketSwapPanel.floating-panel.active.ticket-swap-panel {
    display: flex;
    flex-direction: column;
}

#ticketSwapPanel .filter-sort-panel__header.add-event-modal__header {
    cursor: default;
    touch-action: auto;
    user-select: auto;
    -webkit-user-select: auto;
}

#ticketSwapPanel .filter-sort-panel__body.ticket-swap-panel__body {
    flex: 0 0 auto;
    overflow: visible;
    max-height: none;
}

/* While ticket swap sheet is open: stop feed / page rubber-band behind it */
html.ticket-swap-backdrop-lock,
body.app-mode.ticket-swap-backdrop-lock,
body.promoter-channel-page.ticket-swap-backdrop-lock,
body.view-event-page.ticket-swap-backdrop-lock,
body.ticket-wallet-page.ticket-swap-backdrop-lock {
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

#eventsContainer.ticket-swap-feed-scroll-lock,
#pcPanelsScroll.ticket-swap-feed-scroll-lock,
.view-event-page__scroll-region.ticket-swap-feed-scroll-lock,
#ticketWalletScrollport.ticket-swap-feed-scroll-lock {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none !important;
}

/* Viewport sheet: top at Bar B, bottom at viewport (over Bar D); header + footer fixed, middle scrolls */
#ticketSwapPanel.floating-panel.ticket-swap-panel.ticket-swap-panel--viewport.active {
    /* !important: beat .floating-panel.active { display:block } so the footer can pin to the bottom */
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: var(--ticket-swap-panel-top, 108px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto !important;
    margin: 0;
    padding: 0 !important;
    max-height: none;
    overflow: hidden !important;
    z-index: 1005;
    box-sizing: border-box;
    border-radius: 16px 16px 0 0;
    animation: none !important;
    overscroll-behavior: none;
    touch-action: none;
    isolation: isolate;
}

body.view-event-page #eventPageStarsModal.modal.active,
body.view-event-page #eventPageSetTimesModal.modal.active {
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
        max(12px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

body.modal-open.view-event-page #eventPageStarsModal.modal.active,
body.modal-open.view-event-page #eventPageSetTimesModal.modal.active {
    z-index: 2147483020;
}

#ticketSwapPanel.ticket-swap-panel--viewport .filter-sort-panel__header.add-event-modal__header {
    flex-shrink: 0;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
}

#ticketSwapPanel.ticket-swap-panel--viewport.active .filter-sort-panel__body.ticket-swap-panel__body,
#ticketSwapPanel.ticket-swap-panel--viewport .filter-sort-panel__body.ticket-swap-panel__body {
    /* Beat the parked-panel rule (flex: 0 0 auto) so Sell Tickets stays in the sheet footer */
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
}

#ticketSwapPanel.ticket-swap-panel--viewport.active .ticket-swap-panel__scroll,
#ticketSwapPanel.ticket-swap-panel--viewport .ticket-swap-panel__scroll {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 10px max(16px, env(safe-area-inset-left, 0px)) 12px max(16px, env(safe-area-inset-right, 0px));
}

#ticketSwapPanel.ticket-swap-panel--viewport.active .ticket-swap-panel__footer,
#ticketSwapPanel.ticket-swap-panel--viewport .ticket-swap-panel__footer {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    margin-top: auto;
    padding: 12px max(16px, env(safe-area-inset-left, 0px)) calc(12px + max(env(safe-area-inset-bottom, 0px), 8px))
        max(16px, env(safe-area-inset-right, 0px));
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: inherit;
    box-sizing: border-box;
}

:root[data-theme='dark'] #ticketSwapPanel.ticket-swap-panel--viewport .ticket-swap-panel__footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

#ticketSwapPanel.ticket-swap-panel--viewport .ticket-swap-panel__sell {
    margin-bottom: 0;
}

#ticketSwapPanel.ticket-swap-panel--viewport .ticket-swap-panel__copy {
    margin-bottom: 12px;
}

/* Grid keeps title + Manage on one row (flex can misbehave in nested layouts / WebKit). */
#ticketSwapPanel .ticket-swap-panel__list-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 10px 0;
}

#ticketSwapPanel .ticket-swap-panel__list-heading-row .ticket-swap-panel__list-heading {
    margin: 0;
    padding: 0;
    min-width: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

#ticketSwapPanel .ticket-swap-panel__manage-all {
    width: auto !important;
    max-width: none;
    justify-self: end;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticket-swap-panel__head-text {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.ticket-swap-panel__head-text .filter-sort-panel__title.add-event-modal__title {
    flex: 0 1 auto;
    min-width: 0;
}

.ticket-swap-panel__info-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--accent-blue);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ticket-swap-panel__info-btn:hover {
    background: rgba(119, 172, 162, 0.14);
}

.ticket-swap-panel__info-btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

:root[data-theme='dark'] .ticket-swap-panel__info-btn:hover {
    background: rgba(119, 172, 162, 0.2);
}

#ticketSwapInfoModal.floating-panel.ticket-swap-info-modal {
    padding: 0;
    z-index: 1007;
    overflow: hidden;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Full-viewport scrim: 50% black + backdrop blur; sheet sits above (see __sheet). */
#ticketSwapInfoModal.floating-panel.ticket-swap-info-modal.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
        max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    box-sizing: border-box;
    pointer-events: none;
    animation: none;
}

#ticketSwapInfoModal .ticket-swap-info-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    cursor: pointer;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
}

:root[data-theme='dark'] #ticketSwapInfoModal .ticket-swap-info-modal__backdrop {
    background: rgba(0, 0, 0, 0.55);
}

#ticketSwapInfoModal .ticket-swap-info-modal__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(720px, 100%);
    max-height: min(78vh, 540px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
}

:root[data-theme='dark'] #ticketSwapInfoModal .ticket-swap-info-modal__sheet {
    background: rgba(26, 15, 46, 0.96);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

#ticketSwapInfoModal.active .filter-sort-panel__header.add-event-modal__header {
    flex-shrink: 0;
}

#ticketSwapInfoModal .ticket-swap-info-modal__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 20px 14px;
}

#ticketSwapInfoModal .ticket-swap-info-modal__placeholder {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
}

#ticketSwapInfoModal .ticket-swap-info-modal__prose {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
}

#ticketSwapInfoModal .ticket-swap-info-modal__prose p {
    margin: 0 0 12px;
}

#ticketSwapInfoModal .ticket-swap-info-modal__prose p:last-child {
    margin-bottom: 0;
}

#ticketSwapInfoModal .ticket-swap-info-modal__disclaimer {
    margin-top: 4px !important;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

:root[data-theme='dark'] #ticketSwapInfoModal .ticket-swap-info-modal__disclaimer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Filter / sort sheet — header matches add-event modal; sort uses field label + native select */
.filter-sort-panel.floating-panel {
    padding: 0;
    overflow: hidden;
    bottom: 134px;
    bottom: calc(134px + env(safe-area-inset-bottom));
}

.filter-sort-panel .filter-sort-panel__header.add-event-modal__header,
#ticketSwapInfoModal .filter-sort-panel__header.add-event-modal__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: 'title clear close';
    align-items: center;
    gap: 8px;
    padding: 6px 8px 8px 20px;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.filter-sort-panel .filter-sort-panel__header .add-event-modal__head-text,
#ticketSwapInfoModal .filter-sort-panel__header .add-event-modal__head-text {
    grid-area: title;
    justify-self: start;
    flex: none;
    width: auto;
    min-width: 0;
}

.filter-sort-panel .filter-sort-panel__header .filter-sort-panel__clear-slot,
#ticketSwapInfoModal .filter-sort-panel__header .filter-sort-panel__clear-slot {
    grid-area: clear;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    min-width: 0;
}

.filter-sort-panel .filter-sort-panel__header .filter-sort-panel__close.add-event-modal__close,
#ticketSwapInfoModal .filter-sort-panel__header .filter-sort-panel__close.add-event-modal__close {
    grid-area: close;
    justify-self: end;
}

:root[data-theme='dark'] .filter-sort-panel .filter-sort-panel__header.add-event-modal__header,
:root[data-theme='dark'] #ticketSwapInfoModal .filter-sort-panel__header.add-event-modal__header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.filter-sort-panel .add-event-modal__head-text,
#ticketSwapInfoModal .add-event-modal__head-text {
    flex: 1;
    min-width: 0;
    padding-top: 0;
}

.filter-sort-panel .filter-sort-panel__header .add-event-modal__head-text {
    flex: none;
}

.filter-sort-panel .filter-sort-panel__title.add-event-modal__title,
#ticketSwapInfoModal .filter-sort-panel__title.add-event-modal__title {
    font-size: 22px;
    margin: 0;
    line-height: 1.2;
}

.filter-sort-panel .filter-sort-panel__close.add-event-modal__close,
#ticketSwapInfoModal .filter-sort-panel__close.add-event-modal__close {
    flex-shrink: 0;
    align-self: center;
    margin: 0;
    margin-right: 0;
}

.filter-sort-panel__clear-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 1px solid var(--accent-blue);
    background: transparent;
    color: var(--accent-blue);
    border-radius: 10px;
    padding: 6px 14px;
    min-height: 32px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.filter-sort-panel__clear-btn[hidden] {
    display: none !important;
}

.filter-sort-panel__clear-btn:active {
    opacity: 0.85;
}

.filter-sort-panel__body {
    padding: 10px 20px 14px;
}

.ticket-swap-panel__copy {
    margin: 0 0 14px;
}

.ticket-swap-panel__copy p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.ticket-swap-panel__copy p:last-child {
    margin-bottom: 0;
}

.ticket-swap-panel__empty-hint {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.ticket-swap-panel__empty-hint[hidden] {
    display: none !important;
}

.ticket-swap-panel__sell {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid var(--accent-blue, #77ACA2F) !important;
    background: #fff !important;
    color: var(--accent-blue, #77ACA2F) !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}

.ticket-swap-panel__sell:hover,
.ticket-swap-panel__sell:focus-visible {
    background: #fff !important;
    color: var(--accent-blue, #77ACA2F) !important;
    border-color: var(--accent-blue, #77ACA2F) !important;
}

.ticket-swap-panel__sellers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-swap-seller-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--border);
    box-sizing: border-box;
}

:root[data-theme='dark'] .ticket-swap-seller-row {
    background: rgba(255, 255, 255, 0.06);
}

.ticket-swap-seller-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--brand-btn-bg, #468189);
    background-color: #468189;
    color: #fff;
    font-size: 13px;
    letter-spacing: -0.04em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
    overflow: hidden;
}

.ticket-swap-seller-avatar__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.ticket-swap-seller-stack {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ticket-swap-seller-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.ticket-swap-seller-name-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.ticket-swap-seller-name-wrap .ticket-swap-seller-name {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.ticket-swap-seller-action {
    flex: 0 0 auto;
}

.ticket-swap-seller-detail,
.ticket-swap-seller-detail-row {
    font-size: 0.84rem;
    line-height: 1.35;
    color: var(--text-secondary, #64748b);
}

/* Align sale line with username (same left edge as name-wrap, not under Manage). */
.ticket-swap-seller-detail--sale {
    margin: 0;
    padding: 0;
    text-align: left;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
    /* Leave space so text doesn’t sit under the Manage/Buy button column */
    padding-right: 72px;
}

.ticket-swap-seller-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Legacy matrix layout (panel internals / older markup) */
.ticket-swap-seller-lines {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 8px 6px;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.ticket-swap-seller-lines .ticket-swap-name-slot {
    grid-column: 1;
    min-width: 0;
    align-self: start;
}

.ticket-swap-name-slot .ticket-swap-seller-name {
    white-space: normal;
    word-break: break-word;
}

.ticket-swap-name-slot button.ticket-swap-seller-name--edit,
.ticket-swap-name-slot button.ticket-swap-seller-name--action,
.ticket-swap-name-slot > .ticket-swap-seller-name {
    margin: 0;
    display: inline;
    width: auto;
    max-width: 100%;
    vertical-align: baseline;
}

/* Quantity + status on one line ("2 For sale"); actions live in column 3. Price aligns under col 2. */
.ticket-swap-matrix-occ-row {
    grid-column: 2;
    grid-row: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35em;
    min-width: 0;
}

.ticket-swap-matrix-action-cell {
    grid-column: 3;
    grid-row: auto;
    justify-self: end;
    align-self: center;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ticket-swap-matrix-action-cell .ticket-swap-row-action {
    flex-shrink: 0;
}

.ticket-swap-matrix-occ-row .ticket-swap-matrix-num {
    grid-column: unset;
    justify-self: unset;
    flex: 0 0 auto;
    min-width: 0;
    text-align: left;
}

.ticket-swap-matrix-occ-row .ticket-swap-matrix-state {
    grid-column: unset;
    flex: 0 1 auto;
    min-width: 0;
    justify-self: unset;
}

.ticket-swap-matrix-occ-row .ticket-swap-matrix-state__text {
    flex: 0 1 auto;
    min-width: 0;
}

.ticket-swap-matrix-num {
    grid-column: 2;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    justify-self: start;
    min-width: 1.65rem;
}

.ticket-swap-matrix-state {
    grid-column: 3;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: capitalize;
    justify-self: stretch;
    line-height: 1.3;
    min-width: 0;
}

.ticket-swap-matrix-state--with-action {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ticket-swap-matrix-state__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-swap-matrix-num-plain {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.ticket-swap-matrix-price {
    font-weight: 600;
    font-size: 0.92em;
    margin-left: 0;
    white-space: nowrap;
}

.ticket-swap-matrix-price-sub-row {
    grid-column: 2;
    justify-self: start;
    align-self: start;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    color: var(--text);
    text-align: left;
}

/* Right-align row actions with “Manage All My Tickets” (same inner edge as list heading row). */
#ticketSwapPanel .ticket-swap-seller-row {
    padding: 10px 0 10px 12px;
}

.giggly-wallet-bridge-modal .giggly-wallet-bridge-modal__card {
    max-width: min(420px, calc(100vw - 32px));
    margin: 12vh auto 0;
    padding: 20px 18px 18px;
    box-sizing: border-box;
}

.giggly-wallet-bridge-modal__intro {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text);
}

.giggly-wallet-bridge-modal__event-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}

.giggly-wallet-bridge-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
}

.giggly-wallet-bridge-modal .giggly-wallet-bridge-modal__actions.ticket-wallet-sheet__actions--row {
    justify-content: stretch;
    align-items: center;
    gap: 12px;
}

/* Ticket Swap → wallet bridge “add tickets” sheet (event title under intro). */
.giggly-wallet-sync-modal__event-name {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}

/* Under-offer banner (below “selling…” strip on first purchase block) */
.ticket-wallet__entry-swap-status--under-offer {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    color: #fff;
    background: var(--brand-btn-bg, #468189);
}

/* “Selling N tickets…” under Purchased from — maroon band */
.ticket-wallet__entry-swap-selling-below {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #7f1d1d 0%, #9f1239 55%, #881337 100%);
}

button.ticket-wallet__entry-swap-banner--clickable {
    width: 100%;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    font: inherit;
    letter-spacing: inherit;
    text-align: center;
}

/* Space between swap status bands and the Sell tickets row (My Tickets) */
.ticket-wallet__entry-swap-status--under-offer + .ticket-wallet__purchase-line-actions {
    margin-top: 14px;
}

.ticket-wallet__entry-swap-selling-below + .ticket-wallet__purchase-line-actions {
    margin-top: 10px;
}


.ticket-swap-matrix-state--tone-other-for-sale .ticket-swap-matrix-state__text {
    color: var(--accent-blue);
}

.ticket-swap-matrix-num--tone-other-for-sale.ticket-swap-matrix-num-plain {
    color: var(--accent-blue);
}

.ticket-swap-matrix-state--tone-mine-selling .ticket-swap-matrix-state__text {
    color: var(--accent-purple);
}

.ticket-swap-matrix-num--tone-mine-selling.ticket-swap-matrix-num-plain {
    color: var(--accent-purple);
}

.ticket-swap-matrix-state--tone-other-under-offer .ticket-swap-matrix-state__text,
.ticket-swap-matrix-num--tone-other-under-offer.ticket-swap-matrix-num-plain {
    color: var(--text);
}

.ticket-swap-matrix-state--tone-my-offer .ticket-swap-matrix-state__text,
.ticket-swap-matrix-num--tone-my-offer.ticket-swap-matrix-num-plain {
    color: var(--accent-purple);
}

:root[data-theme='dark'] .ticket-swap-matrix-state--tone-other-for-sale .ticket-swap-matrix-state__text {
    color: #93c5fd;
}

:root[data-theme='dark'] .ticket-swap-matrix-num--tone-other-for-sale.ticket-swap-matrix-num-plain {
    color: #93c5fd;
}

:root[data-theme='dark'] .ticket-swap-matrix-state--tone-mine-selling .ticket-swap-matrix-state__text,
:root[data-theme='dark'] .ticket-swap-matrix-num--tone-mine-selling.ticket-swap-matrix-num-plain,
:root[data-theme='dark'] .ticket-swap-matrix-state--tone-my-offer .ticket-swap-matrix-state__text,
:root[data-theme='dark'] .ticket-swap-matrix-num--tone-my-offer.ticket-swap-matrix-num-plain {
    color: #c4b5fd;
}

.ticket-swap-row-action {
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    padding: 3px 10px;
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ticket-swap-row-action--buy {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.ticket-swap-row-action--manage {
    background: transparent;
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
}

.ticket-swap-row-action--buyer-update {
    background: transparent;
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
}

:root[data-theme='dark'] .ticket-swap-row-action--buy {
    border-color: var(--accent-blue);
    color: #93c5fd;
}

:root[data-theme='dark'] .ticket-swap-row-action--manage {
    border-color: #a78bfa;
    color: #c4b5fd;
}

:root[data-theme='dark'] .ticket-swap-row-action--buyer-update {
    border-color: #a78bfa;
    color: #c4b5fd;
}

button.ticket-swap-matrix-num--edit {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--accent-purple);
    cursor: pointer;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    -webkit-tap-highlight-color: transparent;
}

button.ticket-swap-matrix-buy {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--accent-blue);
    cursor: pointer;
    text-decoration: none;
    vertical-align: baseline;
    -webkit-tap-highlight-color: transparent;
    font-variant-numeric: tabular-nums;
}

.ticket-swap-seller-name {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

a.ticket-swap-seller-name--link {
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
}

a.ticket-swap-seller-name--link:hover,
a.ticket-swap-seller-name--link:focus-visible {
    color: var(--accent-purple, #468189);
    text-decoration: underline;
}

button.ticket-swap-seller-name--edit {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 400;
    color: var(--accent-purple);
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    word-break: break-word;
    -webkit-tap-highlight-color: transparent;
}

button.ticket-swap-seller-name--action {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 400;
    color: var(--accent-blue);
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

button.ticket-swap-seller-name--action:disabled {
    color: var(--text-secondary);
    cursor: default;
    text-decoration: none;
}

.ticket-swap-buy-select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    margin-bottom: 16px;
    cursor: pointer;
}

.ticket-swap-buy-actions {
    display: flex;
    justify-content: stretch;
}

.ticket-swap-buy-actions .auth-button {
    width: 100%;
}

.ticket-swap-buy-step2 {
    padding-top: 4px;
}

.ticket-swap-buy-success {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text);
}

.ticket-swap-offer-update__intro {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.ticket-swap-offer-update__prompt {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.ticket-swap-offer-update__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-swap-offer-update__actions .auth-button {
    width: 100%;
    box-sizing: border-box;
}

.ticket-swap-offer-update__btn-secondary {
    background: transparent !important;
    color: var(--accent-purple) !important;
    border: 2px solid var(--accent-purple) !important;
}

:root[data-theme='dark'] .ticket-swap-offer-update__btn-secondary {
    background: transparent !important;
    color: #c4b5fd !important;
    border-color: #c4b5fd !important;
}

.ticket-swap-offer-update__btn-danger {
    background: transparent !important;
    color: #dc2626 !important;
    border: 2px solid #dc2626 !important;
}

:root[data-theme='dark'] .ticket-swap-offer-update__btn-danger {
    color: #f87171 !important;
    border-color: #f87171 !important;
}

.ticket-swap-seller-qty {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--accent-blue);
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
}

.ticket-swap-seller-qty:hover {
    border-color: var(--accent-purple);
}

.ticket-swap-seller-qty:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

span.ticket-swap-seller-qty--readonly {
    border: 1px solid var(--border);
    cursor: default;
    color: var(--text);
    font-weight: 600;
}

/* Quantity sheet (nested over feed) */
.ticket-swap-qty-root {
    position: fixed;
    inset: 0;
    z-index: 1105;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: max(16px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    box-sizing: border-box;
}

@media (min-width: 841px) {
    /*
     * Full-viewport root so the dim backdrop covers the whole screen. (A narrow root + transform
     * would trap position:fixed descendants and leave bright gutters beside the overlay.)
     */
    .ticket-swap-qty-root {
        left: 0 !important;
        right: 0 !important;
        transform: none;
        max-width: none;
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Constrain ticket swap viewport modal to content width on desktop */
    #ticketSwapPanel.floating-panel.ticket-swap-panel.ticket-swap-panel--viewport.active {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        max-width: 840px;
        width: 840px;
    }

    /* Card should fill parent width (840px) on desktop, not calculate from viewport */
    .ticket-swap-manage-sales__card {
        width: 100%;
        max-width: none;
    }

    /* Ensure ticket quantity input has minimum width on desktop */
    .ticket-swap-qty-sheet__input {
        min-width: 120px;
    }
}

.ticket-swap-qty-root.is-open {
    display: flex;
}

/*
 * Manage-qty sheet (#ticketSwapQtyRoot): full-screen overlay above the app; only the card scrolls.
 * (Root overflow-y hidden avoids dragging the whole sheet; card uses max-height 100% + overflow auto.)
 */
#ticketSwapQtyRoot.ticket-swap-qty-root {
    inset: 0;
    padding: max(16px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: hidden;
    justify-content: center;
    align-items: center;
    min-height: 0;
}

@media (min-width: 841px) {
    #ticketSwapQtyRoot.ticket-swap-qty-root {
        left: 0 !important;
        right: 0 !important;
        transform: none;
        max-width: none;
        width: 100%;
    }
}

/*
 * Mark-bought modal must stack above #ticketSwapQtyRoot manage sheet (2147483042), including when
 * body.modal-open is not set (manage sheet does not rely on it).
 */
#ticketSwapMarkBoughtRoot.ticket-swap-qty-root.is-open {
    z-index: 2147483050;
    isolation: isolate;
}

/* Under-offer sheet stacks above main manage-sales sheet */
#ticketSwapManageUnderOfferRoot.ticket-swap-qty-root {
    z-index: 1115;
}

/* Sell-from-wallet / sell-and-create-wallet modals (above ticket swap panel / modal-open stack) */
#gigglyTsSellWalletFirstRoot.ticket-swap-qty-root.is-open,
#gigglyTsSellWalletCreateRoot.ticket-swap-qty-root.is-open {
    z-index: 2147483045;
    isolation: isolate;
}

.giggly-ts-sell-modal__footer {
    width: 100%;
    justify-content: stretch;
    margin-top: 10px;
}

.giggly-ts-sell-modal__footer .giggly-ts-sell-modal__submit {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    align-self: stretch;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid var(--accent-blue, #77ACA2F) !important;
    background: #fff !important;
    color: var(--accent-blue, #77ACA2F) !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}

.giggly-ts-sell-modal__footer .giggly-ts-sell-modal__submit:hover,
.giggly-ts-sell-modal__footer .giggly-ts-sell-modal__submit:focus-visible {
    background: #fff !important;
    color: var(--accent-blue, #77ACA2F) !important;
    border-color: var(--accent-blue, #77ACA2F) !important;
}

#ticketSwapQtyRoot .ticket-swap-qty-sheet__save.auth-button,
#ticketSwapQtyConfirmBtn.ticket-swap-qty-sheet__save {
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid var(--accent-blue, #77ACA2F) !important;
    background: #fff !important;
    color: var(--accent-blue, #77ACA2F) !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}

#ticketSwapQtyRoot .ticket-swap-qty-sheet__save.auth-button:hover,
#ticketSwapQtyRoot .ticket-swap-qty-sheet__save.auth-button:focus-visible,
#ticketSwapQtyConfirmBtn.ticket-swap-qty-sheet__save:hover,
#ticketSwapQtyConfirmBtn.ticket-swap-qty-sheet__save:focus-visible {
    background: #fff !important;
    color: var(--accent-blue, #77ACA2F) !important;
    border-color: var(--accent-blue, #77ACA2F) !important;
}

.giggly-ts-sell-modal__event-name {
    margin: -6px 0 10px;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--text-secondary, #64748b);
}

html[data-theme='dark'] .giggly-ts-sell-modal__event-name {
    color: var(--text-secondary, #b8b0c4);
}

.giggly-ts-sell-modal__intro {
    margin: 0 0 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary, #64748b);
}

html[data-theme='dark'] .giggly-ts-sell-modal__intro {
    color: var(--text-secondary, #b8b0c4);
}

.giggly-ts-sell-modal__card--tall {
    max-height: min(600px, 90vh);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-x: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* Sell modals: prevent horizontal rubber-banding / sideways drag */
#gigglyTsSellWalletFirstRoot.ticket-swap-qty-root,
#gigglyTsSellWalletCreateRoot.ticket-swap-qty-root {
    overflow-x: hidden;
}

/*
 * Date row: same width as provider select, but WebKit gives <input type="date"> a large
 * intrinsic min-width — grid minmax(0,1fr) + min-width:0 lets it shrink; clip contains paint.
 * -webkit-appearance:none keeps the control from ignoring the box on iOS (picker still works).
 */
.giggly-ts-sell-modal__date-field {
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow-x: hidden; /* paint inside card if WebKit still overdraws */
    border-radius: 12px;
}

.giggly-ts-sell-modal__date-field .giggly-ts-sell-modal__date-input.ticket-swap-qty-sheet__input {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    line-height: 1.25;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

@media (min-width: 841px) {
    /* Desktop sheet rule sets min-width:120px on all .ticket-swap-qty-sheet__input — keep date flexible */
    .giggly-ts-sell-modal__date-field .giggly-ts-sell-modal__date-input.ticket-swap-qty-sheet__input {
        min-width: 0;
    }
}

.ticket-swap-qty-backdrop {
    position: absolute;
    inset: 0;
    /* ~50% dim + light blur so feed / wallet content behind the sheet is easier to ignore */
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] .ticket-swap-qty-backdrop {
    background: rgba(0, 0, 0, 0.62);
}

.ticket-swap-qty-sheet__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 320px;
    flex-shrink: 0;
    /* Vertical center when short; when tall, margin collapses so overflow-y on root can scroll */
    margin-top: auto;
    margin-bottom: auto;
    border-radius: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    padding: 16px 18px 18px;
    box-sizing: border-box;
}

:root[data-theme='dark'] .ticket-swap-qty-sheet__card {
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
}

.ticket-swap-qty-sheet__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.ticket-swap-qty-sheet__close:hover {
    color: var(--text);
    background: rgba(15, 23, 42, 0.06);
}

:root[data-theme='dark'] .ticket-swap-qty-sheet__close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ticket-swap-qty-sheet__title {
    margin: 0 40px 6px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

.ticket-swap-qty-sheet__sell-summary {
    margin: 0 40px 12px 0;
    min-height: 1.35em;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-secondary);
}

.ticket-swap-qty-sheet__manage-copy {
    margin: 0 40px 12px 0;
}

.ticket-swap-qty-sheet__manage-line {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-secondary);
}

.ticket-swap-qty-sheet__manage-line:last-child {
    margin-bottom: 0;
}

.ticket-swap-qty-sheet__instructions {
    margin: 0 40px 14px 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
    opacity: 0.92;
}

/* Manage tickets-for-sale: match Ticket Swap panel (floating-panel) + panel typography */
#ticketSwapQtyRoot .ticket-swap-qty-sheet__card {
    width: 100%;
    max-width: min(520px, 100%);
    margin-top: 0;
    margin-bottom: 0;
    flex: 0 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px 16px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

:root[data-theme='dark'] #ticketSwapQtyRoot .ticket-swap-qty-sheet__card {
    background: rgba(26, 15, 46, 0.95);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
}

/* Same scale as .filter-sort-panel .filter-sort-panel__title.add-event-modal__title (ticket swap header) */
#ticketSwapQtyRoot .ticket-swap-qty-sheet__title {
    margin: 0 36px 10px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

#ticketSwapQtyRoot .ticket-swap-qty-sheet__manage-copy {
    margin: 10px 0 14px;
    width: 100%;
    max-width: none;
    padding-right: 40px;
    box-sizing: border-box;
}

/* Body copy: match matrix / panel density (.ticket-swap-matrix-num ~14px) */
#ticketSwapQtyRoot .ticket-swap-qty-sheet__intro-blurb {
    margin: 0;
    width: 100%;
    max-width: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-secondary);
    white-space: pre-line;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Match #ticketSwapPanel .ticket-swap-panel__list-heading */
#ticketSwapQtyRoot .ticket-swap-qty-sheet__wheel-heading {
    margin: 8px 0 10px;
    width: 100%;
    max-width: none;
    padding-right: 40px;
    box-sizing: border-box;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    color: var(--text);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

#ticketSwapQtyRoot .ticket-swap-qty-wheel-clip.ticket-swap-qty-wheel-clip--qty-sheet {
    width: 100%;
    max-width: none;
    height: 120px;
    max-height: 120px;
    margin: 0 0 12px;
    box-sizing: border-box;
}

#ticketSwapQtyRoot .ticket-swap-qty-wheel-clip.ticket-swap-qty-wheel-clip--qty-sheet::before {
    height: 36px;
    margin-top: -18px;
}

#ticketSwapQtyRoot .ticket-swap-qty-wheel.ticket-swap-qty-wheel--qty-sheet {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

#ticketSwapQtyRoot .ticket-swap-qty-wheel-item.ticket-swap-qty-wheel-item--sheet-dial {
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    line-height: 36px;
    font-size: 16px;
    font-weight: 600;
}

/* Full-width variant of .ticket-swap-row-action--manage */
#ticketSwapQtyRoot .ticket-swap-qty-sheet-remove {
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
    padding: 10px 12px;
    box-sizing: border-box;
    display: block;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] #ticketSwapQtyRoot .ticket-swap-qty-sheet-remove {
    border-color: #a78bfa;
    color: #c4b5fd;
}

#ticketSwapQtyRoot .ticket-swap-qty-sheet__price-block {
    margin-top: 20px;
    padding-top: 14px;
}

#ticketSwapQtyRoot .ticket-swap-qty-sheet__label {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

#ticketSwapQtyRoot .ticket-swap-qty-sheet__price-inline {
    max-width: none;
    width: 100%;
}

#ticketSwapQtyRoot .ticket-swap-qty-sheet__price-gbp {
    font-size: 16px;
    font-weight: 700;
}

#ticketSwapQtyRoot .ticket-swap-qty-sheet__price-input {
    font-size: 16px;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 8px;
}

#ticketSwapQtyRoot .ticket-swap-qty-sheet__save.auth-button {
    font-size: 16px;
    border-radius: 8px;
    padding: 12px 16px;
}

.ticket-swap-qty-sheet__footer--stack {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 4px;
}

.ticket-swap-qty-sheet__save {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
}

.ticket-swap-qty-sheet__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ticket-swap-qty-sheet__price-block {
    margin: 0 0 16px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.ticket-swap-qty-sheet__price-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 200px;
}

.ticket-swap-qty-sheet__price-gbp {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.ticket-swap-qty-sheet__price-input {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
}

.ticket-swap-qty-sheet__price-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(70, 129, 137, 0.2);
}

.ticket-swap-qty-sheet__input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    margin-bottom: 18px;
}

.ticket-swap-qty-sheet__input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(70, 129, 137, 0.2);
}

.ticket-swap-qty-wheel-clip {
    position: relative;
    height: 168px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    margin-bottom: 16px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Fixed band behind the centred row so the selected value reads clearly in light and dark. */
.ticket-swap-qty-wheel-clip::before {
    content: '';
    position: absolute;
    left: 6px;
    right: 6px;
    top: 50%;
    height: 48px;
    margin-top: -24px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.11);
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.14),
        0 1px 2px rgba(15, 23, 42, 0.06);
    pointer-events: none;
    z-index: 0;
}

:root[data-theme='dark'] .ticket-swap-qty-wheel-clip::before {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.ticket-swap-qty-wheel {
    position: relative;
    z-index: 1;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    outline: none;
}

.ticket-swap-qty-wheel:focus-visible {
    box-shadow: 0 0 0 3px rgba(70, 129, 137, 0.25);
}

.ticket-swap-qty-wheel-pad {
    scroll-snap-align: none;
    pointer-events: none;
}

.ticket-swap-qty-wheel-item {
    height: 48px;
    line-height: 48px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    scroll-snap-align: center;
    flex-shrink: 0;
}

.ticket-swap-name-slot--stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.ticket-swap-name-slot--stack .ticket-swap-row-action--manage {
    align-self: flex-start;
}

.ticket-swap-manage-sales__card {
    position: relative;
    width: calc(100vw - 24px);
    max-width: 840px;
    max-height: min(90vh, 800px);
    display: flex;
    flex-direction: column;
    padding: 16px 18px 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.ticket-swap-manage-sales__head-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-right: 44px;
    box-sizing: border-box;
}

.ticket-swap-manage-sales__card > .ticket-swap-manage-sales__sheet-close.ticket-swap-qty-sheet__close {
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 44px;
    height: 44px;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-secondary);
}

.ticket-swap-manage-global-listing-wrap {
    margin-bottom: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Same typography as “Your tickets under offer” (and shared across manage sections). */
.ticket-swap-manage-sales__section-heading,
.ticket-swap-manage-sales__under-heading,
.ticket-swap-manage-sales__for-sale-heading {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--text);
    text-transform: none;
    line-height: 1.3;
    letter-spacing: normal;
}

label.ticket-swap-manage-sales__section-heading {
    display: block;
    cursor: pointer;
}

.ticket-swap-manage-sales__section-heading--listing {
    margin-bottom: 20px;
}

.ticket-swap-manage-sales__for-sale-heading {
    margin-top: 24px;
    margin-bottom: 10px;
}

.ticket-swap-manage-global-listing__select-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
}

.ticket-swap-manage-global-listing__select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 46px 12px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: var(--bg);
    color: var(--text);
    font-size: 0.8125rem;
    line-height: 1.35;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='20' viewBox='0 0 16 20' fill='none'%3E%3Cpath d='M4 7L8 3L12 7' stroke='%236c757d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 13L8 17L12 13' stroke='%236c757d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 20px;
    text-indent: 0.01px;
    text-overflow: ellipsis;
}

:root[data-theme='dark'] .ticket-swap-manage-global-listing__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='20' viewBox='0 0 16 20' fill='none'%3E%3Cpath d='M4 7L8 3L12 7' stroke='%23a1a1aa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 13L8 17L12 13' stroke='%23a1a1aa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ticket-swap-manage-sales__scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    min-height: 0;
    padding-right: 4px;
}

.ticket-swap-manage-sales__title-block {
    flex: 1;
    min-width: 0;
    padding-right: 4px;
}

.ticket-swap-manage-sales__title-block .ticket-swap-manage-sales__title {
    margin: 2px 0 0 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

.ticket-swap-manage-sales__subtitle {
    margin: 6px 0 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-muted, #6c757d);
}

.ticket-swap-manage-sales__stack-block {
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.ticket-swap-manage-sales__stack-block--purchases {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border, rgba(15, 23, 42, 0.12));
}

:root[data-theme='dark'] .ticket-swap-manage-sales__stack-block--purchases {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.ticket-swap-manage-sales-root--event-sale-only #ticketSwapManageSalesPanePurchase {
    display: none !important;
}

.ticket-swap-manage-sales__sale-only-for-sale-blurb {
    margin: 0 0 12px 0;
    padding: 0 4px;
    font-size: 0.9375rem;
    line-height: 1.45;
    font-weight: 600;
    color: var(--text-muted, #6c757d);
    text-align: left;
}

.ticket-swap-manage-under-offer__card {
    max-height: min(88vh, 640px);
}

.ticket-swap-manage-under-offer__title {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

.ticket-swap-manage-under-offer__event-name {
    margin: 0 0 16px 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-muted, #6c757d);
}

.ticket-swap-manage-sales__purchases-section-title {
    margin: 0 0 14px 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

.ticket-swap-manage-purchases__loading,
.ticket-swap-manage-purchases__empty,
.ticket-swap-manage-purchases__error {
    margin: 0 0 12px 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-muted, #6c757d);
}

.ticket-swap-manage-purchases__error {
    color: #dc3545;
}

.ticket-swap-manage-purchases__event-block {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 97%, var(--text) 3%);
    box-sizing: border-box;
}

.ticket-swap-manage-purchases__event-block:last-child {
    margin-bottom: 4px;
}

.ticket-swap-manage-purchases__event-title {
    margin: 0 0 8px 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.ticket-swap-manage-purchases__offer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ticket-swap-manage-purchases__offer-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.ticket-swap-manage-purchases__offer-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ticket-swap-manage-purchases__offer-head {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
}

.ticket-swap-manage-purchases__offer-text {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--text);
}

.ticket-swap-manage-purchases__offer-count {
    font-weight: 700;
}

.ticket-swap-manage-purchases__seller-name {
    font-weight: 600;
}

.ticket-swap-manage-purchases__offer-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    align-self: center;
}

.ticket-swap-manage-purchases__update-btn {
    flex-shrink: 0;
}

.ticket-swap-manage-purchases__amend-dismiss {
    appearance: none;
    -webkit-appearance: none;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 10px;
    background: color-mix(in srgb, var(--text) 10%, transparent);
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

/* [hidden] must win over display:flex (otherwise × shows beside every row). */
.ticket-swap-manage-purchases__amend-dismiss[hidden],
.ticket-swap-manage-purchases__amend-dismiss--in-panel[hidden] {
    display: none !important;
}

.ticket-swap-manage-purchases__offer-amend-panel {
    --ticket-swap-amend-panel-bg: color-mix(in srgb, var(--accent-blue) 16%, var(--bg));
    margin-top: 8px;
    padding: 10px 12px 14px;
    border-radius: 12px;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--accent-blue) 32%, var(--border));
    background: var(--ticket-swap-amend-panel-bg);
    position: relative;
}

:root[data-theme='dark'] .ticket-swap-manage-purchases__offer-amend-panel {
    --ticket-swap-amend-panel-bg: color-mix(in srgb, var(--accent-blue) 14%, var(--bg));
    border-color: color-mix(in srgb, var(--accent-blue) 45%, var(--border));
    background: var(--ticket-swap-amend-panel-bg);
}

/* [hidden] must win if any layout rule sets display on the panel (keep amend closed until expand). */
.ticket-swap-manage-purchases__offer-amend-panel[hidden] {
    display: none !important;
}

.ticket-swap-manage-purchases__amend-panel-header {
    margin-bottom: 12px;
}

.ticket-swap-manage-purchases__amend-panel-header--toolbar {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.ticket-swap-manage-purchases__amend-panel-header--toolbar .ticket-swap-manage-purchases__amend-heading {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding-right: 4px;
}

.ticket-swap-manage-purchases__amend-heading {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.ticket-swap-manage-purchases__amend-dismiss--in-panel {
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: -2px -4px 0 0;
    border: none;
    border-radius: 10px;
    background: var(--ticket-swap-amend-panel-bg);
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.ticket-swap-manage-purchases__amend-dismiss--in-panel:hover {
    background: color-mix(in srgb, var(--accent-blue) 28%, var(--bg));
    color: var(--text);
}

:root[data-theme='dark'] .ticket-swap-manage-purchases__amend-dismiss--in-panel:hover {
    background: color-mix(in srgb, var(--accent-blue) 24%, var(--bg));
}

.ticket-swap-manage-purchases__amend-controls-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.ticket-swap-manage-purchases__amend-controls-row .ticket-swap-buy-select {
    display: block;
    flex: 0 0 38%;
    max-width: 38%;
    min-width: 0;
    width: auto !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 14px;
}

.ticket-swap-manage-purchases__cancel-buy-btn--inline.auth-button {
    /* .auth-button is width:100% globally — that forced this button onto its own row. */
    width: auto !important;
    flex: 1 1 auto;
    margin: 0 !important;
    padding: 6px 10px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    border-radius: 8px !important;
    text-align: center;
    min-width: 6.5rem;
    max-width: 7.75rem;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 1;
}

.ticket-swap-manage-purchases__cancel-buy-line {
    display: block;
}

.ticket-swap-manage-purchases__cancel-buy-line--nowrap {
    white-space: nowrap;
}

.ticket-swap-manage-purchases__amend-label {
    display: block;
    margin: 0 0 6px 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.ticket-swap-manage-purchases__offer-inline-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding-top: 10px;
    box-sizing: border-box;
}

.ticket-swap-manage-purchases__offer-edit-inline,
.ticket-swap-manage-purchases__offer-contact-inline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding-top: 10px;
    box-sizing: border-box;
}

.ticket-swap-manage-purchases__edit-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.ticket-swap-manage-purchases__edit-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-swap-manage-purchases__contact-slot {
    min-height: 0;
}

.ticket-swap-manage-purchases__contact-fallback {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--text-muted, #6c757d);
}

.ticket-swap-manage-purchases__inline-btn {
    width: 100%;
    box-sizing: border-box;
}

.ticket-swap-manage-sales__section-title {
    margin: 0 0 10px 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
}

.ticket-swap-manage-sales__wheel-clip {
    height: 96px;
    margin-bottom: 12px;
    flex-shrink: 0;
    contain: layout style;
}

.ticket-swap-manage-sales__wheel-clip::before {
    height: 26px;
    margin-top: -13px;
}

.ticket-swap-qty-wheel--compact .ticket-swap-qty-wheel-item {
    height: 32px;
    line-height: 32px;
    font-size: 15px;
    font-weight: 600;
}

.ticket-swap-qty-wheel--manage-sale .ticket-swap-qty-wheel-item {
    height: 26px;
    line-height: 26px;
    font-size: 13px;
    font-weight: 600;
}

.ticket-swap-manage-sales__footer-bar {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 0 2px;
    margin-top: 4px;
    border-top: none;
}

.ticket-swap-manage-sales__confirm-tick {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    margin: 0;
    padding: 0;
    background: #77ACA2f !important;
    background-image: none !important;
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 10px rgba(119, 172, 162, 0.45);
}

.ticket-swap-manage-sales__confirm-tick:active {
    transform: scale(0.96);
    opacity: 0.92;
}

:root[data-theme='dark'] .ticket-swap-manage-sales__confirm-tick {
    background: #77ACA2f !important;
    box-shadow: 0 2px 10px rgba(119, 172, 162, 0.4);
}

.ticket-swap-manage-sales__split-wrap {
    margin-bottom: 20px;
}

.ticket-swap-manage-sales__split-row {
    display: flex;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

:root[data-theme='dark'] .ticket-swap-manage-sales__split-row {
    background: var(--bg);
}

.ticket-swap-manage-sales__split-primary {
    flex: 1 1 auto;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 9px 12px;
    border: none;
    border-radius: 0;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] .ticket-swap-manage-sales__split-primary {
    background: var(--bg);
    color: var(--text);
}

.ticket-swap-manage-sales__split-caret {
    flex: 0 0 44px;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    border: none;
    border-left: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] .ticket-swap-manage-sales__split-caret {
    background: var(--bg);
}

.ticket-swap-manage-sales__split-menu {
    margin-top: -1px;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.ticket-swap-manage-sales__split-menu-btn {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 9px 12px;
    border: none;
    border-radius: 0;
    background: #9ca3af;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    line-height: 1.35;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] .ticket-swap-manage-sales__split-menu-btn {
    background: #4b5563;
    color: #f9fafb;
}

.ticket-swap-manage-sales__under {
    border-top: 1px solid var(--border);
    padding: 16px 0 0 0;
    margin-top: 16px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
}

.ticket-swap-manage-sales__under-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-swap-manage-sales__offer-card {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.03);
    contain: layout;
}

:root[data-theme='dark'] .ticket-swap-manage-sales__offer-card {
    background: rgba(255, 255, 255, 0.05);
}

.ticket-swap-manage-sales__offer-text {
    margin: 0 0 10px 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text);
}

.ticket-swap-manage-sales__offer-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-swap-manage-sales__offer-btns .auth-button,
.ticket-swap-manage-sales__offer-btn.auth-button {
    margin: 0;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
}

.ticket-swap-manage-sales__offer-btns .auth-button:active,
.ticket-swap-manage-sales__offer-btn.auth-button:active {
    transform: none !important;
}

.ticket-swap-manage-sales__offer-remove-single {
    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    border-radius: 10px !important;
    text-align: center;
    white-space: normal;
    word-break: break-word;
}

.ticket-swap-manage-sales__offer-remove-single::before,
.ticket-swap-manage-sales__offer-remove-single::after {
    content: none !important;
}

.ticket-swap-manage-sales__offer-remove-split {
    position: relative;
    width: 100%;
}

.ticket-swap-manage-sales__offer-remove-split-row {
    display: flex;
    width: 100%;
    min-width: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
}

.ticket-swap-manage-sales__offer-remove-primary {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 8px 8px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-align: center;
    white-space: normal;
    word-break: break-word;
}

.ticket-swap-manage-sales__offer-remove-caret {
    flex: 0 0 44px;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    border: none;
    border-left: 1px solid var(--border);
    background: color-mix(in srgb, var(--text) 5%, var(--bg));
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] .ticket-swap-manage-sales__offer-remove-caret {
    background: color-mix(in srgb, var(--text) 8%, transparent);
}

.ticket-swap-manage-sales__offer-remove-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

:root[data-theme='dark'] .ticket-swap-manage-sales__offer-remove-menu {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.ticket-swap-manage-sales__offer-remove-menu-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ticket-swap-manage-sales__offer-remove-menu-btn:last-child {
    border-bottom: none;
}

.ticket-swap-mark-bought__card {
    max-width: 360px;
}

.ticket-swap-mark-bought__intro {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
}

.ticket-swap-qty-sheet__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.ticket-swap-qty-sheet__footer-row {
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.ticket-swap-qty-sheet__footer-row.ticket-swap-qty-sheet__footer--confirm-only {
    justify-content: flex-end;
}

.ticket-swap-qty-sheet-remove {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
}

.ticket-swap-qty-sheet-remove:active {
    opacity: 0.85;
}

:root[data-theme='dark'] .ticket-swap-qty-sheet-remove {
    background: rgba(255, 255, 255, 0.06);
}

.ticket-swap-qty-sheet__confirm {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    margin: 0;
    padding: 0;
    background: var(--brand-btn-bg, #468189);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(70, 129, 137, 0.35);
    -webkit-tap-highlight-color: transparent;
}

.ticket-swap-qty-sheet__confirm:active {
    transform: scale(0.96);
}

.filter-sort-panel__sort-label {
    display: block;
    margin-bottom: 8px;
}

.filter-sort-panel__sort-label .add-event-label__main {
    color: var(--text);
}

.filter-sort-panel__select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.3;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

:root[data-theme='dark'] .filter-sort-panel__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a1a1aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.filter-sort-panel__select:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.filter-sort-panel__category-block {
    margin-top: 16px;
}

.filter-sort-panel__category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-sort-panel__category-pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition:
        opacity 0.15s ease,
        transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.filter-sort-panel__category-pill:active {
    transform: scale(0.97);
}

.filter-sort-panel__category-pill.is-dimmed {
    opacity: 0.5;
}

.filter-sort-panel__category-pill:not(.is-dimmed) {
    opacity: 1;
}

.filter-sort-panel__category-pill--all {
    background: var(--bg);
    color: var(--text);
}

.filter-sort-panel__filter-block {
    margin-top: 16px;
}

.filter-sort-panel__filter-block:first-of-type {
    margin-top: 18px;
}

.filter-sort-panel__filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

#filterSortPanel .filter-sort-panel__filter-open-btn,
.filter-sort-panel__filter-open-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #111 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: inherit;
    line-height: 1.25;
    cursor: pointer;
    background: #fff !important;
    color: #111 !important;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

#filterSortPanel .filter-sort-panel__filter-open-btn:active,
.filter-sort-panel__filter-open-btn:active {
    opacity: 0.88;
}

:root[data-theme='dark'] #filterSortPanel .filter-sort-panel__filter-open-btn,
:root[data-theme='dark'] .filter-sort-panel__filter-open-btn {
    background: var(--bg) !important;
    color: var(--text) !important;
    border-color: color-mix(in srgb, var(--text) 88%, transparent) !important;
}

.filter-sort-panel__filter-clear-btn {
    border: 1.5px solid var(--accent-blue);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    background: #fff;
    color: var(--accent-blue);
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] .filter-sort-panel__filter-clear-btn {
    background: var(--bg);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.filter-sort-panel__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 8px 6px 12px;
    background: #fff;
    border: 1px solid #111;
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

:root[data-theme='dark'] .filter-sort-panel__chip {
    background: var(--bg);
    color: var(--text);
    border-color: color-mix(in srgb, var(--text) 88%, transparent);
}

.filter-sort-panel__selected-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.filter-sort-panel__chip-remove {
    border: 0;
    background: transparent;
    color: var(--text);
    opacity: 0.7;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.filter-pick-modal {
    position: fixed;
    inset: 0;
    z-index: 2147482100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.filter-pick-modal[hidden] {
    display: none !important;
}

.filter-pick-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.filter-pick-modal__sheet {
    position: relative;
    width: min(840px, 100%);
    max-height: min(72vh, 640px);
    background: var(--bg);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.filter-pick-modal__header.add-event-modal__header {
    flex-shrink: 0;
}

.filter-pick-modal__body {
    overflow: auto;
    padding: 12px 16px 8px;
}

.filter-pick-modal__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pick-modal__footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
}

.filter-pick-modal__done-btn {
    width: 100%;
    border: 1.5px solid #111;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    color: #111;
    background: #fff;
}

:root[data-theme='dark'] .filter-pick-modal__done-btn {
    color: var(--text);
    background: var(--bg);
    border-color: color-mix(in srgb, var(--text) 88%, transparent);
}

.filter-pick-modal .add-event-genre-pill {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.filter-pick-modal .add-event-genre-pill.is-dimmed {
    opacity: 0.42;
}

.filter-pick-modal .add-event-genre-pill:not(.is-dimmed) {
    opacity: 1;
}

.filter-sort-panel__admin-past-block {
    margin-top: 14px;
    padding-top: 2px;
}

.filter-sort-panel__admin-past-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.filter-sort-panel__admin-past-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
}

.control-btn.is-filter-sort-active {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.control-btn.is-filter-sort-active svg {
    color: var(--accent-blue);
}

.control-btn.is-filter-sort-active svg line {
    stroke: var(--accent-blue);
}

#searchBarExpandable {
    left: 20px;
    right: 20px;
    border-radius: 12px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-panel-content {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.close-panel-btn {
    background: none;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.close-panel-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

:root[data-theme="dark"] .close-panel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font-size: 17px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.panel-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.panel-option:hover {
    background: rgba(70, 129, 137, 0.1);
}

.panel-option svg {
    flex-shrink: 0;
}

/* ==========================================================================
   6. Bottom Navigation
   ========================================================================== */

/* Bottom bar - visual element beneath FAB */
.bottom-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-bar-height);
    height: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom));
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.04);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 999;
    pointer-events: none;
}

/* Dark mode frosted glass */
:root[data-theme="dark"] .app-header {
    background: rgba(26, 15, 46, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .bottom-bar-container {
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Constrain bars to content width on desktop */
@media (min-width: 880px) {
    .controls-bar,
    .bottom-bar {
        left: calc(50% - var(--giggly-chrome-half-width));
        right: calc(50% - var(--giggly-chrome-half-width));
        width: var(--giggly-chrome-max-width);
        max-width: calc(100% - 32px);
    }

    #searchBarExpandable {
        left: calc(50% - var(--giggly-chrome-search-half-width));
        right: calc(50% - var(--giggly-chrome-search-half-width));
    }
}

/* Sort menu dropdown */
.filter-menu {
    position: fixed;
    bottom: 145px;
    bottom: calc(145px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    padding: 8px;
    min-width: 200px;
    z-index: 1000;
}

.filter-menu-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.filter-menu-item:hover {
    background: var(--border);
}

.filter-menu-item.active {
    color: var(--accent-purple);
    font-weight: 600;
}

.filter-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* Main feed + promoter embed: no hits (shown below filter chrome, above list / above Bar C). */
.giggly-search-no-hits__title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    color: #64748b;
    letter-spacing: 0.01em;
}

.giggly-search-no-hits__sub {
    margin: 8px 0 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    color: #64748b;
}

:root[data-theme='dark'] .giggly-search-no-hits__title,
:root[data-theme='dark'] .giggly-search-no-hits__sub {
    color: #94a3b8;
}

/* In-feed promoter subscribe invites: same max width as #eventsContainer; scrolls with the list */
.giggly-promoter-sub-invite-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Visually aligned with .event-card.event-card--v2 (not an .event-card — avoids feed card JS) */
.giggly-promoter-sub-invite-feed__card {
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 16px;
    background: #f5f7fa;
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
    border: 1px solid #c5cad3;
}

:root[data-theme='dark'] .giggly-promoter-sub-invite-feed__card {
    background: rgba(255, 255, 255, 0.05);
    border-color: #5c4a78;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.giggly-promoter-sub-invite-feed__eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text) 62%, transparent);
}

.giggly-promoter-sub-invite-feed__text {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text);
    text-align: left;
}

.giggly-promoter-sub-invite-feed__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.feed-search-no-results-banner {
    flex-shrink: 0;
    max-width: var(--giggly-chrome-max-width);
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 14px 20px 12px;
    text-align: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    -webkit-user-select: none;
    user-select: none;
}

:root[data-theme='dark'] .feed-search-no-results-banner {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

#eventsApp .feed-search-no-results-banner[hidden],
#eventsApp #promoterChannelsSearchNoResultsBanner[hidden],
#eventsApp .feed-search-no-results-banner[data-giggly-force-hidden],
#eventsApp #promoterChannelsSearchNoResultsBanner[data-giggly-force-hidden] {
    display: none !important;
    visibility: hidden !important;
}

/* Tag hub: search field is always visible (no separate expand control in this shell). */
#tagHubApp #tagHubSearchContainer.search-container {
    transform: scaleX(1);
    opacity: 1;
    pointer-events: auto;
    position: relative;
    left: 0;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    height: 48px;
    z-index: 3;
    padding: 0 10px;
}

.tag-hub-search-no-results-banner {
    flex-shrink: 0;
    max-width: var(--giggly-chrome-max-width);
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 12px 20px 8px;
    text-align: center;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

:root[data-theme='dark'] .tag-hub-search-no-results-banner {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.events-container {
    position: relative;
    z-index: 1;
    flex: 1 1 0%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    box-sizing: border-box;
    padding: 20px 20px calc(var(--bottom-bar-height) + 68px);
    /*
     * Bar C/D + safe area + optional tail. --events-feed-scroll-tail is set in JS (px) to ~one
     * viewport minus last card height so the last event can sit under the tabs with modest blank
     * below, not a full extra screen of scroll that pulls the card off the top.
     */
    padding-bottom: calc(
        var(--bottom-bar-height) + 68px + env(safe-area-inset-bottom, 0px) + var(--events-feed-scroll-tail, 0px)
    );
    max-width: var(--giggly-chrome-max-width);
    margin: 0 auto;
    width: 100%;
    overflow-anchor: none; /* Reduce scroll jumps when search hides cards (iOS / Chromium) */
}

/* Prevent page-level rubber-band bounce on iOS when search is filtering results.
 * The container itself is left scrollable so tall cards can still be scrolled up. */
html.giggly-search-filtered,
body.giggly-search-filtered {
    overscroll-behavior: none;
}

/* Month / year strip at each new calendar month in All Events & My Calendar */
.feed-month-divider {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.45em;
    margin: 20px 0 12px;
    padding: 0 2px 10px;
    border-bottom: 1px solid var(--border);
    user-select: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.feed-month-divider:focus {
    outline: none;
}

.feed-month-divider:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 4px;
    border-radius: 6px;
}

.feed-month-divider:first-child {
    margin-top: 0;
}

.feed-month-divider__month,
.feed-month-divider__year {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}

/* Month calendar (opened from Bar C month label) */
.feed-month-cal-modal {
    /* Worst case = 6 week-rows (Mon-start grid). Lock modal height to this so months don’t jump. */
    --feed-cal-cell-gap: 10px;
    --feed-cal-max-rows: 6;
    /* Tall enough for day + two meta rows inside the cell so ★ row stays inside grey --has-event fill */
    --feed-cal-row-h: clamp(64px, 12vw, 76px);
    --feed-cal-grid-min-h: calc(
        var(--feed-cal-max-rows) * var(--feed-cal-row-h) + (var(--feed-cal-max-rows) - 1) * var(--feed-cal-cell-gap)
    );
    /* Sheet vertical padding + footer bar + hint + weekday row + grid–footer gap (measured) */
    --feed-cal-sheet-chrome-h: 276px;
}

.feed-month-cal-modal .modal-content.feed-month-cal-modal__sheet {
    max-width: min(420px, calc(100vw - 32px));
    padding: 16px 20px max(12px, env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    min-height: min(
        calc(100dvh - 56px),
        max(468px, calc(var(--feed-cal-sheet-chrome-h) + var(--feed-cal-grid-min-h) + 8px))
    );
}

/* Month grid / day list (grows in day view). */
.feed-month-cal-modal__sheet-body {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: 0;
    overflow: hidden;
}

.feed-month-cal-modal__sheet--day .feed-month-cal-modal__sheet-body {
    flex: 1 1 auto;
    min-height: 0;
}

/* Title row only; extra sheet height sits between this and the filter tabs. */
.feed-month-cal-modal__sheet-footer {
    margin-top: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

/* Pushes My Calendar / All Events to the bottom of the sheet when the month grid is short. */
.feed-month-cal-modal__sheet-stretch {
    flex: 1 1 auto;
    min-height: 0;
    pointer-events: none;
}

.feed-month-cal-modal__sheet--day .feed-month-cal-modal__sheet-stretch {
    flex: 0 0 0;
    min-height: 0;
}

/* display:flex on .feed-month-cal-day can beat [hidden] in some engines — force collapse */
#feedMonthCalendarPaneDay[hidden],
.feed-month-cal-day[hidden] {
    display: none !important;
}

#feedMonthCalendarPaneMonth[hidden] {
    display: none !important;
}

/* Month grid + hint: height from content. */
.feed-month-cal-modal__sheet-body > #feedMonthCalendarPaneMonth {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: 0;
}

.feed-month-cal-modal__sheet-body > #feedMonthCalendarPaneMonth > .feed-month-cal-modal__hint {
    flex-shrink: 0;
}

.feed-month-cal-modal__sheet-body > #feedMonthCalendarPaneMonth > #feedMonthCalendarGrid {
    flex-shrink: 0;
    /* Breathing room above the title row when month fills the sheet (e.g. 6-row months). */
    margin-bottom: 18px;
}

.feed-month-cal-modal .modal-header.feed-month-cal-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding-top: 0;
}

.feed-month-cal-modal .modal-header.feed-month-cal-modal__header--footer {
    margin-top: 20px;
    margin-bottom: 0;
    padding-top: 12px;
    padding-bottom: 4px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* My Calendar / All Events — inset with sheet horizontal padding; compact row height. */
.feed-month-cal-modal__filter-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    flex-shrink: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    overflow: hidden;
    background: #e5e7eb;
    box-sizing: border-box;
}

:root[data-theme='dark'] .feed-month-cal-modal__filter-tabs {
    border-top-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.1);
}

.feed-month-cal-modal__filter-tab {
    flex: 1 1 50%;
    margin: 0;
    padding: 6px 10px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    font-synthesis: none;
    line-height: 1.25;
    color: #4b5563;
    background: #e5e7eb;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    text-align: center;
    box-sizing: border-box;
}

.feed-month-cal-modal__filter-tab--active {
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06) inset;
}

:root[data-theme='dark'] .feed-month-cal-modal__filter-tab {
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.1);
}

:root[data-theme='dark'] .feed-month-cal-modal__filter-tab--active {
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12) inset;
}

.feed-month-cal-modal__header-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    width: 100%;
}

/*
 * Fixed 3-column grid: ‹ | Month Year | ›
 * Middle is a div (not h2) so .modal-header h2 / .modal-content h2 never apply.
 */
.feed-month-cal-modal__title-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    grid-template-rows: auto;
    align-items: center;
    justify-items: stretch;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    gap: 0;
    box-sizing: border-box;
}

.feed-month-cal-modal__title-row > :nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.feed-month-cal-modal__title-row > :nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.feed-month-cal-modal__title-row > :nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.feed-month-cal-modal__title-row .feed-month-cal-modal__title {
    margin: 0;
    padding: 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    text-align: center;
    min-width: 0;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    align-self: center;
}

.feed-month-cal-modal__nav-arrow {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s ease;
}

/* Pull chevrons toward the title while keeping the row vertically centred */
.feed-month-cal-modal__title-row .feed-month-cal-modal__nav-arrow:first-of-type {
    justify-self: end;
}

.feed-month-cal-modal__title-row .feed-month-cal-modal__nav-arrow:last-of-type {
    justify-self: start;
}

@media (hover: hover) and (pointer: fine) {
    .feed-month-cal-modal__nav-arrow:hover:not(:disabled) {
        opacity: 0.72;
    }
}

.feed-month-cal-modal__nav-arrow:focus {
    outline: none;
}

.feed-month-cal-modal__nav-arrow:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
    border-radius: 4px;
}

.feed-month-cal-modal__nav-arrow:disabled,
.feed-month-cal-modal__nav-arrow.feed-month-cal-modal__nav-arrow--disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.feed-month-cal-modal__header .modal-close {
    flex-shrink: 0;
    margin: 0;
    padding: 6px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.feed-month-cal-modal__hint {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0 0 12px;
}

.feed-month-cal-modal__hint-like-sample {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 4px;
    vertical-align: baseline;
}

.feed-month-cal-modal__hint-star {
    font-size: 0.85em;
    line-height: 1;
    color: #b45309;
    font-weight: 700;
}

.feed-month-cal-modal__hint-num {
    font-size: 0.9em;
    font-weight: 700;
    color: #b45309;
    font-variant-numeric: tabular-nums;
}

:root[data-theme='dark'] .feed-month-cal-modal__hint-star,
:root[data-theme='dark'] .feed-month-cal-modal__hint-num {
    color: #fbbf24;
}

.feed-month-cal-modal__hint-line2 {
    color: var(--text-secondary);
}

/* ── Calendar page (/events/calendar): inline month grid ── */
html.giggly-events-calendar-page .feed-month-cal-modal--page-embed,
body.events-calendar-page .feed-month-cal-modal--page-embed {
    display: flex !important;
    flex: 1 1 0%;
    min-height: 0;
    position: static;
    visibility: visible;
    pointer-events: auto;
    touch-action: auto;
    overscroll-behavior: auto;
    /* Match popup modal cell sizing */
    --feed-cal-cell-gap: 10px;
    --feed-cal-row-h: clamp(64px, 12vw, 76px);
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .modal-content.feed-month-cal-modal__sheet,
body.events-calendar-page .feed-month-cal-modal--page-embed .modal-content.feed-month-cal-modal__sheet {
    max-width: 100%;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 16px 20px max(12px, env(safe-area-inset-bottom, 0px));
    box-shadow: none;
    background: var(--bg, #fff);
    border-radius: 12px;
    box-sizing: border-box;
}

/* Page layout: month nav → My Calendar / All Events → grid (popup keeps tabs at bottom). */
html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__sheet-footer,
body.events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__sheet-footer {
    order: 1;
    margin-top: 0;
    margin-bottom: 8px;
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__filter-tabs,
body.events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__filter-tabs {
    order: 2;
    margin-top: 0;
    margin-bottom: 10px;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    overflow: hidden;
}

:root[data-theme='dark'] html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__filter-tabs,
:root[data-theme='dark'] body.events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__filter-tabs {
    border-color: rgba(255, 255, 255, 0.12);
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__filter-tab + .feed-month-cal-modal__filter-tab,
body.events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__filter-tab + .feed-month-cal-modal__filter-tab {
    border-left: 1px solid rgba(0, 0, 0, 0.12);
}

:root[data-theme='dark'] html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__filter-tab + .feed-month-cal-modal__filter-tab,
:root[data-theme='dark'] body.events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__filter-tab + .feed-month-cal-modal__filter-tab {
    border-left-color: rgba(255, 255, 255, 0.12);
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__sheet-body,
body.events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__sheet-body {
    order: 3;
    flex: 0 1 auto;
    min-height: 0;
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal__weekdays,
body.events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal__weekdays {
    margin-top: 0;
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__title-row,
body.events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-height: 48px;
}

@media (min-width: 992px) {
    html.giggly-desktop-nav-active.giggly-events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal-modal__title-row,
    html.giggly-desktop-nav-active body.events-calendar-page
        .feed-month-cal-modal--page-embed
        .feed-month-cal-modal__title-row {
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr) 52px !important;
        justify-content: stretch !important;
        width: min(100%, 840px) !important;
        max-width: 840px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__title-row .feed-month-cal-modal__title,
body.events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__title-row .feed-month-cal-modal__title {
    flex: 1 1 auto;
    min-width: 0;
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__title-row .feed-month-cal-modal__nav-arrow:first-of-type,
body.events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__title-row .feed-month-cal-modal__nav-arrow:first-of-type {
    justify-self: auto;
    margin-left: 0;
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__title-row .feed-month-cal-modal__nav-arrow:last-of-type,
body.events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__title-row .feed-month-cal-modal__nav-arrow:last-of-type {
    justify-self: auto;
    margin-right: 0;
}

body.events-calendar-page #eventsCalendarPage {
    padding-bottom: calc(var(--bottom-bar-height, 62px) + max(env(safe-area-inset-bottom, 0px), 8px));
    box-sizing: border-box;
    max-width: var(--giggly-chrome-max-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body.events-calendar-page .events-calendar-page__embed {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__sheet-stretch,
body.events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__sheet-stretch {
    order: 4;
    flex: 0 0 0;
    min-height: 0;
    display: none;
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__hint {
    display: none !important;
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__header .modal-close {
    display: none !important;
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed.feed-month-cal-modal--day-overlay .feed-month-cal-modal__header .modal-close {
    display: flex !important;
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__sheet-body > #feedMonthCalendarPaneMonth > #feedMonthCalendarGrid,
body.events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__sheet-body > #feedMonthCalendarPaneMonth > #feedMonthCalendarGrid {
    margin-bottom: 0;
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__header--footer,
body.events-calendar-page .feed-month-cal-modal--page-embed .feed-month-cal-modal__header--footer {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top: none;
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed.feed-month-cal-modal--day-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147482980;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0 16px max(12px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed.feed-month-cal-modal--day-overlay .feed-month-cal-modal__sheet {
    max-width: min(420px, calc(100vw - 32px));
    min-height: min(calc(100dvh - 56px), 520px);
    background: var(--bg, #fff);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
    padding: 16px 20px max(12px, env(safe-area-inset-bottom, 0px));
}

html.giggly-events-calendar-page .feed-month-cal-modal--page-embed.feed-month-cal-modal--day-overlay .feed-month-cal-modal__filter-tabs,
html.giggly-events-calendar-page .feed-month-cal-modal--page-embed.feed-month-cal-modal--day-overlay .feed-month-cal-modal__sheet-stretch {
    display: none !important;
}

#eventsCalendarNavPill,
.filter-tab.filter-tab--calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

/* ── Calendar day page (/events/calendar/day/YYYY-MM-DD) ── */
body.events-calendar-day-page #eventsContainer,
body.events-calendar-day-page #eventsControlsBar,
body.events-calendar-day-page #feedSearchNoResultsBanner,
body.events-calendar-day-page #eventsCalendarPage {
    display: none !important;
}

body.events-calendar-day-page #eventsCalendarDayPage {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-height: 0;
    overflow: hidden;
    max-width: var(--giggly-chrome-max-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: calc(var(--bottom-bar-height, 62px) + max(env(safe-area-inset-bottom, 0px), 8px));
    box-sizing: border-box;
}

body.events-calendar-day-page .events-calendar-day-page__shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-height: 0;
}

body.events-calendar-day-page .events-calendar-day-page__chrome {
    flex-shrink: 0;
    padding: 6px 16px 8px;
    box-sizing: border-box;
    background: var(--bg);
}

body.events-calendar-day-page .events-calendar-day-page__cards-scroll {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 72px;
    box-sizing: border-box;
}

body.events-calendar-day-page .events-calendar-day-page__head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    min-height: 48px;
}

body.events-calendar-day-page .events-calendar-day-page__head-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    justify-self: end;
    grid-column: 3;
    grid-row: 1;
}

body.events-calendar-day-page .events-calendar-day-page__show-by-slot {
    display: none;
}

body.events-calendar-day-page .events-calendar-day-page__filter-slot {
    display: none;
}

body.events-calendar-day-page .events-calendar-day-page__filter-float {
    position: fixed;
    left: 12px;
    bottom: calc(var(--bottom-bar-height, 62px) + max(env(safe-area-inset-bottom, 0px), 8px) + 8px);
    z-index: 1001;
    width: 48px;
    height: 48px;
    pointer-events: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

body.events-calendar-day-page .events-calendar-day-page__filter-float .control-btn {
    position: static;
    left: auto;
    right: auto;
    pointer-events: auto;
    width: 48px;
    height: 48px;
    margin: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

:root[data-theme='dark'] body.events-calendar-day-page .events-calendar-day-page__filter-float .control-btn {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

html.giggly-desktop-nav-active.giggly-desktop-calendar-day-route
    .events-calendar-day-page__filter-slot:not([hidden]) {
    display: flex !important;
    align-items: center;
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

body.events-calendar-day-page .events-calendar-day-page__show-by-slot .giggly-desktop-show-by {
    margin: 0;
    gap: 6px;
}

body.events-calendar-day-page .events-calendar-day-page__show-by-slot .giggly-desktop-show-by__label {
    font-size: 0.75rem;
}

body.events-calendar-day-page .events-calendar-day-page__show-by-slot .giggly-desktop-show-by__btn {
    font-size: 0.75rem;
    padding: 5px 8px;
}

body.events-calendar-day-page .events-calendar-day-page__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 6%, transparent);
    color: #111827;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    -webkit-tap-highlight-color: transparent;
    justify-self: start;
}

:root[data-theme='dark'] body.events-calendar-day-page .events-calendar-day-page__back {
    color: var(--text);
}

body.events-calendar-day-page .events-calendar-day-page__back-icon {
    line-height: 1;
}

body.events-calendar-day-page .events-calendar-day-page__title {
    margin: 0;
    padding: 8px 0 2px;
    text-align: center;
    justify-self: center;
    grid-column: 2;
    grid-row: 1;
}

body.events-calendar-day-page .events-calendar-day-page__map-btn,
body.events-calendar-day-page .events-calendar-day-page__share-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.events-calendar-day-page .events-calendar-day-page__map-btn {
    flex-direction: column;
    gap: 1px;
    width: auto;
    min-width: 40px;
    height: auto;
    min-height: 40px;
    padding: 2px 4px 0;
    border-radius: 10px;
}

body.events-calendar-day-page .events-calendar-day-page__map-btn:hover,
body.events-calendar-day-page .events-calendar-day-page__map-btn:focus-visible,
body.events-calendar-day-page .events-calendar-day-page__share-btn:hover,
body.events-calendar-day-page .events-calendar-day-page__share-btn:focus-visible {
    color: var(--text);
}

body.events-calendar-day-page .events-calendar-day-page__map-btn[aria-pressed='true'] {
    color: var(--accent-pink, #77ACA2);
    background: color-mix(in srgb, var(--accent-pink, #77ACA2) 14%, transparent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-pink, #77ACA2) 45%, transparent);
}

body.events-calendar-day-page .events-calendar-day-page__map-thumb {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

body.events-calendar-day-page .events-calendar-day-page__map-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: inherit;
    pointer-events: none;
    user-select: none;
}

:root[data-theme='dark'] body.events-calendar-day-page .events-calendar-day-page__map-thumb {
    border-color: rgba(255, 255, 255, 0.18);
}

body.events-calendar-day-page .events-calendar-day-page__map-host {
    flex: 1 1 0%;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg, #fff);
}

body.events-calendar-day-page .events-calendar-day-page__map-host[hidden] {
    display: none !important;
}

/* Fullscreen day map (portaled to body) — same idea as venues landscape map.
   Also used by the Bar B "Today's Map" shortcut from All Events (no day shell). */
body.events-calendar-day-page.events-calendar-day-page--map-open,
body.events-page.events-calendar-day-page--map-open {
    overflow: hidden;
}

body.events-calendar-day-page.events-calendar-day-page--map-open .events-calendar-day-page__cards-scroll,
body.events-calendar-day-page.events-calendar-day-page--map-open .events-calendar-day-page__date-nav,
body.events-calendar-day-page.events-calendar-day-page--map-open header.app-header,
body.events-calendar-day-page.events-calendar-day-page--map-open .filter-tabs,
body.events-calendar-day-page.events-calendar-day-page--map-open .controls-bar,
body.events-calendar-day-page.events-calendar-day-page--map-open .bottom-bar {
    display: none !important;
}

body.events-calendar-day-page.events-calendar-day-page--map-open .events-calendar-day-page__map-host:not([hidden]),
body.events-calendar-day-page--map-open #eventsCalDayMapHost:not([hidden]) {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 100001;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* OSM tile grey — never flash page white while Leaflet boots. */
    background: #dcdcdc;
}

/*
 * Hide the All Events list only while Todays Map is open (still paints in the
 * background). Never keep it hidden after leaving the map — that was a white screen.
 */
body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page)
    #eventsContainer,
html.giggly-todays-map-boot
    body.events-page.events-calendar-day-page--map-open
    #eventsContainer {
    visibility: hidden !important;
    pointer-events: none !important;
}

html.giggly-todays-map-boot body.events-page #eventsCalDayMapHost {
    background: #dcdcdc;
}

html.giggly-todays-map-boot body.events-page #eventsCalDayMapHost:not([hidden]) {
    display: flex !important;
}

/*
 * Events Bar B "Today's Map": dock under the filter/subnav row so header + pills
 * stay visible/tappable. Full calendar-day shell keeps fullscreen (inset: 0) above.
 * Second+ Todays Map open (mobile only) uses .events-page--todays-map-fullscreen.
 */
body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
        .events-page--todays-map-fullscreen
    )
    #eventsCalDayMapHost:not([hidden]) {
    inset: auto;
    top: var(
        --giggly-todays-map-top,
        calc(
            var(--giggly-ios-header-h, calc(73px + env(safe-area-inset-top, 0px))) +
                var(--giggly-ios-filter-bar-h, 49px)
        )
    );
    right: 0;
    bottom: 0;
    left: 0;
    /* Must beat the shared map-open rule (z-index: 100001) or Bar D stays under the map. */
    z-index: 90 !important;
}

/* Re-open Todays Map (mobile): fullscreen above headers. Desktop stays docked. */
@media (max-width: 991.98px) {
    body.events-page.events-calendar-day-page--map-open.events-page--todays-map-fullscreen:not(
            .events-calendar-day-page
        )
        #eventsCalDayMapHost:not([hidden]) {
        inset: 0;
        z-index: 100001;
    }

    body.events-page.events-calendar-day-page--map-open.events-page--todays-map-fullscreen:not(
            .events-calendar-day-page
        )
        header.app-header,
    body.events-page.events-calendar-day-page--map-open.events-page--todays-map-fullscreen:not(
            .events-calendar-day-page
        )
        #gigglyFilterTabsMount,
    body.events-page.events-calendar-day-page--map-open.events-page--todays-map-fullscreen:not(
            .events-calendar-day-page
        )
        .filter-tabs,
    body.events-page.events-calendar-day-page--map-open.events-page--todays-map-fullscreen:not(
            .events-calendar-day-page
        )
        .giggly-desktop-subnav-slot {
        display: none !important;
    }

    body.events-page.events-calendar-day-page--map-open.events-page--todays-map-fullscreen:not(
            .events-calendar-day-page
        )
        #eventsCalDayMapHost,
    body.events-page.events-calendar-day-page--map-open.events-page--todays-map-fullscreen:not(
            .events-calendar-day-page
        )
        #eventsCalDayMapPane,
    body.events-page.events-calendar-day-page--map-open.events-page--todays-map-fullscreen:not(
            .events-calendar-day-page
        )
        #eventsCalDayMapPane .leaflet-map-pane,
    body.events-page.events-calendar-day-page--map-open.events-page--todays-map-fullscreen:not(
            .events-calendar-day-page
        )
        #eventsCalDayMapPane .leaflet-marker-pane {
        overflow: visible !important;
    }
}

/* Todays Map: always hide Bar C (search/filters). */
body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page) .controls-bar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/*
 * Hide Bar D only when Todays Map is fullscreen (or calendar-day fullscreen map),
 * and on desktop docked map. Mobile docked / first boot MUST keep Bar D — do not use a
 * blanket map-open hide (that fought the show rule and the body-portaled map covered it).
 */
body.events-page.events-calendar-day-page--map-open.events-page--todays-map-fullscreen .bottom-bar,
body.events-page.events-calendar-day-page--map-open.events-page--todays-map-fullscreen
    [data-giggly-bottom-bar-mount],
body.events-page.events-calendar-day-page--map-open.events-page--todays-map-fullscreen
    [data-giggly-bottom-bar-mount] .bottom-bar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (min-width: 992px) {
    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page) .bottom-bar,
    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page)
        [data-giggly-bottom-bar-mount],
    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page)
        [data-giggly-bottom-bar-mount] .bottom-bar {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/*
 * Mobile docked Todays Map (incl. cold boot): Bar D always above the body-portaled map.
 * Map default z-index is 100001 — docked must force 90 !important or Bar D stays covered.
 */
@media (max-width: 991.98px) {
    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
            .events-page--todays-map-fullscreen
        )
        #eventsCalDayMapHost:not([hidden]),
    html.giggly-todays-map-boot
        body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page)
        #eventsCalDayMapHost:not([hidden]) {
        bottom: 0;
        z-index: 90 !important;
    }

    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
            .events-page--todays-map-fullscreen
        )
        #eventsApp
        > .bottom-bar,
    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
            .events-page--todays-map-fullscreen
        )
        #eventsApp
        > .bottom-bar.bottom-bar--with-icons,
    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
            .events-page--todays-map-fullscreen
        )
        .bottom-bar,
    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
            .events-page--todays-map-fullscreen
        )
        [data-giggly-bottom-bar-mount],
    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
            .events-page--todays-map-fullscreen
        )
        [data-giggly-bottom-bar-mount] .bottom-bar,
    html.giggly-todays-map-boot
        body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page)
        #eventsApp
        > .bottom-bar,
    html.giggly-todays-map-boot
        body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page)
        #eventsApp
        > .bottom-bar.bottom-bar--with-icons,
    html.giggly-todays-map-boot
        body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page)
        .bottom-bar,
    html.giggly-todays-map-boot
        body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page)
        [data-giggly-bottom-bar-mount],
    html.giggly-todays-map-boot
        body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page)
        [data-giggly-bottom-bar-mount] .bottom-bar {
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        /* Beat map host (90 / accidental 100001) and Bar A/B (120). */
        z-index: 100100 !important;
    }

    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
            .events-page--todays-map-fullscreen
        )
        #eventsCalDayMapFooter,
    html.giggly-todays-map-boot
        body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page)
        #eventsCalDayMapFooter {
        bottom: calc(
            10px + var(--bottom-bar-height, 68px) + max(env(safe-area-inset-bottom, 0px), 8px)
        );
    }
}

body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
        .events-page--todays-map-fullscreen
    )
    #gigglyFilterTabsMount,
body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
        .events-page--todays-map-fullscreen
    )
    .filter-tabs,
body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
        .events-page--todays-map-fullscreen
    )
    .giggly-desktop-subnav-slot {
    position: relative;
    z-index: 110;
}

/*
 * Docked Todays Map: keep Bar B mount height so Android cold boot cannot collapse
 * the subnav to 0 before pills mount (map top is measured from .filter-tabs).
 */
body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
        .events-page--todays-map-fullscreen
    )
    #gigglyFilterTabsMount {
    min-height: var(--giggly-ios-filter-bar-h, 49px);
    height: auto;
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
        .events-page--todays-map-fullscreen
    )
    #gigglyFilterTabsMount .filter-tabs,
body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
        .events-page--todays-map-fullscreen
    )
    .filter-tabs {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/*
 * Mobile docked Todays Map: pin Bar A + Bar B fixed above the body-portaled map
 * (z-index 90). In-flow / position:relative cannot win against a body sibling on Android.
 * Mounts keep height as spacers; the visible chrome is the fixed header + .filter-tabs.
 */
@media (max-width: 991.98px) {
    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
            .events-page--todays-map-fullscreen
        )
        #gigglyAppHeaderBar1Mount {
        position: relative;
        z-index: 120;
        min-height: var(--giggly-ios-header-h, calc(73px + env(safe-area-inset-top, 0px)));
    }

    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
            .events-page--todays-map-fullscreen
        )
        #gigglyAppHeaderBar1Mount .app-header,
    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
            .events-page--todays-map-fullscreen
        )
        header.app-header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: var(--giggly-chrome-max-width, 840px);
        margin: 0 auto;
        z-index: 120;
        box-sizing: border-box;
    }

    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
            .events-page--todays-map-fullscreen
        )
        #gigglyFilterTabsMount {
        position: relative;
        z-index: 120;
        display: block !important;
        visibility: visible !important;
        pointer-events: auto !important;
        min-height: var(--giggly-ios-filter-bar-h, 49px);
    }

    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
            .events-page--todays-map-fullscreen
        )
        #gigglyFilterTabsMount .filter-tabs,
    body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
            .events-page--todays-map-fullscreen
        )
        .filter-tabs {
        position: fixed !important;
        top: var(--giggly-ios-header-h, calc(73px + env(safe-area-inset-top, 0px)));
        left: 0;
        right: 0;
        width: 100%;
        max-width: var(--giggly-chrome-max-width, 840px);
        margin: 0 auto;
        z-index: 120;
        box-sizing: border-box;
        display: block !important;
        visibility: visible !important;
        pointer-events: auto !important;
        background: var(--bg, rgba(255, 255, 255, 0.92));
    }

    html.giggly-todays-map-boot
        body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page)
        #gigglyFilterTabsMount,
    html.giggly-todays-map-boot
        body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page)
        .filter-tabs {
        display: block !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

body.events-calendar-day-page .events-calendar-day-page__map-pane,
body.events-calendar-day-page--map-open #eventsCalDayMapPane {
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    z-index: 0;
}

body.events-calendar-day-page .events-calendar-day-page__map-pane .leaflet-container,
body.events-calendar-day-page--map-open #eventsCalDayMapPane .leaflet-container,
body.events-calendar-day-page--map-open #eventsCalDayMapPane {
    width: 100%;
    height: 100%;
    font: inherit;
    background: #dcdcdc;
}

/*
 * Fullscreen calendar-day map: allow marker/flyer spill past the container edge.
 * Docked Today's Map must NOT use this — overflow:visible on the Leaflet container
 * leaves the pane grey (tiles fail to composite after dock resize).
 */
body.events-calendar-day-page.events-calendar-day-page--map-open #eventsCalDayMapHost,
body.events-calendar-day-page.events-calendar-day-page--map-open #eventsCalDayMapPane,
body.events-calendar-day-page.events-calendar-day-page--map-open #eventsCalDayMapPane .leaflet-map-pane,
body.events-calendar-day-page.events-calendar-day-page--map-open #eventsCalDayMapPane .leaflet-marker-pane {
    overflow: visible !important;
}

body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
        .events-page--todays-map-fullscreen
    )
    #eventsCalDayMapHost,
body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
        .events-page--todays-map-fullscreen
    )
    #eventsCalDayMapPane {
    overflow: hidden !important;
}

body.events-page.events-calendar-day-page--map-open:not(.events-calendar-day-page):not(
        .events-page--todays-map-fullscreen
    )
    #eventsCalDayMapPane .leaflet-marker-pane {
    overflow: visible !important;
}

body.events-calendar-day-page .events-calendar-day-page__map-footer,
body.events-calendar-day-page--map-open #eventsCalDayMapFooter {
    position: absolute;
    z-index: 1000;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: min(92vw, 360px);
    pointer-events: none;
}

body.events-calendar-day-page .events-calendar-day-page__map-footer[hidden],
body.events-calendar-day-page--map-open #eventsCalDayMapFooter[hidden] {
    display: none !important;
}

/*
 * Today's Map splash — black type over a soft wash.
 * Never use filter / backdrop-filter on Leaflet (greys tiles). Contrast = rgba
 * scrim + lower flyer opacity only; tiles keep painting underneath.
 */
body.events-calendar-day-page--map-open #eventsCalDayMapTagline {
    position: absolute;
    inset: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Sit in the upper third so the southern map / footer stay clear. */
    justify-content: flex-start;
    padding-top: clamp(12%, 16vh, 22%);
    gap: 0.06em;
    margin: 0;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    padding-bottom: 0.75rem;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
    pointer-events: none;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-family: var(--font-logo, 'Londrina Solid', 'League Spartan', sans-serif);
    font-weight: 400;
    /* Longest line ~ fills the map width on phone + desktop. */
    font-size: clamp(3.1rem, 13vw, 8.25rem);
    line-height: 1.02;
    letter-spacing: 0.01em;
    text-shadow:
        0 0 2px rgba(255, 255, 255, 0.95),
        0 1px 0 rgba(255, 255, 255, 0.9);
    background: transparent;
    opacity: 0;
    transition: opacity 1.8s ease;
}

/* Desktop: lift tagline ~one line — phone padding reads low on wide viewports. */
@media (min-width: 992px) {
    body.events-calendar-day-page--map-open #eventsCalDayMapTagline {
        padding-top: max(0.5rem, calc(clamp(12%, 16vh, 22%) - 1.05em));
    }
}

/*
 * Dim tiles via opacity on the tile pane only (not marker pane, not a cover
 * rect — cover layers were hiding flyers until the banner faded).
 */
body.events-calendar-day-page--map-open
    #eventsCalDayMapHost.events-calendar-day-page__map-host--tagline
    #eventsCalDayMapPane
    .leaflet-tile-pane {
    opacity: 0.62;
    transition: opacity 1.8s ease;
}

body.events-calendar-day-page--map-open
    #eventsCalDayMapHost.events-calendar-day-page__map-host--tagline.is-tagline-fading
    #eventsCalDayMapPane
    .leaflet-tile-pane,
body.events-calendar-day-page--map-open
    #eventsCalDayMapHost:not(.events-calendar-day-page__map-host--tagline)
    #eventsCalDayMapPane
    .leaflet-tile-pane {
    opacity: 1;
    transition: opacity 1.8s ease;
}

/*
 * Slightly translucent flyers under the banner — icon nodes only, never the
 * whole .leaflet-marker-pane (WebKit greys tiles if that pane gets opacity).
 */
body.events-calendar-day-page--map-open
    #eventsCalDayMapHost.events-calendar-day-page__map-host--tagline
    .events-cal-day-flyer-marker-wrap,
body.events-calendar-day-page--map-open
    #eventsCalDayMapHost.events-calendar-day-page__map-host--tagline
    .events-cal-day-flyer-marker {
    opacity: 0.62;
    transition: opacity 1.8s ease;
}

body.events-calendar-day-page--map-open
    #eventsCalDayMapHost.events-calendar-day-page__map-host--tagline.is-tagline-fading
    .events-cal-day-flyer-marker-wrap,
body.events-calendar-day-page--map-open
    #eventsCalDayMapHost.events-calendar-day-page__map-host--tagline.is-tagline-fading
    .events-cal-day-flyer-marker {
    opacity: 1;
}

body.events-calendar-day-page--map-open
    #eventsCalDayMapHost:not(.events-calendar-day-page__map-host--tagline)
    .events-cal-day-flyer-marker-wrap,
body.events-calendar-day-page--map-open
    #eventsCalDayMapHost:not(.events-calendar-day-page__map-host--tagline)
    .events-cal-day-flyer-marker {
    opacity: 1;
    transition: none;
}

body.events-calendar-day-page--map-open #eventsCalDayMapTagline[hidden] {
    display: none !important;
}

body.events-calendar-day-page--map-open #eventsCalDayMapTagline.is-visible,
body.events-calendar-day-page--map-open #eventsCalDayMapTagline.is-fading {
    display: flex !important;
}

body.events-calendar-day-page--map-open #eventsCalDayMapTagline.is-visible {
    opacity: 1;
}

body.events-calendar-day-page--map-open #eventsCalDayMapTagline.is-fading {
    opacity: 0;
}

body.events-calendar-day-page--map-open #eventsCalDayMapTagline .events-calendar-day-page__map-tagline-line {
    display: block;
    width: 100%;
    max-width: 100%;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

body.events-calendar-day-page .events-calendar-day-page__map-date-flash,
body.events-calendar-day-page--map-open .events-calendar-day-page__map-date-flash {
    margin: 0;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

body.events-calendar-day-page .events-calendar-day-page__map-date-flash.is-visible,
body.events-calendar-day-page--map-open .events-calendar-day-page__map-date-flash.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.events-calendar-day-page .events-calendar-day-page__map-date-flash.is-fading,
body.events-calendar-day-page--map-open .events-calendar-day-page__map-date-flash.is-fading {
    opacity: 0;
    transform: translateY(-2px);
}

:root[data-theme='dark'] body.events-calendar-day-page .events-calendar-day-page__map-date-flash,
:root[data-theme='dark'] body.events-calendar-day-page--map-open .events-calendar-day-page__map-date-flash {
    background: rgba(0, 0, 0, 0.72);
}

body.events-calendar-day-page .events-calendar-day-page__map-footer-row,
body.events-calendar-day-page--map-open .events-calendar-day-page__map-footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: auto;
}

body.events-calendar-day-page .events-calendar-day-page__map-nav,
body.events-calendar-day-page--map-open .events-calendar-day-page__map-nav {
    appearance: none;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    background: var(--bg, #fff);
    color: var(--text);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.events-calendar-day-page .events-calendar-day-page__map-nav:hover,
body.events-calendar-day-page .events-calendar-day-page__map-nav:focus-visible,
body.events-calendar-day-page--map-open .events-calendar-day-page__map-nav:hover,
body.events-calendar-day-page--map-open .events-calendar-day-page__map-nav:focus-visible {
    background: color-mix(in srgb, var(--text) 6%, var(--bg, #fff));
    outline: none;
}

body.events-calendar-day-page .events-calendar-day-page__map-nav:disabled,
body.events-calendar-day-page .events-calendar-day-page__map-nav.events-calendar-day-page__map-nav--disabled,
body.events-calendar-day-page--map-open .events-calendar-day-page__map-nav:disabled,
body.events-calendar-day-page--map-open
    .events-calendar-day-page__map-nav.events-calendar-day-page__map-nav--disabled {
    color: #9ca3af;
    background: #f3f4f6;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.72;
    pointer-events: none;
}

:root[data-theme='dark'] body.events-calendar-day-page .events-calendar-day-page__map-nav:disabled,
:root[data-theme='dark']
    body.events-calendar-day-page
    .events-calendar-day-page__map-nav.events-calendar-day-page__map-nav--disabled,
:root[data-theme='dark'] body.events-calendar-day-page--map-open .events-calendar-day-page__map-nav:disabled,
:root[data-theme='dark']
    body.events-calendar-day-page--map-open
    .events-calendar-day-page__map-nav.events-calendar-day-page__map-nav--disabled {
    color: #8b8499;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.65;
}

body.events-calendar-day-page .events-calendar-day-page__map-close,
body.events-calendar-day-page--map-open .events-calendar-day-page__map-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 128px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: var(--bg, #fff);
    color: var(--text);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.events-calendar-day-page .events-calendar-day-page__map-close svg,
body.events-calendar-day-page--map-open .events-calendar-day-page__map-close svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

:root[data-theme='dark'] body.events-calendar-day-page .events-calendar-day-page__map-close,
:root[data-theme='dark'] body.events-calendar-day-page .events-calendar-day-page__map-nav,
:root[data-theme='dark'] body.events-calendar-day-page--map-open .events-calendar-day-page__map-close,
:root[data-theme='dark'] body.events-calendar-day-page--map-open .events-calendar-day-page__map-nav {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

body.events-calendar-day-page .events-calendar-day-page__map-empty,
body.events-calendar-day-page--map-open .events-calendar-day-page__map-empty {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    margin: 0;
    padding: 12px 16px;
    max-width: min(88%, 320px);
    text-align: center;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    pointer-events: none;
}

.events-cal-day-flyer-marker-wrap.leaflet-div-icon {
    /* Leaflet positions via absolute + iconAnchor — never override to relative. */
    position: absolute !important;
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
    margin: 0 !important;
}

/* Keep the whole pin hit-target clickable (stacked extras use pointer-events: none). */
.events-cal-day-flyer-marker-wrap,
.events-cal-day-flyer-marker,
.events-cal-day-flyer-marker__stack,
.events-cal-day-flyer-marker__flyer--front {
    pointer-events: auto !important;
    cursor: pointer;
}

.events-cal-day-flyer-marker {
    position: relative;
    width: 72px;
    height: 108px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* drop-shadow + Leaflet zoom transforms made flyers jump each zoom step. */
    filter: none;
}

.events-cal-day-flyer-marker--stacked {
    width: 92px;
    height: 128px;
    padding-top: 16px;
    padding-left: 14px;
    box-sizing: border-box;
}

.events-cal-day-flyer-marker__stack {
    position: relative;
    width: 52px;
    height: 70px;
    flex: 0 0 auto;
}

.events-cal-day-flyer-marker__flyer {
    position: relative;
    width: 52px;
    height: 70px;
    aspect-ratio: 4 / 5;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
    border: 2px solid #fff;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.events-cal-day-flyer-marker__flyer--stack {
    position: absolute;
    left: 0;
    top: 0;
    z-index: calc(8 - var(--stack-i, 1));
    transform: translate(
            calc(var(--stack-i, 1) * -7px),
            calc(var(--stack-i, 1) * -9px)
        )
        rotate(calc(var(--stack-i, 1) * -5deg));
    opacity: 0.92;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.events-cal-day-flyer-marker__flyer--front {
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.events-cal-day-flyer-marker__flyer-bg,
.events-cal-day-flyer-marker__flyer-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/*
 * No CSS blur/transform on map flyer thumbs — those force a GPU recomposite on
 * every Leaflet zoom frame and read as a flash. Cover fills the pin cleanly.
 */
.events-cal-day-flyer-marker__flyer-bg {
    display: none !important;
}

.events-cal-day-flyer-marker__flyer-img {
    object-fit: cover;
    z-index: 1;
}

.events-cal-day-flyer-marker__flyer--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--brand-teal-deep, #468189);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
}

.events-cal-day-flyer-marker__count {
    position: absolute;
    top: -4px;
    right: 4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #77ACA2;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.events-cal-day-flyer-marker__pin {
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #77ACA2;
    border: 2px solid #fff;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.events-cal-day-flyer-marker__lbl {
    margin-top: 4px;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    color: #0f172a;
    text-align: center;
    text-shadow:
        0 0 3px #fff,
        0 0 6px #fff,
        0 1px 1px rgba(255, 255, 255, 0.95);
}

:root[data-theme='dark'] .events-cal-day-flyer-marker__lbl {
    color: #f8fafc;
    text-shadow:
        0 0 4px #000,
        0 0 8px #000,
        0 1px 2px rgba(0, 0, 0, 0.85);
}

.leaflet-popup.events-cal-day-map-card-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg, #fff);
    color: var(--text, #212529);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.leaflet-popup.events-cal-day-map-card-popup .leaflet-popup-content {
    margin: 0;
    min-width: 220px;
    max-width: 280px;
    width: 260px;
}

.leaflet-popup.events-cal-day-map-card-popup .leaflet-popup-tip {
    background: var(--bg, #fff);
}

.events-cal-day-map-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
}

.events-cal-day-map-card__close {
    appearance: none;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 20;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #9ca3af;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    pointer-events: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
}

.events-cal-day-map-card__close:hover,
.events-cal-day-map-card__close:focus-visible {
    background: #6b7280;
    outline: none;
}

.events-cal-day-map-card__flyer {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 168px;
    overflow: hidden;
    background: #e5e7eb;
}

.events-cal-day-map-card__flyer-bg,
.events-cal-day-map-card__flyer-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.events-cal-day-map-card__flyer-bg {
    object-fit: cover;
    filter: blur(14px) saturate(1.06);
    transform: scale(1.18);
    opacity: 0.95;
}

.events-cal-day-map-card__flyer-img {
    object-fit: contain;
    z-index: 1;
}

.events-cal-day-map-card__flyer--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: var(--brand-teal-deep, #468189);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
}

.events-cal-day-map-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
    box-sizing: border-box;
}

.events-cal-day-map-card__title {
    margin: 0;
    padding-right: 28px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text, #212529);
}

/* Override Leaflet `.leaflet-popup-content p { margin: 18px 0 }` which blew out
   the date → venue gap. */
.leaflet-popup.events-cal-day-map-card-popup .leaflet-popup-content p,
.events-cal-day-map-card__when,
.events-cal-day-map-card__venue {
    margin: 0;
    padding: 0;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-secondary, #6b7280);
}

.events-cal-day-map-card__pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.events-cal-day-map-card__pager-btn {
    appearance: none;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.events-cal-day-map-card__pager-btn:hover,
.events-cal-day-map-card__pager-btn:focus-visible {
    background: #d1d5db;
    outline: none;
}

.events-cal-day-map-card__pager-label {
    min-width: 3.5em;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary, #6b7280);
    font-variant-numeric: tabular-nums;
}

.events-cal-day-map-card__details {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: #9ca3af;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.events-cal-day-map-card__details:hover,
.events-cal-day-map-card__details:focus-visible {
    background: #6b7280;
    color: #fff;
    outline: none;
}

:root[data-theme='dark'] .events-cal-day-map-card__pager-btn {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
    color: #e5e7eb;
}

body.events-calendar-day-page .events-calendar-day-page__date-nav {
    margin: 0 0 10px;
    padding: 0;
    border-top: none;
}

body.events-calendar-day-page .events-calendar-day-page__filter-tabs {
    margin-top: 0;
    margin-bottom: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
}

:root[data-theme='dark'] body.events-calendar-day-page .events-calendar-day-page__filter-tabs {
    border-color: rgba(255, 255, 255, 0.12);
}

body.events-calendar-day-page .events-calendar-day-page__filter-tabs .feed-month-cal-modal__filter-tab + .feed-month-cal-modal__filter-tab {
    border-left: 1px solid rgba(0, 0, 0, 0.12);
}

:root[data-theme='dark'] body.events-calendar-day-page .events-calendar-day-page__filter-tabs .feed-month-cal-modal__filter-tab + .feed-month-cal-modal__filter-tab {
    border-left-color: rgba(255, 255, 255, 0.12);
}

body.events-calendar-day-page .events-calendar-day-page__date-nav .feed-month-cal-modal__header-main {
    width: 100%;
}

body.events-calendar-day-page .events-calendar-day-page__date-nav-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

body.events-calendar-day-page .events-calendar-day-page__date-nav-cluster {
    flex: 1 1 auto;
    min-width: 0;
}

body.events-calendar-day-page .events-calendar-day-page__date-nav .feed-month-cal-modal__title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-height: 48px;
}

body.events-calendar-day-page .events-calendar-day-page__date-nav .feed-month-cal-modal__title-row .feed-month-cal-modal__title {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    line-height: 1.15;
    padding: 0 8px;
    box-sizing: border-box;
}

body.events-calendar-day-page .events-calendar-day-page__date-nav .feed-month-cal-modal__nav-arrow:first-of-type {
    justify-self: auto;
    margin-left: 0;
}

body.events-calendar-day-page .events-calendar-day-page__date-nav .feed-month-cal-modal__nav-arrow:last-of-type {
    justify-self: auto;
    margin-right: 0;
}

body.events-calendar-day-page .events-calendar-day-page__cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0 16px;
}

body.events-calendar-day-page .events-calendar-day-page__cards .feed-month-cal-day__empty {
    margin: 12px 0 0;
    color: var(--text-secondary);
    text-align: center;
}

.filter-tab__cal-icon {
    flex-shrink: 0;
    display: block;
    width: 15px;
    height: 15px;
}

.filter-tab__cal-label {
    flex: 0 0 auto;
}

.feed-month-cal__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.feed-month-cal__wd {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.feed-month-cal__cells {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--feed-cal-cell-gap, 6px);
    grid-auto-rows: var(--feed-cal-row-h, 72px);
    /* Always reserve 6 rows so shorter months don’t shrink the sheet */
    min-height: var(--feed-cal-grid-min-h);
    align-content: start;
}

.feed-month-cal__cell {
    position: relative;
    min-height: 0;
    min-width: 0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 5px 4px 6px;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid transparent;
    height: 100%;
    align-self: stretch;
}

button.feed-month-cal__cell {
    font: inherit;
    color: inherit;
    text-align: center;
    cursor: pointer;
    width: 100%;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

button.feed-month-cal__cell:focus {
    outline: none;
}

button.feed-month-cal__cell:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 1px;
}

.feed-month-cal__cell--pad {
    visibility: hidden;
    pointer-events: none;
    min-height: 0;
    padding: 0;
}

.feed-month-cal__cell--has-event {
    background: rgba(120, 120, 128, 0.16);
    background-clip: padding-box;
    border-color: var(--border);
    /* Contain fill + ★ row inside rounded rect; row height is sized to fit */
    overflow: hidden;
}

:root[data-theme='dark'] .feed-month-cal__cell--has-event {
    background: rgba(255, 255, 255, 0.09);
}

.feed-month-cal__daynum {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

/* Event count + mini calendar icon, then ★ + like total — two rows always for days with events */
.feed-month-cal__cell-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding-top: 2px;
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
}

.feed-month-cal__meta-row--events,
.feed-month-cal__meta-row--likes {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
}

/* Match rendered event line (10px icon + 0.6rem num) */
.feed-month-cal__meta-row--events {
    min-height: 14px;
}

/* Match ★ + likes num line */
.feed-month-cal__meta-row--likes {
    min-height: 12px;
}

.feed-month-cal__meta-likes-placeholder {
    display: block;
    width: 100%;
    min-height: 12px;
    visibility: hidden;
    pointer-events: none;
}

.feed-month-cal__events-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1;
    color: var(--text-secondary);
}

.feed-month-cal__events-num {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.feed-month-cal__cal-icon {
    display: block;
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    opacity: 0.9;
}

.feed-month-cal__likes-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.feed-month-cal__likes-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1;
}

.feed-month-cal__likes-glyph {
    font-size: 0.58rem;
    line-height: 1;
    color: #b45309;
}

.feed-month-cal__likes-num {
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    color: #b45309;
}

:root[data-theme='dark'] .feed-month-cal__likes-glyph,
:root[data-theme='dark'] .feed-month-cal__likes-num {
    color: #fbbf24;
}

.feed-month-cal-day {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Scroll column: toolbar + cards (toolbar is sticky inside this scroller). */
.feed-month-cal-day__list {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.feed-month-cal-day__toolbar {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 4px 10px;
    position: sticky;
    top: 0;
    z-index: 12;
    margin: 0;
    background: var(--bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

:root[data-theme='dark'] .feed-month-cal-day__toolbar {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Match .view-event-page__share-icon / feed card share: grey glyph, no pill background */
.feed-month-cal-day__share-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.feed-month-cal-day__share-btn:hover {
    color: var(--text-secondary);
    background: rgba(120, 120, 128, 0.1);
}

.feed-month-cal-day__share-btn:active {
    opacity: 0.88;
}

.feed-month-cal-day__share-btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

:root[data-theme='dark'] .feed-month-cal-day__share-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
}

:root[data-theme='dark'] .feed-month-cal-day__share-btn:hover {
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.08);
}

.feed-month-cal-day__share-icon {
    display: block;
}

.feed-month-cal-day__cards {
    flex: 1 1 auto;
    min-height: min-content;
    padding: 4px 0 4px;
}

.feed-month-cal-day__list .event-card {
    margin-bottom: 12px;
}

.feed-month-cal-day__list .event-card:last-child {
    margin-bottom: 4px;
}

.feed-month-cal-day__empty {
    margin: 12px 0 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-align: center;
}

.event-card {
    background: #f5f7fa;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme="dark"] .event-card {
    background: rgba(255, 255, 255, 0.05);
}

/* Hover effect removed - translateY movement was too distracting */
/* .event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
} */

/* —— V2 event cards (modal v2 stored description) —— */
.event-card.event-card--v2 {
    position: relative;
    overflow: visible;
    background: #f5f7fa;
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
    border: 1px solid #c5cad3;
    --event-card-v2-channel-icon-inset: 10px;
}

:root[data-theme="dark"] .event-card.event-card--v2 {
    border-color: #5c4a78;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Flyer above details: no outer padding, no seam; same subtle border as flyer-less v2 cards */
.event-card.event-card--v2:has(.event-card-v2__flyer) {
    padding: 0;
    overflow: hidden;
}

/* Admin review strip uses negative vertical margin; overflow:hidden on flyer cards clips it and taps never reach Dismiss. */
.event-card.event-card--v2:has(.event-card-v2__flyer):has(.event-card-v2__admin-review-banner) {
    overflow: visible;
}

.event-card.event-card--v2:has(.event-card-v2__flyer) .event-card-v2__details {
    padding: 16px;
}

/* Feed list cards only (/ index). View event page uses .view-event-page__flyer-hero. */
.event-card-v2__flyer {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    background: rgba(15, 23, 42, 0.06);
}

:root[data-theme="dark"] .event-card-v2__flyer {
    background: rgba(0, 0, 0, 0.25);
}

/*
 * Base64 / has_flyer rows: match list img aspect (600×800 hint) so swapping pending → <img> does not
 * resize the card (a major source of “double flash” on iOS when the feed first paints).
 */
.event-card-v2__flyer[data-flyer-pending='1'] {
    aspect-ratio: 600 / 800;
    width: 100%;
    min-height: 0;
}

/* Full card width; height follows aspect ratio (entire image visible, no letterboxing). */
.event-card-v2__flyer-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: unset;
    object-position: center top;
    display: block;
    /* Match page bg so decoded flyers do not flash grey over an already-visible image. */
    background-color: var(--bg);
}

/* Draft event flyer: dim image and overlay "DRAFT EVENT" across the centre */
.event-card-v2__flyer--draft .event-card-v2__flyer-img {
    opacity: 0.3;
}

.event-card-v2__flyer-draft-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.event-card-v2__flyer-draft-ribbon {
    display: block;
    padding: 10px 16px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    /* Same maroon as .event-card-v2__draft-no-flyer-badge ("Draft Event") */
    background: #800000;
    border-radius: 8px;
    box-shadow: 0 4px 18px color-mix(in srgb, #000 30%, transparent);
    text-align: center;
}

/* Draft badge when no flyer has been uploaded yet — shows in place of the flyer column */
.event-card-v2__flyer--empty.event-card-v2__flyer--draft {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    background: transparent;
    line-height: normal;
}

.event-card-v2__flyer--title-paint,
.event-card-v2__grid-flyer--title-paint,
.giggly-past-event-card__flyer--title-paint {
    /* Same portrait flyer footprint as a real 4×5 event flyer (brand placeholder). */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 0;
    padding: 22px 16px;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    background: var(--brand-teal-deep, #468189);
}

:root[data-theme='dark'] .event-card-v2__flyer--title-paint,
:root[data-theme='dark'] .event-card-v2__grid-flyer--title-paint,
:root[data-theme='dark'] .giggly-past-event-card__flyer--title-paint {
    color: #ffffff;
    background: var(--brand-teal-deep, #468189);
}

.event-card-v2__no-flyer-title,
.giggly-past-event-card__flyer-title {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    max-width: 92%;
    text-shadow: none;
}

.event-card-v2__draft-no-flyer-badge {
    display: inline-block;
    background: #800000;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.4;
}

.event-card-v2__flyer-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-blue);
    line-height: 1.35;
    text-align: center;
    box-sizing: border-box;
}

.event-card-v2__flyer-pdf:hover {
    text-decoration: underline;
}

/* Top row: set times (optional) + star count + star — flush right */
.event-card-v2__header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
    margin: -4px 0 10px 0;
    min-height: 32px;
}

.event-card-v2__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 0;
}

.event-card-v2__footer-pills .event-card-v2__pills {
    margin-bottom: 0;
}

.event-card-v2__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 32px;
    height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
}

.event-card-v2__pill--type {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    opacity: 0.5;
}

:root[data-theme="dark"] .event-card-v2__pill--type {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.event-card-v2__pill--category {
    opacity: 1;
    font-family: var(--font-sans, 'League Spartan', sans-serif);
    font-weight: 600;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border: none;
    box-shadow: none;
}

/* Master list genres: always muted grey (never default text black on cards) */
.event-card-v2__pill--genre {
    background: #fff;
    color: #94a3b8 !important;
    border: 1px solid #cbd5e1 !important;
    opacity: 1;
    font-weight: 400;
    -webkit-text-fill-color: #94a3b8;
}

:root[data-theme='dark'] .event-card-v2__pill--genre {
    background: var(--bg);
    color: #a1a1aa !important;
    border-color: #71717a !important;
    -webkit-text-fill-color: #a1a1aa;
}

/* Match legacy event cards (.event-title / .event-artists); tight gap between title and artists */
.event-title.event-card-v2__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: var(--text);
}

.event-card-v2__artists {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text);
    line-height: 1.4;
}

/* Hide set times when event status does not allow editing (Save The Date, Cancelled, etc.) */
.add-event-section--status-hidden {
    display: none !important;
}

.event-card-v2__time {
    margin-top: 4px;
    margin-bottom: 0;
}

.event-card-v2__promoter-line {
    margin-top: 6px;
    margin-bottom: 0;
    display: block;
}

/* Align venue/promoter avatar circles with the headline artist icon (one inset only). */
.event-card--v2 .event-card-v2__details > .event-card-v2__venue-promoter-pair,
.event-card--v2 .event-card-v2__details > .event-card-v2__promoter-line {
    padding-left: var(--event-card-v2-channel-icon-inset);
    box-sizing: border-box;
}

.event-card--v2 .event-card-v2__venue-promoter-pair > .event-card-v2__promoter-line {
    padding-left: 0;
}

.event-card-v2__time + .event-card-v2__promoter-line {
    margin-top: 8px;
}

.event-card-v2__location + .event-card-v2__promoter-line {
    margin-top: 8px;
}

/* Legacy fallback (no avatars): kicker + name stay one cluster; avoid orphan wraps. */
.event-card-v2__promoter-line__inner:not(.event-card-v2__promoter-line__inner--avatars) {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    max-width: 100%;
    min-width: 0;
    color: var(--text);
}

/* Single promoter: avatar + kicker + name in a 2-column grid.
   Exclude --various (multi-venue grid compact row): that layout is flex + icon stack. */
.event-card-v2__promoter-line__inner--avatars:not(.event-card-v2__promoter-line__inner--multi):not(
        .event-card-v2__promoter-line__inner--various
    ) {
    display: grid;
    column-gap: 12px;
    row-gap: 0;
    align-items: center;
    max-width: 100%;
    color: var(--text);
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
}

.event-card-v2__promoter-line__inner--avatars:not(.event-card-v2__promoter-line__inner--multi):not(
        .event-card-v2__promoter-line__inner--various
    )
    .event-card-v2__promoter-avatar-wrap--primary {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
}

.event-card-v2__promoter-line__inner--avatars:not(.event-card-v2__promoter-line__inner--multi):not(
        .event-card-v2__promoter-line__inner--various
    )
    .event-card-v2__promoter-kicker {
    grid-column: 2;
    grid-row: 1;
}

.event-card-v2__promoter-line__inner--avatars:not(.event-card-v2__promoter-line__inner--multi):not(
        .event-card-v2__promoter-line__inner--various
    )
    .event-card-v2__promoter-name--primary {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
}

/* Multi-venue grid compact line: icon stack + "Various venues" (not the single-avatar grid). */
.event-card-v2__promoter-line__inner--various {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    min-width: 0;
    color: var(--text);
}

.event-card-v2__promoter-avatar-stack {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
}

.event-card-v2__promoter-avatar-stack .event-card-v2__promoter-avatar-wrap--grid-stack +
    .event-card-v2__promoter-avatar-wrap--grid-stack {
    margin-left: -10px;
}

.event-card-v2__promoter-avatar-stack .event-card-v2__promoter-avatar-wrap {
    border: 1.5px solid var(--bg, #ffffff);
    position: relative;
}

.event-card-v2__promoter-avatar-stack .event-card-v2__promoter-avatar-wrap--primary {
    z-index: 4;
}

.event-card-v2__promoter-avatar-stack .event-card-v2__promoter-avatar-wrap--secondary:nth-child(2) {
    z-index: 3;
}

.event-card-v2__promoter-avatar-stack .event-card-v2__promoter-avatar-wrap--secondary:nth-child(3) {
    z-index: 2;
}

.event-card-v2__promoter-avatar-stack .event-card-v2__promoter-avatar-wrap--secondary:nth-child(4) {
    z-index: 1;
}

.event-card-v2__promoter-line__inner--various .event-card-v2__promoter-text-col {
    flex: 1 1 auto;
    min-width: 0;
}

/* Two promoters: side-by-side when there is room, else wrap — each slot stays one block (avatar + text). */
.event-card-v2__promoter-line__inner--avatars.event-card-v2__promoter-line__inner--multi {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
    gap: 10px 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: var(--text);
}

/* Multi-venue cards: one venue per row (icon + name), not a stacked "Various venues" cluster. */
.event-card-v2__promoter-line--venue .event-card-v2__promoter-line__inner--multi {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
}

.event-card-v2__promoter-line--venue .event-card-v2__promoter-slot {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
}

.event-card-v2__promoter-line--venue .event-card-v2__promoter-slot--secondary {
    grid-template-rows: auto;
}

.event-card-v2__promoter-line--venue .event-card-v2__promoter-slot--secondary::before {
    content: none;
    display: none;
}

.event-card-v2__promoter-line--venue
    .event-card-v2__promoter-slot--secondary
    > .event-card-v2__promoter-avatar-wrap--secondary {
    grid-row: 1;
}

.event-card-v2__promoter-line--venue
    .event-card-v2__promoter-slot--secondary
    > .event-card-v2__promoter-name--secondary {
    grid-row: 1;
    align-self: center;
}

.event-card-v2__promoter-slot {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.event-card-v2__promoter-slot--primary {
    grid-template-rows: auto auto;
}

.event-card-v2__promoter-slot--primary > .event-card-v2__promoter-avatar-wrap--primary {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
}

.event-card-v2__promoter-slot--primary > .event-card-v2__promoter-kicker {
    grid-column: 2;
    grid-row: 1;
}

.event-card-v2__promoter-slot--primary > .event-card-v2__promoter-name--primary {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
}

/* Match primary slot rows (kicker + name) so secondary icons/names line up with the first. */
.event-card-v2__promoter-slot--secondary {
    grid-template-rows: auto auto;
}

.event-card-v2__promoter-slot--secondary::before {
    content: '\00a0';
    grid-column: 2;
    grid-row: 1;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    white-space: nowrap;
}

.event-card-v2__promoter-slot--secondary > .event-card-v2__promoter-avatar-wrap--secondary {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
}

.event-card-v2__promoter-slot--secondary > .event-card-v2__promoter-name--secondary {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    align-self: center;
}

.event-card-v2__promoter-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 0;
    flex: 0 1 auto;
}

/* Second promoter (legacy wrapper — unused by GigglyEventPromoterUi grid markup). */

.event-card-v2__promoter-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
}

.event-card-v2__promoter-avatar-wrap--secondary {
    flex-shrink: 0;
}

/* Same tone as .event-description.event-card-v2__description (feed body). */
.event-card-v2__promoter-kicker {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Same size/weight as date/time row on v2 cards (.event-time.event-card-v2__time). */
.event-card-v2__promoter-name {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 400;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.event-card-v2__promoter-avatar-wrap {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-teal-deep, #468189);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.event-card-v2__promoter-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.event-card-v2__promoter-avatar-initials {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    line-height: 1;
    background: var(--brand-teal-deep, #468189);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Title-only v2 cards: same gap above datetime as when an artists row sits above it
   (artists use margin-bottom 8px; collapsed with time margin-top gives 8px). */
.event-title.event-card-v2__title + .event-time.event-card-v2__time {
    margin-top: 8px;
}

/* Pin + link share a row; pull pin left so it lines up with plain date/time text above */
.event-card--v2 .event-card-v2__location {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.2em;
    margin-top: 4px;
}

.event-card--v2 .event-card-v2__location-pin {
    flex-shrink: 0;
    line-height: inherit;
    margin-left: -0.28em;
    margin-top: 0.02em;
}

/* No flex-grow — flex:1 made the <a> fill the row so taps hit empty space right of the text. */
.event-card--v2 .event-card-v2__location .location-link {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
}

.event-card-v2__description {
    margin-top: 10px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    word-break: break-word;
}

/* Headline artist on flyer event cards (replaces description body). */
.event-card-v2__headline-artist {
    margin-top: 6px;
    min-width: 0;
}

.event-card-v2__promoter-line + .event-card-v2__headline-artist,
.event-card-v2__venue-promoter-pair + .event-card-v2__headline-artist {
    margin-top: 6px;
}

.event-card-v2__headline-artist-panel {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 0;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    border-radius: 10px;
    padding: 8px var(--event-card-v2-channel-icon-inset);
    box-sizing: border-box;
    min-width: 0;
}

.event-card-v2__headline-artist-panel--multi {
    display: block;
    position: relative;
    overflow: visible;
}

.event-card-v2__headline-artist-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

.event-card-v2__headline-artist-panel-inner {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 0;
    min-width: 0;
    width: 100%;
}

.event-card-v2__headline-artist-slide {
    transition: transform 0.28s ease, opacity 0.28s ease;
    will-change: transform;
}

.event-card-v2__headline-artist-slide--current {
    position: relative;
    z-index: 1;
}

.event-card-v2__headline-artist-slide--enter-right,
.event-card-v2__headline-artist-slide--enter-left {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.event-card-v2__headline-artist-slide--enter-right {
    transform: translateX(100%);
    opacity: 0.35;
}

.event-card-v2__headline-artist-slide--enter-left {
    transform: translateX(-100%);
    opacity: 0.35;
}

.event-card-v2__headline-artist-slide--enter-right.event-card-v2__headline-artist-slide--active,
.event-card-v2__headline-artist-slide--enter-left.event-card-v2__headline-artist-slide--active {
    transform: translateX(0);
    opacity: 1;
}

.event-card-v2__headline-artist-slide--exit-left {
    transform: translateX(-100%);
    opacity: 0.35;
}

.event-card-v2__headline-artist-slide--exit-right {
    transform: translateX(100%);
    opacity: 0.35;
}

@media (prefers-reduced-motion: reduce) {
    .event-card-v2__headline-artist-slide {
        transition: none;
    }
}

.event-card-v2__headline-artist:has(.event-card-v2__headline-artist-panel--multi) {
    overflow: visible;
}

/* Let border chevrons sit outside the panel without clipping on flyer/grid cards. */
.event-card.event-card--v2:has(.event-card-v2__headline-artist-panel--multi) {
    overflow: visible;
}

.event-card-v2__headline-artist-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--text) 28%, transparent);
    background: var(--bg);
    color: color-mix(in srgb, var(--text) 72%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] .event-card-v2__headline-artist-nav {
    background: #1a0f2e;
    border-color: color-mix(in srgb, var(--text) 34%, transparent);
    color: color-mix(in srgb, var(--text) 78%, transparent);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.event-card-v2__headline-artist-nav:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--text) 42%, transparent);
}

.event-card-v2__headline-artist-nav:active {
    opacity: 0.86;
}

.event-card-v2__headline-artist-nav--prev {
    left: -15px;
    transform: translateY(-50%);
}

.event-card-v2__headline-artist-nav--next {
    right: -15px;
    left: auto;
    transform: translateY(-50%);
}

.event-card-v2__headline-artist-nav svg {
    display: block;
    flex-shrink: 0;
}

:root[data-theme='dark'] .event-card-v2__headline-artist-panel {
    border-color: color-mix(in srgb, var(--text) 20%, transparent);
}

/* Same 28px avatar + kicker/name grid as venue and promoter rows; Listen in column 3. */
.event-card-v2__headline-artist-top {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 0;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    color: var(--text);
}

.event-card-v2__headline-artist-top .event-card-v2__headline-artist-avatar-wrap {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
}

.event-card-v2__headline-artist-top .event-card-v2__headline-artist-kicker {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.event-card-v2__headline-artist-top .event-card-v2__headline-artist-name-row {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    overflow: hidden;
}

.event-card-v2__headline-artist-top .event-card-v2__headline-artist-name-row .event-card-v2__headline-artist-name {
    grid-column: unset;
    grid-row: unset;
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-card-v2__headline-artist-top .event-card-v2__headline-artist-name-row .giggly-artist-verified-badge {
    flex: 0 0 auto;
    margin-left: 0.25em;
}

/* Artist channel links on event cards — same blue, no underline, as venue names (.location-link). */
.event-card--v2 .event-card-v2__headline-artist .event-card-v2__promoter-name.location-link,
.event-card--v2 .event-card-v2__headline-artist a.event-card-v2__headline-artist-name-link,
.event-card--v2 .event-card-v2__headline-artist a.event-card-v2__promoter-name,
.event-card-v2__headline-artist-top a.event-card-v2__promoter-name,
.event-card-v2__headline-artist-top a.event-card-v2__headline-artist-name,
.event-card-v2__headline-artist-top .event-card-v2__headline-artist-name-link {
    color: var(--accent-blue, #77ACA2f) !important;
    text-decoration: none !important;
}

.event-card--v2 .event-card-v2__headline-artist .event-card-v2__promoter-name.location-link:hover,
.event-card--v2 .event-card-v2__headline-artist a.event-card-v2__headline-artist-name-link:hover,
.event-card--v2 .event-card-v2__headline-artist a.event-card-v2__promoter-name:hover,
.event-card--v2 .event-card-v2__headline-artist .event-card-v2__promoter-name.location-link:visited,
.event-card--v2 .event-card-v2__headline-artist a.event-card-v2__headline-artist-name-link:visited,
.event-card--v2 .event-card-v2__headline-artist a.event-card-v2__promoter-name:visited,
.event-card-v2__headline-artist-top a.event-card-v2__promoter-name:hover,
.event-card-v2__headline-artist-top a.event-card-v2__headline-artist-name:hover,
.event-card-v2__headline-artist-top .event-card-v2__headline-artist-name-link:hover,
.event-card-v2__headline-artist-top a.event-card-v2__promoter-name:visited,
.event-card-v2__headline-artist-top a.event-card-v2__headline-artist-name:visited,
.event-card-v2__headline-artist-top .event-card-v2__headline-artist-name-link:visited {
    color: var(--accent-blue, #77ACA2f) !important;
    text-decoration: none !important;
}

.event-card--v2 .event-card-v2__headline-artist .event-card-v2__promoter-name.location-link:hover,
.event-card--v2 .event-card-v2__headline-artist a.event-card-v2__headline-artist-name-link:hover,
.event-card--v2 .event-card-v2__headline-artist a.event-card-v2__promoter-name:hover,
.event-card-v2__headline-artist-top a.event-card-v2__promoter-name:hover,
.event-card-v2__headline-artist-top a.event-card-v2__headline-artist-name:hover,
.event-card-v2__headline-artist-top .event-card-v2__headline-artist-name-link:hover {
    opacity: 0.8;
}

.event-card-v2__headline-artist-top--listen {
    grid-template-columns: 28px minmax(0, 1fr) auto;
}

.event-card-v2__headline-artist-top--listen .event-card-v2__headline-artist-listen {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    display: inline-flex;
    width: auto;
    max-width: none;
    margin: 0;
    flex-shrink: 0;
}

.event-card-v2__headline-artist-links {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 4px;
    min-width: 0;
    margin-top: 2px;
    padding-left: 0;
    box-sizing: border-box;
    /* Keep panel height stable when an artist has no social links (carousel chevrons stay put). */
    min-height: 36px;
}

.event-card-v2__headline-artist-links--empty {
    visibility: hidden;
}

/* Genre pills + About on one row (same content column as social links). */
.event-card-v2__headline-artist-meta {
    grid-column: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.event-card-v2__headline-artist-genre-pills {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1 1 auto;
    gap: 6px;
    min-width: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.event-card-v2__headline-artist-genre-pill {
    flex: 0 0 auto;
    height: 24px;
    min-height: 24px;
    padding: 0 10px;
    font-size: 12px;
}

.event-card-v2__headline-artist-about {
    flex: 0 0 auto;
    margin-left: auto;
}

/* When any carousel artist wraps social icons, reserve two rows for every artist on that card. */
.event-card-v2__headline-artist--links-double-row .event-card-v2__headline-artist-links {
    min-height: 72px;
}

.event-card-v2__headline-artist-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 36px;
    padding: 6px 2px;
    box-sizing: border-box;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
}

.event-card-v2__headline-artist-link:active {
    opacity: 0.75;
}

.event-card-v2__headline-artist-link svg,
.event-card-v2__headline-artist-link .giggly-platform-icon {
    display: block;
    width: 24px;
    height: 24px;
}

.event-card-v2__headline-artist-link .giggly-platform-icon {
    --giggly-platform-icon-size: 24px;
}

.event-card-v2__headline-artist-link .giggly-platform-icon--musicbrainz {
    box-sizing: border-box;
    border: 1px solid #9ca3af;
    background: #f3f4f6;
    border-radius: 4px;
}

.event-card-v2__headline-artist-link .giggly-platform-icon--musicbrainz .giggly-platform-icon__img {
    transform: scale(1);
}

:root[data-theme='dark'] .event-card-v2__headline-artist-link .giggly-platform-icon--musicbrainz {
    border-color: #9ca3af;
    background: color-mix(in srgb, var(--text) 12%, transparent);
}

.event-card-v2__headline-artist > .event-card-v2__headline-artist-embed {
    margin-top: 8px;
    width: 100%;
    min-height: 152px;
    box-sizing: border-box;
}

.event-card-v2__headline-artist-embed iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 12px;
}

.event-card-v2__headline-artist > .event-card-v2__headline-artist-embed--mixcloud {
    min-height: var(--giggly-mixcloud-embed-h, 180px);
}

.event-card-v2__headline-artist-embed--mixcloud iframe {
    height: var(--giggly-mixcloud-embed-h, 180px);
}

.event-card--feed-layout-list .event-card-v2__headline-artist {
    margin-top: 6px;
}

.event-card--feed-layout-no-flyers .event-card-v2__headline-artist {
    margin-top: 6px;
}

.event-card--feed-layout-list .event-card-v2__headline-artist > .event-card-v2__headline-artist-embed {
    width: 100%;
}

/* Inline listen player expands the card on mobile / non-grid layouts. */
.event-card.event-card--v2.event-card--headline-artist-listen-open:has(.event-card-v2__flyer) {
    overflow: visible;
}

.event-card--headline-artist-listen-open .event-card-v2__headline-artist > .event-card-v2__headline-artist-embed {
    display: block;
}

.event-card-v2__headline-artist-listen.is-open {
    border-color: #1db954;
    color: #1db954;
}

/* Feed / tag hub / promoter cards: star + clock row with “View Details” on the right (USE-like control, blue). */
.event-card-v2__footer-icons .event-card-v2__footer-icons-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.event-card-v2__footer-icons .event-card-v2__footer-icons-row__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.event-card-v2__footer-icons .event-card-v2__footer-icons-row__status {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-width: 0;
    max-width: 100%;
}

.event-on-sale-at__footer-block {
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0 4px;
}

.event-on-sale-at__pill-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
}

.ticket-button.ticket-button--on-sale-at-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 14px;
    text-align: center;
    line-height: 1.35;
    white-space: normal;
}

.event-on-sale-at__pill-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.event-on-sale-at__pill-datetime {
    font-weight: 600;
    color: color-mix(in srgb, var(--accent-blue, #77ACA2f) 88%, var(--text));
}

.view-event-page__on-sale-at-row .event-on-sale-at__footer-block {
    margin: 12px 0 14px;
}

.event-on-sale-at__countdown {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px 12px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent-blue, #77ACA2f) 8%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--accent-blue, #77ACA2f) 22%, transparent);
}

.event-on-sale-at__countdown-heading {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: color-mix(in srgb, var(--text) 70%, transparent);
}

.event-on-sale-at__countdown-segments {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.event-on-sale-at__countdown-seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    padding: 6px 4px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg) 82%, var(--accent-blue, #77ACA2f));
    border: 1px solid color-mix(in srgb, var(--accent-blue, #77ACA2f) 18%, transparent);
    box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 35%, transparent);
}

.event-on-sale-at__countdown-num {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--accent-blue, #77ACA2f);
}

.event-on-sale-at__countdown-unit {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text) 62%, transparent);
}

.event-on-sale-at__countdown-bar-track {
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--text) 10%, transparent);
}

.event-on-sale-at__countdown-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--accent-blue, #77ACA2f) 0%,
        var(--accent-purple, #468189) 55%,
        var(--accent-pink, #77ACA2) 100%
    );
    transition: width 0.9s linear;
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent-blue, #77ACA2f) 45%, transparent);
}

/* Legacy slots — kept for any older markup paths */
.event-on-sale-at__status-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
}

.event-on-sale-at__datetime {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    color: color-mix(in srgb, var(--text) 72%, transparent);
    text-align: right;
    white-space: nowrap;
}

.event-on-sale-at__countdown-row {
    display: none;
}

.ticket-button.ticket-button--on-sale-at {
    background: color-mix(in srgb, var(--accent-blue, #77ACA2f) 14%, var(--bg));
    border-color: color-mix(in srgb, var(--accent-blue, #77ACA2f) 55%, transparent);
    color: var(--accent-blue, #77ACA2f);
}

.view-event-page__icons-row__status-slot .event-on-sale-at__status-col {
    align-items: flex-end;
}

.view-event-page__icons-row__status-slot .event-on-sale-at__datetime {
    font-size: 12px;
}

.event-card-v2__view-details-btn {
    flex-shrink: 0;
    align-self: center;
    margin: 0;
    padding: 0 10px;
    min-height: 28px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    border: 1.5px solid var(--accent-blue, #77ACA2f);
    border-radius: 8px;
    background: #ffffff;
    color: var(--accent-blue, #77ACA2f);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    font-family: inherit;
    box-sizing: border-box;
}

.pc-promoter-feed-card__bottom-cta {
    margin: 8px -16px -16px;
    width: calc(100% + 32px);
    min-height: 40px;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    position: relative;
    background: color-mix(in srgb, var(--text) 7%, var(--bg));
    border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.pc-promoter-feed-card__bottom-cta-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 10px 16px;
    box-sizing: border-box;
    margin: 0;
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pc-promoter-feed-card__bottom-cta-edit:hover,
.pc-promoter-feed-card__bottom-cta-edit:active {
    background: color-mix(in srgb, var(--text) 8%, transparent);
}

.event-card-v2__draft-publish-banner {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    color: #fff;
    /* Same maroon as .event-card-v2__draft-no-flyer-badge ("Draft Event") */
    background: #800000;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.event-card.event-card--v2 > .event-card-v2__draft-publish-banner:first-child {
    border-radius: 16px 16px 0 0;
}

.event-card-v2__draft-publish-row {
    width: 100%;
    padding: 8px 0 0;
    text-align: center;
    box-sizing: border-box;
}

.event-card-v2__draft-publish-row .event-card-v2__draft-goes-live {
    margin: 0;
    padding: 0 16px;
}

.event-card-v2__draft-goes-live {
    margin: 0;
    padding: 10px 16px 0;
    text-align: center;
    font-size: var(--event-v2-footer-chip-font-size, 12px);
    font-weight: 600;
    color: var(--accent-purple, #468189);
    line-height: 1.35;
}

.pc-promoter-feed-card__bottom-cta:has(.event-card-v2__draft-goes-live) .pc-promoter-feed-card__bottom-cta-btn {
    padding-top: 8px;
}

.pc-promoter-feed-card__bottom-cta-btn {
    appearance: none;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-secondary, #475569);
    font-size: var(--event-v2-footer-chip-font-size, 12px);
    font-weight: 600;
    line-height: 1;
    padding: 12px 0;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pc-promoter-feed-card__bottom-cta-btn:active {
    opacity: 0.9;
}

.pc-promoter-feed-card__bottom-cta-menu {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.pc-promoter-feed-card__bottom-cta-menu .pc-channel-event-card__menu-wrap {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    top: auto;
}

.pc-channel-event-card__menu-wrap {
    position: relative;
}

.pc-channel-event-card__menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(8px);
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

dialog.pc-channel-event-card__menu-pop--modal {
    position: fixed;
    inset: unset;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: min(460px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    min-width: 0;
    padding: 52px 0 8px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    background: var(--bg);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--text) 12%, transparent);
}

dialog.pc-channel-event-card__menu-pop--modal::backdrop {
    background: color-mix(in srgb, #000 42%, transparent);
}

/* Non-dialog overlay menu (iOS PWA-safe — real links navigate). */
.pc-channel-event-card__menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483490;
    margin: 0;
    padding: 0;
    border: 0;
    background: color-mix(in srgb, #000 42%, transparent);
    cursor: pointer;
}

.pc-channel-event-card__menu-backdrop[hidden] {
    display: none !important;
}

.pc-channel-event-card__menu-pop--overlay {
    position: fixed;
    inset: max(12px, env(safe-area-inset-top, 0px))
        12px
        max(12px, env(safe-area-inset-bottom, 0px))
        12px;
    margin: auto;
    transform: none;
    width: min(460px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    min-width: 0;
    height: fit-content;
    max-height: min(80vh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 52px 0 8px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    background: var(--bg);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--text) 12%, transparent);
    z-index: 2147483501;
}

.pc-channel-event-card__menu-pop--overlay[hidden] {
    display: none !important;
}

.pc-channel-event-card__menu-close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.pc-channel-event-card__menu-close:hover {
    background: color-mix(in srgb, var(--text) 8%, transparent);
}

.pc-channel-event-card__menu-dialog-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pc-channel-event-card__menu-item-form {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    border: 0;
    background: transparent;
}

.pc-channel-event-card__menu-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 12px 52px 12px 16px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.pc-channel-event-card__menu-item:hover {
    background: color-mix(in srgb, var(--text) 6%, transparent);
}

.pc-channel-event-card__menu-item--danger {
    color: #b91c1c;
}

.event-card-v2__footer-actions-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.event-card-v2__manage-btn {
    min-width: 28px;
    min-height: 28px;
    border: 1px solid rgba(119, 172, 162, 0.45);
    border-radius: 8px;
    background: #ffffff;
    color: var(--accent-blue, #77ACA2f);
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.event-card-v2__manage-btn:hover {
    background: rgba(119, 172, 162, 0.08);
}

.event-card-v2__manage-btn:active {
    opacity: 0.92;
}

.event-card-v2__view-details-btn:hover {
    background: rgba(119, 172, 162, 0.08);
}

.event-card-v2__view-details-btn:active {
    opacity: 0.92;
}

:root[data-theme='dark'] .event-card-v2__view-details-btn {
    background: #ffffff;
    color: var(--accent-blue, #77ACA2f);
    border-color: var(--accent-blue, #77ACA2f);
}

/* Calendar day sheet + tag hub + promoter list: extra specificity so “mini” rows never inherit a filled pill look */
#feedMonthCalendarDayList .event-card-v2__view-details-btn,
.tag-hub-feed-card .event-card-v2__view-details-btn,
.pc-promoter-feed-card .event-card-v2__view-details-btn {
    background: #ffffff;
    color: var(--accent-blue, #77ACA2f);
    border: 1.5px solid var(--accent-blue, #77ACA2f);
}

#feedMonthCalendarDayList .event-card-v2__view-details-btn:hover,
.tag-hub-feed-card .event-card-v2__view-details-btn:hover,
.pc-promoter-feed-card .event-card-v2__view-details-btn:hover {
    background: rgba(119, 172, 162, 0.08);
}

#feedMonthCalendarDayList .event-card-v2__view-details-btn:active,
.tag-hub-feed-card .event-card-v2__view-details-btn:active,
.pc-promoter-feed-card .event-card-v2__view-details-btn:active {
    opacity: 0.92;
}

:root[data-theme='dark'] #feedMonthCalendarDayList .event-card-v2__view-details-btn,
:root[data-theme='dark'] .tag-hub-feed-card .event-card-v2__view-details-btn,
:root[data-theme='dark'] .pc-promoter-feed-card .event-card-v2__view-details-btn {
    background: #ffffff;
    color: var(--accent-blue, #77ACA2f);
    border-color: var(--accent-blue, #77ACA2f);
}

.event-card-v2__footer {
    --event-v2-footer-chip-height: 28px;
    --event-v2-footer-chip-font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* Breathing room between action icons and type/status pill row */
    gap: 16px;
    margin-top: 14px;
    min-width: 0;
}

/* Icon row (set times, ticket swap, stars): same flex pattern as view-event page */
/* Branch debug badge (non-release); approvers get .event-branch-badge--promote (click → release feed) */
.event-branch-badge {
    display: inline-block;
    background: #ff0080;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-bottom: 4px;
    border: none;
    font: inherit;
    line-height: 1.2;
    vertical-align: baseline;
}

.event-branch-badge--promote {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.event-branch-badge--promote:hover {
    filter: brightness(1.08);
}

.event-branch-badge--promote:disabled {
    opacity: 0.65;
    cursor: wait;
}

.event-card-v2__footer-icons.view-event-page__icons-row {
    margin-bottom: 0;
}

.event-card-v2__footer-chips-row {
    width: 100%;
    min-width: 0;
}

/* Type + category + genres (status lives on the icons row with stars / clock / swap) */
.event-card-v2__footer-chips-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    row-gap: 8px;
    column-gap: 8px;
    width: 100%;
    min-width: 0;
}

.event-card-v2__footer-chips-flow .event-card-v2__footer-status {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-width: 0;
}

.event-card-v2__footer-pills {
    flex: 1 1 0;
    min-width: 0;
}

.event-card-v2__footer .event-card-v2__pills {
    flex-wrap: wrap;
    gap: 8px;
    row-gap: 8px;
    column-gap: 8px;
    min-width: 0;
    width: 100%;
}

.event-card-v2__footer-status {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Type/category pills + status: shared chip metrics; ticket weight locked in footer (see rules below) */
.event-card-v2__footer .event-card-v2__pill,
.event-card-v2__footer .ticket-button {
    box-sizing: border-box;
    height: var(--event-v2-footer-chip-height);
    min-height: var(--event-v2-footer-chip-height);
    max-height: var(--event-v2-footer-chip-height);
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: var(--event-v2-footer-chip-font-size);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-card-v2__footer .event-card-v2__pill--genre {
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8;
}

:root[data-theme='dark'] .event-card-v2__footer .event-card-v2__pill--genre {
    border-color: #71717a !important;
    background: var(--bg) !important;
    color: #a1a1aa !important;
    -webkit-text-fill-color: #a1a1aa;
}

.event-card-v2__footer a.ticket-button {
    text-decoration: none;
}

.event-card-v2__footer .ticket-button:hover {
    transform: none;
}

/* Same font metrics for <a> (inherits global 600) vs span static (global 400): keeps chip height stable */
.event-card-v2__footer a.ticket-button,
.event-card-v2__footer .ticket-button.ticket-button--static {
    font-weight: 600;
    overflow: hidden;
}

.event-card-v2__heart {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    font: inherit;
}

.event-card-v2__heart:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    border-radius: 8px;
}

.event-card-v2__heart-disc {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #f1f5f9;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme="dark"] .event-card-v2__heart-disc {
    background: rgba(255, 255, 255, 0.08);
}

/* Unstarred: outline star, ring only — no fill inside the circle */
.event-card-v2__heart:not(.is-hearted) .event-card-v2__heart-disc {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px rgba(15, 23, 42, 0.22);
}

:root[data-theme="dark"] .event-card-v2__heart:not(.is-hearted) .event-card-v2__heart-disc {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
}

/* Starred: filled gold star + yellow disc (same on All / My Calendar / modal count row) */
.event-card-v2__heart.is-hearted .event-card-v2__heart-disc {
    background: #fef9c3;
    box-shadow: none;
}

:root[data-theme="dark"] .event-card-v2__heart.is-hearted .event-card-v2__heart-disc {
    background: rgba(250, 204, 21, 0.25);
    box-shadow: none;
}

.event-card-v2__heart-glyph {
    font-size: 15px;
    line-height: 1;
    color: #e2e8f0;
}

:root[data-theme="dark"] .event-card-v2__heart-glyph {
    color: rgba(255, 255, 255, 0.35);
}

.event-card-v2__heart:not(.is-hearted) .event-card-v2__heart-glyph {
    color: #94a3b8;
}

:root[data-theme="dark"] .event-card-v2__heart:not(.is-hearted) .event-card-v2__heart-glyph {
    color: #64748b;
}

.event-card-v2__heart.is-hearted .event-card-v2__heart-glyph {
    color: #ca8a04;
}

:root[data-theme="dark"] .event-card-v2__heart.is-hearted .event-card-v2__heart-glyph {
    color: #facc15;
}

/* Guest mode: grey out protected elements */
.giggly-guest-mode [data-requires-auth] {
    opacity: 0.4;
    filter: grayscale(0.5);
    cursor: pointer;
}

.giggly-guest-mode [data-requires-auth]:hover {
    opacity: 0.6;
}

/* Calendar pill: locked when logged out (restored Bar B snapshots may omit data-requires-auth). */
.giggly-guest-mode #eventsCalendarNavPill {
    opacity: 0.4;
    filter: grayscale(0.5);
    cursor: pointer;
}

.giggly-guest-mode #eventsCalendarNavPill:hover {
    opacity: 0.6;
}

.giggly-guest-mode #eventsCalendarNavPill.active {
    background: #e5e7eb;
    color: #4b5563;
    font-weight: 400;
    border-width: 1px;
    border-style: solid;
    border-color: transparent;
    box-shadow: none;
}

:root[data-theme='dark'].giggly-guest-mode #eventsCalendarNavPill.active {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    border-color: transparent;
    box-shadow: none;
}

/* Guest dismissed calendar login: keep Calendar selected like My Events. */
html.giggly-guest-calendar-prompt.giggly-guest-mode #eventsCalendarNavPill.active,
:root[data-theme='dark'] html.giggly-guest-calendar-prompt.giggly-guest-mode #eventsCalendarNavPill.active {
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    border-width: 1.5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.26);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

:root[data-theme='dark'] html.giggly-guest-calendar-prompt.giggly-guest-mode #eventsCalendarNavPill.active {
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    border-color: rgba(0, 0, 0, 0.28);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Authenticated mode: ensure full opacity and no filters */
:root:not(.giggly-guest-mode) [data-requires-auth] {
    opacity: 1;
    filter: none;
}

.event-card-v2__heart-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 1em;
    text-align: right;
}

/* No visible button chrome: hit target is exactly the 32×32 SVG. */
.event-card-v2__clock {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    vertical-align: middle;
    flex-shrink: 0;
    cursor: pointer;
    color: inherit;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.event-card-v2__clock:focus {
    outline: none;
}

.event-card-v2__clock:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 50%;
}

/* Muted: grey icon; still opens set-times modal (no disabled — native disabled blocks clicks). */
.event-card-v2__clock--muted .event-card-v2__clock-ring,
.event-card-v2__clock--muted .event-card-v2__clock-hands {
    stroke: #94a3b8;
}

:root[data-theme='dark'] .event-card-v2__clock--muted .event-card-v2__clock-ring,
:root[data-theme='dark'] .event-card-v2__clock--muted .event-card-v2__clock-hands {
    stroke: rgba(255, 255, 255, 0.45);
}

/* Ticket swap: same 32×32 hit target and 1.5 stroke as set-times clock SVG. */
.event-card-v2__ticket-swap {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    vertical-align: middle;
    flex-shrink: 0;
    cursor: pointer;
    color: var(--text);
    font: inherit;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.event-card-v2__ticket-swap--listed {
    color: var(--accent-blue, #77ACA2f);
}

:root[data-theme='dark'] .event-card-v2__ticket-swap:not(.event-card-v2__ticket-swap--listed) {
    color: rgba(255, 255, 255, 0.88);
}

:root[data-theme='dark'] .event-card-v2__ticket-swap--listed {
    color: var(--accent-blue, #77ACA2f);
}

.event-card-v2__ticket-swap-count {
    position: absolute;
    top: auto;
    right: 2px;
    bottom: 2px;
    background: var(--accent-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    pointer-events: none;
}

.event-card-v2__ticket-swap:focus {
    outline: none;
}

.event-card-v2__ticket-swap:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Stroke icon: same 32×32 box and 1.5 stroke weight as set-times clock SVG. */
.event-card-v2__ticket-swap-svg {
    display: block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    pointer-events: none;
}

.event-card-v2__clock-svg {
    display: block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    pointer-events: none;
}

.event-card-v2__clock-ring,
.event-card-v2__clock-hands {
    stroke: #94a3b8;
}

:root[data-theme="dark"] .event-card-v2__clock-ring,
:root[data-theme="dark"] .event-card-v2__clock-hands {
    stroke: rgba(255, 255, 255, 0.45);
}

.event-card-v2__clock.is-active .event-card-v2__clock-ring,
.event-card-v2__clock.is-active .event-card-v2__clock-hands {
    stroke: var(--text);
}

:root[data-theme='dark'] .event-card-v2__clock.is-active .event-card-v2__clock-ring,
:root[data-theme='dark'] .event-card-v2__clock.is-active .event-card-v2__clock-hands {
    stroke: var(--text);
}

/* Header: undo .modal-content h2 bottom margin so title and × align on one row */
.set-times-popover .modal-header {
    align-items: center;
}

.set-times-popover .modal-header h2 {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.set-times-popover .modal-close {
    margin: 0;
}

.set-times-popover .set-times-popover__body {
    white-space: pre-wrap;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    padding-bottom: 8px;
    max-height: min(60vh, 320px);
    overflow-y: auto;
}

.set-times-popover__stack {
    padding: 0 4px 12px 4px;
}

.set-times-popover__panel .add-event-label {
    display: block;
    margin-bottom: 8px;
}

.set-times-popover__panel .add-event-textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 14px;
    color: var(--text);
}

.set-times-popover__panel .add-event-textarea::placeholder {
    color: var(--add-event-placeholder, #9ca3af);
    opacity: 1;
}

:root[data-theme='dark'] .set-times-popover__panel .add-event-textarea::placeholder {
    color: var(--add-event-placeholder, #71717a);
}

.set-times-popover__edit-btn,
.set-times-popover__outline-btn,
#setTimesPopoverAddBtn,
#setTimesPopoverSaveBtn,
#setTimesPopoverEditBtn,
#eventPageSetTimesAddBtn,
#eventPageSetTimesSaveBtn,
#eventPageSetTimesEditBtn {
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 700;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid var(--accent-blue, #77ACA2F) !important;
    border-radius: 10px;
    background: #fff !important;
    color: var(--accent-blue, #77ACA2F) !important;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.set-times-popover__edit-btn:hover,
.set-times-popover__edit-btn:focus-visible,
.set-times-popover__outline-btn:hover,
.set-times-popover__outline-btn:focus-visible,
#setTimesPopoverAddBtn:hover,
#setTimesPopoverAddBtn:focus-visible,
#setTimesPopoverSaveBtn:hover,
#setTimesPopoverSaveBtn:focus-visible,
#setTimesPopoverEditBtn:hover,
#setTimesPopoverEditBtn:focus-visible,
#eventPageSetTimesAddBtn:hover,
#eventPageSetTimesAddBtn:focus-visible,
#eventPageSetTimesSaveBtn:hover,
#eventPageSetTimesSaveBtn:focus-visible,
#eventPageSetTimesEditBtn:hover,
#eventPageSetTimesEditBtn:focus-visible {
    background: #fff !important;
    color: var(--accent-blue, #77ACA2F) !important;
    border-color: var(--accent-blue, #77ACA2F) !important;
}

.set-times-popover__edit-btn:active,
.set-times-popover__outline-btn:active {
    opacity: 0.9;
}

:root[data-theme='dark'] .set-times-popover__edit-btn,
:root[data-theme='dark'] .set-times-popover__outline-btn,
:root[data-theme='dark'] #setTimesPopoverAddBtn,
:root[data-theme='dark'] #setTimesPopoverSaveBtn,
:root[data-theme='dark'] #setTimesPopoverEditBtn {
    background: #fff !important;
    color: var(--accent-blue, #77ACA2F) !important;
}

.set-times-popover__save-btn {
    width: 100%;
    box-sizing: border-box;
}

.set-times-popover__empty-msg {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    margin: 0 0 16px 0;
}

.set-times-popover__error {
    color: #b91c1c;
    font-size: 14px;
    margin: 12px 0 0 0;
}

:root[data-theme='dark'] .set-times-popover__error {
    color: #fca5a5;
}

.set-times-popover__saving {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 12px 0 0 0;
}

.event-date {
    display: none;
}

.event-day {
    display: none;
}

.event-month {
    display: none;
}

.event-end-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-pink);
    margin-top: 4px;
}

.event-details {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text);
}

.event-title--artists {
    white-space: pre-line;
}

.event-artists {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text);
    line-height: 1.4;
}

.view-event-artists {
    margin-top: 0;
    margin-bottom: 10px;
}

#viewEventTitle.event-title--artists {
    white-space: pre-line;
}

.event-location {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 4px 0;
}

.location-link {
    color: var(--accent-blue);
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.location-link:hover {
    opacity: 0.8;
    text-decoration: none !important;
}

.location-link:visited {
    color: var(--accent-blue);
    text-decoration: none !important;
}

.event-location__venue-sep {
    color: var(--text-secondary);
    pointer-events: none;
    user-select: none;
}

.event-time {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.event-time.event-card-v2__time {
    color: var(--text);
}

.event-description {
    font-size: 14px;
    color: var(--text);
    margin: 4px 0 0 0;
    line-height: 1.5;
}

/* V2 body: muted like legacy date/time; beats .event-description alone */
.event-description.event-card-v2__description {
    color: var(--text-secondary);
}

/* Auto-linked URLs / emails in plain-text descriptions (feed, modal, event page, tag hub) */
a.giggly-desc-link {
    color: var(--accent-blue, #77ACA2f);
    text-decoration: none;
    word-break: break-word;
}

a.giggly-desc-link:hover {
    opacity: 0.88;
}

.event-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.ticket-button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ticket-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ticket-button.ticket-button--alert-status {
    background: #e0736f;
    color: #fff;
}

.ticket-button.ticket-button--alert-status:hover {
    background: #c85f5b;
    color: #fff;
}

.ticket-button.ticket-button--free-event {
    background: #d8edc4;
    color: #1e4620;
}

.ticket-button.ticket-button--free-event:hover {
    background: #c8e4ae;
    color: #163518;
}

.ticket-button.ticket-button--pay-at-door {
    background: #e0f2fe;
    color: #0c4a6e;
}

.ticket-button.ticket-button--pay-at-door:hover {
    background: #bae6fd;
    color: #075985;
}

:root[data-theme='dark'] .ticket-button.ticket-button--pay-at-door {
    background: rgba(56, 189, 248, 0.18);
    color: #e0f2fe;
}

:root[data-theme='dark'] .ticket-button.ticket-button--pay-at-door:hover {
    background: rgba(56, 189, 248, 0.28);
    color: #f0f9ff;
}

.ticket-button.ticket-button--save-the-date {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.14);
}

.ticket-button.ticket-button--save-the-date:hover {
    background: #f1f5f9;
    color: #0f172a;
}

:root[data-theme="dark"] .ticket-button.ticket-button--save-the-date {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.2);
}

:root[data-theme="dark"] .ticket-button.ticket-button--save-the-date:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.event-card-v2__footer .ticket-button.ticket-button--save-the-date:hover {
    transform: none;
}

span.ticket-button.ticket-button--static {
    display: inline-block;
    cursor: default;
    pointer-events: none;
    font-weight: 400;
}

span.ticket-button.ticket-button--static:hover {
    opacity: 1;
    transform: none;
}

/* Footer chips: beat global span.ticket-button--static (inline-block) so height matches type pills */
.event-card-v2__footer span.ticket-button.ticket-button--static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: var(--event-v2-footer-chip-height);
    min-height: var(--event-v2-footer-chip-height);
    max-height: var(--event-v2-footer-chip-height);
    padding: 0 10px;
    line-height: 1;
    vertical-align: middle;
}

.star-button {
    padding: 8px 12px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    min-width: 70px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 20px;
    margin-right: auto;
}

.star-button:focus {
    outline: none;
}

.star-button:hover {
    transform: scale(1.05);
}

.star-button.hearted {
    color: #ca8a04;
    border-color: rgba(202, 138, 4, 0.45);
    background: #fef9c3;
}

:root[data-theme="dark"] .star-button.hearted {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.35);
    background: rgba(250, 204, 21, 0.15);
}

.star-button span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    min-width: 20px;
    text-align: left;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-hint {
    color: var(--accent-blue);
    font-size: 14px;
}

.error {
    text-align: center;
    padding: 40px;
    color: var(--accent-pink);
}

/* Navigation items */
.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-item:hover {
    background: var(--border);
    color: var(--text);
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-add {
    background: var(--brand-btn-bg, #468189);
    color: white;
    box-shadow: 0 4px 12px rgba(70, 129, 137, 0.4);
}

.nav-add:hover {
    background: var(--brand-btn-bg, #468189);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(70, 129, 137, 0.5);
}

.nav-add:active {
    transform: scale(0.95);
}

/* ==========================================================================
   7. Modals
   ========================================================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

:root[data-theme='dark'] .modal {
    background: rgba(0, 0, 0, 0.58);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg);
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: var(--text);
    flex: 1;
    min-width: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text);
}

/* Event Settings sheet (gear): full-width panel from below Bar A */
.event-settings-modal.modal {
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
}

.event-settings-modal.modal.active {
    display: block;
}

.event-settings-modal__sheet.modal-content {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--event-settings-modal-top, 76px);
    bottom: 0;
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
    max-height: none;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    padding: 20px 20px 28px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.event-settings-modal__head.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.event-settings-modal__head.modal-header h2 {
    margin: 0;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.event-settings-modal__head .modal-close {
    flex-shrink: 0;
    align-self: center;
    margin-top: 0;
}

.event-settings-modal__body {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.event-settings-tags-section {
    margin: 0;
}

.event-settings-tags-section > .add-event-label:first-of-type {
    margin-bottom: 6px;
}

.event-settings-tags-section > .add-event-hint {
    margin-top: 0;
    margin-bottom: 12px;
}

.event-settings-venues-section {
    margin-top: 4px;
}

.event-settings-venues-section .add-event-divider {
    margin-top: 18px;
    margin-bottom: 14px;
}

.event-settings-view-venues-btn {
    margin-top: 8px;
    width: 100%;
    max-width: 320px;
}

/* Full-screen venues editor launched from Settings (iframe /venues). */
.venues-management-modal.modal {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: rgba(0, 0, 0, 0.45);
}

.venues-management-modal.modal.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.venues-management-modal__frame-wrap {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    min-height: 100dvh;
    background: var(--bg);
    box-sizing: border-box;
}

.venues-management-modal__iframe {
    display: block;
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    min-height: 100dvh;
    border: 0;
    background: var(--bg);
}

.venues-management-modal__close {
    position: absolute;
    top: max(10px, env(safe-area-inset-top, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
}

:root[data-theme='dark'] .venues-management-modal__close {
    background: rgba(255, 255, 255, 0.08);
}

.event-settings-tag-draft-slot {
    margin-bottom: 10px;
}

.event-settings-tag-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.event-settings-tag-row {
    padding: 0;
    border-bottom: none;
}

.event-settings-tag-row:last-child {
    border-bottom: none;
}

.event-settings-tag-card {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    box-sizing: border-box;
}

:root[data-theme='dark'] .event-settings-tag-card {
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}

.event-settings-tag-card__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(108px, 0.95fr) 88px;
    gap: 10px 12px;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
}

.event-settings-tag-card__grid--head {
    align-items: end;
    padding-bottom: 2px;
}

.event-settings-tag-card__head-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--text-secondary, #64748b);
    line-height: 1.2;
}

.event-settings-tag-card__head-spacer {
    display: block;
}

.event-settings-tag-card__cell {
    min-width: 0;
}

.event-settings-tag-card__cell--center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-settings-tag-card__name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    word-break: break-word;
}

.event-settings-tag-header-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.event-settings-tag-header-pill--hide {
    background: rgba(148, 163, 184, 0.18);
    color: var(--text-secondary, #64748b);
    border-color: rgba(148, 163, 184, 0.45);
}

.event-settings-add-tag-btn {
    margin: 8px 0 0;
    width: 100%;
    max-width: none;
    align-self: stretch;
    box-sizing: border-box;
}

.event-settings-tag-name-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.event-settings-tag-name-input--compact {
    min-height: 32px;
    height: 32px;
    padding: 4px 8px;
    font-size: 13px;
    line-height: 1.2;
    border-radius: 8px;
}

.event-settings-tag-name-input--compact::placeholder {
    color: #94a3b8;
    opacity: 1;
}

:root[data-theme='dark'] .event-settings-tag-name-input--compact::placeholder {
    color: #94a3b8;
}

.event-settings-tag-card__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 0;
    align-self: center;
}

.event-settings-modal .ticket-wallet__mini-btn {
    min-width: 40px;
    min-height: 32px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
}

.event-settings-tag-cancel-btn {
    min-width: 36px !important;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
    font-weight: 700;
}

.event-settings-tag-menu {
    position: relative;
    flex-shrink: 0;
}

.event-settings-tag-menu__summary {
    list-style: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: var(--text-secondary);
    user-select: none;
}

.event-settings-tag-menu__summary::-webkit-details-marker {
    display: none;
}

.event-settings-tag-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 140px;
    padding: 6px 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 5;
}

.event-settings-tag-menu__item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

.event-settings-tag-menu__item--danger {
    color: #b91c1c;
}

/* Compact notice dialog (e.g. missing event category) — message + grey × one row, text wraps */
.app-message-modal .modal-content.app-message-modal__content {
    padding: 18px 20px 20px;
    max-width: min(400px, calc(100vw - 40px));
}

.app-message-modal__row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* Match description field placeholder: same size, weight, grey as add-event textarea hint */
.app-message-modal__body {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 2px 0 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    color: #9ca3af;
}

:root[data-theme="dark"] .app-message-modal__body {
    color: #71717a;
}

.app-message-modal__close.modal-close {
    flex-shrink: 0;
    margin: -2px -4px 0 0;
}

/* Settings: prompt when display name is required */
.settings-display-name-required {
    margin: 0 0 12px 0;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text);
    background: color-mix(in srgb, var(--accent-purple) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-purple) 35%, transparent);
    border-radius: 10px;
}

:root[data-theme="dark"] .settings-display-name-required {
    background: color-mix(in srgb, var(--accent-purple) 18%, transparent);
    border-color: color-mix(in srgb, var(--accent-purple) 45%, transparent);
}

/* Thank-you dialog after first display name save */
.display-name-thank-you-modal .display-name-thank-you-modal__header {
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 8px;
}

.display-name-thank-you-modal .display-name-thank-you-modal__content {
    max-width: min(440px, calc(100vw - 40px));
}

.display-name-thank-you-modal__body {
    margin: 0;
    padding: 0 0 4px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
}

.display-name-thank-you-modal__body p {
    margin: 0;
}

.display-name-thank-you-modal__link {
    color: var(--accent-blue);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.display-name-thank-you-modal__link:hover {
    color: color-mix(in srgb, var(--accent-blue) 85%, var(--text));
}

.modal-content h2 {
    margin: 0 0 20px 0;
    color: var(--text);
}

.event-detail {
    margin: 12px 0;
    color: var(--text);
    line-height: 1.6;
}

.event-detail:empty {
    display: none;
}

.event-detail a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.event-detail a:hover {
    text-decoration: underline;
}

.event-detail a.giggly-desc-link:hover {
    text-decoration: none;
    opacity: 0.88;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
}

.modal-actions button.full-width {
    width: 100%;
}

/* -------------------------------------------------------------------------
   Add Event modal (sheet layout — design reference mockup)
   ------------------------------------------------------------------------- */
.modal.add-event-modal {
    /*
     * Above Bar D (.bottom-bar 999), floating panels (~1001–1007), and tag-hub parent event overlay
     * (#tagHubEmbedEventOverlay--parent-embed 6000). Stay below .flyer-processing-overlay (10050).
     * body.modal-open .modal.active still raises sheets above search-keyboard chrome (~2147482xxx).
     */
    z-index: 8000;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    overflow-x: hidden;
    overflow-y: hidden;
    touch-action: pan-y;
    overscroll-behavior-x: none;
    overscroll-behavior-y: contain;
}

.modal.add-event-modal.active {
    display: flex;
}

:root[data-theme='dark'] .modal.add-event-modal {
    background: rgba(0, 0, 0, 0.58);
}

.add-event-modal__sheet {
    --add-event-label: #6b7280;
    --add-event-placeholder: #9ca3af;
    --add-event-row-border: rgba(0, 0, 0, 0.08);
    --add-event-sheet-footer-reserve: 0px;
    width: 100%;
    max-width: min(520px, 100%);
    /* Use dvh on mobile to account for keyboard - falls back to vh */
    max-height: min(92vh, 900px);
    max-height: min(92dvh, 900px);
    margin: 0 auto;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    touch-action: pan-y;
    overscroll-behavior-x: none;
    overscroll-behavior-y: contain;
    min-height: 0;
}

:root[data-theme="dark"] .add-event-modal__sheet {
    --add-event-label: #a1a1aa;
    --add-event-placeholder: #71717a;
    --add-event-row-border: rgba(255, 255, 255, 0.1);
}

@media (min-width: 540px) {
    html:not(.giggly-add-event-page-root) .modal.add-event-modal {
        align-items: center;
        padding: 20px;
    }

    html:not(.giggly-add-event-page-root) .add-event-modal__sheet {
        border-radius: 20px;
        max-height: 90vh;
    }
}

/*
 * Desktop standalone /events/add-event: same fixed Bar A + sheet layout as phone.
 */
@media (min-width: 540px) and (hover: hover) {
    /*
     * Chrome flex quirk: align-items:stretch on body.app-mode can prevent margin:0 auto
     * from centering #eventsApp when max-width:840px is set, causing the form and fixed
     * header to render left-aligned instead of centred (most visible when duplicating an
     * event, which triggers a repaint after async data population).  align-self:center
     * overrides the inherited stretch and guarantees the container is always centred.
     */
    html.giggly-add-event-page-root:not(.giggly-ios-app-shell)
        #eventsApp[data-giggly-add-event-standalone='1'] {
        align-self: center;
        /* body.app-mode #eventsApp has specificity (1,1,1) and overrides max-width:840px with
           max-width:100%, causing the container to stretch full-viewport-width on desktop and
           pushing content hard-left.  This rule has specificity (1,3,1) so it wins. */
        max-width: 840px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        /* Fixed Bar A is out of flow — reserve its height so Create/Edit titles and Close
           sit below the Giggly header instead of under it. */
        padding-top: var(--giggly-standalone-header-h, 73px);
        box-sizing: border-box;
    }

    html.giggly-add-event-page-root:not(.giggly-ios-app-shell)
        #eventsApp[data-giggly-add-event-standalone='1']
        #addEventModal.modal.add-event-modal.active,
    html.giggly-add-event-page-root:not(.giggly-ios-app-shell)
        #eventsApp[data-giggly-add-event-standalone='1']
        #editEventModal.modal.add-event-modal.active,
    html.giggly-add-event-page-root:not(.giggly-ios-app-shell)
        #eventsApp[data-giggly-add-event-edit-pending='1']
        #editEventModal.modal.add-event-modal,
    html.giggly-add-event-page-root:not(.giggly-ios-app-shell)
        #eventsApp[data-giggly-add-event-editing='1']
        #editEventModal.modal.add-event-modal {
        position: relative !important;
        inset: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0;
        flex: 1 1 auto;
        align-items: stretch !important;
        justify-content: flex-start !important;
        align-content: flex-start !important;
        padding: 0 !important;
        margin: 0;
        background: var(--bg) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        overflow: hidden;
        z-index: auto !important;
    }

    html.giggly-add-event-page-root:not(.giggly-ios-app-shell)
        #eventsApp[data-giggly-add-event-standalone='1']
        #addEventModal.modal.add-event-modal.active
        .add-event-modal__sheet,
    html.giggly-add-event-page-root:not(.giggly-ios-app-shell)
        #eventsApp[data-giggly-add-event-standalone='1']
        #editEventModal.modal.add-event-modal.active
        .add-event-modal__sheet,
    html.giggly-add-event-page-root:not(.giggly-ios-app-shell)
        #eventsApp[data-giggly-add-event-edit-pending='1']
        #editEventModal.modal.add-event-modal
        .add-event-modal__sheet,
    html.giggly-add-event-page-root:not(.giggly-ios-app-shell)
        #eventsApp[data-giggly-add-event-editing='1']
        #editEventModal.modal.add-event-modal
        .add-event-modal__sheet {
        flex: 1 1 auto;
        width: 100% !important;
        max-width: 100% !important;
        height: 100%;
        min-height: 0;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none;
    }
}

/*
 * Phone add-event modal: pin Create/Save to the layout bottom so the software keyboard can
 * cover the bar; only the form scrolls, and JS scrolls the focused field into the visual viewport.
 */
@media (max-width: 539px) {
    .modal.add-event-modal.active .add-event-modal__sheet {
        padding-bottom: 0;
    }

    /* Room to scroll last fields above the fixed bar; IME tail is added in JS while a field is focused */
    .modal.add-event-modal.active .add-event-modal__sheet > .add-event-form {
        padding-bottom: max(180px, calc(72px + env(safe-area-inset-bottom, 0px)));
        scroll-padding-top: 12px;
        scroll-padding-bottom: max(120px, calc(72px + env(safe-area-inset-bottom, 0px)));
    }

    #editEventModal.modal.add-event-modal.active .add-event-modal__sheet > .add-event-form {
        padding-bottom: max(120px, calc(72px + env(safe-area-inset-bottom, 0px)));
        scroll-padding-bottom: max(88px, calc(72px + env(safe-area-inset-bottom, 0px)));
    }

    html.giggly-add-event-modal-kb-open .modal.add-event-modal.active .add-event-modal__sheet > .add-event-form {
        scroll-padding-bottom: max(120px, min(36vh, 280px));
    }

    .modal.add-event-modal.active .add-event-modal__sheet > .modal-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: min(520px, 100%);
        margin: 0 auto;
        z-index: 1010;
        will-change: transform;
        flex-shrink: 0;
        background: var(--bg);
        border-top: 1px solid var(--add-event-row-border, rgba(0, 0, 0, 0.08));
        box-sizing: border-box;
        padding-top: 12px;
        padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
        padding-left: 20px;
        padding-right: 20px;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
    }

    #eventsApp[data-giggly-add-event-standalone='1']
        #addEventModal.modal.add-event-modal.active
        .add-event-modal__sheet
        > .modal-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: min(840px, 100%);
        margin: 0 auto;
        z-index: 999;
        will-change: auto;
        touch-action: manipulation;
        min-height: calc(var(--bottom-bar-height) + max(env(safe-area-inset-bottom, 0px), 8px));
        height: calc(var(--bottom-bar-height) + max(env(safe-area-inset-bottom, 0px), 8px));
        padding: 0 20px max(env(safe-area-inset-bottom, 0px), 8px);
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: none;
    }

    #eventsApp[data-giggly-add-event-standalone='1']
        #addEventModal.modal.add-event-modal.active
        .add-event-modal__sheet
        > .add-event-form {
        padding-bottom: max(180px, calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px) + 24px));
        scroll-padding-bottom: max(120px, calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px) + 16px));
    }

    /* Genre picker: Save Changes footer inside the wrapper (desktop / non-phone).
       On phone (≤539px) this element becomes position:fixed via the rule above. */
    .modal.add-event-modal.active .add-event-modal-actions--genre-pick {
        position: sticky;
        bottom: 0;
        left: auto;
        right: auto;
        width: 100%;
        max-width: none;
        margin: 0;
        z-index: 2;
        flex-shrink: 0;
        background: var(--bg);
        border-top: 1px solid var(--add-event-row-border, rgba(0, 0, 0, 0.08));
        box-sizing: border-box;
        padding-top: 12px;
        padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
        padding-left: 20px;
        padding-right: 20px;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
    }

    :root[data-theme='dark'] .modal.add-event-modal.active .add-event-modal__sheet > .modal-actions {
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
    }

    :root[data-theme='dark'] .modal.add-event-modal.active .add-event-modal-actions--genre-pick {
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
    }
}

.add-event-modal__body {
    padding: 0 20px 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.add-event-field--genres .add-event-label {
    margin-top: 18px;
}

.add-event-genre-open-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--add-event-row-border, rgba(0, 0, 0, 0.12));
    background: #fff;
    color: #000;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.add-event-genre-hint-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 6px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 380px) {
    .add-event-genre-hint-row {
        flex-wrap: wrap;
    }
}

.add-event-genre-hint-row__text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

/* Compact inline genre control at end of hint row (add + edit). */
button.add-event-genre-open-btn.add-event-genre-open-btn--inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-top: 0;
    margin-left: auto;
    padding: 3px 10px;
    min-height: 26px;
    min-width: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.15;
    border-radius: 6px;
    border: 1px solid #0f0f0f;
    background: #ffffff;
    color: #0f0f0f;
    box-shadow: none;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

button.add-event-genre-open-btn.add-event-genre-open-btn--inline:active {
    opacity: 0.88;
}

:root[data-theme='dark'] button.add-event-genre-open-btn.add-event-genre-open-btn--inline {
    background: var(--bg);
    border-color: var(--text);
    color: var(--text);
}

:root[data-theme='dark'] .add-event-genre-open-btn {
    background: var(--bg);
    color: var(--text);
}

.add-event-genre-pills-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    min-height: 0;
}

.add-event-genre-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    font-weight: 500;
}

:root[data-theme='dark'] .add-event-genre-pill {
    background: var(--bg);
    color: var(--text);
    border-color: var(--text);
}

.add-event-modal__header--genre-pick .add-event-modal__head-text {
    flex: 1;
    min-width: 0;
}

.add-event-modal__header--genre-pick .add-event-modal__title {
    margin-bottom: 4px;
}

.add-event-genre-pick-head-hint {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.35;
}

/* Genre picker: stacked sheet on add/edit — scroll the pill grid when the list is long */
.add-event-modal__sheet--genre-pick {
    max-height: min(78vh, 720px);
    max-height: min(78dvh, 720px);
}

body.modal-open #eventGenrePickModal.modal.active .add-event-modal__sheet--genre-pick {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.add-event-modal__body.add-event-genre-pick-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding-top: 4px;
    padding-bottom: 8px;
}

.add-event-genre-pick-body .add-event-genre-pick-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    align-content: flex-start;
    align-items: flex-start;
}

/* Desktop: wrapper groups sheet + search bar + save as one visual sheet */
.add-event-genre-picker-wrap {
    display: flex;
    flex-direction: column;
    width: min(520px, 100%);
    max-height: min(78dvh, 720px);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: var(--bg);
}

/* Inside the wrapper the sheet fills remaining space and has no individual radius */
body.modal-open #eventGenrePickModal.modal.active .add-event-genre-picker-wrap .add-event-modal__sheet--genre-pick {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
}

/* Phone: three-layer fixed layout
   Layer 1 (top)    — sheet (header + grid), fills Bar A → above search bar
   Layer 2 (middle) — search bar, rises above keyboard via JS
   Layer 3 (bottom) — Save Changes footer, NEVER moves regardless of keyboard */
@media (max-width: 539px) {
    body.modal-open #eventGenrePickModal.modal.active {
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        touch-action: none;
    }

    body.modal-open #eventGenrePickModal.modal.active .add-event-genre-picker-wrap {
        display: contents;
        width: 100%;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
    }

    /* Wrapper dissolves on phone — children become independently fixed */
    body.modal-open #eventGenrePickModal.modal.active .add-event-modal__sheet--genre-pick {
        position: fixed;
        top: var(--giggly-ios-header-h, calc(73px + env(safe-area-inset-top, 0px)));
        left: 0;
        right: 0;
        bottom: calc(
            64px + 60px + max(16px, env(safe-area-inset-bottom, 0px)) +
                var(--genre-picker-search-kb-lift, 0px)
        ); /* search + save, tracking keyboard-lifted search bar */
        max-height: none !important;
        height: auto;
        border-radius: 20px 20px 0 0;
        margin: 0;
        overflow: hidden;
        touch-action: none;
    }

    /* Search bar: fixed above Save Changes; only this layer rises with the keyboard (transform). */
    body.modal-open #eventGenrePickModal.modal.active .add-event-genre-search-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(60px + max(16px, env(safe-area-inset-bottom, 0px)));
        z-index: 8001;
        background: var(--bg);
        border-top: 1px solid rgba(0, 0, 0, 0.07);
        will-change: transform;
    }

    html.giggly-genre-picker-search-kb-open #eventGenrePickModal.modal.active .add-event-genre-search-bar {
        transform: translateY(calc(-1 * var(--genre-picker-search-kb-lift, 0px)));
    }

    :root[data-theme='dark'] body.modal-open #eventGenrePickModal.modal.active .add-event-genre-search-bar {
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    /* Save Changes: always at screen bottom — stays put when keyboard rises */
    body.modal-open #eventGenrePickModal.modal.active .add-event-modal-actions--genre-pick {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 8002;
        background: var(--bg);
        border-top: 1px solid var(--add-event-row-border, rgba(0, 0, 0, 0.08));
        padding: 12px 20px max(16px, env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
        box-sizing: border-box;
        margin: 0;
        width: 100%;
        max-width: none;
    }

    :root[data-theme='dark'] body.modal-open #eventGenrePickModal.modal.active .add-event-modal-actions--genre-pick {
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
    }

    .add-event-modal__sheet--genre-pick .add-event-genre-pick-grid {
        padding-bottom: max(104px, calc(88px + env(safe-area-inset-bottom, 0px)));
        scroll-padding-bottom: max(104px, calc(88px + env(safe-area-inset-bottom, 0px)));
        touch-action: pan-y;
    }
}

/* Add/edit/view-event iframe embed: same three-layer fixed layout — sheet/save stay put; search bar lifts alone */
@media (max-width: 539px) {
    #eventsApp[data-giggly-add-event-embed='1'] #eventGenrePickModal.modal.active,
    #eventsApp[data-giggly-edit-event-embed='1'] #eventGenrePickModal.modal.active,
    #eventsApp[data-giggly-view-event-edit-embed='1'] #eventGenrePickModal.modal.active {
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        touch-action: none;
    }

    #eventsApp[data-giggly-add-event-embed='1'] #eventGenrePickModal.modal.active .add-event-genre-picker-wrap,
    #eventsApp[data-giggly-edit-event-embed='1'] #eventGenrePickModal.modal.active .add-event-genre-picker-wrap,
    #eventsApp[data-giggly-view-event-edit-embed='1'] #eventGenrePickModal.modal.active .add-event-genre-picker-wrap {
        display: contents;
    }

    #eventsApp[data-giggly-add-event-embed='1'] #eventGenrePickModal.modal.active .add-event-modal__sheet--genre-pick,
    #eventsApp[data-giggly-edit-event-embed='1'] #eventGenrePickModal.modal.active .add-event-modal__sheet--genre-pick,
    #eventsApp[data-giggly-view-event-edit-embed='1'] #eventGenrePickModal.modal.active .add-event-modal__sheet--genre-pick {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: calc(
            64px + 60px + max(16px, env(safe-area-inset-bottom, 0px)) +
                var(--genre-picker-search-kb-lift, 0px)
        );
        max-height: none !important;
        height: auto !important;
        min-height: 0;
        border-radius: 0;
        overflow: hidden;
        touch-action: none;
    }

    #eventsApp[data-giggly-add-event-embed='1'] #eventGenrePickModal.modal.active .add-event-modal__header--genre-pick,
    #eventsApp[data-giggly-edit-event-embed='1'] #eventGenrePickModal.modal.active .add-event-modal__header--genre-pick,
    #eventsApp[data-giggly-view-event-edit-embed='1'] #eventGenrePickModal.modal.active .add-event-modal__header--genre-pick {
        flex-shrink: 0;
        position: relative;
        z-index: 2;
        background: var(--bg);
        padding-top: calc(8px + env(safe-area-inset-top, 0px));
    }

    #eventsApp[data-giggly-add-event-embed='1'] #eventGenrePickModal.modal.active .add-event-genre-search-bar,
    #eventsApp[data-giggly-edit-event-embed='1'] #eventGenrePickModal.modal.active .add-event-genre-search-bar,
    #eventsApp[data-giggly-view-event-edit-embed='1'] #eventGenrePickModal.modal.active .add-event-genre-search-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(60px + max(16px, env(safe-area-inset-bottom, 0px)));
        z-index: 8001;
        background: var(--bg);
        border-top: 1px solid rgba(0, 0, 0, 0.07);
        will-change: transform;
    }

    #eventsApp[data-giggly-add-event-embed='1'] #eventGenrePickModal.modal.active .add-event-modal-actions--genre-pick,
    #eventsApp[data-giggly-edit-event-embed='1'] #eventGenrePickModal.modal.active .add-event-modal-actions--genre-pick,
    #eventsApp[data-giggly-view-event-edit-embed='1'] #eventGenrePickModal.modal.active .add-event-modal-actions--genre-pick {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        max-width: min(520px, 100%);
        margin: 0 auto;
        z-index: 8002;
    }

    #eventsApp[data-giggly-add-event-embed='1'] .add-event-modal__sheet--genre-pick .add-event-genre-pick-grid,
    #eventsApp[data-giggly-edit-event-embed='1'] .add-event-modal__sheet--genre-pick .add-event-genre-pick-grid,
    #eventsApp[data-giggly-view-event-edit-embed='1'] .add-event-modal__sheet--genre-pick .add-event-genre-pick-grid {
        padding-bottom: max(150px, calc(128px + env(safe-area-inset-bottom, 0px)));
        scroll-padding-top: 12px;
        scroll-padding-bottom: max(150px, calc(128px + env(safe-area-inset-bottom, 0px)));
        touch-action: pan-y;
    }
}

html.giggly-genre-picker-search-kb-open {
    overflow: hidden;
}

.add-event-genre-pick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: flex-start;
    align-content: flex-start;
}

.add-event-genre-pick-section-title {
    flex: 0 0 100%;
    width: 100%;
    margin: 14px 0 2px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary, #6b7280);
}

.add-event-genre-pick-section-title:first-child {
    margin-top: 0;
}

.add-event-genre-pick-pill {
    border-radius: 999px;
    font: inherit;
    font-size: 0.9rem;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    margin: 0;
    vertical-align: middle;
}

button.add-event-genre-pick-pill--idle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    height: 40px;
    max-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    line-height: 1;
}

.add-event-genre-pick-pill--idle {
    border: 1px solid #9ca3af;
    color: #9ca3af;
    background: #fff;
}

:root[data-theme='dark'] .add-event-genre-pick-pill--idle {
    background: var(--bg);
    color: #9ca3af;
    border-color: #9ca3af;
}

.add-event-genre-pick-pill--active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #64748b;
    background: #f8fafc;
    color: #475569;
    box-sizing: border-box;
    min-height: 40px;
    max-height: 40px;
    height: 40px;
    padding: 0 6px 0 14px;
    line-height: 1;
    margin: 0;
    overflow: hidden;
}

:root[data-theme='dark'] .add-event-genre-pick-pill--active {
    background: rgba(255, 255, 255, 0.06);
    color: #e4e4e7;
    border-color: #a1a1aa;
}

.add-event-genre-pick-pill__label {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    line-height: 1;
}

.add-event-genre-pick-pill__remove {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.modal-actions.add-event-modal-actions--genre-pick {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
    flex-shrink: 0;
}

.add-event-genre-pick-footer-add {
    flex-shrink: 0;
}

/* ── Genre search bar row — mirrors Bar C with search open ────────────────── */
/* Pill search container + round × clear + Cancel text, same look as Bar C.   */
.add-event-genre-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    flex-shrink: 0;
    box-sizing: border-box;
    background: var(--bg);
}

:root[data-theme='dark'] .add-event-genre-search-bar {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* On phone the genre search bar is fixed; JS lifts it above the keyboard via transform only. */

/* Override the absolute positioning used in Bar C — here the pill is a flex   */
/* item in normal flow, not a viewport overlay.                                 */
.add-event-genre-search-bar .search-container {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
}

/* "+ Add New" badge — inside the search pill, before the clear ×.
   Matches .venue-combobox__use-inline: compact black pill, white text. */
.add-event-genre-search-add-btn {
    flex-shrink: 0;
    white-space: nowrap;
    height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    border: none;
    background: #000;
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.add-event-genre-search-add-btn:active {
    opacity: 0.85;
}

.add-event-genre-search-add-btn[hidden] {
    display: none !important;
}

/* Cancel × button — matches .control-btn style: round with bg + border, no grey tint */
.add-event-genre-search-bar__cancel {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, border-color 0.15s;
}

.add-event-genre-search-bar__cancel:active {
    background: rgba(0, 0, 0, 0.06);
}

:root[data-theme='dark'] .add-event-genre-search-bar__cancel:active {
    background: rgba(255, 255, 255, 0.1);
}

.modal-actions.add-event-modal-actions--genre-pick .add-event-genre-pick-save-btn {
    flex: none;
    width: 100%;
}

.add-event-genre-pick-save-btn {
    appearance: none;
    width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    padding: 16px 22px;
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    cursor: not-allowed;
    -webkit-tap-highlight-color: transparent;
    opacity: 1;
}

:root[data-theme='dark'] .add-event-genre-pick-save-btn {
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--text);
}

.add-event-genre-pick-save-btn.add-event-genre-pick-save--active:not(:disabled) {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    cursor: pointer;
}

:root[data-theme='dark'] .add-event-genre-pick-save-btn.add-event-genre-pick-save--active:not(:disabled) {
    background: #fff;
    color: #000;
    border: 2px solid #fff;
}

.add-event-genre-new-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font: inherit;
    font-size: 0.9rem;
    border: 1px dashed rgba(70, 129, 137, 0.45);
    background: transparent;
    color: var(--accent-purple, #468189);
    cursor: pointer;
}

.add-event-genre-new-pill[hidden] {
    display: none !important;
}

/* Parent genres admin: scrollable list; full-width add field + button pinned in footer */
.add-event-modal__sheet--parent-genres {
    max-height: min(92vh, 880px);
}

.parent-genres-admin-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.parent-genres-admin-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0 20px 12px;
}

.parent-genres-admin-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px max(16px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--add-event-row-border, rgba(0, 0, 0, 0.1));
    background: var(--bg);
    box-sizing: border-box;
}

:root[data-theme='dark'] .parent-genres-admin-footer {
    border-top-color: var(--add-event-row-border);
}

.parent-genres-admin-footer .add-event-label {
    margin: 0;
}

.parent-genres-admin-footer__input {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    font-size: 16px;
}

.parent-genres-admin-footer__add {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    margin: 0;
}

.parent-genres-admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 0;
}

.parent-genres-admin-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--add-event-row-border, rgba(0, 0, 0, 0.1));
    border-radius: 12px;
    background: var(--bg);
}

.parent-genres-admin-row__label {
    font-weight: 600;
}

.parent-genres-admin-row__meta {
    font-size: 0.82rem;
    color: var(--add-event-label, #6b7280);
    margin-top: 4px;
}

.parent-genres-admin-row__count-btn {
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--accent-purple, #468189);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.parent-genres-admin-row__count-btn:hover {
    color: var(--accent-pink, #77ACA2);
}

.parent-genres-admin-row__count-btn:disabled {
    color: var(--add-event-label, #6b7280);
    text-decoration: none;
    cursor: default;
}

.parent-genre-events-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 0;
}

.parent-genre-events-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--add-event-row-border, rgba(0, 0, 0, 0.1));
    border-radius: 10px;
    background: var(--bg);
    text-decoration: none;
    color: inherit;
}

.parent-genre-events-row:hover {
    border-color: var(--accent-purple, #468189);
}

.parent-genre-events-row__title {
    font-weight: 600;
    font-size: 0.95rem;
}

.parent-genre-events-row__meta {
    font-size: 0.8rem;
    color: var(--add-event-label, #6b7280);
}

.parent-genres-admin-row__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

.parent-genres-admin-delete-btn {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.35);
}

:root[data-theme='dark'] .parent-genres-admin-delete-btn {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.35);
}

/* Venue combobox — same-day predictive list above the field (add/edit) */
.venue-combobox {
    position: relative;
    width: 100%;
}

.venue-combobox__field-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.venue-combobox__field-row > .add-event-input {
    flex: 1;
    min-width: 0;
}

.venue-combobox__use-inline {
    flex-shrink: 0;
    align-self: stretch;
    margin: 0;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    border: none;
    border-radius: 8px;
    background: #000000;
    color: #ffffff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.venue-combobox__use-inline:active {
    opacity: 0.85;
}

.venue-combobox__use-inline[hidden] {
    display: none !important;
}

.add-event-venue-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.add-event-venue-pills:empty {
    display: none;
}

/* Pills + draft + USE in one bordered row (like artist composer) */
.add-event-venue-composer .venue-combobox__composer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 6px 10px;
    background: var(--bg);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    cursor: text;
}

.add-event-venue-composer:focus-within .venue-combobox__composer-row {
    outline: none;
    border-color: var(--accent-blue, #77ACA2f);
    box-shadow: 0 0 0 3px rgba(119, 172, 162, 0.2);
}

.add-event-venue-composer .venue-combobox__field-row {
    flex: 1 1 140px;
    min-width: 100px;
}

.add-event-venue-composer .add-event-venue-composer-entry {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    padding: 4px 4px 4px 2px;
    min-height: 34px;
}

.add-event-venue-composer .add-event-venue-composer-entry:focus {
    box-shadow: none;
}

:root[data-theme='dark'] .add-event-venue-composer .venue-combobox__composer-row {
    border-color: var(--border, rgba(255, 255, 255, 0.12));
}

.add-event-field--error .add-event-venue-composer .venue-combobox__composer-row {
    border-color: rgba(220, 38, 38, 0.5) !important;
    box-shadow: none;
}

.add-event-field--error .add-event-venue-composer:focus-within .venue-combobox__composer-row {
    border-color: rgba(220, 38, 38, 0.5) !important;
    box-shadow: none;
}

:root[data-theme='dark'] .add-event-field--error .add-event-venue-composer .venue-combobox__composer-row {
    border-color: rgba(248, 113, 113, 0.5) !important;
}

.venue-suggest-list {
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: calc(100% + 4px);
    z-index: 1205;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

:root[data-theme='dark'] .venue-suggest-list {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.venue-suggest-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 10px 12px 14px;
    font-size: 15px;
    line-height: 1.3;
    cursor: pointer;
    color: var(--text);
}

.venue-suggest-list__text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.venue-suggest-list__use {
    flex-shrink: 0;
    margin: 0;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    border: none;
    border-radius: 5px;
    background: #000000;
    color: #ffffff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.venue-suggest-list__use:active {
    opacity: 0.85;
}

.venue-suggest-list__item:hover {
    background: color-mix(in srgb, var(--text) 6%, transparent);
}

.venue-suggest-list__item:active {
    background: color-mix(in srgb, var(--accent-purple) 14%, transparent);
}

.edit-evt-legacy-venue-notice {
    margin: 10px 0 0;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
    background: color-mix(in srgb, var(--accent-purple) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-purple) 35%, transparent);
    border-radius: 10px;
}

:root[data-theme='dark'] .edit-evt-legacy-venue-notice {
    background: color-mix(in srgb, var(--accent-purple) 18%, transparent);
    border-color: color-mix(in srgb, var(--accent-purple) 45%, transparent);
}

/* Event flyer upload (create + edit v2) */
.add-event-field--flyer {
    width: 100%;
    max-width: 100%;
}

/* Tight layout under flyer preview: less dead space before Event Type / Category */
.add-event-field--flyer:has(.event-flyer-dropzone--has-preview) {
    padding-bottom: 6px;
}

.event-flyer-field-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.event-flyer-field-head__label {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.event-flyer-header-edit {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--add-event-placeholder, #9ca3af);
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.15s ease, background 0.15s ease;
}

/* [hidden] must win over display:flex (otherwise edit shows before a flyer exists) */
.event-flyer-header-edit[hidden] {
    display: none !important;
}

.event-flyer-header-edit:hover {
    opacity: 1;
    background: rgba(120, 120, 128, 0.1);
}

.event-flyer-header-edit:active {
    opacity: 1;
}

:root[data-theme="dark"] .event-flyer-header-edit {
    color: var(--add-event-placeholder, #71717a);
}

:root[data-theme="dark"] .event-flyer-header-edit:hover {
    background: rgba(255, 255, 255, 0.08);
}

.event-flyer-dropzone {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    min-height: calc(1.45em * 5 + 48px);
    padding: 14px 16px 16px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: rgba(120, 120, 128, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.event-flyer-dropzone--has-preview {
    min-height: 0;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    text-align: left;
    overflow: hidden;
    border-color: transparent;
    background: transparent;
}

:root[data-theme="dark"] .event-flyer-dropzone--has-preview {
    background: transparent;
}

:root[data-theme="dark"] .event-flyer-dropzone {
    background: rgba(255, 255, 255, 0.04);
}

.event-flyer-dropzone__hint {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--add-event-placeholder, #9ca3af);
    max-width: 22rem;
}

.event-flyer-dropzone__info {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(120, 120, 128, 0.16);
    color: var(--add-event-placeholder, #9ca3af);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.event-flyer-dropzone__info:hover {
    background: rgba(120, 120, 128, 0.24);
}

.event-flyer-dropzone--has-preview .event-flyer-dropzone__info {
    display: none;
}

.event-flyer-info-dialog {
    width: min(420px, calc(100% - 32px));
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
}

.event-flyer-info-body {
    padding: 0 20px 20px;
}

.event-flyer-info-body p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

.giggly-profile-feed__edit-gigs-btn:disabled,
.giggly-profile-feed__edit-gigs-btn[aria-disabled='true'] {
    opacity: 0.45;
    cursor: default;
}

.event-flyer-dropzone__status {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.event-flyer-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--add-event-placeholder, #9ca3af);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.event-flyer-upload-icon:hover {
    color: var(--text-secondary);
    background: rgba(120, 120, 128, 0.08);
}

.event-flyer-upload-icon:active {
    transform: scale(0.96);
}

/* [hidden] must win over display:flex (same as header edit) */
.event-flyer-upload-icon[hidden] {
    display: none !important;
}

:root[data-theme="dark"] .event-flyer-upload-icon {
    color: var(--add-event-placeholder, #71717a);
}

:root[data-theme="dark"] .event-flyer-upload-icon:hover {
    background: rgba(255, 255, 255, 0.06);
}

.event-flyer-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    line-height: 0;
}

.event-flyer-dropzone--has-preview .event-flyer-preview {
    max-height: min(38vh, 260px);
    overflow: hidden;
}

.event-flyer-dropzone--has-preview .event-flyer-preview__img {
    width: 100%;
    height: auto;
    max-height: min(38vh, 260px);
    display: block;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
}

.event-flyer-preview__img {
    max-width: 100%;
    width: auto;
    height: auto;
}

.event-flyer-dropzone--has-preview .event-flyer-preview__pdf-frame {
    display: block;
    width: 100%;
    height: min(38vh, 260px);
    min-height: 0;
    max-height: min(38vh, 260px);
    border: none;
    background: transparent;
    box-sizing: border-box;
}

/* Centered flyer picker (not full-width sheet) */
.modal.event-flyer-pick-modal-root {
    align-items: center;
    justify-content: center;
    padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
}

.event-flyer-pick-dialog.modal-content {
    padding: 0;
    max-width: min(400px, calc(100vw - 40px));
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-self: center;
    margin: auto 0;
}

.event-flyer-pick-dialog__header.add-event-modal__header {
    padding-bottom: 10px;
}

.event-flyer-pick-body {
    padding: 0 20px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
}

.event-flyer-pick-intro {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: left;
    flex-shrink: 0;
}

.event-flyer-pick-sheet[hidden] {
    display: none !important;
}

/* iOS: intro + Select Image (system sheet follows) */
.event-flyer-pick-ios-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.event-flyer-pick-ios-actions[hidden] {
    display: none !important;
}

.event-flyer-pick-ios-btn.auth-button {
    margin: 0;
    background: #6164fd;
    color: #fff;
}

.event-flyer-pick-ios-btn.auth-button:hover:not(:disabled) {
    background: #5356e8;
}

.event-flyer-pick-ios-btn.auth-button:active:not(:disabled) {
    background: #474adf;
}

/* iOS-style grouped action rows with leading icons, left-aligned labels */
.event-flyer-pick-sheet {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(120, 120, 128, 0.1);
    flex-shrink: 0;
}

:root[data-theme="dark"] .event-flyer-pick-sheet {
    background: rgba(255, 255, 255, 0.08);
}

.event-flyer-pick-sheet__row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--bg);
    font-size: 17px;
    font-weight: 400;
    font-family: inherit;
    line-height: 1.3;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s ease;
}

.event-flyer-pick-sheet__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    opacity: 0.88;
}

.event-flyer-pick-sheet__icon svg {
    width: 26px;
    height: 26px;
}

.event-flyer-pick-sheet__label {
    flex: 1;
    min-width: 0;
    text-align: left;
}

:root[data-theme="dark"] .event-flyer-pick-sheet__row {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.event-flyer-pick-sheet__row:hover {
    background: rgba(120, 120, 128, 0.06);
}

.event-flyer-pick-sheet__row:active {
    background: rgba(120, 120, 128, 0.12);
}

.event-flyer-pick-sheet__row--last,
.event-flyer-pick-sheet__row:last-child {
    border-bottom: none;
}

.view-event-flyer {
    margin-bottom: 16px;
}

.view-event-flyer__img {
    width: 100%;
    max-height: min(50vh, 320px);
    object-fit: contain;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
}

.view-event-flyer__pdf {
    display: inline-block;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

.edit-event-modal-actions {
    flex-shrink: 0;
    align-self: stretch;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 20px 16px;
    margin-top: 16px;
    gap: 8px;
}

/*
 * .auth-button is width:100% globally — in a 2-button row each child was
 * sizing to the full sheet width and overflowing. Share space with flex.
 */
.edit-event-modal-actions .auth-button,
.edit-event-modal-actions .danger-button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.edit-event-modal-actions .danger-button {
    background: #fff;
    color: #dc2626;
    border: 2px solid #dc2626;
    box-shadow: none;
}

.edit-event-modal-actions .danger-button:hover,
.edit-event-modal-actions .danger-button:active {
    background: #fff;
    color: #dc2626;
    opacity: 1;
    transform: none;
}

.edit-event-modal-actions #editEventSaveBtn.auth-button,
.edit-event-modal-actions .auth-button#editEventSaveBtn {
    background: #fff;
    color: #2563eb;
    border: 2px solid #2563eb;
    box-shadow: none;
}

.edit-event-modal-actions #editEventSaveBtn.auth-button:hover,
.edit-event-modal-actions #editEventSaveBtn.auth-button:active,
.edit-event-modal-actions .auth-button#editEventSaveBtn:hover,
.edit-event-modal-actions .auth-button#editEventSaveBtn:active {
    background: #fff;
    color: #2563eb;
    opacity: 1;
    transform: none;
}

:root[data-theme='dark'] .edit-event-modal-actions .danger-button {
    background: var(--bg, #111);
    color: #f87171;
    border-color: #f87171;
}

:root[data-theme='dark'] .edit-event-modal-actions #editEventSaveBtn.auth-button,
:root[data-theme='dark'] .edit-event-modal-actions .auth-button#editEventSaveBtn {
    background: var(--bg, #111);
    color: #60a5fa;
    border-color: #60a5fa;
}

/* Create button: sibling of scrollable form (same pattern as edit v2 footer) */
.add-event-modal-actions {
    flex-shrink: 0;
    align-self: stretch;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 20px 16px;
    margin-top: 8px;
    /* Ensure button is always visible and clickable - iOS 15 fix */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.add-event-modal-actions .auth-button.full-width {
    width: 100%;
    flex: 1 1 auto;
}

@media (max-width: 539px) {
    .modal.add-event-modal.active .add-event-modal__sheet > .modal-actions.add-event-modal-actions,
    .modal.add-event-modal.active .add-event-modal__sheet > .modal-actions.edit-event-modal-actions {
        /* Fallback for iOS 15 which has buggy max() and env() support */
        padding: 12px 20px 16px;
        padding: 12px 20px max(16px, env(safe-area-inset-bottom, 0px));
        margin-top: 0;
        /* Keep fixed footer (see rule above); do not switch to position:relative — that made the bar ride up with the keyboard */
        z-index: 1010;
    }
}

.add-event-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 12px;
    flex-shrink: 0;
    overflow-x: hidden;
    touch-action: pan-y;
}

.add-event-modal__eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--add-event-label);
    text-transform: uppercase;
}

.add-event-modal__title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
}

.add-event-modal__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(120, 120, 128, 0.12);
    color: var(--text-secondary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.add-event-modal__close:hover {
    background: rgba(120, 120, 128, 0.2);
    color: var(--text);
}

.add-event-form {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 20px 8px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-x: none;
    overscroll-behavior-y: contain;
    scroll-padding-top: 12px;
    scroll-padding-bottom: max(16px, min(32vh, 260px));
}

/* Inline validation: stays at top of the scrolling add/edit sheet (not a separate full-screen message). */
.add-event-form-validation-summary {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0 -20px 12px;
    padding: 10px 20px;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #92400e;
    background: #fffbeb;
    border-bottom: 1px solid rgba(251, 191, 36, 0.65);
    box-sizing: border-box;
}

:root[data-theme='dark'] .add-event-form-validation-summary {
    color: #fde68a;
    background: rgba(66, 32, 6, 0.95);
    border-bottom-color: rgba(251, 191, 36, 0.35);
}

/* Keep focused fields clear of the software keyboard when the form scrolls */
.add-event-form :is(input:not([type='hidden']):not([type='button']):not([type='submit']):not([type='checkbox']):not([type='radio']), textarea, select) {
    scroll-margin-bottom: min(40vh, 320px);
    scroll-margin-top: 8px;
}

.add-event-form .add-event-custom-select__trigger {
    scroll-margin-bottom: min(40vh, 320px);
    scroll-margin-top: 8px;
}

/* Set Times: JS aligns above the IME — zero scroll-margin so the browser does not pull it down on focus */
#eventSetTimes,
#editEvtSetTimes {
    scroll-margin-bottom: 0 !important;
    scroll-margin-top: 8px;
}

.add-event-form__kb-scroll-tail {
    display: block;
    width: 100%;
    height: 0;
    min-height: 0;
    flex-shrink: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Personal (private) mode: remove sections from layout (flex + [hidden] edge cases) */
.add-event-form .add-event-personal-hidden {
    display: none !important;
}

.add-event-form[data-add-event-type="personal"] #addEventStatusTicketSection,
.add-event-form[data-add-event-type="personal"] #addEventArtistsSection,
.add-event-form[data-add-event-type="personal"] #addEventSetTimesSection,
.add-event-form[data-add-event-type="personal"] #editEvtSetTimesSection,
#addEventModal[data-add-event-type="personal"] #addEventStatusTicketSection,
#addEventModal[data-add-event-type="personal"] #addEventArtistsSection,
#addEventModal[data-add-event-type="personal"] #addEventSetTimesSection,
#editEventModal[data-add-event-type="personal"] #editEvtStatusTicketSection,
#editEventModal[data-add-event-type="personal"] #editEvtArtistsSection,
#editEventModal[data-add-event-type="personal"] #editEvtSetTimesSection,
.edit-event-form[data-add-event-type="personal"] #editEvtSetTimesSection {
    display: none !important;
}

.add-event-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Draft publish date/time rows: class display rules above defeat the [hidden] attribute,
   so the fields stayed visible with the toggle off. Force hidden to win. */
#addEventDraftPublishFields[hidden],
#editEvtDraftPublishFields[hidden] {
    display: none !important;
}

.add-event-row--2 .add-event-field {
    flex: 1;
    min-width: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Event Type + Event Category: equal halves (row follows flyer + divider, not :first-child of form) */
.add-event-form > .add-event-field--flyer + .add-event-divider + .add-event-row--2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding-top: 8px;
}

.add-event-form > .add-event-field--flyer + .add-event-divider + .add-event-row--2 > .add-event-field {
    flex: unset;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* Date/time block: cap width so equal columns are not stretched to full sheet */
.add-event-form .add-event-datetime-stack {
    width: 100%;
    max-width: min(100%, 22rem);
    /* Horizontal inset: sized for date text (widest); time pills reuse the same padding */
    --add-event-datetime-pill-pad-x: 12px;
    /* Fixed total width for time pills so start/end match (includes same pad-x) */
    --add-event-time-pill-width: 6.85rem;
}

/* Date/time pills: equal columns, visible gap between */
.add-event-form .add-event-datetime-stack .add-event-row--2.add-event-row--datetime {
    gap: 10px 14px;
    align-items: start;
    justify-items: stretch;
    width: 100%;
}

.add-event-form .add-event-datetime-stack .add-event-row--2.add-event-row--datetime > .add-event-field {
    flex: unset;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* flex + width: date shrink-wraps; time uses fixed width (see [type="time"] below) */
.add-event-form .add-event-datetime-stack .add-event-row--2.add-event-row--datetime .add-event-input--date {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.add-event-form .add-event-datetime-stack .add-event-row--2.add-event-row--datetime .add-event-input--date[type="date"] {
    width: max-content;
}

.add-event-form .add-event-datetime-stack .add-event-row--2.add-event-row--datetime .add-event-input--date[type="time"] {
    width: min(100%, var(--add-event-time-pill-width));
}

@supports (grid-template-columns: subgrid) {
    .add-event-datetime-stack {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 14px;
    }

    .add-event-datetime-stack > .add-event-row--2.add-event-row--datetime {
        display: grid;
        grid-template-columns: subgrid;
        grid-column: 1 / -1;
        column-gap: 14px;
    }

    #addEventEndDateBlock {
        display: contents;
    }

    #addEventEndDateBlock[hidden] {
        display: none !important;
    }

    .add-event-datetime-stack > .add-event-divider {
        grid-column: 1 / -1;
    }

    .add-event-datetime-stack > #addEventRecurringDatetimeExtras,
    .add-event-datetime-stack > #editEvtRecurringDatetimeExtras {
        grid-column: 1 / -1;
        width: 100%;
    }

    .add-event-datetime-stack > #addEventRecurringDatetimeExtras[hidden],
    .add-event-datetime-stack > #editEvtRecurringDatetimeExtras[hidden] {
        display: none !important;
    }
}

@supports not (grid-template-columns: subgrid) {
    .add-event-form .add-event-datetime-stack .add-event-row--2.add-event-row--datetime {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        justify-content: stretch;
        column-gap: 14px;
    }
}

#addEventRecurringDatetimeExtras[hidden],
#editEvtRecurringDatetimeExtras[hidden] {
    display: none !important;
}

.add-event-recurring-add-btn {
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}

.add-event-recurring-slot__time-field .add-event-label {
    margin-bottom: 0;
}

.add-event-recurring-slot__time-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.add-event-recurring-slot__time-row .add-event-recurring-time {
    flex: 0 1 auto;
    min-width: 0;
}

.add-event-recurring-slot__time-row .add-event-recurring-remove-x {
    flex-shrink: 0;
    align-self: center;
}

.add-event-row--toggle {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.add-event-field--grow {
    flex: 1;
}

.add-event-divider {
    height: 1px;
    background: var(--add-event-row-border);
    margin: 0;
}

/* Artist sections: breathing room between the divider and the section header */
#addEventHeadlineArtistsSection > .add-event-divider,
#addEventSupportArtistsSection > .add-event-divider,
#editEvtHeadlineArtistsSection > .add-event-divider,
#editEvtSupportArtistsSection > .add-event-divider {
    margin-top: -4px;
    margin-bottom: 16px;
}

/* Red asterisk marking a mandatory field */
.add-event-required-star {
    color: #ef4444;
    font-weight: 700;
    margin-left: 3px;
}

/* Back button "working" state: dim and spin the arrow until the next page paints */
.view-event-page__back.is-navigating {
    opacity: 0.45;
}

.view-event-page__back.is-navigating .pc-topbar__back-icon {
    display: inline-block;
    animation: giggly-back-nav-spin 0.8s linear infinite;
}

@keyframes giggly-back-nav-spin {
    to {
        transform: rotate(360deg);
    }
}

.add-event-field {
    padding: 14px 0;
}

.add-event-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.add-event-label--stacked {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 8px;
}

.add-event-label__main {
    display: block;
    line-height: 1.25;
}

.add-event-label--wrap {
    margin-bottom: 6px;
}

/* Required field marker (add / edit v2 modals) */
.add-event-req {
    font-weight: 700;
    color: #dc2626;
    text-decoration: none;
    margin-left: 0.2em;
    cursor: help;
}

:root[data-theme="dark"] .add-event-req {
    color: #f87171;
}

.add-event-hint {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--add-event-label);
}

.add-event-field--event-name > .add-event-label {
    margin-bottom: 2px;
}

.add-event-field--event-name > .add-event-hint {
    margin: 0 0 6px;
}

.add-event-input,
.add-event-textarea,
.add-event-select {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.45;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
}

.add-event-input::placeholder,
.add-event-textarea::placeholder {
    color: var(--add-event-placeholder);
    opacity: 1;
}

.add-event-input--date {
    border-radius: 999px;
    /* Flex on the input: WebKit gives the datetime edit intrinsic height; align-items centres it in the pill (iOS Safari). */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    min-height: 40px;
    height: 40px;
    /* Default pad when outside stack; in stack, datetime-stack variables apply */
    padding: 0 var(--add-event-datetime-pill-pad-x, 12px);
    font-size: 16px;
    line-height: normal;
    text-align: center;
    background: rgba(120, 120, 128, 0.08);
    border-color: transparent;
}

/* Time pills: identical width (start vs end); padding matches date via --add-event-datetime-pill-pad-x on stack */
.add-event-input--date[type="time"] {
    width: min(100%, var(--add-event-time-pill-width, 6.35rem));
}

.add-event-input--date::placeholder {
    color: var(--add-event-placeholder);
    opacity: 1;
}

/* Validation: missing / invalid required fields (add + edit v2) — single hairline, softer than border+shadow stack */
.add-event-field--error .add-event-input:not(.add-event-input--date),
.add-event-field--error .add-event-textarea,
.add-event-field--error .add-event-custom-select__trigger {
    border-color: rgba(220, 38, 38, 0.5) !important;
    box-shadow: none;
}

/* Date/time pills: use a visible border (not hairline box-shadow) so errors read like other fields; WebKit date is easy to miss otherwise */
.add-event-field--error .add-event-input--date {
    border: 1px solid rgba(220, 38, 38, 0.65) !important;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15) !important;
}

/* Artists: error ring on the composer shell (matches other bordered fields), not the inner borderless input */
.add-event-field--error .add-event-artist-composer {
    border-color: rgba(220, 38, 38, 0.5) !important;
    box-shadow: none;
}

/* Genres: error ring on the Select/Edit Genre button (full-width + inline hint-row variants) */
.add-event-field--error .add-event-genre-open-btn {
    border-color: rgba(220, 38, 38, 0.5) !important;
    box-shadow: none;
}

.add-event-field--error .add-event-artist-composer:focus-within {
    border-color: rgba(220, 38, 38, 0.5) !important;
    box-shadow: none;
}

:root[data-theme="dark"] .add-event-field--error .add-event-input:not(.add-event-input--date),
:root[data-theme="dark"] .add-event-field--error .add-event-textarea,
:root[data-theme="dark"] .add-event-field--error .add-event-custom-select__trigger {
    border-color: rgba(248, 113, 113, 0.5) !important;
    box-shadow: none;
}

:root[data-theme="dark"] .add-event-field--error .add-event-input--date {
    border: 1px solid rgba(248, 113, 113, 0.65) !important;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.18) !important;
}

:root[data-theme="dark"] .add-event-field--error .add-event-artist-composer {
    border-color: rgba(248, 113, 113, 0.5) !important;
    box-shadow: none;
}

:root[data-theme="dark"] .add-event-field--error .add-event-artist-composer:focus-within {
    border-color: rgba(248, 113, 113, 0.5) !important;
    box-shadow: none;
}

:root[data-theme="dark"] .add-event-field--error .add-event-genre-open-btn {
    border-color: rgba(248, 113, 113, 0.5) !important;
    box-shadow: none;
}

/* WebKit: do not stretch edit to full pill height (that pins text to the top on iOS); inner flex centres segments */
.add-event-input--date::-webkit-datetime-edit {
    padding: 0;
    margin: 0;
}

.add-event-input--date::-webkit-datetime-edit-fields-wrapper {
    box-sizing: border-box;
    padding: 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

/* Chrome (incl. desktop mobile emulation): keep minutes visible beside the clock icon */
.add-event-input--date[type="time"]::-webkit-datetime-edit-fields-wrapper {
    min-width: 3.75em;
    padding: 0 4px;
}

.add-event-input--date[type="time"]::-webkit-datetime-edit-hour-field,
.add-event-input--date[type="time"]::-webkit-datetime-edit-minute-field {
    min-width: 1.35em;
}

.add-event-input--date::-webkit-calendar-picker-indicator {
    margin-inline-start: -1px;
    padding: 0;
    margin-right: 0;
    opacity: 0.75;
}

/* Narrow viewports: subgrid + max-content can overflow/overlap on iOS; use equal fr columns instead */
@media (max-width: 480px) {
    .add-event-datetime-stack {
        display: block !important;
    }

    #addEventEndDateBlock {
        display: block !important;
    }

    #addEventEndDateBlock[hidden] {
        display: none !important;
    }

    .add-event-datetime-stack {
        max-width: min(100%, 22rem) !important;
    }

    .add-event-datetime-stack > .add-event-row--2.add-event-row--datetime {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        grid-column: auto !important;
        width: 100%;
        max-width: 100%;
        column-gap: 12px !important;
        gap: 10px 12px !important;
    }

    .add-event-form .add-event-datetime-stack .add-event-row--2.add-event-row--datetime > .add-event-field {
        min-width: 0;
        max-width: 100%;
    }

    .add-event-form .add-event-datetime-stack .add-event-row--2.add-event-row--datetime .add-event-input--date[type="date"] {
        width: max-content;
        max-width: 100%;
        min-width: 0;
    }

    .add-event-form .add-event-datetime-stack .add-event-row--2.add-event-row--datetime .add-event-input--date[type="time"] {
        width: min(100%, var(--add-event-time-pill-width, 6.35rem));
        max-width: 100%;
        min-width: 0;
    }
}

:root[data-theme="dark"] .add-event-input--date {
    background: rgba(255, 255, 255, 0.06);
}

.add-event-input:focus,
.add-event-textarea:focus,
.add-event-select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(119, 172, 162, 0.2);
}

/* Keep validation styling when focused: .add-event-input:focus beats .add-event-field--error .add-event-input--date without this */
.add-event-form .add-event-field--error .add-event-input:focus,
.add-event-form .add-event-field--error .add-event-textarea:focus,
.add-event-form .add-event-field--error .add-event-select:focus {
    border-color: rgba(220, 38, 38, 0.65) !important;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.2), 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.add-event-form .add-event-field--error .add-event-input--date:focus {
    border-color: rgba(220, 38, 38, 0.75) !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.22) !important;
}

:root[data-theme="dark"] .add-event-form .add-event-field--error .add-event-input:focus,
:root[data-theme="dark"] .add-event-form .add-event-field--error .add-event-textarea:focus,
:root[data-theme="dark"] .add-event-form .add-event-field--error .add-event-select:focus {
    border-color: rgba(248, 113, 113, 0.65) !important;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.2), 0 0 0 3px rgba(248, 113, 113, 0.12) !important;
}

:root[data-theme="dark"] .add-event-form .add-event-field--error .add-event-input--date:focus {
    border-color: rgba(248, 113, 113, 0.78) !important;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.22) !important;
}

.add-event-textarea {
    resize: vertical;
    min-height: 88px;
}

.add-event-textarea--single {
    min-height: 56px;
}

.add-event-artist-composer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 6px 10px;
    font-size: 16px;
    line-height: 1.45;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: text;
}

.add-event-artist-composer:focus-within {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(119, 172, 162, 0.2);
}

.add-event-artist-pills {
    display: contents;
}

.add-event-artist-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    padding: 2px 3px 2px 10px;
    border-radius: 999px;
    background: rgba(119, 172, 162, 0.12);
    border: 1px solid rgba(119, 172, 162, 0.35);
    color: var(--text);
    font-size: 14px;
    font-weight: 400;
}

.add-event-artist-pill-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.add-event-artist-pill-remove {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.add-event-artist-pill-remove:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text);
}

:root[data-theme="dark"] .add-event-artist-pill-remove:hover {
    background: rgba(255, 255, 255, 0.08);
}

.add-event-artist-entry {
    flex: 1 1 140px;
    min-width: 100px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    line-height: 1.45;
    font-family: inherit;
    color: var(--text);
    padding: 4px;
}

.add-event-artist-entry::placeholder {
    color: var(--add-event-placeholder);
    opacity: 1;
}

/* WebKit: native placeholder can paint over typed text in narrow flex chip inputs */
.add-event-artist-entry:not(:placeholder-shown)::placeholder {
    opacity: 0;
}

.add-event-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8 .5 0h11z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    color: var(--text);
    font-weight: 400;
}

.add-event-select::placeholder {
    color: var(--add-event-placeholder);
    opacity: 1;
}

:root[data-theme="dark"] .add-event-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a1a1aa' d='M6 8 .5 0h11z'/%3E%3C/svg%3E");
}

/* Event Type: custom dropdown (full width of column; list matches trigger type) */
.add-event-custom-select {
    --add-event-custom-select-font-size: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

.add-event-custom-select.is-open {
    z-index: 30;
}

.add-event-custom-select__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    font-size: var(--add-event-custom-select-font-size);
    font-weight: 400;
    font-family: inherit;
    line-height: 1.45;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    padding-right: 36px;
    cursor: pointer;
    text-align: left;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8 .5 0h11z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

:root[data-theme="dark"] .add-event-custom-select__trigger {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a1a1aa' d='M6 8 .5 0h11z'/%3E%3C/svg%3E");
}

.add-event-custom-select__trigger:focus {
    outline: none;
}

.add-event-custom-select__trigger:focus-visible {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(119, 172, 162, 0.2);
}

.add-event-custom-select__trigger--placeholder .add-event-custom-select__value {
    color: var(--add-event-placeholder);
    font-weight: 400;
}

.add-event-custom-select__value {
    flex: 1;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
}

.add-event-custom-select__list {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    box-sizing: border-box;
    font-size: var(--add-event-custom-select-font-size);
    font-weight: 400;
    line-height: 1.45;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.add-event-custom-select__list--drop-up {
    top: auto;
    bottom: calc(100% + 4px);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] .add-event-custom-select__list {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] .add-event-custom-select__list--drop-up {
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.45);
}

/* Add/edit sheet: keep ticket URL field above keyboard + sticky footer when scrolling into view */
#eventTicketUrl,
#editEvtTicketUrl {
    scroll-margin-top: 16px;
    scroll-margin-bottom: min(55vh, 420px);
}

.add-event-custom-select__option {
    padding: 12px 14px;
    color: var(--add-event-placeholder);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.add-event-custom-select__option:hover,
.add-event-custom-select__option:active {
    background: rgba(119, 172, 162, 0.12);
}

.add-event-custom-select__option.is-selected {
    color: var(--text);
    font-weight: 500;
}

.add-event-inline-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 10px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

.add-event-inline-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

/* Toggle switch (Multiple nights) */
.add-event-switch {
    position: relative;
    width: 51px;
    height: 31px;
    flex-shrink: 0;
    cursor: pointer;
}

.add-event-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.add-event-switch__slider {
    position: absolute;
    inset: 0;
    background: #e5e5ea;
    border-radius: 31px;
    transition: background 0.2s ease;
}

.add-event-switch__slider::after {
    content: '';
    position: absolute;
    width: 27px;
    height: 27px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.add-event-switch input:checked + .add-event-switch__slider {
    background: #34c759;
}

.add-event-switch input:checked + .add-event-switch__slider::after {
    transform: translateX(20px);
}

:root[data-theme="dark"] .add-event-switch__slider {
    background: #3a3a3c;
}

.add-event-flyer-designer {
    margin-top: 14px;
}

.add-event-flyer-designer__fields {
    margin-top: 10px;
}

.add-event-flyer-designer__fields > .add-event-label {
    margin-bottom: 8px;
}

.designer-selected-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.14));
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.03);
    font-size: 0.95rem;
    font-weight: 600;
}

.designer-selected-row[hidden],
.designer-new-panel[hidden],
.designer-selected-wrap[hidden] {
    display: none !important;
}

.designer-selected-wrap {
    margin-top: 8px;
}

.designer-selected-row__label {
    min-width: 0;
    flex: 1 1 auto;
}

.designer-selected-row__ig-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}

.designer-selected-row__ig-link:hover {
    color: var(--accent-pink, #77ACA2);
}

.designer-selected-row__actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

.designer-selected-row__edit,
.designer-selected-row__clear {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted, #6b7280);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}

.designer-selected-row__edit:hover,
.designer-selected-row__clear:hover {
    color: var(--text, #111);
    background: rgba(15, 23, 42, 0.06);
}

.designer-selected-row__delete {
    appearance: none;
    border: 0;
    background: transparent;
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    padding: 6px 2px 0;
    text-align: left;
}

.designer-selected-row__delete:hover {
    text-decoration: underline;
}

.designer-new-panel {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.14));
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
}

.designer-new-panel__fields-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}

.designer-new-panel__fields-row > .add-event-field {
    flex: 1 1 110px;
    min-width: 0;
    margin: 0;
}

.designer-new-panel__fields-row > .add-event-field--ig {
    flex: 1 1 140px;
}

.designer-new-panel__loc-row {
    margin-top: 10px;
}

.designer-new-panel__loc-row > .add-event-field--loc {
    margin: 0;
    max-width: 100%;
}

.designer-new-panel__page-toggle {
    margin-top: 12px;
    align-items: center;
}

.designer-new-panel__page-toggle .add-event-hint {
    margin: 4px 0 0;
}

.designer-new-panel__loc-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.designer-new-panel__loc-controls .add-event-input {
    flex: 1 1 auto;
    min-width: 0;
}

.designer-new-panel__loc-btn {
    appearance: none;
    flex: 0 0 auto;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.22));
    border-radius: 8px;
    background: #fff;
    color: var(--text, #111);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.designer-new-panel__loc-btn:hover {
    background: rgba(15, 23, 42, 0.04);
}

.designer-new-panel__actions {
    display: flex;
    justify-content: stretch;
    gap: 8px;
    margin-top: 12px;
}

.designer-new-panel__btn {
    appearance: none;
    flex: 1 1 50%;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.designer-new-panel__btn--cancel {
    border: 1.5px solid #111;
    color: #111;
}

.designer-new-panel__btn--save {
    border: 1.5px solid #2563eb;
    color: #2563eb;
}

.designer-new-panel__btn--cancel:hover,
.designer-new-panel__btn--save:hover {
    background: rgba(15, 23, 42, 0.03);
}

:root[data-theme='dark'] .designer-new-panel__btn {
    background: transparent;
}

:root[data-theme='dark'] .designer-new-panel__btn--cancel {
    border-color: var(--text, #e8e4ed);
    color: var(--text, #e8e4ed);
}

:root[data-theme='dark'] .designer-new-panel__loc-btn {
    background: transparent;
    color: var(--text, #e8e4ed);
    border-color: color-mix(in srgb, var(--text) 35%, transparent);
}

/* Designers directory — same bordered square cards as Artists + Follow/chev trail. */
body.designers-channels-directory-page {
    --artist-dir-thumb: 5.25rem;
}

body.designers-channels-directory-page .promoter-channels-page__list-canvas {
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
    background: transparent;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

body.designers-channels-directory-page .promoter-channels-page__list-canvas .promoter-channels-page__card {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

body.designers-channels-directory-page .promoter-channels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: max(4px, env(safe-area-inset-left, 0px));
    padding-right: max(4px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

body.designers-channels-directory-page .promoter-channels-list__divider {
    display: none;
}

body.designers-channels-directory-page .promoter-channels-list__rowwrap--artist-dir {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 0 12px 0 0;
    overflow: clip;
    contain: none;
    border: 2px solid var(--border, rgba(15, 23, 42, 0.1));
    border-radius: 12px;
    background: var(--bg, #fff);
    box-sizing: border-box;
}

:root[data-theme='dark'] body.designers-channels-directory-page .promoter-channels-list__rowwrap--artist-dir {
    border-color: color-mix(in srgb, var(--text) 14%, transparent);
    background: color-mix(in srgb, var(--text) 3%, var(--bg));
}

/* Very translucent blurred icon wash in the white text/button area only (layout unchanged). */
body.designers-channels-directory-page .promoter-channels-list__rowwrap--artist-dir.promoter-channels-list__rowwrap--designer-wash {
    position: relative;
}

body.designers-channels-directory-page .promoter-channels-list__rowwrap--artist-dir.promoter-channels-list__rowwrap--designer-wash::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: var(--artist-dir-thumb);
    z-index: 0;
    background-image: var(--designer-card-wash);
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.05);
    opacity: 0.16;
    pointer-events: none;
    transform: scale(1.25);
}

body.designers-channels-directory-page .promoter-channels-list__rowwrap--artist-dir.promoter-channels-list__rowwrap--designer-wash > .promoter-channels-list__row--artist-card,
body.designers-channels-directory-page .promoter-channels-list__rowwrap--artist-dir.promoter-channels-list__rowwrap--designer-wash > .promoter-channels-list__trail {
    position: relative;
    z-index: 1;
}

:root[data-theme='dark'] body.designers-channels-directory-page .promoter-channels-list__rowwrap--artist-dir.promoter-channels-list__rowwrap--designer-wash::before {
    opacity: 0.12;
}

body.designers-channels-directory-page .promoter-channels-list__rowwrap--artist-dir > .promoter-channels-list__row--artist-card {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: var(--artist-dir-thumb);
    height: var(--artist-dir-thumb);
    gap: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

body.designers-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square {
    flex: 0 0 var(--artist-dir-thumb);
    width: var(--artist-dir-thumb);
    height: var(--artist-dir-thumb);
    min-width: var(--artist-dir-thumb);
    min-height: var(--artist-dir-thumb);
    max-width: var(--artist-dir-thumb);
    max-height: var(--artist-dir-thumb);
    align-self: stretch;
    margin: 0;
    flex-shrink: 0;
    overflow: clip;
    border-top-left-radius: 10px;
}

body.designers-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-img,
body.designers-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 0 12px 12px 0;
    object-fit: cover;
}

body.designers-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__content {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    /* Match Artists: gap after icon + room before Follow trail. */
    padding: 8px 12px 8px 0;
    box-sizing: border-box;
}

body.designers-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__name {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.designers-channels-directory-page .promoter-channels-list__genres {
    display: block;
    min-width: 0;
    max-width: 100%;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-secondary, #64748b);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.designers-channels-directory-page .promoter-channels-list__event-count {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
}

body.designers-channels-directory-page .promoter-channels-list__trail {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 0;
    padding-right: 2px;
    margin-left: auto;
}

body.designers-channels-directory-page .designer-dir-follow-btn {
    transform: none;
    align-self: center;
    margin: 0;
    padding: 6px 11px;
    font-size: 0.76rem;
    border-radius: 10px;
}

.designer-suggest-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.designer-suggest-list__text {
    min-width: 0;
    flex: 1 1 auto;
}

.view-event-page__flyer-designed-by {
    margin: 8px auto 0;
    max-width: 560px;
    width: 100%;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    color: var(--muted-text, #6b7280);
}

.view-event-page__flyer-designed-by-label {
    color: var(--muted-text, #6b7280);
    font-weight: 650;
}

.view-event-page__flyer-designed-by-name {
    color: #2563eb;
    font-weight: 650;
}

a.view-event-page__flyer-designed-by-name--link {
    color: #2563eb;
    font-weight: 650;
    text-decoration: none;
}

a.view-event-page__flyer-designed-by-name--link:hover {
    text-decoration: underline;
}

.view-event-page__flyer-designed-by-ig {
    color: #2563eb;
    font-weight: 650;
    text-decoration: none;
}

.view-event-page__flyer-designed-by-ig:hover {
    text-decoration: underline;
}

/* Past gig create mode — hide fields not used for wall posts */
html.giggly-add-event--past-gig #addEventRecurringDatesSection,
html.giggly-add-event--past-gig #addEventFestivalProMount,
html.giggly-add-event--past-gig .add-event-field:has(#eventType),
html.giggly-add-event--past-gig .add-event-field:has(#eventTypeTrigger),
html.giggly-add-event--past-gig .add-event-field:has(#eventStatus),
html.giggly-add-event--past-gig .add-event-field:has(#eventStatusTrigger),
html.giggly-add-event--past-gig .add-event-field:has(#eventTicketUrl),
html.giggly-add-event--past-gig .add-event-field:has(#eventMultiDay),
html.giggly-add-event--past-gig .add-event-field:has(#addEventRecurringToggle) {
    display: none !important;
}

html.giggly-add-event--past-gig-v2 #addEventFestivalProMount,
html.giggly-add-event--past-gig-v2 .festival-pro-form {
    display: none !important;
}

html.giggly-add-event--past-gig #addEventGenreReq,
html.giggly-add-event--past-gig #ticketLinkMandatoryHint {
    display: none !important;
}

/* Settings */
.settings-section {
    margin-bottom: 24px;
}

.settings-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text);
}

.settings-item {
    margin-bottom: 16px;
}

.settings-item label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.settings-value {
    font-size: 16px;
    color: var(--text);
    margin: 0;
}

.danger-button {
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    background: var(--accent-pink);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.danger-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.danger-button:active {
    transform: translateY(0);
}

/* ==========================================================================
   8. Responsive (Mobile)
   ========================================================================== */

@media (max-width: 600px) {
    body {
        padding: 16px;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    h1 {
        font-size: 48px;
    }

    .landing-logo-link {
        margin-bottom: 24px;
    }

    .logo {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
    }

    p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .auth-box {
        max-width: 100%;
        padding: 16px;
        margin-bottom: 20px;
    }

    .auth-input {
        font-size: 16px;
    }

    .auth-button {
        font-size: 16px;
    }

    .theme-toggle {
        font-size: 14px;
    }

    .app-header h1,
    .app-header h1#appTitle {
        font-size: 20px;
    }

    .filter-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        width: auto;
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .event-day {
        font-size: 28px;
    }

    .event-header {
        align-items: flex-start;
    }

    .event-title {
        font-size: 16px;
        line-height: 1.3;
    }

    .event-title.event-card-v2__title {
        font-size: 16px;
        line-height: 1.3;
    }

    .heart-button {
        margin-top: -4px;
    }
}

.search-icon {
    color: rgba(60, 60, 67, 0.6);
    flex-shrink: 0;
    margin-left: 4px;
}

/*
 * Main feed: magnifier is decorative — capture handler focuses the field and stops propagation so taps
 * never reach the month nav layer below (pointer-events:auto keeps the icon in the hit-test tree).
 */
#searchContainer .search-icon {
    pointer-events: auto;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme="dark"] .search-icon {
    color: rgba(235, 235, 245, 0.6);
}

/* Full-screen flyer processing (resize / compress / save) */
.flyer-processing-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.flyer-processing-overlay[hidden] {
    display: none !important;
}

.flyer-processing-overlay__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 28px 32px;
    max-width: 300px;
    text-align: center;
    border-radius: 16px;
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.flyer-processing-overlay__spinner {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.12);
    border-top-color: var(--accent-purple);
    animation: flyer-processing-spin 0.75s linear infinite;
}

:root[data-theme="dark"] .flyer-processing-overlay__spinner {
    border-color: rgba(255, 255, 255, 0.14);
    border-top-color: var(--accent-purple);
}

@keyframes flyer-processing-spin {
    to {
        transform: rotate(360deg);
    }
}

.flyer-processing-overlay__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    color: var(--text-secondary);
}

/* —— Dedicated event detail page (/event.html) —— */
/* html:has() paints the canvas behind fixed body; :has() is duplicated on .giggly-view-event-page for older iOS. */
html:has(.view-event-page),
html.giggly-view-event-page {
    height: 100%;
    height: 100lvh;
    min-height: 100%;
    min-height: -webkit-fill-available;
    min-height: 100lvh;
    background: var(--bg);
    overscroll-behavior: none;
    overflow: hidden;
}

html[data-theme='dark']:has(.view-event-page),
html[data-theme='dark'].giggly-view-event-page {
    color-scheme: dark;
}

html[data-theme='light']:has(.view-event-page),
html[data-theme='light'].giggly-view-event-page {
    color-scheme: light;
}

/* Event page h1 uses #eventPageTitle reset; keep any other h1 margins tidy if added later. */
.view-event-page h1 {
    margin-block-start: 0;
    margin-block-end: 0;
}

.view-event-page {
    /* Match promoter/venue channel topbar clearance (pc-topbar). */
    --view-event-header-offset: calc(env(safe-area-inset-top, 0px) + 52px);
    margin: 0;
    /* Reset global body padding (landing) — without this, iOS shows a light “frame” around the fixed page. */
    padding: 0;
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    height: 100lvh;
    min-height: 100%;
    min-height: -webkit-fill-available;
    max-height: 100vh;
    max-height: 100lvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overscroll-behavior: none;
    overflow: hidden;
    touch-action: pan-y;
}

.view-event-page__header.pc-topbar {
    z-index: 30;
}

.view-event-page__logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
}

.view-event-page__main {
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 16px max(24px, env(safe-area-inset-bottom, 0px));
    /* Single source of truth: content (and scrollport) starts below fixed header — do not also margin the flyer or use sticky top: same value (that doubled the gap on iOS). */
    padding-top: var(--view-event-nav-bottom, var(--view-event-header-offset));
    box-sizing: border-box;
    /* Lock horizontal scroll: full-bleed flyer stays width:100% of this box; visible-x caused sideways wobble on iOS. */
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

/*
 * Full-area loading layer: keeps layout stable when the article is shown (no in-flow gap collapse)
 * and avoids a blank frame from the old article opacity fade-in.
 */
.view-event-page__main > #eventPageLoading.view-event-page__loading {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 48px 16px 64px;
    background: var(--bg);
}

.view-event-page__main > #eventPageLoading.view-event-page__loading[hidden] {
    display: none !important;
}

/* Hero flyer: edge-to-edge horizontal only; keep same padding-top as normal main. */
.view-event-page__main.view-event-page__main--with-hero-flyer {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.view-event-page__main.view-event-page__main--with-hero-flyer .view-event-page__article {
    max-width: none;
    width: 100%;
    /* overflow:visible so position:sticky works reliably on iOS; main clips horizontal overflow. */
    overflow: visible;
}

.view-event-page__main.view-event-page__main--with-hero-flyer .view-event-page__scroll-region {
    padding-top: 0;
    width: 100%;
    overflow-x: hidden;
    touch-action: pan-y;
}

/* Flyer: flush to title below; 100% width (scroll region matches full-bleed main — avoids 100vw + overflow clip). */
.view-event-page__main.view-event-page__main--with-hero-flyer .view-event-page__flyer-hero {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    display: block;
}

.view-event-page__main.view-event-page__main--with-hero-flyer #eventPageFlyer.view-event-page__flyer-hero {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Breathing room between full-bleed flyer and sticky title (only when hero flyer is shown). */
.view-event-page__main.view-event-page__main--with-hero-flyer .view-event-page__sticky-head {
    padding-top: 8px;
}

.view-event-page__main.view-event-page__main--with-hero-flyer .view-event-page__description,
.view-event-page__main.view-event-page__main--with-hero-flyer .view-event-page__artists-section,
.view-event-page__main.view-event-page__main--with-hero-flyer .view-event-page__details-section,
.view-event-page__main.view-event-page__main--with-hero-flyer .view-event-page__artist-list,
.view-event-page__main.view-event-page__main--with-hero-flyer .view-event-page__icons-row,
.view-event-page__main.view-event-page__main--with-hero-flyer .view-event-page__creator-row,
.view-event-page__main.view-event-page__main--with-hero-flyer .view-event-page__moderation-row:not([hidden]) {
    max-width: 560px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

.view-event-page__loading,
.view-event-page__error {
    text-align: center;
    padding: 48px 16px 64px;
    color: var(--text-secondary);
}

.view-event-page__error {
    color: var(--accent-pink);
}

.view-event-page__article {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    /* overflow visible: paired axis rules can turn overflow-y into auto and break sticky; clip on main + scroll-region instead. */
    overflow: visible;
    background: var(--bg);
    /* No transform here — it can break position:fixed descendants vs viewport. */
}

html[data-theme='dark'] .view-event-page__article {
    background: #1a0f2e;
}

/* Title + meta: sticky top:0 — scrollport already begins under nav (main padding-top). */
.view-event-page__sticky-head {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 6;
    background: var(--bg);
    padding: 0 0 14px;
    margin: 0;
    margin-top: 0 !important;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    overscroll-behavior: none;
    /* Contain margin collapse with flyer sibling so no phantom gap. */
    padding-top: 0;
    isolation: isolate;
}

/* Title full width of inner column; edit control lives on the creator row below the description. */
.view-event-page__title-bar {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 8px;
}

.view-event-page__title-bar__grow {
    min-width: 0;
    width: 100%;
}

.view-event-page__creator-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 12px;
}

.view-event-page__creator-row .view-event-page__creator {
    flex: 1;
    min-width: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


.view-event-page__creator-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.view-event-page__edit-icon[hidden],
.view-event-page__creator-row .view-event-page__edit-icon[hidden] {
    display: none !important;
}

.view-event-page__share-icon,
.view-event-page__creator-row .view-event-page__edit-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    text-decoration: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.view-event-page__share-icon-svg,
.view-event-page__edit-icon-svg {
    display: block;
    flex-shrink: 0;
}

.view-event-page__share-icon:hover,
.view-event-page__edit-icon:hover {
    color: var(--text-secondary);
    background: rgba(120, 120, 128, 0.1);
}

.view-event-page__share-icon:focus-visible,
.view-event-page__edit-icon:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

:root[data-theme='dark'] .view-event-page__share-icon,
:root[data-theme='dark'] .view-event-page__edit-icon {
    color: rgba(255, 255, 255, 0.45);
}

:root[data-theme='dark'] .view-event-page__share-icon:hover,
:root[data-theme='dark'] .view-event-page__edit-icon:hover {
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.08);
}

.view-event-page__manage-menu {
    position: relative;
    flex-shrink: 0;
    margin-left: 14px;
}

.view-event-page__manage-menu__trigger {
    cursor: pointer;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--text-secondary, #64748b);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.view-event-page__manage-menu__trigger:hover {
    color: var(--text);
    background: transparent;
}

.view-event-page__manage-menu__trigger:active {
    opacity: 0.65;
}

.view-event-page__manage-actions-modal__content {
    max-width: min(360px, calc(100vw - 32px));
}

/* Popover anchored to ⋯ (modal moved outside scroll region; light scrim + fixed panel). */
.modal.view-event-page__manage-actions-modal--popover {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    background: rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.view-event-page__manage-actions-modal__content--popover {
    padding: 36px 0 0;
    border-radius: 14px;
    background: #d1d5db;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
    overflow: hidden;
    max-width: min(228px, calc(100vw - 28px));
}

:root[data-theme='dark'] .view-event-page__manage-actions-modal__content--popover {
    background: #4b5563;
}

.view-event-page__manage-actions-modal__close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #111827;
}

.view-event-page__manage-actions-modal__content--popover .view-event-page__manage-actions-modal__body {
    padding-top: 0;
}

.view-event-page__manage-actions-modal__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 0 4px;
}

.view-event-page__manage-actions-modal__body--ios {
    gap: 0;
    padding: 0;
}

.view-event-page__manage-ios-row {
    display: block;
    width: 100%;
    margin: 0;
    /* Match inset under the absolute × (36px + ~12px from the right edge of the panel). */
    padding: 14px 52px 14px 12px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #000000;
    font-size: 17px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

.view-event-page__manage-ios-row + .view-event-page__manage-ios-row {
    border-top: 0.5px solid rgba(0, 0, 0, 0.18);
}

:root[data-theme='dark'] .view-event-page__manage-ios-row {
    color: #f9fafb;
}

:root[data-theme='dark'] .view-event-page__manage-ios-row + .view-event-page__manage-ios-row {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.view-event-page__manage-ios-row--destructive {
    color: #b91c1c;
}

:root[data-theme='dark'] .view-event-page__manage-ios-row--destructive {
    color: #fca5a5;
}

.view-event-page__manage-actions-modal__option {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
}

.view-event-page__confirm-modal .modal-content.view-event-page__confirm-modal-content {
    max-width: min(400px, calc(100vw - 32px));
}

.view-event-page__confirm-body {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text);
}

.view-event-page__confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.view-event-page__creator-row .view-event-page__edit-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    text-decoration: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.view-event-page__edit-icon-svg {
    display: block;
    flex-shrink: 0;
}

.view-event-page__edit-icon:hover {
    color: var(--text-secondary);
    background: rgba(120, 120, 128, 0.1);
}

.view-event-page__edit-icon:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

:root[data-theme='dark'] .view-event-page__edit-icon {
    color: rgba(255, 255, 255, 0.45);
}

:root[data-theme='dark'] .view-event-page__edit-icon:hover {
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.08);
}

.view-event-page__sticky-head-inner {
    position: relative;
    max-width: 560px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.view-event-page__main.view-event-page__main--with-hero-flyer .view-event-page__sticky-head-inner {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/*
 * Strip landing-page h1 (72px / huge line box). Title sits in the scroll region so touch/scroll
 * must work normally (no touch-action: none).
 */
#eventPageTitle.view-event-page__title {
    all: unset;
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
    -webkit-tap-highlight-color: transparent;
}

/* Collapse global .event-detail top margin against title row (first detail follows share head). */
.view-event-page__sticky-head-inner > .event-card-v2__details-head + .event-detail {
    margin-top: 0 !important;
}

:root[data-theme='dark'] .view-event-page__sticky-head {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.view-event-page__sticky-head .view-event-page__meta-row {
    margin-bottom: 0;
}

.view-event-page__scroll-region {
    flex: 1;
    min-height: 0;
    min-width: 0;
    /* Block flow: column flex was stretching/shifting sticky vs flyer on iOS WebKit. */
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    overscroll-behavior-x: none;
    padding-top: 0;
    padding-bottom: max(84px, calc(64px + env(safe-area-inset-bottom, 0px)));
    scroll-padding-bottom: max(84px, calc(64px + env(safe-area-inset-bottom, 0px)));
    box-sizing: border-box;
    touch-action: pan-y;
    background: var(--bg);
}

html[data-theme='dark'] .view-event-page__scroll-region {
    background: #1a0f2e;
}

/* While a Spotify player is open: pan-y makes Android Chrome eat all taps inside the
   cross-origin iframe, so allow full touch-action (overflow-x stays hidden regardless). */
.view-event-page__scroll-region.view-event-page__scroll-region--embed-open,
.view-event-page__main.view-event-page__main--with-hero-flyer
    .view-event-page__scroll-region.view-event-page__scroll-region--embed-open {
    touch-action: auto;
}

.view-event-page__scroll-region .event-detail,
.view-event-page__scroll-region .view-event-page__description {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Hero flyer: spans scroll region; line-height/font-size 0 removes stray inline gaps below the image. */
.view-event-page__flyer-hero {
    width: 100%;
    max-width: none;
    position: relative;
    left: auto;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
}

.view-event-page__flyer-hero > * {
    font-size: initial;
}

.view-event-page__flyer-hero .view-event-flyer__img {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
    max-height: none;
    object-fit: unset;
    object-position: top center;
    border-radius: 0;
    background: transparent !important;
    vertical-align: top;
}

/* Constrain flyer to content width on desktop (match event page main content) */
@media (min-width: 841px) {
    .view-event-page__flyer-hero {
        max-width: 840px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Hero has both img + iframe; the unused one stays [hidden]. Some engines still honour
   author height/display on iframe and leave a huge band under the image — force out of flow. */
.view-event-page__flyer-hero .view-event-flyer__img[hidden],
.view-event-page__flyer-hero .view-event-flyer__pdf-frame[hidden] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

:root[data-theme='dark'] .view-event-page__flyer-hero .view-event-flyer__img {
    background: transparent !important;
}

/* Inline PDF: tall viewport only when actually shown (not when [hidden] swaps to image). */
.view-event-page__flyer-hero .view-event-flyer__pdf-frame:not([hidden]) {
    width: 100%;
    height: min(88vh, 1200px);
    border: 0;
    display: block;
    background: var(--bg);
    vertical-align: top;
}

:root[data-theme='dark'] .view-event-page__flyer-hero .view-event-flyer__pdf-frame:not([hidden]) {
    background: var(--bg);
}

/* Legacy class kept on same node for JS; non-hero rules not used on view page. */
.view-event-page__flyer:not(.view-event-page__flyer-hero) {
    margin-bottom: 20px;
}

.view-event-page__meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 20px;
}

/* Grid keeps the status column flush to the content right edge (same line as the overlay edit icon). */
.view-event-page__meta-row-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    width: 100%;
}

/* Chips-only meta (status moved to icons row): single full-width row of type / category / genres. */
.view-event-page__meta-row-inner--chips-only {
    display: block;
    width: 100%;
}

.view-event-page__meta-row .view-event-page__meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    row-gap: 8px;
    column-gap: 8px;
    align-items: center;
    min-width: 0;
}

/* Match feed footer chip metrics (28px / 8px gap) on the standalone event page. */
#eventPageMetaRow .view-event-page__meta-pills.event-card-v2__footer-chips-flow {
    --event-v2-footer-chip-height: 28px;
    --event-v2-footer-chip-font-size: 12px;
}

#eventPageMetaRow .view-event-page__meta-pills.event-card-v2__footer-chips-flow .event-card-v2__pill {
    box-sizing: border-box;
    height: var(--event-v2-footer-chip-height);
    min-height: var(--event-v2-footer-chip-height);
    max-height: var(--event-v2-footer-chip-height);
    padding: 0 10px;
    border-radius: 999px;
    font-size: var(--event-v2-footer-chip-font-size);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.view-event-page__meta-status-slot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    margin-left: 0;
}

.view-event-page__icons-row {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
}

/* Icons row (stars / set times / swap / status) first; chip row (type / category / genres) below. */
.view-event-page__sticky-head-inner .view-event-page__icons-row + .view-event-page__meta-row {
    margin-top: 14px;
}

.view-event-page__icons-row__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Stars / clock / swap (cluster) + event status pill on one row; status right-aligned. */
.view-event-page__icons-row__inner--with-status {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.view-event-page__icons-row__cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.view-event-page__icons-row__status-slot {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

/* Star + count + who-starred — no negative margin: parent scroll areas use overflow-x: hidden
   and would clip the disc ring; keep left edge flush with the chips row + text column. */
.view-event-page__star-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 0;
}

/* Tight star + count inside the cluster. */
.view-event-page__star-stack {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 0;
}

.view-event-page__star-stack > .event-card-v2__heart,
.view-event-page__star-stack > .view-event-page__star-count {
    flex-shrink: 0;
}

.view-event-page__icons-row__inner > .view-event-page__star-actions,
.view-event-page__icons-row__inner > .event-card-v2__clock,
.view-event-page__icons-row__inner > .event-card-v2__ticket-swap,
.view-event-page__icons-row__cluster > .view-event-page__star-actions,
.view-event-page__icons-row__cluster > .event-card-v2__clock,
.view-event-page__icons-row__cluster > .event-card-v2__ticket-swap {
    flex-shrink: 0;
}

.view-event-page__star-count {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 32px;
    min-width: 1em;
    text-align: left;
}

.view-event-page__icons-row .event-card-v2__clock {
    flex-shrink: 0;
    /* Extra air after star / count / who-starred cluster (row gap is 10px). */
    margin-left: 8px;
}

.view-event-page__actions-row[hidden] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
}

/* Meta-row chips: explicit capsule (feed uses 999px; reinforce for view page). */
.view-event-page__meta-row .event-card-v2__pill {
    border-radius: 999px;
    overflow: hidden;
}

/* Match feed footer type chip (transparent border) at event-page pill size (32px / 14px). */
.view-event-page__meta-row .event-card-v2__pill--type {
    border: 1px solid transparent;
}

.view-event-page__meta-row .event-card-v2__pill--genre {
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: #94a3b8 !important;
    opacity: 1;
    -webkit-text-fill-color: #94a3b8;
}

:root[data-theme='dark'] .view-event-page__meta-row .event-card-v2__pill--genre {
    border-color: #71717a !important;
    background: var(--bg) !important;
    color: #a1a1aa !important;
    -webkit-text-fill-color: #a1a1aa;
}

#eventPageMetaRow .view-event-page__meta-pills.event-card-v2__footer-chips-flow .event-card-v2__pill--genre {
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8;
}

:root[data-theme='dark']
    #eventPageMetaRow
    .view-event-page__meta-pills.event-card-v2__footer-chips-flow
    .event-card-v2__pill--genre {
    border-color: #71717a !important;
    color: #a1a1aa !important;
    -webkit-text-fill-color: #a1a1aa;
}

/* Status / ticket control: feed footer uses pill radius; global .ticket-button is 8px. */
.view-event-page__pill-slot .ticket-button,
.view-event-page__meta-status-slot .ticket-button,
.view-event-page__icons-row__status-slot .ticket-button {
    white-space: nowrap;
    border-radius: 999px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    min-height: 32px;
    height: 32px;
    max-height: 32px;
    padding: 0 16px !important;
    font-size: 14px;
    /* Match box height so static <span> labels center like <a> (avoids baseline/line-box drift on WebKit). */
    line-height: 32px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-weight: 600;
    flex-shrink: 0;
}

/* Beat global span.ticket-button--static { display: inline-block; font-weight: 400 }. */
.view-event-page__pill-slot span.ticket-button.ticket-button--static,
.view-event-page__meta-status-slot span.ticket-button.ticket-button--static,
.view-event-page__icons-row__status-slot span.ticket-button.ticket-button--static {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600 !important;
    vertical-align: middle;
    line-height: 32px !important;
}

.view-event-page__pill-slot a.ticket-button:hover,
.view-event-page__meta-status-slot a.ticket-button:hover,
.view-event-page__icons-row__status-slot a.ticket-button:hover {
    transform: none;
}

.view-event-page__artists {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px !important;
}

.view-event-page__artists + .view-event-page__time {
    margin-top: 0 !important;
}

.view-event-page__time {
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 3px !important;
}

.view-event-page__time + .view-event-page__location {
    margin-top: 0 !important;
}

.view-event-page__location {
    margin-bottom: 16px !important;
}

.view-event-page__location:has(+ .view-event-page__promoter:not([hidden])) {
    margin-bottom: 8px !important;
}

.view-event-page__time + .view-event-page__promoter:not([hidden]) {
    margin-top: 6px !important;
}

.view-event-page__promoter {
    margin-bottom: 16px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.view-event-page__promoter[hidden] {
    display: none !important;
}

.view-event-page__promoter-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.view-event-page__promoter-inner .event-card-v2__promoter-line__inner {
    align-items: center;
    color: var(--text);
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.view-event-page__promoter-inner .event-card-v2__promoter-line__inner--avatars:not(.event-card-v2__promoter-line__inner--multi) {
    grid-template-columns: 32px minmax(0, 1fr);
}

/* Dual promoters: same rules as feed cards — row + wrap, flush left with venue row, independent blocks. */
.view-event-page__promoter-inner .event-card-v2__promoter-line__inner--multi {
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
}

.view-event-page__promoter-inner .event-card-v2__promoter-slot {
    grid-template-columns: 32px minmax(0, 1fr);
}

/* Same visual weight as set-times clock (.event-card-v2__clock is 32×32). */
.view-event-page__promoter-inner .event-card-v2__promoter-avatar-wrap {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

:root[data-theme='dark'] .view-event-page__promoter-inner .event-card-v2__promoter-avatar-wrap {
    border-color: rgba(232, 228, 237, 0.2);
}

.view-event-page__promoter-inner .event-card-v2__promoter-avatar-img {
    border-radius: 50%;
    object-fit: cover;
}

.view-event-page__promoter-inner .event-card-v2__promoter-avatar-initials {
    font-size: 0.72rem;
}

/* Match view-event description (kicker) and time row (name). */
.view-event-page__promoter-inner .event-card-v2__promoter-text-col {
    gap: 0;
}

.view-event-page__promoter-inner + .view-event-page__promoter-inner {
    margin-top: 14px;
}

.view-event-page__promoter-inner .event-card-v2__promoter-kicker {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
    color: var(--text-secondary);
}

.view-event-page__promoter-inner .event-card-v2__promoter-name {
    font-size: 14px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--text);
    margin-top: 0;
}

/* Venue (and any) map links on the event page — keep accent blue above the generic name colour. */
.view-event-page__promoter-inner .event-card-v2__promoter-name.location-link,
.view-event-page__promoter-inner a.event-card-v2__promoter-name {
    color: var(--accent-blue);
}

.view-event-page__promoter-inner .event-card-v2__promoter-secondary {
    gap: 10px;
}

.view-event-page__promoter-inner .event-card-v2__promoter-avatar-wrap--secondary {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

:root[data-theme='dark'] .view-event-page__promoter-inner .event-card-v2__promoter-avatar-wrap--secondary {
    border-color: rgba(232, 228, 237, 0.2);
}

.view-event-page__promoter-inner .event-card-v2__promoter-name--secondary {
    font-size: 14px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--text);
}

.view-event-page__promoter-inner .event-card-v2__promoter-slot--secondary::before {
    font-size: 16px;
    line-height: 1.35;
}

.view-event-page__description {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 0 !important;
}

.view-event-page__section-heading {
    margin: 0 0 8px;
    padding: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
    color: var(--text-secondary);
}

.view-event-page__artists-section {
    max-width: 560px;
    width: 100%;
    margin: 4px auto 18px;
    box-sizing: border-box;
}

.view-event-page__artists-section[hidden],
.view-event-page__details-section[hidden] {
    display: none !important;
}

.view-event-page__details-section {
    max-width: 560px;
    width: 100%;
    margin: 8px auto 0;
    box-sizing: border-box;
}

.view-event-page__creator {
    font-size: 14px;
}

.view-event-page__actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
    background: transparent;
}

/* Group-of-people icon: neutral when no stars; blue when heart_count > 0 (not a second star control). */
.view-event-page__star-actions .view-event-page__stars-group {
    padding: 2px 0;
    margin: 0;
}

.view-event-page__stars-group {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 2px;
    margin: 0;
    cursor: pointer;
    color: #9ca3af;
    border-radius: 10px;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.view-event-page__stars-group:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.view-event-page__stars-group:disabled {
    cursor: default;
    opacity: 1;
    pointer-events: none;
}

.view-event-page__stars-group:disabled:focus-visible {
    outline: none;
}

.view-event-page__stars-group--active {
    color: var(--accent-blue);
}

:root[data-theme='dark'] .view-event-page__stars-group {
    color: rgba(255, 255, 255, 0.38);
}

:root[data-theme='dark'] .view-event-page__stars-group--active {
    color: var(--accent-blue);
}

/* No extra horizontal padding — list aligns with .modal-header h2 (both use .modal-content padding only). */
.view-event-page__stars-modal-content {
    position: relative;
}

.view-event-page__stars-modal-body {
    padding: 0 0 16px;
    max-height: min(50vh, 320px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.view-event-page__stars-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 0 2px;
    margin-top: -4px;
}

.view-event-page__stars-modal-footer[hidden] {
    display: none !important;
}

.view-event-page__stars-scope-btn {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 4px 10px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary, #6c757d);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    cursor: pointer;
    touch-action: manipulation;
}

.view-event-page__stars-scope-btn:hover,
.view-event-page__stars-scope-btn:focus-visible {
    color: var(--text);
    border-color: rgba(0, 0, 0, 0.28);
}

.view-event-page__stars-scope-btn[aria-pressed='true'] {
    color: var(--accent-pink, #77ACA2);
    border-color: rgba(119, 172, 162, 0.45);
    background: rgba(119, 172, 162, 0.08);
}

:root[data-theme='dark'] .view-event-page__stars-scope-btn {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(232, 228, 237, 0.72);
}

:root[data-theme='dark'] .view-event-page__stars-scope-btn:hover,
:root[data-theme='dark'] .view-event-page__stars-scope-btn:focus-visible {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.35);
}

:root[data-theme='dark'] .view-event-page__stars-scope-btn[aria-pressed='true'] {
    color: var(--accent-pink, #77ACA2);
    border-color: rgba(119, 172, 162, 0.5);
    background: rgba(119, 172, 162, 0.12);
}

.view-event-page__stars-modal-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.view-event-page__stars-modal-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 16px;
    line-height: 1.35;
    color: var(--text);
}

.view-event-page__stars-modal-list li:last-child {
    border-bottom: none;
}

:root[data-theme='dark'] .view-event-page__stars-modal-list li {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.view-event-page__stars-modal-list a.view-event-page__stars-modal-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.view-event-page__stars-modal-list a.view-event-page__stars-modal-link:hover,
.view-event-page__stars-modal-list a.view-event-page__stars-modal-link:focus-visible {
    color: var(--accent-pink, #77ACA2);
    text-decoration: underline;
}

.view-event-page__stars-modal-loading {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.view-event-page__stars-modal-empty,
.view-event-page__stars-modal-error {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* Feed “who starred” sheet: larger close target + no 300ms tap delay when stacked over month calendar */
#feedStarsModal #feedCloseStarsBtn.modal-close {
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    padding: 6px;
    box-sizing: border-box;
}

body.modal-open #feedStarsModal.modal.active {
    touch-action: auto;
}

.view-event-page__stars-modal-error {
    color: var(--accent-pink);
}

.view-event-page__pill-slot {
    margin-left: auto;
}

/* [hidden] alone loses to display:flex below in some engines; keep import row actually hidden. */
.view-event-page__moderation-row[hidden] {
    display: none !important;
}

.view-event-page__moderation-row:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 280px;
    margin: 20px auto 0;
    box-sizing: border-box;
}

.view-event-page__main:not(.view-event-page__main--with-hero-flyer) .view-event-page__moderation-row:not([hidden]) {
    max-width: 100%;
}

.view-event-page__moderation-row .auth-button {
    width: 100%;
    box-sizing: border-box;
    border-radius: 20px;
    text-align: center;
}

.view-event-page__reject {
    background: transparent;
    border: 1.5px solid var(--text);
    color: var(--text);
}

:root[data-theme='dark'] .view-event-page__reject {
    border-color: rgba(232, 228, 237, 0.55);
    color: var(--text);
}

.event-card-v2__approve-wrap {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme='dark'] .event-card-v2__approve-wrap {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.event-card-v2__approve-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    font-size: 0.95rem;
    border-radius: 14px;
    cursor: pointer;
    border: none;
    background: var(--brand-btn-bg, #468189);
    color: #fff;
    font-weight: 600;
}

.event-card-v2__approve-btn:hover {
    filter: brightness(1.05);
}

/* ========================================
   Venue List Page
   ======================================== */

.venue-search-container {
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 73px;
  z-index: 10;
}

:root[data-theme='dark'] .venue-search-container {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

#venue-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
}

:root[data-theme='dark'] #venue-search {
  border-color: rgba(255, 255, 255, 0.1);
}

.venue-list-container {
  padding: 16px;
  padding-bottom: 100px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.venue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.venue-card {
  padding: 16px;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

:root[data-theme='dark'] .venue-card {
  border-color: rgba(255, 255, 255, 0.06);
}

.venue-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 129, 137, 0.1);
}

/* —— Venues admin list (/admin/venues.html): desktop table + mobile stacked rows —— */
.venue-admin-tip {
    padding: 12px 16px;
    margin-bottom: 12px;
    background: rgba(70, 129, 137, 0.1);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.venue-admin-summary {
    padding: 16px;
    margin-bottom: 16px;
    background: rgba(70, 129, 137, 0.05);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
}

.venue-admin-summary__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: baseline;
}

.venue-admin-summary__row + .venue-admin-summary__row {
    margin-top: 10px;
}

.venue-admin-table-header {
    display: grid;
    /* Name must keep a readable min width in narrow iframes (e.g. settings embed); other columns tightened slightly */
    grid-template-columns: 64px minmax(200px, 1fr) 96px 52px 76px 88px 68px minmax(96px, auto);
    gap: 8px 12px;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    background: var(--bg);
    box-sizing: border-box;
}

.venue-admin-th--id {
    text-align: right;
}

.venue-admin-th--actions {
    min-width: 0;
}

.venue-admin-th--events {
    text-align: center;
}

.venue-admin-th--channel,
.venue-admin-th--verified {
    text-align: center;
}

@media (max-width: 720px) {
    .venue-admin-table-header {
        display: none;
    }
}

.venue-admin-tip--desktop {
    display: block;
}

@media (max-width: 720px) {
    .venue-admin-tip--desktop {
        display: none;
    }
}

.venue-admin-card {
    cursor: default;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* After list reload, scrollIntoView keeps the row clear of the sticky admin header */
.venue-admin-card[data-venue-admin-id] {
    scroll-margin-top: max(96px, calc(env(safe-area-inset-top, 0px) + 80px));
}

.venue-admin-card--has-events {
    background: rgba(70, 129, 137, 0.05);
}

.venue-admin-card--copied {
    background: rgba(70, 129, 137, 0.2) !important;
}

.venue-admin-card__desktop {
    display: grid;
    grid-template-columns: 64px minmax(200px, 1fr) 96px 52px 76px 88px 68px minmax(96px, auto);
    gap: 8px 12px;
    align-items: center;
    font-size: 13px;
    line-height: 1.35;
}

.venue-admin-td--id {
    text-align: right;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venue-admin-td--name {
    min-width: 0;
    font-weight: 600;
    color: var(--text);
    -webkit-text-fill-color: currentColor;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venue-admin-td--city,
.venue-admin-td--status {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.venue-admin-td--events {
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.venue-admin-td--channel,
.venue-admin-td--verified {
    text-align: center;
}

.venue-admin-td--channel select,
.venue-admin-td--verified select {
    max-width: 100%;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.15));
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}

.venue-admin-td--actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.venue-admin-desk-btn {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.15));
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.venue-admin-desk-btn--edit {
    color: var(--accent-blue, #77ACA2f);
    border-color: rgba(119, 172, 162, 0.45);
}

.venue-admin-desk-btn--del {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.4);
}

.venue-admin-desk-btn--approve {
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.45);
    background: rgba(22, 163, 74, 0.08);
}

.venue-admin-desk-btn--pending {
    color: #b45309;
    border-color: rgba(180, 83, 9, 0.45);
    background: rgba(245, 158, 11, 0.1);
}

:root[data-theme='dark'] .venue-admin-desk-btn--approve {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
}

:root[data-theme='dark'] .venue-admin-desk-btn--pending {
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.1);
}

.venue-admin-card__mobile {
    display: none;
    flex-direction: column;
    gap: 8px;
    position: relative;
    padding-top: 4px;
}

.venue-admin-card__mobile:has(.venue-admin-card__mob-actions) {
    padding-top: 44px;
}

.venue-admin-card__mob-actions {
    position: absolute;
    top: 4px;
    right: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    z-index: 2;
}

.venue-admin-mob-btn {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.15));
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.venue-admin-mob-btn--edit {
    color: var(--accent-blue, #77ACA2f);
    border-color: rgba(119, 172, 162, 0.45);
}

.venue-admin-mob-btn--del {
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.35);
}

.venue-admin-mob-btn--approve {
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.45);
    background: rgba(22, 163, 74, 0.08);
}

.venue-admin-mob-btn--pending {
    color: #b45309;
    border-color: rgba(180, 83, 9, 0.45);
    background: rgba(245, 158, 11, 0.1);
}

:root[data-theme='dark'] .venue-admin-mob-btn--approve {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
}

:root[data-theme='dark'] .venue-admin-mob-btn--pending {
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.1);
}

.venue-admin-mob-events-btn {
    border: none;
    background: rgba(119, 172, 162, 0.12);
    color: var(--accent-blue, #77ACA2f);
    font-weight: 700;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.venue-rpc-modal {
    position: fixed;
    inset: 0;
    z-index: 8000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

/* Promoter staff (verified owner/admin): hide platform-only controls in edit modal */
.venue-rpc-modal--staff .promoter-admin-only,
.venue-rpc-modal--staff .venue-admin-only {
    display: none !important;
}

.venue-rpc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.venue-rpc-modal__panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    max-height: min(78vh, 640px);
    overflow: auto;
    border-radius: 14px;
    padding: 16px 18px 14px;
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.venue-rpc-modal__title {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.venue-rpc-modal__hint {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.venue-rpc-modal__hint--inline {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 6px;
}

.venue-rpc-modal__copy-block {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    background: rgba(119, 172, 162, 0.06);
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

.venue-rpc-modal__ev-line {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    font-size: 0.9rem;
}

.venue-rpc-modal__ev-line:last-child {
    border-bottom: none;
}

.venue-rpc-modal__ev-d {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.venue-rpc-modal__empty {
    margin: 0;
    color: var(--text-secondary);
}

.venue-rpc-modal__label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.venue-rpc-modal__section--inline-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.venue-rpc-modal__check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
}

.venue-rpc-modal__check-row input {
    margin-top: 3px;
}

.venue-rpc-modal__hint--tight {
    margin-top: -4px;
    margin-bottom: 8px;
}

.venue-rpc-modal__section--promoter-icon {
    margin-bottom: 4px;
}

.venue-rpc-modal__promoter-icon-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.venue-rpc-modal__promoter-icon-preview-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    box-sizing: border-box;
}

.venue-rpc-modal__promoter-icon-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.venue-rpc-modal__promoter-icon-preview-fallback {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: var(--brand-teal-deep, #468189);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.venue-rpc-modal__promoter-icon-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.venue-rpc-modal__input {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.15));
    font-size: 1rem;
    font-family: inherit;
}

.venue-rpc-modal__textarea {
    min-height: 72px;
    resize: vertical;
}

.venue-rpc-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
}

.venue-rpc-modal__btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    background: var(--accent-purple, #468189);
    color: #fff;
}

.venue-rpc-modal__btn--secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.2));
}

.venue-rpc-modal__btn--danger {
    background: #b91c1c;
    color: #fff;
}

.venue-rpc-modal__panel--wide {
    max-width: min(520px, calc(100vw - 32px));
    max-height: min(90vh, 720px);
    overflow-y: auto;
}

.venue-rpc-modal__section {
    margin-top: 14px;
}

.venue-rpc-modal__subhead {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.venue-rpc-modal__genre-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 6px;
}

.venue-rpc-modal__genre-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text);
}

.venue-rpc-modal__genre-pill input {
    accent-color: var(--accent-purple, #468189);
}

.venue-rpc-modal__category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 10px;
}

.venue-rpc-modal__category-pill {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    background: color-mix(in srgb, var(--text) 4%, var(--bg));
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1.25;
    -webkit-tap-highlight-color: transparent;
}

.venue-rpc-modal__category-pill--active {
    background: color-mix(in srgb, var(--accent-purple, #468189) 22%, var(--bg));
    border-color: var(--accent-purple, #468189);
    color: #4c1d95;
}

:root[data-theme='dark'] .venue-rpc-modal__category-pill--active {
    color: #f3e8ff;
}

.venue-rpc-modal__member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 0;
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    font-size: 14px;
}

.venue-rpc-modal__member-row:last-child {
    border-bottom: none;
}

.venue-rpc-modal__member-role {
    text-transform: capitalize;
    color: var(--text-secondary, #64748b);
    font-size: 13px;
}

.venue-rpc-modal__member-add {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.venue-rpc-modal__member-add .venue-rpc-modal__input {
    flex: 1 1 140px;
    min-width: 0;
}

.venue-rpc-modal__user-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--bg, #ffffff);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.15));
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
}

.venue-rpc-modal__user-suggestion {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    font-size: 14px;
}

.venue-rpc-modal__user-suggestion:last-child {
    border-bottom: none;
}

.venue-rpc-modal__user-suggestion:hover {
    background: var(--hover-bg, rgba(70, 129, 137, 0.08));
}

.venue-rpc-modal__btn--small {
    padding: 4px 10px;
    font-size: 13px;
}

.venue-admin-mob-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
}

.venue-admin-mob-k {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.venue-admin-mob-v {
    text-align: right;
    min-width: 0;
    word-break: break-word;
}

.venue-admin-mob-v--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
}

.venue-admin-mob-line--status-control {
    align-items: center;
    flex-wrap: wrap;
}

.venue-admin-mob-line--status-control .venue-admin-mob-k {
    padding-top: 2px;
}

.venue-admin-mob-v--select-wrap {
    flex: 1 1 100%;
    text-align: left;
    max-width: 100%;
}

@media (min-width: 400px) {
    .venue-admin-mob-line--status-control .venue-admin-mob-v--select-wrap {
        flex: 1 1 auto;
        text-align: right;
        min-width: 0;
    }
}

.venue-admin-mob-status-select {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.18));
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.venue-admin-mob-status-select:disabled {
    opacity: 0.55;
    cursor: wait;
}

:root[data-theme='dark'] .venue-admin-mob-status-select {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 720px) {
    .venue-admin-card:hover {
        transform: none;
    }

    .venue-admin-card__desktop {
        display: none;
    }

    .venue-admin-card__mobile {
        display: flex;
    }
}

/*
 * Venues admin only (/admin/venues.html — embed iframe or full page): 8-col grid is too tight in
 * narrow/modal widths; put venue name on its own full-width row (desktop only). Scoped to #venue-list
 * / #venue-header so promoters-admin (same table classes, fewer columns) keeps the grid.
 */
@media (min-width: 721px) {
    #venue-header.venue-admin-table-header {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px 12px;
        row-gap: 8px;
    }

    #venue-header .venue-admin-th--name {
        flex: 1 1 100%;
        order: -1;
        margin-bottom: 2px;
    }

    #venue-list .venue-admin-card__desktop {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        row-gap: 10px;
    }

    #venue-list .venue-admin-card__desktop .venue-admin-td--name {
        flex: 1 1 100%;
        order: -1;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        font-size: 15px;
        line-height: 1.35;
    }
}

body.venues-page--embed {
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
}

body.venues-page--embed .venue-page-back {
    display: none;
}

body.venues-page--embed .venue-list-container {
    padding-bottom: max(100px, calc(88px + env(safe-area-inset-bottom, 0px)));
}

.venue-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.venue-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.venue-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.venue-type {
  font-size: 11px;
  color: rgba(33, 37, 41, 0.6);
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 7px;
  border-radius: 3px;
  font-weight: 500;
  text-transform: capitalize;
}

:root[data-theme='dark'] .venue-type {
  color: rgba(232, 228, 237, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.verified-badge {
  font-size: 12px;
  color: var(--accent-purple);
  background: rgba(70, 129, 137, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.venue-location {
  color: rgba(33, 37, 41, 0.7);
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.4;
}

:root[data-theme='dark'] .venue-location {
  color: rgba(232, 228, 237, 0.7);
}

.venue-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.venue-capacity {
  color: rgba(33, 37, 41, 0.6);
  font-size: 13px;
  font-weight: 500;
}

:root[data-theme='dark'] .venue-capacity {
  color: rgba(232, 228, 237, 0.6);
}

.venue-events {
  color: var(--accent-pink);
  font-size: 14px;
  font-weight: 500;
}

.loading, .empty-state {
  text-align: center;
  padding: 40px 16px;
  color: rgba(33, 37, 41, 0.7);
}

:root[data-theme='dark'] .loading,
:root[data-theme='dark'] .empty-state {
  color: rgba(232, 228, 237, 0.7);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  background: var(--brand-btn-bg, #468189);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

/* --------------------------------------------------------------------------
   Bottom bar — calendar + ticket wallet icons (slots reserved for future)
   -------------------------------------------------------------------------- */
.bottom-bar.bottom-bar--with-icons {
    /* Must stay fixed: a lone `position: relative` here overrode `.bottom-bar { position: fixed }`
     * and let the bar scroll / be dragged with the page on touch devices. */
    justify-content: space-between;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    gap: 6px;
}

/* Labeled footer pin: expose height to siblings (search / Bar C) so they sit above Bar D. */
#eventsApp:has(> .bottom-bar.bottom-bar--labeled),
#eventsApp:has(.bottom-bar.bottom-bar--labeled) {
    --bottom-bar-height: 72px;
}

/* Labeled footer tabs — icon + label stacked; uniform bordered plates. */
.bottom-bar.bottom-bar--labeled {
    align-items: flex-end;
    /* Beta sits on the plate/icon (overflow), so keep only a 2px top pad. */
    padding-top: 2px;
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
    overflow: visible;
    /* Tight to 64px plates: 2 + 64 + 6 ≈ 72 (safe-area added in stack height). */
    --bottom-bar-height: 72px;
    --bottom-bar-stack-height: calc(var(--bottom-bar-height, 72px) + max(env(safe-area-inset-bottom, 0px), 4px));
    /*
     * Pin the height (was `height: auto`). The side tabs + FAB are absolutely
     * positioned, so an `auto` height was resolved from the in-flow content and
     * drifted per page (font/safe-area/sub-pixel) — the tickets footer rendered
     * taller than My Feed / Events / Directory and "changed footer to footer".
     * A fixed height makes every footer byte-identical. This matches the
     * events/feed inline min-height (base bar + safe-area) so Directory and
     * Tickets are exactly as short as My Feed / Events; the FAB (56px + 16px
     * offset = 72px) still fits inside the ~74px bar.
     */
    min-height: var(--bottom-bar-stack-height);
    height: var(--bottom-bar-stack-height);
}

.bottom-bar--labeled .bottom-bar__cluster {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    flex: 1 1 0;
    min-width: 0;
    z-index: 2;
}

.bottom-bar--labeled .bottom-bar__cluster--left {
    justify-content: flex-start;
}

.bottom-bar--labeled .bottom-bar__cluster--right {
    justify-content: flex-end;
    max-width: calc(50% - 36px);
}

.bottom-bar--labeled .bottom-bar__nav-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    /* Labels share one baseline; icons sit in a fixed slot above. */
    justify-content: flex-end;
    gap: 2px;
    width: auto;
    min-width: 52px;
    max-width: 76px;
    flex: 0 0 auto;
    flex-shrink: 0;
    /* Match Friends & Groups (icon + two label lines) so every plate is the same height. */
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    padding: 4px 7px 4px;
    border-radius: 16px;
    border: none;
    box-sizing: border-box;
    opacity: 1 !important;
    color: #000000;
    background: #ffffff;
    transform: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.bottom-bar--labeled .bottom-bar__nav-item:hover {
    color: #000000;
}

.bottom-bar--labeled .bottom-bar__nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px;
    flex-shrink: 0;
    border-radius: 0;
    background: transparent;
    transition: none;
}

.bottom-bar--labeled .bottom-bar__nav-icon .bottom-bar__calendar-icon,
.bottom-bar--labeled .bottom-bar__nav-icon .bottom-bar__feed-icon,
.bottom-bar--labeled .bottom-bar__nav-icon .bottom-bar__ticket-icon,
.bottom-bar--labeled .bottom-bar__nav-icon .bottom-bar__directory-icon {
    width: 30px;
    height: 30px;
}

.bottom-bar--labeled .bottom-bar__nav-label {
    font-size: 9px;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
    text-align: center;
    white-space: nowrap;
    /* Fixed label band so My Feed / Directory / Tickets share one baseline. */
    height: 22px;
    min-height: 22px;
    max-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

/* Active = solid #77ACA2 plate around icon + label words; white type. */
.bottom-bar--labeled .bottom-bar__icon-btn--active {
    font-weight: 600;
    background: #77aca2;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    opacity: 1 !important;
    border-radius: 16px;
    border: none;
}

.bottom-bar--labeled .bottom-bar__icon-btn--active .bottom-bar__nav-icon {
    background: transparent;
    border-radius: 0;
}

.bottom-bar--labeled .bottom-bar__icon-btn--active .bottom-bar__nav-label,
.bottom-bar--labeled .bottom-bar__icon-btn--active .bottom-bar__nav-label--stacked {
    font-weight: 500;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

/*
 * Brand icon pair: size only here (no display). Visibility is toggled below.
 * Stack both PNGs in one slot so a failed toggle cannot widen the plate.
 */
.bottom-bar--labeled .bottom-bar__nav-icon:has(.bottom-bar__brand-icon),
.bottom-bar--labeled #bottomBarDirectoryBtn .bottom-bar__nav-icon,
.bottom-bar--labeled #bottomBarTicketWalletBtn .bottom-bar__nav-icon,
.bottom-bar--labeled #bottomBarEventsBtn .bottom-bar__nav-icon,
.bottom-bar--labeled #bottomBarPromoterFeedBtn .bottom-bar__nav-icon,
.bottom-bar--labeled #bottomBarFriendsBtn .bottom-bar__nav-icon {
    position: relative;
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px;
}

.bottom-bar--labeled .bottom-bar__brand-icon,
.bottom-bar--labeled #bottomBarDirectoryBtn .bottom-bar__brand-icon,
.bottom-bar--labeled #bottomBarTicketWalletBtn .bottom-bar__brand-icon,
.bottom-bar--labeled #bottomBarEventsBtn .bottom-bar__brand-icon,
.bottom-bar--labeled #bottomBarPromoterFeedBtn .bottom-bar__brand-icon,
.bottom-bar--labeled #bottomBarFriendsBtn .bottom-bar__brand-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.bottom-bar--labeled .bottom-bar__brand-icon--dark,
.bottom-bar--labeled #bottomBarDirectoryBtn .bottom-bar__brand-icon--dark,
.bottom-bar--labeled #bottomBarTicketWalletBtn .bottom-bar__brand-icon--dark,
.bottom-bar--labeled #bottomBarEventsBtn .bottom-bar__brand-icon--dark,
.bottom-bar--labeled #bottomBarPromoterFeedBtn .bottom-bar__brand-icon--dark,
.bottom-bar--labeled #bottomBarFriendsBtn .bottom-bar__brand-icon--dark {
    display: block !important;
}

.bottom-bar--labeled .bottom-bar__brand-icon--light,
.bottom-bar--labeled #bottomBarDirectoryBtn .bottom-bar__brand-icon--light,
.bottom-bar--labeled #bottomBarTicketWalletBtn .bottom-bar__brand-icon--light,
.bottom-bar--labeled #bottomBarEventsBtn .bottom-bar__brand-icon--light,
.bottom-bar--labeled #bottomBarPromoterFeedBtn .bottom-bar__brand-icon--light,
.bottom-bar--labeled #bottomBarFriendsBtn .bottom-bar__brand-icon--light {
    display: none !important;
}

.bottom-bar--labeled .bottom-bar__icon-btn--active .bottom-bar__brand-icon--dark,
.bottom-bar--labeled #bottomBarDirectoryBtn.bottom-bar__icon-btn--active .bottom-bar__brand-icon--dark,
.bottom-bar--labeled #bottomBarTicketWalletBtn.bottom-bar__icon-btn--active .bottom-bar__brand-icon--dark,
.bottom-bar--labeled #bottomBarEventsBtn.bottom-bar__icon-btn--active .bottom-bar__brand-icon--dark,
.bottom-bar--labeled #bottomBarPromoterFeedBtn.bottom-bar__icon-btn--active .bottom-bar__brand-icon--dark,
.bottom-bar--labeled #bottomBarFriendsBtn.bottom-bar__icon-btn--active .bottom-bar__brand-icon--dark {
    display: none !important;
}

.bottom-bar--labeled .bottom-bar__icon-btn--active .bottom-bar__brand-icon--light,
.bottom-bar--labeled #bottomBarDirectoryBtn.bottom-bar__icon-btn--active .bottom-bar__brand-icon--light,
.bottom-bar--labeled #bottomBarTicketWalletBtn.bottom-bar__icon-btn--active .bottom-bar__brand-icon--light,
.bottom-bar--labeled #bottomBarEventsBtn.bottom-bar__icon-btn--active .bottom-bar__brand-icon--light,
.bottom-bar--labeled #bottomBarPromoterFeedBtn.bottom-bar__icon-btn--active .bottom-bar__brand-icon--light,
.bottom-bar--labeled #bottomBarFriendsBtn.bottom-bar__icon-btn--active .bottom-bar__brand-icon--light {
    display: block !important;
}

:root[data-theme='dark'] .bottom-bar--labeled .bottom-bar__nav-item:not(.bottom-bar__icon-btn--active) {
    color: #000000;
    -webkit-text-fill-color: #000000;
    background: #ffffff;
    border: none;
    opacity: 1 !important;
}

:root[data-theme='dark'] .bottom-bar--labeled .bottom-bar__nav-item:hover:not(.bottom-bar__icon-btn--active) {
    color: #000000;
}

:root[data-theme='dark'] .bottom-bar--labeled .bottom-bar__icon-btn--active,
:root[data-theme='dark'] .bottom-bar--labeled a.bottom-bar__icon-btn--active:link,
:root[data-theme='dark'] .bottom-bar--labeled a.bottom-bar__icon-btn--active:visited {
    background: #77aca2 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: none !important;
    opacity: 1 !important;
}

:root[data-theme='dark'] .bottom-bar--labeled .bottom-bar__icon-btn--active .bottom-bar__nav-icon {
    background: transparent;
}

:root[data-theme='light'] .bottom-bar--labeled .bottom-bar__nav-item:not(.bottom-bar__icon-btn--active),
:root[data-theme='light'] .bottom-bar--labeled a.bottom-bar__nav-item:link:not(.bottom-bar__icon-btn--active),
:root[data-theme='light'] .bottom-bar--labeled a.bottom-bar__nav-item:visited:not(.bottom-bar__icon-btn--active),
:root[data-theme='light'] .bottom-bar--labeled .bottom-bar__nav-item:hover:not(.bottom-bar__icon-btn--active),
:root[data-theme='light'] .bottom-bar--labeled a.bottom-bar__nav-item:hover:not(.bottom-bar__icon-btn--active) {
    color: #000000 !important;
    -webkit-text-fill-color: #000000;
    background: #ffffff !important;
    border: none !important;
    opacity: 1 !important;
}

:root[data-theme='light'] .bottom-bar--labeled .bottom-bar__icon-btn--active,
:root[data-theme='light'] .bottom-bar--labeled a.bottom-bar__icon-btn--active:link,
:root[data-theme='light'] .bottom-bar--labeled a.bottom-bar__icon-btn--active:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #77aca2 !important;
    border: none !important;
    opacity: 1 !important;
}

:root[data-theme='light'] .bottom-bar--labeled .bottom-bar__icon-btn--active .bottom-bar__nav-icon {
    background: transparent;
}

/* Centre Friends & Groups tab — same bottom/height as sibling plates (no Y nudge). */
.bottom-bar.bottom-bar--with-icons.bottom-bar--labeled > #bottomBarFriendsBtn,
.bottom-bar.bottom-bar--labeled #bottomBarFriendsBtn,
.bottom-bar.bottom-bar--labeled #bottomBarFriendsBtn.bottom-bar__icon-btn--active,
.bottom-bar.bottom-bar--labeled a#bottomBarFriendsBtn.bottom-bar__icon-btn--active:link,
.bottom-bar.bottom-bar--labeled a#bottomBarFriendsBtn.bottom-bar__icon-btn--active:visited {
    position: absolute !important;
    left: 50%;
    right: auto !important;
    top: auto !important;
    bottom: max(4px, env(safe-area-inset-bottom, 0px)) !important;
    transform: translate(-50%, 0) !important;
    z-index: 3;
    min-width: 64px;
    max-width: 88px;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 4px 7px 4px !important;
    flex-shrink: 0 !important;
}

.bottom-bar--labeled .bottom-bar__nav-label--stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1.05;
    white-space: normal;
    font-size: 8px;
    height: 22px;
    min-height: 22px;
    max-height: 22px;
    flex: 0 0 22px;
}

.bottom-bar--labeled .bottom-bar__nav-icon .bottom-bar__friends-icon {
    width: 30px;
    height: 30px;
    display: block;
    flex-shrink: 0;
    color: inherit;
}

.bottom-bar--labeled .bottom-bar__friends-nav {
    position: relative;
    overflow: visible;
    padding-top: 4px !important;
}

.bottom-bar--labeled .bottom-bar__friends-nav .bottom-bar__nav-icon {
    position: relative;
    overflow: visible;
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px;
    background: transparent !important;
}

.bottom-bar--labeled #bottomBarFriendsBtn.bottom-bar__icon-btn--active,
.bottom-bar--labeled a#bottomBarFriendsBtn.bottom-bar__icon-btn--active:link,
.bottom-bar--labeled a#bottomBarFriendsBtn.bottom-bar__icon-btn--active:visited {
    background: #77aca2 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: none !important;
    transform: translate(-50%, 0) !important;
}

/*
 * Pin Beta to a fixed px box. Directory list pages (Artists/Venues/…) must not
 * inherit a different font metrics / text-size-adjust and resize this chip.
 */
.bottom-bar__friends-beta,
.bottom-bar--labeled .bottom-bar__friends-beta,
.bottom-bar--labeled #bottomBarFriendsBtn .bottom-bar__friends-beta,
#eventsApp > .bottom-bar.bottom-bar--labeled .bottom-bar__friends-beta,
#eventsApp > .bottom-bar.bottom-bar--labeled #bottomBarFriendsBtn .bottom-bar__friends-beta {
    position: absolute !important;
    left: 50% !important;
    /* Sit on the plate edge, flush above the Friends icon. */
    top: -5px !important;
    transform: translateX(-50%) !important;
    z-index: 4;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 11px !important;
    max-height: 11px !important;
    min-height: 11px !important;
    padding: 0 4px !important;
    border-radius: 3px !important;
    background: #2563eb !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 7px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}

.bottom-bar--labeled .bottom-bar__friends-nav.bottom-bar__icon-btn--active .bottom-bar__friends-beta,
.bottom-bar--labeled .bottom-bar__friends-nav:not(.bottom-bar__icon-btn--active) .bottom-bar__friends-beta {
    top: -5px !important;
    transform: translateX(-50%) !important;
    font-size: 7px !important;
    height: 11px !important;
}

/* Legacy centre FAB — keep rules inert if an old snapshot still has it. */
.bottom-bar.bottom-bar--with-icons.bottom-bar--labeled > .add-btn {
    display: none !important;
}

/* Edge tabs stay in flex flow; Feed + Directory use the same midpoint anchors as the icon-only bar. */
.bottom-bar--labeled #bottomBarEventsBtn,
.bottom-bar--labeled #bottomBarTicketWalletBtn {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    flex-shrink: 0 !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
}

.bottom-bar--labeled #bottomBarPromoterFeedBtn,
.bottom-bar--labeled #bottomBarDirectoryBtn {
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 4px 7px 4px !important;
    flex-shrink: 0 !important;
}

.bottom-bar--labeled #bottomBarPromoterFeedBtn {
    position: absolute !important;
    left: calc(
        (max(12px, env(safe-area-inset-left, 0px)) + (44px / 2) + 50%) / 2 + var(--bottom-bar-feed-mid-nudge-x, -3px)
    );
    right: auto !important;
    top: auto !important;
    bottom: max(4px, env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    z-index: 2;
}

.bottom-bar--labeled #bottomBarDirectoryBtn {
    position: absolute !important;
    right: calc(
        (max(12px, env(safe-area-inset-right, 0px)) + (44px / 2) + 50%) / 2
    );
    left: auto !important;
    top: auto !important;
    bottom: max(4px, env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(50%) !important;
    z-index: 2;
}

.bottom-bar--labeled .bottom-bar__icons > a.bottom-bar__icon-btn {
    transform: none;
}

/* Add FAB: true horizontal centre of the bar (out of flex flow so left/right clusters stay balanced). */
.bottom-bar.bottom-bar--with-icons:not(.bottom-bar--labeled) > .add-btn {
    position: absolute;
    left: 50%;
    /* Align FAB centre with side icons (same vertical band as .bottom-bar__icon-btn, not bar+safe-area centre). */
    top: calc((var(--bottom-bar-height) - 56px) / 2);
    transform: translate(-50%, var(--bottom-bar-side-icon-nudge-y, 5px));
    /* Keep below side icons so a wide left cluster cannot swallow taps on the feed (see --events-feed). */
    z-index: 1;
    flex: 0 0 auto;
}

.bottom-bar.bottom-bar--with-icons:not(.bottom-bar--labeled) > .add-btn:hover {
    transform: translate(-50%, var(--bottom-bar-side-icon-nudge-y, 5px)) scale(1.08);
}

.bottom-bar.bottom-bar--with-icons:not(.bottom-bar--labeled) > .add-btn:active {
    transform: translate(-50%, var(--bottom-bar-side-icon-nudge-y, 5px)) scale(0.95);
}

/*
 * Events + feed: calendar stays in normal flow at the bar’s leading edge. Feed is taken out of flow
 * and centred on the midpoint between the calendar tap target centre (.bottom-bar__icon-btn 44px wide)
 * and the add FAB centre (left: 50% on the bar). Leading inset matches the bar’s padding-left.
 */
.bottom-bar.bottom-bar--with-icons .bottom-bar__icons--events-feed {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

/*
 * Vertical match to calendar: `top: 50%` used the full bar (incl. bottom safe padding), flex centres
 * icons only in the row above that — use the same inner band as flex (height − pad − border-top).
 * Then apply the same translateY nudge as `.bottom-bar__icons > a.bottom-bar__icon-btn`.
 */
.bottom-bar.bottom-bar--with-icons #bottomBarPromoterFeedBtn {
    position: absolute;
    left: calc(
        (max(12px, env(safe-area-inset-left, 0px)) + (44px / 2) + 50%) / 2 + var(--bottom-bar-feed-mid-nudge-x, -3px)
    );
    /* Match vertical centre of .bottom-bar__icon-btn row (same as events shell; avoids drift on wallet pages). */
    top: calc((var(--bottom-bar-height) - 44px) / 2);
    transform: translateX(-50%) translateY(var(--bottom-bar-side-icon-nudge-y, 5px));
    z-index: 2;
}

.bottom-bar.bottom-bar--with-icons #bottomBarDirectoryBtn {
    position: absolute;
    right: calc(
        (max(12px, env(safe-area-inset-right, 0px)) + (44px / 2) + 50%) / 2
    );
    top: calc((var(--bottom-bar-height) - 44px) / 2);
    transform: translateX(50%) translateY(var(--bottom-bar-side-icon-nudge-y, 5px));
    z-index: 2;
}

/* Calendar + wallet: match FAB + optical centre (same nudge as #bottomBarPromoterFeedBtn vertical term). */
.bottom-bar.bottom-bar--with-icons .bottom-bar__icons > a.bottom-bar__icon-btn {
    transform: translateY(var(--bottom-bar-side-icon-nudge-y, 5px));
}

/* Mirror cap on the wallet side so both clusters clear the centred FAB (56px + margin). */
.bottom-bar.bottom-bar--with-icons > .bottom-bar__icons--right {
    max-width: calc(50% - 40px);
}

.bottom-bar__icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
}

.bottom-bar__icons--left {
    justify-content: flex-start;
}

.bottom-bar__icons--right {
    justify-content: flex-end;
}

.bottom-bar__icon-slot {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.bottom-bar__ticket-icon,
.bottom-bar__calendar-icon,
.bottom-bar__feed-icon,
.bottom-bar__directory-icon {
    display: block;
    flex-shrink: 0;
    fill: currentColor;
}

.bottom-bar__directory-icon {
    width: 30px;
    height: 30px;
    background: currentColor;
    -webkit-mask: url('/img/noun-directory-4107301.png') center / contain no-repeat;
    mask: url('/img/noun-directory-4107301.png') center / contain no-repeat;
}

/* Directory Bar B: Venues / Promoters / Artists / DJs — equal-width row across the viewport. */
.filter-tabs.filter-tabs--directory .filter-tabs__scroll {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
}

.filter-tabs.filter-tabs--directory .filter-tab.filter-tab--tag {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding-left: 14px;
    padding-right: 14px;
    justify-content: center;
    text-align: center;
}

/* Mobile directory hub (/directory) */
.giggly-directory-hub__main {
    /* Slim side pads so helper copy can use most of the viewport. */
    padding: 0 max(12px, env(safe-area-inset-right)) 140px max(12px, env(safe-area-inset-left));
}

.giggly-directory-hub__content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.giggly-directory-hub__stack {
    width: 100%;
    max-width: min(100%, 760px);
    margin: 0 auto;
    padding: 8px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.giggly-directory-hub__title {
    margin: 0 auto 12px;
    padding: 0;
    width: fit-content;
    max-width: 100%;
    text-align: center;
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #111827;
    background: none;
    -webkit-text-fill-color: #111827;
    background-clip: border-box;
    -webkit-background-clip: border-box;
}

:root[data-theme='dark'] .giggly-directory-hub__title {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.giggly-directory-hub__helper {
    margin: 0 0 14px;
    padding: 0 4px;
    align-self: center;
    width: min(100%, 720px);
    max-width: 720px;
    box-sizing: border-box;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    color: #6b7280;
}

:root[data-theme='dark'] .giggly-directory-hub__helper {
    color: #9ca3af;
}

.giggly-directory-hub__menu {
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    align-self: center;
    gap: 32px;
    margin: clamp(14px, 3vh, 26px) 0 0;
    padding: 0;
    /* Clearly narrower than helper copy (incl. phone widths). */
    width: 240px;
    max-width: 240px;
    box-sizing: border-box;
    --dir-icon-col: 1.75em;
    --dir-icon-col: 1.75cap;
    --dir-icon-gap: 0.55em;
    --dir-link-border: #000;
}

.giggly-directory-hub__link {
    display: flex;
    align-items: center;
    gap: var(--dir-icon-gap);
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 2px solid var(--dir-link-border);
    border-radius: 14px;
    background: var(--bg);
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    font-weight: 700;
    line-height: 1;
    color: #111827;
    text-decoration: none;
    letter-spacing: -0.02em;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.giggly-directory-hub__link-icon {
    flex: 0 0 var(--dir-icon-col);
    width: var(--dir-icon-col);
    align-self: center;
    height: 1.3em;
    height: 1.3cap;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    pointer-events: none;
    transform: translateY(-4px);
}

:root[data-theme='light'] .giggly-directory-hub__link-icon {
    filter: brightness(0);
}

:root[data-theme='dark'] .giggly-directory-hub__link-icon {
    filter: brightness(0) invert(1);
}

.giggly-directory-hub__link-label {
    flex: 0 1 auto;
    line-height: 1;
    text-align: left;
    display: block;
    height: 1em;
    height: 1cap;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    pointer-events: none;
}

/* Designers wordmark reads smaller in its asset — match other hub labels optically. */
.giggly-directory-hub__link--designers .giggly-directory-hub__link-label {
    height: 1.18cap;
}

:root[data-theme='light'] .giggly-directory-hub__link-label {
    filter: brightness(0);
}

:root[data-theme='dark'] .giggly-directory-hub__link-label {
    filter: brightness(0) invert(1);
}

:root[data-theme='dark'] .giggly-directory-hub__menu {
    --dir-link-border: var(--text);
}

:root[data-theme='dark'] .giggly-directory-hub__link {
    color: var(--text);
    background: color-mix(in srgb, var(--bg) 92%, #ffffff 8%);
}

.giggly-directory-hub__festivals-wrap {
    width: 100%;
    box-sizing: border-box;
}

.giggly-directory-hub__link--festivals {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid var(--dir-link-border);
    border-radius: 14px;
}

.giggly-directory-hub__festivals-wrap[hidden] {
    display: none !important;
}

/* Cached has_live hint: paint Festivals with the other hub tiles on first paint. */
html[data-giggly-festivals-live-hint='1'] .giggly-directory-hub__festivals-wrap[hidden] {
    display: block !important;
}

.giggly-directory-hub__link:active {
    opacity: 0.72;
    background-color: color-mix(in srgb, var(--text) 6%, transparent);
}

/* Mobile: hide directory Bar B on standalone list pages; hub never mounts it. */
@media (max-width: 991px) {
    html:not(.giggly-desktop-nav-active) body.promoter-channels-page:not(.giggly-directory-hub-page) #gigglyFilterTabsMount,
    html:not(.giggly-desktop-nav-active) body.promoter-channels-page:not(.giggly-directory-hub-page) #eventsApp > .filter-tabs {
        display: none !important;
        min-height: 0 !important;
        height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        flex: 0 0 0 !important;
    }
}

/* Mobile: list pages opened from /directory use channel-style back topbar instead of Bar A. */
html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page {
    --pc-topbar-clearance: calc(env(safe-area-inset-top, 0px) + 45px);
}

/* Safari tab + from-hub: kill Events chrome-stack padding (shell clearance is enough). */
html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page #eventsApp {
    padding-top: 0 !important;
}

html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page #gigglyAppHeaderBar1Mount,
html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page #gigglyFilterTabsMount {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page #eventsApp > header.app-header {
    display: none !important;
}

html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > .pc-topbar,
html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > header.pc-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 8px;
    padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right)) 4px max(12px, env(safe-area-inset-left));
    box-sizing: border-box;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > .pc-topbar .pc-topbar__back,
html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > header.pc-topbar .pc-topbar__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 6%, transparent);
    color: #111827;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    font-size: 1.1rem;
    font-weight: 700;
}

:root[data-theme='dark'] html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > .pc-topbar .pc-topbar__back,
:root[data-theme='dark'] html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > header.pc-topbar .pc-topbar__back {
    color: var(--text);
}

html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > .pc-topbar .pc-topbar__title,
html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > header.pc-topbar .pc-topbar__title {
    margin: 0;
    padding: 0 4px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #111827;
    background: none;
    -webkit-text-fill-color: #111827;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:root[data-theme='dark'] html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > .pc-topbar .pc-topbar__title,
:root[data-theme='dark'] html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > header.pc-topbar .pc-topbar__title {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > .pc-topbar .pc-topbar__left,
html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > .pc-topbar .pc-topbar__right,
html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > header.pc-topbar .pc-topbar__left,
html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > header.pc-topbar .pc-topbar__right {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > .pc-topbar .pc-topbar__brand-link,
html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > header.pc-topbar .pc-topbar__brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
}

html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > .pc-topbar .pc-topbar__logo,
html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page > header.pc-topbar .pc-topbar__logo {
    width: 34px;
    height: 40px;
    border-radius: 0;
}

html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page .promoter-channels-page__shell {
    padding-top: var(--pc-topbar-clearance);
}

html.giggly-mobile-dir-from-hub:not(.giggly-desktop-nav-active) body.promoter-channels-page .promoter-channels-page__intro .promoter-channels-page__title {
    padding-top: 4px;
}

/* Artist/DJ directory subnav: Subscribed / Brighton / All pills fill the row. */
body.artists-channels-directory-page .promoter-channels-subnav-scroll-wrap,
body.djs-channels-directory-page .promoter-channels-subnav-scroll-wrap {
    justify-content: stretch;
    padding-left: 12px;
    padding-right: 12px;
}

body.artists-channels-directory-page .promoter-channels-subnav--unified,
body.djs-channels-directory-page .promoter-channels-subnav--unified {
    width: 100%;
    max-width: none;
    min-width: 0;
}

body.artists-channels-directory-page .promoter-channels-subnav__pill,
body.djs-channels-directory-page .promoter-channels-subnav__pill {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    padding-left: 14px;
    padding-right: 14px;
    text-align: center;
    justify-content: center;
}

.bottom-bar__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    opacity: 0.72;
    transition: none;
}

.bottom-bar__icon-btn:hover {
    opacity: 1;
}

.bottom-bar__icon-btn--active {
    color: var(--accent-purple);
    opacity: 1;
}

/* Light theme: Bar D side icons — softer grey when inactive, near-black when active */
:root[data-theme='light'] .bottom-bar__icon-btn {
    color: #bcc5ce;
    opacity: 1;
}

:root[data-theme='light'] .bottom-bar__icon-btn:hover {
    color: #8a959f;
}

:root[data-theme='light'] .bottom-bar__icon-btn--active {
    color: #212529;
}

/* Bar D anchors: override browser :visited tint (production users visit every tab). */
:root[data-theme='light'] .bottom-bar.bottom-bar--with-icons:not(.bottom-bar--labeled) a.bottom-bar__icon-btn:link:not(.bottom-bar__icon-btn--active),
:root[data-theme='light'] .bottom-bar.bottom-bar--with-icons:not(.bottom-bar--labeled) a.bottom-bar__icon-btn:visited:not(.bottom-bar__icon-btn--active) {
    color: #bcc5ce !important;
    -webkit-text-fill-color: #bcc5ce;
    text-decoration: none;
}

:root[data-theme='light'] .bottom-bar.bottom-bar--with-icons:not(.bottom-bar--labeled) a.bottom-bar__icon-btn:hover:not(.bottom-bar__icon-btn--active) {
    color: #8a959f !important;
    -webkit-text-fill-color: #8a959f;
}

/* Labeled Bar D: inactive = black icons on white plate, no border. */
:root[data-theme='light'] .bottom-bar.bottom-bar--labeled a.bottom-bar__icon-btn:link:not(.bottom-bar__icon-btn--active),
:root[data-theme='light'] .bottom-bar.bottom-bar--labeled a.bottom-bar__icon-btn:visited:not(.bottom-bar__icon-btn--active),
:root[data-theme='light'] .bottom-bar.bottom-bar--labeled a.bottom-bar__icon-btn:hover:not(.bottom-bar__icon-btn--active) {
    color: #000000 !important;
    -webkit-text-fill-color: #000000;
    background: #ffffff !important;
    border: none !important;
    opacity: 1 !important;
    text-decoration: none;
}

/* Bar D active: white label on teal plate (override :visited / UA link tint) */
:root[data-theme='light'] a#bottomBarEventsBtn.bottom-bar__icon-btn--active,
:root[data-theme='light'] a#bottomBarEventsBtn.bottom-bar__icon-btn--active:link,
:root[data-theme='light'] a#bottomBarEventsBtn.bottom-bar__icon-btn--active:visited,
:root[data-theme='light'] a#bottomBarPromoterFeedBtn.bottom-bar__icon-btn--active,
:root[data-theme='light'] a#bottomBarPromoterFeedBtn.bottom-bar__icon-btn--active:link,
:root[data-theme='light'] a#bottomBarPromoterFeedBtn.bottom-bar__icon-btn--active:visited,
:root[data-theme='light'] a#bottomBarDirectoryBtn.bottom-bar__icon-btn--active,
:root[data-theme='light'] a#bottomBarDirectoryBtn.bottom-bar__icon-btn--active:link,
:root[data-theme='light'] a#bottomBarDirectoryBtn.bottom-bar__icon-btn--active:visited,
:root[data-theme='light'] a#bottomBarTicketWalletBtn.bottom-bar__icon-btn--active,
:root[data-theme='light'] a#bottomBarTicketWalletBtn.bottom-bar__icon-btn--active:link,
:root[data-theme='light'] a#bottomBarTicketWalletBtn.bottom-bar__icon-btn--active:visited,
:root[data-theme='light'] a#bottomBarFriendsBtn.bottom-bar__icon-btn--active,
:root[data-theme='light'] a#bottomBarFriendsBtn.bottom-bar__icon-btn--active:link,
:root[data-theme='light'] a#bottomBarFriendsBtn.bottom-bar__icon-btn--active:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #77aca2 !important;
    border: none !important;
}

:root[data-theme='dark'] #bottomBarEventsBtn.bottom-bar__icon-btn,
:root[data-theme='dark'] #bottomBarPromoterFeedBtn.bottom-bar__icon-btn,
:root[data-theme='dark'] #bottomBarDirectoryBtn.bottom-bar__icon-btn,
:root[data-theme='dark'] #bottomBarTicketWalletBtn.bottom-bar__icon-btn {
    color: #6e6e76;
    opacity: 1;
}

:root[data-theme='dark'] #bottomBarEventsBtn.bottom-bar__icon-btn:hover,
:root[data-theme='dark'] #bottomBarPromoterFeedBtn.bottom-bar__icon-btn:hover,
:root[data-theme='dark'] #bottomBarDirectoryBtn.bottom-bar__icon-btn:hover,
:root[data-theme='dark'] #bottomBarTicketWalletBtn.bottom-bar__icon-btn:hover {
    color: #94949e;
}

:root[data-theme='dark'] .bottom-bar.bottom-bar--with-icons:not(.bottom-bar--labeled) a.bottom-bar__icon-btn:link:not(.bottom-bar__icon-btn--active),
:root[data-theme='dark'] .bottom-bar.bottom-bar--with-icons:not(.bottom-bar--labeled) a.bottom-bar__icon-btn:visited:not(.bottom-bar__icon-btn--active) {
    color: #6e6e76 !important;
    -webkit-text-fill-color: #6e6e76;
    text-decoration: none;
}

:root[data-theme='dark'] .bottom-bar.bottom-bar--with-icons:not(.bottom-bar--labeled) a.bottom-bar__icon-btn:hover:not(.bottom-bar__icon-btn--active) {
    color: #94949e !important;
    -webkit-text-fill-color: #94949e;
}

:root[data-theme='dark'] .bottom-bar.bottom-bar--labeled a.bottom-bar__icon-btn:link:not(.bottom-bar__icon-btn--active),
:root[data-theme='dark'] .bottom-bar.bottom-bar--labeled a.bottom-bar__icon-btn:visited:not(.bottom-bar__icon-btn--active),
:root[data-theme='dark'] .bottom-bar.bottom-bar--labeled a.bottom-bar__icon-btn:hover:not(.bottom-bar__icon-btn--active) {
    color: #000000 !important;
    -webkit-text-fill-color: #000000;
    background: #ffffff !important;
    border: none !important;
    opacity: 1 !important;
    text-decoration: none;
}

:root[data-theme='dark'] a#bottomBarEventsBtn.bottom-bar__icon-btn--active,
:root[data-theme='dark'] a#bottomBarEventsBtn.bottom-bar__icon-btn--active:link,
:root[data-theme='dark'] a#bottomBarEventsBtn.bottom-bar__icon-btn--active:visited,
:root[data-theme='dark'] a#bottomBarPromoterFeedBtn.bottom-bar__icon-btn--active,
:root[data-theme='dark'] a#bottomBarPromoterFeedBtn.bottom-bar__icon-btn--active:link,
:root[data-theme='dark'] a#bottomBarPromoterFeedBtn.bottom-bar__icon-btn--active:visited,
:root[data-theme='dark'] a#bottomBarDirectoryBtn.bottom-bar__icon-btn--active,
:root[data-theme='dark'] a#bottomBarDirectoryBtn.bottom-bar__icon-btn--active:link,
:root[data-theme='dark'] a#bottomBarDirectoryBtn.bottom-bar__icon-btn--active:visited,
:root[data-theme='dark'] a#bottomBarTicketWalletBtn.bottom-bar__icon-btn--active,
:root[data-theme='dark'] a#bottomBarTicketWalletBtn.bottom-bar__icon-btn--active:link,
:root[data-theme='dark'] a#bottomBarTicketWalletBtn.bottom-bar__icon-btn--active:visited,
:root[data-theme='dark'] a#bottomBarFriendsBtn.bottom-bar__icon-btn--active,
:root[data-theme='dark'] a#bottomBarFriendsBtn.bottom-bar__icon-btn--active:link,
:root[data-theme='dark'] a#bottomBarFriendsBtn.bottom-bar__icon-btn--active:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #77aca2 !important;
    border: none !important;
}

:root[data-theme='dark'] .bottom-bar__icon-btn {
    opacity: 0.78;
}

:root[data-theme='dark'] .bottom-bar__icon-btn--active {
    opacity: 1;
}

/* Labeled Bar D uses black/white brand PNGs — never mute them with icon-btn opacity. */
:root[data-theme='dark'] .bottom-bar--labeled .bottom-bar__icon-btn,
:root[data-theme='dark'] .bottom-bar.bottom-bar--labeled .bottom-bar__icon-btn {
    opacity: 1 !important;
}

/* Feed: ticket wallet strip under flyer */
.event-card-v2__flyer-column {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Feed share: sits in .event-card-v2__details-head beside title (below flyer); text column narrows so copy clears the icon */
.event-card-v2__details-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.event-card-v2__details-head__text {
    flex: 1;
    min-width: 0;
}

.event-card-v2__feed-share-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 2px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: rgba(100, 116, 139, 0.92);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.event-card-v2__feed-share-btn:hover {
    color: var(--text);
    background: transparent;
}

.event-card-v2__feed-share-btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.event-card-v2__feed-share-btn-svg {
    display: block;
}

:root[data-theme='dark'] .event-card-v2__feed-share-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
}

:root[data-theme='dark'] .event-card-v2__feed-share-btn:hover {
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
}

/* Author display:block must not beat the HTML hidden attribute (empty strips were visible). */
.event-card-v2__ticket-wallet-banner[hidden],
.event-card-v2__ticket-swap-feed-banner[hidden],
.view-event-flyer__ticket-wallet-banner[hidden],
.view-event-flyer__ticket-swap-feed-banner[hidden],
.view-event-page__draft-publish-banner[hidden],
.view-event-page__draft-badge[hidden] {
    display: none !important;
}

/* View event page: draft badge above the title + dimmed flyer under the Draft Event ribbon */
.view-event-page__draft-badge {
    margin-bottom: 6px;
}

.view-event-page__flyer--draft {
    position: relative;
}

.view-event-page__flyer--draft .view-event-flyer__img {
    opacity: 0.3;
}

.event-card-v2__ticket-wallet-banner {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, #6b0f1a 0%, #9f1239 55%, #b91c1c 100%);
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.event-card-v2__ticket-wallet-banner:active {
    filter: brightness(0.95);
}

.event-card-v2__ticket-swap-feed-banner {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(90deg, #0d9488 0%, #34d399 100%);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.event-card-v2__ticket-swap-feed-banner:active {
    filter: brightness(0.95);
}

/* Event view page: same strip below hero flyer */
.view-event-page__hero-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.view-event-page__flyer-stack {
    width: 100%;
    margin: 0;
    padding: 0;
}

.view-event-page__flyer-stack .view-event-flyer {
    margin-bottom: 0;
}

/* View event: same row as feed cards (ghost share + text column); larger glyph vs 26px title */
.view-event-page__title-share-head.event-card-v2__details-head {
    margin-bottom: 8px;
}

.view-event-page__title-share-head .view-event-page__title-bar {
    margin-bottom: 0;
}

.view-event-page__title-share-head .event-card-v2__feed-share-btn {
    width: 26px;
    height: 26px;
    padding: 3px;
}

.view-event-page__title-share-head .event-card-v2__feed-share-btn-svg {
    width: 26px;
    height: 26px;
}

.view-event-flyer__ticket-wallet-banner {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 0;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, #6b0f1a 0%, #9f1239 55%, #b91c1c 100%);
    -webkit-tap-highlight-color: transparent;
}

.view-event-flyer__ticket-wallet-banner:active {
    filter: brightness(0.95);
}

:root[data-theme='dark'] .event-card-v2__ticket-wallet-banner,
:root[data-theme='dark'] .view-event-flyer__ticket-wallet-banner {
    background: linear-gradient(90deg, #450a0a 0%, #7f1d1d 45%, #b91c1c 100%);
}

.event-card-v2__festival-pro-feed-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin: 6px 0 0;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    text-decoration: none;
    color: #212529;
    background: color-mix(in srgb, #00b5cc 32%, #ffffff);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.event-card-v2__promoter-line + .event-card-v2__festival-pro-feed-banner,
.event-card-v2__venue-promoter-pair + .event-card-v2__festival-pro-feed-banner {
    margin-top: 6px;
}

.event-card-v2__festival-pro-feed-banner:active {
    opacity: 0.88;
}

.event-card--feed-layout-grid .event-card-v2__festival-pro-feed-banner--grid {
    min-height: 72px;
    padding: 10px 12px;
}

.view-event-page__festival-pro-banner,
.event-card-v2__festival-pro-banner {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0 28px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    color: #212529;
    background: #ffffff;
    border: 1.5px solid #212529;
    border-radius: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.event-card-v2__festival-pro-banner {
    margin: 8px 0 14px;
}

.view-event-page__time + .view-event-page__festival-pro-banner {
    margin-top: 6px;
}

.view-event-page__festival-pro-banner + .view-event-page__location {
    margin-top: 4px !important;
}

.view-event-page__festival-pro-banner:active,
.event-card-v2__festival-pro-banner:active {
    opacity: 0.85;
}

.view-event-page__festival-pro-banner[hidden] {
    display: none !important;
}

:root[data-theme='dark'] .view-event-page__festival-pro-banner,
:root[data-theme='dark'] .event-card-v2__festival-pro-banner {
    color: #e8e4ed;
    background: #1a0f2e;
    border-color: #e8e4ed;
}

.view-event-flyer__ticket-swap-feed-banner {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 16px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(90deg, #0d9488 0%, #34d399 100%);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.view-event-flyer__ticket-swap-feed-banner:active {
    filter: brightness(0.95);
}

/* --------------------------------------------------------------------------
   Ticket Wallet page
   -------------------------------------------------------------------------- */
.ticket-wallet-page {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

/* --------------------------------------------------------------------------
   Events browse page (/events)
   -------------------------------------------------------------------------- */
.events-page {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

body.app-mode.events-page .events-page-app {
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.events-page .bottom-bar {
    display: flex;
}

.events-page-app {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-width: var(--giggly-chrome-max-width);
    width: 100%;
    margin: 0 auto;
    padding-bottom: 0;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Following feed page (/feed)
   -------------------------------------------------------------------------- */
.feed-page {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

body.app-mode.feed-page .feed-page-app {
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.feed-page .bottom-bar {
    display: flex;
}

.features-page .bottom-bar {
    display: flex;
}

/* FAQ / features: document scroll (no #eventsContainer); content clears fixed Bar D */
html.giggly-app-active.features-page-root,
html.giggly-app-active:has(body.features-page) {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
    min-height: 100lvh;
}

body.features-page.app-mode {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
    min-height: 100lvh;
    -webkit-overflow-scrolling: touch;
}

@supports (-webkit-touch-callout: none) {
    html.giggly-app-active.features-page-root,
    html.giggly-app-active:has(body.features-page) {
        height: auto !important;
        min-height: -webkit-fill-available;
    }
}

.features-page .app-header h1,
.features-page #appTitle {
    color: var(--text) !important;
    background: none !important;
    -webkit-text-fill-color: var(--text) !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
}

.feed-page-app {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-width: var(--giggly-chrome-max-width);
    width: 100%;
    margin: 0 auto;
    padding-bottom: 0;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Instagram-style user profile feed (/feed) — mobile only
   -------------------------------------------------------------------------- */
html.giggly-user-feed-profile #followingFeedStandaloneTitle {
    display: none !important;
    min-height: 0 !important;
}

/* Keep Bar A sticky; profile + grid scroll underneath it. */
html.giggly-user-feed-profile #gigglyAppHeaderBar1Mount {
    position: sticky;
    top: 0;
    z-index: 520;
    flex: 0 0 auto;
}

html.giggly-user-feed-profile #eventsApp > header.app-header {
    position: sticky;
    top: 0;
    z-index: 520;
    flex: 0 0 auto;
    width: 100%;
    max-width: var(--giggly-chrome-max-width);
    margin: 0 auto;
    box-sizing: border-box;
}

html.giggly-user-feed-profile body.feed-page #eventsApp {
    padding-top: 0 !important;
    /* clip (not hidden) so sticky subnav is not broken by paired overflow axes */
    overflow-x: clip;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* My Feed / account profile: pin sub-tabs under sticky Bar A while content scrolls. */
html.giggly-user-feed-profile .giggly-user-feed-profile-mount,
html.giggly-user-feed-profile .giggly-profile-feed {
    overflow: visible !important;
}

html.giggly-user-feed-profile .giggly-profile-feed__tabs {
    position: -webkit-sticky;
    position: sticky;
    top: var(--giggly-ios-header-h, calc(73px + max(env(safe-area-inset-top, 0px), var(--giggly-sat-fallback, 0px))));
    z-index: 510;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    background: color-mix(in srgb, var(--bg, #fff) 96%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

html.giggly-user-feed-profile #eventsContainer {
    overflow: visible !important;
    flex: 0 0 auto !important;
    min-height: 0 !important;
}

html.giggly-user-feed-profile .giggly-user-feed-profile-mount {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    background: transparent;
    z-index: 3;
}

/* Desktop: same 3-tab profile Feed shell as mobile, centered under primary nav. */
@media (min-width: 992px) {
    html.giggly-desktop-nav-active.giggly-user-feed-profile .giggly-user-feed-profile-mount,
    html.giggly-desktop-nav-active.giggly-user-feed-profile #eventsContainer.giggly-profile-feed-container {
        max-width: var(--giggly-feed-content-max-width, 640px);
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    html.giggly-desktop-nav-active.giggly-user-feed-profile .giggly-profile-feed__banner {
        border-radius: 0;
    }

    html.giggly-desktop-nav-active.giggly-user-feed-profile #followingFeedStandaloneTitle {
        display: none !important;
    }

    /*
     * Feed icon route: always one flyer wide. Never inherit All Events 3-column grid
     * (events-container--feed-show-grid / .giggly-events-grid) on /feed.
     */
    html.giggly-desktop-nav-active.giggly-desktop-feed-route #eventsApp,
    html.giggly-desktop-nav-active.giggly-following-feed-standalone #eventsApp,
    html.giggly-desktop-nav-active.giggly-user-feed-profile.giggly-following-feed-standalone #eventsApp {
        max-width: var(--giggly-chrome-max-width) !important;
    }

    html.giggly-desktop-nav-active.giggly-desktop-feed-route #eventsContainer,
    html.giggly-desktop-nav-active.giggly-desktop-feed-route #eventsContainer.events-container--feed-show-grid,
    html.giggly-desktop-nav-active.giggly-following-feed-standalone #eventsContainer,
    html.giggly-desktop-nav-active.giggly-following-feed-standalone #eventsContainer.events-container--feed-show-grid,
    html.giggly-desktop-nav-active.giggly-user-feed-profile #eventsContainer.giggly-profile-feed-container--following,
    html.giggly-desktop-nav-active.giggly-user-feed-profile
        #eventsContainer.giggly-profile-feed-container--following.events-container--feed-show-grid {
        max-width: var(--giggly-feed-content-max-width, 640px) !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    html.giggly-desktop-nav-active.giggly-desktop-feed-route #eventsContainer.events-container--feed-show-grid > .giggly-events-grid,
    html.giggly-desktop-nav-active.giggly-following-feed-standalone
        #eventsContainer.events-container--feed-show-grid
        > .giggly-events-grid,
    html.giggly-desktop-nav-active.giggly-user-feed-profile
        #eventsContainer.giggly-profile-feed-container--following
        > .giggly-events-grid {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: none !important;
    }

    html.giggly-desktop-nav-active.giggly-desktop-feed-route .event-card--feed-layout-grid,
    html.giggly-desktop-nav-active.giggly-following-feed-standalone .event-card--feed-layout-grid,
    html.giggly-desktop-nav-active.giggly-user-feed-profile
        #eventsContainer.giggly-profile-feed-container--following
        .event-card--feed-layout-grid {
        display: block !important;
        height: auto !important;
        max-width: 100% !important;
    }
}

.giggly-user-feed-profile-mount[hidden] {
    display: none !important;
}

.giggly-profile-feed {
    padding: 0;
    /* Tab bar owns the hairline under the sub-tabs (keeps privacy copy below it in edit mode). */
    border-bottom: none;
    background: var(--bg);
}

.giggly-profile-feed__banner {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(148px, 36vw, 200px);
    overflow: hidden;
    box-sizing: border-box;
    background: var(--brand-teal-deep, #468189);
}

html[data-theme='dark'] .giggly-profile-feed__banner,
:root[data-theme='dark'] .giggly-profile-feed__banner {
    background: var(--brand-teal-deep, #468189);
}

.giggly-profile-feed__banner--has-photo,
.giggly-profile-feed__banner--from-avatar {
    background: #111;
}

.giggly-profile-feed__banner--empty {
    background: var(--brand-teal-deep, #468189);
}

html[data-theme='dark'] .giggly-profile-feed__banner--empty,
:root[data-theme='dark'] .giggly-profile-feed__banner--empty {
    background: var(--brand-teal-deep, #468189);
}

.giggly-profile-feed__banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: transparent;
}

.giggly-profile-feed__avatar.profile-avatar:has(img) {
    background: transparent !important;
    background-color: transparent !important;
    color: transparent !important;
}

.giggly-profile-feed__avatar.profile-avatar:has(img) img {
    opacity: 1 !important;
}

/* Keep the profile avatar visible while the image decodes — no grey hole. */
html:not(.giggly-guest-mode) .giggly-profile-feed__avatar.profile-avatar[hidden]:has(img) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
}

.giggly-profile-feed__banner--from-avatar .giggly-profile-feed__banner-img {
    filter: blur(10px) saturate(1.1);
    transform: scale(1.12);
}

.giggly-profile-feed__banner-shade {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.giggly-profile-feed__banner--has-photo .giggly-profile-feed__banner-shade,
.giggly-profile-feed__banner--from-avatar .giggly-profile-feed__banner-shade {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.16));
}

.giggly-profile-feed__share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    appearance: none;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(15, 10, 30, 0.45);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-profile-feed__banner--empty .giggly-profile-feed__share-btn {
    color: #ffffff;
    background: rgba(3, 25, 38, 0.35);
}

html[data-theme='dark'] .giggly-profile-feed__banner--empty .giggly-profile-feed__share-btn,
:root[data-theme='dark'] .giggly-profile-feed__banner--empty .giggly-profile-feed__share-btn {
    color: #e5e7eb;
    background: rgba(0, 0, 0, 0.35);
}

.giggly-profile-feed__share-svg {
    display: block;
}

.giggly-profile-feed__edit-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    appearance: none;
    border: 0;
    min-width: 40px;
    height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(120, 120, 128, 0.22);
    color: #111827;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-profile-feed__banner--has-photo .giggly-profile-feed__edit-btn,
.giggly-profile-feed__banner--from-avatar .giggly-profile-feed__edit-btn {
    color: #fff;
    background: rgba(15, 10, 30, 0.55);
}

.giggly-profile-feed--editing .giggly-profile-feed__edit-btn {
    min-width: 52px;
    color: #fff;
    background: rgba(15, 10, 30, 0.72);
}

.giggly-profile-feed__edit-image-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: rgba(15, 10, 30, 0.72);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-profile-feed__edit-image-btn--avatar {
    left: 50%;
    top: auto;
    bottom: 6px;
    transform: translateX(-50%);
    padding: 5px 10px;
    font-size: 11px;
}

.giggly-profile-feed__body {
    padding: 0 14px 0;
    max-width: var(--giggly-feed-content-max-width, 640px);
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.giggly-profile-feed__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px 12px;
}

.giggly-profile-feed__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.giggly-profile-feed__identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px 12px;
}

.giggly-profile-feed__stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding-top: 8px;
    min-width: 72px;
    align-self: start;
}

.giggly-profile-feed__tabs-tools {
    display: none;
}

.giggly-profile-feed__avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.giggly-profile-feed__avatar-wrap {
    position: relative;
    flex: 0 0 auto;
    margin-top: -42px;
    z-index: 2;
}

.giggly-profile-feed__avatar {
    width: 84px;
    height: 84px;
    min-width: 84px;
    min-height: 84px;
    border-radius: 50%;
    font-size: 30px;
    border: 3px solid var(--bg);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
}

.giggly-profile-feed__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.giggly-profile-feed__edit-gigs-btn {
    appearance: none;
    border: 0;
    width: auto;
    min-width: 72px;
    height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(120, 120, 128, 0.14);
    color: var(--muted-text, #6b7280);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-profile-feed__edit-gigs-btn[hidden] {
    display: none !important;
}

.giggly-profile-feed--editing-gigs .giggly-profile-feed__edit-gigs-btn {
    color: var(--text);
    background: rgba(120, 120, 128, 0.22);
}

.giggly-profile-feed__meta {
    min-width: 0;
    padding-top: 8px;
}

.giggly-profile-feed__username {
    font-size: 19px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text);
    overflow-wrap: anywhere;
}

.giggly-profile-feed__about-row {
    display: block;
    margin-top: 0;
    min-width: 0;
    align-self: start;
}

/* Stretch across the main column: left with avatar, right with username. */
.giggly-profile-feed__about-row--edit {
    display: block;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
}

.giggly-profile-feed__about-row--edit .giggly-profile-feed__about-main,
.giggly-profile-feed__about-row--edit .giggly-profile-feed__field--about,
.giggly-profile-feed__about-row--edit .giggly-profile-feed__textarea {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.giggly-profile-feed__about-row--empty {
    display: none;
}

.giggly-profile-feed__about-main {
    min-width: 0;
}

.giggly-profile-feed__about-spacer {
    display: none;
}

.giggly-profile-feed__about {
    margin-top: 0;
    min-width: 0;
}

.giggly-profile-feed__bio {
    font-size: 13px;
    line-height: 1.35;
    color: var(--text);
    overflow-wrap: anywhere;
}

.giggly-profile-feed__stat-col .giggly-profile-feed__edit-gigs-btn {
    margin-top: 2px;
}

.giggly-profile-feed__stat {
    min-width: 64px;
    text-align: center;
    color: var(--text);
}

.giggly-profile-feed__stat strong {
    display: block;
    font-size: 20px;
    line-height: 1.05;
    font-weight: 850;
}

.giggly-profile-feed__stat span {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.15;
    color: var(--muted-text, #6b7280);
    font-weight: 650;
}

.giggly-profile-feed__field {
    display: block;
    margin-top: 8px;
}

.giggly-profile-feed__field--username {
    margin-top: 0;
}

.giggly-profile-feed__field--about {
    margin-top: 0;
}

.giggly-profile-feed__field-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--muted-text, #6b7280);
    text-transform: uppercase;
}

.giggly-profile-feed__input,
.giggly-profile-feed__textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    padding: 10px 12px;
}

.giggly-profile-feed__textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.35;
}

.giggly-profile-feed__save-err {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 650;
    color: #b91c1c;
}

.giggly-profile-feed__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 14px;
    border-top: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    max-width: var(--giggly-feed-content-max-width, 640px);
    margin-left: auto;
    margin-right: auto;
}

.giggly-profile-feed__tab {
    appearance: none;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted-text, #6b7280);
    min-height: 46px;
    height: auto;
    padding: 8px 4px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-profile-feed__tab-text {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

.giggly-profile-feed__tab:disabled {
    opacity: 0.45;
    cursor: default;
}

.giggly-profile-feed__tab svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.giggly-profile-feed__tab--active {
    color: var(--text);
    border-bottom-color: var(--accent-purple, #468189);
}

/* Gig Wall photo-cover mode (second tap on Gig Wall tab). */
.giggly-profile-feed__tab--photo-mode,
.giggly-profile-feed__tab.is-photo-mode,
.pc-channel-tabs-shell [data-pc-tab="wall"].is-photo-mode {
    color: #468189;
}
.giggly-profile-feed__tab--photo-mode.giggly-profile-feed__tab--active,
.giggly-profile-feed__tab.is-photo-mode.giggly-profile-feed__tab--active,
.pc-channel-tabs-shell [data-pc-tab="wall"].is-photo-mode.is-active {
    border-bottom-color: #468189;
}
/* Artist channel tabs use pill--active + ::after underline (not is-active). */
body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab[data-pc-tab="wall"].is-photo-mode,
body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab[data-pc-tab="wall"].is-photo-mode.promoter-channels-subnav__pill--active,
body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab[data-pc-tab="wall"].is-photo-mode[aria-selected='true'] {
    color: #468189;
}
body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab[data-pc-tab="wall"].is-photo-mode.promoter-channels-subnav__pill--active::after,
body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab[data-pc-tab="wall"].is-photo-mode[aria-selected='true']::after {
    background: #468189;
    width: 3.25rem;
    height: 3px;
}
:root[data-theme='dark'] body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab[data-pc-tab="wall"].is-photo-mode,
:root[data-theme='dark'] body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab[data-pc-tab="wall"].is-photo-mode.promoter-channels-subnav__pill--active,
:root[data-theme='dark'] body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab[data-pc-tab="wall"].is-photo-mode[aria-selected='true'] {
    color: #77aca2;
}
:root[data-theme='dark'] body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab[data-pc-tab="wall"].is-photo-mode.promoter-channels-subnav__pill--active::after,
:root[data-theme='dark'] body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab[data-pc-tab="wall"].is-photo-mode[aria-selected='true']::after {
    background: #77aca2;
}
.giggly-profile-grid__tile-wrap--photo-cover .giggly-profile-grid__img {
    object-fit: cover;
}

html.giggly-user-feed-profile #eventsContainer.giggly-profile-feed-container,
html.giggly-user-feed-profile #gigglyProfileWallSurface.giggly-profile-feed-container {
    max-width: var(--giggly-feed-content-max-width, 640px) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 0 calc(150px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box;
}

/* Gig Wall / Future Gigs: flyers sit 2px under the tab bar (override .events-container 20px). */
html.giggly-user-feed-profile #eventsContainer.giggly-profile-feed-container--grid,
html.giggly-user-feed-profile #gigglyProfileWallSurface.giggly-profile-feed-container--grid,
html.giggly-user-feed-profile #eventsContainer.giggly-profile-feed-container--past-feed,
html.giggly-user-feed-profile #gigglyProfileWallSurface.giggly-profile-feed-container--past-feed,
html.giggly-user-feed-profile #eventsContainer.giggly-profile-feed-container--future-feed,
html.giggly-user-feed-profile #gigglyProfileWallSurface.giggly-profile-feed-container--future-feed {
    max-width: var(--giggly-chrome-max-width, 840px) !important;
    margin-top: 0 !important;
    padding: 2px 2px calc(150px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Profile Feed sub-tab only — inset bordered cards; gig wall / past-feed unchanged.
 * Use both container classes so this beats the generic
 * `.giggly-profile-feed-container { padding: 0 … }` rule (same id+class count). */
html.giggly-user-feed-profile #eventsContainer.giggly-profile-feed-container.giggly-profile-feed-container--following,
html.giggly-user-feed-profile .events-container.giggly-profile-feed-container.giggly-profile-feed-container--following {
    max-width: var(--giggly-feed-content-max-width, 640px) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 14px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box;
}

@media (max-width: 991.98px), (hover: none), (pointer: coarse) {
    html.giggly-user-feed-profile #eventsContainer.giggly-profile-feed-container.giggly-profile-feed-container--following,
    html.giggly-user-feed-profile .events-container.giggly-profile-feed-container.giggly-profile-feed-container--following {
        max-width: var(--giggly-feed-content-max-width, 640px) !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-top: 14px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        box-sizing: border-box;
    }
}

.giggly-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.giggly-profile-grid__tile {
    position: relative;
    display: block;
    width: 100%;
    /* Taller Instagram-style portrait tiles (approx 4:5). */
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 0;
    padding: 0;
    margin: 0;
    background: #e5e7eb;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-profile-grid__bg,
.giggly-profile-grid__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.giggly-profile-grid__bg {
    object-fit: cover;
    filter: blur(18px) saturate(1.08);
    transform: scale(1.22);
    opacity: 0.95;
}

.giggly-profile-grid__img {
    object-fit: contain;
    z-index: 1;
}

.giggly-profile-grid__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 10, 30, 0.72);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-profile-grid__tile--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    background: #d1d5db;
}

:root[data-theme='dark'] .giggly-profile-grid__tile--empty {
    color: #e5e7eb;
    background: #374151;
}

.giggly-profile-grid__tile-empty-title {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    text-shadow: none;
    max-width: 92%;
}

.giggly-profile-grid__tile-wrap {
    position: relative;
    min-width: 0;
}

.giggly-profile-grid__tile--add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    padding: 12px;
}

.giggly-profile-grid__add-plus {
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
    color: #111;
}

.giggly-profile-grid__add-label {
    font-size: 12px;
    font-weight: 700;
}

html[data-theme='dark'] .giggly-profile-grid__tile--add,
:root[data-theme='dark'] .giggly-profile-grid__tile--add {
    background: #fff;
    color: #111;
}

.giggly-past-event-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px 14px 24px;
    box-sizing: border-box;
    max-width: var(--giggly-feed-content-max-width, 640px);
    margin: 0 auto;
}

.giggly-past-event-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.giggly-past-event-block > .feed-follow-source {
    margin: 0 0 8px;
    padding: 0 2px;
}

.giggly-profile-feed__tools-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    min-width: 0;
}

.giggly-profile-feed__followers {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 18px;
    align-items: center;
    min-width: 0;
    min-height: 0;
    /* Never inherit feed-event attribution row styles (.feed-follow-source). */
    background: transparent;
    border: none;
    box-shadow: none;
}

.giggly-profile-feed__tools-row .giggly-profile-feed__follower-count,
.giggly-profile-feed__tools-row .giggly-social-count,
.giggly-profile-feed__followers .giggly-social-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
    color: var(--text, #212529);
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 4px 2px;
    margin: 0;
    min-height: 0;
    min-width: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.giggly-profile-feed__tools-row .giggly-profile-feed__follower-num,
.giggly-profile-feed__tools-row .giggly-social-count__num,
.giggly-profile-feed__followers .giggly-social-count__num {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text, #212529);
}

.giggly-profile-feed__tools-row .giggly-profile-feed__follower-label,
.giggly-profile-feed__tools-row .giggly-social-count__label,
.giggly-profile-feed__followers .giggly-social-count__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.15;
    color: var(--muted-text, #6b7280);
}

.giggly-profile-feed__tools-row .giggly-social-count.is-selected,
.giggly-profile-feed__followers .giggly-social-count.is-selected {
    box-shadow: inset 0 -2px 0 var(--accent-pink, #77ACA2);
}

.giggly-profile-social-surface {
    width: 100%;
    max-width: var(--giggly-feed-content-max-width, 640px);
    margin: 0 auto;
    /* Clear fixed Bar C (search) + Bar D so the last row can scroll above them. */
    padding: 0 14px calc(150px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.giggly-profile-social-surface .pc-members-list {
    list-style: none;
    margin: 0;
    padding: 0 0 24px;
}

.giggly-profile-social-surface .pc-member-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
}

.giggly-profile-social-surface .pc-member-row__link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.giggly-profile-social-surface .pc-member-row__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    background: var(--brand-teal-deep, #468189);
    border: 1px solid transparent;
    overflow: hidden;
}

.giggly-profile-social-surface .pc-member-row__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.giggly-profile-social-surface .pc-member-row__main {
    flex: 1;
    min-width: 0;
}

.giggly-profile-social-surface .pc-member-row__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giggly-profile-social-surface .giggly-social-row__real-name {
    margin-top: 2px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted-text, #6b7280);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giggly-profile-social-surface .pc-placeholder {
    padding: 20px 0;
    color: var(--muted-text, #6b7280);
}

.giggly-social-row__toggle {
    flex-shrink: 0;
    appearance: none;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    background: var(--bg, #fff);
    color: var(--text, #111);
    cursor: pointer;
    white-space: nowrap;
}

.giggly-social-row__toggle.is-on {
    background: #111;
    color: #fff;
    border-color: #111;
}

html[data-theme='dark'] .giggly-social-row__toggle.is-on,
body.dark .giggly-social-row__toggle.is-on {
    background: #E8E4ED;
    color: #1a0f2e;
    border-color: #E8E4ED;
}

.giggly-social-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    background: color-mix(in srgb, var(--text) 8%, transparent);
    color: var(--muted-text, #6b7280);
    vertical-align: middle;
    white-space: nowrap;
}

/* Side-of-row Following label (not inline next to the handle). */
.giggly-social-row > .giggly-social-badge {
    flex-shrink: 0;
    margin-left: 0;
}

.giggly-social-badge--requested {
    background: color-mix(in srgb, var(--accent-pink, #77ACA2) 14%, transparent);
    color: var(--accent-pink, #77ACA2);
}

.giggly-social-badge-btn {
    flex-shrink: 0;
    appearance: none;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    background: #6b7280;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.giggly-social-badge-btn--accept {
    background: var(--accent-pink, #77ACA2);
    border-color: var(--accent-pink, #77ACA2);
}

.pc-member-row__name .giggly-social-badge {
    margin-left: 6px;
}

.giggly-profile-privacy-wrap {
    width: 100%;
    max-width: var(--giggly-feed-content-max-width, 640px);
    margin: 0 auto;
    padding: 0 14px calc(160px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.giggly-profile-feed--editing .giggly-profile-feed__tools-row,
.giggly-profile-feed--editing .giggly-profile-feed__followers {
    display: none !important;
}

html.giggly-profile-editing #eventsContainer,
html.giggly-profile-editing #gigglyProfileWallSurface,
html.giggly-profile-editing #gigglyProfileSocialSurface {
    display: none !important;
}

/* Hide search / filter chrome while editing profile privacy. */
html.giggly-profile-editing #eventsControlsBar,
html.giggly-profile-editing #filterSortBtn,
html.giggly-profile-editing .controls-bar,
html.giggly-profile-editing .search-container,
html.giggly-profile-editing #navSearch {
    display: none !important;
}

.giggly-profile-privacy {
    margin: 16px 0 8px;
    padding: 4px 2px 12px;
}

.giggly-profile-privacy__status {
    margin: 0 0 18px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 650;
    line-height: 1.45;
    color: var(--muted-text, #9ca3af);
}

.giggly-profile-privacy__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--text, #212529);
    cursor: pointer;
}

.giggly-profile-privacy__row input[type='checkbox'] {
    width: 44px;
    height: 26px;
    flex-shrink: 0;
    appearance: none;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
    background: color-mix(in srgb, var(--text) 12%, transparent);
    position: relative;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.giggly-profile-privacy__row input[type='checkbox']::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: transform 0.15s ease;
}

.giggly-profile-privacy__row input[type='checkbox']:checked {
    background: var(--accent-pink, #77ACA2);
    border-color: var(--accent-pink, #77ACA2);
}

.giggly-profile-privacy__row input[type='checkbox']:checked::after {
    transform: translateX(18px);
}

.giggly-profile-privacy__row input[type='checkbox']:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.giggly-profile-feed__field--about {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.giggly-profile-feed__meta .giggly-profile-feed__textarea {
    width: 100%;
}

.giggly-profile-social-surface .pc-member-row__menu-wrap {
    position: relative;
    flex-shrink: 0;
}

.giggly-profile-social-surface .pc-member-menu-btn {
    min-width: 40px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    font-size: 1.25rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
}

.giggly-profile-social-surface .pc-member-row__pop {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 30;
    min-width: 200px;
    padding: 6px 0;
    border-radius: 12px;
    background: var(--bg, #fff);
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

.giggly-profile-social-surface .pc-member-row__pop-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

.feed-follow-source--friend-star {
    align-items: center;
}

.feed-follow-source__friend-star-copy {
    display: inline;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.3;
    color: var(--text, #212529);
}

.feed-follow-source__friend-star-rest {
    font-weight: 500;
    color: var(--muted-text, #6b7280);
}

.feed-follow-source__new-post-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    line-height: 1.2;
    vertical-align: middle;
    background: #7a1f3d;
    color: #ffffff;
    white-space: nowrap;
}

.feed-follow-source__dismiss-btn {
    flex-shrink: 0;
    margin-left: auto;
    appearance: none;
    border: none;
    background: color-mix(in srgb, var(--text) 8%, transparent);
    color: var(--muted-text, #6b7280);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.feed-follow-source__dismiss-btn:hover,
.feed-follow-source__dismiss-btn:focus-visible {
    background: color-mix(in srgb, var(--text) 14%, transparent);
    color: var(--text, #212529);
}

.feed-follow-source__dismiss-btn--burgundy {
    background: #7a1f3d;
    color: #ffffff;
}

.feed-follow-source__dismiss-btn--burgundy:hover,
.feed-follow-source__dismiss-btn--burgundy:focus-visible {
    background: #641832;
    color: #ffffff;
}

.feed-follow-source__dismiss-btn--burgundy:disabled {
    opacity: 0.65;
    cursor: default;
}

.feed-friend-post-block,
.feed-friend-star-block,
.feed-follow-source-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* Match .event-card margin so friend posts don't sit flush against the next item. */
.feed-friend-post-block {
    margin-bottom: 16px;
}

/* Friend posts in following feed: Gig Wall past-event card layout. */
.feed-friend-post-block .giggly-past-event-card {
    margin-top: 0;
    margin-bottom: 0;
}

.giggly-past-event-card__title-link {
    color: inherit;
    text-decoration: none;
}

.giggly-past-event-card__title-link:hover,
.giggly-past-event-card__title-link:focus-visible {
    text-decoration: underline;
}

.giggly-profile-feed__tools-row .giggly-profile-feed__edit-gigs-btn {
    flex: 0 0 auto;
    margin-top: 0;
}

/* Never show the artist/DJ directory "Loading…" label. */
#artistChannelsLoading,
body.artists-channels-directory-page .promoter-channels-page__loading,
body.djs-channels-directory-page .promoter-channels-page__loading,
body.designers-channels-directory-page .promoter-channels-page__loading {
    display: none !important;
}

.giggly-past-event-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    border-radius: 14px;
    overflow: hidden;
    box-sizing: border-box;
    scroll-margin-top: calc(var(--giggly-profile-bar1-h, 73px) + 2px);
}

.giggly-past-event-card__flyer {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #e5e7eb;
    overflow: hidden;
}

.giggly-past-event-card__flyer-edit {
    appearance: none;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 8;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 15, 20, 0.62);
    color: #fff;
    font-size: 17px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.giggly-past-event-card__flyer-edit:hover,
.giggly-past-event-card__flyer-edit:focus-visible {
    background: rgba(15, 15, 20, 0.72);
    outline: none;
}

.giggly-past-event-card__flyer--empty {
    background: var(--brand-teal-deep, #468189);
    aspect-ratio: 4 / 5;
}

.giggly-past-event-card__flyer-bg,
.giggly-past-event-card__flyer-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.giggly-past-event-card__flyer-bg {
    object-fit: cover;
    filter: blur(18px) saturate(1.08);
    transform: scale(1.18);
    opacity: 0.9;
}

.giggly-past-event-card__flyer-img {
    object-fit: contain;
    z-index: 1;
}

.giggly-past-event-card__flyer-track {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: none;
    overscroll-behavior-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: #e5e7eb;
}

.giggly-past-event-card__flyer-track.is-v-scroll {
    /* Vertical feed scroll won this gesture — don't keep capturing horizontal. */
    overflow-x: hidden;
    touch-action: pan-y;
}

.giggly-past-event-card__flyer-track.is-x-drag {
    /* Horizontal flyer swipe in progress — keep the page from stealing the gesture. */
    touch-action: pan-x;
    overscroll-behavior-y: none;
}

.giggly-past-event-card__flyer-track::-webkit-scrollbar {
    display: none;
}

.giggly-past-event-card__flyer-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.giggly-past-event-card__flyer-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 4;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.giggly-past-event-card__flyer-dots.is-visible {
    opacity: 1;
}

.giggly-profile-grid__tile-dots {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    z-index: 4;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    pointer-events: none;
    opacity: 1;
}

.giggly-profile-grid__tile-dots .giggly-past-event-card__flyer-dot {
    width: 6px;
    height: 6px;
}

:root[data-theme='dark'] .giggly-past-event-card__flyer-dots {
    background: rgba(0, 0, 0, 0.52);
}

.giggly-past-event-card__flyer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

.giggly-past-event-card__flyer-dot.is-active {
    background: #ffffff;
}

.event-card-v2__public-gig-comments {
    margin: 8px 12px 0;
    padding: 0;
}

.event-card-v2__public-gig-comment {
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(120, 120, 128, 0.1);
    font-size: 14px;
    line-height: 1.4;
    color: var(--text, #212529);
}

.event-card-v2__public-gig-comment-user {
    font-weight: 650;
    margin-right: 4px;
}

:root[data-theme='dark'] .event-card-v2__public-gig-comment {
    background: rgba(255, 255, 255, 0.08);
}

.giggly-past-event-card__body {
    padding: 10px 12px 12px;
    box-sizing: border-box;
}

.giggly-past-event-card__designed-by {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    color: var(--muted-text, #6b7280);
}

.giggly-past-event-card__slide-credit .giggly-past-event-card__designed-by {
    margin: 0;
}

.giggly-past-event-card__designed-by-label {
    color: var(--muted-text, #6b7280);
    font-weight: 650;
}

.giggly-past-event-card__designed-by-name {
    color: #2563eb;
    font-weight: 650;
}

.giggly-past-event-card__designed-by-ig {
    color: #2563eb;
    font-weight: 650;
    text-decoration: none;
}

.giggly-past-event-card__designed-by-ig:hover {
    text-decoration: underline;
}

.giggly-past-event-card__photo-credit-user {
    font-weight: 650;
}

.event-card-v2__designed-by {
    /* Sit tight under the flyer; 16px sides match .event-card-v2__details title inset */
    margin: 4px 0 0;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    line-height: 1.35;
    font-size: 13px;
    font-weight: 650;
    color: var(--muted-text, #6b7280);
    /* Parent .event-card-v2__flyer-column uses line-height:0 for the image */
    display: block;
}

.event-card-v2__flyer-column > .event-card-v2__designed-by {
    margin: 4px 0 0;
    padding: 0 16px;
}

/* List / details placements: no extra side pad (parent already insets) */
.event-card-v2__details > .event-card-v2__designed-by,
.event-card-v2__feed-list-main > .event-card-v2__designed-by {
    margin: 0 0 6px;
    padding: 0;
}

.event-card-v2__designed-by-label {
    color: var(--muted-text, #6b7280);
}

.event-card-v2__designed-by-name {
    color: #2563eb;
}

a.event-card-v2__designed-by-name--link {
    color: #2563eb;
    text-decoration: none;
}

a.event-card-v2__designed-by-name--link:hover {
    text-decoration: underline;
}

.event-card-v2__designed-by-ig {
    color: #2563eb;
    text-decoration: none;
}

.event-card-v2__designed-by-ig:hover {
    text-decoration: underline;
}

@media (min-width: 841px) {
    .event-card-v2__designed-by {
        font-size: 14px;
    }
}

.giggly-past-event-card__credit-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 0;
    margin: 0 0 8px;
}

.giggly-past-event-card__credit-row:has(.giggly-past-event-card__slide-credit[hidden]):not(:has(.giggly-past-event-card__credit-actions)) {
    display: none;
}

.giggly-past-event-card__slide-credit {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: auto;
}

.giggly-past-event-card__slide-credit[hidden] {
    display: none !important;
}

.giggly-past-event-card__title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.giggly-past-event-card__title-row .giggly-past-event-card__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.giggly-past-event-card__title-row .giggly-past-event-card__star {
    flex: 0 0 auto;
    margin-top: 0;
}

.giggly-past-event-card__credit-actions {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.giggly-past-event-card__venue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    min-height: 34px;
}

.giggly-past-event-card__venue-row .giggly-past-event-card__venue {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.giggly-past-event-card__venue--empty {
    min-height: 1em;
}

.giggly-past-event-card__venue-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.giggly-past-event-card__gig-post-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.giggly-past-event-card__post:not(:has(.giggly-past-event-card__post-body)) .giggly-past-event-card__gig-post-row {
    margin-top: 8px;
}

.giggly-past-event-card__gig-post-btn {
    appearance: none;
    border: 0;
    min-width: 0;
    height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(120, 120, 128, 0.22);
    color: #111827;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] .giggly-past-event-card__gig-post-btn {
    color: #f3f4f6;
    background: rgba(255, 255, 255, 0.14);
}

.giggly-past-event-card__under {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 36px;
    margin-bottom: 6px;
}

.giggly-past-event-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.giggly-past-event-card__star.event-card-v2__heart {
    width: auto;
    height: auto;
    background: transparent !important;
    border-radius: 0;
}

.giggly-past-event-card__star .event-card-v2__heart-glyph {
    font-size: 28px;
    line-height: 1;
}

.giggly-past-event-card__edit {
    appearance: none;
    border: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(120, 120, 128, 0.12);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-past-event-card__meta {
    padding: 0;
}

.giggly-past-event-card__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
}

.giggly-past-event-card__date,
.giggly-past-event-card__venue,
.giggly-past-event-card__note {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.3;
    color: var(--muted-text, #6b7280);
}

.giggly-past-event-card__post {
    margin-top: 14px;
}

.giggly-past-event-card__reviews {
    margin-top: 14px;
}

.giggly-past-event-card__review {
    margin: 0 0 12px;
}

.giggly-past-event-card__review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    min-width: 0;
}

.giggly-past-event-card__review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(120, 120, 128, 0.18);
    color: var(--text, #212529);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.giggly-past-event-card__review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.giggly-past-event-card__review-user-link,
.giggly-past-event-card__review-user-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text, #212529);
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giggly-past-event-card__review-user-link:hover {
    text-decoration: underline;
}

.giggly-past-event-card__review-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--muted-text, #6b7280);
    white-space: pre-wrap;
    word-break: break-word;
}

.giggly-past-event-card__reviews-more-btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 2px 0 0;
    color: var(--muted-text, #6b7280);
    font-size: 0.9rem;
    font-weight: 650;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.giggly-past-event-card__reviews-more-btn:hover {
    color: var(--text, #212529);
    text-decoration: underline;
}

.giggly-past-event-card__post-rule {
    border: 0;
    border-top: 1px solid rgba(120, 120, 128, 0.1);
    margin: 0 0 18px;
}

.giggly-past-event-card__post-body {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
    color: var(--muted-text, #6b7280);
}

.giggly-past-event-card__post-user {
    font-weight: 800;
    color: var(--text);
}

.giggly-past-event-card__post-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.giggly-past-event-card__post-actions {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    margin-top: 14px;
}

.giggly-past-event-card__post-actions .giggly-past-event-card__edit {
    margin-left: auto;
}

.giggly-past-event-card__owner {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    color: var(--text);
}

.giggly-past-event-card__note {
    white-space: pre-wrap;
    word-break: break-word;
}

.modal.giggly-profile-past-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    align-items: stretch;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    padding: 0;
    overscroll-behavior: none;
}

.modal.giggly-profile-past-modal.active {
    display: flex;
}

.giggly-profile-past-modal__sheet {
    width: min(100%, 560px);
    height: 100%;
    max-height: 100%;
    max-height: 100dvh;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    border-radius: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 0;
    align-self: stretch;
}

.giggly-profile-past-modal__sheet--confirm {
    border-radius: 18px;
    margin: auto 16px;
    height: auto;
    max-height: min(88vh, 720px);
    overflow: auto;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    align-self: center;
}

.giggly-profile-past-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: max(14px, env(safe-area-inset-top, 0px)) 16px 0;
}

.giggly-profile-past-modal__head h2,
.giggly-profile-past-modal__sheet--confirm h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.giggly-profile-past-modal__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.giggly-profile-past-modal__copy {
    margin: 10px 16px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted-text, #6b7280);
    flex: 0 0 auto;
}

.giggly-profile-past-modal__search {
    display: block;
    margin: 0 16px 4px;
    flex: 0 0 auto;
}

.giggly-profile-past-modal__field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--muted-text, #6b7280);
    text-transform: uppercase;
}

.giggly-profile-past-modal__search input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    /* 16px avoids iOS focus zoom that can desync the caret from the field. */
    font-size: 16px;
    padding: 12px 14px;
}

.giggly-profile-past-modal__results {
    margin: 12px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 8px;
}

.giggly-profile-past-modal__hint {
    margin: 8px 0;
    font-size: 13px;
    color: var(--muted-text, #6b7280);
}

.giggly-profile-past-modal__row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    background: rgba(120, 120, 128, 0.08);
}

.giggly-profile-past-modal__thumb {
    width: 48px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: #d1d5db;
}

.giggly-profile-past-modal__thumb--empty {
    display: block;
}

.giggly-profile-past-modal__row-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.giggly-profile-past-modal__row-main strong {
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.giggly-profile-past-modal__row-main span {
    font-size: 12px;
    color: var(--muted-text, #6b7280);
    overflow-wrap: anywhere;
}

.giggly-profile-past-modal__use {
    flex-shrink: 0;
    margin: 0;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    border: none;
    border-radius: 5px;
    background: #000000;
    color: #ffffff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    text-transform: uppercase;
}

.giggly-profile-past-modal__row-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    flex-shrink: 0;
}

.giggly-profile-past-modal__edit {
    flex-shrink: 0;
    margin: 0;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    border: 1px solid rgba(120, 120, 128, 0.45);
    border-radius: 5px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    text-transform: uppercase;
}

.giggly-profile-past-modal__edit:active,
.giggly-profile-past-modal__use:active {
    opacity: 0.85;
}

.giggly-profile-past-modal__create {
    appearance: none;
    border: 0;
    width: auto;
    margin: 8px 16px 0;
    padding: 10px 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent-purple, #468189);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    flex: 0 0 auto;
}

.giggly-profile-past-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.giggly-profile-past-modal__btn {
    appearance: none;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: rgba(120, 120, 128, 0.14);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.giggly-profile-past-modal__btn--danger {
    background: #b91c1c;
    color: #fff;
}

.giggly-profile-feed-list {
    padding: 8px 0 0;
}

.giggly-profile-feed-empty {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 24px;
    color: var(--muted-text, #6b7280);
    text-align: center;
}

.giggly-profile-feed-empty strong {
    color: var(--text);
    font-size: 17px;
}

.giggly-profile-feed--guest {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 16px;
}

.giggly-profile-future-toggle {
    display: none !important;
}

html.giggly-user-feed-profile #eventsControlsBar.giggly-profile-controls--future #filterSortBtn,
html.giggly-user-feed-profile #eventsControlsBar.giggly-profile-controls--feed #filterSortBtn,
html.giggly-user-feed-profile #eventsControlsBar.giggly-profile-controls--wall #filterSortBtn {
    display: inline-flex !important;
}

html.giggly-user-feed-profile #gigglyProfileFutureViewToggle {
    display: none !important;
}

/* Gig Wall Instagram-style photo editor */
html.giggly-wall-editor-open {
    overflow: hidden;
}

.giggly-wall-editor {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(8, 8, 12, 0.72);
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.giggly-wall-editor[hidden] {
    display: none !important;
}

.giggly-wall-editor__confirm {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 8, 12, 0.55);
    box-sizing: border-box;
}

.giggly-wall-editor__confirm-box {
    width: min(360px, 100%);
    background: var(--bg, #fff);
    color: var(--text, #111);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.giggly-wall-editor__confirm-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
}

.giggly-wall-editor__confirm-msg {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.45;
    opacity: 0.75;
}

.giggly-wall-editor__confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.giggly-wall-editor__confirm-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.giggly-wall-editor__confirm-btn--cancel {
    background: rgba(120, 120, 128, 0.16);
    color: var(--text, #111);
}

.giggly-wall-editor__confirm-btn--delete {
    background: #e5484d;
    color: #fff;
}

.giggly-wall-editor__sheet {
    width: min(520px, 100%);
    height: 100%;
    max-height: 100dvh;
    background: var(--bg, #fff);
    color: var(--text, #111);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.giggly-wall-editor__top {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.1));
}

.giggly-wall-editor__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.giggly-wall-editor__nav-btn {
    appearance: none;
    border: 0;
    min-width: 40px;
    height: 36px;
    border-radius: 999px;
    background: rgba(120, 120, 128, 0.16);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.giggly-wall-editor__nav-btn--text,
.giggly-wall-editor__nav-btn--next.giggly-wall-editor__nav-btn--text {
    font-size: 14px;
    font-weight: 700;
    padding: 0 14px;
    min-width: auto;
}

.giggly-wall-editor__nav-btn--next-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}

.giggly-wall-editor__nav-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.giggly-wall-editor__sheet--post {
    width: 100% !important;
    max-width: 100% !important;
}

.giggly-wall-editor--post {
    justify-content: stretch !important;
    align-items: stretch !important;
    --add-event-placeholder: #9ca3af;
}

.giggly-wall-editor--post .giggly-wall-editor__sheet {
    width: 100% !important;
    max-width: 100% !important;
}

.giggly-wall-editor__stage--post {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.giggly-wall-editor--post .giggly-wall-editor__post.add-event-form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 16px 20px max(16px, env(safe-area-inset-bottom, 0px));
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    gap: 12px;
    overflow: hidden !important;
}

/* Each field takes half the stage: Your Post (top) / Artist Gig Review (bottom). */
.giggly-wall-editor--post .add-event-field--your-post,
.giggly-wall-editor--post .add-event-field--public-post {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 50% !important;
    min-height: 0 !important;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.giggly-wall-editor--post .add-event-field--your-post > .add-event-label {
    flex: 0 0 auto;
    margin-bottom: 8px;
}

.giggly-wall-editor--post .giggly-wall-editor__post-field-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.giggly-wall-editor--post .giggly-wall-editor__post-textarea.add-event-textarea {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    resize: none !important;
}

.giggly-wall-editor--post .giggly-wall-editor__public-post-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    flex: 0 0 auto;
}

.giggly-wall-editor--post .giggly-wall-editor__public-post-head .add-event-label {
    margin: 0;
}

.giggly-wall-editor--post .giggly-wall-editor__use-gig-post-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.giggly-wall-editor--post .giggly-wall-editor__use-gig-post-toggle input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.giggly-wall-editor--post .giggly-wall-editor__public-post-textarea:disabled {
    color: #6b7280;
    background: #f3f4f6;
    cursor: not-allowed;
}

.giggly-wall-editor--post .add-event-textarea::placeholder,
.giggly-wall-editor--post .giggly-wall-editor__post-textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.giggly-wall-editor--post .giggly-wall-editor__public-post-textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.giggly-wall-editor--post .add-event-field {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.giggly-wall-editor--post .add-event-label {
    margin-bottom: 8px;
}

.giggly-wall-editor--post .giggly-wall-editor__post-field-wrap {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box;
}

.giggly-wall-editor--post .giggly-wall-editor__post-textarea.add-event-textarea {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    resize: none !important;
}

.giggly-wall-editor__mention-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 5;
    max-height: 220px;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(120, 120, 128, 0.28);
    background: var(--bg);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.giggly-wall-editor__mention-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid rgba(120, 120, 128, 0.16);
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.giggly-wall-editor__mention-item:last-child {
    border-bottom: 0;
}

.giggly-wall-editor__mention-item strong {
    font-size: 14px;
}

.giggly-wall-editor__mention-item span {
    font-size: 12px;
    color: var(--muted-text, #6b7280);
}

.giggly-wall-editor__stage {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.giggly-wall-editor__pick,
.giggly-wall-editor__order {
    padding: 0 0 12px;
    box-sizing: border-box;
}

.giggly-wall-editor__order {
    padding: 12px;
}

.giggly-wall-editor__preview {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 0;
    overflow: hidden;
    background: #111;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.giggly-wall-editor__preview-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
}

.giggly-wall-editor__preview--flyer .giggly-wall-editor__preview-frame {
    cursor: default;
}

.giggly-wall-editor__preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.giggly-wall-editor__preview--user .giggly-wall-editor__preview-img {
    object-fit: fill;
}

.giggly-wall-editor__lock {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    font-size: 14px;
}

.giggly-wall-editor__remove-active {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.giggly-wall-editor__sel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 10px 12px 12px;
}

.giggly-wall-editor__sel-arrow {
    width: 40px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: rgba(120, 120, 128, 0.16);
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
}

.giggly-wall-editor__sel-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.giggly-wall-editor__sel-count {
    font-size: 13px;
    font-weight: 650;
    min-width: 64px;
    text-align: center;
}

.giggly-wall-editor__lib {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 0 12px;
}

.giggly-wall-editor__lib-cell {
    position: relative;
    aspect-ratio: 1;
    border: 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.giggly-wall-editor__lib-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.giggly-wall-editor__lib-cell--add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.giggly-wall-editor__lib-cell--add span:first-child {
    font-size: 22px;
    line-height: 1;
}

.giggly-wall-editor__lib-cell.is-selected::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.giggly-wall-editor__lib-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.giggly-wall-editor__hint {
    margin: 12px 12px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted-text, #6b7280);
}

.giggly-wall-editor__order .giggly-wall-editor__hint {
    margin: 0 0 12px;
}

.giggly-wall-editor__order-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.giggly-wall-editor__order-cell {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.giggly-wall-editor__order-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.giggly-wall-editor__order-cell.is-dragging {
    opacity: 0.35;
}

.giggly-wall-editor__order-cell.is-drop-target {
    box-shadow: inset 0 0 0 3px #2563eb;
}

.giggly-wall-editor__drag-ghost {
    position: fixed;
    z-index: 13050;
    margin: 0;
    pointer-events: none;
    opacity: 0.95;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
    transform: scale(1.05);
    will-change: left, top;
    touch-action: none;
}

.giggly-wall-editor__order-badge {
    position: absolute;
    left: 6px;
    top: 6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.giggly-wall-editor__drag-handle {
    position: absolute;
    right: 4px;
    bottom: -12px;
    left: auto;
    transform: none;
    z-index: 3;
    min-width: 36px;
    height: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: grab;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.giggly-wall-editor__drag-handle:active {
    cursor: grabbing;
}

.giggly-wall-editor__lock--order {
    right: 6px;
    top: 6px;
    bottom: auto;
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.giggly-wall-editor__visibility {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 0;
}

.giggly-wall-editor__visibility--overlay {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 4;
    padding: 6px 10px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.giggly-wall-editor__vis-label {
    appearance: none;
    margin: 0;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease;
}

.giggly-wall-editor__vis-label.is-active {
    color: #111;
}

.giggly-wall-editor__vis-label:not(.is-active):hover,
.giggly-wall-editor__vis-label:not(.is-active):focus-visible {
    color: #6b7280;
    outline: none;
}

.giggly-wall-editor__vis-switch {
    appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    flex: 0 0 auto;
}

.giggly-wall-editor__vis-switch:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
    border-radius: 999px;
}

.giggly-wall-editor__vis-switch-track {
    position: relative;
    display: block;
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #d1d5db;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
    transition: background 0.18s ease;
}

.giggly-wall-editor__vis-switch.is-public .giggly-wall-editor__vis-switch-track,
.giggly-wall-editor__vis-switch.is-private .giggly-wall-editor__vis-switch-track {
    background: #22c55e;
}

.giggly-wall-editor__vis-switch-thumb {
    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.28);
    transition: transform 0.18s ease;
}

.giggly-wall-editor__vis-switch.is-private .giggly-wall-editor__vis-switch-thumb {
    transform: translateX(18px);
}

.giggly-wall-editor__vis-switch.is-public .giggly-wall-editor__vis-switch-thumb {
    transform: translateX(0);
}

.giggly-wall-editor__vis-hint {
    margin: 0;
    padding: 8px 12px 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--muted, #6c757d);
}

.giggly-wall-editor__artist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px 0;
}

.giggly-wall-editor__artist-label {
    font-size: 12px;
    font-weight: 650;
    color: var(--muted-text, #6b7280);
}

.giggly-wall-editor__thumb-crop {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.giggly-wall-editor__thumb-crop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
}

.giggly-wall-editor__lib-vis,
.giggly-wall-editor__order-vis {
    position: absolute;
    left: 6px;
    bottom: 6px;
    z-index: 2;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    pointer-events: none;
}

.giggly-wall-editor__order-cell .giggly-wall-editor__order-vis {
    bottom: 14px;
    left: 6px;
    right: auto;
}

.giggly-wall-editor__order-cell {
    overflow: visible;
}

.giggly-wall-editor__lib-cell.is-selected .giggly-wall-editor__lib-vis {
    left: 6px;
}

.giggly-wall-editor__artist-select,
.giggly-wall-editor__caption {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.18));
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background: var(--bg, #fff);
    color: var(--text, #212529);
}

@media (min-width: 760px) {
    .giggly-profile-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 3px;
    }

    .giggly-profile-feed {
        border-left: 1px solid var(--border, rgba(0, 0, 0, 0.08));
        border-right: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    }
}

.feed-page-app__header {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px max(16px, env(safe-area-inset-left)) 12px max(16px, env(safe-area-inset-right));
    padding-top: max(14px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    background: var(--bg);
    z-index: 2;
}

.feed-page-app__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    flex: 1;
    min-width: 0;
}

:root[data-theme='dark'] .feed-page-app__title {
    color: var(--text);
}

.feed-page-scrollport {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px max(16px, env(safe-area-inset-left)) calc(88px + env(safe-area-inset-bottom, 0px))
        max(16px, env(safe-area-inset-right));
    box-sizing: border-box;
}

.feed-page__section-title {
    margin: 20px 0 10px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--text-secondary, #64748b);
}

.feed-page__section-title:first-child {
    margin-top: 4px;
}

.feed-page__empty {
    margin: 8px 0 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-secondary, #64748b);
}

.giggly-feed-account-diag {
    margin: 12px 16px 8px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--accent-purple, #468189) 35%, transparent);
    background: color-mix(in srgb, var(--accent-purple, #468189) 8%, var(--bg, #fff));
    font-size: 0.88rem;
    line-height: 1.45;
}

.giggly-feed-account-diag__summary {
    margin: 0 0 6px;
    font-weight: 600;
    color: var(--text, #212529);
}

.giggly-feed-account-diag__detail {
    margin: 0 0 10px;
    color: var(--text-secondary, #64748b);
}

.giggly-feed-account-diag__reload {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--brand-btn-bg, #468189);
}

.event-settings-feed-counter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text, #212529);
    cursor: pointer;
}

.event-settings-feed-counter-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-purple, #468189);
}

.event-settings-feed-counter-hint {
    margin: 0 0 12px;
}

.giggly-feed-event-index {
    display: none;
}

html.giggly-feed-counter-on .giggly-feed-event-index {
    display: block;
    margin: 10px 16px 0;
    padding: 4px 10px;
    width: fit-content;
    max-width: calc(100% - 32px);
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.giggly-profile-feed-status {
    display: none;
}

html.giggly-feed-counter-on .giggly-profile-feed-status {
    display: block;
    position: sticky;
    top: 0;
    z-index: 45;
    flex: 0 0 auto;
    margin: 0;
    padding: 12px 16px;
    border-bottom: 2px solid #468189;
    background: #468189;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.giggly-profile-feed-status__count {
    margin: 0;
    font-weight: 700;
    color: #fff;
}

.giggly-profile-feed-status__hint {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.88);
}

.giggly-profile-feed-status__reload {
    appearance: none;
    border: 0;
    border-radius: 999px;
    margin-top: 8px;
    padding: 8px 14px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: #468189;
    background: #fff;
}

/* Profile Feed tab search: hide header chrome, pin results under Bar 1, white empty state. */
html.giggly-profile-feed-searching #gigglyUserFeedProfileMount {
    display: none !important;
}

html.giggly-profile-feed-searching body.feed-page #eventsApp {
    background: #fff !important;
}

html.giggly-profile-feed-searching #feedSearchNoResultsBanner:not([hidden]),
html.giggly-user-feed-profile.giggly-profile-feed-searching
    body.search-bar-keyboard-mode
    #feedSearchNoResultsBanner:not([hidden]),
html.giggly-user-feed-profile.giggly-profile-feed-searching
    body.search-bar-keyboard-mode.giggly-search-kb-main-lite
    #feedSearchNoResultsBanner:not([hidden]) {
    /* Stick under Bar 1 inside #eventsApp — not static (falls behind the IME) or fixed mid-stack. */
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    z-index: 42 !important;
    margin: 0 !important;
    padding: 18px 16px 16px;
    width: 100%;
    max-width: var(--giggly-feed-content-max-width, var(--giggly-chrome-max-width));
    box-sizing: border-box;
    background: #fff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none !important;
}

html.giggly-profile-feed-search-empty #eventsContainer {
    min-height: 55vh;
    background: #fff !important;
}

html.giggly-profile-feed-search-empty #eventsContainer .event-card,
html.giggly-profile-feed-search-empty #eventsContainer .feed-follow-source,
html.giggly-profile-feed-search-empty #eventsContainer .giggly-feed-event-index {
    display: none !important;
}

html.giggly-guest-feed-prompt #eventsContainer .feed-page__guest-login-wrap {
    min-height: min(52vh, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    box-sizing: border-box;
}

html.giggly-guest-feed-prompt #eventsContainer .feed-page__guest-login-prompt {
    margin: 0;
    width: 100%;
    max-width: 28rem;
    text-align: center;
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    line-height: 1.45;
    color: var(--text);
}

@media (min-width: 992px) {
    html.giggly-guest-feed-prompt #eventsContainer .feed-page__guest-login-wrap {
        min-height: min(60vh, 480px);
    }
}

.feed-page__card {
    display: block;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    background: var(--bg);
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.feed-page__card-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

.feed-page__card-meta {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--text-secondary, #64748b);
}

/* Following feed embed: full-page or legacy iframe — same `followingFeedEmbed=1` document. */
body.feed-page--shell .feed-page-scrollport {
    display: flex;
    flex-direction: column;
    padding: 0;
    /* Bottom bar is position:fixed — list scrolls in the iframe under it; no empty band here. */
    padding-bottom: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.feed-page__title-row {
    flex-shrink: 0;
    padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    background: var(--bg);
}

.feed-page__title-row .promoter-channels-page__title {
    padding: 10px 0 12px;
}

.feed-page__title-row--scroll-top {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.feed-page__title-row--scroll-top:focus-visible {
    outline: 2px solid var(--accent-purple, #468189);
    outline-offset: 2px;
}

:root[data-theme='dark'] .feed-page__title-row .promoter-channels-page__title {
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

.feed-page__following-iframe {
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    border: 0;
    display: block;
    background: var(--bg);
}

/* index.html?followingFeedEmbed=1 */
html.giggly-following-feed-embed.giggly-app-active #landingPage {
    display: none !important;
}

/*
 * Following feed inside /feed.html iframe (legacy): parent supplies header + bottom bar — hide all events chrome.
 */
html.giggly-following-feed-embed.giggly-following-feed-in-frame.giggly-app-active #eventsApp .app-header,
html.giggly-following-feed-embed.giggly-following-feed-in-frame.giggly-app-active #eventsApp .filter-tabs,
html.giggly-following-feed-embed.giggly-following-feed-in-frame.giggly-app-active #eventsApp #filterPinnedCategoryPopover,
html.giggly-following-feed-embed.giggly-following-feed-in-frame.giggly-app-active #eventsApp .controls-bar,
html.giggly-following-feed-embed.giggly-following-feed-in-frame.giggly-app-active #eventsApp > .bottom-bar {
    display: none !important;
}

html.giggly-following-feed-embed.giggly-following-feed-in-frame.giggly-app-active #eventsApp .events-container {
    flex: 1 1 0%;
    min-height: 0;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px) + var(--events-feed-scroll-tail, 0px));
}

/*
 * Your Feed title: primary styles are inlined in events.html. Only the Feed icon route sets
 * html.giggly-following-feed-standalone — keep this block out of the main Events shell.
 */
#followingFeedStandaloneTitle {
    display: none !important;
}
html.giggly-following-feed-standalone #followingFeedStandaloneTitle:not([hidden]) {
    display: block !important;
}

html.giggly-following-feed-standalone #eventsApp .filter-tabs,
html.giggly-following-feed-standalone #gigglyFilterTabsMount {
    display: none !important;
}

html.giggly-following-feed-standalone #followingFeedStandaloneTitle .promoter-channels-page__helper-text {
    margin: 0 0 8px;
    padding: 0 16px;
}

#followingFeedStandaloneTitle .promoter-channels-page__title {
    margin: 0;
    padding: 8px 16px 4px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #111827;
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: #111827 !important;
}

html[data-theme='dark'] #followingFeedStandaloneTitle .promoter-channels-page__title {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

#followingFeedStandaloneTitle .following-feed-page-heading__hint {
    margin: 0;
    padding: 0 20px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: #6b7280;
    text-align: center;
}

html[data-theme='dark'] #followingFeedStandaloneTitle .following-feed-page-heading__hint {
    color: #94a3b8;
}

/* Promoter list: only search (filter/sort opens the full panel on the main feed). */
html.giggly-pc-controls-docked #promoterChannelsIframeHost .controls-bar--promoter-channels-docked #filterSortBtn,
html.giggly-pc-controls-docked #venueChannelsIframeHost .controls-bar--promoter-channels-docked #filterSortBtn {
    display: none !important;
}

html.giggly-pc-controls-docked #promoterChannelsIframeHost .controls-bar--promoter-channels-docked #feedMonthNav,
html.giggly-pc-controls-docked #venueChannelsIframeHost .controls-bar--promoter-channels-docked #feedMonthNav {
    display: none !important;
}

/* Same shell as events app: body.app-mode flex column + scroll in main */
body.app-mode.ticket-wallet-page .ticket-wallet-app {
    flex: 1 1 0%;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: 100%;
    /* Constrain shell so #ticketWalletScrollport is the only vertical scroller. */
    overflow: hidden;
}

.ticket-wallet-page .bottom-bar {
    display: flex;
}

/*
 * Footer is position:fixed, so it never occupies flex column space — no zeroing needed.
 * It must be viewport-fixed and centered to the chrome column, mirroring the header.
 */
#eventsApp > .bottom-bar.bottom-bar--with-icons,
#ticketWalletApp > .bottom-bar.bottom-bar--with-icons {
    pointer-events: auto;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: var(--giggly-chrome-max-width, 840px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    z-index: 999;
}

.ticket-wallet-app {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-width: var(--giggly-chrome-max-width);
    width: 100%;
    margin: 0 auto;
    /* Bottom bar is position:fixed — do not pad the app shell or an empty band appears under the bar. */
    padding-bottom: 0;
    box-sizing: border-box;
}

html[data-theme='dark'] .ticket-wallet-app {
    background: #1a0f2e;
}

/*
 * Bar A + Bar B: fixed chrome; only #ticketWalletScrollport scrolls.
 * --ticket-wallet-bar1-h and --ticket-wallet-tabs-h are set in ticket-wallet JS from measured heights.
 */
.ticket-wallet-app > #gigglyAppHeaderBar1Mount,
.ticket-wallet-app header.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: var(--giggly-chrome-max-width);
    width: 100%;
    margin: 0 auto;
    flex-shrink: 0;
    box-sizing: border-box;
    z-index: 998;
}

.ticket-wallet-app > #gigglyAppHeaderBar1Mount {
    z-index: 998;
}

.ticket-wallet-app > #gigglyAppHeaderBar1Mount .app-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: none;
    margin: 0;
}

.ticket-wallet-app > .ticket-wallet-tabs {
    position: fixed;
    top: var(--ticket-wallet-bar1-h, 73px);
    left: 0;
    right: 0;
    max-width: var(--giggly-chrome-max-width);
    width: 100%;
    margin: 0 auto;
    flex-shrink: 0;
    z-index: 997;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    /* Separate brand pills (match Events filter tabs) — not one segmented bar. */
    .ticket-wallet-app > .ticket-wallet-tabs:not(.giggly-desktop-subnav-mount) {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        width: 100%;
        max-width: var(--giggly-chrome-max-width);
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        transform: none;
        padding: 4px 16px 8px 20px;
        border-radius: 0;
        background: transparent;
        border-bottom: none;
        box-shadow: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ticket-wallet-app > .ticket-wallet-tabs:not(.giggly-desktop-subnav-mount)::-webkit-scrollbar {
        display: none;
    }

    .ticket-wallet-app > .ticket-wallet-tabs:not(.giggly-desktop-subnav-mount) .ticket-wallet-tabs__btn {
        flex: 0 0 auto;
        border: 1px solid transparent;
        background: #e5e7eb;
        color: #4b5563;
        font-family: var(--font-sans, 'League Spartan', sans-serif);
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        padding: 7px 11px;
        border-radius: 12px;
        box-shadow: none;
        white-space: nowrap;
    }

    .ticket-wallet-app > .ticket-wallet-tabs:not(.giggly-desktop-subnav-mount) .ticket-wallet-tabs__btn--active {
        background: var(--brand-teal, #77aca2);
        color: var(--brand-white, #ffffff);
        box-shadow: none;
    }

    .ticket-wallet-app > .ticket-wallet-tabs:not(.giggly-desktop-subnav-mount) .ticket-wallet-tabs__btn--muted {
        background: #e5e7eb;
        color: #4b5563;
    }

    :root[data-theme='dark'] .ticket-wallet-app > .ticket-wallet-tabs:not(.giggly-desktop-subnav-mount) .ticket-wallet-tabs__btn {
        background: rgba(255, 255, 255, 0.1);
        color: #d1d5db;
    }

    :root[data-theme='dark'] .ticket-wallet-app > .ticket-wallet-tabs:not(.giggly-desktop-subnav-mount) .ticket-wallet-tabs__btn--active {
        background: var(--brand-teal, #77aca2);
        color: var(--brand-white, #ffffff);
    }
}

html[data-theme='dark'] .ticket-wallet-app > .ticket-wallet-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 880px) and (max-width: 991px) {
    .ticket-wallet-app > #gigglyAppHeaderBar1Mount,
    .ticket-wallet-app header.app-header,
    .ticket-wallet-app > .ticket-wallet-tabs {
        left: calc(50% - var(--giggly-chrome-half-width));
        right: calc(50% - var(--giggly-chrome-half-width));
        width: var(--giggly-chrome-max-width);
        max-width: calc(100% - 32px);
    }
}

/* Scrollport: inset below fixed Bar A + Bar B.
 * Must be a plain block scroller (not a flex column) so panel content can grow
 * scrollHeight and overflow-y:auto actually scrolls. */
body.ticket-wallet-page .ticket-wallet-scrollport {
    flex: 1 1 0%;
    min-height: 0;
    height: auto;
    margin-top: calc(var(--ticket-wallet-bar1-h, 73px) + var(--ticket-wallet-tabs-h, 56px));
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    display: block;
    background: var(--bg);
    /* Same clearance as main feed: fixed Bar D + home indicator (padding lives on the scroller). */
    padding-bottom: calc(
        var(--bottom-bar-stack-height, calc(var(--bottom-bar-height, 68px) + max(env(safe-area-inset-bottom, 0px), 8px)))
    );
    box-sizing: border-box;
}

/* iOS app shell: #ticketWalletApp padding-top reserves Bar A+B; do not double-count with scrollport margin. */
html.giggly-ios-app-shell
    body.app-mode.ticket-wallet-page:not(.search-bar-keyboard-mode):not(.ticket-wallet-vv-keyboard)
    .ticket-wallet-scrollport {
    margin-top: 0;
}

/* First navigation with saved tickets: hide scrollport until JS applies the post-layout scroll (avoids iOS bounce). */
html.ticket-wallet-scrollport-boot-mask body.ticket-wallet-page #ticketWalletScrollport {
    visibility: hidden;
}

/* When the wallet search field is focused and the OS shifts the visual viewport (keyboard), keep Bar A/B aligned and extend the scrollport inset. */
body.ticket-wallet-page.ticket-wallet-vv-keyboard .ticket-wallet-app > #gigglyAppHeaderBar1Mount,
body.ticket-wallet-page.ticket-wallet-vv-keyboard .ticket-wallet-app header.app-header {
    top: var(--ticket-wallet-vv-pad, 0px);
}

body.ticket-wallet-page.ticket-wallet-vv-keyboard .ticket-wallet-app > .ticket-wallet-tabs {
    top: calc(var(--ticket-wallet-vv-pad, 0px) + var(--ticket-wallet-bar1-h, 73px));
}

body.ticket-wallet-page.ticket-wallet-vv-keyboard .ticket-wallet-scrollport {
    margin-top: calc(
        var(--ticket-wallet-bar1-h, 73px) + var(--ticket-wallet-tabs-h, 56px) + var(--ticket-wallet-vv-pad, 0px)
    );
}

html[data-theme='dark'] body.ticket-wallet-page .ticket-wallet-scrollport {
    background: #1a0f2e;
}

body.ticket-wallet-page .ticket-wallet-scrollport .ticket-wallet-panel {
    display: block;
    flex: none;
    min-height: 0;
    height: auto;
}

.ticket-wallet-main {
    display: block;
    flex: none;
    min-height: 0;
    height: auto;
    overflow: visible;
    position: relative;
    z-index: 0;
}

.ticket-wallet-inner {
    padding: 16px max(16px, env(safe-area-inset-left)) 24px max(16px, env(safe-area-inset-right));
    max-width: 560px;
    margin: 0 auto;
}

/* My Tickets: Add Tickets + search sit visually first (under fixed tabs) without a post-load scroll jump. */
#walletPanelMy .ticket-wallet-inner {
    display: flex;
    flex-direction: column;
}

.ticket-wallet__banner-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text);
    background: rgba(119, 172, 162, 0.12);
    border: 1px solid rgba(119, 172, 162, 0.35);
    border-radius: 12px;
}

:root[data-theme='dark'] .ticket-wallet__banner-error {
    background: rgba(119, 172, 162, 0.15);
    border-color: rgba(119, 172, 162, 0.4);
}

.ticket-wallet__title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.ticket-wallet__title-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
}

.ticket-wallet__title--with-action {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.ticket-wallet__info-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--accent-blue, #77ACA2f);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ticket-wallet__info-btn:hover {
    background: rgba(119, 172, 162, 0.14);
}

.ticket-wallet__info-btn:focus-visible {
    outline: 2px solid var(--accent-blue, #77ACA2f);
    outline-offset: 2px;
}

:root[data-theme='dark'] .ticket-wallet__info-btn:hover {
    background: rgba(119, 172, 162, 0.2);
}

.ticket-wallet-sheet__body--read-only {
    padding-top: 16px;
}

.ticket-wallet-about-modal__prose {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text);
}

.ticket-wallet-about-modal__prose p {
    margin: 0 0 14px;
}

.ticket-wallet-about-modal__prose p:last-child {
    margin-bottom: 0;
}

.ticket-wallet-about-modal__disclaimer {
    margin-top: 4px !important;
    padding-top: 12px;
    border-top: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    font-size: 0.9rem;
    color: var(--text-secondary, #64748b);
}

:root[data-theme='dark'] .ticket-wallet-about-modal__disclaimer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.ticket-wallet__intro {
    margin: 0 0 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary, #64748b);
}

.ticket-wallet__section-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
}

.ticket-wallet__section-title--spaced {
    margin-top: 28px;
}

.ticket-wallet__hint {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: var(--text-secondary, #64748b);
}

.ticket-wallet__form-lead {
    margin: 0 0 14px;
}

.ticket-wallet__label {
    display: block;
    margin: 12px 0 6px;
    font-size: 0.88rem;
    font-weight: 500;
}

.ticket-wallet__label--tight {
    margin-top: 8px;
    margin-bottom: 5px;
}

/*
 * Add / edit ticket line: two label rows then two control rows so controls align horizontally
 * (date input with provider select; qty select with price row).
 */
.ticket-wallet-line-modal__field-grid {
    display: grid;
    grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 6px;
    margin: 4px 0 14px;
    align-items: start;
}

.ticket-wallet-line-modal__grid-label {
    align-self: end;
    padding-bottom: 2px;
}

.ticket-wallet-line-modal__grid-control {
    min-width: 0;
}

#walletLineModal .ticket-wallet__label--modal-field {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

#walletLineModal .ticket-wallet__label--upload-heading {
    margin-top: 14px;
    color: var(--text-secondary);
}

#walletLineModal .ticket-wallet__notes-textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 4.5rem;
    margin: 0 0 10px;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.35;
    border-radius: 12px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    background: var(--bg);
    color: var(--text);
    resize: vertical;
}

.ticket-wallet__upload-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(100, 116, 139, 0.55);
    background: transparent;
    color: #64748b;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ticket-wallet__upload-icon-btn:active {
    opacity: 0.85;
    transform: scale(0.98);
}

:root[data-theme='dark'] .ticket-wallet__upload-icon-btn {
    background: transparent;
    color: rgba(226, 232, 240, 0.85);
    border-color: rgba(255, 255, 255, 0.22);
}

.ticket-wallet__loc-link {
    color: var(--accent-blue, #77ACA2f);
    font-weight: 600;
    text-decoration: none;
}

.ticket-wallet__loc-link:hover {
    text-decoration: underline;
}

:root[data-theme='dark'] .ticket-wallet__loc-link {
    color: #93c5fd;
}

#walletLineModal .ticket-wallet__select--modal-row {
    width: 100%;
    min-height: 44px;
    height: 44px;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.2;
    box-sizing: border-box;
}

#walletLineModal .ticket-wallet__input--modal-date {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.2;
    box-sizing: border-box;
}

.ticket-wallet__price-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ticket-wallet__price-currency {
    font-size: 1.05rem;
    font-weight: 700;
    flex-shrink: 0;
    color: var(--text);
    line-height: 1;
}

.ticket-wallet__input--price {
    flex: 1;
    min-width: 0;
}

.ticket-wallet__price-field--modal {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 0 0 12px;
    border-radius: 12px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    background: var(--bg);
}

.ticket-wallet__price-field__prefix {
    flex-shrink: 0;
    margin-right: 2px;
    font-size: 16px;
    font-weight: 400;
    font-family: inherit;
    line-height: 1.25;
    color: var(--text);
}

.ticket-wallet__price-field__input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 10px 12px 10px 0;
    font-size: 16px;
    font-weight: 400;
    font-family: inherit;
    line-height: 1.25;
    color: var(--text);
    box-sizing: border-box;
}

.ticket-wallet__price-field__input:focus {
    outline: none;
}

.ticket-wallet__price-field--modal:focus-within {
    border-color: var(--accent-purple, #468189);
    box-shadow: 0 0 0 3px rgba(70, 129, 137, 0.18);
}

.ticket-wallet__upload-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 0 4px;
}

.ticket-wallet__upload-tickets-btn {
    display: block;
    box-sizing: border-box;
    width: 42%;
    max-width: 168px;
    min-width: 132px;
    margin: 0;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    color: #334155;
    background: #e2e8f0;
    -webkit-tap-highlight-color: transparent;
}

.ticket-wallet__upload-tickets-btn:active {
    opacity: 0.92;
}

:root[data-theme='dark'] .ticket-wallet__upload-tickets-btn {
    color: #e2e8f0;
    background: #64748b;
    border-color: rgba(255, 255, 255, 0.1);
}

#walletLineModal .ticket-wallet__thumb-row {
    margin-top: 14px;
    gap: 12px;
}

#walletLineModal .ticket-wallet__pending-thumb-wrap--sheet {
    width: 88px;
    aspect-ratio: 210 / 297;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
}

#walletLineModal .ticket-wallet__pending-thumb--sheet {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    filter: blur(3px);
    transform: scale(1.04);
}

#walletLineModal .ticket-wallet__pending-thumb-wrap--pdf {
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: 100%;
    min-height: 120px;
    height: auto;
    gap: 8px;
}

#walletLineModal .ticket-wallet__pending-thumb--pdf {
    display: block;
    width: 100%;
    max-width: 320px;
    min-height: 3.5rem;
    font-size: 0.82rem;
    padding: 12px 14px;
}

.ticket-wallet__req {
    color: var(--accent-pink);
}

.ticket-wallet__search,
.ticket-wallet__input,
.ticket-wallet__select,
.ticket-wallet__file {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    background: var(--bg);
    color: var(--text);
}

.ticket-wallet__results {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-wallet__result {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    background: rgba(70, 129, 137, 0.06);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ticket-wallet__result-line1 {
    font-weight: 600;
    font-size: 0.98rem;
}

.ticket-wallet__result-line2 {
    font-size: 0.88rem;
    opacity: 0.88;
}

.ticket-wallet__result-line3 {
    font-size: 0.82rem;
    color: var(--text-secondary, #64748b);
}

.ticket-wallet__picked {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(70, 129, 137, 0.08);
    font-size: 0.95rem;
    line-height: 1.45;
}

.ticket-wallet__picked-sub {
    font-size: 0.88rem;
    opacity: 0.9;
}

.ticket-wallet__form {
    margin-top: 12px;
}

.ticket-wallet__save {
    margin-top: 18px;
}

.ticket-wallet__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.ticket-wallet__card {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    background: rgba(255, 255, 255, 0.4);
}

:root[data-theme='dark'] .ticket-wallet__card {
    background: rgba(0, 0, 0, 0.2);
}

.ticket-wallet__card-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.ticket-wallet__card-artists {
    margin: 0 0 6px;
    font-size: 0.9rem;
    opacity: 0.92;
}

.ticket-wallet__card-meta {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
}

.ticket-wallet__card-detail {
    margin: 0;
    font-size: 0.92rem;
}

.ticket-wallet__file-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ticket-wallet__file-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-blue, #77ACA2f);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.ticket-wallet__empty,
.ticket-wallet__error,
.ticket-wallet__wallet-loading {
    margin: 8px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

html.giggly-guest-tickets-locked .ticket-wallet-panel--resale .ticket-wallet-inner--resale {
    display: flex;
    flex-direction: column;
    min-height: min(58vh, 480px);
}

html.giggly-guest-tickets-locked .ticket-wallet-panel--resale .ticket-wallet-resale__list {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

html.giggly-guest-tickets-locked .ticket-wallet-panel--resale .ticket-wallet__title,
html.giggly-guest-tickets-locked .ticket-wallet-panel--resale .ticket-wallet-resale__intro-copy {
    display: none !important;
}

html.giggly-guest-tickets-locked .ticket-wallet__guest-login-prompt {
    margin: 0;
    width: 100%;
    max-width: 28rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    line-height: 1.45;
    color: var(--text);
    padding: 24px 20px;
}

html.giggly-guest-tickets-locked .ticket-wallet-tabs__btn {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

.ticket-wallet__error {
    color: var(--accent-pink);
}

/* Ticket file modal */
.ticket-wallet-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-wallet-modal[hidden] {
    display: none !important;
}

/* Above edit/add ticket sheet (10060) so preview opens on top; below delete confirm (10070). */
#ticketFileModal.ticket-wallet-modal {
    z-index: 10075;
}

.ticket-wallet-modal--ticket-fullscreen {
    align-items: center;
    justify-content: center;
    padding: max(8px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px))
        max(12px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.ticket-wallet-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
}

:root[data-theme='dark'] .ticket-wallet-modal__backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.ticket-wallet-modal__panel {
    position: relative;
    z-index: 1;
    width: min(96vw, 520px);
    max-height: min(88vh, 720px);
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.ticket-wallet-modal__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    flex-shrink: 0;
}

.ticket-wallet-modal__nav {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(70, 129, 137, 0.12);
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

.ticket-wallet-modal__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.ticket-wallet-modal__close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.ticket-wallet-modal__stage {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    box-sizing: border-box;
}

.ticket-wallet__modal-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Ticket preview: fixed panel height; pinch/zoom scrolls inside the image area only. */
.ticket-wallet-modal--ticket-fullscreen .ticket-wallet-modal__panel--ticket-full {
    width: 100%;
    max-width: min(100vw, 520px);
    height: min(92dvh, calc(100dvh - 24px));
    max-height: min(92dvh, calc(100dvh - 24px));
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ticket-wallet-modal--ticket-fullscreen .ticket-wallet-modal__toolbar {
    flex-shrink: 0;
}

.ticket-wallet-modal--ticket-fullscreen .ticket-wallet-modal__stage {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

/* In-modal zoom: flex-centre the image; JS only applies pan + scale (no translate(-50%) clash). */
.ticket-wallet__modal-zoom-root {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.ticket-wallet__modal-zoom-surface {
    position: relative;
    flex: 0 0 auto;
    width: max-content;
    height: max-content;
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    will-change: transform;
}

.ticket-wallet__modal-zoom-surface .ticket-wallet__modal-img--zoomable {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(calc(92dvh - 72px), 100%);
    object-fit: contain;
    border-radius: 0;
    pointer-events: none;
    -webkit-user-drag: none;
}

.ticket-wallet__modal-frame {
    width: 100%;
    min-height: 200px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
}

.ticket-wallet-modal--ticket-fullscreen .ticket-wallet__modal-frame,
.ticket-wallet-modal--ticket-fullscreen .ticket-wallet__modal-frame--full {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
}

/* Ticket wallet: same mascot size as Events Bar A (not the legacy 36×36 square logo). */
.ticket-wallet-page .header-logo,
.ticket-wallet-page .header-logo--mascot {
    display: block;
    width: 40px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 0;
}

body.ticket-wallet-page .app-header .header-brand-link {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ticket-wallet-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    max-width: var(--giggly-chrome-max-width);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px 8px;
    gap: 6px;
    flex-shrink: 0;
    z-index: 108;
}

.ticket-wallet-tabs__btn {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    max-width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.ticket-wallet-tabs__btn--active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ticket-wallet-tabs__btn--muted {
    background: #e5e7eb;
    color: #4b5563;
}

:root[data-theme='dark'] .ticket-wallet-tabs__btn--active {
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
}

:root[data-theme='dark'] .ticket-wallet-tabs__btn--muted {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
}

a.ticket-wallet-tabs__link.ticket-wallet-tabs__btn {
    text-decoration: none;
    color: inherit;
}

.ticket-wallet-tabs--triple .ticket-wallet-tabs__btn {
    font-size: 12px;
    padding: 8px 10px;
    line-height: 1.25;
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    max-width: 100%;
    justify-content: center !important;
    text-align: center !important;
    align-items: center !important;
    white-space: nowrap;
}

.ticket-wallet-tabs--triple .ticket-wallet-tabs__btn--active {
    padding-left: 8px;
    padding-right: 8px;
}

span.ticket-wallet-tabs__btn {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.ticket-wallet-resale__list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ticket-wallet-resale__section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.ticket-wallet-resale__section-title {
    margin: 0;
    padding: 0 2px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text, #212529);
}

.ticket-wallet-resale__section-events {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ticket-wallet-resale__intro-copy {
    margin: 0 0 16px;
}

.ticket-wallet-resale__intro-copy p {
    margin: 0 0 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary, #64748b);
}

.ticket-wallet-resale__occ-label {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
}

.ticket-wallet-resale__swaps {
    margin-top: 10px;
}

.ticket-wallet-panel {
    position: relative;
    flex: none;
    min-height: 0;
    height: auto;
    display: block;
}

/* display:flex on the panel beats [hidden] in some engines — keep inactive tab out of layout */
.ticket-wallet-panel[hidden] {
    display: none !important;
}

.ticket-wallet-results-sheet {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px;
    box-sizing: border-box;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    background: var(--bg);
    overflow: hidden;
}

.ticket-wallet-results-sheet[hidden] {
    display: none !important;
}

.ticket-wallet-results-sheet__inner {
    max-height: min(48vh, 380px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 12px 12px;
    background: var(--bg);
}

.ticket-wallet__result-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.06));
}

.ticket-wallet__result-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ticket-wallet__result-line1 {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.ticket-wallet__result-line2 {
    font-size: 0.85rem;
    color: var(--text-secondary, #64748b);
}

.ticket-wallet__result-line3 {
    font-size: 0.8rem;
    color: var(--text-secondary, #64748b);
}

.ticket-wallet__select-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: var(--accent-blue, #77ACA2f);
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ticket-wallet-search-dock {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 12px;
    box-sizing: border-box;
    padding: 10px 0 4px;
    flex-shrink: 0;
    scroll-margin-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    background: transparent;
}

.ticket-wallet-search-dock .ticket-wallet-search-wrap {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

:root[data-theme='dark'] .ticket-wallet-search-dock .ticket-wallet-search-wrap {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

#walletSearch {
    scroll-margin-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.ticket-wallet-page #walletSearch::placeholder {
    font-size: 0.76rem;
    line-height: 1.3;
}

/*
 * Search + results: sticky to top of scrollport (below fixed Bar A + tabs).
 */
#walletPanelMy .ticket-wallet-search-stack {
    order: -1;
    position: sticky;
    top: 0;
    z-index: 12;
    margin: 0 0 14px;
    padding: 8px 0 10px;
    background: var(--bg);
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    scroll-margin-top: 8px;
}

#walletPanelMy .ticket-wallet-search-stack > .ticket-wallet__section-title--in-search-stack {
    margin: 0 0 10px;
}

:root[data-theme='dark'] #walletPanelMy .ticket-wallet-search-stack {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#walletPanelMy .ticket-wallet-search-stack .ticket-wallet-search-dock {
    margin: 0 0 8px;
    padding: 0;
    scroll-margin-top: 8px;
}

#walletPanelMy .ticket-wallet-search-stack .ticket-wallet-results-sheet {
    margin: 0;
    position: relative;
    z-index: 1;
}

#walletPanelMy .ticket-wallet-search-stack .ticket-wallet-results-sheet__inner {
    max-height: min(42svh, 340px);
}

.ticket-wallet-search-wrap__clear {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin-right: -2px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.72;
    -webkit-tap-highlight-color: transparent;
}

.ticket-wallet-search-wrap__clear[hidden] {
    display: none !important;
}

.ticket-wallet-search-wrap__clear:active {
    opacity: 1;
}

.ticket-wallet-search-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    background: var(--bg);
}

.ticket-wallet-search-wrap__icon {
    display: flex;
    color: var(--text);
    flex-shrink: 0;
}

.ticket-wallet-search-wrap__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    padding: 12px 0;
    outline: none;
}

.ticket-wallet-search-wrap__input::placeholder {
    color: var(--text-secondary, #64748b);
    opacity: 0.95;
}

.ticket-wallet__event-blocks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.ticket-wallet__sale-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.ticket-wallet__sale-summary-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.ticket-wallet__sale-line {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text-secondary, #64748b);
    flex: 1 1 12rem;
    min-width: 0;
}

html[data-theme='dark'] .ticket-wallet__sale-line {
    color: var(--text-secondary, #b8b0c4);
}

.ticket-wallet__sale-summary-row .ticket-wallet__btn-edit-line {
    flex-shrink: 0;
}

.ticket-wallet__sale-card--marked-sold {
    opacity: 0.5;
}

.ticket-wallet__sold-to-label {
    margin: 0 0 8px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}

.ticket-wallet__sale-summary-row--sold-only {
    justify-content: flex-start;
}

.ticket-wallet__sale-summary-row--under-offer {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* Empty “My Tickets For Sale” copy — match .ticket-wallet__intro (not bold). */
.ticket-wallet__empty-sale {
    margin: 0 0 20px;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary, #64748b);
}

:root[data-theme='dark'] .ticket-wallet__empty-sale,
html[data-theme='dark'] .ticket-wallet__empty-sale {
    color: var(--text-secondary, #b8b0c4);
}

.ticket-wallet__wallet-card--past-event {
    opacity: 0.5;
}

.ticket-wallet__picked-card,
.ticket-wallet__wallet-card {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    background: rgba(70, 129, 137, 0.06);
}

:root[data-theme='dark'] .ticket-wallet__picked-card,
:root[data-theme='dark'] .ticket-wallet__wallet-card {
    background: rgba(0, 0, 0, 0.2);
}

.ticket-wallet__picked-card-head {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
}

.ticket-wallet__wallet-card-head-main {
    flex: 1 1 auto;
    min-width: 0;
}

.ticket-wallet__wallet-card-head-top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ticket-wallet__wallet-card-head-top .ticket-wallet__picked-card-text {
    flex: 1 1 auto;
    min-width: 0;
}

.ticket-wallet__btn-edit-card {
    flex-shrink: 0;
    margin-top: 2px;
}

.ticket-wallet__flyer-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.ticket-wallet__flyer-thumb--sm {
    width: 48px;
    height: 48px;
}

.ticket-wallet__flyer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticket-wallet__flyer-thumb--pdf {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue, #77ACA2f);
}

.ticket-wallet__flyer-thumb--empty {
    cursor: default;
}

.ticket-wallet__picked-card-text {
    flex: 1;
    min-width: 0;
}

.ticket-wallet__purchase-lines {
    margin-top: 12px;
}

.ticket-wallet__purchase-line {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

.ticket-wallet__purchase-line:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.ticket-wallet__kv-two-rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-bottom: 12px;
}

.ticket-wallet__kv-pair {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ticket-wallet__kv-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
}

.ticket-wallet__kv-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.ticket-wallet__kv-pair--price-with-notes .ticket-wallet__kv-value-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.ticket-wallet__kv-pair--price-with-notes .ticket-wallet__kv-value {
    flex: 1 1 auto;
    min-width: 0;
}

.ticket-wallet__kv-notes-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 10px;
    background: rgba(70, 129, 137, 0.12);
    color: var(--accent-purple, #468189);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ticket-wallet__kv-notes-btn:active {
    opacity: 0.88;
}

.ticket-wallet__purchase-line-actions-end {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.ticket-wallet__purchase-line-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}


.ticket-wallet__btn-sell,
.ticket-wallet__btn-add-wallet,
.ticket-wallet__btn-edit-line {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.15));
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.ticket-wallet__btn-sell {
    border-color: rgba(34, 197, 94, 0.45);
    color: #15803d;
}

.ticket-wallet__wallet-thumb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    margin-top: 6px;
    justify-items: start;
}

.ticket-wallet__wallet-thumb-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 104px;
}

.ticket-wallet__wallet-thumb-caption {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: var(--text);
    opacity: 0.88;
}

.ticket-wallet__thumb-hit-wrap {
    position: relative;
}

.ticket-wallet__wallet-thumb-frame {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    background: var(--bg);
    box-sizing: border-box;
}

.ticket-wallet__wallet-thumb-open--cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ticket-wallet__wallet-thumb-pdf-label {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue, #77ACA2f);
    text-align: center;
    word-break: break-word;
    pointer-events: none;
}

.ticket-wallet__wallet-thumb-frame--sheet {
    aspect-ratio: 210 / 297;
    max-height: 132px;
}

.ticket-wallet__wallet-thumb-frame--blur img {
    filter: blur(3px);
    transform: scale(1.04);
}

.ticket-wallet__wallet-thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ticket-wallet__wallet-thumb-frame--pdf.ticket-wallet__thumb-hit-wrap {
    min-height: 52px;
}

.ticket-wallet__wallet-thumb-view {
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-family: inherit;
    line-height: 1.2;
    border-radius: 8px;
    border: 1px solid #000000;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ticket-wallet__wallet-thumb-view--overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.ticket-wallet__wallet-thumb-view:active {
    opacity: 0.88;
}

:root[data-theme='dark'] .ticket-wallet__wallet-thumb-view {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}

#walletLineModal .ticket-wallet__line-file-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 88px;
    flex-shrink: 0;
}

#walletLineModal .ticket-wallet__line-file-caption {
    width: 100%;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: var(--text);
    opacity: 0.88;
}

#walletLineModal .ticket-wallet__line-thumb-hit-wrap {
    position: relative;
    width: 100%;
}

#walletLineModal .ticket-wallet__line-file-frame {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    background: var(--bg);
    box-sizing: border-box;
}

#walletLineModal .ticket-wallet__line-thumb-open--cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#walletLineModal .ticket-wallet__line-file-pdf-label {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-blue, #77ACA2f);
    text-align: center;
    word-break: break-word;
    pointer-events: none;
}

#walletLineModal .ticket-wallet__line-file-frame--sheet {
    aspect-ratio: 210 / 297;
}

#walletLineModal .ticket-wallet__line-file-frame--sheet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

#walletLineModal .ticket-wallet__line-file-frame--pdf.ticket-wallet__line-thumb-hit-wrap {
    min-height: 72px;
}

#walletLineModal .ticket-wallet__line-file-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 4;
    width: 26px;
    height: 26px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

#walletLineModal .ticket-wallet__line-file-remove:active {
    opacity: 0.9;
}

.ticket-wallet__picked-date {
    margin: 0 0 4px;
    font-size: 0.82rem;
    color: var(--text-secondary, #64748b);
}

.ticket-wallet__picked-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

a.ticket-wallet__picked-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.ticket-wallet__picked-artists,
.ticket-wallet__picked-loc {
    margin: 0 0 2px;
    font-size: 0.88rem;
}

.ticket-wallet__sale-total-for-listing {
    margin-top: 10px;
}

.ticket-wallet__picked-add {
    margin-top: 10px;
    width: 100%;
}

.ticket-wallet__line-table {
    margin-top: 10px;
    font-size: 0.85rem;
}

.ticket-wallet__line-head,
.ticket-wallet__line-row {
    display: grid;
    grid-template-columns: 1fr 1fr 0.6fr 0.9fr auto;
    gap: 6px;
    align-items: center;
    padding: 6px 0;
}

.ticket-wallet__line-head {
    font-weight: 600;
    opacity: 0.85;
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

.ticket-wallet__line-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.ticket-wallet__mini-btn {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.15));
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
}

.ticket-wallet__mini-btn--sell {
    border-color: rgba(34, 197, 94, 0.45);
    color: #15803d;
}

.ticket-wallet__add-more {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px dashed var(--border, rgba(0, 0, 0, 0.2));
    background: transparent;
    color: var(--accent-purple, #468189);
    cursor: pointer;
}

.ticket-wallet-inner--sale {
    padding-top: 8px;
}

.ticket-wallet__hint--sale {
    margin-top: 0;
}

/* Lock page + wallet scrollport while ticket-wallet bottom sheets are open */
html.ticket-wallet-modal-open,
body.ticket-wallet-modal-open {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
}

#ticketWalletScrollport.ticket-wallet-scrollport--modal-lock {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
}

/* Bottom sheet modals — stay below app header */
.ticket-wallet-sheet {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    padding-top: calc(72px + env(safe-area-inset-top, 0px));
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    pointer-events: none;
    overscroll-behavior: contain;
    touch-action: none;
}

#walletLineDeleteModal.ticket-wallet-sheet {
    z-index: 10070;
}

.ticket-wallet-sheet[hidden] {
    display: none !important;
}

.ticket-wallet-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    pointer-events: auto;
}

:root[data-theme='dark'] .ticket-wallet-sheet__backdrop {
    background: rgba(0, 0, 0, 0.58);
}

.ticket-wallet-sheet__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: calc(
        100dvh - 72px - env(safe-area-inset-top, 0px) - max(28px, env(safe-area-inset-bottom, 0px)) - 8px
    );
    border-radius: 16px 16px 0 0;
    background: var(--bg);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    touch-action: pan-y;
    overscroll-behavior: contain;
    isolation: isolate;
}

.ticket-wallet-sheet__card--narrow {
    max-width: 400px;
}

/* About Ticket Wallet: centered card + full-viewport scrim (match About Ticket Swap info). */
#walletAboutModal.ticket-wallet-sheet {
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
        max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
}

#walletAboutModal .ticket-wallet-sheet__backdrop {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
}

:root[data-theme='dark'] #walletAboutModal .ticket-wallet-sheet__backdrop {
    background: rgba(0, 0, 0, 0.55);
}

#walletAboutModal .ticket-wallet-sheet__card.ticket-wallet-sheet__card--about-wallet {
    max-width: min(560px, 100%);
    max-height: min(78vh, 640px);
    border-radius: 20px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

:root[data-theme='dark'] #walletAboutModal .ticket-wallet-sheet__card.ticket-wallet-sheet__card--about-wallet {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.ticket-wallet-line-modal__lead {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text);
}

.ticket-wallet-line-modal__lead[hidden] {
    display: none !important;
}

.ticket-wallet-line-modal__event {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    margin: 0 0 16px;
    border-radius: 12px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    background: rgba(70, 129, 137, 0.06);
    flex-shrink: 0;
}

:root[data-theme='dark'] .ticket-wallet-line-modal__event {
    background: rgba(0, 0, 0, 0.2);
}

.ticket-wallet-line-modal__event[hidden] {
    display: none !important;
}

.ticket-wallet-line-modal__event-inner {
    width: 100%;
}

.ticket-wallet-sheet__head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    flex-shrink: 0;
    touch-action: manipulation;
}

.ticket-wallet-sheet__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.ticket-wallet-sheet__close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
}

.ticket-wallet-sheet__body {
    padding: 12px 16px calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
}

#walletLineModal .ticket-wallet-sheet__body {
    padding: 12px 16px calc(28px + env(safe-area-inset-bottom, 0px));
}

#walletLineModal .ticket-wallet-sheet__actions {
    border-top: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    padding-top: 16px;
    margin-top: 18px;
}

#walletLineModal .ticket-wallet-sheet__actions.ticket-wallet-sheet__actions--row {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

#walletLineModal .ticket-wallet-sheet__actions.ticket-wallet-sheet__actions--row .danger-button,
#walletLineModal .ticket-wallet-sheet__actions.ticket-wallet-sheet__actions--row .auth-button {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
}

/* Edit tickets: Delete = red outline on white; Save = white on blue */
#walletLineModal .ticket-wallet-sheet__btn-delete-outline {
    background: #ffffff !important;
    color: #dc2626 !important;
    border: 1.5px solid #dc2626 !important;
    box-shadow: none !important;
}

#walletLineModal .ticket-wallet-sheet__btn-save-blue {
    background: var(--accent-blue, #77ACA2F) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

/* Delete confirm: Yes = white on blue; Cancel = white on black */
#walletLineDeleteModal .ticket-wallet-sheet__btn-confirm-blue {
    background: var(--accent-blue, #77ACA2F) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

#walletLineDeleteModal .ticket-wallet-sheet__btn-cancel-black {
    background: #111111 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

#walletLineModal .ticket-wallet-sheet__secondary-btn {
    flex: 1 1 0;
    background: transparent !important;
    color: var(--text) !important;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.2));
    box-shadow: none;
}

:root[data-theme='dark'] #walletLineModal .ticket-wallet-sheet__secondary-btn {
    border-color: rgba(255, 255, 255, 0.22);
}

#walletLineModal #walletLineModalViewContinue {
    white-space: normal;
    line-height: 1.25;
    text-align: center;
    padding-left: 12px;
    padding-right: 12px;
}

.ticket-wallet-sheet--view-only .ticket-wallet__line-file-remove,
.ticket-wallet-sheet--view-only [data-wallet-server-file-remove],
.ticket-wallet-sheet--view-only [data-pend-remove] {
    display: none !important;
    pointer-events: none;
}

.ticket-wallet-sheet--view-only .ticket-wallet__label--upload-heading,
.ticket-wallet-sheet--view-only .ticket-wallet__upload-stack {
    opacity: 0.88;
}

/* View-only sheet: keep values readable (esp. price) — disabled inputs are not dimmed. */
.ticket-wallet-sheet--view-only .ticket-wallet-line-modal__field-grid input:disabled,
.ticket-wallet-sheet--view-only .ticket-wallet-line-modal__field-grid select:disabled,
.ticket-wallet-sheet--view-only .ticket-wallet-line-modal__field-grid textarea:disabled {
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text);
    opacity: 1 !important;
}

:root[data-theme='dark'] #walletLineModal .ticket-wallet-sheet__actions {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.ticket-wallet__intro--tight {
    margin-top: 0;
    margin-bottom: 16px;
}

.ticket-wallet__sell-more-price-lead {
    margin-top: 1.35rem;
}

.ticket-wallet__sell-more-price-note {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--text);
    opacity: 0.82;
}

.ticket-wallet__price-wrap--sell-more-readout {
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    background: var(--bg);
    box-sizing: border-box;
}

.ticket-wallet__sell-more-price-readout {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

.ticket-wallet-sheet__primary--wide {
    width: 100%;
    align-self: stretch;
}

.ticket-wallet-sheet__actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-wallet-sheet__actions--row {
    flex-direction: row;
    justify-content: stretch;
}

.ticket-wallet-sheet__actions--row .auth-button {
    flex: 1;
}

.ticket-wallet-sheet__primary {
    background: var(--brand-btn-bg, #468189) !important;
    color: #fff !important;
}

.ticket-wallet-sheet__danger {
    width: 100%;
}

#walletLineModal .ticket-wallet-sheet__danger {
    width: auto;
}

.ticket-wallet__select--compact {
    font-size: 14px;
    padding: 8px 10px;
}

.ticket-wallet__thumb-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.ticket-wallet__pending-thumb-wrap {
    position: relative;
    width: 52px;
    height: 52px;
}

.ticket-wallet__pending-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
}

.ticket-wallet__pending-remove {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: #111;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.ticket-wallet__pending-thumb--pdf {
    font-size: 10px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(119, 172, 162, 0.15);
    max-width: 120px;
    word-break: break-all;
}

.ticket-wallet-modal--flyer .ticket-wallet-modal__panel--flyer {
    max-height: calc(100vh - 80px - env(safe-area-inset-top));
}

.ticket-wallet-modal__toolbar--simple {
    justify-content: space-between;
}

.ticket-wallet-modal__flyer-title {
    font-weight: 600;
    font-size: 0.95rem;
    padding-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-wallet-modal__stage--flyer {
    max-height: 70vh;
}

.ticket-wallet-modal__scroll-body {
    padding: 14px 16px 18px;
    overflow: auto;
    max-height: min(70vh, 520px);
    box-sizing: border-box;
}

.ticket-wallet__notes-read-body {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
}

/* --------------------------------------------------------------------------
   Tag hub (/tag.html) — Bar 3 subnav + lists (scrolls above controls + bottom)
   -------------------------------------------------------------------------- */

/*
 * iframe embed (Alt-Escape): parent still shows calendar + search; scroll lists need extra bottom
 * inset so the last artist row isn’t covered when scrolled flush to the end.
 */
body.tag-hub--embed {
    --tag-hub-embed-scroll-pad: calc(
        var(--bottom-bar-height) + 68px + 300px + env(safe-area-inset-bottom, 0px) + 20px
    );
}

body.app-mode #tagHubApp {
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
    width: 100%;
    max-width: 100%;
}

/* Embed in index iframe: one flex tab shell + inner scroll (no main-feed outer scroll / padding). */
.tag-hub--embed #tagHubApp {
    flex: 1 1 0%;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

/* Standalone / fallback: [hidden] collapses tab panels. */
#tagHubEventsPanel[hidden],
#tagHubDayPanel[hidden],
#tagHubSchedulePanel[hidden] {
    display: none !important;
}

/*
 * Embed (Alt+Escape iframe): WebKit can still lay out flex siblings when [hidden] fights
 * .events-container — hide any tab panel that is not the active one (JS toggles class).
 */
.tag-hub--embed #tagHubApp > #tagHubEventsPanel:not(.tag-hub-embed-tab-active),
.tag-hub--embed #tagHubApp > #tagHubDayPanel:not(.tag-hub-embed-tab-active),
.tag-hub--embed #tagHubApp > #tagHubSchedulePanel:not(.tag-hub-embed-tab-active) {
    display: none !important;
}

/* Active tab only: column shell; scroll happens on inner list (not .events-container). */
.tag-hub--embed #tagHubEventsPanel.tag-hub-embed-tab-active,
.tag-hub--embed #tagHubDayPanel.tag-hub-embed-tab-active,
.tag-hub--embed #tagHubSchedulePanel.tag-hub-embed-tab-active {
    flex: 1 1 0%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 auto;
    width: 100%;
    max-width: 840px;
    box-sizing: border-box;
}

.tag-hub--embed #tagHubEventsPanel.tag-hub-embed-tab-active > #tagHubEventsList:not([hidden]) {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    padding: 0 20px var(--tag-hub-embed-scroll-pad);
    scroll-padding-bottom: var(--tag-hub-embed-scroll-pad);
    box-sizing: border-box;
}

.tag-hub--embed #tagHubEventsPanel.tag-hub-embed-tab-active > .events-feed-loading:not([hidden]),
.tag-hub--embed #tagHubEventsPanel.tag-hub-embed-tab-active > .empty-state:not([hidden]) {
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    box-sizing: border-box;
}

.tag-hub--embed #tagHubDayPanel.tag-hub-embed-tab-active,
.tag-hub--embed #tagHubSchedulePanel.tag-hub-embed-tab-active {
    background-color: var(--bg);
}

.tag-hub--embed #tagHubDayPanel.tag-hub-embed-tab-active > #tagHubDayInner {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    /* Parent iframe keeps Bar C + Bar D visible below the embed — pad past them when scrolled to end */
    padding: 0 0 var(--tag-hub-embed-scroll-pad);
    scroll-padding-bottom: var(--tag-hub-embed-scroll-pad);
    box-sizing: border-box;
    background-color: var(--bg);
}

.tag-hub--embed #tagHubSchedulePanel.tag-hub-embed-tab-active > #tagHubFavouritesInner {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    padding: 0 20px var(--tag-hub-embed-scroll-pad);
    scroll-padding-bottom: var(--tag-hub-embed-scroll-pad);
    box-sizing: border-box;
    background-color: var(--bg);
}

.tag-hub--embed #tagHubDayPanel.tag-hub-embed-tab-active > #tagHubDayEmpty:not([hidden]),
.tag-hub--embed #tagHubSchedulePanel.tag-hub-embed-tab-active > #tagHubFavouritesEmpty:not([hidden]) {
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    box-sizing: border-box;
}

/* Empty list: JS sets tag-hub-*-panel--empty so we do not rely on :has() (older WebKit in iframe). */
.tag-hub--embed #tagHubDayPanel.tag-hub-day-panel--empty > #tagHubDayInner,
.tag-hub--embed #tagHubSchedulePanel.tag-hub-schedule-panel--empty > #tagHubFavouritesInner {
    display: none !important;
}

/*
 * Parent shell owns Bar 3 — posts overlap px as --tag-hub-embed-stack-top so list rows do not draw under
 * fixed Bars 1–3 when WK pans or flex reserves lag a frame.
 */
body.tag-hub--embed-parent-chrome.tag-hub--embed #tagHubEventsPanel.tag-hub-embed-tab-active > #tagHubEventsList:not([hidden]) {
    padding-top: var(--tag-hub-embed-stack-top, 0px);
    scroll-padding-top: var(--tag-hub-embed-stack-top, 0px);
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: var(--tag-hub-embed-scroll-pad);
}

body.tag-hub--embed-parent-chrome.tag-hub--embed #tagHubDayPanel.tag-hub-embed-tab-active > #tagHubDayInner {
    padding-top: var(--tag-hub-embed-stack-top, 0px);
    scroll-padding-top: var(--tag-hub-embed-stack-top, 0px);
    padding-left: 0;
    padding-right: 0;
    padding-bottom: var(--tag-hub-embed-scroll-pad);
}

body.tag-hub--embed-parent-chrome.tag-hub--embed #tagHubSchedulePanel.tag-hub-embed-tab-active > #tagHubFavouritesInner {
    padding-top: var(--tag-hub-embed-stack-top, 0px);
    scroll-padding-top: var(--tag-hub-embed-stack-top, 0px);
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: var(--tag-hub-embed-scroll-pad);
}

body.tag-hub--embed-parent-chrome.tag-hub--embed #tagHubEventsPanel.tag-hub-embed-tab-active > .events-feed-loading:not([hidden]),
body.tag-hub--embed-parent-chrome.tag-hub--embed #tagHubEventsPanel.tag-hub-embed-tab-active > .empty-state:not([hidden]) {
    padding-top: calc(24px + var(--tag-hub-embed-stack-top, 0px));
}

body.tag-hub--embed-parent-chrome.tag-hub--embed #tagHubDayPanel.tag-hub-embed-tab-active > #tagHubDayEmpty:not([hidden]),
body.tag-hub--embed-parent-chrome.tag-hub--embed #tagHubSchedulePanel.tag-hub-embed-tab-active > #tagHubFavouritesEmpty:not([hidden]) {
    padding-top: calc(24px + var(--tag-hub-embed-stack-top, 0px));
}

/* Main app uses position:fixed + bottom offset for Bar D; tag embed hides Bar D — keep search in flow. */
.tag-hub--embed #tagHubApp > .controls-bar {
    display: flex !important;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    flex-shrink: 0;
    height: 60px;
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
    z-index: 6;
}

/*
 * Tag hub (/tag.html): while searching on touch, pin the Event/List/Favourites bar + search controls
 * to the visual viewport (iframe embed + standalone). Parent body.search-bar-keyboard-mode does
 * not apply inside the iframe — use body.tag-hub-search-keyboard-mode (set in giggly-tag-hub.js).
 */
@media (hover: none), (pointer: coarse) {
    body.tag-hub-search-keyboard-mode #tagHubApp > .bottom-bar {
        display: none !important;
    }

    /*
     * Embed + keyboard: fixed subnav lives in a second @media block after `.tag-hub--embed .tag-hub-subnav`
     * so `position: sticky` cannot win on tie specificity; see “Tag hub embed + keyboard”.
     */

    /*
     * Reserve top space on the scroll lists (not #tagHubApp) so event rows start below the fixed subnav,
     * same idea as venue channels: scroll-body padding keeps content out from under the sticky/fixed strip.
     */
    body.app-mode:not(.tag-hub--embed).tag-hub-search-keyboard-mode #tagHubApp {
        padding-top: 0 !important;
    }

    body.app-mode:not(.tag-hub--embed).tag-hub-search-keyboard-mode
        #tagHubEventsPanel.tag-hub-embed-tab-active
        > #tagHubEventsList:not([hidden]),
    body.app-mode:not(.tag-hub--embed).tag-hub-search-keyboard-mode
        #tagHubDayPanel.tag-hub-embed-tab-active
        > #tagHubDayInner,
    body.app-mode:not(.tag-hub--embed).tag-hub-search-keyboard-mode
        #tagHubSchedulePanel.tag-hub-embed-tab-active
        > #tagHubFavouritesInner {
        padding-top: calc(
            var(--tag-hub-vv-pad-top, 0px) + var(--tag-hub-chrome-top-gap, 120px)
        ) !important;
        scroll-padding-top: calc(
            var(--tag-hub-vv-pad-top, 0px) + var(--tag-hub-chrome-top-gap, 120px)
        );
    }

    body.app-mode:not(.tag-hub--embed).tag-hub-search-keyboard-mode
        #tagHubEventsPanel.tag-hub-embed-tab-active
        > .events-feed-loading:not([hidden]),
    body.app-mode:not(.tag-hub--embed).tag-hub-search-keyboard-mode
        #tagHubEventsPanel.tag-hub-embed-tab-active
        > .empty-state:not([hidden]) {
        padding-top: calc(
            var(--tag-hub-vv-pad-top, 0px) + var(--tag-hub-chrome-top-gap, 120px)
        ) !important;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 24px;
        box-sizing: border-box;
    }

    body.app-mode:not(.tag-hub--embed).tag-hub-search-keyboard-mode .app-header {
        position: fixed !important;
        top: var(--tag-hub-vv-pad-top, 0px) !important;
        left: 0;
        right: 0;
        max-width: 840px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        z-index: 540;
    }

    body.app-mode:not(.tag-hub--embed).tag-hub-search-keyboard-mode .tag-hub-subnav {
        position: fixed !important;
        top: calc(var(--tag-hub-vv-pad-top, 0px) + var(--tag-hub-header-h, 72px)) !important;
        left: 0;
        right: 0;
        max-width: 840px;
        width: calc(100% - 24px);
        margin-left: auto;
        margin-right: auto;
        z-index: 530;
        flex-shrink: 0;
    }

    body.tag-hub-search-keyboard-mode #tagHubApp > .controls-bar,
    body.tag-hub-search-keyboard-mode #tagHubApp > .controls-bar *:not(input):not(textarea) {
        touch-action: none;
    }

    body.tag-hub-search-keyboard-mode #tagHubApp > .controls-bar input,
    body.tag-hub-search-keyboard-mode #tagHubApp > .controls-bar textarea {
        touch-action: manipulation;
    }

    body.tag-hub-search-keyboard-mode #tagHubApp > .controls-bar {
        position: fixed !important;
        top: auto !important;
        left: 0;
        right: 0;
        max-width: 840px;
        width: 100%;
        margin: 0 auto;
        bottom: calc(
            var(--tag-hub-controls-kb-bottom, 0px) + max(4px, env(safe-area-inset-bottom, 0px))
        ) !important;
        z-index: 510;
        isolation: isolate;
        overscroll-behavior: none;
    }

    body.tag-hub--embed.tag-hub-search-keyboard-mode
        .tag-hub-embed-tab-active
        > #tagHubEventsList:not([hidden]) {
        padding-top: calc(
            var(--tag-hub-vv-pad-top, 0px) + var(--tag-hub-subnav-gap, 120px)
        ) !important;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: calc(
            var(--tag-hub-embed-scroll-pad) + 60px + var(--tag-hub-controls-kb-bottom, 0px)
        );
        scroll-padding-top: calc(
            var(--tag-hub-vv-pad-top, 0px) + var(--tag-hub-subnav-gap, 120px)
        );
        scroll-padding-bottom: calc(
            var(--tag-hub-embed-scroll-pad) + 60px + var(--tag-hub-controls-kb-bottom, 0px)
        );
    }

    body.tag-hub--embed.tag-hub-search-keyboard-mode .tag-hub-embed-tab-active > #tagHubDayInner {
        padding-top: calc(
            var(--tag-hub-vv-pad-top, 0px) + var(--tag-hub-subnav-gap, 120px)
        ) !important;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: calc(
            var(--tag-hub-embed-scroll-pad) + 60px + var(--tag-hub-controls-kb-bottom, 0px)
        );
        scroll-padding-top: calc(
            var(--tag-hub-vv-pad-top, 0px) + var(--tag-hub-subnav-gap, 120px)
        );
        scroll-padding-bottom: calc(
            var(--tag-hub-embed-scroll-pad) + 60px + var(--tag-hub-controls-kb-bottom, 0px)
        );
    }

    body.tag-hub--embed.tag-hub-search-keyboard-mode
        .tag-hub-embed-tab-active
        > #tagHubFavouritesInner {
        padding-top: calc(
            var(--tag-hub-vv-pad-top, 0px) + var(--tag-hub-subnav-gap, 120px)
        ) !important;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: calc(
            var(--tag-hub-embed-scroll-pad) + 60px + var(--tag-hub-controls-kb-bottom, 0px)
        );
        scroll-padding-top: calc(
            var(--tag-hub-vv-pad-top, 0px) + var(--tag-hub-subnav-gap, 120px)
        );
        scroll-padding-bottom: calc(
            var(--tag-hub-embed-scroll-pad) + 60px + var(--tag-hub-controls-kb-bottom, 0px)
        );
    }

    body.tag-hub--embed.tag-hub-search-keyboard-mode
        #tagHubEventsPanel.tag-hub-embed-tab-active
        > .events-feed-loading:not([hidden]),
    body.tag-hub--embed.tag-hub-search-keyboard-mode
        #tagHubEventsPanel.tag-hub-embed-tab-active
        > .empty-state:not([hidden]) {
        padding-top: calc(
            var(--tag-hub-vv-pad-top, 0px) + var(--tag-hub-subnav-gap, 120px)
        ) !important;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 24px;
        box-sizing: border-box;
    }

    /*
     * Tag hub iframe embed: pin no-hits under fixed header + subnav while the keyboard is up (same
     * idea as body.search-bar-keyboard-mode #feedSearchNoResultsBanner on the main feed).
     */
    html.tag-hub-embed-doc body.tag-hub--embed.tag-hub-search-keyboard-mode #tagHubSearchNoResultsBanner:not([hidden]) {
        position: fixed;
        left: 0;
        right: 0;
        max-width: 840px;
        width: calc(100% - 24px);
        margin: 0 auto;
        box-sizing: border-box;
        /* Iframe-local: sit below fixed Bar 3 only (--tag-hub-subnav-h); vv/subnav-gap vars mixed parent coords before). */
        top: calc(var(--tag-hub-subnav-h, 52px) + 8px);
        z-index: 525;
        box-shadow: 0 1px 0 var(--border);
    }

    html.tag-hub-embed-doc
        body.tag-hub--embed.tag-hub-search-keyboard-mode:has(#tagHubSearchNoResultsBanner:not([hidden]))
        .tag-hub-embed-tab-active
        > #tagHubEventsList:not([hidden]),
    html.tag-hub-embed-doc
        body.tag-hub--embed.tag-hub-search-keyboard-mode:has(#tagHubSearchNoResultsBanner:not([hidden]))
        .tag-hub-embed-tab-active
        > #tagHubDayInner,
    html.tag-hub-embed-doc
        body.tag-hub--embed.tag-hub-search-keyboard-mode:has(#tagHubSearchNoResultsBanner:not([hidden]))
        .tag-hub-embed-tab-active
        > #tagHubFavouritesInner {
        padding-top: calc(12px + var(--tag-hub-search-no-hits-h, 0px));
    }

    /*
     * Standalone /tag.html: the tab panel (.events-container) is the scroll root — reserve space for
     * the fixed search bar + keyboard inset (embed uses inner list scroll instead).
     */
    body.app-mode:not(.tag-hub--embed).tag-hub-search-keyboard-mode #tagHubApp > .events-container.tag-hub-embed-tab-active {
        padding-bottom: calc(24px + 60px + env(safe-area-inset-bottom, 0px) + var(--tag-hub-controls-kb-bottom, 0px));
    }
}

.tag-hub--embed .tag-hub-day-sticky {
    top: 0;
    z-index: 6;
    margin-top: 0;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

/* List view: pad first date strip so it meets the subnav and masks scrolling rows underneath. */
.tag-hub--embed #tagHubDayInner > .tag-hub-day-section:first-of-type .tag-hub-day-sticky {
    padding-top: 14px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
    margin-top: 0;
    background-color: var(--bg);
    box-shadow: 0 12px 14px -12px rgba(0, 0, 0, 0.12);
}

.tag-hub-subnav {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 5px;
    padding: 0 8px 6px;
    max-width: 840px;
    margin: 4px auto 0;
    width: calc(100% - 24px);
    box-sizing: border-box;
    flex-shrink: 0;
    z-index: 104;
    border-radius: 0;
    background: transparent;
    border: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.tag-hub--embed .tag-hub-subnav {
    position: sticky;
    top: 0;
    z-index: 130;
    margin-top: 2px;
    margin-bottom: 0;
    padding-top: 6px;
    padding-bottom: 8px;
    border-radius: 14px;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 20px);
    max-width: 820px;
    background: rgba(245, 245, 247, 0.82);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
}

:root[data-theme='dark'] .tag-hub--embed .tag-hub-subnav {
    background: rgba(36, 28, 52, 0.78);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

/*
 * Tag hub embed + keyboard (touch): pin Event/List/Favourites — fixed `top: 0` is iframe-local (see JS lock).
 */
@media (hover: none), (pointer: coarse) {
    /* Top inset lives on scroll roots (see above) so rows cannot slide under the fixed subnav. */
    body.tag-hub--embed.tag-hub-search-keyboard-mode #tagHubApp {
        padding-top: 0 !important;
    }

    /*
     * `top` is iframe-local (0 = top of iframe box). Parent vv / tab offsets are not in this coordinate
     * system — JS used to mix them and the bar slid off-screen on iOS.
     */
    body.tag-hub--embed.tag-hub-search-keyboard-mode .tag-hub-subnav {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        max-width: 840px;
        width: calc(100% - 24px);
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
        z-index: 530;
        flex-shrink: 0;
    }

    /*
     * iOS WK: `overflow: hidden` on #tagHubApp (embed) + `body.app-mode` can make `position: fixed` subnav
     * track a shrinking layout viewport when the keyboard opens. Let fixed chrome use the real viewport.
     */
    html.tag-hub-embed-doc body.tag-hub--embed.tag-hub-search-keyboard-mode,
    html.tag-hub-embed-doc body.tag-hub--embed.tag-hub-search-keyboard-mode #tagHubApp {
        overflow: visible !important;
    }

    html.tag-hub-embed-doc body.tag-hub--embed.tag-hub-search-keyboard-mode #tagHubApp {
        max-height: none !important;
    }
}

/* Same embed keyboard pinning when `(hover: none)` is false (some iPad / PWA profiles). */
@supports (-webkit-touch-callout: none) {
    body.tag-hub--embed.tag-hub-search-keyboard-mode #tagHubApp {
        padding-top: 0 !important;
    }

    body.tag-hub--embed.tag-hub-search-keyboard-mode .tag-hub-subnav {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        max-width: 840px;
        width: calc(100% - 24px);
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
        z-index: 530;
        flex-shrink: 0;
    }

    html.tag-hub-embed-doc body.tag-hub--embed.tag-hub-search-keyboard-mode,
    html.tag-hub-embed-doc body.tag-hub--embed.tag-hub-search-keyboard-mode #tagHubApp {
        overflow: visible !important;
    }

    html.tag-hub-embed-doc body.tag-hub--embed.tag-hub-search-keyboard-mode #tagHubApp {
        max-height: none !important;
    }
}

.tag-hub-subnav__btn {
    flex: 1 1 0%;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(0, 0, 0, 0.07);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:root[data-theme='dark'] .tag-hub-subnav__btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(232, 228, 237, 0.82);
}

.tag-hub-subnav__btn.is-active {
    color: #111827;
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

:root[data-theme='dark'] .tag-hub-subnav__btn.is-active {
    color: #111827;
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.tag-hub-subnav__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tag-hub-favourites-inner {
    padding: 0 0 12px;
}

.tag-hub-feed-day-divider {
    margin-top: 4px;
}

/* Date strip sticks at top of each tab’s inner scroll (Event View + My favourites). */
.tag-hub--embed #tagHubEventsPanel .tag-hub-feed-day-divider,
.tag-hub--embed #tagHubFavouritesInner .tag-hub-feed-day-divider {
    position: sticky;
    top: 0;
    z-index: 5;
    margin-top: 4px !important;
    margin-bottom: 10px;
    justify-content: center;
    text-align: center;
    background: var(--bg);
    box-shadow: 0 12px 14px -12px rgba(0, 0, 0, 0.12);
}

/* My favourites: opaque pad above first date so list rows do not show through under the subnav. */
.tag-hub--embed #tagHubFavouritesInner > .tag-hub-feed-day-divider:first-of-type {
    margin-top: 0 !important;
    padding-top: 14px;
    padding-bottom: 2px;
}

.tag-hub--embed #tagHubEventsPanel .tag-hub-feed-day-divider .feed-month-divider__month,
.tag-hub--embed #tagHubFavouritesInner .tag-hub-feed-day-divider .feed-month-divider__month {
    text-align: center;
}

.tag-hub-day-scroll {
    padding-top: 0;
}

.tag-hub-day-section:first-of-type .tag-hub-day-sticky {
    margin-top: 0;
    padding-top: 0;
}

.tag-hub-slot-fav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tag-hub-slot-fav.is-on {
    color: var(--accent-pink, #77ACA2);
}

.tag-hub-slot-fav__glyph {
    font-size: 20px;
    line-height: 1;
}

.tag-hub-feed-card .tag-hub-feed-card__clock {
    pointer-events: none;
}

.tag-hub-day-row__actions .event-card-v2__heart.tag-hub-calendar-fav {
    flex-shrink: 0;
    margin: 0;
    /* Android WebKit can widen tap targets for small <button>s; only the disc should receive taps. */
    pointer-events: none;
}

.tag-hub-day-row__actions .event-card-v2__heart.tag-hub-calendar-fav .event-card-v2__heart-disc {
    pointer-events: auto;
}

.tag-hub-day-people-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tag-hub-day-people-btn .view-event-page__stars-group-svg {
    display: block;
}

.tag-hub-schedule-panel {
    padding: 20px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.tag-hub--embed #tagHubApp > header.app-header,
.tag-hub--embed .bottom-bar {
    display: none !important;
}

/* Parent events shell owns subnav + search — iframe lists only (embed=1). */
body.tag-hub--embed-parent-chrome #tagHubSubnav,
body.tag-hub--embed-parent-chrome #tagHubApp > .controls-bar {
    display: none !important;
}

body.tag-hub--embed-parent-chrome #tagHubSearchInput {
    pointer-events: none !important;
}

.tag-hub-card {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    align-items: flex-start;
}

.tag-hub-card__flyer {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--border);
}

.tag-hub-card__flyer--empty {
    background: var(--brand-teal-deep, #468189);
}

.tag-hub-card__flyer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tag-hub-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text);
}

.tag-hub-card__meta,
.tag-hub-card__loc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 4px;
}

.tag-hub-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.tag-hub-people-btn {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    border-radius: 8px;
    color: var(--text-secondary);
}

.tag-hub-day-scroll {
    padding-left: 0;
    padding-right: 0;
}

.tag-hub-day-section {
    margin-bottom: 8px;
}

.tag-hub-day-sticky {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.tag-hub-day-rows {
    padding: 0 20px 8px;
}

.tag-hub-day-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: default;
}

.tag-hub-day-row__flyer {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--border);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tag-hub-day-row__flyer--empty {
    background: var(--brand-teal-deep, #468189);
}

.tag-hub-day-row__flyer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Same as page bg so the thumb does not flash grey → photo while decoding. */
    background-color: var(--bg);
}

.tag-hub-day-row__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
}

.tag-hub-day-row__time {
    display: block;
    width: 100%;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.25;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tag-hub-day-row__artist {
    display: block;
    width: 100%;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.tag-hub-day-row__venue {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.tag-hub-day-row__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.tag-hub-day-row__heart-count {
    min-width: 24px;
    padding: 0 2px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.tag-hub-day-row__slot-pick-count {
    min-width: 24px;
    padding: 0 2px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.tag-hub-event-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    background: var(--bg, #fff);
}

/* [hidden] must win over display:flex or the overlay covers the embed on first paint. */
.tag-hub-event-overlay[hidden] {
    display: none !important;
}

.tag-hub-event-overlay__bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    background: var(--bg);
}

.tag-hub-event-overlay__back {
    border: none;
    background: transparent;
    color: var(--accent-blue, #77ACA2f);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 4px;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.tag-hub-event-overlay__frame {
    flex: 1;
    width: 100%;
    border: 0;
    min-height: 0;
    background: var(--bg);
}

body.tag-hub-event-overlay-open {
    overflow: hidden;
}

/* View event page: edit embed stacked above the loaded event (no feed navigation). */
.event-page-edit-overlay,
#eventPageEditOverlay.event-page-edit-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100lvh;
    max-height: 100lvh;
    z-index: 2147483640;
    display: flex;
    flex-direction: column;
    background: var(--bg, #fff);
    box-sizing: border-box;
}

/* Edit sheet fills the overlay; no parent “Back to event” bar (Close / Save / Delete in the modal). */
#eventPageEditOverlay .tag-hub-event-overlay__bar {
    display: none !important;
}

#eventPageEditOverlay.event-page-edit-overlay[hidden] {
    pointer-events: none !important;
}

html.giggly-view-event-page.event-page-edit-overlay-open,
html.giggly-view-event-page.event-page-edit-overlay-kb-lock {
    height: 100lvh !important;
    min-height: 100lvh !important;
    max-height: 100lvh !important;
}

body.view-event-page.event-page-edit-overlay-open,
body.view-event-page.event-page-edit-overlay-kb-lock {
    height: 100lvh !important;
    max-height: 100lvh !important;
}

html.event-page-edit-overlay-kb-lock,
html.event-page-edit-overlay-kb-lock body.view-event-page {
    height: var(--event-page-edit-overlay-kb-lock-h, 100lvh) !important;
    min-height: var(--event-page-edit-overlay-kb-lock-h, 100lvh) !important;
    max-height: var(--event-page-edit-overlay-kb-lock-h, 100lvh) !important;
    overflow: hidden !important;
}

#eventPageEditOverlay.event-page-edit-overlay.event-page-edit-overlay--kb-lock {
    flex-shrink: 0;
    height: var(--event-page-edit-overlay-kb-lock-h, 100lvh) !important;
    min-height: var(--event-page-edit-overlay-kb-lock-h, 100lvh) !important;
    max-height: var(--event-page-edit-overlay-kb-lock-h, 100lvh) !important;
}

.event-page-edit-overlay[hidden],
#eventPageEditOverlay.event-page-edit-overlay[hidden] {
    display: none !important;
}

.event-page-edit-overlay__frame,
#eventPageEditOverlay .event-page-edit-overlay__frame,
#eventPageEditOverlay .tag-hub-event-overlay__frame {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: var(--bg, #fff);
}

html.event-page-edit-overlay-open,
body.event-page-edit-overlay-open {
    overflow: hidden;
}

body.view-event-page.event-page-edit-overlay-open {
    overflow: hidden;
}

/* index.html: event view opened above #tagHubFeedIframe (slide up / down like channel embed sheets). */
#tagHubEmbedEventOverlay.tag-hub-event-overlay--parent-embed {
    z-index: 6000;
}

#tagHubEmbedEventOverlay.tag-hub-event-overlay--entering {
    animation: tagHubParentEventSheetUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#tagHubEmbedEventOverlay.tag-hub-event-overlay--exiting {
    animation: tagHubParentEventSheetDown 0.32s cubic-bezier(0.4, 0, 0.2, 1) both;
    pointer-events: none;
}

@keyframes tagHubParentEventSheetUp {
    from {
        transform: translate3d(0, 100%, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes tagHubParentEventSheetDown {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(0, 100%, 0);
    }
}

html.giggly-event-embed .view-event-page__header {
    display: none !important;
}

html.giggly-event-embed .view-event-page__main {
    padding-top: max(12px, env(safe-area-inset-top));
}

.tag-hub-star--compact {
    padding: 4px 8px;
    font-size: 0.85rem;
}

.filter-tabs__tag-pills {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    flex: 0 0 auto;
}

.filter-tabs__tag-pills:empty {
    display: none;
}

a.filter-tab.filter-tab--tag,
button.filter-tab.filter-tab--tag {
    flex: 0 0 auto;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-synthesis: none;
    line-height: 1.2;
}

button.filter-tab.filter-tab--tag {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* + Category: dashed “inactive” until the user pins a category (per-user preference only; does not filter the feed). */
.filter-tab.filter-tab--add-category.filter-tab--add-category--empty {
    border: 1.5px dashed var(--border, rgba(0, 0, 0, 0.22));
    background: transparent;
    color: var(--text-secondary, #64748b);
}

:root[data-theme='dark'] .filter-tab.filter-tab--add-category.filter-tab--add-category--empty {
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.22);
}

.filter-tab.filter-tab--add-category.filter-tab--add-category--pinned {
    border: 1px solid transparent;
    background: #e5e7eb;
    color: #4b5563;
    box-shadow: none;
    transition: none;
}

/* Inactive pinned: same tone as other inactive filter tabs. */
.filter-tab.filter-tab--add-category.filter-tab--add-category--pinned:not(.active) {
    color: #4b5563;
    font-weight: 400;
    font-synthesis: none;
}

:root[data-theme='dark'] .filter-tab.filter-tab--add-category.filter-tab--add-category--pinned:not(.active) {
    color: #d1d5db;
    font-weight: 400;
    font-synthesis: none;
}

:root[data-theme='dark'] .filter-tab.filter-tab--add-category.filter-tab--add-category--pinned {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    border-color: transparent;
    box-shadow: none;
}

/* Pinned GENRE pill: keep IDENTICAL box metrics whether active or inactive. The active
   filter-tab style is wider (font-weight 600 + 1.5px border vs 400 + 1px), so when the
   pill deactivates — which happens the instant you tap a neighbouring category pill — it
   shrinks and shifts the category strip (to its right) left, out from under your finger,
   so the tap's click lands on empty space and nothing happens until a second tap. Always
   reserving the active weight + border width means deactivation only changes colours, the
   strip never reflows, and the category pill activates on the FIRST tap. */
.filter-tab.filter-tab--add-category--pinned.filter-tab--add-genre--pinned,
.filter-tab.filter-tab--add-category--pinned.filter-tab--add-genre--pinned.active,
.filter-tab.filter-tab--add-category--pinned.filter-tab--add-genre--pinned:not(.active) {
    font-weight: 600;
    border-width: 1.5px;
    border-style: solid;
}

.filter-tab.filter-tab--add-category--pinned.filter-tab--add-genre--pinned:not(.active) {
    border-color: transparent;
}

.filter-tabs__pinned-strip {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    flex: 0 0 auto;
}

.filter-tabs__pinned-strip .filter-tab.filter-tab--add-category {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    min-width: 0;
    max-width: min(220px, 46vw);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* + Category / pinned: inactive matches .filter-tab (400 + no synthesis); active via .active. */
.filter-tab.filter-tab--add-category,
.filter-tabs__pinned-strip .filter-tab.filter-tab--add-category {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-synthesis: none;
    line-height: 1.2;
}

/* Category nav (pinned strip): same strong active border as My Calendar / All Events. */
.filter-tabs__pinned-strip .filter-tab.filter-tab--add-category.active {
    background: #ffffff !important;
    color: #111827 !important;
    font-weight: 600 !important;
    border-width: 1.5px !important;
    border-style: solid !important;
    border-color: rgba(0, 0, 0, 0.26) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
}

:root[data-theme='dark'] .filter-tabs__pinned-strip .filter-tab.filter-tab--add-category.active {
    background: rgba(255, 255, 255, 0.96) !important;
    color: #111827 !important;
    font-weight: 600 !important;
    border-color: rgba(0, 0, 0, 0.28) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

.tag-hub-iframe-host {
    position: relative;
    z-index: 1;
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 0 env(safe-area-inset-bottom, 0);
    display: flex;
    flex-direction: column;
}

/* Promoter Channels embed: use full app width (tag hub stays 840px-centred). */
.tag-hub-iframe-host--full-bleed {
    max-width: none;
    width: 100%;
    margin: 0;
}

/* ID wins over `.tag-hub-iframe-host` so full width survives stale cached index without the modifier class. */
#promoterChannelsIframeHost.tag-hub-iframe-host,
#venueChannelsIframeHost.tag-hub-iframe-host {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    align-self: stretch;
    background: var(--bg);
}

/*
 * List height follows content; free space sits in the host (same --bg) so Bar D does not sit under a tall empty card.
 * Controls dock may have zero in-flow height while Bar C stays position:fixed like All Events.
 */
#promoterChannelsEmbedRoot.promoter-channels-embed-root,
#venueChannelsEmbedRoot.promoter-channels-embed-root {
    flex: 1 1 0%;
    max-height: 100%;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Subheader is sticky inside the scroll column; rows scroll beneath it. */
#promoterChannelsEmbedRoot.promoter-channels-embed-root .promoter-channels-page__shell,
#venueChannelsEmbedRoot.promoter-channels-embed-root .promoter-channels-page__shell {
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

#promoterChannelsEmbedRoot.promoter-channels-embed-root .promoter-channels-page__main,
#venueChannelsEmbedRoot.promoter-channels-embed-root .promoter-channels-page__main {
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

#promoterChannelsEmbedRoot.promoter-channels-embed-root [data-pc-e-scroll-body],
#venueChannelsEmbedRoot.promoter-channels-embed-root [data-pc-e-scroll-body] {
    flex: 1 1 0%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    box-sizing: border-box;
    /* Match #eventsContainer: Bar D + Bar C (60px) + home indicator — old padding missed Bar C in Safari in-tab. */
    padding-bottom: calc(var(--bottom-bar-height) + 68px + env(safe-area-inset-bottom, 0px) + 12px);
}

/* Tighter tail when Bar C is docked so the list meets the controls without a tall empty “white frame”. */
html.giggly-pc-controls-docked #promoterChannelsEmbedRoot.promoter-channels-embed-root [data-pc-e-scroll-body],
html.giggly-pc-controls-docked #venueChannelsEmbedRoot.promoter-channels-embed-root [data-pc-e-scroll-body] {
    padding-bottom: calc(var(--bottom-bar-height) + 28px + env(safe-area-inset-bottom, 0px) + 8px);
}

html.giggly-pc-controls-docked .bottom-bar.bottom-bar--with-icons {
    padding-right: max(20px, calc(env(safe-area-inset-right, 0px) + 8px));
    padding-left: max(16px, calc(env(safe-area-inset-left, 0px) + 4px));
}

.promoter-channels-controls-dock {
    flex-shrink: 0;
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    margin-top: auto;
    box-sizing: border-box;
    min-height: 0;
}

/*
 * Promoter Channels: keep Bar C viewport-fixed (same bottom inset as the main feed). The dock only
 * holds the node for wiring; fixed children do not expand the dock, so no duplicate in-flow bar.
 */
/* Transparent Bar C: promoter list scrolls through behind closed or expanded search (no frosted slab). */
html.giggly-pc-controls-docked #promoterChannelsIframeHost .controls-bar.controls-bar--promoter-channels-docked,
html.giggly-pc-controls-docked #venueChannelsIframeHost .controls-bar.controls-bar--promoter-channels-docked {
    display: flex !important;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/*
 * iOS Safari (in-tab): Bar C’s flex “centre” slot is still a hit target over the promoter list’s
 * right column (subscribe / chevron). PWA layout often clears it; pass taps through the slot only.
 */
html.giggly-pc-controls-docked #promoterChannelsIframeHost .controls-bar.controls-bar--promoter-channels-docked .controls-bar__center,
html.giggly-pc-controls-docked #venueChannelsIframeHost .controls-bar.controls-bar--promoter-channels-docked .controls-bar__center {
    pointer-events: none;
}

html.giggly-pc-controls-docked #promoterChannelsIframeHost .controls-bar.controls-bar--promoter-channels-docked .search-container.active,
html.giggly-pc-controls-docked #venueChannelsIframeHost .controls-bar.controls-bar--promoter-channels-docked .search-container.active {
    pointer-events: auto;
}

#promoterChannelsEmbedRoot.promoter-channels-embed-root--scroll-locked,
#venueChannelsEmbedRoot.promoter-channels-embed-root--scroll-locked {
    overflow-y: hidden !important;
    overscroll-behavior: none;
    touch-action: pan-x pinch-zoom;
}

#promoterChannelsEmbedRoot [data-pc-e-scroll-body].promoter-channels-embed-scroll-body--scroll-locked,
#venueChannelsEmbedRoot [data-pc-e-scroll-body].promoter-channels-embed-scroll-body--scroll-locked {
    overflow-y: hidden !important;
    overscroll-behavior: none;
    touch-action: pan-x pinch-zoom;
}

html.giggly-pc-embed-scroll-locked body.app-mode {
    overscroll-behavior-y: none;
}

.tag-hub-iframe-host[hidden] {
    display: none !important;
}

.tag-hub-iframe-host__frame {
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    border: 0;
    background: var(--bg);
}

/* Parent modal (e.g. view event) must receive taps, not the tag-hub iframe underneath. */
body.modal-open .tag-hub-iframe-host__frame {
    pointer-events: none;
}

body.modal-open #promoterChannelsEmbedRoot {
    pointer-events: none;
}

.filter-pinned-category-popover__empty-msg {
    margin: 0 0 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-secondary, #64748b);
}

.filter-pinned-category-popover {
    position: fixed;
    z-index: 220;
    padding: 12px 14px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(245, 245, 247, 0.98);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
    max-width: min(360px, calc(100vw - 20px));
    max-height: min(52vh, 400px);
    overflow-y: auto;
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.filter-pinned-genre-popover.filter-pinned-category-popover {
    position: fixed;
    z-index: 12400;
    top: max(10px, env(safe-area-inset-top, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: env(safe-area-inset-bottom, 0px);
    left: max(10px, env(safe-area-inset-left, 0px));
    width: auto;
    min-width: 0;
    max-width: min(var(--giggly-chrome-max-width, 840px), calc(100vw - 20px));
    max-height: none;
    margin: 0 auto;
    flex-direction: column;
    overflow: hidden;
    padding: 14px 16px 12px;
}

/* display:flex must not beat [hidden], or the popover paints open on every load */
.filter-pinned-genre-popover.filter-pinned-category-popover[hidden] {
    display: none !important;
}

.filter-pinned-genre-popover.filter-pinned-category-popover:not([hidden]) {
    display: flex;
}

:root[data-theme='dark'] .filter-pinned-category-popover {
    background: rgba(34, 26, 52, 0.97);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.filter-pinned-category-popover__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-pinned-category-popover__pill {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.filter-pinned-category-popover__hide {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.filter-pinned-category-popover__hide-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Pinned genre pills strip: CSS-only show/hide so hydrate never thrash display/visibility. */
.filter-tabs__pinned-strip--genre-pills:empty,
#filterPinnedGenreStrip:empty {
    display: none !important;
}

#filterPinnedGenrePillsStrip:not(:empty),
#filterPinnedGenreStrip:not(:empty) {
    display: inline-flex !important;
    visibility: visible !important;
}

/* Genre picker pills inside the "+ Genre" popover reuse .filter-sort-panel__category-pill
   for shape/size; here we tune them to neutral grey (grey text + grey border) so the
   picker reads as "choose a genre" chips, matching the pinned strip's resting state. */
.filter-pinned-genre-popover__pill {
    background: var(--bg, #ffffff);
    color: #4b5563;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.18));
    font-weight: 500;
}

:root[data-theme='dark'] .filter-pinned-genre-popover__pill {
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
    border-color: rgba(255, 255, 255, 0.18);
}

/* Pinned genre strip pills inherit the "+ Category" pinned styling verbatim:
   grey-filled when inactive, white/black/border when active (.active). No genre-
   specific overrides needed — they share filter-tab--add-category--pinned. */

#addEventTagSection > .add-event-divider:first-of-type,
#editEventTagSection > .add-event-divider:first-of-type {
    margin-top: 2px;
    margin-bottom: 10px;
}

#addEventTagSection .add-event-hint,
#editEventTagSection .add-event-hint {
    margin-bottom: 14px;
}

.event-tag-token-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.event-tag-token {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    background: var(--bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.event-tag-token.is-on {
    border-color: var(--accent-purple);
    color: var(--text);
    background: linear-gradient(
        135deg,
        rgba(119, 172, 162, 0.22) 0%,
        rgba(70, 129, 137, 0.28) 100%
    );
    box-shadow: inset 0 0 0 1px rgba(70, 129, 137, 0.25);
}

/* Admin review: user-submitted public events (owners/admins only; dismiss persists). */
.event-card.event-card--v2 .event-card-v2__admin-review-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px -16px -16px;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.14) 0%, rgba(220, 53, 69, 0.28) 100%);
    border-top: 1px solid rgba(220, 53, 69, 0.5);
    border-radius: 0 0 16px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #7f1d1d;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
}

.event-card.event-card--v2:has(.event-card-v2__flyer) .event-card-v2__admin-review-banner {
    border-radius: 0;
}

:root[data-theme='dark'] .event-card.event-card--v2 .event-card-v2__admin-review-banner {
    color: #fecaca;
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.22) 0%, rgba(127, 29, 29, 0.45) 100%);
    border-top-color: rgba(248, 113, 113, 0.45);
}

.event-card-v2__admin-review-banner__text {
    flex: 1 1 auto;
    min-width: 0;
}

html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__admin-review-banner__text {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.giggly-desktop-nav-active .event-card--feed-layout-grid .event-card-v2__admin-review-dismiss {
    padding: 5px 10px;
    font-size: 11px;
}

.event-card-v2__admin-review-banner__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

.event-card-v2__admin-review-dismiss {
    flex-shrink: 0;
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(220, 53, 69, 0.55);
    background: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
    color: #991b1b;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.event-card-v2__admin-review-dismiss:hover {
    background: #fff;
    border-color: rgba(220, 53, 69, 0.85);
}

:root[data-theme='dark'] .event-card-v2__admin-review-dismiss {
    background: rgba(26, 15, 46, 0.9);
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.5);
}

:root[data-theme='dark'] .event-card-v2__admin-review-dismiss:hover {
    background: rgba(40, 25, 62, 0.95);
    border-color: rgba(248, 113, 113, 0.75);
}

.event-card-v2__admin-review-reject {
    background: transparent;
    color: inherit;
    border-color: rgba(220, 53, 69, 0.45);
}

.event-card-v2__admin-review-reject:hover {
    background: rgba(255, 255, 255, 0.65);
}

/* Accept shares .admin-review-dismiss — compound selector beats dismiss red (incl. dark). */
.event-card-v2__admin-review-dismiss.event-card-v2__admin-review-accept {
    background: rgba(255, 255, 255, 0.92);
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.65);
}

.event-card-v2__admin-review-dismiss.event-card-v2__admin-review-accept:hover {
    background: #fff;
    color: #166534;
    border-color: rgba(22, 163, 74, 0.9);
}

:root[data-theme='dark'] .event-card-v2__admin-review-dismiss.event-card-v2__admin-review-accept {
    background: rgba(26, 15, 46, 0.9);
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.55);
}

:root[data-theme='dark'] .event-card-v2__admin-review-dismiss.event-card-v2__admin-review-accept:hover {
    background: rgba(40, 25, 62, 0.95);
    color: #bbf7d0;
    border-color: rgba(74, 222, 128, 0.8);
}

:root[data-theme='dark'] .event-card-v2__admin-review-reject {
    background: transparent;
}

:root[data-theme='dark'] .event-card-v2__admin-review-reject:hover {
    background: rgba(40, 25, 62, 0.75);
}

/* --- Promoter Channels (public list / embed) --- */
body.promoter-channels-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100lvh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Standalone list: scroll-body holds intro + sticky subnav + rows (intro scrolls away). */
body.promoter-channels-page:not(.promoter-channels-page--embed) {
    height: 100vh;
    height: 100lvh;
    overflow: hidden;
}

/* SPA directory teardown: hidden directory chrome must not block feed/events scroll (Android Chrome). */
body.app-mode:not(.promoter-channels-page) #directorySection,
body.app-mode:not(.promoter-channels-page) #directoryControlsBar {
    pointer-events: none !important;
}

body.app-mode:not(.promoter-channels-page) #venueChannelsDirectoryMapHost {
    display: none !important;
    pointer-events: none !important;
}

body.promoter-channels-page:not(.promoter-channels-page--embed) .promoter-channels-page__shell {
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.promoter-channels-page--embed {
    min-height: 100%;
    height: 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--bg);
}

html:has(body.promoter-channels-page--embed) {
    height: 100%;
}

/* In-app embed: full width inside iframe; horizontal inset = safe areas only (not 840px shell). */
body.promoter-channels-page--embed .promoter-channels-page__shell {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 max(0px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(0px, env(safe-area-inset-left, 0px));
}

body.promoter-channels-page--embed .promoter-channels-page__card {
    background: #ffffff;
    color: #111827;
    border: none;
    box-shadow: none;
}

:root[data-theme='dark'] body.promoter-channels-page--embed .promoter-channels-page__card {
    background: var(--bg);
    color: var(--text);
}

body.promoter-channels-page--embed .promoter-channels-list__rowwrap,
body.promoter-channels-page--embed .promoter-channels-list__row {
    color: #111827;
}

body.promoter-channels-page--embed .promoter-channels-list__name {
    color: #111827;
}

body.promoter-channels-page--embed .promoter-channels-list__city {
    color: #94a3b8;
}

body.promoter-channels-page--embed .promoter-channels-page__standalone-back {
    display: none;
}

/* Directory list column: stay at mobile cap while Bar A/B/C/D use --giggly-chrome-max-width. */
.promoter-channels-page__shell {
    max-width: 840px;
    margin: 0 auto;
    padding: 12px max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

/* Standalone + embed: title scrolls away; subnav sticks at top of scroll column. */
.promoter-channels-page__main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

.promoter-channels-page__intro {
    flex-shrink: 0;
    padding-bottom: 4px;
}

.promoter-channels-page__subnav-sticky {
    position: sticky;
    top: 0;
    z-index: 8;
    background: var(--bg);
    padding-bottom: 4px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

:root[data-theme='dark'] .promoter-channels-page__subnav-sticky {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.promoter-channels-page__sticky-head {
    flex-shrink: 0;
    position: relative;
    z-index: 6;
    background: var(--bg);
    padding-bottom: 4px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Legacy embed paths: sticky head inside scroll column. */
.promoter-channels-page__scroll-body > .promoter-channels-page__sticky-head {
    position: sticky;
    top: 0;
    z-index: 8;
}

:root[data-theme='dark'] .promoter-channels-page__sticky-head {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.promoter-channels-page__main.dir-search-active .promoter-channels-page__intro,
.promoter-channels-page__main.dir-search-active .promoter-channels-page__subnav-sticky,
.promoter-channels-page__main.dir-search-active .promoter-channels-page__sticky-head {
    display: none !important;
}

.promoter-channels-page__scroll-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    overflow-anchor: none;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

/* Artist/DJ directory: sticky subnav must stack above fixed Bar B (filter-tabs), not under its frosted slab.
   Keep this a block formatting context (NOT display:flex) — flex overflow scrollports ignore
   padding-bottom for scrollHeight, so Following lists cannot scroll clear of Bars C/D. */
body.artists-channels-directory-page .promoter-channels-page__scroll-body,
body.djs-channels-directory-page .promoter-channels-page__scroll-body,
body.festivals-channels-directory-page .promoter-channels-page__scroll-body {
    contain: none;
    transform: none;
    will-change: auto;
    background: var(--artist-dir-list-bg);
}

body.artists-channels-directory-page .promoter-channels-page__subnav-sticky,
body.djs-channels-directory-page .promoter-channels-page__subnav-sticky {
    z-index: 521;
}

/* Artist/DJ directory: full-bleed off-blue canvas from shell top (below Bar B) through footer padding. */
body.artists-channels-directory-page:not(.promoter-channels-page--embed) .promoter-channels-page__shell,
body.djs-channels-directory-page:not(.promoter-channels-page--embed) .promoter-channels-page__shell,
body.festivals-channels-directory-page:not(.promoter-channels-page--embed) .promoter-channels-page__shell {
    padding-left: 0;
    padding-right: 0;
    background: var(--artist-dir-list-bg);
}

body.artists-channels-directory-page:not(.promoter-channels-page--embed) .promoter-channels-page__main,
body.djs-channels-directory-page:not(.promoter-channels-page--embed) .promoter-channels-page__main,
body.festivals-channels-directory-page:not(.promoter-channels-page--embed) .promoter-channels-page__main {
    background: var(--artist-dir-list-bg);
}

body.artists-channels-directory-page .promoter-channels-page__intro,
body.djs-channels-directory-page .promoter-channels-page__intro,
body.festivals-channels-directory-page .promoter-channels-page__intro {
    flex-shrink: 0;
    padding-left: max(16px, env(safe-area-inset-right, 0px));
    padding-right: max(16px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

body.artists-channels-directory-page .promoter-channels-page__subnav-sticky,
body.djs-channels-directory-page .promoter-channels-page__subnav-sticky {
    flex-shrink: 0;
    padding-left: max(16px, env(safe-area-inset-right, 0px));
    padding-right: max(16px, env(safe-area-inset-left, 0px));
    padding-bottom: 2px;
    box-sizing: border-box;
    background: var(--artist-dir-list-bg);
    box-shadow: none;
}

body.artists-channels-directory-page .promoter-channels-page__subnav-sticky .promoter-channels-subnav-scroll-wrap,
body.djs-channels-directory-page .promoter-channels-page__subnav-sticky .promoter-channels-subnav-scroll-wrap {
    margin-bottom: 5px;
    padding-bottom: 7px;
}

body.artists-channels-directory-page .promoter-channels-page__list-canvas,
body.djs-channels-directory-page .promoter-channels-page__list-canvas,
body.festivals-channels-directory-page .promoter-channels-page__list-canvas {
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
    background: transparent;
    box-sizing: border-box;
}

body.artists-channels-directory-page .promoter-channels-page__list-canvas .promoter-channels-page__card,
body.djs-channels-directory-page .promoter-channels-page__list-canvas .promoter-channels-page__card,
body.festivals-channels-directory-page .promoter-channels-page__list-canvas .promoter-channels-page__card {
    background: transparent;
}

/* Standalone /artists and /djs: keep last rows clear of labeled Bar C + Bar D. */
body.artists-channels-directory-page:not(.promoter-channels-page--embed)
    .promoter-channels-page__scroll-body,
body.djs-channels-directory-page:not(.promoter-channels-page--embed)
    .promoter-channels-page__scroll-body {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-bottom: calc(
        var(
                --bottom-bar-stack-height,
                calc(var(--bottom-bar-height, 70px) + max(env(safe-area-inset-bottom, 0px), 8px))
            ) + var(--controls-bar-height, 60px) + 56px
    );
    scroll-padding-bottom: calc(var(--controls-bar-height, 60px) + 40px);
}

body.artists-channels-directory-page .promoter-channels-list,
body.djs-channels-directory-page .promoter-channels-list {
    padding-bottom: 0;
}

/* Real in-flow spacer (not scrollport padding) so short Following lists can still scroll. */
body.artists-channels-directory-page .promoter-channels-list::after,
body.djs-channels-directory-page .promoter-channels-list::after {
    content: '';
    display: block;
    height: calc(
        var(
                --bottom-bar-stack-height,
                calc(var(--bottom-bar-height, 70px) + max(env(safe-area-inset-bottom, 0px), 8px))
            ) + var(--controls-bar-height, 60px) + 24px
    );
}

/* Artist/DJ search + keyboard: let results scroll clear of the floating Bar C search row. */
@media (hover: none), (pointer: coarse) {
    body.artists-channels-directory-page.dir-kb-mode:not(.promoter-channels-page--embed)
        .promoter-channels-page__scroll-body,
    body.djs-channels-directory-page.dir-kb-mode:not(.promoter-channels-page--embed)
        .promoter-channels-page__scroll-body {
        padding-bottom: calc(
            var(
                    --artist-dir-search-scroll-tail,
                    calc(
                        var(--controls-bar-height, 60px) +
                            max(env(keyboard-inset-height, 0px), env(keyboard-inset-bottom, 0px), var(--bar-c-kb-bottom, 0px)) + 24px
                    )
                ) + env(safe-area-inset-bottom, 0px)
        );
        scroll-padding-bottom: calc(var(--controls-bar-height, 60px) + 20px);
    }
}

/* Standalone /venues: keep footer copy above fixed Bar C + Bar D. */
body.venues-channels-directory-page:not(.promoter-channels-page--embed)
    .promoter-channels-page__scroll-body {
    padding-bottom: calc(var(--bottom-bar-height, 62px) + 68px + env(safe-area-inset-bottom, 0px) + 12px);
}

/* Standalone /promoters: same bottom clearance as venues directory.
   Exclude artist/DJ/festival directories — they have their own padding rules. */
body.promoter-channels-page:not(.promoter-channels-page--embed):not(.venues-channels-directory-page):not(.artists-channels-directory-page):not(.djs-channels-directory-page):not(.festivals-channels-directory-page)
    .promoter-channels-page__scroll-body {
    padding-bottom: calc(var(--bottom-bar-height, 70px) + var(--controls-bar-height, 60px) + env(safe-area-inset-bottom, 0px) + 32px);
}

body.promoter-channels-page--embed .promoter-channels-page__scroll-body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.promoter-channels-page--embed .promoter-channels-page__scroll-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.promoter-channels-page__sticky-head .promoter-channels-page__standalone-back {
    margin-bottom: 6px;
}

.promoter-channels-page__intro .promoter-channels-page__title,
.promoter-channels-page__sticky-head .promoter-channels-page__title {
    padding-top: 4px;
    padding-bottom: 6px;
}

.promoter-channels-page__intro .promoter-channels-subnav-scroll-wrap,
.promoter-channels-page__subnav-sticky .promoter-channels-subnav-scroll-wrap,
.promoter-channels-page__sticky-head .promoter-channels-subnav-scroll-wrap {
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}

.promoter-channels-page__standalone-back {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--accent-purple, #468189);
    text-decoration: none;
    font-weight: 600;
}

.promoter-channels-page__card {
    background: var(--bg);
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: visible;
}

/* Override global marketing `h1` (gradient + uppercase) for this surface only. */
.promoter-channels-page__title {
    margin: 0;
    padding: 18px 0 10px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #111827;
    background: none;
    -webkit-text-fill-color: #111827;
    background-clip: border-box;
    -webkit-background-clip: border-box;
}

:root[data-theme='dark'] .promoter-channels-page__title {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.promoter-channels-page__helper-text {
    margin: 0 0 10px;
    padding: 0 14px;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    color: #6b7280;
}

.promoter-channels-page__helper-text--cta {
    margin-top: -4px;
    margin-bottom: 10px;
}

.promoter-channels-page__helper-text--cta .promoter-channels-page__helper-link {
    white-space: nowrap;
}

:root[data-theme='dark'] .promoter-channels-page__helper-text {
    color: #9ca3af;
}

body.promoter-channels-page--embed .promoter-channels-page__title {
    color: #111827;
    -webkit-text-fill-color: #111827;
    padding-top: 2px;
    padding-bottom: 4px;
    margin-top: 0;
    margin-bottom: 0;
}

:root[data-theme='dark'] body.promoter-channels-page--embed .promoter-channels-page__title {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

body.promoter-channels-page--embed .promoter-channels-page__helper-text {
    margin-bottom: 8px;
}

body.promoter-channels-page--embed .promoter-channels-subnav {
    margin: 0 0 10px;
}

/*
 * Venue Channels only: when search is active, collapse title/helper copy so the subnav
 * sits at the top and result rows start immediately below it.
 */
#venueChannelsEmbedRoot.venue-channels-embed-root--search-active .promoter-channels-page__intro .promoter-channels-page__title,
#venueChannelsEmbedRoot.venue-channels-embed-root--search-active .promoter-channels-page__intro .promoter-channels-page__helper-text,
#venueChannelsEmbedRoot.venue-channels-embed-root--search-active .promoter-channels-page__title,
#venueChannelsEmbedRoot.venue-channels-embed-root--search-active .promoter-channels-page__helper-text {
    display: none;
}

#venueChannelsEmbedRoot.venue-channels-embed-root--search-active .promoter-channels-page__subnav-sticky,
#venueChannelsEmbedRoot.venue-channels-embed-root--search-active .promoter-channels-page__sticky-head {
    padding-bottom: 0;
}

#venueChannelsEmbedRoot.venue-channels-embed-root--search-active .promoter-channels-page__subnav-sticky .promoter-channels-subnav-scroll-wrap,
#venueChannelsEmbedRoot.venue-channels-embed-root--search-active
    .promoter-channels-page__sticky-head
    .promoter-channels-subnav-scroll-wrap {
    margin-bottom: 4px;
}

body.promoter-channels-page--embed .promoter-channels-page__loading,
body.promoter-channels-page--embed .promoter-channels-page__error {
    margin: 0 0 10px;
}

/* Subnav under title (shorter pills than main filter tabs). */
.promoter-channels-subnav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 2px 0 14px;
    padding: 0;
}

.promoter-channels-subnav__pill {
    flex: 0 0 auto;
    padding: 5px 12px;
    min-height: 30px;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #e5e7eb;
    color: #4b5563;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.promoter-channels-subnav__pill--active {
    background: #ffffff;
    color: #111827;
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.promoter-channels-subnav__pill--disabled {
    opacity: 0.42;
    cursor: not-allowed;
    pointer-events: auto;
}

:root[data-theme='dark'] .promoter-channels-subnav__pill {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
}

:root[data-theme='dark'] .promoter-channels-subnav__pill--active {
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    border-color: rgba(0, 0, 0, 0.16);
}

body.promoter-channels-page--embed .promoter-channels-subnav__pill:not(.promoter-channels-subnav__pill--active) {
    background: #eef0f3;
    color: #4b5563;
}

.promoter-channels-page__subtab-empty {
    margin: 0 0 14px;
    padding: 0 8px;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
    color: var(--text-secondary, #64748b);
}

.promoter-channels-page__promoter-footer {
    margin: 20px 0 16px;
    padding: 14px 12px 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    color: var(--text-secondary, #64748b);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

:root[data-theme='dark'] .promoter-channels-page__promoter-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.promoter-channels-page__promoter-footer-link {
    color: var(--accent-purple, #468189);
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .promoter-channels-page__promoter-footer-link:hover {
        text-decoration: underline;
    }
}

.promoter-channels-page__promoter-footer-link:active {
    opacity: 0.85;
}

.venue-map-rotate-hint {
    display: block;
    margin-top: 10px;
}

/* In-embed search miss: compact centred line under sticky head (avoids pushing chrome via outer banner). */
#promoterChannelsEmbedRoot .promoter-channels-page__subtab-empty--search-hint {
    margin: 8px 0 10px;
    padding: 10px 16px 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: #94a3b8;
}

:root[data-theme='dark'] #promoterChannelsEmbedRoot .promoter-channels-page__subtab-empty--search-hint {
    color: #64748b;
}

.promoter-channels-page__loading,
.promoter-channels-page__error {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-secondary, #64748b);
}

.promoter-channels-page__error {
    color: #b91c1c;
}

.promoter-channels-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.promoter-channels-list__item {
    border: none;
}

/* Rule between rows: starts at name column, runs to right edge (not under avatar). */
.promoter-channels-list__divider {
    height: 0;
    margin: 0;
    margin-left: calc(48px + 12px);
    border: 0;
    border-top: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

body.promoter-channels-page--embed .promoter-channels-list__divider {
    border-top-color: rgba(0, 0, 0, 0.08);
}

.promoter-channels-list__rowwrap {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    gap: 4px;
    padding: 14px 0;
    contain: paint;
}

.promoter-channels-list__row {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channels-list__row:active {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 10px;
}

.promoter-channels-list__trail {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;
}

.promoter-channels-list__sub-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin: 0;
    /* Artwork reads high in the frame; shift down to align with chevron. */
    transform: translateY(4px);
    align-self: center;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.promoter-channels-list__sub-btn:active {
    background: rgba(15, 23, 42, 0.06);
}

/* Outline megaphone SVG when off (grey); filled SVG when on — same box (~25% smaller than original 36px). */
.promoter-channels-list__sub-icon--line {
    width: 27px;
    height: 27px;
    display: block;
    flex-shrink: 0;
    color: #8e99a3;
    transition: color 0.15s ease;
}

html[data-theme='dark'] .promoter-channels-list__sub-icon--line {
    color: #6f6a78;
}

.promoter-channels-list__sub-icon--fill {
    display: none;
    flex-shrink: 0;
    width: 27px;
    height: 27px;
    color: #212529;
    transition: color 0.15s ease;
}

html[data-theme='dark'] .promoter-channels-list__sub-icon--fill {
    color: #e8e4ed;
}

.promoter-channels-list__sub-btn.is-on .promoter-channels-list__sub-icon--line {
    display: none;
}

.promoter-channels-list__sub-btn.is-on .promoter-channels-list__sub-icon--fill {
    display: block;
}

.promoter-channels-list__chev-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 4px 0 4px 4px;
    align-self: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.promoter-channels-list__chev-btn:active {
    opacity: 0.75;
}

.promoter-channels-list__avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.promoter-channels-list__avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: var(--brand-teal-deep, #468189);
}

.promoter-channels-list__avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-teal-deep, #468189);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.promoter-channels-list__avatar-fallback[data-ini-len='4'] {
    font-size: 0.66rem;
    letter-spacing: 0;
}

.promoter-channels-list__avatar-fallback[data-ini-len='5'],
.promoter-channels-list__avatar-fallback[data-ini-len='6'] {
    font-size: 0.58rem;
    letter-spacing: -0.02em;
}

.promoter-channels-list__avatar-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    border: 2px solid var(--bg);
    box-sizing: border-box;
}

.promoter-channels-list__avatar-badge--lock {
    background: rgba(15, 23, 42, 0.92);
}

.promoter-channels-list__avatar-badge--lock svg {
    display: block;
    stroke: #fff;
}

.promoter-channels-list__avatar-badge--staff {
    background: #fff;
    color: var(--accent-purple, #468189);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.promoter-channels-list__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.promoter-channels-list__name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.promoter-channels-list__name {
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
}

:root[data-theme='dark'] .promoter-channels-list__name {
    color: var(--text);
}

.promoter-channels-list__verified {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

:root[data-theme='dark'] .promoter-channels-list__verified {
    background: rgba(34, 197, 94, 0.22);
    color: #86efac;
}

.promoter-channels-list__city {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-secondary, #64748b);
}

/* Artist / DJ directory rows: square thumb + three text rows (name, genres, meta). */
body.artists-channels-directory-page,
body.djs-channels-directory-page,
body.festivals-channels-directory-page {
    --artist-dir-thumb: 5.25rem;
    --artist-dir-list-bg: color-mix(in srgb, var(--accent-blue, #77ACA2f) 8%, var(--bg, #ffffff));
}

:root[data-theme='dark'] body.artists-channels-directory-page,
:root[data-theme='dark'] body.djs-channels-directory-page,
:root[data-theme='dark'] body.festivals-channels-directory-page {
    --artist-dir-list-bg: color-mix(in srgb, var(--accent-blue, #77ACA2f) 12%, var(--bg));
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: clip;
    contain: none;
}

body.artists-channels-directory-page .promoter-channels-list__item--listen-open .promoter-channels-list__rowwrap--artist-dir,
body.djs-channels-directory-page .promoter-channels-list__item--listen-open .promoter-channels-list__rowwrap--artist-dir {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding-bottom: 12px;
    overflow: clip;
}

body.artists-channels-directory-page .promoter-channels-list__item--listen-open .promoter-channels-list__rowwrap--artist-dir > .promoter-channels-list__row--artist-card,
body.djs-channels-directory-page .promoter-channels-list__item--listen-open .promoter-channels-list__rowwrap--artist-dir > .promoter-channels-list__row--artist-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 2;
    overflow: clip;
    background: var(--bg, #fff);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

:root[data-theme='dark'] body.artists-channels-directory-page .promoter-channels-list__item--listen-open .promoter-channels-list__rowwrap--artist-dir > .promoter-channels-list__row--artist-card,
:root[data-theme='dark'] body.djs-channels-directory-page .promoter-channels-list__item--listen-open .promoter-channels-list__rowwrap--artist-dir > .promoter-channels-list__row--artist-card {
    background: color-mix(in srgb, var(--text) 3%, var(--bg));
}

body.artists-channels-directory-page .promoter-channels-list__item--listen-open .promoter-channels-list__rowwrap--artist-dir > .event-card-v2__headline-artist-embed,
body.djs-channels-directory-page .promoter-channels-list__item--listen-open .promoter-channels-list__rowwrap--artist-dir > .event-card-v2__headline-artist-embed {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir > .promoter-channels-list__row--artist-card,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir > .promoter-channels-list__row--artist-card {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: var(--artist-dir-thumb);
    height: var(--artist-dir-thumb);
    gap: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square {
    flex: 0 0 var(--artist-dir-thumb);
    width: var(--artist-dir-thumb);
    height: var(--artist-dir-thumb);
    min-width: var(--artist-dir-thumb);
    min-height: var(--artist-dir-thumb);
    max-width: var(--artist-dir-thumb);
    max-height: var(--artist-dir-thumb);
    align-self: stretch;
    margin: 0;
    flex-shrink: 0;
    overflow: clip;
    border-top-left-radius: 10px;
    background: var(--brand-teal-deep, #468189);
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-fallback,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-fallback {
    background: var(--brand-teal-deep, #468189);
    background-image: none;
    color: #ffffff;
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-img,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-img,
body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-fallback,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 0 12px 12px 0;
    object-fit: cover;
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-fallback,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-fallback {
    font-size: 0.95rem;
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-fallback[data-ini-len='4'],
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-fallback[data-ini-len='4'] {
    font-size: 0.82rem;
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-fallback[data-ini-len='5'],
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-fallback[data-ini-len='5'],
body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-fallback[data-ini-len='6'],
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-fallback[data-ini-len='6'] {
    font-size: 0.72rem;
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__content,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__content {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px 8px 0;
    box-sizing: border-box;
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__name-row,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__name-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    line-height: 1.25;
    min-height: calc(1.125rem * 1.25);
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__name-main,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__name-main {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__name,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__name {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__name-row .giggly-artist-verified-badge,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__name-row .giggly-artist-verified-badge {
    flex-shrink: 0;
    margin-left: 0.25em;
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__name-row .promoter-channels-list__sub-slot,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__name-row .promoter-channels-list__sub-slot {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    align-items: center;
    line-height: 0;
    margin-left: auto;
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir > .event-card-v2__headline-artist-embed,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir > .event-card-v2__headline-artist-embed {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 0;
    padding: 12px 12px 0;
    box-sizing: border-box;
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir > .event-card-v2__headline-artist-embed iframe,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir > .event-card-v2__headline-artist-embed iframe {
    width: 100%;
    max-width: none;
}

body.artists-channels-directory-page .promoter-channels-list__genres,
body.djs-channels-directory-page .promoter-channels-list__genres {
    display: block;
    min-width: 0;
    max-width: 100%;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-secondary, #64748b);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: calc(0.875rem * 1.25);
}

body.artists-channels-directory-page .promoter-channels-list__genres--empty,
body.djs-channels-directory-page .promoter-channels-list__genres--empty {
    min-height: calc(0.875rem * 1.25);
}

body.artists-channels-directory-page .promoter-channels-list__meta-row,
body.djs-channels-directory-page .promoter-channels-list__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    min-height: calc(0.875rem * 1.25);
}

body.artists-channels-directory-page .promoter-channels-list__event-count,
body.djs-channels-directory-page .promoter-channels-list__event-count {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--text-secondary, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

body.artists-channels-directory-page .promoter-channels-list__listen-slot,
body.djs-channels-directory-page .promoter-channels-list__listen-slot {
    flex: 0 0 auto;
    margin-left: auto;
}

body.artists-channels-directory-page .artist-dir-follow-btn,
body.djs-channels-directory-page .artist-dir-follow-btn {
    transform: none;
    align-self: center;
    margin: 0;
    padding: 6px 11px;
    font-size: 0.76rem;
    border-radius: 10px;
}

body.artists-channels-directory-page .promoter-channels-list__listen-slot--empty,
body.djs-channels-directory-page .promoter-channels-list__listen-slot--empty {
    visibility: hidden;
    pointer-events: none;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

body.artists-channels-directory-page .promoter-channels-list__listen-btn,
body.djs-channels-directory-page .promoter-channels-list__listen-btn {
    font-size: 0.78rem;
    padding: 4px 10px;
    white-space: nowrap;
    border-radius: 12px;
}

body.artists-channels-directory-page .promoter-channels-list__listen-btn.is-open,
body.djs-channels-directory-page .promoter-channels-list__listen-btn.is-open {
    border-color: #1db954;
    color: #1db954;
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir > .promoter-channels-list__row--artist-card:active,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir > .promoter-channels-list__row--artist-card:active {
    opacity: 0.92;
}

/* Artist / DJ directory: bordered cards instead of row dividers. */
body.artists-channels-directory-page .promoter-channels-list,
body.djs-channels-directory-page .promoter-channels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: calc(6px + max(16px, env(safe-area-inset-right, 0px)));
    padding-right: calc(6px + max(16px, env(safe-area-inset-left, 0px)));
    box-sizing: border-box;
}

body.artists-channels-directory-page .promoter-channels-list__divider,
body.djs-channels-directory-page .promoter-channels-list__divider {
    display: none;
}

/* Festivals directory: bordered cards + square thumb (match /artists list). */
body.festivals-channels-directory-page .promoter-channels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: calc(6px + max(16px, env(safe-area-inset-right, 0px)));
    padding-right: calc(6px + max(16px, env(safe-area-inset-left, 0px)));
    box-sizing: border-box;
}

body.festivals-channels-directory-page .promoter-channels-list__item {
    background: transparent;
}

body.festivals-channels-directory-page .promoter-channels-list__divider {
    display: none;
}

body.festivals-channels-directory-page .promoter-channels-list__rowwrap--artist-dir {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: clip;
    contain: none;
    border: 2px solid var(--border, rgba(15, 23, 42, 0.1));
    border-radius: 12px;
    background: var(--bg, #fff);
    box-sizing: border-box;
}

:root[data-theme='dark'] body.festivals-channels-directory-page .promoter-channels-list__rowwrap--artist-dir {
    border-color: color-mix(in srgb, var(--text) 14%, transparent);
    background: color-mix(in srgb, var(--text) 3%, var(--bg));
}

body.festivals-channels-directory-page .promoter-channels-list__rowwrap--artist-dir > .promoter-channels-list__row--artist-card {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: var(--artist-dir-thumb);
    height: var(--artist-dir-thumb);
    gap: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

body.festivals-channels-directory-page .promoter-channels-list__rowwrap--artist-dir > .promoter-channels-list__row--artist-card:active {
    opacity: 0.92;
}

body.festivals-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square {
    flex: 0 0 var(--artist-dir-thumb);
    width: var(--artist-dir-thumb);
    height: var(--artist-dir-thumb);
    min-width: var(--artist-dir-thumb);
    min-height: var(--artist-dir-thumb);
    max-width: var(--artist-dir-thumb);
    max-height: var(--artist-dir-thumb);
    align-self: stretch;
    margin: 0;
    flex-shrink: 0;
    overflow: clip;
    border-top-left-radius: 10px;
}

body.festivals-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-img,
body.festivals-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 0 12px 12px 0;
    object-fit: cover;
}

body.festivals-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__avatar-wrap--square .promoter-channels-list__avatar-fallback {
    font-size: 0.95rem;
}

body.festivals-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__content {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px 8px 0;
    box-sizing: border-box;
}

body.festivals-channels-directory-page .promoter-channels-list__rowwrap--artist-dir .promoter-channels-list__name {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
}

body.festivals-channels-directory-page .festivals-directory-list__location {
    display: block;
    margin-top: 0;
}

body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir,
body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir {
    border: 2px solid var(--border, rgba(15, 23, 42, 0.1));
    border-radius: 12px;
    padding: 0;
    background: var(--bg, #fff);
    box-sizing: border-box;
}

:root[data-theme='dark'] body.artists-channels-directory-page .promoter-channels-list__rowwrap--artist-dir,
:root[data-theme='dark'] body.djs-channels-directory-page .promoter-channels-list__rowwrap--artist-dir {
    border-color: color-mix(in srgb, var(--text) 14%, transparent);
    background: color-mix(in srgb, var(--text) 3%, var(--bg));
}

/* My Subscribed + All Promoters + category filters: one horizontally scrollable row. */
.promoter-channels-subnav-scroll-wrap {
    max-width: 100%;
    margin: 2px 0 10px;
    padding: 0 2px 14px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    display: flex;
    justify-content: center;
    /* Bottom padding keeps iOS overlay scrollbars off the pill hit-area. */
    scrollbar-gutter: stable;
}

.promoter-channels-subnav-scroll-wrap::-webkit-scrollbar {
    height: 4px;
}

.promoter-channels-subnav--unified {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    width: max-content;
    max-width: none;
    min-width: min(100%, max-content);
}

body.promoter-channels-page--embed .promoter-channels-subnav-scroll-wrap {
    margin: 0 0 6px;
    padding-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scrollbar-gutter: auto;
}

body.promoter-channels-page--embed .promoter-channels-subnav-scroll-wrap::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body.promoter-channels-page--embed .promoter-channels-subnav-scroll-wrap .promoter-channels-subnav--unified {
    margin: 0;
}

.promoter-channels-list__chev {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
    min-width: 28px;
    text-align: center;
    color: #64748b;
}

body.promoter-channels-page--embed .promoter-channels-list__chev {
    color: #475569;
}

body.promoter-channels-page--embed .promoter-channels-list__chev-btn {
    padding-right: max(0px, env(safe-area-inset-right, 0px));
}

/* —— Promoter channel (public profile) —— */
html:has(body.promoter-channel-page) {
    overflow-x: clip;
    max-width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    /* Stop iOS rubber-band from moving the whole page when dragging beside the feed. */
    overscroll-behavior: none;
}

html:has(body.promoter-channel-page) body.promoter-channel-page {
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    max-height: none;
    overflow: hidden;
    overscroll-behavior: none;
}

.promoter-channel-page {
    /* Fixed pc-topbar height below safe area (matches filter-tabs top offset). */
    --pc-topbar-clearance: calc(env(safe-area-inset-top, 0px) + 45px);
    margin: 0;
    /* Reset global landing body padding/centering — otherwise iOS shows a white frame on channel pages. */
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    min-height: -webkit-fill-available;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: clip;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overscroll-behavior: none;
}

.promoter-channel-page .pc-topbar,
.view-event-page .pc-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 8px;
    padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right)) 4px max(12px, env(safe-area-inset-left));
    box-sizing: border-box;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.promoter-channel-page > .filter-tabs {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 45px);
    left: 0;
    right: 0;
    z-index: 49;
    padding: 6px 0 8px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.promoter-channel-page > .filter-tabs .filter-tab:not(.filter-tab--add-category) {
    display: none !important;
}

.promoter-channel-page > .filter-tabs .filter-tabs__scroll {
    justify-content: flex-end;
}

.promoter-channel-page .pc-topbar__back,
.view-event-page .pc-topbar__back,
.festival-pro-page .pc-topbar__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 6%, transparent);
    color: #111827;
    text-decoration: none;
    /* iOS: instant tap response — no double-tap-zoom click delay, no grey flash. */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    font-size: 1.1rem;
    font-weight: 700;
    -webkit-tap-highlight-color: transparent;
}

button.pc-topbar__back {
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

:root[data-theme='dark'] .promoter-channel-page .pc-topbar__back,
:root[data-theme='dark'] .view-event-page .pc-topbar__back,
:root[data-theme='dark'] .festival-pro-page .pc-topbar__back {
    color: var(--text);
}

/* Pressed feedback so the back tap feels instant while the next page loads. */
.promoter-channel-page .pc-topbar__back:active,
.view-event-page .pc-topbar__back:active,
.festival-pro-page .pc-topbar__back:active {
    background: color-mix(in srgb, var(--text) 16%, transparent);
    transform: scale(0.92);
}

.festival-pro-page .pc-topbar__back.is-navigating {
    opacity: 0.45;
}

.festival-pro-page .pc-topbar__back.is-navigating .pc-topbar__back-icon {
    display: inline-block;
    animation: giggly-back-nav-spin 0.8s linear infinite;
}

.promoter-channel-page .pc-topbar__title,
.view-event-page .pc-topbar__title,
.user-profile-page .pc-topbar__title {
    margin: 0;
    padding: 0 4px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #111827;
    background: none;
    -webkit-text-fill-color: #111827;
    background-clip: border-box;
    -webkit-background-clip: border-box;
}

:root[data-theme='dark'] .promoter-channel-page .pc-topbar__title,
:root[data-theme='dark'] .view-event-page .pc-topbar__title,
:root[data-theme='dark'] .user-profile-page .pc-topbar__title {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.promoter-channel-page .pc-topbar__left,
.view-event-page .pc-topbar__left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.promoter-channel-page.pc--edit-mode .pc-topbar__back {
    display: none !important;
}

.promoter-channel-page .pc-topbar__brand-link,
.view-event-page .pc-topbar__brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    line-height: 0;
    margin-left: auto;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-topbar__logo,
.view-event-page .pc-topbar__logo,
.user-profile-page .pc-topbar__logo,
.group-page .pc-topbar__logo {
    display: block;
    width: 34px;
    height: 40px;
    border-radius: 0;
    object-fit: contain;
    image-rendering: auto;
    shape-rendering: geometricPrecision;
}

.promoter-channel-page .pc-main {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    flex: 1 1 0%;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Clear fixed topbar only (safe area is in --pc-topbar-clearance); tight gap before hero icon. */
    padding: calc(var(--pc-topbar-clearance) + 4px) max(18px, env(safe-area-inset-left)) 0
        max(18px, env(safe-area-inset-right));
    box-sizing: border-box;
}

.promoter-channel-page .pc-venue-map-expand-btn {
    position: absolute;
    right: 8px;
    bottom: 16px;
    z-index: 5;
    border: 1px solid rgba(15, 23, 42, 0.2);
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

html.pc--venue-channel-map-expanded .promoter-channel-page .pc-venue-map-expand-btn {
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    right: 8px;
    bottom: auto;
}

html.pc--venue-channel-map-landscape .promoter-channel-page .pc-venue-map-expand-btn {
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    right: 8px;
    bottom: auto;
}

.promoter-channel-page .pc-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Venue/promoter channel: hold the shell hidden until boot finishes (icon + tabs + events together). */
html.pc-boot-pending #pcBody {
    visibility: hidden !important;
    pointer-events: none;
}

.promoter-channel-page .pc-head-block {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Hero scrolls away; channel sub-tabs stick at top of panels scroll (below fixed topbar). */
.promoter-channel-page .pc-panels-scroll > .pc-channel-tabs-shell {
    position: sticky;
    top: 0;
    z-index: 12;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Inside the scroll column, channel sub-tabs stay in-flow and centered. */
.promoter-channel-page .pc-panels-scroll > .pc-channel-tabs-shell--bleed {
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
}

.promoter-channel-page .pc-panels-scroll > .pc-channel-tabs-shell .promoter-channels-subnav {
    margin-left: auto;
    margin-right: auto;
}

.promoter-channel-page .pc-panels-scroll {
    flex: 1 1 0%;
    min-height: 0;
    position: relative;
    z-index: 2;
    padding-inline-end: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    overflow-anchor: none;
    margin-top: 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.promoter-channel-page .pc-panels-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Info tab only (JS sets data attr): no scroll affordance / flicker when content fits (esp. iOS overlay scrollbar). */
.promoter-channel-page .pc-panels-scroll[data-pc-info-scroll-lock='1'] {
    overflow-y: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.promoter-channel-page .pc-panels-scroll[data-pc-info-scroll-lock='1']::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.promoter-channel-page .pc-loading,
.promoter-channel-page .pc-error,
.promoter-channel-page .pc-empty {
    margin: 12px 0;
    text-align: center;
    color: var(--text-secondary, #64748b);
}

.promoter-channel-page .pc-error {
    color: #b91c1c;
}

.promoter-channel-page .pc-hero {
    text-align: center;
    padding: 0 0 4px;
    /* Keeps layout stable while the channel icon decodes (reduces visible nudge). */
    min-height: 108px;
}

.promoter-channel-page .pc-hero__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    width: 100%;
    max-width: 100%;
    margin: 0 0 8px;
    min-height: 0;
    transition: margin-bottom 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.promoter-channel-page .pc-hero__side {
    min-width: 0;
}

.promoter-channel-page .pc-hero__side--left {
    justify-self: start;
    align-self: start;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.promoter-channel-page .pc-hero__avatar-wrap {
    position: relative;
    z-index: 0;
    width: 104px;
    height: 104px;
    margin: 0;
    justify-self: center;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
}

.promoter-channel-page .pc-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    align-self: start;
    padding-top: 0;
    min-width: 0;
    gap: 4px;
    max-width: 120px;
}

.promoter-channel-page .pc-hero-save-err {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #b91c1c;
    text-align: right;
    line-height: 1.25;
    max-width: 120px;
}

.promoter-channel-page .pc-hero__save {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f97316;
    text-decoration: none;
    padding: 2px 0 0;
    line-height: 1.2;
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-hero__save:active {
    opacity: 0.85;
}

.promoter-channel-page.pc--edit-mode .pc-hero__save:has(.pc-hero__action-icon),
.promoter-channel-page.pc--edit-mode .pc-hero__cancel:has(.pc-hero__action-icon) {
    padding: 0;
    color: transparent;
    font-size: 0;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.promoter-channel-page .pc-hero__action-icon {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    pointer-events: none;
}

.promoter-channel-page:not(.pc--edit-mode) .pc-hero__action-icon--edit-only {
    display: none !important;
}

.promoter-channel-page .pc-hero__cancel {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-blue, #77ACA2f);
    text-decoration: none;
    padding: 2px 0 0;
    line-height: 1.2;
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-hero__cancel:active {
    opacity: 0.85;
}

:root[data-theme='dark'] .promoter-channel-page .pc-hero__cancel {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.promoter-channel-page .pc-hero__edit {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-blue, #77ACA2f);
    text-decoration: none;
    padding: 2px 0 0;
    line-height: 1.2;
    background: none;
    border: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-hero__claim {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-blue, #77ACA2f);
    text-decoration: none;
    padding: 2px 0 0;
    line-height: 1.2;
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-hero__claim:active {
    opacity: 0.85;
}

:root[data-theme='dark'] .promoter-channel-page .pc-hero__claim {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.promoter-channel-page .pc-hero__edit:active {
    opacity: 0.85;
}

:root[data-theme='dark'] .promoter-channel-page .pc-hero__edit {
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

.promoter-channel-page .pc-hero__img {
    width: 104px;
    height: 104px;
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid color-mix(in srgb, var(--text) 10%, transparent);
    box-sizing: border-box;
    background: var(--bg);
}

:root[data-theme='dark'] .promoter-channel-page .pc-hero__img {
    border-color: rgba(255, 255, 255, 0.28);
}

.promoter-channel-page .pc-hero__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: var(--brand-teal-deep, #468189);
    border: 1px solid transparent;
    box-sizing: border-box;
}

:root[data-theme='dark'] .promoter-channel-page .pc-hero__fallback {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: var(--brand-teal-deep, #468189);
    border-color: transparent;
}

.promoter-channel-page .pc-hero__name {
    position: relative;
    z-index: 1;
    margin: 0 0 6px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.promoter-channel-page .pc-hero__subs {
    margin: 0;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.promoter-channel-page .pc-hero__subs-count {
    margin: 0;
    padding: 0;
    width: auto;
    max-width: 100%;
    text-align: center;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111827;
    line-height: 1.35;
    box-sizing: border-box;
}

/* One row: balanced columns so “Subscribers + megaphone” stay centred; share aligns right (with Edit above). */
.promoter-channel-page .pc-hero__subs-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    box-sizing: border-box;
    gap: 0 6px;
}

.promoter-channel-page .pc-hero__subs-row__lead {
    min-width: 0;
}

.promoter-channel-page .pc-hero__subs-center {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    grid-column: 2;
    min-width: 0;
}

.promoter-channel-page .pc-hero__subs-share-col {
    grid-column: 3;
    justify-self: end;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    padding-right: max(0px, env(safe-area-inset-right, 0px));
}

.promoter-channel-page .pc-hero__meta {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111827;
    line-height: 1.35;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.promoter-channel-page .pc-hero-follow-label {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111827;
    line-height: 1.35;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
}

:root[data-theme='dark'] .promoter-channel-page .pc-hero-follow-label {
    color: var(--text);
}

/* Promoter / venue channel hero — text Follow / Unfollow */
.promoter-channel-page .pc-hero-follow-btn.channel-page-follow-btn,
body.venue-channel-page .pc-hero-follow-btn.channel-page-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transform: none;
    align-self: center;
    margin: 0;
    padding: 7px 14px;
    font-size: 0.82rem;
    border-radius: 10px;
    box-sizing: border-box;
}

.promoter-channel-page .pc-hero-follow-label,
body.venue-channel-page .pc-hero-follow-label {
    display: none !important;
}

/* Directory list Follow / Unfollow (promoters + venues + embeds) */
body.promoter-channels-page .directory-channel-follow-btn,
body.venues-channels-directory-page .directory-channel-follow-btn,
.promoter-channels-page .directory-channel-follow-btn {
    transform: none;
    align-self: center;
    margin: 0;
    padding: 6px 11px;
    font-size: 0.76rem;
    border-radius: 10px;
}

/* Artist / DJ channel — text Follow / Unfollow (shared .giggly-user-follow-btn) */
body.artist-channel-page .pc-hero-follow-btn.artist-channel-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transform: none;
    align-self: center;
    margin: 0;
    padding: 7px 14px;
    font-size: 0.82rem;
    border-radius: 10px;
    box-sizing: border-box;
}

body.artist-channel-page .pc-hero-follow-label {
    display: none !important;
}

body.artist-channel-page .pc-hero__handle {
    margin: 0 0 2px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    text-align: center;
}

body.artist-channel-page .ac-hero-handle-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 2px;
    padding: 0 8px;
    box-sizing: border-box;
}

body.artist-channel-page .ac-hero-handle-row .pc-hero__handle {
    margin: 0;
    flex: 0 1 auto;
}

body.artist-channel-page .ac-hero-handle-row[hidden] {
    display: none !important;
}

body.artist-channel-page .pc-hero__name {
    margin-bottom: 2px;
}

body.artist-channel-page .ac-hero-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 2px;
    padding: 0 8px;
    box-sizing: border-box;
}

body.artist-channel-page .ac-hero-name-row .pc-hero__name {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}

body.artist-channel-page .ac-hero-verified-badge-wrap {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

/* Artist/DJ channel hero: empty icon uses brand teal circle. */
body.artist-channel-page .pc-hero__avatar-wrap--no-icon {
    background: var(--brand-teal-deep, #468189);
}

body.artist-channel-page .pc-hero__avatar-wrap .pc-hero__img,
body.artist-channel-page .pc-hero__avatar-wrap .pc-hero__fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

body.artist-channel-page .pc-hero__avatar-wrap--no-icon .pc-hero__img {
    display: none !important;
}

body.artist-channel-page .pc-hero__avatar-wrap:not(.pc-hero__avatar-wrap--no-icon) .pc-hero__fallback {
    display: none !important;
}

body.artist-channel-page .pc-hero__fallback {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: var(--brand-teal-deep, #468189);
    border: none;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.artist-channel-page .pc-hero__fallback[data-ini-len='4'] {
    font-size: 1.35rem;
    letter-spacing: 0;
}

body.artist-channel-page .pc-hero__fallback[data-ini-len='5'],
body.artist-channel-page .pc-hero__fallback[data-ini-len='6'] {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

:root[data-theme='dark'] body.artist-channel-page .pc-hero__fallback {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: var(--brand-teal-deep, #468189);
}

body.artist-channel-page .ac-claim-profile-btn {
    flex: 0 0 auto;
    margin: 0;
    padding: 4px 10px;
    border: 1px solid color-mix(in srgb, var(--accent-purple) 35%, var(--text) 20%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-purple) 8%, var(--bg));
    color: var(--text);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

body.artist-channel-page .ac-claim-profile-btn:active {
    opacity: 0.85;
}

/* Artist/DJ channel — Facebook-style cover header + overlapping avatar */
body.artist-channel-page.promoter-channel-page {
    --ac-inline-gutter: max(16px, env(safe-area-inset-left, 0px));
    --ac-inline-gutter-end: max(16px, env(safe-area-inset-right, 0px));
    overscroll-behavior-x: none;
}

body.artist-channel-page .pc-panels-scroll {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
    padding-inline-end: 0;
}

body.artist-channel-page .pc-head-block {
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
}

body.artist-channel-page .ac-hero-header-image {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    height: clamp(160px, 38vw, 220px);
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1;
    background: var(--brand-teal-deep, #468189);
}

/* Empty header (no photo / no icon blur fallback): solid brand teal */
body.artist-channel-page .ac-hero-header-image:not(.ac-hero-header-image--has-photo):not(.ac-hero-header-image--from-icon) {
    background: var(--brand-teal-deep, #468189);
}

body.artist-channel-page .pc-hero.ac-hero--cover {
    text-align: left;
    /* Keep hero air under the icon; followers sit low without squashing this block. */
    padding: 0 0 10px;
    min-height: 0;
}

body.artist-channel-page .ac-hero-body {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: min(100%, 840px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

body.artist-channel-page .ac-hero-edit-chrome {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 var(--ac-inline-gutter-end) 4px var(--ac-inline-gutter);
    box-sizing: border-box;
}

body.artist-channel-page.pc--edit-mode .ac-hero-edit-chrome {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    margin: 0;
    pointer-events: none;
}

body.artist-channel-page.pc--edit-mode .ac-hero-edit-chrome > * {
    pointer-events: auto;
}

body.artist-channel-page .ac-hero-edit-chrome .pc-hero-save-err {
    flex: 1 1 auto;
    margin: 0;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    background: rgba(15, 10, 30, 0.72);
    border-radius: 8px;
    padding: 6px 10px;
    max-width: min(100%, 280px);
}

body.artist-channel-page .ac-hero-header-image__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: none;
}

body.artist-channel-page .ac-hero-header-image--from-icon .ac-hero-header-image__img {
    filter: blur(10px) saturate(1.15);
    transform: scale(1.08);
}

body.artist-channel-page .ac-hero-header-image__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.08) 0%,
        rgba(15, 23, 42, 0.18) 100%
    );
}

body.artist-channel-page .ac-hero-header-share {
    position: absolute;
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: 10px;
    z-index: 4;
    pointer-events: auto;
}

body.artist-channel-page .ac-hero-header-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
    color: var(--text, #212529);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.artist-channel-page.pc--edit-mode .ac-hero-header-share {
    display: none;
}

/* Identity/name is full-width so long names wrap later; gig counts sit in the row below. */
body.artist-channel-page .ac-hero-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

body.artist-channel-page .ac-hero-lower {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 10px 12px;
    width: 100%;
    min-height: 112px;
    box-sizing: border-box;
}

body.artist-channel-page .ac-hero-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.artist-channel-page .ac-hero-stat-col {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding-top: 0;
    padding-right: var(--ac-inline-gutter-end);
    min-width: 76px;
}

/* Sit Past/Future level with the @handle (under the name), not hard against Edit Gigs. */
body.artist-channel-page .ac-hero-stat-col__counts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: -52px;
}

/* Keep Edit Gigs on the bottom edge, level with Followers above the tabs. */
body.artist-channel-page .ac-hero-stat-col .giggly-profile-feed__edit-gigs-btn {
    margin-top: auto;
}

body.artist-channel-page.pc--edit-mode .ac-hero-stat-col {
    display: none;
}

body.artist-channel-page .ac-hero-stat-col .giggly-profile-feed__edit-gigs-btn:disabled,
body.artist-channel-page .ac-hero-stat-col .giggly-profile-feed__edit-gigs-btn[aria-disabled='true'] {
    opacity: 0.45;
    cursor: default;
}

body.artist-channel-page.ac--editing-gigs .ac-hero-stat-col .giggly-profile-feed__edit-gigs-btn {
    color: var(--text);
    background: rgba(120, 120, 128, 0.22);
}

body.artist-channel-page .ac-hero-header-update-btn {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 4px 14px;
    border: none;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
    color: var(--text);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

body.artist-channel-page .ac-hero-header-actions--view {
    position: absolute;
    top: 8px;
    right: max(8px, env(safe-area-inset-right, 0px));
    bottom: auto;
    left: auto;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px;
    pointer-events: none;
}

body.artist-channel-page .ac-hero-header-actions--view.ac-hero-header-actions--stacked {
    gap: 6px;
}

body.artist-channel-page .ac-hero-header-actions--view > * {
    pointer-events: auto;
}

body.artist-channel-page.pc--edit-mode .ac-hero-header-actions--view {
    display: none;
}

body.artist-channel-page .ac-hero-header-image .ac-hero-header-btn,
body.artist-channel-page .ac-hero-header-image .ac-claim-profile-btn,
body.artist-channel-page .ac-hero-edit-chrome .ac-hero-header-btn {
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
}

body.artist-channel-page .ac-hero-header-btn--icon {
    padding: 0;
    border: none;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
}

body.artist-channel-page .ac-hero-header-btn--icon .pc-hero__action-icon {
    width: 44px;
    height: 44px;
}

body.artist-channel-page .ac-hero-identity {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 0;
    padding: 0 var(--ac-inline-gutter-end) 0 var(--ac-inline-gutter);
    box-sizing: border-box;
}

body.artist-channel-page:not(.pc--edit-mode) .ac-hero-identity {
    margin-top: 0;
}

body.artist-channel-page:not(.pc--edit-mode) .pc-head-block--compact .ac-hero-identity {
    margin-top: 0;
}

body.artist-channel-page .ac-hero-identity__avatar {
    flex: 0 0 104px;
    width: 104px;
    position: relative;
    z-index: 3;
    margin-top: -52px;
}

body.artist-channel-page:not(.pc--edit-mode) .ac-hero-identity__avatar {
    margin-top: -38px;
}

body.artist-channel-page:not(.pc--edit-mode) .pc-head-block--compact .ac-hero-identity__avatar {
    margin-top: -28px;
}

body.artist-channel-page .ac-hero--cover .pc-hero__avatar-wrap {
    width: 104px;
    height: 104px;
    margin: 0;
    justify-self: auto;
    border: 3px solid var(--bg);
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

body.artist-channel-page .ac-hero-identity__meta {
    flex: 1 1 auto;
    min-width: 0;
    padding-bottom: 2px;
    align-self: flex-start;
}

body.artist-channel-page .ac-hero--cover .ac-hero-name-row {
    justify-content: flex-start;
    align-items: flex-start;
    margin: 0 0 2px;
    padding: 0;
}

body.artist-channel-page:not(.pc--edit-mode) .ac-hero--cover .ac-hero-name-row {
    margin-top: 0;
}

body.artist-channel-page .ac-hero--cover .pc-hero__name {
    text-align: left;
    color: var(--text);
    overflow: visible;
    max-height: none;
}

/* View mode: match #eventPageTitle size/weight; keep normal case (not uppercase). */
body.artist-channel-page:not(.pc--edit-mode) .ac-hero--cover #acHeroName.pc-hero__name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: none;
    white-space: normal;
    overflow-wrap: break-word;
}

body.artist-channel-page .ac-hero--cover .ac-hero-handle-row {
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

body.artist-channel-page .ac-hero--cover .pc-hero__handle {
    text-align: left;
}

body.artist-channel-page .ac-hero--cover .pc-hero__name-edit-wrap,
body.artist-channel-page .ac-hero--cover .pc-hero__handle-edit-wrap {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

body.artist-channel-page .pc-body:has(.pc-head-block--compact) > .ac-hero-header-image,
body.artist-channel-page .pc-head-block--compact .ac-hero-header-image {
    height: clamp(104px, 28vw, 148px);
}

body.artist-channel-page .pc-head-block--compact .ac-hero-identity {
    margin-top: 0;
}

body.artist-channel-page .pc-head-block--compact .ac-hero-identity__avatar {
    margin-top: -40px;
}

body.artist-channel-page .pc-head-block--compact .ac-hero--cover .pc-hero__avatar-wrap,
body.artist-channel-page .pc-head-block--compact .ac-hero-identity__avatar {
    width: 80px;
    flex-basis: 80px;
    height: 80px;
}

body.artist-channel-page .pc-head-block--compact .ac-hero-identity__meta {
    padding-bottom: 0;
}

.ac-link-verify-dialog__message {
    margin: 0 0 16px;
    text-align: center;
    color: var(--text-secondary, #64748b);
    line-height: 1.45;
}

/* Link verify error — always viewport-centred (event edit, channel edit, etc.) */
dialog.ac-link-verify-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    margin: 0;
    transform: translate(-50%, -50%);
    width: min(440px, calc(100vw - 32px));
    max-height: min(85vh, 520px);
    overflow: auto;
    box-sizing: border-box;
    z-index: 2147483000;
    border: none;
    border-radius: 16px;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

dialog.ac-link-verify-dialog::backdrop {
    background: rgba(15, 23, 42, 0.5);
}

.ac-link-verify-dialog .pc-dialog__inner {
    padding: 18px 18px 16px;
}

.ac-link-verify-dialog .pc-dialog__title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
}

.ac-link-verify-dialog .pc-dialog__actions {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.ac-claim-dialog__lead {
    margin: 0 0 16px;
    text-align: center;
    color: var(--text-secondary, #64748b);
    line-height: 1.45;
}

.ac-claim-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    margin: 0 0 8px;
}

.ac-claim-dialog__actions--stack {
    flex-direction: column;
    align-items: stretch;
}

.ac-claim-dialog__actions--stack .ac-claim-dialog__opt {
    min-height: 0;
    width: 100%;
    flex-direction: row;
    justify-content: center;
}

.ac-claim-dialog__opt {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 112px;
    min-height: 96px;
    padding: 12px 16px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

.ac-claim-dialog__opt:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ac-claim-dialog__opt--secondary {
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    background: color-mix(in srgb, var(--text) 4%, var(--bg));
}

.ac-claim-dialog__lead--success {
    color: var(--text);
}

.ac-claim-dialog__lead--success strong {
    font-weight: 800;
}

.ac-claim-dialog__hint {
    margin: 8px 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary, #64748b);
}

.ac-claim-dialog__notice {
    margin: 0 0 16px;
    width: 100%;
    max-width: none;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-secondary, #64748b);
}

.ac-claim-dialog__notice--error {
    color: var(--text-secondary, #64748b);
}

.ac-claim-dialog__footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.ac-claim-dialog__footer .ticket-button {
    width: 100%;
    max-width: none;
    flex: none;
}

.ac-claim-dialog .pc-dialog__inner {
    width: min(100%, 420px);
}

.giggly-artist-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex: 0 0 auto;
    line-height: 0;
}

.giggly-artist-verified-badge__svg {
    display: block;
}

.promoter-channels-list__name-row .giggly-artist-verified-badge {
    margin-left: 4px;
}

.event-card-v2__headline-artist-top > .giggly-artist-verified-badge {
    /* Legacy: badge was a bare grid sibling under the avatar — hide if still present. */
    display: none;
}

body.artist-channel-page .ac-hero-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 6px 0 0;
    padding: 0 var(--ac-inline-gutter-end) 0 var(--ac-inline-gutter);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.artist-channel-page.pc--edit-mode .ac-hero-contacts {
    margin-top: 8px;
}

body.artist-channel-page .ac-hero-contact-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

body.artist-channel-page .ac-hero-contact-row--inline {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

body.artist-channel-page.pc--edit-mode .ac-hero-contact-row {
    gap: 0;
}

body.artist-channel-page .ac-hero-contact-row[hidden],
body.artist-channel-page .ac-hero-contacts[hidden] {
    display: none !important;
}

body.artist-channel-page .ac-hero-contact-row + .ac-hero-contact-row {
    margin-top: 2px;
}

body.artist-channel-page.pc--edit-mode .ac-hero-contact-row + .ac-hero-contact-row {
    margin-top: 6px;
}

body.artist-channel-page .ac-hero-contact-label {
    flex: none;
    width: auto;
    margin: 0;
    padding: 0;
    line-height: 1.25;
    text-align: left;
    white-space: nowrap;
}

body.artist-channel-page .ac-hero-contact-value {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    font-size: 0.92rem;
    line-height: 1.25;
    color: var(--text);
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.artist-channel-page a.ac-hero-contact-link,
body.artist-channel-page a.ac-hero-contact-link:hover,
body.artist-channel-page a.ac-hero-contact-link:focus,
body.artist-channel-page a.ac-hero-contact-link:active,
body.artist-channel-page a.ac-hero-contact-link:visited {
    color: var(--accent-blue, #77ACA2f);
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
}

body.artist-channel-page .ac-hero-contact-input {
    flex: 1 1 auto;
    display: block;
    width: auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 0.92rem;
    background: var(--bg);
    color: var(--text);
    text-align: left;
}

body.artist-channel-page:not(.pc--edit-mode) #acMgmtEmailInput,
body.artist-channel-page:not(.pc--edit-mode) #acBookingsEmailInput {
    display: none !important;
}

body.artist-channel-page.pc--edit-mode #acMgmtEmailView,
body.artist-channel-page.pc--edit-mode #acBookingsEmailView {
    display: none !important;
}

body.artist-channel-page:not(.pc--edit-mode) .ac-about-section__label {
    display: none !important;
}

body.artist-channel-page .ac-hero-subs {
    /* Sink Followers to the bottom of the hero column (level with Edit Gigs). */
    margin-top: auto;
    padding: 16px var(--ac-inline-gutter-end) 0 var(--ac-inline-gutter);
}

body.artist-channel-page .ac-hero-subs .pc-hero__subs-count {
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: #111827;
    white-space: nowrap;
}

:root[data-theme='dark'] body.artist-channel-page .ac-hero-subs .pc-hero__subs-count {
    color: var(--text);
}

body.artist-channel-page .ac-hero-subs-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

body.artist-channel-page .ac-hero-subs-row__left {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

body.artist-channel-page .ac-hero-subs-row__right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0;
    margin-right: 0;
}

body.artist-channel-page .ac-hero-subs-row__right .pc-channel-share-wrap--hero {
    padding-right: 0;
    margin-right: 0;
}

body.artist-channel-page .ac-hero-subs-row__left .pc-hero__meta {
    text-align: left;
}

body.artist-channel-page.promoter-channel-page .pc-main {
    max-width: none;
    width: 100%;
    min-width: 0;
    padding: calc(var(--pc-topbar-clearance) + 4px) 0 0 0 !important;
    box-sizing: border-box;
}

body.artist-channel-page .pc-body,
body.artist-channel-page .pc-panels-scroll {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

body.artist-channel-page .pc-channel-tabs-shell,
body.artist-channel-page .pc-panel {
    width: 100%;
    max-width: min(100%, 840px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ac-inline-gutter);
    padding-right: var(--ac-inline-gutter-end);
    box-sizing: border-box;
}

body.artist-channel-page .pc-loading,
body.artist-channel-page .pc-error {
    max-width: min(100%, 840px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ac-inline-gutter);
    padding-right: var(--ac-inline-gutter-end);
    box-sizing: border-box;
}

body.artist-channel-page .ac-genres-strip {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 10px;
    padding: 16px 4px 0;
    box-sizing: border-box;
}

body.artist-channel-page .ac-genres-strip .ac-genre-pills {
    justify-content: center;
}

body.artist-channel-page .ac-info-location {
    margin: 14px auto 0;
    padding: 0 8px;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
}

body.artist-channel-page #acFieldCity .pc-field__value {
    text-align: center;
}

body.artist-channel-page .ac-media-embed__placeholder {
    width: 100%;
    min-height: 152px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--text) 6%, var(--bg));
}

body.artist-channel-page .ac-media-embed--youtube .ac-media-embed__placeholder {
    min-height: 315px;
}

body.artist-channel-page .ac-icon-link--social .giggly-platform-icon,
body.artist-channel-page .ac-icon-link--dsp .giggly-platform-icon {
    --giggly-platform-icon-size: 40px;
}

body.artist-channel-page .pc-field--center,
body.artist-channel-page .pc-field--center .pc-field__label,
body.artist-channel-page .pc-field--center .pc-field__value {
    text-align: center;
}

body.artist-channel-page:not(.pc--edit-mode) #acFieldCity .pc-field__label {
    display: none;
}

body.artist-channel-page .ac-hero-contact-label {
    margin: 0 !important;
    padding: 0;
    text-align: left;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    color: #9ca3af !important;
}

body.artist-channel-page #acFieldCity .pc-field__label,
body.artist-channel-page .ac-genres-edit__head .pc-field__label,
body.artist-channel-page .ac-about-section__label,
body.artist-channel-page #acSocialSection .pc-field__label,
body.artist-channel-page #acStreamingSection .pc-field__label,
body.artist-channel-page #acDefaultPlayerEdit .pc-field__label,
body.artist-channel-page #acArtistTypeEdit .pc-field__label {
    margin: 0 0 8px;
    padding: 0;
    text-align: center;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #9ca3af !important;
}

:root[data-theme='dark'] body.artist-channel-page .ac-hero-contact-label,
:root[data-theme='dark'] body.artist-channel-page #acFieldCity .pc-field__label,
:root[data-theme='dark'] body.artist-channel-page .ac-genres-edit__head .pc-field__label,
:root[data-theme='dark'] body.artist-channel-page .ac-about-section__label,
:root[data-theme='dark'] body.artist-channel-page #acSocialSection .pc-field__label,
:root[data-theme='dark'] body.artist-channel-page #acStreamingSection .pc-field__label,
:root[data-theme='dark'] body.artist-channel-page #acDefaultPlayerEdit .pc-field__label,
:root[data-theme='dark'] body.artist-channel-page #acArtistTypeEdit .pc-field__label {
    color: #9ca3af !important;
}

body.artist-channel-page .ac-genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 0;
}

body.artist-channel-page .ac-media-section .pc-field__label {
    text-align: center;
}

body.artist-channel-page .ac-media-embed {
    max-width: 100%;
    margin: 0 auto;
}

body.artist-channel-page .ac-media-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 auto 16px;
    width: 100%;
    max-width: 100%;
}

body.artist-channel-page .ac-media-embed iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 12px;
}

body.artist-channel-page .ac-media-embed--mixcloud {
    /* Show widgets ~180px; profile list widgets ~352px — set by JS. */
    min-height: var(--giggly-mixcloud-embed-h, 180px);
}

body.artist-channel-page .ac-media-embed--mixcloud iframe {
    height: var(--giggly-mixcloud-embed-h, 180px);
}

body.artist-channel-page .ac-media-stack[hidden] {
    display: none !important;
}

body.artist-channel-page.pc--edit-mode #acSocialHubStrip,
body.artist-channel-page.pc--edit-mode #acDspStrip,
body.artist-channel-page.pc--edit-mode #acGenresStrip {
    display: none !important;
}

body.artist-channel-page.pc--edit-mode .pc-hero__subs {
    display: none !important;
}

body.artist-channel-page .ac-icon-section {
    margin: 0 auto 16px;
    text-align: center;
    overflow: visible;
}

body.artist-channel-page.pc--edit-mode #acSocialSection,
body.artist-channel-page.pc--edit-mode #acStreamingSection {
    overflow: visible;
    position: relative;
    z-index: 1;
}

body.artist-channel-page .ac-icon-section__label {
    margin: 0 0 10px;
}

body.artist-channel-page .ac-edit-icon-tile-wrap {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    z-index: 0;
}

body.artist-channel-page .ac-edit-icon-tile-wrap:has(.ac-edit-icon-tile__remove) {
    z-index: 1;
}

body.artist-channel-page .ac-edit-icon-tile-wrap:has(.ac-edit-icon-tile__remove):hover,
body.artist-channel-page .ac-edit-icon-tile-wrap:has(.ac-edit-icon-tile__remove):focus-within {
    z-index: 6;
}

body.artist-channel-page .ac-edit-icon-tile {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    width: 44px;
}

body.artist-channel-page .ac-edit-icon-tile__remove {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text) 88%, var(--bg));
    color: var(--bg);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transform: translate(30%, -30%);
    box-shadow: 0 0 0 2px var(--bg);
}

body.artist-channel-page .ac-edit-icon-tile--empty {
    opacity: 0.62;
}

body.artist-channel-page .ac-edit-icon-tile--empty .giggly-platform-icon {
    opacity: 0.78;
}

body.artist-channel-page .ac-edit-icon-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

body.artist-channel-page .ac-edit-icon-tile__action {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--accent-blue, #77ACA2f);
    max-width: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:root[data-theme='dark'] body.artist-channel-page .ac-edit-icon-tile__action {
    color: #93c5fd;
}

body.artist-channel-page .ac-edit-icon-tile:active {
    opacity: 0.82;
}

body.artist-channel-page .ac-icon-scroll-strip--edit:not(.ac-icon-scroll-strip--fits) .ac-icon-scroll-strip__btn {
    width: 28px;
    height: 28px;
    font-size: 1.05rem;
}

body.artist-channel-page.pc--edit-mode .pc-channel-tabs .promoter-channels-subnav__pill.pc-channel-tab--locked {
    opacity: 0.42;
    pointer-events: none;
    cursor: default;
}

body.artist-channel-page .ac-genres-edit__head {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

body.artist-channel-page .ac-genres-edit__head .pc-field__label {
    margin: 0 0 6px;
    text-align: center;
}

body.artist-channel-page .ac-genres-edit-pill-btn {
    margin: 0;
}

body.artist-channel-page .ac-genres-edit .pc-add-pill-btn {
    margin-top: 0;
}

body.artist-channel-page .ac-default-player-edit {
    margin-top: 14px;
    width: 100%;
    max-width: min(100%, 360px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.artist-channel-page .ac-default-player-edit .pc-field__label {
    display: block;
    margin: 0 0 12px;
    padding: 0;
    text-align: center;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    color: #9ca3af !important;
}

:root[data-theme='dark'] body.artist-channel-page .ac-default-player-edit .pc-field__label {
    color: #9ca3af !important;
}

body.artist-channel-page .ac-default-player-edit__select {
    width: auto;
    min-width: 0;
    max-width: min(100%, 240px);
    margin-left: auto;
    margin-right: auto;
    padding: 8px 28px 8px 12px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--text, #212529);
    background-color: var(--bg, #fff);
    -webkit-appearance: menulist;
    appearance: auto;
    cursor: pointer;
}

:root[data-theme='dark'] body.artist-channel-page .ac-default-player-edit__select {
    color: var(--text, #e8e4ed);
    background-color: var(--bg);
}

body.artist-channel-page .ac-artist-type-edit {
    margin-top: 20px;
}

body.artist-channel-page .ac-genre-pill--draggable {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

body.artist-channel-page .ac-genre-pill__grabber {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: color-mix(in srgb, var(--text) 45%, transparent);
    padding: 0 2px 0 4px;
    margin: 0;
    cursor: grab;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

body.artist-channel-page .ac-genre-pill__grabber-icon {
    display: block;
    font-size: 14px;
    pointer-events: none;
}

body.artist-channel-page .ac-genre-pill--dragging {
    position: relative;
    z-index: 3;
    opacity: 0.92;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--text) 16%, transparent);
}

body.artist-channel-page .ac-genre-pill--dragging .ac-genre-pill__grabber {
    cursor: grabbing;
    color: color-mix(in srgb, var(--text) 70%, transparent);
}

body.artist-channel-page .ac-about-section__label {
    margin: 0 0 8px;
}

body.artist-channel-page:not(.pc--edit-mode) #acHeroNameEditWrap,
body.artist-channel-page:not(.pc--edit-mode) #acHeroHandleEditWrap,
body.artist-channel-page:not(.pc--edit-mode) #acHeroIconUpdateBtn,
body.artist-channel-page:not(.pc--edit-mode) #acEditCancelBtn,
body.artist-channel-page:not(.pc--edit-mode) #acSaveBtn,
body.artist-channel-page:not(.pc--edit-mode) #acGenresEdit,
body.artist-channel-page:not(.pc--edit-mode) #acSocialEditRow,
body.artist-channel-page:not(.pc--edit-mode) #acDspEditRow,
body.artist-channel-page:not(.pc--edit-mode) #acDefaultPlayerEdit,
body.artist-channel-page:not(.pc--edit-mode) #acArtistTypeEdit,
body.artist-channel-page:not(.pc--edit-mode) #acBioInput,
body.artist-channel-page:not(.pc--edit-mode) #acCityInput,
body.artist-channel-page:not(.pc--edit-mode) #acCountrySelect,
body.artist-channel-page:not(.pc--edit-mode) #acCityEditWrap,
body.artist-channel-page:not(.pc--edit-mode) #acCitySearchBtn {
    display: none !important;
}

body.artist-channel-page #acHeroNameEditWrap[hidden],
body.artist-channel-page #acHeroHandleEditWrap[hidden],
body.artist-channel-page #acHeroIconUpdateBtn[hidden],
body.artist-channel-page #acEditCancelBtn[hidden],
body.artist-channel-page #acSaveBtn[hidden],
body.artist-channel-page #acGenresEdit[hidden],
body.artist-channel-page #acSocialEditRow[hidden],
body.artist-channel-page #acDspEditRow[hidden],
body.artist-channel-page #acBioInput[hidden],
body.artist-channel-page #acCityInput[hidden] {
    display: none !important;
}

body.artist-channel-page .pc-hero__handle-edit-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 4px auto 0;
    max-width: min(100%, 320px);
}

body.artist-channel-page.pc--edit-mode .pc-hero__name-input {
    text-align: left;
    font-size: clamp(1.28rem, 5vw, 1.62rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.artist-channel-page.pc--edit-mode .pc-hero__handle-edit-wrap {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

body.artist-channel-page.pc--edit-mode .pc-hero__handle-input {
    text-align: left;
}

body.artist-channel-page .pc-hero__handle-prefix {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
}

body.artist-channel-page .pc-hero__handle-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    text-align: center;
}

body.artist-channel-page .ac-social-edit-row {
    margin: 0 auto 14px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

body.artist-channel-page .ac-social-edit-row--dsp {
    margin-bottom: 18px;
}

body.artist-channel-page .ac-social-slot__link,
body.artist-channel-page .ac-social-slot__disc {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: auto;
}

body.artist-channel-page .ac-social-slot__disc .giggly-platform-icon {
    opacity: 0.85;
}

body.artist-channel-page .ac-genres-edit {
    margin-bottom: 12px;
    padding-top: 16px;
}

body.artist-channel-page .pc-add-pill-btn {
    display: inline-block;
    margin: 8px auto 0;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px dashed color-mix(in srgb, var(--text) 22%, transparent);
    background: transparent;
    color: var(--text-secondary, #64748b);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

body.artist-channel-page .ac-icon-scroll-strip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 10px;
    box-sizing: border-box;
}

body.artist-channel-page .ac-icon-scroll-strip--edit {
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 8px;
    justify-content: center;
    overflow: visible;
    position: relative;
    z-index: 2;
}

body.artist-channel-page .ac-icon-scroll-strip--edit .ac-icon-scroll-strip__viewport {
    padding-top: 10px;
    padding-bottom: 2px;
    box-sizing: border-box;
}

body.artist-channel-page .ac-icon-scroll-strip--edit .ac-icon-scroll-strip__track {
    padding-top: 4px;
    padding-right: 6px;
    align-items: flex-start;
}

body.artist-channel-page .ac-icon-scroll-strip--edit .ac-icon-scroll-strip__btn {
    align-self: center;
}

body.artist-channel-page .ac-icon-scroll-strip--edit:not(.ac-icon-scroll-strip--fits) {
    max-width: calc(5 * 44px + 4 * 16px + 2 * 28px + 2 * 10px);
}

body.artist-channel-page .ac-icon-scroll-strip--edit:not(.ac-icon-scroll-strip--fits) .ac-icon-scroll-strip__viewport {
    flex: 0 0 calc(5 * 44px + 4 * 16px);
    width: calc(5 * 44px + 4 * 16px);
    max-width: calc(5 * 44px + 4 * 16px);
    min-width: calc(5 * 44px + 4 * 16px);
}

body.artist-channel-page .ac-icon-scroll-strip--social {
    padding-top: 4px;
    padding-bottom: 12px;
}

body.artist-channel-page .ac-icon-scroll-strip--dsp {
    margin-bottom: 16px;
    padding-bottom: 2px;
}

/* Few icons: shrink viewport to content and center the group on the page. */
body.artist-channel-page .ac-icon-scroll-strip--fits .ac-icon-scroll-strip__viewport {
    flex: 0 1 auto;
    overflow: visible;
}

body.artist-channel-page .ac-icon-scroll-strip--fits .ac-icon-scroll-strip__track {
    width: auto;
    min-width: 0;
}

/* Many icons: cap carousel width (5 icons + arrows) and keep it centered. */
body.artist-channel-page .ac-icon-scroll-strip:not(.ac-icon-scroll-strip--fits) {
    max-width: calc(5 * 40px + 4 * 16px + 2 * 24px + 8px);
}

body.artist-channel-page .ac-icon-scroll-strip__viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 2px;
}

body.artist-channel-page .ac-icon-scroll-strip:not(.ac-icon-scroll-strip--fits) .ac-icon-scroll-strip__viewport {
    flex: 1 1 0%;
}

body.artist-channel-page .ac-icon-scroll-strip__viewport::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body.artist-channel-page .ac-icon-scroll-strip__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: max-content;
    min-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

body.artist-channel-page .ac-icon-scroll-strip:not(.ac-icon-scroll-strip--fits) .ac-icon-scroll-strip__track {
    justify-content: flex-start;
    min-width: 0;
}

body.artist-channel-page .ac-icon-scroll-strip__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--text) 7%, var(--bg));
    color: #111827;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.artist-channel-page .ac-icon-scroll-strip__btn:not(.ac-icon-scroll-strip__btn--disabled):active {
    background: color-mix(in srgb, var(--text) 12%, var(--bg));
}

body.artist-channel-page .ac-icon-scroll-strip__btn--disabled {
    color: #9ca3af;
    background: color-mix(in srgb, var(--text) 4%, var(--bg));
    border-color: color-mix(in srgb, var(--text) 8%, transparent);
    cursor: default;
    pointer-events: none;
}

:root[data-theme='dark'] body.artist-channel-page .ac-icon-scroll-strip__btn {
    color: var(--text);
    background: color-mix(in srgb, var(--text) 10%, var(--bg));
    border-color: color-mix(in srgb, var(--text) 18%, transparent);
}

:root[data-theme='dark'] body.artist-channel-page .ac-icon-scroll-strip__btn--disabled {
    color: #6b7280;
    background: color-mix(in srgb, var(--text) 5%, var(--bg));
}

body.artist-channel-page .ac-icon-scroll-strip__btn[hidden] {
    display: none !important;
}

body.artist-channel-page .ac-about-section {
    margin: 0 auto 16px;
    text-align: center;
}

body.artist-channel-page .ac-about-section .pc-desc-bubble {
    text-align: left;
}

body.artist-channel-page .ac-about-section .pc-description-input,
body.artist-channel-page #acBioInput {
    text-align: center;
}

body.artist-channel-page .ac-about-section .pc-description-input::placeholder,
body.artist-channel-page #acBioInput::placeholder {
    text-align: center;
}

body.artist-channel-page .pc-description-input::placeholder {
    color: var(--text-secondary, #94a3b8);
    opacity: 1;
}

body.artist-channel-page .ac-city-edit-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: min(100%, 320px);
    margin: 0 auto;
}

body.artist-channel-page.pc--edit-mode .ac-city-edit-wrap {
    margin-top: 4px;
}

body.artist-channel-page.pc--edit-mode .ac-city-edit-wrap .pc-field__input,
body.artist-channel-page.pc--edit-mode #acCityInput,
body.artist-channel-page.pc--edit-mode #acCountrySelect {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    margin-top: 0;
    padding: 8px 10px;
}

body.artist-channel-page .ac-country-select {
    width: 100%;
}

body.artist-channel-page .ac-city-search-btn {
    align-self: center;
}

body.artist-channel-page .ac-edit-section-hint {
    margin: 0 auto 10px;
    max-width: 36rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-secondary, #64748b);
    text-align: center;
}

.ac-channel-social-modal {
    width: min(520px, calc(100vw - 32px));
    max-height: min(88vh, 760px);
    overflow-y: auto;
}

.ac-channel-social-modal__linktree-hint {
    margin: 0 0 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-secondary, #64748b);
    text-align: left;
}

.ac-channel-social-modal__linktree-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 8px;
}

.ac-channel-social-modal__linktree-row .ac-channel-social-modal__field {
    flex: 1 1 220px;
    margin: 0;
}

.ac-channel-social-modal__section-title {
    margin: 18px 0 10px;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
    color: var(--text);
}

.ac-channel-social-modal__fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ac-channel-social-modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.ac-channel-social-modal__field-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
}

.ac-channel-social-modal__input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.92rem;
    background: var(--bg);
    color: var(--text);
}

.ac-channel-social-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 8px;
}

.ac-artist-city-picker {
    width: min(560px, calc(100vw - 32px));
    max-height: min(85vh, 680px);
    padding: 20px 22px 22px;
}

/* Mobile: pin city picker to top of visible viewport so it stays above the keyboard. */
@media (max-width: 900px) {
    .ac-artist-city-picker.ac-artist-city-picker--kb-anchored,
    .ac-artist-city-picker.ac-artist-city-picker--kb-anchored[open] {
        inset: auto;
        margin: 0;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translateX(-50%);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.ac-artist-city-picker__current {
    margin: 14px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent-purple, #468189) 10%, var(--bg));
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
}

.ac-artist-city-picker__form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 16px;
}

.ac-artist-city-picker__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ac-artist-city-picker__field-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
    color: var(--text-secondary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ac-artist-city-picker__row {
    display: grid;
    grid-template-columns: minmax(72px, 88px) 1fr;
    align-items: center;
    gap: 10px 12px;
}

.ac-artist-city-picker__row-label {
    font-size: 0.84rem;
    font-weight: 600;
    text-align: left;
    color: var(--text);
}

.ac-artist-city-picker__input,
.ac-artist-city-picker__select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
}

.ac-artist-city-picker__field-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.ac-artist-city-picker__field-row > .ac-artist-city-picker__input {
    flex: 1 1 auto;
    min-width: 0;
}

.ac-artist-city-picker__use-inline {
    flex: 0 0 auto;
    align-self: stretch;
    margin: 0;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    border: none;
    border-radius: 10px;
    background: #000000;
    color: #ffffff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.ac-artist-city-picker__use-inline[hidden] {
    display: none !important;
}

.ac-artist-city-picker__input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ac-artist-city-picker__hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-secondary, #64748b);
    text-align: left;
}

.ac-artist-city-picker__suggest {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    border-radius: 10px;
    overflow: hidden;
    max-height: 220px;
    overflow-y: auto;
}

.ac-artist-city-picker__option {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: var(--bg);
    color: var(--text);
    font-size: 0.92rem;
    text-align: left;
    cursor: pointer;
}

.ac-artist-city-picker__option-count {
    opacity: 0.65;
    font-size: 0.85em;
}

.ac-artist-city-picker__option:hover {
    background: color-mix(in srgb, var(--accent-blue, #77ACA2f) 10%, var(--bg));
}

.ac-artist-city-picker__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.ac-artist-city-picker__actions-secondary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.ac-artist-city-picker__actions-main {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.ac-artist-city-picker__delete {
    color: #b42318;
    border-color: #fecdca;
    background: #fff5f5;
}

:root[data-theme='dark'] .ac-artist-city-picker__delete {
    background: color-mix(in srgb, #b42318 12%, var(--bg));
}

body.artist-channel-page .ac-icon-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
}

body.artist-channel-page .ac-icon-link:active {
    opacity: 0.82;
}

.promoter-channel-page .pc-hero__meta-caption {
    margin: 2px 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #64748b;
}

:root[data-theme='dark'] .promoter-channel-page .pc-hero__meta {
    color: var(--text);
}

:root[data-theme='dark'] .promoter-channel-page .pc-hero__meta-caption {
    color: #94a3b8;
}

.promoter-channel-page .pc-hero__name,
.promoter-channel-page .pc-hero__subs {
    transition: max-height 0.22s ease, opacity 0.2s ease, margin 0.22s ease, padding 0.22s ease;
    overflow: hidden;
    max-height: 200px;
}

.promoter-channel-page .pc-head-block--compact .pc-hero__name,
.promoter-channel-page .pc-head-block--compact .pc-hero__subs {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.promoter-channel-page .pc-head-block--compact .pc-hero {
    min-height: 0;
    padding-bottom: 0;
}

.promoter-channel-page .pc-head-block--compact .pc-hero__row {
    margin-bottom: 4px;
}

.promoter-channel-page .pc-head-block--compact .pc-hero__avatar-wrap {
    z-index: 2;
}

/* Tabs strip: full-bleed row so a share control can align to the viewport edge. */
/* Main feed: draft cards read visually softer than published listings */
.event-card.event-card--v2.event-card--draft-dim {
    opacity: 0.6;
}

.promoter-channel-page .pc-channel-tabs-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 0 4px;
    padding: 0;
    box-sizing: border-box;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Shared user-follow CTAs (profiles, social lists, channel follower rows). */
.giggly-user-follow-btn,
.giggly-social-badge-btn,
.feed-follow-source__follow-btn {
    flex-shrink: 0;
    appearance: none;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
}

.giggly-user-follow-btn--follow,
.giggly-social-badge-btn:not(.giggly-user-follow-btn--unfollow):not(.giggly-social-badge-btn--accept),
.feed-follow-source__follow-btn:not(.giggly-user-follow-btn--unfollow) {
    background: var(--brand-teal, #77aca2);
    color: #fff;
    border-color: var(--brand-teal, #77aca2);
}

.giggly-user-follow-btn--unfollow,
.giggly-social-badge-btn.giggly-user-follow-btn--unfollow,
.feed-follow-source__follow-btn.giggly-user-follow-btn--unfollow {
    background: #6b7280;
    color: #fff;
    border-color: #6b7280;
}

.giggly-user-follow-btn:disabled,
.giggly-social-badge-btn:disabled,
.feed-follow-source__follow-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

:root[data-theme='dark'] .giggly-user-follow-btn--follow,
:root[data-theme='dark'] .giggly-social-badge-btn:not(.giggly-user-follow-btn--unfollow):not(.giggly-social-badge-btn--accept),
:root[data-theme='dark'] .feed-follow-source__follow-btn:not(.giggly-user-follow-btn--unfollow) {
    background: var(--brand-teal, #77aca2);
    border-color: var(--brand-teal, #77aca2);
    color: #fff;
}

:root[data-theme='dark'] .giggly-user-follow-btn--unfollow,
:root[data-theme='dark'] .giggly-social-badge-btn.giggly-user-follow-btn--unfollow,
:root[data-theme='dark'] .feed-follow-source__follow-btn.giggly-user-follow-btn--unfollow {
    background: #6b7280;
    color: #fff;
    border-color: #6b7280;
}

.giggly-past-event-card__venue-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.giggly-past-event-card__add-review-btn {
    flex-shrink: 0;
    appearance: none;
    border: 0;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #1d4ed8;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    margin-left: auto;
}

.giggly-past-event-card__review-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.giggly-past-event-card__review-head-main {
    flex: 1;
    min-width: 0;
}

.giggly-past-event-card__review-menu {
    position: relative;
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
}

.giggly-past-event-card__review-menu .pc-member-menu-btn {
    min-width: 36px;
    min-height: 32px;
    padding: 0 8px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    font-size: 1.2rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-channel-tabs-shell--bleed {
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
    min-height: 48px;
}

/* Scroll-column channel tabs: no viewport bleed (prevents clipped/duplicated tab row). */
.promoter-channel-page .pc-panels-scroll > .pc-channel-tabs-shell--bleed {
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
}

/* Artist/DJ channel: no viewport bleed — bleed caused 100vw horizontal shift hiding Info/Subscribers tabs. */
body.artist-channel-page .pc-panels-scroll > .pc-channel-tabs-shell {
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 12;
}

body.artist-channel-page .pc-channel-tabs-shell .promoter-channels-subnav {
    flex-wrap: nowrap;
    justify-content: stretch;
    width: 100%;
    max-width: 100%;
    gap: 0;
    overflow-x: visible;
    overflow-y: hidden;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

body.artist-channel-page .pc-channel-tabs-shell .promoter-channels-subnav__pill.ac-channel-tab,
body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    min-height: 52px;
    height: auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    border: none;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted-text, #6b7280);
    box-shadow: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab__icon {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab__text {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

/* Content-width underline (full flex cell looked like it ran under the next tab). */
body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab.promoter-channels-subnav__pill--active,
body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab[aria-selected='true'] {
    color: var(--text, #212529);
    background: transparent;
    border-bottom-color: transparent;
    font-weight: 700;
}

body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab.promoter-channels-subnav__pill--active::after,
body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab[aria-selected='true']::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 2.75rem;
    max-width: 70%;
    height: 2px;
    border-radius: 1px;
    background: #468189;
    pointer-events: none;
}

:root[data-theme='dark'] body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab.promoter-channels-subnav__pill--active,
:root[data-theme='dark'] body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab[aria-selected='true'] {
    color: var(--text, #e8e4ed);
    border-bottom-color: transparent;
}

:root[data-theme='dark'] body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab.promoter-channels-subnav__pill--active::after,
:root[data-theme='dark'] body.artist-channel-page .pc-channel-tabs-shell .ac-channel-tab[aria-selected='true']::after {
    background: #a78bfa;
}

body.artist-channel-page .pc-channel-tabs-shell .pc-tab-members[hidden] {
    display: none !important;
}

body.artist-channel-page .ac-wall-panel {
    padding: 0 0 24px;
}

/* display:grid / flex on wall surfaces must not beat [hidden]. */
body.artist-channel-page .ac-wall-grid[hidden],
body.artist-channel-page .ac-wall-past-feed[hidden] {
    display: none !important;
}

body.artist-channel-page .ac-wall-grid {
    margin-top: 4px;
}

body.artist-channel-page .ac-wall-panel--past-feed .ac-wall-past-feed {
    padding: 8px 12px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: none;
    margin: 0;
}

body.artist-channel-page .ac-wall-past-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

body.artist-channel-page .ac-wall-past-block > .feed-follow-source {
    margin: 0 0 8px;
    padding: 0 2px;
}

body.artist-channel-page .ac-wall-past-feed .giggly-past-event-card {
    scroll-margin-top: 8px;
}

body.artist-channel-page .ac-wall-past-feed .giggly-past-event-card__star-stack {
    margin-left: auto;
}

body.artist-channel-page .ac-wall-past-feed .giggly-past-event-card__star-stack .view-event-page__star-count {
    text-align: right;
    min-width: 1.25em;
}

:root[data-theme='dark'] .promoter-channel-page .pc-channel-tabs-shell {
    border-top-color: rgba(255, 255, 255, 0.12);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.promoter-channel-page .pc-channel-tabs-shell .promoter-channels-subnav {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 520px;
    margin: 6px auto 6px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.promoter-channel-page .pc-channel-tabs-shell .promoter-channels-subnav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.promoter-channel-page .pc-channel-share-wrap {
    flex: 0 0 auto;
    position: static;
    padding-right: max(4px, env(safe-area-inset-right, 0px));
    z-index: 2;
}

body.promoter-channel-page.pc--edit-mode .pc-channel-share-wrap {
    display: none;
}

.promoter-channel-page .pc-channel-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-channel-share-btn:active {
    opacity: 0.88;
}

.promoter-channel-page .pc-channel-share-btn__svg {
    display: block;
}

:root[data-theme='dark'] .promoter-channel-page .pc-channel-share-btn {
    background: transparent;
    color: #e8e4ed;
}

.promoter-channel-page .pc-subscribe-auth-dialog__body {
    margin: 0 0 16px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-secondary, #64748b);
}

.promoter-channel-page .pc-subscribe-auth-dialog__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.promoter-channel-page .pc-channel-tabs {
    flex-wrap: wrap;
}

.promoter-channel-page .pc-panel {
    padding-top: 0;
}

body.promoter-channels-page--embed .promoter-channels-page__subtab-empty--below-tabs {
    margin: 0 16px 6px;
    text-align: center;
}

.promoter-channel-page .pc-desc-bubble {
    --pc-info-content-width: calc(100% - 32px);
    --pc-info-content-inner-width: calc(var(--pc-info-content-width) - 32px);
    width: var(--pc-info-content-width);
    max-width: var(--pc-info-content-width);
    margin: 0 auto 20px;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(84, 87, 255, 0.1);
    border: 1px solid rgba(84, 87, 255, 0.18);
}

.promoter-channel-page .pc-description {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

.promoter-channel-page .pc-social-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: var(--pc-info-content-inner-width, calc(100% - 64px));
    max-width: var(--pc-info-content-inner-width, calc(100% - 64px));
    margin: 0 auto 18px;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
}

.promoter-channel-page .pc-social-row[data-count='0']:not([data-pc-social-mode='edit']) {
    display: none;
}

.promoter-channel-page .pc-social-row[data-pc-social-mode='edit']:not([hidden]) {
    display: flex;
}

.promoter-channel-page .pc-social-slot {
    position: relative;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    background: color-mix(in srgb, var(--text) 5%, var(--bg));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 5px 4px 4px;
}

.promoter-channel-page .pc-social-slot--empty {
    opacity: 0.34;
}

.promoter-channel-page .pc-social-slot__edit {
    position: static;
    flex-shrink: 0;
    margin: 0 0 2px;
    padding: 2px 6px;
    border: none;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f172a;
    cursor: pointer;
    line-height: 1.15;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-social-slot__disc {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
    pointer-events: none;
    color: #334155;
}

.promoter-channel-page .pc-social-slot__disc svg {
    width: 34px;
    height: 34px;
}

.promoter-channel-page .pc-social-slot--filled .pc-social-btn {
    flex: 1 1 auto;
    min-height: 0;
    width: 44px;
    max-width: 44px;
    height: 44px;
    max-height: 44px;
    margin: auto 0 2px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.promoter-channel-page .pc-social-slot--filled .pc-social-btn svg {
    width: 28px;
    height: 28px;
}

.promoter-channel-page .pc-social-row[data-count='1'] {
    justify-content: center;
}

.promoter-channel-page .pc-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 5%, var(--bg));
    color: #334155;
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: transform 0.12s ease, background 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-social-btn svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.promoter-channel-page .pc-social-btn:active {
    transform: scale(0.96);
}

:root[data-theme='dark'] .promoter-channel-page.pc--edit-mode .pc-social-slot {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

:root[data-theme='dark'] .promoter-channel-page.pc--edit-mode .pc-social-slot__edit {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

:root[data-theme='dark'] .promoter-channel-page.pc--edit-mode .pc-social-slot__disc,
:root[data-theme='dark'] .promoter-channel-page.pc--edit-mode .pc-social-slot--filled .pc-social-btn {
    color: #fff;
}

:root[data-theme='dark'] .promoter-channel-page .pc-social-row {
    background: transparent;
}

:root[data-theme='dark'] .promoter-channel-page .pc-social-btn {
    background: color-mix(in srgb, var(--text) 8%, var(--bg));
    color: #e2e8f0;
    border-color: color-mix(in srgb, var(--text) 14%, transparent);
}

.promoter-channel-page .pc-venue-address-block {
    padding: 0 16px 4px;
    box-sizing: border-box;
    max-width: 100%;
}

.promoter-channel-page .pc-venue-address-block .pc-field {
    margin-bottom: 10px;
}

/*
 * Address + capacity values: body-style copy (not heavy field chrome); overrides .pc-field__value 700.
 * Labels: same muted slate as promoter channel #pcFieldLocation / #pcFieldVenueCapacity headers (#9ca3af).
 */
.promoter-channel-page .pc-venue-address-block .pc-field__label--sentence,
.promoter-channel-page .pc-venue-address-block #pcFieldVenueCapacity .pc-field__label {
    font-weight: 600;
    color: #9ca3af;
}

.promoter-channel-page .pc-venue-address-block .pc-field__value {
    font-weight: 400;
    color: var(--text, #212529);
}

:root[data-theme='dark'] .promoter-channel-page .pc-venue-address-block .pc-field__label--sentence,
:root[data-theme='dark'] .promoter-channel-page .pc-venue-address-block #pcFieldVenueCapacity .pc-field__label {
    color: var(--text-secondary, #b8b0c4);
}

:root[data-theme='dark'] .promoter-channel-page .pc-venue-address-block .pc-field__value {
    color: var(--text, #e8e4ed);
}

.promoter-channel-page .pc-venue-map-wrap {
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.promoter-channel-page .pc-venue-map-stage {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.promoter-channel-page .pc-venue-map-stage:has(#pcVenueMapExpandBtn:not([hidden])),
.promoter-channel-page .pc-venue-map-stage:has(.pc-venue-map-leaflet-pane:not([hidden])),
.promoter-channel-page .pc-venue-map-stage:has(.pc-venue-map-frame:not([hidden])) {
    min-height: 200px;
}

.promoter-channel-page .pc-venue-map-address-overlay {
    display: none;
    position: absolute;
    left: max(10px, env(safe-area-inset-left, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    max-width: min(92%, 320px);
    padding: 8px 11px;
    box-sizing: border-box;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
    text-align: left;
    word-break: break-word;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    z-index: 2;
}

:root[data-theme='dark'] .promoter-channel-page .pc-venue-map-address-overlay {
    color: #f9fafb;
    background: rgba(26, 15, 46, 0.92);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.promoter-channel-page .pc-venue-map-address-overlay:not([hidden]) {
    display: block;
}

.promoter-channel-page .pc-venue-map-leaflet-pane {
    display: none;
    width: 100%;
    max-width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
    z-index: 2;
}

.promoter-channel-page .pc-venue-map-leaflet-pane:not([hidden]) {
    display: block;
}

.promoter-channel-page .pc-venue-map-leaflet-pane .leaflet-container {
    font: inherit;
}

.promoter-channel-page .pc-venue-map-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 200px;
    border: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
}

.promoter-channel-page .pc-venue-map-frame[hidden] {
    display: none !important;
}

:root[data-theme='dark'] .promoter-channel-page .pc-venue-map-frame {
    background: rgba(255, 255, 255, 0.06);
}

/**
 * Venue channel: device landscape = map only (full screen, venue pin from embed URL).
 * JS sets `html.pc--venue-channel-map-landscape` and temporarily un-hides #pcPanelInfo.
 */
html.pc--venue-channel-map-landscape,
html.pc--venue-channel-map-landscape body.venue-channel-page {
    height: 100%;
    overflow: hidden;
}

html.pc--venue-channel-map-landscape body.venue-channel-page .pc-topbar,
html.pc--venue-channel-map-landscape body.venue-channel-page .pc-body .pc-head-block,
html.pc--venue-channel-map-landscape body.venue-channel-page .pc-panels-scroll > .pc-channel-tabs-shell {
    display: none !important;
}

html.pc--venue-channel-map-landscape body.venue-channel-page .pc-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    min-height: 100dvh;
    min-height: 100svh;
    min-height: -webkit-fill-available;
    max-height: none;
    max-width: none !important;
    width: 100% !important;
    padding: 0;
    margin: 0;
}

html.pc--venue-channel-map-landscape body.venue-channel-page #pcBody {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: 100% !important;
    max-width: none !important;
    padding: 0;
    margin: 0;
}

html.pc--venue-channel-map-landscape body.venue-channel-page .pc-panels-scroll {
    flex: 1 1 0%;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

html.pc--venue-channel-map-landscape body.venue-channel-page #pcPanelEvents,
html.pc--venue-channel-map-landscape body.venue-channel-page #pcPanelMembers {
    display: none !important;
}

html.pc--venue-channel-map-landscape body.venue-channel-page #pcPanelInfo {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8000;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
    /* Stretch between insets (reliable full viewport); height:100dvh alone can under-fill with flex + iframe. */
    height: auto;
    min-height: 0;
    max-height: none;
    background: transparent;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
}

/* Map-landscape: only address/map block (social + description etc. hidden). */
html.pc--venue-channel-map-landscape body.venue-channel-page #pcPanelInfo > *:not(#pcVenueAddressBlock) {
    display: none !important;
}

/* Map fills viewport; in-flow address hidden (shown on frosted overlay inside map stage). */
html.pc--venue-channel-map-landscape body.venue-channel-page #pcVenueAddressBlock #pcFieldVenueCapacity {
    display: none !important;
}

html.pc--venue-channel-map-landscape body.venue-channel-page #pcVenueAddressTextSection {
    display: none !important;
}

html.pc--venue-channel-map-landscape body.venue-channel-page #pcVenueAddressBlock {
    flex: 1 1 0%;
    min-height: 0;
    height: 100%;
    width: 100%;
    max-width: none !important;
    display: flex !important;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

html.pc--venue-channel-map-landscape body.venue-channel-page .pc-venue-map-wrap {
    flex: 1 1 0%;
    min-height: 0;
    height: 100%;
    align-self: stretch;
    width: 100%;
    max-width: none !important;
    margin: 0;
    display: flex;
    flex-direction: column;
}

html.pc--venue-channel-map-landscape body.venue-channel-page .pc-venue-map-stage {
    position: relative;
    flex: 1 1 0%;
    min-height: 0;
    height: 100%;
    align-self: stretch;
    width: 100%;
    max-width: none !important;
    overflow: hidden;
}

html.pc--venue-channel-map-landscape body.venue-channel-page .pc-venue-map-frame {
    position: absolute !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block !important;
    flex: none !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    border-radius: 0;
    border: 0;
}

html.pc--venue-channel-map-landscape body.venue-channel-page .pc-venue-map-frame[hidden] {
    display: none !important;
}

/* Landscape + coords: Leaflet + blue dot (same as venue channels directory); iframe hidden by JS. */
html.pc--venue-channel-map-landscape body.venue-channel-page .pc-venue-map-leaflet-pane {
    position: absolute !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block !important;
    flex: none !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    border-radius: 0;
    z-index: 3;
}

html.pc--venue-channel-map-landscape body.venue-channel-page .pc-venue-map-leaflet-pane[hidden] {
    display: none !important;
}

html.pc--venue-channel-map-landscape body.venue-channel-page .pc-venue-map-address-overlay {
    left: max(10px, env(safe-area-inset-left, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    top: auto;
    max-width: min(78%, 320px);
    padding: 8px 11px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
    color: #111827;
    z-index: 4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Portrait expand-map mode reuses landscape map-only layout (scoped to venue-channel body — avoids hiding events.html Bar A/B if a class leaks onto html). */
html.pc--venue-channel-map-expanded body.venue-channel-page .pc-topbar,
html.pc--venue-channel-map-expanded body.venue-channel-page .pc-body .pc-head-block,
html.pc--venue-channel-map-expanded body.venue-channel-page .pc-panels-scroll > .pc-channel-tabs-shell,
html.pc--venue-channel-map-expanded body.venue-channel-page .app-header,
html.pc--venue-channel-map-expanded body.venue-channel-page .filter-tabs {
    display: none !important;
}

html.pc--venue-channel-map-expanded body.venue-channel-page .pc-main,
html.pc--venue-channel-map-expanded body.venue-channel-page #pcBody,
html.pc--venue-channel-map-expanded body.venue-channel-page .pc-panels-scroll,
html.pc--venue-channel-map-expanded body.venue-channel-page #pcPanelInfo,
html.pc--venue-channel-map-expanded body.venue-channel-page #pcVenueAddressBlock,
html.pc--venue-channel-map-expanded body.venue-channel-page .pc-venue-map-wrap,
html.pc--venue-channel-map-expanded body.venue-channel-page .pc-venue-map-stage {
    height: 100% !important;
    min-height: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

html.pc--venue-channel-map-expanded body.venue-channel-page #pcPanelInfo {
    position: fixed;
    inset: 0;
    z-index: 8000;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

html.pc--venue-channel-map-expanded body.venue-channel-page #pcPanelInfo > *:not(#pcVenueAddressBlock) {
    display: none !important;
}

/**
 * Venue Channels directory (/venues.html + in-app #venueChannelsEmbedRoot):
 * device landscape → full-viewport map (Leaflet), pins for current list rows, no address overlay.
 */
.venue-channels-landscape-map-host[hidden] {
    display: none !important;
}

html.pc--venues-channels-map-landscape:has(body.venues-channels-directory-page) {
    height: 100%;
    overflow: hidden;
}

/* SPA shell: promoter-channels-page is the directory route body class */
html.pc--venues-channels-map-landscape:has(body.promoter-channels-page) {
    height: 100%;
    overflow: hidden;
}

html.pc--venues-channels-map-landscape body.venues-channels-directory-page {
    height: 100%;
    overflow: hidden;
}

html.pc--venues-channels-map-landscape body.promoter-channels-page {
    height: 100%;
    overflow: hidden;
}

html.pc--venues-channels-map-landscape:has(#eventsApp[data-venue-channels-active='1']) {
    height: 100%;
    overflow: hidden;
}

html.pc--venues-channels-map-landscape body.app-mode:has(#eventsApp[data-venue-channels-active='1']) {
    height: 100%;
    overflow: hidden;
}

html.pc--venues-channels-map-landscape body.venues-channels-directory-page .promoter-channels-page__intro,
html.pc--venues-channels-map-landscape body.venues-channels-directory-page .promoter-channels-page__subnav-sticky,
html.pc--venues-channels-map-landscape body.venues-channels-directory-page .promoter-channels-page__sticky-head,
html.pc--venues-channels-map-landscape body.venues-channels-directory-page .promoter-channels-page__scroll-body,
html.pc--venues-channels-map-landscape #venueChannelsEmbedRoot .promoter-channels-page__intro,
html.pc--venues-channels-map-landscape #venueChannelsEmbedRoot .promoter-channels-page__subnav-sticky,
html.pc--venues-channels-map-landscape #venueChannelsEmbedRoot .promoter-channels-page__sticky-head,
html.pc--venues-channels-map-landscape #venueChannelsEmbedRoot .promoter-channels-page__scroll-body,
html.pc--venues-channels-map-landscape body.promoter-channels-page #directorySection .promoter-channels-page__intro,
html.pc--venues-channels-map-landscape body.promoter-channels-page #directorySection .promoter-channels-page__subnav-sticky,
html.pc--venues-channels-map-landscape body.promoter-channels-page #directorySection .promoter-channels-page__sticky-head,
html.pc--venues-channels-map-landscape body.promoter-channels-page #directorySection .promoter-channels-page__scroll-body {
    display: none !important;
}

html.pc--venues-channels-map-landscape body.venues-channels-directory-page .promoter-channels-page__main,
html.pc--venues-channels-map-landscape #venueChannelsEmbedRoot .promoter-channels-page__main,
html.pc--venues-channels-map-landscape body.promoter-channels-page #directorySection .promoter-channels-page__main {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

html.pc--venues-channels-map-landscape body.venues-channels-directory-page .venue-channels-landscape-map-host:not([hidden]),
html.pc--venues-channels-map-landscape #venueChannelsEmbedRoot .venue-channels-landscape-map-host:not([hidden]),
html.pc--venues-channels-map-landscape body.promoter-channels-page .venue-channels-landscape-map-host:not([hidden]) {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 100001;
    margin: 0;
    /* Edge-to-edge on phone: do not inset with safe-area (that letterboxed the map on 3 sides). */
    padding: 0;
    box-sizing: border-box;
    background: var(--bg, #fff);
}

html.pc--venues-channels-map-landscape .venue-channels-landscape-map {
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    border-radius: 0;
}

html.pc--venues-channels-map-landscape .venue-channels-landscape-map .leaflet-container {
    font: inherit;
    background: var(--bg, #fff);
}

/* In-app Venues embed: landscape map fills the viewport; hide main app chrome only while Venues is active. */
html.pc--venues-channels-map-landscape body.app-mode #eventsApp[data-venue-channels-active='1'] header.app-header,
html.pc--venues-channels-map-landscape body.app-mode #eventsApp[data-venue-channels-active='1'] .filter-tabs,
html.pc--venues-channels-map-landscape body.app-mode #eventsApp[data-venue-channels-active='1'] > .controls-bar,
html.pc--venues-channels-map-landscape body.app-mode #eventsApp[data-venue-channels-active='1'] > .bottom-bar,
html.pc--venues-channels-map-landscape body.app-mode #eventsApp[data-venue-channels-active='1'] > #feedSearchNoResultsBanner,
html.pc--venues-channels-map-landscape body.app-mode #eventsApp[data-venue-channels-active='1'] #gigglyPromoterSubInviteStrip,
html.pc--venues-channels-map-landscape body.app-mode #eventsApp[data-venue-channels-active='1'] > #promoterChannelsSearchNoResultsBanner,
html.pc--venues-channels-map-landscape body.app-mode #eventsApp[data-venue-channels-active='1'] > #venueChannelsSearchNoResultsBanner,
html.pc--venues-channels-map-landscape body.app-mode #eventsApp[data-venue-channels-active='1'] > #filterPinnedCategoryPopover {
    display: none !important;
}

html.pc--venues-channels-map-landscape body.app-mode #eventsApp[data-venue-channels-active='1'] #venueChannelsIframeHost.tag-hub-iframe-host {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    z-index: 100000 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

html.pc--venues-channels-map-landscape body.app-mode #eventsApp[data-venue-channels-active='1'] #venueChannelsControlsDock {
    display: none !important;
}

/* Standalone /venues.html + in-app embed: hide directory footer in landscape map mode */
html.pc--venues-channels-map-landscape body.venues-channels-directory-page .promoter-channels-page__venue-footer,
html.pc--venues-channels-map-landscape #venueChannelsEmbedRoot .promoter-channels-page__promoter-footer,
html.pc--venues-channels-map-landscape body.promoter-channels-page #directorySection .promoter-channels-page__venue-footer {
    display: none !important;
}

html.pc--venues-channels-map-landscape body.venues-channels-directory-page .promoter-channels-page__shell,
html.pc--venues-channels-map-landscape body.promoter-channels-page #directorySection .promoter-channels-page__shell {
    min-height: 100dvh;
    height: 100%;
}

/* Festival Pro venues tab — manual map fills screen; landscape hides chrome entirely. */
html.pc--venues-channels-map-landscape:has(body.festival-pro-page.fp--venues-map-active) {
    height: 100%;
    overflow: hidden;
}

html.pc--venues-channels-map-landscape body.festival-pro-page.fp--venues-map-active {
    height: 100%;
    overflow: hidden;
}

html.pc--venues-channels-map-landscape body.festival-pro-page.fp--venues-map-active .festival-pro-topbar,
html.pc--venues-channels-map-landscape body.festival-pro-page.fp--venues-map-active .festival-pro-subtabs,
html.pc--venues-channels-map-landscape body.festival-pro-page.fp--venues-map-active .festival-pro-main,
html.pc--venues-channels-map-landscape body.festival-pro-page.fp--venues-map-active .festival-pro-edit-fab,
html.pc--venues-channels-map-landscape body.festival-pro-page.fp--venues-map-active .festival-pro-footer {
    display: none !important;
}

html.pc--venues-channels-map-landscape body.festival-pro-page.fp--venues-map-active .venue-channels-landscape-map-host:not([hidden]) {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 100001;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    background: var(--bg, #fff);
}

html.pc--venues-channels-map-landscape body.festival-pro-page.fp--venues-map-active .festival-pro-controls {
    display: none !important;
}

html.pc--venues-channels-map-landscape body.festival-pro-page.fp--venues-map-active.fp--venues-map-landscape .festival-pro-controls {
    display: none !important;
}

html.pc--venues-channels-map-landscape body.festival-pro-page.fp--venues-map-active .venue-channels-landscape-map {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 100%;
}

html.pc--venues-channels-map-landscape body.festival-pro-page.fp--venues-map-active .venue-channels-landscape-map .leaflet-container {
    width: 100% !important;
    height: 100% !important;
    font: inherit;
}

/* Venue map: pin + optional name label (names from zoom ≥ 12; see venue-channels-directory-map.js). */
.vc-venue-marker-wrap.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}

.vc-venue-marker {
    position: relative;
    width: 248px;
    height: 32px;
    box-sizing: border-box;
    cursor: pointer;
}

.vc-venue-marker__pin {
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.vc-venue-marker__lbl {
    position: absolute;
    left: 20px;
    bottom: 2px;
    right: 0;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #0f172a;
    text-shadow:
        0 0 4px #fff,
        0 0 8px #fff,
        0 1px 2px rgba(255, 255, 255, 0.9);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.15s ease,
        visibility 0.15s ease;
    pointer-events: none;
}

:root[data-theme='dark'] .vc-venue-marker__lbl {
    color: #f8fafc;
    text-shadow:
        0 0 6px #000,
        0 0 10px #000,
        0 1px 2px rgba(0, 0, 0, 0.8);
}

.vc-venue-map-pane.vc-venue-map--show-names .vc-venue-marker__lbl {
    opacity: 1;
    visibility: visible;
}

.promoter-channel-page .pc-field {
    margin-bottom: 20px;
}

.promoter-channel-page .pc-field__label {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary, #64748b);
}

body.artist-channel-page .ac-hero-contacts .pc-field__label,
body.artist-channel-page .ac-hero-contact-label {
    margin: 0 !important;
    line-height: 1.15 !important;
}

.promoter-channel-page .pc-field__label--sentence {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.92rem;
    font-weight: 600;
    color: #374151;
}

:root[data-theme='dark'] .promoter-channel-page .pc-field__label--sentence {
    color: #e5e7eb;
}

.promoter-channel-page #pcFieldLocation .pc-field__label,
.promoter-channel-page #pcFieldVenueCapacity .pc-field__label,
.promoter-channel-page #pcFieldGenres .pc-field__label,
.promoter-channel-page #pcFieldCategories .pc-field__label,
.promoter-channel-page #pcFieldCategoriesEdit .pc-field__label,
.promoter-channel-page .pc-edit-settings .pc-field__label {
    color: #9ca3af;
}

.promoter-channel-page .pc-field__value {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.promoter-channel-page .pc-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.promoter-channel-page .pc-pill--editable {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-right: 6px;
}

.promoter-channel-page .pc-pill--placeholder {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0.55;
    border: 1px dashed currentColor;
}

.promoter-channel-page .pc-pill__text {
    display: inline-block;
}

.promoter-channel-page .pc-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--pc-pill-border, #c4b5fd);
    background: var(--pc-pill-bg, #e8f2f0);
    color: var(--pc-pill-fg, #4c1d95);
}

/* Edit + dark: inline hsl() on pills can leave dark text on dark tint — force readable label. */
:root[data-theme='dark'] .promoter-channel-page.pc--edit-mode .pc-pill--genre,
:root[data-theme='dark'] .promoter-channel-page.pc--edit-mode .pc-pill--genre .pc-pill__text,
:root[data-theme='dark'] .promoter-channel-page.pc--edit-mode .pc-pill--category,
:root[data-theme='dark'] .promoter-channel-page.pc--edit-mode .pc-pill--category .pc-pill__text {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

:root[data-theme='dark'] .promoter-channel-page.pc--edit-mode .pc-pill--genre .pc-pill__remove,
:root[data-theme='dark'] .promoter-channel-page.pc--edit-mode .pc-pill--category .pc-pill__remove {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

:root[data-theme='dark'] .promoter-channel-page.pc--edit-mode .pc-add-pill-btn {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.42);
}

.promoter-channel-page .pc-events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

.promoter-channel-page .pc-events-list > .event-card.event-card--v2 {
    margin-bottom: 0;
}

.promoter-channel-page .pc-promoter-feed-card {
    -webkit-tap-highlight-color: transparent;
    cursor: default;
}

.promoter-channel-page .pc-promoter-feed-card a,
.promoter-channel-page .pc-promoter-feed-card button {
    cursor: pointer;
}

.promoter-channel-page .pc-announce-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}

.promoter-channel-page .pc-announce-toolbar__spacer {
    flex: 1;
    min-width: 0;
}

.promoter-channel-page .pc-events-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 0 10px;
    position: sticky;
    top: 0;
    z-index: 8;
    padding: 0 0 8px;
    margin-top: 0;
    background: var(--bg, #fff);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--text, #212529) 8%, transparent);
    /* Instant hide/show while scrolling — animated transform caused visible flicker with the last card. */
    transition: none;
}

.promoter-channel-page .pc-events-toolbar.pc-events-toolbar--scroll-away {
    transform: translateY(calc(-100% - 6px));
    opacity: 0;
    pointer-events: none;
}

:root[data-theme='dark'] .promoter-channel-page .pc-events-toolbar {
    background: var(--bg, #1a0f2e);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.promoter-channel-page .pc-events-toolbar__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    /* Extra inset so the Add event pill’s right border is not clipped by .pc-panels-scroll overflow-x. */
    padding-right: max(10px, calc(4px + env(safe-area-inset-right, 0px)));
}

.promoter-channel-page .pc-events-toolbar__left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
}

.promoter-channel-page .pc-events-toolbar__inner > .pc-events-toolbar__spacer {
    display: none;
}

.promoter-channel-page .pc-members-invite-bar__inner > .pc-events-toolbar__spacer {
    flex: 1;
    min-width: 0;
}

.promoter-channel-page .pc-add-event-split,
.promoter-channel-page .pc-add-event-menu-anchor {
    flex-shrink: 0;
}

.promoter-channel-page .pc-add-event-split {
    margin-left: auto;
    /* Inset from the scroll clip edge so the pill’s right border stays visible. */
    margin-right: 14px;
    transform: translateX(-8px);
}

.promoter-channel-page .pc-events-show-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    white-space: nowrap;
}

.promoter-channel-page .pc-events-show-trigger {
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: min(200px, 40vw);
    min-width: 0;
    min-height: 30px;
    padding: 5px 12px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-events-show-trigger::after {
    content: '';
    flex: 0 0 auto;
    width: 0;
    height: 0;
    margin-left: 2px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #111827;
    opacity: 0.55;
}

.promoter-channel-page .pc-events-add-btn {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 5px 12px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    background: #ffffff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] .promoter-channel-page .pc-events-show-trigger {
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    border-color: rgba(255, 255, 255, 0.2);
}

:root[data-theme='dark'] .promoter-channel-page .pc-events-show-trigger::after {
    border-top-color: #111827;
}

:root[data-theme='dark'] .promoter-channel-page .pc-events-add-btn {
    background: rgba(255, 255, 255, 0.96);
    color: #2563eb;
    border-color: rgba(96, 165, 250, 0.45);
}

.promoter-channel-page .pc-events-show-dialog {
    width: min(360px, calc(100vw - 32px));
    max-height: min(420px, 85dvh);
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 16px;
    background: var(--bg, #fff);
    color: var(--text, #212529);
    box-shadow: 0 16px 48px color-mix(in srgb, var(--text, #212529) 18%, transparent);
}

.promoter-channel-page .pc-events-show-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.promoter-channel-page .pc-events-show-dialog__inner {
    padding: 16px 18px 14px;
    box-sizing: border-box;
}

.promoter-channel-page .pc-events-show-dialog__list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promoter-channel-page .pc-events-show-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--text, #212529) 12%, transparent);
    background: color-mix(in srgb, var(--bg, #fff) 92%, var(--text, #212529) 4%);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-events-show-row.is-active {
    border-color: var(--accent-purple, #468189);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-purple, #468189) 35%, transparent);
}

.promoter-channel-page .pc-events-show-row__state {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary, #64748b);
    flex-shrink: 0;
}

.promoter-channel-page .pc-events-show-row.is-active .pc-events-show-row__state {
    color: var(--accent-purple, #468189);
}

.promoter-channel-page .pc-events-show-dialog__note {
    margin: 10px 0 0;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--text-secondary, #64748b);
}

.promoter-channel-page .pc-add-event-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100lvh;
    max-height: 100vh;
    max-height: 100lvh;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.promoter-channel-page .pc-add-event-dialog:not([open]) {
    pointer-events: none !important;
}

.promoter-channel-page .pc-add-event-dialog::backdrop {
    background: rgba(15, 23, 42, 0.5);
}

.promoter-channel-page .pc-add-event-dialog__inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
    background: var(--bg, #fff);
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.promoter-channel-page .pc-add-event-dialog__inner.pc-add-event-inner--entered {
    transform: translateY(0);
}

html.giggly-pc-add-event-embed-kb-lock .promoter-channel-page .pc-add-event-dialog__inner,
html.giggly-pc-add-event-embed-kb-lock body.venue-channel-page .pc-add-event-dialog__inner {
    flex-shrink: 0;
}

.promoter-channel-page .pc-add-event-dialog__iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: var(--bg, #fff);
}

.promoter-channel-page .pc-promoter-feed-card--edit-menu {
    position: relative;
}

.promoter-channel-page .pc-channel-event-card__menu-wrap {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 4;
}

.promoter-channel-page .pc-promoter-feed-card__menu-footer-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: 4px;
    min-height: 0;
}

.promoter-channel-page .pc-promoter-feed-card__menu-footer-row .pc-channel-event-card__menu-wrap {
    position: relative;
    right: auto;
    bottom: auto;
    top: auto;
    left: auto;
}

.promoter-channel-page .pc-promoter-feed-card__bottom-cta {
    margin: 8px -16px -16px;
    width: calc(100% + 32px);
    min-height: 40px;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    position: relative;
    background: color-mix(in srgb, var(--text) 7%, var(--bg));
    border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

.promoter-channel-page .pc-promoter-feed-card__bottom-cta-btn {
    appearance: none;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-secondary, #475569);
    font-size: var(--event-v2-footer-chip-font-size, 12px);
    font-weight: 600;
    line-height: 1;
    padding: 12px 0;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-promoter-feed-card__bottom-cta-btn:active {
    opacity: 0.9;
}

.promoter-channel-page .pc-promoter-feed-card__bottom-cta-menu {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.promoter-channel-page .pc-promoter-feed-card__bottom-cta-menu .pc-channel-event-card__menu-wrap {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    top: auto;
}

.promoter-channel-page .pc-channel-event-card__menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(8px);
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.promoter-channel-page .pc-channel-event-card__menu-pop:not(.pc-channel-event-card__menu-pop--overlay) {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    min-width: 200px;
    padding: 6px 0;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    background: var(--bg);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--text) 12%, transparent);
}

/* Body-portaled overlay: center in the viewport. Prefer fixed + margin:auto (no transform)
   so Safari/iOS still allow plain <a href> Edit navigation. */
.pc-channel-event-card__menu-shell {
    position: fixed;
    inset: 0;
    z-index: 2147483500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    pointer-events: none;
}

.pc-channel-event-card__menu-shell[hidden] {
    display: none !important;
}

.pc-channel-event-card__menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483490;
    margin: 0;
    padding: 0;
    border: 0;
    background: color-mix(in srgb, #000 42%, transparent);
    cursor: pointer;
}

.pc-channel-event-card__menu-backdrop[hidden] {
    display: none !important;
}

.promoter-channel-page .pc-channel-event-card__menu-pop.pc-channel-event-card__menu-pop--overlay,
.venue-channel-page .pc-channel-event-card__menu-pop.pc-channel-event-card__menu-pop--overlay,
.artist-channel-page .pc-channel-event-card__menu-pop.pc-channel-event-card__menu-pop--overlay,
body .pc-channel-event-card__menu-pop.pc-channel-event-card__menu-pop--overlay,
.pc-channel-event-card__menu-shell .pc-channel-event-card__menu-pop--overlay {
    position: fixed;
    inset: max(12px, env(safe-area-inset-top, 0px))
        12px
        max(12px, env(safe-area-inset-bottom, 0px))
        12px;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    left: 12px;
    transform: none;
    margin: auto;
    width: min(460px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    min-width: min(280px, calc(100vw - 24px));
    height: fit-content;
    max-height: min(80vh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 52px 0 8px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    background: var(--bg);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--text) 12%, transparent);
    z-index: 2147483501;
    pointer-events: auto;
}

.venue-channel-page dialog.pc-channel-event-card__menu-pop--modal {
    position: fixed;
    inset: unset;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: min(460px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    min-width: 0;
    padding: 52px 0 8px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    background: var(--bg);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--text) 12%, transparent);
}

.venue-channel-page .pc-channel-event-card__menu-close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.venue-channel-page .pc-channel-event-card__menu-close:hover {
    background: color-mix(in srgb, var(--text) 8%, transparent);
}

.venue-channel-page .pc-channel-event-card__menu-dialog-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.venue-channel-page dialog.pc-channel-event-card__menu-pop--modal::backdrop {
    background: color-mix(in srgb, #000 42%, transparent);
}

.promoter-channel-page .pc-channel-event-card__menu-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 12px 52px 12px 16px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.promoter-channel-page .pc-channel-event-card__menu-item:hover {
    background: color-mix(in srgb, var(--text) 6%, transparent);
}

.promoter-channel-page .pc-channel-event-card__menu-item--danger {
    color: #b91c1c;
}

.promoter-channel-page .event-card-v2__flyer--draft .event-card-v2__flyer-img {
    opacity: 0.3;
}

.promoter-channel-page .event-card-v2__flyer--draft.event-card-v2__flyer--empty {
    opacity: 1;
}

.promoter-channel-page .event-card-v2__flyer {
    position: relative;
}

.promoter-channel-page .event-card-v2__flyer-draft-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.promoter-channel-page .event-card-v2__flyer-draft-ribbon {
    display: block;
    padding: 10px 16px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    /* Same maroon as .event-card-v2__draft-no-flyer-badge ("Draft Event") */
    background: #800000;
    border-radius: 8px;
    box-shadow: 0 4px 18px color-mix(in srgb, #000 30%, transparent);
    text-align: center;
}

.promoter-channel-page .pc-announce-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.promoter-channel-page .pc-stars-list {
    margin: 0;
    padding: 0 0 0 1.1rem;
    max-height: min(50dvh, 320px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.promoter-channel-page .pc-stars-list li {
    margin: 0.65rem 0;
}

.promoter-channel-page .pc-stars-list a.view-event-page__stars-modal-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.promoter-channel-page .pc-stars-list a.view-event-page__stars-modal-link:hover,
.promoter-channel-page .pc-stars-list a.view-event-page__stars-modal-link:focus-visible {
    color: var(--accent-pink, #77ACA2);
    text-decoration: underline;
}

.promoter-channel-page .pc-set-times-pre {
    margin: 0;
    padding: 12px;
    max-height: min(60dvh, 420px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.45;
    border-radius: 12px;
    background: color-mix(in srgb, var(--text) 5%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}

.promoter-channel-page .pc-announce-form__label {
    display: block;
    margin: 12px 0 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary, #64748b);
}

.promoter-channel-page .pc-announce-form__input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.promoter-channel-page .pc-announce-wysiwyg {
    min-height: 180px;
    max-height: min(45dvh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    background: color-mix(in srgb, var(--text) 3%, var(--bg));
    outline: none;
    font-size: 0.98rem;
    line-height: 1.5;
}

.promoter-channel-page .pc-announce-wysiwyg:empty:before {
    content: 'Write your announcement. You can paste links and use bold or headings from the browser.';
    color: var(--text-secondary, #64748b);
    pointer-events: none;
}

.promoter-channel-page .pc-announce-card {
    margin: 0 0 16px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    background: color-mix(in srgb, var(--text) 4%, var(--bg));
}

.promoter-channel-page .pc-announce-card__header-img {
    display: block;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.promoter-channel-page .pc-announce-card__body {
    padding: 14px 16px 16px;
}

.promoter-channel-page .pc-announce-card__title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 800;
}

.promoter-channel-page .pc-announce-card__content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
}

.promoter-channel-page .pc-social-url-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147482989;
    background: rgba(15, 23, 42, 0.22);
}

.promoter-channel-page .pc-social-url-popover {
    position: fixed;
    z-index: 2147483000;
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, calc(100vw - 36px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-sizing: border-box;
}

.promoter-channel-page .pc-social-url-popover__inner {
    display: flex;
    flex-direction: column;
    padding: 16px max(18px, env(safe-area-inset-left)) 14px max(18px, env(safe-area-inset-right));
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.15);
    box-sizing: border-box;
}

.promoter-channel-page .pc-social-url-popover__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 14px;
    gap: 12px;
}

.promoter-channel-page .pc-social-url-popover__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-social-url-popover__icon-btn:active {
    opacity: 0.88;
}

.promoter-channel-page .pc-social-url-popover__icon-img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    pointer-events: none;
}

.promoter-channel-page .pc-social-url-field {
    text-transform: lowercase;
}

.promoter-channel-page .pc-dialog {
    border: none;
    border-radius: 16px;
    padding: 0;
    max-width: min(520px, 94vw);
    background: var(--bg);
    color: var(--text);
}

.promoter-channel-page .pc-dialog.pc-dialog--anchored {
    position: fixed;
    margin: 0;
}

.promoter-channel-page .pc-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

/* Stars + set times on event cards: centered sheet in front of the channel (not anchored to icon). */
.promoter-channel-page dialog.pc-dialog.pc-dialog--viewport-center {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    margin: 0;
    transform: translate(-50%, -50%);
    max-height: min(85vh, 620px);
    overflow: auto;
    width: min(520px, calc(100vw - 32px));
    box-sizing: border-box;
    z-index: 12050;
}

.promoter-channel-page dialog.pc-dialog.pc-dialog--viewport-center::backdrop {
    background: rgba(15, 23, 42, 0.5);
}

.promoter-channel-page .pc-dialog__inner {
    padding: 18px 18px 16px;
}

.promoter-channel-page .pc-dialog__title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 800;
}

.promoter-channel-page .pc-dialog__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

.promoter-channel-page .pc-feed-event {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    background: color-mix(in srgb, var(--text) 3%, var(--bg));
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-feed-event:active {
    opacity: 0.92;
}

.promoter-channel-page .pc-feed-event__when {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
}

.promoter-channel-page .pc-feed-event__title {
    font-size: 1rem;
    font-weight: 700;
}

.promoter-channel-page .pc-feed-event__loc {
    font-size: 0.85rem;
    color: var(--text-secondary, #64748b);
}

.promoter-channel-page .pc-placeholder {
    margin: 16px 0;
    line-height: 1.5;
    color: var(--text-secondary, #64748b);
    text-align: center;
}

.promoter-channel-page .pc-topbar__right,
.view-event-page .pc-topbar__right {
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 44px;
    min-height: 40px;
}

.promoter-channel-page.pc--edit-mode:not(.artist-channel-page) [data-pc-tab='events'] {
    display: none !important;
}

/* Edit: dim loaded image only when a photo is set (initials replace empty icon). */
body.artist-channel-page .pc-hero__avatar-wrap--edit:not(.pc-hero__avatar-wrap--no-icon) .pc-hero__img {
    opacity: 0.38;
}

.promoter-channel-page:not(.artist-channel-page) .pc-hero__avatar-wrap--edit .pc-hero__img {
    opacity: 0.38;
}

.promoter-channel-page .pc-hero__avatar-wrap--edit .pc-hero__fallback {
    opacity: 1;
}

.promoter-channel-page .pc-hero__icon-update {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 72px;
    height: 32px;
    border-radius: 999px;
    border: none;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0f172a;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

body.artist-channel-page:not(.pc--edit-mode) .ac-hero__icon-remove {
    display: none !important;
}

body.artist-channel-page.pc--edit-mode .pc-hero__avatar-wrap {
    overflow: visible;
}

body.artist-channel-page .ac-hero__icon-remove {
    position: absolute;
    top: -3px;
    right: -3px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 2px solid var(--bg);
    border-radius: 999px;
    background: color-mix(in srgb, var(--text) 88%, var(--bg));
    color: var(--bg);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

body.artist-channel-page .ac-hero__icon-remove:disabled {
    opacity: 0.55;
    cursor: wait;
}

body.artist-channel-page .pc-hero__avatar-wrap--edit .pc-hero__fallback[data-ini-len='4'] {
    font-size: 1.15rem;
}

body.artist-channel-page .pc-hero__avatar-wrap--edit .pc-hero__fallback[data-ini-len='5'],
body.artist-channel-page .pc-hero__avatar-wrap--edit .pc-hero__fallback[data-ini-len='6'] {
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

:root[data-theme='dark'] .promoter-channel-page .pc-hero__icon-update {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.promoter-channel-page:not(.pc--edit-mode) #pcHeroNameEditWrap {
    display: none !important;
}

.promoter-channel-page #pcHeroNameEditWrap[hidden] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.promoter-channel-page .pc-hero__name-edit-wrap {
    display: block;
    margin: 0 0 6px;
}

/* In edit mode: always hide the view-mode name h2 (JS may re-show it via
   data refresh callbacks; CSS wins over that). */
.promoter-channel-page.pc--edit-mode .pc-hero__name {
    display: none !important;
}

/* In edit mode: always show the description bubble even when description is
   empty — applyCommittedVenueToPage() hides it when empty but the textarea
   still needs to be accessible so the user can add/edit a description. */
.promoter-channel-page.pc--edit-mode .pc-desc-bubble {
    display: block !important;
}

/* In edit mode: hide the view-mode description paragraph — only the textarea
   should be visible (prevents double-text when description is non-empty). */
.promoter-channel-page.pc--edit-mode #pcDescription {
    display: none !important;
}

/* In edit mode: hide the view-mode category section — only the edit section
   should be visible (prevents duplicate "Type of venue" rows). */
.promoter-channel-page.pc--edit-mode #pcFieldCategories {
    display: none !important;
}

/* Hide the "Add Category" button permanently — the category field itself is
   the click target to open the type-of-venue popover. */
.promoter-channel-page #pcAddCategoryBtn {
    display: none !important;
}

/* Make the edit-mode category field look tappable. */
.promoter-channel-page.pc--edit-mode #pcFieldCategoriesEdit {
    cursor: pointer;
}

.promoter-channel-page:not(.pc--edit-mode) .pc-field__pills-row .pc-add-popover-anchor {
    display: none !important;
}

.promoter-channel-page .pc-add-pill-btn[hidden] {
    display: none !important;
}

.promoter-channel-page .pc-hero__name-input {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    background: var(--bg);
}

.promoter-channel-page .pc-description-input {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.98rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    resize: vertical;
    min-height: 120px;
    outline: none;
}

.promoter-channel-page .pc-field__input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    background: var(--bg);
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 700;
}

.promoter-channel-page .pc-pill-row--tight {
    display: inline-flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
    min-width: 0;
}

.promoter-channel-page .pc-field__pills-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
}

/* Edit: genre pills + “Add genre” share one wrapping row when there is horizontal space. */
.promoter-channel-page.pc--edit-mode #pcFieldGenres #pcGenres {
    display: contents;
}

.promoter-channel-page.pc--edit-mode #pcFieldGenres .pc-field__pills-row {
    align-items: center;
}

/* Venue channel edit: hide Main Genres (venue uses channel categories / type only). */
body.venue-channel-page.promoter-channel-page.pc--edit-mode #pcFieldGenres {
    display: none !important;
}

.promoter-channel-page .pc-add-popover-anchor {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    vertical-align: middle;
}

.promoter-channel-page .pc-inline-popover {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 60;
    min-width: min(280px, 92vw);
    max-width: min(340px, 94vw);
    padding: 10px 12px 12px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
}

.promoter-channel-page .pc-inline-popover--fixed {
    position: fixed !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    min-width: min(280px, 92vw);
    max-width: min(340px, 94vw);
    /* Above fixed topbar (50), tab strip stacking, and main-app overlays; avoid inline z-index overrides. */
    z-index: 2147483000 !important;
}

/* Body mount: category/genre pickers live here so .pc-panels-scroll overflow does not clip them under the channel tab strip. */
.promoter-channel-page .pc-inline-popover-layer {
    position: fixed;
    inset: 0;
    z-index: 2147482988;
    pointer-events: none;
}

.promoter-channel-page .pc-inline-popover-layer .pc-inline-popover:not([hidden]) {
    pointer-events: auto;
}

.promoter-channel-page .pc-inline-popover__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: min(40dvh, 260px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.promoter-channel-page .pc-inline-popover__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.promoter-channel-page .ticket-button--compact {
    padding: 6px 14px;
    font-size: 0.88rem;
}

.promoter-channel-page .pc-pill__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 2px;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 10%, transparent);
    color: inherit;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-add-pill-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px dashed color-mix(in srgb, var(--text) 38%, transparent);
    background: transparent;
    color: #64748b;
    cursor: pointer;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] .promoter-channel-page .pc-add-pill-btn {
    color: #94a3b8;
    border-color: color-mix(in srgb, var(--text) 35%, transparent);
}

.promoter-channel-page .pc-edit-settings {
    margin: 20px 0 8px;
    padding-top: 14px;
    border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.promoter-channel-page .pc-edit-settings .pc-edit-settings__heading {
    margin: 0 0 12px;
    text-transform: none;
    letter-spacing: normal;
}

.promoter-channel-page .pc-settings-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
}

.promoter-channel-page .pc-settings-row__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #94a3b8;
}

.promoter-channel-page .pc-settings-icon {
    display: block;
    color: #94a3b8;
}

.promoter-channel-page .pc-settings-row__icon--person-wrap {
    position: relative;
    width: 26px;
    height: 26px;
}

.promoter-channel-page .pc-settings-row__tick {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    font-size: 8px;
    font-weight: 800;
    line-height: 12px;
    text-align: center;
    color: #64748b;
}

.promoter-channel-page .pc-settings-row__text {
    min-width: 0;
}

.promoter-channel-page .pc-settings-row__label {
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    color: #111827;
    letter-spacing: normal;
}

:root[data-theme='dark'] .promoter-channel-page .pc-settings-row__label {
    color: var(--text);
}

.promoter-channel-page .pc-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.promoter-channel-page .pc-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.promoter-channel-page .pc-switch__ui {
    width: 46px;
    height: 28px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    transition: background 0.18s ease;
}

.promoter-channel-page .pc-switch__ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    transition: transform 0.18s ease;
}

.promoter-channel-page .pc-switch input:checked + .pc-switch__ui {
    background: #22c55e;
}

.promoter-channel-page .pc-switch input:checked + .pc-switch__ui::after {
    transform: translateX(18px);
}

.promoter-channel-page .pc-switch--disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.promoter-channel-page .pc-switch--disabled input:disabled + .pc-switch__ui {
    background: #94a3b8;
}

.promoter-channel-page .pc-switch--disabled input:disabled + .pc-switch__ui::after {
    transform: translateX(0);
}

.promoter-channel-page .pc-members-list {
    list-style: none;
    margin: 0;
    padding: 0 0 max(20px, env(safe-area-inset-bottom));
}

.promoter-channel-page .pc-member-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
}

.promoter-channel-page .pc-member-row__link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-member-row__link:hover .pc-member-row__name,
.promoter-channel-page .pc-member-row__link:focus-visible .pc-member-row__name {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.promoter-channel-page .pc-member-row__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    background: var(--brand-teal-deep, #468189);
    border: 1px solid transparent;
    overflow: hidden;
}

.promoter-channel-page .pc-member-row__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promoter-channel-page .pc-member-row__main {
    flex: 1;
    min-width: 0;
}

.promoter-channel-page .pc-member-row__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.promoter-channel-page .pc-member-row__role {
    display: inline-block;
    margin-top: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--accent-purple, #468189);
}

.promoter-channel-page .pc-member-row__role--badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-purple) 12%, var(--bg));
}

.promoter-channel-page .pc-member-row__roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.promoter-channel-page .pc-members-section-label {
    list-style: none;
    padding: 14px 0 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary, #64748b);
    border-bottom: none;
}

.promoter-channel-page .pc-member-row--staff {
    align-items: flex-start;
}

.promoter-channel-page .pc-member-row__menu-wrap {
    position: relative;
    flex-shrink: 0;
}

.promoter-channel-page .pc-member-menu-btn {
    min-width: 40px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    font-size: 1.25rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-member-row__pop {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 30;
    min-width: 220px;
    padding: 6px 0;
    border-radius: 12px;
    background: var(--bg, #fff);
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

.promoter-channel-page .pc-member-row__pop-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

.promoter-channel-page .pc-members-invite-bar {
    margin: 0 0 10px;
    padding: 0 0 8px;
    background: var(--bg, #fff);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--text, #212529) 8%, transparent);
}

.promoter-channel-page .pc-members-invite-bar__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.promoter-channel-page .pc-events-add-btn--invite {
    margin-right: 0;
}

.promoter-channel-page .pc-description-rich {
    white-space: pre-wrap;
    text-align: left;
    line-height: 1.45;
    font-size: 0.95rem;
    color: var(--text);
}

.promoter-channel-page .pc-description-rich a.giggly-desc-link {
    color: #2563eb;
    word-break: break-word;
}

:root[data-theme='dark'] .promoter-channel-page .pc-description-rich a.giggly-desc-link {
    color: #93c5fd;
}

.promoter-channel-page .pc-add-event-split {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: stretch;
    flex: 0 0 auto;
    border-radius: 10px;
    overflow: visible;
}

/* Venue channel: align Add event control with event card/flyer right edge. */
body.venue-channel-page.promoter-channel-page .pc-events-toolbar__inner {
    padding-right: max(14px, env(safe-area-inset-right, 0px));
}

body.venue-channel-page.promoter-channel-page .pc-add-event-split {
    margin-right: 0;
    transform: none;
}

/* Artist/DJ channel: align Add event with event card right edge. */
body.artist-channel-page.promoter-channel-page .pc-events-toolbar__inner {
    padding-right: max(14px, env(safe-area-inset-right, 0px));
}

body.artist-channel-page.promoter-channel-page .pc-add-event-split {
    margin-right: 0;
    transform: none;
}

/* display:inline-flex above beats the HTML hidden attribute; collapse when actually hidden */
.promoter-channel-page .pc-add-event-split[hidden] {
    display: none !important;
}

/* Single “Add event” control (no chevron sibling): full pill — avoids empty white strip from split styling */
.promoter-channel-page .pc-add-event-menu-anchor > .pc-events-add-btn {
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.35);
}

.promoter-channel-page .pc-add-event-menu-anchor > #pcAddEventChoicePop[hidden] {
    display: none !important;
}

.promoter-channel-page .pc-events-add-btn--chev {
    min-width: 34px;
    padding: 5px 6px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-size: 11px;
    line-height: 1;
}

.promoter-channel-page .pc-add-event-split-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    min-width: 200px;
    padding: 6px 0;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    background: var(--bg, #fff);
    box-shadow: 0 10px 32px color-mix(in srgb, var(--text) 14%, transparent);
}

.promoter-channel-page .pc-add-event-split-pop__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

.promoter-channel-page .pc-add-event-menu-anchor {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
}

/*
 * Add-event choice menu: when portaled to document.body it loses .promoter-channel-page — keep full chrome on #id.
 */
#pcAddEventChoicePop {
    position: fixed;
    z-index: 2147482900;
    margin: 0;
    padding: 4px 0;
    min-width: 220px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    background: var(--bg, #fff);
    color: var(--text, #212529);
    box-shadow: 0 12px 40px color-mix(in srgb, var(--text) 18%, transparent);
    box-sizing: border-box;
    isolation: isolate;
    pointer-events: auto;
}

#pcAddEventChoicePop .pc-add-event-choice-pop__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: none;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text, #212529);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#pcAddEventChoicePop .pc-add-event-choice-pop__item:active {
    background: color-mix(in srgb, var(--text) 6%, transparent);
}

:root[data-theme='dark'] #pcAddEventChoicePop {
    background: var(--bg, #1a0f2e);
    color: var(--text, #e8e4ed);
}

:root[data-theme='dark'] #pcAddEventChoicePop .pc-add-event-choice-pop__item {
    color: var(--text, #e8e4ed);
}

.promoter-channel-page .pc-invite-user-results {
    list-style: none;
    margin: 0;
    padding: 0 0 12px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.promoter-channel-page .pc-invite-user-results__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.promoter-channel-page .pc-invite-user-results__avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #1e293b;
    background: linear-gradient(135deg, #e8f2f0, #e8f2f0);
    overflow: hidden;
}

.promoter-channel-page .pc-invite-user-results__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promoter-channel-page .pc-invite-user-results__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.promoter-channel-page .pc-invite-user-row__pick {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--text) 22%, transparent);
    background: var(--bg);
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.promoter-channel-page .pc-invite-user-row__pick.is-on {
    border-color: var(--accent-purple, #468189);
    background: color-mix(in srgb, var(--accent-purple, #468189) 18%, transparent);
    box-shadow: inset 0 0 0 4px var(--accent-purple, #468189);
}

.promoter-channel-page .pc-invite-users-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.promoter-channel-page .pc-invite-users-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.promoter-channel-page .pc-invite-users-dialog__sheet {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: var(--bg);
    color: var(--text);
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.promoter-channel-page .pc-invite-users-dialog[open] .pc-invite-users-dialog__sheet {
    transform: translateY(0);
}

.promoter-channel-page .pc-invite-users-dialog__head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: max(12px, env(safe-area-inset-top, 0px)) 16px 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}

.promoter-channel-page .pc-invite-users-dialog__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

:root[data-theme='dark'] .promoter-channel-page .pc-invite-users-dialog__title {
    color: var(--text);
}

.promoter-channel-page .pc-invite-users-dialog__close {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 22px;
    line-height: 1;
    font-weight: 600;
    color: #475569;
    background: #e5e7eb;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.promoter-channel-page .pc-invite-users-dialog__close:focus,
.promoter-channel-page .pc-invite-users-dialog__close:focus-visible {
    outline: none;
    box-shadow: none;
}

:root[data-theme='dark'] .promoter-channel-page .pc-invite-users-dialog__close {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.promoter-channel-page .pc-invite-users-dialog__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    overflow: hidden;
}

.promoter-channel-page .pc-invite-users-dialog__footer {
    flex-shrink: 0;
    padding: 12px 16px max(16px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    background: var(--bg);
}

.promoter-channel-page .pc-invite-users-dialog__footer .ticket-button {
    width: 100%;
    box-sizing: border-box;
}

.promoter-channel-page .pc-channel-share-wrap--hero {
    flex-shrink: 0;
}

.promoter-channel-page .pc-modal-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: min(48dvh, 320px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.promoter-channel-page .pc-modal-pill {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] .promoter-channel-page .pc-modal-pill {
    color: #f8fafc;
    -webkit-text-fill-color: #f8fafc;
}

.promoter-channel-page .pc-modal-pill--on {
    border-color: var(--accent-purple, #468189);
    background: color-mix(in srgb, var(--accent-purple) 14%, var(--bg));
    color: #4c1d95;
}

:root[data-theme='dark'] .promoter-channel-page .pc-modal-pill--on {
    color: #e9d5ff;
}

/* —— Runway Blitz: suppress iOS Live Text / callouts while overlay is open —— */
html.giggly-pc-blitz-active {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* —— Promoter Channels: hidden landscape “Runway Blitz” easter egg (auto-starts in landscape) —— */
.giggly-pc-blitz-game {
    position: fixed;
    inset: 0;
    z-index: 2147483049;
    background: #020617;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    overscroll-behavior: none;
}

.giggly-pc-blitz-game__canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.giggly-pc-blitz-game__toolbar {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.giggly-pc-blitz-game__restart,
.giggly-pc-blitz-game__exit {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.giggly-pc-blitz-game__restart {
    border: 1px solid rgba(119, 172, 162, 0.5);
    background: rgba(119, 172, 162, 0.22);
    color: #e8f2f0;
}

.giggly-pc-blitz-game__exit {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
}

.giggly-pc-blitz-game__endmsg {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    z-index: 2;
    margin: 0;
    max-width: 92vw;
    padding: 10px 18px;
    border-radius: 14px;
    font: bold 1.25rem/1.25 system-ui, sans-serif;
    text-align: center;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.giggly-pc-blitz-game__endmsg--win {
    color: rgba(16, 185, 129, 0.98);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
}

.giggly-pc-blitz-game__endmsg--lose {
    color: rgba(248, 113, 113, 0.98);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
}

/* Main feed + tag hub: “Show by” layouts (localStorage gigglyFeedShowBy) */
.event-card--feed-layout-no-flyers {
    padding: 16px;
    overflow: visible;
}

.event-card--feed-layout-no-flyers .event-card-v2__details {
    padding: 0;
}

/* Following feed: followed channel row above each event card */
.feed-follow-source {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px 0;
    padding: 0 2px;
    min-width: 0;
    min-height: 34px;
}

/* Space below sticky tabs / profile sub-tabs before the first channel row.
 * Following feed wraps each card in .feed-follow-source-block — target that too. */
#eventsContainer > .feed-follow-source:first-child,
#eventsContainer > .giggly-events-grid > .feed-follow-source:first-child,
#eventsContainer > .feed-month-divider:first-child + .feed-follow-source,
#eventsContainer > .feed-follow-source-block:first-child > .feed-follow-source:first-child,
#eventsContainer > .feed-friend-post-block:first-child > .feed-follow-source:first-child,
#eventsContainer > .feed-friend-star-block:first-child > .feed-follow-source:first-child,
#eventsContainer > .giggly-events-grid > .feed-follow-source-block:first-child > .feed-follow-source:first-child {
    margin-top: 14px;
}

/* Extra air under the Gig Wall / Feed / Future tabs before the first channel icon. */
html.giggly-user-feed-profile #eventsContainer.giggly-profile-feed-container--following > .feed-follow-source:first-child,
html.giggly-user-feed-profile #eventsContainer.giggly-profile-feed-container--following > .feed-follow-source-block:first-child > .feed-follow-source:first-child,
html.giggly-user-feed-profile #eventsContainer.giggly-profile-feed-container--following > .feed-friend-post-block:first-child > .feed-follow-source:first-child,
html.giggly-user-feed-profile #eventsContainer.giggly-profile-feed-container--following > .feed-friend-star-block:first-child > .feed-follow-source:first-child {
    margin-top: 4px !important;
}

.event-card + .feed-follow-source {
    margin-top: 28px;
}

.feed-follow-source--starred {
    justify-content: space-between;
    gap: 10px;
}

.feed-follow-source__main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.feed-follow-source__main--multi {
    gap: 10px;
}

.feed-follow-source__avatars {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
}

.feed-follow-source__avatar--stack {
    margin-left: -14px;
    box-shadow: 0 0 0 2px var(--bg, #fff);
}

.feed-follow-source__avatar--stack:first-child {
    margin-left: 0;
}

:root[data-theme='dark'] .feed-follow-source__avatar--stack {
    box-shadow: 0 0 0 2px var(--bg, #1a0f2e);
}

.feed-follow-source__names {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
    min-width: 0;
    line-height: 1.25;
}

.feed-follow-source__names-sep {
    color: var(--text-secondary, #64748b);
    font-weight: 600;
    white-space: pre;
}

.feed-follow-source__name-link {
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.feed-follow-source__name-link:hover .feed-follow-source__name,
.feed-follow-source__name-link:focus-visible .feed-follow-source__name {
    text-decoration: underline;
}

.feed-follow-source__name-link:focus-visible {
    outline: 2px solid var(--accent-purple, #468189);
    outline-offset: 2px;
    border-radius: 4px;
}

.feed-follow-source__link {
    text-decoration: none;
    color: inherit;
}

.feed-follow-source__link:hover .feed-follow-source__name,
.feed-follow-source__link:focus-visible .feed-follow-source__name {
    text-decoration: underline;
}

.feed-follow-source__link:focus-visible {
    outline: 2px solid var(--accent-purple, #468189);
    outline-offset: 2px;
    border-radius: 6px;
}

.feed-follow-source__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-follow-source__follow-btn {
    flex-shrink: 0;
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    background: #e5e7eb;
    color: #000000;
    cursor: pointer;
}

.feed-follow-source__follow-btn:hover {
    background: #d1d5db;
}

.feed-follow-source__follow-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

:root[data-theme='dark'] .feed-follow-source__follow-btn {
    background: #3f3f46;
    color: #f4f4f5;
}

:root[data-theme='dark'] .feed-follow-source__follow-btn:hover {
    background: #52525b;
}

/* Viewport-centred (profile feed scroll roots otherwise leave native dialogs at the top). */
.feed-follow-confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    margin: 0;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: 14px;
    padding: 20px 18px 16px;
    width: min(92vw, 360px);
    max-width: min(92vw, 360px);
    max-height: min(85vh, 480px);
    box-sizing: border-box;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    z-index: 2147483000;
}

.feed-follow-confirm-modal::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.feed-follow-confirm-modal__message {
    margin: 0 0 16px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text, #212529);
}

.feed-follow-confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.feed-follow-confirm-modal__btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.feed-follow-confirm-modal__btn--no {
    background: #e5e7eb;
    color: #111827;
}

.feed-follow-confirm-modal__btn--yes {
    background: #111827;
    color: #ffffff;
}

.feed-follow-source__star-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-follow-source__star-disc {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50%;
    background: #fef9c3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

:root[data-theme='dark'] .feed-follow-source__star-disc {
    background: rgba(250, 204, 21, 0.25);
}

.feed-follow-source__star-glyph {
    font-size: 15px;
    line-height: 1;
    color: #ca8a04;
}

:root[data-theme='dark'] .feed-follow-source__star-glyph {
    color: #facc15;
}

.feed-follow-source + .event-card {
    margin-top: 0;
    margin-bottom: 10px;
}

.feed-follow-source__avatar {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e5e7eb;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.feed-follow-source__avatar-img {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    /* Avoid a blank frame when the node is recreated from the same cached URL. */
    background-color: transparent;
}

.feed-follow-source__avatar-initials {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    line-height: 1;
    background: var(--brand-teal-deep, #468189);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feed-follow-source__name {
    font-weight: 700;
    color: #000000;
    font-size: 0.9375rem;
    line-height: 1.2;
    align-self: center;
    overflow-wrap: anywhere;
    word-break: break-word;
}

:root[data-theme='dark'] .feed-follow-source__name {
    color: #e8e4ed;
}

.events-container--feed-show-list .event-card--feed-layout-list {
    margin-bottom: 8px;
}

/* List view: extra inset so the card border isn’t tight to thumb / text / buttons */
.event-card.event-card--v2.event-card--feed-layout-list {
    padding: 20px;
}

/* List view: wallet-style thumbnail (48×48) + text + stacked actions (matches ticket wallet density). */
.event-card--feed-layout-list .event-card-v2__feed-list-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.event-card--feed-layout-list .event-card-v2__feed-list-thumb {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    line-height: 0;
    align-self: flex-start;
}

.event-card--feed-layout-list .event-card-v2__feed-list-thumb-inner {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
    display: block;
}

.event-card--feed-layout-list .event-card-v2__feed-list-thumb-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    display: block;
}

.event-card--feed-layout-list .event-card-v2__feed-list-thumb .event-card-v2__flyer-column {
    width: 48px !important;
    max-width: 48px;
}

.event-card--feed-layout-list .event-card-v2__feed-list-thumb .event-card-v2__flyer {
    width: 48px !important;
    max-width: 48px;
    height: 48px !important;
    min-height: 48px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}

.event-card--feed-layout-list .event-card-v2__feed-list-thumb .event-card-v2__flyer-img {
    width: 48px !important;
    height: 48px !important;
    max-height: 48px !important;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.event-card--feed-layout-list .event-card-v2__feed-list-thumb .event-card-v2__flyer[data-flyer-pending='1'] {
    background: rgba(15, 23, 42, 0.08);
}

.event-card--feed-layout-list .event-card-v2__feed-list-thumb .event-card-v2__flyer-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.15;
}

.event-card--feed-layout-list .event-card-v2__feed-list-thumb--empty {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.08);
}

:root[data-theme='dark'] .event-card--feed-layout-list .event-card-v2__feed-list-thumb-inner,
:root[data-theme='dark'] .event-card--feed-layout-list .event-card-v2__feed-list-thumb--empty,
:root[data-theme='dark'] .event-card--feed-layout-list .event-card-v2__feed-list-thumb .event-card-v2__flyer[data-flyer-pending='1'] {
    background: rgba(0, 0, 0, 0.28);
}

.event-card--feed-layout-list .event-card-v2__feed-list-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-card--feed-layout-list .event-card-v2__feed-list-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.event-card--feed-layout-list .event-card-v2__feed-list-artists {
    display: block;
    font-size: 0.82rem;
    color: rgba(100, 116, 139, 0.95);
    margin-top: 2px;
    line-height: 1.25;
}

.event-card--feed-layout-list .event-card-v2__location,
.event-card--feed-layout-list .event-card-v2__feed-list-loc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.25;
}

.event-card--feed-layout-list .event-card-v2__feed-list-time {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.event-card--feed-layout-list .event-card-v2__feed-list-actions-col {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px;
    margin-left: auto;
    align-self: stretch;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.event-card--feed-layout-list .event-card-v2__feed-list-details-btn {
    width: auto !important;
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    box-sizing: border-box;
    min-height: 32px;
    height: auto;
    padding: 0 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
    background: color-mix(in srgb, var(--text) 7%, var(--bg));
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
}

.event-card--feed-layout-list .event-card-v2__feed-list-status-slot {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 140px;
    margin-top: 0;
}

.event-card--feed-layout-list .event-card-v2__feed-list-icons-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    align-self: flex-end;
}

.event-card--feed-layout-list .event-card-v2__feed-list-icons-row .view-event-page__star-stack {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.event-card--feed-layout-list .event-card-v2__list-icons-count {
    font-size: 0.8rem;
    line-height: 1;
    min-width: 1ch;
}

.event-card--feed-layout-list .event-card-v2__feed-list-icons-row .event-card-v2__heart {
    touch-action: manipulation;
}

.event-card--feed-layout-list .event-card-v2__feed-list-icons-row .event-card-v2__heart-disc {
    width: 28px;
    height: 28px;
}

.event-card--feed-layout-list .event-card-v2__feed-list-icons-row .view-event-page__stars-group-svg {
    width: 24px;
    height: 24px;
}

.event-card--feed-layout-list .event-card-v2__feed-list-status-slot .ticket-button {
    white-space: nowrap;
    border-radius: 8px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 32px;
    height: auto;
    padding: 0 12px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    max-width: 100%;
}

/* Channel pages: offset scroll-to-event for the fixed topbar */
.promoter-channel-page .pc-events-list [data-event-id],
.venue-channel-page .pc-events-list [data-event-id] {
    scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 60px);
}

/* List view: hide promoter row on mobile */
.event-card--feed-layout-list .event-card-v2__promoter-line--promoter {
    display: none;
}

/* List meta-row (desktop bottom row): hidden by default / on mobile */
.event-card--feed-layout-list .event-card-v2__feed-list-meta-row {
    display: none;
    pointer-events: none;
}

@media (min-width: 841px) {
    /* Show promoter on desktop */
    .event-card--feed-layout-list .event-card-v2__promoter-line--promoter {
        display: block;
    }
    /* Venue + promoter wrapper: single flex row, wraps if too wide */
    .event-card--feed-layout-list .event-card-v2__venue-promoter-pair {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0 16px;
    }
    /* Cancel inherited margin-top on children (gap handles spacing) */
    .event-card--feed-layout-list .event-card-v2__venue-promoter-pair > .event-card-v2__promoter-line {
        margin-top: 0;
    }
    /* Raise venue/promoter closer to the date row */
    .event-card--feed-layout-list .event-card-v2__time + .event-card-v2__promoter-line,
    .event-card--feed-layout-list .event-card-v2__time + .event-card-v2__venue-promoter-pair {
        margin-top: 1px;
    }
    .event-card--feed-layout-list .event-card-v2__promoter-line {
        margin-top: 1px;
    }
    /* Desktop bottom meta-row: category pill + genre pills */
    .event-card--feed-layout-list .event-card-v2__feed-list-meta-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 6px;
        pointer-events: auto;
    }
    /* Compact pills for list meta-row */
    .event-card--feed-layout-list .event-card-v2__feed-list-meta-row .event-card-v2__pill {
        height: 22px !important;
        min-height: 22px !important;
        font-size: 0.72rem;
        padding: 0 8px;
        border-radius: 999px;
        line-height: 22px;
    }
    /* Category pill: fully opaque with a visible border */
    .event-card--feed-layout-list .event-card-v2__feed-list-meta-row .event-card-v2__pill--category {
        opacity: 1;
    }
    /* Smaller venue/promoter text on desktop list view */
    .event-card--feed-layout-list .event-card-v2__promoter-kicker,
    .event-card--feed-layout-list .event-card-v2__promoter-name {
        font-size: 12px;
    }
    /* View Details stays in the actions column; push it to the bottom */
    .event-card--feed-layout-list .event-card-v2__feed-list-actions-col .event-card-v2__feed-list-details-btn {
        margin-top: auto;
    }
    /* Actions col must stretch to card height so margin-top: auto works */
    .event-card--feed-layout-list .event-card-v2__feed-list-actions-col {
        align-self: stretch;
    }
}

.event-card--feed-layout-flyers-only {
    padding: 0;
    overflow: hidden;
}

.event-card--feed-layout-flyers-only .event-card-v2__flyer-column {
    position: relative;
    width: 100%;
}

.event-card-v2__flyers-only-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    line-height: normal;
    box-sizing: border-box;
    width: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(15, 23, 42, 0.55) 35%,
        rgba(15, 23, 42, 0.82) 100%
    );
    margin-top: -56px;
    position: relative;
    z-index: 2;
}

/* Pill-sized “View Details” (grey fill); same footprint as status ticket pill — not full-width */
.event-card-v2__flyers-only-bar .event-card-v2__flyers-only-details-btn.pc-promoter-feed-card__bottom-cta-btn {
    width: auto !important;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    height: 32px;
    padding: 0 14px !important;
    margin: 0;
    text-align: center;
    border-radius: 999px;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.94);
    color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.event-card-v2__flyers-only-status {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: calc(100% - 120px);
}

.event-card-v2__flyers-only-status .ticket-button,
.event-card-v2__flyers-only-status span.ticket-button {
    white-space: nowrap;
    border-radius: 999px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 32px;
    height: 32px;
    max-height: 32px;
    padding: 0 14px !important;
    font-size: 12px !important;
    line-height: 32px !important;
    font-weight: 600 !important;
    max-width: 100%;
}

:root[data-theme='dark'] .event-card-v2__flyers-only-bar {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 35%, rgba(0, 0, 0, 0.78) 100%);
}

:root[data-theme='dark'] .event-card-v2__flyers-only-bar .event-card-v2__flyers-only-details-btn.pc-promoter-feed-card__bottom-cta-btn {
    background: rgba(30, 27, 46, 0.92);
    color: #e8e4ed;
    border-color: rgba(148, 163, 184, 0.35);
}

/* --------------------------------------------------------------------------
   User settings full-screen modal (promoter-channel field styling)
   -------------------------------------------------------------------------- */

#headerLoginSignupBtn[hidden],
html:not(.giggly-guest-mode) #headerLoginSignupBtn {
    display: none !important;
}

/* Last-known authed hint: never flash Log In / Sign up during chrome restore or session retry. */
html[data-giggly-authed-hint] #headerLoginSignupBtn {
    display: none !important;
}

html.giggly-guest-mode #profileAvatar {
    display: none !important;
}

#pcEventsShowWrap[hidden],
.promoter-channel-page .pc-events-toolbar__left[hidden] {
    display: none !important;
}

.header-login-signup-btn {
    border: none;
    background: transparent;
    /* Fixed size matches .profile-avatar (36px) so the header never changes height
       when auth state resolves, preventing the pull-upwards jump on logged-out nav. */
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.header-login-signup-btn__icon {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
}

.header-login-signup-btn__line {
    display: none;
}

.header-login-signup-btn:hover {
    transform: scale(1.05);
}

.header-login-signup-btn:active {
    transform: scale(0.95);
}

html.giggly-guest-mode #filterPinnedCategoryStrip,
html.giggly-guest-mode #filterPinnedGenrePillsStrip,
html.giggly-guest-mode #filterPinnedGenreStrip {
    display: none !important;
}

.modal.giggly-user-settings-modal,
.modal.giggly-auth-phone-modal {
    z-index: 12100;
    padding: 0;
    align-items: stretch;
    justify-content: center;
}

.modal.giggly-auth-phone-modal.active {
    z-index: 2147483300 !important;
}

.giggly-user-settings-modal__sheet {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    min-height: 100%;
    box-sizing: border-box;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.2);
}

.giggly-user-settings-modal__topbar {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
    border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.giggly-user-settings-modal__cancel {
    justify-self: start;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 6px;
    border-radius: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.giggly-user-settings-modal__cancel:active {
    opacity: 0.75;
}

@media (hover: hover) and (pointer: fine) {
    .giggly-user-settings-modal__cancel:hover {
        opacity: 0.85;
    }
}

/* Reset global marketing h1 (gradient + transparent fill) inside settings sheet */
.giggly-user-settings-modal__title {
    grid-column: 2;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    text-transform: none;
    letter-spacing: normal;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #0f172a;
    color: #0f172a;
}

:root[data-theme='dark'] .giggly-user-settings-modal__title {
    -webkit-text-fill-color: #f8fafc;
    color: #f8fafc;
}

.giggly-user-settings-modal__edit {
    grid-column: 3;
    justify-self: end;
    border: none;
    background: transparent;
    color: var(--accent-blue, #77ACA2f);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.giggly-user-settings-modal__save {
    grid-column: 3;
    justify-self: end;
    border: none;
    background: transparent;
    padding: 8px 10px;
    cursor: pointer;
    line-height: 1.2;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-blue, #77ACA2f);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.giggly-user-settings-modal__save:active {
    opacity: 0.8;
}

.giggly-user-settings-modal__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px max(18px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-right));
}

.giggly-user-settings-modal__update-banner {
    background: var(--brand-btn-bg, #468189);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.giggly-user-settings-modal__update-banner-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.45;
    text-align: center;
}

.giggly-user-settings-modal__hero {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.giggly-user-settings-modal__avatar-wrap {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    background: color-mix(in srgb, var(--text) 6%, var(--bg));
}

/* When a photo URL exists, show zoom affordance even before decode finishes. */
.giggly-user-settings-modal__avatar-wrap.giggly-user-settings-modal__avatar-wrap--previewable {
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}

.giggly-user-settings-modal__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.giggly-user-settings-modal__avatar-img:not([hidden]) {
    position: relative;
    z-index: 1;
    cursor: zoom-in;
}

.giggly-user-settings-modal__avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

/* Author flex can beat UA [hidden] in some WebKit builds — initials must not sit on top of the photo. */
#userSettingsAvatarFallback[hidden],
.giggly-user-settings-modal__avatar-fallback[hidden] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Centered pill over the avatar — must win over generic label/button resets. */
#userSettingsIconUpdateBtn.giggly-user-settings-modal__icon-update,
.giggly-user-settings-modal__icon-update {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 84px;
    min-width: 84px;
    height: 32px;
    margin: 0;
    padding: 0 12px;
    border-radius: 999px;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center;
    text-transform: none;
    color: #0f172a;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    z-index: 3;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

#userSettingsIconUpdateBtn[hidden],
.giggly-user-settings-modal__icon-update[hidden] {
    display: none !important;
}

.giggly-user-settings-modal__sheet--edit .giggly-user-settings-modal__avatar-wrap {
    overflow: hidden;
    cursor: pointer;
}

/*
 * Off-screen file input — must never paint as "Choose file".
 * Not display:none so programmatic .click() still opens the picker on iOS.
 */
#userSettingsIconFile,
.giggly-user-settings-modal__icon-file {
    position: fixed !important;
    left: -10000px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    z-index: -1 !important;
}

:root[data-theme='dark'] #userSettingsIconUpdateBtn.giggly-user-settings-modal__icon-update,
:root[data-theme='dark'] .giggly-user-settings-modal__icon-update {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.giggly-user-settings-modal__sheet--edit .giggly-user-settings-modal__avatar-wrap .giggly-user-settings-modal__avatar-img {
    opacity: 0.38;
}

.giggly-user-settings-field {
    margin-bottom: 18px;
}

.giggly-user-settings-field__label {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

:root[data-theme='dark'] .giggly-user-settings-field__label {
    color: #94a3b8;
}

.giggly-user-settings-field__req {
    color: #ff3b30 !important;
    font-weight: 800;
    margin-left: 2px;
    -webkit-text-fill-color: #ff3b30;
}

.giggly-user-settings-modal__sheet:not(.giggly-user-settings-modal__sheet--edit) .giggly-user-settings-field__req {
    display: none;
}

.giggly-user-settings-field.giggly-user-settings-field--error .giggly-user-settings-field__input,
.giggly-user-settings-field.giggly-user-settings-field--error .giggly-user-settings-field__select,
.giggly-user-settings-field__half.giggly-user-settings-field--error .giggly-user-settings-field__input {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.22);
}

:root[data-theme='dark'] .giggly-user-settings-field.giggly-user-settings-field--error .giggly-user-settings-field__input,
:root[data-theme='dark'] .giggly-user-settings-field.giggly-user-settings-field--error .giggly-user-settings-field__select,
:root[data-theme='dark'] .giggly-user-settings-field__half.giggly-user-settings-field--error .giggly-user-settings-field__input {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.28);
}

.giggly-user-settings-modal__scroll .add-event-form-validation-summary {
    margin: 0 auto 14px;
    text-align: center;
    max-width: 440px;
}

.giggly-user-settings-field__value {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
}

.giggly-user-settings-field__value--grow {
    flex: 1;
    min-width: 0;
}

.giggly-user-settings-field__edit-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.giggly-user-settings-name-pair {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
}

.giggly-user-settings-field__half {
    flex: 1;
    min-width: 0;
}

.giggly-user-settings-field__half .giggly-user-settings-field__label {
    display: block;
}

.giggly-user-settings-field__half .giggly-user-settings-field__input {
    width: 100%;
    margin-top: 4px;
}

.giggly-user-settings-phone-edit-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

.giggly-user-settings-phone-current {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.giggly-user-settings-phone-change-toggle {
    flex-shrink: 0;
    border: none;
    background: transparent;
    padding: 6px 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-blue, #77ACA2f);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.giggly-user-settings-phone-change-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.giggly-user-settings-phone-change-panel[hidden] {
    display: none !important;
}

.giggly-user-settings-field__input,
.giggly-user-settings-field__select {
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    background: var(--bg);
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 700;
}

.giggly-user-settings-legal__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 4px 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-user-settings-legal__row--view {
    cursor: default;
}

.giggly-user-settings-legal__row--locked {
    cursor: default;
    opacity: 0.45;
    pointer-events: none;
}

.giggly-user-settings-modal__sheet:not(.giggly-user-settings-modal__sheet--edit) .giggly-user-settings-legal__row--view {
    pointer-events: none;
}

.giggly-user-settings-legal__checkbox {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    accent-color: var(--accent-pink, #77ACA2);
    cursor: pointer;
}

.giggly-user-settings-legal__row--view .giggly-user-settings-legal__checkbox {
    cursor: default;
}

.giggly-user-settings-legal__text {
    flex: 1;
    min-width: 0;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
}

.giggly-user-settings-legal__row--view .giggly-user-settings-legal__text {
    font-weight: 700;
}

.giggly-user-settings-field.giggly-user-settings-field--error .giggly-user-settings-legal__row {
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px solid #ff3b30;
    box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.28);
}

:root[data-theme='dark'] .giggly-user-settings-field.giggly-user-settings-field--error .giggly-user-settings-legal__row {
    border-color: #ff6b6b;
}

.giggly-user-settings-legal__link {
    color: var(--accent-pink, #77ACA2);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.giggly-user-settings-legal__link:focus-visible {
    outline: 2px solid var(--accent-purple, #468189);
    outline-offset: 2px;
    border-radius: 2px;
}

:root[data-theme='dark'] .giggly-user-settings-legal__link {
    color: #f472b6;
}

.giggly-user-settings-field__input.giggly-user-settings-control--error,
.giggly-user-settings-field__select.giggly-user-settings-control--error {
    border: 2px solid #ff3b30 !important;
    box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.28);
}

:root[data-theme='dark'] .giggly-user-settings-field__input.giggly-user-settings-control--error,
:root[data-theme='dark'] .giggly-user-settings-field__select.giggly-user-settings-control--error {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.32);
}

.giggly-user-settings-field__input--code {
    max-width: 160px;
}

.giggly-user-settings-email-code-row,
.giggly-user-settings-phone-code-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.giggly-user-settings-email-code-row[hidden] {
    display: none !important;
}

.giggly-user-settings-email-code-row .giggly-user-settings-field__input--code,
.giggly-user-settings-phone-code-row .giggly-user-settings-field__input--code {
    flex: 1;
    min-width: 0;
    max-width: none;
}

.giggly-user-settings-btn-inline {
    flex-shrink: 0;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--accent-blue, #77ACA2f);
    background: transparent;
    color: var(--accent-blue, #77ACA2f);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.giggly-user-settings-field__email-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.giggly-user-settings-email-tick {
    flex-shrink: 0;
    color: #16a34a;
    font-weight: 800;
    font-size: 1.1rem;
}

.giggly-user-settings-email-verify {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: flex-start;
    margin-top: 8px;
}

.giggly-user-settings-field__theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.giggly-user-settings-events-added-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.giggly-user-settings-events-added-row__title {
    margin: 0;
}

.giggly-user-settings-events-added-row__count-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.giggly-user-settings-events-added-row__count-line .giggly-user-settings-field__value {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    min-width: 0;
    flex: 0 1 auto;
}

.giggly-user-settings-events-added-row__leaderboard-btn {
    flex-shrink: 0;
    max-width: 52%;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    padding-left: 10px;
    padding-right: 10px;
}

@media (max-width: 380px) {
    .giggly-user-settings-events-added-row__leaderboard-btn {
        font-size: 0.78rem;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Events-added leaderboard (Settings → View leadership board) */
.modal.giggly-events-added-leaderboard-modal.active {
    display: flex;
    flex-direction: column;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
    box-sizing: border-box;
    /* Pin to all four viewport edges — 100dvh/100vh can sit short of the real bottom on mobile (Bar D peeks through). */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    /* Opaque shell so nothing from Settings (e.g. Delete / Logout) shows through gaps under the sheet. */
    background: var(--bg);
}

.giggly-events-added-leaderboard-modal__sheet {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 640px;
    flex: 1 1 auto;
    min-height: 0;
    align-self: stretch;
    margin: 0 auto;
    background: var(--bg);
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Body class toggled from JS while leaderboard is open — hides fixed Bar C/D so they never sit above the overlay. */
body.giggly-events-added-leaderboard-open .bottom-bar,
body.giggly-events-added-leaderboard-open .controls-bar {
    visibility: hidden !important;
    pointer-events: none !important;
}

.giggly-events-added-leaderboard-modal__head {
    position: relative;
    flex-shrink: 0;
    padding: 16px 48px 12px 20px;
    border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}

.giggly-events-added-leaderboard-modal__head .modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
    line-height: 1;
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
}

.giggly-events-added-leaderboard-modal__title {
    margin: 0;
    padding-right: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    color: var(--text);
}

.giggly-events-added-leaderboard-modal__tabs {
    display: flex;
    flex-shrink: 0;
    gap: 0;
    padding: 0 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}

.giggly-events-added-leaderboard-modal__tab {
    flex: 1 1 50%;
    padding: 12px 10px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] .giggly-events-added-leaderboard-modal__tab {
    color: #94a3b8;
}

.giggly-events-added-leaderboard-modal__tab.is-active {
    color: var(--text);
    border-bottom-color: var(--accent-purple, #468189);
}

.giggly-events-added-leaderboard-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.giggly-events-added-leaderboard-modal__panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px 24px;
    -webkit-overflow-scrolling: touch;
}

.giggly-events-added-leaderboard-modal__loading,
.giggly-events-added-leaderboard-modal__empty {
    margin: 16px 0;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
}

:root[data-theme='dark'] .giggly-events-added-leaderboard-modal__loading,
:root[data-theme='dark'] .giggly-events-added-leaderboard-modal__empty {
    color: #94a3b8;
}

.giggly-events-added-leaderboard-modal__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.giggly-events-added-leaderboard-modal__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
    font-size: 0.95rem;
}

.giggly-events-added-leaderboard-modal__rank {
    flex: 0 0 28px;
    font-weight: 800;
    color: #64748b;
    text-align: right;
}

:root[data-theme='dark'] .giggly-events-added-leaderboard-modal__rank {
    color: #94a3b8;
}

.giggly-events-added-leaderboard-modal__name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giggly-events-added-leaderboard-modal__count {
    flex: 0 0 auto;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.giggly-user-settings-add-home {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.giggly-user-settings-add-home__heading {
    margin: 0 0 8px;
}

.giggly-user-settings-add-home__lead {
    margin: 0 0 10px;
    max-width: 42em;
}

.giggly-user-settings-add-home__dynamic {
    margin: 0 0 14px;
    max-width: 42em;
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 600;
    color: #475569;
}

:root[data-theme='dark'] .giggly-user-settings-add-home__dynamic {
    color: #94a3b8;
}

.giggly-user-settings-field__hint {
    font-size: 0.85rem;
    color: #64748b;
}

.giggly-user-settings-modal__footer {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.giggly-user-settings-modal__footer--account-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
}

.giggly-user-settings-modal__footer--account-actions.giggly-user-settings-modal__footer--view-only .giggly-user-settings-logout {
    flex: 1 1 100%;
    max-width: 100%;
}

.giggly-user-settings-footer-save {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid color-mix(in srgb, var(--text) 22%, transparent);
    font-weight: 700;
    font-size: 1rem;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-user-settings-modal__footer--edit-paired .giggly-user-settings-delete-account,
.giggly-user-settings-modal__footer--edit-paired .giggly-user-settings-footer-save {
    flex: 0 0 calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
}

.giggly-user-settings-modal__footer--first-time .giggly-user-settings-footer-save {
    flex: none;
    width: 100%;
    max-width: none;
}

:root[data-theme='dark'] .giggly-user-settings-footer-save {
    border-color: color-mix(in srgb, var(--text) 35%, transparent);
}

.giggly-user-settings-delete-account {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid color-mix(in srgb, var(--text) 22%, transparent);
    font-weight: 700;
    font-size: 1rem;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] .giggly-user-settings-delete-account {
    border-color: color-mix(in srgb, var(--text) 35%, transparent);
}

.giggly-user-settings-logout {
    flex: 1 1 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid #0f172a;
    font-weight: 700;
    font-size: 1rem;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] .giggly-user-settings-logout {
    background: #fff;
    color: #0f172a;
    border-color: #0f172a;
}

.giggly-user-settings-delete-account-modal {
    z-index: 12220;
}

.giggly-user-settings-delete-account-modal .giggly-user-settings-delete-account-modal__dialog {
    max-width: 400px;
    width: calc(100% - 32px);
    margin: auto;
    padding: 22px 20px 20px;
    border-radius: 16px;
    background: var(--bg);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    box-sizing: border-box;
}

.giggly-user-settings-delete-account-modal__title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}

.giggly-user-settings-delete-account-modal__body {
    margin: 0 0 20px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: color-mix(in srgb, var(--text) 88%, transparent);
}

.giggly-user-settings-delete-account-modal__actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-end;
}

.giggly-user-settings-delete-account-modal__btn {
    min-width: 88px;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    -webkit-tap-highlight-color: transparent;
}

.giggly-user-settings-delete-account-modal__btn--secondary {
    background: color-mix(in srgb, var(--text) 6%, transparent);
    color: var(--text);
    border-color: color-mix(in srgb, var(--text) 14%, transparent);
}

.giggly-user-settings-delete-account-modal__btn--danger {
    background: #b91c1c;
    color: #fff;
    border-color: #7f1d1d;
}

.giggly-user-settings-modal__sheet:not(.giggly-user-settings-modal__sheet--edit) .giggly-user-settings--edit-only {
    display: none !important;
}

.giggly-user-settings-modal__sheet.giggly-user-settings-modal__sheet--edit .giggly-user-settings--view-only {
    display: none !important;
}

/* Guest welcome login: hide All Events until the auth modal is ready */
html.giggly-welcome-auth-pending body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2147483200;
    background: #ffffff;
    pointer-events: none;
}

html.giggly-welcome-auth-pending body.modal-open::before {
    display: none;
}

/* Brand Log In / Sign Up — full-page cover; Get Code ↔ Enter Code swap fields only */
.modal.giggly-auth-phone-modal {
    background: #ffffff !important;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

.modal.giggly-auth-phone-modal.active {
    display: flex !important;
}

.giggly-auth-phone-modal .giggly-auth-phone-modal__sheet {
    position: relative;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    min-height: 100%;
    min-height: 100dvh;
    box-sizing: border-box;
    background: #ffffff;
    color: #031926;
    border-radius: 0;
    padding: max(20px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.giggly-auth-phone-modal__close {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    z-index: 2;
    appearance: none;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #031926;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-auth-phone-modal__close:active {
    background: rgba(3, 25, 38, 0.06);
}

.giggly-auth-phone-modal__figure {
    display: block;
    /* ~15% smaller than prior min(200px, 52vw); stay horizontally centred */
    width: min(170px, 44vw);
    height: auto;
    /* Feet sit slightly left in the asset (arm extends right) — nudge so feet centre under the title */
    margin: 8px auto 18px;
    transform: translateX(clamp(10px, 3.4vw, 17px));
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    /* Keep vector assets sharp (no bitmap upscaling) */
    image-rendering: auto;
    shape-rendering: geometricPrecision;
}

.giggly-auth-phone-modal__title {
    margin: 0 0 28px;
    font-family: var(--font-sans, 'League Spartan', sans-serif);
    font-size: clamp(1.55rem, 5.2vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #031926;
    -webkit-text-fill-color: #031926;
    background: none;
}

.giggly-auth-phone-modal__lead {
    margin: -12px 0 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #031926;
}

.giggly-auth-phone-modal__fields {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* display:flex above must not win over [hidden] — only one field/button at a time */
.giggly-auth-phone-modal__fields > [hidden],
.giggly-auth-phone-modal #authPhoneInput[hidden],
.giggly-auth-phone-modal #authPhoneCodeInput[hidden],
.giggly-auth-phone-modal #authPhoneSendBtn[hidden],
.giggly-auth-phone-modal #authPhoneVerifyBtn[hidden],
.giggly-auth-phone-modal__lead[hidden] {
    display: none !important;
}

.giggly-auth-phone-modal__input {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 16px;
    border: 2.5px solid #031926;
    border-radius: 12px;
    background: #ffffff;
    color: #031926;
    font-family: var(--font-sans, 'League Spartan', sans-serif);
    font-size: 1.05rem;
    font-weight: 400;
    text-align: left;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.giggly-auth-phone-modal__input::placeholder {
    color: #9aa3a8;
    opacity: 1;
}

.giggly-auth-phone-modal__input:focus {
    border-color: #031926;
    box-shadow: none;
}

.giggly-auth-phone-modal__btn,
.giggly-auth-phone-modal #authPhoneSendBtn,
.giggly-auth-phone-modal #authPhoneVerifyBtn,
.giggly-auth-phone-modal .auth-button {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 2.5px solid #031926 !important;
    border-radius: 12px !important;
    background: var(--brand-btn-bg, #468189) !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: var(--font-sans, 'League Spartan', sans-serif) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
    -webkit-tap-highlight-color: transparent;
}

.giggly-auth-phone-modal__btn:hover:not(:disabled),
.giggly-auth-phone-modal #authPhoneSendBtn:hover:not(:disabled),
.giggly-auth-phone-modal #authPhoneVerifyBtn:hover:not(:disabled) {
    background: var(--brand-btn-bg, #468189) !important;
    filter: brightness(1.05) !important;
    transform: none !important;
}

.giggly-auth-phone-modal__btn:disabled,
.giggly-auth-phone-modal #authPhoneSendBtn:disabled,
.giggly-auth-phone-modal #authPhoneVerifyBtn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.giggly-auth-phone-modal__wordmark {
    display: block;
    width: min(174px, 46vw);
    height: auto;
    margin: 36px auto 18px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    image-rendering: auto;
    shape-rendering: geometricPrecision;
    /* Never fall back to Londrina / font wordmark styling */
    font-size: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Stale text wordmarks from older modal markup must not render as Londrina */
.giggly-auth-phone-modal__wordmark:not(img) {
    display: none !important;
}

.giggly-auth-phone-modal__hint {
    margin: 0;
    max-width: 340px;
    font-family: 'League Spartan', sans-serif !important;
    font-size: 0.78rem;
    font-weight: 400 !important;
    font-style: normal;
    font-synthesis: none;
    letter-spacing: 0.01em;
    line-height: 1.45;
    color: #031926;
    text-align: center;
}

.giggly-auth-phone-modal__hint,
.giggly-auth-phone-modal__hint a,
.giggly-auth-phone-modal__link {
    font-family: 'League Spartan', sans-serif !important;
    font-weight: 400 !important;
    font-synthesis: none;
}

.giggly-auth-phone-modal__link {
    color: var(--brand-teal, #77aca2) !important;
    text-decoration: none;
}

.giggly-auth-phone-modal__link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

:root[data-theme='dark'] .modal.giggly-auth-phone-modal,
:root[data-theme='dark'] .giggly-auth-phone-modal .giggly-auth-phone-modal__sheet {
    background: #ffffff !important;
    color: #031926;
}

/* Avatar crop (profile icon): square stage, circular guide, pan / pinch / wheel */
.modal.giggly-avatar-crop-modal {
    z-index: 12160;
    padding: max(12px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
    align-items: center;
    justify-content: center;
}

.giggly-avatar-crop-modal__sheet {
    max-width: 420px;
    width: 100%;
    margin: auto;
    background: var(--bg);
    color: var(--text);
    border-radius: 16px;
    padding: 18px 18px 20px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
    box-sizing: border-box;
}

.giggly-avatar-crop-modal__title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #0f172a;
    color: #0f172a;
    text-transform: none;
    letter-spacing: normal;
}

:root[data-theme='dark'] .giggly-avatar-crop-modal__title {
    -webkit-text-fill-color: #f8fafc;
    color: #f8fafc;
}

.giggly-avatar-crop-modal__hint {
    margin: 0 0 14px;
    font-size: 0.86rem;
    line-height: 1.35;
    color: #64748b;
    text-align: center;
}

.giggly-avatar-crop-modal__stage-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.giggly-avatar-crop-modal__stage {
    position: relative;
    overflow: hidden;
    --crop-size: min(360px, min(88vw, 65vh));
    width: var(--crop-size);
    height: var(--crop-size);
    background: #0f172a;
    border-radius: 12px;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.giggly-avatar-crop-modal__pan {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.giggly-avatar-crop-modal__pan img {
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

.giggly-avatar-crop-modal__ring {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.92), 0 0 0 9999px rgba(0, 0, 0, 0.45);
}

.giggly-avatar-crop-modal__actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
}

.giggly-avatar-crop-modal__btn {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.giggly-avatar-crop-modal__btn--cancel {
    background: color-mix(in srgb, var(--text) 8%, transparent);
    color: #64748b;
}

.giggly-avatar-crop-modal__btn--save {
    background: var(--accent-blue, #77ACA2f);
    color: #fff;
}

/* Header/cover crop (artist channel): large canvas, full image, crop grid overlay */
.modal.giggly-header-crop-modal {
    z-index: 12160;
    padding: max(8px, env(safe-area-inset-top)) 8px max(12px, env(safe-area-inset-bottom));
    align-items: center;
    justify-content: center;
    overscroll-behavior: none;
    touch-action: none;
}

.giggly-header-crop-modal__sheet {
    max-width: min(840px, 96vw);
    width: 100%;
    margin: auto;
    background: var(--bg);
    border-radius: 16px;
    padding: 16px 14px 18px;
    box-sizing: border-box;
    max-height: calc(100dvh - 16px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.giggly-header-crop-modal__title {
    margin: 0 0 6px;
    font-size: 1.12rem;
    font-weight: 800;
    text-align: center;
}

.giggly-header-crop-modal__hint {
    margin: 0 0 12px;
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
    color: var(--text-secondary, #64748b);
}

.giggly-header-crop-modal__stage-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 14px;
}

.giggly-header-crop-modal__canvas {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #1e293b;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: grab;
}

.giggly-header-crop-modal__canvas:active {
    cursor: grabbing;
}

.giggly-header-crop-modal__pan {
    position: absolute;
    left: 50%;
    top: 50%;
    will-change: transform;
}

.giggly-header-crop-modal__pan img {
    display: block;
    max-width: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

.giggly-header-crop-modal__frame {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 4px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.giggly-header-crop-modal__grid {
    position: absolute;
    inset: 0;
    border-radius: 2px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.38) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.38) 1px, transparent 1px);
    background-size: calc(100% / 3) 100%, 100% calc(100% / 3);
    opacity: 0.85;
}

.giggly-header-crop-modal__actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
}

.giggly-header-crop-modal__btn {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.giggly-header-crop-modal__btn--cancel {
    background: color-mix(in srgb, var(--text) 8%, transparent);
    color: #64748b;
}

.giggly-header-crop-modal__btn--save {
    background: var(--accent-blue, #77ACA2f);
    color: #fff;
}

/* Settings: full-screen preview of profile photo */
.modal.giggly-user-settings-avatar-preview {
    z-index: 12170;
    padding: max(12px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
}

.giggly-user-settings-avatar-preview__close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.giggly-user-settings-avatar-preview__frame {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.giggly-user-settings-avatar-preview__img {
    max-width: min(92vw, 720px);
    max-height: min(85vh, 720px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   Headline / Support Artist fields (artists DB + Spotify)
   ============================================================ */

.artist-title-add-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    border: none;
    border-radius: 8px;
    background: #000;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.add-event-genre-mode-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.add-event-genre-mode-row .artist-title-add-btn {
    margin-top: 0;
}

.artist-title-add-btn.is-selected,
.artist-title-add-btn[aria-pressed='true'] {
    outline: 2px solid var(--accent-pink, #77ACA2);
    outline-offset: 2px;
}

.artist-title-add-btn:active {
    opacity: 0.85;
}

.artist-title-add-btn[hidden] {
    display: none !important;
}

.add-event-genre-mode-row[hidden] {
    display: none !important;
}

:root[data-theme='dark'] .artist-title-add-btn {
    background: #fff;
    color: #000;
}

/* Suggestion rows: icon + name + type column + USE */
.artist-suggest-list__item {
    gap: 10px;
}

.artist-suggest-list__icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--text) 10%, transparent);
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.artist-suggest-list__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artist-suggest-list__type {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text) 60%, transparent);
    min-width: 42px;
    text-align: right;
}

/* Saved artist rows below the field */
.artist-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-right: 20px;
}

.artist-rows:empty {
    display: none;
}

.artist-row {
    position: relative;
    border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.artist-row--pending {
    opacity: 0.7;
}

.artist-row--type-missing {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px #dc2626;
}

.artist-row__main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.artist-row__icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--text) 10%, transparent);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.artist-row__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artist-row__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artist-row__socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.artist-row__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.artist-row__admin-checked {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0 10px 10px;
}

.artist-row__admin-checked-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}

.artist-row__admin-checked-date {
    font-size: 11px;
    color: var(--text-muted, #6b7280);
    line-height: 1;
    white-space: nowrap;
}

.artist-row__admin-checked-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.artist-row__admin-checked-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.artist-row__admin-checked-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.artist-row__admin-checked-tick {
    display: block;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 1.5px solid color-mix(in srgb, var(--text) 28%, transparent);
    border-radius: 4px;
    background: var(--bg);
    pointer-events: none;
}

.artist-row__admin-checked-input:checked + .artist-row__admin-checked-tick {
    border-color: var(--text);
    background: var(--text);
}

.artist-row__admin-checked-input:checked + .artist-row__admin-checked-tick::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    margin: 1px auto 0;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.artist-row__admin-checked--claimed .artist-row__admin-checked-control {
    cursor: default;
}

.artist-row__admin-checked-tick--on {
    border-color: var(--text);
    background: var(--text);
}

.artist-row__admin-checked-tick--on::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    margin: 1px auto 0;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.artist-row__genres-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.artist-row__genres-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.artist-row__city-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 10px 12px;
    margin-top: 4px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--text) 4%, transparent);
}

.artist-row__city-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 0 0 auto;
}

.artist-row__city-value {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

.artist-row__city-value--empty {
    font-weight: 500;
    color: var(--text-muted, #9ca3af);
    font-style: italic;
}

.artist-row__city-edit {
    margin-left: 2px;
}

.artist-row__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.artist-row > .artist-row__admin-checked {
    padding: 0 10px 10px;
}

.artist-row__footer .artist-row__spotify-btn--unlink {
    margin-left: auto;
}

.artist-row__venue-import-staging {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent-purple, #468189) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-purple, #468189) 28%, transparent);
}

.artist-row__staging-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

.artist-row__staging-badge--existing {
    background: color-mix(in srgb, var(--accent-blue, #77ACA2f) 18%, transparent);
    color: var(--accent-blue, #77ACA2f);
}

.artist-row__staging-badge--new {
    background: color-mix(in srgb, var(--accent-pink, #77ACA2) 16%, transparent);
    color: var(--accent-pink, #77ACA2);
}

.artist-row__staging-accept-btn {
    margin-left: auto;
}

.artist-row__grabber {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 2;
    transform: translate(50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
    border-radius: 8px;
    background: var(--bg, #ffffff);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--text) 10%, transparent);
    color: color-mix(in srgb, var(--text) 45%, transparent);
    touch-action: none;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

:root[data-theme='dark'] .artist-row__grabber {
    background: var(--bg, #1a0f2e);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.artist-row__grabber:active:not(:disabled) {
    cursor: grabbing;
    color: color-mix(in srgb, var(--text) 70%, transparent);
    background: color-mix(in srgb, var(--text) 6%, var(--bg, #ffffff));
}

.artist-row__grabber--disabled,
.artist-row__grabber:disabled {
    opacity: 0.35;
    cursor: default;
}

.artist-row__grabber-icon {
    display: block;
    pointer-events: none;
}

.artist-row--dragging {
    position: relative;
    z-index: 3;
    opacity: 0.92;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--text) 18%, transparent);
}

.artist-row--dragging .artist-row__grabber {
    cursor: grabbing;
    color: color-mix(in srgb, var(--text) 70%, transparent);
    z-index: 4;
}

.artist-row__spotify {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.artist-row__spotify svg,
.artist-row__spotify .giggly-platform-icon {
    width: 20px;
    height: 20px;
}

.artist-row__spotify .giggly-platform-icon {
    --giggly-platform-icon-size: 20px;
}

.artist-row__busy {
    flex: 0 0 auto;
    font-size: 12px;
    color: color-mix(in srgb, var(--text) 55%, transparent);
    font-style: italic;
}

.artist-row__remove {
    flex: 0 0 auto;
    margin-left: auto;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 8%, transparent);
    color: var(--text);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.artist-row__remove:active {
    opacity: 0.8;
}

/* Rename pencil on rows the user can manage (staff or just-created). */
.artist-row__rename {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 8%, transparent);
    color: var(--text);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.artist-row__rename:active {
    opacity: 0.8;
}

.artist-row__genres {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.artist-row__genre-pill {
    font-size: 0.75rem;
    padding: 3px 9px;
}

.artist-row__genre-pill--auto {
    opacity: 0.72;
    color: color-mix(in srgb, var(--text) 58%, transparent);
    background: color-mix(in srgb, var(--text) 8%, transparent);
    border-color: color-mix(in srgb, var(--text) 22%, transparent);
}

.artist-row__reject-genres-btn {
    flex: 0 0 auto;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    border: 1px solid color-mix(in srgb, #dc2626 55%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, #dc2626 10%, transparent);
    color: #dc2626;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.artist-row__reject-genres-btn:active {
    opacity: 0.85;
}

:root[data-theme='dark'] .artist-row__reject-genres-btn {
    color: #f87171;
    border-color: color-mix(in srgb, #f87171 55%, transparent);
    background: color-mix(in srgb, #f87171 12%, transparent);
}

.artist-row__type {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid color-mix(in srgb, var(--text) 30%, transparent);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
}

.artist-row--type-missing .artist-row__type {
    border-color: #dc2626;
    color: #dc2626;
}

/* Link / unlink Spotify on an artist row */
.artist-row__spotify-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    border: 1px solid color-mix(in srgb, var(--text) 35%, transparent);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.artist-row__spotify-btn svg,
.artist-row__spotify-btn .giggly-platform-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.artist-row__spotify-btn .giggly-platform-icon {
    --giggly-platform-icon-size: 18px;
}

.artist-row__spotify-btn:active {
    opacity: 0.8;
}

.artist-row__spotify-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.artist-row__spotify-btn--unlink {
    border-color: color-mix(in srgb, #dc2626 60%, transparent);
    color: #dc2626;
}

.artist-row__spotify-btn--check {
    border-color: #d97706;
    color: #b45309;
    background: color-mix(in srgb, #f59e0b 12%, transparent);
}

:root[data-theme='dark'] .artist-row__spotify-btn--check {
    color: #fbbf24;
}

/* Spotify/Mixcloud/social link modals.
   Pin near the top (not vertically centered) so paste/search fields stay above
   the software keyboard on phones. Small per-service sheets stay short; the
   Edit Socials hub (`.artist-social-links-modal`) stays near full height below. */
.artist-spotify-modal {
    position: fixed;
    top: max(8px, env(safe-area-inset-top, 0px));
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    margin: 0;
    width: min(440px, calc(100vw - 32px));
    height: fit-content;
    max-height: min(58dvh, 58vh, 520px);
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--text) 15%, transparent);
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    overscroll-behavior: contain;
}

/* While typing, keep small sheets even shorter so the focused field clears the IME. */
.artist-spotify-modal:not(.artist-social-links-modal):focus-within {
    max-height: min(48dvh, 48vh, 420px);
}

/* [open] keeps the UA's display:none when closed. */
.artist-spotify-modal[open] {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.artist-spotify-modal::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.artist-spotify-modal__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.artist-spotify-modal__title {
    flex: 1 1 auto;
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

.artist-spotify-modal__close {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 8%, transparent);
    color: var(--text);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.artist-spotify-modal__hint {
    margin: 8px 0 12px;
    font-size: 12.5px;
    color: color-mix(in srgb, var(--text) 65%, transparent);
}

.artist-spotify-modal__current {
    margin: 10px 0 4px;
}

.artist-spotify-modal__current-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text) 55%, transparent);
    margin-bottom: 6px;
}

.artist-spotify-modal__subhead {
    margin: 14px 0 8px;
    font-size: 13px;
    font-weight: 700;
}

.artist-spotify-modal__use-custom-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 6px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.artist-spotify-modal__use-custom-toggle input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.artist-spotify-modal__field-group--disabled {
    opacity: 0.45;
    /* Keep pointer-events so clicks do not fall through to <dialog> (backdrop close). */
}

.artist-spotify-modal__detail--muted {
    opacity: 0.7;
    font-size: 12px;
}

.artist-spotify-modal__search {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.artist-spotify-modal__search input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--text) 20%, transparent);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
}

.artist-spotify-modal__search button {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: var(--accent-purple, #468189);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.artist-spotify-modal__remove {
    background: #b91c1c;
}

/* Green tick on a social/streaming badge whose link came from a verified
   source (ticket page, event description, artist's own linktree, manual). */
.artist-link--verified {
    position: relative;
}

.artist-link-tick {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    line-height: 12px;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 0 0 1.5px var(--bg);
}

.artist-spotify-modal__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    font-size: 13px;
}

.artist-spotify-modal__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    border-radius: 10px;
}

.artist-spotify-modal__icon {
    flex: 0 0 auto;
}

.artist-spotify-modal__info {
    flex: 1 1 auto;
    min-width: 0;
}

.artist-spotify-modal__name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artist-spotify-modal__detail {
    font-size: 11.5px;
    color: color-mix(in srgb, var(--text) 60%, transparent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artist-spotify-modal__check {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #1DB954;
    text-decoration: none;
}

.artist-spotify-modal__check svg {
    width: 16px;
    height: 16px;
}

.artist-spotify-modal__use {
    flex: 0 0 auto;
}

.artist-bio-modal {
    width: min(640px, calc(100vw - 32px));
    max-height: min(58dvh, 58vh, 520px);
}

.artist-bio-modal:focus-within {
    max-height: min(48dvh, 48vh, 420px);
}

.artist-bio-modal__textarea {
    width: 100%;
    min-height: 280px;
    max-height: min(52vh, 480px);
    margin: 12px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--border, #dee2e6);
    border-radius: 10px;
    font: inherit;
    line-height: 1.45;
    resize: vertical;
    box-sizing: border-box;
    background: var(--bg, #fff);
    color: var(--text, #212529);
}

:root[data-theme='dark'] .artist-bio-modal__textarea {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
}

.artist-bio-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.artist-row__biog-btn {
    flex: 0 1 auto;
    white-space: nowrap;
}

/* Social links hub modal (create/edit event artist rows).
   Stay near full viewport height under the top pin; list scrolls so fields
   can move above the keyboard without shrinking the whole sheet. */
.artist-spotify-modal.artist-social-links-modal,
.artist-spotify-modal.artist-social-links-modal:focus-within {
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - max(8px, env(safe-area-inset-top, 0px)) - 12px);
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top, 0px)) - 12px);
    padding: 20px;
}

.artist-social-links-modal__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding: 4px 2px 8px;
}

.artist-social-links-modal__section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 2px;
}

.artist-social-links-modal__section-head .artist-social-links-modal__section-title {
    margin: 4px 0 0;
}

.artist-social-links-modal__harvest-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.artist-social-links-modal__harvest-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

html[data-theme='dark'] .artist-social-links-modal__harvest-btn {
    background: #ffffff;
    color: #111827;
}

.artist-social-links-modal__harvest-btn:active:not(:disabled) {
    opacity: 0.88;
}

.artist-social-links-modal__harvest-btn:disabled {
    cursor: default;
    opacity: 0.72;
}

.artist-social-links-modal__harvest-btn--remove {
    background: #111827;
    color: #ffffff;
}

html[data-theme='dark'] .artist-social-links-modal__harvest-btn--remove {
    background: #ffffff;
    color: #111827;
}

.artist-social-links-modal__harvest-empty-msg {
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #92400e;
}

html[data-theme='dark'] .artist-social-links-modal__harvest-empty-msg {
    color: #fbbf24;
}

.artist-social-links-modal__harvest-deep-msg {
    margin: 0;
    padding: 0;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-secondary, #64748b);
    text-align: left;
}

html[data-theme='dark'] .artist-social-links-modal__harvest-deep-msg {
    color: var(--text-secondary, #94a3b8);
}

.artist-social-links-modal__harvest-spinner {
    flex-shrink: 0;
}

.artist-social-links-modal__section-title {
    margin: 4px 0 -4px;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.artist-social-links-modal__section-title:not(:first-child) {
    margin-top: 12px;
}

.artist-social-links-modal__row {
    display: grid;
    grid-template-columns: minmax(120px, 140px) auto 1fr;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 0;
}

.artist-social-links-modal__platform {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.artist-social-links-modal__platform-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.artist-social-links-modal__platform .giggly-platform-icon {
    flex-shrink: 0;
    --giggly-platform-icon-size: 22px;
}

html[data-theme='dark'] .giggly-platform-icon--amazon-music {
    background: color-mix(in srgb, var(--text) 14%, transparent);
}

.giggly-platform-icon--musicbrainz {
    box-sizing: border-box;
    border: 1px solid #9ca3af;
    background: #f3f4f6;
}

.giggly-platform-icon--musicbrainz .giggly-platform-icon__img {
    transform: scale(1);
}

html[data-theme='dark'] .giggly-platform-icon--musicbrainz {
    border-color: #9ca3af;
    background: color-mix(in srgb, var(--text) 12%, transparent);
}

.event-card-v2__headline-artist-link .giggly-platform-icon--musicbrainz,
.view-event-page__artist-list .event-card-v2__headline-artist-link .giggly-platform-icon--musicbrainz {
    box-sizing: border-box;
    border: 1px solid #9ca3af;
    background: #f3f4f6;
    border-radius: 4px;
}

html[data-theme='dark'] .event-card-v2__headline-artist-link .giggly-platform-icon--musicbrainz,
html[data-theme='dark'] .view-event-page__artist-list .event-card-v2__headline-artist-link .giggly-platform-icon--musicbrainz {
    border-color: #9ca3af;
    background: color-mix(in srgb, var(--text) 12%, transparent);
}

.artist-social-links-modal__action {
    justify-self: start;
    padding: 8px 14px;
    min-height: 36px;
}

.artist-social-links-modal__row .artist-row__spotify-btn {
    padding: 8px 14px;
    min-height: 36px;
}

.artist-social-links-modal__link {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    word-break: break-word;
}

.artist-social-links-modal__link:hover {
    text-decoration: underline;
}

.artist-row__spotify-btn--social-hub {
    font-weight: 600;
}

/* Spotify-imported genres flagged light green in the genre picker */
.add-event-genre-pick-pill--spotify {
    background: #d9f5e3;
    border-color: #1DB954;
}

:root[data-theme='dark'] .add-event-genre-pick-pill--spotify {
    background: rgba(29, 185, 84, 0.18);
    border-color: #1DB954;
    color: #c8f0d6;
}

/* ============================================================
   View event page: artist cards (bordered panel like feed cards)
   ============================================================ */

.view-event-page__artist-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.view-event-page__artist-card.event-card-v2__headline-artist {
    margin-top: 0;
}

.view-event-page__artist-list .event-card-v2__headline-artist-panel {
    padding: 8px 10px;
}

.view-event-page__artist-list .event-card-v2__headline-artist-top--listen .view-event-page__artist-toptrack-btn {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    margin: 0;
}

.view-event-page__artist-list .event-card-v2__headline-artist-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 4px;
    min-height: 32px;
}

.view-event-page__artist-list .event-card-v2__headline-artist-link {
    min-height: 32px;
    padding: 4px 2px;
}

.view-event-page__artist-list .event-card-v2__headline-artist-link svg,
.view-event-page__artist-list .event-card-v2__headline-artist-link .giggly-platform-icon {
    width: 22px;
    height: 22px;
}

.view-event-page__artist-list .event-card-v2__headline-artist-link .giggly-platform-icon {
    --giggly-platform-icon-size: 22px;
}

.view-event-page__artist-card > .view-event-page__artist-embed {
    margin-top: 8px;
}

/* Square streaming / social PNG icons — crop asset padding so logos match visually */
.giggly-platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--giggly-platform-icon-size, 20px);
    height: var(--giggly-platform-icon-size, 20px);
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 4px;
    line-height: 0;
}

.giggly-platform-icon__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(var(--giggly-platform-icon-crop, 1.14));
    transform-origin: center center;
}

.giggly-platform-icon__svg {
    display: block;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.view-event-page__artist-toptrack-btn:active {
    opacity: 0.8;
}

.view-event-page__artist-toptrack-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid color-mix(in srgb, var(--text) 35%, transparent);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.view-event-page__artist-toptrack-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.view-event-page__artist-toptrack-btn.is-open {
    border-color: #1DB954;
    color: #1DB954;
}

/* Reserve the player's final height up front so the iframe is injected into a settled
   layout (Android Chrome mis-places tap regions otherwise). No position/z-index here:
   extra stacking contexts worsen cross-origin iframe hit-testing on Android. */
.view-event-page__artist-embed {
    margin-top: 6px;
    min-height: 152px;
}

/* 152px = Spotify compact layout; smaller heights break the player's controls on Android */
.view-event-page__artist-embed iframe {
    width: 100%;
    max-width: 420px;
    height: 152px;
    border: 0;
    border-radius: 12px;
    display: block;
}

.view-event-page__artist-embed--mixcloud {
    min-height: var(--giggly-mixcloud-embed-h, 180px);
}

.view-event-page__artist-embed--mixcloud iframe {
    height: var(--giggly-mixcloud-embed-h, 180px);
}

.artist-about-read-modal {
    width: min(640px, calc(100vw - 32px));
    max-height: min(88vh, 820px);
}

.artist-about-read-modal__body {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-y: auto;
    max-height: min(60vh, 520px);
    color: var(--text, #212529);
}

/* Same look as genre pills elsewhere (white bg, slate border/text), sized for the artist row */
.view-event-page__artist-genre-pill,
.event-card-v2__headline-artist-genre-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 24px;
    min-height: 24px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #94a3b8;
    -webkit-text-fill-color: #94a3b8;
    white-space: nowrap;
}

:root[data-theme='dark'] .view-event-page__artist-genre-pill,
:root[data-theme='dark'] .event-card-v2__headline-artist-genre-pill {
    background: var(--bg);
    border-color: #71717a;
    color: #a1a1aa;
    -webkit-text-fill-color: #a1a1aa;
}

/* Event title: 2-row textarea so longer titles stay readable (newlines stripped in JS) */
.add-event-input--title {
    display: block;
    resize: none;
    overflow-y: auto;
    min-height: calc(2 * 1.45em + 26px);
}

/* Unverified artist/DJ channel — ownership hint at bottom of Info tab (view only) */
body.artist-channel-page.pc--edit-mode #acUnverifiedFooter,
body.artist-channel-page.pc--edit-mode #acPanelInfo .ac-unverified-footer {
    display: none !important;
}

body.artist-channel-page #acPanelInfo .ac-unverified-footer:not([hidden]) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 140px 20px 48px;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--text) 58%, transparent);
    text-align: center;
}

body.artist-channel-page .ac-unverified-footer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.artist-channel-page .ac-unverified-footer strong {
    font-weight: 600;
    color: color-mix(in srgb, var(--text) 72%, transparent);
}

/* Artists / DJs landing — create profile flow (acp-modal) */
.promoter-channels-page__helper-link {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.acp-modal {
    position: fixed;
    top: max(12px, env(safe-area-inset-top, 0px));
    left: 50%;
    right: auto;
    bottom: auto;
    margin: 0;
    transform: translateX(-50%);
    width: min(560px, calc(100vw - 24px));
    height: min(calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)), 720px);
    max-height: none;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--text) 15%, transparent);
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    z-index: 12050;
}

.acp-modal[open] {
    display: flex;
    flex-direction: column;
}

.acp-modal::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.acp-modal__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 16px 16px;
}

.acp-modal__inner--search {
    height: 100%;
}

.acp-modal__inner--view {
    height: 100%;
    padding-bottom: 12px;
}

.acp-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 8%, transparent);
    color: var(--text);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.acp-modal__title {
    margin: 0 32px 10px 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.acp-modal__lead {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: color-mix(in srgb, var(--text) 72%, transparent);
}

.acp-modal__hint {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.45;
    color: color-mix(in srgb, var(--text) 58%, transparent);
}

.acp-modal__field {
    display: block;
    margin: 0 0 12px;
}

.acp-modal__label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
}

.acp-modal__input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

.acp-modal__search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-bottom: 10px;
}

.acp-modal__input--search {
    flex: 1 1 auto;
    min-width: 0;
}

.acp-modal__new-btn {
    flex-shrink: 0;
    padding: 8px 10px;
    font-size: 10px;
    white-space: nowrap;
}

.acp-modal__results-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.acp-modal__results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.acp-modal__result {
    align-items: center;
}

.acp-modal__result-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.acp-modal__result-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acp-modal__result-ig {
    font-size: 12px;
    color: color-mix(in srgb, var(--text) 58%, transparent);
}

.acp-modal__result-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
}

.acp-modal__na {
    flex-shrink: 0;
    padding: 5px 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    border-radius: 5px;
    background: color-mix(in srgb, var(--text) 10%, transparent);
    color: color-mix(in srgb, var(--text) 55%, transparent);
    white-space: nowrap;
}

.acp-modal__err {
    margin: 8px 0 0;
    font-size: 13px;
    color: #e11d48;
    flex-shrink: 0;
}

.acp-modal__action {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px 16px;
    font-size: 12px;
    text-align: center;
}

.acp-modal__action--secondary {
    opacity: 0.92;
}

.acp-modal__success-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.acp-modal__iframe {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    border-radius: 10px;
    background: var(--bg);
}

.acp-modal--view {
    height: min(calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)), 820px);
}

/* Admin tab — profile claim + signup notifications (event-card width) */
#eventsContainer .admin-feed-notification.event-card,
.giggly-friends-chat-drawer .admin-feed-notification.event-card,
.admin-feed-notification--chat.event-card {
    padding: 14px 16px;
    margin: 0 0 14px;
    cursor: default;
}

.giggly-friends-chat-drawer .admin-feed-notification--chat {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--text, #111) 12%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg, #fff) 92%, var(--text, #111) 4%);
}

.giggly-friends-chat-drawer .admin-feed-notification--chat .admin-feed-notification__detail {
    white-space: pre-wrap;
    word-break: break-word;
}

.giggly-friends-chat-drawer .admin-feed-notification--chat .giggly-system-msg__cta {
    margin-top: 10px;
}

/*
 * All chat notice cards (welcome / signup / claim / group invite):
 * full-width text; Dismiss under the copy, bottom-right — never a side column.
 */
.giggly-friends-chat-drawer .admin-feed-notification--chat .admin-feed-notification__inner,
.admin-feed-notification--chat .admin-feed-notification__inner,
.giggly-friends-chat-drawer .admin-feed-notification__inner--stack,
.admin-feed-notification--chat .admin-feed-notification__inner--stack {
    display: block !important;
}

.giggly-friends-chat-drawer .admin-feed-notification--chat .admin-feed-notification__body,
.admin-feed-notification--chat .admin-feed-notification__body {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    min-width: 0 !important;
}

.giggly-friends-chat-drawer .admin-feed-notification--chat .admin-feed-notification__detail,
.admin-feed-notification--chat .admin-feed-notification__detail {
    width: 100% !important;
    max-width: 100% !important;
}

.giggly-friends-chat-drawer .admin-feed-notification__actions,
.admin-feed-notification--chat .admin-feed-notification__actions {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
    margin-top: 12px;
}

.admin-feed-notification__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-feed-notification__body {
    flex: 1;
    min-width: 0;
}

.admin-feed-notification__title {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-purple);
}

.admin-feed-notification__detail {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text);
}

.admin-feed-notification__meta {
    margin: 6px 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: color-mix(in srgb, var(--text) 68%, transparent);
}

.admin-feed-notification__preview {
    font-size: 0.88em;
    color: color-mix(in srgb, var(--text) 58%, transparent);
}

.admin-feed-notification .event-card-v2__admin-review-dismiss {
    flex-shrink: 0;
    margin-top: 2px;
}


.festival-pro-form__fields[hidden] { display: none !important; }
.festival-pro-form__sub-list[hidden] { display: none !important; }
.festival-pro-form__sub-row { margin-bottom: 10px; }
.festival-pro-form__add-row { margin-top: 8px; }

/* ── "Genres I don't want to see" (Settings) ──────────────────────────────── */
.giggly-user-settings-hidden-genres {
    margin-top: 4px;
}

.giggly-user-settings-hidden-genres__row,
.modal.giggly-user-settings-modal .giggly-user-settings-hidden-genres__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.giggly-user-settings-hidden-genres__btn,
.modal.giggly-user-settings-modal button.giggly-user-settings-hidden-genres__btn {
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1.5px solid #111827;
    background: transparent;
    color: #111827;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.giggly-user-settings-hidden-genres__btn:hover,
.giggly-user-settings-hidden-genres__btn:active,
.modal.giggly-user-settings-modal button.giggly-user-settings-hidden-genres__btn:hover,
.modal.giggly-user-settings-modal button.giggly-user-settings-hidden-genres__btn:active {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

:root[data-theme='dark'] .giggly-user-settings-hidden-genres__btn,
:root[data-theme='dark'] .modal.giggly-user-settings-modal button.giggly-user-settings-hidden-genres__btn {
    border-color: #e8e4ed;
    color: #e8e4ed;
}

:root[data-theme='dark'] .giggly-user-settings-hidden-genres__btn:hover,
:root[data-theme='dark'] .giggly-user-settings-hidden-genres__btn:active,
:root[data-theme='dark'] .modal.giggly-user-settings-modal button.giggly-user-settings-hidden-genres__btn:hover,
:root[data-theme='dark'] .modal.giggly-user-settings-modal button.giggly-user-settings-hidden-genres__btn:active {
    background: #e8e4ed;
    border-color: #e8e4ed;
    color: #1a0f2e;
}

.giggly-user-settings-hidden-genres__info,
.modal.giggly-user-settings-modal button.giggly-user-settings-hidden-genres__info {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid #111827;
    background: transparent;
    color: #111827;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

:root[data-theme='dark'] .giggly-user-settings-hidden-genres__info,
:root[data-theme='dark'] .modal.giggly-user-settings-modal button.giggly-user-settings-hidden-genres__info {
    border-color: #e8e4ed;
    color: #e8e4ed;
}

.giggly-user-settings-hidden-genres__help {
    margin: 10px 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--muted, #6b7280);
}

.giggly-user-settings-hidden-genres__help[hidden] {
    display: none;
}

.giggly-user-settings-hidden-genres__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.giggly-user-settings-hidden-genres__list[hidden] {
    display: none;
}

.giggly-user-settings-hidden-genres__chip,
.giggly-hidden-genres__chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

:root[data-theme='dark'] .giggly-user-settings-hidden-genres__chip,
:root[data-theme='dark'] .giggly-hidden-genres__chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
    color: #cbd2dd;
}

/* Picker modal */
.giggly-hidden-genres-modal {
    z-index: 12220;
}

.giggly-hidden-genres-modal__sheet {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: 14px;
    width: calc(100% - 32px);
    max-width: 460px;
    max-height: 82vh;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.giggly-hidden-genres-modal__head {
    position: relative;
    padding: 20px 20px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme='dark'] .giggly-hidden-genres-modal__head {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.giggly-hidden-genres-modal__title {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text);
}

.giggly-hidden-genres-modal__subtitle {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--muted, #6b7280);
}

.giggly-hidden-genres-modal__head .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
}

.giggly-hidden-genres-modal__body {
    padding: 16px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.giggly-hidden-genres-modal__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.giggly-hidden-genres-modal__empty {
    margin: 4px 0;
    font-size: 0.9rem;
    color: var(--muted, #6b7280);
}

.giggly-hidden-genres-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.giggly-hidden-genres-pill.is-selected {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

:root[data-theme='dark'] .giggly-hidden-genres-pill {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
    color: #cbd2dd;
}

:root[data-theme='dark'] .giggly-hidden-genres-pill.is-selected {
    background: #f4f4f5;
    border-color: #f4f4f5;
    color: #111827;
}

.giggly-hidden-genres-modal__actions {
    display: flex;
    gap: 10px;
    padding: 14px 20px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme='dark'] .giggly-hidden-genres-modal__actions {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.giggly-hidden-genres-modal__btn {
    flex: 1 1 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-hidden-genres-modal__btn--secondary {
    background: transparent;
    border: 1.5px solid var(--text);
    color: var(--text);
}

.giggly-hidden-genres-modal__btn--save {
    background: var(--text);
    border: 1.5px solid var(--text);
    color: var(--bg);
}

/* + Genre popover — favourite filter actions at top */
.filter-pinned-genre-popover__title {
    margin: 0;
    padding: 0 36px 0 2px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    flex: 1 1 auto;
    min-width: 0;
}

.filter-pinned-genre-popover__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    flex-shrink: 0;
}

.filter-pinned-genre-popover__close {
    position: absolute;
    top: -4px;
    right: -2px;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.filter-pinned-genre-popover__close:hover {
    color: #6b7280;
}

.filter-pinned-genre-popover__close:active {
    opacity: 0.85;
}

.filter-pinned-genre-popover__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.filter-pinned-genre-popover__current {
    display: flex;
    justify-content: flex-start;
}

.filter-pinned-genre-popover__current[hidden] {
    display: none !important;
}

.filter-pinned-genre-popover__current-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    box-sizing: border-box;
}

.filter-pinned-genre-popover__actions .filter-pinned-category-popover__hide {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.filter-pinned-genre-popover .filter-pinned-category-popover__pills {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    align-content: flex-start;
    margin-top: 8px;
}

:root[data-theme='dark'] .filter-pinned-genre-popover__actions {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.filter-pinned-genre-popover__create-fav-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid var(--border, rgba(0, 0, 0, 0.22));
    background: var(--bg, #fff);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

:root[data-theme='dark'] .filter-pinned-genre-popover__create-fav-btn {
    background: var(--bg);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--text);
}

.filter-pinned-genre-popover__create-fav-btn:hover {
    border-color: #6b7280;
}

.filter-pinned-genre-popover__create-fav-btn:active {
    opacity: 0.92;
}

.filter-pinned-genre-popover__hint {
    margin: 0;
    padding: 0 2px;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 400;
    color: #6b7280;
}

:root[data-theme='dark'] .filter-pinned-genre-popover__hint {
    color: rgba(232, 228, 237, 0.62);
}

/* Favourite genres full-page modal */
.giggly-favourite-genres-modal.modal {
    position: fixed;
    inset: 0;
    z-index: 2147483200;
    padding: 0;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    align-items: stretch;
    justify-content: stretch;
}

:root[data-theme='dark'] .giggly-favourite-genres-modal.modal {
    background: var(--bg, #111);
}

.giggly-favourite-genres-modal.modal.active {
    display: flex;
}

.giggly-favourite-genres-modal__sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
    background: #fff;
    overflow: hidden;
    flex: 1 1 auto;
}

:root[data-theme='dark'] .giggly-favourite-genres-modal__sheet {
    background: var(--bg, #111);
}

body.giggly-favourite-genres-modal-open {
    overflow: hidden;
}

.giggly-favourite-genres-modal__head {
    position: relative;
    flex-shrink: 0;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

:root[data-theme='dark'] .giggly-favourite-genres-modal__head {
    border-bottom-color: rgba(255, 255, 255, 0.12);
    background: var(--bg, #111);
}

.giggly-favourite-genres-modal__title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-right: 40px;
    flex-wrap: nowrap;
}

.giggly-favourite-genres-modal__title-with-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.giggly-favourite-genres-modal__title-row .giggly-favourite-genres-modal__title {
    flex: 0 1 auto;
    min-width: 0;
}

.giggly-favourite-genres-modal__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.giggly-favourite-genres-modal__name-input--title {
    flex: 1 1 140px;
    min-width: 120px;
    max-width: 220px;
    width: auto;
    padding: 8px 10px;
    font-size: 0.95rem;
}

.giggly-favourite-genres-modal__remove-btn {
    width: 100%;
    margin-top: 18px;
    margin-bottom: 0;
    border-width: 2px;
}

.giggly-favourite-genres-modal__remove-btn[hidden] {
    display: none !important;
}

.giggly-favourite-genres-modal__subtitle {
    margin: 12px 0 0;
    font-size: 0.88rem;
    color: var(--muted, #6b7280);
    line-height: 1.4;
}

.giggly-favourite-genres-modal__head .add-event-modal__close {
    position: absolute;
    top: calc(8px + env(safe-area-inset-top, 0px));
    right: 12px;
}

.giggly-favourite-genres-modal__info-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #9ca3af;
    background: #fff;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

:root[data-theme='dark'] .giggly-favourite-genres-modal__info-btn {
    background: var(--bg);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.25);
}

.giggly-favourite-genres-modal__form {
    flex-shrink: 0;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

:root[data-theme='dark'] .giggly-favourite-genres-modal__form {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: var(--bg, #111);
}

.giggly-favourite-genres-modal__name-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted, #6b7280);
    margin-bottom: 6px;
}

.giggly-favourite-genres-modal__name-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}

:root[data-theme='dark'] .giggly-favourite-genres-modal__name-input {
    background: var(--bg);
    border-color: rgba(255, 255, 255, 0.2);
}

.giggly-favourite-genres-modal__selected {
    margin-top: 12px;
}

.giggly-favourite-genres-modal__create-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid #9ca3af;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.giggly-favourite-genres-modal__create-btn--ready {
    border-color: #2563eb;
    color: #2563eb;
}

.giggly-favourite-genres-modal__create-btn--ready:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
}

:root[data-theme='dark'] .giggly-favourite-genres-modal__create-btn {
    background: var(--bg, #111);
    border-color: #6b7280;
    color: #9ca3af;
}

:root[data-theme='dark'] .giggly-favourite-genres-modal__create-btn--ready {
    border-color: #60a5fa;
    color: #93c5fd;
}

.giggly-favourite-genres-modal__create-btn:disabled {
    opacity: 1;
    cursor: default;
}

.giggly-favourite-genres-modal__create-btn:active:not(:disabled) {
    opacity: 0.92;
}

.giggly-favourite-genres-modal__search {
    flex-shrink: 0;
    border-top: none;
    background: #fff;
}

:root[data-theme='dark'] .giggly-favourite-genres-modal__search {
    background: var(--bg, #111);
}

.giggly-favourite-genres-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    background: #fff;
}

:root[data-theme='dark'] .giggly-favourite-genres-modal__body {
    background: var(--bg, #111);
}

.giggly-favourite-genres-modal__section {
    margin-bottom: 18px;
}

.giggly-favourite-genres-modal__section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 14px 0 6px;
}

.giggly-favourite-genres-modal__section:first-child .giggly-favourite-genres-modal__section-head {
    margin-top: 0;
}

.giggly-favourite-genres-modal__section-head .giggly-fav-genre-pick-pill {
    flex-shrink: 0;
}

.giggly-favourite-genres-modal__section-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
}

.giggly-favourite-genres-modal__section:last-child {
    margin-bottom: 0;
}

.giggly-favourite-genres-modal__grid {
    margin-top: 0;
    padding-left: 0;
}

.giggly-favourite-genres-modal__empty {
    margin: 8px 0;
    font-size: 0.9rem;
    color: var(--muted, #6b7280);
}

/* Custom-genre modal pills — idle: white + blue; selected: blue fill + white text */
.giggly-favourite-genres-modal .giggly-fav-genre-pick-pill--master.giggly-fav-genre-pick-pill--idle,
.giggly-favourite-genres-modal .giggly-fav-genre-pick-pill--master.add-event-genre-pick-pill--idle {
    border: 1px solid #2563eb;
    color: #2563eb;
    background: #fff;
}

:root[data-theme='dark'] .giggly-favourite-genres-modal .giggly-fav-genre-pick-pill--master.giggly-fav-genre-pick-pill--idle,
:root[data-theme='dark'] .giggly-favourite-genres-modal .giggly-fav-genre-pick-pill--master.add-event-genre-pick-pill--idle {
    border-color: #60a5fa;
    color: #93c5fd;
    background: var(--bg, #111);
}

.giggly-favourite-genres-modal .giggly-fav-genre-pick-pill--sub.giggly-fav-genre-pick-pill--idle,
.giggly-favourite-genres-modal .giggly-fav-genre-pick-pill--sub.add-event-genre-pick-pill--idle {
    border: 1px solid #9ca3af;
    color: #6b7280;
    background: #fff;
}

:root[data-theme='dark'] .giggly-favourite-genres-modal .giggly-fav-genre-pick-pill--sub.giggly-fav-genre-pick-pill--idle,
:root[data-theme='dark'] .giggly-favourite-genres-modal .giggly-fav-genre-pick-pill--sub.add-event-genre-pick-pill--idle {
    background: var(--bg);
    color: #9ca3af;
    border-color: #9ca3af;
}

.giggly-fav-genre-pick-pill--master.add-event-genre-pick-pill--active,
.giggly-fav-genre-pick-pill--master.giggly-fav-genre-pick-pill--selected {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.giggly-fav-genre-pick-pill--master.add-event-genre-pick-pill--partial,
.giggly-favourite-genres-modal button.giggly-fav-genre-pick-pill--master.add-event-genre-pick-pill--partial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    height: 40px;
    max-height: 40px;
    padding: 0 14px;
    flex-shrink: 0;
    white-space: nowrap;
    border-color: #93c5fd;
    background: #93c5fd;
    color: #fff;
}

:root[data-theme='dark'] .giggly-fav-genre-pick-pill--master.add-event-genre-pick-pill--partial,
:root[data-theme='dark'] .giggly-favourite-genres-modal button.giggly-fav-genre-pick-pill--master.add-event-genre-pick-pill--partial {
    border-color: #60a5fa;
    background: #60a5fa;
    color: #fff;
}

.giggly-fav-genre-pick-pill--sub.add-event-genre-pick-pill--active,
.giggly-fav-genre-pick-pill--sub.giggly-fav-genre-pick-pill--selected {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

:root[data-theme='dark'] .giggly-fav-genre-pick-pill--sub.add-event-genre-pick-pill--active,
:root[data-theme='dark'] .giggly-fav-genre-pick-pill--sub.giggly-fav-genre-pick-pill--selected {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.giggly-fav-genre-pick-pill--master.add-event-genre-pick-pill--active .add-event-genre-pick-pill__remove,
.giggly-fav-genre-pick-pill--sub.add-event-genre-pick-pill--active .add-event-genre-pick-pill__remove,
.giggly-fav-genre-pick-pill--selected .add-event-genre-pick-pill__remove {
    color: inherit;
    opacity: 0.9;
}

.giggly-favourite-genres-modal__info-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

.giggly-favourite-genres-modal__info-overlay[hidden] {
    display: none !important;
}

.giggly-favourite-genres-modal__info-card {
    position: relative;
    width: min(100%, 420px);
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 12px;
    background: var(--bg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.giggly-favourite-genres-modal__info-card .modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
}

.giggly-favourite-genres-modal__info-title {
    margin: 0 28px 10px 0;
    font-size: 1rem;
    color: var(--text);
}

.giggly-favourite-genres-modal__info-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text);
}

/* Friends & Groups page */
body.friends-page #eventsApp {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Match Events: no extra gap under Bar A above the subnav pills. */
body.friends-page .app-header,
body.friends-page #gigglyAppHeaderBar1Mount .app-header {
    margin-bottom: 0;
}

body.friends-page .giggly-friends-tabs {
    position: sticky;
    top: var(--giggly-bar-a-height, 73px);
    z-index: 40;
    flex-shrink: 0;
    background: var(--bg);
    padding-top: 4px;
}

/* Desktop header is 60px (not the mobile 73px fallback) — sticky top must match
   or the tabs are pushed down. */
@media (min-width: 992px) {
    html.giggly-desktop-nav-active body.friends-page .giggly-friends-tabs {
        top: 60px;
        padding-top: 4px;
        padding-bottom: 8px;
    }
}

body.friends-page .giggly-friends-main {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 0;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
body.friends-page.giggly-friends-chat-drawer-open .giggly-friends-main {
    overflow: hidden;
}

/* Pin header + tabs while search is open / keyboard up (results scroll underneath). */
body.friends-page.giggly-friends-search-open .app-header,
body.friends-page.search-bar-keyboard-mode .app-header {
    position: fixed;
    top: var(--search-kb-vv-pad, 0px);
    left: 0;
    right: 0;
    max-width: var(--giggly-chrome-max-width, 840px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    z-index: 2147482600;
    background: var(--bg);
}

body.friends-page.giggly-friends-search-open .giggly-friends-tabs,
body.friends-page.search-bar-keyboard-mode .giggly-friends-tabs {
    position: fixed;
    top: calc(var(--search-kb-vv-pad, 0px) + var(--search-kb-header-h, 72px));
    left: 0;
    right: 0;
    max-width: var(--giggly-chrome-max-width, 840px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    z-index: 2147482500;
    background: var(--bg);
}

body.friends-page.giggly-friends-search-open .giggly-friends-main,
body.friends-page.search-bar-keyboard-mode .giggly-friends-main {
    padding-top: calc(var(--search-kb-header-h, 72px) + var(--search-kb-tabs-h, 48px));
}

/* Reuse profile Following list surface + row styles. */
body.friends-page .giggly-friends-social-surface {
    padding-top: 4px;
}

.giggly-friends-section {
    margin: 0 0 20px;
}

.giggly-friends-section__title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.giggly-friends-empty {
    margin: 0;
    padding: 12px 0 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--muted-text, #6b7280);
}

:root[data-theme='dark'] .giggly-friends-empty {
    color: #94949e;
}

/* Friends page chrome + admin users list */
body.friends-page.app-mode #eventsApp > .bottom-bar,
body.friends-page.app-mode #eventsApp > .controls-bar {
    display: flex !important;
}

body.friends-page .giggly-friends-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 4px;
}

body.friends-page .giggly-friends-groups-list {
    margin-top: 14px;
}

body.friends-page .giggly-friends-section__heading .giggly-friends-section__title {
    margin: 0;
}

.giggly-friends-admin-btn,
.giggly-friends-invite-btn {
    flex-shrink: 0;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    background: transparent;
    color: var(--text);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-friends-invite-btn {
    border-color: color-mix(in srgb, var(--accent-pink, #77ACA2) 55%, transparent);
    color: var(--accent-pink, #77ACA2);
}

/* Groups tab: Create Group — blue text on white */
body.friends-page #gigglyFriendsCreateGroupBtn.giggly-friends-invite-btn {
    border-color: var(--accent-blue, #77ACA2F);
    color: var(--accent-blue, #77ACA2F);
    background: #fff;
    border-radius: 8px;
}

/* Friends tab: Invite Friends — blue text on white */
body.friends-page #gigglyFriendsInviteBtn.giggly-friends-invite-btn {
    border-color: var(--accent-blue, #77ACA2F);
    color: var(--accent-blue, #77ACA2F);
    background: #fff;
    border-radius: 8px;
}

body.friends-page .giggly-friends-group-row {
    position: relative;
    border: 1px solid color-mix(in srgb, var(--text, #111827) 18%, transparent);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    box-sizing: border-box;
    background: var(--bg, #fff);
    align-items: center;
    gap: 10px;
    overflow: visible;
}

body.friends-page .giggly-friends-group-row--has-act {
    padding-right: 64px;
}

body.friends-page .giggly-friends-group-row .pc-member-row__link {
    align-items: center;
    gap: 12px;
    min-height: 0;
    min-width: 0;
    flex: 1;
}

body.friends-page .giggly-friends-group-row__avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    align-self: center;
}

body.friends-page .giggly-friends-group-row .pc-member-row__avatar {
    width: 52px;
    min-width: 52px;
    height: 52px;
    align-self: center;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    overflow: hidden;
}

body.friends-page .giggly-friends-group-row .pc-member-row__avatar-img {
    border-radius: 50%;
}

body.friends-page .giggly-friends-group-row .pc-member-row__main {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

body.friends-page .giggly-friends-group-row__name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

body.friends-page .giggly-friends-group-row__name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.friends-page .giggly-friends-group-private {
    position: absolute;
    right: -5px;
    bottom: -5px;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg, #fff);
    border: 1px solid color-mix(in srgb, var(--text, #111827) 22%, transparent);
    color: #4b5563;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

body.friends-page .giggly-friends-group-private svg {
    width: 11px;
    height: 11px;
    display: block;
}

:root[data-theme='dark'] body.friends-page .giggly-friends-group-private {
    color: #d1d5db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

body.friends-page .giggly-friends-group-row__created {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
}

body.friends-page .giggly-friends-group-creator {
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

body.friends-page .giggly-friends-group-creator:hover {
    text-decoration: underline;
}

:root[data-theme='dark'] body.friends-page .giggly-friends-group-creator {
    color: var(--text, #E8E4ED);
}

body.friends-page .giggly-friends-group-row__act {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    margin: 0;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid color-mix(in srgb, var(--text, #111827) 22%, transparent);
    background: var(--bg, #fff);
    color: var(--text, #031926);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.friends-page .giggly-friends-group-row__act--join {
    border-color: var(--brand-teal, #77aca2);
    background: var(--brand-teal, #77aca2);
    color: var(--brand-white, #fff);
    font-weight: 700;
}

body.friends-page .giggly-friends-group-row__act--leave {
    border-color: color-mix(in srgb, var(--text, #111827) 18%, transparent);
    background: var(--bg, #fff);
    color: #6b7280;
    font-weight: 600;
}

body.friends-page .giggly-friends-group-row__act:disabled {
    opacity: 0.55;
    cursor: default;
}

body.friends-page .giggly-friends-group-row > .giggly-social-badge-btn {
    align-self: center;
    margin-left: 4px;
    flex-shrink: 0;
}

/* Group / User page type badge on header image */
.giggly-page-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    line-height: 1.1;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    pointer-events: none;
}

:root[data-theme='dark'] .giggly-page-type-badge {
    background: rgba(26, 15, 46, 0.9);
    color: var(--text, #E8E4ED);
    border-color: rgba(255, 255, 255, 0.12);
}

.group-page__friends-invite-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 18px 0 12px;
}

.group-page__friends-invite-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text, #111827);
}

.group-page__whatsapp-invite-btn {
    appearance: none;
    flex-shrink: 0;
    border: 1.5px solid var(--accent-blue, #77ACA2F);
    background: #fff;
    color: var(--accent-blue, #77ACA2F);
    border-radius: 8px;
    padding: 7px 11px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.group-page__join-group-btn,
.group-page__invite-friends-row-btn {
    appearance: none;
    flex-shrink: 0;
    margin-left: auto;
    border: none;
    border-radius: 999px;
    padding: 7px 14px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 750;
    background: var(--brand-btn-bg, #468189);
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.group-page__join-locked-msg {
    margin: 28px 12px 48px;
    text-align: center;
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.45;
    color: var(--muted-text, #6b7280);
}

.giggly-friends-admin-btn.is-active {
    background: rgba(0, 0, 0, 0.08);
}

:root[data-theme='dark'] .giggly-friends-admin-btn.is-active {
    background: rgba(255, 255, 255, 0.12);
}

/* Admin last login sits under the name (same stack as real name). */
body.friends-page .giggly-friends-last-login {
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--muted-text, #6b7280);
    white-space: nowrap;
}

:root[data-theme='dark'] body.friends-page .giggly-friends-last-login {
    color: #94949e;
}

/* Keep Bar C search field visible once opened (match Events shell). */
body.friends-page #controlsBar.giggly-friends-search-open .controls-bar__center,
body.friends-page #controlsBar.giggly-friends-search-open .controls-bar__month-search-slot {
    flex: 1 1 0%;
    min-width: 0;
    pointer-events: auto;
}

body.friends-page #searchContainer.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Invite Friends modal + per-profile QR */
.giggly-friends-invite-modal[hidden] {
    display: none !important;
}

.giggly-friends-invite-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.giggly-friends-invite-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.giggly-friends-invite-modal__sheet {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 20px 18px 18px;
    border-radius: 18px;
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
}

.giggly-friends-invite-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: var(--muted-text, #6b7280);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.giggly-friends-invite-modal__title {
    margin: 0 28px 10px 0;
    font-size: 1.15rem;
    font-weight: 750;
}

.giggly-friends-invite-modal__copy {
    margin: 0 0 14px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--muted-text, #6b7280);
    white-space: pre-wrap;
}

.giggly-friends-invite-modal__qr-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 10px;
}

.giggly-friends-invite-modal__qr {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    box-sizing: border-box;
}

.giggly-friends-invite-modal__share {
    display: block;
    width: 100%;
    border: 1px solid #111;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    font-weight: 700;
    color: #111;
    background: #fff;
    cursor: pointer;
}

:root[data-theme='dark'] .giggly-friends-invite-modal__share {
    border-color: #fff;
    color: #fff;
    background: transparent;
}

/* Add to Groups modal + Group Feed chat */

dialog.giggly-add-to-groups-modal.feed-follow-confirm-modal,
.giggly-add-to-groups-modal {
    position: relative;
    width: min(92vw, 400px) !important;
    max-width: min(92vw, 400px) !important;
    max-height: min(85vh, 560px);
    overflow: auto;
    padding: 18px 18px 16px !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #111827;
    box-sizing: border-box;
}

.giggly-add-to-groups-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 0;
}

.giggly-add-to-groups-modal__close {
    appearance: none;
    border: 0;
    outline: none;
    box-shadow: none;
    background: #e5e7eb;
    color: #374151;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.giggly-add-to-groups-modal__close:hover {
    background: #d1d5db;
}

.giggly-add-to-groups-modal__close:focus,
.giggly-add-to-groups-modal__close:focus-visible,
.giggly-add-to-groups-modal__close:active {
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
    background: #e5e7eb;
}

.giggly-add-to-groups-modal__title:focus,
.giggly-add-to-groups-modal__title:focus-visible {
    outline: none;
}

#eventTypeSelectRoot.is-type-locked .add-event-custom-select__trigger,
#eventTypeSelectRoot.is-type-locked .add-event-custom-select__trigger:disabled {
    opacity: 1;
    cursor: default;
    pointer-events: none;
}

#eventTypeSelectRoot.is-type-locked .add-event-custom-select__chevron {
    display: none;
}

.giggly-add-to-groups-modal__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827 !important;
}

.giggly-add-to-groups-modal__copy,
.giggly-add-to-groups-modal .giggly-add-to-groups-modal__copy {
    margin: 16px 0 14px !important;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #6b7280 !important;
}

.giggly-add-to-groups-modal__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 28px;
    max-height: 260px;
    overflow: auto;
}

.giggly-add-to-groups-modal__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: center;
    column-gap: 16px;
    padding: 10px 4px;
    border-radius: 10px;
    cursor: pointer;
}

.giggly-add-to-groups-modal__row:hover {
    background: rgba(15, 23, 42, 0.04);
}

.giggly-add-to-groups-modal__identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.giggly-add-to-groups-modal__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #4b5563;
    font-weight: 800;
    font-size: 0.75rem;
}

.giggly-add-to-groups-modal__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.giggly-add-to-groups-modal__label {
    font-size: 1rem;
    font-weight: 800;
    color: #111827 !important;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giggly-add-to-groups-modal__row input[type='checkbox'] {
    width: 22px;
    height: 22px;
    margin: 0;
    justify-self: end;
    accent-color: var(--accent-blue, #77ACA2F);
    flex-shrink: 0;
}

.giggly-add-to-groups-modal__hint {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.giggly-add-to-groups-modal__actions {
    display: flex !important;
    flex-direction: column !important;
    justify-content: stretch !important;
    gap: 10px !important;
}

.giggly-add-to-groups-modal__btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: block !important;
    width: 100% !important;
    border-radius: 8px !important;
    padding: 11px 14px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-sizing: border-box;
    background: #fff !important;
    margin: 0 !important;
}

.giggly-add-to-groups-modal__btn--skip {
    color: #111827 !important;
    border: 1.5px solid #111827 !important;
}

.giggly-add-to-groups-modal__btn--confirm {
    color: var(--accent-blue, #77ACA2F) !important;
    border: 1.5px solid var(--accent-blue, #77ACA2F) !important;
    background: #fff !important;
}

.group-page__panel--feed {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding-bottom: 0;
}

.group-page__feed-scroll {
    flex: 1 1 auto;
    min-height: 120px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 12px;
}

.group-page__feed-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.group-page__msg {
    display: flex;
    flex-direction: column;
    max-width: 86%;
}

.group-page__msg--mine {
    align-self: flex-end;
    align-items: flex-end;
}

.group-page__msg--other {
    align-self: flex-start;
    align-items: flex-start;
}

.group-page__msg-meta {
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--muted-text, #6b7280);
    margin: 0 4px 3px;
}

.group-page__msg-bubble {
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 1.02rem;
    line-height: 1.4;
    color: #111827;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.06);
}

.group-page__msg--mine .group-page__msg-bubble {
    background: var(--brand-teal, #77aca2);
    color: #ffffff;
    border-bottom-right-radius: 5px;
}

.group-page__msg--other .group-page__msg-bubble {
    background: #fff;
    color: #111827;
    border: 1px solid color-mix(in srgb, var(--text, #111) 10%, transparent);
    border-bottom-left-radius: 5px;
}

:root[data-theme='dark'] .group-page__msg--other .group-page__msg-bubble {
    background: #2a2038;
    color: var(--text, #E8E4ED);
    border-color: color-mix(in srgb, var(--text) 14%, transparent);
}

.group-page__composer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 4px 0 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--text, #111) 10%, transparent);
    background: transparent;
    position: relative;
}

.group-page__composer-input {
    flex: 1 1 auto;
    min-height: 36px;
    max-height: 140px;
    resize: none;
    border: 1px solid color-mix(in srgb, var(--text, #111) 14%, transparent);
    border-radius: 20px;
    padding: 8px 14px;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.35;
    background: var(--bg, #fff);
    color: var(--text, #212529);
    box-sizing: border-box;
}

.group-page__composer-input:focus {
    outline: none;
    border-color: var(--accent-blue, #77ACA2F);
}

.group-page__composer-send {
    appearance: none;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-blue, #77ACA2F);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
}

.group-page__composer-send-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.bottom-bar__friends-nav .bottom-bar__nav-icon {
    position: relative;
    display: inline-flex;
}

.bottom-bar__friends-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2;
}

.bottom-bar__friends-badge[hidden] {
    display: none !important;
}

.group-page__composer-send:disabled {
    opacity: 0.5;
    cursor: default;
}

.group-page__star-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 14px;
}

.group-page__event-card {
    display: flex;
    gap: 10px;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    border: 1px solid color-mix(in srgb, var(--text, #111) 12%, transparent);
    border-radius: 12px;
    overflow: hidden;
    background: color-mix(in srgb, var(--bg, #fff) 96%, transparent);
}

.group-page__event-card-flyer {
    width: 88px;
    min-height: 110px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--brand-teal-deep, #468189);
}

.group-page__event-card-flyer--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    min-height: 110px;
    aspect-ratio: 4 / 5;
    padding: 8px;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    background: var(--brand-teal-deep, #468189);
}

:root[data-theme='dark'] .group-page__event-card-flyer,
:root[data-theme='dark'] .group-page__event-card-flyer--empty {
    color: #ffffff;
    background: var(--brand-teal-deep, #468189);
}

.group-page__event-card-flyer-title {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    text-shadow: none;
}

.add-event-custom-select__option.is-disabled,
.add-event-custom-select__option[aria-disabled='true'] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.group-page__event-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 10px 10px 0;
    min-width: 0;
}

.group-page__event-card-title {
    font-weight: 750;
    font-size: 0.95rem;
    line-height: 1.25;
}

.group-page__event-card-meta {
    font-size: 0.8rem;
    color: var(--muted-text, #6b7280);
}

/* Ticket-sell admin review modal */
.giggly-ticket-sell-review-root {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.giggly-ticket-sell-review-root.is-open {
  display: flex;
}
.giggly-ticket-sell-review__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.giggly-ticket-sell-review__card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--bg, #fff);
  color: var(--text, #212529);
  border-radius: 16px;
  padding: 20px 18px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.giggly-ticket-sell-review__title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}
.giggly-ticket-sell-review__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.giggly-ticket-sell-review__btn-blue {
  background: var(--accent-blue, #77ACA2F) !important;
  color: #fff !important;
  border: none !important;
  white-space: normal;
  line-height: 1.3;
  min-height: 48px;
}
.giggly-ticket-sell-review__btn-danger {
  background: #fff !important;
  color: #dc2626 !important;
  border: 1.5px solid #dc2626 !important;
}
.giggly-ticket-sell-review__btn-cancel {
  background: #111 !important;
  color: #fff !important;
  border: none !important;
}

/* Giggly system / meetup chats (Friends → Chats) */
.giggly-system-chat-row,
.giggly-friends-meetup-chat-row,
.giggly-friends-group-feed-chat-row {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: none;
}
.giggly-friends-chat-list .group-page__chat-row-preview {
  text-align: left;
  width: 100%;
}
.giggly-friends-chat-drawer {
  position: absolute;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  overflow: hidden;
}
.giggly-friends-chat-drawer.is-open {
  pointer-events: auto;
}
.giggly-friends-chat-drawer__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg, #fff);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-sizing: border-box;
  /* No panel footer pad — clearance lives on the messages scroller only. */
  padding: 0 !important;
  z-index: 1;
}
/* Beat friends.html `display:flex !important` on Bar C while a chat is open. */
body.friends-page.app-mode.giggly-friends-chat-drawer-open #eventsApp > .controls-bar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.giggly-friends-chat-drawer.is-open > .giggly-friends-chat-drawer__panel:not(.giggly-friends-chat-drawer__panel--nested) {
  transform: translateX(0);
}
.giggly-friends-chat-drawer__panel--nested {
  z-index: 2;
  transform: translateX(100%);
}
.giggly-friends-chat-drawer.is-nested-open .giggly-friends-chat-drawer__panel--nested {
  transform: translateX(0);
}
.giggly-friends-chat-drawer__panel--nested[hidden] {
  display: none !important;
}
.giggly-friends-chat-drawer.is-nested-open .giggly-friends-chat-drawer__panel--nested[hidden] {
  display: flex !important;
}
.giggly-system-chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 4px 16px 10px;
  flex-shrink: 0;
}
.giggly-system-chat__titles {
  flex: 1 1 auto;
  min-width: 0;
}
.giggly-friends-chat-back {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text, #111827);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.giggly-friends-chat-back:active {
  background: color-mix(in srgb, var(--text) 16%, transparent);
  transform: scale(0.92);
}
.giggly-friends-chat-back__icon {
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 700;
}
.giggly-friends-chat-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 10%, transparent);
}
.giggly-friends-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.giggly-friends-chat-avatar--brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand-teal, #77aca2) 18%, transparent);
}
.giggly-friends-chat-avatar--brand img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}
.giggly-friends-chat-avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--brand-teal-deep, #468189);
}
.giggly-friends-chat-list .group-page__meetup-thumb--brand,
body.friends-page .group-page__meetup-thumb--brand {
  background: color-mix(in srgb, var(--brand-teal, #77aca2) 18%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.giggly-friends-chat-list .group-page__meetup-thumb--brand img,
body.friends-page .group-page__meetup-thumb--brand img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.pc-member-row__avatar--brand {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand-teal, #77aca2) 18%, transparent) !important;
  overflow: hidden;
}
.pc-member-row__avatar--brand img {
  width: 78% !important;
  height: 78% !important;
  object-fit: contain !important;
}
.group-page__avatar--brand {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand-teal, #77aca2) 18%, transparent);
  overflow: hidden;
}
.group-page__avatar--brand .group-page__avatar-img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}
.giggly-friends-chat-goto-group {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--accent-blue, #77ACA2F);
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.giggly-friends-chat-hit .group-page__chat-row {
  background: color-mix(in srgb, var(--accent-blue, #77ACA2F) 12%, transparent);
}
.giggly-friends-chat-msg--focus {
  outline: 2px solid var(--accent-blue, #77ACA2F);
  outline-offset: 2px;
  border-radius: 12px;
}
.giggly-system-chat__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text, #212529);
}
.giggly-system-chat__desc {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted-text, #6b7280);
}
.giggly-system-chat__messages,
.giggly-friends-chat-drawer__messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  /* Clear fixed bottom bar inside the scroller — avoids a solid white footer band. */
  padding: 8px 16px calc(12px + var(--bottom-bar-height, 68px) + max(env(safe-area-inset-bottom, 0px), 6px));
}
.giggly-system-notice {
    position: relative;
    margin: 10px 12px 14px;
    padding: 14px 14px 40px;
    border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg) 92%, var(--accent-pink, #77ACA2));
    box-sizing: border-box;
}

.giggly-system-notice__body {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

.giggly-system-notice__dismiss {
    position: absolute;
    right: 10px;
    bottom: 10px;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid #000;
    border-radius: 4px;
    background: #fff;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-system-notice__dismiss:hover,
.giggly-system-notice__dismiss:focus-visible {
    background: #f3f4f6;
    outline: none;
}

:root[data-theme='dark'] .giggly-system-notice {
    background: color-mix(in srgb, var(--bg) 88%, var(--accent-purple, #468189));
}

:root[data-theme='dark'] .giggly-system-notice__dismiss {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

:root[data-theme='dark'] .giggly-system-notice__dismiss:hover,
:root[data-theme='dark'] .giggly-system-notice__dismiss:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.giggly-system-msg__cta {
    margin-top: 10px;
}

.giggly-system-msg__profile-link {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.giggly-system-msg__profile-link:hover,
.giggly-system-msg__profile-link:focus-visible {
    color: var(--brand-teal, #77aca2);
    outline: none;
}

.giggly-system-msg__view-group {
    display: inline-block;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #000;
    border-radius: 4px;
    background: #fff;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.giggly-system-msg__already-following {
    display: inline-block;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid rgba(3, 25, 38, 0.18);
    border-radius: 4px;
    background: rgba(119, 172, 162, 0.18);
    color: var(--brand-ink, #031926);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

:root[data-theme='dark'] .giggly-system-msg__already-following {
    border-color: rgba(232, 238, 240, 0.28);
    background: rgba(119, 172, 162, 0.22);
    color: #e8eef0;
}

.giggly-system-msg__view-group:hover,
.giggly-system-msg__view-group:focus-visible {
    background: #f3f4f6;
    outline: none;
}

:root[data-theme='dark'] .giggly-system-msg__view-group {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

:root[data-theme='dark'] .giggly-system-msg__view-group:hover,
:root[data-theme='dark'] .giggly-system-msg__view-group:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.giggly-system-chat__reply-hint {
  margin: 0 16px 8px;
  font-size: 0.85rem;
  color: var(--muted-text, #6b7280);
  flex-shrink: 0;
}
.group-page__meetup-chat-composer,
.giggly-system-chat__composer,
.giggly-friends-chat-drawer__composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  background: var(--bg, #fff);
  flex-shrink: 0;
  box-sizing: border-box;
}
/* Friends chat drawer: composer sits under the title, above messages — no divider line. */
.giggly-friends-chat-drawer .group-page__meetup-chat-composer,
.giggly-friends-chat-drawer__composer {
  border: 0 !important;
  order: 0;
  padding-top: 4px;
  padding-bottom: 4px;
}
.giggly-friends-chat-drawer .group-page__composer-input,
.giggly-system-chat__composer .group-page__composer-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  max-height: 140px;
  resize: none;
  border: 1px solid color-mix(in srgb, var(--text, #111) 14%, transparent);
  border-radius: 20px;
  padding: 10px 14px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  background: var(--bg, #fff);
  color: var(--text, #212529);
  box-sizing: border-box;
}
.giggly-friends-chat-drawer .group-page__composer-send,
.giggly-system-chat__composer .group-page__composer-send {
  appearance: none;
  border: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--accent-blue, #77ACA2F);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0;
}
.giggly-friends-chat-drawer .group-page__composer-send-icon,
.giggly-system-chat__composer .group-page__composer-send-icon {
  display: block;
  margin: 0;
}
.group-page__msg {
  position: relative;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.group-page__msg-date {
  align-self: center;
  margin: 10px 0 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted-text, #6b7280);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.group-page__msg-bubble-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.group-page__msg--mine .group-page__msg-bubble-wrap {
  flex-direction: row-reverse;
  margin-left: auto;
}
.group-page__msg-time {
  display: block;
  margin-top: 3px;
  font-size: 0.7rem;
  line-height: 1.2;
  color: var(--muted-text, #6b7280);
  padding: 0 4px;
}
.group-page__msg--mine .group-page__msg-time {
  text-align: right;
}
.group-page__msg--other .group-page__msg-time {
  text-align: left;
}
/* WhatsApp-style long-press menu under the message */
.group-page__msg-menu__panel {
  display: block;
  margin-top: 6px;
  z-index: 20;
  min-width: 156px;
  max-width: min(220px, 92%);
  padding: 4px;
  border-radius: 10px;
  background: var(--bg, #fff);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  -webkit-user-select: none;
  user-select: none;
}
.group-page__msg-menu__panel[hidden] {
  display: none !important;
}
.group-page__msg--mine .group-page__msg-menu__panel {
  margin-left: auto;
  margin-right: 0;
}
.group-page__msg--other .group-page__msg-menu__panel {
  margin-left: 0;
  margin-right: auto;
}
.group-page__msg.is-msg-menu-open .group-page__msg-bubble {
  outline: 2px solid color-mix(in srgb, var(--accent-blue, #77ACA2F) 55%, transparent);
  outline-offset: 1px;
}
.group-page__msg-menu__item {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text, #212529);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.group-page__msg-menu__item:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.group-page__msg-menu__item--danger {
  color: #dc2626;
}
.group-page__msg--deleted .group-page__msg-bubble {
  font-style: italic;
  opacity: 0.72;
}
.group-page__msg-edited {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--muted-text, #6b7280);
}
.giggly-friends-chat-drawer__messages--newest-top {
  justify-content: flex-start;
}
.giggly-cets__req {
  color: #dc2626;
  font-weight: 700;
  margin-left: 2px;
}
.giggly-cets-root .giggly-cets__card,
.giggly-cets-root .ticket-swap-qty-sheet__card {
  max-width: min(440px, 100%);
  width: 100%;
}
