:root {
    --pas-blue: #155eef;
    --pas-ink: #172033;
    --pas-muted: #64748b;
    --pas-surface: #f8fafc;
    --pas-line: #dbe3ef;
    --pas-green: #0f8b5f;
    --admin-sidebar-width: 320px;
}

body {
    color: var(--pas-ink);
    background: #ffffff;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.navbar-brand {
    font-weight: 700;
}

.hero-band {
    background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 58%, #eefaf5 100%);
    border-bottom: 1px solid var(--pas-line);
}

.feature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    padding: 1.25rem;
    background: #ffffff;
}

.auth-body {
    background:
        radial-gradient(circle at 85% 15%, rgba(35, 118, 255, .08), transparent 26rem),
        radial-gradient(circle at 10% 90%, rgba(255, 121, 43, .06), transparent 22rem),
        var(--pas-surface);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.auth-panel {
    width: 100%;
    max-width: 430px;
}

.auth-logo {
    display: block;
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-logo img {
    width: 210px;
    max-width: 60vw;
    height: auto;
}

.auth-card {
    background: #ffffff;
    border: 1px solid var(--pas-line);
    border-radius: 1.25rem;
    padding: 2.25rem 2rem;
    box-shadow: 0 18px 45px rgba(21, 50, 94, .08);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .35rem;
}

.auth-subtitle {
    color: var(--pas-muted);
    font-size: .95rem;
    margin-bottom: 1.75rem;
}

.auth-inline-link {
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-inline-link:hover {
    text-decoration: underline;
}

.auth-help {
    text-align: center;
    color: var(--pas-muted);
    font-size: .875rem;
    margin: 1.75rem 0 0;
}

.auth-help a {
    font-weight: 600;
    text-decoration: none;
}

.auth-back {
    text-align: center;
    font-size: .875rem;
    margin: .5rem 0 0;
}

.auth-back a {
    color: var(--pas-muted);
    text-decoration: none;
}

.auth-back a:hover {
    color: var(--pas-ink);
}

@media (max-width: 575.98px) {
    .auth-shell {
        align-items: flex-start;
        padding: 2rem 1rem;
    }

    .auth-card {
        padding: 1.75rem 1.25rem;
    }
}

.admin-shell {
    min-height: 100vh;
    background: var(--pas-surface);
}

.admin-sidebar {
    width: 260px;
    background: #111827;
    color: #e5e7eb;
}

.admin-sidebar a {
    color: #cbd5e1;
    border-radius: 6px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.admin-content {
    min-width: 0;
}

.metric-card {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1.25rem;
}

.stat-card {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    min-height: 108px;
}

.stat-card .stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;
}

.table-panel {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.table-panel .table {
    margin-bottom: 0;
}

.chat-admin-shell {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    min-height: 650px;
}

.chat-admin-list {
    border-right: 1px solid var(--pas-line);
    background: #ffffff;
}

.chat-conversation-list {
    max-height: 570px;
    overflow: auto;
}

.chat-conversation-item {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--pas-line);
    background: #ffffff;
    padding: .85rem 1rem;
    text-align: left;
}

.chat-conversation-item:hover,
.chat-conversation-item.is-active {
    background: #f1f6ff;
}

.chat-admin-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.chat-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--pas-line);
    background: #ffffff;
}

.chat-admin-thread {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem;
    overflow: auto;
}

.chat-admin-message {
    width: fit-content;
    max-width: min(680px, 82%);
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    padding: .75rem .9rem;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.chat-admin-message.is-admin {
    align-self: flex-end;
    border-color: color-mix(in srgb, var(--pas-blue) 30%, #ffffff);
    background: #eef5ff;
}

.chat-admin-typing {
    min-height: 24px;
    padding: 0 1rem;
}

.chat-admin-reply {
    padding: 1rem;
    border-top: 1px solid var(--pas-line);
    background: #ffffff;
}

.admin-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.inline-control-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.grid-column-full {
    grid-column: 1 / -1;
}

.user-permission-box {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    padding: 1rem;
    background: #f8fafc;
}

.user-permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .75rem;
}

.user-permission-choice {
    display: flex;
    gap: .65rem;
    min-height: 82px;
    align-items: flex-start;
    border: 1px solid #dce5f2;
    border-radius: 8px;
    padding: .8rem;
    background: #ffffff;
}

.user-permission-choice .form-check-input {
    margin-top: .15rem;
    flex: none;
}

.user-permission-choice strong,
.user-permission-choice small {
    display: block;
}

.user-permission-choice strong {
    color: #172033;
    font-size: .92rem;
}

.user-permission-choice small {
    margin-top: .18rem;
    color: #64748b;
    font-size: .8rem;
    line-height: 1.35;
}

.user-permission-choice.is-admin-only {
    border-color: #fed7aa;
    background: #fffaf3;
}

.user-permission-choice.is-disabled {
    opacity: .55;
    background: #f3f6fa;
}

.template-upload-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 1rem;
    align-items: start;
}

.template-upload-form {
    display: grid;
    gap: .75rem;
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    padding: 1rem;
    background: #f8fafc;
}

.template-theme-presets {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: .85rem;
    background: #f8fafc;
}

.dealer-hero {
    background: #101828;
    color: #ffffff;
}

.inventory-card {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.inventory-image {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #dbeafe, #ecfdf5);
}

.vehicle-thumb {
    width: 96px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--pas-line);
    border-radius: 6px;
    background: #f1f5f9;
}

.vehicle-thumb-empty {
    display: grid;
    place-items: center;
    color: var(--pas-muted);
    font-size: .75rem;
}

.media-upload-panel {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
}

.media-drop-zone {
    border: 2px dashed #9ab2d4;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f8fbff;
    transition: border-color .15s ease, background .15s ease;
}

.media-drop-zone.is-dragging {
    border-color: var(--pas-blue);
    background: #eef5ff;
}

.media-drop-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto .75rem;
    background: #e2ebff;
    color: var(--pas-blue);
    font-size: 1.75rem;
    line-height: 1;
}

.media-upload-progress {
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    padding: .85rem;
}

.media-upload-progress .progress {
    height: .75rem;
    background: #dbeafe;
}

.body-style-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1.35rem;
}

.body-style-color-preview {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .85rem;
    color: #172033;
}

.body-style-color-preview-image {
    display: grid;
    width: 9rem;
    height: 4.25rem;
    place-items: center;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.body-style-color-preview-image img {
    display: block;
    width: 8rem;
    height: 3rem;
    object-fit: contain;
}

.body-style-color-option {
    display: inline-flex;
    position: relative;
    align-items: center;
    gap: .45rem;
    padding: .1rem .05rem .3rem;
    color: #526176;
    font-weight: 700;
    cursor: pointer;
    transition: color .15s ease;
}

.body-style-color-option .form-check-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
}

.body-style-color-option:has(.form-check-input:checked) {
    color: var(--pas-blue);
}

.body-style-color-option:has(.form-check-input:checked)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 1.65rem;
    height: 2px;
    border-radius: 999px;
    background: var(--pas-blue);
}

.body-style-color-swatch {
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45);
}

.body-style-color-option:has(.form-check-input:checked) .body-style-color-swatch {
    border-color: var(--pas-blue);
    box-shadow: 0 0 0 .18rem rgba(14, 102, 255, .14), inset 0 0 0 2px rgba(255, 255, 255, .45);
}

.body-style-color-swatch-black {
    background: #111827;
}

.body-style-color-swatch-yellow {
    background: #facc15;
}

.body-style-color-swatch-white {
    background: #ffffff;
}

.body-style-color-swatch-gray {
    background: #9ca3af;
}

.body-style-color-swatch-red {
    background: #dc2626;
}

.body-style-color-swatch-blue {
    background: #2563eb;
}

.media-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.media-card {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.media-preview {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
}

.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-badges {
    position: absolute;
    left: .5rem;
    top: .5rem;
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}

.dealer-public {
    background: #f6f8fb;
}

.dealer-public.has-mobile-actions {
    padding-bottom: 58px;
}

.dealer-topbar {
    background: #0f172a;
    color: #dbe4f0;
}

.dealer-topbar-primary,
.dealer-topbar-links,
.dealer-department-phone-links,
.dealer-footer-social {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .45rem .75rem;
    align-items: center;
}

.dealer-topbar-primary {
    max-width: 100%;
}

.dealer-topbar-links {
    justify-content: flex-start;
}

.dealer-location-switcher {
    display: inline-flex;
}

.dealer-location-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid rgba(219, 228, 240, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: inherit;
    padding: .16rem .6rem;
    font: inherit;
    line-height: 1.2;
}

.dealer-location-switcher-toggle strong {
    font-weight: 800;
}

.dealer-location-switcher-toggle:hover,
.dealer-location-switcher-toggle[aria-expanded="true"] {
    border-color: rgba(219, 228, 240, .6);
    background: rgba(255, 255, 255, .1);
}

.dealer-location-switcher-menu {
    min-width: min(22rem, calc(100vw - 2rem));
    max-height: 72vh;
    overflow-y: auto;
}

.dealer-location-switcher-menu .dropdown-item {
    white-space: normal;
}

.dealer-department-phone-links {
    gap: .45rem .85rem;
}

.dealer-department-phone-links a,
.dealer-footer-social a {
    font-weight: 700;
    text-decoration: none;
}

.dealer-footer-social a:hover {
    text-decoration: underline;
}

.dealer-topbar a,
.dealer-footer a {
    color: inherit;
}

.dealer-public-alert {
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
    color: #7c2d12;
    padding: .85rem 0;
}

.dealer-public-alert strong {
    display: inline-block;
    margin-right: .5rem;
}

.dealer-public-alert .btn {
    color: #7c2d12;
    border-color: #fed7aa;
    font-weight: 700;
}

.dealer-holiday-hours-item {
    background: rgba(255, 255, 255, .52);
    min-width: 210px;
}

.dealer-navbar .navbar-brand {
    color: #111827;
}

.dealer-logo {
    display: block;
    max-width: min(520px, 70vw);
    max-height: 150px;
    object-fit: contain;
}

.btn-dealer {
    --bs-btn-bg: var(--dealer-primary);
    --bs-btn-border-color: var(--dealer-primary);
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #0f172a;
    --bs-btn-hover-border-color: #0f172a;
    --bs-btn-hover-color: #ffffff;
}

.dealer-hero-public {
    background: linear-gradient(135deg, var(--dealer-hero-bg-start, color-mix(in srgb, var(--dealer-primary) 86%, #000 14%)), #172033 62%, var(--dealer-hero-bg-end, color-mix(in srgb, var(--dealer-secondary) 78%, #000 22%)));
    color: #ffffff;
}

.dealer-custom-hero {
    position: relative;
    overflow: hidden;
}

.dealer-custom-hero .carousel,
.dealer-custom-hero .carousel-inner,
.dealer-custom-hero .carousel-item {
    min-height: 100%;
}

.dealer-hero-slide {
    position: relative;
    isolation: isolate;
    min-height: clamp(520px, 62vh, 760px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dealer-hero-bg-start, color-mix(in srgb, var(--dealer-primary) 86%, #000 14%)), #172033 62%, var(--dealer-hero-bg-end, color-mix(in srgb, var(--dealer-secondary) 78%, #000 22%)));
}

.dealer-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(8, 13, 26, var(--dealer-hero-overlay, .45)), rgba(8, 13, 26, calc(var(--dealer-hero-overlay, .45) * .72)));
}

.dealer-hero-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-swatch-dropdown {
    position: relative;
}

.color-swatch-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}

.color-swatch {
    display: inline-block;
    flex: none;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(16, 24, 40, .28);
    border-radius: 3px;
}

.color-swatch-menu {
    min-width: 100%;
    max-height: 320px;
    overflow-y: auto;
}

.color-swatch-item {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.color-swatch-item.active {
    background: #eef4ff;
    color: inherit;
}

.hero-background-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem;
}

.hero-background-option {
    display: grid;
    gap: .45rem;
    border: 1px solid var(--pas-border);
    border-radius: 8px;
    background: #ffffff;
    padding: .5rem;
    cursor: pointer;
}

.hero-background-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hero-background-option img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
}

.hero-background-option span {
    color: var(--pas-text);
    font-size: .82rem;
    font-weight: 700;
}

.hero-background-option.is-selected {
    border-color: var(--pas-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.dealer-hero-layout-centered .dealer-hero-slide::before {
    background: rgba(8, 13, 26, var(--dealer-hero-overlay, .45));
}

.dealer-hero-public .lead {
    color: rgba(255, 255, 255, .82);
}

.dealer-hero-listings {
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
    color: var(--pas-text);
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.dealer-hero-listings a {
    color: inherit;
}

.dealer-hero-listing {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #ffffff;
    padding: .55rem;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dealer-hero-listing:hover {
    border-color: color-mix(in srgb, var(--dealer-primary) 42%, var(--pas-line));
    box-shadow: 0 10px 22px rgba(15, 23, 42, .1);
    transform: translateY(-1px);
}

.dealer-hero-listing img,
.dealer-hero-listing-placeholder {
    width: 92px;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    object-fit: cover;
    background: #e8edf5;
}

.dealer-hero-listing-placeholder {
    display: grid;
    place-items: center;
    color: var(--pas-muted);
    font-size: .8rem;
    font-weight: 700;
}

.dealer-hero-listing strong {
    display: block;
    overflow: hidden;
    color: var(--pas-text);
    font-size: .95rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dealer-hero-listing small {
    display: block;
    margin-top: .25rem;
    color: var(--pas-muted);
    font-weight: 700;
}

.dealer-hero-panel,
.dealer-filter-panel,
.dealer-detail-panel,
.dealer-lead-panel,
.dealer-vehicle-card {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.dealer-hero-panel,
.dealer-filter-panel,
.dealer-detail-panel,
.dealer-lead-panel {
    padding: 1.25rem;
}

.dealer-mini-calculator {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 1rem;
}

.dealer-mini-calculator .form-label {
    margin-bottom: .25rem;
    color: var(--pas-muted);
    font-weight: 700;
}

.dealer-home-search {
    margin-top: -2.25rem;
    position: relative;
    z-index: 2;
}

.dealer-home-search-tabs {
    display: none;
}

.dealer-home-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: flex-start;
    justify-content: flex-start;
}

.dealer-body-style-section {
    background: #ffffff;
}

.dealer-body-style-view-all {
    color: var(--dealer-primary);
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.dealer-body-style-view-all:hover {
    color: #111827;
}

.dealer-body-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.25rem;
}

.dealer-body-style-card {
    display: flex;
    min-height: 154px;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    padding: 1rem;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dealer-body-style-card:hover {
    border-color: color-mix(in srgb, var(--dealer-primary) 38%, var(--pas-line));
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
    color: #111827;
    transform: translateY(-1px);
}

.dealer-body-style-image-wrap {
    display: grid;
    min-height: 82px;
    place-items: center;
    margin-bottom: .75rem;
}

.dealer-body-style-image-wrap img {
    display: block;
    width: 100%;
    height: 84px;
    object-fit: contain;
}

.dealer-body-style-label {
    display: block;
    font-weight: 800;
    line-height: 1.2;
}

.dealer-body-style-count {
    display: block;
    margin-top: .2rem;
    color: var(--pas-muted);
    font-size: .88rem;
    font-weight: 600;
}

.dealer-search-mode {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin: 0;
}

.dealer-search-mode legend {
    width: auto;
    margin: 0 .35rem 0 0;
    color: var(--pas-muted);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dealer-search-mode .btn {
    min-width: 6rem;
}

.dealer-inventory-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: flex-start;
    justify-content: flex-start;
}

.dealer-home-story-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--pas-line);
    background: #e8edf5;
}

.dealer-home-story-placeholder {
    display: grid;
    place-items: center;
    color: var(--pas-muted);
    font-weight: 700;
    text-align: center;
    padding: 1rem;
}

.dealer-social-band {
    background: #ffffff;
    border-top: 1px solid var(--pas-line);
    border-bottom: 1px solid var(--pas-line);
}

.dealer-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .75rem;
}

.dealer-social-grid a {
    display: flex;
    min-height: 82px;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    padding: 1rem;
    color: var(--pas-text);
    text-decoration: none;
    background: #f8fafc;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dealer-social-grid a:hover {
    border-color: color-mix(in srgb, var(--dealer-primary) 45%, var(--pas-line));
    box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

.dealer-social-grid span {
    color: var(--pas-muted);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dealer-social-grid strong {
    margin-top: .25rem;
}

.dealer-page-header {
    background: #ffffff;
    border-bottom: 1px solid var(--pas-line);
}

.dealer-band {
    background: #ffffff;
    border-top: 1px solid var(--pas-line);
    border-bottom: 1px solid var(--pas-line);
}

.dealer-vehicle-card {
    overflow: hidden;
}

.dealer-vehicle-card a {
    color: inherit;
    text-decoration: none;
}

.dealer-vehicle-image {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: #e8edf5;
    color: var(--pas-muted);
}

.dealer-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Public inventory list redesign */

.dealer-inventory-page {
    padding: 1.25rem 0 2.5rem;
    background: #f7f9fc;
}

.inventory-search-dock {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 1.5rem;
    align-items: stretch;
}

.inventory-search-main,
.inventory-promo-panel,
.inventory-filter-rail,
.inventory-list-card {
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}

.inventory-search-main {
    padding: 1rem 1.1rem;
}

.inventory-search-tabs {
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid #e4eaf3;
    margin: -.15rem 0 .9rem;
}

.inventory-search-tabs a {
    position: relative;
    padding: .45rem 0 .7rem;
    color: #56657b;
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
}

.inventory-search-tabs a.is-active {
    color: var(--dealer-primary);
}

.inventory-search-tabs a.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--dealer-primary);
}

.inventory-search-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 120px;
    gap: .4rem;
}

.inventory-search-row .form-select,
.inventory-search-row .form-control,
.inventory-filter-rail .form-control,
.inventory-sort-tools .form-select {
    min-height: 44px;
    border-color: #ced8e6;
    color: #283954;
    font-size: .9rem;
}

.inventory-keyword {
    position: relative;
}

.inventory-keyword span {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);
    color: #687891;
    font-size: 1.05rem;
    line-height: 1;
}

.inventory-keyword .form-control {
    padding-left: 2.45rem;
    padding-right: 2.5rem;
}

.inventory-keyword-clear {
    position: absolute;
    top: 50%;
    right: .75rem;
    display: grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #edf2f8;
    color: #526176;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.inventory-keyword-clear:hover {
    background: var(--dealer-primary);
    color: #ffffff;
}

.inventory-quick-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
    margin-bottom: .85rem;
}

.inventory-quick-strip > span,
.inventory-active-label {
    color: #687891;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.inventory-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: center;
    margin-top: 1rem;
}

.inventory-chip {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: .55rem;
    border: 1px solid #9bbcff;
    border-radius: 4px;
    padding: 0 .85rem;
    color: var(--dealer-primary);
    background: #f7faff;
    font-size: .85rem;
    font-weight: 750;
    text-decoration: none;
}

.inventory-chip.is-clear,
.inventory-chip.is-quick {
    border-color: #d8e1ee;
    background: #fbfcff;
}

.inventory-quick-strip .inventory-chip.is-quick {
    border-color: #cfd8e6;
    background: transparent;
    color: #283954;
}

.inventory-quick-strip .inventory-chip.is-quick:hover {
    border-color: var(--dealer-primary);
    color: var(--dealer-primary);
}

.inventory-chip.is-selected-quick {
    border-color: var(--dealer-primary);
    background: color-mix(in srgb, var(--dealer-primary) 10%, #ffffff);
}

.inventory-chip-remove {
    display: inline-grid;
    width: 1rem;
    height: 1rem;
    place-items: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--dealer-primary) 12%, #ffffff);
    font-size: .75rem;
    line-height: 1;
}

.inventory-reset-link {
    color: var(--dealer-primary);
    font-size: .85rem;
    font-weight: 750;
    text-decoration: none;
}

.inventory-promo-panel {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.inventory-promo-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 128px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8edf5, #f8fafc);
}

.inventory-promo-media img {
    width: 58%;
    max-width: 145px;
    height: 82px;
    margin-left: -1.6rem;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 12px 22px rgba(15, 23, 42, .18);
}

.inventory-promo-media img:first-child {
    margin-left: 0;
}

.inventory-promo-media span {
    color: #6b7890;
    font-weight: 800;
}

.inventory-promo-panel h2 {
    margin: 0 0 .4rem;
    color: #071427;
    font-size: 1.1rem;
    font-weight: 850;
}

.inventory-promo-panel p {
    margin: 0 0 .65rem;
    color: #526176;
    font-size: .9rem;
}

.inventory-promo-panel a {
    color: var(--dealer-primary);
    font-weight: 800;
    text-decoration: none;
}

.inventory-shop-layout {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-top: .35rem;
}

.inventory-filter-rail {
    overflow: hidden;
}

.inventory-filter-head {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    border-bottom: 1px solid #e6ebf2;
    padding: 1rem 1.1rem;
}

.inventory-filter-head h2 {
    margin: 0 0 .25rem;
    color: #071427;
    font-size: 1rem;
    font-weight: 850;
}

.inventory-filter-head span,
.inventory-filter-head a {
    color: #55667d;
    font-size: .82rem;
}

.inventory-filter-head a {
    color: var(--dealer-primary);
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.inventory-filter-section {
    display: grid;
    gap: .5rem;
    border-bottom: 1px solid #e6ebf2;
    padding: 1rem 1.1rem;
}

.inventory-filter-section h3 {
    margin: 0;
    color: #071427;
    font-size: .88rem;
    font-weight: 850;
}

.inventory-filter-section label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    margin: 0;
    color: #394960;
    font-size: .84rem;
    cursor: pointer;
}

.inventory-filter-section input[type="radio"],
.inventory-filter-section input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--dealer-primary);
}

