/* WHQ count screen (Components/Shared/Count): the approved prototype (plan/artifacts/count-screen/prototype.tpl.html) on the UI kit
   tokens. Everything is scoped under .uwc. One status colour (the client will be short): --uw-danger. No inline hex: derived shades are
   color-mix of tokens, so the [data-theme="dark"] token set keeps it readable. Breakpoints are the prototype's (1100 / 640 px). */
.uwc {
    --uwc-top: 0px; --hdr-h: 61px; --lh-h: 0px; --fh-h: 0px;
    --col: 54px; --lab: 64px; --uwc-bleed: 32px;
    --uwc-bad-line: color-mix(in srgb, var(--uw-danger) 30%, var(--uw-surface));
    --uwc-focus-line: color-mix(in srgb, var(--uw-primary) 45%, var(--uw-surface));
    --uwc-on: var(--uw-surface);
    color: var(--uw-text); font-family: var(--uw-font); font-size: 14px; line-height: 1.4; min-width: 0;
}
.uwc *, .uwc *::before, .uwc *::after { box-sizing: border-box; }
.uwc button, .uwc input, .uwc select { font: inherit; color: inherit; }
.uwc button { cursor: pointer; }
.uwc .num, .uwc input.cnt { font-variant-numeric: tabular-nums; }
.uwc :focus-visible { outline: 2px solid var(--uw-primary); outline-offset: 2px; }
.uwc img { display: block; }

