#run-desk { color:var(--ink); min-width:0; }
#run-desk h2 { margin:4px 0 7px; font-size:clamp(1.05rem,1.7vw,1.22rem); letter-spacing:-.035em; }
#run-desk h3 { color:var(--ink); overflow-wrap:anywhere; }
#run-desk [hidden] { display:none !important; }
.run-label,.run-status { color:var(--plum); font-size:.68rem; font-weight:650; }
.run-label { display:block; letter-spacing:.035em; }
.run-columns,.run-order-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:clamp(12px,2vw,24px); align-items:start; }
.run-columns .desk-card,.run-order-grid .desk-card { min-width:0; }
.run-lookup { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); align-items:center; gap:12px; padding:16px clamp(16px,2vw,24px); margin-bottom:6px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); }
.run-lookup label { display:block; margin-top:4px; font-size:.96rem; font-weight:680; }
.run-inline { display:flex; align-items:end; gap:8px; }
#run-found { grid-column:1/-1; padding-top:4px; }
#run-found:empty { display:none; }
#run-found h3 { margin:0; font-size:1rem; }
#run-found p,.run-title p { font-size:.84rem; color:var(--muted); margin:4px 0; }
.run-inline > input,.run-inline > label { flex:1 1 80px; min-width:0; }
.run-inline > button { flex:none; }
.run-field { display:grid; gap:5px; margin:14px 0 6px; min-width:0; font-size:.84rem; font-weight:650; }
#run-desk input:not([type=checkbox],[type=file]) { width:100%; max-width:100%; min-width:0; min-height:44px; border:1px solid #b6b6be; border-radius:10px; background:var(--card); padding:8px 12px; color:var(--ink); font:inherit; font-variant-numeric:tabular-nums; }
#run-desk input:disabled { opacity:.55; }
.run-group { min-width:0; margin:12px 0; padding:0; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:var(--card); }
.run-group legend { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); }
.run-find-message:empty { display:none; }
.run-store,.run-candidate,.run-option-title,.run-quantity { display:flex; align-items:center; gap:10px; }
.run-store,.run-candidate { min-height:48px; padding:9px 12px; cursor:pointer; }
.run-store { flex-wrap:wrap; background:var(--soft); }
.run-store strong,.run-candidate strong { font-size:.88rem; }
.run-store > span { margin-left:auto; color:var(--muted); font-size:.69rem; }
.run-candidate { border-top:1px solid var(--line); min-height:86px; }
.run-candidate > span:last-child { min-width:0; }
.run-candidate strong { display:block; line-height:1.45; overflow-wrap:anywhere; }
#run-desk input[type=checkbox] { flex:none; width:19px; height:19px; accent-color:var(--plum); }
.run-candidate:has(input:checked) { background:var(--brand-tint); }
.run-candidate:focus-within,.run-store:focus-within { outline:2px solid var(--plum); outline-offset:-2px; }
.run-thumb { display:grid; place-items:center; flex:none; overflow:hidden; width:44px; height:56px; border-radius:7px; background:var(--soft); }
.run-thumb img { width:100%; height:100%; object-fit:cover; }
.run-thumb .missing { padding:3px; font-size:.57rem; line-height:1.4; text-align:center; }
.run-candidate small,.run-product small,.run-option-title small,.run-quantity small,.run-links small,.run-summary small,.run-ordinal small { display:block; color:var(--muted); font-size:.74rem; }
.run-selection { margin:0; font-size:.82rem; }
.run-selection p { margin:4px 0 0; font-size:.75rem; color:var(--muted); }
.run-selection summary { display:flex; align-items:center; min-height:44px; color:var(--muted); font-size:.74rem; cursor:pointer; }
.run-selection ol { margin:0 0 12px; padding-left:20px; color:var(--muted); list-style:decimal; max-height:180px; overflow:auto; }
.run-selection li { padding:4px 0; overflow-wrap:anywhere; }
.run-create-footer { margin-top:14px; padding:14px 0 0; border-top:1px solid var(--line); }
.run-create-footer > button { width:100%; margin-top:8px; }
.run-filter-field { margin-top:20px; }
.run-filter-count { color:var(--muted); font-size:.72rem; margin:10px 0; }
.run-filter-empty { padding:22px 12px; border:1px dashed var(--line); border-radius:12px; font-size:.82rem; text-align:center; color:var(--muted); }
.run-stock { font-variant-numeric:tabular-nums; }
#run-desk .run-stock { color:var(--plum); }
#run-desk .run-stock.is-empty { color:#8d3f38; }
.run-archive h2 > small { font-size:.8rem; color:var(--plum); }
.run-links,.run-lines,.run-summary ul { margin:0; padding:0; list-style:none; }
.run-links li + li,.run-summary li + li { border-top:1px solid var(--line); }
.run-links a { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:54px; padding:10px 0; }
.run-links strong { display:block; margin-top:1px; font-size:.92rem; }
.run-status { flex:none; }
.run-empty { margin-top:12px; padding:20px 0; color:var(--muted); }
.run-empty strong { color:var(--ink); }
.run-empty a { margin-top:10px; }
.run-next { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; padding:16px clamp(16px,2vw,24px); margin:16px 0; border:1px solid var(--brand-line); border-radius:var(--radius); background:var(--brand-tint); }
.run-next > div { flex:1 1 280px; min-width:0; overflow-wrap:anywhere; }
.run-next p { margin:5px 0; color:var(--muted); font-size:.85rem; }
.run-title { margin:18px 0 20px; overflow-wrap:anywhere; }
.run-title .link-button { display:inline-flex; align-items:center; min-height:44px; margin-bottom:4px; font-size:.78rem; }
.run-title h1 { margin:4px 0 8px; font-size:clamp(1.3rem,2.6vw,1.8rem); font-family:inherit; line-height:1.3; letter-spacing:-.035em; }
.run-title > .btn { margin-top:9px; }
.run-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; border-block:1px solid var(--line); padding:12px 0; }
.run-toolbar .desk-tabs { margin:0; }
.run-line { display:flex; align-items:center; gap:clamp(10px,2vw,22px); padding:16px; margin:10px 0; border:1px solid var(--line); border-radius:12px; background:var(--card); }
.run-ordinal { flex:none; min-width:62px; }
.run-ordinal b { display:block; color:var(--plum); font:600 clamp(1.04rem,1.8vw,1.4rem)/1.2 system-ui,sans-serif; font-variant-numeric:tabular-nums; letter-spacing:-.045em; }
.run-line .run-thumb { width:56px; height:72px; }
.run-product { min-width:0; flex:1; }
.run-product h3,.run-option-title h3 { margin:2px 0; line-height:1.4; font-size:.94rem; }
.run-product p { margin:2px 0; color:var(--muted); font-size:.78rem; }
.run-chips { display:flex; flex-wrap:wrap; gap:6px; padding-top:12px; }
.run-chips button { min-height:44px; padding:7px 12px; border-radius:10px; border:1px solid var(--line); background:transparent; font-size:.78rem; }
.run-chips [aria-pressed=true] { border-color:var(--brand-accent); color:var(--brand-deep); background:var(--brand-tint); }
.run-option-title { margin-top:15px; padding:14px 0; border-top:1px solid var(--line); }
.run-option-title > div,.run-quantity > span { min-width:0; overflow-wrap:anywhere; }
.run-quantity,.run-summary li { justify-content:space-between; padding:8px 0; border-top:1px solid var(--line); font-size:.85rem; }
#run-desk .run-quantity input { flex:0 1 82px; text-align:center; }
.run-summary li { display:flex; align-items:center; gap:12px; }
.run-summary li > span { min-width:0; overflow-wrap:anywhere; }
.run-summary b { flex:none; }
.run-summary p { margin:8px 0 14px; }
.run-review-button { width:100%; }
.run-file { margin-top:18px; border-top:1px solid var(--line); padding-top:12px; font-size:.85rem; }
.run-file .sheet-picker { margin-top:8px; }
#run-desk :is(.desk-feedback,.desk-error):not(:empty) { margin:12px 0 4px; padding:10px 14px; border-radius:10px; background:var(--soft); }
.seller-workspace { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:clamp(12px,2vw,24px); align-items:start; }
.seller-workspace .desk-card,.seller-detail { min-width:0; }
.seller-workspace .desk-card > p,.seller-price-info p,.seller-detail p { margin:7px 0 12px; font-size:.86rem; color:var(--muted); }
.seller-inputs { display:grid; grid-template-columns:minmax(0,2fr) minmax(90px,1fr); gap:10px; }
.seller-price-info { margin:16px 0 3px; }
.seller-workspace h3,.seller-detail h3 { font-size:1rem; margin:8px 0 2px; }
.seller-price-info small,.seller-price small,.seller-detail > header small:not(.run-label) { font-size:.75rem; color:var(--muted); }
.seller-price { display:grid; align-items:center; grid-template-columns:44px minmax(0,1fr) minmax(86px,25%); gap:12px; padding:9px 0; border-top:1px solid var(--line); }
.seller-price strong,.seller-price small,.seller-lines small { display:block; overflow-wrap:anywhere; }
.seller-price input { text-align:right; }
.seller-workspace .run-links button { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; min-height:54px; padding:10px 0; background:none; text-align:left; color:var(--ink); }
.seller-workspace .run-links button[aria-pressed=true] strong { color:var(--plum); }
.seller-detail { margin-top:16px; scroll-margin-top:12px; }
.seller-detail > header { margin-bottom:14px; }
.seller-download { margin-top:14px; }
.seller-lines { margin:12px 0; padding:0; list-style:none; }
.seller-lines li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 0; border-top:1px solid var(--line); font-size:.88rem; }
.seller-lines small { color:var(--muted); }
.seller-lines li > strong { flex:none; }
.seller-totals { margin-bottom:12px; }
.seller-totals > div:last-child { color:var(--plum); }
@media(max-width:700px) {
  .seller-workspace { grid-template-columns:minmax(0,1fr); gap:8px; }
  .seller-workspace .desk-card { margin:6px 0; }
  .seller-price { gap:8px; }
  .run-columns,.run-order-grid,.run-lookup { grid-template-columns:minmax(0,1fr); gap:8px; }
  .run-columns .desk-card,.run-order-grid .desk-card { margin:6px 0; }
  .run-store { gap:6px; }
  .run-store > span { margin-left:0; }
  .run-line { display:grid; grid-template-columns:auto auto minmax(0,1fr); gap:8px 11px; }
  .run-line > button { grid-column:3; justify-self:start; }
  .run-line .run-thumb { width:43px; height:56px; }
  .run-ordinal { min-width:46px; }
}
.seller-intro{margin-block:16px}
.run-availability { margin:4px 0; color:var(--muted); font-size:.8rem; }
.run-availability summary { cursor:pointer; }
.run-availability ul { margin:4px 0; padding-inline-start:18px; }
.seller-issue-item .run-availability { margin:0 0 8px; padding-inline-start:4px; }
.seller-intro>small:last-child{display:inline-block;margin:8px;color:var(--muted)}
.seller-release { margin:14px 0; border-top:1px solid var(--line); padding-top:12px; }
.seller-release summary,.collection-terms summary { cursor:pointer; font-size:.88rem; font-weight:650; }
.seller-release textarea { width:100%; padding:10px; border:1px solid var(--line); border-radius:8px; resize:vertical; }
#seller-collection > section { margin:16px 0; min-width:0; overflow-wrap:anywhere; scroll-margin:14px; }
#seller-collection p { margin:8px 0 14px; font-size:.87rem; color:var(--muted); }
#seller-collection .desk-card-head { flex-wrap:wrap; gap:6px; }
.collection-picks,.collection-terms ul,.collection-supplier ul { list-style:none; margin:6px 0 12px; padding:0; }
.collection-picks li,.collection-supplier li,.collection-terms li { border-bottom:1px solid var(--line); }
.collection-all,.collection-picks label,.collection-supplier li,.collection-terms li,.collection-batches button { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; }
.collection-all,.collection-picks label { cursor:pointer; }
.collection-all { justify-content:flex-start; margin-top:8px; }
.collection-picks label>span:first-of-type { flex:1; }
.collection-picks label>span:last-child,.collection-supplier li>div:last-child,.collection-terms li>div:last-child { text-align:right; }
#seller-collection li small { display:block; color:var(--muted); font-size:.78rem; }
.collection-batches button { width:100%; background:none; color:inherit; text-align:left; }
.collection-batches button>span:last-child { flex:none; font-size:.83rem; }
.collection-terms { padding:14px; margin:10px 0 18px; background:var(--soft); border-radius:10px; }
.collection-terms ul { margin-bottom:0; }
.collection-terms li:last-child { border:0; }
.collection-terms a { color:var(--plum); text-decoration:underline; text-underline-offset:3px; }
#collection-seller-dialog { width:min(660px,calc(100% - 24px)); overflow-wrap:anywhere; }
.collection-supplier { padding:12px 0; border-top:1px solid var(--line); }
#seller-collection .collection-amount { margin:0; color:var(--ink); text-align:right; }
.collection-amount strong { margin-left:6px; }
#run-desk .run-availability summary,#run-desk .seller-release summary,#run-desk .collection-terms summary { display:flex; align-items:center; min-height:44px; }
#run-desk .run-availability ul { padding-left:17px; line-height:1.8; }
#run-desk .seller-stock-options { padding-left:17px; }
#run-desk .seller-totals { display:block; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:#fafafa; }
#run-desk .seller-totals > div { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:8px 0; border:0; }
#run-desk .seller-totals dt { min-width:0; font-size:.77rem; }
#run-desk .seller-totals dd { flex:none; font-size:1rem; font-weight:700; font-variant-numeric:tabular-nums; letter-spacing:-.025em; }
#run-desk .seller-totals > div:last-child { border-top:1px solid var(--line); margin-top:7px; padding-top:14px; }
#run-desk .seller-totals > div:last-child dt { font-weight:600; }
#run-desk .seller-totals > div:last-child dd { font-size:1.12rem; }
#run-desk .collection-picks li { border:1px solid var(--line); border-radius:12px; margin:9px 0; padding:0 12px; background:var(--card); }
#run-desk .collection-picks li:has(input:checked) { background:var(--brand-tint); border-color:var(--brand-accent); }
#run-desk .collection-picks label > span { min-width:0; overflow-wrap:anywhere; }
#run-desk .collection-terms { background:#f6f6f8; }
#run-desk .collection-supplier { border:1px solid var(--line); border-radius:12px; padding:14px; margin:12px 0; }
#run-desk .collection-supplier li > div,.collection-terms li > div { min-width:0; }
#run-desk .collection-supplier h3 { margin:0; font-size:.94rem; }
#run-desk .collection-amount { border-top:1px solid var(--line); padding-top:12px; font-size:.8rem; }
#run-desk .collection-amount strong { font-size:1rem; font-variant-numeric:tabular-nums; }
#run-desk :is(.run-title,.seller-detail,#run-review-view,#collection-review,#collection-history-detail) { scroll-margin-top:calc(var(--app-header-height,56px) + 72px); }
@media(max-width:560px) {
  .collection-picks label,.collection-terms li,.collection-supplier li,.collection-batches button { align-items:flex-start; gap:8px; }
  .collection-picks label { display:grid; grid-template-columns:20px minmax(0,1fr); }
  .collection-picks label>span:last-child { grid-column:2; text-align:left; }
  .collection-picks label>span:last-child small { display:inline; padding-left:8px; }
  .collection-batches button { display:block; }
}
@media(max-width:660px) {
  #run-desk .run-title { margin:12px 0 18px; }
  #run-desk .run-title h1 { font-size:1.35rem; }
  #run-desk .run-title p { font-size:.78rem; line-height:1.6; }
  #run-desk .run-label { font-size:.62rem; }
  #run-desk :is(button,.btn,.sheet-picker) { min-height:44px; }
  #run-desk input:not([type=checkbox],[type=file]),#run-desk textarea { font-size:16px; }
  #run-desk .run-lookup { padding:16px; gap:9px; }
  #run-desk .run-inline { gap:7px; }
  #run-desk .run-inline > button { padding-inline:13px; font-size:.8rem; }
  #run-desk .run-field { font-size:.78rem; }
  #run-desk .run-filter-field { margin-top:18px; }
  #run-desk .run-store { display:grid; grid-template-columns:20px minmax(0,1fr); gap:3px 9px; padding:10px; }
  #run-desk .run-store input { grid-row:1/3; }
  #run-desk .run-store > span { grid-column:2; }
  #run-desk .run-candidate { padding:12px 10px; gap:9px; }
  #run-desk .run-candidate strong { font-size:.82rem; }
  #run-desk .run-candidate small { font-size:.68rem; }
  #run-desk .run-candidate .run-thumb { width:43px; height:57px; }
  #run-desk .run-create-footer { position:sticky; bottom:calc(var(--workspace-bottom-height,64px) + env(safe-area-inset-bottom)); z-index:2; padding:12px 0 4px; background:var(--card); box-shadow:0 -9px 12px var(--card); }
  #run-desk .run-selection summary { min-height:44px; }
  #run-desk .run-selection ol { max-height:130px; }
  #run-desk .run-toolbar { display:block; border-top:0; padding-top:0; }
  #run-desk .run-toolbar > .desk-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; padding:3px; background:#eeeeF1; border-radius:12px; margin:0 0 11px; }
  #run-desk .run-toolbar > .desk-tabs button { padding:8px 5px; border:0; background:transparent; font-size:.8rem; border-radius:9px; }
  #run-desk .run-toolbar > .desk-tabs button[aria-pressed=true] { background:white; color:var(--brand-accent); box-shadow:inset 0 0 0 1px var(--brand-line); }
  #run-desk .run-toolbar > .desk-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
  #run-desk .run-toolbar > .desk-actions > * { min-width:0; padding:9px 8px; font-size:.72rem; text-align:center; line-height:1.4; }
  #run-desk .run-line { grid-template-columns:52px minmax(0,1fr); align-items:start; gap:8px 12px; padding:14px; }
  #run-desk .run-line > .run-ordinal { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:8px; }
  #run-desk .run-line > .run-ordinal b { font-size:1rem; }
  #run-desk .run-line > .run-thumb { width:52px; height:68px; }
  #run-desk .run-line > button { grid-column:2; justify-self:stretch; width:100%; }
  #run-desk .run-product h3 { font-size:.9rem; }
  #run-desk .run-product small { font-size:.7rem; }
  #run-desk .run-chips { flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; scrollbar-width:thin; }
  #run-desk .run-chips button { flex:none; }
  #run-desk .run-option-title .run-thumb { width:48px; height:64px; }
  #run-desk .run-option-title h3 { font-size:.9rem; }
  #run-desk .run-quantity { align-items:center; padding:12px 0; font-size:.84rem; gap:10px; }
  #run-desk .run-quantity input { flex-basis:80px; min-height:48px; padding-inline:8px; }
  #run-desk .run-quantity small { font-size:.72rem; line-height:1.6; }
  #run-desk .run-summary li { align-items:flex-start; font-size:.8rem; padding:12px 0; }
  #run-desk .run-summary small { margin-top:3px; font-size:.71rem; }
  #run-desk .run-file .sheet-picker { width:100%; }
  #run-desk .seller-workspace .run-links button { display:block; padding:14px 0; }
  #run-desk .seller-workspace .run-links .run-status { display:inline-block; padding:4px 8px; margin-top:8px; border-radius:99px; background:var(--brand-tint); font-size:.67rem; }
  #run-desk .seller-inputs { grid-template-columns:minmax(0,1.5fr) minmax(85px,1fr); gap:9px; }
  #run-desk .seller-inputs .run-field { margin-top:10px; }
  #run-desk .seller-price { grid-template-columns:44px minmax(0,1fr); padding:14px 0 5px; gap:7px 10px; }
  #run-desk .seller-price > input { grid-column:2; width:100%; max-width:170px; justify-self:end; min-height:46px; }
  #run-desk .seller-issue-item .run-availability { padding-left:54px; margin-bottom:10px; font-size:.73rem; }
  #run-desk #seller-issue > button[type=submit] { width:100%; }
  #run-desk .seller-lines li { display:grid; grid-template-columns:minmax(0,1fr); padding:13px 0; gap:7px; }
  #run-desk .seller-lines li > strong { justify-self:end; font-size:.82rem; padding:4px 9px; background:var(--soft); border-radius:6px; }
  #run-desk .seller-lines b { font-size:.86rem; }
  #run-desk .seller-lines small { font-size:.73rem; line-height:1.6; margin-top:2px; }
  #run-desk .seller-detail .desk-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
  #run-desk .seller-detail .sheet-picker,#run-desk .seller-detail > .btn { width:100%; }
  #run-desk .seller-totals > div:last-child { display:block; }
  #run-desk .seller-totals > div:last-child dd { margin-top:5px; text-align:right; font-size:1.25rem; }
  #run-desk .collection-terms { padding:12px; }
  #run-desk .collection-terms li { display:block; padding:13px 0; }
  #run-desk .collection-terms li > div:last-child { text-align:left; padding-top:6px; }
  #run-desk .collection-terms li > div:last-child strong { color:var(--plum); font-size:.86rem; }
  #run-desk .collection-picks label > span:last-child small { display:block; padding:3px 0 0; }
  #run-desk .collection-supplier li { display:block; padding:12px 0; }
  #run-desk .collection-supplier li > div:last-child { text-align:right; margin-top:7px; }
  #run-desk #seller-collection .desk-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
  #run-desk [data-batch-selection] { font-size:.8rem; padding:8px 0; }
  #run-desk #collection-seller-dialog { padding:18px; border-radius:18px; max-height:82dvh; }
}
@media(prefers-reduced-motion:reduce) { #run-desk * { scroll-behavior:auto!important; } }