.inventory-filter-section label span {
    flex: 1;
}

.inventory-filter-section label em {
    color: #8b99ad;
    font-size: .76rem;
    font-style: normal;
    font-weight: 650;
}

.inventory-filter-options {
    display: grid;
    gap: .5rem;
    max-height: 196px;
    overflow-y: auto;
    padding-right: .25rem;
    scrollbar-width: thin;
}

.inventory-range-line {
    position: relative;
    height: 20px;
}

.inventory-range-line::before,
.inventory-range-line span {
    content: "";
    position: absolute;
    top: 9px;
    height: 4px;
    border-radius: 999px;
}

.inventory-range-line::before {
    right: 0;
    left: 0;
    background: #d9e2ef;
}

.inventory-range-line span {
    right: 8%;
    left: 8%;
    background: var(--dealer-primary);
}

.inventory-range-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.inventory-filter-rail > .btn {
    margin: 1rem;
    width: calc(100% - 2rem) !important;
}

.inventory-results-panel {
    min-width: 0;
}

.inventory-results-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.inventory-results-toolbar h1 {
    margin: 0;
    color: #071427;
    font-size: 1.08rem;
    font-weight: 850;
}

.inventory-sort-tools {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #56657b;
    font-size: .86rem;
}

.inventory-sort-tools .form-select {
    width: 190px;
}

.inventory-view-toggle {
    display: grid;
    width: 40px;
    height: 38px;
    place-items: center;
    border: 1px solid #d8e1ee;
    border-radius: 6px;
    color: #7a89a0;
    background: #ffffff;
    font-weight: 900;
}

.inventory-view-toggle.is-active {
    color: var(--dealer-primary);
    background: #eef5ff;
}

.inventory-list-results {
    display: grid;
    gap: .8rem;
}

.inventory-list-results.is-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.inventory-list-results.is-grid .inventory-list-card {
    grid-template-columns: 1fr;
    gap: .75rem;
}

.inventory-list-results.is-grid .inventory-list-actions {
    border-left: 0;
    padding-left: 0;
}

.inventory-list-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 210px;
    gap: 1.35rem;
    align-items: stretch;
    padding: .4rem;
}

.inventory-list-photo-wrap {
    position: relative;
    min-width: 0;
}

.inventory-list-photo {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 154px;
    overflow: hidden;
    place-items: center;
    border-radius: 6px;
    color: #6b7890;
    background: #edf2f8;
    font-weight: 800;
    text-decoration: none;
}

.inventory-list-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inventory-list-photo em {
    position: absolute;
    bottom: .5rem;
    left: .5rem;
    border-radius: 4px;
    padding: .2rem .45rem;
    color: #ffffff;
    background: rgba(15, 23, 42, .82);
    font-size: .72rem;
    font-style: normal;
    font-weight: 750;
}

.inventory-video-badge {
    position: absolute;
    top: .55rem;
    left: .55rem;
}

.inventory-save-btn {
    position: absolute;
    top: .55rem;
    right: .55rem;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #dfe6ef;
    border-radius: 50%;
    color: #64748b;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.inventory-list-body {
    display: grid;
    align-content: center;
    padding: 1rem 0;
    min-width: 0;
}

.inventory-list-body h2 {
    margin: 0 0 .35rem;
    color: #071427;
    font-size: 1.35rem;
    font-weight: 850;
    line-height: 1.18;
}

.inventory-list-body h2 a {
    color: inherit;
    text-decoration: none;
}

.inventory-list-body p {
    margin: 0 0 1.3rem;
    color: #56657b;
    font-size: .86rem;
}

.inventory-list-body p span {
    margin: 0 .6rem;
    color: #a5b0c0;
}

.inventory-spec-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    gap: 1rem;
}

.inventory-spec-grid div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: .5rem;
    align-items: center;
}

.inventory-spec-grid i {
    display: grid;
    grid-row: span 2;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #b9c5d6;
    border-radius: 8px;
    color: #627189;
    font-size: .58rem;
    font-style: normal;
    font-weight: 900;
}

.inventory-spec-grid strong,
.inventory-spec-grid span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-spec-grid strong {
    color: #071427;
    font-size: .9rem;
    font-weight: 850;
}

.inventory-spec-grid span {
    color: #63738b;
    font-size: .78rem;
}

.inventory-list-actions {
    display: grid;
    align-content: center;
    gap: .75rem;
    border-left: 1px solid #e5ebf3;
    padding: 1rem .9rem 1rem 1.2rem;
}

.inventory-list-actions strong {
    color: #071427;
    font-size: 1.35rem;
    font-weight: 900;
}

.inventory-list-actions .btn {
    width: 100%;
    border-radius: 6px;
    font-weight: 800;
}

.inventory-list-actions > a:not(.btn) {
    color: var(--dealer-primary);
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1500px) {
    .inventory-shop-layout {
        grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    }

    .inventory-list-card {
        grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
        gap: 1rem;
    }

    .inventory-list-body {
        padding: .85rem .5rem .85rem 0;
    }

    .inventory-list-body h2 {
        font-size: 1.15rem;
    }

    .inventory-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }

    .inventory-list-actions {
        grid-column: 1 / -1;
        grid-template-columns: minmax(140px, .7fr) repeat(2, minmax(150px, 1fr)) minmax(130px, .8fr);
        align-items: center;
        border-top: 1px solid #e5ebf3;
        border-left: 0;
        padding: .9rem;
    }

    .inventory-list-actions strong {
        font-size: 1.15rem;
    }
}

@media (max-width: 1200px) {
    .inventory-search-dock,
    .inventory-shop-layout {
        grid-template-columns: 1fr;
    }

    .inventory-promo-panel {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .inventory-list-card {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .inventory-list-actions {
        grid-column: 1 / -1;
        grid-template-columns: minmax(130px, .7fr) repeat(2, minmax(150px, 1fr)) minmax(130px, .8fr);
        align-items: center;
        border-top: 1px solid #e5ebf3;
        border-left: 0;
    }
}

@media (max-width: 760px) {
    .inventory-search-row,
    .inventory-list-card,
    .inventory-list-actions,
    .inventory-promo-panel,
    .inventory-spec-grid {
        grid-template-columns: 1fr;
    }

    .inventory-results-toolbar,
    .inventory-sort-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .inventory-sort-tools .form-select {
        width: 100%;
    }

    .inventory-view-toggle {
        width: 100%;
    }

    .inventory-list-body {
        padding: 0;
    }

    .inventory-list-actions {
        align-items: stretch;
        padding: .9rem 0 0;
    }

    .inventory-list-actions strong {
        font-size: 1.2rem;
    }

    .inventory-search-tabs {
        gap: .9rem;
        overflow-x: auto;
    }
}

.inventory-list-results.is-grid .inventory-list-card {
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    padding: .55rem;
}

.inventory-list-results.is-grid .inventory-list-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
}

.inventory-list-results.is-grid .inventory-list-body {
    align-content: start;
    padding: 1rem .15rem .75rem;
}

.inventory-list-results.is-grid .inventory-list-body h2 {
    font-size: 1.05rem;
}

.inventory-list-results.is-grid .inventory-list-body p {
    margin-bottom: .9rem;
}

.inventory-list-results.is-grid .inventory-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.inventory-list-results.is-grid .inventory-list-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
    align-items: stretch;
    border-top: 0;
    border-left: 0;
    padding: .25rem .15rem .2rem;
}

.inventory-list-results.is-grid .inventory-list-actions strong {
    font-size: 1.15rem;
}

.dealer-badge-strip {
    position: absolute;
    left: .65rem;
    top: .65rem;
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    align-items: center;
}

.dealer-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 6px;
    padding: .2rem .5rem;
    color: #ffffff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .22);
}

.dealer-badge-special {
    background: #b42318;
}

.dealer-badge-featured {
    background: var(--dealer-primary);
}

.dealer-badge-certified {
    background: var(--dealer-secondary);
}

.dealer-badge-video {
    background: #0f172a;
}

.dealer-card-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

.dealer-card-specs div {
    min-width: 0;
    border: 1px solid #edf1f7;
    border-radius: 6px;
    padding: .5rem;
    background: #f8fafc;
}

.dealer-card-specs span {
    display: block;
    color: var(--pas-muted);
    font-size: .72rem;
}

.dealer-card-specs strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .84rem;
}

.dealer-card-merch {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
}

.dealer-card-merch span,
.dealer-card-merch a {
    border: 1px solid var(--pas-line);
    border-radius: 6px;
    padding: .25rem .45rem;
    background: #ffffff;
    color: var(--pas-muted);
    font-size: .78rem;
    font-weight: 700;
}

.dealer-card-merch a.dealer-trust-link {
    border-color: color-mix(in srgb, var(--dealer-secondary) 35%, var(--pas-line));
    background: color-mix(in srgb, var(--dealer-secondary) 7%, #ffffff);
    color: color-mix(in srgb, var(--dealer-secondary) 70%, #0f172a);
}

.dealer-price,
.dealer-vdp-price {
    color: var(--dealer-primary);
    font-weight: 800;
    white-space: nowrap;
}

.dealer-vdp-price {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.dealer-cta-tile {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: flex-end;
    gap: .5rem;
    border-radius: 8px;
    padding: 1.25rem;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, var(--dealer-primary), #111827);
}

.dealer-cta-tile span {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .82;
}

.dealer-cta-tile strong {
    font-size: 1.15rem;
    line-height: 1.25;
}

.dealer-cta-tile small {
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
}

.dealer-empty {
    border: 1px dashed #b8c4d6;
    border-radius: 8px;
    background: #ffffff;
    color: var(--pas-muted);
    padding: 2rem;
    text-align: center;
}

.dealer-gallery {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--pas-line);
}

.dealer-gallery-main,
.dealer-gallery-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e8edf5;
}

.dealer-gallery-placeholder {
    display: grid;
    place-items: center;
    color: var(--pas-muted);
}

.dealer-gallery-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 120px;
    gap: .5rem;
    overflow-x: auto;
    padding: .75rem;
}

.dealer-gallery-strip img {
    width: 120px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--pas-line);
}

.dealer-spec-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.dealer-spec-grid div {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    padding: .85rem;
    background: #f8fafc;
}

.dealer-spec-grid span {
    display: block;
    color: var(--pas-muted);
    font-size: .78rem;
    margin-bottom: .2rem;
}

.dealer-vdp-page {
    --dealer-vdp-accent: var(--dealer-accent, var(--dealer-primary));
    --dealer-vdp-ink: var(--dealer-template-ink, var(--pas-ink));
    --dealer-vdp-line: var(--summit-line, var(--dealer-template-border, var(--pas-line)));
    --dealer-vdp-muted-bg: var(--dealer-template-muted, #f8fafc);
    --dealer-vdp-surface: var(--dealer-template-surface, #ffffff);
    background: #ffffff;
    color: var(--dealer-vdp-ink);
    font-family: var(--dealer-font-family, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
    padding: 1rem 0 2.25rem;
}

.dealer-vdp-page .btn,
.dealer-vdp-page button,
.dealer-vdp-page input,
.dealer-vdp-page select,
.dealer-vdp-page textarea {
    font-family: inherit;
}

.dealer-vdp-topbar {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dealer-vdp-topbar .breadcrumb-list {
    margin-bottom: 0;
}

.dealer-vdp-nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    white-space: nowrap;
}

.dealer-vdp-nav-links a {
    color: var(--dealer-vdp-ink);
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.dealer-vdp-nav-links a:hover {
    color: var(--dealer-vdp-accent);
}

.dealer-vdp-hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
    gap: 2rem;
    align-items: start;
}

.dealer-vdp-gallery {
    min-width: 0;
}

.dealer-vdp-media-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--dealer-vdp-line);
    border-radius: 8px;
    background: var(--dealer-vdp-muted-bg);
}

.dealer-vdp-media-frame img,
.dealer-vdp-photo-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9.7;
    object-fit: contain;
}

.dealer-vdp-photo-empty {
    display: grid;
    place-items: center;
    color: #64748b;
    font-weight: 800;
}

.dealer-vdp-photo-count {
    position: absolute;
    top: 1rem;
    left: 1rem;
    border-radius: 6px;
    background: rgba(15, 23, 42, .86);
    color: #ffffff;
    padding: .35rem .65rem;
    font-size: .9rem;
    font-weight: 800;
}

.dealer-vdp-gallery-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #0f172a;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .16);
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
}

.dealer-vdp-gallery-arrow.is-prev {
    left: 1rem;
}

.dealer-vdp-gallery-arrow.is-next {
    right: 1rem;
}

.dealer-vdp-thumb-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .55rem;
    margin-top: .75rem;
}

.dealer-vdp-thumb-strip button {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--dealer-vdp-line);
    border-radius: 7px;
    background: var(--dealer-vdp-muted-bg);
    padding: 0;
}

.dealer-vdp-thumb-strip button.is-active {
    border-color: var(--dealer-vdp-accent);
    box-shadow: inset 0 0 0 1px var(--dealer-vdp-accent);
}

.dealer-vdp-video-thumb {
    display: grid;
    min-height: 74px;
    place-items: center;
    border: 1px solid var(--dealer-vdp-line);
    border-radius: 7px;
    background: #0f172a;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
}

.dealer-vdp-video-thumb strong {
    display: block;
    font-size: .9rem;
    line-height: 1;
}

.dealer-vdp-video-thumb span {
    display: block;
    font-size: .78rem;
    color: rgba(255, 255, 255, .78);
}

.dealer-vdp-video-panel {
    margin-top: .75rem;
    overflow: hidden;
    border: 1px solid var(--dealer-vdp-line);
    border-radius: 8px;
    background: #ffffff;
}

.dealer-vdp-video-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: .75rem .9rem;
    border-bottom: 1px solid var(--dealer-vdp-line);
}

.dealer-vdp-video-head a {
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.dealer-vdp-video-panel iframe,
.dealer-vdp-video-fallback {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #0f172a;
}

.dealer-vdp-video-fallback {
    display: grid;
    place-items: center;
    padding: 1.5rem;
    color: #ffffff;
    text-align: center;
}

.dealer-vdp-thumb-strip img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.dealer-vdp-more-photos {
    display: grid;
    min-height: 70px;
    place-items: center;
    color: var(--dealer-vdp-ink);
    font-weight: 800;
}

.dealer-vdp-more-photos strong,
.dealer-vdp-more-photos span {
    display: block;
    line-height: 1.1;
}

.dealer-vdp-more-photos span {
    color: #475569;
    font-size: .82rem;
}

.dealer-vdp-summary {
    min-width: 0;
}

.dealer-vdp-title-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.dealer-vdp-status {
    display: inline-block;
    margin-bottom: .55rem;
    border-radius: 6px;
    background: color-mix(in srgb, var(--dealer-vdp-accent) 14%, #ffffff);
    color: var(--dealer-vdp-accent);
    padding: .22rem .55rem;
    font-size: .8rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.dealer-vdp-title-row h1 {
    margin: 0;
    color: var(--dealer-vdp-ink);
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    font-weight: 900;
    line-height: 1.05;
}

.dealer-vdp-meta {
    margin-top: .55rem;
    color: #64748b;
    font-weight: 700;
}

.dealer-vdp-meta span {
    margin: 0 .65rem;
    color: #94a3b8;
}

.dealer-vdp-save-icon {
    flex: 0 0 auto;
    border: 1px solid var(--dealer-vdp-line);
    border-radius: 999px;
    background: var(--dealer-vdp-surface);
    color: var(--dealer-vdp-ink);
    padding: .45rem .8rem;
    font-weight: 800;
}

.dealer-vdp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .75rem;
}

.dealer-vdp-price-block {
    margin-top: 1rem;
}

.dealer-vdp-summary .dealer-vdp-price {
    color: var(--dealer-vdp-accent);
    font-size: clamp(1.9rem, 3.2vw, 2.35rem);
    font-weight: 900;
}

.dealer-vdp-price-block a,
.dealer-vdp-panel a,
.dealer-vdp-trust-strip a,
.dealer-vdp-history-links a {
    color: var(--dealer-vdp-accent);
    font-weight: 800;
    text-decoration: none;
}

.dealer-vdp-price-block a:hover,
.dealer-vdp-panel a:hover,
.dealer-vdp-trust-strip a:hover,
.dealer-vdp-history-links a:hover {
    text-decoration: underline;
}

.dealer-vdp-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1.15rem;
}

.dealer-vdp-primary-actions .btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    font-weight: 850;
}

.dealer-vdp-secondary-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
    margin-top: .85rem;
}

