:root {
    font-family: "DM Sans", "Segoe UI", sans-serif;
    color: #202838;
    background: #f6f8fb;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --ink: #202838;
    --muted: #7d8795;
    --subtle: #a4acb8;
    --line: #e8ebf0;
    --surface: #ffffff;
    --canvas: #f6f8fb;
    --blue: #278de1;
    --blue-deep: #1676c9;
    --blue-wash: #eef7ff;
    --green: #169b74;
    --red: #dc5b62;
    --shadow: 0 8px 28px rgba(31, 48, 71, .045);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
}

button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid rgba(39, 141, 225, .28);
    outline-offset: 2px;
}

.app-shell { min-height: 100vh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    display: flex;
    width: 246px;
    flex-direction: column;
    padding: 28px 18px 20px;
    background: #fff;
    border-right: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; }
.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #39a4f5, #1977c8);
    font: 800 20px/1 "Manrope", sans-serif;
    box-shadow: 0 5px 14px rgba(39, 141, 225, .22);
}
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font: 800 16px/1.15 "Manrope", sans-serif; letter-spacing: -.65px; }
.brand-copy strong span { color: var(--blue); }
.brand-copy small { color: #a0a9b5; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; }
.nav-label { margin: 46px 10px 12px; color: #a0a9b5; font-size: 12px; font-weight: 800; letter-spacing: 1.4px; }
.primary-nav { display: grid; gap: 5px; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    color: #737e8d;
    font-size: 14px;
    font-weight: 600;
    transition: background .18s ease, color .18s ease;
}
.nav-link:hover { background: #f7f9fc; color: var(--ink); }
.nav-link.active { background: var(--blue-wash); color: var(--blue-deep); }
.nav-icon { display: inline-grid; width: 20px; place-items: center; font-size: 19px; line-height: 1; }
.sidebar-spacer { flex: 1; }
.market-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #20bb8a; box-shadow: 0 0 0 3px #e5f7f0; }
.sidebar-footnote { padding: 16px 11px 0; color: #a0a9b5; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.sidebar-footnote span { padding: 0 3px; color: #ccd2da; }

.main-workspace { min-height: 100vh; margin-left: 246px; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    background: rgba(255, 255, 255, .93);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.topbar-context, .topbar-right, .topbar-market { display: flex; align-items: center; }
.topbar-context { gap: 12px; }
.topbar-kicker { color: #8d98a7; font-size: 12px; font-weight: 800; letter-spacing: 1.3px; }
.topbar-divider { width: 1px; height: 15px; background: var(--line); }
.topbar-caption { color: #7f8997; font-size: 14px; }
.topbar-right { gap: 18px; }
.experience-link { display: inline-flex; min-height: 33px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #667282; font-size: 12px; font-weight: 700; white-space: nowrap; }
.experience-link:hover { border-color: #cad9e8; background: #fbfdff; color: var(--blue-deep); }
.topbar-market { gap: 9px; color: #7e8997; font-size: 12px; font-weight: 800; letter-spacing: .9px; }
.topbar-market b { padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; color: #697483; font-size: 12px; }
.market-dot { width: 6px; height: 6px; }
.user-avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #edf4fc; color: #4c7fae; font-size: 12px; font-weight: 800; }
.workspace-content { width: min(100%, 1700px); margin: 0 auto; padding: 29px 34px 70px; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.page-heading-copy { display: grid; gap: 6px; }
.eyebrow { color: #8d98a7; font-size: 12px; font-weight: 800; letter-spacing: 1.35px; }
.page-heading h1, .lot-title { margin: 0; font: 800 27px/1.2 "Manrope", "DM Sans", sans-serif; letter-spacing: -.8px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.button-primary, .button-secondary, .icon-button, .text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: .16s ease;
}
.button-primary { min-height: 38px; padding: 0 14px; color: white; background: var(--blue); box-shadow: 0 4px 10px rgba(39, 141, 225, .14); }
.button-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.button-secondary { min-height: 38px; padding: 0 13px; border-color: var(--line); background: #fff; color: #556171; }
.button-secondary:hover, .icon-button:hover { border-color: #cdd8e4; background: #fbfdff; }
.button-secondary:disabled, .button-primary:disabled, .icon-button:disabled { cursor: default; opacity: .45; transform: none; }
.icon-button { width: 38px; height: 38px; border-color: var(--line); background: white; color: #667282; font-size: 17px; }
.icon-button.is-saved { border-color: #f3c7ca; color: var(--red); background: #fff8f8; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--blue-deep); }

.surface-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.catalog-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; padding: 11px 14px; border: 1px solid #e5edf5; border-radius: 9px; background: #fff; }
.catalog-banner-copy { display: flex; align-items: center; gap: 9px; color: #788392; font-size: 12px; }
.catalog-banner-copy strong { color: #4f5c6d; font-weight: 700; }
.notice-banner { margin-bottom: 15px; padding: 10px 14px; border: 1px solid #f0e2bd; border-radius: 9px; background: #fffaf0; color: #8a6a31; font-size: 14px; }
.search-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 180px 170px auto; gap: 9px; margin-bottom: 17px; }
.search-field, .select-field, .number-field, .text-field {
    width: 100%;
    min-height: 39px;
    padding: 0 12px;
    border: 1px solid #e4e8ee;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: #394555;
    font-size: 14px;
}
.search-field { padding-left: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2399a4b2' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 12px center/15px no-repeat; }
.select-field { cursor: pointer; }
.select-field:focus, .search-field:focus, .number-field:focus, .text-field:focus { border-color: #9bcdf2; box-shadow: 0 0 0 3px rgba(39, 141, 225, .08); }
.filter-toggle { min-height: 39px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #596575; cursor: pointer; font-size: 12px; font-weight: 700; }
.inventory-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 17px; align-items: start; }
.filter-panel { position: sticky; top: 84px; padding: 16px; }
.filter-panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.filter-panel-heading strong { font: 700 14px "Manrope", sans-serif; }
.filter-panel-heading button { border: 0; background: none; color: var(--blue); cursor: pointer; font-size: 12px; }
.filter-group { display: grid; gap: 8px; padding: 13px 0; border-top: 1px solid #f0f2f5; }
.filter-group label { color: #687383; font-size: 12px; font-weight: 700; }
.filter-group .select-field { min-height: 34px; font-size: 12px; }
.filter-check { display: flex; align-items: center; gap: 8px; color: #657181; font-size: 12px; cursor: pointer; }
.filter-check input { accent-color: var(--blue); }
.inventory-results { min-width: 0; }
.results-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 1px 1px 12px; color: #8b95a2; font-size: 12px; }
.results-meta strong { color: #525f70; }
.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.vehicle-card { overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.vehicle-card:hover { transform: translateY(-3px); border-color: #d4dfea; box-shadow: 0 12px 28px rgba(31, 48, 71, .09); }
.vehicle-card-media { position: relative; overflow: hidden; aspect-ratio: 1.52; background: #edf1f5; }
.vehicle-card-media > a { display: block; width: 100%; height: 100%; }
.vehicle-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.vehicle-card:hover .vehicle-card-media img { transform: scale(1.035); }
.image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #b4bdc9; font: 700 14px "Manrope", sans-serif; letter-spacing: 1px; }
.image-count, .status-pill { position: absolute; display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; background: rgba(255,255,255,.92); color: #627083; font-size: 12px; font-weight: 700; }
.image-count { right: 10px; bottom: 10px; padding: 5px 8px; }
.status-pill { top: 10px; left: 10px; padding: 5px 8px; color: #417ca9; }
.card-save { position: absolute; top: 9px; right: 9px; display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(230,235,240,.9); border-radius: 50%; background: rgba(255,255,255,.93); color: #667383; cursor: pointer; font-size: 16px; }
.card-save.is-saved { color: var(--red); }
.vehicle-card-body { padding: 13px 13px 12px; }
.vehicle-card-title { display: block; overflow: hidden; margin: 0 0 5px; font: 750 14px/1.35 "Manrope", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-card-location { display: flex; align-items: center; gap: 5px; color: #8a95a3; font-size: 12px; }
.vehicle-card-location span { color: var(--blue); }
.vehicle-card-divider { height: 1px; margin: 12px 0 10px; background: #eff1f4; }
.vehicle-card-stats { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vehicle-stat { display: grid; gap: 4px; }
.vehicle-stat span { color: #a0a9b5; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.vehicle-stat strong { color: #344153; font-size: 14px; font-weight: 700; }
.vehicle-stat.bid strong { color: var(--blue-deep); font-size: 14px; }
.card-arrow { color: #b0b8c2; font-size: 16px; }
.empty-state, .loading-state { display: grid; min-height: 200px; place-items: center; padding: 30px; color: #8a95a3; text-align: center; }
.empty-state strong, .loading-state strong { display: block; margin-bottom: 6px; color: #4f5c6d; font: 700 14px "Manrope", sans-serif; }
.empty-state p, .loading-state p { margin: 0; font-size: 14px; }
.spinner { width: 23px; height: 23px; margin: 0 auto 12px; border: 2px solid #e6edf4; border-top-color: var(--blue); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: #a0a8b3; font-size: 12px; }
.breadcrumb a { color: #738092; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .crumb-current { overflow: hidden; color: #4c5969; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.lot-summary { margin-bottom: 15px; padding: 17px 18px 0; }
.lot-summary-top { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 15px; }
.lot-summary-title { min-width: 0; }
.lot-summary-title h1 { overflow: hidden; margin: 0 0 9px; font: 800 23px/1.2 "Manrope", sans-serif; letter-spacing: -.7px; text-overflow: ellipsis; white-space: nowrap; }
.lot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; color: #7e8997; font-size: 12px; }
.lot-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.lot-meta-item .meta-icon { color: var(--blue); font-size: 14px; }
.meta-code { padding: 4px 6px; border-radius: 5px; background: #f4f6f8; color: #455365; font: 700 12px/1.2 "DM Sans", sans-serif; }
.lot-summary-actions { display: flex; align-items: flex-start; gap: 8px; }
.lot-summary-bottom { display: flex; min-height: 39px; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #eff1f4; }
.copart-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; background: var(--blue); border-radius: 20px; padding: 5px 11px; font-size: 12px; font-weight: 800; }
.copart-link:hover { background: var(--blue-deep); }
.sale-time { display: flex; align-items: center; gap: 6px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .6px; text-align: right; text-transform: uppercase; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .58fr) minmax(255px, .56fr); gap: 14px; align-items: start; }
.gallery-column, .detail-column, .calculator-column { min-width: 0; }
.gallery-card { overflow: hidden; padding: 8px; }
.gallery-main { position: relative; overflow: hidden; display: grid; aspect-ratio: 1.3; place-items: center; border-radius: 8px; background: #edf1f5; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-type { position: absolute; top: 13px; left: 13px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.6); border-radius: 18px; background: rgba(255,255,255,.8); color: #606d7c; font-size: 12px; font-weight: 700; backdrop-filter: blur(7px); }
.gallery-position { position: absolute; bottom: 12px; left: 50%; padding: 6px 10px; transform: translateX(-50%); border-radius: 18px; background: rgba(255,255,255,.92); color: #596677; font-size: 12px; font-weight: 700; }
.gallery-arrow { position: absolute; top: 50%; display: grid; width: 36px; height: 36px; place-items: center; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: #526072; cursor: pointer; font-size: 20px; box-shadow: 0 3px 10px rgba(19,34,52,.1); }
.gallery-arrow:hover { color: var(--blue); }
.gallery-arrow:disabled { opacity: .4; cursor: default; }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.thumbnail-strip { display: flex; gap: 7px; overflow-x: auto; padding: 9px 1px 2px; scrollbar-color: #cbd2da transparent; scrollbar-width: thin; }
.thumbnail { flex: 0 0 69px; overflow: hidden; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #edf1f5; cursor: pointer; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail.active { border-color: var(--blue); }
.thumbnail:disabled { cursor: default; opacity: .7; }
.detail-card { margin-bottom: 12px; padding: 16px 16px 12px; }
.detail-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; padding-bottom: 11px; border-bottom: 1px solid #eff1f4; }
.detail-card-heading h2 { margin: 0; color: #9aa4b0; font: 800 12px "Manrope", sans-serif; letter-spacing: 1.05px; text-transform: uppercase; }
.detail-card-heading span { display: inline-flex; align-items: center; gap: 5px; color: #9ba6b3; font-size: 12px; font-weight: 700; }
.detail-card-heading span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #84c7ef; }
.detail-row { display: grid; grid-template-columns: minmax(70px, .75fr) minmax(0, 1.25fr); gap: 8px; align-items: baseline; min-height: 35px; padding: 8px 0; border-bottom: 1px solid #f3f4f6; }
.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: #8993a1; font-size: 14px; }
.detail-row strong { color: #394556; font-size: 14px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.detail-section-label { margin: 12px 0 2px; padding: 0 0 8px; border-bottom: 1px solid #eff1f4; color: #79bce8; font: 800 12px "Manrope", sans-serif; letter-spacing: .9px; text-transform: uppercase; }
.spec-row { display: flex; justify-content: space-between; gap: 9px; min-height: 31px; align-items: center; border-bottom: 1px solid #f3f4f6; }
.spec-row span { color: #8993a1; font-size: 14px; }
.spec-row strong { color: #3c4858; font-size: 14px; font-weight: 700; text-align: right; }
.bid-card, .import-card { margin-bottom: 12px; padding: 16px; }
.bid-topline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid #eff1f4; }
.bid-metric { display: grid; gap: 6px; }
.bid-metric:last-child { text-align: right; }
.bid-metric span, .calculator-label { color: #8994a2; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.bid-metric strong { color: #273344; font: 800 19px "Manrope", sans-serif; }
.bid-metric .bid-empty { color: #a9b2bd; }
.timer-row { display: flex; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid #eff1f4; }
.timer-row div { display: grid; gap: 5px; }
.timer-row div:last-child { text-align: right; }
.timer-row strong { color: var(--green); font-size: 14px; }
.timer-row .muted-value { color: #7f8997; }
.bid-stepper { display: grid; grid-template-columns: 34px minmax(0,1fr) 34px; gap: 7px; margin: 13px 0 9px; }
.stepper-button { border: 1px solid #e9edf1; border-radius: 8px; background: #fff; cursor: pointer; font-size: 17px; }
.stepper-button:hover { color: var(--blue); border-color: #c7def0; }
.bid-stepper input, .calculator-input { min-width: 0; min-height: 36px; border: 1px solid #e9edf1; border-radius: 8px; background: #fff; color: #394556; font-size: 14px; text-align: center; }
.confirm-bid { width: 100%; min-height: 39px; border: 0; border-radius: 8px; background: var(--blue); color: white; cursor: pointer; font-weight: 800; }
.confirm-bid { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.confirm-bid:hover { background: var(--blue-deep); }
.bid-terms { margin: 9px 0 0; color: #858f9d; font-size: 12px; line-height: 1.5; text-align: center; }
.bid-terms a { color: var(--blue); }
.calculator-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.calculator-heading h2 { margin: 0; font: 750 14px "Manrope", sans-serif; }
.calculator-heading span { color: #8290a0; font-size: 12px; }
.calculator-tabs { display: flex; gap: 6px; margin: 11px 0; }
.calculator-tab { min-height: 32px; padding: 0 12px; border: 1px solid #e5e9ee; border-radius: 7px; background: #fff; color: #657181; cursor: pointer; font-size: 14px; font-weight: 700; }
.calculator-tab.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.calculator-input-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px; margin: 8px 0; }
.calculator-input-row label { color: #7f8997; font-size: 14px; }
.calculator-input-row span { color: #7f8997; font-size: 14px; }
.calculator-input { width: 103px; min-height: 30px; padding: 0 7px; text-align: right; }
.calculator-input:disabled { background: #f8f9fb; color: #9ba4af; }
.calculator-total { margin: 11px 0; padding: 13px 10px; border: 1px solid #edf0f3; border-radius: 9px; background: #fbfcfd; text-align: center; }
.calculator-total strong { display: block; color: #273344; font: 800 20px "Manrope", sans-serif; }
.calculator-total span { display: block; margin-top: 3px; color: #8993a1; font-size: 12px; }
.calculator-breakdown { display: grid; gap: 8px; margin-top: 10px; }
.calculator-breakdown div { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #87919e; font-size: 12px; }
.calculator-breakdown strong { color: #465263; font-size: 12px; }
.calculator-breakdown .total-row { padding-top: 9px; border-top: 1px solid #e9edf1; color: #435061; font-weight: 800; }
.calculator-breakdown .total-row strong { color: #202d3c; font-size: 14px; }
.calculator-note { margin: 11px 0 0; color: #a2abb6; font-size: 12px; line-height: 1.5; }
.details-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.toast-note { min-height: 14px; margin-top: 7px; color: var(--green); font-size: 12px; }

.saved-empty { padding: 40px 20px; text-align: center; }
.saved-search-toolbar { grid-template-columns: minmax(240px, 1fr) auto; align-items: center; }
.saved-search-toolbar .results-meta { justify-content: flex-end; margin: 0; }
.saved-empty .empty-icon { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 14px; border-radius: 16px; background: var(--blue-wash); color: var(--blue); font-size: 25px; }
.saved-empty h2 { margin: 0 0 6px; font: 750 16px "Manrope", sans-serif; }
.saved-empty p { max-width: 330px; margin: 0 auto 15px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.loading-screen { min-height: 240px; display: grid; place-items: center; }
.error-card { padding: 18px; border: 1px solid #f3d6d6; border-radius: 10px; background: #fff9f9; color: #a84b50; font-size: 14px; }

#blazor-error-ui { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 100; padding: 12px 14px; border: 1px solid #eccbcb; border-radius: 9px; background: #fff; color: #81484b; box-shadow: var(--shadow); font-size: 14px; }
#blazor-error-ui .reload { margin-left: 8px; color: var(--blue); }
#blazor-error-ui .dismiss { margin-left: 10px; border: 0; background: transparent; cursor: pointer; }
#blazor-error-ui .show { display: block; }

@media (max-width: 1450px) {
    .detail-grid { grid-template-columns: minmax(0, 1.5fr) minmax(250px, .66fr); }
    .calculator-column { display: grid; grid-column: 2; grid-row: 2; gap: 12px; }
    .gallery-column { grid-column: 1; grid-row: 1 / span 2; }
    .detail-column { grid-column: 2; grid-row: 1; }
    .bid-card, .import-card, .detail-card { margin-bottom: 0; }
    .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .sidebar { width: 74px; padding: 22px 11px 16px; align-items: center; }
    .brand { padding: 0; }
    .brand-copy, .nav-label, .nav-link span:not(.nav-icon), .sidebar-footnote { display: none; }
    .brand-mark { width: 39px; height: 39px; }
    .primary-nav { width: 100%; margin-top: 35px; }
    .nav-link { justify-content: center; padding: 0; }
    .nav-icon { width: auto; font-size: 20px; }
    .main-workspace { margin-left: 74px; }
    .workspace-content { padding: 24px 21px 55px; }
    .topbar { padding: 0 22px; }
    .detail-grid { grid-template-columns: minmax(0, 1.15fr) minmax(235px, .85fr); }
    .calculator-column { display: contents; }
    .bid-card { grid-column: 2; grid-row: 2; }
    .import-card { grid-column: 2; grid-row: 3; }
    .detail-column { grid-column: 2; grid-row: 1; }
    .gallery-column { grid-column: 1; grid-row: span 3; }
    .search-toolbar { grid-template-columns: 1fr 170px; }
    .filter-toggle { display: none; }
}

@media (max-width: 760px) {
    .sidebar { position: sticky; inset: 0 0 auto; display: flex; width: 100%; height: 57px; flex-direction: row; justify-content: space-between; padding: 8px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
    .brand { gap: 8px; }
    .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; }
    .brand-copy { display: grid; }
    .brand-copy strong { font-size: 14px; }
    .brand-copy small, .sidebar-spacer, .sidebar-footnote { display: none; }
    .nav-label { display: none; }
    .primary-nav { display: flex; width: auto; gap: 5px; margin: 0; }
    .nav-link { width: 39px; min-height: 38px; border-radius: 9px; }
    .nav-link span:not(.nav-icon) { display: none; }
    .main-workspace { margin-left: 0; }
    .topbar { position: static; min-height: 49px; padding: 0 16px; }
    .topbar-kicker { font-size: 12px; }
    .topbar-caption, .topbar-divider, .topbar-market { display: none; }
    .topbar-right { gap: 0; }
    .experience-link { min-height: 29px; padding: 0 7px; font-size: 12px; }
    .user-avatar { width: 27px; height: 27px; }
    .workspace-content { padding: 20px 14px 45px; }
    .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 17px; }
    .page-heading h1, .lot-title { font-size: 23px; }
    .page-heading p { font-size: 14px; }
    .heading-actions { width: 100%; }
    .search-toolbar { grid-template-columns: 1fr; gap: 7px; }
    .inventory-layout { grid-template-columns: 1fr; }
    .filter-panel { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 12px; }
    .filter-panel-heading { grid-column: 1/-1; margin: 0; }
    .filter-group { gap: 6px; padding: 8px 0; }
    .filter-group:nth-of-type(4) { display: none; }
    .vehicle-grid { grid-template-columns: 1fr; gap: 10px; }
    .vehicle-card { display: grid; grid-template-columns: 36% minmax(0, 1fr); }
    .vehicle-card-media { min-height: 100%; aspect-ratio: auto; }
    .vehicle-card-body { padding: 11px; }
    .vehicle-card-title { white-space: normal; }
    .vehicle-card-divider { margin: 9px 0; }
    .catalog-banner { align-items: flex-start; flex-direction: column; gap: 7px; }
    .breadcrumb { overflow: hidden; white-space: nowrap; }
    .lot-summary { padding: 14px 13px 0; }
    .lot-summary-top { flex-direction: column; padding-bottom: 12px; }
    .lot-summary-title h1 { font-size: 20px; white-space: normal; }
    .lot-summary-actions { align-self: flex-end; margin-top: -44px; }
    .lot-meta { padding-right: 76px; gap: 7px 10px; }
    .lot-summary-bottom { align-items: flex-start; flex-direction: column; padding: 9px 0; }
    .sale-time { text-align: left; }
    .detail-grid { display: flex; flex-direction: column; }
    .gallery-column, .detail-column, .calculator-column { display: contents; width: 100%; }
    .gallery-card { order: 0; width: 100%; }
    .detail-card:first-child { order: 1; width: 100%; }
    .bid-card { order: 2; width: 100%; }
    .import-card { order: 3; width: 100%; }
    .detail-card:not(:first-child) { order: 4; width: 100%; }
    .gallery-main { aspect-ratio: 1.08; }
    .thumbnail { flex-basis: 62px; height: 45px; }
    .detail-card, .bid-card, .import-card { padding: 14px; }
    body { font-size: 15px; }
    .topbar-kicker, .eyebrow { font-size: 12px; }
    .experience-link { min-height: 34px; font-size: 12px; }
    .page-heading h1, .lot-title { font-size: 26px; }
    .page-heading p { font-size: 14px; }
    .search-field, .select-field, .calculator-input, .bid-stepper input { font-size: 16px; }
    .filter-panel-heading strong { font-size: 14px; }
    .filter-group label, .filter-check { font-size: 14px; }
    .results-meta { font-size: 14px; }
    .image-count, .status-pill { font-size: 12px; }
    .vehicle-card-title { font-size: 14px; }
    .vehicle-card-location { font-size: 14px; }
    .vehicle-stat span { font-size: 12px; }
    .vehicle-stat strong { font-size: 14px; }
    .lot-summary-title h1 { font-size: 22px; }
    .detail-row span, .detail-row strong, .spec-row span, .spec-row strong { font-size: 14px; }
    .calculator-input-row label, .calculator-input-row span, .calculator-tab { font-size: 14px; }
    .calculator-label, .bid-metric span, .bid-terms { font-size: 12px; }
}

/* Keep desktop controls comfortable at laptop and Full HD CSS viewport sizes. */
@media (min-width: 761px) and (max-width: 1365px) {
    .app-shell { width: 95.2381vw; min-height: 95.2381vh; zoom: 1.05; }
}

@media (min-width: 1366px) and (max-width: 1920px) {
    .app-shell { width: 86.9565vw; min-height: 86.9565vh; zoom: 1.15; }
}

@media (min-width: 1921px) and (max-width: 2559px) {
    .app-shell { width: 92.5926vw; min-height: 92.5926vh; zoom: 1.08; }
}

@media (min-width: 2560px) {
    .app-shell { width: 90.9091vw; min-height: 90.9091vh; zoom: 1.1; }
    .sidebar { width: clamp(246px, 14vw, 300px); }
    .main-workspace { margin-left: clamp(246px, 14vw, 300px); }
    .workspace-content { width: min(100%, 2600px); padding-inline: clamp(34px, 3vw, 78px); }
    .topbar { min-height: 76px; padding-inline: clamp(34px, 3vw, 78px); }
    .vehicle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
    .vehicle-card-media { aspect-ratio: 1.58; }
}
