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

/* ===== Public platform FAQ ===== */
.platform-faq-page {
    background: #f7f9fc;
    color: #13203a;
}

.platform-faq-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 82px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: #081a36;
    color: #fff;
}

.platform-faq-hero::after {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(38vw, 600px);
    border-left: 1px solid rgba(255, 255, 255, .09);
    background: #0d2348;
    content: '';
    pointer-events: none;
}

.platform-faq-hero .container {
    z-index: 1;
}

.platform-faq-kicker {
    color: #58a6ff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.platform-faq-hero h1 {
    max-width: 830px;
    margin: 0;
    font-size: 4.25rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.02;
}

.platform-faq-hero p {
    max-width: 730px;
    margin: 24px 0 0;
    color: #c9d7eb;
    font-size: 1.15rem;
    line-height: 1.7;
}

.platform-faq-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.platform-faq-content {
    padding: 76px 0 88px;
}

.platform-faq-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
    align-items: end;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #d9e2ee;
}

.platform-faq-search-wrap label {
    display: block;
    margin-bottom: 8px;
    color: #34435e;
    font-size: .82rem;
    font-weight: 800;
}

.platform-faq-search-control {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid #cbd7e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(29, 54, 93, .07);
}

.platform-faq-search-control:focus-within {
    border-color: #155eef;
    box-shadow: 0 0 0 4px rgba(21, 94, 239, .12);
}

.platform-faq-search-control svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #66758f;
}

.platform-faq-search-control input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #13203a;
    font: inherit;
}

.platform-faq-search-control input::placeholder {
    color: #7d8aa0;
}

.platform-faq-result-count {
    min-height: 21px;
    margin-top: 8px;
    color: #65738a;
    font-size: .82rem;
    font-weight: 700;
}

.platform-faq-categories {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    margin: 26px 0 58px;
    padding: 4px;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    background: #eef3f8;
    scrollbar-width: thin;
}

.platform-faq-categories button {
    min-height: 42px;
    flex: 0 0 auto;
    padding: 8px 15px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #52627c;
    font-size: .84rem;
    font-weight: 800;
    white-space: nowrap;
}

.platform-faq-categories button:hover {
    color: #13203a;
}

.platform-faq-categories button:focus-visible {
    outline: 3px solid rgba(21, 94, 239, .25);
    outline-offset: 1px;
}

.platform-faq-categories button.is-active {
    background: #fff;
    color: #0f58d6;
    box-shadow: 0 2px 9px rgba(29, 54, 93, .08);
}

.platform-faq-group {
    display: grid;
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
    gap: 54px;
    padding: 0 0 64px;
}

.platform-faq-group + .platform-faq-group {
    padding-top: 64px;
    border-top: 1px solid #d9e2ee;
}

.platform-faq-group-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.platform-faq-group-heading > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid #bad0f6;
    border-radius: 50%;
    background: #eaf2ff;
    color: #0d58dd;
    font-size: .72rem;
    font-weight: 900;
}

.platform-faq-group-heading h3 {
    margin: 2px 0 4px;
    font-size: 1.12rem;
    font-weight: 850;
    letter-spacing: 0;
}

.platform-faq-group-heading p {
    margin: 0;
    color: #748197;
    font-size: .82rem;
}

.platform-faq-list {
    border-top: 1px solid #cfd9e6;
}

.platform-faq-item {
    border-bottom: 1px solid #cfd9e6;
}

.platform-faq-item summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: center;
    gap: 20px;
    min-height: 74px;
    padding: 18px 4px;
    color: #17243d;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    list-style: none;
}

.platform-faq-item summary::-webkit-details-marker {
    display: none;
}

.platform-faq-item summary:hover {
    color: #155eef;
}

.platform-faq-item summary:focus-visible {
    outline: 3px solid rgba(21, 94, 239, .2);
    outline-offset: 4px;
}

.platform-faq-toggle {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    border: 1px solid #c5d2e2;
    border-radius: 50%;
    background: #fff;
}

.platform-faq-toggle::before,
.platform-faq-toggle::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    background: #155eef;
    content: '';
    transform: translate(-50%, -50%);
    transition: transform .18s ease;
}

.platform-faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.platform-faq-item[open] .platform-faq-toggle::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.platform-faq-answer {
    max-width: 810px;
    padding: 0 56px 23px 4px;
    color: #52627a;
    line-height: 1.75;
}

.platform-faq-answer p {
    margin: 0;
}

.platform-faq-empty {
    padding: 54px 24px;
    border: 1px solid #d3deeb;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.platform-faq-empty h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 850;
}

.platform-faq-empty p {
    margin: 0 0 18px;
    color: #65738a;
}

.platform-faq-next {
    padding: 0 0 88px;
}

.platform-faq-next-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 44px 48px;
    border: 1px solid #cad7e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(25, 45, 78, .07);
}

.platform-faq-next h2 {
    margin: 0 0 9px;
    font-size: 2.2rem;
    font-weight: 850;
    letter-spacing: 0;
}

.platform-faq-next p {
    max-width: 720px;
    margin: 0;
    color: #65738a;
}

.platform-faq-next-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

@media (max-width: 991.98px) {
    .platform-faq-hero {
        padding: 68px 0;
    }

    .platform-faq-hero-actions {
        justify-content: flex-start;
    }

    .platform-faq-intro {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .platform-faq-group {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .platform-faq-next-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .platform-faq-hero {
        padding: 52px 0;
    }

    .platform-faq-hero h1 {
        font-size: 2.55rem;
    }

    .platform-faq-next h2 {
        font-size: 1.65rem;
    }

    .platform-faq-hero p {
        font-size: 1rem;
    }

    .platform-faq-hero-actions,
    .platform-faq-next-actions {
        width: 100%;
        flex-direction: column;
    }

    .platform-faq-content {
        padding: 54px 0 64px;
    }

    .platform-faq-categories {
        margin-bottom: 42px;
    }

    .platform-faq-group,
    .platform-faq-group + .platform-faq-group {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .platform-faq-group:first-child {
        padding-top: 0;
    }

    .platform-faq-item summary {
        min-height: 68px;
        gap: 12px;
        font-size: .94rem;
    }

    .platform-faq-answer {
        padding-right: 4px;
    }

    .platform-faq-next {
        padding-bottom: 64px;
    }

    .platform-faq-next-inner {
        padding: 30px 24px;
    }
}

/* Initial website setup wizard */
.website-setup-page {
    --setup-ink: #0b1837;
    --setup-muted: #60708c;
    --setup-line: #dbe4f0;
    --setup-soft: #f4f7fb;
    --setup-blue: #0f66f2;
    --setup-blue-dark: #0a4fc1;
    --setup-green: #0c996f;
    max-width: 1500px;
    margin: 0 auto;
    color: var(--setup-ink);
}

.website-setup-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 24px;
}

.website-setup-back {
    display: inline-flex;
    margin-bottom: 16px;
    color: #52627d;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}

.website-setup-back:hover {
    color: var(--setup-blue);
}

.website-setup-kicker,
.website-setup-step-heading > span {
    display: block;
    margin-bottom: 7px;
    color: var(--setup-blue);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.website-setup-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 3.2vw, 3.05rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.website-setup-hero p {
    max-width: 740px;
    margin: 12px 0 0;
    color: var(--setup-muted);
    font-size: 1.03rem;
}

.website-setup-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 4px;
    white-space: nowrap;
}

.website-setup-hero-actions a {
    color: var(--setup-blue);
    font-weight: 800;
    text-decoration: none;
}

.website-setup-time {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #d7e0ec;
    border-radius: 999px;
    background: #fff;
    color: #5f6f88;
    font-size: .8rem;
    font-weight: 700;
}

.website-setup-success {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 18px 20px;
    border: 1px solid #a9e4d1;
    border-radius: 16px;
    background: #effcf7;
}

.website-setup-success-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--setup-green);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
}

.website-setup-success strong {
    display: block;
    font-size: 1rem;
}

.website-setup-success p {
    margin: 3px 0 0;
    color: #517064;
    font-size: .88rem;
}

.website-setup-success-actions {
    display: flex;
    gap: 9px;
}

.website-setup-progress {
    margin-bottom: 20px;
    padding: 8px;
    border: 1px solid var(--setup-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(22, 41, 75, .05);
}

.website-setup-progress ol {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.website-setup-progress li {
    min-width: 0;
}

.website-setup-progress button {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #73819a;
    text-align: left;
    transition: background-color .18s ease, color .18s ease;
}

.website-setup-progress button:hover {
    background: var(--setup-soft);
    color: var(--setup-ink);
}

.website-setup-progress button > span {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    place-items: center;
    border: 1px solid #ccd7e6;
    border-radius: 50%;
    background: #fff;
    font-size: .76rem;
    font-weight: 800;
}

.website-setup-progress button b {
    min-width: 0;
    font-size: .82rem;
    line-height: 1.15;
}

.website-setup-progress button small {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    font-size: .68rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-setup-progress .is-active button {
    background: #edf4ff;
    color: var(--setup-blue-dark);
}

.website-setup-progress .is-active button > span {
    border-color: var(--setup-blue);
    background: var(--setup-blue);
    color: #fff;
}

.website-setup-progress .is-complete button > span {
    border-color: #9ddcca;
    background: #e8faf4;
    color: #087758;
}

.website-setup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: start;
    gap: 20px;
}

.website-setup-main,
.website-setup-preview-panel {
    border: 1px solid var(--setup-line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 15px 42px rgba(16, 34, 66, .07);
}

.website-setup-main {
    overflow: hidden;
}

.website-setup-step {
    min-height: 590px;
    padding: clamp(24px, 3vw, 42px);
}

.website-setup-step[hidden] {
    display: none !important;
}

.website-setup-step-heading {
    max-width: 740px;
    margin-bottom: 30px;
}

.website-setup-step-heading h2 {
    margin: 0;
    font-size: clamp(1.65rem, 2.4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.website-setup-step-heading p {
    margin: 9px 0 0;
    color: var(--setup-muted);
    font-size: .98rem;
    line-height: 1.55;
}

.website-setup-step-heading h2:focus {
    outline: 0;
}

.website-setup-brand-grid {
    display: grid;
    grid-template-columns: minmax(240px, .72fr) minmax(360px, 1.28fr);
    align-items: start;
    gap: 28px;
}

.website-setup-field-label {
    display: block;
    margin-bottom: 8px;
    color: #283754;
    font-size: .82rem;
    font-weight: 800;
}

.website-setup-logo-upload {
    display: flex;
    min-height: 285px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1.5px dashed #b9c7da;
    border-radius: 16px;
    background: #f8fafc;
    text-align: center;
    transition: border-color .18s ease, background-color .18s ease;
}

.website-setup-logo-upload:hover {
    border-color: var(--setup-blue);
    background: #f2f7ff;
}

.website-setup-logo-preview {
    display: grid;
    width: 150px;
    height: 94px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
}

.website-setup-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.website-setup-logo-preview b {
    color: var(--setup-blue);
    font-size: 1.7rem;
    letter-spacing: -.05em;
}

.website-setup-logo-upload strong,
.website-setup-logo-upload small {
    display: block;
}

.website-setup-logo-upload strong {
    color: var(--setup-ink);
}

.website-setup-logo-upload small {
    max-width: 250px;
    margin-top: 5px;
    color: var(--setup-muted);
    font-size: .76rem;
    line-height: 1.45;
}

.website-setup-upload-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    padding: 8px 15px;
    border: 1px solid #c8d4e4;
    border-radius: 9px;
    background: #fff;
    color: #263650;
    font-size: .78rem;
    font-weight: 800;
}

.website-setup-fields {
    display: grid;
    gap: 20px;
}

.website-setup-fields label {
    display: block;
}

.website-setup-fields .form-control {
    min-height: 49px;
    border-color: #cfd9e7;
    border-radius: 10px;
    box-shadow: none;
}

.website-setup-fields textarea.form-control {
    min-height: 100px;
}

.website-setup-fields .form-control:focus {
    border-color: var(--setup-blue);
    box-shadow: 0 0 0 3px rgba(15, 102, 242, .12);
}

.website-setup-large-input {
    min-height: 58px !important;
    font-size: 1.15rem;
    font-weight: 700;
}

.website-setup-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.website-setup-help {
    display: block;
    margin-top: 6px;
    color: #71809a;
    font-size: .75rem;
}

.website-setup-template-fieldset,
.website-setup-choice-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.website-setup-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.website-setup-template-card {
    min-width: 0;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #d6dfeb;
    border-radius: 13px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.website-setup-template-card:hover {
    border-color: #93b9f5;
    box-shadow: 0 10px 24px rgba(25, 64, 125, .1);
    transform: translateY(-2px);
}

.website-setup-template-card.is-selected {
    border-color: var(--setup-blue);
    box-shadow: 0 0 0 2px rgba(15, 102, 242, .12);
}

.website-setup-template-card:focus-within {
    outline: 3px solid rgba(15, 102, 242, .22);
    outline-offset: 2px;
}

.website-setup-template-image {
    position: relative;
    display: grid;
    height: 118px;
    place-items: center;
    overflow: hidden;
    background: #e9eef5;
}

.website-setup-template-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.website-setup-template-image > b {
    color: #6d7c92;
    font-size: 1.5rem;
}

.website-setup-template-image i {
    position: absolute;
    top: 9px;
    right: 9px;
    display: none;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--setup-blue);
    color: #fff;
    font-size: .7rem;
    font-style: normal;
    font-weight: 900;
    box-shadow: 0 3px 8px rgba(3, 24, 58, .25);
}

.website-setup-template-card.is-selected .website-setup-template-image i {
    display: grid;
}

.website-setup-template-info {
    display: block;
    min-height: 112px;
    padding: 13px;
}

.website-setup-template-info strong,
.website-setup-template-info small {
    display: block;
}

.website-setup-template-info strong {
    margin-bottom: 5px;
    font-size: .9rem;
}

.website-setup-template-info small {
    display: -webkit-box;
    overflow: hidden;
    color: #6b7890;
    font-size: .7rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.website-setup-style-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 19px 20px;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #f8fafc;
}

.website-setup-style-card h3,
.website-setup-mobile-actions h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.website-setup-style-card p,
.website-setup-mobile-actions p {
    margin: 4px 0 0;
    color: var(--setup-muted);
    font-size: .78rem;
}

.website-setup-color-row {
    display: flex;
    gap: 10px;
}

.website-setup-color-control {
    display: flex;
    min-width: 128px;
    cursor: pointer;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid #d2dcea;
    border-radius: 10px;
    background: #fff;
}

.website-setup-color-control input {
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.website-setup-color-control b,
.website-setup-color-control small {
    display: block;
}

.website-setup-color-control b {
    font-size: .76rem;
}

.website-setup-color-control small {
    margin-top: 2px;
    color: #7a879c;
    font-size: .63rem;
}

.website-setup-choice-fieldset {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.website-setup-choice-fieldset legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    font-size: .86rem;
    font-weight: 800;
}

.website-setup-choice-card {
    position: relative;
    display: grid;
    min-height: 112px;
    cursor: pointer;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px solid #d3ddea;
    border-radius: 13px;
    background: #fff;
}

.website-setup-choice-card:has(input:checked) {
    border-color: var(--setup-blue);
    background: #f4f8ff;
    box-shadow: 0 0 0 2px rgba(15, 102, 242, .1);
}

.website-setup-choice-card input {
    position: absolute;
    top: 12px;
    right: 12px;
}

.website-setup-choice-icon {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 10px;
    background: #eaf2ff;
    color: var(--setup-blue);
    font-size: 1rem;
    font-weight: 900;
}

.website-setup-choice-card strong,
.website-setup-choice-card small {
    display: block;
}

.website-setup-choice-card strong {
    font-size: .86rem;
}

.website-setup-choice-card small {
    margin-top: 5px;
    color: var(--setup-muted);
    font-size: .72rem;
    line-height: 1.4;
}

.website-setup-hero-upload {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 15px;
    margin-top: 2px;
    padding: 13px;
    border: 1px solid #d7e0ec;
    border-radius: 13px;
    background: #f8fafc;
}

.website-setup-hero-library {
    grid-column: 1 / -1;
    min-width: 0;
    margin-top: 2px;
    padding: 15px;
    border: 1px solid #d7e0ec;
    border-radius: 13px;
    background: #f8fafc;
}

.website-setup-hero-library[hidden] {
    display: none !important;
}

.website-setup-hero-library > p {
    margin: 0 0 12px;
    color: var(--setup-ink);
    font-size: .78rem;
    font-weight: 800;
}

.website-setup-hero-library .hero-background-picker {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.website-setup-hero-library .hero-background-option {
    border-radius: 11px;
}

.website-setup-hero-upload[hidden] {
    display: none !important;
}

.website-setup-hero-upload > img,
.website-setup-hero-upload > div {
    display: grid;
    width: 145px;
    height: 76px;
    flex: 0 0 145px;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    background: #dfe7f2;
    object-fit: cover;
}

.website-setup-hero-upload > div span {
    color: #77869b;
    font-size: .72rem;
}

.website-setup-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.website-setup-feature-card {
    position: relative;
    display: grid;
    min-height: 132px;
    cursor: pointer;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 13px;
    padding: 19px;
    border: 1px solid #d5dfeb;
    border-radius: 14px;
    background: #fff;
}

.website-setup-feature-card:has(input[type="checkbox"]:checked) {
    border-color: #9ac0fa;
    background: #f6f9ff;
}

.website-setup-feature-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.website-setup-feature-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    background: #eaf2ff;
    color: var(--setup-blue);
    font-size: 1.1rem;
}

.website-setup-feature-card strong,
.website-setup-feature-card small {
    display: block;
}

.website-setup-feature-card strong {
    font-size: .88rem;
}

.website-setup-feature-card small {
    margin-top: 6px;
    color: var(--setup-muted);
    font-size: .73rem;
    line-height: 1.45;
}

.website-setup-feature-card > i {
    position: relative;
    display: block;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #c8d3e1;
    transition: background-color .18s ease;
}

.website-setup-feature-card > i::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .24);
    content: '';
    transition: transform .18s ease;
}

.website-setup-feature-card:has(input[type="checkbox"]:checked) > i {
    background: var(--setup-blue);
}

.website-setup-feature-card:has(input[type="checkbox"]:checked) > i::after {
    transform: translateX(16px);
}

.website-setup-mobile-actions {
    display: grid;
    grid-template-columns: minmax(210px, .7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #dce4ef;
    border-radius: 14px;
    background: #f8fafc;
}

.website-setup-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.website-setup-chip-grid label {
    cursor: pointer;
}

.website-setup-chip-grid input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.website-setup-chip-grid span {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    padding: 8px 13px;
    border: 1px solid #cdd8e6;
    border-radius: 999px;
    background: #fff;
    color: #4c5d78;
    font-size: .74rem;
    font-weight: 750;
}

.website-setup-chip-grid input:checked + span {
    border-color: var(--setup-blue);
    background: #eaf2ff;
    color: #0a4db7;
}

.website-setup-review-list {
    display: grid;
    gap: 10px;
}

.website-setup-review-list article {
    display: grid;
    min-height: 73px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 15px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
}

.website-setup-review-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 10px;
    background: #edf4ff;
    color: var(--setup-blue);
    font-size: .85rem;
    font-weight: 900;
}

.website-setup-review-list small,
.website-setup-review-list strong {
    display: block;
}

.website-setup-review-list small {
    margin-bottom: 3px;
    color: #748198;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.website-setup-review-list strong {
    overflow: hidden;
    font-size: .87rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-setup-review-list button {
    min-width: 48px;
    min-height: 40px;
    padding: 7px;
    border: 0;
    background: transparent;
    color: var(--setup-blue);
    font-size: .75rem;
    font-weight: 800;
}

.website-setup-location-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    margin-top: 16px;
    padding: 15px;
    border: 1px solid #f0d391;
    border-radius: 13px;
    background: #fffaf0;
}

.website-setup-location-status.is-ready {
    border-color: #b2e2d4;
    background: #f1fbf7;
}

.website-setup-location-status > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #df9e18;
    color: #fff;
    font-weight: 900;
}

.website-setup-location-status.is-ready > span {
    background: var(--setup-green);
}

.website-setup-location-status strong {
    display: block;
    font-size: .83rem;
}

.website-setup-location-status p {
    margin: 3px 0 0;
    color: #68788f;
    font-size: .73rem;
}

.website-setup-location-status a {
    color: var(--setup-blue);
    font-size: .75rem;
    font-weight: 800;
    text-decoration: none;
}

.website-setup-confirm {
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: #33425e;
    font-size: .8rem;
    font-weight: 650;
}

.website-setup-confirm input {
    width: 19px;
    height: 19px;
    accent-color: var(--setup-blue);
}

.website-setup-step-actions {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
    align-items: center;
    gap: 12px;
    padding: 18px clamp(24px, 3vw, 42px);
    border-top: 1px solid var(--setup-line);
    background: #fbfcfe;
}

.website-setup-step-actions [data-wizard-previous] {
    justify-self: start;
}

.website-setup-step-actions [data-wizard-next],
.website-setup-step-actions [data-wizard-submit] {
    justify-self: end;
}

.website-setup-step-actions > span {
    color: #7b899e;
    font-size: .72rem;
    font-weight: 750;
}

.website-setup-preview-panel {
    position: sticky;
    top: 20px;
    overflow: hidden;
}

.website-setup-preview-heading {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--setup-line);
}

.website-setup-preview-heading span,
.website-setup-preview-heading strong {
    display: block;
}

.website-setup-preview-heading span {
    margin-bottom: 3px;
    color: #748198;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.website-setup-preview-heading strong {
    font-size: .9rem;
}

.website-setup-preview-heading button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #d3dce8;
    border-radius: 9px;
    background: #fff;
    color: #40516e;
    font-size: 1.1rem;
}

.website-setup-browser {
    margin: 17px;
    overflow: hidden;
    border: 1px solid #cbd6e4;
    border-radius: 11px;
    background: #e9eef5;
    box-shadow: 0 12px 26px rgba(20, 41, 77, .12);
}

.website-setup-browser-bar {
    display: flex;
    height: 29px;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    background: #f8fafc;
}

.website-setup-browser-bar i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #aab6c7;
}