.dealer-vdp-secondary-actions a,
.dealer-vdp-secondary-actions button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dealer-vdp-line);
    border-radius: 7px;
    background: var(--dealer-vdp-surface);
    color: color-mix(in srgb, var(--dealer-vdp-ink) 82%, #64748b);
    padding: .45rem .6rem;
    font-size: .9rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.dealer-vdp-secondary-actions a:hover,
.dealer-vdp-secondary-actions button:hover {
    border-color: color-mix(in srgb, var(--dealer-vdp-accent) 45%, var(--dealer-vdp-line));
    color: var(--dealer-vdp-accent);
}

.dealer-vdp-spec-matrix {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 1.1rem;
    border-top: 1px solid var(--dealer-vdp-line);
}

.dealer-vdp-spec-matrix div {
    min-height: 54px;
    border-right: 1px solid var(--dealer-vdp-line);
    padding: .72rem .85rem .55rem 0;
}

.dealer-vdp-spec-matrix div:nth-child(3n) {
    border-right: 0;
    padding-left: .95rem;
}

.dealer-vdp-spec-matrix div:nth-child(3n + 2) {
    padding-left: .95rem;
}

.dealer-vdp-spec-matrix span,
.dealer-vdp-spec-matrix small {
    display: block;
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
}

.dealer-vdp-spec-matrix strong {
    display: block;
    color: var(--dealer-vdp-ink);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.2;
}

.dealer-vdp-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, .9fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

.dealer-vdp-panel {
    border: 1px solid var(--dealer-vdp-line);
    border-radius: 8px;
    background: var(--dealer-vdp-surface);
    padding: 1.35rem;
}

.dealer-vdp-panel h2 {
    margin: 0 0 1rem;
    color: var(--dealer-vdp-ink);
    font-size: 1.1rem;
    font-weight: 900;
}

.dealer-vdp-panel p {
    color: color-mix(in srgb, var(--dealer-vdp-ink) 84%, #64748b);
    line-height: 1.65;
}

.dealer-vdp-highlights ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem 1.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dealer-vdp-highlights li,
.dealer-vdp-history li {
    position: relative;
    color: color-mix(in srgb, var(--dealer-vdp-ink) 84%, #64748b);
    font-weight: 700;
    line-height: 1.35;
}

.dealer-vdp-highlights li {
    padding-left: 1.45rem;
}

.dealer-vdp-highlights li::before {
    position: absolute;
    top: .12rem;
    left: 0;
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 999px;
    background: var(--dealer-vdp-accent);
    color: #ffffff;
    content: "\2713";
    font-size: .65rem;
    font-weight: 900;
}

.dealer-vdp-history ul {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dealer-vdp-history-links {
    display: grid;
    gap: .5rem;
    margin-top: 1.25rem;
}

.dealer-vdp-history-reports {
    display: grid;
    gap: .75rem;
    margin-top: 1.25rem;
}

.dealer-history-report-card {
    display: grid;
    gap: .35rem;
    border: 1px solid color-mix(in srgb, var(--dealer-vdp-accent) 22%, var(--dealer-vdp-line));
    border-radius: 8px;
    padding: .9rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--dealer-vdp-accent) 7%, #ffffff), #ffffff);
}

.dealer-history-report-card strong,
.dealer-history-report-card small,
.dealer-history-report-card span {
    display: block;
}

.dealer-history-report-card strong {
    color: var(--dealer-vdp-ink);
    font-size: .94rem;
    font-weight: 900;
}

.dealer-history-report-card small {
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.35;
}

.dealer-history-provider-mark {
    justify-self: start;
    border-radius: 6px;
    padding: .22rem .48rem;
    background: var(--dealer-vdp-ink);
    color: #ffffff;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.dealer-history-report-card.is-carfax .dealer-history-provider-mark {
    background: #0b5cab;
}

.dealer-history-report-card.is-autocheck .dealer-history-provider-mark {
    background: #b42318;
}

.dealer-provider-embed-panel {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
}

.dealer-provider-embed-head {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: .9rem;
}

.dealer-provider-embed-panel iframe {
    display: block;
    width: 100%;
    min-height: 620px;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #f8fafc;
}

.dealer-vdp-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 1rem;
    border: 1px solid var(--dealer-vdp-line);
    border-radius: 8px;
    background: var(--dealer-vdp-surface);
}

.dealer-vdp-trust-strip div {
    min-height: 112px;
    border-right: 1px solid var(--dealer-vdp-line);
    padding: 1.35rem 1.5rem;
}

.dealer-vdp-trust-strip div:last-child {
    border-right: 0;
}

.dealer-vdp-trust-strip strong,
.dealer-vdp-trust-strip span,
.dealer-vdp-trust-strip a {
    display: block;
}

.dealer-vdp-trust-strip strong {
    color: var(--dealer-vdp-ink);
    font-weight: 900;
}

.dealer-vdp-trust-strip span {
    margin: .25rem 0 .55rem;
    color: #64748b;
    font-size: .92rem;
}

.dealer-vdp-leads {
    background: var(--dealer-vdp-muted-bg);
    border-top: 1px solid var(--dealer-vdp-line);
    padding: 2.5rem 0;
}

.dealer-vdp-lead-head {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.dealer-vdp-lead-head h2 {
    margin: 0 0 .35rem;
    color: var(--dealer-vdp-ink);
    font-weight: 900;
}

.dealer-vdp-lead-head p {
    max-width: 720px;
    margin: 0;
    color: #64748b;
}

.dealer-vdp-phone-actions {
    display: flex;
    gap: .5rem;
}

.dealer-vdp-lead-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dealer-vdp-lead-card {
    border: 1px solid var(--dealer-vdp-line);
    border-radius: 8px;
    background: var(--dealer-vdp-surface);
    padding: 1.25rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

@media (max-width: 1199.98px) {
    .dealer-vdp-hero {
        grid-template-columns: 1fr;
    }

    .dealer-vdp-summary {
        max-width: none;
    }

    .dealer-vdp-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dealer-vdp-history {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .dealer-vdp-page {
        padding-top: .75rem;
    }

    .dealer-vdp-topbar,
    .dealer-vdp-lead-head {
        align-items: stretch;
        flex-direction: column;
    }

    .dealer-vdp-nav-links {
        justify-content: space-between;
        white-space: normal;
    }

    .dealer-vdp-title-row {
        flex-direction: column;
    }

    .dealer-vdp-title-row h1 {
        font-size: 1.75rem;
    }

    .dealer-vdp-primary-actions,
    .dealer-vdp-secondary-actions,
    .dealer-vdp-spec-matrix,
    .dealer-vdp-info-grid,
    .dealer-vdp-trust-strip,
    .dealer-vdp-lead-grid {
        grid-template-columns: 1fr;
    }

    .dealer-vdp-spec-matrix div,
    .dealer-vdp-spec-matrix div:nth-child(3n),
    .dealer-vdp-spec-matrix div:nth-child(3n + 2) {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
        padding: .85rem 0;
    }

    .dealer-vdp-spec-matrix div:last-child {
        border-bottom: 0;
    }

    .dealer-vdp-highlights ul {
        grid-template-columns: 1fr;
    }

    .dealer-vdp-trust-strip div {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .dealer-vdp-trust-strip div:last-child {
        border-bottom: 0;
    }

    .dealer-provider-embed-head {
        flex-direction: column;
    }

    .dealer-provider-embed-panel iframe {
        min-height: 520px;
    }

    .dealer-vdp-thumb-strip {
        grid-auto-flow: column;
        grid-auto-columns: 104px;
        grid-template-columns: none;
        overflow-x: auto;
        padding-bottom: .2rem;
    }
}

.dealer-content {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1.5rem;
    line-height: 1.7;
}

.dealer-content-card {
    overflow: hidden;
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.dealer-content-card-media {
    display: grid;
    min-height: 180px;
    place-items: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--dealer-primary) 12%, #ffffff 88%), #eef3f8);
    color: var(--dealer-primary);
    font-weight: 800;
    text-decoration: none;
}

.dealer-content-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #e8edf5;
}

.dealer-content-card-media img {
    min-height: 180px;
}

.dealer-content-hero {
    width: 100%;
    max-height: 420px;
    border-radius: 8px;
    object-fit: cover;
}

.dealer-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.dealer-review-card {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.dealer-review-stars {
    color: #d97706;
    font-size: 1.05rem;
    letter-spacing: 0;
}

.dealer-review-source {
    color: var(--pas-muted);
    font-size: .86rem;
    font-weight: 700;
    margin-top: .15rem;
    text-transform: uppercase;
}

.dealer-review-detail {
    border-bottom: 1px solid var(--pas-line);
    padding-bottom: 1rem;
}

.dealer-review-card blockquote {
    margin: .8rem 0 1rem;
    color: #334155;
    font-size: 1rem;
    line-height: 1.65;
}

.dealer-review-meta strong,
.dealer-review-meta span {
    display: block;
}

.dealer-review-meta span {
    color: var(--pas-muted);
    font-size: .9rem;
}

.dealer-review-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 1rem;
}

.dealer-review-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

@media (max-width: 767.98px) {
    .dealer-review-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

.dealer-lead-form .form-control,
.dealer-lead-form .form-select {
    background: #fbfdff;
}

.dealer-disclaimer {
    font-size: .9rem;
    color: var(--pas-muted);
}

.dealer-saved-count-badge {
    display: inline-grid;
    min-width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    border-radius: 999px;
    background: var(--pas-primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0 .35rem;
}

.dealer-saved-count-badge-mobile {
    position: absolute;
    top: .25rem;
    right: .3rem;
    min-width: 1.1rem;
    height: 1.1rem;
    font-size: .62rem;
}

.dealer-compare-table th {
    color: var(--pas-muted);
    font-size: .8rem;
    text-transform: uppercase;
}

.dealer-compare-vehicle {
    display: flex;
    gap: .85rem;
    align-items: center;
    min-width: 240px;
}

.dealer-compare-vehicle img,
.dealer-compare-photo-empty {
    width: 88px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--pas-line);
    border-radius: 6px;
    background: #eef2f7;
}

.dealer-compare-photo-empty {
    display: grid;
    place-items: center;
    color: var(--pas-muted);
    font-size: .75rem;
    text-align: center;
}

.dealer-contact-list {
    display: grid;
    gap: .75rem;
}

.dealer-contact-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--pas-line);
    padding-bottom: .65rem;
}

.dealer-contact-list span {
    color: var(--pas-muted);
}

.dealer-contact-list strong {
    text-align: right;
}

.dealer-contact-list a {
    color: inherit;
    text-decoration: none;
}

.dealer-contact-list a:hover {
    text-decoration: underline;
}

.dealer-department-contact-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dealer-department-contact-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1.15rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.dealer-department-phone {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #edf1f7;
    padding-top: .85rem;
}

.dealer-department-phone span,
.dealer-department-hours dt {
    color: var(--pas-muted);
    font-weight: 600;
}

.dealer-department-phone a {
    color: inherit;
    font-weight: 800;
    text-align: right;
    text-decoration: none;
}

.dealer-department-phone a:hover {
    text-decoration: underline;
}

.dealer-department-hours {
    display: grid;
    gap: .35rem;
}

.dealer-department-hours div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    border-top: 1px solid #edf1f7;
    padding-top: .35rem;
}

.dealer-department-hours dd {
    margin: 0;
    text-align: right;
}

.dealer-location-card {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1.15rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.dealer-location-address {
    color: #111827;
    font-weight: 600;
}

.dealer-location-contact {
    display: grid;
    gap: .5rem;
}

.dealer-location-contact div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    border-top: 1px solid #edf1f7;
    padding-top: .5rem;
}

.dealer-location-contact span {
    color: var(--pas-muted);
}

.dealer-location-contact a {
    color: inherit;
    font-weight: 700;
    text-align: right;
}

.dealer-map-embed {
    overflow: hidden;
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #eef2f7;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.dealer-map-embed iframe {
    display: block;
    width: 100%;
    min-height: 220px;
    border: 0;
}

.dealer-hours-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dealer-hours-card {
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
}

.dealer-hours-card dl div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    border-bottom: 1px solid #edf1f7;
    padding: .4rem 0;
}

.dealer-hours-card dl div:last-child {
    border-bottom: 0;
}

.dealer-hours-card dt {
    color: var(--pas-muted);
    font-weight: 600;
}

.dealer-hours-card dd {
    margin: 0;
    text-align: right;
}

.dealer-footer {
    background: #ffffff;
    border-top: 1px solid var(--pas-line);
}

.dealer-mobile-actions {
    position: sticky;
    bottom: 0;
    z-index: 1020;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
    background: #ffffff;
    border-top: 1px solid var(--pas-line);
    box-shadow: 0 -12px 24px rgba(15, 23, 42, .08);
}

.dealer-mobile-actions a {
    position: relative;
    padding: .75rem .4rem;
    text-align: center;
    color: var(--dealer-primary);
    font-size: .8rem;
    text-decoration: none;
    font-weight: 700;
}

.dealer-mobile-actions-global {
    position: fixed;
    right: 0;
    left: 0;
}

.dealer-mobile-actions-vdp {
    position: fixed;
    right: 0;
    left: 0;
}

.pas-vehicle-showcase-image {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.pas-consent-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    display: flex;
    max-width: min(640px, calc(100vw - 2rem));
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    padding: 1rem;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .18);
}

.pas-lead-widget {
    position: fixed;
    right: 1rem;
    z-index: 1060;
    display: flex;
    max-width: min(420px, calc(100vw - 2rem));
    gap: .85rem;
    align-items: center;
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    padding: 1rem 1.25rem 1rem 1rem;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .2);
}

.pas-lead-widget strong {
    display: block;
    line-height: 1.2;
}

.pas-lead-widget p {
    margin: .25rem 0 0;
    color: var(--pas-muted);
    font-size: .92rem;
}

.pas-lead-widget-banner {
    left: 50%;
    right: auto;
    bottom: 1rem;
    transform: translateX(-50%);
    max-width: min(760px, calc(100vw - 2rem));
}

.pas-lead-widget-slide_in,
.pas-lead-widget-popup {
    bottom: 5rem;
}

.pas-lead-widget-popup {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
}

.pas-lead-widget-copy {
    min-width: 0;
    flex: 1;
}

.pas-lead-widget-close {
    position: absolute;
    top: .35rem;
    right: .45rem;
    border: 0;
    background: transparent;
    color: var(--pas-muted);
    font-size: 1.25rem;
    line-height: 1;
}

@media (max-width: 767.98px) {
    .dealer-hero-slide {
        min-height: auto;
    }

    .dealer-hero-listing {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .dealer-hero-listing img,
    .dealer-hero-listing-placeholder {
        width: 74px;
    }

    .pas-consent-banner {
        left: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .pas-lead-widget {
        left: 1rem;
        right: 1rem;
        bottom: 4.75rem;
        transform: none;
        max-width: none;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        width: 100%;
    }

    .admin-shell {
        flex-direction: column;
    }
}

@media (min-width: 992px) {
    .dealer-public.has-mobile-actions {
        padding-bottom: 0;
    }

    .dealer-mobile-actions {
        display: none;
    }
}

@media print {
    @page {
        margin: .5in;
    }

    .dealer-topbar,
    .dealer-navbar,
    .dealer-footer,
    .dealer-mobile-actions,
    .dealer-lead-form,
    .dealer-mini-calculator,
    .dealer-lead-panel hr,
    .dealer-vdp-similar,
    .dealer-vdp-visit,
    .dealer-gallery-strip,
    .dealer-map-embed,
    .pas-consent-banner,
    .pas-lead-widget,
    .dealer-band,
    .dealer-cta-tile,
    .btn,
    [data-save-vehicle],
    [data-compare-vehicle],
    [data-share-vehicle],
    [data-print-page] {
        display: none !important;
    }

    .dealer-public {
        background: #ffffff;
        color: #000000;
        padding-bottom: 0;
        font-size: 11pt;
    }

    .dealer-detail-panel,
    .dealer-lead-panel,
    .dealer-gallery {
        box-shadow: none;
        border-color: #cccccc;
        break-inside: avoid;
    }

    .dealer-page-header {
        border-bottom: 1px solid #cccccc;
        background: #ffffff;
        padding-bottom: .25in !important;
    }

    .dealer-page-header .breadcrumb-list,
    .dealer-page-header nav {
        display: none !important;
    }

    .dealer-vdp-price {
        color: #000000;
        font-size: 20pt;
    }

    .dealer-gallery-main,
    .dealer-gallery-placeholder {
        max-height: 4.25in;
        object-fit: contain;
        background: #ffffff;
    }

    .dealer-detail-panel {
        margin-top: .2in !important;
        padding: .16in;
    }

    .dealer-lead-panel {
        margin-top: .2in;
    }

    .dealer-lead-panel > .d-flex,
    .dealer-lead-panel > .d-flex + .d-flex {
        display: block !important;
    }

    .dealer-spec-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: .08in;
    }

    .dealer-spec-grid div {
        border-color: #dddddd;
        padding: .08in;
    }

    a {
        color: #000000;
        text-decoration: none;
    }

    .dealer-disclaimer {
        border-color: #cccccc;
        color: #000000;
    }

    .sticky-lg-top {
        position: static !important;
    }
}

/* Dealer admin dashboard inspired by the provided ProAutoSites dashboard reference. */
.admin-body {
    --console-radius: 12px;
    --console-line: #e3e9f2;
    --console-shadow: 0 10px 30px rgba(17, 35, 68, .05);
    --console-blue: #2376ff;
    --console-blue-dark: #155cd7;
    --bs-link-color: #2376ff;
    --bs-link-color-rgb: 35, 118, 255;
    --bs-link-hover-color: #155cd7;
    --bs-link-hover-color-rgb: 21, 92, 215;
    background: #f3f6fb;
    color: #14213b;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.admin-body h1 {
    color: #0b1730;
    font-weight: 800;
    letter-spacing: -.02em;
}

.admin-body h2,
.admin-body h3 {
    color: #14213b;
    font-weight: 700;
}

.admin-body .metric-card,
.admin-body .stat-card,
.admin-body .table-panel,
.admin-body .feature-card,
.admin-body .card {
    border-color: var(--console-line);
    border-radius: var(--console-radius);
    box-shadow: var(--console-shadow);
}

.admin-body .stat-card .stat-value {
    color: #0b1730;
}

.admin-body .table {
    --bs-table-hover-bg: #f6f9ff;
}

.admin-body .table thead th {
    padding-top: .65rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--console-line);
    background: #f8fafd;
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.admin-body .table td {
    padding-top: .7rem;
    padding-bottom: .7rem;
}

.admin-body .form-label {
    color: #33415c;
    font-size: .875rem;
    font-weight: 600;
}

.admin-body .form-control,
.admin-body .form-select {
    min-height: 44px;
    border-color: #d7e0ec;
    border-radius: 8px;
}

.admin-body .form-control-sm,
.admin-body .form-select-sm {
    min-height: 34px;
    border-radius: 7px;
}

.admin-body .form-control:focus,
.admin-body .form-select:focus {
    border-color: #8eb8ff;
    box-shadow: 0 0 0 .25rem rgba(35, 118, 255, .12);
}

.admin-body .btn {
    border-radius: 8px;
    font-weight: 650;
}

.admin-body .btn-primary {
    --bs-btn-bg: var(--console-blue);
    --bs-btn-border-color: var(--console-blue);
    --bs-btn-hover-bg: var(--console-blue-dark);
    --bs-btn-hover-border-color: var(--console-blue-dark);
    --bs-btn-active-bg: var(--console-blue-dark);
    --bs-btn-active-border-color: var(--console-blue-dark);
}

.admin-body .btn-outline-primary {
    --bs-btn-color: var(--console-blue);
    --bs-btn-border-color: #bcd4ff;
    --bs-btn-hover-bg: var(--console-blue);
    --bs-btn-hover-border-color: var(--console-blue);
    --bs-btn-active-bg: var(--console-blue-dark);
    --bs-btn-active-border-color: var(--console-blue-dark);
}

.admin-body .alert {
    border: 0;
    border-radius: 10px;
}

.admin-body .badge {
    border-radius: 6px;
    padding: .42em .62em;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.admin-body .badge.text-bg-success {
    background-color: #e5f6ee !important;
    color: #14804a !important;
}

.admin-body .badge.text-bg-danger {
    background-color: #fdecec !important;
    color: #c22f2f !important;
}

.admin-body .badge.text-bg-warning {
    background-color: #fff3d6 !important;
    color: #976400 !important;
}

.admin-body .badge.text-bg-info {
    background-color: #e3f1fd !important;
    color: #0b6bcb !important;
}

.admin-body .badge.text-bg-primary {
    background-color: #e7efff !important;
    color: #155cd7 !important;
}

.admin-body .badge.text-bg-secondary,
.admin-body .badge.text-bg-light {
    background-color: #eef1f6 !important;
    color: #5b6b83 !important;
}

.admin-avatar {
    display: grid;
    flex: none;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #e7efff;
    color: #155cd7;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.admin-body .modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(21, 50, 94, .18);
}

.admin-shell {
    background: #f3f6fb;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    flex: 0 0 var(--admin-sidebar-width);
    width: var(--admin-sidebar-width);
    min-width: var(--admin-sidebar-width);
    max-width: var(--admin-sidebar-width);
    height: 100vh;
    flex-direction: column;
    overflow-y: auto;
    background: linear-gradient(180deg, #07162e 0%, #061329 100%);
    color: #dbe4f0;
}

.admin-brand {
    display: flex;
    gap: .75rem;
    align-items: center;
    width: 100%;
    min-width: 0;
    margin-bottom: 1.35rem;
    padding-bottom: 1.25rem;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.admin-brand:hover {
    color: #ffffff;
}

.admin-brand-logo {
    display: block;
    width: min(100%, 158px);
    height: auto;
    object-fit: contain;
}

.admin-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff5b3d, #ff785f);
    color: #ffffff;
    font-size: .82rem;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(255, 91, 61, .25);
}

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

.admin-brand strong {
    font-size: 1rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.admin-brand small {
    margin-top: .2rem;
    color: #9babc4;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-sidebar .nav-link {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    gap: .65rem;
    min-height: 40px;
    border-radius: 8px;
    padding: .58rem .75rem;
    color: #aebbd0;
    font-size: .9rem;
    font-weight: 700;
}

.admin-sidebar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .08);
}

.admin-sidebar .nav-link.active {
    color: #ffffff;
    background: #2376ff;
    box-shadow: 0 8px 20px rgba(35, 118, 255, .35);
}

.admin-nav-icon {
    display: inline-flex;
    flex: none;
    width: 18px;
    height: 18px;
    opacity: .9;
}

.admin-nav-icon:empty {
    display: none;
}

.admin-nav-icon svg {
    width: 100%;
    height: 100%;
}

.admin-nav-group-label {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.admin-nav-group-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    padding: .58rem .75rem;
    background: transparent;
    color: #aebbd0;
    font-size: .9rem;
    font-weight: 700;
    text-align: left;
}

.admin-nav-group-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .06);
}

