*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:#f4f6f8;color:#17202a}.hero{background:#151a20;color:#fff;padding:34px max(20px,calc((100vw - 1180px)/2));display:flex;justify-content:space-between;gap:20px;align-items:flex-end}.eyebrow{font-size:12px;letter-spacing:.14em;font-weight:800;margin:0 0 8px;opacity:.72}.hero h1{font-size:34px;margin:0 0 8px}.subtitle{margin:0;color:#cbd2d9;max-width:720px}.status{background:#26313b;border:1px solid #3b4854;padding:9px 13px;border-radius:999px;font-size:13px;white-space:nowrap}.container{max-width:1200px;margin:28px auto;padding:0 20px}.search-card,.table-card,.panel,.yard-card{background:#fff;border:1px solid #dfe4e8;border-radius:16px;box-shadow:0 5px 20px rgba(15,23,42,.05)}.search-card{padding:20px;display:grid;grid-template-columns:repeat(5,1fr);gap:14px;align-items:end}.field label{display:block;font-size:12px;font-weight:800;margin:0 0 7px;text-transform:uppercase;letter-spacing:.05em}.field input,.field select,.vin-row input{width:100%;height:44px;border:1px solid #c9d0d6;border-radius:9px;padding:0 12px;font-size:15px;background:#fff}.checks{grid-column:1/-1;display:flex;gap:20px;flex-wrap:wrap;font-size:13px}.checks input{accent-color:#74d61c}.actions{grid-column:1/-1;display:flex;gap:10px}.actions button,.section-heading button,.vin-row button,#saveAlert{border:0;border-radius:9px;height:44px;padding:0 18px;font-weight:800;cursor:pointer;background:#74d61c;color:#102000}.secondary{background:#eef1f3!important;color:#27323a!important}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.stats div{background:#fff;border:1px solid #e1e6e9;border-radius:12px;padding:14px}.stats strong{display:block;font-size:22px}.stats span{font-size:12px;color:#75808a}.table-card{overflow:hidden}.table-wrap{overflow:auto}.table-card table{width:100%;border-collapse:collapse;min-width:1080px}.table-card th{background:#76d51c;color:#162000;text-align:left;padding:13px;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.table-card td{padding:13px;border-bottom:1px solid #edf0f2;font-size:14px;white-space:nowrap}.table-card tr:nth-child(even) td{background:#fafbfb}.table-card a,.yard-link{color:#1261a0;text-decoration:none;font-weight:700}.muted{font-size:12px;color:#77828c}.empty{text-align:center;padding:48px 20px;color:#66727d}.empty h2{margin:0 0 8px;color:#25313a}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:22px}.panel,.yard-card{padding:20px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}.section-heading h2{margin:0}.map-list{display:grid;gap:8px}.map-pin,.alert{display:flex;justify-content:space-between;align-items:center;border:1px solid #e1e6e9;border-radius:10px;padding:11px}.map-pin small{display:block;color:#78838d;margin-top:3px}.map-pin a,.alert button{color:#1261a0;border:0;background:none;font-weight:800;cursor:pointer}.alerts{display:grid;gap:8px;margin-top:12px}.success{color:#4b7d0d;font-size:12px;margin:8px 0}.vin-row{display:flex;gap:10px}.vin-result{margin-top:12px;padding:12px;border-radius:9px;background:#f5f7f8;min-height:46px}.yards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.yard{border:1px solid #e0e5e8;border-radius:12px;padding:14px}.yard h3{margin:0 0 5px;font-size:15px}.yard p{margin:4px 0;color:#65717b;font-size:13px}.badge{display:inline-block;padding:3px 7px;border-radius:999px;background:#e9f8dc;color:#397300;font-size:11px;font-weight:800;margin-top:7px}.badge.off{background:#f0f2f4;color:#65717b}.note{font-size:12px;color:#6e7881;margin:18px 2px 40px}@media(max-width:900px){.search-card{grid-template-columns:repeat(2,1fr)}.yards{grid-template-columns:1fr 1fr}.stats{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}}@media(max-width:560px){.hero{padding:25px 18px;display:block}.status{display:inline-block;margin-top:15px}.hero h1{font-size:28px}.container{padding:0 12px}.search-card{grid-template-columns:1fr}.actions,.checks{grid-column:auto}.yards{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.vin-row{display:block}.vin-row button{margin-top:10px;width:100%}}
\n.detail-btn{border:0;background:#eef6e8;color:#315f0a;border-radius:7px;padding:7px 10px;font-weight:800;cursor:pointer}.detail-modal{position:fixed;inset:0;background:rgba(10,16,20,.68);z-index:20;display:grid;place-items:center;padding:18px}.detail-modal[hidden]{display:none}.detail-box{position:relative;background:#fff;border-radius:16px;max-width:760px;width:100%;max-height:90vh;overflow:auto;padding:25px;box-shadow:0 20px 60px rgba(0,0,0,.25)}.modal-close{position:absolute;right:15px;top:12px;border:0;background:#eef1f3;border-radius:50%;width:34px;height:34px;font-size:25px;cursor:pointer}.detail-head{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #e5e9ec;padding-bottom:16px}.detail-head h2{margin:0 0 6px}.detail-head p{margin:0;color:#69747d}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.detail-grid div{background:#f7f8f9;border-radius:10px;padding:12px}.detail-grid strong,.detail-grid span{display:block}.detail-grid strong{font-size:11px;text-transform:uppercase;color:#6b757d;margin-bottom:4px}.detail-grid span{font-weight:700}.photo-area{min-height:100px;border:1px dashed #ccd3d8;border-radius:12px;padding:16px;text-align:center}.vehicle-photo{max-width:100%;max-height:360px;object-fit:contain;border-radius:10px}.detail-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}.primary-link{display:inline-flex;align-items:center;background:#74d61c;color:#102000;text-decoration:none;border-radius:8px;padding:10px 14px;font-weight:800}@media(max-width:600px){.detail-grid{grid-template-columns:1fr 1fr}.detail-head{display:block}.detail-head .badge{margin-top:10px;display:inline-block}}\n
.interchange-panel{margin-bottom:64px}.interchange-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.interchange-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.interchange-actions button,.secondary-link{border:0;border-radius:9px;height:44px;padding:0 16px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}.interchange-actions button:first-child{background:#74d61c;color:#102000}.secondary-link{background:#eef1f3;color:#27323a}.interchange-result{margin-top:16px;border:1px solid #e0e5e8;border-radius:12px;padding:16px;display:none}.interchange-result.show{display:block}.ix-results{display:grid;gap:10px;margin-top:12px}.ix-card{border:1px solid #e0e5e8;border-radius:10px;padding:12px;display:flex;justify-content:space-between;gap:15px;align-items:center}.ix-card h3{margin:0 0 4px;font-size:15px}.ix-card p{margin:0;color:#68737d;font-size:13px}.ix-badge{font-size:11px;font-weight:800;padding:4px 7px;border-radius:999px;background:#e9f8dc;color:#397300;white-space:nowrap}@media(max-width:900px){.interchange-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.interchange-grid{grid-template-columns:1fr}.interchange-actions{display:grid}.interchange-actions>*{width:100%;justify-content:center}}

.connector-card{background:#fff;border:1px solid #dfe4e8;border-radius:16px;box-shadow:0 5px 20px rgba(15,23,42,.05);margin-top:22px;padding:20px}
.connector-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 16px}
.connector-summary>div{border:1px solid #e0e5e8;border-radius:12px;padding:12px}
.connector-summary strong{display:block;font-size:24px}
.connector-summary span{font-size:12px;color:#6e7881;text-transform:uppercase;letter-spacing:.05em}
.connector-table{width:100%;border-collapse:collapse;min-width:900px}
.connector-table th{background:#eef1f3;color:#27323a;text-align:left;padding:11px;font-size:12px;text-transform:uppercase}
.connector-table td{padding:11px;border-bottom:1px solid #edf0f2;font-size:13px}
.status-pill{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800}
.status-LIVE{background:#e8f8dc;color:#397300}
.status-EMPTY{background:#fff4d8;color:#8a6500}
.status-CONNECTION_ERROR,.status-PARSER_ERROR{background:#fde7e7;color:#a11}
.status-DIRECT_LINK_ONLY,.status-UNTESTED{background:#eef1f3;color:#59636c}
.status-CHECKING{background:#e8f0fe;color:#2458a6}
@media(max-width:700px){.connector-summary{grid-template-columns:repeat(2,1fr)}}


/* v9.2 connector verification + data quality */
.connector-summary{grid-template-columns:repeat(5,1fr)}
.connector-table{min-width:1280px}
.connector-table td{vertical-align:top}
.source-type{max-width:210px;white-space:normal;line-height:1.35;color:#4f5b65;font-weight:700}
.quality-pill,.coverage{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.quality-GOOD{background:#e8f8dc;color:#397300}.quality-REVIEW{background:#fff4d8;color:#8a6500}.quality-NEEDS_ATTENTION{background:#fde7e7;color:#a11}.quality-MANUAL{background:#eef1f3;color:#59636c}
.coverage-good{background:#e8f8dc;color:#397300}.coverage-mid{background:#fff4d8;color:#8a6500}.coverage-low{background:#fde7e7;color:#a11}
.quality-notes{margin-top:6px;max-width:300px;font-size:11px;line-height:1.35;color:#7a5b00;white-space:normal}
.connector-warning-row td{background:#fffdf7}
.connector-card .small{font-size:11px;color:#7b858e;margin-top:3px}
#connectorRefreshBtn:disabled{opacity:.65;cursor:wait}
@media(max-width:900px){.connector-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.connector-summary{grid-template-columns:repeat(2,1fr)}}

/* v9.3 connector provenance and on-demand status */
.status-SEARCH_DRIVEN{background:#e8f0fe;color:#2458a6}
.trust-OFFICIAL{color:#397300;font-weight:800;margin-top:4px}
.trust-FALLBACK{color:#9a6300;font-weight:800;margin-top:4px}
.trust-MANUAL{color:#6e7881;font-weight:800;margin-top:4px}
.connector-card .table-wrap{overflow-x:auto;max-width:100%}
.connector-table th:last-child,.connector-table td:last-child{min-width:160px}


/* v9.4 provenance + search diagnostics */
.source-pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800;letter-spacing:.04em;white-space:nowrap}
.source-official{background:#e7f7ec;color:#146c2e;border:1px solid #bfe8ca}
.source-fallback{background:#fff2cf;color:#7a5300;border:1px solid #f2d887}
.source-public{background:#edf1f5;color:#4d5965;border:1px solid #d7dde3}
.source-detail{display:grid;gap:4px;margin:14px 0;padding:12px 14px;background:#f6f8fa;border:1px solid #e1e6eb;border-radius:12px}
.source-detail span{font-size:14px}.source-detail small{color:#8a5a00}
.query-telemetry{margin-top:6px;font-size:11px;line-height:1.35;color:#66717c;max-width:240px}
.status-FALLBACK_REVIEW{background:#fff2cf!important;color:#7a5300!important}
.connector-summary{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))!important}
.table-wrap{overflow-x:auto}
.table-card table{min-width:1220px}


/* v9.6.0 result and detail polish */
.vehicle-feature{display:inline-flex;margin-top:6px;padding:3px 7px;border-radius:999px;background:#eef8e8;color:#356e10;font-size:9px;font-weight:900;letter-spacing:.05em;white-space:nowrap}
.vehicle-feature-muted{background:#f0f3f5;color:#68747d}
.vin-stock{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}
.result-row .detail-btn{min-width:62px}
.detail-head-badges{display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.detail-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:18px;margin-top:18px;align-items:start}
.detail-info-panel,.detail-media-panel{min-width:0}
.detail-media-panel{position:sticky;top:0}
.detail-vin{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;overflow-wrap:anywhere}
.provenance-card{margin-top:14px}
.photo-area{display:grid;place-items:center;min-height:290px;background:#fafbfb}
.photo-loading{background:linear-gradient(100deg,#f3f5f6 35%,#fafbfb 50%,#f3f5f6 65%);background-size:200% 100%;animation:photoShimmer 1.4s infinite}
.photo-placeholder{max-width:220px;color:#74808a;font-size:13px;line-height:1.45}
.vehicle-photo{width:100%;max-height:440px;object-fit:contain;border-radius:10px}
@keyframes photoShimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media(max-width:800px){
 .detail-layout{grid-template-columns:1fr}.detail-media-panel{position:static;order:-1}.photo-area{min-height:210px}
 .table-card table{min-width:0}.table-card thead{display:none}.table-card tbody{display:grid;gap:12px;padding:12px;background:#f4f6f8}
 .table-card tr.result-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:#fff;border:1px solid #dfe4e8;border-radius:12px;padding:12px;box-shadow:0 2px 8px rgba(15,23,42,.04)}
 .table-card tr.result-row:nth-child(even) td{background:transparent}
 .table-card tr.result-row td{display:block;white-space:normal;border:0;padding:7px 8px;min-width:0}
 .table-card tr.result-row td::before{content:attr(data-label);display:block;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:#7a858e;margin-bottom:3px}
 .table-card tr.result-row td:first-child{grid-column:1/-1;border-bottom:1px solid #edf0f2;padding-bottom:10px}
 .table-card tr.result-row td:last-child{display:flex;align-items:end}.table-card tr.result-row td:last-child::before{display:none}
 .table-card tr.result-row .detail-btn{width:100%;height:38px}
}
@media(max-width:520px){
 .table-card tr.result-row{grid-template-columns:1fr}.table-card tr.result-row td:first-child{grid-column:auto}
 .detail-box{padding:20px 14px}.detail-grid{grid-template-columns:1fr 1fr}.detail-head-badges{align-items:flex-start;margin-top:10px}
}

/* v9.6.1 focused detail/data corrections */
.detail-vin{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:11px;letter-spacing:-.02em}
.detail-field-missing{background:#fbfcfc!important;border:1px dashed #e2e7ea;color:#8a949c}
.detail-field-missing strong{color:#98a1a8!important}
.detail-field-missing span{font-weight:600!important;color:#a0a8ae}
@media(max-width:520px){.detail-vin{white-space:normal;overflow-wrap:anywhere}}

.coverage-note{margin:0 0 22px;padding:14px 18px;border:1px solid #d7dee5;border-radius:14px;background:#f7f9fb;color:#334155;line-height:1.45}.coverage-note strong{color:#17212b}
.ix-workflow-note{margin-top:16px;padding:12px 14px;border:1px solid #dfe6ea;border-radius:10px;background:#f7f9fa;display:flex;gap:8px;flex-direction:column}.donor-entry{display:grid;grid-template-columns:120px 1fr 1fr auto;gap:10px;margin-top:12px}.donor-entry input{min-width:0}.donor-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.donor-chip{display:inline-flex;align-items:center;gap:7px;background:#eef6e8;border:1px solid #d4e8c5;border-radius:999px;padding:6px 10px;font-weight:700;font-size:13px}.donor-chip button{border:0;background:transparent;font-size:17px;line-height:1;cursor:pointer;padding:0}.primary-link{background:#74d61c;color:#102000;border-radius:9px;padding:11px 16px;text-decoration:none;font-weight:800}@media(max-width:700px){.donor-entry{grid-template-columns:1fr 1fr}.donor-entry button{grid-column:1/-1}}

/* v9.9.0 workspace navigation */
.workspace-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px;padding:7px;background:#fff;border:1px solid #dfe4e8;border-radius:14px;box-shadow:0 5px 20px rgba(15,23,42,.05);position:sticky;top:8px;z-index:20}.workspace-tab{border:0;border-radius:9px;padding:11px 16px;background:transparent;color:#35414a;font-weight:800;cursor:pointer}.workspace-tab.active{background:#74d61c;color:#102000}.workspace{display:none}.workspace.active{display:block}.workspace-title{margin:4px 2px 16px}.workspace-title h2{margin:0 0 5px}.workspace-subpanel{margin-top:22px}.workspace .interchange-panel{margin-bottom:0}.workspace-yards .connector-card{margin-top:0}@media(max-width:560px){.workspace-nav{position:static}.workspace-tab{flex:1 1 45%;padding:10px 8px}}
/* v9.9.30 donor detail polish */
.detail-box{max-height:88vh;overflow:auto}
.detail-layout{gap:14px;margin-top:12px;grid-template-columns:minmax(0,1fr) minmax(300px,.9fr)}
.detail-grid{gap:10px}
.source-detail{margin-top:12px}
.fitment-detail{border-left:4px solid currentColor}
.photo-area{padding:12px}
.vehicle-photo{max-height:340px;object-fit:contain}
@media(max-width:760px){.detail-box{width:96vw;max-height:92vh}.detail-media-panel{order:-1}.vehicle-photo{max-height:260px}}

.year-range{display:grid;grid-template-columns:1fr 1fr;gap:8px}.year-range select{min-width:0;width:100%}

/* v9.9.36 desktop results table fit — layout only */
@media (min-width:1101px){
 .table-card .table-wrap{overflow-x:hidden;max-width:100%}
 .table-card table{width:100%;min-width:0;table-layout:fixed}
 .table-card th,.table-card td{padding-left:9px;padding-right:9px}
 .table-card th:nth-child(1),.table-card td:nth-child(1){width:16%}
 .table-card th:nth-child(2),.table-card td:nth-child(2){width:5%}
 .table-card th:nth-child(3),.table-card td:nth-child(3){width:6%}
 .table-card th:nth-child(4),.table-card td:nth-child(4){width:10%}
 .table-card th:nth-child(5),.table-card td:nth-child(5){width:12%}
 .table-card th:nth-child(6),.table-card td:nth-child(6){width:5%}
 .table-card th:nth-child(7),.table-card td:nth-child(7){width:5%}
 .table-card th:nth-child(8),.table-card td:nth-child(8){width:11%}
 .table-card th:nth-child(9),.table-card td:nth-child(9){width:9%}
 .table-card th:nth-child(10),.table-card td:nth-child(10){width:14%}
 .table-card th:nth-child(11),.table-card td:nth-child(11){width:7%}
 .table-card td{white-space:normal;overflow-wrap:anywhere}
 .table-card .vin-stock{font-size:11px}
 .table-card .detail-btn{min-width:0;width:100%;padding-left:7px;padding-right:7px}
}
@media (min-width:801px) and (max-width:1100px){
 .table-card .table-wrap{overflow-x:auto}
 .table-card table{min-width:980px}
}

/* v9.9.37 connector coverage audit */
.audit-summary{margin:12px 0;padding:12px 14px;border:1px solid #dfe5e8;border-radius:10px;background:#f8fafb;color:#33414b}
.fenix-diagnostic-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin:12px 0 16px;padding:14px;border:1px solid #dfe5e8;border-radius:12px;background:#fff}
.fenix-diagnostic-card h3{margin:2px 0 4px}.fenix-diagnostic-result{grid-column:1/-1;padding:10px 12px;border-radius:9px;background:#f4f7f8;font-size:13px;line-height:1.45}
@media(max-width:800px){.fenix-diagnostic-card{grid-template-columns:1fr}.fenix-diagnostic-card button{width:100%}}

/* v10 release-candidate diagnostics/about */
#workspace-about p{line-height:1.65;max-width:1000px}
#workspace-diagnostics td{white-space:normal;overflow-wrap:anywhere}

.saved-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.saved-toolbar button{border:0;border-radius:9px;height:44px;padding:0 18px;font-weight:800;cursor:pointer;background:#74d61c;color:#102000}.saved-search-card{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid #e1e6e9;border-radius:12px;padding:13px}.saved-search-copy{display:grid;gap:3px;min-width:0}.saved-search-copy strong{font-size:14px}.saved-search-copy span{font-size:13px;color:#4b5862}.saved-search-copy small{font-size:11px;color:#7a858e}.saved-search-actions{display:flex;gap:8px;flex-shrink:0}.saved-search-actions button{border:0;border-radius:8px;padding:8px 11px;font-weight:800;cursor:pointer}.saved-run{background:#74d61c;color:#102000}.saved-remove{background:#eef1f3;color:#27323a}@media(max-width:560px){.saved-search-card{align-items:flex-start;flex-direction:column}.saved-search-actions{width:100%}.saved-search-actions button{flex:1}}

.saved-history{margin-top:8px}.saved-history summary{cursor:pointer;font-size:12px;font-weight:800;color:#47545d}.saved-history-list{display:grid;gap:6px;margin-top:8px}.saved-history-row{display:grid;grid-template-columns:minmax(150px,1.4fr) minmax(90px,.7fr) minmax(90px,.8fr);gap:10px;align-items:center;padding:7px 9px;border-radius:8px;background:#f6f8f9;font-size:11px;color:#5f6b73}.saved-history-row strong{font-size:11px;color:#27323a}@media(max-width:650px){.saved-history-row{grid-template-columns:1fr}.saved-history-row span,.saved-history-row strong{display:block}}

/* Multi-yard selector */
.yard-multi{position:relative;width:100%}
.yard-toggle{
 width:100%;
 height:44px;
 border:1px solid #c9d0d6;
 border-radius:9px;
 padding:0 36px 0 12px;
 font-size:15px;
 background:#fff;
 color:#17202a;
 text-align:left;
 cursor:pointer;
 position:relative;
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis
}
.yard-toggle:after{
 content:"▾";
 position:absolute;
 right:12px;
 top:50%;
 transform:translateY(-50%);
 color:#65717b
}
.yard-menu{
 position:absolute;
 z-index:50;
 top:48px;
 left:0;
 width:max(100%,280px);
 max-height:340px;
 overflow:auto;
 background:#fff;
 border:1px solid #c9d0d6;
 border-radius:10px;
 box-shadow:0 10px 30px rgba(15,23,42,.16);
 padding:8px
}
.yard-option{
 display:flex!important;
 align-items:center;
 gap:9px;
 padding:9px 8px;
 margin:0!important;
 border-radius:7px;
 font-size:13px!important;
 font-weight:600!important;
 text-transform:none!important;
 letter-spacing:0!important;
 cursor:pointer
}
.yard-option:hover{background:#f4f6f8}
.yard-option input{
 width:16px!important;
 height:16px!important;
 margin:0;
 accent-color:#74d61c
}
.yard-all{
 border-bottom:1px solid #e5e9ec;
 border-radius:0;
 margin-bottom:5px!important;
 font-weight:800!important
}
@media(max-width:560px){
 .yard-menu{width:100%;max-height:300px}
}

/* v10.1 pagination */
.pagination-bar{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 flex-wrap:wrap;
 padding:14px 16px;
 border-top:1px solid #ddd;
}
.pagination-nav{
 display:flex;
 align-items:center;
 gap:6px;
}
#pageNumbers{
 display:flex;
 gap:5px;
}
#pageNumbers button{
 min-width:38px;
}
#pageNumbers .active-page{
 font-weight:800;
 outline:2px solid currentColor;
}
#pageInfo{
 font-size:.9rem;
 opacity:.75;
}
#pageSize{
 padding:8px 10px;
 border-radius:7px;
}
@media(max-width:700px){
 #pageNumbers{display:none}
 .pagination-bar{justify-content:center}
 #pageInfo{width:100%;text-align:center}
}

/* Scrappy Next — Frontend Phase 1A */
.yard-option-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.yard-option-name{
  line-height:1.25;
}
.yard-option-text small{
  opacity:.68;
  font-size:.78rem;
}
.yard-disabled{
  opacity:.58;
  cursor:not-allowed;
}
.yard-disabled input{
  cursor:not-allowed;
}
.yard-directory-heading{
  margin:10px 8px 5px;
  padding-top:9px;
  border-top:1px solid rgba(127,127,127,.25);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  opacity:.65;
}

/* Phase 1A directory visibility fix */
.yard-directory-heading{
 display:block;
 width:100%;
 margin:12px 0 6px;
 padding:10px 8px 6px;
 border-top:2px solid rgba(127,127,127,.35);
 font-size:.75rem;
 font-weight:700;
 text-transform:uppercase;
}

.yard-disabled{
 opacity:.55;
 cursor:not-allowed;
}

.yard-disabled span{
 display:flex;
 flex-direction:column;
}

.yard-disabled small{
 display:block;
 margin-top:2px;
 font-size:.72rem;
 font-weight:400;
}

/* ==================================================
   Scrappy Next — Frontend Phase 1B
   State-aware Yard Directory
   ================================================== */

.yard-directory-section{
 margin-top:18px;
}

.yard-directory-section:first-child{
 margin-top:0;
}

.yard-directory-section-title{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 margin-bottom:10px;
 font-size:.82rem;
 font-weight:800;
 letter-spacing:.06em;
 text-transform:uppercase;
}

.yard-directory-section-title span{
 min-width:28px;
 padding:3px 8px;
 border-radius:999px;
 text-align:center;
 background:rgba(127,127,127,.14);
}

.yard-directory-explainer{
 margin:-3px 0 12px;
}

.yard-directory-grid{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
 gap:12px;
}

.yard-card{
 padding:14px;
 border:1px solid rgba(127,127,127,.22);
 border-radius:12px;
 background:rgba(127,127,127,.04);
}

.yard-card-directory{
 opacity:.72;
}

.yard-card-heading{
 display:flex;
 justify-content:space-between;
 align-items:flex-start;
 gap:12px;
}

.yard-card-heading strong{
 display:block;
 line-height:1.25;
}

.yard-availability{
 flex:0 0 auto;
 padding:4px 7px;
 border-radius:999px;
 font-size:.68rem;
 font-weight:700;
 white-space:nowrap;
}

.yard-available{
 background:rgba(60,160,90,.14);
}

.yard-directory-only{
 background:rgba(127,127,127,.14);
}

.yard-note{
 margin-top:8px;
 font-size:.78rem;
 opacity:.72;
}

.yard-links{
 display:flex;
 gap:12px;
 margin-top:10px;
 font-size:.8rem;
}

@media (max-width:640px){
 .yard-directory-grid{
  grid-template-columns:1fr;
 }

 .yard-card-heading{
  flex-direction:column;
 }

 .yard-availability{
  white-space:normal;
 }
}

/* Phase 1B — Yard Directory state selector */
.yards-state-filter{
 display:flex;
 align-items:flex-end;
 gap:12px;
 margin:0 0 18px;
 padding:14px 16px;
 border:1px solid rgba(127,127,127,.22);
 border-radius:12px;
 background:rgba(127,127,127,.04);
}

.yards-state-filter .field{
 width:min(100%,320px);
 margin:0;
}

.yards-state-filter label{
 display:block;
 margin-bottom:6px;
 font-size:.78rem;
 font-weight:800;
 letter-spacing:.05em;
 text-transform:uppercase;
}

.yards-state-filter select{
 width:100%;
}

@media (max-width:640px){
 .yards-state-filter{
  display:block;
 }

 .yards-state-filter .field{
  width:100%;
 }
}

/* Phase 1C — mobile pagination */
@media (max-width:640px){
 .pagination-bar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
 }

 .pagination-bar #pageSize{
  width:100%;
 }

 .pagination-nav{
  display:flex;
  width:100%;
  gap:8px;
  align-items:center;
 }

 .pagination-nav #pagePrev,
 .pagination-nav #pageNext{
  flex:1;
 }

 #pageNumbers{
  display:none;
 }

 #pageInfo{
  width:100%;
  text-align:center;
  font-weight:700;
 }
}


/* Parts Interchange state selector */
.interchange-state-filter{
 display:flex;
 align-items:flex-end;
 margin:0 0 16px;
}

.interchange-state-filter .field{
 width:min(100%,320px);
}

.interchange-state-filter select{
 width:100%;
}

.interchange-state-filter small{
 display:block;
 margin-top:6px;
}

@media (max-width:640px){
 .interchange-state-filter .field{
  width:100%;
 }
}


/* Phase 1D — Search Results UX */

.result-location{
 margin-top:3px;
 font-size:.86rem;
 font-weight:600;
}

.result-yard-type{
 display:block;
 margin-top:3px;
}

.mobile-vehicle-title{
 display:none;
}

.result-detail .detail-btn{
 white-space:nowrap;
}

@media (max-width:640px){

 #results .result-row{
  display:block;
  margin:0 0 14px;
  padding:16px;
  border:1px solid var(--border, #d8dde3);
  border-radius:12px;
  background:var(--panel, #fff);
 }

 #results .result-row td{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  width:100%;
  padding:7px 0;
  border:0;
  text-align:right;
 }

 #results .result-row td::before{
  content:attr(data-label);
  flex:0 0 38%;
  text-align:left;
  font-size:.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
  opacity:.65;
 }

 #results .result-year,
 #results .result-make{
  display:none;
 }

 #results .result-model{
  display:block;
  text-align:left;
  padding:0 0 12px;
  margin-bottom:5px;
  border-bottom:1px solid var(--border, #e1e5ea);
 }

 #results .result-model::before{
  display:none;
 }

 #results .result-model > strong{
  display:none;
 }

 #results .mobile-vehicle-title{
  display:block;
  font-size:1.12rem;
  line-height:1.3;
  font-weight:800;
 }

 #results .result-yard{
  display:block;
  text-align:left;
  padding:10px 0;
 }

 #results .result-yard::before{
  display:block;
  content:"Yard";
  margin-bottom:3px;
 }

 #results .result-location{
  font-size:.86rem;
 }

 #results .result-source{
  align-items:center;
 }

 #results .result-detail{
  display:block;
  padding-top:12px;
 }

 #results .result-detail::before{
  display:none;
 }

 #results .result-detail .detail-btn{
  width:100%;
  min-height:44px;
 }

 #results .vin-stock{
  overflow-wrap:anywhere;
  word-break:break-word;
 }

}

/* Phase 1D.1 — Mobile vehicle card refinement */
@media (max-width:640px){

  /* Prevent the desktop table from forcing mobile width */
  .table-wrap{
    overflow:visible;
  }

  table{
    min-width:0;
  }

  #results{
    display:block;
    width:100%;
  }

  #results .result-row{
    display:flex;
    flex-direction:column;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    overflow:hidden;
  }

  /* Vehicle identity first */
  #results .result-model{
    order:1;
    width:100%;
    box-sizing:border-box;
    padding:0 0 12px;
    margin:0 0 4px;
  }

  #results .mobile-vehicle-title{
    display:block;
    width:100%;
    font-size:1.18rem;
    line-height:1.3;
    font-weight:800;
    overflow-wrap:anywhere;
  }

  /* Yard immediately below vehicle */
  #results .result-yard{
    order:2;
    width:100%;
    box-sizing:border-box;
    padding:8px 0 12px;
    text-align:left;
  }

  #results .result-yard::before{
    content:none;
  }

  #results .result-yard strong{
    display:block;
    font-size:1rem;
  }

  #results .result-location{
    margin-top:3px;
  }

  #results .result-yard-type{
    margin-top:3px;
  }

  /* Year and make already appear in vehicle title */
  #results .result-year,
  #results .result-make{
    display:none !important;
  }

  /* Remaining vehicle details */
  #results .result-row td:not(.result-model):not(.result-yard):not(.result-year):not(.result-make){
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }

  #results .result-row td[data-label="Sub model / trim"]{
    order:3;
  }

  #results .result-row td[data-label="Body"]{
    order:4;
  }

  #results .result-row td[data-label="Row"]{
    order:5;
  }

  #results .result-row td[data-label="VIN / Stock"]{
    order:6;
  }

  #results .result-arrival{
    order:7;
  }

  #results .result-source{
    order:8;
  }

  #results .result-detail{
    order:9;
  }

  /* Keep values inside the card */
  #results .result-row td{
    min-width:0;
  }

  #results .result-row td > *{
    min-width:0;
    max-width:100%;
  }

  #results .vin-stock{
    max-width:60%;
    overflow-wrap:anywhere;
    word-break:break-word;
  }

  #results .result-source .small{
    max-width:55%;
    text-align:right;
    overflow-wrap:anywhere;
  }

  #results .result-detail{
    width:100%;
    margin-top:5px;
  }

  #results .result-detail .detail-btn{
    display:block;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    min-height:46px;
  }
}