.website-setup-browser-bar span {
    overflow: hidden;
    margin-left: 5px;
    color: #8a96a8;
    font-size: .54rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-setup-preview-viewport {
    position: relative;
    width: 100%;
    min-height: 210px;
    overflow: hidden;
    background: #e9eef5;
}

.website-setup-preview-viewport iframe {
    display: block;
    border: 0;
    background: #fff;
    transform: scale(.275);
    transform-origin: top left;
}

.website-setup-preview-tip {
    display: flex;
    gap: 10px;
    margin: 0 17px 17px;
    padding: 13px;
    border-radius: 10px;
    background: #f1f6fd;
    color: #52637d;
}

.website-setup-preview-tip > span {
    color: var(--setup-blue);
}

.website-setup-preview-tip p {
    margin: 0;
    font-size: .7rem;
    line-height: 1.45;
}

.website-setup-preview-tip strong {
    display: block;
    margin-bottom: 2px;
    color: #263650;
}

.website-setup-page button:focus-visible,
.website-setup-page a:focus-visible,
.website-setup-page label:has(input:focus-visible),
.website-setup-page input:focus-visible,
.website-setup-page textarea:focus-visible {
    outline: 3px solid rgba(15, 102, 242, .27);
    outline-offset: 2px;
}

@media (max-width: 1199.98px) {
    .website-setup-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

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

    .website-setup-progress button small {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .website-setup-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .website-setup-preview-panel {
        position: static;
        grid-row: 2;
    }

    .website-setup-preview-viewport {
        min-height: 0;
    }

    .website-setup-progress {
        overflow-x: auto;
    }

    .website-setup-progress ol {
        min-width: 690px;
    }

    .website-setup-step {
        min-height: 0;
    }
}

@media (max-width: 767.98px) {
    .website-setup-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .website-setup-hero-actions {
        width: 100%;
        justify-content: space-between;
    }

    .website-setup-success {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .website-setup-success-actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
    }

    .website-setup-brand-grid,
    .website-setup-field-row,
    .website-setup-choice-fieldset,
    .website-setup-feature-grid,
    .website-setup-mobile-actions,
    .website-setup-style-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .website-setup-template-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .website-setup-template-card {
        display: grid;
        grid-template-columns: 142px minmax(0, 1fr);
    }

    .website-setup-template-image {
        height: 100%;
        min-height: 128px;
    }

    .website-setup-template-info {
        min-height: 128px;
    }

    .website-setup-color-row {
        width: 100%;
    }

    .website-setup-color-control {
        flex: 1;
    }

    .website-setup-step-actions {
        position: sticky;
        z-index: 10;
        bottom: 0;
    }
}

.ops-sensitive-row { background: #fffafb; }
.ops-audit-details { min-width: 120px; }
.ops-audit-details summary { color: var(--ops-blue); cursor: pointer; font-weight: 700; }
.ops-audit-diff { position: absolute; z-index: 20; right: 2rem; display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); width: min(720px, calc(100vw - 3rem)); gap: .75rem; padding: .9rem; border: 1px solid #cbd8e8; border-radius: 12px; background: #fff; box-shadow: 0 18px 50px rgba(13, 38, 72, .18); }
.ops-audit-diff > div { min-width: 0; }
.ops-audit-diff strong { color: var(--ops-navy); font-size: .7rem; text-transform: uppercase; }
.ops-audit-diff pre { max-height: 280px; margin: .35rem 0 0; padding: .65rem; overflow: auto; border-radius: 8px; background: #f4f7fb; color: #263950; font-size: .68rem; white-space: pre-wrap; overflow-wrap: anywhere; }

.ops-announcement-form { padding-bottom: 1.2rem; }
.ops-announcement-form > form { padding: 0 1.15rem; }
.ops-target-picker { margin: 0 0 1rem; padding: .75rem; border: 1px solid var(--ops-border); border-radius: 10px; }
.ops-target-picker legend { float: none; width: auto; margin: 0 0 .45rem; padding: 0 .25rem; color: var(--ops-muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.ops-target-picker > label, .ops-target-scroll label { display: flex; align-items: flex-start; gap: .45rem; padding: .3rem; color: #34475f; font-size: .78rem; }
.ops-target-scroll { max-height: 210px; overflow: auto; }
.ops-target-scroll label span { display: flex; flex: 1; justify-content: space-between; gap: .75rem; }
.ops-target-scroll small { color: var(--ops-muted); }
.ops-announcement-list { display: grid; gap: .8rem; padding: 0 1rem 1rem; }
.ops-announcement-card { padding: 1rem; border: 1px solid var(--ops-border); border-left: 4px solid var(--ops-blue); border-radius: 12px; background: #fff; }
.ops-announcement-card.is-healthy { border-left-color: var(--ops-green); }
.ops-announcement-card.is-warning { border-left-color: var(--ops-amber); }
.ops-announcement-card.is-critical { border-left-color: var(--ops-red); }
.ops-announcement-card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.ops-announcement-card-head > div { display: flex; gap: .35rem; }
.ops-announcement-card-head small { color: var(--ops-muted); }
.ops-announcement-card h3 { margin: .75rem 0 .25rem; color: var(--ops-navy); font-size: 1rem; }
.ops-announcement-card > p { color: #43546a; font-size: .8rem; }

.platform-announcement { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-width: 1px 1px 1px 4px; box-shadow: 0 8px 24px rgba(16, 43, 76, .06); }
.platform-announcement-label { margin-bottom: .15rem; font-size: .65rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.platform-announcement form { margin: .15rem 0 0; }
.ops-message-cell { min-width: 260px; max-width: 520px; white-space: normal; }

@media (max-width: 767.98px) {
    .ops-audit-diff { position: fixed; inset: 5rem 1rem auto; grid-template-columns: 1fr; width: auto; max-height: calc(100vh - 7rem); overflow: auto; }
}

.ops-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ops-feature-card { padding: 1rem; border-top: 3px solid var(--ops-green); }
.ops-feature-card.is-disabled { border-top-color: var(--ops-red); background: #fffafb; }
.ops-feature-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ops-feature-card-head h2 { margin: .55rem 0 .1rem; color: var(--ops-navy); font-size: 1rem; }
.ops-feature-card-head code { color: var(--ops-muted); font-size: .68rem; }
.ops-feature-card > p { min-height: 2.5rem; margin: .75rem 0; color: #4d5f76; font-size: .78rem; }
.ops-feature-dealer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem; padding: .75rem; border-radius: 10px; background: #f5f8fc; }
.ops-feature-dealer > div { display: grid; }
.ops-feature-dealer strong { color: var(--ops-navy); font-size: .78rem; }
.ops-feature-dealer small { color: var(--ops-muted); font-size: .67rem; }
.ops-security-list { display: grid; padding: 0 1rem 1rem; }
.ops-security-list article { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid #edf1f6; }
.ops-security-list article > div { display: grid; min-width: 0; }
.ops-security-list article strong { color: var(--ops-navy); font-size: .78rem; }
.ops-security-list article small { color: var(--ops-muted); font-size: .68rem; overflow-wrap: anywhere; }

@media (max-width: 991.98px) {
    .ops-feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .ops-feature-card-head, .ops-feature-dealer { align-items: stretch; flex-direction: column; }
}

.ops-retention-list { display: grid; padding: 0 1rem 1rem; }
.ops-retention-list article { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(420px, auto); align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid #edf1f6; }
.ops-retention-list article > div { display: grid; }
.ops-retention-list article > div strong { color: var(--ops-navy); font-size: .8rem; }
.ops-retention-list article > div small { color: var(--ops-muted); font-size: .7rem; }
.ops-retention-list form { display: flex; align-items: flex-end; gap: .5rem; }
.ops-retention-list form label { display: grid; gap: .2rem; color: var(--ops-muted); font-size: .62rem; font-weight: 700; }
.ops-retention-list form input { width: 105px; }

@media (max-width: 991.98px) {
    .ops-retention-list article { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .ops-retention-list form { align-items: stretch; flex-direction: column; }
    .ops-retention-list form input { width: 100%; }
}

/* Super Admin contact inbox */
.contact-inbox-filters {
    padding: 1rem;
}

.contact-inbox-list {
    display: flex;
    flex-direction: column;
}

.contact-inbox-row {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) minmax(190px, 260px) auto;
    gap: 1rem;
    align-items: center;
    min-width: 0;
    border-bottom: 1px solid #e7ebf1;
    padding: 1rem;
    transition: background-color .16s ease;
}

.contact-inbox-row:last-child {
    border-bottom: 0;
}

.contact-inbox-row:hover {
    background: #f8fafc;
}

.contact-inbox-row.is-unread {
    background: #f3f8ff;
}

.contact-inbox-row.is-unread:hover {
    background: #edf5ff;
}

.contact-inbox-unread {
    width: 9px;
    height: 9px;
    border: 1px solid #bcc5d2;
    border-radius: 50%;
    background: #ffffff;
}

.contact-inbox-row.is-unread .contact-inbox-unread {
    border-color: #0969f6;
    background: #0969f6;
    box-shadow: 0 0 0 3px rgba(9, 105, 246, .12);
}

.contact-inbox-main,
.contact-inbox-contact {
    min-width: 0;
}

.contact-inbox-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .75rem;
}

.contact-inbox-heading span,
.contact-inbox-contact,
.contact-inbox-preview {
    color: #657187;
}

.contact-inbox-preview {
    display: -webkit-box;
    max-width: 52rem;
    overflow: hidden;
    margin-top: .2rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.contact-inbox-contact > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-detail-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e7ebf1;
    padding: 1rem 1.1rem;
}

.contact-original-message {
    min-height: 130px;
    padding: 1.1rem;
    color: #26334a;
    line-height: 1.65;
}

.contact-detail-list {
    display: grid;
    grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr);
    gap: .7rem 1rem;
}

.contact-detail-list dt {
    color: #657187;
    font-weight: 600;
}

.contact-detail-list dd {
    min-width: 0;
    margin: 0;
}

.contact-reply-history {
    max-height: 560px;
    overflow-y: auto;
}

.contact-reply-item {
    border-bottom: 1px solid #e7ebf1;
    padding: 1rem;
}

.contact-reply-item:last-child {
    border-bottom: 0;
}

.contact-reply-item p {
    overflow-wrap: anywhere;
    color: #344159;
}

.platform-contact-alert-modal .modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 35, 70, .24);
}

.platform-contact-alert-modal .modal-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

@media (max-width: 991.98px) {
    .contact-inbox-row {
        grid-template-columns: 12px minmax(0, 1fr) auto;
    }

    .contact-inbox-contact {
        grid-column: 2;
    }

    .contact-inbox-action {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 575.98px) {
    .contact-inbox-row {
        grid-template-columns: 10px minmax(0, 1fr);
        gap: .75rem;
        align-items: start;
        padding: .9rem .8rem;
    }

    .contact-inbox-contact,
    .contact-inbox-action {
        grid-column: 2;
        grid-row: auto;
    }

    .contact-inbox-action .btn {
        width: 100%;
    }

    .contact-detail-list {
        grid-template-columns: 1fr;
        gap: .2rem;
    }

    .contact-detail-list dd {
        margin-bottom: .65rem;
    }
}

@media (max-width: 479.98px) {
    .website-setup-page {
        margin-inline: -4px;
    }

    .website-setup-hero h1 {
        font-size: 2rem;
    }

    .website-setup-progress ol {
        min-width: 580px;
    }

    .website-setup-progress button {
        min-height: 50px;
    }

    .website-setup-main,
    .website-setup-preview-panel {
        border-radius: 15px;
    }

    .website-setup-step {
        padding: 23px 18px 28px;
    }

    .website-setup-logo-upload {
        min-height: 230px;
    }

    .website-setup-template-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .website-setup-template-info,
    .website-setup-template-image {
        min-height: 118px;
    }

    .website-setup-feature-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .website-setup-feature-card > i {
        position: absolute;
        top: 17px;
        right: 17px;
    }

    .website-setup-review-list article,
    .website-setup-location-status {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .website-setup-review-list button,
    .website-setup-location-status a {
        grid-column: 2;
        justify-self: start;
    }

    .website-setup-step-actions {
        grid-template-columns: 1fr 1fr;
        padding: 14px 18px;
    }

    .website-setup-step-actions > span {
        display: none;
    }

    .website-setup-step-actions [data-wizard-next],
    .website-setup-step-actions [data-wizard-submit] {
        grid-column: 2;
    }

    .website-setup-hero-upload {
        align-items: flex-start;
        flex-direction: column;
    }
}

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;
    }
}

/* ===== Dedicated public service appointment page ===== */

.dealer-service-hero {
    position: relative;
    min-height: clamp(360px, 43vw, 520px);
    overflow: hidden;
    background: #0b1119;
}

.dealer-service-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dealer-service-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 10, 17, .98) 0%, rgba(5, 10, 17, .88) 28%, rgba(5, 10, 17, .3) 58%, rgba(5, 10, 17, .04) 100%);
}

.dealer-service-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: inherit;
    max-width: 680px;
    margin-left: max(0px, calc((100vw - 1320px) / 2));
    padding-top: clamp(3.5rem, 7vw, 6.5rem);
    padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
}

.dealer-service-hero-content > span,
.dealer-service-booking-head > span,
.dealer-service-popular-head > div > span {
    color: var(--dealer-primary, #d7222a);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dealer-service-hero-content h1 {
    max-width: 620px;
    margin: .55rem 0 .8rem;
    font-size: clamp(2.8rem, 6vw, 5.35rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: .95;
    text-transform: uppercase;
}

.dealer-service-hero-content i {
    display: block;
    width: 58px;
    height: 4px;
    margin-bottom: 1.15rem;
    background: var(--dealer-primary, #d7222a);
}

.dealer-service-hero-content p {
    max-width: 450px;
    margin: 0 0 1.35rem;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.55;
}

.dealer-service-benefits {
    border-bottom: 1px solid #e3e7ec;
    background: #fff;
}

.dealer-service-benefits .container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dealer-service-benefits article {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: .8rem;
    align-items: center;
    padding: 1.5rem 1.25rem;
    border-right: 1px solid #e6e9ee;
}

.dealer-service-benefits article:first-child {
    border-left: 1px solid #e6e9ee;
}

.dealer-service-benefits svg {
    width: 40px;
    height: 40px;
    padding: .45rem;
    color: var(--dealer-primary, #d7222a);
    border: 1px solid color-mix(in srgb, var(--dealer-primary, #d7222a) 55%, white);
    border-radius: 50%;
}

.dealer-service-benefits article div {
    display: grid;
    gap: .15rem;
}

.dealer-service-benefits strong {
    color: #182231;
    font-size: .75rem;
    font-weight: 850;
    text-transform: uppercase;
}

.dealer-service-benefits span {
    color: #6d7786;
    font-size: .7rem;
}

.dealer-service-page {
    padding: clamp(2rem, 5vw, 4.5rem) 0;
    background: #f7f8fa;
}

.dealer-service-booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.35rem;
    align-items: start;
}

.dealer-service-booking-card,
.dealer-service-summary-card {
    border: 1px solid #dfe4ea;
    border-radius: .55rem;
    background: #fff;
    box-shadow: 0 14px 38px rgba(20, 31, 47, .055);
}

.dealer-service-booking-card {
    padding: clamp(1.15rem, 3vw, 2rem);
}

.dealer-service-booking-head h2,
.dealer-service-popular-head h2 {
    margin: .25rem 0 .35rem;
    color: #131c29;
    font-size: clamp(1.4rem, 2.7vw, 2rem);
    font-weight: 900;
    letter-spacing: -.03em;
    text-transform: uppercase;
}

.dealer-service-booking-head p {
    max-width: 700px;
    margin: 0;
    color: #6d7786;
    font-size: .86rem;
}

.dealer-service-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 1.5rem 0 1.8rem;
    padding: 0;
    list-style: none;
}

.dealer-service-progress li {
    position: relative;
    display: grid;
    gap: .35rem;
    justify-items: center;
    color: #8993a1;
    text-align: center;
}

.dealer-service-progress li::before {
    position: absolute;
    top: 15px;
    right: 50%;
    left: -50%;
    height: 1px;
    content: "";
    background: #dce1e7;
}

.dealer-service-progress li:first-child::before {
    display: none;
}

.dealer-service-progress li span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #d8dee6;
    border-radius: 50%;
    background: #fff;
    font-size: .72rem;
    font-weight: 800;
}

.dealer-service-progress li.is-active {
    color: var(--dealer-primary, #d7222a);
}

.dealer-service-progress li.is-active span {
    color: #fff;
    border-color: var(--dealer-primary, #d7222a);
    background: var(--dealer-primary, #d7222a);
}

.dealer-service-progress small {
    font-size: .67rem;
    font-weight: 700;
}

.dealer-service-form-wrap {
    padding-top: 1.4rem;
    border-top: 1px solid #e5e9ee;
}

.dealer-service-form-wrap .dealer-lead-form > .row > .col-12:first-child h2 {
    color: #172231;
    font-size: 1rem;
    font-weight: 850;
    text-transform: uppercase;
}

.dealer-service-form-wrap .form-label {
    color: #273344;
    font-size: .76rem;
    font-weight: 750;
}

.dealer-service-form-wrap .form-control,
.dealer-service-form-wrap .form-select {
    min-height: 46px;
    border-color: #d7dde5;
    border-radius: .35rem;
    font-size: .82rem;
}

.dealer-service-form-wrap textarea.form-control {
    min-height: 105px;
}

.dealer-service-form-wrap .btn-dealer {
    min-width: 210px;
    min-height: 48px;
    font-weight: 850;
    text-transform: uppercase;
}

.dealer-service-online-reasons {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid #dfe4ea;
    border-radius: .45rem;
    background: #fafbfc;
}

.dealer-service-online-reasons > div {
    display: grid;
    gap: .3rem;
}

.dealer-service-online-reasons strong {
    color: #1b2533;
    font-size: .8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dealer-service-online-reasons span,
.dealer-service-online-reasons li {
    color: #697485;
    font-size: .72rem;
}

.dealer-service-online-reasons ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dealer-service-online-reasons li::before {
    margin-right: .45rem;
    color: #2e9b50;
    content: "✓";
    font-weight: 900;
}

.dealer-service-summary-card {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: .65rem;
    padding: 1.25rem;
}

.dealer-service-summary-card > span {
    color: #202a38;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dealer-service-summary-image {
    height: 145px;
    overflow: hidden;
    border-radius: .4rem;
    background: #eef1f4;
}

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

.dealer-service-summary-card > strong {
    color: #182231;
    font-size: .9rem;
    text-align: center;
}

.dealer-service-summary-card > p {
    margin: 0;
    color: #737d8b;
    font-size: .75rem;
    text-align: center;
}

.dealer-service-summary-card dl {
    display: grid;
    gap: .5rem;
    margin: .5rem 0 0;
    padding: .9rem 0;
    border-top: 1px solid #e4e8ed;
    border-bottom: 1px solid #e4e8ed;
}

.dealer-service-summary-card dl div,
.dealer-service-hours-mini div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
}

.dealer-service-summary-card dt,
.dealer-service-summary-card dd,
.dealer-service-hours-mini span,
.dealer-service-hours-mini b {
    margin: 0;
    color: #6d7786;
    font-size: .68rem;
    font-weight: 650;
}

.dealer-service-summary-card dd {
    color: #263243;
    text-align: right;
}

.dealer-service-help,
.dealer-service-hours-mini {
    display: grid;
    gap: .3rem;
    padding-top: .35rem;
}

.dealer-service-help strong,
.dealer-service-hours-mini > strong {
    color: #202a38;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dealer-service-help span {
    color: #737d8b;
    font-size: .69rem;
}

.dealer-service-help a {
    color: var(--dealer-primary, #d7222a);
    font-size: .88rem;
    font-weight: 850;
    text-decoration: none;
}

.dealer-service-popular {
    margin-top: clamp(2rem, 5vw, 4rem);
}

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

.dealer-service-popular-head a {
    color: var(--dealer-primary, #d7222a);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}

.dealer-service-popular-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .85rem;
}

.dealer-service-popular-grid article {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    min-height: 245px;
    padding: 1rem;
    border: 1px solid #dde3e9;
    border-radius: .45rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(22, 31, 44, .035);
}

.dealer-service-popular-grid article > img,
.dealer-service-card-number {
    width: 48px;
    height: 48px;
    margin-bottom: .85rem;
    border-radius: 50%;
}

.dealer-service-popular-grid article > img {
    object-fit: cover;
}

.dealer-service-card-number {
    display: grid;
    place-items: center;
    color: var(--dealer-primary, #d7222a);
    border: 1px solid color-mix(in srgb, var(--dealer-primary, #d7222a) 45%, white);
    background: color-mix(in srgb, var(--dealer-primary, #d7222a) 7%, white);
    font-weight: 900;
}

.dealer-service-popular-grid h3 {
    margin: 0 0 .5rem;
    color: #192331;
    font-size: .86rem;
    font-weight: 850;
}

.dealer-service-popular-grid p {
    margin: 0;
    color: #737d8b;
    font-size: .7rem;
    line-height: 1.55;
}

.dealer-service-popular-grid article > div {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    align-items: center;
    margin-top: 1rem;
}

.dealer-service-popular-grid button,
.dealer-service-popular-grid a {
    padding: 0;
    color: var(--dealer-primary, #d7222a);
    border: 0;
    background: none;
    font-size: .72rem;
    font-weight: 850;
    text-decoration: none;
}

.dealer-service-contact-strip {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid #dce2e8;
    border-radius: .45rem;
    background: #fff;
}

.dealer-service-contact-strip > div {
    display: grid;
    gap: .15rem;
}

.dealer-service-contact-strip strong {
    color: #1d2735;
    font-size: .92rem;
}

.dealer-service-contact-strip span {
    color: #737d8b;
    font-size: .75rem;
}

@media (max-width: 1199.98px) {
    .dealer-service-popular-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dealer-service-benefits .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dealer-service-benefits article:nth-child(3) {
        border-left: 1px solid #e6e9ee;
    }

    .dealer-service-booking-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .dealer-service-summary-card {
        position: static;
        grid-template-columns: 160px minmax(0, 1fr);
    }

    .dealer-service-summary-card > span,
    .dealer-service-summary-image {
        grid-row: span 2;
    }
}

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

    .dealer-service-hero > img {
        object-position: 60% center;
    }

    .dealer-service-hero-shade {
        background: linear-gradient(90deg, rgba(5, 10, 17, .96), rgba(5, 10, 17, .65));
    }

    .dealer-service-hero-content {
        margin-left: auto;
    }

    .dealer-service-benefits .container,
    .dealer-service-popular-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dealer-service-online-reasons,
    .dealer-service-summary-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .dealer-service-summary-card > span,
    .dealer-service-summary-image {
        grid-row: auto;
    }

    .dealer-service-progress small {
        display: none;
    }

    .dealer-service-contact-strip {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .dealer-service-benefits .container,
    .dealer-service-popular-grid,
    .dealer-service-online-reasons ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .dealer-service-benefits article,
    .dealer-service-benefits article:nth-child(3) {
        border-right: 1px solid #e6e9ee;
        border-left: 1px solid #e6e9ee;
    }

    .dealer-service-popular-grid article {
        min-height: 210px;
    }
}

.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-type-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.media-type-picker label {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.media-type-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.media-type-picker span {
    display: flex;
    min-height: 74px;
    flex-direction: column;
    justify-content: center;
    gap: .2rem;
    border: 1px solid var(--pas-line);
    border-radius: 7px;
    background: #ffffff;
    padding: .8rem 1rem;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.media-type-picker small {
    color: var(--pas-muted);
    line-height: 1.35;
}

.media-type-picker input:checked + span {
    border-color: var(--pas-blue);
    background: #f4f8ff;
    box-shadow: inset 0 0 0 1px var(--pas-blue);
}

.media-type-picker input:focus-visible + span {
    outline: 3px solid rgba(14, 102, 255, .22);
    outline-offset: 2px;
}

.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 {
    position: relative;
    border: 1px solid var(--pas-line);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.media-card.is-dragging {
    z-index: 2;
    border-color: #0b63f6;
    box-shadow: 0 12px 28px rgba(20, 54, 96, .18);
    opacity: .72;
}

.media-grid.is-saving .media-card {
    pointer-events: none;
}

.media-sortable-ready .media-direction-form {
    display: none;
}

.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;
}

.media-drag-handle {
    position: absolute;
    z-index: 3;
    top: .5rem;
    right: .5rem;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(15, 34, 61, .16);
    border-radius: 7px;
    background: rgba(255, 255, 255, .94);
    color: #43536b;
    box-shadow: 0 4px 12px rgba(15, 34, 61, .14);
    cursor: grab;
    touch-action: none;
}

.media-drag-handle:hover,
.media-drag-handle:focus-visible {
    border-color: #0b63f6;
    color: #0b63f6;
    outline: 3px solid rgba(11, 99, 246, .16);
}

.media-drag-handle:active {
    cursor: grabbing;
}

.media-drag-dots {
    width: 16px;
    height: 22px;
    background-image: radial-gradient(circle, currentColor 1.5px, transparent 1.75px);
    background-position: center;
    background-size: 7px 7px;
}

.photo-shot-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
}

.photo-shot-kicker {
    display: block;
    margin-bottom: .45rem;
    color: #0b63f6;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.photo-shot-count {
    min-width: 124px;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: #10243e;
    color: #ffffff;
    text-align: center;
}

.photo-shot-count strong,
.photo-shot-count span {
    display: block;
}

.photo-shot-count strong {
    font-size: 2rem;
    line-height: 1;
}

.photo-shot-count span {
    margin-top: .4rem;
    color: #c7d7ed;
    font-size: .76rem;
    font-weight: 700;
}

.photo-shot-list {
    display: grid;
    gap: .75rem;
}

.photo-shot-row {
    display: grid;
    grid-template-columns: 44px 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .85rem;
    border: 1px solid var(--pas-line);
    border-radius: 12px;
    background: #ffffff;
    transition: border-color .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.photo-shot-row.is-dragging {
    z-index: 2;
    border-color: #0b63f6;
    box-shadow: 0 12px 28px rgba(20, 54, 96, .18);
    opacity: .75;
}

.photo-shot-handle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #ccd7e6;
    border-radius: 10px;
    background: #f5f8fc;
    color: #52637a;
    cursor: grab;
    touch-action: none;
}

.photo-shot-handle:hover,
.photo-shot-handle:focus-visible {
    border-color: #0b63f6;
    color: #0b63f6;
    outline: 3px solid rgba(11, 99, 246, .14);
}

.photo-shot-position {
    color: #8a96a8;
    font-size: .82rem;
    font-weight: 800;
    text-align: center;
}

.photo-shot-field .form-label {
    margin-bottom: .25rem;
    color: #52637a;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .photo-shot-intro {
        align-items: stretch;
        flex-direction: column;
    }

    .photo-shot-count {
        min-width: 0;
    }

    .photo-shot-row {
        grid-template-columns: 42px 28px minmax(0, 1fr);
    }

    .photo-shot-row [data-photo-shot-remove] {
        grid-column: 3;
        justify-self: start;
    }
}

.media-order-status {
    min-height: 1.25rem;
}

.media-order-status.is-saving {
    color: #52637a;
}

.media-order-status.is-saved {
    color: #18794e;
}

.media-order-status.is-error {
    color: #b42318;
}

body.media-photo-dragging {
    user-select: none;
}

.dealer-public {
    --dealer-theme-action: var(--dealer-primary);
    --dealer-theme-action-contrast: #ffffff;
    background: #f6f8fb;
}

body.dealer-public[data-template-width="boxed"] {
    background: color-mix(in srgb, var(--dealer-template-muted, #eef1f4) 72%, #d8dde2);
}

.dealer-public[data-template-width="boxed"] > .site-shell {
    width: calc(100% - 32px);
    max-width: 1440px;
    margin: 12px auto 28px;
    border: 1px solid rgba(15, 23, 42, .22);
    background: var(--dealer-template-surface, #fff);
    box-shadow: 0 10px 32px rgba(15, 23, 42, .12);
}

.dealer-public[data-template-width="full_screen"] > .site-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    box-shadow: none;
}

.dealer-public .dealer-breadcrumb {
    --bs-link-color-rgb: var(--dealer-link-color-rgb);
    --bs-link-hover-color-rgb: var(--dealer-link-hover-color-rgb);
}

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

@media (max-width: 991.98px) {
    .dealer-public[data-template-width="boxed"] > .site-shell {
        width: 100%;
        margin: 0;
        border: 0;
        box-shadow: none;
    }
}

.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;
    z-index: 1030;
}

.dealer-language-nav > .nav-link {
    min-width: 3.25rem;
    white-space: nowrap;
    text-align: center;
}

.dealer-language-nav .dropdown-item.active {
    background: color-mix(in srgb, var(--dealer-primary) 12%, #ffffff);
    color: var(--dealer-primary);
    font-weight: 700;
}

.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-faq-section {
    scroll-margin-top: 6rem;
}

.dealer-faq-heading {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.dealer-faq-heading p {
    margin: 0 0 .35rem;
    color: var(--dealer-primary);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dealer-faq-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    line-height: 1.2;
}

.dealer-faq-heading div {
    margin-top: .65rem;
    color: #526174;
    line-height: 1.65;
}

.help-faq-panel {
    overflow: hidden;
}

.help-faq-head {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: end;
    border-bottom: 1px solid #e7ebf1;
    padding: 1.25rem;
}

.help-faq-eyebrow {
    display: block;
    margin-bottom: .25rem;
    color: var(--pas-primary, #155eef);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.help-faq-head h2 {
    margin: 0;
    color: #111827;
    font-size: 1.25rem;
}

.help-faq-head p {
    margin: .35rem 0 0;
    color: #667085;
}

.help-faq-search {
    width: min(100%, 390px);
}

.help-faq-search span {
    display: block;
    margin-bottom: .35rem;
    color: #344054;
    font-size: .8rem;
    font-weight: 700;
}

.help-faq-summary {
    border-bottom: 1px solid #e7ebf1;
    padding: .65rem 1.25rem;
    color: #667085;
    font-size: .82rem;
    font-weight: 700;
}

.help-faq-group {
    padding: 1.25rem;
}

.help-faq-group + .help-faq-group {
    border-top: 1px solid #e7ebf1;
}

.help-faq-group h3 {
    margin: 0 0 .75rem;
    color: #344054;
    font-size: .9rem;
    font-weight: 800;
}

.help-faq-list {
    display: grid;
    gap: .5rem;
}

.help-faq-item {
    border: 1px solid #e4e9f0;
    border-radius: 6px;
    background: #ffffff;
}

.help-faq-item summary {
    position: relative;
    padding: .9rem 2.75rem .9rem 1rem;
    color: #1d2939;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

.help-faq-item summary::-webkit-details-marker {
    display: none;
}

.help-faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 1rem;
    color: #667085;
    font-size: 1.25rem;
    line-height: 1;
    transform: translateY(-50%);
}

.help-faq-item[open] summary::after {
    content: "-";
}

.help-faq-item summary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--pas-primary, #155eef) 30%, transparent);
    outline-offset: 2px;
}

.help-faq-answer {
    border-top: 1px solid #edf0f4;
    padding: 1rem;
}

.help-faq-answer p {
    max-width: 90ch;
    margin: 0 0 .85rem;
    color: #526174;
    line-height: 1.65;
}

.help-faq-empty {
    display: grid;
    gap: .25rem;
    padding: 2rem 1.25rem;
    text-align: center;
}

.help-faq-empty span {
    color: #667085;
}

@media (max-width: 767.98px) {
    .help-faq-head {
        align-items: stretch;
        flex-direction: column;
    }

    .help-faq-search {
        width: 100%;
    }
}

.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-social-icon-link {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
    border-radius: 50%;
    color: inherit;
    line-height: 1;
    text-decoration: none !important;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.dealer-social-icon-link:hover {
    border-color: var(--dealer-theme-action, var(--dealer-primary));
    background: var(--dealer-theme-action, var(--dealer-primary));
    color: var(--dealer-theme-action-contrast, #fff);
    text-decoration: none !important;
    transform: translateY(-2px);
}

.dealer-social-icon-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--dealer-theme-action, var(--dealer-primary)) 48%, transparent);
    outline-offset: 3px;
}

.dealer-social-icon {
    display: block;
    width: 20px;
    height: 20px;
    overflow: visible;
}

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

.dealer-public .dealer-public-alert {
    background: color-mix(in srgb, var(--dealer-primary) 10%, #ffffff);
    border-bottom: 1px solid color-mix(in srgb, var(--dealer-primary) 28%, #ffffff);
    color: color-mix(in srgb, var(--dealer-primary) 72%, #111827);
    padding: .85rem 0;
}

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

.dealer-public .dealer-public-alert .btn {
    border-color: var(--dealer-theme-action, var(--dealer-primary));
    background: var(--dealer-theme-action, var(--dealer-primary));
    color: var(--dealer-theme-action-contrast, #ffffff);
    font-weight: 700;
}

.dealer-public .dealer-public-alert .btn:hover,
.dealer-public .dealer-public-alert .btn:focus-visible {
    border-color: color-mix(in srgb, var(--dealer-theme-action, var(--dealer-primary)) 82%, #000000);
    background: color-mix(in srgb, var(--dealer-theme-action, var(--dealer-primary)) 82%, #000000);
    color: var(--dealer-theme-action-contrast, #ffffff);
}

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

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

/* Dealer menus are configurable and can crowd the bar on small laptops;
   tighten link spacing between the lg expand point and full desktop. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .dealer-navbar .navbar-nav .nav-link {
        padding-left: .45rem;
        padding-right: .45rem;
        font-size: .875rem;
    }
}

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

.dealer-public .text-primary {
    color: var(--dealer-primary) !important;
}

.dealer-public .btn-outline-primary {
    --bs-btn-color: var(--dealer-theme-action);
    --bs-btn-border-color: var(--dealer-theme-action);
    --bs-btn-hover-color: var(--dealer-theme-action-contrast);
    --bs-btn-hover-bg: var(--dealer-theme-action);
    --bs-btn-hover-border-color: var(--dealer-theme-action);
    --bs-btn-active-color: var(--dealer-theme-action-contrast);
    --bs-btn-active-bg: color-mix(in srgb, var(--dealer-theme-action) 82%, #000000);
    --bs-btn-active-border-color: color-mix(in srgb, var(--dealer-theme-action) 82%, #000000);
    --bs-btn-disabled-color: color-mix(in srgb, var(--dealer-theme-action) 58%, #64748b);
    --bs-btn-disabled-border-color: color-mix(in srgb, var(--dealer-theme-action) 46%, #cbd5e1);
}

.dealer-public .btn-outline-primary:focus-visible {
    box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--dealer-theme-action) 28%, transparent);
}

.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-story-vehicle-rotator {
    position: relative;
    display: block;
    overflow: hidden;
}

.dealer-story-vehicle-slides,
.dealer-story-vehicle-slide {
    position: absolute;
    inset: 0;
}

.dealer-story-vehicle-slide {
    z-index: 0;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    text-decoration: none;
    transition: opacity .45s ease;
}

.dealer-story-vehicle-slide.is-active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}

.dealer-story-vehicle-slide::after {
    position: absolute;
    inset: 35% 0 0;
    content: "";
    background: linear-gradient(to bottom, transparent, rgba(4, 10, 24, .9));
}

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

.dealer-story-vehicle-meta {
    position: absolute;
    z-index: 2;
    right: 3.5rem;
    bottom: 1rem;
    left: 1rem;
    display: grid;
    gap: .15rem;
    line-height: 1.25;
}

.dealer-story-vehicle-meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dealer-story-vehicle-kicker {
    color: color-mix(in srgb, var(--dealer-accent, var(--dealer-primary)) 72%, #fff);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dealer-story-vehicle-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    color: #fff;
    background: rgba(4, 10, 24, .58);
    font-size: 1.6rem;
    line-height: 1;
    transform: translateY(-50%);
}

.dealer-story-vehicle-control:hover,
.dealer-story-vehicle-control:focus-visible {
    border-color: #fff;
    background: var(--dealer-primary);
}

.dealer-story-vehicle-control.is-previous {
    left: .75rem;
}

.dealer-story-vehicle-control.is-next {
    right: .75rem;
}

.dealer-story-vehicle-dots {
    position: absolute;
    z-index: 3;
    right: 1rem;
    bottom: 1.1rem;
    display: flex;
    gap: .32rem;
}

.dealer-story-vehicle-dots button {
    width: .55rem;
    height: .55rem;
    border: 1px solid #fff;
    border-radius: 50%;
    padding: 0;
    background: transparent;
}

.dealer-story-vehicle-dots button.is-active {
    background: var(--dealer-primary);
}

.dealer-public .dealer-home-story-image.dealer-stock-story-image {
    overflow: hidden;
    border-radius: 18px !important;
}

.homepage-article-list {
    display: grid;
    gap: 18px;
}

.homepage-article-editor {
    overflow: hidden;
    border: 1px solid #d5dfec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 35, 70, .07);
}

.homepage-article-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #e3eaf3;
    background: linear-gradient(135deg, #f8fbff, #fff);
}

.homepage-article-editor-head strong,
.homepage-article-kicker {
    display: block;
}

.homepage-article-kicker {
    margin-bottom: 2px;
    color: #64748b;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.homepage-article-remove {
    border: 0;
    padding: 6px 9px;
    color: #b42318;
    background: transparent;
    font-size: .75rem;
    font-weight: 800;
}

.homepage-article-remove:hover,
.homepage-article-remove:focus-visible {
    border-radius: 7px;
    background: #fff0ee;
}

.homepage-article-editor-grid {
    display: grid;
    grid-template-columns: minmax(250px, .72fr) minmax(0, 1.55fr);
    gap: 20px;
    padding: 18px;
}

.homepage-article-image-preview {
    display: grid;
    width: 100%;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #d9e3ef;
    border-radius: 14px;
    color: #718096;
    background: #eef3f8;
    font-size: .78rem;
    font-weight: 700;
}

.homepage-article-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-article-image-preview.is-fresh-arrivals {
    border-color: #93b7e8;
    color: #174ea6;
    background: #edf5ff;
}

.homepage-article-upload {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    padding: 10px 12px;
    border: 1px dashed #b9c9dd;
    border-radius: 10px;
    cursor: pointer;
    color: #174ea6;
    background: #f6f9fd;
    font-size: .75rem;
    font-weight: 800;
}

.homepage-article-upload small {
    color: #73839a;
    font-weight: 600;
}

.homepage-stock-image-picker {
    margin-top: 10px;
    border: 1px solid #d9e3ef;
    border-radius: 10px;
    background: #fff;
}

.homepage-stock-image-picker summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 10px 12px;
    color: #253754;
    font-size: .76rem;
    font-weight: 800;
}

.homepage-stock-image-picker summary span {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: #eaf1fb;
}

.homepage-stock-image-grid {
    display: grid;
    max-height: 310px;
    overflow-y: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 0 10px 10px;
}

.homepage-stock-image-option {
    display: grid;
    min-width: 0;
    overflow: hidden;
    gap: 6px;
    border: 1px solid #d6e0ec;
    border-radius: 11px;
    padding: 6px;
    color: #273a59;
    background: #fff;
    text-align: left;
}

.homepage-stock-image-option img,
.homepage-stock-image-auto {
    display: grid;
    width: 100%;
    aspect-ratio: 16 / 9;
    place-items: center;
    object-fit: cover;
    border-radius: 8px;
    background: #edf2f7;
}

.homepage-stock-image-option strong {
    overflow: hidden;
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.homepage-stock-image-option.is-selected {
    border-color: #1264d8;
    box-shadow: 0 0 0 2px rgba(18, 100, 216, .14);
}

.homepage-stock-image-picker > p {
    margin: 0;
    padding: 0 11px 11px;
    color: #718096;
    font-size: .65rem;
}

.homepage-article-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
}

.homepage-article-actions span {
    color: #64748b;
    font-size: .75rem;
    font-weight: 700;
}

.structured-json-editor {
    display: grid;
    gap: .75rem;
}

.structured-json-rows {
    display: grid;
    gap: .75rem;
}

.structured-json-row {
    position: relative;
    display: flex;
    gap: .75rem;
    align-items: flex-end;
    border: 1px solid #d9e3ef;
    border-radius: 8px;
    padding: .85rem;
    background: #fff;
}

.structured-json-remove {
    flex: 0 0 auto;
    border: 0;
    border-radius: 6px;
    padding: .48rem .6rem;
    color: #b42318;
    background: #fff0ee;
    font-size: .75rem;
    font-weight: 800;
}

.structured-json-actions {
    display: flex;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
}

.structured-json-actions span {
    color: #64748b;
    font-size: .75rem;
}

.weekly-hours-grid,
.department-hours-editor {
    display: grid;
    gap: .65rem;
}

.feed-settings-editor {
    display: grid;
    gap: 1rem;
}

.feed-settings-group {
    padding: 1rem;
    border: 1px solid var(--bs-border-color, #d9dee7);
    background: var(--bs-body-bg, #fff);
}

.feed-settings-group[hidden] {
    display: none;
}

.weekly-hours-row {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) 90px;
    gap: .75rem;
    align-items: end;
    border-bottom: 1px solid #e3eaf3;
    padding: .65rem 0;
}

.weekly-hours-row > strong {
    align-self: center;
}

.weekly-hours-row label span,
.department-hours-grid label span {
    display: block;
    margin-bottom: .25rem;
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
}

.weekly-hours-row .form-check {
    align-self: center;
    margin: 0;
}

.department-hours-group {
    border: 1px solid #d9e3ef;
    border-radius: 8px;
    background: #fff;
}

.department-hours-group summary {
    cursor: pointer;
    padding: .75rem .85rem;
    font-weight: 750;
}

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

@media (max-width: 767.98px) {
    .structured-json-row {
        align-items: stretch;
        flex-direction: column;
    }

    .structured-json-remove {
        align-self: flex-start;
    }

    .weekly-hours-row,
    .department-hours-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .homepage-article-editor-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .homepage-stock-image-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.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);
    font-size: 0;
    transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.inventory-save-btn.active {
    border-color: #ef4444;
    background: #ffffff;
    color: #dc2626;
}

.inventory-save-btn:active {
    transform: scale(.94);
}

.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-panorama,
.dealer-vdp-photo-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9.7;
    object-fit: contain;
}

.dealer-vdp-media-frame [hidden] {
    display: none !important;
}

.dealer-vdp-panorama {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.dealer-vdp-panorama .pnlm-render-container,
.dealer-vdp-panorama canvas {
    width: 100% !important;
    height: 100% !important;
}

.dealer-vdp-panorama-hint,
.dealer-vdp-spin-hint {
    position: absolute;
    z-index: 4;
    right: 1rem;
    bottom: 1rem;
    border-radius: 6px;
    background: rgba(15, 23, 42, .84);
    color: #ffffff;
    padding: .35rem .65rem;
    font-size: .78rem;
    font-weight: 800;
    pointer-events: none;
}

.dealer-vdp-spin {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #0f172a;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.dealer-vdp-spin.is-dragging {
    cursor: grabbing;
}

.dealer-vdp-spin img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9.7;
    object-fit: contain;
    pointer-events: none;
}

.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 {
    position: relative;
    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-360-badge {
    position: absolute;
    right: .35rem;
    bottom: .35rem;
    border-radius: 5px;
    background: rgba(15, 23, 42, .9);
    color: #ffffff;
    padding: .18rem .4rem;
    font-size: .68rem;
    font-weight: 900;
    line-height: 1;
}

.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;
}

@media (max-width: 575.98px) {
    .media-type-picker {
        grid-template-columns: 1fr;
    }

    .dealer-vdp-panorama-hint,
    .dealer-vdp-spin-hint {
        right: .75rem;
        bottom: .75rem;
    }
}

.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-recall-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, var(--dealer-text, #172033) 16%, transparent);
}

.dealer-vdp-recall-summary h3 {
    margin: 0 0 .45rem;
    font-size: 1rem;
}

.dealer-vdp-recall-summary p,
.dealer-vdp-recall-summary small {
    display: block;
    margin: 0 0 .6rem;
}

.dealer-vdp-recall-summary a {
    font-weight: 700;
}

.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 {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: .6rem;
    align-content: center;
    min-height: 54px;
    border-right: 1px solid var(--dealer-vdp-line);
    padding: .72rem .85rem .55rem 0;
}

.dealer-vdp-spec-matrix i {
    grid-row: 1 / span 2;
    align-self: center;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d4dce8;
    border-radius: 8px;
    color: #627189;
    font-style: normal;
}

.dealer-vdp-spec-matrix span,
.dealer-vdp-spec-matrix strong {
    grid-column: 2;
}

.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-deal-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 20px 24px;
    border: 1px solid color-mix(in srgb, var(--dealer-primary, #155eef) 28%, #d7e0ec);
    border-left: 4px solid var(--dealer-primary, #155eef);
    background: color-mix(in srgb, var(--dealer-primary, #155eef) 5%, #fff);
}

.dealer-vdp-deal-cta strong,
.dealer-vdp-deal-cta span {
    display: block;
}

.dealer-vdp-deal-cta span {
    margin-top: 3px;
    color: #5d6878;
}

.dealer-deal-builder {
    padding: 30px 0 72px;
    background: #f5f7fa;
}

.dealer-deal-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    margin: 18px 0 28px;
    padding: 22px;
    border: 1px solid #dce3ec;
    background: #fff;
}

.dealer-deal-vehicle {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.dealer-deal-vehicle img {
    width: 170px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eef1f5;
}

.dealer-deal-vehicle h1 {
    margin: 4px 0 8px;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.dealer-deal-vehicle p {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    color: #5d6878;
}

.dealer-deal-payment {
    min-width: 220px;
    padding-left: 28px;
    border-left: 1px solid #dce3ec;
    text-align: right;
}

.dealer-deal-payment > span,
.dealer-deal-payment > small,
.dealer-deal-payment > strong {
    display: block;
}

.dealer-deal-payment strong {
    color: var(--dealer-primary, #155eef);
    font-size: 2rem;
    line-height: 1.1;
}

.dealer-deal-payment strong small {
    font-size: .9rem;
}

.dealer-deal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
    align-items: start;
    gap: 24px;
}

.dealer-deal-form {
    display: grid;
    gap: 18px;
}

.dealer-deal-section,
.dealer-deal-summary {
    padding: 26px;
    border: 1px solid #dce3ec;
    background: #fff;
}

.dealer-deal-step {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}

.dealer-deal-step > span {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--dealer-primary, #155eef);
    color: #fff;
    font-weight: 700;
}

.dealer-deal-step h2 {
    margin: 0;
    font-size: 1.2rem;
}

.dealer-deal-step p {
    margin: 4px 0 0;
    color: #667285;
}

.dealer-deal-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.dealer-deal-addons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dealer-deal-addons label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 14px;
    border: 1px solid #dce3ec;
    cursor: pointer;
}

.dealer-deal-addons label:has(input:checked) {
    border-color: var(--dealer-primary, #155eef);
    background: color-mix(in srgb, var(--dealer-primary, #155eef) 5%, #fff);
}

.dealer-deal-addons strong,
.dealer-deal-addons small {
    display: block;
}

.dealer-deal-addons small {
    margin-top: 2px;
    color: #667285;
}

.dealer-deal-consent {
    align-items: flex-start;
    gap: 9px;
    margin: 6px 0 20px;
    color: #5d6878;
    font-size: .88rem;
}

.dealer-deal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dealer-deal-summary {
    position: sticky;
    top: 18px;
}

.dealer-deal-summary h2 {
    margin: 0 0 18px;
    font-size: 1.25rem;
}

.dealer-deal-summary dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    margin: 0;
}

.dealer-deal-summary dt {
    color: #5d6878;
    font-weight: 500;
}

.dealer-deal-summary dd {
    margin: 0;
    text-align: right;
}

.dealer-deal-summary .dealer-deal-total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #dce3ec;
    color: #182133;
    font-weight: 700;
}

.dealer-deal-summary-payment {
    margin-top: 20px;
    padding: 18px;
    background: color-mix(in srgb, var(--dealer-primary, #155eef) 8%, #fff);
}

.dealer-deal-summary-payment span,
.dealer-deal-summary-payment strong,
.dealer-deal-summary-payment small {
    display: block;
}

.dealer-deal-summary-payment strong {
    margin: 4px 0;
    color: var(--dealer-primary, #155eef);
    font-size: 2rem;
}

.dealer-deal-summary > p {
    margin: 18px 0 0;
    color: #667285;
    font-size: .78rem;
}

@media (max-width: 900px) {
    .dealer-deal-head,
    .dealer-deal-layout {
        grid-template-columns: 1fr;
    }

    .dealer-deal-payment {
        padding: 18px 0 0;
        border-top: 1px solid #dce3ec;
        border-left: 0;
        text-align: left;
    }

    .dealer-deal-summary {
        position: static;
        grid-row: 1;
    }
}

@media (max-width: 620px) {
    .dealer-vdp-deal-cta,
    .dealer-deal-vehicle {
        align-items: flex-start;
        flex-direction: column;
    }

    .dealer-vdp-deal-cta .btn,
    .dealer-deal-actions .btn {
        width: 100%;
    }

    .dealer-deal-vehicle img {
        width: 100%;
    }

    .dealer-deal-fields,
    .dealer-deal-addons {
        grid-template-columns: 1fr;
    }

    .dealer-deal-section,
    .dealer-deal-summary {
        padding: 20px;
    }
}

.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);
}

.dealer-vdp-lead-card-primary:only-child {
    grid-column: 1 / -1;
}

@media (max-width: 1199.98px) {
    .dealer-vdp-hero {
        grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr);
        gap: 1.5rem;
    }

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

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

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

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

@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-footer .dealer-powered-by-link {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

.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;
    }
}

.dealer-public [data-save-vehicle].btn-outline-secondary.active,
.dealer-public .vehicle-save-heart-btn.active {
    border-color: var(--dealer-template-border, var(--pas-line)) !important;
    background: var(--dealer-template-muted, var(--pas-surface)) !important;
}

.vehicle-save-heart-btn {
    display: inline-grid;
    width: 34px;
    min-width: 34px;
    height: 32px;
    padding: 0 !important;
    place-items: center;
    color: var(--pas-muted) !important;
    font-size: 0;
    line-height: 1;
}

.vehicle-save-heart-icon {
    width: 19px;
    height: 19px;
    overflow: visible;
    pointer-events: none;
}

.vehicle-save-heart-icon path {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 18;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill .16s ease, stroke .16s ease;
}

.dealer-public .vehicle-save-heart-btn:hover,
.dealer-public .vehicle-save-heart-btn:focus-visible {
    border-color: var(--dealer-template-border, var(--pas-line)) !important;
    background: var(--dealer-template-muted, var(--pas-surface)) !important;
    color: #dc2626 !important;
}

.vehicle-save-heart-btn.active {
    color: #dc2626 !important;
}

.vehicle-save-heart-btn.active .vehicle-save-heart-icon path {
    fill: currentColor;
    stroke: currentColor;
}

@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::placeholder,
.admin-body textarea.form-control::placeholder {
    color: #aab4c2;
    opacity: 1;
}

.admin-body .vehicle-catalog-selectors .form-select:has(> option[value=""]:checked) {
    color: #aab4c2;
}

.admin-body .vehicle-catalog-selectors .form-select option:not([value=""]) {
    color: #172033;
}

.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-search {
    position: sticky;
    top: -.25rem;
    z-index: 2;
    margin: -.3rem 0 .85rem;
    padding: .3rem 0 .15rem;
    background: #08182c;
}

.admin-sidebar-search-control {
    position: relative;
    display: flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .065);
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.admin-sidebar-search-control:focus-within {
    border-color: #5c9cff;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 0 0 3px rgba(47, 128, 255, .18);
}

.admin-sidebar-search-icon {
    display: inline-flex;
    flex: none;
    width: 17px;
    height: 17px;
    margin-left: .72rem;
    color: #8fa7c7;
}

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

.admin-sidebar-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: .58rem 2rem .58rem .6rem;
    color: #f4f8ff;
    background: transparent;
    font: inherit;
    font-size: .86rem;
}

.admin-sidebar-search input::placeholder {
    color: #91a3bd;
}

.admin-sidebar-search input::-webkit-search-cancel-button {
    display: none;
}

.admin-sidebar-search button {
    position: absolute;
    right: .42rem;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 0;
    border-radius: 6px;
    padding: 0;
    color: #b9c8da;
    background: transparent;
    font-size: 1.1rem;
    line-height: 1;
}

.admin-sidebar-search button:hover,
.admin-sidebar-search button:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, .1);
}

.admin-sidebar-search-status {
    margin: .55rem .25rem 0;
    color: #a9bad0;
    font-size: .78rem;
    line-height: 1.4;
}

.admin-nav-copy {
    display: grid;
    min-width: 0;
    gap: .14rem;
}

.admin-nav-search-subtitle {
    display: none;
    color: #91a5c0;
    font-size: .72rem;
    font-weight: 500;
    line-height: 1.35;
}

.admin-nav.is-searching .admin-nav-search-subtitle {
    display: block;
}

.admin-nav.is-searching .nav-link {
    align-items: flex-start;
    min-height: 0;
    padding-top: .65rem;
    padding-bottom: .65rem;
}

.admin-nav.is-searching .admin-nav-icon {
    margin-top: .12rem;
}

.admin-nav.is-searching .admin-nav-group {
    margin-top: .22rem;
    margin-bottom: .65rem;
}

.admin-nav.is-searching .admin-nav-group .nav-link {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.admin-nav.is-searching .nav-link:hover .admin-nav-search-subtitle,
.admin-nav.is-searching .nav-link.active .admin-nav-search-subtitle {
    color: #d6e2f2;
}

.admin-nav [hidden] {
    display: none !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(620px, 100%);
    min-height: 44px;
    align-items: center;
    gap: .55rem;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    padding: 0 .72rem;
    background: #ffffff;
}

.admin-global-search-icon {
    display: inline-flex;
    flex: none;
}

.admin-global-search svg {
    width: 18px;
    height: 18px;
    color: #8796ac;
}

.admin-global-search-scope {
    flex: 0 1 145px;
    max-width: 145px;
    min-height: 42px;
    border: 0;
    outline: 0;
    color: #26364e;
    background: #ffffff;
    font-size: .82rem;
    font-weight: 750;
}

.admin-global-search-scope:focus-visible {
    outline: 2px solid rgba(9, 105, 246, .3);
    outline-offset: 1px;
}

.admin-global-search-divider {
    flex: none;
    width: 1px;
    height: 24px;
    background: #dce4ef;
}

.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-email-shortcut.has-new-email {
    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-topbar-icon .admin-chat-presence-light {
    top: auto;
    right: .05rem;
    bottom: .05rem;
    display: block;
    width: 11px;
    min-width: 11px;
    height: 11px;
    border: 2px solid #ffffff;
    background: #8492a6;
    box-shadow: 0 0 0 1px rgba(15, 27, 51, .12);
    pointer-events: none;
}

.admin-topbar-icon .admin-chat-presence-light[data-status="online"] {
    background: #16a34a;
}

.admin-topbar-icon .admin-chat-presence-light[data-status="away"] {
    background: #f59e0b;
}

.admin-topbar-icon .admin-chat-presence-light[data-status="offline"] {
    background: #8492a6;
}

.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: repeat(auto-fit, minmax(150px, 1fr));
}

@media (min-width: 1100px) {
    .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-global-search {
        gap: .4rem;
        padding: 0 .55rem;
    }

    .admin-global-search-scope {
        flex-basis: 112px;
        max-width: 112px;
        font-size: .76rem;
    }

    .admin-global-search-icon {
        display: none;
    }

    .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 {
    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;
    overflow: hidden;
    background: #eef3f8;
}

.website-template-visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    padding: 3px;
    background: #eef3f8;
    object-fit: contain;
    object-position: center top;
}

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

.website-template-placeholder {
    display: grid;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    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;
    top: .5rem;
    right: .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-visual-caption {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    border-top: 1px solid #e7edf5;
    padding: .55rem .65rem;
    background: #ffffff;
}

.website-template-visual-caption strong {
    min-width: 0;
    overflow: hidden;
    color: var(--theme-ink);
    font-size: .82rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-template-visual-caption .website-template-default-palette {
    flex: 0 0 auto;
}

.website-template-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 58px;
    padding: .58rem .7rem;
}

.website-template-copy strong,
.website-template-copy small {
    display: block;
}

.website-template-identity {
    min-width: 0;
}

.website-template-copy strong {
    overflow: hidden;
    color: var(--theme-ink);
    font-size: .88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-template-identity small {
    overflow: hidden;
    max-width: 22ch;
    margin-top: .12rem;
    color: var(--theme-muted);
    font-size: .64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-template-palette-block {
    display: grid;
    flex: 0 0 auto;
    justify-items: end;
    gap: .2rem;
}

.website-template-palette-block > small {
    color: #7a879a;
    font-size: .56rem;
    font-weight: 750;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.website-template-default-palette {
    display: flex;
    align-items: center;
    gap: .28rem;
}

.website-template-default-palette i {
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border: 1px solid rgba(15, 31, 57, .18);
    border-radius: 50%;
    background: var(--template-default-color);
    box-shadow: 0 0 0 2px #ffffff;
}

.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;
}

/* Super Admin template library and editor */
.super-template-library .admin-page-head p,
.super-template-editor .admin-page-head p {
    margin: .4rem 0 0;
    color: #64748b;
    font-size: .88rem;
}

.super-template-library .admin-page-actions svg,
.super-template-editor .admin-page-actions svg,
.super-template-card-actions svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.super-template-upload-panel {
    display: grid;
    align-items: center;
    gap: 1rem;
    grid-template-columns: minmax(220px, 1fr) minmax(250px, 1fr) auto auto;
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    padding: 1rem;
    background: #ffffff;
}

.super-template-upload-panel strong,
.super-template-upload-panel span {
    display: block;
}

.super-template-upload-panel span {
    margin-top: .2rem;
    color: #64748b;
    font-size: .78rem;
}

.super-template-toolbar {
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 1rem;
    border-block: 1px solid #dfe5ed;
    padding-block: .75rem;
}

.super-template-toolbar > form:first-child,
.super-template-dealer-picker {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.super-template-toolbar label,
.super-template-dealer-picker label {
    margin: 0;
    color: #526176;
    font-size: .78rem;
    font-weight: 750;
    white-space: nowrap;
}

.super-template-toolbar .form-select,
.super-template-dealer-picker .form-select {
    width: min(280px, 48vw);
}

.super-template-toolbar-summary {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    margin-left: auto;
    color: #64748b;
    font-size: .8rem;
}

.super-template-toolbar-summary strong {
    color: #0f172a;
    font-size: 1.15rem;
}

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

.super-template-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(15, 31, 57, .06);
}

.super-template-card-preview {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid #dce3ec;
    background: #e9eef5;
}

.super-template-card-preview > img,
.super-template-screenshot-current img,
.super-template-hero-current img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.super-template-live-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
}

.super-template-live-thumbnail iframe {
    display: block;
    width: 400%;
    height: 400%;
    border: 0;
    pointer-events: none;
    transform: scale(.25);
    transform-origin: top left;
}

.super-template-empty-preview {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    gap: .4rem;
    color: #66758a;
    font-size: .78rem;
    font-weight: 750;
}

.super-template-empty-preview svg {
    width: 34px;
    height: 34px;
}

.super-template-status {
    position: absolute;
    top: .65rem;
    right: .65rem;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 999px;
    padding: .28rem .52rem;
    background: #ffffff;
    color: #526176;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .12);
    font-size: .65rem;
    font-weight: 800;
    line-height: 1;
}

.super-template-status.is-ready { color: #087a43; }
.super-template-status.is-warning { color: #9a5b08; }
.super-template-status.is-error { color: #b42318; }

.super-template-card-body {
    padding: .9rem;
}

.super-template-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.super-template-card-title h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.super-template-card-title span {
    display: block;
    margin-top: .18rem;
    color: #718096;
    font-size: .7rem;
}

.super-template-card-body > p {
    display: -webkit-box;
    min-height: 2.35rem;
    margin: .75rem 0;
    overflow: hidden;
    color: #607086;
    font-size: .78rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.super-template-card-actions {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border-top: 1px solid #edf1f6;
    padding-top: .7rem;
}

.super-template-card-actions > a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #0f66f2;
    font-size: .75rem;
    font-weight: 750;
    text-decoration: none;
}

.super-template-card-actions details {
    position: relative;
    margin-left: auto;
    color: #64748b;
    font-size: .72rem;
}

.super-template-card-actions summary {
    cursor: pointer;
    font-weight: 700;
}

.super-template-card-actions details > div {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: calc(100% + .5rem);
    width: 240px;
    border: 1px solid #d9e1eb;
    border-radius: 6px;
    padding: .7rem;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 31, 57, .14);
}

.super-template-card-actions details span,
.super-template-card-actions details strong {
    display: block;
}

.super-template-card-actions details strong {
    margin-top: .35rem;
    color: #9a3412;
}

.super-template-empty-state {
    border: 1px dashed #cbd5e1;
    padding: 2.5rem;
    color: #64748b;
    text-align: center;
}

.super-template-dealer-picker {
    justify-content: flex-end;
}

.super-template-editor-layout {
    display: grid;
    align-items: start;
    gap: 1rem;
    grid-template-columns: minmax(380px, .82fr) minmax(520px, 1.35fr);
}

.super-template-editor-form,
.super-template-preview-panel {
    min-width: 0;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(15, 31, 57, .06);
}

.super-template-editor-section {
    padding: 1rem;
}

.super-template-editor-section + .super-template-editor-section {
    border-top: 1px solid #e7ecf2;
}

.super-template-editor-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
}

.super-template-editor-section-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: .95rem;
    font-weight: 800;
}

.super-template-editor-section-head p {
    margin: .2rem 0 0;
    color: #718096;
    font-size: .75rem;
}

.super-template-editor-section-head > span {
    color: #64748b;
    font-size: .7rem;
    font-weight: 750;
}

.super-template-form-grid,
.super-template-default-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.super-template-form-grid {
    grid-template-columns: minmax(0, 1fr) 120px;
}

.super-template-field.is-full {
    grid-column: 1 / -1;
}

.super-template-field label,
.super-template-screenshot-editor label,
.super-template-hero-editor label {
    display: block;
    margin-bottom: .35rem;
    color: #344258;
    font-size: .75rem;
    font-weight: 750;
}

.super-template-screenshot-editor,
.super-template-hero-editor {
    display: grid;
    align-items: center;
    gap: .9rem;
    grid-template-columns: 160px minmax(0, 1fr);
}

.super-template-screenshot-current,
.super-template-hero-current {
    display: grid;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    place-items: center;
    border: 1px solid #d5dde8;
    border-radius: 6px;
    background: #eef2f6;
    color: #718096;
    font-size: .7rem;
}

.super-template-screenshot-editor small,
.super-template-hero-editor small {
    display: block;
    margin-top: .35rem;
    color: #718096;
    font-size: .7rem;
}

.super-template-color-control {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: .65rem;
    border: 1px solid #ced6e0;
    border-radius: 6px;
    padding: .3rem .55rem;
}

.super-template-color-control input[type="color"] {
    width: 34px;
    height: 26px;
    border: 0;
    padding: 0;
    background: transparent;
}

.super-template-color-control output {
    color: #344258;
    font-size: .75rem;
    font-weight: 750;
}

.super-template-toggle {
    display: flex !important;
    min-height: 38px;
    align-items: center;
    gap: .5rem;
    margin: 0 !important;
    border: 1px solid #ced6e0;
    border-radius: 6px;
    padding: .45rem .6rem;
}

.super-template-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #dce3ec;
    padding: .85rem 1rem;
    background: #f8fafc;
}

.super-template-save-bar span {
    color: #64748b;
    font-size: .72rem;
}

.super-template-preview-panel {
    position: sticky;
    top: 1rem;
    overflow: hidden;
}

.super-template-preview-head {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #dce3ec;
    padding: .75rem 1rem;
}

.super-template-preview-head span,
.super-template-preview-head strong {
    display: block;
}

.super-template-preview-head span {
    color: #718096;
    font-size: .68rem;
    font-weight: 750;
    text-transform: uppercase;
}

.super-template-preview-head strong {
    margin-top: .15rem;
    color: #0f172a;
    font-size: .86rem;
}

.super-template-preview-actions {
    display: flex;
    align-items: center;
    gap: .25rem;
    border: 1px solid #d8e0eb;
    border-radius: 6px;
    padding: .2rem;
    background: #f3f6fa;
}

.super-template-preview-actions button {
    min-height: 30px;
    border: 0;
    border-radius: 4px;
    padding: .35rem .6rem;
    background: transparent;
    color: #526176;
    font-size: .7rem;
    font-weight: 750;
}

.super-template-preview-actions button.is-active {
    background: #ffffff;
    color: #0f66f2;
    box-shadow: 0 1px 4px rgba(15, 31, 57, .12);
}

.super-template-preview-actions .super-template-refresh-preview {
    display: grid;
    width: 30px;
    padding: 0;
    place-items: center;
}

.super-template-refresh-preview svg {
    width: 16px;
    height: 16px;
}

.super-template-preview-media {
    position: relative;
    min-height: 360px;
    padding: .75rem;
    background: #edf1f6;
}

.super-template-preview-viewport {
    width: 100%;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.super-template-preview-viewport iframe {
    display: block;
    width: 1280px;
    height: 800px;
    border: 0;
    background: #ffffff;
    transform: scale(.5);
    transform-origin: top left;
}

.super-template-preview-loading {
    position: absolute;
    z-index: 2;
    inset: .75rem;
    display: grid;
    place-items: center;
    background: rgba(241, 245, 249, .88);
    color: #526176;
    font-size: .75rem;
    font-weight: 750;
    pointer-events: none;
}

.super-template-preview-loading[hidden] {
    display: none;
}

.super-template-preview-unavailable {
    display: grid;
    min-height: 360px;
    place-items: center;
    padding: 2rem;
    color: #64748b;
    text-align: center;
}

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

    .super-template-editor-layout {
        grid-template-columns: 1fr;
    }

    .super-template-preview-panel {
        position: static;
        order: -1;
    }
}

@media (max-width: 767.98px) {
    .super-template-upload-panel,
    .super-template-grid,
    .super-template-form-grid,
    .super-template-default-grid,
    .super-template-screenshot-editor,
    .super-template-hero-editor {
        grid-template-columns: 1fr;
    }

    .super-template-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .super-template-toolbar > form:first-child,
    .super-template-dealer-picker {
        align-items: stretch;
        flex-direction: column;
    }

    .super-template-toolbar .form-select,
    .super-template-dealer-picker .form-select {
        width: 100%;
    }

    .super-template-toolbar-summary {
        margin-left: 0;
    }

    .super-template-editor-layout {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .super-template-editor-form,
    .super-template-preview-panel,
    .super-template-preview-media,
    .super-template-preview-viewport {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .super-template-editor-form {
        margin-top: 1rem;
    }

    .super-template-field.is-full {
        grid-column: auto;
    }

    .super-template-save-bar,
    .super-template-preview-head {
        align-items: stretch;
        flex-direction: column;
    }
}

.website-theme-customizer {
    position: relative;
    top: auto;
    overflow: visible;
    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-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.website-theme-preview-actions > span {
    border: 1px solid #d8e1ed;
    border-radius: 999px;
    padding: .25rem .48rem;
    background: #ffffff;
    color: #52627a;
    font-size: .62rem;
    font-weight: 750;
    letter-spacing: .02em;
    text-transform: none;
}

.website-theme-preview-actions button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--theme-blue);
    font-size: .78rem;
    font-weight: 750;
}

.website-theme-preview-actions button:hover,
.website-theme-preview-actions button:focus-visible {
    text-decoration: underline;
}

.website-theme-preview-media {
    position: relative;
    aspect-ratio: 8 / 5;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #e9eef5;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.website-theme-preview-loading {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(241, 245, 249, .86);
    color: #52627a;
    font-size: .72rem;
    font-weight: 700;
    pointer-events: none;
}

.website-theme-preview-loading[hidden] {
    display: none;
}

.website-theme-preview-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
}

.website-theme-preview-viewport iframe {
    display: block;
    width: 1280px;
    height: 800px;
    border: 0;
    background: #ffffff;
    transform: scale(.3);
    transform-origin: top left;
}

.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-settings [data-template-options-panel] {
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
}

.website-custom-theme-library {
    margin-top: 1.25rem;
    border-top: 1px solid #e8edf4;
    padding-top: 1rem;
}

.website-custom-theme-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.website-custom-theme-head h3 {
    margin: .15rem 0 0;
    color: var(--theme-ink);
    font-size: .95rem;
}

.website-custom-theme-count {
    display: grid;
    min-width: 28px;
    min-height: 28px;
    place-items: center;
    border-radius: 999px;
    background: var(--theme-blue-soft);
    color: var(--theme-blue);
    font-size: .72rem;
    font-weight: 800;
}

.website-custom-theme-library > p {
    margin: .45rem 0 .75rem;
    color: var(--theme-muted);
    font-size: .75rem;
    line-height: 1.45;
}

.website-custom-theme-list {
    display: grid;
    gap: .45rem;
    max-height: 230px;
    overflow-y: auto;
    padding-right: .15rem;
}

.website-custom-theme-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: .35rem;
}

.website-custom-theme-apply {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    gap: .55rem;
    border: 1px solid #d5deea;
    border-radius: 6px;
    padding: .45rem .6rem;
    background: #ffffff;
    color: #26354d;
    text-align: left;
}

.website-custom-theme-apply:hover,
.website-custom-theme-apply:focus-visible {
    border-color: var(--theme-blue);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(15, 102, 242, .12);
}

.website-custom-theme-apply strong,
.website-custom-theme-apply small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-custom-theme-apply strong {
    font-size: .76rem;
}

.website-custom-theme-apply small {
    margin-top: .1rem;
    color: var(--theme-muted);
    font-size: .65rem;
}

.website-custom-theme-apply b {
    color: var(--theme-blue);
    font-size: .7rem;
}

.website-custom-theme-delete {
    display: grid;
    min-height: 48px;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    color: #7c899d;
    font-size: 1.15rem;
}

.website-custom-theme-delete:hover,
.website-custom-theme-delete:focus-visible {
    border-color: #fecaca;
    outline: 0;
    background: #fff5f5;
    color: #b42318;
}

.website-custom-theme-empty {
    border: 1px dashed #d5deea;
    border-radius: 6px;
    padding: .7rem;
    background: #f8fafc;
    text-align: center;
}

.website-custom-theme-save {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem;
    margin-top: .65rem;
}

.website-custom-theme-save .form-control {
    min-width: 0;
    min-height: 42px;
    border-color: #d5deea;
    border-radius: 6px;
    font-size: .78rem;
}

.website-custom-theme-save .dashboard-secondary-btn {
    min-height: 42px;
    padding-inline: .7rem;
    white-space: nowrap;
}

.website-custom-theme-status {
    display: block;
    min-height: 1.1rem;
    margin-top: .45rem;
    color: #087a43;
    font-size: .7rem;
    line-height: 1.4;
}

.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-width-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: .7rem 1rem;
    margin-top: 1rem;
    border: 1px solid #bfd5f5;
    border-radius: 9px;
    padding: .85rem;
    background: #f4f8ff;
}

.website-theme-width-control p {
    margin: .15rem 0 0;
    color: var(--theme-muted);
    font-size: .73rem;
    line-height: 1.45;
}

.website-theme-width-control .form-select {
    min-height: 44px;
    align-self: center;
    border-color: #9bbce9;
    border-radius: 6px;
    background-color: #ffffff;
    color: #17243a;
    font-size: .82rem;
    font-weight: 750;
}

.website-theme-width-help {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.website-theme-width-help span {
    border-radius: 5px;
    padding: .45rem .55rem;
    background: rgba(255, 255, 255, .8);
    color: var(--theme-muted);
    font-size: .65rem;
    line-height: 1.4;
}

.website-theme-width-help strong {
    display: block;
    margin-bottom: .05rem;
    color: #26354d;
    font-size: .68rem;
}

.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;
    }

    .website-custom-theme-save {
        grid-template-columns: minmax(0, 1fr);
    }

    .website-custom-theme-save .dashboard-secondary-btn {
        justify-content: center;
    }

    .website-theme-width-control,
    .website-theme-width-help {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 992px) {
    .website-theme-layout {
        height: auto;
        min-height: 0;
        grid-template-columns: minmax(0, 1.9fr) minmax(380px, .9fr);
        gap: 1rem;
        align-items: start;
    }

    .website-theme-library {
        display: grid;
        height: min(800px, calc(100dvh - 8rem));
        min-height: 620px;
        max-height: none;
        grid-template-rows: auto auto;
        align-content: start;
        border: 1px solid var(--theme-border);
        border-radius: 8px;
        padding: .8rem 0 .45rem .8rem;
        background: #ffffff;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: 0 8px 28px rgba(15, 31, 57, .06);
        scrollbar-color: #7f93ad #edf2f7;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
    }

    .website-theme-section-head {
        position: sticky;
        top: -.8rem;
        z-index: 4;
        margin-right: .8rem;
        padding: .8rem 0 .7rem;
        background: #ffffff;
    }

    .website-template-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: 0;
        align-content: start;
        gap: .6rem;
        overflow: visible;
        padding: .15rem .8rem .35rem .15rem;
    }

    .website-theme-library::-webkit-scrollbar {
        width: 10px;
    }

    .website-theme-library::-webkit-scrollbar-track {
        border-radius: 999px;
        background: #edf2f7;
    }

    .website-theme-library::-webkit-scrollbar-thumb {
        border: 2px solid #edf2f7;
        border-radius: 999px;
        background: #7f93ad;
    }

    .website-template-grid:focus-visible {
        outline: 3px solid rgba(15, 102, 242, .2);
        outline-offset: 3px;
    }

    .website-template-copy {
        min-height: 54px;
        padding: .48rem .55rem;
    }

    .website-template-visual-caption {
        min-height: 46px;
        padding: .45rem .52rem;
    }

    .website-template-visual-caption strong {
        font-size: .76rem;
    }

    .website-template-copy strong {
        font-size: .8rem;
    }

    .website-template-default-palette {
        gap: .24rem;
    }

    .website-template-default-palette i {
        width: 13px;
        height: 13px;
        flex-basis: 13px;
    }

    .website-template-copy small,
    .website-template-selection-label {
        font-size: .62rem;
    }

    .website-template-description {
        min-height: 0;
        padding: 0 .55rem .4rem;
        font-size: .66rem;
    }

    .website-template-card-actions {
        padding: .36rem .55rem;
    }

    .website-template-card-actions a {
        font-size: .7rem;
    }

    .website-theme-customizer {
        position: relative;
        top: auto;
        height: auto;
        min-height: 0;
        overflow: visible;
        overscroll-behavior: auto;
        border: 1px solid var(--theme-border);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 12px 34px rgba(15, 31, 57, .11);
    }

    .website-theme-preview {
        position: relative;
        top: auto;
        z-index: 1;
        border: 0;
        border-bottom: 1px solid var(--theme-border);
        border-radius: 0;
        box-shadow: none;
    }

    .website-theme-settings {
        margin-top: 0;
        border: 0;
        border-radius: 0;
        background: #ffffff;
        box-shadow: none;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .website-theme-layout {
        grid-template-columns: minmax(0, 1fr) minmax(350px, .85fr);
    }

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

/* ===== 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-sidebar-search {
        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;
    }
}

/* ===== Customer testimonial workflow ===== */

.testimonial-admin-page {
    --testimonial-ink: #10203a;
    --testimonial-muted: #66758d;
    --testimonial-line: #dce4ef;
    --testimonial-gold: #e7a317;
}

.testimonial-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-admin-stats article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .25rem 1rem;
    border: 1px solid var(--testimonial-line);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 31, 57, .05);
}

.testimonial-admin-stats span,
.testimonial-admin-stats small {
    color: var(--testimonial-muted);
}

.testimonial-admin-stats span {
    font-size: .78rem;
    font-weight: 750;
    text-transform: uppercase;
}

.testimonial-admin-stats strong {
    grid-row: span 2;
    color: var(--testimonial-ink);
    font-size: 1.8rem;
    line-height: 1;
}

.testimonial-admin-stats small {
    font-size: .75rem;
}

.testimonial-admin-top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-settings-card,
.testimonial-request-card,
.testimonial-create-card,
.testimonial-request-history,
.testimonial-admin-item {
    border-radius: 10px;
    padding: clamp(1rem, 1.5vw, 1.5rem);
}

.testimonial-panel-heading,
.testimonial-admin-item-head,
.testimonial-list-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.testimonial-panel-heading {
    margin-bottom: 1rem;
}

.testimonial-panel-heading h2,
.testimonial-list-heading h2,
.testimonial-admin-item h3 {
    margin: .2rem 0 0;
    color: var(--testimonial-ink);
}

.testimonial-panel-heading h2,
.testimonial-list-heading h2 {
    font-size: 1.15rem;
}

.testimonial-panel-kicker {
    color: #1769d2;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.testimonial-approval-note,
.testimonial-private-note {
    border-radius: 999px;
    padding: .3rem .55rem;
    font-size: .7rem;
    font-weight: 800;
    white-space: nowrap;
}

.testimonial-approval-note {
    background: #e9f8ef;
    color: #087a43;
}

.testimonial-private-note {
    background: #edf5ff;
    color: #155eef;
}

.testimonial-request-card > p {
    max-width: 60ch;
    margin: -.35rem 0 1rem;
    color: var(--testimonial-muted);
    font-size: .84rem;
    line-height: 1.55;
}

.testimonial-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.testimonial-settings-card .admin-form-grid,
.testimonial-request-card .admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial-form-grid .admin-field-wide {
    grid-column: 1 / -1;
}

.admin-field > span small {
    color: var(--testimonial-muted);
    font-weight: 500;
}

.testimonial-list-heading {
    align-items: end;
    margin: 2rem 0 .75rem;
}

.testimonial-list-heading p {
    max-width: 52ch;
    margin: 0;
    color: var(--testimonial-muted);
    font-size: .82rem;
    text-align: right;
}

.testimonial-admin-list {
    display: grid;
    gap: .85rem;
}

.testimonial-admin-item {
    border-left: 4px solid #e5a51a;
}

.testimonial-admin-item.is-approved {
    border-left-color: #15955d;
}

.testimonial-admin-item h3 {
    font-size: 1.05rem;
}

.testimonial-admin-item-head p {
    margin: .2rem 0 0;
    color: var(--testimonial-muted);
    font-size: .76rem;
}

.testimonial-admin-stars {
    color: var(--testimonial-gold);
    font-size: .9rem;
    letter-spacing: .08em;
}

.testimonial-admin-stars span {
    color: #cbd5e1;
}

.testimonial-admin-status {
    display: grid;
    justify-items: end;
    gap: .25rem;
}

.testimonial-admin-status > span,
.testimonial-request-status {
    border-radius: 999px;
    padding: .3rem .55rem;
    font-size: .7rem;
    font-weight: 800;
}

.testimonial-admin-status > span.is-approved,
.testimonial-request-status.is-completed {
    background: #e9f8ef;
    color: #087a43;
}

.testimonial-admin-status > span.is-pending,
.testimonial-request-status.is-pending {
    background: #fff7df;
    color: #8a5700;
}

.testimonial-request-status.is-expired,
.testimonial-request-status.is-cancelled {
    background: #f1f5f9;
    color: #64748b;
}

.testimonial-admin-status small {
    color: var(--testimonial-muted);
    font-size: .7rem;
}

.testimonial-admin-item > blockquote {
    max-width: 75ch;
    margin: 1rem 0;
    color: #2c3c55;
    font-size: .96rem;
    line-height: 1.65;
}

.testimonial-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.testimonial-admin-actions form,
.testimonial-request-history form {
    margin: 0;
}

.testimonial-delete-btn {
    color: #b42318;
}

.testimonial-edit-panel {
    margin-top: 1rem;
    border-top: 1px solid var(--testimonial-line);
    padding-top: 1rem;
}

.testimonial-empty-state {
    padding: 2.5rem;
    text-align: center;
}

.testimonial-empty-state strong {
    color: var(--testimonial-ink);
    font-size: 1.1rem;
}

.testimonial-empty-state p {
    margin: .4rem 0 0;
    color: var(--testimonial-muted);
}

.testimonial-request-history {
    margin-top: 1rem;
}

.testimonial-request-history .table > :not(caption) > * > * {
    padding: .85rem .75rem;
}

.testimonial-request-history td small {
    display: block;
    margin-top: .15rem;
    color: var(--testimonial-muted);
}

.dealer-testimonials-section {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    background: linear-gradient(180deg, var(--dealer-template-muted, #f5f7fb), #fff);
}

.dealer-testimonials-section.is-page {
    background: #fff;
}

.dealer-testimonials-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.dealer-testimonials-heading > div {
    max-width: 64ch;
}

.dealer-testimonials-heading span,
.testimonial-page-hero > .container > span,
.dealer-testimonial-page-cta span,
.testimonial-request-intro > span {
    color: var(--dealer-primary, #155eef);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dealer-testimonials-heading h2 {
    margin: .4rem 0 0;
    color: var(--dealer-template-ink, #111827);
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
    line-height: 1.12;
}

.dealer-testimonials-heading p {
    margin: .7rem 0 0;
    color: #5d6b80;
    font-size: 1rem;
    line-height: 1.65;
}

.dealer-testimonials-heading > a {
    flex: 0 0 auto;
    color: var(--dealer-primary, #155eef);
    font-weight: 750;
    text-decoration: none;
}

.dealer-testimonials-heading > a:hover {
    text-decoration: underline;
}

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

.dealer-testimonial-card {
    display: flex;
    min-width: 0;
    min-height: 260px;
    flex-direction: column;
    margin: 0;
    border: 1px solid rgba(148, 163, 184, .3);
    border-radius: 14px;
    padding: 1.4rem;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 31, 57, .08);
}

.dealer-testimonial-stars {
    color: #cbd5e1;
    font-size: 1rem;
    letter-spacing: .1em;
}

.dealer-testimonial-stars span {
    color: #e7a317;
}

.dealer-testimonial-card blockquote {
    flex: 1;
    margin: 1rem 0 1.4rem;
    color: #26354d;
    font-size: 1.02rem;
    line-height: 1.7;
}

.dealer-testimonial-card figcaption {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    border-top: 1px solid #edf1f6;
    padding-top: 1rem;
}

.dealer-testimonial-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--dealer-primary, #155eef) 12%, white);
    color: var(--dealer-primary, #155eef);
    font-weight: 850;
}

.dealer-testimonial-card figcaption strong,
.dealer-testimonial-card figcaption small {
    display: block;
}

.dealer-testimonial-card figcaption strong {
    color: #16243a;
    font-size: .88rem;
}

.dealer-testimonial-card figcaption small {
    margin-top: .12rem;
    color: #718096;
    font-size: .7rem;
}

.dealer-testimonial-card figcaption > a {
    color: var(--dealer-primary, #155eef);
    font-size: .72rem;
    font-weight: 750;
}

.testimonial-page-hero {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
    background: linear-gradient(135deg, #0d1728, color-mix(in srgb, var(--dealer-primary, #155eef) 35%, #0d1728));
    color: #fff;
}

.testimonial-page-hero h1 {
    max-width: 14ch;
    margin: .55rem 0 .75rem;
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    line-height: 1.02;
}

.testimonial-page-hero p {
    max-width: 62ch;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1.05rem;
    line-height: 1.65;
}

.dealer-testimonial-page-cta {
    padding: 2.5rem 0 4.5rem;
}

.dealer-testimonial-page-cta > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-radius: 16px;
    padding: 2rem;
    background: #f5f7fb;
}

.dealer-testimonial-page-cta h2 {
    margin: .25rem 0 0;
    color: #15243a;
}

.dealer-testimonial-page-cta > .container > div:last-child {
    display: flex;
    gap: .65rem;
}

.testimonial-request-page {
    min-height: 70vh;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    background: #f3f6fb;
}

.testimonial-request-shell {
    max-width: 780px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #dce4ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 31, 57, .1);
}

.testimonial-request-intro {
    padding: clamp(1.5rem, 5vw, 3rem);
    background: linear-gradient(135deg, #0d1728, color-mix(in srgb, var(--dealer-primary, #155eef) 28%, #0d1728));
    color: #fff;
}

.testimonial-request-intro h1 {
    margin: .5rem 0 .75rem;
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 1.08;
}

.testimonial-request-intro p {
    max-width: 62ch;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    line-height: 1.65;
}

.testimonial-request-form {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.5rem, 5vw, 3rem);
}

.testimonial-request-field > span,
.testimonial-rating-field legend {
    display: block;
    margin-bottom: .45rem;
    color: #26354d;
    font-size: .88rem;
    font-weight: 750;
}

.testimonial-request-field > small {
    display: block;
    margin-top: .35rem;
    color: #718096;
    font-size: .75rem;
}

.testimonial-rating-field {
    margin: 0;
    border: 0;
    padding: 0;
}

.testimonial-rating-options {
    display: flex;
    width: max-content;
    flex-direction: row-reverse;
}

.testimonial-rating-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.testimonial-rating-options label {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 1.8rem;
}

.testimonial-rating-options input:checked ~ label,
.testimonial-rating-options label:hover,
.testimonial-rating-options label:hover ~ label {
    color: #e7a317;
}

.testimonial-rating-options input:focus-visible + label {
    border-radius: 8px;
    outline: 3px solid color-mix(in srgb, var(--dealer-primary, #155eef) 28%, transparent);
}

.testimonial-publication-consent {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    border: 1px solid #dce4ef;
    border-radius: 10px;
    padding: 1rem;
    background: #f8fafc;
    color: #52637a;
    font-size: .82rem;
    line-height: 1.55;
}

.testimonial-publication-consent input {
    flex: 0 0 auto;
    margin-top: .2rem;
}

.testimonial-request-complete {
    padding: clamp(2rem, 6vw, 4rem);
    text-align: center;
}

.testimonial-request-complete > span {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    place-items: center;
    border-radius: 50%;
    background: #e9f8ef;
    color: #087a43;
    font-size: 1.5rem;
    font-weight: 850;
}

.testimonial-request-complete h2 {
    color: #15243a;
}

.testimonial-request-complete p {
    max-width: 55ch;
    margin: 0 auto 1.5rem;
    color: #66758d;
    line-height: 1.65;
}

@media (max-width: 991.98px) {
    .testimonial-admin-top-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

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

@media (max-width: 767.98px) {
    .testimonial-admin-stats,
    .testimonial-form-grid,
    .dealer-testimonials-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .testimonial-list-heading,
    .dealer-testimonials-heading,
    .dealer-testimonial-page-cta > .container {
        align-items: stretch;
        flex-direction: column;
    }

    .testimonial-list-heading p {
        text-align: left;
    }

    .dealer-testimonials-heading > a {
        align-self: flex-start;
    }

    .dealer-testimonial-card {
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .testimonial-settings-card .admin-form-grid,
    .testimonial-request-card .admin-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .testimonial-admin-item-head {
        flex-direction: column;
    }

    .testimonial-admin-status {
        justify-items: start;
    }

    .testimonial-admin-actions > form,
    .testimonial-admin-actions > button {
        width: 100%;
    }

    .testimonial-admin-actions button {
        justify-content: center;
        width: 100%;
        min-height: 44px;
    }

    .dealer-testimonial-page-cta > .container > div:last-child {
        flex-direction: column;
    }

    .testimonial-rating-options label {
        width: 44px;
    }
}

/* ===== Sidebar submenu ===== */

.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);
}

/* Super Admin destinations use recognizable icons instead of workflow-style dots. */
.admin-sidebar #navSuperAdmin.admin-nav-group {
    margin: .2rem 0 .55rem;
    border-left: 0;
}

.admin-sidebar #navSuperAdmin.admin-nav-group .nav-link {
    min-height: 44px;
    margin: .08rem 0;
    gap: .65rem;
    padding: .36rem .55rem;
    border-radius: 8px;
    transition: color .15s ease, background-color .15s ease;
}

.admin-sidebar #navSuperAdmin.admin-nav-group .nav-link::before {
    content: none;
}

.admin-sidebar #navSuperAdmin.admin-nav-group .admin-nav-icon {
    display: inline-grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border: 1px solid rgba(150, 175, 211, .1);
    border-radius: 7px;
    color: #8fa7c7;
    background: rgba(150, 175, 211, .07);
    opacity: 1;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.admin-sidebar #navSuperAdmin.admin-nav-group .admin-nav-icon svg {
    width: 16px;
    height: 16px;
}

.admin-sidebar #navSuperAdmin.admin-nav-group .nav-link:hover {
    color: #f7fbff;
    background: rgba(255, 255, 255, .055);
}

.admin-sidebar #navSuperAdmin.admin-nav-group .nav-link:hover .admin-nav-icon {
    color: #c7dbf6;
    border-color: rgba(150, 175, 211, .2);
    background: rgba(150, 175, 211, .12);
    transform: translateX(1px);
}

.admin-sidebar #navSuperAdmin.admin-nav-group .nav-link.active {
    color: #6ba5ff;
    background: rgba(59, 139, 255, .11);
    box-shadow: inset 2px 0 0 #3b8bff;
}

.admin-sidebar #navSuperAdmin.admin-nav-group .nav-link.active .admin-nav-icon {
    color: #ffffff;
    border-color: #3b8bff;
    background: #2f7ff5;
    box-shadow: 0 4px 12px rgba(47, 127, 245, .25);
}

/* ===== Native dealer email ===== */

.email-inbox-page {
    display: grid;
    max-width: none;
    gap: .9rem;
    color: #0f1d35;
}

.email-workspace-head {
    display: grid;
    grid-template-columns: minmax(220px, auto) minmax(260px, 520px) minmax(280px, auto);
    min-height: 74px;
    border-bottom: 1px solid #e2e8f1;
    padding: 0 0 .9rem;
}

.email-workspace-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.email-workspace-mark {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 7px;
    background: #eaf2ff;
    color: #0b63f6;
}

.email-workspace-mark svg {
    width: 20px;
    height: 20px;
}

.email-workspace-brand p {
    max-width: 46ch;
    margin: .35rem 0 0;
    color: #607089;
    font-size: .78rem;
}

.email-workspace-search {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-height: 46px;
    border: 1px solid #d6dfeb;
    border-radius: 8px;
    padding: 0 .85rem;
    background: #fff;
    color: #617189;
    box-shadow: 0 4px 14px rgba(29, 52, 86, .04);
}

.email-workspace-search:focus-within {
    border-color: #75a8f8;
    box-shadow: 0 0 0 3px rgba(11, 99, 246, .11);
}

.email-workspace-search svg {
    width: 18px;
    height: 18px;
}

.email-workspace-search-submit {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-left: -.35rem;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.email-workspace-search-submit:hover,
.email-workspace-search-submit:focus-visible {
    background: #edf4ff;
    color: #0b63f6;
    outline: 0;
}

.email-workspace-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    padding: .65rem .55rem;
    background: transparent;
    color: #13213a;
}

.email-workspace-search input::placeholder {
    color: #929db0;
}

.email-workspace-search a {
    color: #76869d;
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
}

.email-workspace-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    min-width: 0;
}

.email-language-switcher .btn {
    display: grid;
    min-height: 36px;
    min-width: 40px;
    place-items: center;
    border-color: #d9e1ec;
    padding: .35rem .6rem;
    color: #52627a;
    text-decoration: none;
}

.email-language-switcher .btn.active {
    border-color: #0b63f6;
    background: #0b63f6;
    color: #fff;
}

.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-reading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.email-account-switcher {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.email-account-switcher label {
    color: #52637a;
    font-size: .9rem;
    font-weight: 700;
}

.email-account-switcher .form-select {
    min-width: min(285px, 31vw);
    min-height: 44px;
    border-color: #d6dfeb;
}

.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: 225px minmax(340px, 390px) minmax(440px, 1fr);
    min-width: 0;
    min-height: 680px;
    height: clamp(680px, calc(100vh - 210px), 860px);
    overflow: hidden;
    border: 1px solid #d7e0eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(25, 42, 67, .06);
}

.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: .8rem .7rem;
    background: #fbfcfe;
}

.email-compose-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 7px;
    background: #0b63f6;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 7px 16px rgba(11, 99, 246, .18);
}

.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: .85rem;
}

.email-folder-link {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: .45rem;
    min-height: 40px;
    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: #e8f1ff;
    color: #075bd8;
    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;
    margin-inline: -.1rem;
    border: 1px solid #e0e7f0;
    border-radius: 7px;
    padding: .75rem;
    background: #fff;
    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;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
    border-bottom: 1px solid #e3e9f1;
    padding: 1rem 1.05rem .8rem;
}

.email-message-toolbar > div:first-child {
    display: flex;
    grid-column: 1 / -1;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
}

.email-message-toolbar h2 {
    margin: 0;
    color: #0b1730;
    font-size: 1.25rem;
}

.email-message-tabs {
    display: flex;
    grid-column: 1;
    align-items: center;
    gap: .25rem;
}

.email-message-tabs a {
    min-height: 34px;
    border-radius: 6px;
    padding: .45rem .75rem;
    color: #53627a;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.email-message-tabs a:hover {
    background: #f1f5fa;
    color: #173258;
}

.email-message-tabs a.is-active {
    background: #e8f1ff;
    color: #075bd8;
}

.email-message-toolbar > div:first-child > span {
    color: #7a8799;
    font-size: .78rem;
}

.email-toolbar-actions {
    grid-column: 2;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.email-advanced-search {
    grid-column: 1 / -1;
    width: 100%;
    border-top: 1px solid #edf1f6;
    padding-top: .55rem;
}

.email-advanced-search > summary {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    color: #5e6e84;
    font-size: .75rem;
    font-weight: 700;
    list-style: none;
}

.email-advanced-search > summary::-webkit-details-marker {
    display: none;
}

.email-advanced-search > summary svg {
    width: 15px;
    height: 15px;
}

.email-bulk-actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    min-width: 0;
    border-top: 1px solid #edf1f6;
    padding-top: .65rem;
}

.email-select-all {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #465870;
    font-size: .76rem;
    font-weight: 750;
    white-space: nowrap;
}

.email-select-all input,
.email-message-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #1767e8;
}

.email-bulk-actions > strong {
    margin-right: auto;
    color: #748297;
    font-size: .72rem;
    white-space: nowrap;
}

.email-bulk-actions .form-select {
    width: auto;
    min-width: 120px;
    max-width: 165px;
}

.email-search-form {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    flex: 1 1 180px;
    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 {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    max-height: none;
}

.email-message-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: .55rem;
    min-height: 78px;
    border-bottom: 1px solid #edf1f6;
    padding: 0 .9rem;
    color: #26364d;
}

.email-message-row.has-selection-control {
    grid-template-columns: 20px 28px minmax(0, 1fr);
}

.email-message-row:hover {
    background: #f7faff;
}

.email-message-row.is-checked {
    background: #edf5ff;
    box-shadow: inset 3px 0 #1767e8;
}

.email-message-checkbox {
    margin: 0;
}

.email-message-star {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #1767e8;
    font-size: 1.05rem;
    line-height: 1;
}

.email-message-row-link {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    padding: .75rem 0;
    color: #26364d;
    text-decoration: none;
}

.email-message-row.is-selected {
    background: #e8f1ff;
    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: #0b63f6;
    color: #fff;
    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 {
    min-height: 0;
    overflow-y: auto;
    max-height: none;
    background: #fff;
}

.email-reading-head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 64px;
    border-bottom: 1px solid #e3e9f1;
    padding: .55rem .9rem;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
}

.email-reading-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: .15rem;
    width: 100%;
}

.email-action-btn {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    padding: .45rem .55rem;
    background: transparent;
    color: #334861;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.email-action-btn:hover,
.email-action-btn:focus-visible {
    background: #edf4ff;
    color: #075bd8;
}

.email-action-btn.is-danger:hover,
.email-action-btn.is-danger:focus-visible {
    background: #fff0f1;
    color: #b42332;
}

.email-action-btn > span,
.email-action-btn svg {
    width: 17px;
    height: 17px;
}

.email-forward-action::before {
    content: "\2192";
    font-size: 1.05rem;
    line-height: 1;
}

.email-more-actions {
    position: relative;
    margin-left: auto;
}

.email-more-actions > summary {
    display: grid;
    width: 38px;
    height: 38px;
    cursor: pointer;
    place-items: center;
    border-radius: 6px;
    color: #52627a;
    list-style: none;
}

.email-more-actions > summary::-webkit-details-marker {
    display: none;
}

.email-more-actions > summary:hover,
.email-more-actions[open] > summary {
    background: #edf4ff;
    color: #075bd8;
}

.email-more-actions > summary svg {
    width: 18px;
    height: 18px;
}

.email-more-menu {
    position: absolute;
    top: calc(100% + .35rem);
    right: 0;
    z-index: 5;
    min-width: 170px;
    overflow: hidden;
    border: 1px solid #dce4ee;
    border-radius: 7px;
    padding: .35rem;
    background: #fff;
    box-shadow: 0 14px 32px rgba(20, 38, 66, .14);
}

.email-more-menu button {
    width: 100%;
    min-height: 36px;
    border: 0;
    border-radius: 5px;
    padding: .45rem .65rem;
    background: transparent;
    color: #334861;
    font-size: .78rem;
    font-weight: 650;
    text-align: left;
}

.email-more-menu button:hover,
.email-more-menu button:focus-visible {
    background: #edf4ff;
    color: #075bd8;
}

.email-more-compact-only {
    display: none;
}

.email-mobile-back {
    display: none;
    margin-right: auto;
}

.email-message-detail {
    padding: clamp(1.35rem, 2.4vw, 2.15rem);
}

.email-message-detail h2 {
    margin: 0 0 1.35rem;
    overflow-wrap: anywhere;
    color: #0b1730;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.email-message-sender {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: .75rem;
    border-bottom: 1px solid #e6ebf2;
    padding-bottom: 1rem;
}

.email-message-sender > .email-sender-avatar {
    width: 42px;
    height: 42px;
    font-size: .85rem;
}

.email-message-addresses {
    display: grid;
    gap: .35rem;
    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 > a {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    border: 1px solid #dce4ee;
    border-radius: 6px;
    padding: .35rem .55rem;
    background: #f8fafc;
    color: #35465d;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.email-attachment-list > a:hover,
.email-attachment-list > a:focus-visible {
    border-color: #8bb6ff;
    background: #eff6ff;
    color: #075bd8;
}

.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;
}

.email-password-change-form {
    align-items: stretch;
    flex-direction: column;
    max-width: 320px;
}

.email-password-change-form small {
    color: #64748b;
    font-size: .75rem;
    line-height: 1.45;
}

@media (max-width: 1199.98px) {
    .email-workspace-head {
        grid-template-columns: minmax(220px, 1fr) auto;
    }

    .email-workspace-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 620px;
    }

    .email-client-shell {
        grid-template-columns: 210px 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;
    }

    .email-action-btn {
        width: 40px;
        min-width: 40px;
        justify-content: center;
        padding-inline: 0;
        font-size: 0;
    }

    .email-forward-action::before {
        font-size: 1.05rem;
    }
}

@media (max-width: 991.98px) {
    .email-workspace-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .email-workspace-search {
        grid-column: 1;
        grid-row: auto;
        max-width: none;
    }

    .email-workspace-controls {
        justify-content: space-between;
        width: 100%;
    }

    .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-workspace-head {
        min-height: 0;
    }

    .email-workspace-controls {
        align-items: stretch;
        flex-direction: column;
        gap: .65rem;
    }

    .email-language-switcher {
        align-self: flex-start;
    }

    .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;
        height: auto;
    }

    .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-link {
        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-reading-actions {
        overflow-x: auto;
        padding-bottom: .15rem;
    }

    .email-reading-actions > .email-compact-hide {
        display: none;
    }

    .email-more-compact-only {
        display: block;
    }

    .email-action-btn {
        min-width: 40px;
    }

    .email-message-tabs a {
        flex: 1 1 0;
        text-align: center;
    }

    .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;
    }
}

/* ===== Public pricing page ===== */

.pricing-page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 8vw, 7.5rem) 0 clamp(4rem, 7vw, 6.5rem);
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(44, 157, 255, .3), transparent 28rem),
        radial-gradient(circle at 8% 92%, rgba(245, 181, 44, .13), transparent 23rem),
        linear-gradient(132deg, #07142e 0%, #0b2756 55%, #0d3978 100%);
}

.pricing-page-hero::before,
.pricing-page-hero::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.pricing-page-hero::before {
    width: 32rem;
    height: 32rem;
    top: -22rem;
    right: 12%;
}

.pricing-page-hero::after {
    width: 19rem;
    height: 19rem;
    right: -8rem;
    bottom: -10rem;
}

.pricing-page-kicker,
.pricing-plan-eyebrow {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.pricing-page-kicker {
    color: #8ec5ff;
}

.pricing-page-title {
    max-width: 850px;
    font-size: clamp(2.75rem, 6.2vw, 5.35rem);
    font-weight: 850;
    line-height: .98;
    letter-spacing: -.055em;
}

.pricing-page-lead {
    max-width: 760px;
    color: #d8e6f8;
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    line-height: 1.75;
}

.pricing-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .9rem;
    color: #eef7ff;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: .86rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.pricing-trust-pill span {
    color: #70e1b0;
}

.pricing-hero-note {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .18);
    backdrop-filter: blur(12px);
}

.pricing-hero-note strong {
    display: block;
    margin-bottom: .35rem;
    font-size: 1.05rem;
}

.pricing-hero-note p {
    color: #d7e5f5;
    font-size: .9rem;
    line-height: 1.65;
}

.pricing-hero-note-icon {
    display: grid;
    flex: 0 0 2.8rem;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    color: #08234c;
    border-radius: .8rem;
    background: #f5b52c;
}

.pricing-hero-note-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.pricing-plan-section,
.pricing-compare-section,
.pricing-faq-section {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.pricing-plan-section {
    background: #fff;
}

.pricing-section-intro {
    max-width: 760px;
}

.pricing-plan-card {
    position: relative;
    display: flex;
    min-height: 100%;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dce4f0;
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 16px 45px rgba(23, 32, 51, .07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pricing-plan-card:hover {
    border-color: #b5c9ea;
    box-shadow: 0 24px 60px rgba(23, 32, 51, .12);
    transform: translateY(-4px);
}

.pricing-plan-card.is-featured {
    border: 2px solid var(--pas-blue);
    box-shadow: 0 24px 65px rgba(21, 94, 239, .16);
}

.pricing-popular-label {
    position: absolute;
    top: 0;
    right: 0;
    padding: .6rem 1.05rem;
    color: #fff;
    border-radius: 0 1.1rem 0 1rem;
    background: var(--pas-blue);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.pricing-plan-eyebrow {
    margin-bottom: .65rem;
    color: var(--pas-blue);
}

.pricing-plan-card-head h3 {
    margin-bottom: .7rem;
    font-size: 1.75rem;
    font-weight: 850;
    letter-spacing: -.035em;
}

.pricing-plan-card-head p {
    min-height: 5rem;
    margin: 0;
    color: var(--pas-muted);
    line-height: 1.65;
}

.pricing-plan-price {
    display: flex;
    align-items: flex-end;
    margin-top: 1.5rem;
    color: #0b1934;
}

.pricing-currency {
    margin: .45rem .12rem auto 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.pricing-amount {
    font-size: 3.8rem;
    font-weight: 850;
    line-height: .9;
    letter-spacing: -.06em;
}

.pricing-period {
    margin-left: .45rem;
    color: var(--pas-muted);
    font-size: .92rem;
    font-weight: 650;
}

.pricing-plan-fee {
    margin-top: .7rem;
    color: #08704b;
    font-size: .8rem;
    font-weight: 800;
}

.pricing-plan-highlights {
    display: grid;
    gap: .85rem;
    margin: 1.75rem 0 2rem;
    padding: 1.5rem 0 0;
    list-style: none;
    border-top: 1px solid #e4eaf2;
}

.pricing-plan-highlights li {
    display: flex;
    gap: .7rem;
    color: #334155;
    font-size: .92rem;
    line-height: 1.45;
}

.pricing-check {
    display: grid;
    flex: 0 0 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .05rem;
    place-items: center;
    color: #08704b;
    border-radius: 50%;
    background: #def7ec;
    font-size: .75rem;
    font-weight: 900;
}

.pricing-card-compare {
    margin-top: 1rem;
    color: #526174;
    font-size: .84rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.pricing-card-compare:hover {
    color: var(--pas-blue);
}

.pricing-compare-section {
    border-top: 1px solid #e8edf4;
    background: #f5f8fc;
}

.pricing-table-shell {
    overflow: hidden;
    border: 1px solid #d7e0ec;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 18px 55px rgba(23, 32, 51, .07);
}

.pricing-mobile-plan-switcher {
    display: none;
}

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

.pricing-table-scroll:focus-visible {
    outline: 3px solid rgba(21, 94, 239, .35);
    outline-offset: -3px;
}

.pricing-comparison-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
    color: #263449;
}

.pricing-comparison-table th,
.pricing-comparison-table td {
    padding: 1.05rem 1.15rem;
    border-bottom: 1px solid #e7ecf3;
}

.pricing-comparison-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #fff;
    background: #0c1c3b;
    text-align: center;
}

.pricing-comparison-table thead th:first-child {
    width: 49%;
    text-align: left;
}

.pricing-comparison-table thead th.is-featured {
    background: #124fc5;
}

.pricing-table-plan,
.pricing-table-price {
    display: block;
}

.pricing-table-plan {
    margin-bottom: .15rem;
    font-size: 1rem;
    font-weight: 800;
}

.pricing-table-price {
    color: #dce8ff;
    font-size: 1.2rem;
    font-weight: 850;
}

.pricing-table-price small {
    font-size: .68rem;
    font-weight: 600;
}

.pricing-group-row th {
    padding: 1.15rem;
    color: #102143;
    background: #e8eff9;
    text-align: left;
}

.pricing-group-row span,
.pricing-group-row small {
    display: block;
}

.pricing-group-row span {
    font-size: .98rem;
    font-weight: 850;
}

.pricing-group-row small {
    margin-top: .2rem;
    color: #617189;
    font-size: .75rem;
    font-weight: 500;
}

.pricing-comparison-table tbody th {
    font-weight: 650;
    text-align: left;
}

.pricing-feature-name,
.pricing-comparison-table tbody th small {
    display: block;
}

.pricing-comparison-table tbody th small {
    max-width: 560px;
    margin-top: .25rem;
    color: #7a8799;
    font-size: .75rem;
    font-weight: 450;
    line-height: 1.45;
}

.pricing-comparison-table tbody td,
.pricing-comparison-table tfoot td {
    width: 17%;
    text-align: center;
}

.pricing-comparison-table tbody td.is-featured,
.pricing-comparison-table tfoot td.is-featured {
    background: #f5f8ff;
}

.pricing-included {
    color: #08704b;
    font-size: .82rem;
    font-weight: 800;
}

.pricing-included > span:first-child {
    display: inline-grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    border-radius: 50%;
    background: #dcf8eb;
}

.pricing-not-included {
    color: #b3becb;
    font-size: 1.3rem;
}

.pricing-cell-value {
    color: #15274a;
    font-size: .8rem;
    font-weight: 850;
}

.pricing-comparison-table tfoot th,
.pricing-comparison-table tfoot td {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 0;
}

.pricing-comparison-table tfoot th {
    color: #102143;
    font-weight: 850;
}

.pricing-table-note {
    margin: 1rem 0 0;
    color: #728097;
    font-size: .78rem;
    line-height: 1.55;
}

.pricing-guidance-section {
    padding: 0 0 clamp(4.5rem, 8vw, 7rem);
    background: #f5f8fc;
}

.pricing-guidance-card {
    padding: clamp(2rem, 5vw, 4rem);
    color: #fff;
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 85% 0, rgba(51, 147, 255, .32), transparent 22rem),
        #0a1b3a;
    box-shadow: 0 22px 65px rgba(10, 27, 58, .19);
}

.pricing-guidance-card .section-kicker {
    color: #87bdff;
}

.pricing-guidance-card .section-copy {
    color: #c9d7e9;
}

.pricing-faq-section {
    background: #fff;
}

.pricing-faq-card {
    height: 100%;
    padding: 1.75rem;
    border: 1px solid #dfe6ef;
    border-radius: 1rem;
    background: #fff;
}

.pricing-faq-card h3 {
    margin-bottom: .65rem;
    color: #102143;
    font-size: 1.05rem;
    font-weight: 800;
}

.pricing-faq-card p {
    margin: 0;
    color: #64748b;
    font-size: .92rem;
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .pricing-page-hero {
        text-align: center;
    }

    .pricing-page-lead {
        margin-right: auto;
        margin-left: auto;
    }

    .pricing-page-hero .d-flex {
        justify-content: center;
    }

    .pricing-hero-note {
        max-width: 620px;
        margin: 0 auto;
        text-align: left;
    }

    .pricing-plan-card-head p {
        min-height: 0;
    }

    .pricing-mobile-plan-switcher {
        display: grid;
        gap: 1rem;
        padding: 1.1rem;
        border-bottom: 1px solid #d7e0ec;
        background: #fff;
    }

    .pricing-mobile-plan-switcher-copy {
        display: grid;
        gap: .15rem;
        color: #102143;
    }

    .pricing-mobile-plan-switcher-copy strong {
        font-size: 1rem;
        font-weight: 850;
    }

    .pricing-mobile-plan-switcher-copy span {
        color: #66758b;
        font-size: .8rem;
    }

    .pricing-mobile-plan-options {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .45rem;
    }

    .pricing-mobile-plan-option {
        display: grid;
        min-width: 0;
        min-height: 3.65rem;
        place-content: center;
        gap: .1rem;
        padding: .65rem .35rem;
        color: #24344d;
        border: 1px solid #cfd9e7;
        border-radius: .7rem;
        background: #f8fafd;
        font: inherit;
        line-height: 1.15;
        text-align: center;
        cursor: pointer;
    }

    .pricing-mobile-plan-option span {
        font-size: .82rem;
        font-weight: 850;
    }

    .pricing-mobile-plan-option small {
        color: #6d7b90;
        font-size: .68rem;
        font-weight: 700;
    }

    .pricing-mobile-plan-option:hover {
        border-color: #86a8e5;
        background: #f1f6ff;
    }

    .pricing-mobile-plan-option:focus-visible {
        outline: 3px solid rgba(21, 94, 239, .28);
        outline-offset: 2px;
    }

    .pricing-mobile-plan-option.is-active {
        color: #fff;
        border-color: #124fc5;
        background: #124fc5;
        box-shadow: 0 8px 18px rgba(18, 79, 197, .2);
    }

    .pricing-mobile-plan-option.is-active small {
        color: #dce8ff;
    }

    .pricing-table-scroll {
        overflow-x: visible;
    }

    .pricing-comparison-table {
        min-width: 0;
        table-layout: fixed;
    }

    .pricing-comparison-table [data-pricing-plan-column]:not(.is-mobile-selected) {
        display: none;
    }

    .pricing-comparison-table thead th:first-child,
    .pricing-comparison-table tbody th:first-child {
        width: 62%;
    }

    .pricing-comparison-table [data-pricing-plan-column].is-mobile-selected {
        width: 38%;
    }
}

@media (max-width: 767.98px) {
    .pricing-page-title {
        font-size: clamp(2.55rem, 13vw, 4rem);
    }

    .pricing-comparison-table th,
    .pricing-comparison-table td {
        padding: .9rem .85rem;
    }

    .pricing-comparison-table thead th:first-child,
    .pricing-comparison-table tbody th:first-child {
        position: static;
        width: 62%;
        background: #fff;
        box-shadow: none;
    }

    .pricing-comparison-table thead th:first-child {
        background: #0c1c3b;
    }

    .pricing-group-row th:first-child {
        position: static;
        background: #e8eff9;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-plan-card {
        transition: none;
    }
}

/* ===== Service page control panel and public scheduler ===== */

.service-admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.service-admin-stats article {
    display: grid;
    gap: .25rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid #dfe6ef;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 34, 59, .045);
}

.service-admin-stats span,
.service-admin-stats small {
    color: #738095;
    font-size: .76rem;
}

.service-admin-stats strong {
    color: #132441;
    font-size: 1.45rem;
    line-height: 1.2;
}

.service-admin-stats strong.is-positive {
    color: #08704b;
}

.service-admin-stats strong.is-muted {
    color: #8a96a8;
}

.service-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
    gap: 1.25rem;
    align-items: start;
}

.service-admin-main,
.service-admin-aside {
    display: grid;
    gap: 1.25rem;
}

.service-admin-aside {
    position: sticky;
    top: 1rem;
}

.service-admin-panel {
    padding: 1.35rem;
    border-radius: 1rem;
}

.service-admin-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5ebf2;
}

.service-admin-panel-head > div:first-child {
    position: relative;
    padding-left: 2.7rem;
}

.service-admin-panel-head.compact > div:first-child {
    padding-left: 0;
}

.service-admin-panel-head h2 {
    margin: 0 0 .25rem;
    color: #142540;
    font-size: 1rem;
    font-weight: 800;
}

.service-admin-panel-head p {
    margin: 0;
    color: #718096;
    font-size: .82rem;
    line-height: 1.5;
}

.service-admin-panel-head a {
    flex: 0 0 auto;
    color: var(--pas-blue);
    font-size: .78rem;
    font-weight: 750;
    text-decoration: none;
}

.service-admin-hero-editor {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
    gap: 1rem;
    align-items: center;
    padding: .85rem;
    border: 1px solid #dfe6ef;
    border-radius: .85rem;
    background: #f8fafc;
}

.service-admin-hero-editor img {
    width: 100%;
    height: 130px;
    border-radius: .65rem;
    object-fit: cover;
}

.service-admin-step {
    position: absolute;
    top: -.15rem;
    left: 0;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: #fff;
    border-radius: .65rem;
    background: #155eef;
    font-size: .75rem;
    font-weight: 850;
}

.service-admin-switch {
    flex: 0 0 auto;
    padding: .65rem .8rem .65rem 2.9rem;
    border: 1px solid #dbe4ef;
    border-radius: .75rem;
    background: #f8fafc;
    font-size: .8rem;
    font-weight: 700;
}

.service-admin-switch .form-check-input {
    margin-left: -2.15rem;
}

.service-admin-list {
    display: grid;
    gap: .65rem;
}

.service-admin-service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .7rem;
    align-items: center;
    padding: .6rem;
    border: 1px solid #e0e7f0;
    border-radius: .8rem;
    background: #f9fbfd;
}

.service-admin-remove {
    padding: .45rem .6rem;
    color: #b4232f;
    border: 0;
    background: transparent;
    font-size: .76rem;
    font-weight: 750;
}

.service-admin-remove:disabled {
    color: #a9b2bf;
}

.service-admin-inline-note {
    margin-top: 1rem;
    padding: .8rem 1rem;
    color: #5f6d81;
    border-left: 3px solid #8ab6ff;
    border-radius: 0 .65rem .65rem 0;
    background: #f3f7fd;
    font-size: .77rem;
    line-height: 1.55;
}

.service-admin-detail-pages {
    display: grid;
    gap: .65rem;
}

.service-admin-detail-pages article {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: .8rem .9rem;
    border: 1px solid #e0e7f0;
    border-radius: .8rem;
    background: #f9fbfd;
}

.service-admin-detail-image {
    display: grid;
    width: 92px;
    height: 70px;
    place-items: center;
    overflow: hidden;
    color: #8793a5;
    border: 1px dashed #cbd6e3;
    border-radius: .65rem;
    background: #fff;
    font-size: .68rem;
    font-weight: 700;
}

.service-admin-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-admin-detail-copy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .25rem .6rem;
    align-items: center;
    min-width: 0;
}

.service-admin-detail-pages article strong {
    color: #26364d;
    font-size: .82rem;
}

.service-admin-detail-copy small {
    grid-column: 2;
    overflow: hidden;
    color: #718096;
    font-size: .7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-admin-detail-actions {
    display: flex;
    gap: .7rem;
    flex: 0 0 auto;
}

.service-admin-detail-image-controls {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto auto;
    gap: .6rem;
    align-items: center;
    padding-top: .75rem;
    border-top: 1px solid #e3e9f0;
}

.service-admin-detail-pages article a {
    color: #155eef;
    font-size: .75rem;
    font-weight: 750;
    text-decoration: none;
}

.service-admin-schedule-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 240px));
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.service-admin-week {
    overflow: hidden;
    border: 1px solid #dfe6ef;
    border-radius: .9rem;
}

.service-admin-week-head,
.service-admin-day {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(120px, .7fr) minmax(120px, .7fr);
    gap: 1rem;
    align-items: center;
}

.service-admin-week-head {
    padding: .65rem 1rem;
    color: #718096;
    background: #f3f6fa;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.service-admin-day {
    padding: .7rem 1rem;
    border-top: 1px solid #e7ecf2;
    background: #fbfcfe;
    transition: background .15s ease;
}

.service-admin-day.is-enabled {
    background: #fff;
}

.service-admin-day:not(.is-enabled) input[type="time"] {
    color: #a4afbd;
    background: #f2f4f7;
}

.service-admin-day .form-check-label {
    color: #26364d;
    font-size: .84rem;
    font-weight: 750;
}

.service-admin-blocked-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1.25rem;
}

.service-admin-blocked-head h3 {
    margin: 0 0 .2rem;
    color: #26364d;
    font-size: .86rem;
    font-weight: 800;
}

.service-admin-blocked-head p {
    max-width: 620px;
    margin: 0;
    color: #718096;
    font-size: .76rem;
    line-height: 1.5;
}

.service-admin-blocked-list {
    display: grid;
    gap: .55rem;
    margin-top: .8rem;
}

.service-admin-blocked-row {
    display: grid;
    grid-template-columns: minmax(0, 280px) auto;
    gap: .6rem;
    align-items: center;
    justify-content: start;
}

.service-admin-slot-list,
.service-admin-bookings {
    display: grid;
    gap: .55rem;
}

.service-admin-slot-list > div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    padding: .7rem .8rem;
    border: 1px solid #e2e8f0;
    border-radius: .7rem;
    background: #fbfdff;
    font-size: .76rem;
    font-weight: 700;
}

.service-admin-slot-list em {
    color: #08704b;
    font-size: .67rem;
    font-style: normal;
    text-transform: uppercase;
}

.service-admin-empty {
    display: grid;
    gap: .35rem;
    padding: 1.1rem;
    color: #718096;
    border: 1px dashed #cad5e3;
    border-radius: .8rem;
    background: #f8fafc;
    font-size: .78rem;
    line-height: 1.5;
}

.service-admin-empty strong {
    color: #34445b;
}

.service-admin-bookings a {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: .7rem;
    align-items: center;
    padding: .65rem;
    color: #26364d;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    text-decoration: none;
}

.service-admin-bookings a:hover {
    border-color: #a9c5ef;
    background: #f7faff;
}

.service-admin-bookings time {
    display: grid;
    padding: .45rem;
    color: #155eef;
    border-radius: .6rem;
    background: #edf4ff;
    text-align: center;
}

.service-admin-bookings time strong {
    font-size: .76rem;
}

.service-admin-bookings time span,
.service-admin-bookings a > span small {
    font-size: .65rem;
}

.service-admin-bookings a > span {
    display: grid;
    gap: .2rem;
    min-width: 0;
}

.service-admin-bookings a > span strong,
.service-admin-bookings a > span small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-admin-bookings a > span strong {
    font-size: .78rem;
}

.service-admin-bookings a > span small {
    color: #748196;
}

.service-admin-savebar {
    position: sticky;
    bottom: .75rem;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-top: 1.25rem;
    padding: .9rem 1rem;
    border: 1px solid #d7e0eb;
    border-radius: .9rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 15px 38px rgba(24, 39, 66, .12);
    backdrop-filter: blur(10px);
}

.service-admin-savebar > div {
    display: grid;
    gap: .1rem;
}

.service-admin-savebar strong {
    color: #172842;
    font-size: .82rem;
}

.service-admin-savebar span {
    color: #748196;
    font-size: .72rem;
}

.dealer-service-offerings-section {
    border-bottom: 1px solid rgba(100, 116, 139, .14);
    background: linear-gradient(180deg, rgba(248, 250, 252, .95), #fff);
}

.dealer-service-section-head {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.dealer-service-section-head > div {
    max-width: 720px;
}

.dealer-service-section-head > div > span {
    display: block;
    margin-bottom: .45rem;
    color: var(--dealer-primary, #155eef);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dealer-service-section-head h2 {
    margin-bottom: .45rem;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 850;
    letter-spacing: -.035em;
}

.dealer-service-section-head p {
    margin: 0;
    color: #6b7789;
}

.dealer-service-offerings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
}

.dealer-service-offerings-grid a {
    display: grid;
    min-height: 145px;
    padding: 1.15rem;
    color: #172842;
    border: 1px solid #dfe6ef;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(23, 40, 66, .05);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dealer-service-offerings-grid a:hover {
    border-color: var(--dealer-primary, #155eef);
    box-shadow: 0 18px 38px rgba(23, 40, 66, .1);
    transform: translateY(-3px);
}

.dealer-service-offerings-grid a > span {
    display: grid;
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    place-items: center;
    color: var(--dealer-primary, #155eef);
    border-radius: .6rem;
    background: color-mix(in srgb, var(--dealer-primary, #155eef) 10%, white);
    font-size: .72rem;
    font-weight: 850;
}

.dealer-service-offerings-grid strong {
    align-self: end;
    font-size: .94rem;
}

.dealer-service-offerings-grid a.dealer-service-offering-detail {
    grid-template-rows: auto auto 1fr auto;
}

.dealer-service-offering-detail img {
    width: 100%;
    height: 82px;
    margin-bottom: .9rem;
    border-radius: .65rem;
    object-fit: cover;
}

.dealer-service-offering-detail p {
    margin: .35rem 0 0;
    color: #728096;
    font-size: .75rem;
    line-height: 1.45;
}

.dealer-service-offerings-grid small {
    margin-top: .35rem;
    color: #728096;
    font-weight: 650;
}

.dealer-service-calendar {
    margin-top: .65rem;
    padding: .85rem;
    border: 1px solid #dce4ed;
    border-radius: .9rem;
    background: #f8fafc;
}

.dealer-service-calendar-days {
    display: flex;
    gap: .45rem;
    padding-bottom: .65rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.dealer-service-calendar-days button {
    display: grid;
    flex: 0 0 56px;
    min-height: 60px;
    place-items: center;
    color: #5f6d80;
    border: 1px solid #d9e2ec;
    border-radius: .7rem;
    background: #fff;
}

.dealer-service-calendar-days button span {
    font-size: .63rem;
    font-weight: 750;
    text-transform: uppercase;
}

.dealer-service-calendar-days button strong {
    font-size: 1rem;
}

.dealer-service-calendar-days button.is-active {
    color: #fff;
    border-color: var(--dealer-primary, #155eef);
    background: var(--dealer-primary, #155eef);
}

.dealer-service-calendar-times {
    padding-top: .75rem;
    border-top: 1px solid #e1e7ee;
}

.dealer-service-calendar-times > strong {
    display: block;
    margin-bottom: .6rem;
    color: #26364d;
    font-size: .78rem;
}

.dealer-service-calendar-times > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
}

.dealer-service-calendar-times button {
    padding: .5rem .35rem;
    color: #35465d;
    border: 1px solid #d5dfea;
    border-radius: .55rem;
    background: #fff;
    font-size: .72rem;
    font-weight: 750;
}

.dealer-service-calendar-times button:hover,
.dealer-service-calendar-times button.is-selected {
    color: #fff;
    border-color: var(--dealer-primary, #155eef);
    background: var(--dealer-primary, #155eef);
}

.dealer-service-calendar-selection {
    margin-top: .65rem;
    color: #65748a;
    font-size: .7rem;
    font-weight: 650;
}

@media (max-width: 1199.98px) {
    .service-admin-layout {
        grid-template-columns: 1fr;
    }

    .service-admin-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dealer-service-offerings-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .service-admin-stats,
    .service-admin-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-admin-panel-head,
    .dealer-service-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .service-admin-switch {
        align-self: flex-start;
    }

    .service-admin-week-head {
        display: none;
    }

    .service-admin-blocked-head {
        display: grid;
    }

    .service-admin-blocked-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .service-admin-detail-pages article {
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: start;
    }

    .service-admin-detail-image {
        width: 72px;
        height: 60px;
    }

    .service-admin-detail-actions {
        grid-column: 2;
    }

    .service-admin-detail-image-controls {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr);
    }

    .service-admin-detail-image-controls .dashboard-secondary-btn,
    .service-admin-detail-image-controls .service-admin-remove {
        justify-self: start;
    }

    .service-admin-hero-editor {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-admin-day {
        grid-template-columns: 1fr 1fr;
    }

    .service-admin-day > div:first-child {
        grid-column: 1 / -1;
    }

    .dealer-service-offerings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .service-admin-stats,
    .service-admin-aside,
    .service-admin-schedule-toolbar,
    .dealer-service-offerings-grid {
        grid-template-columns: 1fr;
    }

    .service-admin-savebar {
        align-items: stretch;
        flex-direction: column;
    }

    .service-admin-savebar button {
        width: 100%;
    }

    .dealer-service-offerings-grid a {
        min-height: 120px;
    }
}

/* Shared icon-dock navigation contract.
   Templates opt in with mobile_navigation=icon_dock in their manifest;
   template CSS only needs to supply colors and visual details. */
.dealer-public.has-template-mobile-nav .dealer-template-mobile-actions,
.dealer-public.has-template-mobile-nav .dealer-template-mobile-nav {
    display: none;
}

.dealer-public.has-template-mobile-nav .dealer-template-mobile-actions svg,
.dealer-public.has-template-mobile-nav .dealer-template-mobile-nav-icon,
.dealer-public.has-template-mobile-nav .dealer-template-mobile-nav-icon > svg {
    display: block;
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .dealer-public.has-template-mobile-nav {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .dealer-public.has-template-mobile-nav .dealer-mobile-actions {
        display: none;
    }

    .dealer-public.has-template-mobile-nav .dealer-navbar > .container,
    .dealer-public.has-template-mobile-nav .dealer-navbar > .container-fluid {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: .5rem;
        align-items: center;
    }

    .dealer-public.has-template-mobile-nav .dealer-navbar .navbar-toggler {
        grid-column: 1;
        grid-row: 1;
        width: 44px;
        height: 44px;
        margin: 0;
    }

    .dealer-public.has-template-mobile-nav .dealer-navbar .navbar-brand {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        min-width: 0;
        margin: 0;
    }

    .dealer-public.has-template-mobile-nav .dealer-template-mobile-actions {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: .1rem;
    }

    .dealer-public.has-template-mobile-nav .dealer-template-mobile-actions a {
        display: grid;
        width: 42px;
        height: 44px;
        flex: 0 0 42px;
        place-items: center;
        text-decoration: none;
    }

    .dealer-public.has-template-mobile-nav .dealer-template-mobile-actions svg {
        width: 24px;
        height: 24px;
    }

    .dealer-public.has-template-mobile-nav #dealerNav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .dealer-public.has-template-mobile-nav .dealer-template-mobile-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1040;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: 72px;
        padding: .35rem max(.25rem, env(safe-area-inset-right)) calc(.3rem + env(safe-area-inset-bottom)) max(.25rem, env(safe-area-inset-left));
    }

    .dealer-public.has-template-mobile-nav .dealer-template-mobile-nav > a,
    .dealer-public.has-template-mobile-nav .dealer-template-mobile-nav > button {
        display: flex;
        min-width: 0;
        min-height: 60px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: .15rem;
        border: 0;
        padding: .2rem .1rem;
        background: transparent;
        font: inherit;
        font-size: .72rem;
        line-height: 1.1;
        text-align: center;
        text-decoration: none;
    }

    .dealer-public.has-template-mobile-nav .dealer-template-mobile-nav-icon {
        position: relative;
        display: grid;
        width: 30px;
        height: 30px;
        place-items: center;
    }

    .dealer-public.has-template-mobile-nav .dealer-template-mobile-nav-icon > svg {
        width: 26px;
        height: 26px;
    }

    .dealer-public.has-template-mobile-nav .dealer-template-mobile-nav .dealer-saved-count-badge-mobile {
        position: absolute;
        top: -4px;
        right: -7px;
        display: grid;
        min-width: 18px;
        height: 18px;
        place-items: center;
        border-radius: 999px;
        padding: 0 4px;
        font-size: .64rem;
        font-weight: 800;
        line-height: 1;
    }

    .dealer-public.has-template-mobile-nav .dealer-template-mobile-nav .dealer-saved-count-badge-mobile[hidden] {
        display: none;
    }
}
/* Super Admin ISPConfig cron manager */
.cron-advanced-settings {
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    padding: 1rem;
    background: var(--bs-tertiary-bg);
}

.cron-advanced-settings > summary,
.cron-import-control > summary {
    cursor: pointer;
}

.cron-import-control > summary {
    list-style: none;
}

.cron-import-control > summary::-webkit-details-marker {
    display: none;
}

.cron-import-form {
    min-width: min(720px, calc(100vw - 3rem));
}

.cron-schedule-chip {
    display: inline-block;
    white-space: nowrap;
    color: var(--bs-emphasis-color);
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .45rem;
    padding: .35rem .5rem;
}

.cron-command {
    display: block;
    max-width: 34rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--bs-emphasis-color);
}

@media (max-width: 767.98px) {
    .cron-import-form {
        min-width: 0;
    }

    .cron-manager-table .cron-command {
        max-width: 16rem;
    }
}
/* Super Admin operations suite */
.platform-operations-page {
    --ops-navy: #0b1f3a;
    --ops-blue: #1769e0;
    --ops-green: #17875d;
    --ops-amber: #c77908;
    --ops-red: #c83b45;
    --ops-border: #dfe7f2;
    --ops-muted: #62728a;
}

.platform-operations-page .admin-page-head {
    align-items: flex-start;
}

.ops-updated {
    color: var(--ops-muted);
    font-size: .78rem;
    align-self: center;
}

.ops-health-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid #cfe0f5;
    border-radius: 18px;
    background: linear-gradient(120deg, #f7fbff 0%, #edf5ff 100%);
    box-shadow: 0 14px 35px rgba(25, 66, 120, .08);
}

.ops-health-hero.is-healthy { border-color: #bce5d2; background: linear-gradient(120deg, #f6fffb, #eaf9f2); }
.ops-health-hero.is-warning { border-color: #f3d7a8; background: linear-gradient(120deg, #fffdf7, #fff5df); }
.ops-health-hero.is-critical { border-color: #efbcc1; background: linear-gradient(120deg, #fff9fa, #fdebed); }

.ops-health-signal {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(23, 135, 93, .12);
}

.ops-health-signal span,
.ops-status-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--ops-green);
    box-shadow: 0 0 0 5px rgba(23, 135, 93, .13);
}

.ops-health-hero.is-warning .ops-health-signal { background: rgba(199, 121, 8, .12); }
.ops-health-hero.is-warning .ops-health-signal span { background: var(--ops-amber); box-shadow: 0 0 0 5px rgba(199, 121, 8, .14); }
.ops-health-hero.is-critical .ops-health-signal { background: rgba(200, 59, 69, .12); }
.ops-health-hero.is-critical .ops-health-signal span { background: var(--ops-red); box-shadow: 0 0 0 5px rgba(200, 59, 69, .14); }

.ops-eyebrow {
    color: var(--ops-blue);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ops-health-hero h2 {
    margin: .2rem 0 .25rem;
    color: var(--ops-navy);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.ops-health-hero p { margin: 0; color: var(--ops-muted); }
.ops-health-score { color: var(--ops-navy); font-size: 2rem; font-weight: 800; text-align: right; }
.ops-health-score small { display: block; color: var(--ops-muted); font-size: .72rem; font-weight: 600; }

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

.ops-check-card {
    min-width: 0;
    padding: 1rem;
    border-top: 3px solid var(--ops-green);
}

.ops-check-card.is-warning { border-top-color: var(--ops-amber); }
.ops-check-card.is-critical { border-top-color: var(--ops-red); }
.ops-check-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.ops-check-head > div { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.ops-check-head h2 { margin: 0; color: var(--ops-navy); font-size: .96rem; }
.ops-check-card > p { min-height: 2.5rem; margin: .75rem 0; color: var(--ops-muted); font-size: .82rem; }
.ops-check-card.is-warning .ops-status-dot { background: var(--ops-amber); box-shadow: 0 0 0 4px rgba(199, 121, 8, .12); }
.ops-check-card.is-critical .ops-status-dot,
.ops-status-dot.is-critical { background: var(--ops-red); box-shadow: 0 0 0 4px rgba(200, 59, 69, .12); }

.ops-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .28rem .55rem;
    border-radius: 999px;
    background: #edf2f8;
    color: #4c5c72;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}

.ops-status-pill.is-healthy, .ops-status-pill.is-success { background: #e3f6ed; color: #10704c; }
.ops-status-pill.is-warning { background: #fff0d5; color: #9a5b00; }
.ops-status-pill.is-critical { background: #fde8ea; color: #a52732; }
.ops-status-pill.is-info { background: #e8f1ff; color: #1759ad; }
.ops-status-pill.is-neutral { background: #edf2f8; color: #4c5c72; }

.ops-detail-list { margin: 0; padding-top: .75rem; border-top: 1px solid var(--ops-border); }
.ops-detail-list div { display: flex; justify-content: space-between; gap: .75rem; padding: .18rem 0; font-size: .72rem; }
.ops-detail-list dt { color: var(--ops-muted); font-weight: 500; }
.ops-detail-list dd { margin: 0; color: var(--ops-navy); font-weight: 700; text-align: right; overflow-wrap: anywhere; }

.ops-issue-list { padding: .25rem 1rem 1rem; }
.ops-issue-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem; padding: .85rem .4rem; border-bottom: 1px solid #edf1f6; color: inherit; text-decoration: none; }
.ops-issue-item:hover { color: inherit; background: #f8fbff; }
.ops-issue-copy { display: grid; min-width: 0; }
.ops-issue-copy strong { color: var(--ops-navy); font-size: .84rem; }
.ops-issue-copy small { color: var(--ops-muted); font-size: .7rem; }
.ops-issue-copy > span { overflow: hidden; color: #394961; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }

.ops-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.ops-kpi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.05rem;
    overflow: hidden;
    border: 1px solid var(--ops-border);
    border-radius: 15px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(18, 46, 83, .055);
}

.ops-kpi-card::after { position: absolute; inset: 0 auto 0 0; width: 4px; background: #8ba1bc; content: ''; }
.ops-kpi-card.is-primary::after { background: var(--ops-blue); }
.ops-kpi-card.is-success::after { background: var(--ops-green); }
.ops-kpi-card.is-warning::after { background: var(--ops-amber); }
.ops-kpi-card.is-critical::after { background: var(--ops-red); }
.ops-kpi-card:hover { color: inherit; border-color: #c7d6e9; transform: translateY(-1px); }
.ops-kpi-card > span { color: var(--ops-muted); font-size: .75rem; font-weight: 700; }
.ops-kpi-card strong { margin: .15rem 0; color: var(--ops-navy); font-size: 1.65rem; }
.ops-kpi-card small { color: var(--ops-muted); font-size: .7rem; }

.ops-filter-panel { padding: 1rem; }
.ops-plan-badge { display: inline-flex; padding: .28rem .55rem; border: 1px solid #cbd8e9; border-radius: 7px; color: #29415f; background: #f7faff; font-size: .72rem; font-weight: 800; }
.ops-table thead th { border-bottom-color: #dbe4ef; color: #66768d; font-size: .68rem; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }
.ops-table tbody td { border-bottom-color: #edf1f6; color: #263950; font-size: .78rem; }
.ops-table-count { color: var(--ops-muted); font-size: .75rem; font-weight: 700; }

.ops-score-ring {
    --score: 0;
    position: relative;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--ops-green) calc(var(--score) * 1%), #e7edf4 0);
}

.ops-score-ring::before { position: absolute; inset: 5px; border-radius: inherit; background: #fff; content: ''; }
.ops-score-ring strong { position: relative; z-index: 1; color: var(--ops-navy); font-size: .78rem; }
.ops-score-ring.is-info { background: conic-gradient(var(--ops-blue) calc(var(--score) * 1%), #e7edf4 0); }
.ops-score-ring.is-warning { background: conic-gradient(var(--ops-amber) calc(var(--score) * 1%), #e7edf4 0); }
.ops-score-ring.is-critical { background: conic-gradient(var(--ops-red) calc(var(--score) * 1%), #e7edf4 0); }

.ops-issue-tags { display: flex; flex-wrap: wrap; gap: .3rem; min-width: 240px; max-width: 420px; }
.ops-issue-tags span { padding: .22rem .42rem; border-radius: 5px; background: #eef3f8; color: #53647a; font-size: .65rem; font-weight: 700; }
.ops-issue-tags .is-critical { background: #fde8ea; color: #a52732; }
.ops-issue-tags .is-warning { background: #fff0d5; color: #945800; }
.ops-issue-tags .is-healthy { background: #e3f6ed; color: #10704c; }
.ops-issue-tags .is-info { background: #e8f1ff; color: #1759ad; }

.ops-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; padding: 2rem; color: var(--ops-muted); text-align: center; }
.ops-empty-state strong { margin-bottom: .25rem; color: var(--ops-navy); }

@media (max-width: 1199.98px) {
    .ops-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ops-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .ops-health-hero { grid-template-columns: auto minmax(0, 1fr); }
    .ops-health-score { grid-column: 1 / -1; padding-top: .75rem; border-top: 1px solid rgba(90, 113, 143, .16); text-align: left; }
    .ops-check-grid, .ops-kpi-grid { grid-template-columns: 1fr; }
    .ops-check-card > p { min-height: 0; }
    .ops-health-table { min-width: 1020px; }
}
.mfa-qr-panel {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 1.25rem 0;
    padding: 1rem;
    border: 1px solid #dbe4f0;
    border-radius: 1rem;
    background: #f8fafc;
}

.mfa-qr-code {
    display: block;
    width: min(220px, 48vw);
    height: auto;
    flex: 0 0 auto;
    border-radius: .75rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.mfa-manual-heading {
    margin: 1.25rem 0 .65rem;
    letter-spacing: .04em;
}

.mfa-setup-key {
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .mfa-qr-panel {
        flex-direction: column;
        text-align: center;
    }
}