.admin-nav-group-toggle:focus-visible {
    outline: 2px solid #8eb8ff;
    outline-offset: 2px;
}

.admin-nav-caret {
    flex: none;
    width: .5rem;
    height: .5rem;
    margin-right: .15rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform .18s ease;
}

.admin-nav-group-toggle.collapsed .admin-nav-caret {
    transform: rotate(-45deg);
}

.admin-nav-group {
    margin-left: 1.05rem;
    padding-left: .5rem;
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.admin-nav-group .nav-link {
    min-height: 36px;
    margin-bottom: .15rem;
    padding: .48rem .7rem;
    font-size: .865rem;
}

.admin-sidebar-card {
    display: grid;
    gap: .65rem;
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255, 255, 255, .06);
}

.admin-sidebar-card strong {
    color: #ffffff;
}

.admin-sidebar-card span {
    color: #9babc4;
    font-size: .8rem;
    line-height: 1.45;
}

.admin-sidebar-card a {
    display: inline-flex;
    justify-content: center;
    border-radius: 8px;
    padding: .55rem .7rem;
    color: #07162e;
    background: #ffffff;
    font-size: .75rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-content {
    min-width: 0;
}

.admin-content > .navbar {
    min-height: 76px;
    border-color: #e6ebf2 !important;
    background: rgba(255, 255, 255, .92) !important;
    backdrop-filter: blur(12px);
}

.admin-mobile-menu {
    display: none;
    min-height: 38px;
    justify-content: center;
    min-width: 42px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 0 .7rem;
    background: #ffffff;
    color: #334155;
    font-size: .78rem;
    font-weight: 800;
}

.admin-mobile-menu svg {
    width: 22px;
    height: 22px;
}

.admin-sidebar-overlay {
    display: none;
}

.dealer-dashboard {
    --dash-navy: #07162e;
    --dash-ink: #0d1b34;
    --dash-muted: #748197;
    --dash-line: #e5eaf1;
    --dash-bg: #f3f6fb;
    --dash-orange: #ff5b3d;
    --dash-green: #19a873;
    --dash-blue: #3979f6;
    --dash-purple: #7559e8;
    --dash-yellow: #f5a623;
    display: grid;
    gap: 1.15rem;
    color: var(--dash-ink);
}

.dealer-dashboard a {
    text-decoration: none;
}

.dashboard-simple {
    gap: 1rem;
}

.dealer-dashboard-hero {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .25rem;
}

.dashboard-simple-hero {
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    padding: 1.2rem;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 35, 68, .06);
}

.dashboard-eyebrow {
    margin: 0 0 .25rem;
    color: var(--dash-orange);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dealer-dashboard-hero h1 {
    margin: 0;
    color: #0b1730;
    font-size: clamp(1.55rem, 1.2rem + 1vw, 2.1rem);
    font-weight: 850;
    letter-spacing: 0;
}

.dealer-dashboard-hero p {
    margin: .35rem 0 0;
    color: var(--dash-muted);
    font-size: .9rem;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: center;
    justify-content: flex-end;
}

.dashboard-search {
    display: flex;
    width: min(320px, 100%);
    min-height: 42px;
    align-items: center;
    gap: .55rem;
    border: 1px solid var(--dash-line);
    border-radius: 8px;
    padding: 0 .85rem;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(17, 35, 68, .04);
}

.dashboard-search span {
    color: #8c99ac;
    font-size: .74rem;
    font-weight: 800;
}

.dashboard-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--dash-ink);
    background: transparent;
}

.dashboard-primary-btn,
.dashboard-secondary-btn,
.dashboard-icon-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 900;
}

.dashboard-primary-btn {
    padding: 0 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--dash-orange), #ff785f);
    box-shadow: 0 12px 24px rgba(255, 91, 61, .22);
    text-transform: uppercase;
}

.dashboard-secondary-btn,
.dashboard-icon-btn {
    border: 1px solid var(--dash-line);
    color: #334155;
    background: #ffffff;
}

.dashboard-secondary-btn {
    padding: 0 .9rem;
}

.dashboard-icon-btn {
    width: 42px;
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-summary-card {
    display: grid;
    min-height: 142px;
    align-content: space-between;
    border: 1px solid var(--dash-line);
    border-radius: 8px;
    padding: 1rem;
    color: #0b1730;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 35, 68, .06);
}

.dashboard-summary-card span {
    color: #6b778b;
    font-size: .8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-summary-card strong {
    margin-top: .7rem;
    color: #07162e;
    font-size: 2.15rem;
    font-weight: 900;
    line-height: 1;
}

.dashboard-summary-card small {
    color: #748197;
    font-size: .82rem;
    font-weight: 700;
}

.dashboard-summary-card.is-primary {
    border-color: #ffd3c8;
    background: linear-gradient(135deg, #fff6f2, #ffffff 58%);
}

.dashboard-focus-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .9fr);
    gap: 1rem;
}

.dashboard-attention-list {
    display: grid;
    gap: .75rem;
    padding: 1rem;
}

.dashboard-attention-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: .8rem;
    align-items: center;
    border: 1px solid #e6ebf2;
    border-radius: 8px;
    padding: .85rem;
    color: #1e2d44;
    background: #ffffff;
}

.dashboard-attention-item:hover,
.dashboard-work-card:hover,
.dashboard-summary-card:hover {
    border-color: #cfd8e6;
    box-shadow: 0 12px 26px rgba(17, 35, 68, .08);
    transform: translateY(-1px);
}

.dashboard-attention-item > strong {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 8px;
    color: #07162e;
    background: #f1f5fb;
    font-size: 1.1rem;
    font-weight: 900;
}

.dashboard-attention-item span {
    min-width: 0;
}

.dashboard-attention-item b,
.dashboard-attention-item small {
    display: block;
}

.dashboard-attention-item b {
    color: #12213a;
    font-size: .92rem;
}

.dashboard-attention-item small {
    margin-top: .16rem;
    color: #738198;
    font-size: .8rem;
}

.dashboard-attention-item em {
    color: var(--dash-orange);
    font-size: .72rem;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-attention-item.is-urgent {
    border-color: #ffd3c8;
    background: #fff8f5;
}

.dashboard-attention-item.is-urgent > strong {
    color: #9a3412;
    background: #ffeadf;
}

.dashboard-attention-item.is-warning {
    border-color: #fde7ba;
    background: #fffaf0;
}

.dashboard-attention-item.is-warning > strong {
    color: #8a5700;
    background: #fff1c9;
}

.dashboard-caught-up {
    display: grid;
    gap: .2rem;
    border: 1px dashed #b8c8dc;
    border-radius: 8px;
    padding: 1.25rem;
    color: #536176;
    background: #f8fbff;
    text-align: center;
}

.dashboard-caught-up strong {
    color: #10203a;
}

.dashboard-work-grid {
    display: grid;
    gap: .75rem;
    padding: 1rem;
}

.dashboard-work-card {
    display: grid;
    gap: .2rem;
    min-height: 74px;
    align-content: center;
    border: 1px solid #e6ebf2;
    border-radius: 8px;
    padding: .85rem;
    color: #1e2d44;
    background: #ffffff;
}

.dashboard-work-card strong {
    color: #0c1b34;
    font-size: .92rem;
}

.dashboard-work-card span {
    color: #748197;
    font-size: .8rem;
}

.dashboard-work-card.is-primary {
    border-color: #ffd3c8;
    background: linear-gradient(135deg, #fff2ec, #ffffff);
}

.dashboard-alert-strip,
.dashboard-panel,
.dashboard-stat-card {
    border: 1px solid var(--dash-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 35, 68, .07);
}

.dashboard-alert-strip {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1rem;
    border-color: #fed7aa;
    background: #fff7ed;
    color: #7c2d12;
}

.dashboard-alert-strip span {
    display: block;
    margin-top: .1rem;
    font-size: .84rem;
}

.dashboard-alert-strip a {
    color: #7c2d12;
    font-weight: 900;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-stat-card {
    position: relative;
    min-height: 132px;
    overflow: hidden;
    padding: 1rem;
    color: inherit;
}

.dashboard-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-stat-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 900;
}

.dashboard-stat-icon.is-orange {
    color: var(--dash-orange);
    background: #fff0ec;
}

.dashboard-stat-icon.is-blue {
    color: var(--dash-blue);
    background: #edf3ff;
}

.dashboard-stat-icon.is-green {
    color: var(--dash-green);
    background: #eaf8f2;
}

.dashboard-stat-icon.is-purple {
    color: var(--dash-purple);
    background: #f1edff;
}

.dashboard-stat-icon.is-yellow {
    color: var(--dash-yellow);
    background: #fff7e7;
}

.dashboard-trend {
    border-radius: 8px;
    padding: .28rem .48rem;
    color: var(--dash-green);
    background: #eaf8f2;
    font-size: .68rem;
    font-weight: 900;
}

.dashboard-stat-card strong {
    display: block;
    margin-top: .95rem;
    color: #0b1730;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
}

.dashboard-stat-card > span:last-of-type {
    display: block;
    margin-top: .4rem;
    color: var(--dash-muted);
    font-size: .78rem;
    font-weight: 800;
}

.dashboard-stat-card > i {
    position: absolute;
    right: .85rem;
    bottom: .8rem;
    width: 66px;
    height: 28px;
    border-bottom: 3px solid var(--dash-orange);
    border-radius: 50%;
    opacity: .28;
    transform: rotate(-8deg);
}

.dashboard-main-grid,
.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(320px, .85fr);
    gap: 1rem;
}

.dashboard-panel {
    min-width: 0;
    overflow: hidden;
}

.dashboard-panel-head {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #edf0f4;
    padding: .85rem 1rem;
}

.dashboard-panel-head.is-compact {
    min-height: 52px;
}

.dashboard-panel-head h2 {
    margin: 0;
    color: #0b1730;
    font-size: 1rem;
    font-weight: 850;
}

.dashboard-panel-head p {
    margin: .25rem 0 0;
    color: #8995a6;
    font-size: .78rem;
}

.dashboard-panel-head a {
    color: var(--dash-orange);
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-segments span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    padding: 0 .75rem;
    background: #f0f3f8;
    color: #23324a;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-chart-summary {
    display: flex;
    gap: 2rem;
    padding: 1rem 1.2rem 0;
}

.dashboard-chart-summary strong {
    display: block;
    color: #0b1730;
    font-size: 1.45rem;
    font-weight: 900;
}

.dashboard-chart-summary span {
    color: var(--dash-muted);
    font-size: .74rem;
    font-weight: 800;
}

.dashboard-chart {
    display: grid;
    grid-template-columns: repeat(6, minmax(54px, 1fr));
    gap: 1rem;
    align-items: end;
    min-height: 225px;
    padding: 1.3rem 1.2rem 1rem;
}

.dashboard-chart-column {
    display: grid;
    gap: .6rem;
    text-align: center;
}

.dashboard-chart-bars {
    position: relative;
    display: flex;
    min-height: 170px;
    align-items: end;
    justify-content: center;
    border-bottom: 1px solid #e8ecf2;
}

.dashboard-revenue-bar {
    display: block;
    width: min(58px, 66%);
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #ff6f53, var(--dash-orange));
}

.dashboard-unit-marker {
    position: absolute;
    left: 50%;
    z-index: 2;
    width: 12px;
    height: 12px;
    border: 3px solid var(--dash-navy);
    border-radius: 50%;
    background: #ffffff;
    transform: translate(-50%, 50%);
}

.dashboard-chart-column small {
    color: #8b96a7;
    font-size: .72rem;
    font-weight: 800;
}

.dashboard-side-stack,
.dashboard-action-stack {
    display: grid;
    gap: 1rem;
}

.dashboard-pipeline {
    display: grid;
    gap: .85rem;
    padding: 1rem;
}

.dashboard-pipeline-row {
    display: grid;
    grid-template-columns: 96px 1fr 38px;
    gap: .75rem;
    align-items: center;
}

.dashboard-pipeline-row span,
.dashboard-pipeline-row strong {
    color: #4d5b70;
    font-size: .78rem;
    font-weight: 800;
}

.dashboard-pipeline-row div {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef1f5;
}

.dashboard-pipeline-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--dash-orange), #ff785f);
}

