/* singles-staging.css - Singles > Staging (app/singles-staging.js, migration
   354, docs/singles/tabs-staging/SPEC.md section 5). Only what the kit and the
   intake panel's own fields lack: the purchase cards, the purchase page with
   its table of lines, the bin bar and the voided list; since 363
   (docs/singles/quote-staging/SPEC.md section 3) the Cards view's rows, its
   Show and Sort, and a picture on each purchase line (the picture box itself
   is app/singles-intake.css's .cp); since 362 (section 6) the ticks and
   buttons for labels and the question at Put (the label sheet itself is
   app/singles-labels.css); since 364 (section 4) Take out's panel under a
   line, the voided purchase and Changes after filing; since staging-clear
   (docs/singles/staging-clear/SPEC.md sections 2 and 3) the fold In Single
   inventory under a purchase's table and the Finished purchases panel on
   Single inventory (the purchase cards' own look). Status pills always
   carry a word. Every colour is a token; targets are 34 px on a desk and
   44 px on a phone; nothing slides sideways at 360 px. */

#v-singles .st-panel{max-width:none;width:auto;display:flex;flex-direction:column;gap:10px;min-width:0}
#v-singles .st-kick{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px}
#v-singles .st-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

#v-singles .st-pill{display:inline-flex;align-items:center;font:500 10.5px/1.5 var(--mono,monospace);letter-spacing:.06em;padding:0 6px;border-radius:4px;border:1px solid var(--line);color:var(--ink2);overflow-wrap:anywhere}
#v-singles .st-pill.st-good{color:var(--good);border-color:color-mix(in srgb,var(--good) 45%,var(--line));background:color-mix(in srgb,var(--good) 12%,var(--surface))}
#v-singles .st-pill.st-warn{color:var(--warn);border-color:color-mix(in srgb,var(--warn) 45%,var(--line));background:color-mix(in srgb,var(--warn) 12%,var(--surface))}
#v-singles .st-pill.st-sky{color:var(--sky);border-color:color-mix(in srgb,var(--sky) 45%,var(--line));background:color-mix(in srgb,var(--sky) 12%,var(--surface))}

/* the list: one card per purchase */
#v-singles .st-list,#v-singles .st-flist{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:10px}
#v-singles .st-list li,#v-singles .st-flist li{display:flex;min-width:0}
#v-singles .st-card{flex:1 1 auto;display:flex;flex-direction:column;gap:5px;min-width:0;min-height:44px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r,6px);background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
#v-singles .st-card:hover{border-color:var(--ink3)}
#v-singles .st-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#v-singles .st-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 8px}
#v-singles .st-id{font:600 15px/1.2 var(--display,inherit)}
#v-singles .st-ln{font-size:13px;line-height:1.35;color:var(--ink2);overflow-wrap:anywhere}
#v-singles .st-pay{display:flex;flex-wrap:wrap;gap:2px 14px;font:500 12.5px/1.4 var(--mono,monospace);font-variant-numeric:tabular-nums;color:var(--ink)}
#v-singles .st-void-note{margin:0;display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-size:13px;color:var(--warn)}

/* the Cards view (363): Cards | Purchases, Show, Sort, one row a card line */
#v-singles .st-tools{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:flex-end;justify-content:space-between;min-width:0}
#v-singles .st-btools{justify-content:flex-start}
#v-singles .st-show{display:flex;flex-direction:column;gap:4px;min-width:0}
#v-singles .st-sortf{width:240px;max-width:100%}
#v-singles .st-sortf select{width:100%;min-height:36px;box-sizing:border-box;font:inherit;font-size:13.5px}
#v-singles .st-count{margin:0;font:500 12.5px/1.4 var(--mono,monospace);font-variant-numeric:tabular-nums;color:var(--ink2)}
#v-singles .st-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
#v-singles .st-row{display:flex;min-width:0;border-top:1px solid var(--line2,var(--line))}
#v-singles .st-row:last-child{border-bottom:1px solid var(--line2,var(--line))}
#v-singles .st-rowb{flex:1 1 auto;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:4px 14px;align-items:start;min-width:0;min-height:44px;padding:8px 6px;margin:0;
  border:0;border-radius:0;background:none;color:var(--ink2);font:inherit;font-size:13px;line-height:1.35;text-align:left;cursor:pointer}
