:root {
    /* Core brand */
    --ranch-navy: #073B4C;
    --deep-teal: #075A67;
    --coastal-teal: #168C91;
    --lake-aqua: #35B6B4;
    --palmetto-green: #5B8F4A;
    --sunset-orange: #F4A261;
    --sky-blue: #72C7E7;

    /* Soft supporting */
    --soft-green: #E8F2E5;
    --soft-orange: #FFF0DF;
    --soft-aqua: #E1F4F5;
    --sky-panel: #E6F6FB;

    /* Semantic tokens */
    --color-primary: #073B4C;
    --color-primary-hover: #075A67;
    --color-secondary: #168C91;
    --color-secondary-hover: #11777C;
    --color-accent: #F4A261;
    --color-success: #5B8F4A;
    --color-background: #F8FBFA;
    --color-surface: #FFFFFF;
    --color-surface-secondary: #EEF3F2;
    --color-border: #DDE7E5;
    --color-text: #183238;
    --color-text-muted: #64777A;
    --color-link: #168C91;

    /* Legacy aliases (mapped to coastal system) */
    --ranch-blue: var(--ranch-navy);
    --lake-teal: var(--lake-aqua);
    --sand: var(--color-background);
    --charcoal: var(--color-text);

    /* App tokens used across existing CSS */
    --bh-green: var(--color-secondary);
    --bh-green-dark: var(--color-primary);
    --bh-green-light: var(--lake-aqua);
    --bh-green-soft: var(--soft-aqua);
    --bh-green-bg: var(--soft-aqua);
    --bh-text: var(--color-text);
    --bh-text-muted: var(--color-text-muted);
    --bh-border: var(--color-border);
    --bh-surface: var(--color-surface);
    --bh-page-bg: var(--color-background);
    --bh-orange: var(--color-accent);
    --bh-red: #E63946;
    --bh-bottom-nav-height: 76px;
    --bh-radius: 10px;
    --bh-radius-lg: 16px;
    --bh-shadow: 0 4px 16px rgba(7, 59, 76, 0.07);
    --bh-shadow-md: 0 8px 24px rgba(7, 59, 76, 0.10);
    --bh-font-display: "Montserrat", "Segoe UI", sans-serif;
    --bh-font-body: "Open Sans", "Segoe UI", sans-serif;
    --bh-font-accent: "Allura", cursive;
}

html, body {
    font-family: var(--bh-font-body);
    margin: 0;
    background: var(--bh-page-bg);
    color: var(--bh-text);
    -webkit-font-smoothing: antialiased;
}

#app { min-height: 100vh; }

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    background: var(--bh-page-bg);
    box-shadow: 0 0 0 1px var(--bh-border);
}

@media (min-width: 768px) {
    .app-shell {
        max-width: 100%;
        box-shadow: none;
    }

    .app-main {
        max-width: 1440px;
        margin: 0 auto;
        width: 100%;
        padding: 32px 40px 40px;
    }

    .page-container {
        padding: 0;
    }
}

.app-bar {
    background: var(--bh-green-dark) !important;
    color: white !important;
}

.site-header {
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 0;
    background: var(--color-primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 16px rgba(7, 59, 76, 0.18);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 76px;
}

/* Tablet: keep brand flush left (pre-alignment look); desktop keeps content-column padding. */
@media (min-width: 768px) and (max-width: 1199px) {
    .site-header-inner {
        padding-left: 0;
        padding-right: 24px;
    }
}

.site-header-actions {
    display: flex;
    align-items: stretch;
    min-width: 0;
    height: 76px;
}

.site-header-nav {
    display: flex;
    align-items: stretch;
    gap: 2px;
    height: 76px;
    flex-shrink: 1;
    min-width: 0;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-family: var(--bh-font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.site-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.site-nav-link.active {
    color: white;
    border-bottom-color: var(--lake-aqua);
}

.site-admin-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: center;
    flex-shrink: 0;
    height: 36px;
    margin-left: 12px;
    padding: 0 12px 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-family: var(--bh-font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.site-admin-link:hover {
    background: rgba(255, 255, 255, 0.16);
    color: white;
    text-decoration: none;
}

.site-admin-link.active {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.site-admin-link .mud-icon-root {
    font-size: 1.125rem;
}

@media (max-width: 1100px) and (min-width: 768px) {
    .site-admin-link {
        width: 36px;
        margin-left: 8px;
        padding: 0;
        justify-content: center;
    }

    .site-admin-link-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.app-brand-name {
    display: inline;
    margin-left: 10px;
    color: white;
    font-family: var(--bh-font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    line-height: 1;
}

@media (max-width: 1100px) and (min-width: 768px) {
    .app-brand-name { font-size: 0.95rem; }
}

@media (max-width: 940px) and (min-width: 768px) {
    .app-brand-name { font-size: 0.85rem; margin-left: 8px; }
}

.site-header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 8px 12px;
    background: var(--bh-surface);
    border-bottom: 1px solid var(--bh-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.app-brand { font-weight: 700; letter-spacing: 0.04em; }

.app-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
    color: inherit;
}

.app-brand-link:hover {
    text-decoration: none;
    color: inherit;
}

.app-brand-link-desktop {
    align-self: stretch;
    background: #FFFFFF;
    padding: 8px 36px 8px 16px;
    margin-left: 0;
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 100%, 0 100%);
    box-shadow: 4px 0 16px rgba(7, 59, 76, 0.12);
    border-radius: 0 0 0 0;
}

.app-brand-link-mobile {
    justify-content: center;
    max-width: calc(100% - 88px);
    flex: 1;
    gap: 10px;
    min-width: 0;
}

.app-brand-mark {
    display: block;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
}

.app-brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    line-height: 1;
}

.app-brand-title {
    font-family: var(--bh-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ranch-navy);
    white-space: nowrap;
}

.app-brand-hub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--bh-font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--palmetto-green);
    white-space: nowrap;
}

.app-brand-hub-rule {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--palmetto-green);
    opacity: 0.85;
}

.app-brand-tag {
    margin-top: 1px;
    font-family: var(--bh-font-display);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--deep-teal);
    white-space: nowrap;
}

.app-brand-tag .sep {
    color: var(--sunset-orange);
    margin: 0 0.15em;
    font-weight: 700;
}

.app-brand-link-mobile .app-brand-mark {
    width: 48px;
    height: 48px;
}

.app-brand-link-mobile .app-brand-title {
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

.app-brand-link-mobile .app-brand-hub {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    gap: 6px;
}

.app-brand-link-mobile .app-brand-hub-rule {
    width: 14px;
}

.app-brand-link-mobile .app-brand-tag {
    font-size: 0.52rem;
}

/* Legacy full-lockup image classes (auth/about still use the PNG) */
.app-brand-logo {
    display: block;
    width: auto;
    height: auto;
}

@media (max-width: 1100px) and (min-width: 768px) {
    .app-brand-mark { width: 52px; height: 52px; }
    .app-brand-title { font-size: 0.88rem; }
    .app-brand-hub { font-size: 0.76rem; }
    .site-nav-link {
        padding: 0 12px;
        font-size: 0.875rem;
    }
}

@media (max-width: 900px) and (min-width: 768px) {
    .app-brand-link-desktop {
        padding: 6px 32px 6px 14px;
        clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 0 100%);
        gap: 10px;
    }

    .app-brand-mark { width: 46px; height: 46px; }
    .app-brand-title { font-size: 0.78rem; letter-spacing: 0.04em; }
    .app-brand-hub { font-size: 0.68rem; gap: 6px; }
    .app-brand-hub-rule { width: 12px; }
    .app-brand-tag { display: none; }

    .site-nav-link {
        padding: 0 10px;
    }
}

@media (max-width: 380px) {
    .app-brand-link-mobile { gap: 8px; }
    .app-brand-link-mobile .app-brand-mark { width: 42px; height: 42px; }
    .app-brand-link-mobile .app-brand-title { font-size: 0.72rem; }
    .app-brand-link-mobile .app-brand-hub { font-size: 0.64rem; }
    .app-brand-link-mobile .app-brand-tag { display: none; }
    .site-header-mobile { min-height: 60px; padding: 6px 10px; }
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--bh-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 12px);
    overflow-x: hidden;
}

/* Keep page content from shrinking when the footer is pushed to the bottom of a short page. */
.app-main > * {
    flex: 0 0 auto;
    min-width: 0;
}

@media (min-width: 768px) {
    .app-main {
        padding: 32px 40px 48px;
    }
}

.page-container {
    padding: 16px 16px 8px;
}

.site-footer {
    margin-top: auto;
    padding: 20px 16px 8px;
}

.site-footer-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}

.site-footer-note {
    margin: 0;
    max-width: 18rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
    color: var(--bh-text-muted);
}

.site-footer-contact {
    font-weight: 600;
    color: var(--bh-text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.site-footer-contact:hover {
    color: var(--color-link);
}

.site-footer-contact:focus-visible {
    outline: 2px solid var(--bh-green-dark);
    outline-offset: 2px;
    border-radius: 2px;
}

.site-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--bh-radius);
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.site-footer-btn .mud-icon-root {
    font-size: 1.125rem;
}

.site-footer-btn-primary {
    border: none;
    background: var(--bh-green);
    color: #fff;
}

.site-footer-btn-primary:hover {
    background: var(--color-secondary-hover);
    color: #fff;
}

.site-footer-btn-secondary {
    border: 1px solid var(--bh-border);
    background: var(--bh-surface);
    color: var(--bh-text);
}

.site-footer-btn-secondary:hover {
    background: var(--bh-green-bg);
    color: var(--bh-text);
}

.site-footer-btn:focus-visible {
    outline: 2px solid var(--bh-green-dark);
    outline-offset: 2px;
}

.site-footer-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

@media (min-width: 768px) {
    .site-footer-btn {
        width: 280px;
    }
}

/* The Hotspots button rises above the phone menu. Keep this card clear of it. */
@media (max-width: 767px) {
    .site-footer {
        padding-bottom: 20px;
    }
}

/* The phone bar is fixed. This page's last action needs room to sit above it, including the home-indicator inset. Desktop keeps the normal page padding. */
@media (max-width: 767px) {
    .my-business-page {
        padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    }

    .my-business-actions {
        scroll-margin-bottom: calc(var(--bh-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 16px);
    }
}

.app-copyright {
    margin: 24px 0 8px;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--bh-text-muted, #6b7280);
}

.app-disclaimer {
    margin: 20px 12px 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--bh-text-muted, #6b7280);
}

.app-disclaimer + .app-copyright {
    margin-top: 8px;
}

.page-header {
    margin-bottom: 20px;
}

.page-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.page-greeting {
    font-family: var(--bh-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bh-text);
    line-height: 1.2;
    margin: 0;
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--bh-text-muted);
    margin: 4px 0 0;
}

.brand-tagline {
    font-family: var(--bh-font-accent);
    font-size: 1.5rem;
    color: var(--ranch-blue);
    margin: 6px 0 0;
    line-height: 1.2;
}

.page-title {
    font-family: var(--bh-font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--bh-text);
    margin: 0;
}

.section-block { margin-bottom: 24px; }

.welcome-banner-host {
    padding-top: 12px;
    padding-bottom: 0;
}

.welcome-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 14px 14px 16px;
    border-radius: var(--bh-radius-lg);
    border: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--soft-aqua) 0%, var(--color-surface) 100%);
}

.welcome-banner-body {
    flex: 1;
    min-width: 0;
}

.welcome-banner-title {
    margin: 0 0 4px;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-primary);
}

.welcome-banner-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.welcome-banner-dismiss {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -4px -4px 0 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
}

.welcome-banner-dismiss:hover {
    background: rgba(7, 59, 76, 0.08);
}

@media (max-width: 767.98px) {
    .welcome-banner-host {
        padding-top: 8px;
    }

    .announcement-banner.welcome-banner {
        gap: 8px;
        margin-bottom: 8px;
        padding: 8px 10px;
    }

    .announcement-banner .welcome-banner-title {
        font-size: 0.8125rem;
        margin-bottom: 2px;
    }

    .announcement-banner .welcome-banner-text {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.75rem;
        line-height: 1.35;
    }
}

.home-greeting-compact {
    font-size: 1.125rem;
    margin: 0 0 12px;
}

.home-search {
    margin-bottom: 14px;
}

.home-live-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius);
    box-shadow: var(--bh-shadow);
    text-decoration: none;
    color: inherit;
}

.home-live-copy {
    min-width: 0;
}

.home-live-primary {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bh-text);
}

.home-live-primary.is-live {
    color: var(--coastal-teal);
}

.home-live-soon {
    display: block;
    margin-top: 2px;
    font-size: 0.8125rem;
    line-height: 1.3;
    color: var(--bh-text-muted);
}

.home-live-action {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 2px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--coastal-teal);
}

.home-news .news-row {
    padding: 8px 0;
}

.home-news .news-detail {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home-featured-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius);
    box-shadow: var(--bh-shadow);
    text-decoration: none;
    color: inherit;
}

.home-featured-icon,
.home-featured-photo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.home-featured-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bh-green-soft);
    color: var(--bh-green);
}

.home-featured-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    padding: 4px;
    box-sizing: border-box;
}

.home-featured-copy {
    min-width: 0;
}

.home-featured-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--bh-text);
}

.home-featured-meta {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.6875rem;
    color: var(--bh-text-muted);
}

.ios-install-steps {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--color-text);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.ios-install-steps li + li {
    margin-top: 10px;
}

.ios-install-share-icon {
    display: inline-flex;
    vertical-align: text-bottom;
    margin: 0 2px;
    color: var(--color-primary);
}

.browser-install-steps {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--color-text);
    font-size: 0.875rem;
    line-height: 1.5;
}

.browser-install-steps li + li {
    margin-top: 10px;
}