/* Phase 1D.2 — Final mobile result-card stack */
@media (max-width:640px){

 #results .result-row{
  padding:18px 16px;
  overflow:hidden;
 }

 /* Vehicle heading */
 #results .result-model{
  display:block !important;
  width:100% !important;
  text-align:left !important;
 }

 #results .mobile-vehicle-title{
  font-size:1.2rem;
  padding-right:0;
 }

 /* Feature/photo badge gets its own line */
 #results .result-model > div:not(.mobile-vehicle-title){
  display:block;
  width:100%;
  margin-top:8px;
  overflow:hidden;
 }

 #results .result-model > div:not(.mobile-vehicle-title) *{
  max-width:100%;
  white-space:normal;
 }

 /* Yard becomes a true stacked section */
 #results .result-yard{
  display:block !important;
  width:100% !important;
  text-align:left !important;
 }

 #results .result-yard strong{
  display:block;
  width:100%;
  font-size:1.05rem;
  line-height:1.3;
 }

 #results .result-location{
  display:inline;
  font-size:.9rem;
 }

 #results .result-yard-type{
  display:inline;
  font-size:.9rem;
 }

 #results .result-yard-type::before{
  content:" · ";
 }

 /* Detail rows */
 #results .result-row td:not(.result-model):not(.result-yard):not(.result-year):not(.result-make):not(.result-detail){
  display:grid !important;
  grid-template-columns:minmax(105px,38%) minmax(0,1fr);
  gap:12px;
  align-items:start;
  width:100% !important;
  text-align:right !important;
 }

 #results .result-row td::before{
  min-width:0;
 }

 #results .result-row td > *{
  min-width:0;
 }

 #results .vin-stock{
  display:block;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
 }

 /* Source badge + description */
 #results .result-source{
  grid-template-columns:minmax(105px,38%) minmax(0,1fr) !important;
 }

 #results .result-source .small{
  max-width:100%;
  text-align:right;
  overflow-wrap:anywhere;
 }

 #results .result-source > *{
  justify-self:end;
 }

 /* View button */
 #results .result-detail{
  display:block !important;
  width:100% !important;
  padding-top:14px;
 }

 #results .result-detail .detail-btn{
  width:100%;
 }
}

