:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --line: #d9e0e7;
    --text: #17212b;
    --muted: #667587;
    --accent: #1f7a5f;
    --accent-strong: #17664f;
    --sidebar: #18202a;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    margin: 0;
}

a {
    color: inherit;
}

.app-shell,
.area-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar,
.area-sidebar {
    background: var(--sidebar);
    color: #eef4f8;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand-lockup {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.brand-lockup strong,
.brand-lockup span {
    display: block;
}

.brand-lockup span {
    color: #a8b6c3;
    font-size: .82rem;
}

.brand-mark {
    align-items: center;
    background: var(--accent);
    border-radius: 8px;
    color: white;
    display: inline-flex;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.brand-mark.large {
    height: 48px;
    margin-bottom: 1rem;
    width: 48px;
}

.side-nav {
    display: grid;
    gap: .25rem;
    padding: .75rem;
}

.nav-link {
    align-items: center;
    border-radius: 6px;
    color: #dce6ee;
    display: flex;
    gap: .7rem;
    padding: .72rem .85rem;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, .1);
    color: white;
}

.nav-icon {
    color: #9fb2c2;
    width: 1rem;
}

.main {
    min-width: 0;
}

.public-shell {
    background: #ffffff;
    min-height: 100vh;
}

.public-nav {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr auto;
    min-height: 76px;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, .96);
    z-index: 10;
}

.public-brand {
    align-items: center;
    display: flex;
    gap: .65rem;
    text-decoration: none;
}

.public-nav nav {
    display: flex;
    gap: 1.1rem;
    justify-content: center;
}

.public-nav nav a {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.public-actions {
    align-items: center;
    display: flex;
    gap: .6rem;
}

.language-select {
    border: 1px solid #ccd5df;
    border-radius: 6px;
    color: var(--text);
    min-height: 32px;
    padding: .25rem .5rem;
}

.language-flags {
    align-items: center;
    display: inline-flex;
    gap: .35rem;
}

.language-flag {
    align-items: center;
    background: rgba(255, 255, 255, .74);
    border: 1px solid #cbd5df;
    border-radius: 999px;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    width: 34px;
}

.language-flag:hover,
.language-flag.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 122, 95, .18);
    transform: translateY(-1px);
}

.flag-icon {
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
    display: inline-block;
    height: 16px;
    overflow: hidden;
    position: relative;
    width: 22px;
}

