/* === Quick Actions Hero Placement (Landlord Dashboard) === */
#hb-landlord-dashboard-v3 .hb-quick-actions-hero {
    align-self: start;
    min-width: 0;
    max-width: 340px;
    margin-left: 0;
    margin-top: 0;
    z-index: 2;
}

@media (max-width: 980px) {
    #hb-landlord-dashboard-v3 .hb-quick-actions-hero {
        max-width: none;
        margin-top: 18px;
        margin-left: 0;
    }
}
/* === Homebase v3.2 – Design System (Tailwind CSS v4 – CSS-first @theme) === */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap");

:root {
    --color-brand-50: #ecfdf5;
    --color-brand-100: #d1fae5;
    --color-brand-200: #a7f3d0;
    --color-brand-300: #6ee7b7;
    --color-brand-400: #34d399;
    --color-brand-500: #10b981;
    --color-brand-600: #059669;
    --color-brand-700: #047857;
    --color-brand-800: #065f46;
    --color-brand-900: #064e3b;

    --color-accent-50: #eff6ff;
    --color-accent-100: #dbeafe;
    --color-accent-200: #bfdbfe;
    --color-accent-300: #93c5fd;
    --color-accent-400: #60a5fa;
    --color-accent-500: #3b82f6;
    --color-accent-600: #2563eb;
    --color-accent-700: #1d4ed8;
    --color-accent-800: #1e40af;
    --color-accent-900: #1e3a8a;

    --color-neutral-50: #f9fafb;
    --color-neutral-100: #f3f4f6;
    --color-neutral-200: #e5e7eb;
    --color-neutral-300: #d1d5db;
    --color-neutral-400: #9ca3af;
    --color-neutral-500: #6b7280;
    --color-neutral-600: #4b5563;
    --color-neutral-700: #374151;
    --color-neutral-800: #1f2937;
    --color-neutral-900: #111827;

    --color-danger-50: #fef2f2;
    --color-danger-100: #fee2e2;
    --color-danger-200: #fecaca;
    --color-danger-300: #fca5a5;
    --color-danger-400: #f87171;
    --color-danger-500: #ef4444;
    --color-danger-600: #dc2626;
    --color-danger-700: #b91c1c;

    --color-warning-50: #fffbeb;
    --color-warning-100: #fef3c7;
    --color-warning-200: #fde68a;
    --color-warning-300: #fcd34d;
    --color-warning-400: #fbbf24;
    --color-warning-500: #f59e0b;
    --color-warning-600: #d97706;
    --color-warning-700: #b45309;

    --color-success-50: #ecfdf5;
    --color-success-100: #d1fae5;
    --color-success-200: #a7f3d0;
    --color-success-500: #10b981;
    --color-success-600: #059669;

    --font-sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --font-display: "Sora", "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;

    --font-size-base: 16px;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.82rem;
    --font-size-md: 0.9rem;
    --font-size-lg: 1.08rem;
    --font-size-xl: 1.35rem;
    --font-size-2xl: 2rem;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    --spacing-nav: 60px;
    --spacing-section: 24px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 32px;

    --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-card-lift: 0 8px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-dropdown: 0 12px 28px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.05);
    --shadow-modal: 0 24px 40px rgba(0,0,0,0.12), 0 8px 12px rgba(0,0,0,0.06);
    --shadow-toast: 0 12px 24px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.05);
    --shadow-nav: 0 1px 2px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-button: 0 2px 4px rgba(0,0,0,0.06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-pill: 9999px;

    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }
body.logged-in .entry-content,
body.logged-in .wp-block-post-content { margin-top: 0 !important; padding-top: 0 !important; }
.wp-block-post-title { display: none; }
body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f8fafc;
    color: var(--color-neutral-800);
}

h1, h2, h3, h4, h5, h6 { font-family: "Sora", var(--font-sans); }

/* === OVERRIDE WORDPRESS THEME FOR DASHBOARD PAGES === */
body.hb-app-shell {
    background: #f8fafc !important;
}
body.hb-app-shell .wp-site-blocks > header,
body.hb-app-shell header.wp-block-template-part,
body.hb-app-shell .wp-block-template-part > header,
body.hb-app-shell .wp-block-navigation,
body.hb-app-shell .wp-block-page-list,
body.hb-app-shell .wp-block-post-title {
    display: none !important;
}
body.hb-app-shell .wp-site-blocks {
    padding-top: 0 !important;
    max-width: none !important;
}
body.hb-app-shell .entry-content,
body.hb-app-shell .wp-block-post-content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.hb-app-shell .is-layout-constrained > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.hb-app-shell main.wp-block-group {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}
body.hb-app-shell .wp-block-group.alignfull {
    padding: 0 !important;
}

/* === DASHBOARD ROOT LAYOUT === */
.hb-dashboard-root {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: #f8fafc;
}

/* === LEFT SIDEBAR === */
.hb-dash-sidebar {
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 20px 0 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.hb-dash-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 20px;
    text-decoration: none;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 12px;
}
.hb-dash-sidebar-brand svg {
    width: 32px; height: 32px;
    color: var(--color-brand-500);
}

.hb-dash-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
    flex: 1;
}
.hb-dash-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--color-neutral-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 150ms var(--ease-smooth);
    position: relative;
}
.hb-dash-sidebar-link:hover {
    background: var(--color-neutral-50);
    color: var(--color-neutral-800);
}
.hb-dash-sidebar-link.is-active {
    background: #ecfdf5;
    color: var(--color-brand-700);
    font-weight: 700;
}
.hb-dash-sidebar-link svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: var(--color-neutral-400);
}
.hb-dash-sidebar-link.is-active svg {
    color: var(--color-brand-500);
}
.hb-dash-sidebar-badge {
    position: absolute;
    right: 14px;
    background: var(--color-brand-500);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hb-dash-help-card {
    margin: 12px;
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
    border: 1px solid #e2e8f0;
}
.hb-dash-help-card h4 {
    margin: 0 0 4px;
    font-size: 0.84rem;
    color: #475569;
    font-weight: 600;
}
.hb-dash-help-card p {
    margin: 0 0 12px;
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.3;
}
.hb-dash-help-card .hb-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 10px;
}

/* === MAIN CONTENT AREA === */
.hb-dash-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === INNER TOP NAV (Dashboard/Messages/Profile tabs) === */
.hb-dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    gap: 16px;
    flex-wrap: wrap;
}
.hb-dash-tabs {
    display: flex;
    gap: 0;
    border-bottom: none;
}
.hb-dash-tab {
    padding: 8px 0;
    margin: 0 18px 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-neutral-500);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 150ms;
}
.hb-dash-tab:hover { color: var(--color-neutral-700); }
.hb-dash-tab:focus,
.hb-dash-tab:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.hb-dash-tab.is-active {
    color: var(--color-brand-600);
    border-bottom-color: var(--color-brand-500);
}
.hb-dash-tab .hb-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-brand-500);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-left: 6px;
}

.hb-dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hb-dash-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 38px;
    min-width: 220px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 200ms;
}
.hb-dash-search:focus-within {
    border-color: var(--color-brand-300);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
}
.hb-dash-search svg {
    width: 16px; height: 16px;
    color: var(--color-neutral-400);
    flex-shrink: 0;
}
.hb-dash-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #1f2937;
    font-size: 0.85rem;
    width: 100%;
}

    /* --- Landlord Dashboard Layout (page 67) --- */
    #hb-landlord-dashboard-v3.hb-dashboard-root {
        grid-template-columns: 260px 1fr;
        min-height: calc(100vh - 62px);
        overflow-x: hidden;
    }

    #hb-landlord-dashboard-v3 .hb-dash-sidebar {
        height: auto;
        min-height: calc(100vh - 62px);
    }

    #hb-landlord-dashboard-v3 .hb-dash-help-card {
        margin: 8px;
        padding: 12px;
    }

    #hb-landlord-dashboard-v3 .hb-dash-main {
        min-height: 0;
        min-width: 0;
        overflow-x: hidden;
    }

    #hb-landlord-dashboard-v3 .hb-dash-topbar {
        padding: 16px 28px;
        gap: 16px;
    }

    #hb-landlord-dashboard-v3 .hb-dash-tabs {
        min-width: auto;
        flex-wrap: nowrap;
    }

    #hb-landlord-dashboard-v3 .hb-dash-topbar-right {
        min-width: auto;
        flex: 0 0 auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    #hb-landlord-dashboard-v3 .hb-dash-tab {
        font-size: 0.9rem;
        margin-right: 18px;
        padding: 8px 0;
    }

    #hb-landlord-dashboard-v3 .hb-dash-search {
        min-width: 220px;
        flex: 0 0 auto;
        width: auto;
        height: 38px;
    }

    #hb-landlord-dashboard-v3 .hb-dash-content {
        padding: 24px 28px 40px;
        max-width: 1200px;
        position: relative;
        min-width: auto;
        overflow-x: visible;
    }

    #hb-landlord-dashboard-v3 .hb-dash-hero {
        grid-template-columns: 1fr 320px;
        gap: 20px;
        margin-bottom: 20px;
    }

    #hb-landlord-dashboard-v3 .hb-kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
        margin-bottom: 24px !important;
    }

    #hb-landlord-dashboard-v3 .hb-tenant-grid {
        grid-template-columns: 2fr 1fr;
        gap: 16px;
        align-items: start;
    }

    #hb-landlord-dashboard-v3 .hb-tenant-main {
        min-width: 0;
    }

    #hb-landlord-dashboard-v3 .hb-tenant-side {
        position: sticky;
        top: 12px;
        align-self: start;
    }

    #hb-landlord-dashboard-v3 section#hb-dashboard-panel[style*="display: block"] {
        padding-right: 0;
    }

    #hb-landlord-dashboard-v3 section#hb-dashboard-panel[style*="display: block"] + .hb-tenant-grid {
        position: static;
        top: auto;
        right: auto;
        width: auto;
        margin-top: 0;
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 16px;
        z-index: 2;
    }

    #hb-landlord-dashboard-v3 section#hb-dashboard-panel[style*="display: block"] + .hb-tenant-grid .hb-tenant-main {
        display: block;
    }

    #hb-landlord-dashboard-v3 section#hb-dashboard-panel[style*="display: block"] + .hb-tenant-grid .hb-tenant-side {
        width: auto;
    }

    #hb-landlord-dashboard-v3 .hb-quick-actions-card {
        padding: 12px;
        border-radius: 14px;
    }

    #hb-landlord-dashboard-v3 .hb-quick-actions-card h3 {
        font-size: 0.92rem;
        margin-bottom: 8px;
    }

    #hb-landlord-dashboard-v3 .hb-quick-action-row {
        padding: 10px 10px;
        font-size: 0.9rem;
    }

    @media (max-width: 980px) {
        #hb-landlord-dashboard-v3.hb-dashboard-root {
            grid-template-columns: 1fr;
        }

        #hb-landlord-dashboard-v3 .hb-dash-sidebar {
            display: none;
        }

        #hb-landlord-dashboard-v3 .hb-dash-main {
            min-width: 0;
        }

        #hb-landlord-dashboard-v3 .hb-dash-content {
            max-width: none;
            padding: 16px 14px 24px;
        }

        #hb-landlord-dashboard-v3 .hb-dash-hero {
            grid-template-columns: 1fr;
        }

        #hb-landlord-dashboard-v3 .hb-tenant-grid {
            grid-template-columns: 1fr;
        }

        #hb-landlord-dashboard-v3 section#hb-dashboard-panel[style*="display: block"] + .hb-tenant-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }

        #hb-landlord-dashboard-v3 .hb-tenant-side {
            position: static;
        }
    }

.hb-dash-search input::placeholder { color: var(--color-neutral-400); }

/* === DASHBOARD CONTENT === */
.hb-dash-content {
    padding: 24px 28px 40px;
    max-width: 1200px;
}

/* Hero greeting */
.hb-dash-hero {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}
.hb-dash-hero-text h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.hb-dash-hero-text p {
    margin: 6px 0 0;
    font-size: 0.96rem;
    color: #64748b;
}

h1, h2, h3, h4, h5, h6 { font-family: "Sora", var(--font-sans); }

/* === OVERRIDE WORDPRESS THEME FOR DASHBOARD PAGES === */
body.hb-app-shell {
    background: #f8fafc !important;
}
body.hb-app-shell .wp-site-blocks > header,
body.hb-app-shell header.wp-block-template-part,
body.hb-app-shell .wp-block-template-part > header,
body.hb-app-shell .wp-block-navigation,
body.hb-app-shell .wp-block-page-list,
body.hb-app-shell .wp-block-post-title {
    display: none !important;
}
body.hb-app-shell .wp-site-blocks {
    padding-top: 0 !important;
    max-width: none !important;
}
body.hb-app-shell .entry-content,
body.hb-app-shell .wp-block-post-content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.hb-app-shell .is-layout-constrained > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.hb-app-shell main.wp-block-group {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}
body.hb-app-shell .wp-block-group.alignfull {
    padding: 0 !important;
}

/* === DASHBOARD ROOT LAYOUT === */
.hb-dashboard-root {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: #f8fafc;
}

/* === LEFT SIDEBAR === */
.hb-dash-sidebar {
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 20px 0 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.hb-dash-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 20px;
    text-decoration: none;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 12px;
}
.hb-dash-sidebar-brand svg {
    width: 32px; height: 32px;
    color: var(--color-brand-500);
}