/* Phase 1D.3 — Expanded vehicle detail portrait fix */
@media (max-width:640px){

  .detail-modal{
    box-sizing:border-box;
    padding:12px !important;
    align-items:flex-start;
    overflow-y:auto;
    overflow-x:hidden;
  }

  .detail-box{
    position:relative;
    width:100% !important;
    max-width:100% !important;
    max-height:none !important;
    margin:8px auto 24px;
    padding:20px 16px !important;
    box-sizing:border-box;
    overflow-x:hidden;
    overflow-y:visible;
    border-radius:14px;
  }

  #detailContent{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
    overflow-x:hidden;
  }

  #detailContent *{
    max-width:100%;
    box-sizing:border-box;
  }

  /* Vehicle photos */
  #detailContent img,
  #detailContent .vehicle-photo{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    object-fit:contain;
    margin-left:auto;
    margin-right:auto;
  }

  #photoArea{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }

  /* Detail information becomes one column */
  #detailContent .detail-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    width:100%;
    gap:10px;
  }

  #detailContent .detail-grid > div{
    min-width:0;
    width:100%;
  }

  #detailContent .detail-grid strong,
  #detailContent .detail-grid span{
    display:block;
    max-width:100%;
  }

  /* Long VINs, stock numbers, URLs and source text */
  #detailContent p,
  #detailContent span,
  #detailContent a,
  #detailContent div{
    overflow-wrap:anywhere;
    word-break:break-word;
  }

  #detailContent a{
    max-width:100%;
  }

  /* Buttons/actions */
  #detailContent button{
    max-width:100%;
  }

  /* Close control stays accessible while scrolling */
  .modal-close{
    position:sticky !important;
    top:0;
    z-index:5;
    float:right;
    min-width:44px;
    min-height:44px;
    margin:-8px -4px 4px 8px;
  }
}

