/* --- Customers Page Layout Improvements --- */
.rental-add-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    align-items: flex-end;
    margin-bottom: 0.8rem;
}
.rental-add-row .form-group {
    min-width: 120px;
    max-width: 180px;
    flex: 1 1 150px;
}
.rental-add-btn-group {
    min-width: 140px;
    max-width: 180px;
    flex: 0 0 160px;
    display: flex;
    align-items: flex-end;
}
.rental-date-group input[type="date"],
.expiring-date-group input[type="date"] {
    width: 140px;
    min-width: 100px;
    max-width: 150px;
}
.expiring-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    align-items: flex-end;
    margin-bottom: 0.8rem;
}
.expiring-row .form-group {
    min-width: 120px;
    max-width: 180px;
    flex: 1 1 150px;
}
.expiring-checkbox-group {
    min-width: 220px;
    max-width: 320px;
    flex: 1 1 220px;
    display: flex;
    align-items: flex-end;
}
/* --- End Customers Page Layout Improvements --- */
/* Modal popup styles */
.modal-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(2px);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-popup-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    min-width: min(92vw, 360px);
    max-width: 96vw;
    text-align: center;
}
.modal-popup-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}
.modal-popup-note {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}
.modal-popup-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.7rem;
    justify-content: center;
}
.bl-modal-action-btn.is-disabled,
.bl-modal-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.bl-ai-busy-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    z-index: 5;
    color: #f8fafc;
    font-weight: 600;
    border-radius: 16px;
}
.bl-ai-busy-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid rgba(248, 250, 252, 0.35);
    border-top-color: #38bdf8;
    animation: bl-spin 0.9s linear infinite;
}
.bl-ai-busy-text {
    font-size: 0.95rem;
}
.ai-sparkles-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 0.45rem;
}
.ai-sparkles-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}
@keyframes bl-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.upsell-modal-card {
    text-align: left;
    max-width: min(94vw, 560px);
}

@keyframes upsell-feature-reveal {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.upsell-feature-list {
    list-style: none;
    padding: 0;
    margin: 0.7rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.upsell-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: color-mix(in srgb, var(--emerald) 8%, var(--card-bg));
    border: 1px solid color-mix(in srgb, var(--emerald) 35%, var(--border));
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-size: 0.92rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease;
    transform-origin: center;
}

.modal-popup:not(.hidden-block) .upsell-feature-list li {
    animation: upsell-feature-reveal 220ms ease both;
}

.modal-popup:not(.hidden-block) .upsell-feature-list li:nth-child(2) {
    animation-delay: 30ms;
}

.modal-popup:not(.hidden-block) .upsell-feature-list li:nth-child(3) {
    animation-delay: 60ms;
}

.modal-popup:not(.hidden-block) .upsell-feature-list li:nth-child(4) {
    animation-delay: 90ms;
}

.modal-popup:not(.hidden-block) .upsell-feature-list li:nth-child(5) {
    animation-delay: 120ms;
}

.modal-popup:not(.hidden-block) .upsell-feature-list li:nth-child(n+6) {
    animation-delay: 150ms;
}

.upsell-feature-list li:hover,
.upsell-feature-list li:focus-within {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--emerald) 12%, var(--card-bg));
    border-color: color-mix(in srgb, var(--emerald) 52%, var(--border));
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.upsell-feature-list li:hover::before,
.upsell-feature-list li:focus-within::before {
    transform: scale(1.08);
}

.upsell-feature-list li::before {
    content: '+';
    color: var(--emerald);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.05rem;
    transition: transform 140ms ease;
}
.upsell-feature-empty {
    opacity: 0.8;
    font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
    .modal-popup:not(.hidden-block) .upsell-feature-list li {
        animation: none;
    }

    .upsell-feature-list li,
    .upsell-feature-list li::before {
        transition: none;
    }
}