.dashboard-inventory-health {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.dashboard-donut {
    display: grid;
    width: 126px;
    height: 126px;
    flex: none;
    place-content: center;
    border-radius: 50%;
    background: conic-gradient(var(--dash-orange) 0 var(--fresh), var(--dash-blue) var(--fresh) var(--mid), var(--dash-green) var(--mid) var(--late), #dfe4ec var(--late) 100%);
    text-align: center;
    box-shadow: inset 0 0 0 18px #ffffff;
}

.dashboard-donut strong,
.dashboard-donut span {
    display: block;
}

.dashboard-donut strong {
    color: #14223b;
    font-size: 1.35rem;
    font-weight: 900;
}

.dashboard-donut span {
    color: var(--dash-muted);
    font-size: .62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-health-list {
    display: grid;
    flex: 1;
    gap: .55rem;
}

.dashboard-health-list div {
    display: flex;
    gap: .45rem;
    align-items: center;
    color: #6f7c8f;
    font-size: .76rem;
    font-weight: 750;
}

.dashboard-health-list i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dashboard-health-list strong {
    margin-left: auto;
    color: #26354b;
}

.is-orange {
    background: var(--dash-orange);
}

.is-blue {
    background: var(--dash-blue);
}

.is-green {
    background: var(--dash-green);
}

.is-muted {
    background: #dfe4ec;
}

.dashboard-table-scroll {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.dashboard-simple-table {
    min-width: 680px;
}

.dashboard-table th {
    border-bottom: 1px solid #edf0f4;
    padding: .75rem .9rem;
    color: #95a0b0;
    background: #fafbfd;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
}

.dashboard-sort-button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    letter-spacing: inherit;
    text-align: inherit;
    text-transform: inherit;
}

.dashboard-sort-button:hover,
.dashboard-sort-button:focus-visible {
    color: #24344d;
}

.dashboard-sort-button span::before {
    content: "sort";
    color: #b6c0ce;
    font-size: .58rem;
}

th[aria-sort="ascending"] .dashboard-sort-button span::before {
    content: "asc";
    color: var(--dash-blue);
}

th[aria-sort="descending"] .dashboard-sort-button span::before {
    content: "desc";
    color: var(--dash-blue);
}

.dashboard-table td {
    border-bottom: 1px solid #edf0f4;
    padding: .75rem .9rem;
    color: #516075;
    font-size: .78rem;
    vertical-align: middle;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard-table-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border-top: 1px solid #edf0f4;
    padding: .75rem .9rem;
    color: #7c8797;
    background: #ffffff;
    font-size: .78rem;
}

.table-responsive + .dashboard-table-controls,
.table + .dashboard-table-controls {
    margin-top: -.25rem;
    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    border-left: 1px solid #edf0f4;
    border-radius: 0 0 10px 10px;
}

.card .table-responsive + .dashboard-table-controls,
.card .table + .dashboard-table-controls {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
}

.dashboard-table-pager {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.dashboard-table-pager button {
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    padding: .35rem .65rem;
    color: #253349;
    background: #ffffff;
    font-weight: 800;
}

.dashboard-table-pager button:disabled {
    opacity: .45;
}

.dashboard-person,
.dashboard-vehicle-cell {
    display: flex;
    gap: .65rem;
    align-items: center;
    color: inherit;
}

.dashboard-person > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: none;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: var(--dash-blue);
    font-size: .72rem;
    font-weight: 900;
}

.dashboard-person strong,
.dashboard-vehicle-cell strong {
    display: block;
    color: #253349;
    font-weight: 850;
}

.dashboard-person small,
.dashboard-vehicle-cell small {
    display: block;
    margin-top: .12rem;
    color: #9aa4b2;
    font-size: .7rem;
}

.dashboard-vehicle-cell img,
.dashboard-vehicle-cell > span {
    display: block;
    width: 54px;
    aspect-ratio: 4 / 3;
    flex: none;
    border: 1px solid #e3e7ee;
    border-radius: 8px;
    object-fit: cover;
    background: linear-gradient(135deg, #e8eef7, #f8fafc);
}

.dashboard-status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 8px;
    padding: .2rem .55rem;
    font-size: .66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-status.is-new {
    color: #3979f6;
    background: #edf3ff;
}

.dashboard-status.is-appointment,
.dashboard-status.is-success {
    color: #16895f;
    background: #eaf8f2;
}

.dashboard-status.is-working {
    color: #b9780e;
    background: #fff7e7;
}

.dashboard-status.is-warning {
    color: #e9583c;
    background: #fff0ec;
}

.dashboard-status.is-muted {
    color: #536176;
    background: #eef1f5;
}

.dashboard-task-list,
.dashboard-feed-list {
    display: grid;
    padding: .35rem 1rem 0;
}

.dashboard-task {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    gap: .65rem;
    align-items: center;
    border-bottom: 1px solid #edf0f4;
    padding: .75rem 0;
    color: inherit;
}

.dashboard-task > span {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid #dce2ea;
    border-radius: 8px;
    color: #94a3b8;
    background: #ffffff;
    font-size: .62rem;
    font-weight: 900;
}

.dashboard-task strong,
.dashboard-feed-list strong {
    display: block;
    color: #354359;
    font-size: .8rem;
    font-weight: 850;
}

.dashboard-task small,
.dashboard-feed-list small {
    display: block;
    margin-top: .15rem;
    color: #96a1b0;
    font-size: .7rem;
}

.dashboard-task em {
    border-radius: 8px;
    padding: .3rem .45rem;
    color: #7b8798;
    background: #f3f5f8;
    font-size: .68rem;
    font-style: normal;
    font-weight: 900;
}

.dashboard-quick-title {
    margin: .9rem 1rem .6rem;
    color: #7c899a;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    padding: 0 1rem 1rem;
}

.dashboard-quick-grid a {
    display: flex;
    min-height: 48px;
    align-items: center;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    padding: 0 .8rem;
    color: #354359;
    background: #fbfcfe;
    font-size: .78rem;
    font-weight: 850;
}

.dashboard-feed-list {
    gap: .7rem;
    padding-bottom: 1rem;
}

.dashboard-feed-list > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .25rem .7rem;
    align-items: center;
    border-bottom: 1px solid #edf0f4;
    padding-bottom: .65rem;
}

.dashboard-feed-list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-feed-list small {
    grid-column: 1 / -1;
}

.dashboard-empty {
    padding: 1.25rem !important;
    color: #8a96a7 !important;
    text-align: center;
}

@media (max-width: 1500px) {
    .dashboard-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .admin-sidebar {
        position: fixed;
        left: 0;
        width: min(var(--admin-sidebar-width), calc(100vw - 2rem));
        min-width: 0;
        max-width: min(var(--admin-sidebar-width), calc(100vw - 2rem));
        transform: translateX(-105%);
        transition: transform .2s ease;
        box-shadow: 20px 0 55px rgba(4, 14, 32, .26);
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-sidebar-overlay.is-open {
        position: fixed;
        inset: 0;
        z-index: 1025;
        display: block;
        border: 0;
        background: rgba(3, 12, 27, .55);
    }

    .admin-mobile-menu {
        display: inline-flex;
        align-items: center;
    }

    .admin-content {
        width: 100%;
    }

    .dashboard-main-grid,
    .dashboard-bottom-grid,
    .dashboard-focus-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .dealer-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .template-upload-panel {
        grid-template-columns: 1fr;
    }

    .dashboard-actions,
    .dashboard-search {
        width: 100%;
    }

    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-summary-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-chart-summary {
        flex-wrap: wrap;
    }

    .dashboard-chart {
        overflow-x: auto;
        grid-template-columns: repeat(6, minmax(72px, 1fr));
    }

    .dashboard-inventory-health {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .dashboard-stat-grid,
    .dashboard-quick-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-simple-hero {
        padding: 1rem;
    }

    .dashboard-attention-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .dashboard-attention-item em {
        grid-column: 2;
    }

    .dealer-dashboard-hero h1 {
        font-size: 1.35rem;
    }

    .dashboard-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ===== Dashboard: sample-style stat cards, charts, and lists ===== */

.dash-stat-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.dash-stat-card {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(17, 35, 68, .05);
    color: inherit;
    text-decoration: none;
}

.dash-stat-card:hover {
    border-color: #cbdcff;
    color: inherit;
}

.dash-stat-top {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #5f6d82;
    font-size: .85rem;
    font-weight: 650;
}

.dash-stat-ico {
    display: grid;
    flex: none;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
}

.dash-stat-ico svg {
    width: 20px;
    height: 20px;
}

.dash-stat-ico.is-blue { background: #e7efff; color: #155cd7; }
.dash-stat-ico.is-green { background: #e5f6ee; color: #14804a; }
.dash-stat-ico.is-orange { background: #fff3d6; color: #b26b00; }
.dash-stat-ico.is-purple { background: #efeafd; color: #6d4fd8; }

.dash-stat-card > strong {
    color: #0b1730;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.dash-delta {
    font-size: .78rem;
    font-weight: 650;
}

.dash-delta.up { color: #14804a; }
.dash-delta.down { color: #c22f2f; }
.dash-delta.flat { color: #748197; }

.dash-charts-grid {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: stretch;
}

.dash-donut-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.dash-donut-chart {
    position: relative;
    flex: none;
    width: 176px;
    height: 176px;
}

.dash-donut-chart canvas {
    cursor: crosshair;
}

.dash-donut-center {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: .1rem;
    text-align: center;
    pointer-events: none;
}

.dash-donut-center strong {
    color: #0b1730;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.dash-donut-center small {
    color: #748197;
    font-size: .74rem;
}

.dash-chart-holder {
    position: relative;
    height: 230px;
    padding: .5rem .5rem 0;
}

.dash-donut {
    display: grid;
    flex: none;
    width: 168px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    cursor: crosshair;
    outline: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.dash-donut:hover,
.dash-donut:focus-visible {
    transform: scale(1.025);
    box-shadow: 0 0 0 4px rgba(9, 105, 246, .12);
}

.dash-donut-hole {
    display: grid;
    width: 62%;
    aspect-ratio: 1;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background: #ffffff;
    text-align: center;
}

.dash-donut-hole strong {
    color: #0b1730;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.dash-donut-hole small {
    color: #748197;
    font-size: .74rem;
}

.dash-donut-legend {
    display: grid;
    flex: 1;
    min-width: 150px;
    gap: .55rem;
    align-content: center;
}

.dash-donut-legend > div {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .85rem;
    border-radius: 6px;
    outline: none;
    transition: background-color .16s ease, transform .16s ease;
}

.dash-donut-legend > div.is-active,
.dash-donut-legend > div:focus-visible {
    background: #f1f6ff;
    transform: translateX(2px);
}

.dash-donut-legend i {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dash-donut-legend span {
    color: #5f6d82;
}

.dash-donut-legend b {
    margin-left: auto;
    color: #0b1730;
    font-weight: 700;
    white-space: nowrap;
}

.dash-bars {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: .55rem;
    min-height: 190px;
    padding-top: .5rem;
}

.dash-bar {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: .3rem;
    border-radius: 6px;
    cursor: default;
    outline: none;
}

.dash-bar b {
    color: #0b1730;
    font-size: .78rem;
    font-weight: 700;
}

.dash-bar i {
    display: block;
    width: 100%;
    max-width: 36px;
    border-radius: 6px 6px 2px 2px;
    background: #2376ff;
    transform-origin: bottom;
    transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.dash-bar:hover i,
.dash-bar.is-active i,
.dash-bar:focus-visible i {
    background: #075dd8;
    transform: scaleX(1.12);
    box-shadow: 0 7px 16px rgba(9, 105, 246, .22);
}

.dash-bar span {
    max-width: 100%;
    overflow: hidden;
    color: #748197;
    font-size: .68rem;
    text-overflow: ellipsis;
    text-transform: capitalize;
    white-space: nowrap;
}

.dash-vehicle-list {
    display: grid;
    gap: .35rem;
}

.dash-vehicle-list > a {
    display: flex;
    align-items: center;
    gap: .75rem;
    border-radius: 10px;
    padding: .45rem .5rem;
    color: inherit;
    text-decoration: none;
}

.dash-vehicle-list > a:hover {
    background: #f4f8ff;
}

.dash-vehicle-list img,
.dash-vehicle-nophoto {
    flex: none;
    width: 62px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    background: #eef2f8;
}

.dash-vehicle-nophoto {
    display: grid;
    place-items: center;
    color: #9aa9c0;
}

.dash-vehicle-nophoto svg {
    width: 22px;
    height: 22px;
}

.dash-vehicle-meta {
    display: grid;
    min-width: 0;
    gap: .1rem;
}

.dash-vehicle-meta strong {
    overflow: hidden;
    color: #0b1730;
    font-size: .88rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-vehicle-meta small {
    color: #748197;
    font-size: .74rem;
}

.dash-vehicle-list > a > b {
    margin-left: auto;
    color: #0b1730;
    font-size: .88rem;
    font-weight: 800;
    white-space: nowrap;
}

.dash-quick-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(17, 35, 68, .05);
    overflow: hidden;
}

.dash-quick-strip > a {
    display: grid;
    gap: .3rem;
    border-right: 1px solid #eef2f8;
    padding: 1rem 1.15rem;
    color: inherit;
    text-decoration: none;
}

.dash-quick-strip > a:hover {
    background: #f7faff;
}

.dash-quick-strip > a:last-child {
    border-right: 0;
}

.dash-quick-strip span {
    color: #5f6d82;
    font-size: .78rem;
    font-weight: 650;
}

.dash-quick-strip strong {
    color: #0b1730;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

@media (max-width: 767.98px) {
    .dash-donut,
    .dash-donut-chart {
        margin-inline: auto;
    }

    .dash-quick-strip > a {
        border-right: 0;
        border-bottom: 1px solid #eef2f8;
    }

    .dash-quick-strip > a:last-child {
        border-bottom: 0;
    }
}

/* ===== Inventory page ===== */

.inv-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.inv-chip-label {
    color: #5f6d82;
    font-size: .8rem;
    font-weight: 650;
}

.inv-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid #e3e9f2;
    border-radius: 999px;
    padding: .3rem .75rem;
    background: #ffffff;
    color: #33415c;
    font-size: .78rem;
    font-weight: 650;
    text-decoration: none;
}

.inv-chip:hover {
    border-color: #bcd4ff;
    color: #155cd7;
}

.inv-chip b {
    color: #c22f2f;
    font-weight: 800;
}

.inv-row-menu {
    min-width: 34px;
    font-size: 1rem;
    line-height: 1;
}

.admin-body .min-w-0 {
    min-width: 0;
}

.admin-body .vehicle-thumb {
    width: 76px;
    border-radius: 8px;
}

/* ===== Dealer control panel redesign ===== */

:root {
    --admin-sidebar-width: 260px;
}

.admin-body {
    background: #f6f8fb;
}

.admin-shell {
    background: #f6f8fb;
}

.admin-sidebar {
    padding: 1.65rem .85rem !important;
    background:
        linear-gradient(180deg, rgba(17, 84, 159, .2), transparent 18rem),
        linear-gradient(180deg, #07172b 0%, #05101f 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06);
}

.admin-brand {
    display: grid;
    gap: .35rem;
    justify-items: center;
    margin-bottom: 1.6rem;
    padding: .25rem .25rem 1.35rem;
    text-align: center;
}

.admin-brand-logo {
    width: min(100%, 164px);
    max-height: 72px;
}

.admin-brand-mark {
    width: 92px;
    height: 34px;
    border-radius: 0;
    background:
        linear-gradient(180deg, transparent 0 13px, #1687ff 13px 16px, transparent 16px),
        linear-gradient(135deg, #1687ff, #0a5fd8);
    color: #ffffff;
    box-shadow: none;
    clip-path: polygon(8% 42%, 52% 0, 94% 38%, 86% 45%, 52% 14%, 16% 48%);
    font-size: 0;
}

.admin-brand strong {
    font-size: .98rem;
    letter-spacing: .02em;
    text-transform: none;
}

.admin-brand small {
    color: #8ea2bf;
    letter-spacing: .16em;
}

.admin-nav {
    gap: .22rem !important;
}

.admin-sidebar .nav-link,
.admin-nav-group-toggle {
    min-height: 42px;
    border-radius: 8px;
    padding: .55rem .72rem;
    color: #d7e1ee;
    font-size: .9rem;
    font-weight: 600;
}

.admin-sidebar .nav-link:hover,
.admin-nav-group-toggle:hover {
    background: rgba(255, 255, 255, .08);
}

.admin-sidebar .nav-link.active {
    background: #0969f6;
    box-shadow: 0 8px 20px rgba(9, 105, 246, .35);
}

.admin-nav-group {
    margin: .2rem 0 .35rem 1.75rem;
    padding-left: .45rem;
}

.admin-nav-group .nav-link {
    min-height: 34px;
    color: #c3d0df;
    font-size: .84rem;
}

.admin-sidebar-card {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .045);
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-color: #e3e8f0 !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02), 0 14px 34px rgba(15, 23, 42, .04);
    backdrop-filter: blur(12px);
}

.admin-topbar-left,
.admin-topbar-right {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .85rem;
}

.admin-topbar-left {
    flex: 1;
}

.admin-topbar-right {
    justify-content: flex-end;
}

.admin-global-search {
    display: flex;
    width: min(560px, 100%);
    min-height: 44px;
    align-items: center;
    gap: .65rem;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    padding: 0 .85rem;
    background: #ffffff;
}

.admin-global-search svg {
    width: 18px;
    height: 18px;
    color: #8796ac;
}

.admin-global-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #0f172a;
    background: transparent;
    font-size: .92rem;
}

.admin-topbar-add,
.dashboard-primary-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 0;
    border-radius: 8px;
    padding: 0 1rem;
    color: #ffffff !important;
    background: #0969f6;
    box-shadow: 0 10px 20px rgba(9, 105, 246, .22);
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: none;
}

.admin-topbar-add svg {
    width: 17px;
    height: 17px;
}

.dashboard-primary-btn:hover,
.admin-topbar-add:hover {
    background: #075bd5;
}

.dashboard-secondary-btn,
.admin-public-link,
.admin-logout-btn {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    padding: 0 .85rem;
    color: #243247;
    background: #ffffff;
    font-size: .8rem;
    font-weight: 750;
    text-decoration: none;
}

.dashboard-primary-btn.btn-sm,
.dashboard-secondary-btn.btn-sm {
    min-height: 32px;
    padding: 0 .65rem;
    font-size: .74rem;
}

.dashboard-primary-btn:disabled,
.dashboard-secondary-btn:disabled,
.dashboard-primary-btn.disabled,
.dashboard-secondary-btn.disabled {
    cursor: not-allowed;
    opacity: .55;
    box-shadow: none;
}

.admin-logout-btn {
    color: #b42318;
}

.admin-topbar-icon {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: #0f1b33;
    text-decoration: none;
}

.admin-topbar-icon svg {
    width: 19px;
    height: 19px;
}

.admin-topbar-icon:hover {
    background: #f1f5fb;
}

.admin-topbar-icon:focus-visible {
    outline: 3px solid rgba(9, 105, 246, .28);
    outline-offset: 2px;
}

.admin-chat-shortcut.has-chat-request {
    color: #0969f6;
    background: #eef5ff;
    box-shadow: inset 0 0 0 1px #cfe0ff;
}

.admin-topbar-icon span {
    position: absolute;
    top: .05rem;
    right: .15rem;
    display: grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: #ff3348;
    font-size: .62rem;
    font-weight: 900;
}

.admin-user-chip {
    display: flex;
    align-items: center;
    gap: .65rem;
    border-radius: 8px;
    padding: .3rem .45rem;
    text-decoration: none;
    transition: background-color .16s ease;
}

.admin-user-chip:hover,
.admin-user-chip:focus-visible {
    background: #f2f6fc;
}

.admin-user-chip:focus-visible {
    outline: 3px solid rgba(21, 92, 215, .22);
    outline-offset: 2px;
}

.admin-user-chip strong,
.admin-user-chip small {
    display: block;
    white-space: nowrap;
}

.profile-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
    gap: 1rem;
    align-items: start;
}

.profile-form-body {
    padding: 1rem;
}

.profile-account-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin: 1rem 0;
}

.profile-account-summary > div {
    min-width: 0;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    padding: .7rem .8rem;
    background: #f8fafc;
}

.profile-account-summary span,
.profile-account-summary strong {
    display: block;
}

.profile-account-summary span {
    margin-bottom: .15rem;
    color: #67758a;
    font-size: .74rem;
}

.profile-account-summary strong {
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: .88rem;
}

@media (max-width: 991.98px) {
    .profile-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .profile-account-summary {
        grid-template-columns: 1fr;
    }
}

.admin-user-chip strong {
    color: #0f172a;
    font-size: .86rem;
    font-weight: 800;
}

.admin-user-chip small {
    color: #67758a;
    font-size: .72rem;
}

.admin-content > main {
    padding: 1.55rem 1.65rem !important;
}

.admin-page {
    display: grid;
    gap: 1.05rem;
}

.admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-page-head h1 {
    margin: 0;
    color: #071427;
    font-size: 1.48rem;
    font-weight: 800;
    letter-spacing: 0;
}

.admin-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-top: .35rem;
    color: #6e7c91;
    font-size: .8rem;
}

.admin-breadcrumbs a {
    color: #526176;
    text-decoration: none;
}

.admin-breadcrumbs span::before {
    content: "/";
    margin-right: .45rem;
    color: #a8b3c2;
}

.admin-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .65rem;
}

.dashboard-panel,
.table-panel,
.dash-stat-card,
.dashboard-alert-strip {
    border-color: #e3e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 35, 70, .05);
}

.dash-stat-card {
    min-height: 116px;
    justify-content: center;
}

.dash-stat-ico {
    width: 46px;
    height: 46px;
    color: #ffffff !important;
}

.dash-stat-ico.is-blue { background: #0969f6; }
.dash-stat-ico.is-green { background: #18a96f; }
.dash-stat-ico.is-orange { background: #f4aa0b; }
.dash-stat-ico.is-purple { background: #7057e8; }
.dash-stat-ico.is-teal { background: #12b8a6; }

.dash-stat-card > strong {
    font-size: 1.58rem;
}

.dashboard-panel-head h2 {
    font-size: .95rem;
}

.dashboard-panel-head a {
    color: #0969f6;
    text-transform: none;
}

.dashboard-table th {
    color: #68778d;
    background: #f8fafd;
    font-size: .72rem;
    letter-spacing: 0;
    text-transform: none;
}

.dashboard-table td {
    color: #27364c;
    font-size: .8rem;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-bottom: 1px solid #dfe6ef;
}

.admin-tabs a {
    position: relative;
    padding: .55rem 0 .8rem;
    color: #0f1b33;
    font-size: .82rem;
    font-weight: 750;
    text-decoration: none;
}

.admin-tabs a.is-active {
    color: #0969f6;
}

.admin-tabs a.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: #0969f6;
}

.reports-filter-bar,
.inventory-filter-panel {
    padding: 1rem;
}

.reports-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 35, 70, .04);
}

.reports-filter-bar .form-control {
    width: min(260px, 100%);
}

.reports-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 330px;
    gap: 1rem;
    align-items: start;
}

.reports-main {
    display: grid;
    gap: 1rem;
}

.reports-categories nav {
    display: grid;
    gap: .25rem;
    padding: .75rem;
}

.reports-categories a {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 38px;
    border-radius: 8px;
    padding: 0 .65rem;
    color: #243247;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.reports-categories a.is-active,
.reports-categories a:hover {
    color: #0969f6;
    background: #eef5ff;
}

.reports-categories svg {
    width: 16px;
    height: 16px;
}

.reports-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    padding: 1rem;
}

.report-run-card {
    display: grid;
    gap: .55rem;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    padding: 1rem;
    color: #18263b;
    text-decoration: none;
}

.report-run-card:hover {
    border-color: #c6d9ff;
    box-shadow: 0 10px 22px rgba(9, 105, 246, .08);
}

.report-run-card .dash-stat-ico {
    width: 38px;
    height: 38px;
}

.report-run-card strong {
    margin-top: .2rem;
    font-size: .88rem;
}

.report-run-card small {
    min-height: 40px;
    color: #718096;
    font-size: .74rem;
    line-height: 1.45;
}

.report-run-card em {
    justify-self: start;
    border: 1px solid #dce6f5;
    border-radius: 7px;
    padding: .35rem .7rem;
    color: #0969f6;
    font-size: .72rem;
    font-style: normal;
    font-weight: 800;
}

.report-format {
    font-weight: 800;
}

.report-format.is-pdf {
    color: #e5485d;
}

.report-format.is-excel {
    color: #1a9f61;
}

.report-action {
    color: #0969f6;
    font-weight: 800;
    text-decoration: none;
}

.reports-schedule-list {
    display: grid;
}

.reports-schedule-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    border-bottom: 1px solid #edf1f6;
    padding: 1rem;
}

.reports-schedule-item > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    color: #607086;
    background: #f3f6fa;
}

.reports-schedule-item svg {
    width: 15px;
    height: 15px;
}

.reports-schedule-item strong,
.reports-schedule-item small {
    display: block;
}

.reports-schedule-item strong {
    color: #18263b;
    font-size: .84rem;
}

.reports-schedule-item small {
    color: #708096;
    font-size: .74rem;
}

.reports-schedule-item i {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #c9d3e2;
}

.reports-schedule-item i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform .18s ease;
}

.reports-schedule-item i.is-on {
    background: #0969f6;
}

.reports-schedule-item i.is-on::after {
    transform: translateX(16px);
}

.reports-schedule-new {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 1rem;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    color: #0969f6;
    font-weight: 800;
    text-decoration: none;
}

.inventory-plan-panel {
    padding: 1rem;
}

.inventory-filter-panel .admin-form-grid {
    grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(150px, 1fr));
}

.inventory-filter-panel .form-label {
    color: #617089;
    font-size: .72rem;
    font-weight: 800;
}

.inventory-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #edf1f6;
    padding: 1rem;
}

.inventory-table-toolbar strong,
.inventory-table-toolbar span {
    display: block;
}

.inventory-table-toolbar span {
    margin-top: .1rem;
    color: #708096;
    font-size: .78rem;
}

.inventory-bulk-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}

.admin-inventory-table {
    margin-bottom: 0;
}

.admin-inventory-table th {
    color: #68778d;
    background: #f8fafd;
    font-size: .74rem;
    font-weight: 800;
}

.admin-inventory-table td {
    color: #27364c;
    font-size: .84rem;
}

.admin-inventory-table .badge {
    border-radius: 7px;
    padding: .35rem .55rem;
}

.admin-body .badge.text-bg-success {
    background-color: #dff8ee !important;
    color: #0b8b58 !important;
}

.admin-body .badge.text-bg-warning {
    background-color: #fff3d6 !important;
    color: #b36b00 !important;
}

@media (max-width: 1280px) {
    .reports-layout {
        grid-template-columns: 1fr;
    }

    .reports-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .admin-topbar {
        align-items: stretch;
        flex-direction: column;
        padding-block: .85rem;
    }

    .admin-topbar-left,
    .admin-topbar-right {
        width: 100%;
    }

    .admin-topbar-right {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .admin-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-page-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .admin-topbar-icon {
        width: 44px;
        height: 44px;
    }

    .admin-user-chip div,
    .admin-public-link,
    .admin-logout-btn {
        display: none;
    }

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

    .inventory-filter-panel .admin-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Dealer dashboard analytics layout ===== */

.dashboard-page-head p {
    margin: .28rem 0 0;
    color: #66758c;
    font-size: .9rem;
}

.dashboard-analytics-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 34%);
    gap: 1rem;
    align-items: start;
}

.dashboard-analytics-main,
.dashboard-side-rail {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.dashboard-chart-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-chart-pair .dashboard-panel,
.dashboard-metric-panels .dashboard-panel,
.dashboard-side-rail .dashboard-panel {
    min-height: 260px;
}

.dashboard-chart-pair .dash-donut-wrap,
.dashboard-chart-pair .dash-bars {
    padding: 1rem;
}

.dashboard-chart-pair .dash-donut-legend > div {
    min-width: 0;
}

.dashboard-metric-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-value-body,
.dashboard-sales-body {
    display: grid;
    gap: .65rem;
    padding: 1rem;
}

.dashboard-value-body > strong {
    color: #071427;
    font-size: 1.45rem;
    font-weight: 850;
    line-height: 1;
}

.dashboard-canvas-chart {
    position: relative;
    grid-column: 1 / -1;
    height: 190px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.dashboard-canvas-chart canvas {
    display: block;
    border-radius: 8px;
    cursor: crosshair;
    outline: none;
}

.dashboard-canvas-chart canvas:focus-visible {
    box-shadow: inset 0 0 0 2px #0969f6;
}

.dashboard-chart-tooltip {
    position: absolute;
    z-index: 4;
    width: max-content;
    min-width: 132px;
    max-width: min(230px, calc(100% - 16px));
    padding: .58rem .65rem;
    border: 1px solid #d9e2ee;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .15);
    color: #0b1730;
    font-size: .72rem;
    line-height: 1.25;
    pointer-events: none;
    transform: translate(-50%, -100%);
}

.dashboard-chart-tooltip[hidden] {
    display: none;
}

.dashboard-chart-tooltip > strong {
    display: block;
    margin-bottom: .38rem;
    font-size: .74rem;
    font-weight: 800;
}

.dashboard-chart-tooltip > div {
    display: grid;
    gap: .28rem;
}

.dashboard-chart-tooltip span {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: .35rem;
}

.dashboard-chart-tooltip span > i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.dashboard-chart-tooltip span > b {
    overflow: hidden;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-chart-tooltip span > em {
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-chart-legend {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: .15rem;
}

.dashboard-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #66758c;
    font-size: .72rem;
    font-weight: 750;
}

.dashboard-chart-legend i {
    display: block;
    width: 18px;
    height: 4px;
    border-radius: 999px;
}

.dashboard-sales-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-sales-body span {
    color: #66758c;
    font-size: .78rem;
    font-weight: 750;
}

.dashboard-sales-body strong {
    display: block;
    margin-top: .2rem;
    color: #071427;
    font-size: 1.35rem;
    font-weight: 850;
}

.dashboard-side-rail .dash-vehicle-list {
    padding: .45rem .75rem .75rem;
}

.dashboard-activity-list {
    display: grid;
    padding: .5rem 1rem 1rem;
}

.dashboard-activity-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: .7rem;
    align-items: center;
    border-bottom: 1px solid #edf1f6;
    padding: .8rem .4rem;
    background: transparent;
    color: inherit;
    text-decoration: none;
    transition: background-color .16s ease;
}

.dashboard-activity-item:hover {
    background: #f5f8fc;
    color: inherit;
}

.dashboard-activity-item:last-child {
    border-bottom: 0;
}

.dashboard-activity-item > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
}

.dashboard-activity-item svg {
    width: 15px;
    height: 15px;
}

.dashboard-activity-item.is-blue > span { background: #0969f6; }
.dashboard-activity-item.is-green > span { background: #14804a; }
.dashboard-activity-item.is-orange > span { background: #a86000; }
.dashboard-activity-item.is-purple > span { background: #7057e8; }
.dashboard-activity-item.is-slate > span { background: #64748b; }

.dashboard-activity-item strong,
.dashboard-activity-item small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-activity-item strong {
    color: #17243a;
    font-size: .82rem;
}

.dashboard-activity-item small,
.dashboard-activity-item em {
    color: #627188;
    font-size: .72rem;
}

.dashboard-activity-item em {
    font-style: normal;
    white-space: nowrap;
}

.dashboard-quick-overview {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dashboard-quick-overview::before {
    content: "Quick Overview";
    grid-column: 1 / -1;
    padding: .9rem 1rem 0;
    color: #071427;
    font-size: .95rem;
    font-weight: 850;
}

@media (max-width: 1380px) {
    .dashboard-analytics-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-side-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .dashboard-chart-pair,
    .dashboard-metric-panels,
    .dashboard-side-rail {
        grid-template-columns: 1fr;
    }

    .dashboard-quick-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .dashboard-sales-body,
    .dashboard-quick-overview {
        grid-template-columns: 1fr;
    }

    .dashboard-chart-pair .dash-donut-wrap,
    .dashboard-chart-pair .dash-bars {
        padding: .9rem;
    }

    .dashboard-activity-item {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .dashboard-activity-item em {
        grid-column: 2;
    }
}

/* ===== Dealer user access redesign ===== */

.user-access-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.user-access-stats .dash-stat-ico {
    font-size: .72rem;
    font-weight: 900;
}

.user-access-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 1rem;
    align-items: start;
}

.user-create-panel form,
.user-account-card {
    min-width: 0;
}

.user-form-section {
    padding: 1rem;
}

.user-permission-section {
    border-top: 1px solid #edf1f6;
    padding: 1rem;
}

.user-permission-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}

.user-permission-heading strong,
.user-permission-heading span {
    display: block;
}

.user-permission-heading strong {
    color: #17243a;
    font-size: .9rem;
}

.user-permission-heading span {
    margin-top: .12rem;
    color: #708096;
    font-size: .76rem;
}

.user-permission-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 1rem;
}

.user-permission-columns h3 {
    margin: 0 0 .55rem;
    color: #41506a;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.user-permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .65rem;
}

.user-permission-choice {
    min-height: 84px;
    border-color: #e2e8f0;
    border-radius: 8px;
    padding: .75rem;
    background: #ffffff;
    transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.user-permission-choice:hover {
    border-color: #bfd4ff;
    box-shadow: 0 8px 18px rgba(9, 105, 246, .07);
}

.user-permission-choice:has(.form-check-input:checked) {
    border-color: #abc8ff;
    background: #f7fbff;
}

.user-permission-choice strong {
    color: #17243a;
    font-size: .84rem;
}

.user-permission-choice small {
    color: #708096;
    font-size: .74rem;
}

.user-permission-choice.is-admin-only {
    border-color: #f1d59a;
    background: #fffaf0;
}

.user-permission-choice.is-admin-only:has(.form-check-input:checked) {
    border-color: #e9b949;
    background: #fff8e6;
}

.user-permission-choice.is-disabled {
    opacity: .52;
    box-shadow: none;
}

.user-form-actions {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #edf1f6;
    padding: 1rem;
}

.user-access-rules {
    position: sticky;
    top: 92px;
}

.user-rule-list {
    display: grid;
    gap: .75rem;
    padding: 1rem;
}

.user-rule-list div {
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    padding: .85rem;
    background: #f8fafd;
}

.user-rule-list strong,
.user-rule-list span {
    display: block;
}

.user-rule-list strong {
    color: #17243a;
    font-size: .86rem;
}

.user-rule-list span {
    margin-top: .18rem;
    color: #708096;
    font-size: .76rem;
    line-height: 1.45;
}

.user-list-panel {
    display: grid;
    gap: 1rem;
}

.user-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr));
    gap: 1rem;
}

.user-account-card {
    overflow: hidden;
}

.user-account-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    border-bottom: 1px solid #edf1f6;
    padding: 1rem;
}

.user-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #0969f6;
    background: #eaf2ff;
    font-weight: 900;
}

.user-account-head h3 {
    margin: 0;
    color: #17243a;
    font-size: .98rem;
    font-weight: 850;
}

.user-account-head span {
    display: block;
    overflow: hidden;
    color: #708096;
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 0 .65rem;
    font-size: .72rem;
    font-style: normal;
    font-weight: 850;
}

.user-role-pill.is-dealer_manager {
    color: #0b8b58;
    background: #e5f6ee;
}

.user-role-pill.is-salesperson {
    color: #0969f6;
    background: #eaf2ff;
}

.user-edit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 1rem;
}

/* ===== CRM workflow redesign ===== */

.crm-workflow-page .admin-page-head p {
    margin: .28rem 0 0;
    color: #66758c;
    font-size: .9rem;
}

.crm-kpi-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.crm-kpi-card {
    border-radius: 8px;
    min-height: 118px;
}

.crm-kpi-card > strong {
    letter-spacing: 0;
}

.crm-kpi-card small {
    color: #728199;
    font-size: .76rem;
    font-weight: 650;
}

.crm-kpi-card .dash-stat-ico {
    color: #ffffff;
    font-size: .72rem;
    font-weight: 900;
}

.crm-filter-panel {
    padding: 1rem;
}

.crm-filter-panel.is-embedded {
    border-top: 1px solid #edf1f6;
    border-radius: 0;
    box-shadow: none;
}

.crm-filter-panel .form-label {
    color: #617089;
    font-size: .72rem;
    font-weight: 800;
}

.crm-inline-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
}

.crm-inline-filter .form-control,
.crm-inline-filter .form-select {
    max-width: 360px;
}

.crm-source-panel .dashboard-panel-head {
    border-bottom: 1px solid #edf1f6;
}

.crm-workflow-table th {
    color: #68778d;
    background: #f8fafd;
    font-size: .74rem;
    font-weight: 800;
}

.crm-workflow-table td {
    color: #27364c;
    font-size: .84rem;
}

.crm-workflow-table .badge {
    border-radius: 7px;
    padding: .34rem .55rem;
    font-weight: 850;
}

.pipeline-action-strip {
    padding: 1rem;
}

.pipeline-action-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    padding: 0 .75rem;
    color: #27364c;
    background: #ffffff;
    text-decoration: none;
}

.pipeline-action-link.is-danger {
    border-color: #ffd1d7;
    color: #c7364a;
    background: #fff7f8;
}

.pipeline-action-link.is-warning {
    border-color: #ffe2a3;
    color: #9b6200;
    background: #fffaf0;
}

.pipeline-action-link.is-primary {
    border-color: #c9d9ff;
    color: #0969f6;
    background: #f5f8ff;
}

.pipeline-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.pipeline-column {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    overflow: hidden;
}

.pipeline-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border-bottom: 1px solid #edf1f6;
    padding: 1rem;
}

.pipeline-column-head h2 {
    margin: 0;
    color: #17243a;
    font-size: .9rem;
    font-weight: 850;
}

.pipeline-card-stack {
    display: grid;
    gap: .75rem;
    padding: .9rem;
}

.pipeline-lead-card {
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    padding: .9rem;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 35, 70, .04);
}

.pipeline-lead-card:hover {
    border-color: #c6d9ff;
}

.support-workflow-layout {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.support-ticket-form form {
    padding: 1rem;
}

.support-ticket-list {
    overflow: hidden;
}

.chat-workflow-page .chat-admin-shell {
    min-height: 660px;
    overflow: hidden;
}

.chat-workflow-page .chat-admin-list {
    background: #f8fafd;
}

.chat-workflow-page .chat-conversation-item {
    border-bottom-color: #e6ebf3;
    color: #1d2b42;
    background: #ffffff;
}

.chat-workflow-page .chat-conversation-item:hover,
.chat-workflow-page .chat-conversation-item.is-active {
    color: #0b1730;
    background: #eef5ff;
}

.chat-workflow-page .chat-admin-main {
    background: #f5f8fc;
}

.chat-workflow-page .chat-admin-header,
.chat-workflow-page .chat-admin-reply {
    background: #ffffff;
}

.chat-workflow-page .chat-admin-message {
    border-radius: 8px;
}

.platform-chat-compose-tools {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.platform-chat-emoji-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid #cfd8e6;
    border-radius: 8px;
    background: #ffffff;
    color: #1f3658;
    display: grid;
    place-items: center;
}

.platform-chat-emoji-toggle:disabled {
    opacity: .5;
}

.platform-chat-emoji-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + .5rem);
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(6, 34px);
    gap: .25rem;
    padding: .45rem;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .16);
}

.platform-chat-emoji-panel[hidden] {
    display: none;
}

.platform-chat-emoji-panel button,
.platform-chat-starter {
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #ffffff;
    color: #1f3658;
}

.platform-chat-emoji-panel button {
    width: 34px;
    height: 34px;
}

.platform-chat-starters {
    display: grid;
    gap: .5rem;
    margin-top: .9rem;
}

.platform-chat-starter {
    padding: .55rem .7rem;
    text-align: left;
}

.platform-chat-starter:hover,
.platform-chat-emoji-panel button:hover,
.platform-chat-emoji-toggle:hover {
    border-color: var(--pas-blue);
    background: #eef5ff;
}

.platform-chat-page-link,
.platform-chat-page-text {
    display: block;
    color: #51627b;
    font-size: .78rem;
    overflow-wrap: anywhere;
}

/* ===== Admin editor workflow pages ===== */

.admin-workflow-page .admin-page-head p {
    margin: .28rem 0 0;
    color: #66758c;
    font-size: .9rem;
}

.admin-editor-panel {
    padding: 1rem;
}

.admin-workflow-page .metric-card {
    border-color: #e3e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 35, 70, .05);
}

.admin-workflow-page .metric-card > h2:first-child,
.admin-workflow-page .metric-card h2.h5 {
    color: #17243a;
    font-size: .95rem;
    font-weight: 850;
}

.admin-workflow-page .form-label {
    color: #617089;
    font-size: .76rem;
    font-weight: 800;
}

.admin-workflow-page .form-text {
    color: #73839a;
    font-size: .74rem;
}

.admin-workflow-page .table-panel {
    border-color: #e3e8f0;
    box-shadow: 0 10px 28px rgba(15, 35, 70, .05);
}

.admin-workflow-page .content-module-card,
.admin-workflow-page .content-section-card {
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 35, 70, .04);
}