/* Phase 1D.4 — Expanded view photo/status width fix */
@media (max-width:640px){

 #detailContent #photoArea{
  display:block !important;
  float:none !important;
  clear:both !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  height:auto !important;
  margin:14px 0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
  writing-mode:horizontal-tb !important;
 }

 #detailContent #photoArea p{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  padding:14px !important;
  box-sizing:border-box !important;
  writing-mode:horizontal-tb !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  white-space:normal !important;
  text-align:left !important;
 }

 #detailContent #photoArea img,
 #detailContent #photoArea .vehicle-photo{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  margin:0 auto !important;
 }

}

/* Phase 1D.5 — True portrait detail layout fix */
@media (max-width:640px) and (orientation:portrait){

  /* Collapse any two-column detail shell */
  #detailContent .detail-layout,
  #detailContent .detail-body,
  #detailContent .detail-content,
  #detailContent .detail-shell{
    display:block !important;
    grid-template-columns:1fr !important;
    width:100% !important;
    max-width:100% !important;
  }

  #detailContent .detail-main-panel,
  #detailContent .detail-media-panel{
    display:block !important;
    position:static !important;
    float:none !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    flex:none !important;
    grid-column:auto !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }

  #detailContent .detail-media-panel{
    margin-top:16px !important;
  }

  #detailContent #photoArea{
    display:block !important;
    position:static !important;
    float:none !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
  }

  #detailContent #photoArea p,
  #detailContent .photo-placeholder{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    padding:16px !important;
    writing-mode:horizontal-tb !important;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:break-word !important;
    text-align:left !important;
  }

  #detailContent #photoArea img,
  #detailContent .vehicle-photo{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
  }
}