.upsell-modal-card.is-details-only .modal-popup-actions {
    justify-content: flex-end;
}
.account-mfa-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
.mfa-setup-grid {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr);
    gap: 1rem;
    align-items: center;
    margin: 0.8rem 0 0.4rem;
}
.mfa-qr-card {
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: color-mix(in srgb, var(--card-bg) 92%, #10b981 8%);
}
.mfa-qr-image {
    max-width: 180px;
    width: 100%;
    height: auto;
}
.mfa-secret-panel code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: color-mix(in srgb, var(--card-bg) 84%, #10b981 16%);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
}
.mfa-secret-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.mfa-status-disabled {
    color: var(--danger);
}
@media (max-width: 760px) {
    .mfa-setup-grid {
        grid-template-columns: 1fr;
    }
    .account-mfa-grid {
        align-items: flex-start;
    }
}
.pricing-grid input[type="radio"][disabled] + .pricing-card {
    opacity: 1;
    cursor: not-allowed;
    pointer-events: none;
    border: 2px solid #22d3ee;
    box-shadow: 0 0 0 2px #22d3ee33;
}
.pricing-grid .pricing-card.selected {
    border: 2px solid #22d3ee;
    box-shadow: 0 0 0 2px #22d3ee33;
}
:root {
    --primary: #1e293b;
    --emerald: #10b981;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --property-card-active: #10b981;
    --register-btn-bg: #10b981;
    --register-btn-text: #ffffff;
    --register-btn-bg-hover: #059669;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --border: #e2e8f0;
    --container-max-width: 1180px;
    --nav-container-max-width: 1400px;
    --container-pad: 2rem;
    --section-pad: 1.2rem;
    --form-gap: 0.8rem;
    --input-pad-y: 0.8rem;
    --input-pad-x: 0.8rem;
    --btn-pad-y: 0.8rem;
    --btn-pad-x: 1.5rem;
    --logo-font-size: 1.52rem;
    --logo-small-font-size: 0.72rem;
    --logo-optical-shift-y: 1px;
    --logo-subtitle-shift-y: -2px;
    --sale-highlight-border: #f59e0b;
    --sale-highlight-bg: color-mix(in srgb, #f59e0b 16%, var(--bg));
    --sale-highlight-text: color-mix(in srgb, #b45309 78%, var(--text));
    /* Table typography — edit these vars to adjust all table text site-wide */
    --table-font-size: 0.82rem;
    --table-font-family: inherit;
    --table-font-style: normal;
    /* ── Floating action buttons (Parker AI + mobile submenu toggle) ─────────
       Edit these two values to resize BOTH buttons together in one place.    */
    --floating-btn-h: 50px;
    --floating-btn-min-w: 148px;
    /* ── Desktop sidebar width ───────────────────────────────────────────── */
    --desktop-sidebar-w: 260px;
    /* Date / time picker theming */
    --input-color-scheme: light;
    --date-picker-indicator-filter: none;
}

*, *::before, *::after { box-sizing: border-box; }

.dark-mode {
    --bg: #0f172a;
    --card-bg: #1e293b;
    --text: #f1f5f9;
    --border: #334155;
    --input-color-scheme: dark;
    --date-picker-indicator-filter: invert(1);
}

/* ── Color Themes ─────────────────────────────────────────────────────────── */
body[data-color-theme="midnight-blue"] {
    --bg: #060d1c;
    --card-bg: #0d1829;
    --text: #e4d5a8;
    --border: #1e3054;
    --primary: #0d1829;
    --emerald: #c9a130;
    --danger: #e05050;
    --danger-hover: #b83030;
    --property-card-active: #c9a130;
    --register-btn-bg: #c9a130;
    --register-btn-text: #060d1c;
    --register-btn-bg-hover: #a88020;
    --sale-highlight-border: #c9a130;
    --sale-highlight-bg: color-mix(in srgb, #c9a130 18%, #060d1c);
    --sale-highlight-text: #e4d5a8;
    --input-color-scheme: dark;
    --date-picker-indicator-filter: invert(1);
}
body[data-color-theme="terracotta"] {
    --bg: #fdf5ec;
    --card-bg: #fff9f4;
    --text: #3d2214;
    --border: #e4c8a8;
    --primary: #3d2214;
    --emerald: #c45b1e;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --property-card-active: #c45b1e;
    --register-btn-bg: #c45b1e;
    --register-btn-text: #ffffff;
    --register-btn-bg-hover: #a04818;
    --sale-highlight-border: #c45b1e;
    --sale-highlight-bg: color-mix(in srgb, #c45b1e 14%, #fdf5ec);
    --sale-highlight-text: color-mix(in srgb, #8b3210 78%, #3d2214);
}
body[data-color-theme="neon-cyberpunk"] {
    --bg: #0a0a0a;
    --card-bg: #111118;
    --text: #e8e8f0;
    --border: #2a2a3a;
    --primary: #111118;
    --emerald: #00e5b0;
    --danger: #ff2244;
    --danger-hover: #cc1133;
    --property-card-active: #00e5b0;
    --register-btn-bg: #00e5b0;
    --register-btn-text: #0a0a0a;
    --register-btn-bg-hover: #00b890;
    --sale-highlight-border: #ff0088;
    --sale-highlight-bg: color-mix(in srgb, #ff0088 14%, #0a0a0a);
    --sale-highlight-text: #ff88cc;
    --input-color-scheme: dark;
    --date-picker-indicator-filter: invert(1);
}
body[data-color-theme="coral"] {
    --bg: #fdf3ef;
    --card-bg: #fff6f3;
    --text: #2c1810;
    --border: #f0c8bc;
    --primary: #2c1810;
    --emerald: #e05540;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --property-card-active: #e05540;
    --register-btn-bg: #e05540;
    --register-btn-text: #ffffff;
    --register-btn-bg-hover: #b83e2c;
    --sale-highlight-border: #e05540;
    --sale-highlight-bg: color-mix(in srgb, #e05540 14%, #fdf3ef);
    --sale-highlight-text: color-mix(in srgb, #801820 78%, #2c1810);
}
body[data-color-theme="heatwave"] {
    --bg: #130800;
    --card-bg: #1e0c00;
    --text: #f4d080;
    --border: #3a1800;
    --primary: #1e0c00;
    --emerald: #ff6600;
    --danger: #ff2020;
    --danger-hover: #cc1010;
    --property-card-active: #ff6600;
    --register-btn-bg: #ff6600;
    --register-btn-text: #130800;
    --register-btn-bg-hover: #cc4500;
    --sale-highlight-border: #ff9900;
    --sale-highlight-bg: color-mix(in srgb, #ff9900 16%, #130800);
    --sale-highlight-text: #f4d080;
    --input-color-scheme: dark;
    --date-picker-indicator-filter: invert(1);
}
body[data-color-theme="ruby"] {
    --bg: #140010;
    --card-bg: #1e0018;
    --text: #f8c0d0;
    --border: #3e0030;
    --primary: #1e0018;
    --emerald: #dd0040;
    --danger: #ff2244;
    --danger-hover: #cc1133;
    --property-card-active: #dd0040;
    --register-btn-bg: #dd0040;
    --register-btn-text: #ffffff;
    --register-btn-bg-hover: #aa002e;
    --sale-highlight-border: #dd0040;
    --sale-highlight-bg: color-mix(in srgb, #dd0040 14%, #140010);
    --sale-highlight-text: #f8c0d0;
    --input-color-scheme: dark;
    --date-picker-indicator-filter: invert(1);
}
body[data-color-theme="sage"] {
    --bg: #f2f7f4;
    --card-bg: #f9fcfa;
    --text: #1a2e23;
    --border: #c4d8cc;
    --primary: #1a2e23;
    --emerald: #3a7d55;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --property-card-active: #3a7d55;
    --register-btn-bg: #3a7d55;
    --register-btn-text: #ffffff;
    --register-btn-bg-hover: #2d6040;
    --sale-highlight-border: #3a7d55;
    --sale-highlight-bg: color-mix(in srgb, #3a7d55 14%, #f2f7f4);
    --sale-highlight-text: color-mix(in srgb, #1a4030 78%, #1a2e23);
}
body[data-color-theme="copper"] {
    --bg: #fdf7f0;
    --card-bg: #fff9f3;
    --text: #2a1808;
    --border: #e4c4a0;
    --primary: #2a1808;
    --emerald: #b87030;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --property-card-active: #b87030;
    --register-btn-bg: #b87030;
    --register-btn-text: #ffffff;
    --register-btn-bg-hover: #905820;
    --sale-highlight-border: #b87030;
    --sale-highlight-bg: color-mix(in srgb, #b87030 14%, #fdf7f0);
    --sale-highlight-text: color-mix(in srgb, #7a4010 78%, #2a1808);
}
body[data-color-theme="rustic"] {
    --bg: #f6ede0;
    --card-bg: #fbf4ea;
    --text: #2e1e0c;
    --border: #d4b494;
    --primary: #2e1e0c;
    --emerald: #8b5e30;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --property-card-active: #8b5e30;
    --register-btn-bg: #8b5e30;
    --register-btn-text: #ffffff;
    --register-btn-bg-hover: #6d4820;
    --sale-highlight-border: #8b5e30;
    --sale-highlight-bg: color-mix(in srgb, #8b5e30 14%, #f6ede0);
    --sale-highlight-text: color-mix(in srgb, #5a3010 78%, #2e1e0c);
}

/* ── Theme Picker Modal ───────────────────────────────────────────────────── */
.color-theme-modal-content {
    max-width: 640px;
    width: 100%;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    max-height: calc(100vh - 4rem);
    overflow: hidden;
}
.color-theme-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
}
.color-theme-modal-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0;
}
.color-theme-close-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--text);
    flex-shrink: 0;
}
.color-theme-close-btn:hover { background: var(--border); }
.color-theme-list {
    overflow-y: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding-right: 0.2rem;
}
.color-theme-row {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    cursor: pointer;
    display: grid;
    gap: 0.35rem;
    transition: border-color 0.18s ease;
    user-select: none;
}
.color-theme-row:hover { border-color: var(--emerald); }
.color-theme-row.selected {
    border-color: var(--emerald);
    background: color-mix(in srgb, var(--emerald) 8%, var(--bg));
}
.color-theme-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}
.color-theme-swatches {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
}
.color-theme-swatch {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: inline-block;
}
.color-theme-desc {
    font-size: 0.82rem;
    color: var(--text);
    opacity: 0.65;
    line-height: 1.4;
    margin: 0;
}

body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--text); transition: 0.3s; line-height: 1.45; }
.container { max-width: var(--container-max-width); margin: 0 auto; padding: var(--container-pad); }

.navbar { background: var(--card-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: var(--nav-container-max-width); margin: 0 auto; padding: 0.54rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: nowrap; }

@media (min-width: 1200px) {
    :root {
        --container-max-width: 1770px;
        --nav-container-max-width: 2100px;
    }
}
.logo {
    font-weight: 900;
    font-size: var(--logo-font-size);
    display: flex;
    align-items: center;
    align-self: center;
    line-height: 1;
    gap: 8px;
    position: relative;
    transform: translateY(var(--logo-optical-shift-y));
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo h1 {
    margin: 0;
    font-size: inherit;
    line-height: 1;
}
.logo span {
    font-weight: 900;
}
.logo-text {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}
.logo .brand-name {
    display: inline-flex;
    align-items: center;
    font-weight: 900;
    letter-spacing: 0.012em;
    line-height: 1;
    color: var(--emerald);
}
.logo small {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    font-size: var(--logo-small-font-size);
    font-weight: 600;
    line-height: 1;
    margin-top: 0;
    transform: translateY(var(--logo-subtitle-shift-y));
    opacity: 0.75;
    color: var(--text);
    background: none;
    -webkit-text-fill-color: var(--text);
}
.logo-icon {
    height: clamp(20px, 1.4em, 28px);
    width: auto;
    flex-shrink: 0;
    margin-right: 0.25rem;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
.nav-links { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; min-width: 0; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 600; padding: 0.35rem 0.5rem; border-radius: 6px; white-space: nowrap; }
.billing-table td a[href^="mailto:"],
.billing-table td a[href^="tel:"],
.active-label a[href^="mailto:"],
.active-label a[href^="tel:"],
.support-section a[href^="mailto:"],
.support-section a[href^="tel:"],
.customer-rental-topbar a[href^="mailto:"],
.customer-rental-topbar a[href^="tel:"],
.ai-chat-bubble a[href^="mailto:"],
.ai-chat-bubble a[href^="tel:"] {
    color: color-mix(in srgb, var(--emerald) 72%, var(--text));
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.billing-table td a[href^="mailto:"]:hover,
.billing-table td a[href^="tel:"]:hover,
.active-label a[href^="mailto:"]:hover,
.active-label a[href^="tel:"]:hover,
.support-section a[href^="mailto:"]:hover,
.support-section a[href^="tel:"]:hover,
.customer-rental-topbar a[href^="mailto:"]:hover,
.customer-rental-topbar a[href^="tel:"]:hover,
.ai-chat-bubble a[href^="mailto:"]:hover,
.ai-chat-bubble a[href^="tel:"]:hover,
.billing-table td a[href^="mailto:"]:focus-visible,
.billing-table td a[href^="tel:"]:focus-visible,
.active-label a[href^="mailto:"]:focus-visible,
.active-label a[href^="tel:"]:focus-visible,
.support-section a[href^="mailto:"]:focus-visible,
.support-section a[href^="tel:"]:focus-visible,
.customer-rental-topbar a[href^="mailto:"]:focus-visible,
.customer-rental-topbar a[href^="tel:"]:focus-visible,
.ai-chat-bubble a[href^="mailto:"]:focus-visible,
.ai-chat-bubble a[href^="tel:"]:focus-visible {
    color: var(--emerald);
}

.dark-mode .billing-table td a[href^="mailto:"],
.dark-mode .billing-table td a[href^="tel:"],
.dark-mode .active-label a[href^="mailto:"],
.dark-mode .active-label a[href^="tel:"],
.dark-mode .support-section a[href^="mailto:"],
.dark-mode .support-section a[href^="tel:"],
.dark-mode .customer-rental-topbar a[href^="mailto:"],
.dark-mode .customer-rental-topbar a[href^="tel:"],
.dark-mode .ai-chat-bubble a[href^="mailto:"],
.dark-mode .ai-chat-bubble a[href^="tel:"] {
    color: color-mix(in srgb, var(--emerald) 84%, #ffffff);
}

/* Dark-mode: plain hyperlinks rendered in readable amber instead of browser-default blue */
.dark-mode a:not(.btn):not([class]) {
    color: #f59e0b;
}
.dark-mode a:not(.btn):not([class]):hover,
.dark-mode a:not(.btn):not([class]):focus-visible {
    color: #fbbf24;
}

.pwa-install-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--text) 18%, transparent);
}

.pwa-install-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.pwa-install-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pwa-install-copy strong {
    font-size: 0.98rem;
}

.pwa-install-copy span {
    font-size: 0.9rem;
    opacity: 0.86;
}

.pwa-install-actions {
    display: inline-flex;
    gap: 0.55rem;
}

body.product-page .pwa-install-banner {
    bottom: 4.5rem;
}

@media (max-width: 640px) {
    .pwa-install-banner {
        left: 0.65rem;
        right: 0.65rem;
        bottom: 0.65rem;
    }

    body.product-page .pwa-install-banner {
        bottom: 4rem;
    }
}

.nav-links a.has-notification-dot {
    position: relative;
    padding-right: 1.1rem;
}

.billing-alert-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--danger);
    border: 1px solid var(--card-bg);
    cursor: pointer;
}
.nav-links a:hover { background: var(--bg); }
.nav-links a.nav-link-active { background: var(--bg); border: 1px solid var(--border); }
.nav-links a[href="signup-start.html"] {
    background: var(--register-btn-bg);
    color: var(--register-btn-text);
    border: 1px solid transparent;
}
.nav-links a[href="signup-start.html"]:hover,
.nav-links a[href="signup-start.html"]:focus-visible,
.nav-links a[href="signup-start.html"].nav-link-active {
    background: var(--register-btn-bg-hover);
    color: var(--register-btn-text);
    border-color: transparent;
}
.nav-menu-toggle { display: none; align-items: center; gap: 0.35rem; }

.debug-company-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    margin-left: auto;
}

.debug-company-picker label {
    font-size: 0.68rem;
    opacity: 0.82;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.debug-company-picker select {
    padding: 0.34rem 0.45rem;
    font-size: 0.78rem;
    border-radius: 7px;
    min-width: 130px;
}

.hero { padding-top: 1.2rem; }
.hidden-block { display: none; }
.auth-card { max-width: 480px; margin: 2.5rem auto; }
.auth-link-row { margin-top: 0.8rem; }
.auth-link-forgot { text-align: right; margin-top: 0.25rem; margin-bottom: 0; font-size: 0.875rem; }
.auth-link-register { text-align: center; margin-top: 1rem; font-size: 0.9rem; }
.auth-form-actions { justify-content: stretch !important; }
.auth-form-actions .btn { flex: 1; }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; }
.stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.stat-card strong { display: block; font-size: 1.1rem; margin-top: 0.3rem; }

.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; }
.management-section { padding: var(--section-pad); margin-bottom: 1.4rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 0.8rem; }
.section-header > h2,
.section-header > h3 {
    min-width: 0;
    flex: 1 1 auto;
}
.section-actions { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; max-width: 100%; }
.export-icon-btn { min-width: 36px; padding: 0.35rem 0.55rem; }
.active-label {
    background: color-mix(in srgb, var(--emerald) 7%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--emerald) 35%, var(--border));
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    margin-top: 0.5rem;
    color: color-mix(in srgb, var(--emerald) 55%, var(--text));
    font-style: italic;
    font-size: 0.9rem;
}
/* Prevent italic cascading into rich child content */
.active-label > * { font-style: normal; }

.dark-mode .active-label {
    background: color-mix(in srgb, var(--emerald) 12%, var(--bg));
    border-color: color-mix(in srgb, var(--emerald) 40%, var(--border));
    color: color-mix(in srgb, var(--emerald) 65%, var(--text));
}

.action-required-callout {
    border-color: var(--sale-highlight-border);
    background: var(--sale-highlight-bg);
    color: var(--sale-highlight-text);
    font-weight: 700;
    font-style: normal;
}

.dark-mode .action-required-callout {
    --sale-highlight-bg: color-mix(in srgb, #f59e0b 24%, var(--bg));
    --sale-highlight-text: color-mix(in srgb, #fde68a 72%, var(--text));
}

.busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(2px);
    padding: 1rem;
}

.busy-overlay-card {
    min-width: min(92vw, 360px);
    max-width: min(92vw, 460px);
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card-bg);
    display: grid;
    gap: 0.45rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

.busy-overlay-title {
    font-size: 1rem;
    font-weight: 700;
}

.busy-overlay-note {
    font-size: 0.9rem;
    opacity: 0.85;
}

.scope-controls { max-width: 420px; }
.agent-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--form-gap); }
.form-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-group-wide { grid-column: 1 / -1; }
.form-group-inline {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.form-group-inline > label {
    margin: 0;
    min-width: 140px;
}
.form-group-inline .weekday-check-grid {
    flex: 1 1 320px;
}
.time-input-compact {
    width: 160px;
    max-width: 160px;
}

#enterprise-time-group {
    align-items: center;
    gap: 0.75rem;
}

#enterprise-time-group input[type="time"] {
    flex: 0 0 auto;
}
/* Address fields span full grid width but are capped for readability */
.form-group-address { grid-column: 1 / -1; max-width: 600px; }
.required-field-label::after {
    content: ' *';
    color: var(--danger);
    font-weight: 700;
}

input[required],
select[required],
textarea[required] {
    border-color: var(--danger);
}

input[required]:focus,
select[required]:focus,
textarea[required]:focus {
    outline-color: var(--danger);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 35%, transparent);
}
.property-form-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 0.8rem; }
.property-remove {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.password-rules { display: grid; gap: 4px; margin-top: 6px; font-size: 0.92rem; }
.password-rules label { display: flex; align-items: center; gap: 8px; }
.customer-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: calc(var(--form-gap) + 0.2rem) calc(var(--form-gap) + 0.3rem);
}
.customer-bays-select {
    min-height: 150px;
    padding: 0.55rem;
}
.customer-bays-select option {
    padding: 0.35rem 0.45rem;
}
.customer-form-actions {
    justify-content: flex-start;
    margin-top: 0.15rem;
}
.customer-rental-topbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
    margin-bottom: 0.8rem;
}

.support-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.support-content {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    padding: 1rem;
    min-width: 0;
}

.support-section {
    scroll-margin-top: 96px;
    margin-bottom: 1.1rem;
    overflow-wrap: anywhere;
}

@supports (top: env(safe-area-inset-top)) {
    .support-section {
        scroll-margin-top: calc(96px + env(safe-area-inset-top));
    }
}

.support-section:last-child {
    margin-bottom: 0;
}

.support-section h3 {
    margin-top: 0;
}

.support-ticket-char-count {
    margin-top: 0.3rem;
    font-size: 0.76rem;
    text-align: right;
}

.support-section p {
    margin-top: 0.25rem;
}

.parkm8-side-submenu {
    position: fixed;
    top: 96px;
    left: 0;
    z-index: 1090;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
}

@supports (top: env(safe-area-inset-top)) {
    .parkm8-side-submenu {
        top: calc(96px + env(safe-area-inset-top));
        left: env(safe-area-inset-left);
    }
}

.parkm8-side-submenu .submenu-toggle,
.parkm8-side-submenu .submenu-panel {
    pointer-events: auto;
}

.parkm8-side-submenu .submenu-toggle {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    margin-left: 0;
}

.parkm8-side-submenu .submenu-panel {
    width: min(320px, 78vw);
    max-height: calc(100vh - 140px);
    overflow: auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding: 0.65rem 0.75rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    transform-origin: left center;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

@supports (height: 100dvh) {
    .parkm8-side-submenu .submenu-panel {
        max-height: calc(100dvh - 140px);
    }
}

.parkm8-side-submenu .submenu-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.25rem;
}

.parkm8-side-submenu .submenu-links a {
    display: block;
    text-decoration: none;
    color: var(--text);
    -webkit-text-fill-color: currentColor;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.38rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
}

.parkm8-side-submenu .submenu-links a:hover,
.parkm8-side-submenu .submenu-links a:focus-visible {
    background: var(--bg);
    border-color: var(--border);
    color: var(--emerald);
    outline: none;
}

.parkm8-side-submenu.is-closed .submenu-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-105%);
}

.parkm8-side-submenu.is-open .submenu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* On desktop the sidebar replaces the floating submenu toggle */
@media (min-width: 981px) {
    .parkm8-side-submenu {
        display: none;
    }
}

/* ── Mobile: submenu button repositioned to bottom-right, matching Parker AI ── */
@media (max-width: 980px) {
    .parkm8-side-submenu {
        position: fixed;
        top: unset !important;   /* override the global @supports (top: env()) block on iOS */
        left: unset !important;  /* override the global @supports (left: env()) block on iOS */
        bottom: 16px;
        /* Sit to the left of the Parker AI button (same width + 8px gap + 16px margin) */
        right: calc(var(--floating-btn-min-w) + 8px + 16px);
        z-index: 1150;           /* below modals (z-index: 1200) so MFA / other modals work */
        pointer-events: auto;    /* iOS touch fix: parent must be auto when children need clicks */
        flex-direction: column;
        align-items: flex-end;
    }

    @supports (bottom: env(safe-area-inset-bottom)) {
        .parkm8-side-submenu {
            bottom: calc(16px + env(safe-area-inset-bottom));
        }
    }

    /* Panel pops up above the toggle button */
    .parkm8-side-submenu .submenu-panel {
        position: absolute;
        bottom: calc(var(--floating-btn-h) + 8px);
        right: 0;
        top: auto;
        left: auto;
        width: min(300px, calc(100vw - 32px));
        max-height: calc(100vh - 100px);
        border-radius: 12px;
        border: 1px solid var(--border);
        transform-origin: bottom right;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    @supports (height: 100dvh) {
        .parkm8-side-submenu .submenu-panel {
            max-height: calc(100dvh - 100px);
        }
    }

    /* Override slide-from-left animation with scale-up-from-below */
    .parkm8-side-submenu.is-closed .submenu-panel {
        transform: scale(0.88) translateY(8px);
        opacity: 0;
        visibility: hidden;
    }

    .parkm8-side-submenu.is-open .submenu-panel {
        transform: scale(1) translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Toggle button — pill shape matching Parker AI launcher */
    .parkm8-side-submenu .submenu-toggle {
        pointer-events: auto;
        height: var(--floating-btn-h);
        min-width: var(--floating-btn-min-w);
        border-radius: 999px;
        border: 1px solid var(--border);
        font-size: 0.92rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        padding: 0 18px;
        margin-left: 0;
        box-shadow: 0 10px 22px rgba(2, 6, 23, 0.26);
        background: var(--card-bg);
    }
}

/* ── Desktop floating sidebar ─────────────────────────────────────────────── */
.parkm8-desktop-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--desktop-sidebar-w);
    height: 100vh;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 110;
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

/* Safety: never render on mobile */
@media (max-width: 980px) {
    .parkm8-desktop-sidebar {
        display: none !important;
    }
}

.parkm8-sidebar-nav-section {
    padding: 0.65rem 0 0.4rem;
}

.parkm8-sidebar-nav-section + .parkm8-sidebar-nav-section {
    border-top: 1px solid var(--border);
    margin-top: 0.3rem;
}

.parkm8-sidebar-logout-section {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 0.4rem;
}

.parkm8-sidebar-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b;
    padding: 0 0.85rem 0.3rem;
    display: block;
}

.dark-mode .parkm8-sidebar-section-label {
    color: #94a3b8;
}

.parkm8-sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0 0.45rem;
    display: grid;
    gap: 2px;
}