.hb-dash-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
    flex: 1;
}
.hb-dash-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--color-neutral-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 150ms var(--ease-smooth);
    position: relative;
}
.hb-dash-sidebar-link:hover {
    background: var(--color-neutral-50);
    color: var(--color-neutral-800);
}
.hb-dash-sidebar-link.is-active {
    background: #ecfdf5;
    color: var(--color-brand-700);
    font-weight: 700;
}
.hb-dash-sidebar-link svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: var(--color-neutral-400);
}
.hb-dash-sidebar-link.is-active svg {
    color: var(--color-brand-500);
}
.hb-dash-sidebar-badge {
    position: absolute;
    right: 14px;
    background: var(--color-brand-500);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hb-dash-help-card {
    margin: 12px;
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
    border: 1px solid #e2e8f0;
}
.hb-dash-help-card h4 {
    margin: 0 0 4px;
    font-size: 0.84rem;
    color: #475569;
    font-weight: 600;
}
.hb-dash-help-card p {
    margin: 0 0 12px;
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.3;
}
.hb-dash-help-card .hb-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 10px;
}

/* === MAIN CONTENT AREA === */
.hb-dash-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === INNER TOP NAV (Dashboard/Messages/Profile tabs) === */
.hb-dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    gap: 16px;
    flex-wrap: wrap;
}
.hb-dash-tabs {
    display: flex;
    gap: 0;
    border-bottom: none;
}
.hb-dash-tab {
    padding: 8px 0;
    margin: 0 18px 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-neutral-500);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 150ms;
}
.hb-dash-tab:hover { color: var(--color-neutral-700); }
.hb-dash-tab.is-active {
    color: var(--color-brand-600);
    border-bottom-color: var(--color-brand-500);
}
.hb-dash-tab .hb-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-brand-500);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-left: 6px;
}

.hb-dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hb-dash-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 38px;
    min-width: 220px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 200ms;
}
.hb-dash-search:focus-within {
    border-color: var(--color-brand-300);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
}
.hb-dash-search svg {
    width: 16px; height: 16px;
    color: var(--color-neutral-400);
    flex-shrink: 0;
}
.hb-dash-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #1f2937;
    font-size: 0.85rem;
    width: 100%;
}
.hb-dash-search input::placeholder { color: var(--color-neutral-400); }

/* === DASHBOARD CONTENT === */
.hb-dash-content {
    padding: 24px 28px 40px;
    max-width: 1200px;
}

/* Hero greeting */
.hb-dash-hero {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}
.hb-dash-hero-text h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.hb-dash-hero-text p {
    margin: 6px 0 0;
    font-size: 0.96rem;
    color: #64748b;
}

.wp-site-blocks > header,
header.wp-block-template-part,
.wp-block-template-part > header {
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.wp-block-navigation .wp-block-navigation-item__content,
.wp-block-page-list a {
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #1f2937;
    padding: 8px 12px;
    border-radius: 9999px;
    transition: background 160ms var(--ease-smooth), color 160ms var(--ease-smooth);
}

.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-page-list a:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.wp-block-site-title,
.wp-block-site-title a {
    font-family: "Sora", var(--font-sans);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.entry-content,
.wp-block-post-content {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding: 24px 16px 40px;
}

.hb-icon { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.125em; flex-shrink: 0; }
.hb-icon-sm { width: 1em; height: 1em; }
.hb-icon-lg { width: 1.75em; height: 1.75em; }
.hb-icon-xl { width: 2.5em; height: 2.5em; }
.hb-icon-2xl { width: 4em; height: 4em; }
/* === Top Navigation - Product App style === */
.hb-topnav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    height: var(--spacing-nav);
    background: linear-gradient(112deg, #071c2f 0%, #08253e 45%, #0b3148 100%);
    border-bottom: 1px solid rgba(125, 211, 252, 0.2);
    box-shadow: 0 8px 26px rgba(2, 6, 23, 0.34);
    overflow: visible;
}
.hb-topnav-inner { box-sizing: border-box; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; width: min(1520px, 100%); margin: 0 auto; gap: 12px; }
.hb-topnav-left { display: flex; align-items: center; gap: 0; flex: 1 1 auto; min-width: 0; }
.hb-topnav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; color: #f8fafc; text-decoration: none; letter-spacing: -0.01em; transition: opacity 150ms var(--ease-smooth); padding-right: 16px; border-right: 1px solid rgba(125, 211, 252, 0.22); margin-right: 0; height: 60px; }
.hb-topnav-brand:hover { opacity: 0.9; }
.hb-topnav-brand-icon { width: 30px; height: 30px; background: linear-gradient(145deg, #0ea5e9, #22c55e); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 6px 14px rgba(14, 165, 233, 0.34); }
.hb-topnav-brand-icon svg { width: 18px; height: 18px; }
.hb-topnav-role-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #dbeafe; background: rgba(37, 99, 235, 0.22); border: 1px solid rgba(147, 197, 253, 0.35); box-shadow: none; flex-shrink: 0; margin: 0 8px 0 14px; }
.hb-topnav-role-landlord { background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-700)); }
.hb-topnav-role-contractor { background: linear-gradient(135deg, var(--color-accent-500), var(--color-accent-700)); }
.hb-topnav-role-tenant { background: linear-gradient(135deg, var(--color-warning-400), var(--color-warning-600)); }
.hb-topnav-role-admin { background: linear-gradient(135deg, var(--color-danger-500), var(--color-danger-700)); }
.hb-topnav-links { display: flex; align-items: center; gap: 2px; height: 60px; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.hb-topnav-links::-webkit-scrollbar { display: none; }
.hb-topnav-link { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; font-size: 0.81rem; font-weight: 600; color: rgba(241, 245, 249, 0.84); text-decoration: none; transition: all 150ms var(--ease-smooth); position: relative; white-space: nowrap; }
.hb-topnav-link:hover { color: #f8fafc; background: rgba(148, 163, 184, 0.2); }
.hb-topnav-link svg { width: 15px; height: 15px; color: rgba(191, 219, 254, 0.78); transition: color 150ms; }
.hb-topnav-link:hover svg { color: #7dd3fc; }
.hb-topnav-link-active { color: #f8fafc !important; font-weight: 700; background: rgba(14, 165, 233, 0.2); }
.hb-topnav-link-active svg { color: #7dd3fc !important; }
.hb-topnav-link-active::after { content: ""; position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); width: 16px; height: 2px; background: #38bdf8; border-radius: 2px; }
.hb-topnav-right { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; min-width: 0; }
.hb-topnav-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 38px; min-width: 140px; max-width: 250px; flex: 1 1 180px; background: rgba(2, 6, 23, 0.44); border: 1px solid rgba(125, 211, 252, 0.24); border-radius: 11px; transition: all 200ms var(--ease-smooth); }
.hb-topnav-search:focus-within { background: rgba(2, 6, 23, 0.62); border-color: rgba(125, 211, 252, 0.56); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2); }
.hb-topnav-search svg { width: 16px; height: 16px; color: rgba(186, 230, 253, 0.72); flex-shrink: 0; }
.hb-topnav-search input { background: transparent; border: none; outline: none; color: #f8fafc; font-size: 0.84rem; width: 100%; min-width: 0; }
.hb-topnav-search input::placeholder { color: rgba(191, 219, 254, 0.72); }
.hb-topnav-icon-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: #dbeafe; background: transparent; border: 1px solid transparent; cursor: pointer; transition: all 150ms var(--ease-smooth); position: relative; }
.hb-topnav-icon-btn:hover { color: #f8fafc; background: rgba(148, 163, 184, 0.18); border-color: rgba(125, 211, 252, 0.2); }
.hb-topnav-icon-btn svg { width: 20px; height: 20px; }
.hb-topnav-badge-dot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: #38bdf8; border: 1px solid #08253e; display: none; }
.hb-topnav-user-wrapper { position: relative; }
.hb-topnav-user-btn { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 10px; height: 38px; border-radius: 11px; background: rgba(2, 6, 23, 0.44); border: 1px solid rgba(125, 211, 252, 0.24); cursor: pointer; color: #f8fafc; font-size: 0.83rem; font-weight: 600; transition: all 150ms var(--ease-smooth); }
.hb-topnav-user-btn:hover { background: rgba(2, 6, 23, 0.62); border-color: rgba(125, 211, 252, 0.5); }
.hb-topnav-user-btn svg { width: 15px; height: 15px; color: rgba(191, 219, 254, 0.76); transition: transform 200ms var(--ease-smooth); }
.hb-topnav-user-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.hb-topnav-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; color: white; border: 1px solid rgba(125, 211, 252, 0.45); }
.hb-topnav-avatar-landlord { background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-600)); }
.hb-topnav-avatar-contractor { background: linear-gradient(135deg, var(--color-accent-500), var(--color-accent-600)); }
.hb-topnav-avatar-tenant { background: linear-gradient(135deg, var(--color-warning-400), var(--color-warning-500)); }
.hb-topnav-avatar-admin { background: linear-gradient(135deg, var(--color-danger-500), var(--color-danger-600)); }
.hb-topnav-dropdown { display: none; position: absolute; top: calc(100% + 6px); right: 0; min-width: 220px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-dropdown); border: 1px solid #dbeafe; overflow: hidden; animation: hb-fade-in 150ms var(--ease-smooth); }
.hb-topnav-dropdown.active { display: block; }
.hb-topnav-dropdown a, .hb-topnav-dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 16px; font-size: 0.86rem; color: var(--color-neutral-700); text-decoration: none; background: none; border: none; cursor: pointer; transition: background 100ms; }
.hb-topnav-dropdown a:hover, .hb-topnav-dropdown button:hover { background: var(--color-neutral-50); }
.hb-topnav-dropdown a svg, .hb-topnav-dropdown button svg { width: 16px; height: 16px; color: var(--color-neutral-400); }
.hb-topnav-dropdown .hb-dropdown-divider { height: 1px; background: var(--color-neutral-200); margin: 4px 0; }

.hb-dashboard { padding: var(--spacing-section); max-width: 1400px; margin: 0 auto; min-height: calc(100vh - var(--spacing-nav)); }
.hb-app-shell .hb-dashboard {
    max-width: min(1520px, calc(100% - 16px));
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    box-shadow: 0 28px 48px rgba(2, 6, 23, 0.11);
    margin-top: 14px;
    margin-bottom: 24px;
}
.hb-page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.hb-page-header h2 { font-size: 1.6rem; font-weight: 800; color: var(--color-neutral-900); letter-spacing: -0.02em; margin: 0; }
.hb-page-header p { color: var(--color-neutral-500); font-size: 0.9rem; margin: 4px 0 0; }

.hb-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.hb-kpi-card { background: white; border: 1px solid var(--color-neutral-200); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-card); transition: box-shadow 200ms var(--ease-smooth), transform 200ms var(--ease-smooth); display: flex; flex-direction: column; gap: 12px; cursor: default; }
.hb-kpi-card:hover { box-shadow: var(--shadow-card-lift); transform: translateY(-2px); }
.hb-kpi-card-action { cursor: pointer; }
.hb-kpi-card-action:focus-visible { outline: 2px solid var(--color-brand-500); outline-offset: 2px; }
.hb-kpi-card-header { display: flex; align-items: center; justify-content: space-between; }
.hb-kpi-card-label { font-size: 0.78rem; font-weight: 700; color: var(--color-neutral-500); text-transform: uppercase; letter-spacing: 0.06em; }
.hb-kpi-card-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.hb-kpi-card-icon svg { width: 22px; height: 22px; }
.hb-kpi-card-icon-brand { background: var(--color-brand-50); color: var(--color-brand-600); }
.hb-kpi-card-icon-accent { background: var(--color-accent-50); color: var(--color-accent-600); }
.hb-kpi-card-icon-warning { background: var(--color-warning-50); color: var(--color-warning-600); }
.hb-kpi-card-icon-danger { background: var(--color-danger-50); color: var(--color-danger-600); }
.hb-kpi-card-value { font-size: 2rem; font-weight: 800; color: var(--color-neutral-900); letter-spacing: -0.03em; line-height: 1; }
.hb-kpi-card-footer { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; }
.hb-kpi-card-trend-up { color: var(--color-success-600); }
.hb-kpi-card-trend-down { color: var(--color-danger-600); }
.hb-kpi-card-trend-neutral { color: var(--color-neutral-500); }

.hb-card { background: white; border: 1px solid var(--color-neutral-200); border-radius: var(--radius-xl); padding: 28px; margin-bottom: 20px; box-shadow: var(--shadow-card); transition: box-shadow 200ms var(--ease-smooth); color: #2f261e; }
.hb-card:hover { box-shadow: var(--shadow-card-hover); }
.hb-app-shell .hb-card { border-radius: 14px; border-color: rgba(148, 163, 184, 0.34); box-shadow: 0 9px 24px rgba(15, 23, 42, 0.08); }
.hb-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.hb-card-header h3 { font-family: "Sora", var(--font-sans); font-size: 1.24rem; font-weight: 800; color: #2b2015; margin: 0; letter-spacing: -0.015em; display: flex; align-items: center; gap: 8px; }
.hb-card-header h3 svg { width: 20px; height: 20px; color: var(--color-brand-500); }
.hb-card-inset { background: var(--color-neutral-50); border: 1px solid var(--color-neutral-200); border-radius: var(--radius-md); padding: 18px; }

.hb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 20px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; border: none; cursor: pointer; transition: all 150ms var(--ease-smooth); line-height: 1.4; white-space: nowrap; text-decoration: none; }
.hb-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.hb-btn:focus-visible { outline: 2px solid var(--color-brand-400); outline-offset: 2px; }
.hb-btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.hb-btn-primary { background: var(--color-brand-500); color: white; box-shadow: 0 2px 6px rgba(16,185,129,0.25); }
.hb-btn-primary:hover { background: var(--color-brand-600); box-shadow: 0 4px 12px rgba(16,185,129,0.35); transform: translateY(-1px); }
.hb-btn-primary:active { background: var(--color-brand-700); transform: translateY(0); }
.hb-app-shell .hb-btn-primary { background: linear-gradient(90deg, #0284c7, #0ea5e9); box-shadow: 0 10px 18px rgba(14, 165, 233, 0.26); }
.hb-app-shell .hb-btn-primary:hover { background: linear-gradient(90deg, #0369a1, #0284c7); }
.hb-btn-accent { background: var(--color-accent-500); color: white; box-shadow: 0 2px 6px rgba(59,130,246,0.25); }
.hb-btn-accent:hover { background: var(--color-accent-600); box-shadow: 0 4px 12px rgba(59,130,246,0.35); transform: translateY(-1px); }
.hb-btn-accent:active { background: var(--color-accent-700); transform: translateY(0); }
.hb-btn-secondary { background: var(--color-neutral-100); color: var(--color-neutral-700); border: 1px solid var(--color-neutral-300); }
.hb-btn-secondary:hover { background: var(--color-neutral-200); border-color: var(--color-neutral-400); }
.hb-btn-secondary:active { background: var(--color-neutral-300); }
.hb-btn-danger { background: var(--color-danger-500); color: white; box-shadow: 0 2px 6px rgba(239,68,68,0.25); }
.hb-btn-danger:hover { background: var(--color-danger-600); box-shadow: 0 4px 12px rgba(239,68,68,0.35); }
.hb-btn-danger:active { background: var(--color-danger-700); transform: translateY(0); }
.hb-btn-ghost { background: transparent; color: var(--color-neutral-600); }
.hb-btn-ghost:hover { background: var(--color-neutral-100); }
.hb-btn-ghost:active { background: var(--color-neutral-200); }
.hb-btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.hb-btn-lg { padding: 11px 28px; font-size: 0.95rem; border-radius: var(--radius-md); }

.hb-form-group { margin-bottom: 14px; }
.hb-form-group label { display: block; margin-bottom: 5px; font-weight: 700; color: #3b2d21; font-size: 0.86rem; }
.hb-form-group input, .hb-form-group select, .hb-form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--color-neutral-300); border-radius: var(--radius-sm); font-size: 0.9rem; background: white; transition: all 150ms var(--ease-smooth); box-sizing: border-box; color: var(--color-neutral-800); }
.hb-form-group input:focus, .hb-form-group select:focus, .hb-form-group textarea:focus { outline: none; border-color: var(--color-brand-400); box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }
.hb-form-group input::placeholder, .hb-form-group textarea::placeholder { color: var(--color-neutral-400); }
.hb-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hb-form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.hb-form-inline .hb-form-group { flex: 1; min-width: 140px; margin-bottom: 0; }
.hb-search-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px; margin-bottom: 20px; background: var(--color-neutral-50); border: 1px solid var(--color-neutral-200); border-radius: var(--radius-lg); }
.hb-search-bar input { flex: 1; min-width: 160px; padding: 9px 14px; border: 1px solid var(--color-neutral-300); border-radius: var(--radius-sm); font-size: 0.88rem; }
.hb-search-bar select { padding: 9px 14px; border: 1px solid var(--color-neutral-300); border-radius: var(--radius-sm); font-size: 0.88rem; background: white; }

.hb-guest-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    background:
        radial-gradient(circle at 10% 10%, rgba(186, 230, 253, 0.46), transparent 36%),
        linear-gradient(120deg, #ffffff 0%, #f8fbff 54%, #ecfeff 100%);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.08), 0 4px 10px rgba(30, 64, 175, 0.06);
    padding: 20px;
    margin-bottom: 18px;
}

.hb-guest-card-copy h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a;
}

.hb-guest-card-copy p {
    margin: 8px 0 0;
    color: #334155;
    max-width: 680px;
}

.hb-guest-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hb-maint-intro {
    margin-bottom: 16px;
    border: 1px solid #dbeafe;
    background: linear-gradient(140deg, #eff6ff 0%, #ecfeff 55%, #f0fdfa 100%);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.hb-maint-intro p {
    margin: 0;
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 500;
}

.hb-maint-intro-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.hb-maint-intro-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 9999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0b3a64;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(147, 197, 253, 0.6);
}

#hb-maint-form {
    border: 1px solid rgba(148, 163, 184, 0.26);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08), 0 4px 14px rgba(2, 6, 23, 0.04);
}

body.hb-app-shell #hb-maint-form {
    max-width: 860px;
    margin: 16px auto 18px;
}

body.hb-app-shell #hb-my-requests,
body.hb-app-shell #hb-property-listings {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

#hb-maint-submit-form textarea {
    min-height: 118px;
}

#hb-maint-submit-form .hb-btn-primary {
    min-width: 220px;
}

