/* UniCirc Workspace 2 — Returns and recycling / 交回与回收 (prefix st-). Small additions only; colours are the ws2.css variables
   only: the original dark UniCirc colours. No new colours, no other theme. Targets stay at 44 px or more.
   The flow picture reuses .card.accent + .chip.accent for handoffs ("who takes over"), .card.ok for the A and B lanes and the way
   forward, .card.warn for the C lane and "held / below target", .card.soft for the recycling workspace (two accounts: our own
   recycling department and the independent lab; 20 Nov). */

/* garment and filter chips (pressed = chosen) */
.st-pickg { display: grid; gap: 8px; }
.st-lab { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.st-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; }
.st-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.st-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--sunk); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--ink); }
.st-cnt { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); font: 700 12.5px/22px var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
.st-chip[aria-pressed="true"] .st-cnt { background: var(--surface); color: var(--ink); }
.st-sel { width: 100%; max-width: 420px; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; }

/* numbers and labels inside groups */
.st-n { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.st-big { display: flex; align-items: baseline; gap: 8px; }
.st-big b { font-size: 32px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st-big span { color: var(--ink-2); }
.st-act { display: flex; flex-wrap: wrap; gap: 8px; }
.st-gl { display: grid; gap: 1px; }
.st-gl small { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.st-h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); }

/* log a return: the group title is the visible question; the field label stays for screen readers */
.st-q .fld > .lab { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.st-sum { color: var(--ink-2); }
.st-sum b { color: var(--ink); }

/* head office: requests waiting for a stock check, with an outline link to Requests */
.card.st-todo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.card.st-todo p { margin: 0; color: var(--ink); }

/* the finished moment */
.st-done-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.st-hands { display: grid; gap: 6px; width: 100%; max-width: 46ch; }

/* ── the whole flow, one picture (from the user's diagram) ── */
.st-flowd > summary { color: var(--ink); }
.st-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.st-flow { display: grid; gap: 0; }
.st-top { display: grid; width: 100%; max-width: 640px; margin: 0 auto; }
.st-lanes { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.st-left, .st-lane { display: grid; align-content: start; min-width: 0; }
.st-ab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.st-ar { display: block; text-align: center; color: var(--ink-3); font-size: 16px; line-height: 24px; }
/* a stage: who · what · live count · meaning (the whole box opens it) */
.st-box { display: grid; gap: 4px; min-width: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: inherit; text-decoration: none; }
a.st-box:hover, a.st-bx:hover { border-color: var(--ink-3); }
.st-box.st-mine, .st-bx.st-mine { border-color: var(--glow); }
.st-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 600 11.5px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
html[data-lang="zh"] .st-who { font-family: var(--sans); font-size: 13px; letter-spacing: .02em; text-transform: none; }
.st-who .chip { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; text-transform: none; padding: 2px 9px; }
.st-bt { font-size: 16.5px; line-height: 1.3; }
.st-bn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.st-bn b { font-size: 24px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.st-bn span { color: var(--ink-2); font-size: 14px; }
.st-bs { color: var(--ink-2); font-size: 14px; }
.st-bm { color: var(--ink-3); font-size: 13.5px; }
/* handoff = who takes over */
.card.st-ho { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px; border-radius: 12px; font-weight: 600; font-size: 14.5px; }
/* lane titles and branch outcomes */
.card.st-lh { padding: 8px 12px; border-radius: 999px; text-align: center; font-weight: 700; }
.st-br { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card.st-bx { gap: 4px; padding: 10px 12px; border-radius: 12px; color: inherit; text-decoration: none; align-content: start; }
.st-bx > b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; }
.st-bx > span { font-size: 14px; color: var(--ink-2); }
.st-bx .st-bn b { font-size: 20px; }
.st-bx .card.st-ho { margin-top: 4px; }
.card.st-bx.st-now { box-shadow: inset 0 0 0 1px var(--ink); }
/* the recycling workspace: our recycling department and the independent lab sign in separately */
.card.st-shared { gap: 0; padding: 12px; }
.st-sh { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; color: var(--ink-2); font-size: 13.5px; }
.st-sh b { font: 600 11.5px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
html[data-lang="zh"] .st-sh b { font-family: var(--sans); font-size: 13px; letter-spacing: .02em; text-transform: none; }
/* progress towards the batch size of our recycling line */
.st-bar { display: block; height: 10px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line-2); overflow: hidden; }
.st-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--wait); }
.st-bar.st-full > i { background: var(--ok); }
/* the garment lookup of the diagram */
.card.st-find { gap: 10px; margin-top: 18px; }
.st-find .fm { gap: 10px; }
.st-find .fm-bar { justify-content: flex-start; padding-top: 0; }

/* lists of garment IDs (each one opens its journey) */
.st-ids { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 0 14px; }
.st-ids li { display: flex; align-items: center; min-height: 44px; }
.st-ids a { display: inline-flex; align-items: center; min-height: 44px; }

/* what happened next, per grade */
.st-g3col { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.card.st-gcard { gap: 10px; align-content: start; }
.st-gh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.st-where { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.st-where li { display: flex; gap: 10px; align-items: baseline; }
.st-where b { min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }
.st-recs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: 14.5px; }
.st-recs a { display: inline-flex; align-items: center; min-height: 44px; }
.st-plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-plist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
table.st-tnum td { text-align: right; font-variant-numeric: tabular-nums; }

/* head office check-in and UniCirc's resolve */
.card.st-notice p { margin: 0; }
.st-ci2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-cisum, .st-ciscan { font-weight: 600; }
.card.st-ciwarn, .card.st-issue { gap: 8px; }

/* grading dialog */
.st-abc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-abc li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.st-abc .chip { min-width: 44px; justify-content: center; }
.st-crit { font-size: 14.5px; gap: 2px; }
.st-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.st-dsec { display: grid; gap: 10px; }
.st-gr { display: grid; gap: 12px; }
.st-gr-row { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); }
.st-gr-row.st-bad { border-color: var(--bad); }
.st-gr-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.st-gr-abc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.st-gr-c { display: grid; gap: 6px; min-width: 0; }
.st-gr-c label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 15px; }
.st-gr-c label b { font-weight: 700; }
.st-gr-c label small { color: var(--ink-3); font-size: 13px; }
.st-gr .stepper { min-width: 0; }
.st-gr .stepper input { width: 100%; min-width: 0; background: transparent; color: inherit; }
.st-gr-live { font-weight: 600; font-size: 14.5px; }
.st-gr-live.st-ok { color: var(--ok); }
.st-gr-live.st-wait { color: var(--wait); }
.st-gr-live.st-over { color: var(--bad); }
.st-gr-tot { font-weight: 600; color: var(--ink-2); }
/* single garments by ID: scan or type, or pick from the list */
.st-scan { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.st-scan .fld { flex: 1 1 220px; }
.st-excount { color: var(--ink-2); font-size: 14.5px; }
.st-gl3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; }
.st-gl3 li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-g3 { display: inline-flex; gap: 6px; }
.st-chip.st-gb { min-width: 44px; justify-content: center; padding: 0 12px; font-weight: 700; }

/* narrower screens: the A and B lanes stack, then everything runs top to bottom */
@media (max-width: 1100px) { .st-ab { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .st-lanes { grid-template-columns: minmax(0, 1fr); } .st-top { max-width: none; } }
/* long status words wrap instead of pushing the page sideways at 390 px (same as .ro-rows) */
@media (max-width: 860px) {
  .st-rows .row-side { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
  .st-rows .chip { white-space: normal; }
  /* long button labels ("Hand the batch to the recycling department") wrap inside the screen (same as the loop screens) */
  .st-act { min-width: 0; }
  .st-act .b { max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; padding-top: 8px; padding-bottom: 8px; }
}
/* phones: the done panel's buttons take the full width and long labels wrap (same as .hm-done-acts) */
@media (max-width: 560px) {
  .st-done-act { width: 100%; }
  .st-done-act > .b, .st-done-act > .bw { flex: 1 1 100%; }
  .st-done-act .b { white-space: normal; text-align: center; }
}
/* phones: two-up boxes stack, each stepper with its label on the left */
@media (max-width: 560px) {
  .st-br, .st-ci2, .st-gr-abc { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .st-gr-c { grid-template-columns: minmax(0, 1fr) minmax(132px, 164px); align-items: center; }
}