.detail-title-actions {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.detail-admin-edit {
    margin-right: 2px;
}

.list-pager {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 16px;
}

.list-pager-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.list-pager-range,
.list-pager-status {
    margin: 0;
    color: var(--color-text-muted, #6b7280);
    font-size: 0.875rem;
}

.list-pager-nav,
.list-pager-size {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.list-pager-size {
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.list-pager-size select,
.list-pager-nav button {
    min-height: 44px;
    border: 1px solid var(--color-border, #d1d5db);
    border-radius: 8px;
    background: var(--color-surface, #fff);
    color: inherit;
    font: inherit;
}

.list-pager-size select {
    padding: 0 8px;
}

.list-pager-nav button {
    padding: 0 14px;
    cursor: pointer;
}

.list-pager-nav button:disabled {
    cursor: default;
    opacity: 0.5;
}

@media (max-width: 640px) {
    .list-pager,
    .list-pager-nav {
        width: 100%;
    }

    .list-pager-nav {
        justify-content: space-between;
    }

    .list-pager-nav button {
        flex: 1;
    }
}

.announcement-banner {
    background: linear-gradient(135deg, rgba(232, 168, 56, 0.18) 0%, var(--color-surface) 100%);
}

.announcement-banner-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-link);
    text-decoration: none;
}

.announcement-banner-link:hover {
    text-decoration: underline;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--bh-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.section-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-link);
    text-decoration: none;
    white-space: nowrap;
}

.section-link:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

.section-link-prominent {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--color-secondary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.section-link-prominent:hover {
    background: var(--color-secondary-hover);
    color: #fff;
    text-decoration: none;
}

.section-link-prominent:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.card {
    background: var(--bh-surface);
    border-radius: var(--bh-radius-lg);
    border: 1px solid var(--bh-border);
    box-shadow: var(--bh-shadow);
}

/* Compact community invite — sits inside normal Hotspots/Marketplace UI */
.hotspots-invite-callout,
.marketplace-invite-callout {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: var(--bh-radius-lg);
    border: 1px solid var(--bh-border);
    background: color-mix(in srgb, var(--bh-green) 8%, var(--bh-surface));
    box-sizing: border-box;
}

.hotspots-invite-icon,
.marketplace-invite-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--bh-green) 16%, transparent);
    color: var(--bh-green);
}

.hotspots-invite-copy,
.marketplace-invite-copy {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.hotspots-invite-title,
.marketplace-invite-title {
    margin: 0 0 2px;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bh-text);
}

.hotspots-invite-text,
.marketplace-invite-text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--bh-text-muted, #6b7280);
}

.hotspots-filter-empty,
.marketplace-filter-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
}

@media (max-width: 767px) {
    .hotspots-invite-callout,
    .marketplace-invite-callout {
        align-items: flex-start;
        padding: 12px;
    }

    .hotspots-filter-empty,
    .marketplace-filter-empty {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Today ? events */
.event-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bh-border);
}

.event-row:last-child { border-bottom: none; }

.today-event-list {
    padding: 4px 16px;
    overflow: hidden;
}

.events-list {
    padding: 4px 16px;
    overflow: hidden;
}

.event-featured-row {
    position: relative;
    background: #F8F3E4;
}

.today-event-list .event-featured-row,
.events-list .event-featured-row {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.event-featured-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #C6A35A;
}

a.event-featured-row:hover {
    background: #F3EDD6;
}

.mud-icon-root.event-featured-star {
    width: 16px;
    height: 16px;
    color: #C6A35A;
    font-size: 1rem;
    vertical-align: -3px;
}

.event-name .mud-icon-root.event-featured-star {
    margin-right: 8px;
}

.event-featured-mark {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 8px;
    margin-right: 4px;
    color: #C6A35A;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.event-featured-mark .mud-icon-root.event-featured-star {
    margin-right: 0;
    vertical-align: 0;
}

.event-submit-callout {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 12px;
    padding: 12px 14px;
    border: none;
    border-radius: 14px;
    background: #E7F6F4;
    color: inherit;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.event-submit-callout:hover {
    background: #DDF1EE;
}

.event-submit-callout:focus-visible {
    outline: 2px solid var(--coastal-teal);
    outline-offset: 2px;
}

.event-submit-callout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--coastal-teal);
    flex-shrink: 0;
}

.event-submit-callout-icon .mud-icon-root {
    color: #fff;
    font-size: 1.15rem;
}

.event-submit-callout-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.event-submit-callout-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
}

.event-submit-callout-sub {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    line-height: 1.35;
}

.event-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bh-text-muted);
    min-width: 64px;
}

.event-when {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 72px;
    line-height: 1.2;
}

.event-when-date {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--bh-text);
    letter-spacing: 0.01em;
}

.event-when-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bh-text-muted);
}

.event-date-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    padding: 6px 8px;
    border-radius: 12px;
    background: var(--soft-aqua);
    line-height: 1.05;
    flex-shrink: 0;
}

.event-date-month {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--coastal-teal);
}

.event-date-day {
    font-family: var(--bh-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
}

.event-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-icon.green { background: var(--soft-green); color: var(--palmetto-green); }
.event-icon.blue { background: var(--soft-aqua); color: var(--coastal-teal); }
.event-icon.orange { background: var(--soft-orange); color: var(--sunset-orange); }

.event-info { flex: 1; min-width: 0; }

.event-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bh-text);
    margin: 0;
}

.event-location {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin: 2px 0 0;
}

/* Pulse update card */
.pulse-update-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--bh-radius-lg);
    box-shadow: var(--bh-shadow);
}

.pulse-update-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pulse-update-text { flex: 1; min-width: 0; }

.pulse-update-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
}

.pulse-update-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-link);
    text-decoration: none;
    margin-top: 4px;
    display: inline-block;
}

/* Community news */
.news-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bh-border);
}

.news-row:last-child { border-bottom: none; }

.news-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bh-green-soft);
    color: var(--bh-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-icon.green { background: var(--soft-green); color: var(--palmetto-green); }
.news-icon.blue { background: var(--soft-aqua); color: var(--coastal-teal); }
.news-icon.orange { background: var(--soft-orange); color: var(--sunset-orange); }

.news-row-link {
    text-decoration: none;
    color: inherit;
    align-items: center;
    cursor: pointer;
}

.news-row-link > div:not(.news-icon) {
    flex: 1;
    min-width: 0;
}

.news-lead {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--bh-text);
    margin: 0 0 16px;
}

.news-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
}

.news-detail {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin: 2px 0 0;
}

/* Filter pills */
.filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--bh-border);
    background: white;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bh-text-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-pill.active {
    background: var(--bh-green);
    border-color: var(--bh-green);
    color: white;
}

.event-search-filters {
    margin-bottom: 20px;
}

.event-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-search-row .search-bar {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.event-search-row .search-bar input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
    width: 0;
    height: 0;
}

.search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.search-clear .mud-icon-root {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

.search-clear:hover {
    background: rgba(15, 61, 62, 0.08);
    color: var(--bh-text);
}

.event-filter-button {
    display: inline-flex;
    align-items: center;
    align-self: center;
    box-sizing: border-box;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--bh-border);
    border-radius: 10px;
    background: white;
    color: var(--bh-text);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    flex: 0 0 auto;
    cursor: pointer;
}

.event-filter-button .mud-icon-root {
    font-size: 1.05rem;
    width: 1.05rem;
    height: 1.05rem;
}

.event-filter-button.has-selection {
    border-color: var(--coastal-teal);
    color: var(--deep-teal);
}

.event-filter-button:disabled {
    opacity: 0.5;
    cursor: default;
}

.event-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--coastal-teal);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
}

.event-attr-panel {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px solid var(--bh-border);
    border-radius: 12px;
    background: white;
}

.event-submit-callout.after-list {
    margin: 12px 0 0;
}

.events-date-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}

.events-date-filter .events-date-picker {
    flex: 1 1 220px;
    max-width: 320px;
}

.events-date-clear {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-link);
    cursor: pointer;
}

.events-date-clear:hover {
    text-decoration: underline;
}

.events-date-clear:disabled {
    opacity: 0.5;
    cursor: default;
    text-decoration: none;
}

/* Days with events inside the MudDatePicker popup */
.mud-picker .events-calendar-has-events {
    position: relative;
}

.mud-picker .events-calendar-has-events::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: var(--bh-green, #0d7377);
    pointer-events: none;
}

/* Pulse map */
.pulse-map {
    position: relative;
    height: 300px;
    background: linear-gradient(180deg, #E8F5E9 0%, #C8E6C9 40%, #A5D6A7 100%);
    border-radius: var(--bh-radius-lg);
    overflow: hidden;
    margin-bottom: 0;
}

/* Phone landscape: keep map usable when viewport height is short. */
@media (orientation: landscape) and (max-height: 500px) {
    .pulse-map {
        height: min(58vh, 240px);
    }

    .site-header {
        min-height: 64px;
    }

    .site-header-inner {
        min-height: 64px;
    }

    .site-header-nav {
        height: 64px;
    }

    .app-brand-mark {
        width: 44px;
        height: 44px;
    }

    .app-brand-tag {
        display: none;
    }

    .bottom-nav {
        height: 64px;
    }
}

.pulse-map-google {
    background: #1a1a1a;
}

.pulse-map-canvas {
    width: 100%;
    height: 100%;
}

.pulse-map-stack .pulse-map {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.pulse-map-legend {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 16px;
    margin: 0;
    padding: 10px 14px 12px;
    border: 1px solid var(--bh-border);
    border-top: none;
    border-radius: 0 0 var(--bh-radius-lg) var(--bh-radius-lg);
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--bh-text);
}

.pulse-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

.pulse-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.pulse-legend-swatch.now { background: #F4A261; }
.pulse-legend-swatch.soon { background: #7B61A8; }
.pulse-legend-swatch.people { background: #168C91; }
.pulse-legend-swatch.place { background: #5B8F4A; }

.pulse-map-locate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 10px 10px 0;
    padding: 0;
    border: none;
    border-radius: 2px;
    background: #fff;
    color: #666;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.pulse-map-locate-btn:hover {
    color: #1a73e8;
    background: #f8f9fa;
}

.pulse-map-locate-btn:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 1px;
}

.pulse-map-fallback-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
}

.pulse-map-label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--bh-green-dark);
    opacity: 0.7;
}

.hotspot {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--bh-shadow-md);
    border: none;
    padding: 0;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hotspot.selected {
    outline: 3px solid white;
    outline-offset: 2px;
    z-index: 2;
}

.pulse-map-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.pulse-update-link-card {
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease;
}

.pulse-update-link-card:hover {
    transform: translateY(-1px);
}

.checkin-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: var(--bh-radius);
    background: var(--bh-green-bg);
    color: var(--bh-green);
    font-weight: 600;
    font-size: 0.875rem;
}

.hotspot.quiet { background: var(--bh-green-light); width: 36px; height: 36px; }
.hotspot.active { background: var(--bh-orange); width: 42px; height: 42px; }
.hotspot.busy { background: var(--bh-red); width: 48px; height: 48px; }

.hotspot.busy::before,
.hotspot.busy::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--bh-red);
    opacity: 0.4;
    animation: pulse-ring 2s ease-out infinite;
}

.hotspot.busy::before { width: 64px; height: 64px; }
.hotspot.busy::after { width: 80px; height: 80px; animation-delay: 0.5s; }

/* Category markers (fallback map) ? soft category tile + activity ring */
.hotspot.hotspot-category {
    width: 44px;
    height: 44px;
    background: #fff;
    box-shadow: var(--bh-shadow-md);
    border: 3px solid var(--bh-green-light);
}

.hotspot.hotspot-category.quiet { border-color: var(--bh-green-light); }
.hotspot.hotspot-category.active { border-color: var(--bh-orange); width: 46px; height: 46px; }
.hotspot.hotspot-category.busy {
    border-color: var(--bh-red);
    width: 48px;
    height: 48px;
}