.hb-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 12px; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.hb-badge svg { width: 12px; height: 12px; }
.hb-badge-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.hb-badge-open { background: var(--color-accent-50); color: var(--color-accent-700); }
.hb-badge-in_progress { background: var(--color-warning-50); color: var(--color-warning-700); }
.hb-badge-completed { background: var(--color-brand-50); color: var(--color-brand-700); }
.hb-badge-cancelled { background: var(--color-danger-50); color: var(--color-danger-700); }
.hb-badge-pending { background: var(--color-neutral-100); color: var(--color-neutral-600); }
.hb-badge-urgent { background: var(--color-danger-50); color: var(--color-danger-700); }
.hb-badge-high { background: var(--color-warning-50); color: var(--color-warning-700); }

.hb-prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.hb-prop-card { background: white; border: 1px solid var(--color-neutral-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow 200ms var(--ease-smooth), transform 200ms var(--ease-smooth); }
.hb-prop-card:hover { box-shadow: var(--shadow-card-lift); transform: translateY(-3px); }
.hb-prop-card-header { background: linear-gradient(135deg, var(--color-neutral-100), var(--color-neutral-50)); height: 160px; display: flex; align-items: center; justify-content: center; color: var(--color-neutral-400); position: relative; overflow: hidden; }
.hb-prop-card-header::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: linear-gradient(to top, white, transparent); }
.hb-prop-card-header svg { width: 56px; height: 56px; opacity: 0.3; }
.hb-prop-card-body { padding: 20px; }
.hb-prop-card-body h4 { font-size: 1.08rem; font-weight: 700; color: var(--color-neutral-900); margin: 0 0 4px; }
.hb-prop-card-address { font-size: 0.84rem; color: var(--color-neutral-500); margin-bottom: 12px; display: flex; align-items: center; gap: 4px; }
.hb-prop-card-address svg { width: 14px; height: 14px; }
.hb-prop-card-price { font-size: 1.35rem; font-weight: 800; color: var(--color-brand-600); margin-bottom: 10px; }
.hb-prop-card-price span { font-size: 0.82rem; font-weight: 400; color: var(--color-neutral-400); }
.hb-prop-card-features { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--color-neutral-600); }
.hb-prop-card-features span { display: inline-flex; align-items: center; gap: 5px; }
.hb-prop-card-features svg { width: 14px; height: 14px; color: var(--color-neutral-400); }
.hb-prop-card-status { position: absolute; top: 14px; right: 14px; }

/* My Properties table (landlord dashboard) */
.hb-props-table-wrap { width: 100%; overflow-x: visible; }
.hb-props-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 0.84rem; table-layout: auto; }
.hb-props-table thead th { text-align: left; font-weight: 700; font-size: 0.71rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-neutral-500); padding: 9px 10px; border-bottom: 2px solid var(--color-neutral-200); white-space: nowrap; }
.hb-props-table tbody td { padding: 9px 10px; border-bottom: 1px solid var(--color-neutral-100); vertical-align: middle; }
.hb-prop-table-row { transition: background 150ms var(--ease-smooth); }
.hb-prop-table-row:hover { background: var(--color-brand-50); }
.hb-prop-table-row { cursor: pointer; }
.hb-prop-open-link { background: transparent; border: 0; padding: 0; margin: 0 0 1px; font-weight: 700; color: var(--color-neutral-900); line-height: 1.2; cursor: pointer; text-align: left; }
.hb-prop-open-link:hover { color: var(--color-accent-700); text-decoration: underline; }
.hb-prop-cell-title { font-weight: 700; color: var(--color-neutral-900); margin-bottom: 1px; line-height: 1.2; }
.hb-prop-cell-street { font-size: 0.74rem; color: var(--color-neutral-500); line-height: 1.2; max-width: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hb-prop-cell-rent { font-weight: 700; color: var(--color-brand-600); white-space: nowrap; }
.hb-prop-cell-rent .hb-text-xs { font-size: 0.7rem; font-weight: 400; margin-left: 2px; }
.hb-prop-cell-tenant { color: var(--color-neutral-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-tenant-name { font-weight: 700; color: var(--color-neutral-900); line-height: 1.15; }
.hb-tenant-phone { font-size: 0.74rem; color: var(--color-neutral-500); line-height: 1.15; margin-top: 2px; }
.hb-prop-cell-health { min-width: 0; }

.hb-props-table th:nth-child(1),
.hb-props-table td:nth-child(1) { width: 44%; }
.hb-props-table th:nth-child(2),
.hb-props-table td:nth-child(2) { width: 10%; }
.hb-props-table th:nth-child(3),
.hb-props-table td:nth-child(3) { width: 18%; }
.hb-props-table th:nth-child(4),
.hb-props-table td:nth-child(4) { width: 12%; }
.hb-props-table th:nth-child(5),
.hb-props-table td:nth-child(5) { width: 16%; }

.hb-prop-indicator { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 8px; font-size: 0.74rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.hb-prop-indicator svg { flex-shrink: 0; }
.hb-prop-indicator-good { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.hb-prop-indicator-warn { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.hb-prop-indicator-danger { background: rgba(239, 68, 68, 0.14); color: #b91c1c; }
.hb-prop-indicator-neutral { background: rgba(148, 163, 184, 0.18); color: #334155; }

.hb-prop-health { display: grid; gap: 4px; min-width: 0; }
.hb-prop-health-label { font-size: 0.72rem; color: var(--color-neutral-500); font-weight: 600; }

.hb-prop-modal-panel { width: min(1240px, calc(100% - 24px)); max-height: calc(100vh - 40px); overflow-y: auto; }
.hb-prop-modal-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; margin-top: 10px; }
.hb-prop-modal-main { min-width: 0; }
.hb-prop-modal-side { min-width: 0; display: grid; gap: 12px; align-content: start; }
.hb-prop-side-card { border: 1px solid var(--color-neutral-200); border-radius: 12px; padding: 12px; background: #fff; }
.hb-prop-side-card h4 { margin: 0 0 8px; font-size: 0.92rem; }

#hb-property-manage-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 14px 14px;
    background: transparent;
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    border: 0;
    animation: none;
}

body.hb-modal-open {
    overflow: hidden;
}

#hb-property-manage-modal[hidden] {
    display: none !important;
}

#hb-property-manage-modal .hb-modal-backdrop {
    background: rgba(2, 6, 23, 0.56);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 180ms var(--ease-smooth);
}

#hb-property-manage-modal .hb-prop-modal-panel {
    position: relative;
    width: min(1160px, calc(100vw - 28px));
    margin: 0;
    max-height: calc(100vh - 86px);
    border-radius: 14px;
    padding: 10px 12px;
    background: linear-gradient(165deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 22px 48px rgba(2, 6, 23, 0.24), 0 4px 14px rgba(15, 23, 42, 0.12);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(12px) scale(0.985);
    opacity: 0;
    transition: transform 220ms var(--ease-smooth), opacity 220ms var(--ease-smooth);
}

#hb-property-manage-modal .hb-prop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-right: 34px;
}

#hb-property-manage-modal #hb-property-modal-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.1rem;
    line-height: 1;
    letter-spacing: -0.01em;
}

#hb-property-manage-modal #hb-property-modal-name {
    font-family: "Sora", "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: 0.72em;
    color: #9f8d66;
    margin-left: 8px;
    font-weight: 600;
}

#hb-property-manage-modal .hb-prop-head-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
}

#hb-property-manage-modal .hb-prop-head-status select {
    min-width: 132px;
    border-radius: 999px;
    border-color: rgba(148, 163, 184, 0.5);
    background: rgba(255,255,255,0.92);
}

#hb-property-manage-modal .hb-prop-modal-panel::-webkit-scrollbar {
    width: 8px;
}

#hb-property-manage-modal .hb-prop-modal-panel::-webkit-scrollbar-track {
    background: transparent;
}

#hb-property-manage-modal .hb-prop-modal-panel::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.55);
    border-radius: 999px;
}

#hb-property-manage-modal .hb-prop-modal-panel {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

#hb-property-manage-modal.hb-opened .hb-modal-backdrop {
    opacity: 1;
}

#hb-property-manage-modal.hb-opened .hb-prop-modal-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#hb-property-manage-modal #hb-property-modal-title {
    margin: 0 0 4px;
    line-height: 1.2;
}

#hb-property-manage-modal .hb-form-row {
    gap: 6px;
    margin-bottom: 2px;
}

#hb-property-manage-modal .hb-form-group {
    margin-bottom: 6px;
}

#hb-property-manage-modal .hb-form-group label {
    margin-bottom: 3px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.01em;
}

#hb-property-manage-modal input,
#hb-property-manage-modal select,
#hb-property-manage-modal textarea {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 0.8rem;
    border-color: rgba(148, 163, 184, 0.42);
    background: rgba(255, 255, 255, 0.85);
}

#hb-property-manage-modal input:focus,
#hb-property-manage-modal select:focus,
#hb-property-manage-modal textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

#hb-property-manage-modal textarea {
    min-height: 56px;
    line-height: 1.35;
    resize: none;
    overflow-y: auto;
}

#hb-property-manage-modal #hb-prop-edit-description {
    min-height: 68px;
}

