/* FIT 倉庫 — 取料籃／領料單／常用組合（cart.js）。只用 app.css 的 tokens；navy ledger 面板沿用 .mdet .ml 的做法。 */
:root{--cbH:64px;--navy:linear-gradient(160deg,#1D2B44,#2A3B5A);--navyGold:#CFAE74;--navyInk:#fff;--navyMute:#C9D1DE;--navyFaint:#AAB4C6}
:root[data-theme="dark"]{--navy:linear-gradient(160deg,#1F2C45,#2B3D5E)}

/* ---------- 底部取料籃列 ---------- */
.cartbar{position:fixed;z-index:19;left:50%;bottom:16px;transform:translateX(-50%);width:min(720px,calc(100% - 32px));animation:cbIn .24s var(--ease)}
.cartbar[hidden]{display:none}
@keyframes cbIn{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}
.cb-in{display:flex;align-items:center;gap:12px;min-height:var(--cbH);padding:8px 8px 8px 14px;border-radius:16px;background:var(--navy);color:var(--navyInk);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 18px 40px -14px rgba(14,20,30,.55),0 2px 6px rgba(14,20,30,.18);border:1px solid rgba(255,255,255,.06)}
.cb-ic{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:rgba(207,174,116,.16);color:var(--navyGold)}
.cb-ic svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.cb-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;line-height:1.3}
.cb-tx b{font-size:14.5px;font-weight:700;overflow-wrap:anywhere}
#cartTotal{display:flex;flex-wrap:wrap;gap:0 10px;align-items:baseline;font-size:13px;color:var(--navyMute);font-variant-numeric:tabular-nums}
#cartTotal .m{color:var(--navyGold);font-weight:700}
#cartTotal small{font-size:12px;color:var(--navyFaint)}
.cartbar .go{flex:none;display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 14px 0 16px;border-radius:11px;background:var(--navyGold);color:#1D2B44;font-weight:700;font-size:14px;text-decoration:none;transition:filter .15s,transform .12s var(--ease)}
.cartbar .go:hover{filter:brightness(1.06)} .cartbar .go:active{transform:translateY(1px)}
.cartbar .go svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cartbar .go:focus-visible{outline:2px solid #fff;outline-offset:2px}
body.has-cartbar .shell>.made{padding-bottom:calc(28px + var(--cbH) + 24px)}
body.has-cartbar .toast{bottom:calc(26px + var(--cbH) + 12px)}

/* ---------- 取料籃頁 ---------- */
.cartpage .phd .acts .btn svg{width:16px;height:16px}
.cgrid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start}
.cmain{display:flex;flex-direction:column;gap:14px;min-width:0}
.csearch{padding:12px}
.csearch .inp.search{width:100%}
.cres{display:flex;flex-direction:column;gap:2px;margin-top:8px;border-top:1px solid var(--line);padding-top:8px}
.cres[hidden]{display:none}
.cr-msg{padding:12px 6px;color:var(--ink3t);font-size:13.5px}
.cr{display:grid;grid-template-columns:44px minmax(0,1fr) auto 40px;align-items:center;gap:12px;width:100%;min-height:56px;padding:6px 6px 6px 6px;border:1px solid transparent;border-radius:10px;background:none;color:var(--ink);text-align:left;cursor:pointer;font:inherit;transition:background .12s,border-color .12s}
.cr:hover{background:var(--surface2)}
.cr.first{border-color:color-mix(in srgb,var(--gold) 45%,transparent);background:var(--goldSoft)}
.cr[disabled]{opacity:.55;cursor:not-allowed}
.cr-b{display:flex;flex-direction:column;min-width:0;gap:1px}
.cr-b b{font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.cr-b small{color:var(--ink3t);font-size:12px;overflow-wrap:anywhere}
.cr-r{display:flex;flex-direction:column;align-items:flex-end;gap:1px;font-size:12.5px;color:var(--ink2);font-variant-numeric:tabular-nums;text-align:right}
.cr-r .np,.cl-m .np,.sl-row .np{color:var(--warnT);font-style:normal;font-weight:600}
.cr-r em{font-style:normal;font-size:11.5px;font-weight:700;color:var(--ink3t)}
.cr-r em.in{color:var(--okT)} .cr-r em.kb{color:var(--goldT)}
.cr-add{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--ink);color:var(--paper)}
.cr[disabled] .cr-add{background:var(--surface2);color:var(--ink3)}
.cr-add svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}

.cthumb{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:9px;background:var(--photoBg);border:1px solid var(--line);overflow:hidden;flex:none}
.cthumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:2px}
.cthumb.none{background:var(--surface2)}
.cthumb svg{width:20px;height:20px;stroke:var(--ink3);fill:none;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
:root[data-theme="dark"] .cthumb img{filter:brightness(.88) contrast(1.04)}

.clines{overflow:hidden}
.clines.is-empty{padding:18px 8px}
.cline{display:grid;grid-template-columns:56px minmax(0,1fr) auto 168px 44px;grid-template-areas:"ph b q m rm";align-items:center;gap:8px 14px;padding:14px 12px 14px 14px;border-bottom:1px solid var(--line);transition:background .15s}
.cline:last-child{border-bottom:0}
.cline.over{background:color-mix(in srgb,var(--warnSoft) 55%,transparent);box-shadow:inset 3px 0 0 var(--warn)}
.cline.bad .qi{border-color:var(--warn);box-shadow:0 0 0 3px color-mix(in srgb,var(--warn) 16%,transparent)}
.cl-ph{grid-area:ph}
.cl-ph .cthumb{width:56px;height:56px;border-radius:11px}
.cl-b{grid-area:b;display:flex;flex-direction:column;gap:2px;min-width:0}
.cl-b .code{color:var(--ink3t);font-size:12px}
.cl-nm{color:var(--ink);font-weight:700;font-size:14.5px;line-height:1.35;text-decoration:none;overflow-wrap:anywhere}
.cl-nm:hover{text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
.cl-sn{color:var(--ink3t);font-size:12px;overflow-wrap:anywhere}
.cl-oh{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:12.5px;color:var(--ink2);font-variant-numeric:tabular-nums}
.cl-oh:empty{display:none}
.cl-oh .ov{display:inline-flex;align-items:center;gap:4px;color:var(--warnT);font-weight:700}
.cl-oh .ov svg,.cshort b svg,.sl-voided svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cl-q{grid-area:q;display:flex;align-items:center;gap:6px}
.qb{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;border:1px solid var(--line2);background:var(--surface);color:var(--ink);cursor:pointer;box-shadow:var(--sh1);transition:transform .1s var(--ease),border-color .15s}
.qb:hover{border-color:var(--ink3)} .qb:active{transform:scale(.94)}
.qb svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.qb[disabled]{opacity:.5;pointer-events:none}
.qi{display:flex;align-items:center;height:40px;border:1px solid var(--line2);border-radius:10px;background:var(--surface);transition:border-color .15s,box-shadow .15s}
.qi:focus-within{border-color:var(--gold);box-shadow:0 0 0 3px color-mix(in srgb,var(--gold) 18%,transparent)}
.qi input{width:62px;min-width:0;height:38px;border:0;background:none;outline:none;text-align:center;font:700 16px/1 var(--f);color:var(--ink);padding:0 4px}
.qi .u{padding-right:8px;font-size:12px;color:var(--ink3t);white-space:nowrap}
.qi .u:empty{display:none}
.cl-m{grid-area:m;display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right;min-width:0}
.cl-m .up{font-size:12px;color:var(--ink3t);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cl-m .amt{font-size:15px;font-weight:700;color:var(--ink)}
.cline .rm{grid-area:rm;color:var(--ink3t)}
.cline .rm:hover{color:var(--warnT)}

/* 右側：navy ledger 摘要 */
.csum{position:sticky;top:calc(var(--topH) + 16px);display:flex;flex-direction:column;border-radius:14px;overflow:hidden;background:var(--surface);border:1px solid var(--line);box-shadow:var(--sh2)}
.cs-hd{display:flex;flex-direction:column;gap:4px;padding:18px 20px;background:var(--navy);color:var(--navyInk)}
.cs-hd .t{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--navyGold)}
.cs-hd .q{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px}
.cs-hd .q span{font-size:30px;font-weight:700;letter-spacing:-.02em;line-height:1.1;font-variant-numeric:tabular-nums}
.cs-hd .q small{font-size:14px;font-weight:600;color:var(--navyFaint)}
.cs-form{padding:16px 20px 4px}
.cs-form .fld{margin-bottom:12px}
.cs-form .req{font-style:normal;color:var(--warnT);margin-left:3px}
.cs-form .cother{margin-top:8px}
.cs-form .cother[hidden]{display:none}
.cchips{display:flex;flex-wrap:wrap;gap:6px;margin:-4px 0 12px}
.cchips:empty{display:none}
.cchips button{min-height:40px;max-width:100%;padding:6px 12px;border-radius:999px;border:1px solid var(--line2);background:var(--surface);color:var(--ink);font:600 14px/1.25 var(--f);cursor:pointer;text-align:left;overflow-wrap:anywhere;transition:background .12s,transform .1s var(--ease)}
.cchips button small{font:500 12.5px/1.25 var(--f);color:var(--ink2);margin-left:6px}
.cchips button:hover{border-color:var(--ink3)} .cchips button:active{transform:scale(.97);background:var(--surface2)}
.cmore{margin:0 0 12px;border-top:1px solid var(--line);padding-top:4px}
.cmore summary{display:flex;align-items:center;min-height:40px;cursor:pointer;font-size:13px;font-weight:600;color:var(--ink2);list-style:none}
.cmore summary::-webkit-details-marker{display:none}
.cmore summary::before{content:"";width:7px;height:7px;margin:0 10px 0 3px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(-45deg);transition:transform .15s var(--ease)}
.cmore[open] summary::before{transform:rotate(45deg)}
.cshort{margin:0 20px 12px;padding:12px 14px;border-radius:10px;background:var(--warnSoft);border:1px solid color-mix(in srgb,var(--warn) 35%,transparent);color:var(--ink);font-size:13px}
.cshort[hidden]{display:none}
.cshort b{display:flex;align-items:center;gap:6px;color:var(--warnT);margin-bottom:6px}
.cshort ul{margin:0 0 10px;padding-left:18px;line-height:1.5}
.cshort li{overflow-wrap:anywhere}
.cshort p{margin:8px 0 0;color:var(--warnT);font-weight:600}
.cs-pay{padding:14px 20px 18px;border-top:1px solid var(--line);background:var(--surface2)}
.cs-tot{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin-bottom:4px}
.cs-tot .l{font-size:12.5px;font-weight:600;color:var(--ink3t)}
.cs-tot b{margin-left:auto;font-size:20px;font-variant-numeric:tabular-nums;color:var(--ink)}
.cs-tot small{flex-basis:100%;font-size:12px;color:var(--warnT);font-weight:600;text-align:right}
.cs-tot small:empty{display:none}
.cs-pay .ferr:empty{min-height:4px;margin:0}
#cgo{min-height:48px;font-size:15.5px}

/* ---------- 常用組合（料號頁上方，換行不橫捲） ---------- */
.kits{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px}
.kits-t{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--ink2);margin-right:4px}
.kits-t svg{width:16px;height:16px;stroke:var(--gold);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.kit{position:relative;display:flex;align-items:center;gap:6px;max-width:100%;padding:4px 4px 4px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--sh1),var(--hi)}
.kit .kb{display:flex;flex-direction:column;min-width:0;line-height:1.25;padding-right:4px}
.kit .kb b{font-size:13.5px;overflow-wrap:anywhere}
.kit .kb small{font-size:11.5px;color:var(--ink3t);font-variant-numeric:tabular-nums}
.kit .btn svg{width:15px;height:15px}
.kmenu{position:absolute;z-index:30;top:calc(100% + 6px);right:0;min-width:150px;padding:6px;border-radius:12px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--sh2)}
.kmenu button{display:flex;align-items:center;gap:8px;width:100%;min-height:42px;padding:0 10px;border:0;border-radius:8px;background:none;color:var(--ink);font:600 14px var(--f);cursor:pointer;text-align:left}
.kmenu button:hover{background:var(--surface2)}
.kmenu button.dz{color:var(--warnT)}
.kmenu svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.kitform .kf-tx{margin:0 0 12px;color:var(--ink2);font-size:13px;line-height:1.5}
.kf-lines{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.kf-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.kf-b{display:flex;flex-direction:column;min-width:0}
.kf-b .code{color:var(--ink3t);font-size:12px}
.kf-b b{font-size:13.5px;overflow-wrap:anywhere}
.kf-q{display:flex;align-items:center;gap:4px}
.kf-q .inp{min-height:40px}
.kf-q .inp input{width:64px;height:38px;text-align:center;padding:0 4px}
.kf-row.bad .inp{border-color:var(--warn)}

/* ---------- 領料單 ---------- */
.slip .phd h1 .code{font-size:inherit;color:var(--goldT);letter-spacing:0;overflow-wrap:anywhere}
.slip .phd .acts .btn svg{width:16px;height:16px}
.slip .btn.dz{color:var(--warnT)}
.sl-back{display:inline-flex;align-items:center;gap:4px;min-height:40px;color:var(--ink2);text-decoration:none;font-size:13px;font-weight:600}
.sl-back svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sl-voided{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding:12px 14px;border-radius:10px;background:var(--warnSoft);color:var(--warnT);font-weight:600;overflow-wrap:anywhere}
.sl-head{display:grid;grid-template-columns:280px minmax(0,1fr);margin:0 0 14px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface);box-shadow:var(--sh2)}
.sl-l{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:20px;background:var(--navy);color:var(--navyInk);min-width:0}
.sl-l .t{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--navyGold)}
.sl-l .no{font-size:17px;font-weight:700;letter-spacing:.02em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.sl-l .q{margin-top:8px;font-size:34px;font-weight:700;letter-spacing:-.02em;line-height:1.1;font-variant-numeric:tabular-nums}
.sl-l .q small{font-size:14px;font-weight:600;color:var(--navyFaint);margin-left:6px;letter-spacing:0}
.sl-l .m{margin-top:6px;font-size:20px;font-weight:700;color:var(--navyGold);font-variant-numeric:tabular-nums}
.sl-l .s{font-size:12.5px;color:var(--navyMute);overflow-wrap:anywhere;line-height:1.45}
.sl-head.vd .sl-l{opacity:.7}
.sl-r{padding:6px 22px 8px;min-width:0}
.sl-r dl{margin:0}
.sl-r dl div{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.sl-r dl div:last-child{border-bottom:0}
.sl-r dt{color:var(--ink3t);font-size:12.5px;font-weight:600}
.sl-r dd{margin:0;font-weight:600;font-size:13px;overflow-wrap:anywhere}
.sl-lines{padding:16px 18px 6px}
.sl-lines .h2 small{flex-basis:100%}
.sl-row{display:grid;grid-template-columns:110px minmax(0,1fr) 120px 150px 160px;gap:12px;align-items:baseline;padding:11px 0;border-bottom:1px solid var(--line);font-size:13.5px}
.sl-row.hd{padding:6px 0;font-size:12px;font-weight:600;color:var(--ink3t)}
.sl-row .r{text-align:right}
.sl-row .code{color:var(--ink2);font-size:12.5px;overflow-wrap:anywhere}
.sl-row .nm{display:flex;flex-direction:column;min-width:0}
.sl-row .nm a{color:var(--ink);font-weight:700;text-decoration:none;overflow-wrap:anywhere}
.sl-row .nm a:hover{text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
.sl-row .nm small{color:var(--ink3t);font-size:12px;overflow-wrap:anywhere}
.sl-row .nm em{font-style:normal;font-size:12px;font-weight:700;color:var(--warnT)}
.sl-row .amt{font-weight:700}
.sl-row.vd .code,.sl-row.vd .nm a,.sl-row.vd .num{text-decoration:line-through;color:var(--ink3t)}
.sl-total{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 18px;padding:14px 0 12px;font-size:14px}
.sl-total span{font-weight:700;color:var(--ink2)}
.sl-total b{font-variant-numeric:tabular-nums}
.sl-total b.m{margin-left:auto;font-size:18px}
.sl-total small{flex-basis:100%;text-align:right;color:var(--warnT);font-weight:600;font-size:12.5px}

/* ---------- 窄螢幕 ---------- */
@media (max-width:1060px){
  .cgrid{grid-template-columns:minmax(0,1fr) 320px}
  .cline{grid-template-columns:56px minmax(0,1fr) auto 44px;grid-template-areas:"ph b b rm" "ph q m m"}
  .sl-row{grid-template-columns:96px minmax(0,1fr) 100px 130px 140px}
}
@media (max-width:900px){
  .cgrid{grid-template-columns:minmax(0,1fr)}
  .csum{position:static}
  .sl-head{grid-template-columns:minmax(0,1fr)}
  .sl-row.hd{display:none}
  .sl-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"c c" "n n" "q q" "p p" "a a";gap:2px 12px}
  .sl-row .code{grid-area:c}.sl-row .nm{grid-area:n;margin-bottom:4px}
  .sl-row .r{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;text-align:right}
  .sl-row .r::before{content:attr(data-l);color:var(--ink3t);font-size:12.5px;font-weight:600;text-decoration:none}
  .sl-r dl div{grid-template-columns:42% minmax(0,1fr)}
}
@media (max-width:760px){
  .cartbar{left:8px;right:8px;width:auto;transform:none;bottom:calc(var(--bnavH) + 8px + env(safe-area-inset-bottom,0px));animation:cbInM .24s var(--ease)}
  @keyframes cbInM{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
  .cb-in{gap:10px;padding:8px 8px 8px 10px;border-radius:14px}
  body.has-cartbar .shell>.made{padding-bottom:calc(var(--bnavH) + 24px + var(--cbH) + 16px + env(safe-area-inset-bottom,0px))}
  body.has-cartbar .toast{bottom:calc(var(--bnavH) + 16px + var(--cbH) + 8px + env(safe-area-inset-bottom,0px))}
  /* 取料籃頁：結帳列固定在底部導覽上方 */
  .cartpage:not(.empty-cart){padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))}
  .cartpage:not(.empty-cart) .cs-pay{position:fixed;z-index:19;left:8px;right:8px;bottom:calc(var(--bnavH) + 8px + env(safe-area-inset-bottom,0px));padding:10px 12px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.06);background:var(--navy);color:var(--navyInk);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 18px 40px -14px rgba(14,20,30,.55)}
  .cartpage:not(.empty-cart) .cs-tot .l{color:var(--navyMute)}
  .cartpage:not(.empty-cart) .cs-tot b{color:var(--navyGold);font-size:18px}
  .cartpage:not(.empty-cart) .cs-tot small{color:#F2B79B}
  .cartpage:not(.empty-cart) .cs-pay .ferr{color:#F2B79B;min-height:0;margin:2px 0 6px}
  .cartpage:not(.empty-cart) .cs-pay .ferr:empty{margin:0 0 6px}
  .cartpage:not(.empty-cart) #cgo{background:var(--navyGold);border-color:var(--navyGold);color:#1D2B44}
  .cartpage:not(.empty-cart) #cgo[disabled]{background:rgba(255,255,255,.12);border-color:transparent;color:var(--navyMute);opacity:1}
  body.cart-route .toast{bottom:calc(var(--bnavH) + 16px + 120px + env(safe-area-inset-bottom,0px))}
  .cartpage.empty-cart .cs-pay{display:none}
  .csearch{padding:10px}
  .cr{grid-template-columns:44px minmax(0,1fr) 40px;grid-template-areas:"ph b add" "ph r add";gap:2px 10px}
  .cr .cthumb{grid-area:ph}.cr-b{grid-area:b}.cr-add{grid-area:add}
  .cr-r{grid-area:r;flex-direction:row;flex-wrap:wrap;align-items:baseline;justify-content:flex-start;gap:2px 10px;text-align:left}
  .cline{grid-template-columns:48px minmax(0,1fr) 44px;grid-template-areas:"ph b rm" "q q m";gap:10px 10px;padding:12px 10px 12px 12px}
  .cl-ph .cthumb{width:48px;height:48px}
  .cl-m{align-self:center}
  .sl-l .q{font-size:30px}
  .sl-lines{padding:14px 14px 4px}
  .sl-r{padding:4px 16px 6px}
  .sl-l{padding:16px}
}
@media (max-width:400px){
  .cb-ic{display:none}
  .qi input{width:48px}
  .qb{width:40px}
  .cl-q{gap:4px}
}
@media (prefers-reduced-motion:reduce){.cartbar{animation:none}}

/* lead fixes 2026-11-11: 44 px qty controls; phone line puts price on its own row; same bar height in every language */
.qi{height:44px}
.qi input{height:42px}
.qb{width:44px;height:44px}
@media (max-width:760px){
  :root{--cbH:72px}
  .cline{grid-template-areas:"ph b rm" "q q q" "m m m"}
  .cl-m{flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 12px;text-align:left;align-self:auto}
  .cl-m .up{overflow-wrap:normal}
}
@media (max-width:400px){.qb{width:42px;height:42px}}
/* a long kit name or button label wraps inside the kit card instead of pushing the page wider */
.kit{flex-wrap:wrap;min-width:0}
.kit .kb{flex:1 1 120px}
.pextra .kitsbox .kits{margin-bottom:0}
