@font-face{font-family:QuoteDisplay;src:url('/Orbitron.ttf') format('truetype');font-weight:400 900;font-display:swap}
:root{--green:#234739;--lime:#daefa7;--ink:#162c24;--muted:#6b7e75;--line:#dbe4dd;--paper:#fff;--bg:#f0f3f2;--orange:#f5bf7c;--cream:#ffecd5;--blue:#ccdcf4}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Arial,'Microsoft YaHei',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;min-height:36px;padding:7px 13px;border:1px solid #b8ccbf;border-radius:6px;background:white;color:var(--green);line-height:1.4}button:hover{background:#f2f7ef}button:disabled{cursor:not-allowed;opacity:.5}button.primary{background:var(--green);border-color:var(--green);color:white}button.black{background:#171717;color:white;border-color:#171717}button.danger{border-color:#e7c6c1;color:#a04438}button.small{font-size:12px;min-height:28px;padding:3px 8px}input,select,textarea{width:100%;min-width:0;padding:9px 10px;border:1px solid #b7c6bd;border-radius:5px;background:white;color:#10271f}textarea{resize:vertical;min-height:72px}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid #91b9a3;outline-offset:1px}input:disabled,select:disabled{background:#eff2ed;color:#8a938c}.loading{padding:40px;text-align:center}.muted,small{color:var(--muted)}small{font-size:12px}.error{color:#a43c34;white-space:pre-wrap}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#ecf3e9,#fafafa)}.login-card{width:min(440px,100%);padding:36px;background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 60px #17342410}.brand{font-family:QuoteDisplay,Arial,sans-serif;font-weight:800;font-size:23px;letter-spacing:.5px}.login-card h1{font-size:25px;margin:26px 0 8px}.login-card label{display:block;margin:20px 0 6px}.login-card button{width:100%;margin-top:26px}.login-note{margin-top:22px;font-size:12px;color:var(--muted)}.shell{display:grid;grid-template-columns:200px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;align-self:start;height:100vh;background:#1e3d31;color:#fff;padding:28px 14px;display:flex;flex-direction:column;gap:24px}.sidebar .brand{font-size:19px;padding:0 8px}.nav{display:grid;gap:7px}.nav button{border:0;background:transparent;color:#e7efea;text-align:left;padding:12px}.nav button.active{background:var(--lime);color:#233e2f;font-weight:bold}.account{margin-top:auto;padding:12px 8px;border-top:1px solid #5c7668}.account small{display:block;color:#bed0c6;margin:3px 0 15px}.account button{color:#e9f1ed;background:transparent;border-color:#6e887b}.workspace{padding:26px 30px;min-width:0}.topbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 auto 20px;max-width:1500px}.topbar h1{font-size:24px;margin:0 auto 0 0}.status{font-size:12px;color:var(--muted);margin-left:auto}.page{max-width:1500px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:10px;padding:24px;min-width:0}.page h2{margin:0 0 6px;font-size:22px}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.tabs{display:flex;gap:6px;flex-wrap:wrap}.tabs button.active{background:var(--green);color:#fff}.spacer{flex:1}.quote-head{display:grid;grid-template-columns:145px 225px minmax(0,1fr);gap:22px;margin-bottom:24px;align-items:start}.quote-head.no-image{grid-template-columns:145px minmax(0,1fr)}.quote-factor label{display:block;font-weight:bold;margin-bottom:6px}.quote-factor small{display:block;margin-top:8px}.upload{height:120px;position:relative;display:flex;justify-content:center;align-items:center;gap:10px;border:1px dashed #a9bdb1;background:#fcfdfb;border-radius:8px;color:#355144;cursor:pointer;overflow:hidden;text-align:center;padding:10px}.upload:hover,.upload.drag{border-color:var(--green);background:#eef6e7}.upload img{max-height:100%;max-width:65%;object-fit:contain}.upload input{position:absolute;inset:0;opacity:0;cursor:pointer}.upload span{font-size:12px}.vehicle-line{display:flex;gap:12px;align-items:center;font-size:25px;margin-bottom:12px}.vehicle-line input{font-size:22px}.head-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.head-controls select{width:190px}.label-inline{display:flex;align-items:center;gap:7px}.toggle{display:inline-flex;align-items:center;gap:9px;cursor:pointer;font-size:13px}.toggle input{position:absolute;opacity:0;width:1px;height:1px}.toggle .track{display:inline-block;position:relative;width:34px;height:19px;background:#a9b4ad;border-radius:12px;flex:none;transition:background .15s}.toggle .track:after{content:'';position:absolute;left:3px;top:3px;width:13px;height:13px;border-radius:50%;background:white;transition:transform .15s}.toggle input:checked+.track{background:#3c8057}.toggle input:checked+.track:after{transform:translateX(15px)}.toggle input:focus-visible+.track{outline:2px solid #7ca891;outline-offset:2px}.promo-line{margin-top:10px;display:flex;justify-content:space-between;align-items:center}.spec-block{margin:18px 0 0}.spec-caption{display:flex;justify-content:space-between;align-items:center;background:#e6e9e8;padding:9px 12px;font-weight:bold;border:1px solid #c5cfca;border-bottom:0}.spec-grid{display:grid;grid-template-columns:160px 150px repeat(5,minmax(70px,1fr));border:1px solid #829a69;background:#e2f0cc;gap:0}.spec-cell{padding:10px;border-right:1px solid #becfad;min-width:0}.spec-cell:last-child{border-right:0}.spec-cell label{display:block;font-size:12px;font-weight:bold;margin-bottom:5px}.spec-cell input,.spec-cell select{text-align:center}.spec-cell.photo{grid-column:auto}.spec-grid.has-photo{grid-template-columns:115px 135px 145px repeat(5,minmax(65px,1fr))}.spec-grid.rim{grid-template-columns:150px 150px 150px repeat(3,minmax(80px,1fr))}.spec-grid.rim.three{grid-template-columns:150px 150px 150px repeat(2,minmax(80px,1fr))}.spec-cell .upload{height:72px;padding:4px}.spec-cell .upload img{max-width:100%}.spec-cell .upload span{font-size:11px}.spec-row{margin-bottom:12px}.spec-row .spec-grid+.spec-grid{border-top:0}.spec-add{display:flex;justify-content:flex-start;margin-bottom:15px}.price-list{margin-top:0}.price-row{border:1px solid #c89f6b;border-top:0;background:var(--cream)}.price-row:first-child{border-top:1px solid #c89f6b}.price-title{display:flex;align-items:center;gap:10px;padding:7px 12px;background:var(--orange);font-weight:bold}.price-title .toggle{margin-left:auto;font-weight:normal}.price-body{display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(120px,1fr) minmax(100px,1fr) minmax(130px,1fr);align-items:stretch}.price-choice{display:flex;gap:9px;align-items:center;padding:10px}.price-choice>select{flex:1}.price-choice>span{flex:1}.price-value{padding:10px;text-align:center;border-left:1px solid #e8cda9;display:flex;flex-direction:column;justify-content:center;gap:4px}.price-value small{display:block;font-size:11px;color:#7d715e}.price-value strong{font-size:19px;font-variant-numeric:tabular-nums}.price-value input{text-align:center}.price-value .reference{font-size:11px;color:#746f63}.pending{color:#aa7b1d}.price-row.inner .price-title{background:#b7d7d3}.price-row.inner{background:#e5f2ef;border-color:#a0c1bb}.extras-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:18px 0}.extras-toolbar .toggle{gap:5px}.section-title{background:#e5ebe7;padding:9px 12px;font-weight:bold}.sum-line{display:flex;justify-content:space-between;gap:15px;padding:12px 18px;background:var(--blue);border:1px solid #7e9dc2;font-size:19px;font-weight:bold}.sum-line strong{font-variant-numeric:tabular-nums}.freight-settings{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:18px 0 12px}.freight-settings select{width:190px}.market-switch{margin-left:auto;display:flex;gap:7px;align-items:center}.freight-card{background:#f9e7cf;border:1px solid #cba875}.freight-title{background:var(--orange);padding:10px 14px;font-weight:bold}.freight-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:16px}.freight-fields label{display:block;font-size:12px;margin-bottom:5px}.freight-fields button{width:100%;text-align:left;min-height:40px;background:#fff}.freight-fields input{text-align:center}.days-input{display:flex;gap:5px;align-items:center}.freight-note{padding:0 16px 12px;font-size:12px;color:#80632d}.discount-row{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px;padding:12px 18px;border:1px solid #9eb5d4;background:#e6eefb}.discount-row input{text-align:center}.quote-footer{display:flex;align-items:center;gap:10px;margin-top:20px;justify-content:flex-end}.quote-id{margin-right:auto;color:#728078;font-size:13px}.preview-mobile{display:none}.table-wrap{overflow:auto;margin-top:18px}table{width:100%;border-collapse:collapse}th,td{padding:13px 10px;border-bottom:1px solid var(--line);vertical-align:middle;text-align:left}th{background:#f0f5ed;color:#526b5c;font-size:12px;white-space:nowrap}td{font-size:13px}.history-table{min-width:1160px}.history-table td,.history-table th{text-align:center}.history-table .left{text-align:left}.history-table img{width:62px;height:58px;object-fit:contain;background:#fafafa;border:1px solid var(--line);border-radius:4px;cursor:zoom-in}.history-table .preview-thumb{width:86px}.history-table .actions{display:flex;gap:5px;justify-content:center}.history-filters{display:flex;gap:10px;margin-top:20px;align-items:center;flex-wrap:wrap}.history-filters input[type=search]{max-width:370px}.history-filters input[type=date]{width:165px}.empty{text-align:center;padding:35px;color:#7c8b80}.modal-backdrop{position:fixed;inset:0;background:#13201870;z-index:20;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(2px)}.modal{background:white;border-radius:12px;box-shadow:0 25px 100px #0003;max-height:calc(100dvh - 40px);overflow:auto;width:min(560px,100%)}.modal.large{width:min(1150px,100%)}.modal-head{display:flex;align-items:center;gap:10px;padding:17px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2;flex-wrap:wrap}.modal-head strong{margin-right:auto;font-size:17px}.modal-body{padding:22px}.modal-head select{width:auto;max-width:230px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;padding:15px 22px 22px}.modal-preview{background:#ecefee;padding:22px;overflow:auto}.modal-preview canvas{display:block;width:100%;height:auto;background:#fff;box-shadow:0 2px 15px #1231}.lightbox-img{max-width:100%;max-height:78vh;object-fit:contain;display:block;margin:auto}.country-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.country-list button{text-align:left;background:#f6f9f3;padding:10px}.country-list button small{display:block}.country-group-title{margin:18px 0 8px;color:#6f8075;font-size:12px}.country-search{position:sticky;top:0;background:white}.admin-section{margin-top:22px;border:1px solid var(--line);border-radius:7px;overflow:hidden}.admin-section summary{padding:13px 16px;background:#f1f6ec;font-weight:bold;cursor:pointer}.admin-section .body{padding:16px}.admin-section textarea.json{font-family:Consolas,monospace;font-size:12px;min-height:180px}.settings-note{margin-bottom:18px;color:#728277}.admin-rows{overflow:auto}.admin-rows table{min-width:650px}.admin-rows td{padding:6px}.admin-rows input{min-width:80px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid label{display:block;margin-bottom:5px}.form-grid .wide{grid-column:1/-1}.sticky-actions{position:sticky;bottom:0;display:flex;gap:12px;justify-content:flex-end;background:#ffffffed;padding:15px 0;margin-top:20px;border-top:1px solid var(--line)}#toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);z-index:100;background:#18382d;color:white;border-radius:8px;padding:12px 20px;box-shadow:0 6px 25px #0002;max-width:90vw;display:none}.help{font-size:12px;color:#6c7d72;margin-top:6px}.hidden{display:none!important}
@media(max-width:1100px){.workspace{padding:20px 16px}.page{padding:18px}.quote-head{grid-template-columns:125px 185px 1fr;gap:12px}.spec-grid,.spec-grid.has-photo{grid-template-columns:135px 135px repeat(5,minmax(60px,1fr))}.spec-grid.has-photo .photo{grid-column:1/-1}.spec-grid.has-photo .upload{height:80px;max-width:150px}.spec-cell{padding:7px}.price-body{grid-template-columns:minmax(180px,1.5fr) repeat(3,minmax(90px,1fr))}}
@media(max-width:760px){body{font-size:14px}.shell{display:block}.sidebar{position:relative;height:auto;padding:18px 14px;gap:15px}.sidebar .brand{font-size:20px;padding:0}.nav{display:flex;gap:4px;flex-wrap:wrap}.nav button{padding:8px 10px}.account{margin:0;padding:10px 0 0;display:flex;align-items:center;gap:10px}.account small{margin:0 auto 0 0}.account button{font-size:12px;min-height:30px;padding:4px 9px}.workspace{padding:14px 10px}.topbar{margin-bottom:12px}.topbar h1{font-size:20px}.status{font-size:11px}.page{padding:12px;border-radius:9px}.toolbar{gap:6px;margin-bottom:15px}.tabs{gap:5px}.tabs button, .toolbar button{padding:7px 10px;font-size:13px}.preview-desktop{display:none}.preview-mobile{display:block}.quote-head{grid-template-columns:1fr 1fr;gap:14px}.quote-head.no-image{grid-template-columns:1fr}.quote-head .quote-main{grid-column:1/-1}.upload{height:112px}.quote-factor .promo-line{justify-content:flex-start;gap:10px}.vehicle-line{font-size:21px}.vehicle-line input{font-size:17px}.head-controls select{width:100%;flex:1}.head-controls .label-inline{width:100%}.head-controls .desktop-controls{display:none}.spec-grid,.spec-grid.has-photo,.spec-grid.rim,.spec-grid.rim.three{display:grid;grid-template-columns:1fr 1fr;background:#eff5e7;padding:8px;border-color:#b5c994;gap:9px}.spec-cell{padding:0;border:0}.spec-cell.factory{grid-column:1/-1}.spec-cell.structure{grid-column:1/-1}.spec-cell.type{grid-column:1/-1}.spec-cell.photo{grid-column:1/-1!important}.spec-cell input,.spec-cell select{min-height:42px;font-size:16px;background:#fff}.spec-cell label{font-size:12px;color:#4b6455;font-weight:normal}.spec-cell .upload{height:110px;max-width:none!important}.spec-cell .upload img{max-width:70%;height:100%}.spec-caption{padding:8px 10px}.price-body{grid-template-columns:repeat(3,minmax(0,1fr))}.price-choice{grid-column:1/-1;padding:9px;min-height:51px;border-bottom:1px solid #e8cda9}.price-value{padding:9px 6px;background:#fff9f0;min-height:76px;border-left:1px solid #e8cda9}.price-value:nth-child(2){border-left:0}.price-value strong{font-size:18px}.price-value input{padding:7px;text-align:center;font-size:16px}.price-value small{font-size:11px}.price-title{padding:8px 10px;font-size:13px}.sum-line{padding:12px;font-size:16px}.extras-toolbar{gap:8px;padding:15px 0}.freight-settings{gap:12px;align-items:stretch;padding:5px 0 12px}.freight-settings .label-inline{width:100%;justify-content:space-between}.freight-settings select{width:65%}.market-switch{width:100%;justify-content:flex-end;margin:0;order:-1}.freight-fields{grid-template-columns:1fr 1fr;gap:12px;padding:12px}.freight-fields .wide{grid-column:1/-1}.freight-fields input,.freight-fields select{font-size:16px;min-height:42px}.freight-note{padding:0 12px 12px}.quote-footer{flex-wrap:wrap}.quote-footer .preview-mobile{width:100%;min-height:45px}.quote-id{width:100%;text-align:right}.modal-backdrop{padding:9px}.modal{max-height:calc(100dvh - 18px)}.modal-head{padding:12px;gap:7px}.modal-head strong{font-size:16px}.modal-head button{padding:6px 9px;font-size:12px}.modal-head select{max-width:190px}.modal-body{padding:14px}.modal-preview{padding:7px}.form-grid{grid-template-columns:1fr}.country-list{grid-template-columns:1fr}.history-filters input[type=search]{max-width:none}.history-table{min-width:1100px}.topbar .status{display:none}.settings-note{font-size:12px}.sticky-actions{bottom:0}.price-row.inner .price-value{background:#f3faf7}}

.blank-heavy{color:#af2929;font-weight:700}.blank-light{color:#24713c;font-weight:700}.blank-result{padding:14px;border:1px solid #dde7dc;border-radius:8px;margin:12px 0}
.wheel-spec-heading{display:none}
.price-title-label{display:flex;align-items:center;gap:10px;width:100%;min-width:0}
.desktop-price-head{display:none}
@media(min-width:761px){
 .wheel-spec-table{--wheel-columns:minmax(110px,1.05fr) minmax(85px,.8fr) minmax(140px,1.5fr) repeat(5,minmax(60px,1fr));margin-bottom:6px}
 .wheel-spec-heading,.wheel-spec-table .spec-row{display:grid;grid-template-columns:var(--wheel-columns)}
 .wheel-spec-heading{background:#b4d980;border:1px solid #414c36;text-align:center;font-weight:bold}
 .wheel-spec-heading>span{display:flex;align-items:center;justify-content:center;min-height:34px;padding:3px;border-right:1px solid #414c36}
 .wheel-spec-heading>span:last-child{border-right:0}
 .wheel-spec-table .spec-row{margin:0;background:#dff0c8;border:1px solid #414c36;border-top:0}
 .wheel-spec-table .spec-grid{display:contents}
 .wheel-spec-table .spec-caption{grid-column:2;grid-row:1;display:flex;justify-content:center;background:#b4d980;border:0;border-right:1px solid #414c36;padding:6px;text-align:center}
 .wheel-spec-table .spec-cell{grid-row:1;padding:6px;border-right:1px solid #414c36}
 .wheel-spec-table .spec-cell:nth-child(1){grid-column:1}
 .wheel-spec-table .spec-cell:nth-child(2){grid-column:3}
 .wheel-spec-table .spec-cell:nth-child(3){grid-column:4}
 .wheel-spec-table .spec-cell:nth-child(4){grid-column:5}
 .wheel-spec-table .spec-cell:nth-child(5){grid-column:6}
 .wheel-spec-table .spec-cell:nth-child(6){grid-column:7}
 .wheel-spec-table .spec-cell:nth-child(7){grid-column:8;border-right:0}
 .wheel-spec-table .spec-cell:nth-child(n+8),.wheel-spec-table .spec-cell>label{display:none}
 .wheel-spec-table .spec-cell input,.wheel-spec-table .spec-cell select{height:36px;padding:5px}
 .price-title{display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(120px,1fr) minmax(100px,1fr) minmax(130px,1fr);padding:0;text-align:center;gap:0}
 .price-title-label{min-height:34px;justify-content:center;padding:4px 8px}
 .desktop-price-head{display:contents}
 .desktop-price-head span{padding:7px;border-left:1px solid #c89f6b}
 .price-value small{display:none}
 .price-choice>span{text-align:center}
 .price-value strong{font-size:15px;font-weight:normal}
}
@media(min-width:761px) and (max-width:1100px){
 .price-title{grid-template-columns:minmax(180px,1.5fr) repeat(3,minmax(90px,1fr))}
}
@media(min-width:761px){
 .wheel-spec-table{--wheel-columns:minmax(85px,.8fr) minmax(140px,1.5fr) repeat(5,minmax(60px,1fr));margin-left:100px}
 .wheel-spec-heading>span:first-child{display:none}
 .wheel-spec-table .spec-row{position:relative}
 .wheel-spec-table .spec-caption{grid-column:1}
 .wheel-spec-table .spec-cell.factory{position:absolute;right:calc(100% + 8px);top:50%;transform:translateY(-50%);width:92px;border:0;padding:0}
 .wheel-spec-table .spec-cell:nth-child(2){grid-column:2}
 .wheel-spec-table .spec-cell:nth-child(3){grid-column:3}
 .wheel-spec-table .spec-cell:nth-child(4){grid-column:4}
 .wheel-spec-table .spec-cell:nth-child(5){grid-column:5}
 .wheel-spec-table .spec-cell:nth-child(6){grid-column:6}
 .wheel-spec-table .spec-cell:nth-child(7){grid-column:7}
 .wheel-prices{margin-left:100px}
 .quote-page-wheel #extras,.quote-page-wheel #quote-totals{margin-left:100px}
 .wheel-prices .price-row{position:relative}
 .wheel-prices .price-choice>button[data-manual]{position:absolute;right:calc(100% + 8px);top:calc(50% + 17px);transform:translateY(-50%);width:92px}
 .wheel-prices .price-title-label>.toggle{position:absolute;right:calc(100% + 8px);top:4px;width:92px;justify-content:flex-end}
}

/* Keep the original quote controls in their desktop or mobile positions. */
.extra-check{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.extra-check input{width:auto;min-width:0;margin:0}
.freight-options{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.freight-options>strong{width:100%}
#sidebar-freight[hidden]{display:none}
@media(min-width:761px){
 .head-controls .extras-toolbar{padding:0;gap:7px}
 .quote-head .head-controls select{width:155px}
 .head-controls .extras-toolbar button{min-height:32px;padding:4px 8px}
 .head-controls .market-switch{margin-left:auto}
 #sidebar-freight{border-top:1px solid #617a6c;padding-top:16px;color:white}
 #sidebar-freight .freight-options{display:grid;gap:10px}
 #sidebar-freight label{display:grid;gap:5px}
 #sidebar-freight select{width:100%;color:#10271f}
 .price-title,.price-body{grid-template-columns:30% 20% 20% 30%}
 .price-title-label{min-height:30px}
 .price-choice,.price-value{padding:5px 7px}
 .price-value input{padding:6px}
 .quote-page-wheel .sum-line{display:grid;grid-template-columns:1fr 1fr;text-align:center;padding:8px 12px}
 .freight-card{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0}
 .freight-fields{display:contents}
 .freight-title{grid-row:1;grid-column:1;display:flex;align-items:center;justify-content:center;padding:8px 4px}
 .freight-fields>div{min-width:0;padding:6px;background:#f9dfbf;border-left:1px solid #cba875}
 .freight-fields>div:nth-child(-n+3){grid-row:1;background:var(--orange);display:flex;align-items:center;gap:6px}
 .freight-fields>div:nth-child(1){grid-column:2/4}
 .freight-fields>div:nth-child(2){grid-column:4/6}
 .freight-fields>div:nth-child(3){grid-column:6/8}
 .freight-fields>div:nth-child(4){grid-row:2;grid-column:1/3;border-left:0}
 .freight-fields>div:nth-child(5){grid-row:2;grid-column:3/6}
 .freight-fields>div:nth-child(6){grid-row:2;grid-column:6/8}
 .freight-fields>div:nth-child(-n+3)>label{white-space:nowrap;margin:0}
 .freight-fields>div:nth-child(-n+3) input,.freight-fields>div:nth-child(-n+3) button{min-height:34px;padding:5px}
 .freight-note{grid-column:1/-1}
 .quote-page-multi .spec-block,.quote-page-rim .spec-block,.quote-page-multi #extras,.quote-page-rim #extras,.quote-page-multi #quote-totals,.quote-page-rim #quote-totals{margin-left:100px}
 .quote-page-multi .spec-grid.has-photo{position:relative;grid-template-columns:110px minmax(130px,1.5fr) repeat(5,minmax(60px,1fr));gap:0}
 .quote-page-multi .spec-grid.has-photo .factory{position:absolute;right:calc(100% + 8px);top:50%;transform:translateY(-50%);width:92px;padding:0;border:0}
 .quote-page-multi .spec-grid.has-photo .factory label{display:none}
 .quote-page-multi .spec-grid.has-photo .photo{grid-column:auto}
 .quote-page-multi .spec-grid.has-photo .spec-cell:not(.factory),.quote-page-rim .spec-grid .spec-cell{padding:5px}
 .quote-page-multi .spec-grid.has-photo .spec-cell label,.quote-page-rim .spec-grid .spec-cell label{text-align:center}
 .quote-page-multi .spec-grid.has-photo .spec-cell:has([data-validate-blank]){display:none}
 .quote-page-multi .price-list .price-row,.quote-page-rim .price-list .price-row{position:relative}
 .quote-page-multi .price-list .price-choice>button[data-manual],.quote-page-rim .price-list .price-choice>button[data-manual]{position:absolute;right:calc(100% + 8px);top:calc(50% + 15px);transform:translateY(-50%);width:92px}
 .quote-page-rim .spec-row{position:relative}
 .quote-page-rim .spec-caption{position:absolute;z-index:1;top:35px;left:7px;padding:0;border:0;background:transparent;gap:3px}
 .quote-page-rim .spec-caption>span{white-space:nowrap}
 .quote-page-rim .spec-caption>button{position:absolute;left:4px;top:-30px;white-space:nowrap}
 .quote-page-rim .spec-grid.rim,.quote-page-rim .spec-grid.rim.three{position:relative;grid-template-columns:minmax(170px,1fr) minmax(130px,1fr) repeat(3,minmax(75px,1fr))}
 .quote-page-rim .spec-grid.rim .factory:has(select){position:absolute;right:calc(100% + 8px);top:50%;transform:translateY(-50%);width:92px;padding:0;border:0}
 .quote-page-rim .spec-grid.rim .factory:has(select)>label{display:none}
 .quote-page-rim .spec-grid.rim .structure{padding-left:62px}
 .quote-page-rim .spec-grid.rim.three+.spec-grid.rim.three .factory{grid-column:3}
 .quote-page-rim .spec-grid.rim.three+.spec-grid.rim.three .type{display:none}
 .quote-page-rim .spec-grid.rim.three+.spec-grid.rim.three .spec-cell:nth-child(3){grid-column:4}
 .quote-page-rim .spec-grid.rim.three+.spec-grid.rim.three .spec-cell:nth-child(4){grid-column:5}
}
@media(max-width:760px){
 .multi-blank-all{display:none}
 .wheel-spec-table{padding:8px;background:#edf5e8;border:1px solid #b5c994;border-radius:7px}
 .wheel-spec-table .spec-row{position:relative;margin-bottom:8px}
 .wheel-spec-table .spec-row:last-child{margin-bottom:0}
 .wheel-spec-table .spec-caption{position:absolute;z-index:1;right:18px;top:18px;padding:0;border:0;background:transparent}
 .wheel-spec-table .spec-grid{background:white;border:1px solid #d8e7d2;border-radius:7px;padding:10px}
 .wheel-spec-table .spec-cell.factory>label{display:none}
 .wheel-spec-table .spec-cell.factory>select{width:calc(100% - 65px)}
 .wheel-spec-table .spec-cell:last-child>label{display:none}
 .wheel-spec-table .spec-cell:last-child>button{width:100%;min-height:42px}
 .freight-settings{display:block}
 .freight-settings .market-switch{justify-content:flex-end;margin-bottom:12px}
 .freight-settings .freight-options{display:grid;grid-template-columns:1fr 1fr;padding:10px;border:1px solid #d8e7d2;border-radius:6px;background:#f6faf3}
 .freight-settings .freight-options>strong{grid-column:1/-1}
 .freight-settings .freight-options label{display:grid;gap:5px;width:auto}
 .freight-settings .freight-options select{width:100%}
}

/* Desktop quote editor follows the original local quotation sheet. */
.quote-sync-note{display:none}
.multi-spec-heading,.rim-spec-heading{display:none}
.desktop-admin-nav{display:none}
@media(min-width:901px){
 .shell{grid-template-columns:210px minmax(0,1fr)}
 .sidebar .brand{font:700 19px/1.5 Arial,'Microsoft YaHei',sans-serif;letter-spacing:0;white-space:nowrap}
 .ref-page{max-width:1320px;padding:30px 32px;color:#273e32}
 .ref-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;border-bottom:1px solid #e6ece5;padding-bottom:20px}
 .ref-heading h2{font-size:25px;margin:4px 0}.ref-heading p{font-size:12px}
 .ref-eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#819485}.ref-private{background:#edf4e8;border:1px solid #dbe9d4;border-radius:20px;color:#466b50;font-size:12px;padding:6px 12px;white-space:nowrap}
 .ref-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.ref-stats>div{background:#f7f9f6;border:1px solid #e4eae2;border-radius:8px;padding:15px 18px}.ref-stats small,.ref-filter small{display:block;color:#7e8f81;font-size:12px}.ref-stats strong{display:block;font-size:23px;color:#214835}
 .ref-filter{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:18px 0;border-bottom:1px solid #e6ece5}.ref-filter-buttons{display:flex;gap:7px;flex-wrap:wrap}.ref-filter-buttons button{padding:9px 13px}.ref-filter-buttons button.active{background:#244f3b;border-color:#244f3b;color:white}.ref-filter label{font-size:12px;min-width:220px}.ref-filter input{margin-top:8px}.ref-count{font-size:12px;color:#7e8f81;margin:14px 0 8px}
 .ref-cost-group{position:relative;margin:0 0 18px;border:1px solid #d9e5d5;border-radius:9px;overflow:visible}.ref-cost-group>header{display:flex;justify-content:space-between;background:#f1f6ed;padding:12px 15px;border-radius:8px 8px 0 0}.ref-cost-group>header span{font-size:12px;color:#829186}.ref-cost-controls{position:absolute;right:calc(100% + 7px);bottom:0;width:105px;display:grid;gap:4px}.ref-cost-controls button{font-size:11px;padding:3px;min-height:27px}
 .cost-reference #cost-matrices .ref-cost-group{margin-left:105px}.ref-matrix .ref-factory-name,.ref-matrix .ref-size-name{border-color:transparent;background:transparent;font-size:11px;padding:2px;text-align:center}.ref-matrix .ref-factory-name{font-weight:700}
 .ref-matrix,.packing-matrix table,.freight-channel table,.zy-matrix{width:100%;border-collapse:collapse;table-layout:fixed}.ref-matrix th,.ref-matrix td,.packing-matrix th,.packing-matrix td,.freight-channel th,.freight-channel td,.zy-matrix th,.zy-matrix td{border:1px solid #d9e5d7;text-align:center;padding:3px;font-size:11px}.ref-matrix th{font-weight:400;color:#728b7d;background:#f8faf7}.ref-matrix .ref-factory{width:110px;font-weight:bold;color:#254d38}.ref-matrix .ref-axis{width:54px}.ref-matrix input,.packing-matrix input,.freight-channel input,.zy-matrix input{padding:4px 2px;text-align:center;font-size:11px;min-height:25px}.ref-matrix .ref-cost-input{border-color:transparent;background:transparent;color:#214835;font-weight:bold}.ref-matrix .ref-cost-input.disabled-price{background:#eee;color:#888}.ref-enabled{display:block;margin:2px auto;min-height:20px;font-size:10px;padding:1px 5px;background:#e5f0e3}.ref-enabled.off{background:#eee;color:#888;border-color:#ddd}
 .reference-panel{border:1px solid #dbe6d9;border-radius:8px;margin:18px 0;background:#fbfcf9}.reference-panel>summary{cursor:pointer;color:#294a39;font-weight:700;padding:15px}.reference-panel>summary small{font-weight:400;margin-left:8px}.reference-body{padding:0 15px 15px}.reference-body h4{font-size:13px;margin:12px 0 7px}.packing-matrix{margin:14px 0}.packing-matrix table{table-layout:auto}.packing-matrix th,.freight-channel th,.zy-matrix th{background:#f0f5ed;color:#536b5b}.packing-matrix th:first-child{width:110px}.packing-matrix input{min-width:42px}.packing-add{display:flex;gap:6px;max-width:470px;margin-top:8px}.packing-add button{white-space:nowrap}.freight-channels{display:grid;grid-template-columns:1fr 1fr;gap:20px}.freight-channel label{display:block;font-size:12px;color:#718777;margin-top:8px}.freight-channel label input{display:block}.zy-filter{display:flex;gap:12px}.zy-filter label{width:230px;font-size:12px}.zy-filter input,.zy-filter select{margin-top:6px}.ref-table-scroll{max-height:420px;overflow:auto}.zy-matrix{min-width:900px}.zy-matrix td:nth-child(3){text-align:left;white-space:pre-wrap;max-width:190px;overflow-wrap:anywhere}
 .special-scroll{overflow-x:auto}.special-table{width:100%;border-collapse:collapse;table-layout:fixed}.special-table th,.special-table td{border:1px solid #dbe6d9;padding:3px;text-align:center;font-size:11px}.special-table th{background:#f0f5ed;color:#536b5b}.special-table input,.special-table select{min-width:55px;padding:4px;text-align:center;font-size:11px}.special-group{margin:16px 0}.special-group h4{background:#f0f5ed;padding:9px}.special-rules,.blank-tools{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}.special-rules label{font-size:12px;min-width:130px}.special-rules input{display:block;margin-top:5px}.blank-tools input{width:230px}.blank-tools span{font-size:12px;color:#718777}.special-panel .reference-panel{margin:8px 0}
 .desktop-admin-nav{display:grid;gap:7px}
 .mobile-admin-nav{display:none}
 .parameters-page{max-width:1320px;border:1px solid #d8e1d9;border-radius:8px;padding:24px;font:14px/1.5 Arial,'Microsoft YaHei',sans-serif}
 .parameters-page h2{font-size:22px;margin:0 0 6px}
 .parameters-page .parameter-rate{width:340px;max-width:100%;padding:6px}
 .parameters-page .markup-level-editor{display:grid;gap:9px;max-width:340px}
 .parameters-page .markup-level-editor .setting-entry{display:flex;align-items:center;gap:10px;margin:0}
 .parameters-page .markup-level-editor .setting-entry label{min-width:30px}
 .parameters-page .markup-level-editor .setting-entry input{width:120px;padding:6px}
 .parameters-page .markup-level-editor button{justify-self:start}
 .parameters-page .parameter-note,.parameters-page .markup-level-editor .help{font-size:12px}
 .parameters-page .parameter-promotion{display:grid;gap:9px;max-width:460px;margin:20px 0}
 .parameters-page .parameter-promotion h3{margin:0 0 10px}
 .parameters-page .parameter-promotion label:not(.toggle){display:flex;justify-content:space-between;align-items:center;gap:10px}
 .parameters-page .parameter-promotion input:not([type=checkbox]){width:205px;padding:6px}
 .parameters-page .parameter-switch{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px}
 .shell:has(.quote-workspace){grid-template-columns:210px minmax(0,1fr)}
 .shell:has(.quote-workspace) .sidebar{background:#173d30;padding:24px 14px;gap:18px}
 .shell:has(.quote-workspace) .sidebar .brand{font:700 19px/1.5 Arial,'Microsoft YaHei',sans-serif;letter-spacing:0;white-space:nowrap}
 .quote-workspace{padding:1px 14px;background:#f0f2f3;color:#171717}
 .quote-workspace .topbar{display:none}
 .quote-workspace .page[class*='quote-page-']{position:relative;max-width:1320px;margin:72px auto 0;padding:12px;border:1px solid #ccd5df;border-radius:0;font-size:16px}
 .quote-workspace .toolbar{position:absolute;top:-57px;left:0;right:0;max-width:1200px;min-height:40px;margin:auto;gap:8px}
 .quote-workspace .toolbar button{padding:9px 15px}
 .quote-workspace .quote-sync-note{display:block;margin-left:auto;font-size:11px;color:#72652d}
 .quote-workspace .quote-head{position:relative;display:grid;grid-template-columns:270px minmax(0,1fr);gap:25px;align-items:center;margin:0 0 0 110px;padding:8px 8px 15px;min-height:128px}
 .quote-workspace .quote-head.no-image{grid-template-columns:minmax(0,1fr)}
 .quote-workspace .quote-factor{position:absolute;right:calc(100% + 4px);top:50%;transform:translateY(-50%);width:102px;font-size:15px}
 .quote-workspace .quote-factor label{margin-bottom:5px}
 .quote-workspace .quote-factor select{padding:7px 3px;font-size:14px}
 .quote-workspace .quote-factor small{margin-top:4px;font-size:11px}
 .quote-workspace .quote-head>.upload{width:270px;height:105px;padding:0;background:transparent;font-size:13px}
 .quote-workspace .vehicle-line{font-size:24px;gap:15px;margin-bottom:10px}
 .quote-workspace .vehicle-line input{font-size:20px;padding:8px}
 .quote-workspace .head-controls{gap:10px;font-size:14px}
 .quote-workspace .head-controls .extras-toolbar{gap:6px}
 .quote-workspace .head-controls .extras-toolbar button{font-size:12px}
 .quote-workspace .head-controls .market-switch{font-size:12px}
 .quote-workspace .wheel-spec-table,.quote-workspace .wheel-prices,.quote-workspace .quote-page-wheel #extras,.quote-workspace .quote-page-wheel #quote-totals,.quote-workspace .quote-page-multi .spec-block,.quote-workspace .quote-page-rim .spec-block,.quote-workspace .quote-page-multi #extras,.quote-workspace .quote-page-rim #extras,.quote-workspace .quote-page-multi #quote-totals,.quote-workspace .quote-page-rim #quote-totals{margin-left:110px}
 .quote-workspace .wheel-spec-table{--wheel-columns:12% 18% repeat(5,14%);margin-bottom:6px}
 .quote-workspace .wheel-spec-heading,.quote-workspace .wheel-spec-table .spec-row{border-color:#111}
 .quote-workspace .wheel-spec-heading,.quote-workspace .wheel-spec-table .spec-caption{background:#aed982}
 .quote-workspace .wheel-spec-table .spec-row{background:#dcf1c8}
 .quote-workspace .wheel-spec-heading>span{min-height:43px;border-color:#111}
 .quote-workspace .wheel-spec-table .spec-caption,.quote-workspace .wheel-spec-table .spec-cell{border-color:#111}
 .quote-workspace .wheel-spec-table .spec-cell{padding:6px}
 .quote-workspace .wheel-spec-table .spec-cell input,.quote-workspace .wheel-spec-table .spec-cell select{height:36px}
 .quote-workspace .wheel-spec-table .spec-cell.factory select{padding:4px 2px;font-size:12px}
 .quote-workspace .price-row{background:#ffe0c3;border-color:#111}
 .quote-workspace .price-title{background:#ffbd7a}
 .quote-workspace .price-title-label{min-height:30px}
 .quote-workspace .desktop-price-head span{padding:4px 7px}
 .quote-workspace .desktop-price-head span,.quote-workspace .price-value{border-color:#111}
 .quote-workspace .price-body{min-height:45px}
 .quote-workspace .price-choice,.quote-workspace .price-value{padding:5px 7px}
 .quote-workspace .price-value strong{font-size:16px}
 .quote-workspace .sum-line{display:grid;grid-template-columns:1fr 1fr;text-align:center;padding:0;background:#a9c9f7;border-color:#111;font-size:20px}
 .quote-workspace .sum-line>span,.quote-workspace .sum-line>strong{padding:6px}
 .quote-workspace .sum-line>strong{background:#cde0fb;border-left:1px solid #111}
 .quote-workspace #quote-totals{position:relative}
 .quote-workspace #quote-totals>.freight-settings{display:none}
 .quote-workspace .freight-overweight{position:relative;height:6px}
 .quote-workspace .freight-overweight>.toggle{position:absolute;right:calc(100% + 8px);top:7px;width:90px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:14px;font-weight:600}
 .quote-workspace .freight-overweight .track{align-self:flex-end;margin-right:14px}
 .quote-workspace .freight-card{border-color:#111}
 .quote-workspace .freight-title,.quote-workspace .freight-fields>div:nth-child(-n+3){background:#ffbd7a}
 .quote-workspace .freight-fields>div{border-color:#111;background:#ffe0c3}
 .quote-workspace .freight-fields>div:nth-child(n+4){border-top:1px solid #111}
 .quote-workspace .freight-title{font-size:0}
 .quote-workspace .freight-title::after{content:'Freight-DDP';font-size:16px}
 .quote-workspace .freight-fields>div:nth-child(-n+3){border-left:0}
 .quote-workspace .freight-fields>div:nth-child(4){grid-column:1/3}
 .quote-workspace .freight-fields>div:nth-child(5){grid-column:3/6;display:flex;justify-content:center;align-items:center;gap:5px}
 .quote-workspace .freight-fields>div:nth-child(5)::before{content:'About (Day) ≈';white-space:nowrap}
 .quote-workspace .freight-fields>div:nth-child(5) .days-input{width:150px}
 .quote-workspace .freight-fields>div:nth-child(6){grid-column:6/8}
 .quote-workspace .freight-fields>div:nth-child(n+4)>label{display:none}
 .quote-workspace .freight-note{display:none}
 .quote-workspace .freight-note[role="alert"]{display:block;padding:8px 12px;background:#fff4ed;color:#a43c34;font-size:14px}
 .quote-workspace #quote-totals>.extras-toolbar:not(#quote-extras-toolbar){position:relative;height:0;padding:0}
 .quote-workspace #quote-totals>.extras-toolbar:not(#quote-extras-toolbar)>.toggle{position:absolute;right:calc(100% + 8px);bottom:0;width:90px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:14px;font-weight:600}
 .quote-workspace #quote-totals>.extras-toolbar:not(#quote-extras-toolbar) .track{align-self:flex-end;margin-right:14px}
 .quote-workspace .quote-footer{margin-top:0;padding:18px 5px;font-size:14px}
 .quote-workspace .quote-footer .quote-id{margin-left:auto;margin-right:0;text-align:right}
 .quote-workspace .quote-head .head-controls>.muted{display:none}
 .quote-workspace .quote-head.no-image{min-height:118px}
 .quote-workspace .quote-page-rim #quote-extras-toolbar{display:none}
 .quote-workspace #spec-and-prices{position:relative}
 .quote-workspace .quote-page-multi .spec-add,.quote-workspace .quote-page-rim .spec-add{position:absolute;z-index:2;left:0;top:38px;width:102px;margin:0;justify-content:center}
 .quote-workspace .quote-page-rim .spec-add{top:5px}
 .quote-workspace .quote-page-multi .spec-add button,.quote-workspace .quote-page-rim .spec-add button{width:100%;padding:4px;font-size:12px;min-height:32px}
 .quote-workspace .quote-page-multi .spec-block,.quote-workspace .quote-page-rim .spec-block{margin-top:0;margin-bottom:10px}
 .quote-workspace .quote-page-multi .spec-block:last-child,.quote-workspace .quote-page-rim .spec-block:last-child{margin-bottom:0}
 .quote-workspace .quote-page-multi .spec-row,.quote-workspace .quote-page-rim .spec-row{margin-bottom:0}
 .quote-workspace .quote-page-multi .spec-caption{height:36px;padding:6px 10px;background:#e7e9e9;border:1px solid #bdc7c7;font-size:14px}
 .quote-workspace .multi-spec-heading,.quote-workspace .rim-spec-heading{display:grid;text-align:center;background:#aed982;border:1px solid #111;border-bottom:0;font-weight:bold}
 .quote-workspace .multi-spec-heading{grid-template-columns:110px minmax(130px,1.5fr) repeat(5,minmax(60px,1fr))}
 .quote-workspace .rim-spec-heading{grid-template-columns:minmax(170px,1fr) minmax(130px,1fr) repeat(3,minmax(75px,1fr))}
 .quote-workspace .multi-spec-heading span,.quote-workspace .rim-spec-heading span{padding:5px 4px;border-right:1px solid #111;min-width:0}
 .quote-workspace .multi-spec-heading span:last-child,.quote-workspace .rim-spec-heading span:last-child{border-right:0}
 .quote-workspace .quote-page-multi .spec-grid.has-photo,.quote-workspace .quote-page-rim .spec-grid.rim{border-color:#111;background:#dcf1c8}
 .quote-workspace .quote-page-multi .spec-grid.has-photo .spec-cell:not(.factory),.quote-workspace .quote-page-rim .spec-grid.rim .spec-cell:not(.factory){border-color:#111}
 .quote-workspace .quote-page-multi .spec-grid.has-photo .spec-cell>label:not(.upload),.quote-workspace .quote-page-rim .spec-grid.rim .spec-cell>label{display:none}
 .quote-workspace .quote-page-rim .spec-grid.rim.three .spec-cell:has([data-rim-part])>label{display:inline;margin-right:5px;font-size:14px}
 .quote-workspace .quote-page-multi .spec-grid.has-photo .upload{height:58px}
 .quote-workspace .quote-page-multi .spec-grid.has-photo .upload span{font-size:0}
 .quote-workspace .quote-page-multi .spec-grid.has-photo .upload span::before{content:'上传图片';font-size:11px}
 .quote-workspace .quote-page-multi .spec-grid.has-photo .upload span small{display:none}
 .quote-workspace .quote-page-multi .spec-grid.has-photo .upload:has(img) span{display:none}
 .quote-workspace .quote-page-multi .spec-grid.has-photo .upload img{max-width:100%;height:100%}
 .quote-workspace .quote-page-rim .spec-caption{top:46px}
 .quote-workspace .quote-page-rim .price-row.inner{background:#e5f2ef}
 .quote-workspace .quote-page-rim .price-row.inner .price-title{background:#b7d7d3}
 .quote-workspace .quote-page-multi .price-title-label>.toggle,.quote-workspace .quote-page-rim .price-title-label>.toggle{position:absolute;right:calc(100% + 8px);top:4px;width:92px;justify-content:flex-end}
}

/* History image preview fits within the available window. */
.lightbox-img{max-width:100%;max-height:max(0px,calc(100dvh - 140px));width:auto;height:auto;object-fit:contain;display:block;margin:auto}
.upload .paste-photo{position:relative;z-index:2;flex:none;padding:3px 7px;min-height:26px;font-size:12px}

.pricing-overlay{position:fixed;inset:0;z-index:99999;background:rgba(16,35,27,.58);display:grid;place-items:center;padding:20px}.pricing-dialog{background:#fff;width:min(430px,100%);padding:26px;border-radius:12px;box-shadow:0 15px 50px #0003;text-align:center}.pricing-dialog h2{margin:0 0 10px;font-size:20px}.pricing-dialog p{color:#52665b;margin:0 0 16px}.pricing-dialog progress{width:100%;height:16px;accent-color:#315b42}.pricing-dialog strong{display:block;margin:8px 0}.login-password{display:flex;gap:8px}.login-card .login-password button{width:auto;margin:0;white-space:nowrap}.login-card .remember-login{display:flex;align-items:center;gap:8px;font-size:13px}.remember-login input{width:auto;min-width:auto;margin:0}

.blank-tags{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.blank-tag{display:inline-block;padding:4px 10px;border-radius:5px;font-weight:700}.blank-tag.blank-light{color:#166534;background:#e9f6ec;border:1px solid #b7ddc0}.blank-tag.blank-heavy{color:#a32020;background:#fff0ef;border:1px solid #efc5c1}.blank-unmatched{color:#735b42}
.user-password-control{display:flex;gap:8px;align-items:stretch}.user-password-control input{flex:1}.user-password-control button{flex:none;min-width:58px}
.blank-choice{display:inline-flex;align-items:center;gap:6px;flex-wrap:nowrap}.blank-use[aria-pressed="true"]{background:#e6efe7;color:#285a3d;border-color:#a9c5b0}

@media(max-width:760px){
 .preview-head{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px}
 .preview-head strong{grid-column:1/3;grid-row:1;margin:0;align-self:center}
 .preview-head [data-action="close-modal"]{grid-column:3;grid-row:1;justify-self:end;min-width:56px}
 .preview-head #preview-language{grid-column:1/-1;grid-row:2;width:100%;max-width:none;min-height:42px;font-size:16px}
 .preview-head [data-action="save-quote"],.preview-head [data-action="copy-image"],.preview-head [data-action="download-image"]{grid-row:3;width:100%;min-width:0;min-height:42px;padding:6px 3px;white-space:nowrap;font-size:13px}
}

/* Mobile only. Wide tables and previews keep their own internal scrolling. */
@media(max-width:760px){
 html,body{max-width:100%;overflow-x:hidden}
 .shell,.sidebar,.workspace,#workspace,.page{min-width:0;max-width:100%}
 .nav{align-items:center}
 .account{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:12px}
 .account b{grid-column:span 2;min-width:0;overflow-wrap:anywhere}
 .account small{margin:0;text-align:right;white-space:nowrap}
 .account button{width:100%;min-width:0;min-height:38px;padding:5px 3px;line-height:1.25;white-space:normal}
 .wheel-spec-table .spec-grid>.spec-cell:last-child:has([data-validate-blank]){align-self:end}
 .wheel-spec-table .spec-grid>.spec-cell:last-child>button[data-validate-blank]{height:42px}
 #quote-extras-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;align-items:center}
 #quote-extras-toolbar button{width:100%;min-width:0}
 #quote-extras-toolbar label{min-width:0;white-space:nowrap}
 .discount-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:8px 10px;padding:12px}
 .discount-row b{display:block;min-width:0}
 .discount-row b select{display:block;margin-top:5px}
 .discount-row>input,.discount-row b select{min-height:42px;font-size:16px}
 .discount-row>small{grid-column:1/-1;overflow-wrap:anywhere}
 .table-wrap,.admin-rows,.special-scroll,.modal-preview{max-width:100%}
}

@media(max-width:760px){
 .country-modal{width:100%;max-width:100%;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
 .country-modal .modal-head strong{min-width:0}
 .country-modal .modal-body{min-width:0;padding:14px}
 .country-modal .modal-body p{margin:0 0 12px}
 .country-modal #country-search{font-size:16px;min-height:44px}
 .country-modal .country-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .country-modal .country-list button{min-width:0;overflow-wrap:anywhere;line-height:1.3;padding:9px}
 .country-modal .country-list small{font-size:11px;margin-top:3px;overflow-wrap:anywhere}
 .mobile-settings-home h2{margin-bottom:8px}
 .mobile-settings-categories{display:grid;gap:10px;margin-top:20px}
 .mobile-settings-categories button{text-align:left;min-height:70px;padding:12px 14px;background:#f6f9f3}
 .mobile-settings-categories b,.mobile-settings-categories small{display:block}
 .mobile-settings-categories small{margin-top:3px}
 .mobile-settings-back{margin:0 0 14px;padding:5px 10px;min-height:34px}
 .ref-page{min-width:0;overflow:hidden}
 .ref-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;flex-wrap:wrap}
 .ref-eyebrow{font-size:10px;letter-spacing:1px;color:#819485}
 .ref-private{font-size:12px;color:#466b50;background:#edf4e8;border-radius:12px;padding:4px 8px}
 .ref-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:14px 0}
 .ref-stats>div{min-width:0;background:#f7f9f6;border:1px solid #e4eae2;border-radius:6px;padding:8px 5px}
 .ref-stats small,.ref-stats strong{display:block}
 .ref-filter{display:grid;gap:12px;margin:12px 0}
 .ref-filter-buttons{display:flex;flex-wrap:wrap;gap:6px}
 .ref-filter-buttons button.active{background:var(--green);color:white}
 .ref-filter label{display:block;min-width:0}
 .ref-filter input{font-size:16px;margin-top:4px}
 .ref-count{font-size:12px;color:#718777}
 .ref-cost-group{max-width:100%;overflow-x:auto;margin:12px 0;border:1px solid #d9e5d5;border-radius:7px}
 .ref-cost-group>header{display:flex;justify-content:space-between;padding:10px;background:#f1f6ed}
 .ref-cost-controls{display:flex;gap:5px;flex-wrap:wrap;padding:8px}
 .ref-cost-controls button{font-size:12px;padding:5px 7px}
 .ref-matrix{min-width:850px;table-layout:fixed}
 .ref-matrix th,.ref-matrix td{border:1px solid #d9e5d7;padding:4px;text-align:center}
 .ref-matrix input{min-width:60px;padding:6px 3px;text-align:center;font-size:16px}
 .ref-enabled{display:block;margin:3px auto;min-height:27px;padding:2px 4px;font-size:11px}
 .ref-cost-input.disabled-price{background:#eee;color:#888}
 .reference-panel{border:1px solid #dbe6d9;border-radius:7px;margin:12px 0;background:#fbfcf9}
 .reference-panel>summary{padding:12px;font-weight:bold}
 .reference-body{max-width:100%;overflow-x:auto;padding:0 12px 12px}
 .packing-matrix,.freight-channel,.ref-table-scroll{max-width:100%;overflow-x:auto}
 .packing-matrix table,.freight-channel table,.zy-matrix{min-width:720px}
 .packing-add,.zy-filter{display:flex;gap:6px;flex-wrap:wrap}
 .packing-add input,.zy-filter label{flex:1;min-width:110px}
 .parameter-promotion{display:grid;gap:10px}
 .parameter-promotion label:not(.toggle){display:grid;gap:4px}
 .parameter-promotion input:not([type=checkbox]),.parameter-rate{font-size:16px;max-width:100%}
}
.currency-layer{position:fixed;inset:0;z-index:35;display:flex;align-items:center;justify-content:center;padding:20px;background:#13201880;overscroll-behavior:contain}
.currency-picker{width:min(560px,100%);max-height:calc(100dvh - 40px);overflow:auto;background:white;border-radius:12px;box-shadow:0 25px 100px #0003;overscroll-behavior:contain}
.currency-picker .country-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.currency-picker .country-list button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-width:0;white-space:normal}
.currency-picker .country-list small{display:block;font-size:11px}
.currency-rate-source{font-size:12px}
@media(max-width:760px){
 .preview-head #preview-currency{grid-column:1;grid-row:2;min-width:0;min-height:42px;padding:6px 3px;font-size:13px;white-space:nowrap}
 .preview-head #preview-language{grid-column:2/4;grid-row:2}
 .currency-layer{padding:9px}
 .currency-picker{max-height:calc(100dvh - 18px)}
}
.preview-fx-notice{padding:5px 14px;text-align:right;font-size:12px;color:#607368;background:#f7faf7}
.preview-fx-notice[hidden]{display:none}

/* Daily reference rate and editable offset. */
.parameters-page .rate-policy{display:flex;flex-wrap:wrap;gap:16px}.parameters-page .rate-policy label{display:grid;gap:5px;min-width:0}.parameters-page .rate-policy input{max-width:100%}.parameters-page .rate-policy input[readonly]{background:#f1f5f1;color:#284438}@media(max-width:760px){.parameters-page .rate-policy label{flex:1 1 150px}}