#hb-property-manage-modal #hb-prop-edit-images {
    min-height: 62px;
}

#hb-property-manage-modal .hb-prop-modal-grid {
    gap: 12px;
    margin-top: 4px;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}

#hb-property-manage-modal .hb-prop-card {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 14px;
    padding: 10px;
    background: rgba(255,255,255,0.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
    margin-bottom: 10px;
}

#hb-property-manage-modal .hb-prop-inline-field,
#hb-property-manage-modal .hb-prop-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

#hb-property-manage-modal .hb-prop-field-row-top {
    align-items: start;
}

#hb-property-manage-modal .hb-prop-field-control {
    min-width: 0;
}

#hb-property-manage-modal .hb-prop-field-row .hb-prop-icon-btn {
    margin-right: 2px;
}

#hb-property-manage-modal .hb-prop-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255,255,255,0.78);
    color: #64748b;
    cursor: pointer;
    font-size: 0.86rem;
    line-height: 1;
}

#hb-property-manage-modal .hb-prop-icon-btn:hover {
    background: rgba(255,255,255,0.96);
    color: #0f172a;
}

#hb-property-manage-modal .hb-prop-finance-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#hb-property-manage-modal .hb-prop-image-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

#hb-property-manage-modal .hb-btn-danger-soft {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(254, 242, 242, 0.75);
}

#hb-property-manage-modal .hb-prop-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

#hb-property-manage-modal .hb-prop-maint-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#hb-property-manage-modal .hb-prop-tenant-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
}

#hb-property-manage-modal .hb-prop-tenant-avatar {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(150deg, #d1d5db, #9ca3af);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

#hb-property-manage-modal .hb-prop-tenant-quick {
    display: inline-flex;
    gap: 6px;
}

#hb-property-manage-modal .hb-prop-icon-link {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(255,255,255,0.88);
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

#hb-property-manage-modal .hb-prop-tenant-lease {
    margin-top: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.72);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#hb-property-manage-modal .hb-prop-tenant-lease > div {
    padding: 8px;
    display: grid;
    gap: 3px;
}

#hb-property-manage-modal .hb-prop-tenant-lease span {
    font-size: 0.72rem;
    color: #64748b;
}

#hb-property-manage-modal .hb-prop-tenant-lease strong {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 700;
}

#hb-property-manage-modal .hb-prop-actionbar {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

#hb-property-manage-modal .hb-prop-actionbar .hb-btn {
    min-height: 42px;
    font-size: 0.9rem;
}

#hb-property-manage-modal .hb-prop-side-card {
    padding: 6px 8px;
    border-color: rgba(148, 163, 184, 0.36);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

#hb-property-manage-modal .hb-prop-side-card h4 {
    margin-bottom: 4px;
    font-size: 0.8rem;
}

#hb-property-manage-modal #hb-prop-maint-list {
    max-height: none;
    overflow: visible;
}

#hb-property-manage-modal #hb-prop-maint-detail {
    margin-top: 8px;
    max-height: none;
    overflow: visible;
}

#hb-property-manage-modal .hb-prop-maint-detail-card {
    padding: 10px;
}

#hb-property-manage-modal .hb-form-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
}

#hb-property-manage-modal .hb-form-inline .hb-form-group {
    min-width: 0;
}

#hb-property-manage-modal .hb-btn {
    min-height: 32px;
    padding: 5px 12px;
    font-size: 0.78rem;
    border-radius: 999px;
}

#hb-property-manage-modal .hb-btn-primary {
    background: rgba(2, 132, 199, 0.13);
    color: #0f172a;
    border: 1px solid rgba(2, 132, 199, 0.34);
    box-shadow: none;
}

#hb-property-manage-modal .hb-btn-primary:hover {
    background: rgba(2, 132, 199, 0.2);
    border-color: rgba(2, 132, 199, 0.46);
    transform: none;
}

#hb-property-manage-modal .hb-btn-secondary {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

#hb-property-manage-modal .hb-prop-save-row {
    grid-template-columns: auto;
    justify-content: start;
    margin-top: 2px;
}

#hb-property-manage-modal .hb-prop-upload-drop {
    display: grid;
    place-items: center;
    gap: 2px;
    width: 100%;
    min-height: 30px;
    border: 1px dashed #94a3b8;
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.75);
    color: #334155;
    cursor: pointer;
    text-align: center;
    padding: 4px 8px;
}

#hb-property-manage-modal .hb-prop-upload-drop:hover {
    background: #f1f5f9;
    border-color: #64748b;
}

#hb-property-manage-modal #hb-prop-image-upload {
    display: none;
}

#hb-property-manage-modal .hb-prop-upload-title {
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#hb-property-manage-modal .hb-prop-upload-title::before {
    content: "+";
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid rgba(100, 116, 139, 0.65);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    line-height: 1;
    background: rgba(255,255,255,0.9);
}

#hb-property-manage-modal .hb-prop-upload-sub {
    font-size: 0.66rem;
    color: #64748b;
}

#hb-property-manage-modal .hb-prop-maint-table th,
#hb-property-manage-modal .hb-prop-maint-table td {
    padding-left: 4px;
    padding-right: 4px;
}

#hb-property-manage-modal .hb-prop-maint-table td:nth-child(2) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

#hb-property-manage-modal .hb-prop-maint-open {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
}

#hb-property-manage-modal .hb-prop-maint-open:hover {
    text-decoration: underline;
}

#hb-property-manage-modal .hb-modal-close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: rgba(255,255,255,0.7);
    color: #64748b;
}

#hb-property-manage-modal .hb-modal-close:hover {
    background: rgba(255,255,255,0.95);
    color: #0f172a;
}

#hb-property-manage-modal .hb-prop-image-thumbs {
    margin-top: 6px;
    gap: 6px;
}

.hb-prop-image-empty {
    display: grid;
    gap: 6px;
    align-items: center;
}

.hb-prop-image-empty-box {
    width: 100%;
    height: 82px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.hb-prop-image-thumbs { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.hb-prop-image-thumb { border: 1px solid var(--color-neutral-200); border-radius: 10px; padding: 6px; background: #fff; }
.hb-prop-image-thumb img { width: 100%; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.hb-prop-image-remove { margin-top: 6px; width: 100%; border: 1px solid var(--color-neutral-200); border-radius: 6px; background: #f8fafc; font-size: 0.72rem; padding: 4px 6px; cursor: pointer; }

.hb-prop-maint-kpis { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.hb-prop-maint-kpis span { background: #f1f5f9; border: 1px solid #dbeafe; border-radius: 999px; padding: 4px 8px; font-size: 0.74rem; font-weight: 700; color: #334155; }

.hb-prop-maint-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.hb-prop-maint-table th { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--color-neutral-200); color: var(--color-neutral-500); font-size: 0.68rem; text-transform: uppercase; }
.hb-prop-maint-table td { padding: 7px 6px; border-bottom: 1px solid var(--color-neutral-100); vertical-align: top; }
.hb-prop-maint-open { border: 0; background: transparent; color: var(--color-accent-700); cursor: pointer; text-decoration: underline; font-size: 0.76rem; padding: 0; }

.hb-maint-media-thumb { display: inline-block; margin-right: 4px; }
.hb-maint-media-thumb img { width: 26px; height: 26px; object-fit: cover; border-radius: 6px; border: 1px solid var(--color-neutral-200); }
.hb-maint-media-pill { display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 999px; background: #e0f2fe; color: #0369a1; font-size: 0.68rem; text-decoration: none; font-weight: 700; }

.hb-prop-maint-detail { margin-top: 12px; }
.hb-prop-maint-detail-card { border: 1px solid var(--color-neutral-200); border-radius: 12px; padding: 12px; background: #f8fafc; }
.hb-prop-maint-detail-card h4 { margin: 0 0 8px; }
.hb-prop-maint-detail-card p { margin: 6px 0; font-size: 0.84rem; }
.hb-prop-maint-gallery { margin-top: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.hb-prop-maint-image { width: 100%; height: 88px; object-fit: cover; border-radius: 8px; border: 1px solid var(--color-neutral-200); }
.hb-prop-maint-video { width: 100%; height: 88px; border-radius: 8px; border: 1px solid var(--color-neutral-200); background: #000; }

@media (max-width: 980px) {
    .hb-prop-modal-grid { grid-template-columns: 1fr; }

    #hb-property-manage-modal .hb-prop-modal-panel {
        width: calc(100vw - 14px);
        max-height: calc(100vh - 14px);
        margin: 0;
        padding: 12px;
    }

    #hb-property-manage-modal .hb-prop-head {
        margin-right: 30px;
        align-items: flex-start;
        flex-direction: column;
    }

    #hb-property-manage-modal #hb-property-modal-title {
        font-size: 1.5rem;
    }

    #hb-property-manage-modal .hb-prop-head-status {
        width: 100%;
    }

    #hb-property-manage-modal .hb-prop-head-status select {
        flex: 1;
    }

    #hb-property-manage-modal .hb-prop-tenant-main {
        grid-template-columns: auto 1fr;
    }

    #hb-property-manage-modal .hb-prop-tenant-quick {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    #hb-property-manage-modal .hb-prop-tenant-lease {
        grid-template-columns: 1fr;
    }

    #hb-property-manage-modal .hb-prop-actionbar {
        grid-template-columns: 1fr;
    }

    #hb-property-manage-modal .hb-prop-maint-table td:nth-child(2) {
        white-space: normal;
        max-width: none;
    }

    #hb-property-manage-modal .hb-prop-maint-head-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    #hb-property-manage-modal #hb-prop-maint-list,
    #hb-property-manage-modal #hb-prop-maint-detail {
        max-height: none;
    }
}

.hb-repair-meter {
    display: inline-grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    align-items: center;
    width: 100%;
    min-width: 84px;
}

.hb-repair-segment {
    display: block;
    height: 7px;
    border-radius: 2px;
    transform: skewX(-28deg);
    transform-origin: center;
    border: 1px solid transparent;
}