#v-singles .st-rowb:hover{background:color-mix(in srgb,var(--accent) 5%,var(--surface))}
#v-singles .st-rowb:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
#v-singles .st-rmain{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
#v-singles .st-rname b{color:var(--ink);font-weight:600}
#v-singles .st-rmain .si-sub{display:block}
#v-singles .st-rmkt{font:500 12.5px/1.4 var(--mono,monospace);font-variant-numeric:tabular-nums;color:var(--ink)}
#v-singles .st-rfacts{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;justify-content:flex-end;max-width:380px;min-width:0}
#v-singles .st-cond{font:500 12px/1.4 var(--mono,monospace);color:var(--ink);text-decoration:none;border:0}
#v-singles .st-rbuy{font:500 12px/1.4 var(--mono,monospace);color:var(--ink3);white-space:nowrap}
#v-singles .st-more{align-self:flex-start}
/* labels (362): a row's tick beside its press, Print labels, the pills side by side */
#v-singles .st-rowt{align-items:flex-start}
#v-singles .st-rtick{flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;min-height:44px;cursor:pointer}
#v-singles .st-rtick input{width:18px;height:18px;margin:0;accent-color:var(--accent)}
#v-singles .st-rtick input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#v-singles .st-lbltools,#v-singles .st-lblrow{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;min-width:0}
#v-singles .st-lbltools .si-tick{margin:0;min-height:34px;text-transform:none;letter-spacing:normal;font-weight:500;font-size:13px;color:var(--ink)}
#v-singles .st-lbltools .si-msg,#v-singles .st-lblrow .si-msg{flex-basis:100%;margin:0}
/* Mark labelled (1.9.303): what the press did, under it */
#v-singles .bt-more .st-mkmsg{margin-top:6px}
#v-singles .st-mkmsg:focus{outline:none}
#v-singles .st-mkmsg:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#v-singles .st-pills{display:inline-flex;flex-wrap:wrap;gap:4px 6px;align-items:center}
#v-singles .bb-ask{display:flex;flex-direction:column;gap:6px;padding:8px 10px;border:1px solid var(--warn);border-radius:var(--r,6px);background:color-mix(in srgb,var(--warn) 8%,var(--surface))}
#v-singles .bb-ask .si-msg{margin:0;color:var(--ink)}
#v-singles .bb-ask .si-msg:focus{outline:none}
#v-singles .bb-ask .si-msg:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#v-singles .bb-askacts{display:flex;flex-wrap:wrap;gap:6px 10px}

/* one purchase */
#v-singles .bp{display:flex;flex-direction:column;gap:12px;max-width:1180px;min-width:0}
#v-singles .bp-head{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
#v-singles .bp-h{margin:0;font:600 20px/1.2 var(--display,inherit);scroll-margin-top:calc(var(--app-head,60px) + 12px)}
#v-singles .bp-h:focus{outline:none}
#v-singles .bp-h:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#v-singles .bp-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:10px 18px;margin:0}
#v-singles .bp-facts dt{font:500 10.5px/1.4 var(--mono,monospace);letter-spacing:.06em;text-transform:uppercase;color:var(--ink3)}
#v-singles .bp-facts dd{margin:2px 0 0;font-size:13.5px;color:var(--ink);overflow-wrap:anywhere}
#v-singles .bp-facts dd.m{font:500 14px/1.3 var(--mono,monospace);font-variant-numeric:tabular-nums}

/* the table of lines */
#v-singles table.bt{width:100%;border-collapse:collapse;font-size:13px}
#v-singles .bt th{font:500 10.5px/1.4 var(--mono,monospace);letter-spacing:.06em;text-transform:uppercase;color:var(--ink3);text-align:left;padding:4px 6px;border-bottom:1px solid var(--line);white-space:nowrap}
#v-singles .bt th.num{text-align:right}
#v-singles .bt th:first-child{width:46px}
#v-singles .bt td{padding:8px 6px;vertical-align:top;color:var(--ink2);overflow-wrap:anywhere}
#v-singles .bt td b{color:var(--ink)}
#v-singles .bt .num{text-align:right;font-family:var(--mono,monospace);font-variant-numeric:tabular-nums;white-space:nowrap}
#v-singles .bt .nw{white-space:nowrap}
#v-singles .bt-line{border-bottom:1px solid var(--line2,var(--line))}
#v-singles .bt-line.on td{background:color-mix(in srgb,var(--accent) 6%,var(--surface))}
#v-singles .bt-k{display:none}
#v-singles .bt-tick{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;cursor:pointer}
#v-singles .bt-tick input{width:18px;height:18px;margin:0;accent-color:var(--accent)}
#v-singles .bt input,#v-singles .bt .btn{scroll-margin-bottom:200px}
#v-singles .bt-more td{padding:0 6px 10px 52px}
#v-singles .bt-split{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-bottom:6px}
#v-singles .bt-places{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
#v-singles .bt-place{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:12.5px;color:var(--ink2);min-width:0}
#v-singles .bt-place b{font-family:var(--mono,monospace);font-weight:500}
#v-singles .bt-edit{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:flex-end;padding:8px;border:1px solid var(--line);border-radius:var(--r,6px);background:var(--surface2,var(--surface));flex-basis:100%;min-width:0}
#v-singles .bt-edit .si-field{width:150px;max-width:100%}
#v-singles .bt-editnote{flex-basis:100%}
/* 363: a card line's picture beside its name; the line a Cards row opened, marked */
#v-singles .bt-card{display:flex;gap:10px;align-items:flex-start;min-width:0}
#v-singles .bt-card > div{min-width:0}
#v-singles .bt-line.at td{background:color-mix(in srgb,var(--accent) 9%,var(--surface))}
#v-singles .bt-line.at td:first-child{box-shadow:inset 3px 0 0 var(--accent)}