.admin-workflow-page .content-module-card {
    padding: 1rem;
}

.admin-workflow-page .content-section-editor {
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    padding: 1rem;
    background: #f8fbff;
}

.admin-workflow-page .content-section-card {
    padding: .95rem;
}

.admin-workflow-page pre {
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    padding: .65rem .75rem;
    background: #f8fbff;
    color: #243247;
}

.integration-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: 1rem;
}

.integration-status-card {
    padding: 1rem;
}

.integration-status-card h2 {
    color: #17243a;
    font-size: .98rem;
    font-weight: 850;
}

.dashboard-secondary-btn.is-danger {
    border-color: #ffd1d7;
    color: #c7364a;
    background: #fff7f8;
}

.dashboard-secondary-btn.is-danger:hover {
    border-color: #f59aaa;
    color: #a71f32;
    background: #fff0f2;
}

.billing-reminder-panel {
    overflow: hidden;
}

.billing-reminder-panel .dealer-empty {
    padding: 1rem;
}

.billing-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
}

.billing-plan-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    padding: 1rem;
}

.billing-plan-card.is-current {
    border-color: #abc8ff;
    background: #f8fbff;
}

.billing-plan-head {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .8rem;
}

.billing-plan-head h2 {
    margin: 0;
    color: #17243a;
    font-size: 1rem;
    font-weight: 850;
}

.billing-plan-head p {
    margin: .2rem 0 0;
    color: #708096;
    font-size: .78rem;
    line-height: 1.45;
}

.billing-plan-price {
    color: #0b1730;
    font-size: 2rem;
    font-weight: 850;
    line-height: 1;
}