.hb-repair-segment.is-off {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.hb-repair-meter-good .hb-repair-segment.is-lit {
    background: linear-gradient(180deg, #4ade80, #16a34a);
    border-color: #15803d;
}

.hb-repair-meter-warn .hb-repair-segment.is-lit {
    background: linear-gradient(180deg, #facc15, #f59e0b);
    border-color: #d97706;
}

.hb-repair-meter-danger .hb-repair-segment.is-lit {
    background: linear-gradient(180deg, #f87171, #ef4444);
    border-color: #b91c1c;
}

.hb-request-card { background: white; border: 1px solid var(--color-neutral-200); border-radius: var(--radius-md); padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow-card); transition: box-shadow 200ms var(--ease-smooth), transform 200ms var(--ease-smooth); }
.hb-request-card:hover { box-shadow: var(--shadow-card-lift); transform: translateY(-1px); }
.hb-request-card h4,
.hb-prop-card h4,
.hb-kpi-card-value { color: #2b2015; }
.hb-app-shell .hb-request-card,
.hb-app-shell .hb-prop-card,
.hb-app-shell .hb-kanban-card { border-radius: 12px; border-color: rgba(148, 163, 184, 0.34); }
.hb-request-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.hb-request-card-header h4 { font-size: 0.95rem; font-weight: 700; color: var(--color-neutral-900); margin: 0; }
.hb-request-card-badges { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.hb-request-card-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; color: var(--color-neutral-500); margin-bottom: 8px; }
.hb-request-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hb-request-card-meta svg { width: 13px; height: 13px; }
.hb-request-card-desc { font-size: 0.88rem; color: var(--color-neutral-700); line-height: 1.5; margin-bottom: 0; }
.hb-request-card-actions { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-neutral-100); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hb-request-card-location { font-size: 0.82rem; color: var(--color-neutral-500); display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.hb-request-card-location svg { width: 13px; height: 13px; }

.hb-topnav-menu-btn { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--color-neutral-300); background: white; border-radius: var(--radius-md); color: var(--color-neutral-700); cursor: pointer; margin-left: 10px; }
.hb-topnav-mobile { display: none; border-top: 1px solid var(--color-neutral-200); background: white; }
.hb-topnav-mobile.active { display: block; }
.hb-topnav-mobile-panel { padding: 10px 16px 14px; }
.hb-topnav-mobile-links { display: grid; grid-template-columns: 1fr; gap: 8px; }
.hb-topnav-mobile-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--color-neutral-700); text-decoration: none; font-weight: 600; background: var(--color-neutral-50); }

.hb-tenant-v3 { max-width: 1280px; }
.hb-tenant-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.hb-tenant-hero h1 { margin: 0; font-size: 2.1rem; letter-spacing: -0.03em; color: var(--color-neutral-900); }
.hb-tenant-hero p { margin: 8px 0 0; color: var(--color-neutral-600); }
.hb-app-shell .hb-tenant-hero h1 { font-size: 2.4rem; letter-spacing: -0.04em; color: #0f172a; }
.hb-app-shell .hb-tenant-hero p { font-size: 1rem; color: #475569; }
.hb-tenant-residence { background: white; border: 1px solid var(--color-neutral-200); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-card); }
.hb-app-shell .hb-tenant-residence { border-radius: 14px; border-color: rgba(148, 163, 184, 0.36); background: linear-gradient(160deg, #ffffff 0%, #eff6ff 100%); }
.hb-tenant-residence h3 { margin: 0; font-size: 1rem; color: var(--color-neutral-900); }
.hb-tenant-residence-icon { margin-top: 12px; width: 56px; height: 56px; border-radius: 14px; background: var(--color-neutral-100); color: var(--color-neutral-600); display: flex; align-items: center; justify-content: center; }
.hb-tenant-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.hb-tenant-side-card { position: sticky; top: 84px; }
.hb-quick-actions { display: grid; gap: 10px; }
.hb-quick-action { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--color-neutral-200); color: var(--color-neutral-700); text-decoration: none; font-weight: 600; background: white; }
.hb-quick-action:hover { background: var(--color-neutral-50); }

.hb-maint-form-v3 .hb-form-row { display: flex; flex-direction: column; gap: 16px; }
.hb-maint-categories { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.hb-maint-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    border: 1.5px solid var(--color-neutral-200);
    border-radius: 14px;
    background: white;
    color: var(--color-neutral-600);
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    padding: 14px 6px 11px;
    text-align: center;
    min-width: 0;
    transition: all 180ms var(--ease-smooth);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.hb-maint-cat:hover { border-color: var(--color-brand-300); background: var(--color-brand-50); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16,185,129,0.12); }
.hb-maint-cat svg {
    width: 20px;
    height: 20px;
    padding: 9px;
    border-radius: 10px;
    background: var(--color-neutral-100);
    color: var(--color-neutral-500);
    box-sizing: content-box;
    flex-shrink: 0;
    transition: all 180ms var(--ease-smooth);
}
.hb-maint-cat:hover svg { background: rgba(16,185,129,0.12); color: var(--color-brand-600); }
.hb-maint-cat span { display: block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-maint-cat.is-active { border-color: var(--color-brand-500); color: var(--color-brand-700); background: linear-gradient(160deg, rgba(209,250,229,0.7), rgba(187,247,208,0.4)); box-shadow: 0 0 0 2.5px rgba(16,185,129,0.22), 0 4px 12px rgba(16,185,129,0.1); }
.hb-maint-cat.is-active svg { background: var(--color-brand-500); color: white; box-shadow: 0 4px 10px rgba(16,185,129,0.35); }
.hb-priority-selector { display: flex; border: 1px solid var(--color-neutral-300); border-radius: var(--radius-sm); overflow: hidden; background: white; }
.hb-priority-pill { flex: 1; border: 0; background: white; color: var(--color-neutral-700); font-weight: 600; font-size: 0.84rem; min-height: 42px; cursor: pointer; }
.hb-priority-pill + .hb-priority-pill { border-left: 1px solid var(--color-neutral-200); }
.hb-priority-pill.is-active { background: var(--color-accent-50); color: var(--color-accent-700); }

.hb-contractor-v3 { max-width: 1320px; }
.hb-contractor-tabs { display: inline-flex; gap: 6px; margin: 6px 0 14px; padding: 4px; border: 1px solid var(--color-neutral-200); border-radius: var(--radius-pill); background: white; }
.hb-contractor-tab { border: 0; background: transparent; color: var(--color-neutral-600); border-radius: var(--radius-pill); min-height: 34px; padding: 0 14px; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.hb-contractor-tab.is-active { background: var(--color-neutral-900); color: white; }
.hb-contractor-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hb-contractor-column { background: white; border: 1px solid var(--color-neutral-200); border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-card); min-height: 220px; }
.hb-contractor-column h3 { margin: 2px 0 12px; font-size: 0.86rem; color: var(--color-neutral-600); text-transform: uppercase; letter-spacing: 0.05em; }
.hb-contractor-col-body { display: grid; gap: 10px; }
.hb-daylist { display: grid; gap: 8px; }
.hb-dayrow { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--color-neutral-200); border-radius: 10px; background: #fff; }
.hb-dayrow strong { font-size: 0.86rem; color: var(--color-neutral-800); }
.hb-dayrow span { font-size: 0.8rem; color: var(--color-neutral-500); }
.hb-dayrow em { font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--color-brand-700); background: var(--color-brand-50); border: 1px solid var(--color-brand-200); border-radius: 999px; padding: 4px 10px; }
input.hb-plan-tax,
input.hb-plan-util { width: 130px; max-width: 100%; border: 1px solid var(--color-neutral-300); border-radius: 8px; padding: 6px 8px; }
.hb-kanban-card { border: 1px solid var(--color-neutral-200); border-radius: var(--radius-md); padding: 12px; background: var(--color-neutral-50); }
.hb-kanban-card-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.hb-kanban-card-top h4 { margin: 0; font-size: 0.9rem; color: var(--color-neutral-900); }
.hb-kanban-meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0; font-size: 0.78rem; color: var(--color-neutral-600); }
.hb-kanban-meta span { display: inline-flex; align-items: center; gap: 4px; }
.hb-kanban-card p { margin: 0; font-size: 0.82rem; color: var(--color-neutral-700); line-height: 1.45; }
.hb-kanban-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

.hb-modal { position: fixed; inset: 0; z-index: 1200; display: none; }
.hb-modal.active { display: block; }
.hb-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.48); }
.hb-modal-panel { position: relative; width: min(680px, calc(100% - 24px)); margin: 40px auto; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-modal); border: 1px solid var(--color-neutral-200); padding: 20px; z-index: 1; }
.hb-modal-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: var(--radius-md); border: 1px solid var(--color-neutral-200); background: white; color: var(--color-neutral-600); cursor: pointer; }
.hb-job-detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; font-size: 0.84rem; color: var(--color-neutral-700); }
.hb-job-detail-desc { margin: 0 0 12px; font-size: 0.9rem; color: var(--color-neutral-700); }
.hb-job-checklist { display: grid; gap: 8px; }
.hb-job-checklist label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--color-neutral-700); }

@media (max-width: 1100px) {
    .hb-topnav-links { display: none; }
    .hb-topnav-menu-btn { display: inline-flex; }
    .hb-topnav-search { min-width: 180px; }
    .hb-topnav-search input { width: 120px; }
    .hb-tenant-hero { grid-template-columns: 1fr; }
    .hb-tenant-grid { grid-template-columns: 1fr; }
    .hb-tenant-side-card { position: static; }
    .hb-contractor-board { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .hb-maint-form-v3 .hb-form-row { flex-direction: column; }
    .hb-maint-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hb-priority-selector { min-height: 46px; }
}

@media (max-width: 760px) {
    .hb-topnav { height: auto; }
    .hb-topnav-inner { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
    .hb-topnav-brand { border-right: 0; padding-right: 0; height: auto; }
    .hb-topnav-role-badge { margin: 0 0 0 8px; }
    .hb-topnav-right { width: 100%; justify-content: space-between; }
    .hb-topnav-search { flex: 1; min-width: 0; }
    .hb-topnav-search input { width: 100%; }
    .hb-topnav-user-name { display: none; }
    .hb-dashboard { padding: 14px; }
    .hb-card { padding: 16px; border-radius: var(--radius-lg); }
    .hb-maint-form-v3 .hb-form-row { flex-direction: column; }
    .hb-maint-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hb-contractor-tabs { width: 100%; overflow-x: auto; }
    .hb-job-detail-meta { grid-template-columns: 1fr; }

    .hb-guest-card {
        padding: 16px;
    }

    .hb-guest-card-copy h3 {
        font-size: 1.06rem;
    }

    .entry-content,
    .wp-block-post-content {
        padding: 16px 10px 28px;
    }

    .hb-app-shell .hb-dashboard {
        margin-top: 8px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
.hb-progress{height:8px;background:var(--color-neutral-100);border-radius:var(--radius-pill);overflow:hidden}
.hb-progress-bar{height:100%;border-radius:var(--radius-pill);background:linear-gradient(90deg,var(--color-brand-400),var(--color-brand-500));transition:width 600ms var(--ease-smooth)}
.hb-progress-bar-warning{background:linear-gradient(90deg,var(--color-warning-300),var(--color-warning-500))}
.hb-progress-bar-danger{background:linear-gradient(90deg,var(--color-danger-300),var(--color-danger-500))}
.hb-timeline{position:relative;padding-left:32px}
.hb-timeline::before{content:"";position:absolute;left:11px;top:0;bottom:0;width:2px;background:var(--color-neutral-200)}
.hb-timeline-item{position:relative;padding-bottom:24px}
.hb-timeline-item:last-child{padding-bottom:0}
.hb-timeline-dot{position:absolute;left:-32px;top:2px;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:white;border:2px solid var(--color-neutral-200);z-index:1}
.hb-timeline-dot svg{width:12px;height:12px;color:var(--color-neutral-400)}
.hb-timeline-dot-active{border-color:var(--color-brand-500);background:var(--color-brand-50)}
.hb-timeline-dot-active svg{color:var(--color-brand-500)}
.hb-timeline-dot-completed{border-color:var(--color-brand-500);background:var(--color-brand-500)}
.hb-timeline-dot-completed svg{color:white}
.hb-timeline-title{font-size:.9rem;font-weight:600;color:var(--color-neutral-800);margin-bottom:2px}
.hb-timeline-date{font-size:.78rem;color:var(--color-neutral-500)}
.hb-tabs{display:flex;gap:2px;border-bottom:2px solid var(--color-neutral-200);margin-bottom:20px}
.hb-tab{padding:10px 20px;font-size:.88rem;font-weight:600;color:var(--color-neutral-500);background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;cursor:pointer;transition:all 150ms var(--ease-smooth)}
.hb-tab:hover{color:var(--color-neutral-700)}
.hb-tab.active{color:var(--color-brand-600);border-bottom-color:var(--color-brand-500)}
.hb-modal-overlay{display:none;position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.35);backdrop-filter:blur(6px);align-items:center;justify-content:center;padding:20px}
.hb-modal-overlay.active{display:flex}
.hb-modal{background:white;border-radius:var(--radius-2xl);box-shadow:var(--shadow-modal);max-width:560px;width:100%;max-height:85vh;overflow-y:auto;animation:hb-modal-in 250ms var(--ease-smooth)}
.hb-modal-header{display:flex;align-items:center;justify-content:space-between;padding:22px 28px 0}
.hb-modal-header h3{font-size:1.15rem;font-weight:700;margin:0}
.hb-modal-close{width:34px;height:34px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;background:var(--color-neutral-100);border:none;cursor:pointer;color:var(--color-neutral-500);transition:all 100ms}
.hb-modal-close:hover{background:var(--color-neutral-200);color:var(--color-neutral-700)}
.hb-modal-close svg{width:16px;height:16px}
.hb-modal-body{padding:22px 28px}
.hb-modal-footer{padding:16px 28px 22px;display:flex;gap:10px;justify-content:flex-end;border-top:1px solid var(--color-neutral-100)}
.hb-toast-container{position:fixed;bottom:24px;right:24px;z-index:300;display:flex;flex-direction:column;gap:10px;max-width:400px}
.hb-toast{display:flex;align-items:flex-start;gap:12px;padding:16px 20px;background:white;border-radius:var(--radius-md);box-shadow:var(--shadow-toast);border-left:4px solid var(--color-brand-500);animation:hb-toast-in 300ms var(--ease-smooth);font-size:.88rem}
.hb-toast-success{border-left-color:var(--color-brand-500)}
.hb-toast-error{border-left-color:var(--color-danger-500)}
.hb-toast-warning{border-left-color:var(--color-warning-500)}
.hb-toast-info{border-left-color:var(--color-accent-500)}
.hb-toast-icon{flex-shrink:0;margin-top:1px}
.hb-toast-icon svg{width:20px;height:20px}
.hb-toast-success .hb-toast-icon svg{color:var(--color-brand-500)}
.hb-toast-error .hb-toast-icon svg{color:var(--color-danger-500)}
.hb-toast-warning .hb-toast-icon svg{color:var(--color-warning-500)}
.hb-toast-info .hb-toast-icon svg{color:var(--color-accent-500)}
.hb-toast-body{flex:1}
.hb-toast-title{font-weight:600;color:var(--color-neutral-900);margin-bottom:2px}
.hb-toast-message{color:var(--color-neutral-600);font-size:.84rem}
.hb-toast-close{margin-left:4px;background:none;border:none;cursor:pointer;color:var(--color-neutral-400);padding:2px}
.hb-toast-close:hover{color:var(--color-neutral-700)}
.hb-toast-close svg{width:14px;height:14px}
.hb-stars{display:flex;gap:3px;align-items:center}
.hb-star{width:20px;height:20px;color:var(--color-neutral-300);cursor:pointer;transition:color 100ms}
.hb-star svg{width:20px;height:20px}
.hb-star:hover,.hb-star-filled{color:var(--color-warning-400)}
.hb-star-filled{color:var(--color-warning-400)}
.hb-rating-text{font-size:.82rem;color:var(--color-neutral-500);margin-left:4px}
.hb-toggle{position:relative;display:inline-flex;align-items:center;cursor:pointer;gap:8px}
.hb-toggle-input{position:absolute;opacity:0;width:0;height:0}
.hb-toggle-track{width:40px;height:22px;background:var(--color-neutral-300);border-radius:var(--radius-pill);position:relative;transition:background 150ms var(--ease-smooth)}
.hb-toggle-thumb{position:absolute;top:2px;left:2px;width:18px;height:18px;background:white;border-radius:50%;box-shadow:var(--shadow-sm);transition:transform 150ms var(--ease-spring)}
.hb-toggle-input:checked+.hb-toggle-track{background:var(--color-brand-500)}
.hb-toggle-input:checked+.hb-toggle-track .hb-toggle-thumb{transform:translateX(18px)}
.hb-toggle-label{font-size:.85rem;color:var(--color-neutral-700);font-weight:500}
.hb-login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--color-brand-50),var(--color-accent-50));padding:20px}
.hb-login-container{width:100%;max-width:420px}
.hb-login-logo{text-align:center;margin-bottom:28px}
.hb-login-logo-icon{width:56px;height:56px;background:linear-gradient(135deg,var(--color-brand-500),var(--color-accent-500));border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;margin:0 auto 16px;box-shadow:var(--shadow-card)}
.hb-login-logo-icon svg{width:28px;height:28px;color:white}
.hb-login-logo h1{font-size:1.6rem;font-weight:700;color:var(--color-neutral-900);margin-bottom:6px}
.hb-login-logo p{font-size:.9rem;color:var(--color-neutral-500);margin:0}
.hb-login-card{background:white;border-radius:var(--radius-2xl);box-shadow:var(--shadow-card);padding:32px}
.hb-login-card .hb-form-group{margin-bottom:18px}
.hb-login-card .hb-form-group label{font-size:.85rem;font-weight:600;color:var(--color-neutral-700);margin-bottom:6px;display:block}
.hb-login-card input[type=text],.hb-login-card input[type=password]{width:100%;padding:12px 14px;border:1px solid var(--color-neutral-200);border-radius:var(--radius-md);font-size:.9rem;transition:all 150ms var(--ease-smooth)}
.hb-login-card input:focus{border-color:var(--color-brand-400);box-shadow:0 0 0 3px var(--color-brand-100);outline:none}
.hb-login-card button{width:100%;margin-top:4px}
.hb-empty-state{text-align:center;padding:48px 20px}
.hb-empty-state-icon{width:64px;height:64px;background:var(--color-neutral-100);border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.hb-empty-state-icon svg{width:32px;height:32px;color:var(--color-neutral-400)}
.hb-empty-state h4{font-size:1.1rem;font-weight:600;color:var(--color-neutral-700);margin-bottom:6px}
.hb-empty-state p{font-size:.88rem;color:var(--color-neutral-500);max-width:320px;margin:0 auto}
.hb-skeleton{background:linear-gradient(90deg,var(--color-neutral-100) 25%,var(--color-neutral-200) 50%,var(--color-neutral-100) 75%);background-size:200% 100%;animation:hb-skeleton-shimmer 1.5s infinite;border-radius:var(--radius-sm)}
.hb-skeleton-card{height:180px;border-radius:var(--radius-md)}
.hb-skeleton-text{height:14px;margin-bottom:10px;border-radius:var(--radius-sm)}
.hb-skeleton-title{height:20px;width:60%;margin-bottom:16px}
.hb-skeleton-circle{width:48px;height:48px;border-radius:50%}
.hb-kanban{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;align-items:start}
.hb-kanban-col{background:var(--color-neutral-50);border-radius:var(--radius-md);padding:14px;border:1px solid var(--color-neutral-100)}
.hb-kanban-col-header{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--color-neutral-200)}
.hb-kanban-col-header h4{font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.025em;color:var(--color-neutral-500);margin:0}
.hb-kanban-count{font-size:.78rem;background:var(--color-neutral-200);color:var(--color-neutral-600);padding:2px 8px;border-radius:var(--radius-pill);font-weight:600}
.hb-kanban-card{background:white;border-radius:var(--radius-sm);padding:12px;margin-bottom:8px;box-shadow:var(--shadow-sm);border:1px solid var(--color-neutral-100);cursor:grab;transition:box-shadow 150ms,transform 150ms}
.hb-kanban-card:hover{box-shadow:var(--shadow-card);transform:translateY(-1px)}
.hb-kanban-card:active{cursor:grabbing}
.hb-upload-zone{border:2px dashed var(--color-neutral-300);border-radius:var(--radius-md);padding:32px;text-align:center;background:var(--color-neutral-50);transition:all 150ms var(--ease-smooth);cursor:pointer}
.hb-upload-zone:hover{border-color:var(--color-brand-400);background:var(--color-brand-50)}
.hb-upload-zone.dragover{border-color:var(--color-brand-500);background:var(--color-brand-100)}
.hb-upload-zone-icon{width:48px;height:48px;margin:0 auto 12px;color:var(--color-neutral-400)}
.hb-upload-zone-icon svg{width:48px;height:48px}
.hb-upload-zone p{font-size:.88rem;color:var(--color-neutral-600);margin:0 0 4px}
.hb-upload-zone span{font-size:.78rem;color:var(--color-neutral-500)}
@media (max-width:768px){
.hb-topnav-inner{padding:0 12px}
.hb-topnav-links{display:none}
.hb-topnav-mobile-menu{display:flex}
.hb-topnav-search{display:none}
.hb-topnav-user-name{display:none}
.hb-kpi-grid{grid-template-columns:1fr 1fr}
.hb-prop-grid{grid-template-columns:1fr}
.hb-form-row{grid-template-columns:1fr}
.hb-login-container{padding:0 16px}
.hb-modal{max-width:calc(100vw - 32px)}
.hb-toast-container{left:16px;right:16px;bottom:16px;max-width:none}
}
@media (max-width:480px){
.hb-kpi-grid{grid-template-columns:1fr}
.hb-card{padding:16px}
}
@keyframes hb-modal-in{from{opacity:0;transform:translateY(20px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes hb-toast-in{from{opacity:0;transform:translateX(100px)}to{opacity:1;transform:translateX(0)}}
@keyframes hb-skeleton-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){
*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
.hb-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:focus-visible{outline:2px solid var(--color-brand-500);outline-offset:2px;border-radius:var(--radius-sm)}

/* ================================================================
   Homebase Card v4 — Unified card system ( tenant / contractor / etc )
   ================================================================ */

.hb-card-v4 {
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    padding: 26px;
    margin-bottom: 18px;
    box-shadow: 0 9px 24px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(2, 6, 23, 0.04);
    transition: box-shadow 200ms var(--ease-smooth), transform 200ms var(--ease-smooth);
    color: #2f261e;
}
.hb-card-v4:hover { box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10), 0 4px 10px rgba(2, 6, 23, 0.05); transform: translateY(-1px); }

.hb-card-v4-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}
.hb-card-v4-header h3 {
    font-family: "Sora", var(--font-sans);
    font-size: 1.18rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
    letter-spacing: -0.015em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hb-card-v4-header h3 svg { width: 20px; height: 20px; color: var(--color-brand-500); flex-shrink: 0; }

/* --- Request Card (tenant dashboard style) --- */
.hb-request-card-v4 {
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(2, 6, 23, 0.03);
    transition: box-shadow 200ms var(--ease-smooth), transform 200ms var(--ease-smooth);
}
.hb-request-card-v4:hover { box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09), 0 3px 8px rgba(2, 6, 23, 0.04); transform: translateY(-2px); }

.hb-request-card-v4-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.hb-request-card-v4-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}
.hb-request-card-v4-id {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-neutral-400);
    white-space: nowrap;
}