/* ---------- sticky bar: 1 row at desktop, 2 at phone ---------- */
.uwc .bar { position: sticky; top: var(--uwc-top); z-index: 40; margin: 0 calc(-1 * var(--uwc-bleed)); background: color-mix(in srgb, var(--uw-bg) 97%, transparent); border-bottom: 1px solid var(--uw-border); backdrop-filter: blur(6px); }
.uwc .bar-in { padding: 10px var(--uwc-bleed); display: flex; align-items: center; gap: 10px; }
.uwc .po { min-width: 0; flex: 0 1 330px; position: relative; }
.uwc .po::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.6px solid var(--uw-muted); border-bottom: 1.6px solid var(--uw-muted); transform: rotate(45deg); pointer-events: none; }
.uwc .po select { height: 40px; width: 100%; border: 1px solid var(--uw-border-strong); border-radius: var(--uw-r-md); background: var(--uw-surface); padding: 0 32px 0 12px; font-size: 15px; font-weight: 600; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; }
.uwc .seg { display: inline-flex; background: var(--uw-surface-2); border: 1px solid var(--uw-border); border-radius: var(--uw-r-md); padding: 3px; flex: none; }
.uwc .seg button { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 7px; font-weight: 600; color: var(--uw-text-2); }
.uwc .seg button[aria-pressed="true"] { background: var(--uw-surface); color: var(--uw-text); outline: 1px solid var(--uw-border-strong); outline-offset: -1px; }
.uwc .seg button:disabled { cursor: default; opacity: .5; }
.uwc .brk { display: none; }
.uwc .prog { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.uwc .strip { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.uwc .sq { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--uw-border-strong); background: var(--uw-surface); padding: 0; }
.uwc .sq.d { background: var(--uw-text); border-color: var(--uw-text); }
.uwc .sq.b { background: var(--uw-danger); border-color: var(--uw-danger); }
.uwc .sq.cur { outline: 2px solid var(--uw-primary); outline-offset: 1px; }
.uwc .stat { border: 1px solid var(--uw-border); background: var(--uw-surface); border-radius: var(--uw-r-pill); height: 32px; padding: 0 12px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.uwc .stat:disabled { cursor: default; color: var(--uw-text-2); }
.uwc .stat.bad { background: var(--uw-danger-bg); border-color: var(--uwc-bad-line); color: var(--uw-danger-ink); }
.uwc .stat[hidden] { display: none; }
.uwc .saved { font-size: 12px; color: var(--uw-muted); white-space: nowrap; min-width: 50px; }
.uwc .saved button { border: 0; background: transparent; padding: 0; color: var(--uw-primary); font-weight: 600; font-size: 12px; text-decoration: underline; }
.uwc .acts { display: flex; gap: 8px; flex: none; }
.uwc .btn { height: 40px; padding: 0 16px; border-radius: var(--uw-r-md); border: 1px solid var(--uw-border-strong); background: var(--uw-surface); font-weight: 600; white-space: nowrap; }
.uwc .btn:hover { background: var(--uw-surface-2); }
.uwc .btn.primary { background: var(--uw-primary); border-color: var(--uw-primary); color: var(--uwc-on); }
.uwc .btn.primary:hover { background: var(--uw-primary-hover); }
.uwc .btn.ghost { border-color: transparent; background: transparent; color: var(--uw-text-2); }
.uwc .btn.ghost:hover { background: var(--uw-surface-2); }
.uwc .btn.sm { height: 36px; padding: 0 12px; font-size: 13px; }
.uwc .btn[disabled] { opacity: .45; cursor: default; }
.uwc .btn[hidden] { display: none; }

/* ---------- page ---------- */
.uwc .uwc-main { padding: 14px 0 24px; }
.uwc .pometa { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; margin: 2px 0 16px; color: var(--uw-muted); font-size: 13px; }
.uwc .pometa h2 { margin: 0; color: var(--uw-text); font-size: 20px; font-weight: 700; line-height: 1.4; }
.uwc .note { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--uw-border); border-radius: var(--uw-r-md); background: var(--uw-surface-2); color: var(--uw-text-2); font-size: 13px; }

/* design group: big sticky image + name on the left, its lines on the right */
.uwc .grp { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; margin-bottom: 28px; }
.uwc .grp-head { position: sticky; top: calc(var(--hdr-h) + 14px); align-self: start; display: flex; flex-direction: column; gap: 10px; }
.uwc .imgbtn { display: block; width: 100%; padding: 0; border: 1px solid var(--uw-border); background: var(--uw-surface); border-radius: 12px; cursor: zoom-in; overflow: hidden; }
.uwc .imgbtn img, .uwc .imgbtn .noimg { width: 100%; aspect-ratio: 1800 / 2246; object-fit: cover; }
.uwc .noimg { display: flex; align-items: center; justify-content: center; color: var(--uw-muted); font-size: 12px; background: var(--uw-surface-2); }
.uwc .dname { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; color: var(--uw-text); }
.uwc .dname .sh, .uwc .ldn .sh, .uwc .mkd .sh { font-weight: 400; color: var(--uw-text-2); }
.uwc .gmeta { font-size: 13px; color: var(--uw-muted); margin-top: 4px; }

.uwc .line { background: var(--uw-surface); border: 1px solid var(--uw-border); border-radius: var(--uw-r-lg); padding: 12px 16px 14px; margin-bottom: 12px; box-shadow: var(--uw-shadow-sm); position: relative; }
.uwc .line:focus-within { border-color: var(--uwc-focus-line); box-shadow: 0 0 0 3px var(--uw-primary-tint); }
.uwc .line.is-done { background: var(--uw-surface-2); box-shadow: none; }
.uwc .line.is-bad { box-shadow: inset 4px 0 0 var(--uw-danger); }
.uwc .line.is-bad:focus-within { box-shadow: inset 4px 0 0 var(--uw-danger), 0 0 0 3px var(--uw-primary-tint); }
.uwc .lh { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.uwc .st { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--uw-border-strong); flex: none; display: grid; place-items: center; background: var(--uw-surface); }
.uwc .is-done .st { background: var(--uw-text); border-color: var(--uw-text); }
.uwc .is-done .st::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--uwc-on); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.uwc .lthumb { display: none; flex: none; padding: 0; border: 1px solid var(--uw-border); border-radius: 8px; overflow: hidden; background: var(--uw-surface); cursor: zoom-in; }
.uwc .lthumb img, .uwc .lthumb .noimg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.uwc .lt { min-width: 0; flex: 0 1 auto; }
.uwc .lt1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.uwc .gn { margin: 0; font-size: 18px; font-weight: 700; white-space: nowrap; line-height: 1.4; }
.uwc .lp { color: var(--uw-text-2); font-size: 13px; white-space: nowrap; }
.uwc .ldn { display: none; font-size: 14px; line-height: 1.2; font-weight: 800; }
.uwc .chip { height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: var(--uw-r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--uw-surface); color: var(--uw-text-2); border: 1px solid var(--uw-border-strong); }
.uwc .chip.bad { background: var(--uw-danger-bg); color: var(--uw-danger-ink); border-color: var(--uwc-bad-line); }
.uwc .chip:empty { display: none; }
.uwc .lacts { display: flex; gap: 6px; margin-left: auto; flex: none; }