/* the bin bar */
#v-singles .bbar{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border:1px solid var(--accent);border-radius:var(--r,6px);background:var(--surface);min-width:0}
#v-singles .bbar.live{position:sticky;bottom:var(--bbar-h,0px);z-index:2}
#v-singles .bb-row{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:flex-end}
#v-singles .bb-field{flex:0 1 220px;min-width:0}
#v-singles .bb-field input{font-family:var(--mono,monospace);text-transform:uppercase}
#v-singles .bb-field input::placeholder{text-transform:none;font-family:var(--ui,inherit);font-size:13px}
#v-singles .bp .si-tick{text-transform:none;letter-spacing:normal;font-weight:500;font-size:13px;color:var(--ink);margin:0}
#v-singles .bb-picks{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
#v-singles .bb-picks .si-chip{font-family:var(--mono,monospace);min-height:34px}
/* Staging clears (SPEC 3.2): the copies already in a bin, under a fold below
   the table (DESIGN.md "Fold": a button head with aria-expanded and a
   chevron, the body right under it); its body is the table's own look. */
#v-singles .st-inv{display:flex;flex-direction:column;gap:8px;min-width:0;padding-top:8px;border-top:1px solid var(--line2,var(--line))}
#v-singles .st-fold{display:flex;align-items:center;justify-content:space-between;gap:6px 12px;width:100%;min-height:34px;margin:0;padding:4px 6px;box-sizing:border-box;
  border:0;border-radius:var(--r,6px);background:none;color:var(--ink2);font:500 11px/1.4 var(--mono,monospace);letter-spacing:.12em;text-transform:uppercase;text-align:left;cursor:pointer}
#v-singles .st-fold:hover{background:color-mix(in srgb,var(--accent) 5%,var(--surface));color:var(--ink)}
#v-singles .st-fold:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#v-singles .st-foldt{min-width:0;overflow-wrap:anywhere}
#v-singles .st-chev{flex:none;color:var(--ink3);transition:transform .15s}
#v-singles .st-fold[aria-expanded="true"] .st-chev{transform:rotate(90deg)}
#v-singles .st-invb{min-width:0}
@media (prefers-reduced-motion:reduce){
  #v-singles .st-chev{transition:none}
}
/* Finished purchases on Single inventory (SPEC 2.1): a fold whose head is the
   panel's one line while it is closed; its body the purchase cards of
   Staging's list (.st-flist draws as .st-list; its own name keeps .st-list
   meaning Staging's list) */
#v-singles .st-finh{margin:0;font:inherit}
#v-singles .st-finb{min-width:0}

/* Take out of Staging (364, docs/singles/quote-staging/SPEC.md section 4.2):
   the button under a line, its panel (a full-width block under the line),
   the voided purchase and Changes after filing */
#v-singles .bt-take{margin-top:6px;min-width:0}
#v-singles .st-danger{color:var(--crit)}
#v-singles .st-takep{display:flex;flex-direction:column;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r,6px);background:var(--surface2,var(--surface))}
#v-singles .st-takeh{margin:0;font-size:13.5px;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
#v-singles .st-takeh:focus{outline:none}
#v-singles .st-takeh:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#v-singles .st-takeq{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 10px}
#v-singles .st-takeq > .si-lab{flex-basis:100%}
#v-singles .st-takeone{margin:0}
/* Remove copies already in a bin (380, docs/singles/edit-binned/SPEC.md 1.2):
   in the fold's panel, a row a place (its words, then its box) and the total */