.hotspot.hotspot-category.marker-place { border-color: #5B8F4A; }
.hotspot.hotspot-category.marker-people { border-color: #168C91; width: 46px; height: 46px; }
.hotspot.hotspot-category.marker-soon { border-color: #7B61A8; width: 46px; height: 46px; }
.hotspot.hotspot-category.marker-now { border-color: #F4A261; width: 46px; height: 46px; }
.hotspot.hotspot-category.marker-now.marker-soon::after {
    content: "";
    position: absolute;
    left: -2px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #7B61A8;
    border: 2px solid #fff;
}

.hotspot.hotspot-category.busy::before,
.hotspot.hotspot-category.busy::after {
    border-color: var(--bh-red);
}

.hotspot-category-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.hotspot-category-thumb.green { background: var(--soft-green); color: var(--palmetto-green); }
.hotspot-category-thumb.blue { background: #DBEAFE; color: #2563EB; }
.hotspot-category-thumb.orange { background: #FFEDD5; color: #EA580C; }

.hotspot-category-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #168C91;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
    box-shadow: var(--bh-shadow-sm);
}

.hotspot.hotspot-category.quiet .hotspot-category-count { background: var(--bh-green-light); }
.hotspot.hotspot-category.active .hotspot-category-count { background: var(--bh-orange); }
.hotspot.hotspot-category.busy .hotspot-category-count { background: var(--bh-red); }

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* Location drawer */
.location-drawer {
    background: white;
    border-radius: var(--bh-radius-lg);
    border: 1px solid var(--bh-border);
    margin-top: 12px;
    padding: 16px;
    box-shadow: var(--bh-shadow);
}

.location-drawer-handle {
    width: 36px;
    height: 4px;
    background: var(--bh-border);
    border-radius: 2px;
    margin: 0 auto 12px;
}

.location-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.location-meta {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin: 4px 0 12px;
}

.comment-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--bh-border);
}

.hotspot-live-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 12px;
}

.hotspot-live-event {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--bh-radius);
    background: var(--bh-green-bg);
    color: var(--bh-text);
    text-decoration: none;
}

.hotspot-live-event:hover {
    filter: brightness(0.97);
}

.hotspot-live-event.is-now { background: #FFF0DF; }
.hotspot-live-event.is-soon { background: #F3EEF8; }
.hotspot-live-event.is-now .hotspot-live-event-icon,
.hotspot-live-event.is-now .hotspot-live-event-label { color: #C56A1A; }
.hotspot-live-event.is-soon .hotspot-live-event-icon,
.hotspot-live-event.is-soon .hotspot-live-event-label { color: #6B4C9A; }

.hotspot-live-event-icon,
.hotspot-live-event-chevron {
    color: var(--bh-green);
    flex-shrink: 0;
}

.hotspot-live-event-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.hotspot-live-event-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--bh-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hotspot-live-event-title {
    font-size: 0.9375rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.hotspot-live-event-meta {
    font-size: 0.75rem;
    color: var(--bh-text-muted);
}

.hotspots-page {
    overflow-x: hidden;
}

.hotspots-page .hotspot-filters {
    min-width: 0;
    max-width: 100%;
    margin-bottom: 6px;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0;
    scroll-padding-inline: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.hotspot-filters::-webkit-scrollbar {
    display: none;
}

.hotspot-view-label {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    line-height: 1.3;
    font-weight: 400;
    text-align: left;
    color: var(--bh-text-muted);
}

.hotspot-filters .filter-pill {
    flex: 0 0 auto;
    gap: 6px;
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.875rem;
    line-height: 1.2;
    scroll-margin-inline: 8px;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.hotspot-filters .filter-pill .mud-icon-root {
    font-size: 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
}

@media (min-width: 768px) {
    .pulse-map-legend {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px 20px;
    }
}

.hotspots-page .pulse-location-search,
.hotspots-page .pulse-place-finder-trigger {
    max-width: none;
}

.hotspot-nearby {
    margin-top: 16px;
}

.hotspot-nearby-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
}

.hotspot-nearby-header h2 {
    margin: 0;
    font-family: var(--bh-font-display);
    font-size: 1.05rem;
    font-weight: 700;
}

.hotspot-view-all {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: none;
    background: none;
    padding: 0;
    color: var(--coastal-teal);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.hotspot-nearby-empty {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg);
    background: var(--bh-surface);
    color: var(--bh-text-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.hotspot-activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hotspot-activity-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--bh-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--bh-shadow);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

.hotspot-activity-card.selected {
    border-color: var(--coastal-teal);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--coastal-teal) 28%, transparent);
}

.hotspot-activity-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 auto;
    background: var(--soft-green);
}

.hotspot-activity-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hotspot-activity-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotspot-activity-fallback.green { background: var(--soft-green); color: var(--palmetto-green); }
.hotspot-activity-fallback.blue { background: #DBEAFE; color: #2563EB; }
.hotspot-activity-fallback.orange { background: #FFEDD5; color: #EA580C; }

.hotspot-activity-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.hotspot-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.35;
}

.hotspot-status-badge.now { background: #FFF0DF; color: #C56A1A; }
.hotspot-status-badge.soon { background: #F3EEF8; color: #6B4C9A; }
.hotspot-status-badge.people { background: #E1F4F5; color: #0E6E73; }
.hotspot-status-badge.place { background: #E8F2E5; color: #3E6B32; }

.hotspot-activity-name {
    max-width: 100%;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hotspot-activity-subtitle,
.hotspot-activity-time,
.hotspot-activity-checkins,
.hotspot-activity-more {
    max-width: 100%;
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--bh-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hotspot-activity-subtitle {
    color: var(--bh-text);
    font-weight: 600;
}

.hotspot-activity-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hotspot-activity-time .mud-icon-root {
    font-size: 0.9rem;
    width: 0.9rem;
    height: 0.9rem;
}

.hotspot-activity-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    align-self: stretch;
    gap: 8px;
    flex: 0 0 auto;
    color: var(--bh-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .hotspot-nearby {
        max-width: 640px;
    }
}

/* Desktop only: map and activity list side by side. Below 1100px the stage stays stacked. */
@media (min-width: 1100px) {
    .hotspots-page {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 20px;
        align-items: start;
    }

    .hotspots-page > * {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .hotspots-page > .page-header {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 12px;
    }

    .hotspots-page > .pulse-checkin-cta {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        width: auto;
        min-width: max-content;
        margin: 0;
        padding: 10px 18px;
        white-space: nowrap;
    }

    .hotspots-page .hotspots-toolbar {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .hotspots-page .hotspots-toolbar .pulse-place-finder-desktop {
        flex: 0 0 380px;
        width: 380px;
        max-width: 380px;
    }

    .hotspots-page .hotspots-toolbar .pulse-location-search {
        width: 100%;
        max-width: none;
        margin-bottom: 0 !important;
    }

    .hotspots-page .hotspots-toolbar .hotspot-filters {
        flex: 1 1 auto;
        width: auto;
        margin-bottom: 0;
    }

    .hotspots-page .hotspots-stage {
        display: grid;
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        column-gap: 20px;
        row-gap: 16px;
        align-items: start;
    }

    .hotspots-page .hotspots-stage > .pulse-map-stack {
        grid-column: 1;
        grid-row: 1;
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        width: 100%;
        height: 500px;
        min-width: 0;
        min-height: 0;
    }

    .hotspots-page .hotspots-stage > .pulse-map-stack > .pulse-map {
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
    }

    .hotspots-page .hotspots-stage > .pulse-map-stack > .pulse-map-legend {
        min-height: 0;
    }

    .hotspots-page .hotspots-stage > .hotspot-nearby {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 500px;
        max-width: none;
        max-height: 500px;
        margin-top: 0;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
        box-sizing: border-box;
        background: #fff;
        border: 1px solid var(--bh-border);
        border-radius: var(--bh-radius-lg);
    }

    .hotspots-page .hotspots-stage > .hotspot-nearby > .hotspot-nearby-header {
        flex: 0 0 auto;
        margin: 0;
        padding: 14px 16px 12px;
        border-bottom: 1px solid var(--bh-border);
    }

    .hotspots-page .hotspots-stage > .hotspot-nearby > .hotspot-nearby-empty {
        margin: 12px 16px;
        border: none;
        background: transparent;
        padding: 4px 0 8px;
    }

    .hotspots-page .hotspots-stage > .hotspot-nearby > .hotspot-activity-list {
        flex: 1 1 auto;
        min-height: 0;
        box-sizing: border-box;
        padding: 12px 12px 16px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(7, 59, 76, 0.35) transparent;
    }

    .hotspots-page .hotspots-stage > .hotspot-nearby > .hotspot-activity-list::-webkit-scrollbar {
        width: 8px;
    }

    .hotspots-page .hotspots-stage > .hotspot-nearby > .hotspot-activity-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .hotspots-page .hotspots-stage > .hotspot-nearby > .hotspot-activity-list::-webkit-scrollbar-thumb {
        background: rgba(7, 59, 76, 0.35);
        border-radius: 999px;
    }

    .hotspots-page .hotspots-stage > .hotspot-nearby > .hotspot-activity-list > .hotspot-activity-card {
        flex: 0 0 auto;
    }

    .hotspots-page .hotspots-stage > .location-drawer {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 0;
    }

    .hotspots-page .hotspots-stage > .pulse-place-sheet,
    .hotspots-page .hotspots-stage > .pulse-place-sheet-backdrop {
        position: fixed;
    }
}

.comment-author {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bh-text);
}

.comment-time {
    font-size: 0.75rem;
    color: var(--bh-text-muted);
    margin-left: 8px;
}

.comment-text {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin: 4px 0 0;
}

.btn-checkin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    border: none;
    border-radius: var(--bh-radius);
    background: var(--bh-green);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.pulse-checkin-cta {
    margin: 0 0 12px;
}

.pulse-location-search {
    max-width: 420px;
}

.pulse-place-finder-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 520px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius);
    background: var(--bh-surface);
    color: var(--bh-text);
    box-shadow: var(--bh-shadow);
    cursor: pointer;
    text-align: left;
}

.pulse-place-finder-label {
    flex: 1;
    font-size: 0.9375rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pulse-place-finder-chevron {
    color: var(--bh-text-muted);
}

.pulse-place-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1200;
}

.pulse-place-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1201;
    max-height: min(78vh, 640px);
    display: flex;
    flex-direction: column;
    background: var(--bh-surface);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

@media (orientation: landscape) and (max-height: 560px) {
    .pulse-place-sheet {
        max-height: min(88vh, 480px);
    }
}

.pulse-place-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: var(--bh-border);
    margin: 10px auto 6px;
}

.pulse-place-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px 8px;
}

.pulse-place-sheet-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
}

.pulse-place-sheet-close {
    border: none;
    background: transparent;
    padding: 6px;
    cursor: pointer;
    color: var(--bh-text-muted);
}

.pulse-place-sheet-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px 14px;
    margin-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.pulse-place-sheet-categories::-webkit-scrollbar {
    height: 4px;
}

.pulse-place-sheet-categories::-webkit-scrollbar-thumb {
    background: #c5c9ce;
    border-radius: 999px;
}

.pulse-place-cat-chip {
    flex: 0 0 auto;
    border: 1px solid var(--bh-border);
    background: #fff;
    color: var(--bh-text);
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.pulse-place-cat-chip.active {
    background: var(--bh-green);
    border-color: var(--bh-green);
    color: #fff;
}

.pulse-place-sheet-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px 8px;
    -webkit-overflow-scrolling: touch;
}

.pulse-place-sheet-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 12px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.pulse-place-sheet-item:hover,
.pulse-place-sheet-item.selected {
    background: var(--bh-green-bg);
}

.pulse-place-sheet-item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bh-text);
}

.pulse-place-sheet-item-meta {
    font-size: 0.75rem;
    color: var(--bh-text-muted);
}

.pulse-place-sheet-footer {
    padding: 8px 16px 0;
    border-top: 1px solid var(--bh-border);
}

.pulse-place-sheet-type-toggle {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--bh-green);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 10px;
    cursor: pointer;
}

.pulse-place-sheet-type {
    width: 100%;
}

.pulse-nearby-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pulse-nearby-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--bh-border, rgba(0, 0, 0, 0.12));
    border-radius: var(--bh-radius);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.pulse-nearby-item:hover {
    background: rgba(11, 61, 74, 0.06);
}

.pulse-nearby-name {
    font-weight: 600;
    color: var(--bh-text, inherit);
}

.pulse-nearby-meta {
    margin-top: 2px;
    font-size: 0.8125rem;
    color: var(--bh-text-muted, rgba(0, 0, 0, 0.54));
}

.btn-checkin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkin-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.checkin-actions .btn-checkin {
    margin-top: 0;
}

/* Explore search */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius);
    margin-bottom: 20px;
    box-shadow: var(--bh-shadow);
}

.search-bar input {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    background: transparent;
    color: var(--bh-text);
}

.search-bar input::placeholder { color: #9CA3AF; }

button.search-bar-button {
    width: 100%;
    cursor: pointer;
    font: inherit;
    text-align: left;
    color: inherit;
}

.search-bar-placeholder {
    flex: 1;
    font-size: 0.9375rem;
    color: #9CA3AF;
}

.category-scroll {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    width: 80px;
    min-width: 80px;
    text-decoration: none;
    color: var(--bh-text-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.category-item.active .category-icon {
    border-color: var(--bh-green);
    background: rgba(91, 143, 74, 0.10);
}

.category-item.active {
    color: var(--bh-green);
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--bh-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--bh-green);
    box-shadow: var(--bh-shadow);
}

.business-category-bar {
    position: relative;
    margin-bottom: 24px;
}

.businesses-page .business-category-scroll {
    margin-bottom: 0;
}

.business-list-heading {
    display: block;
}

.business-list-count {
    margin: 4px 0 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--color-text-muted);
}

.business-category-picker,
.business-category-current {
    display: none;
}

.business-category-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    border: 0;
    padding: 0;
    background: transparent;
}

.business-category-menu {
    position: absolute;
    z-index: 21;
    right: 0;
    top: calc(100% + 8px);
    width: min(420px, 100%);
    max-height: 70vh;
    overflow: auto;
    background: white;
    border: 1px solid var(--bh-border);
    border-radius: 12px;
    box-shadow: var(--bh-shadow);
    padding: 8px;
}

.business-category-group {
    margin: 10px 8px 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bh-text-muted);
}

.business-category-option {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--bh-text);
    cursor: pointer;
}

.business-category-option.active {
    background: rgba(91, 143, 74, 0.10);
    color: var(--bh-green);
}

.business-category-mobile-block {
    display: none;
}