/* Phase 1D.6 — Move vehicle photo higher in portrait */
@media (max-width:640px) and (orientation:portrait){

  #detailContent .detail-layout,
  #detailContent .detail-body,
  #detailContent .detail-content,
  #detailContent .detail-shell{
    display:flex !important;
    flex-direction:column !important;
  }

  #detailContent .detail-media-panel{
    order:1 !important;
    width:100% !important;
    margin:14px 0 18px !important;
  }

  #detailContent .detail-main-panel{
    order:2 !important;
    width:100% !important;
  }

  #detailContent #photoArea{
    margin:0 !important;
  }

  #detailContent .vehicle-photo{
    width:100% !important;
    max-height:440px;
    object-fit:contain;
  }
}

/* Phase 1D.7 — Correct portrait photo ordering */
@media (max-width:640px) and (orientation:portrait){

  #detailContent .detail-layout{
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
  }

  #detailContent .detail-media-panel{
    order:1 !important;
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:14px 0 18px !important;
  }

  #detailContent .detail-info-panel{
    order:2 !important;
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }

  #detailContent #photoArea{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
  }

  #detailContent .vehicle-photo{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    max-height:440px;
    height:auto !important;
    object-fit:contain;
    margin:0 auto !important;
  }

  #detailContent .photo-placeholder,
  #detailContent #photoArea p{
    width:100% !important;
    max-width:100% !important;
    writing-mode:horizontal-tb !important;
    word-break:normal !important;
    overflow-wrap:break-word !important;
  }
}