.inventory-import-layout {
    display: grid;
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.inventory-import-sidebar {
    display: grid;
    gap: 1rem;
}

.inventory-import-sidebar .dashboard-panel-head {
    padding: 0 0 .85rem;
}

.inventory-import-preview {
    min-width: 0;
}

.detail-workflow-layout {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.detail-workflow-side,
.detail-workflow-main {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.detail-workflow-main .list-group-item {
    border-color: #edf1f6;
    padding: 1rem;
}

.detail-workflow-main .dealer-spec-grid {
    margin-top: .25rem;
}

.customer-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.customer-summary-grid h2 {
    margin: 0 0 .35rem;
    color: #617089;
    font-size: .78rem;
    font-weight: 850;
}

.customer-summary-grid strong {
    color: #0b1730;
    font-size: 1.55rem;
    font-weight: 850;
}

.vehicle-summary-card {
    min-height: 96px;
}

.vehicle-summary-card .stat-value {
    color: #0b1730;
    font-size: 1.35rem !important;
    font-weight: 850;
    letter-spacing: 0;
}

.lead-detail-page .detail-workflow-main .row .dashboard-panel h2,
.vehicle-detail-page .dashboard-panel h2 {
    margin: 0 0 .6rem;
    color: #17243a;
    font-size: .92rem;
    font-weight: 850;
}

.lead-sms-thread {
    display: grid;
    gap: .75rem;
}

.lead-sms-bubble {
    max-width: min(640px, 92%);
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    padding: .75rem .85rem;
    background: #f8fafc;
}

.lead-sms-bubble.is-outbound {
    justify-self: end;
    border-color: #b9d4ff;
    background: #eef5ff;
}

.lead-sms-bubble.is-inbound {
    justify-self: start;
}

.lead-sms-bubble-meta {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .35rem;
    color: #64748b;
    font-size: .78rem;
    font-weight: 750;
}

.lead-sms-bubble strong,
.lead-sms-bubble p {
    display: block;
    margin: 0;
}

.lead-sms-bubble strong {
    margin-bottom: .25rem;
    color: #17243a;
    font-size: .88rem;
}

.lead-sms-bubble p {
    color: #24344d;
    line-height: 1.55;
}

.lead-form-page form.vstack,
.inventory-form-page form {
    gap: 1rem;
}

.settings-workflow-page .admin-editor-panel .admin-form-grid,
.listings-workflow-page .admin-editor-panel .row,
.website-workflow-page form.metric-card .admin-form-grid,
.modules-workflow-page form.metric-card,
.growth-workflow-page form.metric-card {
    row-gap: 1rem;
}

.pages-workflow-page code {
    color: #0969f6;
    background: #eef5ff;
    border-radius: 6px;
    padding: .18rem .38rem;
}

@media (max-width: 1180px) {
    .user-access-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-access-layout {
        grid-template-columns: 1fr;
    }

    .support-workflow-layout {
        grid-template-columns: 1fr;
    }

    .inventory-import-layout {
        grid-template-columns: 1fr;
    }

    .detail-workflow-layout {
        grid-template-columns: 1fr;
    }

    .user-access-rules {
        position: static;
    }
}

@media (max-width: 760px) {
    .user-access-stats,
    .user-permission-columns,
    .user-edit-grid {
        grid-template-columns: 1fr;
    }

    .user-account-head {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .user-role-pill {
        grid-column: 2;
        justify-self: start;
    }

    .crm-inline-filter,
    .crm-inline-filter .form-control,
    .crm-inline-filter .form-select,
    .crm-inline-filter .dashboard-primary-btn,
    .crm-inline-filter .dashboard-secondary-btn {
        width: 100%;
        max-width: none;
    }

    .chat-workflow-page .chat-admin-shell {
        grid-template-columns: 1fr;
        min-height: 720px;
    }

    .chat-workflow-page .chat-admin-list {
        border-right: 0;
        border-bottom: 1px solid #e3e8f0;
    }

    .chat-workflow-page .chat-conversation-list {
        max-height: 260px;
    }

    .customer-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Website CMS page (tabbed) ===== */

.website-cms-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-bottom: 1.25rem;
    padding-top: .35rem;
    background: #f3f6fb;
}

.admin-body .website-cms-nav .nav-link {
    color: #47566e;
    font-weight: 650;
}

.admin-body .website-cms-nav .nav-link.active {
    color: #0b1730;
    font-weight: 750;
}

.website-cms-panes > .tab-pane > .border {
    border-color: #e3e9f2 !important;
    border-radius: 12px !important;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(17, 35, 68, .05);
}

.website-cms-savebar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: .5rem;
    border-top: 1px solid #e3e9f2;
    padding: .8rem 0;
    background: rgba(243, 246, 251, .96);
    backdrop-filter: blur(6px);
}

/* ===== Website theme workspace ===== */

.website-theme-workspace {
    --theme-border: #dce4ef;
    --theme-ink: #0b1730;
    --theme-muted: #66758d;
    --theme-blue: #0f66f2;
    --theme-blue-soft: #edf5ff;
    margin-bottom: 1.5rem;
}

.website-theme-heading,
.website-theme-section-head,
.website-theme-preview-head,
.website-theme-settings-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.website-theme-heading {
    align-items: center;
    margin-bottom: 1.25rem;
}

.website-theme-eyebrow,
.website-theme-preview-head span,
.website-theme-settings-head span:first-child,
.website-theme-field-label {
    display: block;
    color: var(--theme-muted);
    font-size: .76rem;
    font-weight: 750;
    line-height: 1.3;
    text-transform: uppercase;
}

.website-theme-heading h2 {
    margin: .2rem 0 .25rem;
    color: var(--theme-ink);
    font-size: 1.4rem;
    line-height: 1.2;
}

.website-theme-heading p,
.website-theme-section-head p {
    margin: 0;
    color: var(--theme-muted);
}

.website-theme-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, .78fr);
    gap: 1.25rem;
    align-items: start;
}

.website-theme-library,
.website-theme-customizer {
    min-width: 0;
}

.website-theme-section-head {
    margin-bottom: .75rem;
}

.website-theme-section-head h3,
.website-theme-settings-head h3 {
    margin: 0 0 .15rem;
    color: var(--theme-ink);
    font-size: 1rem;
    line-height: 1.25;
}

.website-theme-section-head p {
    font-size: .84rem;
}

.website-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.website-template-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(15, 31, 57, .05);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.website-template-card:hover {
    border-color: #aab9cc;
    box-shadow: 0 8px 22px rgba(15, 31, 57, .09);
    transform: translateY(-1px);
}

.website-template-card.is-selected {
    border-color: var(--theme-blue);
    box-shadow: 0 0 0 2px rgba(15, 102, 242, .12), 0 8px 24px rgba(15, 31, 57, .1);
}

.website-template-choice {
    display: block;
    color: inherit;
    cursor: pointer;
}

.website-template-choice > input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.website-template-choice:focus-within {
    outline: none;
}

.website-template-card:focus-within {
    outline: 3px solid rgba(15, 102, 242, .25);
    outline-offset: -3px;
}

.website-template-visual {
    position: relative;
    display: block;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: #0d1728;
}

.website-template-visual img,
.website-theme-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.website-template-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: #13213a;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
}

.website-template-active-badge {
    position: absolute;
    top: .5rem;
    left: .5rem;
    border-radius: 999px;
    padding: .24rem .48rem;
    background: #e8fff2;
    color: #087a43;
    font-size: .67rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.website-template-selected-mark {
    position: absolute;
    right: .5rem;
    bottom: .5rem;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--theme-blue);
    color: #ffffff;
    font-size: .8rem;
    font-weight: 800;
    opacity: 0;
    transform: scale(.75);
    transition: opacity .18s ease, transform .18s ease;
}

.website-template-card.is-selected .website-template-selected-mark {
    opacity: 1;
    transform: scale(1);
}

.website-template-copy {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    padding: .65rem .7rem .25rem;
}

.website-template-copy strong,
.website-template-copy small {
    display: block;
}

.website-template-copy strong {
    color: var(--theme-ink);
    font-size: .88rem;
}

.website-template-copy small {
    margin-top: .1rem;
    color: var(--theme-muted);
    font-size: .68rem;
}

.website-template-selection-label {
    flex: 0 0 auto;
    color: var(--theme-blue);
    font-size: .68rem;
    font-weight: 750;
}

.website-template-description {
    display: -webkit-box;
    min-height: 2rem;
    overflow: hidden;
    padding: 0 .7rem .55rem;
    color: var(--theme-muted);
    font-size: .72rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.website-template-card-actions {
    border-top: 1px solid #edf1f6;
    padding: .48rem .7rem;
}

.website-template-card-actions a,
.website-theme-preview-head a {
    color: var(--theme-blue);
    font-size: .78rem;
    font-weight: 750;
    text-decoration: none;
}

.website-template-card-actions a:hover,
.website-theme-preview-head a:hover {
    text-decoration: underline;
}

.website-theme-customizer {
    position: sticky;
    top: 4.6rem;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 31, 57, .08);
}

.website-theme-preview {
    padding: 1rem;
    background: #f7f9fc;
}

.website-theme-preview-head {
    align-items: center;
    margin-bottom: .7rem;
}

.website-theme-preview-head strong {
    display: block;
    margin-top: .1rem;
    color: var(--theme-ink);
    font-size: .92rem;
}

.website-theme-preview-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #0d1728;
}

.website-theme-selected-meta {
    padding-top: .7rem;
}

.website-theme-selected-meta > span {
    display: block;
    color: var(--theme-blue);
    font-size: .7rem;
    font-weight: 750;
}

.website-theme-selected-meta p {
    display: -webkit-box;
    margin: .25rem 0 0;
    overflow: hidden;
    color: var(--theme-muted);
    font-size: .76rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.website-theme-settings {
    border-top: 1px solid var(--theme-border);
    padding: 1rem;
}

.website-theme-version {
    border: 1px solid #dce4ef;
    border-radius: 999px;
    padding: .22rem .48rem;
    background: #f7f9fc;
    color: var(--theme-muted);
    font-size: .68rem;
    font-weight: 750;
}

.website-theme-presets {
    margin-top: 1rem;
}

.website-theme-preset-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .45rem;
}

.website-theme-preset {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: .45rem;
    border: 1px solid #d5deea;
    border-radius: 6px;
    padding: .42rem .6rem;
    background: #ffffff;
    color: #26354d;
    font-size: .72rem;
    font-weight: 700;
}

.website-theme-preset:hover,
.website-theme-preset:focus-visible {
    border-color: var(--theme-blue);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(15, 102, 242, .14);
}

.website-theme-preset-swatches {
    display: flex;
}

.website-theme-preset-swatches i {
    display: block;
    width: 14px;
    height: 14px;
    margin-left: -3px;
    border: 1px solid rgba(15, 23, 42, .18);
    border-radius: 50%;
    background: var(--preset-color);
}

.website-theme-preset-swatches i:first-child {
    margin-left: 0;
}

.website-theme-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin-top: 1rem;
}

.website-theme-field {
    min-width: 0;
}

.website-theme-field-label {
    margin-bottom: .35rem;
    text-transform: none;
}

.website-theme-field .form-control,
.website-theme-field .form-select {
    min-height: 42px;
    border-color: #d5deea;
    border-radius: 6px;
    font-size: .82rem;
}

.website-theme-color-control {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 42px;
    overflow: hidden;
    border: 1px solid #d5deea;
    border-radius: 6px;
    background: #ffffff;
}

.website-theme-color-control:focus-within {
    border-color: var(--theme-blue);
    box-shadow: 0 0 0 3px rgba(15, 102, 242, .12);
}

.website-theme-color-control input[type="color"] {
    width: 38px;
    height: 42px;
    border: 0;
    padding: .32rem;
    background: #ffffff;
    cursor: pointer;
}

.website-theme-color-control output {
    align-self: center;
    overflow: hidden;
    padding: 0 .55rem;
    color: #26354d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-theme-toggle {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: .55rem;
    border: 1px solid #d5deea;
    border-radius: 6px;
    padding: .5rem .65rem;
    color: #26354d;
    font-size: .8rem;
    cursor: pointer;
}

.website-theme-save-options {
    display: grid;
    gap: .55rem;
    margin-top: 1rem;
    border-top: 1px solid #e8edf4;
    padding-top: .9rem;
}

.website-theme-save-options label {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    color: var(--theme-muted);
    font-size: .75rem;
    line-height: 1.4;
}

.website-theme-save {
    width: 100%;
    min-height: 44px;
    margin-top: 1rem;
}

.website-theme-empty-options {
    margin: 1rem 0 0;
    color: var(--theme-muted);
    font-size: .82rem;
}

@media (max-width: 1199.98px) {
    .website-theme-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

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

@media (max-width: 991.98px) {
    .website-theme-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .website-theme-customizer {
        position: static;
    }

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

@media (max-width: 575.98px) {
    .website-theme-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .website-theme-heading .dashboard-secondary-btn {
        justify-content: center;
    }

    .website-template-grid,
    .website-theme-field-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .website-template-description {
        min-height: 0;
    }
}

/* ===== Collapsible admin sidebar ===== */

.admin-collapse-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .65rem;
    margin-top: .75rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-radius: 0;
    padding: .75rem .75rem .25rem;
    background: transparent;
    color: #8fa0ba;
    font-size: .85rem;
    font-weight: 700;
    text-align: left;
}

.admin-collapse-toggle:hover {
    color: #ffffff;
}

.admin-collapse-arrows {
    display: inline-grid;
    flex: none;
    width: 18px;
    place-items: center;
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 1180px) {
    .admin-collapse-toggle {
        display: none;
    }
}

@media (min-width: 1181px) {
    .admin-sidebar {
        transition: flex-basis .18s ease, width .18s ease, min-width .18s ease, max-width .18s ease;
    }

    body.admin-sidebar-collapsed .admin-sidebar {
        flex: 0 0 76px;
        width: 76px;
        min-width: 76px;
        max-width: 76px;
        overflow-x: hidden;
    }

    body.admin-sidebar-collapsed .admin-sidebar .admin-nav-text,
    body.admin-sidebar-collapsed .admin-sidebar .admin-nav-caret,
    body.admin-sidebar-collapsed .admin-sidebar .admin-nav-group,
    body.admin-sidebar-collapsed .admin-sidebar .admin-sidebar-card,
    body.admin-sidebar-collapsed .admin-brand > span:not(.admin-brand-mark) {
        display: none;
    }

    body.admin-sidebar-collapsed .admin-brand {
        justify-content: center;
    }

    body.admin-sidebar-collapsed .admin-sidebar .nav-link,
    body.admin-sidebar-collapsed .admin-sidebar .admin-nav-group-toggle {
        justify-content: center;
        padding-right: .4rem;
        padding-left: .4rem;
    }

    body.admin-sidebar-collapsed .admin-sidebar .admin-nav-group-label {
        justify-content: center;
    }

    body.admin-sidebar-collapsed .admin-collapse-toggle {
        justify-content: center;
        margin-top: auto;
        padding-right: .4rem;
        padding-left: .4rem;
    }
}

/* ===== Vehicle add/edit tabbed editor ===== */

.vehicle-editor-tabs {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid #dfe6ef;
    background: #ffffff;
    overflow: hidden;
}

.inventory-form-page > *,
.inventory-form-page .vehicle-form {
    min-width: 0;
    max-width: 100%;
}

.vehicle-editor-tab-list {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.vehicle-editor-tab-list::-webkit-scrollbar {
    display: none;
}

.vehicle-editor-tab {
    position: relative;
    flex: 0 0 auto;
    min-height: 52px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    padding: .8rem .15rem .7rem;
    color: #475569;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.vehicle-editor-tab:hover {
    color: #0f4fc4;
}

.vehicle-editor-tab.is-active {
    border-bottom-color: #1769ff;
    color: #0b57d0;
}

.vehicle-editor-tab:focus-visible {
    z-index: 1;
    border-radius: 4px;
    outline: 3px solid rgba(23, 105, 255, .25);
    outline-offset: -3px;
}

.vehicle-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
    gap: 1.15rem;
    align-items: start;
}

.vehicle-form.is-tab-ready .vehicle-form-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
}

.vehicle-form.is-tab-ready .vehicle-form-main,
.vehicle-form.is-tab-ready .vehicle-form-side {
    display: contents;
}

.vehicle-form.is-tab-ready [data-vehicle-tab-panel] {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
}

.vehicle-form.is-tab-ready [data-vehicle-tab-column="main"] {
    grid-column: 1;
}

.vehicle-form.is-tab-ready [data-vehicle-tab-column="aside"] {
    grid-column: 2;
}

.vehicle-form.is-tab-ready [data-vehicle-tab-panel].is-active {
    animation: vehicle-tab-enter .16s ease-out;
}

@keyframes vehicle-tab-enter {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vehicle-form-main,
.vehicle-form-side {
    display: grid;
    gap: 1.15rem;
    min-width: 0;
}

.admin-body .vehicle-form .dashboard-panel-head.is-compact {
    margin-bottom: 1rem;
}

.admin-body .vehicle-form .dashboard-panel-head.is-compact p {
    max-width: 68ch;
    margin: .3rem 0 0;
    color: #64748b;
    font-size: .86rem;
    line-height: 1.45;
}

.vehicle-description-editor {
    min-height: 340px;
    line-height: 1.6;
    resize: vertical;
}

.vehicle-catalog-manual-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin: .25rem 0 1rem;
    border-top: 1px solid #e5eaf2;
    padding-top: 1rem;
}

.vehicle-catalog-manual-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.vehicle-catalog-manual-head p {
    max-width: 65ch;
    margin: .3rem 0 0;
    color: #64748b;
    font-size: .84rem;
    line-height: 1.45;
}

.vehicle-catalog-manual-head [data-vehicle-catalog-status] {
    flex: 0 0 auto;
    max-width: 36ch;
    font-size: .8rem;
    font-weight: 700;
    text-align: right;
}

.vehicle-catalog-selectors .form-select:disabled {
    color: #8290a3;
    background-color: #f3f6fa;
}

.vehicle-feature-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.vehicle-feature-heading p {
    margin: .3rem 0 0;
    color: #64748b;
    font-size: .88rem;
}

.vehicle-feature-summary {
    display: flex;
    min-width: max-content;
    align-items: center;
    gap: .75rem;
    color: #334155;
    font-size: .84rem;
}

.vehicle-feature-summary button {
    border: 0;
    background: transparent;
    color: #2563eb;
    padding: .2rem 0;
    font-weight: 700;
}

.vehicle-feature-summary button:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.vehicle-feature-group {
    min-width: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid #e5eaf2;
    padding: 1rem 0 .2rem;
}

.vehicle-feature-group:first-child {
    border-top: 0;
    padding-top: 0;
}

.vehicle-feature-group legend {
    float: none;
    width: auto;
    margin: 0 0 .7rem;
    color: #0f172a;
    font-size: .88rem;
    font-weight: 800;
}

.vehicle-feature-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: .55rem;
}

.vehicle-feature-choice {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    gap: .65rem;
    margin: 0;
    border: 1px solid #dfe6ef;
    border-radius: 6px;
    background: #f8fafc;
    padding: .65rem .75rem;
    color: #334155;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 650;
    line-height: 1.25;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.vehicle-feature-choice:hover {
    border-color: #a9b9cd;
    background: #ffffff;
}

.vehicle-feature-choice:has(.form-check-input:checked) {
    border-color: #72a5ff;
    background: #eef5ff;
    color: #123a76;
}

.vehicle-feature-choice .form-check-input {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
}

.vehicle-feature-custom {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
    border-top: 1px solid #e5eaf2;
    padding-top: 1rem;
}

.vehicle-feature-custom .input-group {
    max-width: 720px;
}

.vehicle-custom-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    min-height: 0;
}

.vehicle-custom-feature-list.is-empty {
    display: none;
}

.vehicle-custom-feature {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: .45rem;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    background: #eff6ff;
    color: #1e3a5f;
    padding: .35rem .4rem .35rem .65rem;
    font-size: .84rem;
    font-weight: 700;
}

.vehicle-custom-feature > span {
    overflow-wrap: anywhere;
}

.vehicle-custom-feature button {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #47627f;
    padding: 0;
    font-size: 1.15rem;
    line-height: 1;
}

.vehicle-custom-feature button:hover {
    background: #dbeafe;
    color: #0f172a;
}

.admin-form-grid.is-tight {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .8rem;
}

.vehicle-photos-placeholder {
    display: grid;
    gap: .4rem;
    justify-items: center;
    text-align: center;
    border: 2px dashed #d7e0ec;
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    background: #f8fafd;
}

.vehicle-photos-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #94a3b8;
}