#v-singles .st-binfrom{margin:0;padding:0;border:0;min-width:0;display:flex;flex-direction:column;gap:6px}
#v-singles .st-binfrom legend{padding:0;margin:0 0 4px}
#v-singles .st-tbrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-width:0}
#v-singles .st-tbw{flex:1 1 160px;min-width:0;font-size:13px;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
#v-singles .st-tbsum{margin:0}
#v-singles .st-radios,#v-singles .st-pulls{margin:0;padding:0;border:0;min-width:0;display:flex;flex-direction:column;gap:6px}
#v-singles .st-radios legend,#v-singles .st-pulls legend{padding:0;margin:0 0 4px}
#v-singles .st-radio{display:flex;gap:10px;align-items:flex-start;min-height:34px;padding:7px 10px;box-sizing:border-box;border:1px solid var(--line);border-radius:var(--r,6px);background:var(--surface);font-size:13px;line-height:1.4;color:var(--ink);cursor:pointer;overflow-wrap:anywhere;
  text-transform:none;letter-spacing:normal;font-weight:500}   /* an answer in words, not the page's upper-case box label */
#v-singles .st-radio:has(input:checked){border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface))}
#v-singles .st-radio input{width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:var(--accent)}
#v-singles .st-radio input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#v-singles .st-takerow{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:flex-end;min-width:0}
#v-singles .st-treason{width:220px;max-width:100%}
#v-singles .st-treason select{width:100%;min-height:36px;box-sizing:border-box;font:inherit;font-size:13.5px}
#v-singles .st-tnote{flex:1 1 220px}
#v-singles .st-pullticks{display:flex;flex-wrap:wrap;gap:4px 16px}
#v-singles .st-pulls .si-tick{min-height:34px;margin:0}
#v-singles .st-pulls .si-note,#v-singles .st-pulls .si-row{margin:0}
#v-singles .st-code{font:500 12.5px/1.4 var(--mono,monospace);overflow-wrap:anywhere}
/* 381: a named buy's label tick says the code a label printed before the names carries, quietly under its own. */
#v-singles .st-pullw{display:flex;flex-direction:column;min-width:0}
#v-singles .st-pullold{font:500 11px/1.4 var(--mono,monospace);color:var(--ink3);overflow-wrap:anywhere}
/* Fix this card (365, SPEC 5.1): beside Take out under a line; its panel is
   Take out's, holding the quote's own find (two boxes, All games, the hits
   with their pictures), the condition, the copies and what we pay. */
#v-singles .bt-acts{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center}
#v-singles .st-fcard{margin:0;padding:0;border:0;min-width:0;display:flex;flex-direction:column;gap:8px}
#v-singles .st-fcard legend{padding:0;margin:0 0 4px}
#v-singles .st-fpick{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;align-items:start;min-width:0;margin:0}
#v-singles .st-fpickt{min-width:0;font-size:13.5px;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
#v-singles .st-fpill{margin-top:4px}
#v-singles .st-fixp .si-hits{max-height:min(45svh,360px);background:var(--surface)}
#v-singles .st-fixmore{display:flex;flex-direction:column;gap:8px;min-width:0}
#v-singles .st-fixmore:empty{display:none}
#v-singles .st-fixp .si-tick{margin:0}
#v-singles .st-fseller{max-width:360px}
/* A hit's whole name and printing always show here: two printings of one card differ only there */
#v-singles .st-fixp .si-hn{display:block;-webkit-line-clamp:unset;line-clamp:none;overflow:visible}
@media (min-width:760px){
  #v-singles .st-fpick{grid-template-columns:56px minmax(0,1fr)}   /* the quote's hit picture is 56 px wide from 760 px */
}
@media (max-width:480px){
  /* the panel sits inside a stacked line: the market goes under the words, not beside them */
  #v-singles .st-fixp .si-hit{grid-template-columns:48px minmax(0,1fr)}
  #v-singles .st-fixp .si-hm{grid-column:2}
}
#v-singles .st-takewords{display:flex;flex-direction:column;gap:4px;font-size:13px;line-height:1.45;color:var(--ink)}
#v-singles .st-takewords:empty{display:none}
#v-singles .st-takewords p{margin:0}
#v-singles .st-takep > .si-msg{margin:0}
#v-singles .st-takep > .si-msg:focus{outline:none}
#v-singles .st-takep > .si-msg:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#v-singles .st-takeacts{display:flex;flex-wrap:wrap;gap:6px 10px}
/* Batch Remove (quote polish 3): Remove beside Assign, the ticked count after
   it, and its panel under the bar's row (one Remove's panel, a list of the
   ticked cards with each card's label ticks). The bar stays in its place
   while the panel is open, so the panel never sits over the cards. */