.business-category-current {
    margin-top: 8px;
    border: 0;
    background: transparent;
    color: var(--bh-green);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.business-category-current span {
    margin-left: 8px;
    font-weight: 600;
    color: var(--bh-text-muted);
}

@media (min-width: 768px) {
    .business-category-current {
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 767.98px) {
    .businesses-page .business-category-scroll {
        display: none;
    }

    .business-category-picker {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 44px;
        padding: 0 12px;
        border: 1px solid var(--bh-border);
        border-radius: 10px;
        background: white;
        font-weight: 600;
        color: var(--bh-text);
        cursor: pointer;
    }

    .business-category-menu {
        left: 0;
        right: 0;
        width: auto;
    }

    .business-category-mobile-block {
        display: block;
    }
}

.category-scroll-events .category-item {
    width: 108px;
    min-width: 108px;
}

.events-scope-select {
    display: none;
}

.events-scope-select select {
    height: 40px;
    max-width: 9.5rem;
    padding: 0 1.6rem 0 0.7rem;
    border: 1px solid var(--bh-border);
    border-radius: 10px;
    background-color: white;
    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='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    color: var(--bh-text);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    appearance: none;
}

@media (max-width: 767.98px) {
    .page-header-inline,
    .businesses-page .marketplace-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .businesses-page .marketplace-header {
        flex-wrap: nowrap;
        align-items: center;
    }

    .page-header-inline .detail-back,
    .businesses-page .marketplace-header .detail-back {
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .page-header-inline .page-header-titles,
    .businesses-page .marketplace-header > .page-title {
        margin-left: auto;
        text-align: right;
        min-width: 0;
    }

    .page-header-inline .page-title,
    .businesses-page .page-title {
        font-size: 1.0625rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .businesses-page .btn-add-listing {
        flex-shrink: 0;
    }

    .events-page .page-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
    }

    .events-page .page-header .detail-back {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .events-page .page-title {
        font-size: 1.0625rem;
        line-height: 1.2;
        text-align: right;
        white-space: nowrap;
    }

    .events-page .filter-pills {
        display: none;
    }

    .events-page .events-scope-select {
        display: block;
        flex: 0 0 auto;
        max-width: 46%;
        overflow: hidden;
    }

    .events-page .events-scope-select select {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .events-page .event-search-filters {
        margin-bottom: 8px;
    }

    .events-page .event-search-row {
        gap: 8px;
    }

    .events-page .event-search-row .search-bar {
        padding: 8px 10px;
        margin-bottom: 0;
        min-height: 40px;
        overflow: hidden;
    }

    .events-page .event-filter-label {
        display: none;
    }

    .events-page .event-filter-button {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        align-self: center;
    }

    .events-page .event-filter-button.has-selection {
        width: auto;
        padding: 0 8px;
        gap: 4px;
    }

    .events-page .category-scroll-events {
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 8px;
        padding-bottom: 18px;
    }

    .events-page .category-scroll-events .category-icon {
        display: none;
    }

    .events-page .category-scroll-events .category-item {
        flex-direction: row;
        width: auto;
        min-width: 0;
        gap: 0;
        padding: 6px 12px;
        border: 1px solid var(--bh-border);
        border-radius: 999px;
        background: white;
        color: var(--bh-text-muted);
        font-size: 0.8125rem;
    }

    .events-page .category-scroll-events .category-item > span {
        display: block;
        width: auto;
        height: auto;
        overflow: visible;
        font-size: 0.8125rem;
        line-height: 1.2;
        white-space: nowrap;
        word-break: normal;
        -webkit-line-clamp: unset;
    }

    .events-page .category-scroll-events .category-item.active {
        background: var(--bh-green);
        border-color: var(--bh-green);
        color: #fff;
    }
}

.category-item > span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-align: center;
    line-height: 1.2;
    height: 2.4em;
    width: 100%;
    word-break: break-word;
}

/* Place cards */
.place-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg);
    margin-bottom: 10px;
    box-shadow: var(--bh-shadow);
}

.place-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--bh-green-soft), #B7E4C7);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bh-green);
}

.place-thumb.green { background: var(--soft-green); color: var(--palmetto-green); }
.place-thumb.blue { background: #DBEAFE; color: #2563EB; }
.place-thumb.orange { background: #FFEDD5; color: #EA580C; }

.place-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
}

.place-meta {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin: 4px 0 0;
}

.place-hours {
    font-size: 0.75rem;
    color: var(--bh-green);
    font-weight: 600;
    margin-top: 4px;
}

/* Explore event date badge */
.explore-event {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bh-border);
}

.explore-event:last-child { border-bottom: none; }

.date-badge {
    width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.date-badge-month {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--bh-green);
    letter-spacing: 0.04em;
}

.date-badge-day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bh-text);
    line-height: 1;
}

/* Marketplace */
.marketplace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .businesses-page .marketplace-header {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        column-gap: 12px;
    }

    .businesses-page .marketplace-header .detail-back {
        grid-column: 1 / -1;
        justify-self: start;
        justify-content: flex-start;
        width: auto;
    }
}

.btn-add-listing {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bh-green);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--bh-shadow-md);
}

.featured-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
    scrollbar-width: none;
}

.featured-scroll::-webkit-scrollbar {
    display: none;
}

.featured-card-btn {
    width: 140px;
    min-width: 140px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}

.featured-card {
    min-width: 140px;
    flex-shrink: 0;
}

.featured-image {
    width: 140px;
    height: 140px;
    border-radius: var(--bh-radius);
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.featured-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bh-green);
    line-height: 1.2;
}

.featured-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bh-text);
    margin: 4px 0 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-location {
    font-size: 0.75rem;
    color: var(--bh-text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg);
    margin-bottom: 10px;
    box-shadow: var(--bh-shadow);
}

.listing-row-body {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.listing-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    flex-shrink: 0;
}

.marketplace-empty-placeholders {
    margin-top: 4px;
}

.listing-placeholder {
    pointer-events: none;
    opacity: 0.72;
    box-shadow: none;
    background: color-mix(in srgb, var(--bh-surface) 88%, #e8eef0);
}

.listing-thumb-placeholder {
    background: linear-gradient(135deg, #e8eef0, #d9e2e6);
}

.listing-placeholder-line {
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e2e8ea 0%, #eef3f4 50%, #e2e8ea 100%);
    background-size: 200% 100%;
    margin-bottom: 8px;
}

.listing-placeholder-price {
    width: 28%;
}

.listing-placeholder-title {
    width: 62%;
}

.listing-placeholder-meta {
    width: 44%;
    margin-bottom: 0;
    height: 8px;
}

.marketplace-placeholder-caption {
    margin: 4px 2px 0;
    font-size: 0.8125rem;
    color: var(--bh-text-muted, #6b7280);
}

.listing-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--bh-green);
}

.listing-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-meta {
    font-size: 0.75rem;
    color: var(--bh-text-muted);
    margin-top: 2px;
}

.listing-link {
    width: 100%;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.my-listing-row {
    padding: 0 12px 0 0;
}

.my-listing-open {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 10px 0 10px 12px;
    background: transparent;
}

.my-listing-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.my-listing-chip {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
}

.my-listing-chip.sold {
    background: #E0F2FE;
    color: #0369A1;
}

.my-listing-chip.expired {
    background: #FEF3C7;
    color: #92400E;
}

.my-listing-expiring {
    color: #B45309;
    font-weight: 600;
}

.my-listing-renew {
    flex-shrink: 0;
}

.marketplace-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bh-green);
    margin: 12px 0 4px;
}

.marketplace-hero-placeholder {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}

.marketplace-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.marketplace-gallery-thumb {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: var(--bh-radius-lg);
    cursor: zoom-in;
    flex-shrink: 0;
    line-height: 0;
}

.marketplace-gallery-thumb:focus-visible {
    outline: 2px solid var(--bh-teal, #168C91);
    outline-offset: 2px;
}

.marketplace-gallery-image {
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--bh-radius-lg);
    flex-shrink: 0;
    pointer-events: none;
}

.marketplace-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    outline: none;
}

.marketplace-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(8, 24, 28, 0.88);
    cursor: pointer;
}

.marketplace-lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(1100px, 100%);
    max-height: 100%;
    pointer-events: none;
}

.marketplace-lightbox-image {
    display: block;
    max-width: min(1100px, 92vw);
    max-height: min(88vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: #0b1c20;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.marketplace-lightbox-close,
.marketplace-lightbox-nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(6px);
}

.marketplace-lightbox-close:hover,
.marketplace-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.24);
}

.marketplace-lightbox-close {
    top: 12px;
    right: 12px;
}

.marketplace-lightbox-prev {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.marketplace-lightbox-next {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.marketplace-lightbox-count {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.8125rem;
    pointer-events: none;
}

@media (min-width: 960px) {
    .marketplace-gallery-image {
        width: 340px;
        height: 240px;
    }

    .marketplace-lightbox {
        padding: 28px;
    }

    .marketplace-lightbox-prev {
        left: -8px;
    }

    .marketplace-lightbox-next {
        right: -8px;
    }
}

.marketplace-edit-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.marketplace-edit-image {
    position: relative;
    width: 96px;
    height: 96px;
}

.marketplace-edit-image img,
.marketplace-edit-image-fallback {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
}

.marketplace-edit-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    color: var(--bh-text-muted);
}

.marketplace-edit-image .mud-icon-button {
    position: absolute;
    top: -8px;
    right: -8px;
    background: white;
}

.file-upload {
    position: relative;
    display: inline-flex;
    width: 100%;
    cursor: pointer;
}

.file-upload.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

.file-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--bh-green);
    background: var(--bh-green-bg);
    color: var(--bh-green-dark);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.file-upload:hover:not(.is-disabled) .file-upload-btn {
    background: var(--bh-green-soft);
    border-color: var(--bh-green-dark);
}

.file-upload:focus-within .file-upload-btn {
    outline: 2px solid var(--bh-green-light);
    outline-offset: 2px;
}

.message-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg);
    margin-bottom: 10px;
    box-shadow: var(--bh-shadow);
}

.message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bh-green-soft), var(--bh-green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bh-green);
    flex-shrink: 0;
}

.message-row-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}

.message-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bh-text);
}

.message-time {
    font-size: 0.75rem;
    color: var(--bh-text-muted);
    flex-shrink: 0;
}

.message-listing,
.message-listing-header {
    font-size: 0.75rem;
    color: var(--bh-green);
    margin-top: 2px;
}

.message-preview {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-unread {
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: var(--bh-green);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
}

.message-thread-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
}

.message-thread-header {
    margin-bottom: 12px;
}

.message-thread {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.message-bubble {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 16px;
}

.message-bubble.mine {
    align-self: flex-end;
    background: var(--bh-green);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble.theirs {
    align-self: flex-start;
    background: white;
    border: 1px solid var(--bh-border);
    border-bottom-left-radius: 4px;
}

.message-bubble-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.message-bubble-time {
    display: block;
    font-size: 0.6875rem;
    opacity: 0.75;
    margin-top: 4px;
}

.message-compose {
    margin-top: auto;
}

.notification-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg);
    margin-bottom: 10px;
    box-shadow: var(--bh-shadow);
}

.notification-row.unread {
    border-color: #C8E6C9;
    background: #F9FFF9;
}

.notification-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bh-text);
}

.notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bh-green);
    flex-shrink: 0;
}

/* More ? profile */
.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: white;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg);
    margin-bottom: 16px;
    box-shadow: var(--bh-shadow);
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bh-green-soft), var(--bh-green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bh-green-dark);
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-name {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    color: var(--bh-green);
    font-size: 1.125rem;
}

.profile-subtitle {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin: 2px 0 0;
}

.menu-card {
    background: white;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg);
    overflow: hidden;
    box-shadow: var(--bh-shadow);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--bh-border);
    text-decoration: none;
    color: var(--bh-text);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    background: white;
    width: 100%;
    border-left: none;
    border-right: none;
    border-top: none;
    text-align: left;
}

.menu-item:last-child { border-bottom: none; }

.menu-item:hover { background: var(--bh-green-bg); }

.menu-item.disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.menu-item-icon {
    color: var(--bh-green);
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item-chevron {
    margin-left: auto;
    color: #D1D5DB;
}

.menu-section-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--bh-text-muted);
    padding: 12px 16px 4px;
    text-transform: uppercase;
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--bh-bottom-nav-height);
    background: white;
    border-top: 1px solid var(--bh-border);
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .bottom-nav { max-width: 100%; left: 0; transform: none; }
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    text-decoration: none;
    color: #9CA3AF;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-bottom: 8px;
    min-height: 52px;
}

.bottom-nav-item .mud-icon-root { font-size: 1.375rem; }

.bottom-nav-item.active { color: var(--bh-green); }

.bottom-nav-icon-wrap {
    position: relative;
    display: inline-flex;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
}

.site-nav-link-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mobile-notif-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--bh-text);
    padding: 8px;
    flex-shrink: 0;
}

.mobile-notif-link .nav-badge {
    position: absolute;
    top: 2px;
    right: 0;
}

.mobile-header-spacer {
    width: 40px;
    flex-shrink: 0;
}

.mobile-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 999px;
    color: var(--bh-text-muted);
    text-decoration: none;
}

.mobile-admin-link:hover,
.mobile-admin-link.active {
    color: var(--bh-green);
    background: rgba(7, 59, 76, 0.06);
    text-decoration: none;
}

.mobile-admin-link .mud-icon-root {
    font-size: 1.35rem;
}

.bottom-nav-item-badge .nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
}

.message-bubble-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.message-report-btn {
    border: 0;
    background: transparent;
    color: var(--bh-text-muted);
    font-size: 0.7rem;
    padding: 0;
    cursor: pointer;
}

.message-report-btn:hover {
    color: var(--bh-text);
}

.menu-item-label {
    flex: 1;
    min-width: 0;
}

.pulse-nav-item {
    position: relative;
    justify-content: flex-end;
    padding-bottom: 6px;
}

.pulse-button {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--bh-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(91, 143, 74, 0.45);
    margin-top: -28px;
    margin-bottom: 2px;
    border: 4px solid white;
}

.pulse-nav-item span {
    color: var(--bh-green);
    font-weight: 700;
}

.pulse-nav-desktop { border-radius: 999px !important; }

.auth-page { max-width: 480px; margin: 0 auto; }

.auth-field-label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bh-text);
}

.auth-page .auth-field.mud-input-control {
    margin-top: 0;
}

.auth-page .auth-field .mud-input-label {
    display: none;
}

.neighborhood-picker {
    position: relative;
}

.neighborhood-picker-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    padding: 4px 8px 4px 12px;
    border: 1px solid var(--mud-palette-lines-inputs, #9e9e9e);
    border-radius: var(--bh-radius, 8px);
    background: var(--bh-surface, #fff);
    color: var(--bh-text);
    box-sizing: border-box;
}

.neighborhood-picker-main,
.neighborhood-picker-clear,
.neighborhood-picker-chevron-btn {
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.neighborhood-picker-main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 32px;
    text-align: left;
}

.neighborhood-picker-clear,
.neighborhood-picker-chevron-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--bh-text-muted, #6b7280);
}