/* Phase 1E — Yard Directory UX */

.yard-directory-section{
 margin-top:22px;
}

.yard-directory-section-title{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 margin-bottom:12px;
 font-size:1.05rem;
 font-weight:800;
}

.yard-directory-section-title span{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 min-width:30px;
 min-height:30px;
 padding:3px 9px;
 border-radius:999px;
 background:rgba(127,127,127,.12);
 font-size:.85rem;
}

.yard-directory-explainer{
 margin:-2px 0 14px;
 max-width:760px;
}

.yard-directory-grid{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
 gap:14px;
}

.yard-card{
 display:flex;
 flex-direction:column;
 gap:9px;
 min-width:0;
 padding:16px;
 border:1px solid var(--border,#d8dde3);
 border-radius:12px;
 background:var(--panel,#fff);
}

.yard-card-heading{
 display:flex;
 align-items:flex-start;
 justify-content:space-between;
 gap:12px;
}

.yard-card-heading > div{
 min-width:0;
}

.yard-card-heading strong{
 display:block;
 font-size:1rem;
 line-height:1.3;
}

.yard-availability{
 display:inline-flex;
 flex:0 0 auto;
 align-items:center;
 justify-content:center;
 padding:5px 9px;
 border-radius:999px;
 font-size:.72rem;
 line-height:1.2;
 font-weight:800;
 text-align:center;
}

.yard-available{
 background:rgba(25,135,84,.12);
}

.yard-directory-only{
 background:rgba(127,127,127,.12);
}

.yard-note{
 padding:8px 10px;
 border-radius:8px;
 background:rgba(127,127,127,.07);
 font-size:.82rem;
}

.yard-links{
 display:flex;
 flex-wrap:wrap;
 gap:8px;
 margin-top:auto;
 padding-top:5px;
}

.yard-links a{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 min-height:38px;
 padding:7px 12px;
 border:1px solid var(--border,#d8dde3);
 border-radius:8px;
 text-decoration:none;
 font-weight:700;
}

@media (max-width:640px){

 .yard-directory-grid{
  display:block;
 }

 .yard-card{
  width:100%;
  box-sizing:border-box;
  margin-bottom:12px;
 }

 .yard-card-heading{
  display:block;
 }

 .yard-availability{
  margin-top:9px;
 }

 .yard-links{
  display:grid;
  grid-template-columns:1fr 1fr;
 }

 .yard-links a:only-child{
  grid-column:1 / -1;
 }

}


/* Phase 1E.3 — Separate directory panel from individual yard cards */
.yard-directory-panel{
 background:#fff;
 border:1px solid #dfe4e8;
 border-radius:16px;
 box-shadow:0 5px 20px rgba(15,23,42,.05);
 padding:20px;
}

@media (max-width:640px){
 .yard-directory-panel{
  width:100%;
  box-sizing:border-box;
  padding:16px;
 }
}


/* Vehicle results heading */
.results-heading{
 margin:18px 0 10px;
 padding:14px 16px;
 border-radius:12px;
 background:var(--card, #fff);
 border:1px solid rgba(127,127,127,.22);
}

.results-heading strong{
 display:block;
 font-size:1.08rem;
 margin-bottom:4px;
}

.results-heading span{
 display:block;
 font-size:.9rem;
 opacity:.75;
 line-height:1.4;
}

@media (max-width:700px){
 .results-heading{
  margin:14px 0 8px;
  padding:12px 14px;
 }
}


/* ========================================================
   Phase 1F.2 — Parts Interchange workflow
   ======================================================== */

.ix-section{
 margin:18px 0;
 padding:16px;
 border:1px solid rgba(127,127,127,.20);
 border-radius:14px;
}

.ix-section-title{
 display:flex;
 align-items:flex-start;
 gap:12px;
 margin-bottom:16px;
}

.ix-section-title > div{
 min-width:0;
}

.ix-section-title strong{
 display:block;
 font-size:1.05rem;
}

.ix-section-title small{
 display:block;
 margin-top:3px;
 opacity:.72;
 line-height:1.4;
}

.ix-step-number{
 display:flex;
 align-items:center;
 justify-content:center;
 flex:0 0 32px;
 width:32px;
 height:32px;
 border-radius:50%;
 font-weight:700;
 border:1px solid currentColor;
}

.ix-state-section .interchange-state-filter{
 margin:0;
 padding:0;
 border:0;
}

@media (max-width:700px){
 .ix-section{
  margin:14px 0;
  padding:14px;
 }

 .ix-section-title{
  gap:10px;
  margin-bottom:14px;
 }
}


/* ========================================================
   Phase 1F.2 — Parts Interchange workflow
   ======================================================== */

.ix-section{
 margin:18px 0;
 padding:16px;
 border:1px solid rgba(127,127,127,.20);
 border-radius:14px;
}

.ix-section-title{
 display:flex;
 align-items:flex-start;
 gap:12px;
 margin-bottom:16px;
}

.ix-section-title > div{
 min-width:0;
}

.ix-section-title strong{
 display:block;
 font-size:1.05rem;
}

.ix-section-title small{
 display:block;
 margin-top:3px;
 opacity:.72;
 line-height:1.4;
}

.ix-step-number{
 display:flex;
 align-items:center;
 justify-content:center;
 flex:0 0 32px;
 width:32px;
 height:32px;
 border-radius:50%;
 font-weight:700;
 border:1px solid currentColor;
}

.ix-state-section .interchange-state-filter{
 margin:0;
 padding:0;
 border:0;
}

@media (max-width:700px){
 .ix-section{
  margin:14px 0;
  padding:14px;
 }

 .ix-section-title{
  gap:10px;
  margin-bottom:14px;
 }
}


/* ========================================================
   Phase 1G.1 — Navigation / members / Sell Your Junk Car
   ======================================================== */

.scrappy-nav-shell{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.scrappy-nav-shell .workspace-nav{
  margin-bottom:0;
  flex:1;
}

.sell-car-tab{
  font-weight:700;
}

.member-entry{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}

.member-login,
.member-signup{
  white-space:nowrap;
}

.member-login{
  background:transparent;
}

.sell-car-intro,
.sell-car-form-card{
  border-radius:16px;
  padding:20px;
  margin-bottom:18px;
}

.sell-car-intro{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(240px,.8fr);
  gap:18px;
  align-items:center;
}

.sell-car-intro h3{
  margin:5px 0 8px;
}

.sell-step-label{
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.08em;
}

.sell-privacy-note{
  padding:16px;
  border-radius:12px;
  border:1px solid currentColor;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.sell-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.sell-description{
  margin-top:16px;
}

.sell-description textarea{
  width:100%;
  box-sizing:border-box;
  resize:vertical;
}

.sell-coming-badge{
  font-size:.78rem;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
}

.sell-next-box{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin:18px 0;
  padding:14px 16px;
  border-radius:12px;
}

.member-dialog[hidden]{
  display:none;
}

.member-dialog{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  padding:18px;
}

.member-dialog-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.58);
}

.member-dialog-card{
  position:relative;
  width:min(680px,100%);
  max-height:85vh;
  overflow:auto;
  border-radius:18px;
  padding:24px;
  background:var(--card,white);
  z-index:1;
}

.member-dialog-close{
  position:absolute;
  right:12px;
  top:10px;
  min-width:40px;
  font-size:1.5rem;
}

.member-feature-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}

.member-feature-grid > div{
  border:1px solid rgba(127,127,127,.3);
  border-radius:12px;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.member-feature-grid span,
.member-dialog-note{
  font-size:.9rem;
}

.member-dialog-note{
  margin-top:18px;
  padding:12px 14px;
  border-radius:10px;
}

body.member-dialog-open{
  overflow:hidden;
}

@media(max-width:800px){
  .scrappy-nav-shell{
    display:block;
  }

  .scrappy-nav-shell .workspace-nav{
    margin-bottom:12px;
  }

  .member-entry{
    justify-content:flex-end;
  }

  .sell-car-intro,
  .sell-form-grid{
    grid-template-columns:1fr;
  }

  .member-feature-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:520px){
  .member-entry{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .member-entry button{
    width:100%;
  }

  .sell-car-intro,
  .sell-car-form-card{
    padding:16px;
  }
}


/* ========================================================
   Phase 1G.2 — Public navigation + member UI polish
   ======================================================== */

.scrappy-nav-shell{
  align-items:center;
}

.scrappy-nav-shell .workspace-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.scrappy-nav-shell .workspace-tab{
  min-height:44px;
}

.member-entry{
  gap:8px;
}

.member-login,
.member-signup{
  min-height:44px;
  border-radius:10px;
  padding:9px 16px;
  font-weight:700;
  cursor:pointer;
}

.member-signup{
  font-weight:800;
}

/* Member modal */
.member-dialog{
  box-sizing:border-box;
}

.member-dialog-card{
  box-sizing:border-box;
  width:min(680px,calc(100vw - 32px));
  max-width:680px;
}

.member-dialog-card > .muted{
  max-width:100%;
  overflow-wrap:anywhere;
}

.member-dialog-close{
  position:sticky;
  top:0;
  float:right;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:auto;
  min-width:44px;
  min-height:44px;
  margin:-8px -6px 8px 12px;
  padding:7px 10px;
  border-radius:10px;
  z-index:30;
  cursor:pointer;
}

.member-close-text{
  font-size:.85rem;
  font-weight:700;
}

.member-feature-grid > div{
  box-sizing:border-box;
}

/* Keep development diagnostics out of the public menu.
   The diagnostics workspace/code remains intact for Phase 1I. */
.workspace-tab[data-workspace="diagnostics"]{
  display:none;
}

@media(max-width:800px){

  .scrappy-nav-shell{
    display:block;
    margin-bottom:18px;
  }

  .scrappy-nav-shell .workspace-nav{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    padding:10px;
  }

  .scrappy-nav-shell .workspace-tab{
    width:100%;
    min-width:0;
    min-height:42px;
    padding:8px 7px;
    font-size:.9rem;
    line-height:1.15;
    border-radius:10px;
  }

  .member-entry{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:8px;
  }

  .member-entry button{
    width:100%;
  }

  .member-dialog{
    padding:8px;
    align-items:start;
    overflow-y:auto;
    overflow-x:hidden;
  }

  .member-dialog-card{
    width:100%;
    max-width:100%;
    max-height:none;
    margin:8px 0 24px;
    padding:18px;
    overflow-x:hidden;
  }

  .member-dialog-card h2{
    padding-right:4px;
  }

  .member-feature-grid{
    gap:9px;
  }

  .member-feature-grid > div{
    padding:12px;
  }
}

@media(max-width:430px){

  .scrappy-nav-shell .workspace-nav{
    gap:6px;
    padding:8px;
  }

  .scrappy-nav-shell .workspace-tab{
    font-size:.84rem;
    padding:8px 5px;
  }

  .member-dialog-card{
    padding:15px;
  }

  .member-dialog-close{
    margin:-4px -2px 8px 10px;
  }
}

/* Mobile Vehicle Search control isolation */
@media (max-width:560px){
  .search-card > .field{
    position:relative;
    width:100%;
    min-width:0;
    z-index:1;
  }

  .search-card > .field:first-child{
    z-index:5;
  }

  #stateSelect{
    position:relative;
    display:block;
    width:100%;
    height:44px;
    z-index:6;
    pointer-events:auto;
    touch-action:manipulation;
  }

  #make{
    position:relative;
    z-index:1;
  }
}


/* Phase 1G.3 — Vehicle Search member actions */
.search-member-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin:16px 0;
  padding:16px 18px;
  background:#fff;
  border:1px solid #dfe4e8;
  border-radius:12px;
}

.search-member-action-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.search-member-action-copy strong{
  font-size:15px;
}

.search-member-action-copy span{
  font-size:13px;
  color:#66727d;
}

.search-member-action-buttons{
  display:flex;
  gap:9px;
  flex-shrink:0;
}

.search-member-action-buttons button{
  border:0;
  border-radius:9px;
  min-height:42px;
  padding:0 16px;
  font-weight:800;
  cursor:pointer;
  background:#74d61c;
  color:#102000;
}

@media(max-width:700px){
  .search-member-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .search-member-action-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }

  .search-member-action-buttons button{
    width:100%;
  }
}

@media(max-width:430px){
  .search-member-action-buttons{
    grid-template-columns:1fr;
  }
}


/* Phase 1I.3 — Public About + Contact */
.about-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.about-card h3,
.contact-section h2{
  margin-top:0;
}

.about-card p{
  margin-bottom:0;
  line-height:1.6;
  color:#56626c;
}

.contact-section{
  margin-bottom:24px;
}

.contact-heading{
  margin-bottom:18px;
}

.contact-heading h2{
  margin-bottom:7px;
}

.contact-options{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.contact-option{
  border:1px solid #dfe4e8;
  border-radius:12px;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.contact-option strong{
  font-size:15px;
}

.contact-option span{
  color:#66727d;
  font-size:13px;
  line-height:1.45;
}

.contact-coming{
  margin-top:16px;
  padding:14px 16px;
  border-radius:10px;
  background:#f5f7f8;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.contact-coming span{
  color:#66727d;
  font-size:13px;
}

@media(max-width:700px){
  .about-grid,
  .contact-options{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   Yard Directory — responsive presentation refresh
   Presentation only. Existing rendering/data logic unchanged.
   ========================================================= */

.yard-directory-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  width:100%;
  align-items:stretch;
}

.yard-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
  padding:18px;
  border:1px solid rgba(127,127,127,.22);
  border-radius:14px;
  background:rgba(127,127,127,.035);
}

.yard-card-directory{
  opacity:1;
  background:rgba(127,127,127,.025);
  border-style:solid;
}

.yard-card-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}

.yard-card-heading > *{
  min-width:0;
}

.yard-card-heading strong{
  display:block;
  font-size:1rem;
  line-height:1.3;
  overflow-wrap:anywhere;
}

.yard-availability{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 9px;
  border-radius:999px;
  font-size:.68rem;
  font-weight:800;
  line-height:1.2;
  white-space:nowrap;
}

.yard-available{
  background:rgba(60,160,90,.14);
}

.yard-directory-only{
  background:rgba(127,127,127,.12);
}

.yard-note{
  margin-top:10px;
  font-size:.8rem;
  line-height:1.45;
  opacity:.78;
}

.yard-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  margin-top:auto;
  padding-top:14px;
  font-size:.82rem;
}

.yards-state-filter{
  width:100%;
  margin-bottom:20px;
}

/* Tablet */
@media (min-width:641px) and (max-width:1050px){
  .yard-directory-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }
}