.flag-pt {
    background: linear-gradient(90deg, #046a38 0 40%, #da291c 40% 100%);
}

.flag-us {
    background: repeating-linear-gradient(180deg, #b22234 0 1.25px, #fff 1.25px 2.5px);
}

.flag-us::before {
    background: #3c3b6e;
    content: "";
    height: 8.75px;
    left: 0;
    position: absolute;
    top: 0;
    width: 9.5px;
}

.flag-es {
    background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.flag-fr {
    background: linear-gradient(90deg, #0055a4 0 33.33%, #fff 33.33% 66.66%, #ef4135 66.66% 100%);
}

.flag-de {
    background: linear-gradient(180deg, #000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%);
}

.flag-generic {
    background: linear-gradient(135deg, #dbe7ef, #ffffff);
}

.auth-shell {
    background:
        linear-gradient(135deg, rgba(10, 19, 32, .92), rgba(18, 43, 63, .88)),
        linear-gradient(45deg, #07111f, #123448);
    color: white;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.auth-background {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.auth-background::before {
    background:
        linear-gradient(90deg, rgba(80, 220, 180, .18) 1px, transparent 1px),
        linear-gradient(rgba(80, 220, 180, .12) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    inset: 0;
    opacity: .45;
    position: absolute;
}

.auth-background::after {
    background:
        linear-gradient(90deg, transparent 0 8%, rgba(111, 231, 203, .2) 8% 8.4%, transparent 8.4% 100%),
        linear-gradient(180deg, transparent 0 20%, rgba(127, 176, 255, .18) 20% 20.4%, transparent 20.4% 100%);
    background-size: 460px 220px;
    content: "";
    inset: 0;
    opacity: .7;
    position: absolute;
}

.auth-grid {
    background:
        linear-gradient(120deg, transparent 0 30%, rgba(31, 122, 95, .28) 30.2%, transparent 30.6% 100%),
        linear-gradient(300deg, transparent 0 52%, rgba(59, 130, 246, .24) 52.2%, transparent 52.6% 100%);
    inset: 0;
    position: absolute;
}

.auth-topbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 1.25rem clamp(1rem, 4vw, 3rem);
    position: relative;
    z-index: 1;
}

.auth-brand {
    align-items: center;
    color: white;
    display: inline-flex;
    gap: .7rem;
    text-decoration: none;
}

.auth-content {
    align-items: center;
    display: grid;
    min-height: calc(100vh - 86px);
    padding: 2rem 1rem 4rem;
    place-items: center;
    position: relative;
    z-index: 1;
}

.auth-card {
    backdrop-filter: blur(22px);
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
    max-width: 460px;
    padding: clamp(1.25rem, 4vw, 2rem);
    width: min(100%, 460px);
}

.onboarding-card {
    backdrop-filter: blur(22px);
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
    color: white;
    max-width: 540px;
    padding: clamp(1.25rem, 4vw, 2rem);
    width: min(100%, 540px);
}

.onboarding-wide {
    max-width: 920px;
    width: min(100%, 920px);
}

.auth-card-header {
    margin-bottom: 1.25rem;
}

.auth-card h1 {
    font-size: 1.9rem;
    margin: .65rem 0 .45rem;
}

.auth-card p,
.auth-card .eyebrow,
.auth-card label > span,
.auth-links a,
.auth-row a,
.onboarding-card p,
.onboarding-card .eyebrow,
.onboarding-card label > span {
    color: rgba(255, 255, 255, .82);
}

.auth-trust,
.auth-microcopy {
    color: rgba(255, 255, 255, .72);
    font-size: .86rem;
    margin: 0;
}

.auth-check {
    align-items: flex-start;
    display: flex;
    gap: .5rem;
}

.auth-input {
    background: rgba(255, 255, 255, .9);
    border-color: rgba(255, 255, 255, .45);
    min-height: 44px;
}

.auth-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.auth-row a,
.auth-links a {
    font-weight: 700;
    text-decoration: none;
}

.auth-submit {
    min-height: 44px;
}

.auth-links {
    border-top: 1px solid rgba(255, 255, 255, .2);
    display: grid;
    gap: .6rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    text-align: center;
}

.reset-token-box {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 8px;
    color: var(--text);
    display: grid;
    gap: .45rem;
    margin-top: 1rem;
    padding: .85rem;
}

.reset-token-box summary {
    cursor: pointer;
    font-weight: 800;
}

.step-list {
    align-items: center;
    display: flex;
    gap: .55rem;
    margin-bottom: 1.25rem;
}

.step-dot {
    align-items: center;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: rgba(255, 255, 255, .8);
    display: inline-flex;
    font-size: .8rem;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.step-dot.active,
.step-dot.complete {
    background: var(--accent);
    border-color: rgba(255, 255, 255, .72);
    color: white;
}

.step-line {
    background: rgba(255, 255, 255, .26);
    flex: 1;
    height: 2px;
}

.step-line.active {
    background: rgba(111, 231, 203, .72);
}

.account-strip {
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 8px;
    color: var(--text);
    display: grid;
    gap: .2rem;
    margin-bottom: 1rem;
    padding: .85rem 1rem;
}

.account-strip span {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.choice-grid,
.service-card-grid,
.profile-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card,
.service-card {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 8px;
    color: var(--text);
    display: grid;
    gap: .55rem;
    min-height: 160px;
    padding: 1rem;
    text-align: left;
    text-decoration: none;
}

.choice-card:hover,
.service-card.available:hover,
.service-card.selected {
    border-color: #8ee7ca;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

.choice-card p,
.service-card p {
    color: var(--muted);
    margin: 0;
}

.choice-icon {
    align-items: center;
    background: #e7f4ef;
    border-radius: 8px;
    color: var(--accent-strong);
    display: inline-flex;
    font-size: 1.2rem;
    font-weight: 800;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.service-card {
    cursor: pointer;
    width: 100%;
}

.service-card.disabled {
    cursor: not-allowed;
    opacity: .72;
}

.onboarding-actions {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.reset-token-box span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.reset-token-box code {
    white-space: pre-wrap;
    word-break: break-word;
}

.hero-section {
    align-items: center;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    min-height: calc(100vh - 76px);
    padding: 4rem 6vw;
}

.hero-copy h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: .95;
    margin: .5rem 0 1rem;
}

.hero-copy p {
    color: var(--muted);
    font-size: 1.2rem;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.5rem;
}

.hero-panel {
    background: #f6f9fb;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.hero-metric {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}

.hero-metric span {
    color: var(--muted);
    display: block;
}

.hero-metric strong {
    display: block;
    font-size: 1.6rem;
}

.public-band {
    border-top: 1px solid var(--line);
    padding: 4rem 6vw;
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    font-size: 2rem;
    margin: .35rem 0 0;
    max-width: 850px;
}

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

.feature-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}

.feature-grid h3 {
    font-size: 1.05rem;
}

.feature-grid p,
.lead-text {
    color: var(--muted);
}

.contact-band {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.topbar {
    align-items: center;
    background: white;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    min-height: 74px;
    padding: 0 1.5rem;
}

.topbar h1 {
    font-size: 1.08rem;
    margin: 0;
}

.topbar-actions {
    align-items: center;
    display: flex;
    gap: .75rem;
}

.api-pill,
.status {
    background: #e7f4ef;
    border: 1px solid #b8dfd0;
    border-radius: 999px;
    color: var(--accent-strong);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 700;
    padding: .2rem .55rem;
}

.content {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.page-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.page-heading h2 {
    font-size: 1.45rem;
    margin: 0;
}

.eyebrow {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.panel,
.metric-card,
.login-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.panel {
    overflow: hidden;
}

.panel-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: .9rem 1rem;
}

.panel-header h3 {
    font-size: 1rem;
    margin: 0;
}

.panel-header span,
.muted {
    color: var(--muted);
    font-size: .85rem;
}

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

.metric-card {
    padding: 1rem;
}

.metric-card span {
    color: var(--muted);
    display: block;
    font-size: .85rem;
}

.metric-card strong {
    display: block;
    font-size: 2rem;
    margin-top: .25rem;
}

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

.data-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    padding: .75rem 1rem;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #f8fafb;
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
}

.data-table td small {
    color: var(--muted);
    display: block;
}

.inline-form {
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr 1fr auto;
    padding: 1rem;
}

.stack-form {
    display: grid;
    gap: .8rem;
}

.panel .stack-form {
    padding: 1rem;
}

.profile-copy {
    color: var(--muted);
    padding: 1rem;
}

.profile-list {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 1rem;
}

.profile-list div {
    display: grid;
    gap: .2rem;
}

.profile-list dt {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-list dd {
    margin: 0;
    word-break: break-word;
}

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

.portal-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: .85rem;
    padding: 1rem;
}

.portal-card h4 {
    font-size: 1.05rem;
    margin: 0 0 .35rem;
}

.portal-card p {
    color: var(--muted);
    margin: 0;
}

.portal-card-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
}

.mini-list,
.portal-list {
    display: grid;
    gap: .65rem;
    margin: 0;
    padding: 1rem;
}

.mini-list {
    padding: 0;
}

.mini-list div {
    display: grid;
    gap: .2rem;
}

.mini-list dt {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mini-list dd {
    margin: 0;
}

.portal-list {
    color: var(--muted);
    padding-left: 2rem;
}

.empty-state-body {
    color: var(--muted);
    display: grid;
    gap: .25rem;
    padding: 1rem;
}

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

.toolbar {
    min-width: 260px;
}

.login-wrap {
    display: grid;
    min-height: calc(100vh - 120px);
    place-items: center;
}

.login-panel {
    max-width: 420px;
    padding: 2rem;
    width: 100%;
}

.login-panel h2 {
    margin: 0 0 .35rem;
}

.login-panel p {
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.form-control,
.form-select {
    border-color: #ccd5df;
    border-radius: 6px;
}

.stack-form label > span {
    color: var(--muted);
    display: block;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: .3rem;
}

.storefront-hero {
    --storefront-theme: var(--accent);
    align-items: end;
    background: linear-gradient(135deg, color-mix(in srgb, var(--storefront-theme) 13%, white), #ffffff);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    min-height: 420px;
    padding: 4rem 6vw 3rem;
}

.storefront-hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1;
    margin: .6rem 0 1rem;
}

.storefront-hero p {
    color: var(--muted);
    font-size: 1.18rem;
    max-width: 760px;
}

.storefront-logo {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    max-height: 88px;
    max-width: 220px;
    object-fit: contain;
    padding: .5rem;
}

.storefront-contact {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: .45rem;
    padding: 1rem;
}

.storefront-contact h2 {
    font-size: 1rem;
    margin: 0 0 .35rem;
}

.storefront-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}

.storefront-filters {
    background: #f8fafb;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    margin-bottom: 1.25rem;
    padding: 1rem;
}

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

.vehicle-card {
    color: inherit;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}

.vehicle-card-link:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 28px rgba(23, 33, 43, .1);
}

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

.vehicle-card > div {
    padding: 1rem;
}

.vehicle-card h3 {
    font-size: 1.05rem;
    margin: 0;
}

.vehicle-card p {
    color: var(--muted);
    margin: .25rem 0 .85rem;
}

.vehicle-card dl {
    display: grid;
    gap: .5rem;
    margin: 0;
}

.vehicle-card dl div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.vehicle-card dt {
    color: var(--muted);
    font-weight: 700;
}

.vehicle-card dd {
    margin: 0;
}

.vehicle-detail-hero {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    padding: 4rem 6vw;
}

.vehicle-gallery {
    display: grid;
    gap: .75rem;
}

.vehicle-detail-main-image {
    aspect-ratio: 16 / 10;
    background: #eef2f5;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

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

.vehicle-thumbs img {
    aspect-ratio: 1;
    border-radius: 6px;
    object-fit: cover;
    width: 100%;
}

.vehicle-detail-panel {
    align-self: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.vehicle-detail-panel h1 {
    font-size: 2rem;
    margin: 0;
}

.vehicle-price {
    color: var(--accent-strong);
    font-size: 1.6rem;
}

.vehicle-detail-panel dl {
    display: grid;
    gap: .5rem;
    margin: 0;
}

.vehicle-detail-panel dl div {
    display: flex;
    justify-content: space-between;
}

.muted-link {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 1rem;
}

.standx-shell {
    --standx-sidebar: #101820;
    --standx-accent: #1f7a5f;
    --standx-accent-2: #2d5f87;
    background: #eef3f2;
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    min-height: 100vh;
}

.standx-sidebar {
    background:
        linear-gradient(180deg, rgba(31, 122, 95, .16), transparent 34%),
        var(--standx-sidebar);
    color: #edf7f3;
    height: 100vh;
    position: sticky;
    top: 0;
}

.standx-brand {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    gap: .75rem;
    padding: 1rem;
}

.standx-brand strong,
.standx-brand span {
    display: block;
}

.standx-brand span {
    color: #a9c3ba;
    font-size: .82rem;
}

.standx-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--standx-accent), var(--standx-accent-2));
    border-radius: 8px;
    color: white;
    display: inline-flex;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.standx-nav {
    display: grid;
    gap: .35rem;
    padding: .85rem;
}

.standx-nav-link {
    border-left: 3px solid transparent;
    border-radius: 6px;
    color: #d9e8e2;
    font-weight: 700;
    padding: .78rem .9rem;
    text-decoration: none;
}

.standx-nav-link:hover,
.standx-nav-link.active {
    background: rgba(255, 255, 255, .1);
    border-left-color: #77d5b9;
    color: white;
}

.standx-main {
    min-width: 0;
}

.standx-topbar {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    min-height: 76px;
    padding: 0 1.5rem;
}

.standx-topbar h1 {
    font-size: 1.08rem;
    margin: 0;
}

.standx-topbar-actions {
    align-items: center;
    display: flex;
    gap: .75rem;
}

.standx-content {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

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

.standx-url-panel {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.standx-url-panel span {
    color: var(--muted);
    font-weight: 800;
}

.standx-url-panel a {
    color: var(--accent-strong);
    font-weight: 800;
    text-decoration: none;
}

.standx-dashboard-grid {
    padding: 0;
}

.standx-filters {
    background: #f8fafb;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    padding: 1rem;
}

.standx-filters-wide {
    grid-template-columns: repeat(6, minmax(140px, 1fr));
}

.standx-check {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-weight: 700;
    gap: .5rem;
}

.standx-image-cell {
    align-items: center;
    display: grid;
    gap: .45rem;
    min-width: 220px;
}

.standx-logo-preview {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    max-height: 88px;
    max-width: 220px;
    object-fit: contain;
    padding: .5rem;
}

.standx-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.standx-empty {
    min-height: 260px;
}

.standx-stock-table {
    min-width: 1180px;
}

.standx-thumb,
.standx-thumb-placeholder {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    height: 58px;
    width: 78px;
}

.standx-thumb {
    background: #eef2f5;
    object-fit: cover;
}

.standx-thumb-placeholder {
    align-items: center;
    background: #eef2f5;
    color: var(--muted);
    display: inline-flex;
    font-size: .72rem;
    font-weight: 800;
    justify-content: center;
    text-align: center;
}

.standx-table-link {
    color: var(--accent-strong);
    font-weight: 800;
    text-decoration: none;
}

.standx-table-link:hover {
    text-decoration: underline;
}

.standx-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    min-width: 260px;
}

.standx-vehicle-form {
    max-width: 980px;
}

.standx-gallery-panel {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

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

.standx-gallery-grid img {
    aspect-ratio: 16 / 10;
    background: #eef2f5;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.standx-media-status {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 1rem;
}

.standx-media-status article {
    background: #f8fafb;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .9rem;
}

.standx-media-status span {
    color: var(--muted);
    display: block;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.standx-media-status strong {
    display: block;
    font-size: 1.35rem;
    margin-top: .2rem;
}

.standx-media-dashboard {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-warning {
    background: #fff7e8;
    border-color: #f2c879;
    color: #83560a;
}

.standx-media-alert {
    margin: 0 1rem;
}

.standx-media-alert ul {
    margin: .4rem 0 0;
}

.standx-upload-row {
    align-items: end;
    border-top: 1px solid var(--line);
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 280px);
    padding: 1rem;
}

.standx-upload-row label,
.standx-gallery-card-body label {
    display: grid;
    gap: .35rem;
}

.standx-upload-row label > span,
.standx-gallery-card-body label > span {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.standx-gallery-empty {
    align-items: center;
    background: #f8fafb;
    border: 1px dashed #bfcbd6;
    border-radius: 8px;
    color: var(--muted);
    display: grid;
    gap: .25rem;
    margin: 1rem;
    min-height: 160px;
    padding: 1rem;
    place-items: center;
    text-align: center;
}

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

.standx-gallery-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.standx-gallery-card.is-main {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 122, 95, .14);
}

.standx-gallery-image-wrap {
    background: #eef2f5;
    position: relative;
}

.standx-gallery-image-wrap img {
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    width: 100%;
}

.standx-main-badge,
.standx-order-badge {
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    padding: .2rem .55rem;
    position: absolute;
    top: .6rem;
}

.standx-main-badge {
    background: var(--accent);
    color: white;
    left: .6rem;
}

.standx-order-badge {
    background: rgba(16, 24, 32, .82);
    color: white;
    right: .6rem;
}

.standx-gallery-card-body {
    display: grid;
    gap: .75rem;
    padding: .9rem;
}

.standx-gallery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.standx-media-group {
    align-content: start;
}

.standx-media-vehicle-list {
    display: grid;
    gap: .65rem;
}

.standx-media-vehicle {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: inherit;
    display: grid;
    gap: .75rem;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    padding: .65rem;
    text-decoration: none;
}

.standx-media-vehicle:hover {
    border-color: var(--accent);
}

.standx-media-vehicle span {
    display: grid;
    gap: .15rem;
}

.standx-media-vehicle small {
    color: var(--muted);
}

.standx-media-vehicle em {
    color: var(--accent-strong);
    font-style: normal;
    font-weight: 800;
}

.standx-storefront-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.standx-readiness-list {
    display: grid;
    gap: .65rem;
    padding: 1rem;
}

.standx-readiness-item {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: .75rem .85rem;
}

.standx-readiness-item strong {
    min-width: 0;
}

.standx-readiness-item span {
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    padding: .2rem .55rem;
}

.standx-readiness-item.complete {
    background: #f0faf6;
    border-color: #b8dfd0;
}

.standx-readiness-item.complete span {
    background: #dff4ec;
    color: var(--accent-strong);
}

.standx-readiness-item.warning {
    background: #fffaf0;
    border-color: #f2d49c;
}

.standx-readiness-item.warning span {
    background: #fff0cd;
    color: #83560a;
}

.standx-readiness-item.missing {
    background: #fff5f5;
    border-color: #f1b4b4;
}

.standx-readiness-item.missing span {
    background: #ffe0e0;
    color: #9b2c2c;
}

.standx-storefront-preview {
    --standx-preview-color: var(--accent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--standx-preview-color) 12%, white), #ffffff);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: .55rem;
    min-height: 260px;
    padding: 1.25rem;
}

.standx-storefront-preview h3 {
    font-size: 1.75rem;
    margin: 0;
}

.standx-storefront-preview p {
    color: var(--muted);
    margin: 0;
}

.standx-storefront-preview small {
    color: var(--text);
    font-weight: 700;
}

.standx-preview-box {
    background: #f8fafb;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: .25rem;
    padding: .85rem;
}

.standx-preview-box span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.standx-preview-box strong {
    word-break: break-word;
}

.standx-domain-status {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.standx-domain-status span {
    background: #eef2f5;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    padding: .28rem .65rem;
}

.standx-seo-preview {
    display: grid;
    gap: .25rem;
    padding: 1rem;
}

.standx-seo-preview span {
    color: #1a7f37;
    font-size: .84rem;
}

.standx-seo-preview strong {
    color: #1a0dab;
    font-size: 1.2rem;
    font-weight: 500;
}

.standx-seo-preview p {
    color: #4d5156;
    margin: 0;
}

.standx-sticky-save {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--line);
    border-radius: 8px;
    bottom: 1rem;
    box-shadow: 0 12px 34px rgba(23, 33, 43, .12);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .9rem 1rem;
    position: sticky;
}

.standx-sticky-save div {
    display: grid;
    gap: .15rem;
}

.standx-sticky-save span {
    color: var(--muted);
    font-size: .85rem;
}

.standx-detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
}

.standx-lead-filters {
    background: #f8fafb;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
    padding: 1rem;
}

.standx-lead-table {
    min-width: 1120px;
}

.lead-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: .76rem;
    font-weight: 900;
    padding: .22rem .6rem;
}

.lead-status-new {
    background: #e8f2ff;
    color: #1d4f91;
}

.lead-status-contacted {
    background: #f0faf6;
    color: #17664f;
}

.lead-status-qualified {
    background: #eef2ff;
    color: #4338ca;
}

.lead-status-converted {
    background: #e7f8ed;
    color: #166534;
}

.lead-status-closed {
    background: #eef2f5;
    color: #4b5563;
}

.lead-status-spam {
    background: #fff0f0;
    color: #9b2c2c;
}

.standx-lead-card-list {
    display: none;
}

.standx-lead-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: inherit;
    display: grid;
    gap: .55rem;
    padding: .85rem;
    text-decoration: none;
}

.standx-lead-card div,
.standx-lead-card footer {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.standx-lead-card p,
.standx-lead-card small,
.standx-lead-card footer {
    color: var(--muted);
    margin: 0;
}

.standx-lead-status-editor {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.standx-lead-status-editor label {
    display: grid;
    gap: .35rem;
}

.standx-lead-status-editor label > span {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.standx-recent-leads {
    display: grid;
    gap: .65rem;
}

.standx-recent-leads a {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: inherit;
    display: grid;
    gap: .15rem;
    padding: .75rem;
    text-decoration: none;
}

.standx-recent-leads a:hover {
    border-color: var(--accent);
}

.standx-recent-leads span,
.standx-recent-leads small {
    color: var(--muted);
}

@media (max-width: 900px) {
    .app-shell,
    .area-shell,
    .standx-shell {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .area-sidebar,
    .standx-sidebar {
        height: auto;
        position: static;
    }

    .side-nav,
    .standx-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-grid,
    .standx-metric-grid,
    .two-column,
    .inline-form,
    .choice-grid,
    .service-card-grid,
    .portal-card-grid,
    .profile-grid,
    .hero-section,
    .feature-grid,
    .storefront-hero,
    .vehicle-card-grid,
    .storefront-filters,
    .vehicle-detail-hero {
        grid-template-columns: 1fr;
    }

    .standx-filters,
    .standx-filters-wide,
    .standx-detail-grid,
    .standx-lead-filters,
    .standx-gallery-grid,
    .standx-media-status,
    .standx-media-dashboard,
    .standx-upload-row,
    .standx-gallery-manager,
    .standx-media-vehicle,
    .standx-storefront-grid {
        grid-template-columns: 1fr;
    }

    .standx-lead-table-wrap {
        display: none;
    }

    .standx-lead-card-list {
        display: grid;
        gap: .75rem;
        padding: 1rem;
    }

    .standx-sticky-save {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar,
    .page-heading,
    .standx-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem;
    }

    .public-nav {
        grid-template-columns: 1fr;
        padding: 1rem;
        position: static;
    }

    .public-nav nav,
    .public-actions,
    .contact-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .auth-content {
        min-height: auto;
        padding-top: 1rem;
    }

    .auth-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.public-shell-standalone {
    background: #ffffff;
}

.storefront-site {
    --storefront-theme: #1f7a5f;
    --storefront-theme-dark: color-mix(in srgb, var(--storefront-theme) 76%, #111827);
    --storefront-soft: color-mix(in srgb, var(--storefront-theme) 9%, #ffffff);
    background: #ffffff;
    color: #111827;
    min-height: 100vh;
    padding-bottom: 0;
}

.storefront-state {
    display: grid;
    min-height: 60vh;
    padding: 4rem 6vw;
    place-content: center;
    text-align: center;
}

.storefront-header {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    min-height: 78px;
    padding: .75rem clamp(1rem, 5vw, 4.5rem);
    position: sticky;
    top: 0;
    z-index: 20;
}

.storefront-brand {
    align-items: center;
    color: inherit;
    display: inline-flex;
    gap: .75rem;
    min-width: 0;
    text-decoration: none;
}

.storefront-brand img,
.storefront-brand-fallback {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 48px;
    object-fit: contain;
    padding: .3rem;
    width: 48px;
}

.storefront-brand-fallback {
    align-items: center;
    background: var(--storefront-theme);
    color: white;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    padding: 0;
}

.storefront-brand strong {
    font-size: 1.02rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storefront-nav {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.storefront-nav a,
.storefront-icon-action,
.storefront-result-count {
    color: #4b5563;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.storefront-nav a:hover,
.storefront-icon-action:hover {
    color: var(--storefront-theme-dark);
}

.storefront-header-actions {
    align-items: center;
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
}

.storefront-icon-action {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: .5rem .75rem;
}

.storefront-icon-action.primary {
    background: var(--storefront-theme);
    border-color: var(--storefront-theme);
    color: white;
}

.storefront-hero {
    align-items: end;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--storefront-theme) 18%, #ffffff), #ffffff 58%),
        var(--storefront-soft);
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
    min-height: 480px;
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 6vw, 5rem) 3rem;
}

.storefront-hero-copy {
    max-width: 860px;
}

.storefront-hero h1 {
    color: #0f172a;
    font-size: clamp(2.6rem, 8vw, 5.8rem);
    line-height: .95;
    margin: .6rem 0 1rem;
}

.storefront-hero p,
.storefront-about p,
.storefront-contact-section p,
.vehicle-description p {
    color: #4b5563;
    font-size: 1.08rem;
    line-height: 1.65;
    max-width: 760px;
}

.storefront-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.25rem;
}

.storefront-site .btn-primary {
    background: var(--storefront-theme);
    border-color: var(--storefront-theme);
}

.storefront-site .btn-primary:hover {
    background: var(--storefront-theme-dark);
    border-color: var(--storefront-theme-dark);
}

.storefront-hero-panel,
.storefront-empty,
.storefront-contact-grid a,
.storefront-contact-grid div,
.vehicle-detail-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.storefront-hero-panel {
    display: grid;
    gap: .35rem;
    padding: 1.25rem;
}

.storefront-hero-panel span,
.storefront-contact-grid span {
    color: #6b7280;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.storefront-hero-panel strong {
    color: var(--storefront-theme-dark);
    font-size: 3rem;
    line-height: 1;
}

.storefront-hero-panel p {
    color: #4b5563;
    margin: .5rem 0 0;
}

.storefront-section {
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 6vw, 5rem);
}

.storefront-section-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.storefront-section-heading h2,
.storefront-about h2,
.storefront-contact-section h2 {
    color: #111827;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin: .25rem 0 0;
}

.storefront-filters {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.storefront-filters .btn {
    min-height: 38px;
}

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

.vehicle-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: inherit;
    display: grid;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.vehicle-card:hover {
    border-color: color-mix(in srgb, var(--storefront-theme) 55%, #e5e7eb);
    box-shadow: 0 16px 42px rgba(15, 23, 42, .12);
    transform: translateY(-2px);
}

.vehicle-card-media {
    background: #eef2f5;
    color: #6b7280;
    display: grid;
    min-height: 210px;
    place-items: center;
    position: relative;
    text-decoration: none;
}

.vehicle-card-media img {
    aspect-ratio: 16 / 10;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.vehicle-status-badge {
    background: rgba(17, 24, 39, .82);
    border-radius: 999px;
    color: white;
    font-size: .75rem;
    font-weight: 900;
    padding: .25rem .6rem;
    position: absolute;
    right: .75rem;
    top: .75rem;
}

.vehicle-card-body {
    display: grid;
    gap: .85rem;
    padding: 1rem;
}

.vehicle-card-body h3 {
    font-size: 1.12rem;
    margin: 0;
}

.vehicle-card-body p {
    color: #6b7280;
    margin: .25rem 0 0;
}

.vehicle-card-price,
.vehicle-price {
    color: var(--storefront-theme-dark);
    font-size: 1.55rem;
    line-height: 1;
}

.vehicle-card-specs,
.vehicle-spec-grid {
    display: grid;
    gap: .55rem;
    margin: 0;
}

.vehicle-card-specs div,
.vehicle-spec-grid div {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.vehicle-card-specs dt,
.vehicle-spec-grid dt {
    color: #6b7280;
    font-weight: 800;
}

.vehicle-card-specs dd,
.vehicle-spec-grid dd {
    font-weight: 800;
    margin: 0;
    text-align: right;
}

.storefront-empty {
    display: grid;
    gap: .75rem;
    justify-items: start;
    padding: 1.5rem;
}

.storefront-empty strong {
    font-size: 1.2rem;
}

.storefront-about {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
}

.storefront-about aside {
    align-self: start;
    background: #ffffff;
    border-left: 4px solid var(--storefront-theme);
    border-radius: 8px;
    display: grid;
    gap: .4rem;
    padding: 1rem;
}

.storefront-about aside span {
    color: #6b7280;
}

.storefront-contact-section {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

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

.storefront-contact-stack {
    display: grid;
    gap: 1rem;
}

.storefront-contact-grid a,
.storefront-contact-grid div {
    color: inherit;
    display: grid;
    gap: .25rem;
    padding: 1rem;
    text-decoration: none;
}

.storefront-contact-grid strong {
    overflow-wrap: anywhere;
}

.storefront-lead-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
    display: grid;
    gap: .85rem;
    padding: 1rem;
}

.storefront-lead-form h3 {
    font-size: 1.25rem;
    margin: .25rem 0;
}

.storefront-lead-form p {
    color: #6b7280;
    font-size: .95rem;
    margin: 0;
}

.storefront-lead-form label {
    display: grid;
    gap: .35rem;
}

.storefront-lead-form label > span {
    color: #4b5563;
    font-size: .82rem;
    font-weight: 900;
}

.storefront-lead-two-column {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.storefront-form-alert {
    border-radius: 8px;
    display: grid;
    gap: .25rem;
    font-weight: 800;
    padding: .75rem .85rem;
}

.storefront-form-alert.error {
    background: #fff5f5;
    border: 1px solid #f1b4b4;
    color: #9b2c2c;
}

.storefront-form-alert.success {
    background: #f0faf6;
    border: 1px solid #b8dfd0;
    color: var(--storefront-theme-dark);
}

.vehicle-detail-hero {
    align-items: start;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    padding: clamp(1.25rem, 5vw, 4rem) clamp(1rem, 6vw, 5rem);
}

.vehicle-gallery {
    display: grid;
    gap: .85rem;
}

.vehicle-detail-main-image {
    aspect-ratio: 16 / 10;
    background: #eef2f5;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.vehicle-detail-image-placeholder {
    align-items: center;
    color: #6b7280;
    display: grid;
    font-weight: 900;
    place-items: center;
}

.vehicle-thumbs {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.vehicle-thumbs button {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}

.vehicle-thumbs button.active {
    border-color: var(--storefront-theme);
}

.vehicle-thumbs img {
    aspect-ratio: 1;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.vehicle-detail-panel {
    align-self: start;
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    position: sticky;
    top: 96px;
}

.vehicle-detail-panel h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    margin: 0;
}

.vehicle-detail-panel p {
    color: #6b7280;
    margin: 0;
}

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

.vehicle-spec-grid div {
    background: #f8fafc;
    border-radius: 8px;
    display: grid;
    gap: .2rem;
    padding: .75rem;
}

.vehicle-spec-grid dd {
    text-align: left;
}

.vehicle-description {
    border-top: 1px solid #e5e7eb;
}

.storefront-footer {
    align-items: center;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    padding: 1.25rem clamp(1rem, 6vw, 5rem);
}

.storefront-footer span {
    color: #111827;
    font-weight: 900;
}

.storefront-mobile-contact {
    display: none;
}

@media (max-width: 980px) {
    .storefront-header {
        grid-template-columns: 1fr;
        position: static;
    }

    .storefront-nav,
    .storefront-header-actions {
        justify-content: flex-start;
    }

    .storefront-hero,
    .storefront-about,
    .storefront-contact-section,
    .vehicle-detail-hero {
        grid-template-columns: 1fr;
    }

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

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

    .vehicle-detail-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .storefront-site {
        padding-bottom: 72px;
    }

    .storefront-header {
        gap: .75rem;
        padding: .85rem 1rem;
    }

    .storefront-brand strong {
        white-space: normal;
    }

    .storefront-nav {
        flex-wrap: wrap;
        gap: .75rem;
    }

    .storefront-header-actions {
        display: none;
    }

    .storefront-hero {
        min-height: auto;
        padding: 2.5rem 1rem;
    }

    .storefront-section,
    .vehicle-detail-hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .storefront-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .storefront-filters,
    .vehicle-card-grid,
    .storefront-contact-grid,
    .storefront-lead-two-column,
    .vehicle-spec-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-card-media {
        min-height: 190px;
    }

    .vehicle-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .storefront-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }

    .storefront-mobile-contact {
        background: rgba(255, 255, 255, .98);
        border-top: 1px solid #e5e7eb;
        bottom: 0;
        box-shadow: 0 -12px 28px rgba(15, 23, 42, .12);
        display: grid;
        gap: .5rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        left: 0;
        padding: .65rem;
        position: fixed;
        right: 0;
        z-index: 30;
    }

    .storefront-mobile-contact a {
        background: var(--storefront-theme);
        border-radius: 8px;
        color: white;
        font-size: .85rem;
        font-weight: 900;
        min-width: 0;
        padding: .7rem .4rem;
        text-align: center;
        text-decoration: none;
    }
}
