/* Preserve the compact tablet experience; desktops use desktop-shell.css. */
.hookie-mobile-dates { display:none; }
@media(max-width:1023px){
    .hookie-mobile-dates { display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;margin-left:auto; }
}
@media (max-width: 1023px) {
    body.theme-connected:not(.admin-theme):has(#mobile-nav:not(.hidden)):has([data-chat-preview-widget]:not(.hidden)) {
        padding-bottom: calc(var(--bottom-nav-height, 80px) + 72px + env(safe-area-inset-bottom)) !important;
    }
    body.theme-connected:not(.admin-theme):has(#mobile-nav:not(.hidden)) .hookie-chat-widget {
        bottom: calc(var(--bottom-nav-height, 80px) + env(safe-area-inset-bottom));
    }
    body.theme-connected:not(.admin-theme) .hookie-profile-grid > div {
        min-width: 0;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0;
    }
    body.theme-connected:not(.admin-theme) .hookie-profile-grid > div + div {
        border-top: 1px solid var(--hk-border);
        padding: 24px 0 0 !important;
    }
    body.theme-connected:not(.admin-theme) .hookie-profile-grid .hookie-profile-hero {
        height: auto;
    }
    body.theme-connected:not(.admin-theme) .hookie-profile-hero-photo {
        display: block;
        width: 100%;
        height: auto;
        max-height: min(60dvh, 520px);
        object-fit: contain;
        object-position: center top;
    }
    body.theme-connected:not(.admin-theme) .hookie-profile-hero > .absolute.inset-0 { display: none; }
    body.theme-connected:not(.admin-theme) .hookie-profile-summary {
        margin-top: 0;
        padding: 24px 0;
    }
    body.theme-connected:not(.admin-theme) .hookie-profile-summary > div:first-child { display: none; }
    body.theme-connected:not(.admin-theme) .hookie-profile-summary .hookie-profile-identity { margin-top: 0; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    body.theme-connected:not(.admin-theme) {
        --hookie-box-max: 430px;
        --header-height: 64px;
        --bottom-nav-height: 68px;
        padding: 0 0 94px !important;
    }
    body.theme-connected:not(.admin-theme) #app-shell { max-width: 430px; }
    body.theme-connected:not(.admin-theme) #app-header,
    body.theme-connected:not(.admin-theme) #mobile-nav,
    body.theme-connected:not(.admin-theme) [data-app-page-bar] {
        left: max(0px, calc((100% - 430px) / 2)) !important;
        right: max(0px, calc((100% - 430px) / 2)) !important;
        width: auto !important;
        max-width: 430px !important;
    }
    body.theme-connected:not(.admin-theme) #app-header > div:first-child { padding-inline: 16px !important; }
    body.theme-connected:not(.admin-theme) #app-header [aria-label="Primary navigation"],
    body.theme-connected:not(.admin-theme) #app-header > div:first-child > .md\:flex { display: none !important; }
    body.theme-connected:not(.admin-theme) #mobile-nav:not(.hidden) { display: grid !important; }
    body[data-page="messages"].theme-connected:not(.admin-theme):has(.messages-thread-open) #mobile-nav,
    body[data-page="messages"].theme-connected:not(.admin-theme):has(.messages-thread-open) #app-header { display: none !important; }
    body.theme-connected:not(.admin-theme) main { padding-inline: 16px !important; }
    body.theme-connected:not(.admin-theme) main.app-page-layout { display: block !important; }
    body.theme-connected:not(.admin-theme) main .hookie-blue-side-widget { display: none !important; }
    body.theme-connected:not(.admin-theme) main [class~="sm:flex-row"],
    body.theme-connected:not(.admin-theme) main [class~="md:flex-row"] { flex-direction: column; }
    body.theme-connected:not(.admin-theme) .hookie-chat-widget {
        left: calc((100% - 430px) / 2 + 12px);
        right: calc((100% - 430px) / 2 + 12px) !important;
        align-items: stretch;
    }
    body.theme-connected:not(.admin-theme) .hookie-chat-widget [data-chat-preview-panel],
    body.theme-connected:not(.admin-theme) .hookie-chat-bar { width: 100%; min-width: 0; }
    body[data-page="messages"].theme-connected:not(.admin-theme) main .hookie-blue-side-widget { display: flex !important; }
    body[data-page="messages"].theme-connected:not(.admin-theme) main.messages-thread-open .hookie-blue-side-widget { display: none !important; }
    body.theme-connected:not(.admin-theme) main [class~="md:grid-cols-12"],
    body.theme-connected:not(.admin-theme) main [class~="md:grid-cols-2"],
    body.theme-connected:not(.admin-theme) main [class~="lg:grid-cols-2"],
    body.theme-connected:not(.admin-theme) .hookie-public-profile-grid { grid-template-columns: minmax(0, 1fr) !important; }
    body.theme-connected:not(.admin-theme) .hookie-profile-grid > div { grid-column: 1 / -1 !important; }
    body.theme-connected:not(.admin-theme) .hookie-profile-grid [data-alt="Profile cover image"] { height: 192px; }
    body.theme-connected:not(.admin-theme) .hookie-profile-summary { margin-top: 0; gap: 24px; }
    body.theme-connected:not(.admin-theme) .hookie-profile-identity { display: flex; margin-top: 0; }
    body.theme-connected:not(.admin-theme) .hookie-profile-identity h1 { font-size: 24px; line-height: 32px; }
    body.theme-connected:not(.admin-theme) .hookie-profile-actions > a { flex: 1 1 0; }
    body.theme-connected:not(.admin-theme) .hookie-profile-grid [class~="md:grid-cols-3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.theme-connected:not(.admin-theme) .hookie-profile-grid [class~="md:col-span-3"] { grid-column: span 2; }
    body[data-page="discover"].theme-connected:not(.admin-theme) main.discover-main-layout { padding: 64px 0 94px !important; }
    body[data-page="discover"].theme-connected:not(.admin-theme) main.discover-main-layout[data-discover-spa] { padding: 64px 0 0 !important; }
    body[data-page="discover"].theme-connected:not(.admin-theme) [data-discover-content] { max-width: 430px !important; }
    body[data-page="discover"].theme-connected:not(.admin-theme) .discover-toolbar { padding: 0 12px; margin-bottom: 4px; }
    body[data-page="discover"].theme-connected:not(.admin-theme) .discover-modes { width: calc(100% - 24px); margin: 0 12px 8px; }
    body[data-page="discover"].theme-connected:not(.admin-theme) #discoverMainCard { border-radius: 0; }
    body[data-page="discover"].theme-connected:not(.admin-theme) .discover-card-details { padding: 12px 16px; }
    body[data-page="discover"].theme-connected:not(.admin-theme) .discover-card-heading h2 { font-size: 25px; }
    body[data-page="discover"].theme-connected:not(.admin-theme) [data-discover-actions] { margin-top: 12px; }
    body[data-page="discover"].theme-connected:not(.admin-theme) .discover-browse-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 12px; }
    body[data-page="discover"].theme-connected:not(.admin-theme) [data-discover-filter-drawer-panel] { border-radius: 8px 8px 0 0; max-width: 430px; }
    body[data-public-discover="true"].theme-connected:not(.admin-theme) main#app-main { padding: 80px 0 24px !important; }
    body[data-public-discover="true"].theme-connected:not(.admin-theme) .hookie-public-discover-toolbar { flex-direction: column; align-items: stretch; margin-inline: 16px; }
    body[data-public-discover="true"].theme-connected:not(.admin-theme) .hookie-public-profile-grid { gap: 20px; }
    body[data-public-discover="true"].theme-connected:not(.admin-theme) .hookie-public-profile-card { border-radius: 0; border-inline: 0; }
}
