.smart-restock-panel h2{font-size:var(--text-lg,18px)}.smart-restock-notice{margin:5px 0 0;font-size:12px}.smart-restock-toolbar,.smart-restock-switch{display:flex;gap:8px;flex-wrap:wrap}.smart-restock-toolbar{justify-content:space-between}.smart-restock-switch .btn{font-size:12px;min-height:36px;padding:7px 10px}.smart-restock-rows{display:grid}.smart-restock-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px 18px;border-top:1px solid var(--line)}.smart-restock-model{display:grid;gap:5px;min-width:0}.smart-restock-model strong{font-size:14px;overflow-wrap:anywhere}.smart-restock-model .tiny{font-size:11px;line-height:1.45;color:var(--muted)}.smart-restock-row dl{display:flex;gap:12px;margin:0;align-items:start}.smart-restock-row dl div{text-align:right}.smart-restock-row dt{color:var(--muted);font-size:10px}.smart-restock-row dd{margin:4px 0 0;font-size:13px;font-weight:600}.smart-restock-accept{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.smart-restock-accept label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.smart-restock-accept input{max-width:78px;min-height:36px;padding:5px 8px}.smart-restock-accept .btn{margin-left:auto;min-height:36px;padding:6px 12px}.smart-restock-settings{padding:14px 0;border-top:1px solid var(--line)}.smart-restock-settings>summary,.smart-restock-limitations>summary{font-size:12px;cursor:pointer;color:var(--muted)}.smart-restock-settings>.btn{margin:8px 0;font-size:12px;min-height:38px}.smart-restock-settings .form-grid{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}.smart-restock-record{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.smart-restock-record .btn{justify-self:end;align-self:end}.smart-restock-record .field{font-size:11px;min-width:0}.smart-restock-record select{width:100%;max-width:100%}.smart-restock-preview{margin-top:16px}.smart-restock-preview .smart-restock-row{padding:14px 0}.smart-restock-review-title{display:grid;gap:5px;padding:12px 0}.smart-restock-review-title strong{font-size:14px}.smart-restock-review-title .tiny,.smart-restock-sync{color:var(--muted);font-size:11px;line-height:1.5}.smart-restock-totals{display:grid;gap:8px;padding:14px 0;font-size:12px}.smart-restock-totals>span{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.smart-restock-obligations{border-top:1px solid var(--line);padding-top:10px}.smart-restock-warning{color:var(--danger,#b35526)!important}.smart-restock-limitations p{margin:8px 0}.smart-restock-export{display:flex;gap:8px;flex-wrap:wrap}.smart-restock-export .btn{font-size:12px}@media(max-width:540px){.smart-restock-row{grid-template-columns:minmax(0,1fr);padding:14px}.smart-restock-row dl{justify-content:space-between}.smart-restock-row dl div{text-align:left}.smart-restock-accept .tiny{flex:1 1 130px}.smart-restock-panel .panel-head{align-items:start;gap:8px}.smart-restock-panel .panel-head>.btn{font-size:11px;padding:7px 10px;min-height:38px}.smart-restock-record{grid-template-columns:1fr 1fr}.smart-restock-record .field:first-child{grid-column:1/-1}}
.restock-saved-picker{display:grid;gap:4px}.restock-saved-picker>.field{margin:0;min-width:0}.restock-saved-picker>.text-button{justify-self:end;min-height:36px;font-size:12px}.restock-saved-dates{display:grid;gap:3px;font-size:12px;color:var(--muted);margin:0 0 8px;font-variant-numeric:tabular-nums}.restock-list-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px;font-size:12px}.restock-list-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}.restock-list-toolbar .text-button{min-height:36px;font-size:12px}.restock-list-choices{display:grid;gap:5px}.restock-list-choice{display:grid;grid-template-columns:24px minmax(0,1fr);gap:9px;align-items:center;min-height:48px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;cursor:pointer}.restock-list-choice:has(input:checked){background:var(--surface,var(--bg));border-color:var(--action-ink,var(--green))}.restock-list-choice>input[type=checkbox]{width:20px;height:20px;min-height:20px;margin:0;padding:0;accent-color:var(--action-ink,var(--green))}.restock-list-choice>span{display:grid;gap:3px;min-width:0}.restock-list-choice strong,.restock-list-confirm strong{font-size:13px;overflow-wrap:anywhere}.restock-list-choice small,.restock-list-confirm small{display:block;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.restock-list-delete-actions{display:flex;justify-content:flex-end;margin-top:10px}.restock-list-delete-actions .btn{min-height:40px;font-size:12px}.restock-list-confirm{display:grid;gap:7px;margin:12px 0}.restock-list-confirm>div{padding:7px 0;border-bottom:1px solid var(--line)}
.smart-restock-confirm{display:flex;gap:6px;flex-wrap:wrap}.smart-restock-confirm .btn{min-height:34px;font-size:10px;padding:5px 8px}.smart-restock-confirm:empty{display:none}
.smart-restock-analysis>summary{font-size:12px;cursor:pointer;padding:0 18px 14px;color:var(--muted)}
.smart-restock-request{display:grid;gap:4px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}.smart-restock-request small{font-size:11px;color:var(--muted)}.smart-restock-requests>p{font-size:11px;color:var(--muted);line-height:1.5}

.restock-horizon{margin:12px 0 18px;padding:10px 16px 12px;background:var(--top-surface);border:1px solid var(--line);border-radius:14px;min-width:0}
.restock-horizon-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}
.restock-horizon-label output{font-weight:600;color:var(--action-ink,var(--green));font-variant-numeric:tabular-nums;white-space:nowrap}
.restock-horizon input[type=range]{display:block;appearance:none;-webkit-appearance:none;width:100%;height:44px;margin:0;padding:0;background:transparent;touch-action:pan-y;accent-color:var(--action-ink,var(--green));border:0;box-shadow:none;min-height:44px}
.restock-horizon input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:99px;background:linear-gradient(to right,var(--action-ink,var(--green)) 0%,var(--action-ink,var(--green)) var(--restock-fill),var(--line) var(--restock-fill),var(--line) 100%)}
.restock-horizon input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;height:22px;width:22px;border-radius:50%;background:var(--action-ink,var(--green));border:3px solid var(--top-surface);box-shadow:0 0 0 1px var(--line);margin-top:-8px}
.restock-horizon input[type=range]::-moz-range-track{height:6px;border-radius:99px;background:var(--line)}
.restock-horizon input[type=range]::-moz-range-progress{height:6px;border-radius:99px;background:var(--action-ink,var(--green))}
.restock-horizon input[type=range]::-moz-range-thumb{height:18px;width:18px;border-radius:50%;background:var(--action-ink,var(--green));border:3px solid var(--top-surface)}
.restock-horizon-ticks{height:15px;position:relative;margin:0 10px;color:var(--muted);font-size:10px}
.restock-horizon-ticks span{position:absolute;transform:translateX(-50%);white-space:nowrap}
.restock-horizon-ticks span:first-child{left:0;transform:none}.restock-horizon-ticks span:nth-child(2){left:27.71%}.restock-horizon-ticks span:nth-child(3){left:63.86%}.restock-horizon-ticks span:last-child{right:0;transform:none}
.restock-horizon-form{grid-column:1/-1;margin:0;padding:8px 12px 10px}
[data-restock-create][hidden]{display:none!important}
.restock-candidate small.restock-early{color:var(--action-ink,var(--green));font-size:11px}
@media(max-width:400px){.restock-horizon{padding-left:12px;padding-right:12px}.restock-horizon-label{font-size:11px}}

/* Compact purchase analysis; shared forms and the rest of the app keep their spacing. */
.smart-restock-panel .panel-head{padding:12px 14px;gap:10px}
.smart-restock-panel h2{font-size:16px;margin:0}
.smart-restock-panel .smart-restock-notice{margin:3px 0 0;font-size:11px}
.smart-restock-panel .panel-body{padding:10px 14px}
.smart-restock-panel .smart-restock-analysis>summary{padding:0 14px 10px;font-size:11px}
.smart-restock-panel .smart-restock-toolbar{gap:6px;align-items:center}
.smart-restock-panel .smart-restock-switch{gap:4px}
.smart-restock-panel .smart-restock-switch .btn{min-height:34px;padding:5px 9px;font-size:11px}
.smart-restock-panel .smart-restock-breakdown,.smart-restock-preview .smart-restock-breakdown{margin:8px 14px 10px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--top-surface)}
.smart-restock-preview .smart-restock-breakdown{margin:4px 0 10px}
.smart-restock-panel .smart-restock-breakdown-head,.smart-restock-preview .smart-restock-breakdown-head{display:grid;gap:3px;margin-bottom:8px}
.smart-restock-panel .smart-restock-breakdown-head strong,.smart-restock-preview .smart-restock-breakdown-head strong{font-size:12px}
.smart-restock-panel .smart-restock-breakdown-head small,.smart-restock-preview .smart-restock-breakdown-head small{font-size:10px;line-height:1.4;color:var(--muted)}
.smart-restock-panel .smart-restock-breakdown-grid,.smart-restock-preview .smart-restock-breakdown-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.smart-restock-panel .smart-restock-breakdown-grid>div,.smart-restock-preview .smart-restock-breakdown-grid>div{display:grid;gap:3px;min-width:0;padding:7px 8px;border-radius:8px;background:var(--surface,var(--bg));overflow-wrap:anywhere}
.smart-restock-panel .smart-restock-breakdown-grid span,.smart-restock-preview .smart-restock-breakdown-grid span{font-size:10px;color:var(--muted)}
.smart-restock-panel .smart-restock-breakdown-grid strong,.smart-restock-preview .smart-restock-breakdown-grid strong{font-size:18px;line-height:1.2;font-variant-numeric:tabular-nums}
.smart-restock-panel .smart-restock-breakdown-grid small,.smart-restock-preview .smart-restock-breakdown-grid small{font-size:10px;font-weight:400;line-height:1.35}
.smart-restock-panel .smart-restock-breakdown-total,.smart-restock-preview .smart-restock-breakdown-total{box-shadow:inset 0 0 0 1px var(--line);color:var(--action-ink,var(--green))}
.smart-restock-panel .smart-restock-quote-note,.smart-restock-preview .smart-restock-quote-note{margin:7px 0 0;font-size:10px;color:var(--muted)}
.smart-restock-panel .smart-restock-row,.smart-restock-preview .smart-restock-row{gap:8px;padding:10px 14px}
.smart-restock-preview .smart-restock-row{padding:10px 0}
.smart-restock-panel .smart-restock-model,.smart-restock-preview .smart-restock-model{gap:3px}
.smart-restock-panel .smart-restock-model strong,.smart-restock-preview .smart-restock-model strong{font-size:13px;line-height:1.35}
.smart-restock-panel .smart-restock-model .tiny,.smart-restock-preview .smart-restock-model .tiny{font-size:10px;line-height:1.4}
.smart-restock-panel .smart-restock-evidence,.smart-restock-preview .smart-restock-evidence{min-width:0}
.smart-restock-panel .smart-restock-evidence>summary,.smart-restock-preview .smart-restock-evidence>summary{font-size:10px;color:var(--muted);cursor:pointer}
.smart-restock-panel .smart-restock-evidence>p,.smart-restock-preview .smart-restock-evidence>p{margin:5px 0 2px}
.smart-restock-panel .smart-restock-row dl,.smart-restock-preview .smart-restock-row dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:320px}
.smart-restock-panel .smart-restock-row dt,.smart-restock-preview .smart-restock-row dt{font-size:10px;line-height:1.3}
.smart-restock-panel .smart-restock-row dd,.smart-restock-preview .smart-restock-row dd{margin-top:3px;font-size:12px;line-height:1.3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.smart-restock-panel .smart-restock-accept,.smart-restock-preview .smart-restock-accept{gap:7px}
.smart-restock-panel .smart-restock-accept .tiny,.smart-restock-preview .smart-restock-accept .tiny{font-size:10px}
.smart-restock-preview .smart-restock-review-title{padding:8px 0;gap:3px}
.smart-restock-preview .smart-restock-review-title strong{font-size:13px}
.smart-restock-preview .smart-restock-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;padding:10px 0;font-size:11px}
.smart-restock-preview .smart-restock-totals>span{gap:5px;align-content:start}
.smart-restock-preview .smart-restock-totals>.smart-restock-warning,.smart-restock-preview .smart-restock-obligations{grid-column:1/-1}
.smart-restock-preview .smart-restock-sync,.smart-restock-panel .smart-restock-sync{font-size:10px;line-height:1.4}
#restock-smart-editor>.smart-restock-settings{padding:10px 0}
#restock-smart-editor .smart-restock-record{gap:8px;padding:9px 0}
.smart-restock-panel .smart-restock-request{gap:3px;padding:8px 0}
@media(max-width:540px){
 .smart-restock-panel .smart-restock-row,.smart-restock-preview .smart-restock-row{grid-template-columns:minmax(0,1fr);padding:10px 12px}
 .smart-restock-preview .smart-restock-row{padding:10px 0}
 .smart-restock-panel .smart-restock-row dl,.smart-restock-preview .smart-restock-row dl{max-width:none;width:100%;gap:7px}
 .smart-restock-panel .smart-restock-row dl div,.smart-restock-preview .smart-restock-row dl div{text-align:left}
 .smart-restock-panel .panel-head>.btn{min-height:36px;padding:6px 9px}
}