/* Mobile */
@media (max-width:640px){
  .yard-directory-grid{
    grid-template-columns:minmax(0,1fr);
    gap:12px;
  }

  .yard-card{
    padding:15px;
  }

  .yard-card-heading{
    flex-direction:row;
    gap:10px;
  }

  .yard-availability{
    white-space:normal;
    text-align:center;
  }

  .yard-links{
    padding-top:12px;
  }
}



/* =========================================================
   Scrappy Member UI — mobile / tablet / desktop
   ========================================================= */

body.scrappy-auth-open{
  overflow:hidden;
}

.scrappy-auth-overlay{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(0,0,0,.58);
}

.scrappy-auth-overlay[hidden]{
  display:none !important;
}

.scrappy-auth-dialog{
  position:relative;
  width:min(100%,460px);
  max-height:calc(100vh - 40px);
  overflow:auto;
  padding:26px;
  border:1px solid rgba(127,127,127,.28);
  border-radius:16px;
  background:var(--panel, #fff);
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.scrappy-auth-close{
  position:absolute;
  top:10px;
  right:12px;
  width:38px;
  height:38px;
  padding:0;
  border:0;
  background:transparent;
  font-size:1.65rem;
  line-height:1;
  cursor:pointer;
}

.scrappy-auth-dialog h2{
  margin-top:2px;
}

.scrappy-auth-intro{
  margin-bottom:20px;
}

.scrappy-auth-dialog .field{
  width:100%;
  margin-bottom:14px;
}

.scrappy-auth-dialog input{
  width:100%;
  box-sizing:border-box;
}

.scrappy-auth-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.scrappy-auth-actions button{
  flex:1 1 170px;
}

.scrappy-auth-message{
  margin-top:10px;
  padding:10px 12px;
  border-radius:9px;
  font-size:.86rem;
  background:rgba(60,160,90,.12);
}

.scrappy-auth-message.error{
  background:rgba(190,60,60,.12);
}

.member-profile-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  width:100%;
}

.member-profile-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:180px;
  padding:18px;
  border:1px solid rgba(127,127,127,.22);
  border-radius:14px;
  background:rgba(127,127,127,.035);
}