/* wrong item form + list (neutral; the red is on the box) */
.uwc .wf { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 10px 0 2px; padding: 10px; border: 1px solid var(--uw-border); border-radius: var(--uw-r-md); background: var(--uw-surface-2); }
.uwc .wf label { font-size: 12px; font-weight: 600; color: var(--uw-text-2); display: flex; flex-direction: column; gap: 3px; }
.uwc .wf select, .uwc .wf input { height: 40px; border: 1px solid var(--uw-border-strong); border-radius: var(--uw-r-md); background: var(--uw-surface); padding: 0 10px; font-size: 15px; }
.uwc .wf input.wq { width: 64px; }
.uwc .wf .grow { flex: 1 1 200px; }
.uwc .wf .grow input { width: 100%; }
.uwc .wf .werr { flex-basis: 100%; font-size: 13px; color: var(--uw-text-2); }
.uwc .wl { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.uwc .wl:empty { display: none; }
.uwc .wl li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--uw-text-2); background: var(--uw-surface-2); border: 1px solid var(--uw-border); border-radius: var(--uw-r-sm); padding: 3px 4px 3px 10px; }
.uwc .wl li b { color: var(--uw-text); }
.uwc .wl li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.uwc .wl button { border: 0; background: transparent; color: var(--uw-muted); font-size: 18px; width: 32px; height: 28px; border-radius: 6px; }

/* ---------- size run: ruled columns that wrap by size family ---------- */
.uwc .sizes { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 10px; }
.uwc .fb { display: flex; }
.uwc .fh, .uwc .sz { display: flex; flex-direction: column; }
.uwc .fh { width: var(--lab); flex: none; }
.uwc .sz { width: var(--col); flex: none; padding: 0 2px; }
.uwc .fh > span, .uwc .sz > span { display: flex; align-items: center; }
.uwc .sz > span { justify-content: center; }
.uwc .c-size { height: 30px; border-bottom: 1.5px solid var(--uw-text); }
.uwc .c-a, .uwc .c-b, .uwc .c-c { height: 27px; border-bottom: 1px solid var(--uw-border); }
.uwc .c-in { height: 56px; }
.uwc .c-c { display: none !important; }
.uwc.mode-ship .c-c { display: flex !important; }
.uwc .fh > span { font-size: 12px; font-weight: 600; color: var(--uw-text-2); }
.uwc .fh .c-size { font-size: 13px; font-weight: 700; color: var(--uw-text); }
.uwc .sz .c-size { font-size: 16px; font-weight: 700; white-space: nowrap; }
.uwc .sz .c-a, .uwc .sz .c-b, .uwc .sz .c-c { font-size: 16px; }
.uwc .sz .z { color: var(--uw-faint); }
.uwc .fb.tot { border-left: 1px solid var(--uw-border); padding-left: 14px; }
.uwc .fb.tot .sz { width: 58px; }
.uwc .fb.tot .sz > span { font-weight: 700; }
.uwc .fb.tot .sz .c-size { font-size: 13px; color: var(--uw-text-2); }
.uwc .tl { display: none; font-style: normal; }
.uwc .box { position: relative; display: block; width: 100%; }
.uwc input.cnt { display: block; width: 100%; height: 44px; border: 1.5px dashed var(--uw-border-strong); border-radius: var(--uw-r-md); background: var(--uw-surface); text-align: center; font-size: 20px; font-weight: 700; padding: 0; -moz-appearance: textfield; scroll-margin-top: calc(var(--hdr-h) + var(--lh-h) + var(--fh-h) + 56px); scroll-margin-bottom: 80px; }
.uwc input.cnt.t { border-style: solid; }
.uwc input.cnt::placeholder { color: var(--uw-faint); font-weight: 500; }
.uwc input.cnt:focus { outline: none; border: 2px solid var(--uw-primary); box-shadow: 0 0 0 3px var(--uw-primary-tint); }
.uwc input.cnt:disabled { cursor: default; }
.uwc .is-done input.cnt { background: var(--uw-bg); border-color: var(--uw-border-strong); }
.uwc .sz.bad input.cnt { border: 2px solid var(--uw-danger); background: var(--uw-danger-bg); color: var(--uw-danger-ink); }
.uwc .sz.bad input.cnt:focus { box-shadow: 0 0 0 3px var(--uwc-bad-line); }
.uwc .sz.na input.cnt { background: var(--uw-surface-2); border-style: dotted; }
.uwc .dl { position: absolute; top: -8px; right: -7px; font-style: normal; font-size: 11px; font-weight: 700; line-height: 17px; min-width: 24px; padding: 0 5px; text-align: center; border-radius: var(--uw-r-pill); background: var(--uw-surface); color: var(--uw-text); border: 1px solid var(--uw-text); pointer-events: none; }
.uwc .dl.r { background: var(--uw-danger); border-color: var(--uw-danger); color: var(--uwc-on); }
.uwc .dl:empty { display: none; }
.uwc .lf { display: none; }
/* size labels stay visible: each column's label sticks under the bar while its column is on screen */
@media (min-width: 640px) {
    .uwc .sizes .c-size { position: sticky; top: var(--hdr-h); z-index: 3; background: var(--uw-surface); }
    .uwc .is-done .sizes .c-size { background: var(--uw-surface-2); }
}