.parkm8-sidebar-links a,
.parkm8-sidebar-links button {
    display: block;
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: var(--text);
    -webkit-text-fill-color: currentColor;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: none;
    cursor: pointer;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.parkm8-sidebar-links a:hover,
.parkm8-sidebar-links a:focus-visible,
.parkm8-sidebar-links button:hover,
.parkm8-sidebar-links button:focus-visible {
    background: var(--bg);
    border-color: var(--border);
    color: var(--emerald);
    -webkit-text-fill-color: currentColor;
    outline: none;
}

.parkm8-sidebar-links a.sidebar-link-active {
    background: var(--bg);
    border-color: var(--border);
    color: var(--emerald);
    -webkit-text-fill-color: currentColor;
}

/* When desktop sidebar is active, shift body content and hide navbar nav-links */
@media (min-width: 981px) {
    body.has-desktop-sidebar {
        padding-left: var(--desktop-sidebar-w);
    }

    body.has-desktop-sidebar .navbar .nav-links {
        display: none;
    }

    body.has-desktop-sidebar .navbar .nav-menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Hide screenshot figures on mobile to reduce scrolling */
    .support-shot-card,
    .support-shot-grid,
    .support-shot-inline {
        display: none;
    }
}

.support-section ol,
.support-section ul {
    margin: 0.45rem 0 0.2rem;
    padding-left: 1.2rem;
}

.support-section li {
    margin-bottom: 0.35rem;
}

.support-shot-grid {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.support-shot-card {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    overflow: hidden;
}

.support-shot-inline {
    margin-top: 0.75rem;
}

.support-shot-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.support-shot-card img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    background: var(--card-bg);
    cursor: zoom-in;
}

.support-shot-card figcaption {
    padding: 0.6rem 0.7rem;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.support-image-modal-content {
    width: min(96vw, 980px);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    display: grid;
    gap: 0.7rem;
}

#support-image-full {
    width: 100%;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
}

.support-image-close {
    justify-self: end;
}

.rental-add-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.7rem;
    align-items: end;
    margin-bottom: 0.8rem;
}

#customers-crud-table .btn-small,
#customer-rentals-table .btn-small {
    margin-right: 0.35rem;
    margin-bottom: 0.25rem;
}

#customers-crud-table td:last-child,
#customer-rentals-table td:last-child {
    min-width: 160px;
}
.rental-ranges-grid {
    display: grid;
    gap: 0.7rem;
}
.rental-preset-row {
    display: grid;
    grid-template-columns: minmax(180px, 250px) auto;
    gap: 0.6rem;
    align-items: end;
    margin-bottom: 0.45rem;
}
.rental-range-row {
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 10px;
    padding: 0.7rem;
    display: grid;
    gap: 0.55rem;
}
.rental-range-title {
    font-weight: 600;
}
.rental-range-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.65rem;
}
.rental-range-fields label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.92rem;
}
.image-manage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.image-manage-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--bg); display: grid; gap: 10px; }
.image-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.btn-small { padding: 0.45rem 0.65rem; font-size: 0.82rem; }
.file-replace-label { display: inline-flex; align-items: center; justify-content: center; }
.replace-file-input { display: none; }

.image-viewer-modal { display: none; position: fixed; z-index: 1300; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.4); }
.image-viewer-modal.show { display: flex; align-items: center; justify-content: center; }
.image-viewer-content { background-color: var(--bg); padding: 20px; border-radius: 10px; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
.image-viewer-content img { max-width: 100%; max-height: 70vh; border-radius: 8px; }
.image-viewer-actions { display: flex; gap: 10px; }
.image-manage-card .bay-thumb { cursor: pointer; transition: opacity 0.2s; }
.image-manage-card .bay-thumb:hover { opacity: 0.8; }

.email-bay-form {
    display: grid;
    gap: 0.8rem;
}

.recipient-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.recipient-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.gradient-text { background: linear-gradient(135deg, #10b981, #3b82f6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Dashboard Property Cards */
.property-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.prop-card { 
    background: var(--card-bg); padding: 2rem 1.5rem 1.5rem; border-radius: 16px; 
    border: 1px solid var(--border); cursor: pointer; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative;
}
.prop-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--emerald); }
.prop-card.is-active {
    border-color: var(--property-card-active);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--property-card-active) 45%, transparent);
}
.add-property-card {
    cursor: default;
    align-content: start;
    display: grid;
    gap: 0.7rem;
}
.add-property-card:hover {
    transform: none;
}
.add-property-card .form-group {
    gap: 0.45rem;
}
.property-empty-note {
    grid-column: 1 / -1;
}

.property-card-actions {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.property-action-btn {
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.95rem;
}

.archive-header-row {
    margin-top: 0.9rem;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.7rem;
}

.archive-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    padding: 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.bay-filters {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.7rem;
}

.bay-filters-panel {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    overflow: hidden;
}

.bay-filters-panel-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.bay-filters-panel-summary::-webkit-details-marker {
    display: none;
}

.bay-filters-panel-summary::before {
    content: '\25BC';
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.2s;
    display: inline-block;
}

details.bay-filters-panel:not([open]) .bay-filters-panel-summary::before {
    transform: rotate(-90deg);
}

.bay-filters-panel-body {
    padding: 0 0.9rem 0.9rem;
    display: grid;
    gap: 0.7rem;
}

.bay-filter-inverse-row {
    flex-direction: column;
    gap: 0.35rem;
}

.bay-filter-inverse-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.bay-filter-inverse-hint {
    font-size: 0.8rem;
    padding-left: 0.1rem;
}

.bay-filter-search {
    margin: 0;
}

.bay-filter-search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: end;
}

#bay-clear-filters-btn {
    white-space: nowrap;
}

.bay-filter-features {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    padding: 0.7rem;
    display: grid;
    gap: 0.55rem;
}

.bay-filter-title {
    font-size: 0.88rem;
    font-weight: 600;
}

.bay-view-mode {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    padding: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bay-view-mode.hidden-block {
    display: none;
}

.bay-view-mode-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bay-view-mode-actions .is-active {
    border-color: var(--emerald);
    color: var(--emerald);
}

.bay-bulk-edit {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    padding: 0.85rem;
    display: grid;
    gap: 0.8rem;
}

.bay-bulk-edit.hidden-block {
    display: none;
}

.bay-bulk-edit-form {
    display: grid;
    gap: 0.7rem;
}

.bay-bulk-edit-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

#bay-bulk-edit-table th,
#bay-bulk-edit-table td {
    white-space: nowrap;
}

.bay-filter-checkbox-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.bay-filter-status-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.1rem;
    align-items: center;
}

.bay-filter-status-radios label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Bay Grid */
.bay-display-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.bay-card { 
    background: var(--card-bg); border: 1px solid var(--border); 
    padding: 1.2rem; border-radius: 12px; position: relative;
    animation: slideUp 0.4s ease forwards;
    display: grid;
    gap: 0.55rem;
    grid-template-rows: auto minmax(2.6rem, auto) auto minmax(2rem, auto) minmax(2.9rem, auto);
    align-content: start;
    min-height: 250px;
    overflow: visible;
    z-index: 1;
}
.bay-card.has-open-tooltip {
    z-index: 30;
}

.bay-card:hover,
.bay-card:focus-within {
    z-index: 20;
}
.bay-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.7rem;
}
.bay-title {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.25;
    min-height: 2.6rem;
    display: flex;
    align-items: flex-start;
}

.bay-title i {
    display: inline;
}
.bay-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.bay-icon-btn {
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-size: 0.92rem;
    line-height: 1;
    padding: 0;
}
.bay-icon-btn:hover,
.bay-icon-btn:focus-visible {
    border-color: var(--emerald);
}
.bay-price { font-size: 1.2rem; font-weight: 700; color: var(--emerald); margin: 0.2rem 0 0.1rem; min-height: 2rem; display: flex; align-items: center; }
.feature-icons { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px; margin-top: 0.1rem; min-height: 2.9rem; }
.feature-tag { font-size: 10px; background: var(--bg); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border); }
.bay-status-indicator {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    padding: 0.26rem 0.62rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    justify-self: start;
    position: relative;
    align-self: end;
}
.bay-status-indicator.has-tooltip {
    cursor: help;
}
.bay-status-indicator.status-available {
    border-color: var(--emerald);
}
.bay-status-indicator.status-booked {
    border-style: dashed;
}
.bay-status-indicator.status-occupied {
    border-style: solid;
}
.status-tooltip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    min-width: 260px;
    max-width: 320px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.45rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    display: none;
    z-index: 20;
}
.bay-status-indicator.has-tooltip:hover .status-tooltip,
.bay-status-indicator.has-tooltip:focus-visible .status-tooltip {
    display: block;
}
.bay-status-indicator.has-tooltip.tooltip-open .status-tooltip {
    display: block;
}
.status-tooltip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: normal;
}
.status-tooltip-table th,
.status-tooltip-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.25rem 0.3rem;
    text-align: left;
    white-space: nowrap;
}
.status-tooltip-table tr:last-child td {
    border-bottom: none;
}

/* Modal */
.modal { display: none; position: fixed; inset: 0; overflow-y: auto; padding: 1.5rem; background: rgba(15,23,42,0.38); backdrop-filter: blur(2px); z-index: 1200; }
.modal-content { width: min(760px, 100%); margin: 2rem auto; padding: clamp(1.25rem, 2vw + 0.8rem, 2rem); background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,0.12); }
#bay-form { display: grid; gap: 1rem; }
.features-selection { display: grid; gap: 0.65rem; }
.features-selection > label { font-weight: 600; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.65rem 1rem; }
.checkbox-grid label { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.6rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.checkbox-grid input[type="checkbox"] { margin: 0; }
.dimension-inputs { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.dimension-label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); flex: 1; min-width: 80px; }
.dimension-label input { margin-top: 0.1rem; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.35rem; }
.modal-actions .btn { min-width: 120px; }

/* ── Tier Feature Comparison Modal ─────────────────────────────────────── */
.section-header .tier-compare-btn {
    margin-left: auto;
}
.tier-compare-modal-content {
    width: min(1100px, 100%);
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.tier-compare-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.6rem;
}
.tier-compare-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}
.tier-compare-brand {
    display: inline-block;
    margin-right: 0.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.tier-compare-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    opacity: 0.75;
}
.tier-compare-body {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.tier-compare-table-wrap {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}
.tier-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    min-width: 440px;
    table-layout: fixed;
}
.tier-compare-table th,
.tier-compare-table td {
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    vertical-align: middle;
    transition: background 120ms ease;
}
.tier-compare-table th:last-child,
.tier-compare-table td:last-child {
    border-right: none;
}
.tier-compare-table th:first-child,
.tier-compare-table td:first-child {
    text-align: left;
    width: 46%;
}
.tier-compare-table th:not(:first-child),
.tier-compare-table td:not(:first-child) {
    width: 13.5%;
}

@media (max-width: 720px) {
    .tier-compare-table-wrap {
        border-radius: 10px;
    }
    .tier-compare-table {
        min-width: 360px;
        font-size: 0.8rem;
    }
    .tier-compare-table th,
    .tier-compare-table td {
        padding: 0.5rem 0.55rem;
    }
    .tier-compare-table th:first-child,
    .tier-compare-table td:first-child {
        width: 52%;
    }
    .tier-compare-table th:not(:first-child),
    .tier-compare-table td:not(:first-child) {
        width: 12%;
    }
}
.tier-compare-feature {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.tier-compare-feature-desc {
    font-size: 0.82rem;
    opacity: 0.7;
}
.tier-compare-disabled {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--danger) 12%, var(--card-bg));
    color: var(--danger);
}
.tier-compare-yes {
    color: var(--emerald);
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}
.tier-compare-no {
    color: color-mix(in srgb, var(--text) 45%, var(--border));
    text-align: center;
    vertical-align: middle;
}
.tier-compare-table .is-highlight-row td {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.tier-compare-table th.is-highlight-cell,
.tier-compare-table td.is-highlight-cell {
    background: color-mix(in srgb, var(--primary) 14%, transparent);
}
.tier-compare-loading,
.tier-compare-error {
    font-size: 0.9rem;
    opacity: 0.75;
}

.parkm8-dialog {
    border: none;
    padding: 0;
    background: transparent;
    max-width: min(520px, calc(100vw - 2rem));
    width: 100%;
}

#parkm8-calendar-booking-edit-dialog[open] {
    position: fixed;
    inset: 0;
    margin: auto;
    z-index: 1400;
}

.parkm8-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.parkm8-dialog-card {
    margin: 0;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    display: grid;
    gap: 0.85rem;
}

.parkm8-dialog-title {
    margin: 0;
}

.parkm8-dialog-message {
    margin: 0;
    white-space: pre-line;
}

.parkm8-dialog-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.parkm8-dialog-actions .btn {
    min-width: 120px;
}

.quick-rent-modal-content {
    width: min(920px, 100%);
}

.quick-rent-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.8rem;
}

.quick-rent-actions {
    margin-top: 0.1rem;
}

.quick-rent-bookings-card {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.45rem;
}

.quick-rent-bookings-card h4 {
    margin: 0;
}

.quick-rent-bookings-wrap {
    max-height: 250px;
    overflow: auto;
}

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Form Elements */
input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="time"], input[type="date"], input[type="datetime-local"], select, textarea, input[type="file"] { width: 100%; padding: var(--input-pad-y) var(--input-pad-x); border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: inherit; color-scheme: var(--input-color-scheme); }
textarea { resize: vertical; }

/* ── Date / Time picker styles ─────────────────────────────────────────────── */
input[type="date"],
input[type="datetime-local"],
input[type="time"] {
    accent-color: var(--emerald);
    color-scheme: var(--input-color-scheme);
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: var(--date-picker-indicator-filter);
    cursor: pointer;
    border-radius: 3px;
    padding: 2px;
    opacity: 0.75;
    transition: opacity 0.15s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}
input[readonly] {
    background: color-mix(in srgb, var(--bg) 70%, var(--border));
    color: color-mix(in srgb, var(--text) 80%, var(--border));
    cursor: not-allowed;
}

.choices.parkm8-choices {
    margin-bottom: 0;
}

.choices.parkm8-choices .choices__inner {
    min-height: 0;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    padding: 0.38rem 2.1rem 0.38rem 0.65rem;
}

.choices.parkm8-choices .choices__input {
    background: transparent;
    color: var(--text);
}

.choices.parkm8-choices .choices__input--cloned {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.choices.parkm8-choices .choices__list--single {
    padding: 0;
}

.choices.parkm8-choices .choices__placeholder {
    opacity: 0.8;
}

.choices.parkm8-choices[data-type*="select-one"]::after {
    border-color: var(--text) transparent transparent;
}

.choices.parkm8-choices.is-open[data-type*="select-one"]::after {
    border-color: transparent transparent var(--text);
}

.choices.parkm8-choices .choices__list--dropdown,
.choices.parkm8-choices .choices__list[aria-expanded] {
    border-color: var(--border);
    background: var(--card-bg);
    color: var(--text);
}

.choices.parkm8-choices .choices__list--dropdown .choices__input,
.choices.parkm8-choices .choices__list[aria-expanded] .choices__input {
    background: var(--bg);
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.choices.parkm8-choices .choices__list--dropdown .choices__item,
.choices.parkm8-choices .choices__list[aria-expanded] .choices__item {
    color: var(--text);
}

.choices.parkm8-choices .choices__item--disabled {
    opacity: 0.7;
}

.choices.parkm8-choices .choices__item--choice.is-highlighted {
    background: var(--bg);
}
.btn { padding: var(--btn-pad-y) var(--btn-pad-x); border-radius: 8px; font-weight: 600; cursor: pointer; border: none; }
.btn-primary { background: var(--emerald); color: white; }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: #ffffff; }
.btn-danger:hover,
.btn-danger:focus-visible { background: var(--danger-hover); }

.property-remove,
button[data-remove-rental-index],
button[data-remove-image-id],
button[data-delete-customer-id] {
    color: var(--text);
}

#theme-toggle,
#density-toggle {
    white-space: nowrap;
}

.billing-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
    align-items: end;
    margin-bottom: 1rem;
}