.member-profile-card h3{
  margin-top:0;
}

.member-empty{
  margin-top:auto;
  padding-top:18px;
  font-size:.82rem;
  opacity:.68;
}

/* Tablet */
@media (min-width:641px) and (max-width:1050px){
  .member-profile-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* Mobile */
@media (max-width:640px){
  .scrappy-auth-overlay{
    align-items:flex-end;
    padding:10px;
  }

  .scrappy-auth-dialog{
    width:100%;
    max-height:calc(100vh - 20px);
    padding:20px 16px;
    border-radius:16px;
  }

  .scrappy-auth-actions{
    flex-direction:column;
  }

  .scrappy-auth-actions button{
    width:100%;
    flex:auto;
  }

  .member-profile-grid{
    grid-template-columns:minmax(0,1fr);
    gap:12px;
  }

  .member-profile-card{
    min-height:150px;
    padding:15px;
  }
}


/* =========================================================
   Yard Directory desktop layout fix
   Inventory Available and Coming Later stack full-width.
   ========================================================= */

@media (min-width:1051px){

  .yard-directory-section{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    flex:0 0 100% !important;
    grid-column:1 / -1 !important;
    margin-bottom:32px !important;
  }

  .yard-directory-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:18px !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
  }

  .yard-card{
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
  }

  .yard-card-heading{
    min-width:0 !important;
  }

  .yard-card-heading > div{
    min-width:0 !important;
  }

  .yard-card strong{
    word-break:normal !important;
    overflow-wrap:normal !important;
  }

  .yard-availability{
    flex:0 0 auto !important;
  }
}



/* =========================================================
   Vehicle Search multi-model selector
   ========================================================= */

.model-field{
  min-width:0;
}

.model-multi{
  position:relative;
  width:100%;
}

.model-toggle{
  width:100%;
  min-height:42px;
  text-align:left;
  padding:9px 38px 9px 12px;
  position:relative;
}

.model-toggle::after{
  content:"▾";
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
}

.model-menu{
  position:absolute;
  z-index:80;
  top:calc(100% + 6px);
  left:0;
  width:max(100%,260px);
  max-width:360px;
  max-height:320px;
  overflow:auto;
  background:var(--panel, #fff);
  border:1px solid rgba(127,127,127,.28);
  border-radius:10px;
  box-shadow:0 12px 28px rgba(0,0,0,.16);
  padding:8px;
}

.model-option{
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 9px;
  border-radius:7px;
  cursor:pointer;
  line-height:1.25;
}

.model-option:hover{
  background:rgba(127,127,127,.10);
}

.model-option input{
  flex:0 0 auto;
  margin:0;
}

.model-all{
  font-weight:600;
  border-bottom:1px solid rgba(127,127,127,.18);
  border-radius:0;
  margin-bottom:5px;
  padding-bottom:10px;
}

@media (max-width:700px){
  .model-menu{
    width:100%;
    max-width:none;
  }
}


/* =========================================================
   Vehicle Search model selector — native-dropdown appearance
   ========================================================= */

.model-toggle{
  background:#fff !important;
  color:inherit !important;
  border:1px solid rgba(80,95,110,.32) !important;
  border-radius:8px !important;
  font:inherit !important;
  font-weight:400 !important;
  min-height:55px !important;
  padding:0 38px 0 16px !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.model-menu{
  background:#fff !important;
  padding:6px 0 !important;
  border-radius:8px !important;
  max-height:340px !important;
}

.model-option{
  position:relative;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  min-height:42px;
  padding:8px 14px !important;
  border-radius:0 !important;
  cursor:pointer;
  user-select:none;
}

.model-option:hover{
  background:rgba(20,30,40,.06) !important;
}

/* Keep the real checkbox accessible but visually hidden. */
.model-option input[type="checkbox"]{
  position:absolute !important;
  opacity:0 !important;
  pointer-events:none !important;
  width:1px !important;
  height:1px !important;
}

.model-check{
  display:inline-flex;
  width:20px;
  flex:0 0 20px;
  align-items:center;
  justify-content:center;
  font-size:18px;
  font-weight:700;
  visibility:hidden;
}

.model-option:has(input:checked) .model-check{
  visibility:visible;
}

.model-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.model-option:has(input:checked) .model-name{
  font-weight:700;
}

.model-all{
  margin:0 0 4px !important;
  padding-bottom:8px !important;
  border-bottom:1px solid rgba(80,95,110,.15) !important;
}


/* Vehicle Alert clickable inventory count */
.member-alert-count{
 appearance:none;
 border:0;
 padding:0;
 margin:0;
 background:none;
 color:#2563eb;
 font:inherit;
 font-weight:700;
 text-decoration:underline;
 text-decoration-thickness:1.5px;
 text-underline-offset:3px;
 cursor:pointer;
}

.member-alert-count:hover{
 text-decoration-thickness:2px;
}

.member-alert-count:focus-visible{
 outline:2px solid currentColor;
 outline-offset:3px;
 border-radius:2px;
}

/* Vehicle Alert heading + inventory link */
.member-alert-copy{
 width:100%;
}

.member-alert-heading{
 display:flex;
 align-items:flex-start;
 justify-content:space-between;
 gap:18px;
 width:100%;
}

.member-alert-heading > strong{
 min-width:0;
}

.member-alert-heading .member-alert-count{
 flex:0 0 auto;
 margin-left:auto;
 white-space:nowrap;
}

@media (max-width:640px){
 .member-alert-heading{
  flex-wrap:wrap;
 }

 .member-alert-heading .member-alert-count{
  margin-left:0;
 }
}
