
/* Hookie shared theme stylesheet */
:root {
    --hookie-primary: var(--hk-primary, #0058bc);
    --hookie-primary-bright: var(--hk-primary, #0070eb);
    --hookie-bg: #f9f9ff;
    --hookie-text: #181c23;
    --brand-blue: var(--hk-primary, #0058bc);
    --brand-blue-dark: #004a9f;
    --header-height: 72px;
}
html { scroll-behavior: smooth; }
body.theme-connected {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--hookie-text);
    background: var(--hookie-bg);
}
body.theme-connected:not(.admin-theme) :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--hk-primary);
    outline-offset: 3px;
}
body.theme-connected:not(.admin-theme) :is(button, input, select, textarea):disabled {
    cursor: not-allowed;
}
.hookie-notice { padding: 12px 16px; border: 1px solid var(--hk-border); border-radius: var(--hk-radius); font-size: 14px; }
.hookie-notice[data-kind="success"] { background: var(--hk-success-surface); color: var(--hk-success); }
.hookie-notice[data-kind="error"] { background: var(--hk-error-surface); color: var(--hk-error); }
.hookie-notice[data-kind="warning"] { background: var(--hk-warning-surface); color: var(--hk-warning); }
body.theme-connected:not(.admin-theme) [data-filter-choice] input:focus-visible + [data-filter-chip] {
    outline: 2px solid var(--hk-primary);
    outline-offset: 3px;
}
body.theme-connected:not(.admin-theme) .hookie-like-action {
    background: var(--hk-surface-highest);
    color: var(--hk-text);
    border: 1px solid var(--hk-border);
}
body.theme-connected:not(.admin-theme) .hookie-like-action .material-symbols-outlined { color: var(--hk-like); }
body.theme-connected:not(.admin-theme) .hookie-like-action:not(:disabled):hover { background: var(--hk-overlay); }
body.theme-connected:not(.admin-theme) .hookie-like-action:disabled { color: var(--hk-text-muted); }
#app-shell {
    min-height: 100vh;
}
:root {
    --hookie-box-max: 1280px;
    --hookie-box-gap: clamp(16px, 3vw, 40px);
    --hookie-box-radius: 28px;
}