.neighborhood-picker-clear:hover,
.neighborhood-picker-chevron-btn:hover {
    background: color-mix(in srgb, var(--bh-green) 12%, transparent);
    color: var(--bh-green);
}

.neighborhood-picker-trigger.is-open {
    border-color: var(--bh-green);
    box-shadow: 0 0 0 1px var(--bh-green);
}

.neighborhood-picker-trigger:not(.has-value) .neighborhood-picker-value {
    color: var(--bh-text-muted, #6b7280);
}

.neighborhood-picker-icon,
.neighborhood-picker-chevron {
    flex: 0 0 auto;
    color: var(--bh-text-muted, #6b7280);
}

.neighborhood-picker-value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9375rem;
}

.neighborhood-picker-panel {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    padding: 10px;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg, 12px);
    background: var(--bh-surface, #fff);
    box-shadow: var(--bh-shadow, 0 8px 24px rgba(0, 0, 0, 0.08));
    box-sizing: border-box;
}

.neighborhood-picker-search {
    margin-bottom: 0 !important;
}

.neighborhood-picker-list {
    max-height: 220px;
    overflow-y: auto;
}

.neighborhood-picker-option {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--bh-text);
    cursor: pointer;
}

.neighborhood-picker-option.is-pinned {
    font-weight: 600;
    border-bottom: 1px solid var(--bh-border);
    border-radius: 8px 8px 0 0;
    margin-bottom: 4px;
}

.neighborhood-picker-option:hover,
.neighborhood-picker-option.is-selected {
    background: color-mix(in srgb, var(--bh-green) 12%, transparent);
    color: var(--bh-green);
}

.neighborhood-picker-empty {
    margin: 8px 4px;
    font-size: 0.8125rem;
    color: var(--bh-text-muted, #6b7280);
}

.password-match-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--bh-green);
    font-weight: 600;
}

.password-match-icon {
    color: var(--bh-green);
}

.form-inline-alert {
    border-radius: 10px;
}

.legal-card {
    padding: 20px 18px;
}

.legal-body {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.55;
}

.legal-body h2 {
    margin: 1.35rem 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bh-green-dark);
}

.legal-body h3 {
    margin: 0.9rem 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 650;
    color: #1f2937;
}

.legal-body p,
.legal-body ul {
    margin: 0 0 0.75rem;
}

.legal-body ul {
    padding-left: 1.2rem;
}

.legal-body li {
    margin-bottom: 0.35rem;
}

.auth-account-type.mud-input-control {
    margin-top: 0;
}

.auth-account-type .mud-input-control-boolean-input,
.auth-account-type .mud-radio {
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle;
}

.auth-account-type .mud-radio {
    margin-inline-end: 1.25rem;
    margin-bottom: 0;
}

.auth-account-type .mud-button-root.mud-icon-button,
.auth-account-type .mud-radio-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
}

.auth-account-type .mud-radio .mud-typography,
.auth-account-type .mud-radio > span,
.auth-account-type .mud-radio .mud-radio-content {
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
}

/* Loading & offline */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #E4DFD4;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--bh-green-light);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--bh-green-dark);
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.offline-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: var(--bh-page-bg);
}

.offline-container h1 { color: var(--bh-green-dark); }

/* Clickable list items */
.event-row-link,
.place-card-link,
.explore-event-link,
.news-row-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.event-row-link:hover,
.place-card-link:hover,
.explore-event-link:hover,
.news-row-link:hover {
    background: rgba(91, 143, 74, 0.06);
}

.place-card-link {
    align-items: center;
}

.place-card-body,
.explore-event-body {
    flex: 1;
    min-width: 0;
}

.explore-event-link {
    align-items: center;
}

.list-chevron {
    color: var(--bh-text-muted);
    flex-shrink: 0;
    opacity: 0.5;
}

/* Detail pages */
.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    color: var(--bh-green);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
}

.detail-hero {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-hero.green { background: var(--bh-green-soft); color: var(--bh-green); }
.detail-hero.blue { background: #DBEAFE; color: #2563EB; }
.detail-hero.orange { background: #FFEDD5; color: #EA580C; }
.detail-hero.location { background: var(--bh-green-soft); color: var(--bh-green); }

/* Event flyers/posters: show the full image (no cover crop). */
.event-hero {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bh-surface-muted, #E8EEF0);
}

.event-hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.event-hero-backdrop {
    display: none;
}

/* Wider screens: square or tall images would otherwise fill the whole window, so cap the height
   and fill the sides with a blurred copy of the same image. */
@media (min-width: 768px) {
    .event-hero {
        position: relative;
        display: flex;
        justify-content: center;
    }

    .event-hero-backdrop {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: blur(28px) brightness(0.8) saturate(1.2);
        transform: scale(1.35);
    }

    .event-hero-image {
        position: relative;
        width: auto;
        max-width: 100%;
        max-height: 420px;
    }
}

/* Tall photos would otherwise push the place details far down the page. */
.location-hero-image {
    max-height: 360px;
}

.detail-heading {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}

.detail-heading-body {
    min-width: 0;
    flex: 1;
}

.detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.detail-chips .detail-chip {
    margin-bottom: 0;
}

.detail-heading-body > .detail-hours-banner:last-child {
    margin-bottom: 0;
}

.detail-layout {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-cta {
    margin-top: 4px;
    width: 100%;
}

.event-update-prompt {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: 16px;
    color: var(--mud-palette-text-secondary);
    font-size: 0.875rem;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.detail-title-row .detail-title {
    flex: 1;
    margin-bottom: 0;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bh-text);
    margin: 0 0 8px;
    line-height: 1.25;
}

.detail-chip {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bh-green-soft);
    color: var(--bh-green);
    margin-right: 6px;
    margin-bottom: 16px;
}

.detail-chip.featured { background: #073B4C; color: #fff; }
.detail-chip.pulse { background: #DBEAFE; color: #2563EB; }

.detail-hours-banner {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bh-green);
    margin: 0 0 16px;
}

.detail-section {
    padding: 16px;
    margin-bottom: 12px;
}

.detail-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bh-text-muted);
    margin: 0 0 8px;
}

.detail-body {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--bh-text);
    margin: 0;
    white-space: pre-line;
}

.detail-row {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bh-border);
}

.detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.detail-row:first-child { padding-top: 0; }

.detail-row-icon { color: var(--bh-green); flex-shrink: 0; margin-top: 2px; }

.detail-row-body {
    min-width: 0;
    flex: 1;
}

.detail-row-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bh-text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-row-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bh-text);
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.detail-row-sub {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin: 2px 0 0;
}

.detail-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bh-green-dark);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.detail-link:hover {
    text-decoration: underline;
}

.detail-link-break {
    word-break: break-all;
}

.business-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bh-green);
}

.business-featured-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bh-green-soft), #B7E4C7);
    color: var(--bh-green);
}

.business-featured-photo,
.business-mark-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
}

.business-featured-photo {
    padding: 12px;
}

.business-mark-photo {
    padding: 6px;
}

.business-mark-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.business-row {
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.claim-result-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bh-border);
}

.claim-result-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.claim-result-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.claim-result-name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--bh-text);
}

.claim-result-category {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.3;
    color: var(--bh-green);
}

.claim-result-action {
    align-self: flex-start;
}

.billing-plan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .billing-plan-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.billing-plan-card {
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg);
    padding: 14px;
    background: var(--bh-surface);
}

.billing-plan-card.current {
    border-color: var(--bh-green);
    background: var(--bh-green-bg);
}

.billing-plan-name {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
}

.billing-plan-price {
    margin: 4px 0 8px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bh-green-dark);
}

.billing-plan-desc {
    margin: 0 0 12px;
    font-size: 0.875rem;
    color: var(--bh-text-secondary, #4B5563);
}

.detail-hero.business-logo {
    width: auto;
    height: auto;
    max-width: min(220px, 100%);
    max-height: 72px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--bh-border, #E5E7EB);
}

.business-logo-img,
.business-logo-preview {
    display: block;
    width: auto;
    height: auto;
    max-width: min(220px, 100%);
    max-height: 72px;
    object-fit: contain;
}

.business-logo-preview {
    margin-bottom: 8px;
}

.business-service-list {
    border: 1px solid var(--bh-border, #E5E7EB);
    border-radius: 10px;
    background: #fff;
}

.business-service-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 2px 4px 2px 12px;
}

.business-service-row + .business-service-row {
    border-top: 1px solid var(--bh-border, #E5E7EB);
}

.business-service-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.business-service-price {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--bh-green, #2D6A4F);
}

.business-service-moves {
    display: flex;
    flex-shrink: 0;
}

.business-service-moves .mud-icon-button {
    padding: 4px;
}

.business-service-featured {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 650;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
    background: #073B4C;
    color: #fff;
}

.business-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.business-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bh-green-soft);
    color: var(--bh-green-dark);
}

.hours-schedule {
    margin: 0;
}

.hours-row {
    display: grid;
    grid-template-columns: 7.25rem minmax(0, 1fr);
    gap: 8px;
    padding: 6px 0;
}

.hours-row dt {
    margin: 0;
    font-weight: 600;
}

.hours-row dd {
    margin: 0;
    min-width: 0;
}

.hours-editor {
    min-width: 0;
}

.hours-day {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 8px 12px;
    align-items: start;
    padding: 8px 0;
}

.hours-day-name {
    padding-top: 10px;
    font-weight: 600;
}

.hours-day-body,
.hours-span {
    min-width: 0;
}

.hours-span {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hours-span .mud-input-control {
    flex: 1 1 140px;
    min-width: 0;
}

.hours-span-to {
    color: var(--bh-text-secondary, #4B5563);
}

@media (max-width: 640px) {
    .hours-day,
    .hours-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .hours-day-name {
        padding-top: 0;
    }
}

.about-hero {
    text-align: center;
    margin: 0 -16px 24px;
}

.about-hero-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(62vh, 520px);
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
}

.about-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--bh-green), var(--ranch-blue));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--bh-shadow);
}

.about-logo-img {
    width: min(320px, 88vw);
    height: auto;
    display: block;
    margin: 0 auto;
}

.auth-brand {
    text-align: center;
    margin-bottom: 16px;
}

.auth-logo {
    width: min(360px, 90vw);
    height: auto;
    display: inline-block;
}

.about-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--bh-border);
}

.about-feature:last-child {
    border-bottom: none;
}

.about-feature-link {
    text-decoration: none;
    color: inherit;
}

.about-feature-link .list-chevron {
    margin-left: auto;
    color: #9CA3AF;
}

.help-email-link {
    color: var(--bh-green);
    font-weight: 600;
    text-decoration: none;
}

.help-email-link:hover {
    text-decoration: underline;
}

.help-faq-panels .mud-expand-panel {
    background: transparent !important;
    box-shadow: none !important;
}

.help-faq-panels .mud-expand-panel-header {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-weight: 600;
}

.help-faq-panels .mud-expand-panel-content {
    padding: 0 8px 12px !important;
}

.event-icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
}

.event-icon-picker-categories {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.event-icon-picker-categories .event-icon-option {
    text-align: center;
    line-height: 1.25;
}

.event-icon-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border: 1px solid var(--bh-border);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--bh-text-muted);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.event-icon-option:hover {
    border-color: var(--bh-green-light);
    color: var(--bh-green);
}

.event-icon-option.selected {
    border-color: var(--bh-green);
    background: var(--bh-green-soft);
    color: var(--bh-green-dark);
}

/* =============================================
   DESKTOP ENHANCEMENTS (768px+)
   Mobile layout is completely unchanged above.
   ============================================= */