.billing-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.billing-kpi-card {
    background: linear-gradient(145deg, var(--card-bg), var(--bg));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.billing-loss-callout {
    margin-bottom: 1rem;
    border: 1px solid color-mix(in srgb, var(--danger) 38%, var(--border));
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: color-mix(in srgb, var(--danger) 8%, var(--card-bg));
    display: grid;
    gap: 0.5rem;
}

.billing-loss-callout-title {
    font-size: 0.9rem;
    font-weight: 700;
}

.billing-loss-callout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.billing-loss-callout-row.is-negative {
    color: var(--danger);
    font-weight: 700;
}

.billing-loss-value {
    color: var(--danger);
    font-weight: 800;
}

.billing-loss-value.is-zero {
    color: var(--text);
    font-weight: 700;
}

.billing-kpi-label {
    font-size: 0.98rem;
    font-weight: 700;
    opacity: 0.84;
    margin-bottom: 0.45rem;
    width: 100%;
    text-align: center;
}

.billing-kpi-value {
    font-size: 1.45rem;
    line-height: 1.1;
    margin-top: auto;
    text-align: center;
}

.billing-kpi-trend-row {
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: 1.35rem;
    margin-top: 0.45rem;
}

.billing-kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.71rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.billing-kpi-trend.is-up {
    color: var(--emerald);
    background: color-mix(in srgb, var(--emerald) 14%, var(--card-bg));
    border-color: color-mix(in srgb, var(--emerald) 34%, var(--border));
}

.billing-kpi-trend.is-down {
    color: var(--danger);
    background: color-mix(in srgb, var(--danger) 13%, var(--card-bg));
    border-color: color-mix(in srgb, var(--danger) 32%, var(--border));
}

.billing-kpi-trend.is-flat {
    color: color-mix(in srgb, var(--text) 78%, var(--border));
    background: color-mix(in srgb, var(--text) 6%, var(--card-bg));
}

.billing-chart-card,
.billing-table-card {
    padding: 1rem;
    margin-bottom: 1rem;
}

#billing-financial-income-card {
    display: grid;
    gap: 0.7rem;
}

#billing-financial-income-card > .section-header {
    margin-bottom: 0.2rem;
}

#billing-financial-income-card #billing-income-trend-card,
#billing-financial-income-card #billing-monthly-forecast-card {
    margin-bottom: 0;
}

#billing-financial-income-card #billing-income-trend-card .section-header,
#billing-financial-income-card #billing-monthly-forecast-card .section-header {
    margin-bottom: 0.45rem;
}

.billing-graph {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(90px, 130px);
    gap: 0.3rem;
    align-items: end;
    min-height: 220px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.25rem;
}

.billing-bar-wrap {
    display: grid;
    gap: 0.55rem;
    justify-items: center;
}

.billing-bar {
    width: min(100%, 84px);
    background: #3b82f6;
    border-radius: 12px 12px 6px 6px;
    border: 1px solid var(--border);
}

.billing-bar.is-current {
    background: var(--emerald);
}

.billing-bar-value,
.billing-bar-label {
    font-size: 0.86rem;
    text-align: center;
}

/* === Global table typography — adjust via --table-font-* variables in :root === */
table th,
table td {
    font-size: var(--table-font-size);
    font-family: var(--table-font-family);
    font-style: var(--table-font-style);
}

.billing-table-wrap,
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.billing-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.billing-table th,
.billing-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0.45rem;
    text-align: left;
}

.billing-table th {
    opacity: 0.86;
}

#billing-month-table td {
    font-size: calc(var(--table-font-size) - 0.04rem);
}

/* Responsive forecast table: allow th word-wrap and remove enforced min-width */
#billing-month-table {
    min-width: 0;
}
#billing-month-table th {
    white-space: normal;
    min-width: 0;
}

/* Hide columns progressively on narrower screens (col order: Month|Rented|Empty|Total|%Occ|Lost|Income) */
@media (max-width: 640px) {
    #billing-month-table th:nth-child(6),
    #billing-month-table td:nth-child(6) { display: none; }
}
@media (max-width: 520px) {
    #billing-month-table th:nth-child(5),
    #billing-month-table td:nth-child(5) { display: none; }
}
@media (max-width: 420px) {
    #billing-month-table th:nth-child(3),
    #billing-month-table td:nth-child(3) { display: none; }
}
@media (max-width: 340px) {
    #billing-month-table th:nth-child(2),
    #billing-month-table td:nth-child(2) { display: none; }
}

/* Column alignment: center for count columns, right for numeric value columns */
#billing-month-table th:nth-child(2),
#billing-month-table td:nth-child(2),
#billing-month-table th:nth-child(3),
#billing-month-table td:nth-child(3),
#billing-month-table th:nth-child(4),
#billing-month-table td:nth-child(4) { text-align: center; }

#billing-month-table th:nth-child(5),
#billing-month-table td:nth-child(5),
#billing-month-table th:nth-child(6),
#billing-month-table td:nth-child(6),
#billing-month-table th:nth-child(7),
#billing-month-table td:nth-child(7) { text-align: right; }

.billing-current-month-row {
    background: color-mix(in srgb, var(--emerald) 12%, transparent);
    font-weight: 700;
}

/* T&C iframe modal */
.tc-modal-content {
    width: min(900px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.tc-modal-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.tc-modal-frame {
    flex: 1;
    width: 100%;
    border: none;
    min-height: 0;
    height: 80vh;
}

.marketing-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.8rem;
}

.marketing-feature-grid.product-capability-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

@media (max-width: 1100px) {
    .marketing-feature-grid.product-capability-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
    }
}
@media (max-width: 700px) {
    .marketing-feature-grid.product-capability-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.pricing-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    padding: 1rem;
    display: grid;
    gap: 0.55rem;
    grid-template-rows: auto auto minmax(3rem, auto) minmax(2rem, auto) auto;
    align-content: start;
    cursor: pointer;
    height: 100%;
}

.pricing-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--emerald);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.38rem;
}

.pricing-price small {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.pricing-price-old {
    color: var(--danger);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.pricing-price-discounted {
    color: var(--emerald);
}

.pricing-annual {
    font-size: 0.84rem;
    font-weight: 600;
    opacity: 0.86;
    min-height: 3rem;
}

.pricing-annual-save {
    display: block;
    color: var(--text);
}

.pricing-annual-discounted {
    color: var(--emerald);
    font-weight: 700;
}

.pricing-card p {
    margin: 0;
    min-height: 2rem;
}

.pricing-plan-description {
    min-height: 2.1rem;
}

.pricing-report-note {
    min-height: 2.1rem;
    font-size: 0.82rem;
    opacity: 0.86;
}

.pricing-highlight {
    border-color: var(--emerald);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--emerald) 45%, transparent);
}

.pricing-card .btn {
    margin-top: auto;
    justify-self: start;
}

.signup-tier-page .pricing-card {
    gap: 0.3rem;
    grid-template-rows: auto auto auto minmax(1.5rem, auto) auto;
}

.signup-tier-page .pricing-price {
    margin-bottom: 0;
}

.signup-tier-page .pricing-annual {
    min-height: auto;
}

.signup-tier-page .pricing-feature-btn {
    margin-top: 0.4rem;
}

.signup-tier-page .pricing-feature-btn + .pricing-feature-btn {
    margin-top: 0.2rem;
}

.subscription-tier-page .pricing-card {
    gap: 0.3rem;
    grid-template-rows: auto auto auto minmax(1.5rem, auto) auto auto;
}

.subscription-tier-page .pricing-price {
    margin-bottom: 0;
}

.subscription-tier-page .pricing-annual {
    min-height: auto;
}

.subscription-tier-page .pricing-feature-btn {
    margin-top: 0.4rem;
}

.subscription-tier-page .subscription-plan-note.hidden-block,
.subscription-tier-page .pricing-report-note.hidden-block {
    display: none;
}

.product-page .pricing-grid .pricing-card {
    display: flex;
    flex-direction: column;
}

.signup-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.35rem;
    margin-bottom: 0.9rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.signup-steps-title {
    margin: 0 0 0.4rem;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    opacity: 0.82;
}

.signup-breadcrumb span,
.signup-breadcrumb a,
.signup-breadcrumb .crumb {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    text-decoration: none;
    color: color-mix(in srgb, var(--text) 66%, transparent);
    background: var(--bg);
}

.signup-breadcrumb > *:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    color: color-mix(in srgb, var(--text) 52%, transparent);
    pointer-events: none;
}

.signup-breadcrumb .is-active,
.signup-breadcrumb .active {
    border-color: var(--emerald);
    background: color-mix(in srgb, var(--emerald) 14%, var(--card-bg));
    color: var(--text);
}

.signup-breadcrumb .is-complete {
    border-color: var(--border);
    color: color-mix(in srgb, var(--text) 66%, transparent);
}

.signup-breadcrumb .crumb-sep {
    border: 0;
    padding: 0.3rem 0;
    background: transparent;
    opacity: 0.7;
}

.signup-tier-section {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.95rem;
}

.signup-tier-card {
    position: relative;
}

.signup-plan-summary {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.9rem;
    display: grid;
    gap: 0.5rem;
}

.signup-plan-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.stripe-card-element {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    padding: 0.75rem 0.8rem;
    color: var(--text);
}

.auth-alert {
    margin-bottom: 0.8rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
}

.auth-alert.error {
    border-color: var(--border);
}

.auth-alert.success {
    border-color: var(--emerald);
}

.signup-payment-page .signup-payment-card {
    max-width: 680px;
    margin-top: 2.8rem;
}

.signup-payment-page .signup-breadcrumb {
    gap: 0.6rem 1.4rem;
    margin-bottom: 1.2rem;
}

.signup-payment-page .signup-breadcrumb .crumb {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.signup-payment-page h2 {
    margin-bottom: 1rem;
}

.signup-payment-page .muted {
    margin-bottom: 1rem;
}

.signup-payment-page .auth-alert {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
}

.signup-payment-page .signup-plan-summary {
    padding: 1rem 1.1rem;
    margin-bottom: 1.15rem;
    gap: 0.75rem;
}

.signup-payment-page .signup-plan-summary-row {
    min-height: 1.8rem;
}

.signup-payment-page .field-group {
    margin-bottom: 1rem;
}

.signup-payment-page .stripe-card-element {
    padding: 1rem;
    min-height: 50px;
}

.signup-payment-page .modal-actions {
    margin-top: 0.9rem;
}

.signup-payment-page .modal-actions .btn {
    min-width: 140px;
}

.muted {
    opacity: 0.85;
}

.account-nested-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    padding: 0.9rem;
}
/* Constrain the logo nested card to a compact width */
.account-logo-card {
    max-width: 540px;
}

.account-logo-layout {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.9rem;
    align-items: center;
}

.account-logo-preview-pane {
    width: 120px;
    min-height: 108px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem;
    text-align: center;
}

.account-logo-preview {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.account-logo-placeholder {
    margin-top: 0;
    font-size: 0.86rem;
}

.account-logo-controls-pane {
    min-width: 0;
}

.account-logo-input-label {
    display: block;
    margin-bottom: 0.3rem;
}

.account-logo-controls-pane input[type="file"] {
    width: 100%;
}

.account-logo-actions {
    margin-top: 0.55rem;
}

/* ── Postal Code Lookup ─────────────────────────────────────────────────── */
.postal-lookup-row {
    display: flex;
    gap: 0.45rem;
    align-items: stretch;
}
.postal-lookup-row input {
    flex: 1 1 auto;
    min-width: 0;
}
.postal-lookup-results {
    margin-top: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 50;
    position: relative;
}
.postal-lookup-result-item {
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    line-height: 1.4;
}
.postal-lookup-result-item:last-child {
    border-bottom: none;
}
.postal-lookup-result-item:hover {
    background: color-mix(in srgb, var(--emerald) 10%, var(--card-bg));
    color: var(--text);
}
.postal-lookup-no-results {
    color: var(--danger);
    cursor: default;
    font-style: italic;
}
/* ── End Postal Code Lookup ─────────────────────────────────────────────── */

.signup-logo-layout {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.9rem;
    align-items: center;
}

.signup-logo-preview-pane {
    width: 120px;
    min-height: 108px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem;
    text-align: center;
}

.signup-logo-preview {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.signup-logo-placeholder {
    margin-top: 0;
    font-size: 0.86rem;
}

.signup-logo-controls-pane {
    min-width: 0;
}

.signup-logo-controls-pane input[type="file"] {
    width: 100%;
}

@media (max-width: 740px) {
    .account-logo-layout {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .account-logo-preview-pane {
        width: 100%;
        justify-content: flex-start;
    }

    .signup-logo-layout {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .signup-logo-preview-pane {
        width: 100%;
        justify-content: flex-start;
    }
}

.account-nested-header {
    margin-bottom: 0.45rem;
}

.account-nested-header h3 {
    margin: 0;
    font-size: 1rem;
}

.account-nested-note {
    margin: 0.2rem 0 0.55rem;
}

.account-tier-note {
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
}

.account-tier-note-emphasis {
    border: 1px solid color-mix(in srgb, var(--emerald) 54%, var(--border));
    background: color-mix(in srgb, var(--emerald) 18%, var(--bg));
    color: color-mix(in srgb, var(--emerald) 80%, var(--text));
    font-weight: 700;
}

.account-tier-note-unavailable {
    opacity: 1;
}

.account-notification-line {
    transition: opacity 0.15s ease;
}

.account-notification-line-unavailable {
    opacity: 0.56;
}

.account-notification-line-unavailable span {
    text-decoration: none;
}

.account-nested-card.is-disabled {
    opacity: 0.78;
}

.account-nested-card.is-disabled input,
.account-nested-card.is-disabled select,
.account-nested-card.is-disabled .btn[type="submit"] {
    pointer-events: none;
}

.form-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pricing-register-btn {
    background: var(--register-btn-bg);
    color: var(--register-btn-text);
    border: 1px solid transparent;
}

.pricing-register-btn:hover,
.pricing-register-btn:focus-visible {
    background: var(--register-btn-bg-hover);
    color: var(--register-btn-text);
}

body.product-page {
    background:
        radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--emerald) 16%, transparent) 0%, transparent 44%),
        radial-gradient(circle at 88% 14%, color-mix(in srgb, var(--primary) 16%, transparent) 0%, transparent 42%),
        var(--bg);
}

body.product-page .container {
    width: 80%;
    max-width: var(--container-max-width);
}

.floating-register-now-link {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 1650;
    padding: 0.68rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--register-btn-bg);
    color: var(--register-btn-text);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.26);
    animation: parker-launcher-breathe 3.2s ease-in-out infinite;
    transform-origin: center;
    will-change: transform, box-shadow;
}