.hookie-blue-panel {
    background: var(--hk-surface, #181818);
    color: var(--hk-text, #ffffff);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: none;
}

.hookie-blue-panel a,
.hookie-blue-panel button {
    color: inherit;
}

.hookie-location-inline {
    display: grid;
    gap: 0.65rem;
    border: 1px solid var(--hk-border, #363636);
    border-radius: var(--hk-radius, 8px);
    background: var(--hk-surface-raised, #202020);
    padding: 0.8rem;
}

.hookie-location-inline span {
    display: block;
    color: var(--hk-text-secondary, #b5b5b5);
    font-size: 0.78rem;
    font-weight: 800;
}

.hookie-location-inline strong {
    display: block;
    color: var(--hk-text, #f5f5f5);
    font-size: 0.95rem;
}

.hookie-location-inline button {
    min-height: 2.15rem;
    border: 1px solid var(--hk-border, #363636);
    border-radius: 999px;
    background: var(--hk-surface-highest, #fff);
    color: var(--brand-blue);
    padding: 0 0.75rem;
    font-weight: 850;
}

.hookie-location-prompt {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.42);
    padding: 1rem;
}

.hookie-location-prompt section {
    width: min(24rem, 100%);
    border-radius: var(--hk-radius, 8px);
    background: var(--hk-surface-raised, #fff);
    padding: 1.1rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.hookie-location-prompt h2 {
    margin: 0;
    color: var(--hk-text, #111827);
    font-size: 1.25rem;
    font-weight: 900;
}

.hookie-location-prompt p {
    margin: 0.35rem 0 1rem;
    color: var(--hk-text-secondary, #64748b);
}

.hookie-location-prompt div {
    display: flex;
    gap: 0.5rem;
}

.hookie-location-prompt button {
    min-height: 2.5rem;
    flex: 1;
    border: 0;
    border-radius: 999px;
    font-weight: 850;
}

.hookie-location-prompt button:first-child {
    background: var(--brand-blue);
    color: var(--hk-on-primary, #fff);
}

.hookie-location-prompt button:last-child {
    background: var(--hk-surface-highest, #eef2f7);
    color: var(--hk-text, #334155);
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.fill { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
.pb-safe { padding-bottom: max(0.75rem, env(safe-area-inset-bottom)); }
.hookie-header a, .hookie-bottom-nav a, button, [role="button"] { cursor: pointer; }
.hookie-header { isolation: isolate; }
.theme-connected main { width: 100%; }
.theme-connected main.pt-\[80px\], .theme-connected main.pt-\[88px\] { padding-top: 88px; }
.theme-connected a[href="javascript:void(0)"] { cursor: default; }
.social-shadow { box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 8px 16px rgba(0,0,0,0.05); }
.glassmorphism, .glass-panel {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.dark .glassmorphism, .dark .glass-panel {
    background: var(--hk-surface, #181818);
}
html.dark body.theme-connected {
    background: #10131a;
    color: var(--hk-text, #eff0fb);
}
.hookie-card-hidden { transform: scale(.96) translateY(8px); opacity: 0; transition: 220ms ease; pointer-events: none; }
.hookie-toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%);
    z-index: 70;
    background: #181c23;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    font-size: 14px;
}
@media (prefers-reduced-motion: no-preference) {
    body.theme-connected main,
    body.theme-connected footer {
        transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
    }

    body.theme-connected.hookie-page-leaving main {
        opacity: 0;
        transform: translateY(6px);
    }

    body.theme-connected [data-direct-messages] {
        transition: opacity 150ms ease, transform 150ms ease;
    }

    body.theme-connected .hookie-direct-loading [data-direct-messages] {
        opacity: 0.42;
        transform: translateY(4px);
    }

    body.theme-connected [data-conversation-row] {
        transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
    }

    body.theme-connected [data-conversation-row][aria-current="true"] {
        transform: translateX(2px);
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
        mix-blend-mode: normal;
    }

    ::view-transition-old(hookie-route),
    ::view-transition-new(hookie-route) {
        animation-duration: 220ms;
        animation-timing-function: cubic-bezier(.2, 0, 0, 1);
    }
}
.theme-connected [data-route-outlet] {
    position: relative;
    outline: none;
    view-transition-name: hookie-route;
    will-change: opacity, transform;
}
body.theme-connected:not(.admin-theme) .hookie-header {
    view-transition-name: hookie-header;
}
body.theme-connected:not(.admin-theme) .hookie-bottom-nav {
    view-transition-name: hookie-bottom-nav;
}
body.theme-connected:not(.admin-theme) [data-chat-preview-widget] {
    view-transition-name: hookie-chat-preview;
}

.hookie-chat-widget {
    --hookie-chat-width: min(350px, calc(100vw - 2rem));
    position: fixed;
    right: var(--hookie-box-gap, 1rem);
    bottom: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    pointer-events: none;
}

.hookie-chat-widget.hidden {
    display: none;
}

.hookie-chat-widget > * {
    pointer-events: auto;
}

.hookie-chat-widget [data-chat-preview-panel] {
    width: var(--hookie-chat-width);
    max-height: min(68vh, 36rem);
    border-bottom-width: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
}

.hookie-chat-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    width: var(--hookie-chat-width);
    min-width: 16rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px 8px 0 0;
    background: var(--hk-surface, #181818);
    color: var(--hk-text, #ffffff);
    box-shadow: none;
    transition: transform 140ms ease, box-shadow 160ms ease;
}

.hookie-chat-bar:hover {
    transform: translateY(-1px);
    background: var(--hk-surface-highest, #242424);
    box-shadow: none;
}

.hookie-chat-bar-label {
    font-weight: 700;
    font-size: 0.94rem;
    line-height: 1;
    letter-spacing: 0.01em;
}

.hookie-chat-bar-count {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #ff4b4b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hookie-chat-bar-state {
    margin-left: auto;
    font-size: 1.1rem;
}

.hookie-chat-bar-close {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.24);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hookie-chat-widget.is-open .hookie-chat-bar {
    border-radius: 0;
    border-top-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 24px rgba(0, 58, 133, 0.3);
}

@media (min-width: 768px) {
    .hookie-chat-widget {
        right: var(--hookie-box-gap, 1.25rem);
        bottom: 0;
    }
}

@media (max-width: 640px) {
    .hookie-chat-widget {
        right: var(--hookie-box-gap, 0.75rem);
        left: var(--hookie-box-gap, 0.75rem);
        align-items: stretch;
        bottom: 0;
    }

    .hookie-chat-widget [data-chat-preview-panel],
    .hookie-chat-bar {
        width: 100%;
        min-width: 0;
    }

    .hookie-chat-widget [data-chat-preview-panel] {
        max-height: min(62vh, 34rem);
    }
}
::view-transition-old(hookie-header),
::view-transition-new(hookie-header),
::view-transition-old(hookie-bottom-nav),
::view-transition-new(hookie-bottom-nav),
::view-transition-old(hookie-chat-preview),
::view-transition-new(hookie-chat-preview) {
    animation: none;
    mix-blend-mode: normal;
}
.theme-connected [data-route-outlet].hookie-route-exiting {
    opacity: .72;
    transform: translateY(4px) scale(.998);
    filter: saturate(.96);
}
.theme-connected [data-route-outlet].hookie-route-entering {
    opacity: 0;
    transform: translateY(8px);
}
body.theme-connected[data-page="nearby"] [data-route-outlet].hookie-route-exiting,
body.theme-connected[data-page="nearby"] [data-route-outlet].hookie-route-entering,
body.theme-connected[data-page="discover"] [data-route-outlet].hookie-route-exiting,
body.theme-connected[data-page="discover"] [data-route-outlet].hookie-route-entering,
body.theme-connected[data-page="chatrooms"] [data-route-outlet].hookie-route-exiting,
body.theme-connected[data-page="chatrooms"] [data-route-outlet].hookie-route-entering,
body.theme-connected[data-page="classifieds"] [data-route-outlet].hookie-route-exiting,
body.theme-connected[data-page="classifieds"] [data-route-outlet].hookie-route-entering,
body.theme-connected[data-page="safety"] [data-route-outlet].hookie-route-exiting,
body.theme-connected[data-page="safety"] [data-route-outlet].hookie-route-entering,
body.theme-connected[data-page="connections"] [data-route-outlet].hookie-route-exiting,
body.theme-connected[data-page="connections"] [data-route-outlet].hookie-route-entering,
body.theme-connected[data-page="messages"] [data-route-outlet].hookie-route-exiting,
body.theme-connected[data-page="messages"] [data-route-outlet].hookie-route-entering {
    opacity: 1;
    transform: none;
    filter: none;
}
body.theme-connected[data-page="nearby"] .hookie-route-loader,
body.theme-connected[data-page="discover"] .hookie-route-loader,
body.theme-connected[data-page="chatrooms"] .hookie-route-loader,
body.theme-connected[data-page="classifieds"] .hookie-route-loader,
body.theme-connected[data-page="safety"] .hookie-route-loader,
body.theme-connected[data-page="connections"] .hookie-route-loader,
body.theme-connected[data-page="messages"] .hookie-route-loader {
    display: none !important;
}
.theme-connected.hookie-sidebar-nav [data-route-outlet].hookie-route-exiting,
.theme-connected.hookie-sidebar-nav [data-route-outlet].hookie-route-entering {
    opacity: 1;
    transform: none;
    filter: none;
}
.theme-connected.hookie-sidebar-nav .hookie-route-loader {
    display: none !important;
}
.theme-connected.hookie-route-loading [data-route-outlet] {
    min-height: 360px;
}
.hookie-route-loader {
    position: absolute;
    inset: 84px clamp(16px, 4vw, 40px) auto;
    z-index: 30;
    display: grid;
    gap: 12px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    animation: hookie-route-loader-in 180ms ease forwards;
}
.hookie-route-loader span {
    display: block;
    height: 18px;
    max-width: min(720px, 80vw);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 88, 188, 0.08), rgba(0, 88, 188, 0.18), rgba(0, 88, 188, 0.08));
    background-size: 220% 100%;
    animation: hookie-route-skeleton 1.1s ease-in-out infinite;
}
.hookie-route-loader span:nth-child(2) {
    max-width: min(520px, 68vw);
}
.hookie-route-loader span:nth-child(3) {
    max-width: min(640px, 74vw);
}
.hookie-route-loader span:nth-child(4) {
    max-width: min(360px, 48vw);
}
#spa-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 250;
    width: 100%;
    height: 3px;
    pointer-events: none;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, #007bff, #00b8ff);
    transition: transform 220ms ease, opacity 160ms ease;
}
#spa-progress-bar.visible {
    opacity: 1;
    transform: scaleX(.72);
}
body.theme-connected.hookie-sidebar-nav #spa-progress-bar,
body.theme-connected[data-page="discover"] #spa-progress-bar,
body.theme-connected[data-page="messages"] #spa-progress-bar,
body.theme-connected[data-page="nearby"] #spa-progress-bar,
body.theme-connected[data-page="chatrooms"] #spa-progress-bar,
body.theme-connected[data-page="classifieds"] #spa-progress-bar,
body.theme-connected[data-page="connections"] #spa-progress-bar,
body.theme-connected[data-page="safety"] #spa-progress-bar {
    display: none !important;
}
body.hookie-sidebar-nav #spa-progress-bar,
body[data-page="discover"] #spa-progress-bar,
body[data-page="messages"] #spa-progress-bar,
body[data-page="nearby"] #spa-progress-bar,
body[data-page="chatrooms"] #spa-progress-bar,
body[data-page="classifieds"] #spa-progress-bar,
body[data-page="connections"] #spa-progress-bar,
body[data-page="safety"] #spa-progress-bar {
    display: none !important;
}
.spa-error-state {
    min-height: calc(100vh - var(--header-height, 72px) - 96px);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 48px 16px;
    text-align: center;
}
.spa-error-state h2 {
    margin: 0;
    color: var(--color-on-surface, #111827);
    font-size: 1.5rem;
    font-weight: 800;
}
.spa-error-state p {
    margin: 0;
    color: var(--color-on-surface-variant, #526173);
}
@keyframes hookie-route-skeleton {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
@keyframes hookie-route-loader-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .theme-connected [data-route-outlet] {
        transition: none;
    }
    .hookie-route-loader span {
        animation: none;
    }
}
.hookie-chatrooms-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.hookie-room-sidebar {
    min-width: 0;
}
.hookie-room-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.hookie-room-media {
    aspect-ratio: 4 / 3;
    min-height: 190px;
}
.hookie-room-messages-bg {
    background:
        radial-gradient(circle at top, #eff6ff, transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.hookie-explore-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: end;
    padding: clamp(16px, 3vw, 28px);
    border: 1px solid rgba(0, 88, 188, 0.10);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(241,246,255,0.94) 56%, rgba(236,248,244,0.9) 100%);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}
.hookie-explore-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: min(100%, 420px);
}
.hookie-explore-stats > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
}
.hookie-room-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.hookie-room-discovery-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.hookie-recommendation-rail {
    min-width: 0;
}
.hookie-room-card,
.hookie-best-room-card {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 10px 24px rgba(15,23,42,0.06);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.hookie-room-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 88, 188, 0.32);
    box-shadow: 0 6px 16px rgba(15,23,42,0.08), 0 18px 36px rgba(15,23,42,0.08);
}
.hookie-room-card.is-selected {
    border-color: rgba(0, 88, 188, 0.70);
    box-shadow: 0 10px 28px rgba(0, 88, 188, 0.13);
}
.hookie-classified-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: end;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(0, 88, 188, 0.16);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(238,245,255,0.95) 58%, rgba(241,252,248,0.92) 100%);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
}
.hookie-classified-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.hookie-classified-category {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 88, 188, 0.12);
    border-radius: 10px;
    background: #fff;
    color: #181c23;
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.hookie-classified-category:hover,
.hookie-classified-category.is-active {
    transform: translateY(-1px);
    border-color: rgba(0, 88, 188, 0.44);
    box-shadow: 0 10px 26px rgba(0, 88, 188, 0.10);
}
.hookie-classified-category .material-symbols-outlined {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hookie-primary);
    background: #e9f1ff;
    flex-shrink: 0;
}
.hookie-classified-category strong {
    min-width: 0;
    font-size: 14px;
    line-height: 1.15;
}
.hookie-classified-ad-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}
.hookie-classified-ad {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    padding: 16px;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04), 0 12px 30px rgba(15, 23, 42, 0.06);
}
.hookie-classified-ad > p {
    flex: 1;
}
.hookie-local-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    max-width: 760px;
    padding: 8px;
    border: 1px solid rgba(0, 88, 188, 0.16);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.hookie-local-search > .material-symbols-outlined {
    color: var(--hookie-primary);
    padding-left: 8px;
}
.hookie-local-search input {
    min-width: 0;
    border: 0;
    background: transparent;
    color: #181c23;
    font: inherit;
    outline: none;
}
.hookie-local-search button,
.hookie-local-hero-panel a,
.hookie-local-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 10px;
    background: var(--hookie-primary);
    color: #fff;
    font-weight: 700;
}
.hookie-local-search button {
    padding: 0 16px;
}
.hookie-local-hero-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: min(100%, 360px);
}
.hookie-local-hero-panel > div,
.hookie-local-hero-panel > a {
    min-height: 84px;
    padding: 14px;
    border: 1px solid rgba(0, 88, 188, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.84);
}
.hookie-local-hero-panel > a {
    grid-column: 1 / -1;
    min-height: 48px;
    border-color: rgba(0, 88, 188, 0.70);
    background: var(--hookie-primary);
    color: #fff;
    text-decoration: none;
}
.hookie-local-hero-panel .material-symbols-outlined {
    color: var(--hookie-primary);
}
.hookie-local-hero-panel strong {
    display: block;
    margin-top: 4px;
    font-size: 28px;
    line-height: 1;
    color: #181c23;
}
.hookie-local-hero-panel span:last-child {
    display: block;
    margin-top: 4px;
    color: #5b6472;
    font-size: 13px;
    line-height: 1.25;
}
.hookie-local-category-scroll {
    display: flex;
    max-width: 100%;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 2px;
}
.hookie-local-category-pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 999px;
    background: #fff;
    color: #394150;
    font-size: 14px;
    text-decoration: none;
}
.hookie-local-category-pill > .material-symbols-outlined {
    font-size: 18px;
    color: var(--hookie-primary);
}
.hookie-local-category-pill > span:last-child {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef3ff;
    color: var(--hookie-primary);
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}
.hookie-local-category-pill.is-active {
    border-color: rgba(0, 88, 188, 0.42);
    background: #eaf2ff;
    color: #003a83;
}
.hookie-local-recommendations,
.hookie-local-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.hookie-local-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05), 0 16px 34px rgba(15, 23, 42, 0.07);
}
.hookie-local-card.is-featured {
    border-color: rgba(0, 88, 188, 0.30);
}
.hookie-local-card-media {
    position: relative;
    min-height: 168px;
    background-position: center;
    background-size: cover;
    color: #fff;
}
.hookie-local-card-media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.70) 100%);
}
.hookie-local-card-topline,
.hookie-local-card-media-title {
    position: absolute;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.hookie-local-card-topline {
    top: 12px;
}
.hookie-local-card-media-title {
    bottom: 12px;
    justify-content: flex-start;
    font-weight: 800;
}
.hookie-local-card-media-title .material-symbols-outlined {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}
.hookie-local-card-type,
.hookie-local-card-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.90);
    color: #111827;
    font-size: 12px;
    font-weight: 800;
}
.hookie-local-card-verified .material-symbols-outlined {
    color: #0f766e;
    font-size: 16px;
}
.hookie-local-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}
.hookie-local-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.hookie-local-card-title-row h3 {
    color: #181c23;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}
.hookie-local-card-title-row p,
.hookie-local-card-description {
    color: #606a79;
    font-size: 14px;
    line-height: 1.45;
}
.hookie-local-save,
.hookie-local-secondary-action {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
}
.hookie-local-save.is-saved {
    border-color: rgba(0, 88, 188, 0.40);
    color: var(--hookie-primary);
    background: #eef3ff;
}
.hookie-local-tags,
.hookie-local-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.hookie-local-tags span,
.hookie-local-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f3f5f8;
    color: #394150;
    font-size: 12px;
    font-weight: 700;
}
.hookie-local-meta .material-symbols-outlined {
    color: var(--hookie-primary);
    font-size: 16px;
}
.hookie-local-poster {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}
.hookie-local-poster img {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 999px;
    object-fit: cover;
}
.hookie-local-poster p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #181c23;
    font-size: 13px;
    line-height: 1.25;
}
.hookie-local-poster p:last-child {
    color: #606a79;
}
.hookie-local-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}
.hookie-local-primary-action,
.hookie-local-secondary-action {
    text-decoration: none;
}
.hookie-local-secondary-action {
    color: var(--hookie-primary);
}
.hookie-full-chat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.hookie-full-chat-panel {
    min-width: 0;
    min-height: min(860px, calc(100vh - 132px));
    height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.hookie-room-post-maker {
    position: sticky;
    top: 0;
    z-index: 3;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.95) 100%);
    backdrop-filter: blur(8px);
}
.hookie-room-post-stream {
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
}
.hookie-full-chat-hero {
    min-height: 0;
}
.hookie-switcher-sidebar {
    min-width: 0;
}
.hookie-switcher-list {
    max-height: none;
    overflow: visible;
}
@media (min-width: 768px) {
    .hookie-room-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .hookie-classified-hero {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .hookie-classified-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .hookie-classified-ad-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hookie-local-recommendations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hookie-local-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hookie-explore-hero {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}
@media (min-width: 1024px) {
    .hookie-full-chat-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    }
    .hookie-switcher-sidebar {
        position: sticky;
        top: 104px;
    }
    .hookie-switcher-list {
        max-height: calc(100vh - 204px);
        overflow-y: auto;
    }
    .hookie-classified-category-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .hookie-classified-ad-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .hookie-local-recommendations {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .hookie-local-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 1023px) {
    .hookie-full-chat-panel {
        height: auto;
        overflow: visible;
    }
    .hookie-room-post-maker {
        position: static;
    }
}
@media (min-width: 1180px) {
    .hookie-room-discovery-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    }
    .hookie-recommendation-rail {
        position: sticky;
        top: 104px;
    }
}
@media (min-width: 1280px) {
    .hookie-room-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hookie-room-card-wide {
        grid-column: 1 / -1;
    }
    .hookie-room-card-wide .hookie-room-media {
        aspect-ratio: 16 / 6;
        min-height: 248px;
    }
}
@media (min-width: 1280px) {
    .hookie-chatrooms-layout {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
    }
    .hookie-room-sidebar {
        position: sticky;
        top: 104px;
    }
}
@media (min-width: 1536px) {
    .hookie-room-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .theme-connected main { padding-bottom: 96px; }
    .hookie-room-media {
        min-height: 156px;
    }
    .hookie-explore-stats {
        grid-template-columns: 1fr;
    }
}

body.theme-connected:not(.admin-theme) {
    min-height: 100vh;
    background: var(--hk-background, #f7f8fc);
    padding: 0 var(--hookie-box-gap) var(--hookie-box-gap);
}

body.theme-connected:not(.admin-theme) {
    padding-top: 0 !important;
}

html.dark body.theme-connected:not(.admin-theme) {
    background: var(--hk-background, #101010);
}

body.theme-connected:not(.admin-theme) .hookie-header,
body.theme-connected:not(.admin-theme) .hookie-bottom-nav {
    left: max(var(--hookie-box-gap), calc((100vw - var(--hookie-box-max)) / 2));
    right: max(var(--hookie-box-gap), calc((100vw - var(--hookie-box-max)) / 2));
}

body.theme-connected:not(.admin-theme) .hookie-header {
    top: 0;
    left: max(var(--hookie-box-gap), calc((100vw - var(--hookie-box-max)) / 2));
    right: max(var(--hookie-box-gap), calc((100vw - var(--hookie-box-max)) / 2));
    border: 0;
    border-top-width: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: var(--hookie-box-radius);
    border-bottom-right-radius: var(--hookie-box-radius);
    box-shadow: none;
}

html.dark body.theme-connected:not(.admin-theme) .hookie-header {
    border-color: var(--hk-border, #363636);
    box-shadow: none;
}

body.theme-connected:not(.admin-theme) main {
    position: relative;
    z-index: 1;
    width: min(100%, var(--hookie-box-max));
    margin-left: auto;
    margin-right: auto;
    margin-top: 0 !important;
    background: none;
    border: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-sizing: border-box;
    border-top-width: 0;
}

body.theme-connected:not(.admin-theme) main {
    max-width: var(--hookie-box-max) !important;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
    body.theme-connected:not(.admin-theme) main {
        padding-left: 24px;
        padding-right: 24px;
    }
}

body.theme-connected:not(.admin-theme) main:not([class*="pt-"]) {
    padding-top: calc(88px + var(--hookie-box-gap));
}

@media (min-width: 861px) {
    body.theme-connected:not(.admin-theme) main.app-page-layout {
        padding-top: var(--header-height, 72px) !important;
    }
}

html.dark body.theme-connected:not(.admin-theme) main {
    background: none;
    border-color: var(--hk-border, #363636);
    box-shadow: none;
}

body.theme-connected:not(.admin-theme) main.pt-\[80px\],
body.theme-connected:not(.admin-theme) main.pt-\[88px\],
body.theme-connected:not(.admin-theme) main.pt-24,
body.theme-connected:not(.admin-theme) main.pt-20,
body.theme-connected:not(.admin-theme) main.pt-16 {
    padding-top: calc(88px + var(--hookie-box-gap));
}

body.theme-connected:not(.admin-theme)[data-page="login"] main {
    min-height: calc(100vh - var(--hookie-box-gap));
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(88px + var(--hookie-box-gap)) !important;
    padding-bottom: clamp(24px, 4vw, 48px);
}

.hookie-auth-shell {
    min-height: calc(100vh - var(--hookie-box-gap));
}

.hookie-register-shell {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    padding: calc(88px + var(--hookie-box-gap)) 0 0 !important;
}

.hookie-register-shell > div {
    min-height: calc(100vh - 88px - var(--hookie-box-gap));
}

@media (min-width: 1024px) {
    .hookie-register-shell > div:first-child {
        display: block !important;
        flex: 0 0 45%;
        max-width: 45%;
    }

    .hookie-register-shell > div:last-child {
        flex: 1 1 55%;
        max-width: 55%;
        width: auto !important;
    }
}

@media (max-width: 1023px) {
    .hookie-register-shell > div:last-child {
        width: 100%;
        max-width: 100%;
    }
}

.hookie-match-shell {
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(100vh - var(--hookie-box-gap));
    overflow: hidden;
    padding-top: calc(88px + var(--hookie-box-gap)) !important;
    padding-bottom: clamp(24px, 4vw, 48px);
}

.hookie-match-shell > .glass-modal {
    margin-left: auto;
    margin-right: auto;
}

body.theme-connected:not(.admin-theme) footer {
    position: relative;
    width: min(100%, var(--hookie-box-max));
    margin-left: auto;
    margin-right: auto;
    margin-top: clamp(20px, 4vw, 36px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--hookie-box-radius);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

html.dark body.theme-connected:not(.admin-theme) footer {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

@media (max-width: 767px) {
    body.theme-connected:not(.admin-theme) {
        padding: 0 10px 10px;
    }

    body.theme-connected:not(.admin-theme) .hookie-header {
        --hookie-box-radius: 20px;
    }

    body.theme-connected:not(.admin-theme) main {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
    }

    body.theme-connected:not(.admin-theme) .hookie-bottom-nav {
        left: 10px;
        right: 10px;
        bottom: 10px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 22px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
        overflow: hidden;
    }

    html.dark body.theme-connected:not(.admin-theme) .hookie-bottom-nav {
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
    }

}


/* Preserved reusable helper CSS from the exported Stitch screens */
/* Source helpers from hookie_discover_dark_mode */
.glass-panel {
            background: rgba(44, 44, 44, 0.4);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(65, 71, 84, 0.3);
        }
        .glow-btn-primary:hover {
            box-shadow: 0 0 20px rgba(75, 142, 255, 0.3);
        }

/* Source helpers from hookie_edit_profile */
.material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }

/* Source helpers from hookie_explore */
.glass-panel {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }
        .social-shadow {
            box-shadow: 0px 2px 4px rgba(0,0,0,0.05), 0px 8px 16px rgba(0,0,0,0.05);
        }

/* Source helpers from hookie_landing_page */
.material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }
        .material-symbols-outlined.fill {
            font-variation-settings: 'FILL' 1;
        }
        
        .social-shadow {
            box-shadow: 0px 2px 4px rgba(0,0,0,0.05), 0px 8px 16px rgba(0,0,0,0.05);
        }
        
        .glassmorphism {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }

/* Source helpers from hookie_login */
@layer utilities {
            .material-symbols-outlined {
                font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
            }
        }

/* Source helpers from hookie_match_success */
.glass-modal {
            background: var(--hk-surface, #ffffff);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--hk-border, #dedede);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
        }
        
        .sparkle-bg {
            background-image: none;
        }

/* Source helpers from hookie_messages */
.material-symbols-outlined {
            font-family: 'Material Symbols Outlined';
            font-weight: normal;
            font-style: normal;
            font-size: 24px;
            line-height: 1;
            letter-spacing: normal;
            text-transform: none;
            display: inline-block;
            white-space: nowrap;
            word-wrap: normal;
            direction: ltr;
            -webkit-font-feature-settings: 'liga';
            -webkit-font-smoothing: antialiased;
        }

/* Source helpers from hookie_notifications */
.glass-panel {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }

/* Source helpers from hookie_premium_upgrade */
.material-symbols-outlined {
          font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }
        .premium-gradient {
            background: linear-gradient(135deg, rgba(236,237,248,1) 0%, rgba(249,249,255,1) 100%);
        }

/* Online status animation */
@keyframes hookie-online-ring {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
    70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.hookie-online-dot {
    animation: hookie-online-ring 2s ease-out infinite;
}
@keyframes hookie-count-pop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.18); }
    65%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.hookie-count-pop {
    animation: hookie-count-pop 0.45s ease-out;
}
@keyframes hookie-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-3px); }
    40%       { transform: translateX(3px); }
    60%       { transform: translateX(-2px); }
    80%       { transform: translateX(2px); }
}
.hookie-shake {
    animation: hookie-shake 0.5s ease;
}

/* Shared public profile cards for logged-out discovery surfaces. */
.hookie-public-profile-card {
    border-radius: 8px;
}
.hookie-public-profile-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hookie-public-profile-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.48);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.hookie-public-profile-card__badge .material-symbols-outlined {
    font-size: 15px;
    line-height: 1;
}
.hookie-public-profile-card__body {
    display: flex;
    min-height: 118px;
    flex-direction: column;
    gap: 12px;
    padding: 16px 16px 0;
}
.hookie-public-profile-card__bio {
    display: -webkit-box;
    overflow: hidden;
    color: #45464f;
    font-size: 14px;
    line-height: 20px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.hookie-public-profile-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hookie-public-profile-card__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eceff7;
    color: #171a22;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
}
.hookie-public-profile-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px;
}
.hookie-public-profile-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}
.hookie-public-profile-card__action--secondary {
    background: #eceff7;
    color: #171a22;
}
.hookie-public-profile-card__action--primary {
    background: var(--hk-primary, #0058bc);
    color: #fff;
}
@media (max-width: 420px) {
    .hookie-public-profile-card__body {
        min-height: auto;
    }
    .hookie-public-profile-card__actions {
        grid-template-columns: 1fr;
    }
}

/* Source helpers from hookie_user_profile */
.social-shadow {
            box-shadow: 0px 2px 4px rgba(0,0,0,0.05), 0px 8px 16px rgba(0,0,0,0.05);
        }
        .glassmorphism {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }
/* Keep the shared app chrome quiet and leave the page content unframed. */
body.theme-connected:not(.admin-theme) { background: var(--hk-background, #f6f6f6); padding: 0; }
html.dark body.theme-connected:not(.admin-theme) { background: var(--hk-background, #101010); }
body.theme-connected:not(.admin-theme) main,
html.dark body.theme-connected:not(.admin-theme) main {
    background: none; border: 0; box-shadow: none; backdrop-filter: none;
}
body.theme-connected:not(.admin-theme) .hookie-header,
html.dark body.theme-connected:not(.admin-theme) .hookie-header {
    left: 0; right: 0; border: 0; border-bottom: 1px solid var(--hk-divider, #dedede);
    border-radius: 0; box-shadow: none;
}
html.dark body.theme-connected:not(.admin-theme) .hookie-header { background: var(--hk-background, #161616); border-color: var(--hk-divider, #303030); }
.hookie-primary-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; border: 0; border-radius: 8px; }
.hookie-primary-link .material-symbols-outlined { font-size: 22px; }
.hookie-primary-link[aria-current="page"] { color: var(--hk-on-selected, #a5ceff); background: var(--hk-selected, #263b51); }
html.dark .hookie-primary-link[aria-current="page"] { color: var(--hk-on-selected, #a5ceff); background: var(--hk-selected, #263b51); }
body.theme-connected:not(.admin-theme) .hookie-bottom-nav,
html.dark body.theme-connected:not(.admin-theme) .hookie-bottom-nav {
    left: 0; right: 0; bottom: 0; height: calc(68px + env(safe-area-inset-bottom));
    min-height: 68px; padding-bottom: env(safe-area-inset-bottom); border-radius: 0; box-shadow: none; border: 0;
    border-top: 1px solid var(--hk-divider, #dedede); background: #fff;
}
html.dark body.theme-connected:not(.admin-theme) .hookie-bottom-nav { border-color: var(--hk-divider, #303030); background: var(--hk-background, #161616); }
.hookie-bottom-nav a { font-size: 11px; letter-spacing: 0; }
.hookie-bottom-nav .material-symbols-outlined { font-size: 24px; }
body.theme-connected:not(.admin-theme) footer { border: 0; border-radius: 0; box-shadow: none; }
body[data-page="connections"].theme-connected main.app-page-layout { display: block; max-width: 800px !important; }
body[data-page="connections"] .font-h1 { font-size: 24px; letter-spacing: 0; }
html.dark body[data-page="connections"] .bg-white { background: var(--hk-surface-raised, #202020); }
html.dark #hookie-mobile-menu { background: var(--hk-background, #161616); }
html.dark .hookie-header button { color: var(--hk-text-secondary, #bbb); }
html.dark .hookie-header .hookie-primary-link { color: var(--hk-text-secondary, #bbb); }
html.dark .hookie-header .hookie-primary-link[aria-current="page"] { color: var(--hk-on-selected, #a5ceff); }
.hookie-match-tabs { overflow-x: auto; }
.hookie-match-tabs > a { padding: 10px 8px; font-size: 13px; white-space: nowrap; min-width: 0; gap: 8px; }
@media (max-width: 480px) { .hookie-match-tabs .material-symbols-outlined { display: none; } }
html.dark body[data-page="connections"] .text-on-surface { color: var(--hk-text, #eee); }
html.dark body[data-page="connections"] .text-on-surface-variant { color: var(--hk-text-muted, #aaa); }

body.theme-connected:not(.admin-theme) a:has(> .material-symbols-outlined),
body.theme-connected:not(.admin-theme) button:has(> .material-symbols-outlined) {
    column-gap: 10px;
}
.hookie-icon-input { padding-left: 48px !important; }
.hookie-icon-input[type="password"],
.hookie-icon-input#password { padding-right: 48px !important; }
[data-google-signin] [hidden] { display: none !important; }
[data-google-signin] { width: 100%; min-width: 0; overflow: hidden; }
[data-google-button]:not([hidden]) { display: flex; }

/* Match the existing 800px Matches body across the desktop application. */
@media (min-width: 768px) {
    body:not(.admin-theme) { --hookie-box-max: 800px; }
    body:not(.admin-theme) #app-shell {
        width: 100%;
        max-width: var(--hookie-box-max);
        margin-inline: auto;
        display: flow-root;
        min-height: 100vh;
        background: var(--hookie-frame-background, var(--hk-background, #f6f6f6));
        box-shadow: inset 1px 0 var(--hookie-frame-edge, var(--hk-border, #c9cdd2)), inset -1px 0 var(--hookie-frame-edge, var(--hk-border, #c9cdd2)), 0 0 24px rgba(0, 0, 0, .08);
    }
    body:not(.admin-theme):has(> #app-shell) { background: var(--hk-outer, #dfe2e6) !important; }
    html.dark body:not(.admin-theme):has(> #app-shell) {
        --hookie-frame-background: var(--hk-background, #161616);
        --hookie-frame-edge: var(--hk-border, #383838);
        background: var(--hk-outer, #080808) !important;
    }
    body:not(.admin-theme) #app-shell main,
    body:not(.admin-theme) #app-shell footer {
        width: 100%;
        max-width: var(--hookie-box-max) !important;
        margin-inline: auto;
        min-width: 0;
    }
    body:not(.admin-theme) #app-header,
    body:not(.admin-theme) [data-app-page-bar] {
        left: max(0px, calc((100% - var(--hookie-box-max)) / 2));
        right: max(0px, calc((100% - var(--hookie-box-max)) / 2));
        width: auto;
        max-width: var(--hookie-box-max);
        margin-inline: 0;
    }
    body:not(.admin-theme) .hookie-chat-widget {
        right: max(16px, calc((100% - var(--hookie-box-max)) / 2 + 16px)) !important;
    }
    body[data-page="login"] #app-shell main > div {
        max-width: 480px;
        margin-inline: auto;
    }
    .hookie-public-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .public-home-intro { grid-template-columns: minmax(0, 1fr) !important; }
    .hookie-nearby-filters { grid-template-columns: minmax(0, 1fr) !important; }
    .hookie-nearby-filters .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hookie-nearby-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .hookie-profile-grid { align-items: stretch; }
    body[data-page="profile"]:not(.admin-theme) #app-shell {
        position: relative;
        --hookie-frame-background: var(--hk-background, #f6f6f6);
        --hookie-frame-edge: var(--hk-border, #aeb5bf);
    }
    html.dark body[data-page="profile"]:not(.admin-theme) #app-shell {
        --hookie-frame-background: var(--hk-background, #1b1b1b);
        --hookie-frame-edge: var(--hk-border, #4a4a4a);
    }
    /* Keep the frame visible above page surfaces for its entire height. */
    body[data-page="profile"]:not(.admin-theme) #app-shell::after {
        content: "";
        position: absolute;
        inset: 0;
        border-inline: 1px solid var(--hookie-frame-edge);
        pointer-events: none;
        z-index: 60;
    }
    body[data-page="profile"]:not(.admin-theme) #app-header {
        box-sizing: border-box;
        border-inline: 1px solid var(--hookie-frame-edge, var(--hk-border, #aeb5bf));
    }
    html.dark body[data-page="profile"]:not(.admin-theme) #app-header {
        background: var(--hk-background, #1b1b1b);
        border-inline-color: var(--hk-border, #4a4a4a);
    }
    .hookie-profile-summary { flex-direction: column; gap: 16px; }
    .hookie-profile-identity { display: block; margin-top: 0; }
    .hookie-profile-identity h1 { font-size: 28px; line-height: 1.25; }
    .hookie-profile-actions { margin-top: 16px; width: 100%; flex-wrap: wrap; }
    .hookie-profile-actions > a { flex: 1 1 auto; }
    html.dark body:not(.admin-theme) #app-header .text-on-surface-variant { color: var(--hk-text-secondary, #bbb); }
    #app-shell [data-auth-decoration],
    body[data-page="login"] #app-shell > div.absolute { display: none !important; }
    #app-shell main.hookie-auth-entry { display: block; min-height: 100vh; padding: 112px 24px 40px !important; }
    #app-shell .hookie-auth-entry > .hookie-auth-form {
        width: 100% !important; max-width: 480px; min-height: 0; margin-inline: auto; padding: 0;
        background: none; border: 0; border-radius: 0; box-shadow: none;
    }
    html.dark .hookie-auth-entry .text-on-surface { color: var(--hk-text, #eee); }
    html.dark .hookie-auth-entry .text-on-surface-variant { color: var(--hk-text-secondary, #b5b5b5); }
    html.dark .hookie-auth-entry .text-primary { color: var(--hk-primary, #8bc5ff); }
    html.dark .hookie-auth-entry .bg-surface,
    html.dark .hookie-auth-entry .bg-surface-container-lowest { background: var(--hk-surface-highest, #242424); }
    html.dark .hookie-auth-entry [class~="bg-primary-container/10"] { background: var(--hk-selected, #223242); }
}

.hookie-profile-grid > div { min-width: 0; border-radius: 8px; }
html.dark .hookie-profile-grid > .bg-surface-container-lowest { background: var(--hk-surface-raised, #202020); }
html.dark .hookie-profile-grid .text-on-surface { color: var(--hk-text, #eee); }
html.dark .hookie-profile-grid .text-on-surface-variant { color: var(--hk-text-secondary, #b5b5b5); }
html.dark .hookie-profile-grid .text-primary { color: var(--hk-primary, #8bc5ff); }
html.dark .hookie-profile-grid .text-error { color: var(--hk-error, #ffb4ab); }
html.dark .hookie-profile-grid [class~="bg-error-container/40"] { background: var(--hk-error-surface, #442626); }
html.dark .hookie-profile-grid .bg-surface-container { background: var(--hk-divider, #303030); }
html.dark .hookie-profile-grid .border-surface-container-lowest { border-color: var(--hk-surface-raised, #202020); }

body[data-page="login"] #app-shell {
    background: var(--hk-background, #101010) !important;
}
body[data-page="login"] #app-shell main.hookie-auth-entry {
    display: block;
    min-height: 100svh;
    padding: 112px 20px 40px !important;
}
body[data-page="login"] #app-shell .hookie-auth-entry > .hookie-auth-form {
    width: 100% !important;
    max-width: 440px;
    margin-inline: auto;
    padding: 24px !important;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: var(--hk-surface, #181818);
    color: var(--hk-text, #eee);
    box-shadow: none;
}
body[data-page="login"] .hookie-auth-form .text-on-surface,
body[data-page="login"] .hookie-auth-form input { color: var(--hk-text, #eee); }
body[data-page="login"] .hookie-auth-form .text-on-surface-variant { color: var(--hk-text-secondary, #c2c2c2); }
body[data-page="login"] .hookie-auth-form .text-primary { color: var(--hk-primary, #8bc5ff); }
body[data-page="login"] .hookie-auth-form .bg-surface,
body[data-page="login"] .hookie-auth-form .bg-surface-container-lowest { background: var(--hk-surface-raised, #262626); }
body[data-page="login"] .hookie-auth-form .text-on-error-container { color: var(--hk-error, #ffb4ab); }
@media (max-width: 420px) {
    body[data-page="login"] #app-shell main.hookie-auth-entry { padding: 96px 16px 32px !important; }
    body[data-page="login"] #app-shell .hookie-auth-entry > .hookie-auth-form { padding: 20px !important; }
}