@media (min-width: 768px) {

    .pulse-map {
        height: min(52vh, 540px);
        min-height: 420px;
    }

    .about-hero {
        margin: 0 0 28px;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: var(--bh-shadow-md);
    }

    .about-hero-img {
        max-height: min(58vh, 560px);
        border-radius: 20px;
    }

    /* -- Page hero banner -- */
    .desktop-hero {
        background:
            linear-gradient(
                110deg,
                #073B4C 0%,
                #075A67 42%,
                rgba(22, 140, 145, 0.92) 72%,
                rgba(53, 182, 180, 0.78) 100%
            ),
            url("../images/about-hero.jpg") right center / cover no-repeat;
        border-radius: 18px;
        padding: 36px 40px;
        margin-bottom: 28px;
        color: white;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        box-shadow: var(--bh-shadow-md);
        position: relative;
        overflow: hidden;
        margin-top: 4px;
        min-height: 180px;
    }

    .desktop-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            90deg,
            rgba(7, 59, 76, 0.88) 0%,
            rgba(7, 90, 103, 0.72) 48%,
            rgba(7, 59, 76, 0.28) 78%,
            rgba(7, 59, 76, 0.12) 100%
        );
        pointer-events: none;
    }

    .desktop-hero::after {
        display: none;
    }

    .desktop-hero-text {
        position: relative;
        z-index: 1;
        max-width: 560px;
    }

    .desktop-hero-text .page-greeting {
        font-size: 2rem;
        color: white;
        font-weight: 800;
    }

    .desktop-hero-text .page-subtitle {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.84);
        margin-top: 6px;
    }

    .desktop-hero-tagline {
        margin: 18px 0 0;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.92);
    }

    .desktop-hero-tagline .sep {
        color: var(--color-accent);
        margin: 0 0.35em;
        font-weight: 700;
    }

    /* -- Two-column grid for Today -- */
    .desktop-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.75fr);
        gap: 28px;
        align-items: start;
    }

    .desktop-grid-main { min-width: 0; }

    .desktop-sidebar {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    /* -- Section headings -- */
    .section-title {
        font-size: 1.125rem;
        font-weight: 800;
        letter-spacing: -0.01em;
        color: var(--color-primary);
    }

    /* -- Cards -- */
    .card {
        border-radius: 16px;
        box-shadow: var(--bh-shadow);
        transition: box-shadow 0.15s ease, border-color 0.15s ease;
    }

    a.card:hover,
    .card:has(a:hover) {
        box-shadow: var(--bh-shadow-md);
    }

    /* -- Event rows -- */
    .event-row {
        padding: 14px 0;
    }

    .today-event-list {
        padding: 4px 20px;
    }

    .today-event-list .event-featured-row {
        margin-left: -20px;
        margin-right: -20px;
        padding: 14px 20px;
    }

    .event-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .event-name { font-size: 1rem; }

    .event-time {
        min-width: 72px;
        font-size: 0.8125rem;
    }

    .event-when {
        min-width: 80px;
    }

    .event-when-date {
        font-size: 0.75rem;
    }

    .event-when-time {
        font-size: 0.8125rem;
    }

    /* -- Pulse card -- */
    .pulse-update-card {
        border-radius: 18px;
        padding: 20px 24px;
        gap: 16px;
    }

    .pulse-update-icon {
        width: 52px;
        height: 52px;
    }

    .pulse-update-title { font-size: 1.0625rem; }

    /* -- News rows -- */
    .news-title { font-size: 1rem; }

    /* -- Filter pills -- */
    .filter-pills { margin-bottom: 20px; }

    .filter-pill {
        padding: 9px 20px;
        font-size: 0.875rem;
    }

    .events-page .event-search-row .search-bar,
    .events-page .event-search-row .event-filter-button {
        height: 46px;
        box-sizing: border-box;
    }

    .events-page .event-search-row .search-bar {
        padding-top: 0;
        padding-bottom: 0;
    }

    .event-filter-button {
        padding: 0 16px;
        font-size: 0.875rem;
    }

    /* -- Listing grid -- */
    .desktop-listing-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }

    .desktop-listing-grid .listing-row {
        flex-direction: column;
        padding: 0;
        overflow: hidden;
        border-radius: 18px;
    }

    .desktop-listing-grid .listing-thumb {
        width: 100%;
        height: 180px;
        border-radius: 0;
    }

    .desktop-listing-grid .listing-row-body {
        padding: 14px 16px;
    }

    /* -- Page title -- */
    .page-title { font-size: 1.625rem; }

    .page-subtitle { font-size: 0.9375rem; }

    /* -- Detail pages sit in the middle on wide screens. List pages stay full width. -- */
    .detail-page {
        width: 100%;
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
    }

    /* No side column: photo, title, and text share one reading width. */
    .detail-page:not(:has(.detail-layout-aside)) {
        max-width: 720px;
    }

    .detail-heading {
        flex-direction: row;
        align-items: center;
        gap: 24px;
        margin-bottom: 28px;
    }

    .detail-hero {
        width: 96px;
        height: 96px;
        border-radius: 20px;
    }

    .detail-hero.business-logo,
    .business-logo-img {
        max-width: min(280px, 100%);
        max-height: 96px;
    }

    .event-hero {
        margin-bottom: 24px;
        border-radius: 12px;
    }

    .detail-title {
        font-size: 2rem;
        letter-spacing: -0.02em;
    }

    .detail-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 28px;
        align-items: start;
    }

    .detail-layout:not(:has(.detail-layout-aside)),
    .detail-layout-single {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .detail-layout-main {
        grid-column: 1;
        grid-row: 1;
    }

    .detail-layout-aside {
        grid-column: 2;
        grid-row: 1;
        position: sticky;
        top: 96px;
    }

    .detail-contact-card .detail-row {
        padding: 10px 0;
    }

    .detail-layout-single .detail-layout-main,
    .detail-layout-single .detail-layout-aside {
        grid-column: 1;
    }

    .detail-layout-single .detail-layout-aside {
        position: static;
    }

    .detail-cta {
        width: auto;
    }

    .detail-section {
        padding: 20px 22px;
    }

    /* -- More / Settings sidebar -- */
    .desktop-more-layout {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 28px;
        align-items: start;
    }

    /* -- Auth pages -- */
    .auth-page {
        max-width: 440px;
        margin: 0 auto;
        padding-top: 40px;
    }

    /* -- Explore grid -- */
    .desktop-explore-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 14px;
    }

    .desktop-explore-grid .listing-row {
        flex-direction: column;
        padding: 0;
        border-radius: 16px;
        overflow: hidden;
    }

    .desktop-explore-grid .listing-thumb {
        width: 100%;
        height: 140px;
        border-radius: 0;
    }

    .desktop-explore-grid .listing-row-body {
        padding: 12px 16px;
    }

    /* -- Section card headers -- */
    .section-header { margin-bottom: 16px; }

    /* -- Admin -- */
    .mud-tabs .mud-tab { font-size: 0.9375rem; font-weight: 600; }

    /* -- Quick links sidebar -- */
    .desktop-quick-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        text-decoration: none;
        color: var(--bh-text);
        border-bottom: 1px solid var(--bh-border);
        font-size: 0.9375rem;
        font-weight: 600;
        transition: background 0.12s;
    }

    .desktop-quick-link:hover { background: var(--color-surface-secondary); }

    .desktop-quick-link-body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .desktop-quick-link-title {
        color: var(--color-text);
        font-weight: 600;
        line-height: 1.25;
    }

    .desktop-quick-link-desc {
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--color-text-muted);
        line-height: 1.3;
    }

    .desktop-quick-link-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .desktop-quick-link-icon.explore,
    .desktop-quick-link-icon.events,
    .desktop-quick-link-icon.places {
        background: var(--soft-green);
        color: var(--palmetto-green);
    }

    .desktop-quick-link-icon.live {
        background: var(--soft-aqua);
        color: var(--coastal-teal);
    }

    .desktop-quick-link-icon.marketplace {
        background: var(--soft-orange);
        color: var(--sunset-orange);
    }

    .desktop-quick-link-icon.services {
        background: var(--soft-aqua);
        color: var(--coastal-teal);
    }

    .desktop-quick-link-icon.community {
        background: var(--sky-panel);
        color: var(--coastal-teal);
    }

    .desktop-quick-link-icon.more {
        background: var(--color-surface-secondary);
        color: var(--color-text-muted);
    }

    .community-slogan-card {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-top: 16px;
        padding: 16px;
        border-radius: 16px;
        border: 1px solid var(--color-border);
        background: var(--soft-green);
        box-shadow: var(--bh-shadow);
    }

    .community-slogan-icon {
        color: var(--palmetto-green) !important;
        margin-top: 2px;
    }

    .community-slogan-title {
        margin: 0;
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--color-primary);
        line-height: 1.35;
    }

    .community-slogan-tagline {
        margin: 4px 0 0;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--color-text-muted);
    }

    /* -- ms-auto utility if not already present -- */
    .ms-auto { margin-left: auto !important; }
}

.detail-chip.residents-only {
    background: rgba(230, 57, 70, 0.12);
    color: var(--bh-red);
}

.detail-chip.community {
    background: #E2E8F0;
    color: #1E293B;
}

.detail-chip.open-everyone {
    background: #DCFCE7;
    color: #166534;
}

.detail-chip.members-only {
    background: #EDE9FE;
    color: #6D28D9;
}

.detail-chip.ages-55 {
    background: #FFEDD5;
    color: #C2410C;
}

.detail-chip.kids-family {
    background: #FEF9C3;
    color: #854D0E;
}

.detail-chip.bhs-athletics {
    background: #1E3A8A;
    color: #fff;
}

.event-membership-badge,
.event-55-badge,
.event-kids-family-badge,
.event-bhs-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.5;
    vertical-align: 2px;
    white-space: nowrap;
}

.event-membership-badge {
    background: #EDE9FE;
    color: #6D28D9;
}

.event-55-badge {
    background: #FFEDD5;
    color: #C2410C;
}

.event-kids-family-badge {
    background: #FEF9C3;
    color: #854D0E;
}

.event-bhs-badge {
    background: #1E3A8A;
    color: #fff;
}

.event-featured-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #3E6B38;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.45;
    vertical-align: 1px;
    white-space: nowrap;
}

.event-day-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

/* Admin dashboard stats */
.admin-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-stats-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius);
    background: var(--bh-surface);
    color: var(--bh-text);
    box-shadow: var(--bh-shadow);
    cursor: pointer;
    text-align: left;
}

.admin-stats-toggle-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--bh-green);
    flex-shrink: 0;
}

.admin-stats-toggle-summary {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-stats-grid {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-stats-grid.is-open {
    display: grid;
}

.admin-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    background: var(--bh-surface);
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius);
    box-shadow: var(--bh-shadow);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.admin-stat-card:hover,
.admin-stat-card:focus-visible {
    border-color: var(--bh-green);
    background: var(--bh-green-bg);
}

.admin-stat-card:focus-visible {
    outline: 2px solid var(--bh-green);
    outline-offset: 2px;
}

.admin-stat-card.active {
    border-color: var(--bh-green);
    background: var(--bh-green-soft);
}

.admin-stat-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.admin-stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--bh-green);
}

.admin-stat-card.has-badge .admin-stat-label {
    padding-right: 4px;
}

.admin-stat-card .admin-nav-item-badge {
    flex-shrink: 0;
}

.admin-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bh-text);
}

@media (min-width: 600px) {
    .admin-stats-grid,
    .admin-stats-grid.is-open {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .admin-stats-toggle {
        display: none;
    }

    .admin-stats-grid,
    .admin-stats-grid.is-open {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-stat-card {
        padding: 10px 12px;
    }

    .admin-stat-value {
        font-size: 1.375rem;
    }
}

/* Admin dashboard navigation */
.admin-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-nav-desktop {
    display: none;
}

.admin-nav-mobile {
    display: block;
}

.admin-section-select,
.admin-filter-select {
    max-width: 100%;
}

.admin-panel {
    background: var(--mud-palette-surface, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    min-width: 0;
}

.admin-panel-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
}

.admin-panel-body {
    padding: 16px;
    min-width: 0;
    overflow-x: hidden;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-toolbar-title {
    margin: 0;
}

.admin-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-toolbar-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.submit-event-preview {
    display: block;
    max-width: 240px;
    border-radius: 8px;
}

.admin-csv-upload {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.admin-csv-upload.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

.admin-csv-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid var(--mud-palette-secondary);
    color: var(--mud-palette-secondary);
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02857em;
}

.admin-csv-upload:hover:not(.is-disabled) .admin-csv-upload-btn {
    background: rgba(var(--mud-palette-secondary-rgb), 0.06);
}

.admin-toolbar-search {
    min-width: min(100%, 240px);
    max-width: 320px;
}

.admin-toolbar-filter {
    min-width: 140px;
    max-width: 200px;
}

.admin-import-compare {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    padding: 4px 0;
}

.admin-import-compare-date {
    padding: 10px 12px 4px;
    position: sticky;
    top: 0;
    background: var(--mud-palette-surface);
    z-index: 1;
}

.admin-import-compare-row {
    display: grid;
    grid-template-columns: 40px minmax(88px, auto) 1fr;
    gap: 8px;
    align-items: start;
    padding: 10px 12px;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.admin-import-compare-row.is-existing {
    background: color-mix(in srgb, var(--mud-palette-action-disabled-background) 65%, transparent);
    border-left: 3px solid var(--mud-palette-text-disabled);
}

.admin-import-compare-row.is-incoming {
    border-left: 3px solid var(--mud-palette-success);
}

.admin-import-compare-title {
    font-weight: 600;
    line-height: 1.3;
}

.admin-import-compare-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

@media (max-width: 600px) {
    .admin-import-compare-row {
        grid-template-columns: 36px 1fr;
        grid-template-areas:
            "import badge"
            "import body";
    }

    .admin-import-compare-import { grid-area: import; }
    .admin-import-compare-badge { grid-area: badge; }
    .admin-import-compare-body { grid-area: body; }
}

.admin-table .mud-table-container {
    overflow-x: visible !important;
}

.admin-cell-wrap {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.admin-cell-actions,
.admin-cell-actions-wide {
    white-space: nowrap;
    vertical-align: middle !important;
}

.admin-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.admin-user-primary {
    font-weight: 650;
    line-height: 1.25;
}

.admin-user-secondary {
    font-size: 0.75rem;
    color: #6B7280;
    line-height: 1.3;
}

.admin-user-email {
    margin-top: 2px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-users-desktop,
.admin-list-desktop {
    display: none;
}

.admin-users-mobile,
.admin-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-user-card,
.admin-list-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #fff;
    padding: 12px 14px;
}

.admin-user-card-top,
.admin-list-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.admin-user-card-identity,
.admin-list-card-main {
    min-width: 0;
    flex: 1;
}

.admin-user-card-action,
.admin-list-card-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    margin: -6px -8px 0 0;
}

.admin-list-card-title {
    font-weight: 650;
    line-height: 1.25;
}

.admin-list-card-subtitle {
    font-size: 0.75rem;
    color: #6B7280;
    line-height: 1.35;
    margin-top: 2px;
}

.admin-user-card-meta,
.admin-list-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.8125rem;
    color: #4B5563;
}

.admin-user-card-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 8px;
}

.admin-user-card-activity,
.admin-list-card-foot {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #6B7280;
    line-height: 1.35;
}

.admin-flag-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-flag-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.8125rem;
    color: #4B5563;
    white-space: nowrap;
    cursor: pointer;
}

.admin-flag-row .mud-switch {
    margin-inline: 0 !important;
}

@media (min-width: 960px) {
    .admin-users-desktop,
    .admin-list-desktop {
        display: block;
    }

    .admin-users-mobile,
    .admin-list-mobile {
        display: none;
    }
}

/* Mobile: MudTable card layout (Breakpoint.Md and below) */
@media (max-width: 959px) {
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-toolbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-toolbar-search,
    .admin-toolbar-filter {
        max-width: none;
        width: 100%;
        min-width: 0;
    }

    .admin-toolbar-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .admin-toolbar-buttons .admin-toolbar-menu,
    .admin-toolbar-buttons .mud-menu,
    .admin-toolbar-buttons .admin-csv-upload {
        width: 100%;
        min-width: 0;
    }

    .admin-toolbar-buttons .mud-menu > .mud-button-root,
    .admin-toolbar-buttons .admin-csv-upload-btn {
        width: 100%;
        justify-content: center;
    }

    .admin-toolbar-actions > .admin-toolbar-primary,
    .admin-toolbar-actions > .mud-button-root {
        width: 100%;
    }

    .admin-table .mud-table-root {
        table-layout: auto;
        min-width: 0 !important;
    }

    .admin-table .mud-table-cell {
        padding: 10px 12px !important;
        font-size: 0.875rem;
        overflow: visible;
        vertical-align: middle;
    }

    .admin-table .mud-table-row {
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        margin-bottom: 12px;
        background: #fff;
    }

    .admin-cell-actions,
    .admin-cell-actions-wide {
        width: auto !important;
        text-align: left;
        justify-content: flex-end;
    }

    .admin-flag-stack {
        gap: 6px;
        width: 100%;
    }

    .admin-flag-row {
        font-size: 0.875rem;
    }
}

/* Desktop: fixed columns, no horizontal scroll */
@media (min-width: 960px) {
    .admin-table .mud-table-root {
        width: 100%;
        table-layout: fixed;
        min-width: 0 !important;
    }

    .admin-table .mud-table-cell {
        padding: 8px 10px !important;
        font-size: 0.8125rem;
        vertical-align: top;
        overflow: hidden;
    }

    .admin-table thead .mud-table-cell {
        white-space: nowrap;
        font-weight: 650;
    }

    .admin-cell-actions {
        width: 52px;
        text-align: right;
    }

    .admin-cell-actions-wide {
        width: 108px;
        text-align: right;
    }

    .admin-flag-row {
        font-size: 0.7rem;
        gap: 4px;
    }
}

.admin-nav-group {
    margin-bottom: 8px;
}

.admin-nav-group:last-child {
    margin-bottom: 0;
}

.admin-nav-group-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bh-text-muted);
    padding: 6px 10px 4px;
}