.floating-register-now-link:hover,
.floating-register-now-link:focus-visible {
    background: var(--register-btn-bg-hover);
    color: var(--register-btn-text);
    animation-play-state: paused;
}

.floating-register-now-link.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.product-page .hero {
    padding-top: 0;
    padding-bottom: 0;
}

.product-hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: stretch;
}

.product-hero-copy {
    flex: 1 1 420px;
    min-width: 280px;
}

.product-hero-graphic {
    flex: 1 1 320px;
    min-width: 280px;
}

.product-hero-copy h1 {
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 0.85rem;
}

/* ── Hero lockup: logo + "Run" + tagline ─────────────────────────── */
.product-hero-lockup {
    display: flex;
    align-items: center;
    gap: clamp(0.45rem, 1.4vw, 0.85rem);
    flex-wrap: nowrap;
    margin-bottom: 1.2rem;
}

.product-hero-logo {
    width: clamp(40px, 4.8vw, 60px);
    height: auto;
    flex-shrink: 0;
    border-radius: 10px;
}

.product-hero-lockup .product-hero-title {
    font-size: clamp(2.2rem, 4.8vw, 3.6rem);
    line-height: 1.05;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.product-hero-copy p {
    font-size: 1.08rem;
    max-width: 70ch;
    margin-bottom: 0.7rem;
}

.product-hero-graphic {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--card-bg) 86%, var(--bg));
    padding: 1rem;
    display: grid;
    gap: 0.7rem;
    overflow: hidden;
}

.product-graphic-orb {
    position: absolute;
    width: 160px;
    height: 160px;
    top: -34px;
    right: -34px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--emerald) 40%, transparent);
}

.product-graphic-panel {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: grid;
    gap: 0.28rem;
}

.product-graphic-panel strong {
    font-size: 1rem;
}

.product-graphic-panel span {
    font-size: 0.92rem;
    opacity: 0.9;
}

.product-capability-intro {
    font-size: 1.02rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    max-width: 78ch;
}

.product-capability-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
}

.product-capability-card {
    padding: 1rem;
    border-radius: 14px;
    min-height: 160px;
    background: color-mix(in srgb, var(--card-bg) 94%, var(--bg));
    display: grid;
    gap: 0.35rem;
}

.product-capability-card strong {
    font-size: 1rem;
}

.product-capability-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.42;
}

.product-page .product-capability-card,
.product-page .pricing-card,
.product-page .product-graphic-panel {
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    will-change: transform, box-shadow, opacity;
}

.product-page .product-capability-card.is-auto-highlight {
    border-color: color-mix(in srgb, var(--emerald) 55%, var(--border));
    background: color-mix(in srgb, var(--card-bg) 88%, var(--emerald));
    box-shadow: 0 16px 28px rgba(16, 185, 129, 0.18);
}

.product-page .motion-highlight-card {
    position: relative;
    overflow: hidden;
}

.product-page .motion-highlight-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 32%, color-mix(in srgb, var(--emerald) 24%, transparent) 50%, transparent 68%);
    opacity: 0;
    transform: translateX(-26%);
    transition: opacity 0.22s ease;
}

.product-page .motion-highlight-card:hover::after {
    opacity: 0.75;
}

.product-breadcrumb {
    margin-top: -0.2rem;
    margin-bottom: 1rem;
}

/* ── Parker AI spotlight section ─────────────────────────────────── */

@keyframes parker-breathe {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0), 0 0 12px 2px rgba(16,185,129,0.08); border-color: color-mix(in srgb, var(--emerald) 18%, var(--border)); }
    50%  { box-shadow: 0 0 0 5px rgba(16,185,129,0.10), 0 0 22px 6px rgba(16,185,129,0.18); border-color: color-mix(in srgb, var(--emerald) 60%, var(--border)); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0), 0 0 12px 2px rgba(16,185,129,0.08); border-color: color-mix(in srgb, var(--emerald) 18%, var(--border)); }
}

.parker-ai-hero-panel {
    animation: parker-breathe 3s ease-in-out infinite;
    border-color: color-mix(in srgb, var(--emerald) 18%, var(--border));
}

@keyframes parker-section-breathe {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0), 0 4px 24px 0 rgba(16,185,129,0.04); border-color: color-mix(in srgb, var(--emerald) 22%, var(--border)); }
    50%  { box-shadow: 0 0 0 6px rgba(16,185,129,0.07), 0 4px 40px 8px rgba(16,185,129,0.13); border-color: color-mix(in srgb, var(--emerald) 55%, var(--border)); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0), 0 4px 24px 0 rgba(16,185,129,0.04); border-color: color-mix(in srgb, var(--emerald) 22%, var(--border)); }
}

.parker-ai-spotlight {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--card-bg) 90%, var(--emerald)) 0%,
        var(--card-bg) 60%);
    border-color: color-mix(in srgb, var(--emerald) 22%, var(--border));
    animation: parker-section-breathe 4s ease-in-out infinite;
}

.parker-ai-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.6rem;
}

.parker-ai-demo-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.parker-ai-demo-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.25rem;
}

.parker-chat-bubbles {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.parker-bubble {
    padding: 0.7rem 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 90%;
}

.parker-bubble-user {
    align-self: flex-end;
    background: color-mix(in srgb, var(--emerald) 16%, var(--card-bg));
    border: 1px solid color-mix(in srgb, var(--emerald) 30%, transparent);
    color: var(--text);
    font-style: italic;
}

.parker-bubble-ai {
    align-self: flex-start;
    background: color-mix(in srgb, var(--card-bg) 80%, var(--bg));
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.parker-capability-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.parker-capability-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.parker-cap-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.parker-capability-list strong {
    display: block;
    font-size: 0.97rem;
    margin-bottom: 0.2rem;
    color: var(--text);
}

.parker-capability-list span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.product-page .highlights-card {
    border: 1px solid color-mix(in srgb, var(--emerald) 18%, var(--border));
    background: linear-gradient(145deg,
        color-mix(in srgb, var(--card-bg) 92%, var(--emerald)) 0%,
        color-mix(in srgb, var(--card-bg) 98%, var(--bg)) 60%,
        color-mix(in srgb, var(--card-bg) 92%, var(--sky)) 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.product-page .highlights-list {
    gap: 0.75rem;
}

.product-page .highlights-list li {
    padding: 0.65rem 0.7rem;
    border-radius: 12px;
    background: color-mix(in srgb, var(--card-bg) 88%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    animation: highlights-float 6s ease-in-out infinite;
}

.product-page .highlights-list li:nth-child(2) { animation-delay: 0.4s; }
.product-page .highlights-list li:nth-child(3) { animation-delay: 0.8s; }
.product-page .highlights-list li:nth-child(4) { animation-delay: 1.2s; }
.product-page .highlights-list li:nth-child(5) { animation-delay: 1.6s; }
.product-page .highlights-list li:nth-child(6) { animation-delay: 2s; }

@keyframes highlights-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .product-page .highlights-list li {
        animation: none;
    }
}

.product-page .highlights-list .parker-cap-icon {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--emerald) 18%, var(--card-bg));
    border: 1px solid color-mix(in srgb, var(--emerald) 35%, transparent);
    font-size: 1rem;
}

@media (max-width: 700px) {
    .parker-ai-demo-grid {
        grid-template-columns: 1fr;
    }
}

.logo {
    cursor: pointer;
}

.hero h1,
.section-header h2,
.section-header h3 {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}

.hero h1::before,
.section-header h2::before,
.section-header h3::before {
    content: '';
    width: 1em;
    height: 1em;
    display: inline-block;
    background-image: url('icon-512.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex: 0 0 auto;
}

.product-page .product-hero-title {
    padding-left: 0px;
}

.product-video-shell {
    width: min(50vw, 760px);
    max-width: 100%;
    margin: 0 auto;
}

.product-video-player {
    width: 100%;
    margin: 0 auto;
    display: block;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--primary);
    object-fit: contain;
}

.product-video-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.product-video-fullscreen-btn {
    min-width: 142px;
}

.pricing-enterprise-overage-note {
    margin-top: 0.45rem;
    font-size: 0.84rem;
    line-height: 1.45;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.62rem;
    background: var(--bg);
}

.product-page .product-hero-title::before {
    display: none;
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap > input {
    padding-right: 2.6rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--text);
    opacity: 0.72;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0.2rem;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
    opacity: 1;
}

.prefs-panel {
    margin-top: 1rem;
}

.preferences-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.account-section-block {
    margin-top: 0.9rem;
    position: relative;
    padding-top: 0.75rem;
}

.account-section-block > .section-header {
    margin-bottom: 0.5rem;
    padding-right: 2.1rem;
}

.collapsible-section-block {
    position: relative;
    padding-top: 0.75rem;
}

.collapsible-section-block > .section-header {
    padding-right: 2.1rem;
}

.account-section-block .section-header > h2,
.account-section-block .section-header > h3,
.account-section-block .section-header > h4 {
    margin: 0;
}

.section-collapse-toggle {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    width: 1.55rem;
    height: 1.55rem;
    min-width: 1.55rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, color 0.18s;
}

.section-collapse-toggle:hover,
.section-collapse-toggle:focus-visible {
    background: color-mix(in srgb, var(--bg) 60%, var(--card-bg));
}

.is-collapsed .section-collapse-toggle {
    background: var(--emerald);
    border-color: var(--emerald);
    color: #fff;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--emerald) 28%, transparent),
                0 2px 6px color-mix(in srgb, var(--emerald) 35%, transparent);
}

.is-collapsed .section-collapse-toggle:hover,
.is-collapsed .section-collapse-toggle:focus-visible {
    background: color-mix(in srgb, var(--emerald) 80%, #000);
    border-color: color-mix(in srgb, var(--emerald) 80%, #000);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald) 36%, transparent);
}

.account-section-block.is-collapsed,
.collapsible-section-block.is-collapsed {
    border-color: color-mix(in srgb, var(--emerald) 45%, var(--border)) !important;
    background: color-mix(in srgb, var(--emerald) 4%, var(--card-bg)) !important;
}

.account-section-block.is-collapsed > .section-header,
.collapsible-section-block.is-collapsed > .section-header {
    opacity: 0.72;
    margin-bottom: 0;
}

.account-section-block.is-collapsed {
    padding-bottom: 0.85rem;
}

.account-section-block.is-collapsed > :not(.section-header) {
    display: none;
}

.collapsible-section-block.is-collapsed {
    padding-bottom: 0.85rem;
}

.collapsible-section-block.is-collapsed > :not(.section-header) {
    display: none;
}

body.product-page .section-collapse-toggle {
    display: none !important;
}

.account-topbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.account-readonly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.account-readonly-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.account-readonly-item strong,
.account-readonly-item span {
    word-break: break-word;
}

.parker-ai-limits-grid .account-readonly-item {
    align-items: center;
    text-align: center;
}

.parker-ai-limits-note {
    text-align: center;
    font-style: italic;
}

.parker-ai-limit-value.is-good {
    color: var(--emerald);
}

.parker-ai-limit-value.is-warning {
    color: #b45309;
}

.parker-ai-limit-value.is-critical {
    color: var(--danger);
}

.account-readonly-label {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text) 60%, var(--card-bg));
}

.account-readonly-wide {
    grid-column: 1 / -1;
}

.account-readonly-span-2 {
    grid-column: span 2;
}

.account-readonly-address {
    max-width: none;
    justify-self: stretch;
}

.account-email-grid {
    display: grid;
    gap: 0.5rem;
}

.account-email-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.parker-quota-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.parker-quota-graph {
    position: relative;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
}

.parker-quota-pie {
    position: relative;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: conic-gradient(
        var(--emerald) calc(var(--quota-used) * 1%),
        color-mix(in srgb, var(--border) 70%, transparent) 0
    );
    box-shadow: inset 0 0 0 10px color-mix(in srgb, var(--card-bg) 92%, var(--border));
}

.parker-quota-pie::after {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.parker-quota-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.parker-quota-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.parker-quota-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--text) 55%, var(--card-bg));
}

.parker-quota-meta {
    display: grid;
    gap: 0.5rem;
    min-width: 180px;
}

.parker-quota-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.parker-quota-note {
    margin-top: 0.55rem;
}

.quota-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid color-mix(in srgb, var(--emerald) 35%, var(--border));
    background: color-mix(in srgb, var(--emerald) 16%, var(--card-bg));
    color: var(--emerald);
}

.quota-status-pill.is-warning {
    border-color: color-mix(in srgb, #f59e0b 45%, var(--border));
    background: color-mix(in srgb, #f59e0b 18%, var(--card-bg));
    color: #b45309;
}

.quota-status-pill.is-critical {
    border-color: color-mix(in srgb, var(--danger) 50%, var(--border));
    background: color-mix(in srgb, var(--danger) 18%, var(--card-bg));
    color: var(--danger);
}

@media (max-width: 760px) {
    .parker-quota-card {
        align-items: flex-start;
    }
    .parker-quota-graph,
    .parker-quota-pie {
        width: 96px;
        height: 96px;
    }
    .parker-quota-pie::after {
        inset: 12px;
    }
}

.collab-inline-row {
    display: grid;
    grid-template-columns: minmax(140px, 180px) minmax(220px, 1fr);
    align-items: flex-start;
    column-gap: 0.8rem;
}

.collab-inline-row > label {
    margin: 0.2rem 0 0;
}

.collab-inline-row > select,
.collab-inline-row > input {
    width: 100%;
}

@media (max-width: 760px) {
    .collab-inline-row {
        grid-template-columns: 1fr;
        row-gap: 0.4rem;
    }
    .collab-inline-row > label {
        margin-top: 0;
    }
}

.account-compact-block {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    padding: 0.6rem 0.7rem;
    display: grid;
    gap: 0.45rem;
}

.account-compact-block > strong {
    font-size: 0.86rem;
    opacity: 0.9;
}

.subscription-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.subscription-card-header-row .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.preferences-row-compact {
    gap: 0.5rem;
}

.preferences-row-compact .btn {
    min-width: 0;
}

.subscription-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.5rem 0.7rem;
}

.subscription-summary-grid > div {
    display: grid;
    gap: 0.15rem;
}

.subscription-summary-grid strong {
    font-size: 0.95rem;
}

.subscription-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.2rem;
    font-size: 0.9rem;
    font-family: var(--table-font-family);
    font-style: var(--table-font-style);
}

.subscription-summary-table th,
.subscription-summary-table td {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
}

.subscription-summary-table th {
    background: var(--bg);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted, var(--text));
}