#v-singles .bb-count{align-self:center}
#v-singles .bbar.bb-manyon{position:static}
#v-singles .st-manylist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
#v-singles .st-manyl{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:13.5px;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
#v-singles .st-manyl .st-pulls{padding-left:12px;border-left:2px solid var(--line2,var(--line))}
/* The seller's name (quote polish 4, migration 369): Edit beside the Seller,
   its panel under the facts (Remove's panel: the name, then the reason and
   the note, then Save and Cancel), the line after Save and Name changes, a
   quiet list in the facts' own label and size. */
#v-singles .st-sellerv{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
#v-singles .st-sellern{min-width:0;overflow-wrap:anywhere}
#v-singles .st-sname{max-width:360px}
#v-singles #st-sellersaved{margin:0}
#v-singles .st-names{display:flex;flex-direction:column;gap:4px;min-width:0}
#v-singles .st-namesh{margin:0;font:500 10.5px/1.4 var(--mono,monospace);letter-spacing:.06em;text-transform:uppercase;color:var(--ink3)}
#v-singles .st-namesh:focus{outline:none}
#v-singles .st-namesh:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#v-singles .st-namelist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
#v-singles .bb-void{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border:1px solid var(--warn);border-radius:var(--r,6px);background:color-mix(in srgb,var(--warn) 8%,var(--surface))}
#v-singles .bb-void:focus{outline:none}
#v-singles .bb-void:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#v-singles .bb-void .si-msg{margin:0;color:var(--ink)}
#v-singles .st-fixlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
/* Bulk, not binned (366): each bulk count, its money for a money login, its two doors */
#v-singles .st-bulk{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
#v-singles .st-bulkl{display:flex;flex-direction:column;gap:4px;padding:8px 0;border-top:1px solid var(--line2,var(--line));min-width:0;overflow-wrap:anywhere}
#v-singles .st-bulkw{font-size:13.5px}
#v-singles #st-bulknote{margin:0}
#v-singles .st-fix{display:flex;flex-direction:column;gap:3px;padding:8px 0;border-top:1px solid var(--line2,var(--line));font-size:13px;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
#v-singles .st-fixmoney{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;font:500 12.5px/1.4 var(--mono,monospace);font-variant-numeric:tabular-nums;color:var(--ink2)}
#v-singles #st-fix-h:focus{outline:none}
#v-singles #st-fix-h:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* the voided list on Needs attention */
#v-singles .st-vlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
#v-singles .st-vrow{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;justify-content:space-between;padding:8px 0;border-top:1px solid var(--line2,var(--line));font-size:13px}
#v-singles .st-vline{min-width:0;flex:1 1 240px;overflow-wrap:anywhere}

/* Single inventory: where a card's copies were put (355) */
#sg-bins-idle:empty{display:none}
#sg-bins-idle .sl-panel{margin-bottom:12px}
#v-singles .sb-block{display:flex;flex-direction:column;gap:6px;min-width:0;padding:8px 0;border-top:1px solid var(--line2,var(--line));border-bottom:1px solid var(--line2,var(--line))}
#v-singles .sb-buys{display:flex;flex-wrap:wrap;gap:6px}
#v-singles .sb-hsub{display:block}
#v-singles .sb-more{color:var(--warn)}
#v-singles .sb-log{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;font-size:12.5px;color:var(--ink2);overflow-wrap:anywhere}