.vehicle-photos-icon svg {
    width: 30px;
    height: 30px;
}

.vehicle-photos-placeholder strong {
    color: #0b1730;
    font-size: .95rem;
}

.vehicle-photos-placeholder span {
    color: #64748b;
    font-size: .82rem;
    line-height: 1.45;
    max-width: 34ch;
}

.vehicle-form-savebar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.15rem;
    border-top: 1px solid #e3e9f2;
    padding: .85rem 0;
    background: rgba(243, 246, 251, .96);
    backdrop-filter: blur(6px);
}

.vehicle-form-savebar > a:first-child {
    margin-right: auto;
}

.vehicle-editor-step {
    color: #64748b;
    font-size: .84rem;
    font-weight: 700;
}

.vehicle-editor-step-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

@media (max-width: 991.98px) {
    .vehicle-form-grid,
    .vehicle-form.is-tab-ready .vehicle-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .vehicle-form.is-tab-ready [data-vehicle-tab-column="main"],
    .vehicle-form.is-tab-ready [data-vehicle-tab-column="aside"] {
        grid-column: 1;
    }

    .vehicle-catalog-manual-head {
        align-items: stretch;
        flex-direction: column;
    }

    .vehicle-catalog-manual-head [data-vehicle-catalog-status] {
        max-width: none;
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .vehicle-editor-tab-list {
        gap: 1.1rem;
    }

    .vehicle-editor-tab {
        min-height: 48px;
        font-size: .84rem;
    }

    .vehicle-catalog-manual-head {
        align-items: stretch;
        flex-direction: column;
    }

    .vehicle-catalog-manual-head [data-vehicle-catalog-status] {
        max-width: none;
        text-align: left;
    }

    .vehicle-feature-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .vehicle-feature-summary {
        justify-content: space-between;
    }

    .vehicle-feature-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .vehicle-description-editor {
        min-height: 260px;
    }

    .vehicle-form-savebar {
        flex-wrap: wrap;
    }

    .vehicle-editor-step {
        order: 3;
        width: 100%;
        text-align: right;
    }

    .vehicle-editor-step-actions {
        margin-left: auto;
    }

    .vehicle-editor-step-actions .dashboard-primary-btn,
    .vehicle-editor-step-actions .dashboard-secondary-btn {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vehicle-form.is-tab-ready [data-vehicle-tab-panel].is-active {
        animation: none;
    }
}

/* ===== Sidebar submenu: threaded dot list (overrides pill styling for sub-items) ===== */

.admin-sidebar .admin-nav-group {
    margin: .15rem 0 .45rem 1.9rem;
    padding-left: 0;
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.admin-sidebar .admin-nav-group .nav-link {
    position: relative;
    min-height: 34px;
    margin-bottom: .05rem;
    padding: .4rem .7rem .4rem 1.2rem;
    border-radius: 6px;
    color: #9db0c9;
    font-size: .86rem;
    font-weight: 600;
    background: transparent;
    box-shadow: none;
}

.admin-sidebar .admin-nav-group .nav-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -5px;
    width: 9px;
    height: 9px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #3b4a63;
    box-shadow: 0 0 0 3px #0a1b30;
    transition: background .15s ease, box-shadow .15s ease;
}

.admin-sidebar .admin-nav-group .nav-link:hover {
    color: #ffffff;
    background: transparent;
    box-shadow: none;
}

.admin-sidebar .admin-nav-group .nav-link:hover::before {
    background: #6b7d98;
}

.admin-sidebar .admin-nav-group .nav-link.active {
    color: #3b8bff;
    font-weight: 750;
    background: transparent;
    box-shadow: none;
}

.admin-sidebar .admin-nav-group .nav-link.active::before {
    background: #3b8bff;
    box-shadow: 0 0 0 3px #0a1b30, 0 0 0 4px rgba(59, 139, 255, .3);
}

/* ===== Native dealer email ===== */

.email-inbox-page {
    display: grid;
    max-width: none;
    gap: 1rem;
}

.email-account-actions,
.email-error-actions,
.email-reading-actions,
.email-toolbar-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.email-account-actions form,
.email-error-actions form,
.email-reading-actions form {
    margin: 0;
}

.email-account-switcher {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.email-account-switcher label {
    color: #52637a;
    font-size: .9rem;
    font-weight: 700;
}

.email-account-switcher .form-select {
    min-width: min(310px, 38vw);
}

.email-status-warning {
    border: 1px solid #f2c66d;
    border-radius: 8px;
    padding: .85rem 1rem;
    background: #fff8e8;
    color: #633f00;
}

.email-status-warning strong {
    display: block;
    margin-bottom: .4rem;
}

.email-status-warning ul {
    margin: 0;
    padding-left: 1.1rem;
}

.email-signin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    overflow: hidden;
    min-height: 430px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(26, 43, 69, .07);
}

.email-signin-main {
    display: grid;
    align-content: center;
    gap: 1.35rem;
    max-width: 680px;
    padding: 3rem clamp(1.5rem, 5vw, 4.5rem);
}

.email-signin-main h2,
.email-connection-error h2 {
    margin: .15rem 0 .45rem;
    color: #0b1730;
    font-size: 1.65rem;
}

.email-signin-main p,
.email-connection-error p,
.email-signin-aside p {
    margin: 0;
    color: #607086;
}

.email-signin-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #1763d8;
}

.email-signin-mark svg {
    width: 25px;
    height: 25px;
}

.email-eyebrow {
    margin: 0;
    color: #1763d8;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.email-signin-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
    gap: .8rem;
}

.email-signin-form .dashboard-primary-btn {
    min-height: 42px;
    white-space: nowrap;
}

.email-signin-aside {
    display: grid;
    align-content: center;
    gap: .85rem;
    border-left: 1px solid #dbe3ee;
    padding: 2.5rem;
    background: #f6f9fd;
}

.email-signin-aside > strong {
    color: #0b1730;
    font-size: 1.08rem;
}

.email-security-note {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-top: .45rem;
    color: #276344;
    font-size: .88rem;
    font-weight: 650;
}

.email-security-note > span {
    display: grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: #dff5e7;
}

.email-connection-error {
    display: grid;
    min-height: 390px;
    place-items: center;
    align-content: center;
    gap: .8rem;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    padding: 2rem;
    background: #fff;
    text-align: center;
}

.email-client-shell {
    display: grid;
    grid-template-columns: 190px minmax(310px, 370px) minmax(400px, 1fr);
    min-width: 0;
    min-height: 680px;
    overflow: hidden;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(25, 42, 67, .07);
}

.email-folder-pane,
.email-message-pane,
.email-reading-pane {
    min-width: 0;
}

.email-folder-pane {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dfe6ef;
    padding: 1rem .75rem;
    background: #f7f9fc;
}

.email-compose-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 7px;
    background: #1767e8;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 7px 16px rgba(23, 103, 232, .22);
}

.email-compose-btn:hover {
    background: #0f56c8;
}

.email-compose-btn svg,
.email-folder-icon svg,
.email-icon-btn svg,
.email-search-form svg,
.email-mobile-back svg {
    width: 18px;
    height: 18px;
}

.email-folder-list {
    display: grid;
    gap: .22rem;
    margin-top: 1rem;
}

.email-folder-link {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: .45rem;
    min-height: 38px;
    border-radius: 6px;
    padding: .4rem .55rem;
    color: #526178;
    text-decoration: none;
}

.email-folder-link:hover {
    background: #eaf0f8;
    color: #13223a;
}

.email-folder-link.is-active {
    background: #e5efff;
    color: #145bcf;
    font-weight: 800;
}

.email-folder-link > strong {
    min-width: 22px;
    border-radius: 999px;
    padding: .1rem .38rem;
    background: #1767e8;
    color: #fff;
    font-size: .7rem;
    text-align: center;
}

.email-folder-account {
    display: grid;
    gap: .15rem;
    margin-top: auto;
    border-top: 1px solid #dfe6ef;
    padding: 1rem .4rem .2rem;
    overflow-wrap: anywhere;
}

.email-folder-account span {
    color: #77859a;
    font-size: .75rem;
}

.email-folder-account strong {
    color: #24344c;
    font-size: .78rem;
}

.email-message-pane {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dfe6ef;
    background: #fff;
}

.email-message-toolbar {
    display: grid;
    gap: .75rem;
    min-height: 106px;
    border-bottom: 1px solid #e3e9f1;
    padding: .9rem 1rem;
}

.email-message-toolbar > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
}

.email-message-toolbar h2 {
    margin: 0;
    color: #0b1730;
    font-size: 1.15rem;
}

.email-message-toolbar > div:first-child > span {
    color: #7a8799;
    font-size: .78rem;
}

.email-toolbar-actions {
    min-width: 0;
}

.email-search-form {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    flex: 1;
    border: 1px solid #d8e1ed;
    border-radius: 7px;
    padding: .4rem .55rem;
    color: #6c7b90;
    background: #f8fafc;
}

.email-search-form input {
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 .35rem;
    background: transparent;
    color: #17243a;
}

.email-search-form a {
    color: #6c7b90;
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
}

.email-icon-btn,
.email-mobile-back {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #d8e1ed;
    border-radius: 7px;
    padding: 0;
    background: #fff;
    color: #526178;
    text-decoration: none;
}

.email-icon-btn:hover,
.email-mobile-back:hover {
    border-color: #b9c9de;
    background: #f4f7fb;
    color: #1767e8;
}

.email-icon-btn.is-danger:hover {
    border-color: #f0b6bc;
    background: #fff2f3;
    color: #bd2936;
}

.email-message-list {
    overflow-y: auto;
    max-height: 690px;
}

.email-message-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    min-height: 80px;
    border-bottom: 1px solid #edf1f6;
    padding: .75rem .9rem;
    color: #26364d;
    text-decoration: none;
}

.email-message-row:hover {
    background: #f7faff;
}

.email-message-row.is-selected {
    background: #eaf2ff;
    box-shadow: inset 3px 0 #1767e8;
}

.email-message-row.is-unread {
    background-color: #f2f7ff;
}

.email-sender-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #dce8f7;
    color: #174d8c;
    font-size: .8rem;
    font-weight: 850;
}

.email-message-copy {
    display: grid;
    min-width: 0;
    gap: .15rem;
}

.email-message-from,
.email-message-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-message-from {
    color: #4b5c73;
    font-size: .82rem;
}

.email-message-copy strong {
    color: #122039;
    font-size: .84rem;
    font-weight: 650;
}

.email-message-row.is-unread .email-message-from,
.email-message-row.is-unread .email-message-copy strong {
    color: #07162e;
    font-weight: 850;
}

.email-message-meta {
    display: grid;
    justify-items: end;
    gap: .2rem;
    color: #78869a;
    font-size: .71rem;
}

.email-message-meta small {
    font-size: .67rem;
}

.email-list-empty,
.email-reading-pane.is-empty {
    display: grid;
    min-height: 390px;
    place-items: center;
    align-content: center;
    gap: .45rem;
    padding: 2rem;
    color: #78869a;
    text-align: center;
}

.email-list-empty svg,
.email-reading-pane.is-empty > svg {
    width: 34px;
    height: 34px;
    margin-bottom: .35rem;
    color: #9aa8ba;
}

.email-list-empty strong,
.email-reading-pane.is-empty strong {
    color: #35445a;
}

.email-list-empty p,
.email-reading-pane.is-empty p {
    margin: 0;
    font-size: .85rem;
}

.email-reading-pane {
    overflow-y: auto;
    max-height: 790px;
    background: #fff;
}

.email-reading-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 62px;
    border-bottom: 1px solid #e3e9f1;
    padding: .7rem 1.1rem;
}

.email-mobile-back {
    display: none;
    margin-right: auto;
}

.email-message-detail {
    padding: clamp(1.35rem, 3vw, 2.4rem);
}

.email-message-detail h2 {
    margin: 0 0 1.1rem;
    overflow-wrap: anywhere;
    color: #0b1730;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.email-message-addresses {
    display: grid;
    gap: .35rem;
    border-bottom: 1px solid #e6ebf2;
    padding-bottom: 1rem;
    color: #5b6b80;
    font-size: .84rem;
}

.email-message-addresses > div {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: .45rem;
}

.email-message-addresses span {
    overflow-wrap: anywhere;
}

.email-message-addresses time {
    margin-top: .2rem;
    color: #8793a4;
}

.email-message-body {
    padding: 1.5rem 0;
    color: #26364b;
    font-family: Arial, sans-serif;
    font-size: .94rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.email-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-top: 1rem;
}

.email-attachment-list > span {
    border: 1px solid #dce4ee;
    border-radius: 6px;
    padding: .35rem .55rem;
    background: #f8fafc;
    color: #35465d;
    font-size: .78rem;
}

.email-attachment-list small {
    color: #8491a3;
}

.email-compose-modal .modal-header,
.email-compose-modal .modal-footer {
    padding: 1rem 1.25rem;
}

.email-compose-modal .modal-title {
    margin-top: .1rem;
    font-size: 1.2rem;
}

.email-compose-fields {
    display: grid;
    gap: .85rem;
    padding: 1.15rem 1.25rem;
}

.email-compose-fields label {
    display: block;
    margin-bottom: .3rem;
    color: #4f6076;
    font-size: .8rem;
    font-weight: 750;
}

.email-editor-shell {
    overflow: hidden;
    border: 1px solid #cfd8e4;
    border-radius: 7px;
    background: #fff;
}

.email-editor-shell:focus-within {
    border-color: #73a9f6;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}

.email-editor-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem;
    padding: .4rem;
    border-bottom: 1px solid #dbe3ee;
    background: #f6f8fb;
}

.email-editor-toolbar button {
    min-width: 2rem;
    height: 2rem;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 0 .5rem;
    background: transparent;
    color: #34455d;
    font-size: .82rem;
}

.email-editor-toolbar button:hover,
.email-editor-toolbar button:focus-visible {
    border-color: #c7d4e4;
    background: #fff;
}

.email-editor-toolbar > span {
    width: 1px;
    height: 1.35rem;
    margin: 0 .2rem;
    background: #d4dce7;
}

.email-rich-editor {
    min-height: 220px;
    max-height: 45vh;
    overflow-y: auto;
    padding: .8rem .9rem;
    color: #172033;
    line-height: 1.5;
    outline: 0;
}

.email-rich-editor:empty::before {
    color: #8995a6;
    content: attr(data-placeholder);
    pointer-events: none;
}

.email-rich-editor.is-invalid {
    box-shadow: inset 0 0 0 1px #dc3545;
}

.email-compose-attachment-preview {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .5rem;
}

.email-compose-attachment-preview span {
    border: 1px solid #d9e2ed;
    border-radius: 999px;
    padding: .3rem .55rem;
    background: #f6f8fb;
    color: #475970;
    font-size: .76rem;
}

.email-admin-settings {
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
}

.email-admin-settings > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    list-style: none;
}

.email-admin-settings > summary::-webkit-details-marker {
    display: none;
}

.email-admin-settings > summary > span:first-child {
    display: grid;
    gap: .15rem;
}

.email-admin-settings > summary strong {
    color: #18263c;
}

.email-admin-settings > summary small {
    color: #758398;
}

.email-admin-settings > summary > span:last-child {
    color: #63738a;
    font-size: 1.35rem;
}

.email-admin-settings[open] > summary {
    border-bottom: 1px solid #e2e8f0;
}

.email-admin-settings[open] > summary > span:last-child {
    transform: rotate(45deg);
}

.email-management-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
}

.email-account-panel {
    display: grid;
    align-content: start;
    gap: 1rem;
    min-width: 0;
    padding: 1.25rem;
}

.email-account-panel + .email-account-panel {
    border-left: 1px solid #e2e8f0;
}

.email-account-form {
    display: grid;
    gap: 1rem;
}

.email-address-builder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: .65rem;
}

.email-address-builder > span {
    padding-bottom: .55rem;
    color: #64748b;
    font-weight: 800;
}

.email-empty-list {
    display: grid;
    gap: .25rem;
    border: 1px dashed #d7e0ec;
    border-radius: 8px;
    padding: 1.2rem;
    background: #f8fafd;
    color: #64748b;
}

.email-empty-list strong {
    color: #0b1730;
}

.email-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .25rem .55rem;
    background: #e2f5e9;
    color: #0a6b3d;
    font-size: .78rem;
    font-weight: 800;
}

.email-credential-ready {
    display: grid;
    gap: .35rem;
    min-width: 210px;
}

.email-credential-ready > span {
    color: #0a6b3d;
    font-size: .78rem;
    font-weight: 800;
}

.email-credential-update > summary {
    width: fit-content;
    color: #1763d8;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
    list-style: none;
}

.email-credential-update > summary::-webkit-details-marker {
    display: none;
}

.email-credential-form {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 270px;
}

.email-credential-update .email-credential-form {
    margin-top: .45rem;
}

.email-credential-form .form-control {
    min-width: 180px;
}

.email-credential-form .dashboard-primary-btn,
.email-credential-form .dashboard-secondary-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .email-client-shell {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .email-reading-pane {
        display: none;
    }

    .email-client-shell.has-reading-pane .email-message-pane {
        display: none;
    }

    .email-client-shell.has-reading-pane .email-reading-pane {
        display: block;
    }

    .email-client-shell.has-reading-pane .email-mobile-back {
        display: inline-grid;
    }

    .email-client-shell.has-reading-pane .email-reading-head {
        justify-content: space-between;
    }
}

@media (max-width: 991.98px) {
    .email-signin-layout,
    .email-management-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .email-signin-aside,
    .email-account-panel + .email-account-panel {
        border-top: 1px solid #dbe3ee;
        border-left: 0;
    }

    .email-signin-form {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .email-signin-form .dashboard-primary-btn {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 767.98px) {
    .email-account-actions {
        align-items: flex-end;
        flex-direction: column;
    }

    .email-account-switcher {
        align-items: flex-start;
        flex-direction: column;
        width: 100%;
    }

    .email-account-switcher .form-select {
        min-width: 0;
        width: 100%;
    }

    .email-signin-main,
    .email-signin-aside {
        padding: 1.5rem;
    }

    .email-signin-form,
    .email-address-builder {
        grid-template-columns: minmax(0, 1fr);
    }

    .email-address-builder > span {
        display: none;
    }

    .email-client-shell,
    .email-client-shell.has-reading-pane {
        grid-template-columns: minmax(0, 1fr);
        min-height: 620px;
    }

    .email-folder-pane {
        display: block;
        border-right: 0;
        border-bottom: 1px solid #dfe6ef;
        padding: .75rem;
    }

    .email-compose-btn {
        width: auto;
        min-width: 130px;
    }

    .email-folder-list {
        display: flex;
        overflow-x: auto;
        gap: .35rem;
        margin-top: .7rem;
        padding-bottom: .15rem;
    }

    .email-folder-link {
        grid-template-columns: 18px auto auto;
        flex: 0 0 auto;
        min-height: 36px;
        white-space: nowrap;
    }

    .email-folder-account {
        display: none;
    }

    .email-client-shell.has-reading-pane .email-folder-pane,
    .email-client-shell.has-reading-pane .email-message-pane {
        display: none;
    }

    .email-client-shell.has-reading-pane .email-reading-pane {
        display: block;
        max-height: none;
    }

    .email-message-pane {
        border-right: 0;
    }

    .email-message-list {
        max-height: none;
    }

    .email-message-row {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .email-message-meta {
        display: none;
    }

    .email-reading-head {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
    }

    .email-message-detail {
        padding: 1.25rem;
    }

    .email-admin-settings > summary small {
        display: none;
    }

    .email-credential-form {
        align-items: stretch;
        flex-direction: column;
        min-width: 230px;
    }
}