.admin-nav-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    margin: 0;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--bh-text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-nav-item:hover {
    background: var(--bh-green-bg);
}

.admin-nav-item.active {
    background: var(--bh-green-soft);
    color: var(--bh-green-dark);
    font-weight: 600;
}

.admin-nav-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--bh-green);
}

.admin-nav-item.active .admin-nav-item-icon {
    color: var(--bh-green-dark);
}

.admin-nav-item-icon .mud-icon-root {
    font-size: 1.125rem !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    margin: 0;
}

.admin-nav-item-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-nav-item-badge {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--mud-palette-error);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
}

.event-update-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 10px;
    border-left: 3px solid var(--mud-palette-lines-default);
}

.event-update-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Admin → Event Discovery */
/* MudBlazor.min.css loads after this file, so these need more specificity than .mud-chip.mud-chip-size-small. */
.mud-chip.mud-chip-size-small.ed-table-chip {
    height: auto;
    min-height: 24px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    padding-top: 3px;
    padding-bottom: 3px;
}

.mud-chip.mud-chip-size-small.ed-table-chip .mud-chip-content {
    height: auto;
    white-space: normal;
}

.admin-table thead .mud-table-cell.ed-th-wrap {
    white-space: normal;
    line-height: 1.2;
}

.ed-card {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
}

.ed-card-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ed-card-head-main {
    min-width: 0;
}

.ed-card-title {
    font-weight: 650;
    line-height: 1.3;
}

.ed-card-subtitle,
.ed-muted {
    font-size: 0.8125rem;
    color: #6B7280;
    line-height: 1.4;
}

.ed-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ed-run-totals {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 4px;
}

.ed-summary-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ed-run-sources {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.ed-run-source {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    background: #fff;
}

.ed-run-source.is-running {
    border-color: var(--mud-palette-info);
    background: var(--bh-green-bg, #F3F8F4);
}

.ed-run-source-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ed-run-source-name {
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ed-run-source-index {
    color: #6B7280;
    font-weight: 500;
}

.ed-run-source-counts,
.ed-run-source-note {
    font-size: 0.8125rem;
    color: #4B5563;
    margin-top: 2px;
}

.ed-run-source-error,
.ed-error-text {
    font-size: 0.8125rem;
    color: var(--mud-palette-error);
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.ed-history-detail {
    padding: 8px 12px 14px !important;
    background: #FAFAFA;
}

.ed-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ed-filter {
    flex: 0 1 200px;
    min-width: 160px;
}

.ed-filter-search {
    flex: 1 1 240px;
    min-width: 200px;
}

.ed-queue-title {
    font-weight: 600;
    line-height: 1.3;
}

.ed-select-cell {
    position: relative;
    width: 44px;
}

.ed-select-hit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.ed-card-select {
    margin: -6px 0 0 -8px;
}

.ed-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    min-height: 32px;
}

.ed-clickable {
    cursor: pointer;
}

.ed-clickable:hover {
    border-color: var(--mud-palette-primary);
}

.ed-link {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ed-review-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ed-review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.ed-review-col {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 0;
}

.ed-review-source {
    background: #FAFAFA;
}

.ed-review-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ed-facts {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 6px 12px;
    margin: 0;
    font-size: 0.875rem;
}

.ed-facts dt {
    color: #6B7280;
    font-weight: 600;
}

.ed-facts dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ed-description {
    white-space: pre-wrap;
    max-height: 260px;
    overflow-y: auto;
}

.ed-image-preview {
    display: block;
    max-width: 100%;
    max-height: 160px;
    border-radius: 8px;
    object-fit: cover;
}

.ed-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ed-field {
    border-left: 3px solid transparent;
    padding-left: 8px;
}

.ed-field.is-edited {
    border-left-color: var(--mud-palette-secondary);
}

.ed-field.is-missing {
    border-left-color: var(--mud-palette-error);
}

.ed-field-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
}

.ed-field-label {
    font-size: 0.8125rem;
    font-weight: 650;
    color: #374151;
}

.ed-field.is-missing .ed-field-label {
    color: var(--mud-palette-error);
}

.ed-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ed-callout {
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid;
    font-size: 0.875rem;
}

.ed-callout-warning {
    border-color: var(--mud-palette-warning);
    background: #FFF8E6;
}

.ed-callout-info {
    border-color: var(--mud-palette-info);
    background: #EEF6FD;
}

.ed-callout-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 650;
    margin-bottom: 6px;
}

.ed-compare {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.ed-compare-col {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 0;
}

.ed-compare-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6B7280;
}

.ed-compare-title {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ed-reasons {
    margin: 8px 0 0 18px;
    padding: 0;
}

.ed-change-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.8125rem;
    table-layout: fixed;
}

.ed-change-table th,
.ed-change-table td {
    text-align: left;
    vertical-align: top;
    padding: 4px 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    overflow-wrap: anywhere;
}

.ed-change-table thead th {
    border-top: 0;
    color: #6B7280;
}

.ed-change-table tbody th {
    width: 90px;
}

.ed-diff {
    white-space: pre-wrap;
}

.ed-diff mark {
    padding: 0 1px;
    border-radius: 2px;
    color: inherit;
}

.ed-diff-removed {
    background: #F4C7C3;
    text-decoration: line-through;
}

.ed-diff-added {
    background: #C8E6C9;
}

.ed-review-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.ed-review-actions-secondary,
.ed-review-actions-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ed-review-hint {
    width: 100%;
    text-align: right;
    font-size: 0.8125rem;
    color: #6B7280;
}

.ed-url-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ed-candidate {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 8px;
}

.ed-candidate.is-selected {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 1px var(--mud-palette-primary);
}

.ed-candidate-option + .ed-candidate-option {
    margin-top: 4px;
}

.ed-candidate-name {
    font-weight: 600;
}

.ed-candidate-meta,
.ed-candidate-summary {
    font-size: 0.8125rem;
    color: #4B5563;
    margin-left: 34px;
}

.ed-candidate-summary {
    margin: 6px 0 0;
    font-weight: 600;
    color: #374151;
}

.ed-candidate-warning {
    font-size: 0.8125rem;
    color: #92400E;
    margin-left: 34px;
}

.ed-unusable {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8125rem;
}

.ed-unusable-item {
    border-left: 3px solid var(--mud-palette-lines-default);
    padding-left: 8px;
}

.ed-current-config {
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.875rem;
}

.ed-advanced .mud-expand-panel,
.ed-source-text .mud-expand-panel {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px !important;
}

.ed-count-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.ed-count {
    display: flex;
    flex-direction: column;
    background: #F9FAFB;
    border-radius: 8px;
    padding: 6px 8px;
}

.ed-count-value {
    font-size: 1.125rem;
    font-weight: 700;
}

.ed-count-label {
    font-size: 0.75rem;
    color: #6B7280;
}

.ed-sample-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ed-sample {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 6px;
}

.ed-sample-main {
    min-width: 0;
}

.ed-sample-title {
    font-weight: 600;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.ed-sample-meta {
    font-size: 0.75rem;
    color: #6B7280;
}

.ed-sample-missing {
    font-size: 0.75rem;
    color: var(--mud-palette-error);
}

@media (min-width: 960px) {
    .ed-review-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }

    .ed-compare {
        grid-template-columns: 1fr 1fr;
    }

    .ed-count-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .ed-url-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ed-tabs .mud-tab {
        min-width: 0 !important;
        padding: 6px 8px;
        font-size: 0.78rem;
        letter-spacing: 0;
    }

    .mud-dialog.ed-wide-dialog {
        margin: 8px;
        width: calc(100% - 16px);
        max-width: none;
        max-height: calc(100% - 16px);
    }

    .ed-facts {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .ed-facts dd {
        margin-bottom: 6px;
    }

    .ed-filter,
    .ed-filter-search {
        flex: 1 1 100%;
    }

    .ed-review-actions,
    .ed-review-actions-primary {
        justify-content: stretch;
    }

    .ed-review-actions-primary > * {
        flex: 1 1 auto;
    }

    .ed-review-hint {
        text-align: left;
    }
}

@media (min-width: 900px) {
    .app-main:has(.admin-page) {
        max-width: 1440px;
    }

    .admin-layout {
        display: grid;
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 20px;
        align-items: start;
    }

    .admin-nav-mobile {
        display: none;
    }

    .admin-nav-desktop {
        display: block;
        position: sticky;
        top: 80px;
        background: var(--mud-palette-surface, #fff);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        padding: 12px;
    }

    .admin-panel-header {
        display: none;
    }

    .admin-panel-body {
        padding: 18px 20px;
    }
}

@media (min-width: 1200px) {
    .admin-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

/* Microsoft Clarity masks #app when class "clarity-mask" is toggled by analytics.js on sensitive routes. */

/* MudBlazor primary button polish */
.mud-button-filled.mud-button-filled-primary {
    background-color: var(--color-secondary) !important;
    border-radius: 10px !important;
}
.mud-button-filled.mud-button-filled-primary:hover {
    background-color: var(--color-secondary-hover) !important;
}
.mud-button-outlined.mud-button-outlined-primary {
    color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    border-radius: 10px !important;
}
.mud-button-outlined.mud-button-outlined-primary:hover {
    background: var(--soft-aqua) !important;
}
.mud-link {
    color: var(--color-link) !important;
}

/* -- Babcock Boost ----------------------------------------- */
.boost-section { margin-bottom: 1.25rem; }
.boost-card {
    background: linear-gradient(135deg, #EEF7F6 0%, var(--color-surface) 55%, #FFF8F0 100%);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 14px 16px 16px;
    box-shadow: 0 1px 2px rgba(7, 59, 76, 0.06);
}
.boost-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.boost-card-brand {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
}
.boost-card-bolt { margin-right: 2px; }
.boost-card-badge {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: var(--color-surface-secondary);
    border-radius: 4px;
    padding: 2px 8px;
}
.boost-card-body {
    display: grid;
    gap: 12px;
}
.boost-card-body.has-image {
    grid-template-columns: 1fr 88px;
    align-items: start;
}
@media (max-width: 420px) {
    .boost-card-body.has-image { grid-template-columns: 1fr 72px; }
}
.boost-card-business {
    margin: 0 0 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}
.boost-card-business-link {
    color: inherit;
    text-decoration: none;
}
.boost-card-business-link:hover { color: var(--color-link); }
.boost-card-headline {
    margin: 0 0 6px;
    font-size: 1.15rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.boost-card-desc {
    margin: 0 0 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--color-text);
}
.boost-card-time {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.boost-card-media { border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--color-surface-secondary); }
.boost-card-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.boost-card-actions { margin-top: 12px; }
.boost-card-cta { width: 100%; }
.boost-promo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.boost-owner-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--color-border);
}
.boost-owner-headline { margin: 0; font-weight: 600; }
.boost-owner-meta { margin: 2px 0 0; font-size: 0.8rem; color: var(--color-text-muted); }
.boost-wizard-steps { display: flex; gap: 8px; }
.boost-wizard-step {
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
    background: var(--color-surface-secondary); color: var(--color-text-muted);
}
.boost-wizard-step.active { background: var(--color-primary); color: #fff; }
.boost-wizard-step.done { background: var(--color-secondary); color: #fff; }
.boost-wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.boost-slot-list { display: flex; flex-direction: column; gap: 8px; }
.boost-slot {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    width: 100%; text-align: left; padding: 12px 14px;
    border: 1px solid var(--color-border); border-radius: 10px;
    background: var(--color-surface); color: var(--color-text); cursor: pointer;
}
.boost-slot.selected { border-color: var(--color-secondary); background: #EEF7F6; }
.boost-slot.unavailable { opacity: 0.55; cursor: not-allowed; }
.boost-slot-meta { font-size: 0.8rem; color: var(--color-text-muted); }
.boost-admin-schedule { display: flex; flex-direction: column; gap: 6px; }
.boost-admin-block {
    padding: 8px 10px; border-radius: 8px; font-size: 0.85rem;
    background: var(--color-surface-secondary); border-left: 3px solid var(--color-border);
}
.boost-admin-block.kind-booked, .boost-admin-block.kind-active { border-left-color: var(--color-secondary); }
.boost-admin-block.kind-held { border-left-color: var(--color-accent); }
.boost-admin-block.kind-blocked { border-left-color: var(--color-text-muted); }
.boost-admin-stripe { font-size: 0.7rem; color: var(--color-text-muted); word-break: break-all; }

.boost-admin-filters {
    display: grid;
    gap: 12px;
}
@media (min-width: 720px) {
    .boost-admin-filters {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }
}
.boost-admin-filter-field {
    width: 100%;
    min-width: 0;
}
.boost-image-picker {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
}
.boost-image-picker .boost-image-label {
    display: block;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}
.boost-image-picker .boost-image-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}
.boost-image-picker .boost-image-preview img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-surface-secondary);
}
.boost-image-picker .admin-csv-upload {
    margin-top: 0;
}
.image-source-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Image Library */
.library-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.library-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-surface, #fff);
}
.library-card.is-hidden .library-card-image img {
    opacity: 0.45;
}
.library-card-image,
.library-crop-preview {
    aspect-ratio: 16 / 9;
    background: var(--color-surface-secondary);
    overflow: hidden;
}
.library-card-image img,
.library-crop-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.library-crop-preview {
    border-radius: 10px;
    border: 1px solid var(--color-border);
}
.library-card-body {
    flex: 1;
    padding: 10px 12px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.library-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}
.library-card-description {
    font-size: 0.875rem;
    line-height: 1.35;
}
.library-card-meta {
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}
.library-card-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 6px 6px;
}
.library-picker-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.library-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}
.library-picker-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-surface, #fff);
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}
.library-picker-item:hover,
.library-picker-item:focus-visible {
    border-color: var(--mud-palette-primary);
}
.library-picker-item.selected {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 2px rgba(var(--mud-palette-primary-rgb), 0.25);
}
.library-picker-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.library-picker-caption {
    padding: 6px 8px 8px;
    font-size: 0.8125rem;
    line-height: 1.3;
}
.library-picker-category {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--mud-palette-primary);
}