@media (max-width:759px),(pointer:coarse){
  #v-singles .sb-block .btn,#v-singles #sl-binhits .btn,#v-singles #sl-binslot .btn{min-height:44px}
  #v-singles .bt-tick{width:44px;height:44px}
  #v-singles .bbar{padding:10px 12px;gap:6px}
  #v-singles .bbar .btn,#v-singles .bb-picks .si-chip,#v-singles .bt-place .btn,#v-singles .bt-split .btn,#v-singles .st-vrow .btn,#v-singles .st-void-note .btn,#v-singles .bp .si-row .btn,#v-singles .st-panel .si-row .btn,#v-singles .bt-edit .btn{min-height:44px}
  #v-singles .bp .si-tick{min-height:44px}
  #v-singles .bp input[type=text],#v-singles .bp input[type=number]{min-height:44px;font-size:16px}
  #v-singles .bt .si-step{min-width:44px;min-height:44px}
  #v-singles .bb-row{flex-wrap:nowrap}
  #v-singles .bb-field{flex:0 1 150px}
  #v-singles .bb-go{flex:1 1 auto;min-width:0}
  #v-singles .bb-picks .si-chip{min-width:44px}
  /* With Remove beside Assign the row wraps: the box and Assign on top, Remove and the count under them */
  #v-singles .bb-row.bb-two{flex-wrap:wrap}
  #v-singles .bb-two .bb-field{flex:1 1 150px}
  #v-singles .bb-two .bb-go{flex:1 1 110px}
  #v-singles .bb-two .bb-many{flex:0 0 auto}
  #v-singles .bp-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  #v-singles .st-sortf select{min-height:44px;font-size:16px}
  #v-singles .st-more{min-height:44px}
  #v-singles .st-rtick{width:44px}
  #v-singles .st-lbltools .btn,#v-singles .st-lblrow .btn,#v-singles .bb-askacts .btn,#v-singles .st-lbltools .si-tick{min-height:44px}
  /* Take out: every row and box 44 px, 16 px text, the two buttons full width */
  #v-singles .bt-take .btn,#v-singles .st-radio,#v-singles .st-pulls .si-tick,#v-singles .st-treason select{min-height:44px}
  #v-singles .st-radio{align-items:center}
  #v-singles .st-pulls .si-tick{min-width:44px}
  #v-singles .st-treason select{font-size:16px}
  #v-singles .st-treason{width:100%}
  #v-singles .st-takeacts .btn{flex:1 1 100%}
  /* The seller's name: Edit, Save, Cancel and Try again 44 px; the name box the panel's width */
  #v-singles .st-sellerv .btn,#v-singles .st-sellerp .btn,#v-singles .st-names .btn,#v-singles .st-paidv .btn,#v-singles .st-repayp .btn{min-height:44px;min-width:44px}
  #v-singles .st-sname{max-width:none}
  /* Staging clears: the fold's head 44 px */
  #v-singles .st-fold{min-height:44px}
}
@media (max-width:640px){
  #v-singles .st-rowb{grid-template-columns:36px minmax(0,1fr)}
  #v-singles .st-rfacts{grid-column:2;justify-content:flex-start;max-width:none}
  #v-singles .st-tools{flex-direction:column;align-items:stretch}
  #v-singles .st-sortf{width:100%}
}
@media (max-width:899px){
  #v-singles .bt thead{display:none}
  #v-singles table.bt,#v-singles .bt tbody,#v-singles .bt tr,#v-singles .bt td{display:block}
  #v-singles .bt tbody{border:1px solid var(--line);border-radius:var(--r,6px);padding:8px 10px;margin-bottom:8px}
  #v-singles .bt tbody:last-child{margin-bottom:0}
  #v-singles .bt-line.on{border-color:var(--accent)}
  #v-singles .bt-line.on td{background:none}
  #v-singles .bt tr.bt-main{display:grid;grid-template-columns:44px repeat(2,minmax(0,1fr));gap:6px 12px}
  #v-singles .bt td{padding:0;min-width:0}
  #v-singles .bt .num{text-align:left;white-space:normal}
  #v-singles .bt .nw{white-space:normal}
  #v-singles .bt .c0{grid-column:1;grid-row:1}
  #v-singles .bt .c1{grid-column:2 / -1}
  #v-singles .bt .c2{grid-column:2}
  #v-singles .bt .c3{grid-column:3}
  #v-singles .bt .c4{grid-column:2 / -1}
  #v-singles .bt-k{display:block;font:500 10.5px/1.4 var(--mono,monospace);letter-spacing:.06em;text-transform:uppercase;color:var(--ink3)}
  #v-singles .bt-more td{padding:8px 0 2px 56px}
}
@media (max-width:480px){
  #v-singles .bt-more td{padding-left:0}
}
@media (max-height:600px){
  #v-singles .bbar.live{position:static}
}

/* roca upload (migration 371, docs/singles/roca-upload/SPEC.md): Upload CSV
   beside Cards | Purchases and its page: the drop zone (app/statements.css's
   look under Singles' names), the file line, the preview's facts, the rows
   left out, the cards and the form. Every colour a token; 44 px on a phone. */