.hb-request-card-v4-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 0.82rem;
    color: var(--color-neutral-500);
}
.hb-request-card-v4-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.hb-request-card-v4-meta svg { width: 14px; height: 14px; color: var(--color-neutral-400); }

.hb-request-card-v4-stepper {
    margin: 12px 0 10px;
}

/* --- Status badge variants (clearer names matching reference) --- */
.hb-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.hb-badge-status-pending {
    background: #fef3c7;
    color: #b45309;
}
.hb-badge-status-in_progress {
    background: #ecfdf5;
    color: #047857;
}
.hb-badge-status-completed {
    background: #dbeafe;
    color: #1d4ed8;
}
.hb-badge-status-open {
    background: var(--color-accent-50);
    color: var(--color-accent-700);
}
.hb-badge-status-cancelled {
    background: var(--color-danger-50);
    color: var(--color-danger-700);
}
.hb-badge-status-urgent {
    background: var(--color-danger-50);
    color: var(--color-danger-700);
}

/* --- Stepper / Timeline mini (4 stages) --- */
.hb-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hb-stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.hb-stepper-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-neutral-200);
    border: 2px solid var(--color-neutral-200);
    transition: all 200ms var(--ease-smooth);
    flex-shrink: 0;
}
.hb-stepper-dot svg { width: 10px; height: 10px; color: white; }
.hb-stepper-item.is-done .hb-stepper-dot { background: var(--color-brand-500); border-color: var(--color-brand-500); }
.hb-stepper-item.is-active .hb-stepper-dot { background: white; border-color: var(--color-brand-500); }
.hb-stepper-item.is-active .hb-stepper-dot svg { color: var(--color-brand-500); }
.hb-stepper-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-neutral-400);
    text-align: center;
    white-space: nowrap;
}
.hb-stepper-item.is-done .hb-stepper-label,
.hb-stepper-item.is-active .hb-stepper-label { color: var(--color-neutral-700); }
.hb-stepper-connector {
    flex: 1;
    height: 2px;
    background: var(--color-neutral-200);
    border-radius: 1px;
    min-width: 12px;
    margin-bottom: 20px;
    transition: background 200ms;
}
.hb-stepper-connector.is-done { background: var(--color-brand-500); }

/* --- Quick Actions Card (sidebar) --- */
.hb-quick-actions-card {
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 9px 24px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(2, 6, 23, 0.04);
}
.hb-quick-actions-card h3 {
    font-family: "Sora", var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hb-quick-actions-card h3 svg { width: 18px; height: 18px; color: var(--color-brand-500); }

.hb-quick-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: var(--color-neutral-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    background: transparent;
    cursor: pointer;
    transition: all 150ms var(--ease-smooth);
}
.hb-quick-action-row:hover {
    background: var(--color-neutral-50);
    border-color: var(--color-neutral-200);
}
.hb-quick-action-row svg { width: 18px; height: 18px; color: var(--color-neutral-500); flex-shrink: 0; }
.hb-quick-action-row:hover svg { color: var(--color-brand-500); }
.hb-quick-action-row .hb-quick-action-chevron { width: 18px; height: 18px; color: var(--color-neutral-400); flex-shrink: 0; transition: transform 150ms; }
.hb-quick-action-row:hover .hb-quick-action-chevron { transform: translateX(2px); color: var(--color-brand-500); }

/* --- Info Card (residence / profile sidebar) --- */
.hb-info-card {
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 9px 24px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(2, 6, 23, 0.04);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.hb-info-card-media {
    width: 80px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--color-neutral-100);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hb-info-card-media img { width: 100%; height: 100%; object-fit: cover; }
.hb-info-card-media svg { width: 32px; height: 32px; color: var(--color-neutral-400); }
.hb-info-card-body { flex: 1; min-width: 0; }
.hb-info-card-body h4 {
    font-family: "Sora", var(--font-sans);
    font-size: 0.96rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 2px;
}
.hb-info-card-body p {
    font-size: 0.82rem;
    color: var(--color-neutral-500);
    margin: 0 0 6px;
    line-height: 1.4;
}
.hb-info-card-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-brand-600);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hb-info-card-link:hover { text-decoration: underline; }

/* --- Maintenance submit card (large compose card) --- */
.hb-maint-card-v4 {
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 9px 24px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(2, 6, 23, 0.04);
}
.hb-maint-card-v4 h3 {
    font-family: "Sora", var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px;
}
.hb-maint-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--color-neutral-200);
    border-radius: 12px;
    font-size: 0.92rem;
    color: var(--color-neutral-800);
    background: white;
    outline: none;
    transition: border-color 180ms, box-shadow 180ms;
    box-sizing: border-box;
}
.hb-maint-input:focus {
    border-color: var(--color-brand-400);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.10);
}
.hb-maint-input::placeholder { color: var(--color-neutral-400); }

.hb-upload-dropzone {
    border: 2px dashed var(--color-neutral-300);
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    background: var(--color-neutral-50);
    transition: border-color 150ms, background 150ms;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.hb-upload-dropzone:hover { border-color: var(--color-brand-400); background: var(--color-brand-50); }
.hb-upload-dropzone.is-dragging,
.hb-upload-dropzone.is-ready {
    border-color: var(--color-brand-500);
    background: #ecfdf5;
}
.hb-upload-dropzone svg { width: 24px; height: 24px; color: var(--color-neutral-400); }
.hb-upload-dropzone p { margin: 0; font-size: 0.84rem; color: var(--color-neutral-600); }
.hb-upload-dropzone span { font-size: 0.74rem; color: var(--color-neutral-400); }
.hb-maint-file-input {
    display: none;
}
.hb-upload-file-list {
    min-height: 18px;
    margin-top: 6px;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hb-type-select-v4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 640px) {
    .hb-type-select-v4 { grid-template-columns: repeat(4, 1fr); }
}
.hb-type-pill-v4 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1.5px solid var(--color-neutral-200);
    border-radius: 12px;
    background: white;
    color: var(--color-neutral-600);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms var(--ease-smooth);
}
.hb-type-pill-v4:hover { border-color: var(--color-brand-300); background: var(--color-brand-50); }
.hb-type-pill-v4.is-active {
    border-color: var(--color-brand-500);
    color: var(--color-brand-700);
    background: linear-gradient(160deg, rgba(209,250,229,0.7), rgba(187,247,208,0.4));
    box-shadow: 0 0 0 2.5px rgba(16,185,129,0.15);
}
.hb-type-pill-v4 svg { width: 18px; height: 18px; color: var(--color-neutral-500); flex-shrink: 0; }
.hb-type-pill-v4.is-active svg { color: var(--color-brand-500); }