.subscription-summary-table td strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.subscription-summary-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.2rem;
    margin-top: 0.6rem;
    text-align: center;
}

.subscription-summary-meta-row > div {
    display: grid;
    gap: 0.15rem;
    min-width: 140px;
}

.subscription-expiry-soon {
    font-weight: 800;
    text-decoration: underline;
}

.danger-zone-card {
    border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
    background: color-mix(in srgb, var(--danger) 8%, var(--bg));
}

.danger-zone-copy {
    margin: 0 0 0.6rem;
}

.weekday-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 0.35rem 0.5rem;
}

.weekday-check-grid label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
}

.subscription-page-summary {
    margin-bottom: 0.8rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    display: grid;
    gap: 0.7rem;
}

.subscription-summary-main {
    display: grid;
    gap: 0.25rem;
}

.subscription-summary-title {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
}

.subscription-summary-status {
    font-size: 0.92rem;
    font-weight: 600;
    opacity: 0.85;
}

.subscription-summary-meta {
    font-size: 0.9rem;
    opacity: 0.86;
}

.subscription-summary-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.subscription-summary-metric {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.4rem 0.65rem;
    font-size: 0.98rem;
    font-weight: 600;
    background: var(--bg);
}

.subscription-summary-metric strong {
    font-size: 1.1rem;
}

.subscription-restriction-note {
    margin-bottom: 0.8rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    font-size: 0.88rem;
    opacity: 0.88;
}

.active-label.action-required-callout,
.subscription-restriction-note.action-required-callout,
.account-tier-note.action-required-callout,
.auth-alert.action-required-callout {
    border-color: var(--sale-highlight-border);
    background: var(--sale-highlight-bg);
    color: var(--sale-highlight-text);
    font-weight: 700;
    opacity: 1;
}

.subscription-actions {
    margin-top: 0.8rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.subscription-actions .btn,
.subscription-actions a.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.subscription-actions > #subscription-save-btn {
    flex: 1 1 320px;
}

.subscription-actions > a.btn {
    flex: 0 0 auto;
    width: auto;
    min-width: fit-content;
    white-space: nowrap;
}

.subscription-plan-card {
    position: relative;
}

.subscription-plan-radio {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
}

.subscription-plan-limit {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.subscription-plan-note {
    font-size: 0.85rem;
    opacity: 0.85;
}

.subscription-price-old {
    text-decoration: line-through;
    opacity: 0.72;
    margin-right: 0.35rem;
}

.subscription-price-discounted {
    color: color-mix(in srgb, var(--emerald) 84%, var(--text));
    font-weight: 800;
}

.subscription-plan-blocked {
    opacity: 0.65;
    cursor: not-allowed;
}

.subscription-plan-current {
    cursor: default;
}

.subscription-plan-selected-new {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.26);
}

.subscription-plan-current h3,
.subscription-plan-current .pricing-price,
.subscription-plan-current .pricing-annual,
.subscription-plan-current .subscription-plan-limit,
.subscription-plan-current .pricing-report-note {
    color: color-mix(in srgb, var(--text) 52%, transparent);
}

.subscription-plan-current .subscription-plan-note {
    color: color-mix(in srgb, var(--emerald) 86%, #ffffff 14%);
    opacity: 1;
    font-weight: 700;
}

.subscription-payment-panel {
    margin-top: 0.75rem;
    margin-bottom: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    background: var(--bg);
    display: grid;
    gap: 0.85rem;
}

.subscription-payment-details-card,
.subscription-card-container {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    padding: 0.8rem;
}

.subscription-payment-details-card {
    display: grid;
    gap: 0.55rem;
}

.subscription-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 0.55rem;
}

.subscription-card-element {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.8rem;
    background: var(--card-bg);
}

.property-rentals-gantt-section {
    margin-top: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    padding: 0.75rem 0.8rem;
}

.property-rentals-gantt {
    width: 100%;
    overflow: auto;
    min-height: 280px;
}

/* ── DayPilot Scheduler theming ───────────────────────────────────────────── */
/* Light-mode (default) CSS variable definitions on the scheduler root.        */
/* Dark-mode overrides below; consuming rules further down apply to both.      */