#v-singles .st-kacts{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0}
#v-singles .st-drop{border:1px dashed var(--line2,var(--line));border-radius:var(--r,6px);padding:18px;display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center;cursor:pointer;background:var(--surface)}
#v-singles .st-drop.over{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface))}
#v-singles .st-drop:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#v-singles .st-dropin{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center}
#v-singles .st-dropin b{color:var(--ink)}
#v-singles .st-dropin span{color:var(--ink3)}
#v-singles .st-pick{position:relative;overflow:hidden;display:inline-flex;align-items:center}
#v-singles .st-pick input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
#v-singles .st-upfile{align-items:center;gap:6px 12px;flex-wrap:wrap;overflow-wrap:anywhere}
#v-singles .st-upfacts dd .si-sub{display:block}
#v-singles .st-upwait{padding:4px 8px;border-left:3px solid var(--warn);background:color-mix(in srgb,var(--warn) 10%,var(--surface))}
#v-singles .st-upout{list-style:none;margin:0;padding:4px 6px;display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--ink2);overflow-wrap:anywhere}
#v-singles .st-upt th:first-child{width:auto}
#v-singles .st-upsub{color:var(--ink3)}
#v-singles .st-uphand{width:130px;max-width:100%;margin-left:auto;text-align:left}
#v-singles .st-upgrid{display:flex;flex-wrap:wrap;gap:10px 16px}
#v-singles .st-upgrid .si-field{flex:0 1 200px;min-width:0}
#v-singles .st-upform input[type=date]{min-height:36px;box-sizing:border-box;width:100%}
#v-singles .st-upseller{max-width:420px}
#v-singles .st-upprobs{margin:0;padding-left:18px;color:var(--crit);font-size:13px;line-height:1.45}
#v-singles .st-upacts{display:flex;flex-wrap:wrap;gap:8px}
#v-singles .st-ownnote{margin:0}
#v-singles .st-upform .si-tick[hidden]{display:none}
#v-singles .st-upcostnote{margin:0 0 8px}
/* 396 (docs/singles/payedit/SPEC.md): Cash or Store credit at the rates, each with its rate and total; Total paid filled in and editable; Edit what we paid. */
#v-singles .st-upform .si-segb small{font-family:var(--mono);font-variant-numeric:tabular-nums;color:var(--ink2)}
#v-singles .st-uprate{margin:6px 0 0;color:var(--ink);font-variant-numeric:tabular-nums}
#v-singles .st-uprate:empty{display:none}
#v-singles .st-upboth{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:4px}
#v-singles .st-upboth:empty{display:none}
#v-singles .st-paidv{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px 8px}
#v-singles .st-repayp .st-rpay input{font-family:var(--mono);font-variant-numeric:tabular-nums;max-width:160px}
#v-singles .st-repayp [hidden]{display:none}
#v-singles .st-upt .c5 .st-upeach{display:block}
@media (max-width:759px),(pointer:coarse){
  #v-singles .st-upb,#v-singles .st-pick,#v-singles .st-up > .btn,#v-singles .st-upacts .btn,#v-singles .st-upform .si-tick,#v-singles .st-upuse,#v-singles .st-upform .si-segb{min-height:44px}
  #v-singles .st-upform input[type=date]{min-height:44px;font-size:16px}
  #v-singles .st-upacts .btn{flex:1 1 100%}
  #v-singles .st-uphand{width:100%;margin-left:0}
}
@media (max-width:899px){
  #v-singles .st-upt tr.bt-main{grid-template-columns:repeat(2,minmax(0,1fr))}
  #v-singles .st-upt .c1{grid-column:1 / -1}
  #v-singles .st-upt .c2{grid-column:1}
  #v-singles .st-upt .c3{grid-column:2}
  #v-singles .st-upt .c4{grid-column:1}
  #v-singles .st-upt .c5{grid-column:2}
}

/* Needs attention's Changed after filing (migration 364, app/singles-fixes.js,
   docs/singles/quote-staging/SPEC.md 4.5): the purchase's change rows, with
   Still to do in Shopify first. */
#v-singles .sgf .lfb-kicker{font-size:12px}
#v-singles .sgf-lede{margin:0;font-size:13px;line-height:1.45;color:var(--ink2)}
#v-singles .sgf-fail{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#v-singles .sgf-sub{margin:4px 0 0;font:500 11px/1.3 var(--mono,monospace);letter-spacing:.12em;text-transform:uppercase;color:var(--ink3)}
#v-singles .sgf-row .st-fixhead{font-weight:600}
#v-singles .sgf-todo{margin:2px 0 0;padding:4px 8px;border-left:3px solid var(--warn);background:color-mix(in srgb,var(--warn) 10%,var(--surface));font-size:13px;line-height:1.4;color:var(--ink)}
#v-singles .sgf-small{margin:0;font-size:12px;line-height:1.4;color:var(--ink3);overflow-wrap:anywhere}
#v-singles .sgf-acts{display:flex;flex-wrap:wrap;gap:6px 8px;margin-top:4px}
#v-singles .sgf-acts .btn{min-height:34px;padding:5px 10px;font-size:13px}
#v-singles #sgf-h:focus{outline:none}
#v-singles #sgf-h:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:759px),(pointer:coarse){
  #v-singles .sgf .btn{min-height:44px}
}
@media (max-width:759px){
  #v-singles .sgf-acts .btn{flex:1 1 auto}
}