.library-doc-list,
.library-doc-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.library-doc-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px;
    background: var(--color-surface, #fff);
}
.library-doc-card.is-hidden {
    opacity: 0.72;
}
.library-doc-icon {
    margin-top: 2px;
    color: var(--mud-palette-primary);
}
.library-doc-body {
    flex: 1;
    min-width: 0;
}
.library-doc-uses {
    margin: 4px 0 0;
    padding-left: 18px;
    color: var(--mud-palette-text-secondary);
    font-size: 0.8125rem;
}
.library-doc-pick {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    cursor: pointer;
}
.library-doc-pick.selected {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 2px rgba(var(--mud-palette-primary-rgb), 0.25);
}
.library-doc-file {
    display: block;
    color: var(--mud-palette-text-secondary);
    font-size: 0.75rem;
}

/* Community Info rich text + media */
.rich-text {
    border: 1px solid var(--bh-border, var(--color-border, #d0d5dd));
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.rich-text-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--bh-border, var(--color-border, #e4e7ec));
    background: var(--color-surface-secondary, #f8fafc);
}
.rich-text-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--bh-text-muted, #475467);
    cursor: pointer;
}
.rich-text-btn:hover:not(:disabled) {
    background: rgba(7, 59, 76, 0.08);
    color: var(--bh-primary, #073B4C);
}
.rich-text-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.rich-text-sep {
    width: 1px;
    height: 20px;
    margin: 0 4px;
    background: var(--bh-border, #e4e7ec);
}
.rich-text-body {
    min-height: 160px;
    max-height: 360px;
    overflow-y: auto;
    padding: 12px 14px;
    outline: none;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--bh-text, #101828);
}
.rich-text-body.is-focused {
    box-shadow: inset 0 0 0 2px rgba(7, 59, 76, 0.18);
}
.rich-text-body:empty:before {
    content: attr(data-placeholder);
    color: #98a2b3;
    pointer-events: none;
}
.rich-text-body p { margin: 0 0 0.65em; }
.rich-text-body ul, .rich-text-body ol { margin: 0 0 0.65em; padding-left: 1.35em; }
.rich-text-body li > ul, .rich-text-body li > ol { margin: 0.2em 0 0; }
.rich-text-body .indent-1, .community-info-body .indent-1 { margin-left: 1.5em; }
.rich-text-body .indent-2, .community-info-body .indent-2 { margin-left: 3em; }
.rich-text-body .indent-3, .community-info-body .indent-3 { margin-left: 4.5em; }
.rich-text-body a { color: var(--bh-primary, #073B4C); }
.rich-text-body h3 { margin: 0.9em 0 0.35em; font-size: 1.125rem; font-weight: 700; }
.rich-text-body h4 { margin: 0.8em 0 0.3em; font-size: 1rem; font-weight: 650; }
.rich-text-body blockquote {
    margin: 0 0 0.65em;
    padding: 0.55em 0.8em;
    border-left: 3px solid var(--bh-primary, #073B4C);
    border-radius: 6px;
    background: rgba(7, 59, 76, 0.05);
}
.rich-text-body table { border-collapse: collapse; margin: 0 0 0.65em; }
.rich-text-body th, .rich-text-body td { border: 1px solid var(--bh-border, #DDE7E5); padding: 4px 8px; min-width: 3em; }
.rich-text-body th { background: rgba(7, 59, 76, 0.05); }
.rich-text-body caption { padding: 4px 8px; text-align: left; font-weight: 650; }
.rich-text-btn.is-active {
    background: rgba(7, 59, 76, 0.12);
    color: var(--bh-primary, #073B4C);
}
.rich-text-table-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--bh-border, var(--color-border, #e4e7ec));
    background: rgba(7, 59, 76, 0.03);
}
.rich-text-chip {
    font: inherit;
    font-size: 0.8125rem;
    padding: 3px 10px;
    border: 1px solid var(--bh-border, #DDE7E5);
    border-radius: 999px;
    background: #fff;
    color: var(--bh-primary, #073B4C);
    cursor: pointer;
}
.rich-text-chip:hover { background: rgba(7, 59, 76, 0.08); }
.rich-text-table-hint { font-size: 0.8125rem; color: #B42318; }

.community-info-body {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #35494D;
    padding-left: 0.75rem;
    margin-top: 0.25rem;
}
@media (max-width: 599px) {
    .community-info-body { padding-left: 0; }
}
.community-info-body.detail-body-rich {
    color: var(--bh-text);
    padding-left: 0;
    margin-top: 0;
}
.community-info-body > :first-child { margin-top: 0; }
.community-info-body > :last-child { margin-bottom: 0; }
.community-info-body strong,
.community-info-body b { color: var(--bh-text, #183238); }
.community-info-body h1,
.community-info-body h2,
.community-info-body h3,
.community-info-body h4 {
    margin: 1.1em 0 0.4em;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bh-text, #183238);
    scroll-margin-top: 92px;
}
.community-info-body h1,
.community-info-body h2,
.community-info-body h3 {
    margin-top: 1.4em;
    padding-top: 0.9em;
    border-top: 1px solid var(--bh-border, #DDE7E5);
    font-size: 1.125rem;
}
.community-info-body > h1:first-child,
.community-info-body > h2:first-child,
.community-info-body > h3:first-child {
    padding-top: 0;
    border-top: 0;
}
.community-info-body h4 { font-size: 1rem; font-weight: 650; }
.community-info-body p { margin: 0 0 0.7em; }
.community-info-body > div { margin: 0 0 0.7em; }
.community-info-body ul, .community-info-body ol { margin: 0 0 0.8em; padding-left: 1.35em; }
.community-info-body li { margin-bottom: 0.3em; }
.community-info-body li > ul, .community-info-body li > ol { margin: 0.3em 0 0; }
.community-info-body a {
    color: var(--bh-primary, #073B4C);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}
.community-info-body a.is-external::after {
    content: "\2197";
    display: inline-block;
    margin-left: 0.2em;
    font-size: 0.85em;
    text-decoration: none;
}
.community-info-body blockquote {
    margin: 0 0 0.8em;
    padding: 0.65em 0.9em;
    border-left: 3px solid var(--bh-primary, #073B4C);
    border-radius: 8px;
    background: rgba(7, 59, 76, 0.05);
    color: var(--bh-text, #183238);
}
.community-info-body blockquote > :last-child { margin-bottom: 0; }
.community-info-body .rr-table-scroll {
    margin: 0 0 0.9em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--bh-border, #DDE7E5);
    border-radius: 8px;
}
.community-info-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.community-info-body th,
.community-info-body td {
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--bh-border, #DDE7E5);
}
.community-info-body th {
    background: rgba(7, 59, 76, 0.05);
    color: var(--bh-text, #183238);
    font-weight: 650;
    white-space: nowrap;
}
.community-info-body caption {
    padding: 8px 10px;
    text-align: left;
    font-weight: 650;
    color: var(--bh-text, #183238);
    border-bottom: 1px solid var(--bh-border, #DDE7E5);
}
.community-info-body tr:last-child > td { border-bottom: 0; }
.community-info-body th p,
.community-info-body td p { margin: 0; }
.community-info-body .rr-back-top { margin: 0.2em 0 0; text-align: right; }
.community-info-body .rr-back-top button,
.rr-outline-link {
    font: inherit;
    cursor: pointer;
}
.community-info-body .rr-back-top button {
    padding: 2px 0;
    border: 0;
    background: none;
    color: var(--bh-text-muted, #64777A);
    font-size: 0.8125rem;
    font-weight: 600;
}
.community-info-body .rr-back-top button::before { content: "\2191\00a0"; }
.community-info-body .rr-back-top button:hover { color: var(--bh-primary, #073B4C); }
.rr-outline {
    margin: 0 0 1rem;
    padding: 10px 12px;
    border: 1px solid var(--bh-border, #DDE7E5);
    border-radius: 10px;
    background: rgba(7, 59, 76, 0.03);
    scroll-margin-top: 92px;
}
.rr-outline-label {
    margin: 0 0 8px;
    color: var(--bh-text-muted, #64777A);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.rr-outline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.rr-outline-link {
    padding: 5px 11px;
    border: 1px solid var(--bh-border, #DDE7E5);
    border-radius: 999px;
    background: var(--bh-surface, #fff);
    color: var(--bh-primary, #073B4C);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}
.rr-outline-link:hover { border-color: var(--bh-primary, #073B4C); }
.rr-article { scroll-margin-top: 92px; }
.rr-search { margin: 0 0 20px; }
.rr-search .mud-input-control { margin-top: 0; }
.rr-search-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}
.rr-search-hit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--bh-border, #DDE7E5);
    border-radius: 10px;
    background: var(--bh-surface, #fff);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.rr-search-hit:hover,
.rr-search-hit:focus-visible {
    border-color: var(--bh-green, #168C91);
    background: var(--bh-green-bg, #E1F4F5);
}
.rr-search-hit:focus-visible {
    outline: 2px solid var(--bh-green-dark, #073B4C);
    outline-offset: 2px;
}
.rr-search-hit-title {
    color: var(--bh-text, #183238);
    font-size: 0.9375rem;
    font-weight: 700;
}
.rr-search-hit-section {
    color: var(--bh-green-dark, #073B4C);
    font-size: 0.875rem;
    font-weight: 650;
}
.rr-search-hit-meta,
.rr-search-empty,
.rr-search-more {
    color: var(--bh-text-muted, #64777A);
    font-size: 0.75rem;
}
.rr-search-hit-snippet {
    color: var(--bh-text, #183238);
    font-size: 0.8125rem;
    line-height: 1.4;
}
.rr-search-empty,
.rr-search-more { margin: 4px 2px 0; }
.rr-search-target {
    border-radius: 6px;
    box-shadow: 0 0 0 2px var(--bh-green, #168C91);
}
.community-info-image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bh-border, #e4e7ec);
}
.community-info-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.community-info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.community-info-doc-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: var(--bh-text, #101828);
}

.location-drag-cell {
    padding: 0 !important;
}

.location-drag-surface {
    height: 100%;
    padding: 8px 16px;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: element;
}

.location-drag-surface,
.location-drag-surface * {
    cursor: grab;
}

.location-drag-surface:active {
    cursor: grabbing;
}

.span-event-section {
    margin-top: 8px;
}

button.span-view-all {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.span-event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.span-event-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--bh-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.span-event-card:hover {
    border-color: var(--color-secondary);
}

.span-event-photo {
    width: 84px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.span-event-date {
    width: 48px;
}

.span-event-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.span-kind-badge {
    align-self: flex-start;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.4;
}

.span-kind-badge.is-upcoming {
    background: #F3EEF8;
    color: #6B4C9A;
}

.span-kind-badge.is-ongoing {
    background: #E5F6E8;
    color: #1B7A3A;
}

.span-kind-badge.is-all-day {
    background: #E8F1FB;
    color: #1D4E89;
}

.span-event-when,
.span-event-status {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
}

.span-event-card .event-name {
    margin: 0;
}

@media (min-width: 720px) {
    .span-event-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.admin-list-card > .location-drag-surface {
    padding: 0;
}

.location-row-actions,
.location-row-actions * {
    cursor: pointer;
}

.location-row-dragging {
    opacity: 0.55;
}

.location-row-drop-target {
    box-shadow: inset 0 0 0 2px var(--bh-primary, #073B4C);
}

/* Dropdowns stay inside the window. */
.mud-popover.mud-popover-open {
    max-width: calc(100vw - 16px);
}
