:root{color-scheme:light;--ink:#17283d;--muted:#718095;--line:#e2e8ee;--blue:#235ed4;--bg:#f4f6f9}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}button,input,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}a{color:inherit;text-decoration:none}.topbar{height:66px;background:#fff;border-bottom:1px solid var(--line);padding:0 max(24px,calc((100vw - 1420px)/2));display:flex;align-items:center;justify-content:space-between}.brand{font-size:17px;font-weight:750}.brand span{font-size:13px;font-weight:400;color:var(--muted);margin-left:18px;padding-left:18px;border-left:1px solid var(--line)}.back{font-size:13px;color:#52647b}main{max-width:1468px;margin:auto;padding:32px 24px 60px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:#657790;margin:0 0 7px}h1{font-size:27px;letter-spacing:-.6px;margin:0 0 8px}h2{font-size:16px;margin:0}h3{font-size:17px}.intro{color:var(--muted);margin:0}.region-switch{display:flex;padding:5px;border:1px solid var(--line);border-radius:11px;background:#eaf0f6;gap:5px}.region-switch button{min-width:110px;border:0;border-radius:7px;background:none;padding:11px 16px;color:#64748b;font-weight:650}.region-switch button span{font-size:11px;margin-left:7px;opacity:.7}.region-switch button[aria-pressed=true]{background:#fff;color:var(--blue);box-shadow:0 2px 7px #20365612}.workspace{display:grid;grid-template-columns:360px minmax(0,1fr);gap:28px;align-items:start}.input-panel{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden;box-shadow:0 3px 14px #16304904}.input-panel section{padding:23px 23px 20px;border-bottom:1px solid var(--line)}.input-panel h2{margin-bottom:15px;display:flex;align-items:center;gap:10px}.step{font-size:10px;color:#8798ac;letter-spacing:1px}.hint{font-size:12px;line-height:1.6;color:var(--muted);margin:9px 0 14px}.fields{display:grid;gap:10px;margin-top:14px}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.two{grid-template-columns:repeat(2,minmax(0,1fr))}label{display:block;font-size:12px;font-weight:600;min-width:0}label>span{float:right;font-size:10px;font-weight:400;color:var(--muted)}input,select{width:100%;height:42px;border:1px solid #d9e1ea;border-radius:7px;background:#fff;color:var(--ink);padding:9px;margin-top:7px;min-width:0}input:focus,select:focus{outline:3px solid #2362d514;border-color:#7b9ee0}.volume{margin-top:17px;padding:10px;background:#f4f7fb;color:#687c94;border-radius:7px;font-size:11px;line-height:1.8;font-variant-numeric:tabular-nums}.form-footer{padding:20px 23px}.primary{display:flex;justify-content:space-between;align-items:center;background:var(--blue);color:white;border:0;width:100%;padding:12px 16px;border-radius:8px;font-weight:650;box-shadow:0 4px 8px #235ed419}.primary:hover{background:#1b50bc}.form-footer .hint{margin:11px 0 0;text-align:center;font-size:11px}.error{color:#b43d36;background:#fff4f2;border-radius:7px;padding:10px;font-size:12px;margin:0 0 12px}.retry{border:0;background:none;color:var(--blue);display:block;margin:10px auto 0;font-size:12px}.results-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:3px 0 20px}.results-heading h2{font-size:18px}.results-heading p{font-size:12px;color:var(--muted);margin:6px 0 0}.basis{font-size:10px;background:#e9eff7;color:#627793;border-radius:5px;padding:5px 8px;white-space:nowrap}.empty-state{min-height:460px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #d3dde8;border-radius:13px;background:#ffffff6b;text-align:center;padding:36px 22px}.empty-symbol{display:grid;place-items:center;font-size:34px;color:#a1b1c6;width:65px;height:65px;border-radius:17px;background:#edf2f8;margin-bottom:9px}.empty-state h3{margin-bottom:5px}.empty-state p{color:var(--muted);font-size:12px;line-height:1.9}.empty-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:21px}.empty-chips span{font-size:10px;border:1px solid #e2e8f0;padding:5px 9px;border-radius:5px;background:#fff;color:#8593a6}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}.quote{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden;min-width:0}.quote-head{padding:16px 16px 13px}.quote-label{display:flex;align-items:center;justify-content:space-between;gap:7px;font-weight:650;font-size:13px}.carrier{color:#527b70;background:#edf7f3;border-radius:4px;font-size:9px;padding:3px 5px;font-weight:500}.quote.dpd .carrier{background:#fff8e5;color:#98742c}.quote .amount{font-size:27px;line-height:1.4;font-weight:700;letter-spacing:-.5px;font-variant-numeric:tabular-nums;margin:17px 0 2px}.amount span{font-size:12px;color:var(--muted);letter-spacing:0;margin-right:5px;font-weight:400}.quote.missing .amount{font-size:20px;color:#ac7424}.quote .caption{color:#8b99aa;font-size:10px}.quote details{border-top:1px solid #eef2f6}.quote summary{cursor:pointer;padding:11px 16px;font-size:11px;color:#58718d}.fee-list{margin:0;padding:0 16px 10px}.fee{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 7px;padding:9px 0;border-top:1px solid #f0f3f6;font-size:11px}.fee dt{color:#64758b}.fee dd{margin:0;font-variant-numeric:tabular-nums;font-weight:600}.fee small{grid-column:1/-1;color:#91a0b2;font-size:10px}.fee.included{opacity:.8}.quote-note{font-size:10px;color:#8b7a63;background:#faf8f3;padding:11px 16px;margin:0;overflow-wrap:anywhere;line-height:1.8}.disclaimer{color:#91a0b2;font-size:11px;margin-top:18px;line-height:1.8}:focus-visible{outline:3px solid #8aacf0;outline-offset:3px}@media(min-width:1350px){.cards:has(.quote:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1150px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace{gap:20px;grid-template-columns:330px minmax(0,1fr)}}@media(max-width:800px){main{padding:24px 16px}.topbar{padding:0 16px}.workspace{grid-template-columns:1fr}.page-heading{align-items:start;flex-direction:column}.region-switch{width:100%}.region-switch button{flex:1}.empty-state{min-height:270px}.brand span{display:none}.input-panel section{padding:20px}.form-footer{padding:20px}.results-panel{min-width:0}}@media(max-width:450px){.cards{grid-template-columns:1fr}.basis{display:none}}

.forecast-tools{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:22px;background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:24px}.search-row{display:flex;gap:9px;align-items:center}.search-row input,.search-row select{flex:1;width:0}.secondary{border:1px solid #cbd8e8;background:#fff;color:#235ed4;border-radius:7px;padding:10px 14px;white-space:nowrap}.search-row .secondary{margin-top:7px}#forecastNotice{font-size:12px;color:#47637d;min-height:18px;overflow-wrap:anywhere}.save-panel{background:#eef4ff;border:1px solid #d2e1fa;border-radius:11px;padding:16px;margin-bottom:18px}.save-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.save-row label{flex:1;min-width:160px}.save-panel .hint{margin-bottom:0}.comparison{padding:0 16px 12px;color:#377662;font-size:12px}.comparison.increase{color:#a36527}.baseline-params{font-variant-numeric:tabular-nums}.save-panel[data-pending=true]{border-color:#b58c34}dialog{border:1px solid var(--line);border-radius:14px;padding:26px;max-width:560px;width:calc(100% - 32px);color:var(--ink)}dialog::backdrop{background:#16283b66}.dialog-actions{display:flex;justify-content:end;gap:12px;margin-top:20px}.dialog-actions .primary{width:auto}.changes{width:100%;border-collapse:collapse;font-size:13px}.changes th,.changes td{text-align:left;padding:9px;border-bottom:1px solid var(--line)}@media(max-width:800px){.forecast-tools{grid-template-columns:1fr;gap:16px;padding:18px}}@media(max-width:450px){.save-row{align-items:stretch}.save-row label{flex-basis:100%}.save-row button{flex:1}}

.page-tabs{display:flex;gap:20px;margin-bottom:24px;border-bottom:1px solid var(--line);padding-bottom:14px}.page-tabs a{color:var(--blue);font-weight:600}.single-tool{grid-template-columns:1fr}.product-pager{display:flex;gap:12px;align-items:center;margin-top:12px;font-size:12px}.product-pager .secondary{padding:5px 10px}.save-panel{margin-top:20px;margin-bottom:0}.save-row .primary{width:auto;min-width:145px;justify-content:center}.price-pair{display:flex;justify-content:space-between;gap:10px;margin:8px 0}.price-pair span{font-size:11px}.price-pair b{display:block;font-size:13px}.comparison{color:var(--ink);font-variant-numeric:tabular-nums}.comparison.big-saving{color:#15803d}.comparison.increase{color:#c62828}.comparison>strong{display:block;font-size:14px;margin-top:10px}.forecast-table{width:100%;border-collapse:collapse;background:white;font-size:13px}.forecast-table th,.forecast-table td{padding:14px;text-align:left;border-bottom:1px solid var(--line)}#forecastTableWrap{overflow:auto;margin-bottom:24px}.snapshot-form input:disabled,.snapshot-form select:disabled{opacity:1;color:var(--ink);background:#f6f8fb}.snapshot-form .form-footer{display:none}body[data-view=forecasts] #savePanel{position:sticky;bottom:12px;box-shadow:0 4px 18px #16283b22}body[data-view=forecasts] .save-row label{display:none}

.parameter-table{width:100%;border-collapse:collapse;font-size:10px;margin-top:16px;font-variant-numeric:tabular-nums}.parameter-table th,.parameter-table td{padding:6px 3px;border-bottom:1px solid var(--line);text-align:right}.parameter-table th:first-child,.parameter-table td:first-child{text-align:left}.changed-parameter{font-weight:700;color:var(--blue)}.comparison-hint{background:#eef4ff;padding:10px 14px;border-radius:8px;margin:0 0 14px}

.delta-amount small{display:block;font-size:13px;font-weight:600;letter-spacing:0;margin-bottom:4px}.quote .delta-amount{font-size:26px}.quote .big-saving{color:#15803d}.quote .increase{color:#c62828}.forecast-old td{border-top:2px solid var(--line)}.forecast-old td:not([rowspan]){border-bottom:1px dashed #edf0f5;padding-bottom:5px}.forecast-new td{padding-top:5px;background:#f7faff}.forecast-table td[rowspan]{vertical-align:middle}.forecast-table td{white-space:nowrap}

/* Keep the saved product library reachable while entering a forecast. */
.topbar{position:sticky;top:0;z-index:20;height:auto;min-height:66px;gap:12px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}
.topbar-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.library-button{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;min-height:42px;border-radius:8px;background:var(--blue);color:#fff;font-weight:650;white-space:nowrap;box-shadow:0 3px 8px #235ed420}
.library-button:hover{background:#1b50bc}
@media(max-width:600px){.topbar .brand span{display:none}.topbar-actions{gap:8px}.topbar-actions .back{display:none}.library-button{padding:10px 12px}}

.library-filters{display:grid;grid-template-columns:minmax(180px,280px) minmax(240px,1fr);gap:16px;align-items:end}
body[data-view=forecasts] .forecast-tools{padding:16px;margin-bottom:18px}
.library-filters .search-row{margin:0}.library-filters input{margin-top:0}
.row-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.row-actions .secondary{padding:7px 10px}
.danger{color:#b42318;border-color:#efc7c3}.row-actions button:disabled{cursor:not-allowed}
.library-dialog{border:1px solid var(--line);border-radius:14px;padding:22px;max-height:90vh;overflow:auto;color:var(--ink);background:var(--bg)}
dialog::backdrop{background:#17283d66}.comparison-dialog{width:min(1120px,calc(100vw - 32px));max-width:none}.edit-dialog{width:min(760px,calc(100vw - 32px));max-width:none}
.dialog-heading{display:flex;justify-content:space-between;gap:18px;align-items:start;margin-bottom:20px}.dialog-heading .hint{margin-bottom:0}
body[data-view=forecasts] #editContent .input-panel{margin-top:16px}body[data-view=forecasts] .input-panel .form-footer{display:none}
body[data-view=forecasts] #savePanel{bottom:0}.edit-dialog .dialog-actions{position:sticky;bottom:-22px;background:var(--bg);padding:16px 0;margin:0}.edit-dialog .primary{width:auto}
#editContent #parameterComparison{display:none}
@media(max-width:650px){.library-filters{grid-template-columns:1fr}.library-dialog{padding:16px}.comparison-dialog .cards{grid-template-columns:1fr}.row-actions{min-width:120px}}

.forecast-product{display:flex;gap:12px;align-items:center;min-width:240px}.cover-cell{width:60px;height:60px;flex:0 0 60px;border:1px solid var(--line);border-radius:8px;background:#f6f8fb;overflow:hidden;display:grid;place-items:center}.forecast-cover{width:100%;height:100%;object-fit:contain;background:#fff}.cover-placeholder{font-size:10px;color:var(--muted)}

.library-dialog>.dialog-heading{position:sticky;top:-22px;z-index:2;background:var(--bg);padding:12px 0}.library-dialog>.dialog-heading h2{padding-top:5px}@media(max-width:650px){.library-dialog>.dialog-heading{top:-16px}}

.heading-actions{display:flex;align-items:center;gap:16px}.heading-actions>.primary{width:auto;white-space:nowrap}.forecast-table td small{display:block;color:var(--muted);margin-top:5px}.forecast-table{min-width:1480px}#createProductTools:has(#productTools:not([hidden])){padding:16px;background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:16px}#packagingFields .fields{margin-top:14px}body[data-view=forecasts] .input-panel .form-footer:has(#retryOptions:not([hidden])){display:block}@media(max-width:650px){.heading-actions{width:100%;flex-wrap:wrap}.heading-actions>.primary{width:100%;justify-content:center}.heading-actions .region-switch{width:100%}.edit-dialog .fields.three{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* SKU choices share the current region's canonical cover thumbnail. */
.product-picker{position:relative;margin-top:8px;min-width:0}
.product-picker-toggle{display:flex;align-items:center;gap:12px;width:100%;min-height:82px;padding:10px 14px;border:1px solid #d9e1ea;border-radius:9px;background:#fff;color:var(--ink);text-align:left}
.product-picker-toggle:hover,.product-picker-toggle[aria-expanded=true]{border-color:#7b9ee0;background:#f8faff}
.product-picker-value{display:flex;gap:14px;align-items:center;flex:1;min-width:0}
.product-picker-arrow{font-size:22px;color:var(--muted)}
.product-picker-panel{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:15;background:#fff;border:1px solid #d6e1ef;border-radius:11px;box-shadow:0 12px 32px #17283d26;overflow:hidden}
.product-picker-heading{padding:10px 16px;color:var(--muted);font-size:12px;background:#f7f9fc;border-bottom:1px solid var(--line)}
.product-picker-options{max-height:360px;max-height:min(360px,50vh);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:5px}
.product-picker-option{display:flex;align-items:center;gap:14px;width:100%;padding:10px;border:0;border-radius:7px;background:#fff;color:var(--ink);text-align:left;min-height:84px}
.product-picker-option:hover,.product-picker-option:focus-visible{background:#f0f5ff;outline:2px solid #9ab9f0;outline-offset:-2px}
.product-picker-option[aria-selected=true]{background:#edf4ff}
.product-picker-cover,.product-picker-manual{display:grid;place-items:center;width:64px;height:64px;flex:0 0 64px;border:1px solid var(--line);border-radius:7px;background:#f6f8fb;overflow:hidden}
.product-picker-image{width:100%;height:100%;object-fit:contain;background:#fff}
.product-picker-placeholder{font-size:11px;color:var(--muted);text-align:center;padding:3px}
.product-picker-manual{font-size:25px;color:#7a8da6}
.product-picker-text{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;overflow-wrap:anywhere}
.product-picker-text strong{font-size:14px;font-weight:650}.product-picker-text small{font-size:12px;color:#63768d;line-height:1.5}
.product-picker-check{flex:0 0 20px;text-align:center;color:var(--blue);font-weight:700}
@media(max-width:600px){.product-picker-toggle{padding:8px 10px}.product-picker-value,.product-picker-option{gap:10px}.product-picker-cover,.product-picker-manual{width:56px;height:56px;flex-basis:56px}.product-picker-option{min-height:76px}.product-picker-options{max-height:45vh}.product-picker-text strong{font-size:13px}}