/* Buy names (migration 381, docs/singles/buy-numbers/SPEC.md): Find a buy over
   the purchases, its hits as purchase cards, and a named purchase's old code
   under its heading. */
#v-singles .st-bfind{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 10px;margin:4px 0 10px;min-width:0}
#v-singles .st-bfind .si-field{flex:1 1 260px;min-width:0;margin:0}
#v-singles .st-bfind input{width:100%;min-width:0;font-family:"JetBrains Mono",ui-monospace,monospace}
#v-singles .st-bqhint{margin:4px 0 0}
#v-singles .st-bgo{align-self:flex-start;margin-top:21px;min-height:36px}
#v-singles .st-bhits{list-style:none;margin:0 0 12px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:8px}
#v-singles .st-bhits li{display:flex;min-width:0}
#v-singles .st-bhit{flex:1 1 auto;display:flex;flex-direction:column;gap:4px;min-width:0;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:var(--r,6px);background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
#v-singles .st-bhit:hover{border-color:var(--ink3)}
#v-singles .st-bhit:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#v-singles .st-oldcode{margin:-2px 0 10px;font:500 11px/1.4 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.06em;color:var(--ink3)}
@media (max-width:759px),(pointer:coarse){
  #v-singles .st-bgo{min-height:44px}
  #v-singles .st-bfind input{min-height:44px}
}

/* Add cards (migration 389, docs/singles/addcard/SPEC.md): + Add card beside
   Upload CSV opens a page in Staging's place: the quote's own find (two boxes,
   the game chips, the hits with their pictures), the card picked (its
   condition, its quantity), then the list with Came from and Add to Staging
   over it, so a long list never hides the press. */
#v-singles .st-addlede{margin:0 0 10px}
#v-singles .st-add .si-hits{max-height:min(45svh,360px);background:var(--surface)}
/* A hit's whole name and printing always show: two printings of one card (a promo, a stamp) differ only there */
#v-singles .st-add .si-hn{display:block;-webkit-line-clamp:unset;line-clamp:none;overflow:visible}
#v-singles .st-addfind,#v-singles .st-addlistp{display:flex;flex-direction:column;gap:10px;min-width:0}
#v-singles .st-addpick{display:flex;flex-direction:column;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r,6px);background:var(--surface2,var(--surface));min-width:0}
#v-singles #st-addpickw:empty{display:none}
#v-singles .st-addpick .si-row,#v-singles .st-addpick .si-note,#v-singles .st-addpick .si-mline{margin:0}
#v-singles .st-addsaid{margin:0;min-height:1em}
#v-singles .st-addsaid:empty{display:none}
#v-singles .st-addnote{max-width:520px}
#v-singles .st-addnote input{width:100%;box-sizing:border-box}
#v-singles .st-addnote .si-sub{display:block;margin-top:4px}
#v-singles #st-add-own{margin:0}
#v-singles .st-addlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r,6px)}
#v-singles .st-addl{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 10px;min-width:0}
#v-singles .st-addl+.st-addl{border-top:1px solid var(--line)}
#v-singles .st-addlt{min-width:0;font-size:13.5px;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
#v-singles .st-addlc{color:var(--ink2)}
#v-singles .st-addla{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 8px}
#v-singles .st-addq{width:72px;min-height:34px;box-sizing:border-box;text-align:center;font-family:var(--mono,monospace)}
@media (max-width:480px){
  /* the copies box and Remove go under the words, the picture's column kept */
  #v-singles .st-addl{grid-template-columns:48px minmax(0,1fr)}
  #v-singles .st-addla{grid-column:2;justify-content:flex-start}
  #v-singles .st-add .si-hit{grid-template-columns:48px minmax(0,1fr)}
  #v-singles .st-add .si-hm{grid-column:2}
}
@media (max-width:759px),(pointer:coarse){
  #v-singles .st-addb,#v-singles .st-add .btn,#v-singles .st-add .si-step{min-height:44px}
  #v-singles .st-add .si-step{min-width:44px}
  #v-singles .st-addq,#v-singles .st-addnote input{min-height:44px;font-size:16px}
  #v-singles .st-addpick .si-row .btn{flex:1 1 auto}
}