.hb-btn-v4 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 150ms var(--ease-smooth);
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
}
.hb-btn-v4-primary {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    box-shadow: 0 4px 14px rgba(16,185,129,0.25);
}
.hb-btn-v4-primary:hover {
    background: linear-gradient(135deg, #047857, #059669);
    box-shadow: 0 6px 18px rgba(16,185,129,0.32);
    transform: translateY(-1px);
}

/* --- Request cards grid (3 columns like reference) --- */
.hb-request-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 980px) {
    .hb-request-cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) and (min-width: 641px) {
    .hb-request-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- View all link --- */
.hb-view-all {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-brand-600);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hb-view-all:hover { text-decoration: underline; }

/* --- Section header row --- */
.hb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.hb-section-header h3 {
    font-family: "Sora", var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* --- Request type selector (regular vs emergency) --- */
.hb-req-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.hb-req-type-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid var(--color-neutral-200);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 150ms var(--ease-smooth);
}
.hb-req-type-option:hover { border-color: var(--color-brand-300); background: var(--color-brand-50); }
.hb-req-type-option.is-active {
    border-color: var(--color-brand-500);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.hb-req-type-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-neutral-100);
    color: var(--color-neutral-500);
    flex-shrink: 0;
}
.hb-req-type-icon svg { width: 18px; height: 18px; }
.hb-req-type-option.is-active .hb-req-type-icon { background: rgba(16,185,129,0.12); color: var(--color-brand-600); }
.hb-req-type-body { min-width: 0; }
.hb-req-type-body strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-neutral-800);
    margin-bottom: 2px;
}
.hb-req-type-body span {
    font-size: 0.76rem;
    color: var(--color-neutral-500);
    line-height: 1.35;
}

/* --- Photo thumbnail row inside upload zone --- */
.hb-upload-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.hb-upload-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--color-neutral-200);
}
.hb-upload-add {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    border: 1.5px dashed var(--color-neutral-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-neutral-400);
    background: white;
    cursor: pointer;
    transition: all 150ms;
}
.hb-upload-add:hover { border-color: var(--color-brand-400); color: var(--color-brand-500); background: var(--color-brand-50); }
.hb-upload-add svg { width: 18px; height: 18px; }

/* --- Compact request list for shortcodes --- */
.hb-recent-requests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- Generic helper classes for card internals --- */
.hb-text-sm { font-size: 0.82rem; }
.hb-text-muted { color: var(--color-neutral-500); }
.hb-mt { margin-top: 8px; }
.hb-mb { margin-bottom: 14px; }
.hb-flex-between { display: flex; align-items: center; justify-content: space-between; }
.hb-flex-start { display: flex; align-items: flex-start; gap: 10px; }

/* === HOMEPAGE (PAGE 22) === */
.hb-homepage { width: 100%; }
.hb-home-hero { position: relative; background: radial-gradient(1000px 500px at 15% -10%, var(--color-accent-500) 0%, rgba(59,130,246,0) 60%), radial-gradient(900px 500px at 100% 0%, var(--color-accent-800) 0%, rgba(30,64,175,0) 65%), linear-gradient(135deg, color-mix(in srgb, var(--color-neutral-900) 90%, var(--color-accent-900)) 0%, color-mix(in srgb, var(--color-neutral-900) 85%, var(--color-accent-800)) 50%, color-mix(in srgb, var(--color-neutral-800) 80%, var(--color-accent-700)) 100%); color: #eaf3ff; padding: 72px 20px 80px; overflow: hidden; }
.hb-home-hero-content { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; }
.hb-home-hero-left { z-index: 2; }
.hb-home-overline { letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent-300); font-weight: 700; font-size: 0.82rem; display: block; margin-bottom: 14px; }
.hb-home-headline { font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.05; margin: 0 0 16px; font-family: "Sora", var(--font-sans); font-weight: 800; }
.hb-home-headline .hb-home-highlight { color: var(--color-accent-300); }
.hb-home-features { display: flex; flex-direction: column; gap: 10px; }
.hb-home-feat { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; color: #c6dbf7; }
.hb-home-feat-icon { display: inline-flex; align-items: center; color: var(--color-accent-400); }
.hb-home-hero-right { z-index: 2; }
.hb-home-auth-card { background: rgba(255,255,255,0.97); border-radius: var(--radius-xl); padding: 28px 24px; box-shadow: var(--shadow-card-lift); color: var(--color-neutral-800); margin-bottom: 16px; }
.hb-home-auth-title { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; color: var(--color-neutral-900); }
.hb-home-auth-sub { margin: 0 0 20px; font-size: 0.88rem; color: var(--color-neutral-500); }
.hb-home-toggle-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hb-home-toggle-label { font-size: 0.88rem; font-weight: 600; color: var(--color-neutral-400); }
.hb-home-toggle-label.is-active { color: var(--color-accent-600); }
.hb-toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.hb-toggle-switch input { opacity: 0; width: 0; height: 0; }
.hb-toggle-track { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--color-neutral-300); border-radius: var(--radius-pill); transition: 0.3s; }
.hb-toggle-track::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }
.hb-toggle-switch input:checked + .hb-toggle-track { background: var(--color-accent-500); }
.hb-toggle-switch input:checked + .hb-toggle-track::before { transform: translateX(20px); }
.hb-input-label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--color-neutral-700); margin-bottom: 6px; }
.hb-input-wrap { position: relative; margin-bottom: 14px; }
.hb-input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--color-neutral-400); pointer-events: none; z-index: 2; }
.hb-home-consent { margin-bottom: 14px; }
.hb-checkbox-wrap { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.hb-checkbox-wrap input[type="checkbox"] { margin-top: 2px; }
.hb-checkmark { display: none; }
.hb-consent-text { font-size: 0.78rem; color: var(--color-neutral-500); line-height: 1.5; }
.hb-home-login-link { text-align: center; margin: 16px 0 0; font-size: 0.88rem; color: var(--color-neutral-500); }
.hb-home-login-link a { color: var(--color-accent-600); font-weight: 600; text-decoration: none; }
.hb-home-resend { text-align: center; margin: 12px 0 0; font-size: 0.84rem; color: var(--color-neutral-400); }
.hb-home-resend a { color: var(--color-accent-600); }
.hb-home-back-link { text-align: center; margin-top: 8px; font-size: 0.82rem; }
.hb-home-back-link a { color: var(--color-neutral-400); text-decoration: none; }
.hb-home-success-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: var(--color-success-100); border-radius: 50%; margin: 0 auto 16px; color: var(--color-success-600); }
.hb-code-inputs { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.hb-code-digit { width: 44px; height: 48px; text-align: center; font-size: 1.25rem; font-weight: 700; border: 1px solid var(--color-neutral-300); border-radius: var(--radius-sm); }
.hb-code-digit:focus { border-color: var(--color-accent-500); outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.hb-error-msg { background: var(--color-danger-50); color: var(--color-danger-600); padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.82rem; margin-bottom: 12px; }

/* Homepage auth form hardening for browser consistency */
.hb-home-auth-card #hb-phone,
.hb-home-auth-card #hb-email {
    width: 100%;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 12px 0 40px;
    font-size: 0.95rem;
    line-height: 42px;
    box-sizing: border-box;
    background: #fff;
    color: #1f2937;
}

.hb-home-auth-card #hb-phone:focus,
.hb-home-auth-card #hb-email:focus {
    outline: none;
    border-color: var(--color-accent-400);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.14);
}

.hb-home-auth-card .hb-checkbox-wrap input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #9ecae8;
    border-radius: 6px;
    background: #fff;
    margin-top: 1px;
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.hb-home-auth-card .hb-checkbox-wrap input[type="checkbox"]::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 2px;
    width: 5px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.hb-home-auth-card .hb-checkbox-wrap input[type="checkbox"]:checked {
    background: var(--color-accent-500);
    border-color: var(--color-accent-500);
}

.hb-home-auth-card .hb-checkbox-wrap input[type="checkbox"]:checked::after {
    opacity: 1;
}

.hb-home-business { background: var(--color-neutral-900); color: #eaf3ff; }
.hb-home-biz-inner { max-width: 1100px; margin: 0 auto; padding: 28px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.hb-home-biz-left h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.hb-home-biz-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #eaf3ff; padding: 12px 20px; border: 1px solid rgba(168,204,255,0.35); border-radius: var(--radius-md); transition: background 0.2s; }
.hb-home-biz-link:hover { background: rgba(255,255,255,0.06); }
.hb-home-biz-link strong { font-size: 0.95rem; color: #c6dbf7; }
.hb-home-biz-link span { font-size: 0.82rem; color: var(--color-neutral-400); }
.hb-home-biz-arrow { color: var(--color-accent-400); }

.hb-home-props { padding: 60px 20px; background: var(--color-neutral-50); }
.hb-home-props-inner { max-width: 1100px; margin: 0 auto; }
.hb-home-props-inner h2 { font-size: 1.75rem; font-weight: 800; margin: 0 0 6px; color: var(--color-neutral-900); }
.hb-home-props-inner > p { color: var(--color-neutral-500); margin: 0 0 28px; font-size: 1rem; }
.hb-home-props-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.hb-home-prop-card { display: block; text-decoration: none; background: white; border: 1px solid var(--color-neutral-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow 0.2s, transform 0.2s; }
.hb-home-prop-card:hover { box-shadow: var(--shadow-card-lift); transform: translateY(-3px); }
.hb-home-prop-img { background: linear-gradient(135deg, var(--color-brand-100), var(--color-accent-100)); height: 140px; display: flex; align-items: center; justify-content: center; color: var(--color-brand-300); }
.hb-home-prop-body { padding: 20px; }
.hb-home-prop-body h4 { margin: 0 0 4px; font-size: 1.08rem; font-weight: 700; color: var(--color-neutral-900); }
.hb-home-prop-body p { margin: 0 0 10px; font-size: 0.84rem; color: var(--color-neutral-500); }
.hb-home-prop-link { font-size: 0.84rem; font-weight: 600; color: var(--color-accent-600); display: inline-flex; align-items: center; gap: 4px; }

/* === LANDING PAGE (PAGE 9) === */
.hb-landing-page { width: 100%; }
.hb-landing-hero { background: linear-gradient(140deg, var(--color-neutral-900) 0%, var(--color-accent-900) 50%, var(--color-accent-700) 100%); color: #eaf3ff; padding: 72px 20px; }
.hb-landing-hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; }
.hb-landing-hero-copy { }
.hb-landing-overline { letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent-300); font-weight: 700; font-size: 0.82rem; display: block; margin-bottom: 14px; }
.hb-landing-hero-copy h1 { font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.05; margin: 0 0 16px; font-weight: 800; }
.hb-landing-hero-copy p { font-size: 1.1rem; line-height: 1.7; color: #c6dbf7; max-width: 640px; margin: 0 0 22px; }
.hb-landing-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hb-landing-hero-media {}
.hb-landing-hero-media-placeholder { background: rgba(255,255,255,0.06); border: 1px solid rgba(154,204,255,0.25); border-radius: var(--radius-xl); height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(154,204,255,0.4); }
.hb-landing-hero-media-placeholder span { font-size: 0.88rem; color: rgba(154,204,255,0.3); }

.hb-landing-perks { background: rgba(15,23,42,0.95); padding: 28px 20px; }
.hb-landing-perks-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.hb-landing-perk { background: rgba(255,255,255,0.06); border: 1px solid rgba(154,204,255,0.35); padding: 18px; border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 4px; }
.hb-landing-perk svg { color: var(--color-accent-400); margin-bottom: 4px; }
.hb-landing-perk strong { color: #eaf3ff; }
.hb-landing-perk span { color: #bdd8fb; font-size: 0.84rem; }

.hb-landing-signup { background: var(--color-neutral-50); padding: 60px 20px; }
.hb-landing-signup-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.hb-landing-signup-copy h2 { font-size: 2rem; margin: 0 0 14px; color: var(--color-neutral-900); font-weight: 800; }
.hb-landing-signup-copy > p { line-height: 1.7; color: var(--color-neutral-500); margin: 0 0 20px; }
.hb-landing-signup-media-placeholder { background: var(--color-neutral-100); border: 1px solid var(--color-neutral-200); border-radius: var(--radius-lg); height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--color-neutral-300); }
.hb-landing-signup-form { background: white; border: 1px solid var(--color-neutral-200); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-card); }
.hb-landing-signup-form h4 { margin: 0 0 16px; font-size: 1.08rem; font-weight: 700; }
.hb-landing-signup-disclaimer { font-size: 0.82rem; color: var(--color-neutral-400); margin: 14px 0 0; text-align: center; }

/* === CONTRACTOR SIGNUP (PAGE 10) === */
.hb-contractor-signup-page { width: 100%; }
.hb-cs-hero { background: linear-gradient(140deg, var(--color-neutral-900) 0%, color-mix(in srgb, var(--color-accent-900) 70%, var(--color-neutral-900)) 60%, var(--color-accent-700) 100%); color: #eef6ff; padding: 64px 20px; }
.hb-cs-hero-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 0.9fr; gap: 30px; align-items: center; }
.hb-cs-hero-copy h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 12px; font-weight: 800; }
.hb-cs-hero-copy p { color: #c8ddf8; max-width: 700px; line-height: 1.7; margin: 0 0 20px; }
.hb-cs-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hb-cs-hero-media-placeholder { background: rgba(255,255,255,0.06); border: 1px solid rgba(154,204,255,0.25); border-radius: var(--radius-xl); height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(154,204,255,0.4); }

.hb-cs-form-section { background: var(--color-neutral-50); padding: 50px 20px; }
.hb-cs-form-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hb-cs-perks { background: rgba(255,255,255,0.8); padding: 20px; border-radius: var(--radius-lg); }
.hb-cs-perks h3 { margin: 0 0 12px; font-size: 1.15rem; font-weight: 700; }
.hb-cs-perks ul { list-style: none; padding: 0; margin: 0; }
.hb-cs-perks li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 0.95rem; color: var(--color-neutral-700); }
.hb-cs-perks li svg { color: var(--color-brand-500); }
.hb-cs-form-card { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card); }
.hb-cs-form-card h3 { margin: 0 0 16px; font-size: 1.15rem; font-weight: 700; }

/* === OUTLINE LIGHT BUTTON === */
.hb-btn-outline-light { border: 1px solid var(--color-accent-300); color: #dff0ff; background: transparent; }
.hb-btn-outline-light:hover { background: rgba(255,255,255,0.08); }

/* === RESPONSIVE FIXES === */
@media (max-width: 768px) {
    .hb-home-hero-content,
    .hb-landing-hero-inner,
    .hb-landing-signup-inner,
    .hb-cs-hero-inner,
    .hb-cs-form-inner { grid-template-columns: 1fr; }
    .hb-home-hero { padding: 40px 16px 50px; }
    .hb-home-hero-right { margin-top: 24px; }
    .hb-home-biz-inner { flex-direction: column; text-align: center; }
    .hb-home-props { padding: 40px 16px; }
    .hb-landing-hero { padding: 40px 16px; }
    .hb-cs-hero { padding: 40px 16px; }
    .hb-landing-signup { padding: 40px 16px; }
    .hb-cs-form-section { padding: 30px 16px; }
}

/* === HOMEPAGE FULL-WIDTH OVERRIDE === */
body.hb-app-shell .hb-homepage,
body.hb-app-shell .hb-landing-page,
body.hb-app-shell .hb-contractor-signup-page { max-width: none; }

/* Desktop-first cleanup for public marketing pages (prevents broken top image strips/cards) */
body.page-id-9 .wp-block-post-featured-image,
body.page-id-10 .wp-block-post-featured-image,
body.page-id-22 .wp-block-post-featured-image,
body.home:not(.hb-app-shell) .wp-block-post-featured-image {
    display: none !important;
}

body.page-id-9 .wp-site-blocks > header,
body.page-id-10 .wp-site-blocks > header,
body.page-id-22 .wp-site-blocks > header,
body.page-id-9 header.wp-block-template-part,
body.page-id-10 header.wp-block-template-part,
body.page-id-22 header.wp-block-template-part,
body.home:not(.hb-app-shell) .wp-site-blocks > header,
body.home:not(.hb-app-shell) header.wp-block-template-part {
    display: none !important;
}

body.page-id-9 .entry-content,
body.page-id-10 .entry-content,
body.page-id-22 .entry-content,
body.page-id-9 .wp-block-post-content,
body.page-id-10 .wp-block-post-content,
body.page-id-22 .wp-block-post-content,
body.home:not(.hb-app-shell) .entry-content,
body.home:not(.hb-app-shell) .wp-block-post-content {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.page-id-9 .wp-site-blocks,
body.page-id-10 .wp-site-blocks,
body.page-id-22 .wp-site-blocks,
body.home:not(.hb-app-shell) .wp-site-blocks {
    padding-top: 0 !important;
}

/* === FULL-WIDTH LANDLORD DASHBOARD (PAGE 67) === */
body.page-id-67,
body.page-id-67 .wp-site-blocks,
body.page-id-67 main,
body.page-id-67 .wp-block-group,
body.page-id-67 .is-layout-constrained,
body.page-id-67 .entry-content,
body.page-id-67 .wp-block-post-content,
body.page-id-67 .hb-dash-main,
body.page-id-67 .hb-dash-content {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.page-id-67 .has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.page-id-67 #hb-landlord-dashboard-v3.hb-dashboard-root {
    grid-template-columns: 260px minmax(0, 1fr) !important;
    max-width: none !important;
    width: 100% !important;
}

body.page-id-67 #hb-landlord-dashboard-v3 .hb-dash-main {
    min-width: 0 !important;
}

body.page-id-67 #hb-landlord-dashboard-v3 .hb-dash-content {
    max-width: none !important;
    width: 100% !important;
    padding: 24px 24px 40px !important;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    body.page-id-67 #hb-landlord-dashboard-v3 .hb-dash-content {
        padding: 18px 16px 30px !important;
    }
}

@media (max-width: 980px) {
    body.page-id-67 #hb-landlord-dashboard-v3.hb-dashboard-root {
        grid-template-columns: 1fr !important;
    }

    body.page-id-67 #hb-landlord-dashboard-v3 .hb-dash-sidebar {
        display: none !important;
    }

    body.page-id-67 #hb-landlord-dashboard-v3 .hb-dash-content {
        padding: 16px 14px 24px !important;
    }
}

