.showroom-hero {
    background:
        radial-gradient(circle at 18% 20%, rgba(220, 38, 38, 0.26), transparent 28rem),
        linear-gradient(135deg, #07111f 0%, #111827 48%, #2b1114 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-copy {
    animation: showroom-rise 520ms ease-out both;
}

.hero-stat {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 0.375rem;
    padding: 0.85rem 1rem;
    backdrop-filter: blur(10px);
}

.hero-stat strong,
.hero-stat span {
    display: block;
}

.hero-stat strong {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.2;
}

.hero-stat span {
    color: #cbd5e1;
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.inventory-filter-panel,
[data-home-page] section.sticky {
    backdrop-filter: blur(16px);
}

[data-home-page] #vehicleFilters {
    top: 6.5rem;
}

@media (max-width: 767px) {
    [data-home-page] #vehicleFilters {
        top: 5.95rem;
    }
}

.filter-collapsible-panel {
    scrollbar-width: thin;
}

.manufacturer-search {
    position: relative;
    z-index: 12;
    margin-bottom: 1rem;
}

.manufacturer-combobox {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.manufacturer-combobox:focus-within {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.manufacturer-combobox input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 0.95rem;
}

.manufacturer-combobox input:focus {
    box-shadow: none;
}

.manufacturer-combobox input::-webkit-search-cancel-button {
    display: none;
}

.manufacturer-options {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    max-height: min(23rem, 58vh);
    overflow-y: auto;
    padding: 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.6rem;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.manufacturer-options[hidden] {
    display: none;
}

.manufacturer-option {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    color: #334155;
    text-align: left;
}

.manufacturer-option:hover,
.manufacturer-option.is-active {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.manufacturer-option[aria-selected="true"] {
    border-color: #fca5a5;
    background: #fff1f2;
}

.manufacturer-option strong,
.manufacturer-option small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manufacturer-option strong {
    font-size: 0.85rem;
}

.manufacturer-option small {
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.7rem;
}

.manufacturer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.45rem;
    background: #fff;
}

.manufacturer-logo img {
    max-width: 1.75rem;
    max-height: 1.75rem;
}

.manufacturer-logo-fallback {
    display: none;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.manufacturer-logo.logo-missing img {
    display: none;
}

.manufacturer-logo.logo-missing .manufacturer-logo-fallback {
    display: inline;
}

.manufacturer-logo-all {
    background: #0f172a;
    color: #fff;
}

.manufacturer-buttons {
    margin-bottom: 1rem;
}

.manufacturer-button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.55rem;
}

.manufacturer-button {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.55rem;
    color: #334155;
    display: flex;
    gap: 0.65rem;
    min-height: 3.25rem;
    min-width: 0;
    padding: 0.4rem 0.65rem;
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.manufacturer-button:hover {
    border-color: var(--brand-accent, #dc2626);
    color: var(--brand-primary, #991b1b);
    transform: translateY(-1px);
}

.manufacturer-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand-accent, #dc2626) 28%, transparent);
    outline-offset: 2px;
}

.manufacturer-button[aria-pressed="true"] {
    background: color-mix(in srgb, var(--brand-accent, #dc2626) 9%, white);
    border-color: var(--brand-accent, #dc2626);
    box-shadow: inset 0 0 0 1px var(--brand-accent, #dc2626);
    color: var(--brand-primary, #991b1b);
}

.manufacturer-button .manufacturer-logo {
    flex: 0 0 auto;
    height: 2.25rem;
    width: 2.25rem;
}

.manufacturer-button .manufacturer-logo img {
    max-height: 1.5rem;
    max-width: 1.5rem;
}

.manufacturer-button strong {
    font-size: 0.82rem;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 479px) {
    .manufacturer-button-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.manufacturer-check {
    visibility: hidden;
    color: #dc2626;
}

.manufacturer-option[aria-selected="true"] .manufacturer-check {
    visibility: visible;
}

.manufacturer-empty {
    grid-column: 1 / -1;
    padding: 1.5rem;
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 639px) {
    .manufacturer-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1023px) {
    .filter-collapsible-panel {
        max-height: min(68vh, 34rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 0.1rem;
    }

    .manufacturer-search {
        z-index: auto;
    }

    .manufacturer-options {
        position: static;
        margin-top: 0.35rem;
        max-height: 18rem;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    }
}

.listing-card {
    will-change: transform, box-shadow;
}

.stock-status-arriving {
    border: 1px solid #f59e0b;
    background: #fffbeb;
    color: #92400e;
}

.contact-price-label {
    letter-spacing: -0.02em;
}

.site-brand-logo {
    height: 2.5rem;
    max-width: 11rem;
    object-fit: contain;
    object-position: left center;
}

.site-brand-logo-footer {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

.contact-price-toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 800;
}

.contact-price-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.contact-price-toggle-track {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 2.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 180ms ease;
}

.contact-price-toggle-track span {
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
    transition: transform 180ms ease;
}

.contact-price-toggle input:checked + .contact-price-toggle-track {
    background: #dc2626;
}

.contact-price-toggle input:checked + .contact-price-toggle-track span {
    transform: translateX(1rem);
}

.contact-price-toggle input:focus-visible + .contact-price-toggle-track {
    outline: 3px solid rgba(220, 38, 38, 0.2);
    outline-offset: 2px;
}

.contact-price-form-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #f8fafc;
    cursor: pointer;
}

.contact-price-form-option input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.1rem;
    accent-color: #dc2626;
}

.contact-price-form-option strong,
.contact-price-form-option small {
    display: block;
}

.contact-price-form-option strong {
    color: #0f172a;
    font-size: 0.85rem;
}

.contact-price-form-option small {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.35;
}

.arriving-soon-ribbon {
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: rgba(120, 53, 15, 0.2);
    color: #fff;
    backdrop-filter: blur(6px);
    text-shadow: 0 1px 3px rgba(15, 23, 42, 0.9);
}

.arriving-soon-ribbon-card {
    right: 0.75rem;
    bottom: 0.75rem;
    width: min(11.5rem, calc(100% - 1.5rem));
}

.arriving-soon-ribbon-detail {
    right: 0.75rem;
    bottom: 0.75rem;
    width: min(13rem, calc(100% - 1.5rem));
}

.arriving-soon-ribbon strong,
.arriving-soon-ribbon small {
    display: block;
}

.arriving-soon-ribbon strong {
    font-size: 0.7rem;
    letter-spacing: 0.13em;
}

.arriving-soon-ribbon small {
    margin-top: 0.05rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.61rem;
    font-weight: 700;
}

.arriving-soon-notice {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #92400e;
}

@media (min-width: 640px) {
    .arriving-soon-ribbon-detail {
        right: 1rem;
        width: 13rem;
    }
}

.listing-card img,
a,
button,
input,
select {
    transition-property: color, background-color, border-color, box-shadow, transform, opacity;
    transition-duration: 200ms;
    transition-timing-function: ease;
}

input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

@keyframes showroom-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prose h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.35rem;
}

.editable-page-content {
    color: #334155;
    font-size: 1rem;
    line-height: 1.8;
}

.editable-page-content h2 {
    color: #020617;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 2rem 0 0.75rem;
}

.editable-page-content h3 {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 1.5rem 0 0.5rem;
}

.editable-page-content p {
    margin-bottom: 1rem;
}

.editable-page-content ul {
    list-style: disc;
    margin: 0.5rem 0 1.25rem;
    padding-left: 1.4rem;
}

.editable-page-content li {
    margin-bottom: 0.35rem;
}

.topbar-scroll-nav {
    scrollbar-width: none;
}

.topbar-scroll-nav::-webkit-scrollbar {
    display: none;
}

.topbar-nav-link {
    border-bottom: 2px solid transparent;
    color: #64748b;
    flex: 0 0 auto;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.2rem 0.05rem 0.45rem;
    white-space: nowrap;
}

.topbar-nav-link:hover,
.topbar-nav-link.is-active {
    border-bottom-color: #ef4444;
    color: #0f172a;
}

.topbar-main {
    align-items: center;
    min-height: 4rem;
}

@media (max-width: 767px) {
    .topbar-main {
        min-height: 3.6rem;
    }

    .topbar-main .fa-car-side {
        font-size: 1.55rem;
    }

    .topbar-main .text-xl {
        font-size: 1rem;
        line-height: 1.1;
        max-width: 58vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-scroll-nav {
        gap: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0.45rem 1rem 0.5rem;
    }

    .topbar-nav-link {
        font-size: 0.78rem;
        padding-bottom: 0.28rem;
    }
}

.wp-admin-shell {
    min-height: 100vh;
    background: #f0f0f1;
    color: #1d2327;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wp-admin-sidebar {
    background: #1d2327;
    color: #c3c4c7;
    display: flex;
    flex-direction: column;
    height: 100vh;
    left: 0;
    position: fixed;
    top: 0;
    width: 232px;
    z-index: 70;
}

.wp-admin-sidebar-close {
    color: #fff;
    display: none;
    height: 40px;
    position: absolute;
    right: 0.25rem;
    top: 0.35rem;
    width: 40px;
    z-index: 2;
}

.wp-admin-brand {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f0f0f1;
    display: flex;
    gap: 0.75rem;
    min-height: 52px;
    padding: 0.75rem 1rem;
}

.wp-admin-brand:hover {
    color: #fff;
}

.wp-admin-brand-mark {
    align-items: center;
    background: #2271b1;
    border-radius: 2px;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.wp-admin-brand-logo {
    height: 26px;
    max-width: 28px;
    object-fit: contain;
}

.ai-studio-hero {
    background: linear-gradient(120deg, #3b0764, #0f172a);
    border: 1px solid #7e22ce;
}

.ai-tool-grid {
    display: grid;
    gap: 1.5rem;
}

.ai-tool-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    padding: 1.25rem;
}

.ai-tool-card > div:first-child > div {
    min-width: 0;
}

.ai-tool-card h2,
.ai-tool-card p {
    overflow-wrap: anywhere;
}

.ai-tool-icon {
    align-items: center;
    border-radius: 0.5rem;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.ai-tool-icon.is-campaign { background: #f3e8ff; color: #7e22ce; }
.ai-tool-icon.is-reply { background: #dbeafe; color: #1d4ed8; }
.ai-tool-icon.is-metadata { background: #d1fae5; color: #047857; }

.ai-tool-button {
    align-items: center;
    border-radius: 0.375rem;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.25rem;
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    width: 100%;
}

.ai-tool-button:disabled { opacity: 0.5; }
.ai-tool-button.is-campaign { background: #9333ea; }
.ai-tool-button.is-campaign:hover { background: #7e22ce; }
.ai-tool-button.is-reply { background: #2563eb; }
.ai-tool-button.is-reply:hover { background: #1d4ed8; }
.ai-tool-button.is-metadata { background: #059669; }
.ai-tool-button.is-metadata:hover { background: #047857; }

.ai-tool-output {
    border: 1px solid;
    border-radius: 0.375rem;
    margin-top: 1rem;
    padding: 1rem;
}

.ai-tool-output.is-campaign { background: #faf5ff; border-color: #f3e8ff; color: #581c87; }
.ai-tool-output.is-reply { background: #eff6ff; border-color: #dbeafe; color: #1e3a8a; }
.ai-tool-output.is-metadata { background: #ecfdf5; border-color: #d1fae5; color: #064e3b; }

@media (min-width: 1024px) {
    .ai-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.wp-admin-brand strong,
.wp-admin-brand small {
    display: block;
    line-height: 1.15;
}

.wp-admin-brand small {
    color: #a7aaad;
    font-size: 0.72rem;
    margin-top: 0.15rem;
}

.wp-admin-menu {
    flex: 1;
    padding: 0.5rem 0;
}

.wp-admin-sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0;
}

.wp-admin-menu-item {
    align-items: center;
    border-left: 4px solid transparent;
    color: #c3c4c7;
    display: flex;
    font-size: 0.88rem;
    font-weight: 500;
    gap: 0.75rem;
    min-height: 38px;
    padding: 0.48rem 0.9rem 0.48rem 0.8rem;
}

.wp-admin-menu-item i {
    color: #a7aaad;
    text-align: center;
    width: 20px;
}

.wp-admin-menu-item:hover,
.wp-admin-menu-item.is-active {
    background: #2c3338;
    color: #fff;
}

.wp-admin-menu-item.is-active {
    border-left-color: #72aee6;
}

.wp-admin-menu-item.is-active i,
.wp-admin-menu-item:hover i {
    color: #72aee6;
}

.wp-admin-main {
    margin-left: 232px;
    min-height: 100vh;
}

.wp-admin-topbar {
    align-items: center;
    background: #1d2327;
    color: #c3c4c7;
    display: flex;
    gap: 1rem;
    height: 36px;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 60;
}

.wp-admin-topbar-link,
.wp-admin-user {
    align-items: center;
    display: inline-flex;
    font-size: 0.82rem;
    gap: 0.4rem;
}

.wp-admin-topbar-link:hover {
    color: #72aee6;
}

.wp-admin-topbar-spacer {
    flex: 1;
}

.wp-admin-mobile-toggle {
    color: #fff;
    display: none;
}

.wp-admin-content {
    padding: 1.5rem;
}

.wp-admin-page-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.wp-admin-page-heading h1 {
    color: #1d2327;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.3;
}

.wp-admin-page-heading p {
    color: #646970;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.wp-admin-content .min-h-screen {
    min-height: auto;
}

@media (max-width: 900px) {
    .wp-admin-sidebar {
        transform: translateX(-100%);
        transition: transform 180ms ease;
    }

    .wp-admin-shell.admin-menu-open .wp-admin-sidebar {
        transform: translateX(0);
    }

    .wp-admin-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .wp-admin-brand {
        padding-right: 3rem;
    }

    .wp-admin-main {
        margin-left: 0;
    }

    .wp-admin-mobile-toggle {
        display: inline-flex;
    }

    .wp-admin-content {
        padding: 1rem;
    }
}
.blog-cover-image {
    aspect-ratio: 16 / 9;
}

/* Contact-action reporting */
.contact-report-hero {
    align-items: center;
    background: linear-gradient(120deg, #0f172a 0%, #1e293b 68%, var(--brand-900) 145%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.85rem;
    color: #fff;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    overflow: hidden;
    padding: 1.5rem 1.75rem;
    position: relative;
}

.contact-report-hero::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 65%);
    content: "";
    height: 14rem;
    position: absolute;
    right: -4rem;
    top: -7rem;
    width: 14rem;
}

.contact-report-eyebrow {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-report-hero h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-top: 0.3rem;
}

.contact-report-hero p:not(.contact-report-eyebrow) {
    color: #cbd5e1;
    font-size: 0.82rem;
    margin-top: 0.4rem;
    max-width: 45rem;
}

.contact-report-period {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    position: relative;
    z-index: 1;
}

.contact-metric-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1rem;
}

.contact-metric-card {
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: flex;
    gap: 0.9rem;
    min-width: 0;
    padding: 1rem;
}

.contact-metric-icon {
    align-items: center;
    background: #f1f5f9;
    border-radius: 0.65rem;
    color: #475569;
    display: inline-flex;
    flex: 0 0 2.7rem;
    font-size: 1.05rem;
    height: 2.7rem;
    justify-content: center;
}

.contact-metric-whatsapp .contact-metric-icon { background: #dcfce7; color: #15803d; }
.contact-metric-call .contact-metric-icon { background: #dbeafe; color: #1d4ed8; }
.contact-metric-visitors .contact-metric-icon { background: #fef3c7; color: #b45309; }
.contact-metric-card p { color: #64748b; font-size: 0.72rem; font-weight: 700; }
.contact-metric-card strong { color: #0f172a; display: block; font-size: 1.55rem; font-weight: 900; line-height: 1.1; margin-top: 0.15rem; }
.contact-metric-card small { color: #94a3b8; display: block; font-size: 0.66rem; margin-top: 0.2rem; }

.contact-report-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    margin-top: 1rem;
    overflow: hidden;
}

.contact-filter-bar {
    align-items: end;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    padding: 1rem 1.25rem;
}

.contact-filter-bar label span {
    color: #64748b;
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.contact-filter-bar select {
    border-color: #cbd5e1;
    border-radius: 0.45rem;
    font-size: 0.78rem;
    min-height: 2.55rem;
    padding: 0.5rem 2rem 0.5rem 0.7rem;
    width: 100%;
}

.contact-filter-bar button {
    align-items: center;
    background: var(--brand-700);
    border-radius: 0.45rem;
    color: #fff;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 800;
    gap: 0.45rem;
    justify-content: center;
    min-height: 2.55rem;
    padding: 0.55rem 1rem;
}

.contact-filter-bar button:hover { background: var(--brand-800); }

.contact-list-header {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.contact-list-header h2 { color: #0f172a; font-size: 1rem; font-weight: 800; }
.contact-list-header p { color: #64748b; font-size: 0.72rem; margin-top: 0.15rem; }
.contact-type-legend { display: flex; gap: 0.5rem; }
.contact-type-legend span { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 999px; color: #64748b; font-size: 0.67rem; font-weight: 700; padding: 0.35rem 0.6rem; }

.contact-actions-table {
    border-collapse: collapse;
    table-layout: auto;
    width: 100%;
}

.contact-actions-table th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    padding: 0.65rem 0.75rem;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.contact-actions-table td {
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.74rem;
    padding: 0.7rem 0.75rem;
    vertical-align: middle;
}

.contact-actions-table tbody tr:hover { background: #fafcfe; }
.contact-actions-table tbody tr:last-child td { border-bottom: 0; }

.contact-type-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.66rem;
    font-weight: 800;
    gap: 0.3rem;
    padding: 0.35rem 0.55rem;
    white-space: nowrap;
}

.contact-type-whatsapp { background: #dcfce7; color: #166534; }
.contact-type-call { background: #dbeafe; color: #1e40af; }

.contact-vehicle-cell { align-items: center; display: flex; gap: 0.65rem; min-width: 13rem; }
.contact-vehicle-cell img, .contact-vehicle-placeholder { border: 1px solid #e2e8f0; border-radius: 0.45rem; flex: 0 0 3.5rem; height: 2.65rem; object-fit: cover; width: 3.5rem; }
.contact-vehicle-placeholder { align-items: center; background: #f1f5f9; color: #94a3b8; display: inline-flex; justify-content: center; }
.contact-vehicle-cell strong { color: #0f172a; display: block; font-size: 0.76rem; font-weight: 800; line-height: 1.25; }
.contact-vehicle-cell small { color: #64748b; display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.64rem; margin-top: 0.2rem; }

.contact-location { align-items: flex-start; display: flex; gap: 0.45rem; min-width: 10rem; }
.contact-location > i { color: var(--brand-600); margin-top: 0.15rem; }
.contact-location strong, .contact-timestamp strong { color: #334155; display: block; font-size: 0.71rem; font-weight: 750; }
.contact-location small, .contact-timestamp small { color: #94a3b8; display: block; font-size: 0.62rem; margin-top: 0.15rem; }
.contact-location.is-unavailable > i { color: #cbd5e1; }
.contact-location.is-unavailable strong { color: #94a3b8; }

.contact-source-label { background: #f1f5f9; border-radius: 0.35rem; color: #475569; display: inline-block; font-size: 0.65rem; font-weight: 700; padding: 0.35rem 0.5rem; white-space: nowrap; }
.contact-timestamp { min-width: 6.4rem; white-space: nowrap; }
.contact-view-link { align-items: center; border: 1px solid #cbd5e1; border-radius: 0.4rem; color: #475569; display: inline-flex; height: 2rem; justify-content: center; width: 2rem; }
.contact-view-link:hover { border-color: var(--brand-500); color: var(--brand-700); }

.contact-actions-mobile { display: none; }
.contact-empty-state { padding: 4rem 1.5rem; text-align: center; }
.contact-empty-state > span { align-items: center; background: #f1f5f9; border-radius: 999px; color: #94a3b8; display: inline-flex; font-size: 1.2rem; height: 3.5rem; justify-content: center; width: 3.5rem; }
.contact-empty-state h3 { color: #0f172a; font-size: 1rem; font-weight: 800; margin-top: 0.8rem; }
.contact-empty-state p { color: #64748b; font-size: 0.76rem; margin-top: 0.25rem; }

.contact-pagination {
    align-items: center;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    font-size: 0.72rem;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
}

.contact-pagination-links { align-items: center; display: flex; gap: 0.3rem; }
.contact-pagination-links a { align-items: center; background: #fff; border: 1px solid #cbd5e1; border-radius: 0.35rem; color: #475569; display: inline-flex; font-weight: 700; gap: 0.35rem; height: 2rem; justify-content: center; min-width: 2rem; padding: 0 0.55rem; }
.contact-pagination-links a:hover { border-color: var(--brand-400); color: var(--brand-700); }
.contact-pagination-links a.is-current { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.contact-pagination-gap { color: #94a3b8; padding: 0 0.2rem; }

.contact-privacy-note { align-items: flex-start; background: #fffbeb; border: 1px solid #fde68a; border-radius: 0.65rem; color: #854d0e; display: flex; font-size: 0.7rem; gap: 0.65rem; line-height: 1.55; margin-top: 1rem; padding: 0.8rem 1rem; }
.contact-privacy-note > i { margin-top: 0.15rem; }

.sold-contact-action {
    align-items: center;
    background: #e5e7eb;
    border: 2px solid #d1d5db;
    border-radius: 0.375rem;
    color: #94a3b8;
    cursor: not-allowed;
    display: flex;
    font-size: 0.875rem;
    font-weight: 700;
    gap: 0.5rem;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    pointer-events: none;
    user-select: none;
    width: 100%;
}

.sold-contact-action-mobile {
    flex-shrink: 0;
    min-height: 3rem;
    width: auto;
}

.sold-contact-icon {
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 1100px) {
    .contact-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-actions-desktop { overflow-x: auto; }
    .contact-actions-table { min-width: 850px; }
}

@media (max-width: 760px) {
    .contact-report-hero { align-items: flex-start; flex-direction: column; gap: 1rem; padding: 1.25rem; }
    .contact-report-period { align-self: flex-start; }
    .contact-filter-bar { grid-template-columns: 1fr; }
    .contact-filter-bar button { width: 100%; }
    .contact-list-header { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
    .contact-actions-desktop { display: none; }
    .contact-actions-mobile { display: block; }
    .contact-mobile-card { border-bottom: 1px solid #e2e8f0; padding: 1rem; }
    .contact-mobile-card:last-child { border-bottom: 0; }
    .contact-mobile-card header { align-items: center; display: flex; justify-content: space-between; }
    .contact-mobile-card time { color: #64748b; font-size: 0.66rem; }
    .contact-mobile-card .contact-vehicle-cell { margin-top: 0.85rem; min-width: 0; }
    .contact-mobile-card dl { background: #f8fafc; border-radius: 0.5rem; display: grid; gap: 0.6rem; grid-template-columns: 1fr 1fr; margin-top: 0.8rem; padding: 0.7rem; }
    .contact-mobile-card dt { color: #94a3b8; font-size: 0.59rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
    .contact-mobile-card dd { color: #334155; font-size: 0.7rem; font-weight: 700; margin-top: 0.15rem; }
    .contact-mobile-card > a { color: var(--brand-700); display: inline-flex; font-size: 0.7rem; font-weight: 800; gap: 0.35rem; margin-top: 0.8rem; }
    .contact-pagination { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
    .contact-pagination-links { flex-wrap: wrap; }
    .contact-pagination-links a span { display: none; }
}

@media (max-width: 480px) {
    .contact-metric-grid { grid-template-columns: 1fr; }
    .contact-type-legend { flex-wrap: wrap; }
}