.property-rentals-gantt.parkm8-calendar-dark-theme .scheduler_default_main {
    --dp-scheduler-border-color: var(--border);
    --dp-scheduler-header-bg-color: var(--card-bg);
    --dp-scheduler-header-color: var(--text);
    --dp-scheduler-cell-bg-color: var(--bg);
    --dp-scheduler-cell-business-bg-color: color-mix(in srgb, var(--bg) 92%, #c7d2e0);
    --dp-scheduler-event-color: var(--text);
    --dp-scheduler-event-border-color: var(--border);
    --dp-scheduler-grid-line-color: var(--border);
}

/* Dark-mode variable overrides */
.dark-mode .property-rentals-gantt.parkm8-calendar-dark-theme .scheduler_default_main {
    --dp-scheduler-border-color: color-mix(in srgb, var(--border) 80%, #1f2937);
    --dp-scheduler-header-bg-color: color-mix(in srgb, var(--card-bg) 88%, #0b1220);
    --dp-scheduler-header-color: var(--text);
    --dp-scheduler-cell-bg-color: color-mix(in srgb, var(--bg) 86%, #0f172a);
    --dp-scheduler-cell-business-bg-color: color-mix(in srgb, var(--card-bg) 90%, #0b1220);
    --dp-scheduler-event-color: var(--text);
    --dp-scheduler-event-border-color: color-mix(in srgb, var(--border) 80%, #475569);
    --dp-scheduler-grid-line-color: color-mix(in srgb, var(--border) 68%, #334155);
}

/* Consuming rules – apply in both light and dark via the variables above.     */
/* !important is required because DayPilot injects its own CSS at runtime.     */

.property-rentals-gantt.parkm8-calendar-dark-theme .scheduler_default_main,
.property-rentals-gantt.parkm8-calendar-dark-theme .scheduler_default_main svg text {
    border-color: var(--dp-scheduler-border-color) !important;
    color: var(--dp-scheduler-header-color);
}

.property-rentals-gantt.parkm8-calendar-dark-theme .scheduler_default_corner_inner,
.property-rentals-gantt.parkm8-calendar-dark-theme .scheduler_default_timeheadercol_inner {
    background: var(--dp-scheduler-header-bg-color) !important;
    color: var(--dp-scheduler-header-color) !important;
    border-color: var(--dp-scheduler-border-color) !important;
}

.property-rentals-gantt.parkm8-calendar-dark-theme .scheduler_default_rowheader_inner {
    background: var(--dp-scheduler-header-bg-color) !important;
    color: var(--dp-scheduler-header-color) !important;
    border-color: var(--dp-scheduler-border-color) !important;
}

.property-rentals-gantt.parkm8-calendar-dark-theme .scheduler_default_cell {
    background: var(--dp-scheduler-cell-bg-color) !important;
    border-color: var(--dp-scheduler-grid-line-color) !important;
}

.property-rentals-gantt.parkm8-calendar-dark-theme .scheduler_default_cell_business {
    background: var(--dp-scheduler-cell-business-bg-color) !important;
}

.property-rentals-gantt.parkm8-calendar-dark-theme .scheduler_default_event_inner {
    border-color: var(--dp-scheduler-event-border-color) !important;
    color: var(--dp-scheduler-event-color) !important;
}

.property-rentals-gantt.parkm8-calendar-dark-theme .scheduler_default_event_group,
.property-rentals-gantt.parkm8-calendar-dark-theme .scheduler_default_event_left,
.property-rentals-gantt.parkm8-calendar-dark-theme .scheduler_default_event_right {
    color: var(--dp-scheduler-event-color);
}

.property-rentals-jump-date {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
}

.booking-action-popover {
    position: fixed;
    z-index: 1800;
    width: min(320px, calc(100vw - 16px));
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.24);
    padding: 0.75rem;
    display: grid;
    gap: 0.55rem;
}

.booking-action-popover[hidden] {
    display: none !important;
}

.rental-override-highlight {
    border: 1px solid var(--emerald);
    background: color-mix(in srgb, var(--emerald) 16%, var(--card-bg));
    color: var(--text);
    border-radius: 7px;
    padding: 0.32rem 0.48rem;
    width: 100%;
    font-weight: 600;
}

.rental-price-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rental-price-original-overridden {
    text-decoration: line-through;
    opacity: 0.72;
}

.rental-override-pill {
    width: auto;
    display: inline-block;
    padding: 0.2rem 0.48rem;
}

.rental-edit-price-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.rental-edit-price-row #rental-row-edit-override {
    flex: 0 1 180px;
    min-width: 150px;
}

.rental-row-edit-price-preview {
    flex: 0 0 auto;
    min-height: 2rem;
}

.rental-edit-date-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    gap: 0.7rem;
}

.rental-edit-field {
    max-width: 240px;
}

.rental-edit-override-group {
    max-width: 520px;
}

.booking-action-popover-title {
    margin: 0;
    font-size: 0.95rem;
}

.booking-action-popover-meta {
    margin: 0;
    opacity: 0.86;
    font-size: 0.84rem;
}

.booking-action-popover-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.dark-mode .booking-action-popover {
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.42);
}

.dark-mode .stripe-card-element,
.dark-mode .subscription-card-element {
    background: color-mix(in srgb, var(--card-bg) 84%, #0b1220);
    border-color: color-mix(in srgb, var(--border) 92%, #64748b);
}

body.with-history-sidebar {
    padding-right: 0;
}

body.with-history-sidebar .container {
    padding-right: calc(var(--container-pad) + 330px);
}

.history-sidebar {
    position: fixed;
    top: 84px;
    right: 14px;
    width: 300px;
    max-height: calc(100vh - 100px);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    z-index: 90;
}

.history-header {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.history-header h3 {
    margin: 0;
    font-size: 1rem;
}

.history-close-btn {
    min-width: 30px;
    padding: 0.2rem 0.45rem;
    line-height: 1;
}

.history-list {
    overflow-y: auto;
    padding: 0.7rem;
    display: grid;
    gap: 0.55rem;
}

.history-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.55rem 0.6rem;
    background: var(--bg);
}

.history-action {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.history-meta {
    font-size: 0.76rem;
    opacity: 0.8;
}

body.density-compact {
    --container-pad: 1.2rem;
    --section-pad: 0.9rem;
    --form-gap: 0.6rem;
    --input-pad-y: 0.62rem;
    --input-pad-x: 0.66rem;
    --btn-pad-y: 0.6rem;
    --btn-pad-x: 1rem;
}

body.density-comfortable {
    --container-pad: 2rem;
    --section-pad: 1.2rem;
    --form-gap: 0.95rem;
    --input-pad-y: 0.85rem;
    --input-pad-x: 0.85rem;
    --btn-pad-y: 0.8rem;
    --btn-pad-x: 1.5rem;
}

body.density-compact .nav-container { padding-top: 0.48rem; padding-bottom: 0.48rem; }
body.density-compact .active-label { padding: 0.55rem 0.7rem; }
body.density-compact .property-grid { gap: 1rem; }
body.density-compact .bay-display-grid { gap: 0.8rem; }

.bay-image-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)); gap: 6px; margin-top: 10px; }
.bay-thumb { width: 100%; height: 55px; object-fit: cover; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); }
.image-manage-card .bay-thumb { height: 86px; }
/* --- Bay image drop zone --- */
.bay-image-drop-zone { border: 2px dashed var(--border); border-radius: 10px; padding: 1.4rem 1rem; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; background: var(--bg); display: flex; flex-direction: column; gap: 0.3rem; align-items: center; }
.bay-image-drop-zone:hover, .bay-image-drop-zone:focus { border-color: var(--emerald); outline: none; }
.bay-image-drop-zone.drag-over { border-color: var(--emerald); background: color-mix(in srgb, var(--emerald) 8%, transparent); }
.drop-zone-icon { font-size: 1.7rem; line-height: 1; }
.drop-zone-text { font-size: 0.93rem; }
.drop-zone-browse-link { color: var(--emerald); cursor: pointer; text-decoration: underline; font-weight: 600; }
.drop-zone-sub { font-size: 0.8rem; opacity: 0.6; }
.bay-images-pending-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bay-images-pending-thumb { position: relative; width: 76px; height: 76px; }
.bay-images-pending-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; border: 1px solid var(--border); }
.bay-images-pending-thumb .remove-pending-btn { position: absolute; top: -6px; right: -6px; background: #ef4444; color: #fff; width: 18px; height: 18px; border: none; border-radius: 50%; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; }
/* --- Occupancy heatmap --- */
.vtpi-badge { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 12px; background: var(--emerald); color: #fff; margin-left: 0.5rem; vertical-align: middle; }
.occupancy-heatmap-grid { display: flex; flex-wrap: wrap; gap: 12px; padding: 0.4rem 0 0.6rem; }
.occ-property-card { flex: 1 1 220px; padding: 0.9rem 1rem; border-radius: 10px; border-left: 4px solid var(--border); background: var(--bg); }
.occ-band-border-red { border-left-color: #ef4444; }
.occ-band-border-amber { border-left-color: #f59e0b; }
.occ-band-border-green { border-left-color: #10b981; }
.occ-band-border-blue { border-left-color: #3b82f6; }
.occ-property-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.occ-bar-row { display: flex; align-items: flex-end; gap: 6px; height: 72px; margin-bottom: 0.4rem; }
.occ-bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.occ-bar { width: 24px; border-radius: 4px 4px 0 0; min-height: 6px; }
.occ-bar.occ-band-red { background: #ef4444; }
.occ-bar.occ-band-amber { background: #f59e0b; }
.occ-bar.occ-band-green { background: #10b981; }
.occ-bar.occ-band-blue { background: #3b82f6; }
.occ-bar-label { font-size: 0.72rem; opacity: 0.75; }
.occ-avg { font-size: 0.82rem; margin-top: 0.3rem; }
.occ-band-text-red { color: #ef4444; font-weight: 600; }
.occ-band-text-amber { color: #f59e0b; font-weight: 600; }
.occ-band-text-green { color: #10b981; font-weight: 600; }
.occ-band-text-blue { color: #3b82f6; font-weight: 600; }
/* --- Pricing recommendations --- */
.pricing-recs-header { font-weight: 700; font-size: 0.95rem; margin: 0.6rem 0 0.45rem; }
.pricing-recs-list { padding-bottom: 0.4rem; }
.pricing-rec-card { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.8rem 1rem; border-radius: 9px; margin-bottom: 0.6rem; border: 1px solid var(--border); background: var(--bg); }
.pricing-rec-decrease { border-left: 4px solid #f59e0b; }
.pricing-rec-increase { border-left: 4px solid #10b981; }
.pricing-rec-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.pricing-rec-body { flex: 1; font-size: 0.9rem; }
.pricing-rec-reason { font-size: 0.82rem; opacity: 0.75; margin-top: 0.3rem; }
.pricing-rec-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
/* --- Newsletter schedule table --- */
.schedule-active-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 0.78rem; font-weight: 600; }
.schedule-active-badge.is-active { background: color-mix(in srgb, #10b981 15%, transparent); color: #10b981; }
.schedule-active-badge.is-inactive { background: color-mix(in srgb, #94a3b8 15%, transparent); color: #94a3b8; }

@media (max-width: 980px) {
    .navbar { position: static; }

    .nav-container {
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.55rem;
        padding: 0.52rem 0.9rem;
    }

    .logo {
        font-size: 1.24rem;
        gap: 6px;
    }

    .logo small {
        font-size: 0.64rem;
    }

    .nav-menu-toggle {
        display: inline-flex;
        margin-left: auto;
        min-width: 88px;
        justify-content: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.4rem;
        padding: 0.2rem 0 0.15rem;
    }

    .nav-container.nav-links-open .nav-links {
        display: flex;
    }

    .nav-links a {
        font-size: 0.86rem;
        padding: 0.5rem 0.6rem;
        border: 1px solid var(--border);
        border-radius: 8px;
        white-space: normal;
    }

    .nav-links .btn {
        width: 100%;
        justify-content: flex-start;
        padding: 0.5rem 0.6rem;
    }

    .debug-company-picker {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .product-hero-grid {
        flex-direction: column;
        gap: 0.9rem;
    }

    .product-hero-copy,
    .product-hero-graphic {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }

    .product-hero-copy h1 {
        display: block;
        font-size: clamp(1.55rem, 7.2vw, 2.2rem);
        line-height: 1.14;
    }

    .product-hero-copy h1::before {
        display: none;
    }

    .product-hero-lockup {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .product-hero-logo {
        width: clamp(34px, 5.2vw, 46px);
    }

    .product-hero-lockup .product-hero-title {
        font-size: clamp(1.8rem, 5.5vw, 2.8rem);
    }

    .product-hero-copy p {
        font-size: 0.98rem;
        max-width: 100%;
    }

    .product-hero-graphic {
        padding: 0.85rem;
    }

    .product-graphic-panel {
        padding: 0.75rem 0.8rem;
    }
}

@media (max-width: 720px) {
    :root {
        --container-pad: 0.9rem;
        --section-pad: 0.85rem;
        --form-gap: 0.62rem;
        --input-pad-y: 0.62rem;
        --input-pad-x: 0.68rem;
        --btn-pad-y: 0.62rem;
        --btn-pad-x: 0.95rem;
    }

    .container { width: 100%; max-width: 100%; padding: 1rem; }
    .property-form-row { grid-template-columns: 1fr; }
    .modal { padding: 0.75rem; }
    .modal-content { margin: 0.5rem auto; }
    .modal-actions .btn { min-width: 0; flex: 1; }
    .subscription-actions > #subscription-save-btn { flex: 1 1 220px; }
    .subscription-actions > a.btn { flex: 0 0 auto; min-width: fit-content; }
    .customer-form-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .rental-preset-row { grid-template-columns: 1fr; }
    .support-layout { display: block; }
    .billing-graph {
        min-height: 0;
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: minmax(80px, 110px);
        gap: 0.25rem;
        overflow-x: auto;
    }
    .billing-bar-wrap {
        min-width: 80px;
        gap: 0.3rem;
    }
    .billing-bar {
        width: min(100%, 84px);
    }
    .billing-bar-value,
    .billing-bar-label {
        font-size: 0.72rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    #billing-monthly-forecast-card .billing-table-wrap {
        overflow-x: auto;
    }
    .product-hero-grid {
        flex-direction: column;
        padding: var(--section-pad);
    }
    .product-hero-copy,
    .product-hero-graphic {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }
    .product-hero-copy h1 { font-size: clamp(1.75rem, 8.3vw, 2.3rem); }
    .product-capability-grid { grid-template-columns: 1fr; }
    .product-video-shell {
        width: 100%;
    }
    .product-video-player {
        width: 100%;
        border-radius: 10px;
        min-height: 190px;
    }
    .product-page .hero { padding-top: 1.1rem; padding-bottom: 0.6rem; }
    .product-hero-copy h1 { font-size: clamp(1.45rem, 8vw, 1.9rem); line-height: 1.16; margin-bottom: 0.55rem; }
    .product-hero-lockup {
        gap: 0.38rem;
        margin-bottom: 0.8rem;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .product-hero-logo { width: clamp(26px, 7.5vw, 36px); }
    .product-hero-lockup .product-hero-title { font-size: clamp(1.45rem, 7.8vw, 2.1rem); letter-spacing: -0.015em; }
    .product-hero-copy p { font-size: 0.95rem; margin-bottom: 0.55rem; }
    .product-hero-graphic { padding: 0.7rem; border-radius: 12px; gap: 0.55rem; }
    .product-graphic-panel { border-radius: 10px; padding: 0.62rem 0.68rem; }
    .product-graphic-panel strong { font-size: 0.92rem; }
    .product-graphic-panel span { font-size: 0.84rem; }
    .product-graphic-orb { width: 110px; height: 110px; top: -24px; right: -24px; }
    input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="time"], input[type="date"], input[type="datetime-local"], select, textarea, input[type="file"] { font-size: 0.95rem; }

    .section-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .section-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 1220px) {
    body.with-history-sidebar {
        padding-right: 0;
    }

    body.with-history-sidebar .container {
        padding-right: var(--container-pad);
    }

    .history-sidebar {
        position: static;
        width: auto;
        max-height: none;
        margin: 0.5rem var(--container-pad) 1rem;
    }
}

input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="date"], input[type="datetime-local"], select, textarea, input[type="file"] {
    padding: var(--input-pad-y) var(--input-pad-x);
}

/* ====== PARKER AI SPARKLES ICON ====== */
.parker-ai-icon {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    background-color: currentColor;
    -webkit-mask-image: url('images/sparkles.svg');
    mask-image: url('images/sparkles.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    vertical-align: -0.075em;
    flex-shrink: 0;
}

.ai-chat-root {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1700;
}

.ai-chat-launcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-width: var(--floating-btn-min-w);
    height: var(--floating-btn-h);
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--emerald);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.26);
    animation: parker-launcher-breathe 3.2s ease-in-out infinite;
    transform-origin: center;
    will-change: transform, box-shadow;
}

.ai-chat-launcher:hover,
.ai-chat-launcher:focus-visible {
    animation-play-state: paused;
}

@keyframes parker-launcher-breathe {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 22px rgba(2, 6, 23, 0.26);
    }
    50% {
        transform: scale(1.045);
        box-shadow: 0 14px 28px rgba(2, 6, 23, 0.32);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-chat-launcher,
    .floating-register-now-link,
    .ai-chat-panel:not([hidden]) {
        animation: none;
    }
}

.ai-chat-panel {
    width: min(95vw, 480px);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.32);
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}

.ai-chat-panel:not([hidden]) {
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.32), 0 0 0 1px rgba(16, 185, 129, 0.16), 0 0 18px rgba(16, 185, 129, 0.18);
    animation: parker-chat-glow 3.6s ease-in-out infinite;
}

@keyframes parker-chat-glow {
    0%,
    100% {
        box-shadow: 0 14px 28px rgba(2, 6, 23, 0.32), 0 0 0 1px rgba(16, 185, 129, 0.16), 0 0 14px rgba(16, 185, 129, 0.14);
    }
    50% {
        box-shadow: 0 16px 30px rgba(2, 6, 23, 0.34), 0 0 0 1px rgba(16, 185, 129, 0.22), 0 0 22px rgba(16, 185, 129, 0.22);
    }
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.ai-chat-tools {
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem;
    background: var(--card-bg);
}

.ai-chat-tools select {
    min-width: 0;
    font-size: 0.82rem;
    padding: 0.42rem 0.5rem;
}

.ai-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-chat-close {
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: 7px;
    min-width: 54px;
    height: 28px;
    padding: 0 10px;
    font-size: 0.82rem;
    cursor: pointer;
}

.ai-chat-expand {
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: 7px;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.ai-chat-expand:hover,
.ai-chat-expand:focus-visible {
    background: var(--border);
}

.ai-chat-panel.is-fullscreen {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: min(80vw, 1100px);
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    border-radius: 12px;
    z-index: 1800;
}

.ai-chat-panel.is-fullscreen .ai-chat-messages {
    max-height: none;
    min-height: 0;
}

.ai-chat-messages {
    max-height: 600px;
    min-height: 340px;
    overflow-y: auto;
    padding: 0.7rem;
    display: grid;
    gap: 0.55rem;
    background: var(--bg);
}

@media (max-width: 640px) {
    body.product-page .container {
        width: 100%;
        max-width: 100%;
    }

    .ai-chat-root {
        right: 8px;
        bottom: 8px;
        left: 8px;
    }

    .ai-chat-expand {
        display: none;
    }

    .ai-chat-launcher {
        margin-left: auto;
    }

    /* Also shift submenu left of Parker AI on very small screens (Parker AI shifts to right: 8px) */
    .parkm8-side-submenu {
        right: calc(var(--floating-btn-min-w) + 8px + 8px);
        bottom: 8px;
    }

    .ai-chat-panel {
        width: min(100vw, 98vw, 270px);
        margin-left: auto;
        max-height: 64vh;
        max-height: 64dvh;
    }
    .ai-chat-messages {
        max-height: 42vh;
        max-height: 42dvh;
        min-height: 180px;
    }

    .floating-register-now-link {
        right: 10px;
        bottom: 10px;
        padding: 0.62rem 0.88rem;
        font-size: 0.88rem;
    }
}

.ai-chat-msg {
    display: flex;
}

.ai-chat-msg-user {
    justify-content: flex-end;
}

.ai-chat-msg-assistant {
    justify-content: flex-start;
}

.ai-chat-bubble {
    max-width: 86%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
    font-size: 0.86rem;
    line-height: 1.4;
    white-space: pre-wrap;
    background: var(--card-bg);
}

.ai-chat-msg-user .ai-chat-bubble {
    background: color-mix(in srgb, var(--emerald) 14%, var(--card-bg));
}

.ai-chat-actions {
    margin-top: 0.35rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ai-chat-form {
    border-top: 1px solid var(--border);
    padding: 0.55rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
    background: var(--card-bg);
}

.ai-chat-form input {
    font-size: 0.9rem;
}

/* ─── Phase 3.1 – Hardware Integrations ──────────────────────────────────── */
.integration-vendor-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--bg);
}
.integration-vendor-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    flex-wrap: wrap;
}
.integration-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    flex-shrink: 0;
}
.integration-toggle-label input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    accent-color: var(--emerald);
}
.integration-vendor-name {
    font-size: 0.97rem;
}
.integration-vendor-desc {
    font-size: 0.82rem;
    opacity: 0.6;
    flex: 1;
}
.integration-status-badge {
    font-size: 0.73rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.badge-disabled  { background: var(--muted, #e5e7eb); color: #6b7280; }
.badge-enabled   { background: #dbeafe; color: #1d4ed8; }
.badge-ok        { background: #d1fae5; color: #065f46; }
.badge-error     { background: #fee2e2; color: #991b1b; }
.integration-config-panel {
    padding: 0.9rem 1rem 0.6rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.integration-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}
#integrations-message {
    margin-top: 0.6rem;
    font-size: 0.85rem;
}

/* ─── Phase 3.4 – Export & Reporting API ──────────────────────────────────── */
.export-endpoint-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}
.export-endpoint-table th {
    text-align: left;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    opacity: 0.7;
}
.export-endpoint-table td {
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.export-endpoint-table th {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.export-endpoint-table code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.export-url-cell {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.export-url-cell code {
    font-size: 0.75rem;
    color: var(--emerald);
    word-break: break-all;
}
.btn-xs {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 5px;
}
.export-key-reveal {
    margin-top: 0.5rem;
}
.export-key-once-warning {
    color: #b45309;
    font-size: 0.83rem;
    margin: 0.5rem 0 0.3rem;
}
.export-key-token-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0.5rem 0.75rem;
}
.export-key-token-box code,
.export-key-token-box input {
    font-size: 0.76rem;
    word-break: break-all;
    flex: 1;
}
.export-key-token-box input {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
    min-width: 0;
}

/* -- Tax Advantage Tracker � responsive column visibility --------------------- */
/* Default: all 9 columns visible */
#acct-tax-expenses-table th:nth-child(2),  /* Category */
#acct-tax-expenses-table td:nth-child(2),
#acct-tax-expenses-table th:nth-child(4),  /* Description */
#acct-tax-expenses-table td:nth-child(4),
#acct-tax-expenses-table th:nth-child(6),  /* Deductible */
#acct-tax-expenses-table td:nth-child(6),
#acct-tax-expenses-table th:nth-child(7),  /* Vendor */
#acct-tax-expenses-table td:nth-child(7),
#acct-tax-expenses-table th:nth-child(8),  /* Ref */
#acct-tax-expenses-table td:nth-child(8),
#acct-tax-expenses-table th:nth-child(9),  /* Actions */
#acct-tax-expenses-table td:nth-child(9) { display: table-cell; }

/* =1100px: hide Ref */
@media (max-width: 1100px) {
    #acct-tax-expenses-table th:nth-child(8),
    #acct-tax-expenses-table td:nth-child(8) { display: none; }
}
/* =920px: also hide Vendor */
@media (max-width: 920px) {
    #acct-tax-expenses-table th:nth-child(7),
    #acct-tax-expenses-table td:nth-child(7) { display: none; }
}
/* =780px: also hide Deductible */
@media (max-width: 780px) {
    #acct-tax-expenses-table th:nth-child(6),
    #acct-tax-expenses-table td:nth-child(6) { display: none; }
}
/* =640px: also hide Description */
@media (max-width: 640px) {
    #acct-tax-expenses-table th:nth-child(4),
    #acct-tax-expenses-table td:nth-child(4) { display: none; }
}
/* =480px: also hide Category � keep Date, Property, Amount, Actions */
@media (max-width: 480px) {
    #acct-tax-expenses-table th:nth-child(2),
    #acct-tax-expenses-table td:nth-child(2) { display: none; }
}
/* =360px: hide Actions too � minimal Date, Property, Amount */
@media (max-width: 360px) {
    #acct-tax-expenses-table th:nth-child(9),
    #acct-tax-expenses-table td:nth-child(9) { display: none; }
}

/* -- Tag select widget (collaboration webhook events) ------------------------- */
.tag-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.tag-select-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    min-height: 1.6rem;
}
.tag-select-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--accent, #10b981);
    color: #fff;
    border-radius: 999px;
    padding: 0.18rem 0.55rem 0.18rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.tag-select-tag .tag-remove {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    margin-left: 0.1rem;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    border-radius: 50%;
    transition: opacity 0.15s, background 0.15s;
}
.tag-select-tag .tag-remove:hover {
    opacity: 1;
    background: rgba(255,255,255,0.25);
}
.tag-select-dropdown {
    max-width: 260px;
    font-size: 0.85rem;
}

.voucher-input-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.voucher-input-row input {
    flex: 1;
    min-width: 160px;
}

/* ── Bay Layout Editor ───────────────────────────────────────────────────── */
.bl-page-wrap { display: grid; gap: 1rem; }

.bl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }

.bl-control-row { align-items: center; }
.bl-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.bl-row-field {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.bl-row-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    margin: 0;
}
.bl-size-input {
    width: 1rem;
    max-width: 1rem;
    text-align: center;
}
.bl-mode-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
}
.bl-property-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.bl-inline-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
}
.bl-inline-select {
    font-size: 0.82rem;
    padding: 0.35rem 0.55rem;
    height: 2.2rem;
}
.bl-control-btn {
    height: 2.2rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.bl-footer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.6rem;
}

.bl-legend-save-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bl-mode-toggle { display: inline-flex; gap: 0.35rem; align-items: center; }
.bl-mode-btn.is-active {
    background: var(--emerald);
    border-color: var(--emerald);
    color: #ffffff;
}
.bl-editor-wrap.is-view-mode .bl-palette { opacity: 0.55; }
.bl-editor-wrap.is-view-mode .bl-palette-cell { cursor: not-allowed; }
.bl-editor-wrap.is-view-mode .bl-cell { cursor: default; }
.bl-editor-wrap.is-view-mode select,
.bl-editor-wrap.is-view-mode input {
    pointer-events: auto;
}

.bl-level-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.bl-level-tab {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
.bl-level-tab.is-active { border-color: var(--emerald); color: var(--emerald); }
.bl-level-tab:hover:not(.is-active) { border-color: var(--emerald); }

.bl-edit-tools {
    display: grid;
    gap: 0.6rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--card-bg) 85%, var(--bg));
}
.bl-edit-tools.hidden-block {
    display: none;
}

.bl-ai-modal-card {
    width: min(760px, 96vw);
}
.bl-ai-body {
    display: grid;
    gap: 1rem;
    position: relative;
}
.bl-ai-upload-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(240px, 1.1fr);
    gap: 1rem;
    align-items: start;
}
.bl-ai-preview-pane {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    padding: 0.75rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bl-ai-preview {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 8px;
}
.bl-ai-placeholder {
    text-align: center;
}
.bl-ai-drop-pane {
    display: grid;
    gap: 0.5rem;
}
.bl-ai-drop-zone {
    min-height: 160px;
}
.bl-ai-drop-zone.is-disabled {
    opacity: 0.6;
    filter: grayscale(0.2);
}
.bl-modal-overlay[aria-busy="true"] .bl-ai-modal-card {
    position: relative;
}
.bl-modal-overlay[aria-busy="true"] .bl-ai-modal-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.08);
    border-radius: inherit;
    pointer-events: none;
}

@media (max-width: 720px) {
    .bl-ai-upload-grid {
        grid-template-columns: 1fr;
    }
}

.bl-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    padding: 0.55rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.bl-palette-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted, #94a3b8); margin-right: 0.2rem; }
.bl-palette-cell {
    width: 2.6rem;
    height: 1.9rem;
    border-radius: 6px;
    border: 2.5px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    transition: transform 0.1s, box-shadow 0.1s;
    user-select: none;
}
.bl-palette-cell.is-selected {
    border-color: #fff;
    transform: scale(1.12);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.22);
}
.bl-palette-cell:hover:not(.is-selected) { transform: scale(1.08); }
.bl-palette-empty   { background: #f8fafc;  border-color: #cbd5e1; color: #64748b; }
.bl-palette-bay     { background: #166534;  border-color: #15803d; color: #bbf7d0; }
.bl-palette-road    { background: #334155;  border-color: #475569; color: #94a3b8; }
.bl-palette-obstacle{ background: #44403c;  border-color: #57534e; color: #d6d3d1; }
.bl-palette-common  { background: #cbd5e1;  border-color: #94a3b8; color: #334155; }
.bl-palette-eraser  { background: var(--danger, #ef4444); border-color: transparent; color: #fff; }
.bl-palette-select  { background: #1e3a5f;  border-color: #3b82f6; color: #93c5fd; font-size: 0.88rem; }
.bl-palette-del-row { background: #7f1d1d;  border-color: #dc2626; color: #fca5a5; font-size: 0.62rem; letter-spacing: -0.5px; }
.bl-palette-del-col { background: #701a75;  border-color: #a21caf; color: #f0abfc; font-size: 0.62rem; letter-spacing: -0.5px; }

.bl-config-row { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: flex-end; }
.bl-config-row .form-group { margin: 0; min-width: 110px; }
.bl-config-row .form-group label { font-size: 0.8rem; }
.bl-config-row .form-group input { padding: 0.35rem 0.55rem; font-size: 0.82rem; }

.bl-level-name-input { max-width: 180px; font-size: 0.82rem; padding: 0.35rem 0.55rem; }

.bl-grid-scroll {
    overflow: auto;
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    max-height: 520px;
}
.bl-grid { display: inline-grid; gap: 4px; }

.bl-grid-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    align-items: start;
}

.bl-cell {
    width: 2.6rem;
    height: 2rem;
    border-radius: 6px;
    border: 1.5px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: transform 0.07s;
    text-transform: uppercase;
    overflow: visible;
    white-space: nowrap;
    flex-direction: column;
    gap: 1px;
}
.bl-cell:hover { transform: scale(1.14); z-index: 10; }

.bl-cell.type-empty    { background: #f8fafc; border-color: #cbd5e1; color: transparent; }
.bl-cell.type-road     { background: #334155; border-color: #475569; color: #94a3b8; }
.bl-cell.type-obstacle { background: #44403c; border-color: #57534e; color: #d6d3d1; }
.bl-cell.type-common   { background: #cbd5e1; border-color: #94a3b8; color: #334155; }

.bl-cell.type-bay.occ-available  { background: #166534; border-color: #16a34a; color: #bbf7d0; }
.bl-cell.type-bay.occ-occupied   { background: #7c2d12; border-color: #c2410c; color: #fed7aa; }
.bl-cell.type-bay.occ-booked     { background: #78350f; border-color: #d97706; color: #fde68a; border-style: dashed; }
.bl-cell.type-bay.occ-unassigned { background: #166534; border-color: #16a34a; color: #bbf7d0; }
.bl-cell.type-bay.occ-available,
.bl-cell.type-bay.occ-occupied,
.bl-cell.type-bay.occ-booked {
    color: #22c55e;
}

.bl-cell-plate { font-size: 0.5rem; opacity: 0.8; letter-spacing: 0.02em; }

.bl-info-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    padding: 0.9rem 1rem;
    display: grid;
    gap: 0.6rem;
    min-height: 140px;
}
.bl-info-title {
    font-size: 0.9rem;
    font-weight: 700;
}
.bl-info-body {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.5;
    display: grid;
    gap: 0.35rem;
}
.bl-info-row-features {
    align-items: flex-start;
}
.bl-info-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.bl-info-select {
    min-width: 180px;
}
.bl-info-row {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.bl-info-key {
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
}

.bl-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    align-items: center;
    font-size: 0.78rem;
}
.bl-legend-item { display: flex; align-items: center; gap: 0.35rem; }
.bl-legend-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 3px;
    border: 1.5px solid transparent;
    flex-shrink: 0;
}
.bl-legend-dot.occ-available  { background: #166534; border-color: #16a34a; }
.bl-legend-dot.occ-occupied   { background: #7c2d12; border-color: #c2410c; }
.bl-legend-dot.occ-booked     { background: #78350f; border-color: #d97706; }
.bl-legend-dot.type-road      { background: #334155; border-color: #475569; }
.bl-legend-dot.type-obstacle  { background: #44403c; border-color: #57534e; }
.bl-legend-dot.type-common    { background: #cbd5e1; border-color: #94a3b8; }
.bl-legend-dot.occ-unassigned { background: #f8fafc; border-color: #cbd5e1; }

.bl-stats-bar { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: 0.82rem; }
.bl-stat { font-weight: 700; }
.bl-stat-occupied  { color: #fb923c; }
.bl-stat-available { color: #4ade80; }
.bl-stat-booked    { color: #fbbf24; }

/* Dashboard mini layout panel */
.bay-layout-mini-panel { margin-top: 0.75rem; }
.bl-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.bl-mini-title { font-size: 0.88rem; font-weight: 700; }
.bl-mini-view-link {
    font-size: 0.78rem;
    color: var(--emerald);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.bl-mini-view-link:hover { text-decoration: underline; }
.bl-mini-grid-scroll { overflow: auto; max-height: 340px; }
.bl-mini-grid { display: inline-grid; gap: 3px; }

.bl-mini-cell {
    width: 2rem;
    height: 1.55rem;
    border-radius: 5px;
    border: 1.5px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: transform 0.07s;
    text-transform: uppercase;
    flex-direction: column;
    gap: 1px;
    overflow: visible;
}
.bl-mini-cell:hover { transform: scale(1.18); z-index: 10; }

.bl-mini-cell.type-empty    { background: #1e293b; border-color: #2d3e52; }
.bl-mini-cell.type-road     { background: #334155; border-color: #475569; }
.bl-mini-cell.type-obstacle { background: #44403c; border-color: #57534e; }
.bl-mini-cell.type-common   { background: #cbd5e1; border-color: #94a3b8; }
.bl-mini-cell.type-bay.occ-available  { background: #166534; border-color: #16a34a; color: #bbf7d0; }
.bl-mini-cell.type-bay.occ-occupied   { background: #7c2d12; border-color: #c2410c; color: #fed7aa; }
.bl-mini-cell.type-bay.occ-booked     { background: #78350f; border-color: #d97706; color: #fde68a; border-style: dashed; }
.bl-mini-cell.type-bay.occ-unassigned { background: #f8fafc; border-color: #cbd5e1; color: #475569; }
.bl-mini-cell.type-bay.occ-available,
.bl-mini-cell.type-bay.occ-occupied,
.bl-mini-cell.type-bay.occ-booked {
    color: #22c55e;
}

.bl-mini-cell-plate { font-size: 0.45rem; opacity: 0.75; }


.bl-mini-stats { display: flex; gap: 0.5rem 1.1rem; flex-wrap: wrap; font-size: 0.76rem; margin-top: 0.5rem; }
.bl-mini-no-layout {
    font-size: 0.83rem;
    color: var(--text-muted, #94a3b8);
    padding: 0.85rem 0;
    text-align: center;
}

/* Bay layout modal / dialog overlay */
.bl-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(2px);
    z-index: 1300;
    overflow-y: auto;
    padding: 1.5rem;
}
.bl-modal-overlay.is-open { display: flex; align-items: flex-start; justify-content: center; }
.bl-modal-card {
    width: min(980px, 100%);
    margin: 2rem auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    max-height: calc(100vh - 4rem);
    overflow: auto;
}
.bl-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.bl-modal-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.bl-modal-action-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}
.bl-modal-action-btn:hover,
.bl-modal-action-btn:focus-visible {
    border-color: var(--emerald);
}
.bl-modal-title { font-size: 1.1rem; font-weight: 700; margin: 0; }
.bl-modal-close {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}
.bl-modal-close:hover { border-color: var(--danger); color: var(--danger); }

/* Cell assign popup */
.bl-assign-popup {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem;
    z-index: 80;
    min-width: 180px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    display: none;
}
.bl-assign-popup.is-open { display: block; }
.bl-assign-popup select { width: 100%; font-size: 0.82rem; margin-bottom: 0.35rem; }
.bl-assign-popup-actions { display: flex; gap: 0.35rem; justify-content: flex-end; }

@media (max-width: 900px) {
    .bl-grid-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .bl-modal-overlay { padding: 0.75rem; }
    .bl-modal-card {
        margin: 0;
        max-height: calc(100vh - 1.5rem);
    }
    .bl-modal-card .bl-grid-scroll { max-height: 50vh; }
}

@media (max-width: 600px) {
    .bl-cell { width: 2rem; height: 1.6rem; font-size: 0.55rem; }
    .bl-mini-cell { width: 1.6rem; height: 1.3rem; font-size: 0.5rem; }
}

/* ── Reduced corner rounding for cards and controls ─────────────────────── */
.card,
.stat-card,
.pricing-card,
.account-nested-card,
.integration-vendor-card,
.billing-kpi-card,
.bay-card,
.prop-card,
.signup-tier-card,
.stripe-card-element,
.modal-content,
.modal-popup-card,
.busy-overlay-card,
.parkm8-dialog-card,
.support-shot-card,
.image-manage-card,
.archive-card,
.quick-rent-bookings-card,
.signup-plan-summary,
.auth-alert,
.support-content,
.product-hero-graphic,
.product-graphic-panel,
.product-capability-card,
.subscription-page-summary,
.subscription-restriction-note,
.subscription-payment-panel,
.subscription-payment-details-card,
.subscription-card-container,
.subscription-card-element,
.property-rentals-gantt-section,
.booking-action-popover,
.bl-info-panel,
.bl-modal-card,
.bl-assign-popup,
.ai-chat-panel,
.ai-chat-bubble,
.parker-bubble,
.product-video-player {
    border-radius: 8px;
}

.btn,
.btn-small,
.btn-xs,
.nav-links a,
.color-theme-row,
.active-label,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="time"],
input[type="date"],
input[type="datetime-local"],
select,
textarea,
input[type="file"] {
    border-radius: 6px;
}

.signup-tier-billing-group {
    margin: 1rem 0 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--card-bg) 92%, var(--bg));
    display: grid;
    gap: 0.7rem;
}

.signup-tier-billing-heading {
    padding: 0 0.3rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.signup-tier-billing-option {
    display: grid;
    grid-template-columns: 1.1rem 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-tier-billing-option.is-active {
    border-color: var(--emerald);
    background: color-mix(in srgb, var(--card-bg) 88%, var(--emerald));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--emerald) 40%, transparent);
}

.signup-tier-billing-option input[type="radio"] {
    margin-top: 0.18rem;
}

.signup-tier-billing-option strong {
    display: block;
    font-size: 0.96rem;
    color: var(--text);
}

.signup-tier-billing-option small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* ── Universal Search ─────────────────────────────────────────────────────── */
.nav-search {
    position: relative;
    flex: 1;
    max-width: 320px;
    min-width: 0;
}

.nav-search-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.86rem;
    padding: 0.35rem 0.75rem 0.35rem 2rem;
    outline: none;
    transition: border-color 0.15s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.55rem center;
}

.nav-search-input:focus {
    border-color: var(--emerald);
}

.nav-search-input::placeholder {
    color: #94a3b8;
}

.nav-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    z-index: 500;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.nav-search-category {
    padding: 0.5rem 0.75rem 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    border-bottom: 1px solid var(--border);
}

.nav-search-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.86rem;
    transition: background 0.1s;
}

.nav-search-item:hover {
    background: var(--bg);
}

.nav-search-item-icon {
    flex-shrink: 0;
    font-size: 1rem;
    width: 1.4rem;
    text-align: center;
}

.nav-search-item-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-search-item-sub {
    font-size: 0.76rem;
    color: #94a3b8;
    white-space: nowrap;
}

.nav-search-empty {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.86rem;
    color: #94a3b8;
}

@media (max-width: 980px) {
    .nav-search {
        order: 10;
        width: 100%;
        max-width: 100%;
    }
}