/* One compact row: touch and trackpad scroll stay native. */
.restock-type-tabs{position:relative;display:flex;flex-wrap:nowrap;gap:5px;box-sizing:border-box;width:100%;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-padding-inline:8px;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding:6px 8px 8px;border-bottom:1px solid var(--line)}
.restock-type-tabs::-webkit-scrollbar{height:3px}.restock-type-tabs::-webkit-scrollbar-track{background:transparent}.restock-type-tabs::-webkit-scrollbar-thumb{background:var(--line);border-radius:99px}
.restock-type-tab{display:inline-flex;flex:0 0 auto;align-items:center;gap:6px;min-height:38px;max-width:none;white-space:nowrap;padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:var(--top-surface);color:var(--action-ink,var(--green));font:inherit;font-size:12px;cursor:pointer}
.restock-type-tab>small{font-variant-numeric:tabular-nums;font-size:10px;opacity:.8}.restock-type-tab.is-active{background:var(--green);border-color:var(--green);color:var(--bg,#fff);font-weight:600}.restock-type-tab:focus-visible{outline:2px solid var(--action-ink,var(--green));outline-offset:2px}
[data-restock-type-pane][hidden]{display:none!important}
.restock-items-controls{padding-top:2px;min-width:0}
.restock-items-controls>.restock-horizon{margin:2px 8px 4px;padding:6px 10px 3px;border-radius:12px;background:var(--top-surface)}
.restock-items-controls .restock-horizon-label{font-size:11px;gap:6px;flex-wrap:wrap}.restock-items-controls .restock-horizon-label label{font-weight:600}
.restock-items-controls .restock-horizon input[type=range]{height:36px;min-height:36px}
.restock-items-controls .restock-horizon input[type=range]::-webkit-slider-runnable-track{height:4px}.restock-items-controls .restock-horizon input[type=range]::-webkit-slider-thumb{margin-top:-9px}
.restock-items-controls .restock-horizon input[type=range]::-moz-range-track,.restock-items-controls .restock-horizon input[type=range]::-moz-range-progress{height:4px}
.restock-items-controls .restock-horizon-ticks{height:12px;font-size:10px}
.restock-sources{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}
.restock-sources .btn{display:inline-flex;flex:1 1 auto;align-items:center;justify-content:space-between;gap:8px;min-height:38px;padding:7px 10px;border-radius:11px;font-size:12px;line-height:1.25}.restock-sources b{font-size:11px}
.restock-planning-panel .restock-candidate-head>span:not(:first-child){white-space:nowrap}

/* Keep the restock workspace close to its products without shrinking other pages. */
.restock-workspace .counter-topbar.topbar{min-height:0;padding-top:6px;padding-bottom:6px;row-gap:4px}
.restock-workspace .counter-tools{gap:4px}
.restock-workspace .counter-tools>.counter-lock{top:6px}
.restock-workspace .counter-connection{gap:5px;flex-wrap:wrap}
.restock-workspace .counter-connection>span:empty{display:none}
.restock-workspace .counter-connection #sync-status{padding:5px 7px;font-size:11px;line-height:1.3}
.restock-workspace .content{padding-top:10px}
.restock-workspace .content>.ecac-ai-strip{margin:0 0 6px;border-radius:10px}
.restock-workspace .content>.ecac-ai-strip>button{min-height:44px;gap:7px;padding:6px 10px}
.restock-workspace .content>.ecac-ai-strip .ecac-ai-strip-note{font-size:11px;line-height:1.3}
.restock-workspace .content>.section-navigation{margin:0 0 8px;border-radius:10px}
.restock-workspace .content>.section-navigation>summary{min-height:44px;gap:8px;padding:7px 10px;line-height:1.3}
.restock-workspace .content>.section-navigation>summary>span{font-size:11px}
.restock-workspace .content>.section-navigation>summary>strong{font-size:12px}
.restock-workspace .content>.section-navigation>.section-tabs{padding:8px 10px;gap:5px}
.restock-workspace .content>.page-heading{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0 0 8px}
.restock-workspace .content>.page-heading>div:first-child{flex:1 1 100px;min-width:0}
.restock-workspace .content>.page-heading h1{margin:0;font-size:18px;line-height:1.2;letter-spacing:-.35px}
.restock-workspace .content>.page-heading .eyebrow:empty,.restock-workspace .content>.page-heading p.sub:empty{display:none}
.restock-workspace .content>.page-heading>.actions{display:flex;flex:0 1 auto;flex-wrap:wrap;gap:5px;width:auto;min-width:0;margin:0}
.restock-workspace .content>.page-heading>.actions>.btn{flex:0 1 auto;min-width:0;min-height:40px;padding:6px 8px;border-radius:9px;font-size:11px;line-height:1.25}
.restock-workspace .content>.restock-saved{margin:8px 0;border-radius:12px}
.restock-workspace .content>.restock-saved>summary{min-height:44px;padding:8px 12px;font-size:14px;line-height:1.3}
.restock-workspace [data-restock-smart-overview]>.smart-restock-panel{margin:8px 0;border-radius:12px}
.restock-workspace [data-restock-smart-overview]>.smart-restock-panel>.panel-head{padding:7px 10px;gap:8px}
.restock-workspace [data-restock-smart-overview]>.smart-restock-panel h2{font-size:14px;line-height:1.25}
.restock-workspace [data-restock-smart-overview] .smart-restock-notice{margin:2px 0 0;font-size:11px;line-height:1.3}
.restock-workspace [data-restock-smart-overview]>.smart-restock-panel>.panel-head>.btn{min-height:44px;padding:6px 9px;border-radius:9px;font-size:11px;line-height:1.25}
.restock-workspace [data-restock-smart-overview] .smart-restock-analysis>summary{min-height:32px;padding:4px 10px;font-size:11px;line-height:1.3}
.restock-candidate>.restock-explanation{grid-column:1/-1;min-width:0;margin:0}
.restock-explanation>summary{width:max-content;max-width:100%;min-height:24px;padding:3px 0;color:var(--muted);font-size:10px;line-height:1.4;cursor:pointer}
.restock-explanation[open]>summary{color:var(--action-ink,var(--green))}
.restock-explanation>[data-restock-explanation-body]{font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.restock-explanation-facts{display:grid;gap:5px;margin:3px 0 7px;padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--top-surface)}
.restock-explanation-facts>div{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(0,1.3fr);gap:8px}
.restock-explanation-facts dt{font-size:10px;color:var(--muted)}
.restock-explanation-facts dd{margin:0;font-size:11px;font-variant-numeric:tabular-nums}
.restock-explanation>[data-restock-explanation-body]>.tiny{margin:5px 0 7px;font-size:10px;line-height:1.4}