/* === FULL-WIDTH TENANT DASHBOARD (PAGE 65) === */
body.page-id-65,
body.page-id-65 .wp-site-blocks,
body.page-id-65 main,
body.page-id-65 .wp-block-group,
body.page-id-65 .is-layout-constrained,
body.page-id-65 .entry-content,
body.page-id-65 .wp-block-post-content,
body.page-id-65 .hb-dash-main,
body.page-id-65 .hb-dash-content {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.page-id-65 .has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.page-id-65 .hb-tenant-dashboard-shell.hb-dashboard-root {
    grid-template-columns: 220px minmax(0, 1fr) !important;
    max-width: none !important;
    width: 100% !important;
}

body.page-id-65 .hb-tenant-dashboard-shell .hb-dash-main {
    min-width: 0 !important;
}

body.page-id-65 .hb-tenant-dashboard-shell .hb-dash-content {
    max-width: none !important;
    width: 100% !important;
    padding: 20px 24px 34px !important;
    box-sizing: border-box;
}

/* === FULL-WIDTH CONTRACTOR DASHBOARD === */
#hb-contractor-dashboard-v3.hb-dashboard-root {
    grid-template-columns: 260px minmax(0, 1fr) !important;
    max-width: none !important;
    width: 100% !important;
    overflow-x: hidden;
}

#hb-contractor-dashboard-v3 .hb-dash-main {
    min-width: 0 !important;
    overflow-x: hidden;
}

#hb-contractor-dashboard-v3 .hb-dash-content {
    max-width: none !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 20px 24px 34px !important;
    box-sizing: border-box;
}

#hb-contractor-invoices-panel .hb-tenant-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 16px;
    width: 100%;
    min-width: 0;
}

#hb-contractor-invoices-panel .hb-tenant-main,
#hb-contractor-invoices-panel .hb-tenant-side,
#hb-contractor-invoices-panel .hb-card-v4 {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

#hb-contractor-invoices-panel .hb-tenant-side {
    width: 100%;
}

#hb-contractor-invoices-panel .hb-props-table {
    min-width: 720px;
}

#hb-contractor-invoices-panel #hb-contractor-invoices-list {
    overflow-x: auto;
}

#hb-contractor-invoices-panel .hb-dayrow {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
}

#hb-contractor-invoices-panel .hb-dayrow strong,
#hb-contractor-invoices-panel .hb-dayrow span {
    min-width: 0;
    overflow-wrap: anywhere;
}

#hb-contractor-invoices-panel .hb-dayrow em {
    justify-self: start;
}

@media (max-width: 1024px) {
    #hb-contractor-dashboard-v3.hb-dashboard-root {
        grid-template-columns: 1fr !important;
    }

    #hb-contractor-dashboard-v3 .hb-dash-sidebar {
        display: none !important;
    }

    #hb-contractor-dashboard-v3 .hb-dash-content {
        padding: 16px 14px 24px !important;
    }

    #hb-contractor-invoices-panel .hb-tenant-grid {
        grid-template-columns: 1fr;
    }

    #hb-contractor-invoices-panel .hb-tenant-side {
        position: static;
    }

    body.page-id-65 .hb-tenant-dashboard-shell.hb-dashboard-root {
        grid-template-columns: 1fr !important;
    }

    body.page-id-65 .hb-tenant-dashboard-shell .hb-dash-sidebar {
        display: none !important;
    }

    body.page-id-65 .hb-tenant-dashboard-shell .hb-dash-content {
        padding: 16px 14px 24px !important;
    }
}

/* Keep form controls and buttons on design typography across themes/browsers */
button,
input,
select,
textarea {
    font-family: var(--font-sans);
}

.hb-btn,
.hb-btn-v4,
.hb-login-card button,
.hb-login-card input,
.hb-maint-input,
.hb-dash-search input {
    font-family: var(--font-sans) !important;
}

/* === TENANT DESKTOP FIRST PASS (REFERENCE-ALIGNED) === */
.hb-tenant-dashboard-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    background: #f5f7fb;
}
.hb-tenant-dashboard-shell .hb-dash-sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding-top: 18px;
}
.hb-tenant-dashboard-shell .hb-dash-sidebar-link {
    border-radius: 11px;
    font-size: 0.95rem;
    padding: 12px 14px;
}
.hb-tenant-dashboard-shell .hb-dash-main {
    min-width: 0;
}
.hb-tenant-dashboard-shell .hb-dash-topbar {
    padding: 14px 26px;
    background: #ffffff;
}
.hb-tenant-dashboard-shell .hb-dash-content {
    max-width: 100%;
    padding: 20px 26px 34px;
}
.hb-tenant-dashboard-shell .hb-dash-hero {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
    margin-bottom: 16px;
}
.hb-tenant-dashboard-shell .hb-dash-hero-text h1 {
    font-size: 3rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.hb-tenant-dashboard-shell .hb-dash-hero-text p {
    font-size: 1.06rem;
}
.hb-tenant-dashboard-shell .hb-tenant-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
}
.hb-tenant-dashboard-shell .hb-tenant-side {
    position: sticky;
    top: 84px;
}
.hb-tenant-dashboard-shell .hb-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}
.hb-tenant-dashboard-shell .hb-user-meta strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}
.hb-tenant-dashboard-shell .hb-user-meta em {
    font-style: normal;
    font-size: 0.76rem;
    color: #059669;
    font-weight: 600;
}
.hb-tenant-dashboard-shell .hb-maint-card-v4 {
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}
.hb-tenant-dashboard-shell .hb-maint-card-v4 h3 {
    margin-bottom: 12px;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
}
.hb-tenant-dashboard-shell .hb-maint-input {
    min-height: 44px;
}
.hb-tenant-dashboard-shell .hb-maint-input-hidden {
    display: none;
}
.hb-tenant-dashboard-shell .hb-req-type-grid {
    gap: 10px;
}
.hb-tenant-dashboard-shell .hb-req-type-option {
    min-height: 78px;
}
.hb-tenant-dashboard-shell .hb-upload-dropzone {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}
.hb-tenant-dashboard-shell .hb-upload-dropzone-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.hb-tenant-dashboard-shell .hb-upload-dropzone-copy p {
    margin: 0;
    font-size: 0.86rem;
    color: #334155;
}
.hb-tenant-dashboard-shell .hb-upload-dropzone-copy svg {
    width: 18px;
    height: 18px;
    color: #64748b;
}
.hb-tenant-dashboard-shell .hb-upload-thumbs {
    margin-top: 0;
    flex-wrap: nowrap;
}
.hb-tenant-dashboard-shell .hb-upload-thumb-placeholder {
    background: linear-gradient(135deg, #dbe5ef, #cbd5e1);
}
.hb-tenant-dashboard-shell .hb-btn-v4 {
    min-height: 44px;
}

@media (max-width: 1240px) {
    .hb-tenant-dashboard-shell .hb-dash-hero,
    .hb-tenant-dashboard-shell .hb-tenant-grid {
        grid-template-columns: minmax(0, 1fr) 310px;
    }
    .hb-tenant-dashboard-shell .hb-dash-hero-text h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 1024px) {
    .hb-tenant-dashboard-shell {
        grid-template-columns: 1fr;
    }
    .hb-tenant-dashboard-shell .hb-dash-sidebar {
        position: static;
        height: auto;
    }
    .hb-tenant-dashboard-shell .hb-dash-hero,
    .hb-tenant-dashboard-shell .hb-tenant-grid {
        grid-template-columns: 1fr;
    }
    .hb-tenant-dashboard-shell .hb-tenant-side {
        position: static;
    }
}

@media (max-width: 640px) {
    .hb-dashboard-root,
    .hb-tenant-dashboard-shell {
        overflow-x: hidden;
    }
    .hb-tenant-dashboard-shell .hb-dash-topbar {
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
    }
    .hb-tenant-dashboard-shell .hb-dash-tabs {
        width: 100%;
        min-width: 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .hb-tenant-dashboard-shell .hb-dash-tabs::-webkit-scrollbar {
        display: none;
    }
    .hb-tenant-dashboard-shell .hb-dash-tab {
        flex: 0 0 auto;
        margin-right: 14px;
        font-size: 0.92rem;
    }
    .hb-tenant-dashboard-shell .hb-dash-topbar-right {
        width: 100%;
        min-width: 0;
        justify-content: space-between;
        gap: 8px;
    }
    .hb-tenant-dashboard-shell .hb-dash-search {
        min-width: 0;
        flex: 1 1 auto;
        max-width: none;
    }
    .hb-tenant-dashboard-shell .hb-topnav-user-wrapper {
        flex: 0 1 auto;
        max-width: 44%;
        min-width: 0;
    }
    .hb-tenant-dashboard-shell .hb-topnav-user-btn {
        max-width: 100%;
        min-width: 0;
        gap: 6px;
        padding: 4px 8px;
    }
    .hb-tenant-dashboard-shell .hb-topnav-avatar {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        font-size: 0.8rem;
    }
    .hb-tenant-dashboard-shell .hb-user-meta {
        min-width: 0;
        overflow: hidden;
    }
    .hb-tenant-dashboard-shell .hb-user-meta strong {
        max-width: 82px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .hb-tenant-dashboard-shell .hb-user-meta em {
        display: none;
    }
    .hb-tenant-dashboard-shell .hb-topnav-dropdown {
        right: 0;
        max-width: calc(100vw - 24px);
    }
    .hb-tenant-dashboard-shell .hb-dash-content {
        padding: 16px 12px 28px;
    }
    .hb-tenant-dashboard-shell .hb-dash-hero-text h1 {
        font-size: 2rem;
        line-height: 1.08;
    }
    .hb-tenant-dashboard-shell .hb-upload-dropzone {
        align-items: flex-start;
        flex-direction: column;
    }
}