/* needs make-up */
.uwc .mk { margin-top: 28px; background: var(--uw-surface); border: 1px solid var(--uw-border); border-radius: var(--uw-r-lg); padding: 16px; }
.uwc .mk h2 { margin: 0; font-size: 20px; line-height: 1.4; }
.uwc .mk p { margin: 2px 0 12px; color: var(--uw-muted); font-size: 13px; }
.uwc .mk table { width: 100%; border-collapse: collapse; font-size: 14px; }
.uwc .mk th { font-size: 12px; font-weight: 700; color: var(--uw-text-2); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--uw-border); background: var(--uw-surface-2); }
.uwc .mk th.q { text-align: right; }
.uwc .mk td { padding: 8px; border-bottom: 1px solid var(--uw-border); vertical-align: middle; }
.uwc .mk td.q { font-weight: 700; color: var(--uw-danger-ink); text-align: right; white-space: nowrap; font-size: 16px; }
.uwc .mkd { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.uwc .mkd img, .uwc .mkd .noimg { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; object-position: 50% 38%; border: 1px solid var(--uw-border); flex: none; }
.uwc .mk .none { color: var(--uw-muted); padding: 6px 0; }

/* PS (partial shipments): the reference line, and why each short size is short (Missing / Not here yet) */
.uwc .lref { margin: 8px 0 0; font-size: 13px; color: var(--uw-muted); }
.uwc .shortq { margin: 10px 0 2px; padding: 10px 12px; border: 1px solid var(--uw-border-strong); border-radius: var(--uw-r-md); background: var(--uw-surface-2); display: flex; flex-direction: column; gap: 8px; }
.uwc .shortq .sq-t { font-size: 12px; font-weight: 700; color: var(--uw-text-2); }
.uwc .sq-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.uwc .sq-row .sq-n { font-size: 14px; }
.uwc .sq-row .sq-n b { font-weight: 700; }
.uwc .sq-row .seg { background: var(--uw-surface); }
.uwc .sq-row.need .seg { border-style: dashed; border-color: var(--uw-border-strong); }
.uwc .lf { gap: 6px; flex-wrap: wrap; }

/* overlays */
.uwc .ov { position: fixed; inset: 0; z-index: 1400; background: var(--uw-scrim); display: flex; align-items: center; justify-content: center; padding: 16px; }
.uwc .ov[hidden] { display: none; }
.uwc .lb { background: var(--uw-surface); border-radius: var(--uw-r-lg); padding: 14px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; cursor: zoom-out; }
.uwc .lb img { width: 100%; max-height: 68vh; object-fit: contain; border-radius: 10px; }
.uwc .lb .dname { font-size: 28px; margin-top: 12px; }
.uwc .dlg { background: var(--uw-surface); border-radius: var(--uw-r-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 20px; }
.uwc .dlg h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.4; }
.uwc .sum { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--uw-border); border-radius: var(--uw-r-md); overflow: hidden; }
.uwc .sum > div { padding: 10px 12px; border-bottom: 1px solid var(--uw-border); }
.uwc .sum > div:nth-last-child(-n+2) { border-bottom: 0; }
.uwc .sum .v { text-align: right; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.uwc .sum .v.bad { color: var(--uw-danger-ink); }
.uwc .sum .k small { display: block; color: var(--uw-muted); font-size: 12px; }
.uwc .dlg .acts { justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.uwc .dnotes { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 0; font-size: 12px; font-weight: 600; color: var(--uw-text-2); }
.uwc .dnotes textarea { width: 100%; min-height: 56px; resize: vertical; border: 1px solid var(--uw-border-strong); border-radius: var(--uw-r-md); background: var(--uw-surface); padding: 8px 10px; font-size: 14px; font-weight: 400; color: var(--uw-text); }
.uwc .dcount { align-self: flex-end; font-size: 12px; font-weight: 500; color: var(--uw-muted); font-variant-numeric: tabular-nums; }
.uwc .dlg .dnote { margin: 12px 0 0; color: var(--uw-muted); font-size: 13px; }
.uwc .dlg .dstop { margin: 12px 0 0; color: var(--uw-text); font-size: 13px; padding: 8px 10px; border: 1px solid var(--uw-border-strong); border-radius: var(--uw-r-sm); background: var(--uw-surface-2); }
.uwc .toast { white-space: nowrap; position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--uw-text); color: var(--uwc-on); border-radius: var(--uw-r-md); padding: 6px 6px 6px 16px; font-weight: 600; z-index: 1450; box-shadow: var(--uw-shadow-pop); max-width: calc(100% - 32px); display: flex; align-items: center; gap: 12px; min-height: 44px; }
.uwc .toast[hidden] { display: none; }
.uwc .toast span { white-space: normal; }
.uwc .toast button { height: 34px; border-radius: 8px; border: 0; background: color-mix(in srgb, var(--uwc-on) 16%, transparent); color: var(--uwc-on); font-weight: 700; padding: 0 12px; }

/* ---------- tablet: design header above its lines; every line names its design ---------- */
@media (max-width: 1099px) {
    .uwc .strip { display: none; }
    .uwc .grp { display: block; }
    .uwc .grp-head { position: static; flex-direction: row; align-items: center; gap: 16px; margin-bottom: 12px; }
    .uwc .grp-head .imgbtn { width: 112px; flex: none; }
    .uwc .lthumb { display: block; width: 44px; height: 44px; }
    .uwc .ldn { display: block; }
    .uwc .lt { flex: 1 1 auto; }
    .uwc { --lab: 58px; }
    .uwc .sizes { gap: 12px 16px; }
    .uwc .fb.tot { padding-left: 12px; }
}
@media (max-width: 899px) { .uwc { --uwc-bleed: 16px; } }
@media (max-width: 1099px) and (min-width: 640px) {
    .uwc .bar-in { flex-wrap: wrap; row-gap: 8px; }
    .uwc .brk { display: block; flex-basis: 100%; height: 0; }
    .uwc .prog { margin-left: 0; flex: 1 1 0; }
}
/* ---------- phone: one row per size, label in every row ---------- */
@media (max-width: 639px) {
    .uwc { --lh-h: 72px; --fh-h: 30px; }
    .uwc .bar-in { flex-wrap: wrap; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; gap: 8px; }
    .uwc .po { flex: 1 1 0; }
    .uwc .po select { font-size: 14px; padding-left: 10px; }
    .uwc .seg button { padding: 0 10px; }
    .uwc .brk { display: block; flex-basis: 100%; height: 0; }
    .uwc .prog { margin-left: 0; flex: 1 1 0; gap: 4px; }
    .uwc .stat { padding: 0 9px; }
    .uwc .saved { min-width: 0; font-size: 11px; }
    .uwc .acts { gap: 6px; }
    .uwc .btn { padding: 0 12px; }
    .uwc .uwc-main { padding-top: 10px; }
    .uwc .grp-head .imgbtn { width: 104px; }
    .uwc .dname { font-size: 21px; }
    .uwc .line { padding: 0; overflow: visible; }
    .uwc .line.is-bad { box-shadow: inset 4px 0 0 var(--uw-danger); }
    .uwc .lh { position: sticky; top: var(--hdr-h); z-index: 12; height: var(--lh-h); padding: 8px 10px 8px 12px; background: var(--uw-surface); border-bottom: 1px solid var(--uw-border-strong); border-radius: var(--uw-r-lg) var(--uw-r-lg) 0 0; gap: 10px; }
    .uwc .is-done .lh { background: var(--uw-surface-2); }
    .uwc .is-bad .lh { box-shadow: inset 4px 0 0 var(--uw-danger); }
    .uwc .st { display: none; }
    .uwc .is-done .st { display: grid; position: absolute; left: 6px; top: 6px; z-index: 1; box-shadow: 0 0 0 2px var(--uw-surface); }
    .uwc .lthumb { width: 52px; height: 52px; }
    .uwc .gn { font-size: 16px; }
    .uwc .lp { display: none; }
    .uwc .ldn { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
    .uwc .lacts .wbtn { display: none; }
    .uwc .lacts .btn { padding: 0 11px; height: 40px; }
    .uwc .wf, .uwc .wl { margin: 10px 12px; }
    .uwc .shortq, .uwc .lref { margin: 10px 12px 2px; }
    .uwc .shortq .seg button { height: 40px; flex: 1 1 0; }
    .uwc .sq-row { flex-direction: column; align-items: stretch; gap: 6px; }
    .uwc .sq-row .seg { display: flex; }
    .uwc .sizes { display: block; margin: 0; }
    .uwc .fb { display: block; }
    .uwc .fh, .uwc .sz { display: grid; grid-template-columns: 64px 1fr 1fr 108px; align-items: center; width: auto; padding: 0 12px; }
    .uwc.mode-ship .fh, .uwc.mode-ship .sz { grid-template-columns: 56px 1fr 1fr 92px 1fr; }
    .uwc .fh { position: sticky; top: calc(var(--hdr-h) + var(--lh-h)); z-index: 8; height: var(--fh-h); background: var(--uw-surface-2); border-bottom: 1px solid var(--uw-border); }
    .uwc .is-done .fh { background: color-mix(in srgb, var(--uw-surface-2) 70%, var(--uw-border-strong)); }
    .uwc .is-bad .fh { box-shadow: inset 4px 0 0 var(--uw-danger); }
    .uwc .fh > span { justify-content: center; height: auto; border: 0; }
    .uwc .fh .c-size { justify-content: flex-start; }
    .uwc .sz { min-height: 58px; border-bottom: 1px solid var(--uw-border); }
    .uwc .sz > span { height: auto; border: 0; }
    .uwc .sz .c-size { justify-content: flex-start; font-size: 20px; }
    .uwc .sz .c-a, .uwc .sz .c-b, .uwc .sz .c-c { font-size: 18px; }
    .uwc .box { width: 88px; margin: 0 auto; }
    .uwc .fb.tot { border: 0; padding: 0; }
    .uwc .fb.tot .fh { display: none; }
    .uwc .tl { display: inline; }
    .uwc .fb.tot .sz { width: auto; min-height: 44px; border-bottom: 0; }
    .uwc .fb.tot .sz .c-in { justify-content: center; font-size: 18px; }
    .uwc .lf { display: flex; justify-content: flex-start; padding: 0 6px 8px; border-top: 1px solid var(--uw-border); }
    .uwc .mk table thead { display: none; }
    .uwc .mk td { padding: 8px 4px; }
    .uwc .mk .gar { display: none; }
}
@media (prefers-reduced-motion: no-preference) { .uwc .btn, .uwc .stat, .uwc input.cnt, .uwc .sq { transition: background-color .12s, border-color .12s, box-shadow .12s; } }
/* uw-mud.css forces every input to 16px on touch / small screens (iOS zooms under 16px). The count box is 20px, above that floor, so it
   keeps the prototype's size: the same guard's selector plus .uwc .cnt, so it wins. */
@media (pointer: coarse), (max-width: 700px) {
    body .uwc input.cnt:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]) { font-size: 20px !important; }
}
