.dealers-header-dashboard {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

.dealers-finder-head h1,
.dealers-profile-page h1,
.dealers-auth-card h1,
.dealers-portal-hero h1 {
    margin: 0 0 0.4rem;
}

.dealers-finder-lead,
.dealers-card-meta {
    color: var(--muted, #b8b3ab);
}

.dealers-profile-page .dealers-address {
    margin: 0 0 0.85rem;
    line-height: 1.45;
}

.dealers-product-context {
    padding: 0.65rem 0.9rem;
    background: var(--accent-light, #3a2218);
    border-radius: var(--radius, 6px);
}

.dealers-product-context .dealers-all-link {
    display: inline-block;
    margin-left: 0.65rem;
}

.dealers-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    margin: 0.4rem 0 0;
}

.dealers-brand-link {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: var(--surface, #1c1c1c);
    color: inherit;
    text-decoration: none;
    font-size: 0.82rem;
}

a.dealers-brand-link:hover {
    color: var(--accent, #e85c24);
}

.dealers-brand-list-wrap {
    margin: 1.25rem 0 0;
}

.dealers-brand-list-intro {
    margin: 0 0 0.45rem;
}

.dealers-brand-list {
    margin: 0;
    padding-left: 1.25rem;
}

.dealers-brand-list .dealers-brand-link {
    padding: 0;
    background: none;
    border-radius: 0;
}

.dealers-finder-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
    margin: 1.25rem 0 1rem;
}

.dealers-finder-form .form-group {
    margin-bottom: 0;
    flex: 1 1 14rem;
    min-width: min(100%, 14rem);
}

.dealers-finder-form .form-group input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.dealers-finder-form .form-group select {
    background: var(--bg, #121212);
    color: var(--text, #f4f1ec);
    border-color: var(--border, #2c2c2c);
    color-scheme: dark;
}

.dealers-finder-form .form-group input::placeholder {
    color: #7a756e;
}

.dealers-finder-form .form-group input:focus,
.dealers-finder-form .form-group select:focus {
    outline: none;
    border-color: var(--accent, #e85c24);
}

.dealers-finder-form .form-group select option {
    background: #1a1a1a;
    color: #f4f1ec;
}

.dealers-portal-page .form-group input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.dealers-portal-page .form-group select,
.dealers-portal-page .form-group textarea {
    background: var(--bg, #121212);
    color: var(--text, #f4f1ec);
    border-color: var(--border, #2c2c2c);
    color-scheme: dark;
}

.dealers-portal-page .form-group input::placeholder,
.dealers-portal-page .form-group textarea::placeholder {
    color: #7a756e;
}

.dealers-portal-page .form-group input:focus,
.dealers-portal-page .form-group select:focus,
.dealers-portal-page .form-group textarea:focus {
    outline: none;
    border-color: var(--accent, #e85c24);
}

.dealers-portal-page .form-group select option,
.dealers-portal-page select option {
    background: #1a1a1a;
    color: #f4f1ec;
}

.dealers-finder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    padding-bottom: 0.15rem;
}

.dealers-form-footer {
    margin: 1rem 0 0;
}

.dealers-lead-status {
    display: grid;
    grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr) auto;
    gap: 0.4rem 0.55rem;
    align-items: center;
}

.dealers-lead-status .form-group {
    margin-bottom: 0;
}

.dealers-leads .dealers-lead-status select,
.dealers-leads .dealers-lead-status input[type="text"] {
    width: 100%;
    margin: 0;
    padding: 0.42rem 0.65rem;
    font-size: 0.85rem;
}

.dealers-leads .dealers-lead-status .button {
    margin: 0;
    padding: 0.42rem 0.85rem;
}

.dealers-auth-card.contact-form-wrap,
.dealers-lead-card.contact-form-wrap {
    background: transparent;
    border: 0;
    padding: 0;
}

.dealers-auth-card .contact-form h1,
.dealers-lead-card .contact-form h2 {
    margin: 0 0 1.25rem;
}

.dealers-form .form-group input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.dealers-form .form-group select,
.dealers-form .form-group textarea {
    background: var(--bg, #121212);
    color: var(--text, #f4f1ec);
    border-color: var(--border, #2c2c2c);
    color-scheme: dark;
    caret-color: var(--text, #f4f1ec);
}

.dealers-form .form-group input::placeholder,
.dealers-form .form-group textarea::placeholder {
    color: #7a756e;
}

.dealers-form .form-group input:hover,
.dealers-form .form-group input:focus,
.dealers-form .form-group select:focus,
.dealers-form .form-group textarea:focus {
    outline: none;
    background: var(--bg, #121212);
    color: var(--text, #f4f1ec);
    border-color: var(--accent, #e85c24);
    box-shadow: none;
}

.dealers-form .form-group input:-webkit-autofill,
.dealers-form .form-group input:-webkit-autofill:hover,
.dealers-form .form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f4f1ec;
    caret-color: #f4f1ec;
    border-color: var(--border, #2c2c2c);
    box-shadow: 0 0 0 1000px #121212 inset;
    transition: background-color 99999s ease-out 0s;
}

.dealers-form .form-group input:-webkit-autofill:focus {
    border-color: var(--accent, #e85c24);
}

.dealers-lead-form .form-group input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.dealers-lead-form .form-group textarea {
    background: var(--bg, #121212);
    color: var(--text, #f4f1ec);
    border-color: var(--border, #2c2c2c);
    color-scheme: dark;
}

.dealers-lead-form .form-group input::placeholder,
.dealers-lead-form .form-group textarea::placeholder {
    color: var(--muted, #b8b3ab);
}

.dealers-finder-count {
    margin: 0 0 0.75rem;
    color: var(--muted, #b8b3ab);
}

.dealers-finder-grid {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.25rem;
    align-items: stretch;
}

.dealers-finder-grid::after,
.dealers-inventory::after,
.dealers-docs::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    border-radius: var(--radius-lg, 10px);
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 28%,
        rgba(232, 92, 36, 0.18) 50%,
        transparent 72%,
        transparent 100%
    );
    background-size: 220% 100%;
    transition: opacity 0.35s ease;
}

.dealers-finder.is-loading .dealers-finder-grid::after,
.dealers-inventory.is-loading::after,
.dealers-docs.is-loading::after {
    opacity: 1;
    animation: dealers-scan 3.1s ease-in-out infinite;
}

.dealers-finder-grid:not(.dealers-finder-grid--list) {
    height: min(70vh, 720px);
    min-height: 420px;
}

.dealers-finder-grid--list {
    grid-template-columns: 1fr;
}

.dealers-map {
    position: relative;
    z-index: 1;
    isolation: isolate;
    border-radius: var(--radius-lg, 10px);
    overflow: hidden;
    background: #1a1a1a;
    transition: filter 0.45s ease, opacity 0.45s ease;
}

.dealers-finder-grid:not(.dealers-finder-grid--list) .dealers-map {
    height: 100%;
    min-height: 0;
}

.dealers-map .leaflet-tile-pane {
    filter: invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.92) saturate(0.25);
}

.dealers-map .leaflet-control-zoom a {
    background: #1a1a1a;
    color: #f4f1ec;
    border-color: #2c2c2c;
}

.dealers-map .leaflet-control-attribution {
    display: none;
}

.dealers-map-pin {
    background: none;
    border: 0;
}

.dealers-map-pin-mark {
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 auto;
    border: 2px solid #1a1a1a;
    border-radius: 50% 50% 50% 0;
    background: #e85c24;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    transform: rotate(-45deg);
}

.dealers-map .leaflet-popup-content-wrapper,
.dealers-map .leaflet-popup-tip {
    background: #1a1a1a;
    color: #f4f1ec;
    border: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.dealers-map .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0.15rem;
}

.dealers-map.leaflet-container,
.dealers-map .leaflet-popup-content-wrapper,
.dealers-map .leaflet-popup-content,
.dealers-map-popup {
    font-family: var(--font-sans, "DM Sans", system-ui, sans-serif);
}

.dealers-map .leaflet-popup-content {
    margin: 1.25rem 1.45rem 1.35rem;
    min-width: 21rem;
    font-size: 1.05rem;
    line-height: 1.4;
}

.dealers-map-popup {
    display: grid;
    gap: 0.45rem;
}

.dealers-closest-choice {
    margin: 0;
    font-family: var(--font-sans, "DM Sans", system-ui, sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent, #e85c24);
}

.dealers-list .dealers-closest-choice {
    margin: 0 0 0.2rem;
}

.dealers-map-popup-name {
    display: block;
    font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--accent, #e85c24);
}

.dealers-map-popup-city {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e8e4dc;
}

.dealers-map-popup-distance {
    font-size: 0.98rem;
    font-weight: 700;
    color: #e85c24;
}

.dealers-map-popup-sells {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #c4bfb6;
}

.dealers-map-popup-sells-label {
    display: block;
    margin-bottom: 0.08rem;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8f8a82;
}

.dealers-map .leaflet-popup-content a,
.dealers-map-popup-contact {
    margin-top: 0.55rem;
    justify-self: start;
    font-family: var(--font-sans, "DM Sans", system-ui, sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    background: #2c2c2c;
    color: #f4f1ec;
    border: 1px solid #3d3d3d;
    text-decoration: none;
}

.dealers-map-popup-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.4rem;
    margin-top: 0.45rem;
    width: 100%;
}

.dealers-map-popup-actions a,
.dealers-map-popup-actions .button,
.dealers-map-popup-actions .dealers-map-popup-contact {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: auto;
    min-width: 0;
    margin-top: 0;
    padding: 0.42rem 0.55rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.15;
}

.dealers-map-popup-icon {
    width: 0.85rem;
    height: 0.85rem;
    flex: 0 0 auto;
}

.dealers-map .leaflet-popup-content .dealers-map-popup-contact {
    border-color: rgba(232, 92, 36, 0.7);
}

.dealers-map .leaflet-popup-content a:hover,
.dealers-map-popup-contact:hover {
    background: #3a3a3a;
    color: #fff;
    border-color: #4a4a4a;
}

.dealers-map .leaflet-popup-content .dealers-map-popup-contact:hover {
    border-color: var(--accent, #e85c24);
}

.dealers-map--single {
    min-height: 260px;
    margin-top: 1rem;
}

.dealers-list-wrap {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: filter 0.45s ease, opacity 0.45s ease;
}

.dealers-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
    align-content: start;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8c4bc var(--surface, #1a1a1a);
}

.dealers-list::-webkit-scrollbar {
    width: 8px;
}

.dealers-list::-webkit-scrollbar-track {
    background: var(--surface, #1a1a1a);
    border-radius: 999px;
}

.dealers-list::-webkit-scrollbar-thumb {
    background: #c8c4bc;
    border-radius: 999px;
}

.dealers-list::-webkit-scrollbar-thumb:hover {
    background: #ddd9d1;
}

.dealers-card,
.dealers-lead {
    background: var(--surface, #1a1a1a);
    border: 1px solid var(--border, #2c2c2c);
    border-radius: var(--radius-lg, 10px);
    padding: 1rem 1.1rem;
}

.dealers-card h2 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
}

.dealers-list .dealers-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem 1.25rem;
    align-items: center;
    align-self: start;
    padding: 0.85rem 1rem;
}

.dealers-list .dealers-card-main,
.dealers-list .dealers-card h2,
.dealers-list .dealers-card p {
    margin: 0;
}

.dealers-list .dealers-card-main {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.dealers-list .dealers-card h2 {
    font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.dealers-list .dealers-card-name {
    color: inherit;
    text-decoration: none;
}

.dealers-list .dealers-card-name:hover {
    color: var(--accent, #e85c24);
}

.dealers-list .dealers-card.is-active {
    outline: 1px solid rgba(232, 92, 36, 0.45);
}

.dealers-list .dealers-card-sells {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #b8b3aa;
}

.dealers-list .dealers-card-sells-label {
    display: block;
    margin-bottom: 0.1rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8f8a82;
}

.dealers-list .dealers-card-meta {
    font-size: 1.08rem;
    color: #d4cfc6;
}

.dealers-list .dealers-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.85rem;
    color: #c4bfb6;
}

.dealers-list .dealers-card-action {
    justify-self: end;
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    text-align: center;
}

.dealers-list .dealers-card-action .button {
    white-space: nowrap;
    background: #2c2c2c;
    color: #f4f1ec;
    border: 1px solid #3d3d3d;
}

.dealers-list .dealers-card-action .button:hover {
    background: #3a3a3a;
    color: #fff;
    border-color: #4a4a4a;
}

.dealers-list .dealers-card-phone {
    font-size: 0.98rem;
}

.dealers-list .dealers-card--ghost {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    min-height: 4.75rem;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0%, rgba(232, 92, 36, 0.08) 50%, transparent 100%),
        var(--surface, #1a1a1a);
    background-size: 180% 100%, auto;
    animation: dealers-shimmer 1.2s ease-in-out infinite;
}

.dealers-list .dealers-card--ghost span {
    display: block;
    height: 0.7rem;
    border-radius: 4px;
    background: #2c2c2c;
}

.dealers-list .dealers-card--ghost span:nth-child(1) {
    width: 62%;
}

.dealers-list .dealers-card--ghost span:nth-child(2) {
    width: 44%;
}

.dealers-list .dealers-card--ghost span:nth-child(3) {
    width: 28%;
    height: 0.55rem;
}

.dealers-distance {
    margin-left: 0.4rem;
    color: var(--accent, #e85c24);
}

.dealers-profile-grid,
.dealers-auth-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
}

.dealers-auth-wrap {
    max-width: 36rem;
    grid-template-columns: 1fr;
    margin: 0 auto;
}

.dealers-success {
    color: var(--success, #86efac);
}

.dealers-back {
    margin-bottom: 1rem;
}

.dealers-portal-frame {
    --dealers-bar-h: 5.25rem;
}

.dealers-portal-hero.page-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    z-index: 0;
    min-height: 0;
    margin-top: calc(-1 * var(--dealers-bar-h));
    padding: calc(var(--dealers-bar-h) + 1rem) 0 1.5rem;
}

.dealers-portal-hero--home {
    padding: calc(var(--dealers-bar-h) + 1.15rem) 0 1.65rem;
}

.dealers-portal-bar {
    position: sticky;
    top: calc(4.25rem - 24px);
    z-index: 90;
    padding: 0;
    background: transparent;
}

.dealers-portal-bar-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem 1.25rem;
    padding: 0.55rem 0;
    border-radius: 0;
    border-bottom: 1px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, backdrop-filter 0.18s ease, padding 0.18s ease;
}

.dealers-portal-bar.is-stuck .dealers-portal-bar-inner {
    padding: 2.5rem 0 0.55rem;
    background: rgba(12, 12, 12, 0.94);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dealers-portal-hero-title {
    position: relative;
    z-index: 1;
    padding-top: 0.15rem;
}

.dealers-portal-hero-title h1,
.dealers-portal-hero--home h1 {
    margin: 0;
    font-size: clamp(2.05rem, 3.6vw, 2.85rem);
    line-height: 1.05;
}

.dealers-portal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    margin: 0;
}

.dealers-portal-link {
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius, 6px);
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.dealers-portal-link:hover {
    color: #fff;
}

.dealers-portal-link.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.dealers-portal-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17.5rem, 22rem);
    gap: 0.85rem 1rem;
    align-items: stretch;
}

.dealers-dash-main {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.dealers-dash-top {
    display: grid;
    grid-template-columns: minmax(7.5rem, 1fr) minmax(7.5rem, 1fr) minmax(0, 2.2fr);
    gap: 0.75rem;
    margin: 0;
    align-items: stretch;
}

.dealers-dash-top--no-lookup {
    grid-template-columns: 1fr 1fr;
}

.dealers-portal-chart {
    background: var(--surface, #1a1a1a);
    border: 1px solid var(--border, #2c2c2c);
    border-radius: var(--radius, 6px);
    padding: 0.95rem 1.05rem 1rem;
}

.dealers-portal-chart-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 0.55rem;
}

.dealers-portal-chart-head .dealers-dash-kicker {
    margin: 0 0 0.2rem;
}

.dealers-portal-chart-meta {
    margin: 0;
    color: var(--muted, #b8b3ab);
    font-size: 0.84rem;
}

.dealers-portal-chart .dealers-chart-svg {
    display: block;
    width: 100%;
    height: auto;
}

.dealers-portal-chart .dash-chart-grid {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 1;
    stroke-dasharray: 3 5;
}

.dealers-portal-chart .dash-chart-axis {
    fill: rgba(255, 255, 255, 0.42);
    font-size: 11px;
    font-family: inherit;
}

.dealers-portal-chart .dealers-chart-leads-fill {
    fill: rgba(232, 92, 36, 0.2);
}

.dealers-portal-chart .dealers-chart-calls-fill {
    fill: rgba(154, 149, 144, 0.16);
}

.dealers-portal-chart .dealers-chart-leads,
.dealers-portal-chart .dealers-chart-calls {
    fill: none;
    stroke-width: 2.4;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.dealers-portal-chart .dealers-chart-leads {
    stroke: var(--accent, #e85c24);
}

.dealers-portal-chart .dealers-chart-calls {
    stroke: #9a9590;
    stroke-width: 2.2;
    stroke-dasharray: none;
}

.dealers-portal-chart .dealers-chart-dot {
    fill: #fff;
    stroke-width: 2;
}

.dealers-portal-chart .dealers-chart-dot-leads {
    stroke: var(--accent, #e85c24);
}

.dealers-portal-chart .dealers-chart-dot-calls {
    stroke: #9a9590;
}

.dealers-portal-chart .dealers-chart-legend {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.1rem;
    margin: 0.45rem 0 0;
    padding: 0;
    color: var(--muted, #b8b3ab);
    font-size: 0.8rem;
}

.dealers-portal-chart .dealers-chart-legend li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.dealers-portal-chart .dealers-chart-swatch {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
}

.dealers-portal-chart .dealers-chart-swatch-leads {
    background: var(--accent, #e85c24);
}

.dealers-portal-chart .dealers-chart-swatch-calls {
    background: #9a9590;
}

.dealers-portal-chart .dealers-chart-ranges {
    display: inline-flex;
    flex-shrink: 0;
    gap: 0.15rem;
    padding: 0.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.dealers-portal-chart .dealers-chart-ranges a {
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.dealers-portal-chart .dealers-chart-ranges a:hover {
    color: #fff;
}

.dealers-portal-chart .dealers-chart-ranges a.is-active {
    color: #fff;
    border-color: var(--accent, #e85c24);
    background: rgba(232, 92, 36, 0.12);
}

.dealers-stat-card,
.dealers-dash-lookup,
.dealers-whats-new {
    background: var(--surface, #1a1a1a);
    border: 1px solid var(--border, #2c2c2c);
    border-radius: var(--radius, 6px);
}

.dealers-stat-card,
.dealers-dash-lookup {
    min-height: 7.1rem;
}

.dealers-stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, background 0.15s;
}

.dealers-stat-card:hover {
    border-color: #4a4a4a;
    background: #1f1f1f;
}

.dealers-stat-icon,
.dealers-dash-search-icon {
    flex-shrink: 0;
    display: block;
}

.dealers-stat-icon {
    width: 2.15rem;
    height: 2.15rem;
    color: #9a9590;
}

.dealers-dash-search-icon {
    width: 1.2rem;
    height: 1.2rem;
    color: #fff;
}

.dealers-stat-icon svg,
.dealers-dash-search-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dealers-dash-search-icon svg {
    stroke-width: 2.2;
}

.dealers-stat-copy {
    min-width: 0;
}

.dealers-stat-copy strong {
    display: block;
    color: #fff;
    font-size: 2.05rem;
    font-weight: 700;
    line-height: 1;
}

.dealers-stat-copy span {
    display: block;
    margin-top: 0.38rem;
    color: var(--muted, #b8b3ab);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dealers-stat-card--alert {
    border-color: var(--accent, #e85c24);
}

.dealers-stat-card--alert .dealers-stat-icon,
.dealers-stat-card--alert strong,
.dealers-stat-card--alert .dealers-stat-copy span {
    color: var(--accent, #e85c24);
}

.dealers-stat-card--alert:hover {
    background: rgba(232, 92, 36, 0.08);
    border-color: var(--accent, #e85c24);
}

.dealers-dash-kicker {
    margin: 0 0 0.7rem;
    color: #e8e4dc;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dealers-dash-lookup {
    display: flex;
    flex-direction: column;
    padding: 0.95rem 1.05rem 1rem;
}

.dealers-dash-lookup-row {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
    margin-top: auto;
}

.dealers-dash-lookup input[type="search"] {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0.55rem 0.8rem;
    background: var(--bg, #121212);
    border: 1px solid #3a3a3a;
    border-radius: var(--radius, 6px);
    color: var(--text, #f4f1ec);
    color-scheme: dark;
}

.dealers-dash-lookup input[type="search"]::placeholder {
    color: #7a756e;
}

.dealers-dash-lookup input[type="search"]:focus {
    outline: none;
    border-color: var(--accent, #e85c24);
}

.dealers-dash-lookup .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.dealers-portal-tiles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    flex: 1;
}

.dealers-portal-tiles li {
    min-width: 0;
}

.dealers-portal-tiles a {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: 0.85rem;
    box-sizing: border-box;
    height: 100%;
    min-height: 9.75rem;
    background: var(--surface, #1a1a1a);
    border: 1px solid var(--border, #2c2c2c);
    border-radius: var(--radius, 6px);
    padding: 1.15rem 1.1rem 1rem;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.15s, background 0.15s;
}

.dealers-portal-tiles a:hover {
    border-color: #4a4a4a;
    background: #1f1f1f;
    transform: translateY(-1px);
}

.dealers-tile-icon {
    flex-shrink: 0;
    width: 2.15rem;
    height: 2.15rem;
    color: #c8c3bb;
}

.dealers-tile-icon svg,
.dealers-admin-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dealers-tile-icon img,
.dealers-admin-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dealers-tile-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 0.35rem;
    height: 100%;
}

.dealers-portal-tiles strong {
    display: block;
    color: #f4f1ec;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
}

.dealers-tile-blurb,
.dealers-notes {
    display: block;
    color: var(--muted, #b8b3ab);
    font-size: 0.82rem;
    line-height: 1.4;
}

.dealers-tile-blurb {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dealers-tile-view {
    margin-top: auto;
    color: var(--accent, #e85c24);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dealers-tile-view::after {
    content: " →";
}

.dealers-whats-new {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 1.05rem 0.85rem 1.05rem 1.15rem;
    height: 0;
    min-height: 100%;
    overflow: hidden;
}

.dealers-whats-new-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0.3rem 0.35rem 0;
    flex-shrink: 0;
}

.dealers-whats-new-head .dealers-dash-kicker {
    margin: 0;
}

.dealers-whats-new-see {
    color: var(--accent, #e85c24);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.dealers-whats-new-see::after {
    content: " →";
}

.dealers-whats-new-see:hover {
    color: #fff;
}

.dealers-whats-new-empty {
    margin: 0.35rem 0 0.85rem;
    color: var(--muted, #b8b3ab);
    font-size: 0.88rem;
}

.dealers-whats-new-more {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: auto 0.3rem 0 0;
    padding: 0.72rem 0.9rem;
    border: 1px solid #3a3a3a;
    border-radius: var(--radius, 6px);
    color: #f4f1ec;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.dealers-whats-new-more::after {
    content: " →";
}

.dealers-whats-new-more:hover {
    border-color: #5a5a5a;
    background: #1f1f1f;
    color: #fff;
}

.dealers-whats-new-list {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0 0.35rem 0 0;
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #5a5a5a transparent;
}

.dealers-whats-new-list::-webkit-scrollbar {
    width: 6px;
}

.dealers-whats-new-list::-webkit-scrollbar-track {
    background: transparent;
}

.dealers-whats-new-list::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 999px;
}

.dealers-whats-new-list::-webkit-scrollbar-thumb:hover {
    background: #6a6a6a;
}

.dealers-whats-new-list a {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    align-items: start;
    gap: 0.2rem 0.7rem;
    padding: 0.72rem 0.1rem;
    border-bottom: 1px solid #2c2c2c;
    border-radius: 0;
    color: #e4dfd6;
    text-decoration: none;
}

.dealers-whats-new-list li:last-child a {
    border-bottom: 0;
}

.dealers-whats-new-list a:hover {
    color: #fff;
}

.dealers-whats-new-icon {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.12rem;
    color: #c8c3bb;
}

.dealers-whats-new-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dealers-whats-new-copy {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.dealers-whats-new-title {
    display: block;
    min-width: 0;
    color: #f4f1ec;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

.dealers-whats-new-title .dealers-badge {
    margin-left: 0.35rem;
    vertical-align: 0.1em;
}

.dealers-whats-new-meta,
.dealers-whats-new-date {
    color: var(--muted, #b8b3ab);
    font-size: 0.78rem;
    line-height: 1.3;
}

.dealers-whats-new-date {
    white-space: nowrap;
}

.dealers-whats-new-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.dealers-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.4rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
}

.dealers-badge--new {
    background: #2ea043;
}

.dealers-badge--popular {
    background: #c9a227;
}

.dealers-latest-lead {
    margin: 0 0 1rem;
    color: var(--muted, #b8b3ab);
}

.dealers-latest-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--surface, #1a1a1a);
    border: 1px solid var(--border, #2c2c2c);
    border-radius: var(--radius, 6px);
}

.dealers-latest-list a {
    display: grid;
    grid-template-columns: 1.35rem minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.25rem 0.85rem;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid var(--border, #2c2c2c);
    color: inherit;
    text-decoration: none;
}

.dealers-latest-list li:last-child a {
    border-bottom: 0;
}

.dealers-latest-list a:hover {
    background: #1f1f1f;
}

.dealers-latest-list .dealers-whats-new-title {
    color: var(--accent, #e85c24);
}

.dealers-latest-list a:hover .dealers-whats-new-title {
    color: #fff;
}

.dealers-inventory {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 1.15rem;
}

.dealers-inventory-panel {
    margin: 0;
    padding: 1rem 1.1rem 0.8rem;
    background: var(--surface, #1a1a1a);
    border: 1px solid var(--border, #2c2c2c);
    border-radius: 12px;
}

.dealers-inventory-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.55rem;
}

.dealers-inventory-row .dealers-doc-search {
    flex: 1.45 1 14rem;
    min-width: 12rem;
    margin: 0;
}

.dealers-inventory-panel .dealers-doc-search input[type="search"],
.dealers-inventory-brand-field input[type="text"] {
    background: var(--bg, #121212);
}

.dealers-inventory-brand-field {
    flex: 0.7 1 9rem;
    min-width: 8rem;
}

.dealers-inventory-brand-field input[type="text"] {
    width: 100%;
    margin: 0;
    padding: 0.7rem 1rem;
    background: var(--bg, #121212);
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    color: var(--text, #f4f1ec);
    color-scheme: dark;
}

.dealers-inventory-brand-field input::placeholder {
    color: #7a756e;
}

.dealers-inventory-brand-field input:focus {
    outline: none;
    border-color: var(--accent, #e85c24);
}

.dealers-inventory-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.65rem 1.05rem;
    border-radius: 10px;
}

.dealers-inventory-search:active,
.dealers-inventory-search.is-active,
.dealers-inventory-search.is-loading {
    background: var(--accent-hover, #c94d1c);
    color: #fff;
    transform: translateY(1px);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.dealers-inventory-search.is-loading {
    pointer-events: none;
    cursor: wait;
}

.dealers-inventory-units {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.55rem 0 0;
    color: #c8c3bb;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
}

.dealers-inventory-units-switch {
    position: relative;
    display: block;
    width: 1.85rem;
    height: 1.05rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: #3a3a3a;
    box-shadow: inset 0 0 0 1px #4a4a4a;
}

.dealers-inventory-units-switch::after {
    content: "";
    position: absolute;
    top: 0.12rem;
    left: 0.12rem;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: #c8c3bb;
    transition: transform 0.15s ease;
}

.dealers-inventory-units input:checked + .dealers-inventory-units-switch {
    background: var(--accent, #e85c24);
    box-shadow: none;
}

.dealers-inventory-units input:checked + .dealers-inventory-units-switch::after {
    transform: translateX(0.8rem);
    background: #fff;
}

.dealers-inventory-units input:focus-visible + .dealers-inventory-units-switch {
    outline: 2px solid var(--accent, #e85c24);
    outline-offset: 2px;
}

.dealers-inventory-idle,
.dealers-inventory-message {
    margin: 0;
    padding: 1.15rem 1.2rem;
    background: var(--surface, #1a1a1a);
    border: 1px solid var(--border, #2c2c2c);
    border-radius: var(--radius, 6px);
    color: var(--muted, #b8b3ab);
}

.dealers-inventory-stage-body {
    display: grid;
    gap: 0.85rem;
    transition: filter 0.45s ease, opacity 0.45s ease;
}

.dealers-inventory.is-loading .dealers-inventory-stage-body {
    filter: blur(10px) saturate(0.55) brightness(0.62);
    pointer-events: none;
}

.dealers-inventory-results {
    overflow: hidden;
    background: var(--surface, #1a1a1a);
    border: 1px solid var(--border, #2c2c2c);
    border-radius: var(--radius, 6px);
}

.dealers-inventory-results-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem 0.95rem;
    border-bottom: 1px solid var(--border, #2c2c2c);
}

.dealers-inventory-results-head h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 400;
}

.dealers-inventory-results-head p {
    margin: 0;
    color: var(--muted, #b8b3ab);
    font-size: 0.88rem;
}

.dealers-inventory-table-wrap {
    overflow-x: auto;
}

.dealers-inventory-table {
    width: 100%;
    border-collapse: collapse;
}

.dealers-inventory-table th,
.dealers-inventory-table td {
    text-align: left;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid var(--border, #2c2c2c);
    vertical-align: top;
}

.dealers-inventory-table th {
    color: #9a958c;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dealers-inventory-table tr:last-child td {
    border-bottom: 0;
}

.dealers-inventory-table tbody tr:hover td {
    background: #1f1f1f;
}

.dealers-inventory-sku {
    white-space: nowrap;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.dealers-inventory-table th.dealers-inventory-qty-cell,
.dealers-inventory-table td.dealers-inventory-qty-cell {
    text-align: center;
    vertical-align: middle;
}

.dealers-inventory-qty {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.dealers-inventory-qty.is-stock {
    background: #1e3d32;
    color: #8fdfb8;
}

.dealers-inventory-qty.is-call {
    background: #3a2218;
    color: #e85c24;
}

.dealers-docs {
    position: relative;
    isolation: isolate;
    --dealers-doc-grid: minmax(0, 1.55fr) minmax(7.5rem, 0.75fr) minmax(8.5rem, 0.7fr) 14rem;
}

.dealers-docs-stage-body {
    transition: filter 0.45s ease, opacity 0.45s ease;
}

.dealers-docs.is-loading .dealers-docs-stage-body {
    filter: blur(10px) saturate(0.55) brightness(0.62);
    pointer-events: none;
}

.dealers-doc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.15rem;
}

.dealers-doc-search {
    position: relative;
    flex: 1 1 16rem;
    min-width: 12rem;
}

.dealers-doc-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    width: 1.1rem;
    height: 1.1rem;
    color: #8a8580;
    transform: translateY(-50%);
    pointer-events: none;
}

.dealers-doc-search-icon svg,
.dealers-doc-chip-icon svg,
.dealers-doc-brand-icon svg,
.dealers-doc-thumb svg,
.dealers-doc-cal svg,
.dealers-doc-btn span svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dealers-doc-search input[type="search"] {
    width: 100%;
    margin: 0;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    background: var(--surface, #1a1a1a);
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    color: var(--text, #f4f1ec);
    color-scheme: dark;
}

.dealers-doc-search input[type="search"]::placeholder {
    color: #7a756e;
}

.dealers-doc-search input[type="search"]:focus {
    outline: none;
    border-color: var(--accent, #e85c24);
}

.dealers-doc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.58rem 0.85rem;
    border: 1px solid var(--accent, #e85c24);
    border-radius: 10px;
    color: var(--accent, #e85c24);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.dealers-doc-chip-icon {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
}

.dealers-doc-chip-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent, #e85c24);
}

.dealers-doc-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 10.5rem;
    max-width: 18rem;
    padding: 0.2rem 0.7rem 0.2rem 0.75rem;
    background: var(--surface, #1a1a1a);
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    color: #e4dfd6;
}

.dealers-doc-brand-icon {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
    color: #9a9590;
}

.dealers-doc-brand select {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0.48rem 1.35rem 0.48rem 0;
    background-color: #1a1a1a;
    border: 0;
    color: #f4f1ec;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    appearance: none;
    color-scheme: dark;
}

.dealers-doc-brand select option,
.dealers-doc-brand select optgroup {
    background-color: #1a1a1a;
    color: #f4f1ec;
}

.dealers-doc-brand::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1.6px solid #9a9590;
    border-bottom: 1.6px solid #9a9590;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.dealers-doc-cols {
    display: grid;
    grid-template-columns: var(--dealers-doc-grid);
    gap: 0.75rem 1rem;
    padding: 0 1.05rem 0.55rem;
    border: 1px solid transparent;
    color: #8d8880;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dealers-doc-cols a {
    color: inherit;
    text-decoration: none;
}

.dealers-doc-cols a:hover {
    color: #fff;
}

.dealers-doc-cols span:last-child,
.dealers-doc-actions {
    text-align: right;
}

.dealers-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.dealers-doc-row {
    position: relative;
    display: grid;
    grid-template-columns: var(--dealers-doc-grid);
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.9rem 1.05rem;
    background: var(--surface, #1a1a1a);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
}

.dealers-doc-row::before,
.dealers-doc-row::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent, #e85c24);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.dealers-doc-row::before {
    left: 0;
}

.dealers-doc-row::after {
    right: 0;
}

.dealers-doc-row:hover::before,
.dealers-doc-row:hover::after {
    opacity: 1;
}

.dealers-doc-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.dealers-doc-thumb {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    width: 3.1rem;
    height: 3.1rem;
    background: #141414;
    border: 1px solid #2c2c2c;
    border-radius: 10px;
    color: var(--accent, #e85c24);
}

.dealers-doc-thumb svg {
    width: 1.15rem;
    height: 1.15rem;
}

.dealers-doc-thumb span {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.dealers-doc-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.dealers-doc-copy strong {
    color: #f4f1ec;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.dealers-doc-meta,
.dealers-doc-updated-time {
    color: var(--muted, #b8b3ab);
    font-size: 0.8rem;
    line-height: 1.35;
}

.dealers-doc-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dealers-doc-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    background: #141414;
    border: 1px solid #323232;
    border-radius: 999px;
    color: #c8c3bb;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.dealers-doc-updated {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.dealers-doc-updated-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #f4f1ec;
    font-size: 0.9rem;
    font-weight: 600;
}

.dealers-doc-cal {
    display: block;
    width: 0.95rem;
    height: 0.95rem;
    color: var(--accent, #e85c24);
}

.dealers-doc-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.dealers-doc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.dealers-doc-btn span {
    display: block;
    width: 1rem;
    height: 1rem;
}

.dealers-doc-btn--open {
    background: #141414;
    border: 1px solid #4a4a4a;
    color: #f4f1ec;
}

.dealers-doc-btn--open:hover {
    border-color: #6a6a6a;
    background: #1f1f1f;
}

.dealers-doc-btn--download {
    background: var(--accent, #e85c24);
    border: 1px solid var(--accent, #e85c24);
    color: #fff;
}

.dealers-doc-btn--download:hover {
    filter: brightness(1.08);
    color: #fff;
}

.dealers-lead-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.7rem;
}

.dealers-lead-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    border: 1px solid #3a3a3a;
    border-radius: 999px;
    background: var(--surface, #1a1a1a);
    color: var(--muted, #b8b3ab);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.dealers-lead-filter em {
    font-style: normal;
    font-variant-numeric: tabular-nums;
    opacity: 0.72;
}

.dealers-lead-filter:hover {
    border-color: #5a5a5a;
    color: #fff;
}

.dealers-lead-filter.is-active {
    border-color: var(--accent, #e85c24);
    background: rgba(232, 92, 36, 0.16);
    color: #fff;
}

.dealers-lead-calls {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    padding: 0.32rem 0.7rem 0.32rem 0.45rem;
    border: 1px solid #3a3a3a;
    border-radius: 999px;
    background: var(--surface, #1a1a1a);
    color: var(--muted, #b8b3ab);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.dealers-lead-calls:hover {
    border-color: #5a5a5a;
    color: #fff;
}

.dealers-lead-calls.is-on {
    border-color: var(--accent, #e85c24);
    background: rgba(232, 92, 36, 0.16);
    color: #fff;
}

.dealers-lead-calls em {
    font-style: normal;
    font-variant-numeric: tabular-nums;
    opacity: 0.72;
}

.dealers-lead-calls-switch {
    position: relative;
    display: block;
    width: 1.85rem;
    height: 1.05rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: #3a3a3a;
    box-shadow: inset 0 0 0 1px #4a4a4a;
}

.dealers-lead-calls-switch::after {
    content: "";
    position: absolute;
    top: 0.12rem;
    left: 0.12rem;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: #c8c3bb;
    transition: transform 0.15s ease;
}

.dealers-lead-calls.is-on .dealers-lead-calls-switch {
    background: var(--accent, #e85c24);
    box-shadow: none;
}

.dealers-lead-calls.is-on .dealers-lead-calls-switch::after {
    transform: translateX(0.8rem);
    background: #fff;
}

.dealers-lead--call {
    border-color: #4a5560;
    background: rgba(148, 163, 184, 0.06);
}

.dealers-lead--call .dealers-pill {
    background: #e0f2fe;
    color: #0369a1;
}

.dealers-lead--email-read .dealers-pill {
    background: #d1fae5;
    color: #047857;
}

.dealers-lead--won .dealers-pill {
    background: #d1fae5;
    color: #047857;
}

.dealers-lead--lost .dealers-pill {
    background: #e7e5e4;
    color: #44403c;
}

.dealers-leads .dealers-lead--won::before {
    background: #2f9e5f;
}

.dealers-leads .dealers-lead--lost::before {
    background: #6b6560;
}

.dealers-leads {
    display: grid;
    gap: 0.45rem;
}

.dealers-leads .dealers-lead {
    position: relative;
    display: grid;
    gap: 0.28rem;
    padding: 0.65rem 0.9rem 0.7rem;
    border-radius: 12px;
    overflow: hidden;
}

.dealers-leads .dealers-lead::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--accent, #e85c24);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.dealers-leads .dealers-lead:hover::before {
    opacity: 1;
}

.dealers-leads .dealers-lead--call::before {
    background: #7a8490;
}

.dealers-leads .dealers-lead > p {
    margin: 0;
}

.dealers-leads .dealers-lead header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.dealers-leads .dealers-lead header strong {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.25;
}

.dealers-leads .dealers-lead header time {
    margin-left: auto;
    color: var(--muted, #b8b3ab);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dealers-lead-meta {
    color: var(--muted, #b8b3ab);
    font-size: 0.82rem;
    line-height: 1.35;
}

.dealers-lead-note {
    margin: 0;
    color: var(--muted, #b8b3ab);
    font-size: 0.78rem;
    line-height: 1.35;
    font-style: italic;
}

.dealers-lead-msg {
    color: #e4dfd6;
    font-size: 0.88rem;
    line-height: 1.4;
}

.dealers-pill {
    display: inline-block;
    margin-left: 0;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    background: var(--accent-light, #3a2218);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dealers-empty {
    color: var(--muted, #b8b3ab);
}

.dealers-lead-hint {
    margin: 0.85rem 0 0;
    color: var(--muted, #b8b3ab);
    font-size: 0.88rem;
    line-height: 1.45;
}

.dealers-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1rem 0 0;
}

.dealers-pager a {
    color: inherit;
    text-decoration: none;
}

.dealers-pager a[aria-current="page"] {
    font-weight: 700;
    color: var(--accent, #e85c24);
}

.dealers-empty--panel {
    margin: 3.25rem 0 4rem;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.dealers-loading {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 6;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    place-items: center;
    pointer-events: none;
}

.dealers-inventory .dealers-loading,
.dealers-docs .dealers-loading {
    display: grid;
    opacity: 0;
    visibility: hidden;
    place-items: start center;
    padding-top: 4.75rem;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dealers-finder.is-loading .dealers-loading,
.dealers-inventory.is-loading .dealers-loading,
.dealers-docs.is-loading .dealers-loading {
    display: grid;
    opacity: 1;
    visibility: visible;
}

.dealers-inventory .dealers-loading-chip,
.dealers-docs .dealers-loading-chip {
    position: sticky;
    top: 6.5rem;
    z-index: 2;
}

.dealers-finder.is-loading .dealers-map,
.dealers-finder.is-loading .dealers-list-wrap {
    filter: blur(10px) saturate(0.55) brightness(0.62);
    pointer-events: none;
}

.dealers-loading-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.05rem;
    border: 1px solid rgba(232, 92, 36, 0.5);
    border-radius: 999px;
    background: rgba(18, 18, 18, 0.86);
    box-shadow:
        0 0 0 1px rgba(232, 92, 36, 0.12),
        0 14px 40px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(232, 92, 36, 0.22);
    color: #f4f1ec;
    animation: dealers-pulse-glow 1.6s ease-in-out infinite;
}

.dealers-loading p {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.dealers-loading-mark {
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid rgba(244, 241, 236, 0.22);
    border-top-color: var(--accent, #e85c24);
    border-radius: 50%;
    animation: dealers-spin 0.7s linear infinite;
}

.dealers-finder.is-ready .dealers-card:not(.dealers-card--ghost) {
    animation: dealers-card-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.dealers-finder.is-ready .dealers-card:nth-child(1) { animation-delay: 0.02s; }
.dealers-finder.is-ready .dealers-card:nth-child(2) { animation-delay: 0.07s; }
.dealers-finder.is-ready .dealers-card:nth-child(3) { animation-delay: 0.12s; }
.dealers-finder.is-ready .dealers-card:nth-child(4) { animation-delay: 0.17s; }
.dealers-finder.is-ready .dealers-card:nth-child(5) { animation-delay: 0.22s; }
.dealers-finder.is-ready .dealers-card:nth-child(6) { animation-delay: 0.27s; }
.dealers-finder.is-ready .dealers-card:nth-child(7) { animation-delay: 0.32s; }
.dealers-finder.is-ready .dealers-card:nth-child(8) { animation-delay: 0.37s; }

@keyframes dealers-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dealers-scan {
    from {
        background-position: 120% 0;
    }
    to {
        background-position: -120% 0;
    }
}

@keyframes dealers-shimmer {
    0% {
        background-position: 100% 0, 0 0;
    }
    100% {
        background-position: -80% 0, 0 0;
    }
}

@keyframes dealers-pulse-glow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(232, 92, 36, 0.12),
            0 14px 40px rgba(0, 0, 0, 0.45),
            0 0 22px rgba(232, 92, 36, 0.16);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(232, 92, 36, 0.28),
            0 14px 40px rgba(0, 0, 0, 0.45),
            0 0 36px rgba(232, 92, 36, 0.38);
    }
}

@keyframes dealers-card-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dealers-finder-grid::after,
    .dealers-inventory::after,
    .dealers-docs::after,
    .dealers-loading-chip,
    .dealers-loading-mark,
    .dealers-list .dealers-card--ghost,
    .dealers-finder.is-ready .dealers-card:not(.dealers-card--ghost) {
        animation: none;
    }

    .dealers-map,
    .dealers-list-wrap,
    .dealers-inventory-stage-body,
    .dealers-docs-stage-body {
        transition: none;
    }

    .dealers-finder.is-loading .dealers-map,
    .dealers-finder.is-loading .dealers-list-wrap,
    .dealers-inventory.is-loading .dealers-inventory-stage-body,
    .dealers-docs.is-loading .dealers-docs-stage-body {
        filter: brightness(0.72);
    }
}

.shop-card-actions .dealers-finder-btn,
.product-purchase-row .dealers-finder-btn {
    margin-top: 0;
}

@media (max-width: 1100px) {
    .dealers-portal-home {
        grid-template-columns: 1fr;
    }

    .dealers-whats-new {
        height: auto;
        min-height: 0;
        max-height: 22rem;
    }

    .dealers-dash-top,
    .dealers-dash-top--no-lookup {
        grid-template-columns: 1fr 1fr;
    }

    .dealers-dash-lookup {
        grid-column: 1 / -1;
    }

    .dealers-portal-chart-head {
        flex-direction: column;
    }

    .dealers-portal-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .dealers-doc-cols {
        display: none;
    }

    .dealers-doc-row {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .dealers-doc-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .dealers-doc-chip {
        order: 3;
    }
}

@media (max-width: 960px) {
    .dealers-whats-new {
        height: auto;
        min-height: 0;
        max-height: 22rem;
    }
}

@media (max-width: 720px) {
    .dealers-dash-lookup-row {
        flex-wrap: wrap;
    }

    .dealers-dash-lookup .button {
        width: 100%;
    }

    .dealers-whats-new-list a,
    .dealers-latest-list a {
        grid-template-columns: 1.25rem minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .dealers-portal-hero-title {
        min-height: 0;
    }

    .dealers-portal-bar-inner {
        gap: 0.5rem 1rem;
    }

    .dealers-portal-nav {
        max-width: 100%;
        justify-content: flex-end;
    }

    .dealers-finder-grid,
    .dealers-profile-grid,
    .dealers-lead-status {
        grid-template-columns: 1fr;
    }

    .dealers-lead-calls {
        margin-left: 0;
    }

    .dealers-inventory-row .dealers-inventory-search {
        width: 100%;
    }

    .dealers-finder-grid:not(.dealers-finder-grid--list) {
        height: auto;
        min-height: 0;
    }

    .dealers-finder-grid:not(.dealers-finder-grid--list) .dealers-map {
        height: 50vh;
        min-height: 280px;
    }

    .dealers-finder-grid:not(.dealers-finder-grid--list) .dealers-list-wrap,
    .dealers-finder-grid:not(.dealers-finder-grid--list) .dealers-list {
        height: auto;
    }

    .dealers-finder-grid:not(.dealers-finder-grid--list) .dealers-list {
        max-height: 50vh;
    }
}

@media (max-width: 560px) {
    .dealers-dash-top,
    .dealers-dash-top--no-lookup {
        grid-template-columns: 1fr;
    }

    .dealers-portal-tiles {
        grid-template-columns: 1fr;
    }

    .dealers-list .dealers-card {
        grid-template-columns: 1fr;
    }

    .dealers-list .dealers-card-action,
    .dealers-list .dealers-card-action .button {
        justify-self: start;
        max-width: none;
    }
}
