/* The storage page.
 *
 * Sits on top of msz-dash.css, which dresses the dark header, the row of tabs,
 * the ring and the gate exactly as the boards have them. Everything here is new
 * and prefixed st-, because msz-dash.css already owns short names like .stat,
 * .chip and .tabs and this page must not inherit their rules by accident.
 *
 * Built for a phone held in one hand in a storeroom: 16px fields (iOS zooms on
 * anything smaller), 44px targets, one sticky bar, sheets that rise from the
 * bottom. The desktop layout is the same page with more room.
 *
 * The one decorative idea is the subject's own: team tiles are the faces of
 * cardboard boxes, and every code is drawn as the sticker it is written on. */

.msz-store {
  --kraft:#d9c4a0; --kraft-lite:#ebdfc8; --kraft-deep:#a07f53; --kraft-ink:#3d2f1e;
  --here:#336137; --here-wash:#ecf2ec; --miss:#751a1a; --miss-wash:#fbeded;
  --out:#7c5d14; --out-wash:#fbf3df; --idle:#8b8f86; --idle-wash:#f3f4f1;
}

/* Themes style bare controls -- uppercase buttons, coloured fills, input
   borders -- and they print after this sheet. Two classes put these back on
   our side of that argument. */
.msz-dash.msz-store button,.msz-dash.msz-store input,.msz-dash.msz-store select,
.msz-dash.msz-store textarea { font:inherit; color:inherit; margin:0;
  letter-spacing:normal; text-transform:none; text-shadow:none; box-shadow:none;
  min-height:0; line-height:1.3; }
.msz-dash.msz-store button { cursor:pointer; background:none; border:0;
  padding:0; border-radius:0; width:auto; -webkit-tap-highlight-color:transparent; }
.msz-dash.msz-store button:disabled { cursor:default; }
.msz-dash.msz-store [hidden] { display:none !important; }
/* A size for every icon unless its component says otherwise: an inline SVG
   with none fills whatever box it is in. */
.msz-store .st-app svg,.msz-store .st-sheet svg,.msz-store .st-tray svg {
  width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8;
  stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; }
.msz-store :focus-visible { outline:3px solid rgba(66,125,70,.45);
  outline-offset:2px; }

/* The ring's caption is longer here than on the boards. */
.msz-store .rk { max-width:92px; text-align:center; line-height:1.3; }

/* ------------------------------------------------------------ the sticker -- */

/* A code, drawn as the label it is written on: white, ink edge, heavy numerals
   that do not shift width as they change. */
.msz-store .st-label { display:inline-flex; align-items:center;
  justify-content:center; background:#fff; color:var(--ink);
  border:2px solid var(--ink); border-radius:6px; padding:5px 8px 4px;
  font-size:14px; font-weight:800; letter-spacing:.05em; line-height:1;
  font-variant-numeric:tabular-nums; white-space:nowrap;
  box-shadow:0 1px 0 rgba(18,19,9,.18); }
.msz-store .st-label.big { font-size:44px; border-width:3px; border-radius:10px;
  padding:14px 20px 12px; letter-spacing:.06em; position:relative;
  box-shadow:0 2px 0 rgba(18,19,9,.2), 0 14px 30px rgba(18,19,9,.12); }
/* The peeled corner, so the big one reads as a sticker rather than a box. */
.msz-store .st-label.big::after { content:''; position:absolute; right:-3px;
  bottom:-3px; width:18px; height:18px; border-radius:0 0 8px 0;
  background:linear-gradient(135deg, #fff 0 50%, var(--canvas) 50%);
  border-left:2px solid var(--ink); border-top:2px solid var(--ink);
  border-top-left-radius:4px; }

/* -------------------------------------------------------------- the bar -- */

/* Pulled out to the page edges so the frosted strip spans the phone, then the
   padding puts its contents back on the column. */
.msz-store .st-bar { position:sticky; top:env(safe-area-inset-top, 0px);
  z-index:30; margin:-8px -26px 14px; padding:10px 26px 12px;
  background:rgba(241,242,239,.9); -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px); border-bottom:1px solid transparent;
  transition:border-color .2s, box-shadow .2s; }
.msz-store .st-bar.stuck { border-bottom-color:var(--line);
  box-shadow:0 8px 24px rgba(18,19,9,.06); }
@media (min-width:783px) { body.admin-bar .msz-store .st-bar { top:32px; } }
@media (min-width:601px) and (max-width:782px) {
  body.admin-bar .msz-store .st-bar { top:46px; } }

.msz-store .st-find { position:relative; display:flex; align-items:center; }
.msz-store .st-findico { position:absolute; left:14px; width:20px; height:20px;
  color:var(--muted); pointer-events:none; fill:none; stroke:currentColor;
  stroke-width:1.8; stroke-linecap:round; }
.msz-dash.msz-store .st-q { width:100%; height:50px; font-size:16px;
  padding:0 46px 0 44px; border:1.5px solid var(--line); border-radius:13px;
  background:#fff; color:var(--ink); -webkit-appearance:none; appearance:none;
  transition:border-color .15s, box-shadow .15s; }
.msz-dash.msz-store .st-q::placeholder { color:#8b8f86; }
.msz-dash.msz-store .st-q:focus { outline:none; border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(66,125,70,.14); }
.msz-store .st-q::-webkit-search-cancel-button { -webkit-appearance:none; }
.msz-dash.msz-store .st-qclear { position:absolute; right:6px; width:38px;
  height:38px; border-radius:10px; font-size:24px; line-height:1;
  color:var(--muted); }

.msz-store .st-acts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px; margin-top:9px; }
.msz-dash.msz-store .st-act { display:inline-flex; align-items:center;
  justify-content:center; gap:7px; height:46px; padding:0 10px;
  border:1.5px solid var(--line); border-radius:12px; background:#fff;
  color:var(--ink); font-size:14.5px; font-weight:700; white-space:nowrap;
  transition:background .15s, border-color .15s, transform .1s; }
.msz-store .st-act svg { width:19px; height:19px; stroke-width:2; }
.msz-dash.msz-store .st-act:active { transform:scale(.97); }
.msz-dash.msz-store .st-act-add { background:var(--accent-deep);
  border-color:var(--accent-deep); color:#fff; }
.msz-dash.msz-store .st-act.on { background:var(--ink); border-color:var(--ink);
  color:#fff; }
.msz-dash.msz-store .st-act.finish { background:#fff; border-color:var(--accent);
  color:var(--accent-deep); }

/* The count's progress: one line, so the bar stays short enough to leave the
   list most of the screen. */
.msz-store .st-countbar { margin-top:10px; }
.msz-store .st-progress { height:7px; border-radius:99px; overflow:hidden;
  background:rgba(18,19,9,.08); display:flex; }
.msz-store .st-progress i { display:block; height:100%;
  transition:width .5s cubic-bezier(.22,.68,.32,1); }
.msz-store .st-progress .p-here { background:var(--accent); }
.msz-store .st-progress .p-miss { background:var(--miss); }
.msz-store .st-progress .p-out { background:#c9a64a; }
.msz-store .st-countline { display:flex; align-items:baseline; gap:6px 14px;
  flex-wrap:wrap; margin-top:7px; font-size:13px; color:var(--muted); }
.msz-store .st-countline b { color:var(--ink); font-variant-numeric:tabular-nums; }
.msz-store .st-countline .lead { color:var(--accent-deep); font-weight:700; }
.msz-store .st-countline .miss b { color:var(--miss); }
.msz-store .st-pending { color:var(--out); font-weight:700; }

/* ---------------------------------------------------------- the filters -- */

.msz-store .st-filters { display:flex; gap:7px; overflow-x:auto;
  scrollbar-width:none; margin:0 -26px 14px; padding:2px 26px 4px;
  -webkit-overflow-scrolling:touch; }
.msz-store .st-filters::-webkit-scrollbar { display:none; }
.msz-dash.msz-store .st-filter { flex:0 0 auto; display:inline-flex;
  align-items:center; gap:7px; height:38px; padding:0 14px; border-radius:99px;
  border:1.5px solid var(--line); background:#fff; color:var(--ink);
  font-size:13.5px; font-weight:600; }
.msz-store .st-filter .dot { width:8px; height:8px; border-radius:50%;
  background:var(--idle); }
.msz-store .st-filter .n { font-size:12px; font-weight:700; color:var(--muted);
  font-variant-numeric:tabular-nums; }
.msz-store .st-filter[data-state="here"] .dot { background:var(--accent); }
.msz-store .st-filter[data-state="missing"] .dot { background:var(--miss); }
.msz-store .st-filter[data-state="out"] .dot { background:#c9a64a; }
.msz-dash.msz-store .st-filter.on { background:var(--ink); border-color:var(--ink);
  color:#fff; }
.msz-store .st-filter.on .n { color:rgba(255,255,255,.7); }

/* ------------------------------------------------------------- the teams -- */

/* A box face for each team: kraft, a strip of packing tape across the top, and
   the team's code on a sticker. Nine teams make a three by three stack. */
.msz-store .st-teams { display:grid; gap:10px;
  grid-template-columns:repeat(3,minmax(0,1fr)); margin:0 0 22px; }
.msz-dash.msz-store .st-tile { position:relative; overflow:hidden;
  display:flex; flex-direction:column; align-items:flex-start; gap:6px;
  min-height:112px; padding:16px 12px 11px; text-align:left;
  border-radius:10px; background:var(--kraft); color:var(--kraft-ink);
  border:1px solid rgba(61,47,30,.16);
  box-shadow:inset 0 -3px 0 rgba(61,47,30,.1), 0 1px 2px rgba(61,47,30,.12);
  transition:transform .14s cubic-bezier(.22,.68,.32,1), box-shadow .14s; }
.msz-store .st-tile::before { content:''; position:absolute; top:0; left:50%;
  width:34%; height:10px; transform:translateX(-50%);
  background:rgba(255,255,255,.34); border-radius:0 0 2px 2px; }
.msz-store .st-tile .st-label { font-size:15px; padding:5px 8px 4px; }
.msz-store .st-tilename { font-size:13px; font-weight:700; line-height:1.2;
  overflow-wrap:anywhere; }
.msz-store .st-tilemeta { margin-top:auto; display:flex; flex-wrap:wrap;
  gap:4px 8px; font-size:11.5px; font-weight:600; color:rgba(61,47,30,.78); }
.msz-store .st-tilemeta .m-out { color:#6b4f0c; }
.msz-store .st-tilemeta .m-miss { color:var(--miss); }
.msz-store .st-tilemeta i { font-style:normal; display:inline-flex;
  align-items:center; gap:4px; }
.msz-store .st-tilemeta i::before { content:''; width:7px; height:7px;
  border-radius:50%; background:currentColor; }
.msz-dash.msz-store .st-tile.empty { background:var(--kraft-lite);
  color:rgba(61,47,30,.62); box-shadow:none;
  border:1.5px dashed rgba(61,47,30,.26); }
.msz-store .st-tile.empty .st-label { opacity:.55; box-shadow:none; }
.msz-dash.msz-store .st-tile.on { box-shadow:0 0 0 3px var(--ink),
  0 10px 22px rgba(61,47,30,.2); transform:translateY(-2px); }

/* ---------------------------------------------------------- the results -- */

.msz-store .st-results { display:flex; align-items:center; gap:10px;
  flex-wrap:wrap; font-size:14px; color:var(--muted); margin:0 0 14px; }
.msz-store .st-results:empty { display:none; }
.msz-store .st-results b { color:var(--ink); }
.msz-dash.msz-store .st-results button { color:var(--accent-deep); font-weight:700;
  text-decoration:underline; text-underline-offset:3px; }

/* ------------------------------------------------------------ the list -- */

.msz-store .st-team { margin:0 0 28px; scroll-margin-top:190px; }
.msz-store .st-teamhead { display:flex; align-items:center; gap:10px;
  margin:0 0 12px; padding-bottom:10px; border-bottom:2px solid var(--ink); }
.msz-store .st-teamhead h2 { margin:0; font-size:21px; font-weight:800;
  letter-spacing:-.02em; line-height:1.15; color:var(--ink); }
.msz-store .st-teamhead .st-label { font-size:13px; }
.msz-store .st-teamn { font-size:13px; color:var(--muted); font-weight:600;
  white-space:nowrap; }
.msz-dash.msz-store .st-teamadd { margin-left:auto; display:inline-flex;
  align-items:center; gap:5px; height:36px; padding:0 12px; border-radius:10px;
  border:1.5px solid var(--line); background:#fff; font-size:13px;
  font-weight:700; color:var(--accent-deep); white-space:nowrap; }
.msz-store .st-teamadd svg { width:16px; height:16px; stroke-width:2.2; }

.msz-store .st-cat { margin:0 0 16px; }
.msz-store .st-cathead { display:flex; align-items:center; gap:9px;
  margin:0 0 9px; font-size:14px; font-weight:700; color:var(--ink); }
.msz-store .st-letter { display:inline-flex; align-items:center;
  justify-content:center; min-width:26px; height:26px; padding:0 5px;
  border-radius:7px; background:var(--ink); color:#fff; font-size:13px;
  font-weight:800; letter-spacing:.04em; }
.msz-store .st-catn { font-size:12px; font-weight:700; color:var(--muted);
  background:#fff; border:1px solid var(--line); border-radius:99px;
  padding:1px 8px; font-variant-numeric:tabular-nums; }
.msz-dash.msz-store .st-catedit { width:30px; height:30px; border-radius:8px;
  display:inline-flex; align-items:center; justify-content:center;
  color:var(--muted); }
.msz-store .st-catedit svg { width:15px; height:15px; }

.msz-store .st-cards { display:grid; gap:9px; grid-template-columns:minmax(0,1fr); }

/* A card: the code on its sticker, what the thing is, where it lives, and one
   word for where it is now. The left edge carries that word's colour. */
.msz-store .st-card { position:relative; background:#fff;
  border:1px solid var(--line); border-left:5px solid var(--idle);
  border-radius:12px; box-shadow:var(--lift);
  transition:box-shadow .15s, transform .15s, opacity .3s; }
.msz-store .st-card.s-here { border-left-color:var(--accent); }
.msz-store .st-card.s-missing { border-left-color:var(--miss); background:#fffafa; }
.msz-store .st-card.s-out { border-left-color:#c9a64a; }
/* The sticker and the state share the top line, so the thing's own name gets
   the card's full width underneath even on a 320px phone. */
.msz-dash.msz-store .st-open { display:block; width:100%; text-align:left;
  padding:11px 12px 12px; border-radius:11px; }
.msz-store .st-top { display:flex; align-items:center; gap:10px; margin:0 0 8px; }
.msz-store .st-name { display:block; font-size:15.5px; font-weight:700;
  line-height:1.3; color:var(--ink); overflow-wrap:anywhere; }
.msz-store .st-sub { display:-webkit-box; margin-top:3px; font-size:13px;
  line-height:1.4; color:var(--muted); -webkit-line-clamp:2;
  -webkit-box-orient:vertical; overflow:hidden; }
.msz-store .st-sub .kind { font-weight:700; color:#55594f; margin-right:6px; }
.msz-store .st-sub .qty { font-weight:600; color:var(--ink); margin-right:6px;
  padding:0 6px; border-radius:5px; background:var(--canvas); }
.msz-store .st-place { display:flex; align-items:center; gap:5px; margin-top:5px;
  font-size:12.5px; font-weight:600; color:var(--kraft-deep); }
.msz-store .st-place svg { width:14px; height:14px; }
.msz-store .st-state { margin-left:auto; min-width:0;
  display:inline-flex; align-items:center; gap:5px; font-size:12px;
  font-weight:700; padding:4px 9px 4px 7px; border-radius:99px;
  white-space:nowrap; background:var(--idle-wash); color:#5f635b; }
.msz-store .st-state svg { width:14px; height:14px; stroke-width:2.4; }
.msz-store .s-here .st-state { background:var(--here-wash); color:var(--here); }
.msz-store .s-missing .st-state { background:var(--miss-wash); color:var(--miss); }
.msz-store .s-out .st-state { background:var(--out-wash); color:var(--out);
  max-width:150px; overflow:hidden; text-overflow:ellipsis; }
.msz-store .st-state.late { background:var(--miss); color:#fff; }

/* The two answers a count is made of, big enough for a thumb in a cold room. */
.msz-store .st-marks { display:grid; grid-template-columns:1fr 1fr; gap:8px;
  padding:0 12px 12px; }
.msz-dash.msz-store .st-mark { display:inline-flex; align-items:center;
  justify-content:center; gap:7px; height:46px; border-radius:11px;
  border:1.5px solid var(--line); background:var(--canvas); font-size:15px;
  font-weight:700; color:var(--ink); transition:background .15s, color .15s,
  border-color .15s, transform .1s; }
.msz-store .st-mark svg { width:19px; height:19px; stroke-width:2.4; }
.msz-dash.msz-store .st-mark:active { transform:scale(.97); }
.msz-dash.msz-store .st-mark.here.on { background:var(--accent-deep);
  border-color:var(--accent-deep); color:#fff; }
.msz-dash.msz-store .st-mark.miss.on { background:var(--miss);
  border-color:var(--miss); color:#fff; }
.msz-store .st-outnote { margin:0 12px 12px; padding:9px 11px; border-radius:9px;
  background:var(--out-wash); color:var(--out); font-size:13px; font-weight:600; }

/* Picked out of the list to be checked out or returned. */
.msz-store .st-pick { display:none; }
.msz-store .selecting .st-pick { display:inline-flex; flex:0 0 auto;
  align-items:center; justify-content:center; width:26px; height:26px;
  border-radius:8px; border:2px solid #c3c6be; background:#fff;
  color:transparent; transition:background .12s, border-color .12s; }
.msz-store .st-pick svg { width:16px; height:16px; stroke-width:3; }
.msz-store .st-card.picked { box-shadow:0 0 0 2.5px var(--ink), var(--lift); }
.msz-store .st-card.picked .st-pick { background:var(--ink); border-color:var(--ink);
  color:#fff; }
.msz-store .selecting .st-card.unpickable { opacity:.45; }

/* A change landing: the card that just moved gets a brief wash of its colour. */
@keyframes st-landed { from { background:var(--here-wash); } }
@keyframes st-landed-miss { from { background:var(--miss-wash); } }
.msz-store .st-card.landed { animation:st-landed .9s ease-out; }
.msz-store .st-card.landed.s-missing { animation-name:st-landed-miss; }
@keyframes st-stamp { 0% { transform:scale(.6); opacity:0; }
  60% { transform:scale(1.12); opacity:1; } 100% { transform:scale(1); } }
.msz-store .st-card.landed .st-state { animation:st-stamp .38s cubic-bezier(.22,.68,.32,1.3); }
.msz-store .st-card.leaving { opacity:0; transform:translateX(24px); }

/* ------------------------------------------------------- checked-out groups -- */

.msz-store .st-group { background:#fff; border:1px solid var(--line);
  border-top:4px solid #c9a64a; border-radius:14px; box-shadow:var(--lift);
  padding:14px; margin:0 0 16px; }
.msz-store .st-group.late { border-top-color:var(--miss); }
.msz-store .st-grouphead { display:flex; align-items:flex-start; gap:10px;
  flex-wrap:wrap; margin:0 0 12px; }
.msz-store .st-grouphead h2 { margin:0; font-size:18px; font-weight:800;
  letter-spacing:-.015em; color:var(--ink); }
.msz-store .st-groupmeta { flex:1 1 100%; margin:0; font-size:13px;
  color:var(--muted); line-height:1.5; }
.msz-store .st-groupmeta b { color:var(--ink); font-weight:600; }
.msz-store .st-groupmeta .late { color:var(--miss); font-weight:700; }
.msz-store .st-tel { display:inline-flex; align-items:center; gap:5px;
  font-weight:700; color:var(--accent-deep); text-decoration:none; }
.msz-store .st-tel svg { width:15px; height:15px; }
.msz-store .st-group .st-cards { margin-bottom:12px; }
.msz-store .st-group .st-card { box-shadow:none; }
.msz-dash.msz-store .st-return { width:100%; height:46px; border-radius:11px;
  background:var(--accent-deep); color:#fff; font-size:15px; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.msz-store .st-return svg { width:19px; height:19px; stroke-width:2.2; }
.msz-dash.msz-store .st-some { display:block; margin:12px auto 2px; }

/* ------------------------------------------------------------ the empties -- */

.msz-store .st-empty { text-align:center; background:#fff;
  border:1px solid var(--line); border-radius:16px; box-shadow:var(--lift);
  padding:34px 22px 30px; margin:0 0 22px; }
.msz-store .st-empty svg.art { width:132px; height:96px; margin:0 auto 10px;
  display:block; stroke:var(--kraft-ink); stroke-width:1.6; }
.msz-store .st-empty h2 { margin:0 0 8px; font-size:21px; font-weight:800;
  letter-spacing:-.02em; color:var(--ink); }
.msz-store .st-empty p { margin:0 auto 18px; max-width:44ch; font-size:14.5px;
  color:var(--muted); line-height:1.55; }
.msz-dash.msz-store .st-cta { display:inline-flex; align-items:center; gap:8px;
  height:48px; padding:0 22px; border-radius:12px; background:var(--accent-deep);
  color:#fff; font-size:15px; font-weight:700; }
.msz-store .st-cta svg { width:19px; height:19px; stroke-width:2.2; }
.msz-store .st-nomatch { text-align:center; padding:26px 18px; color:var(--muted);
  font-size:14.5px; background:#fff; border:1px dashed #cfd2ca;
  border-radius:14px; margin:0 0 22px; }
.msz-store .st-nomatch b { color:var(--ink); }
.msz-dash.msz-store .st-nomatch button { display:inline-flex; margin-top:12px;
  height:42px; align-items:center; padding:0 16px; border-radius:11px;
  background:var(--ink); color:#fff; font-weight:700; font-size:14px; }

/* How to read a code, and every team's letters, kept at the foot of the list. */
.msz-store .st-key { display:flex; gap:18px; align-items:flex-start;
  flex-wrap:wrap; background:var(--kraft-lite); border-radius:14px;
  padding:16px 18px; margin:6px 0 24px; color:var(--kraft-ink); }
.msz-store .st-key .st-label { font-size:18px; }
.msz-store .st-keyread { flex:1 1 240px; margin:0; font-size:13.5px; line-height:1.55; }
.msz-store .st-keyread b { font-weight:800; }
.msz-store .st-keyteams { flex:1 1 100%; display:flex; flex-wrap:wrap; gap:6px 14px;
  margin:0; padding:10px 0 0; border-top:1px solid rgba(61,47,30,.15);
  font-size:12.5px; list-style:none; }
.msz-store .st-keyteams li { margin:0; }
.msz-store .st-keyteams b { font-weight:800; letter-spacing:.04em; }

/* Before the script has drawn anything: shapes where the cards will be. */
.msz-store .st-ghost { height:84px; border-radius:12px; margin:0 0 9px;
  background:#fff; border:1px solid var(--line); padding:14px;
  display:grid; grid-template-columns:62px 1fr; gap:8px 12px; }
.msz-store .st-ghost span { border-radius:6px; background:var(--canvas);
  animation:st-shimmer 1.2s ease-in-out infinite alternate; }
.msz-store .st-ghost span:first-child { grid-row:span 2; height:30px; }
.msz-store .st-ghost span:nth-child(3) { width:55%; }
@keyframes st-shimmer { to { opacity:.45; } }

/* ------------------------------------------------------------- the sheet -- */

/* The page behind an open sheet stays put, or a phone scrolls it instead of
   the form. */
html.st-locked, html.st-locked body { overflow:hidden; }

/* Every form on the page is one of these. On a phone it rises from the bottom
   and can fill the screen; wider, it sits in the middle. */
.msz-store .st-sheet { position:fixed; inset:0; z-index:100000;
  display:flex; align-items:flex-end; justify-content:center; }
.msz-store .st-scrim { position:absolute; inset:0; background:rgba(18,19,9,.46);
  animation:st-fade .2s ease both; }
@keyframes st-fade { from { opacity:0; } }
.msz-store .st-panel { position:relative; width:100%; max-width:600px;
  max-height:calc(100% - env(safe-area-inset-top, 0px) - 16px);
  display:flex; flex-direction:column; background:var(--canvas);
  border-radius:20px 20px 0 0; box-shadow:0 -10px 40px rgba(18,19,9,.22);
  animation:st-rise .28s cubic-bezier(.22,.68,.32,1) both; overflow:hidden; }
@keyframes st-rise { from { transform:translateY(40px); opacity:0; } }
.msz-store .st-grip { width:40px; height:5px; border-radius:99px;
  background:#c9ccc4; margin:8px auto 0; flex:0 0 auto; }
.msz-store .st-sheethead { display:flex; align-items:center; gap:10px;
  padding:10px 16px 12px 20px; flex:0 0 auto; }
.msz-store .st-sheethead h2 { margin:0; font-size:19px; font-weight:800;
  letter-spacing:-.02em; color:var(--ink); line-height:1.2; flex:1; }
.msz-dash.msz-store .st-x { width:40px; height:40px; border-radius:11px;
  font-size:26px; line-height:1; color:var(--muted); flex:0 0 auto; }
.msz-store .st-sheetbody { overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding:4px 20px 18px; flex:1 1 auto; overscroll-behavior:contain; }
.msz-store .st-sheetfoot { display:flex; gap:10px; flex:0 0 auto;
  padding:12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background:#fff; border-top:1px solid var(--line); }
.msz-store .st-sheetfoot .st-msg { flex:1 1 100%; order:-1; margin:0;
  font-size:13.5px; color:var(--muted); }
.msz-store .st-sheetfoot .st-msg:empty { display:none; }
.msz-store .st-sheetfoot .st-msg.bad { color:var(--miss); font-weight:700; }
.msz-store .st-sheetfoot { flex-wrap:wrap; }
.msz-dash.msz-store .st-btn { flex:1 1 0; height:50px; border-radius:13px;
  font-size:15.5px; font-weight:700; padding:0 16px; display:inline-flex;
  align-items:center; justify-content:center; gap:8px;
  border:1.5px solid var(--line); background:#fff; color:var(--ink); }
.msz-dash.msz-store .st-btn.go { flex-grow:1.6; background:var(--accent-deep);
  border-color:var(--accent-deep); color:#fff; }
.msz-dash.msz-store .st-btn.danger { background:var(--miss); border-color:var(--miss);
  color:#fff; }
.msz-dash.msz-store .st-btn[disabled] { opacity:.55; cursor:progress; }
.msz-store .st-btn svg { width:19px; height:19px; stroke-width:2.2; }

/* Fields. */
.msz-store .st-field { margin:0 0 16px; }
.msz-store .st-field > label,.msz-store .st-fieldname { display:block;
  font-size:13px; font-weight:700; color:var(--ink); margin:0 0 7px; }
.msz-store .st-field .opt { font-weight:500; color:var(--muted); }
.msz-dash.msz-store .st-field input,.msz-dash.msz-store .st-field textarea,
.msz-dash.msz-store .st-field select { display:block; width:100%; font-size:16px;
  padding:12px 13px; border:1.5px solid var(--line); border-radius:12px;
  background:#fff; color:var(--ink); -webkit-appearance:none; appearance:none; }
.msz-dash.msz-store .st-field textarea { min-height:78px; resize:vertical; line-height:1.45; }
.msz-dash.msz-store .st-field input:focus,.msz-dash.msz-store .st-field textarea:focus {
  outline:none; border-color:var(--accent); box-shadow:0 0 0 4px rgba(66,125,70,.14); }
.msz-dash.msz-store .st-field input.bad { border-color:var(--miss);
  box-shadow:0 0 0 4px rgba(117,26,26,.1); }
.msz-store .st-hint { margin:6px 0 0; font-size:12.5px; color:var(--muted); }
.msz-store .st-row2 { display:grid; grid-template-columns:minmax(0,1fr) 96px; gap:10px; }
.msz-dash.msz-store .st-lettin { text-transform:uppercase; font-weight:800;
  letter-spacing:.08em; text-align:center; }
.msz-dash.msz-store .st-more { font-size:13.5px; font-weight:700;
  color:var(--accent-deep); text-decoration:underline; text-underline-offset:3px;
  margin:0 0 16px; }

/* Picking one of a few things: team, kind, category. */
.msz-store .st-choices { display:flex; flex-wrap:wrap; gap:7px; }
.msz-store .st-choices.teams { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.msz-dash.msz-store .st-choice { display:inline-flex; align-items:center; gap:8px;
  min-height:44px; padding:6px 12px; border-radius:11px;
  border:1.5px solid var(--line); background:#fff; font-size:14px;
  font-weight:600; color:var(--ink); text-align:left; }
.msz-store .st-choices.teams .st-choice { flex-direction:column; align-items:flex-start;
  gap:4px; padding:8px 10px; }
.msz-store .st-choice .code { font-size:12px; font-weight:800; letter-spacing:.05em;
  border:1.5px solid currentColor; border-radius:5px; padding:2px 5px; line-height:1; }
.msz-store .st-choices.teams .st-choice span:last-child { font-size:12.5px;
  line-height:1.2; overflow-wrap:anywhere; }
.msz-dash.msz-store .st-choice[aria-pressed="true"] { background:var(--ink);
  border-color:var(--ink); color:#fff; }
.msz-dash.msz-store .st-choice.new { border-style:dashed; color:var(--accent-deep); }
.msz-dash.msz-store .st-choice.new[aria-pressed="true"] { border-style:solid; color:#fff; }
.msz-store .st-choice svg { width:16px; height:16px; stroke-width:2.2; }
.msz-store .st-seg { display:grid; grid-template-columns:1fr 1fr; gap:0;
  border:1.5px solid var(--line); border-radius:12px; overflow:hidden; background:#fff; }
.msz-dash.msz-store .st-seg button { height:46px; display:inline-flex;
  align-items:center; justify-content:center; gap:8px; font-size:14.5px;
  font-weight:700; color:var(--muted); }
.msz-store .st-seg button + button { border-left:1.5px solid var(--line); }
.msz-store .st-seg svg { width:19px; height:19px; }
.msz-dash.msz-store .st-seg button[aria-pressed="true"] { background:var(--ink); color:#fff; }

/* The code it will get, shown before it is saved so it can be written first. */
.msz-store .st-preview { display:flex; align-items:center; gap:16px;
  background:var(--kraft); border-radius:14px; padding:16px; margin:4px 0 18px;
  color:var(--kraft-ink); position:relative; overflow:hidden; }
.msz-store .st-preview::before { content:''; position:absolute; top:0; left:18px;
  width:70px; height:100%; background:rgba(255,255,255,.22); }
.msz-store .st-preview .st-label { font-size:26px; border-width:2.5px;
  padding:9px 12px 8px; position:relative; }
.msz-store .st-preview p { margin:0; font-size:13.5px; line-height:1.45;
  position:relative; }
.msz-store .st-preview p b { display:block; font-size:15px; }
.msz-store .st-preview.moving { background:var(--out-wash); color:var(--out); }

/* Written: the sticker, large, and what to do next. */
.msz-store .st-done { text-align:center; padding:12px 0 6px; }
.msz-store .st-done .st-label.big { margin:14px 0 20px;
  animation:st-stamp .45s cubic-bezier(.22,.68,.32,1.3); }
.msz-store .st-done h3 { margin:0 0 6px; font-size:19px; font-weight:800;
  color:var(--ink); }
.msz-store .st-done p { margin:0 auto; max-width:36ch; color:var(--muted);
  font-size:14.5px; }

/* The detail sheet. */
.msz-store .st-detailtop { display:flex; gap:16px; align-items:center;
  flex-wrap:wrap; margin:6px 0 16px; }
.msz-store .st-detailtop .st-label.big { font-size:34px; padding:11px 15px 10px; }
.msz-store .st-detailtop p { margin:0; font-size:13.5px; color:var(--muted);
  line-height:1.5; }
.msz-store .st-detailtop p b { color:var(--ink); }
.msz-store .st-status { display:flex; gap:12px; align-items:flex-start;
  border-radius:13px; padding:13px 14px; margin:0 0 16px;
  background:var(--idle-wash); color:#4d5049; }
.msz-store .st-status svg { width:22px; height:22px; stroke-width:2.2; margin-top:1px; }
.msz-store .st-status p { margin:0; font-size:14px; line-height:1.5; }
.msz-store .st-status p b { display:block; font-size:15px; }
.msz-store .st-status.s-here { background:var(--here-wash); color:var(--here); }
.msz-store .st-status.s-missing { background:var(--miss-wash); color:var(--miss); }
.msz-store .st-status.s-out { background:var(--out-wash); color:var(--out); }
.msz-store .st-facts { margin:0 0 16px; padding:0; }
.msz-store .st-facts div { display:grid; grid-template-columns:96px minmax(0,1fr);
  gap:10px; padding:9px 0; border-top:1px solid var(--line); font-size:14px; }
.msz-store .st-facts dt { color:var(--muted); font-weight:600; }
.msz-store .st-facts dd { margin:0; color:var(--ink); white-space:pre-wrap;
  overflow-wrap:anywhere; }
.msz-store .st-doing { display:grid; grid-template-columns:1fr 1fr; gap:8px;
  margin:0 0 18px; }
.msz-dash.msz-store .st-doing button { height:48px; border-radius:12px;
  border:1.5px solid var(--line); background:#fff; font-size:14.5px;
  font-weight:700; color:var(--ink); display:inline-flex; align-items:center;
  justify-content:center; gap:7px; }
.msz-store .st-doing svg { width:18px; height:18px; stroke-width:2.2; }
.msz-dash.msz-store .st-doing .main { grid-column:1 / -1; background:var(--accent-deep);
  border-color:var(--accent-deep); color:#fff; }
.msz-dash.msz-store .st-doing .quiet { color:var(--miss); border-color:#ecd6d6; }
.msz-store .st-history h3 { margin:0 0 8px; font-size:13px; font-weight:700;
  color:var(--muted); }
.msz-store .st-history ol { list-style:none; margin:0; padding:0; }
.msz-store .st-history li { position:relative; margin:0; padding:0 0 11px 18px;
  font-size:13.5px; color:var(--ink); line-height:1.45; }
.msz-store .st-history li::before { content:''; position:absolute; left:3px; top:6px;
  width:7px; height:7px; border-radius:50%; background:#c3c6be; }
.msz-store .st-history li::after { content:''; position:absolute; left:6px; top:15px;
  bottom:0; width:1px; background:var(--line); }
.msz-store .st-history li:last-child::after { display:none; }
.msz-store .st-history small { display:block; color:var(--muted); font-size:12px; }

/* A list of what a checkout or return covers. */
.msz-store .st-picked { list-style:none; margin:0 0 18px; padding:0;
  display:flex; flex-direction:column; gap:7px; }
.msz-store .st-picked li { display:flex; align-items:center; gap:10px; margin:0;
  background:#fff; border:1px solid var(--line); border-radius:11px;
  padding:8px 8px 8px 10px; font-size:14px; font-weight:600; color:var(--ink); }
.msz-store .st-picked li span:not(.st-label) { flex:1; min-width:0; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap; }
.msz-store .st-picked .st-label { flex:0 0 auto; font-size:13px; }
.msz-dash.msz-store .st-picked button { width:34px; height:34px; border-radius:9px;
  font-size:21px; color:var(--muted); }
.msz-store .st-mailnote { display:flex; gap:9px; align-items:flex-start;
  font-size:13px; color:var(--muted); background:#fff; border:1px solid var(--line);
  border-radius:11px; padding:10px 12px; margin:0 0 6px; line-height:1.45; }
.msz-store .st-mailnote svg { width:18px; height:18px; margin-top:1px; color:var(--accent-deep); }
.msz-store .st-mailnote.none svg { color:var(--out); }
.msz-store .st-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px; margin:0 0 16px; }
.msz-store .st-summary div { background:#fff; border:1px solid var(--line);
  border-radius:12px; padding:12px; }
.msz-store .st-summary b { display:block; font-size:28px; font-weight:800;
  letter-spacing:-.03em; line-height:1.05; font-variant-numeric:tabular-nums; }
.msz-store .st-summary span { font-size:12.5px; color:var(--muted); font-weight:600; }
.msz-store .st-summary .here b { color:var(--here); }
.msz-store .st-summary .miss b { color:var(--miss); }
.msz-store .st-codes { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 16px; }
.msz-store .st-codes .st-label { font-size:12.5px; padding:4px 6px 3px; }
.msz-store .st-prose { margin:0 0 14px; font-size:14.5px; line-height:1.55;
  color:var(--ink); }
.msz-store .st-prose b,.msz-store .st-empty b,.msz-store .st-nomatch b { font-weight:700; }
.msz-store .st-prose.muted { color:var(--muted); font-size:13.5px; }

/* ------------------------------------------------------------- the tray -- */

/* What is picked, and what to do with it, pinned to the bottom of the screen. */
.msz-store .st-tray { position:fixed; left:0; right:0; bottom:0; z-index:90;
  background:var(--ink); color:#fff; box-shadow:0 -10px 30px rgba(18,19,9,.25);
  padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  animation:st-rise .24s cubic-bezier(.22,.68,.32,1) both; }
.msz-store .st-trayin { max-width:760px; margin:0 auto; display:flex;
  align-items:center; gap:10px; flex-wrap:wrap; }
.msz-store .st-traysay { flex:1 1 100%; margin:0; font-size:13.5px;
  color:rgba(255,255,255,.72); }
.msz-store .st-traysay b { color:#fff; font-size:15px; }
.msz-dash.msz-store .st-tray .st-btn { height:48px; border-color:rgba(255,255,255,.22);
  background:transparent; color:#fff; }
.msz-dash.msz-store .st-tray .st-btn.go { background:#fff; border-color:#fff;
  color:var(--ink); }
.msz-dash.msz-store .st-tray .st-btn.go[disabled] { opacity:.4; cursor:default; }
.msz-store.selecting-page { padding-bottom:150px; }

/* ------------------------------------------------------------ the toast -- */

.msz-store .st-toast { position:fixed; left:50%; bottom:calc(20px + env(safe-area-inset-bottom, 0px));
  z-index:100001; transform:translate(-50%, 16px); opacity:0; pointer-events:none;
  width:max-content; max-width:min(92vw, 520px); background:var(--ink); color:#fff;
  border-radius:13px; padding:12px 16px; font-size:14px; font-weight:600;
  line-height:1.4; box-shadow:0 12px 30px rgba(18,19,9,.3);
  transition:opacity .2s, transform .2s; }
.msz-store .st-toast.show { opacity:1; transform:translate(-50%, 0); pointer-events:auto; }
.msz-store .st-toast.bad { background:var(--miss); }
.msz-store .st-toast.warn { background:#5c4712; }
.msz-store.selecting-page .st-toast { bottom:calc(130px + env(safe-area-inset-bottom, 0px)); }

/* ---------------------------------------------------------- wider screens -- */

@media (max-width:860px) {
  .msz-store .st-bar { margin:-8px -16px 12px; padding:10px 16px 12px; }
  .msz-store .st-filters { margin:0 -16px 12px; padding:2px 16px 4px; }
}
@media (min-width:600px) {
  .msz-store .st-panel { max-height:min(88vh, 820px); border-radius:20px;
    margin-bottom:max(4vh, 20px); }
  .msz-store .st-sheet { align-items:center; }
  .msz-store .st-grip { display:none; }
  .msz-store .st-sheethead { padding-top:16px; }
  .msz-store .st-sheetfoot { border-radius:0 0 20px 20px; }
  .msz-store .st-summary { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (min-width:861px) {
  .msz-store .st-bar { display:flex; align-items:flex-start; gap:12px; flex-wrap:wrap; }
  .msz-store .st-find { flex:1 1 360px; }
  .msz-store .st-acts { margin-top:0; display:flex; }
  .msz-dash.msz-store .st-act { padding:0 18px; height:50px; }
  .msz-store .st-countbar { flex:1 1 100%; }
  /* Narrow enough that all nine sit in one row on a laptop, rather than
     eight and one left over. */
  .msz-store .st-teams { grid-template-columns:repeat(auto-fill,minmax(122px,1fr)); }
  .msz-store .st-cards { grid-template-columns:repeat(auto-fill,minmax(360px,1fr)); }
  .msz-store .st-team { scroll-margin-top:110px; }
  .msz-store .st-tray { left:50%; right:auto; bottom:20px; width:min(760px, calc(100% - 40px));
    transform:translateX(-50%); border-radius:18px; padding:14px 18px; }
  .msz-store .st-traysay { flex:1 1 auto; }
  .msz-dash.msz-store .st-tray .st-btn { flex:0 0 auto; }
}
/* On a phone the ring and the count chip share a line, so search and Add are
   one short scroll from the top instead of a screen and a half. */
@media (max-width:600px) {
  .msz-store header.top { padding:24px 0 26px; margin-bottom:22px; }
  .msz-store header.top .heroside { flex-wrap:nowrap; gap:14px; align-items:center; }
  .msz-store .ringwrap { width:96px; height:96px; }
  .msz-store .rn { font-size:27px; }
  .msz-store .rn i { font-size:12px; }
  .msz-store .rk { font-size:8px; max-width:66px; letter-spacing:.12em; margin-top:3px; }
  .msz-store header.top .chip { flex:1 1 auto; min-width:0; max-width:none; padding:12px 13px; }
}
/* The smallest phones still in use (iPhone SE, 320-375px): tighter tiles. */
@media (max-width:380px) {
  .msz-store .st-teams { gap:7px; }
  .msz-dash.msz-store .st-tile { min-height:104px; padding:14px 9px 9px; }
  .msz-store .st-tile .st-label { font-size:13px; padding:4px 6px 3px; }
  .msz-store .st-tilename { font-size:12px; }
  .msz-dash.msz-store .st-act { font-size:13.5px; gap:5px; padding:0 6px; }
  .msz-store .st-act svg { width:17px; height:17px; }
  .msz-store .st-choices.teams { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Hover only where there is a pointer that hovers. On a phone a tap leaves
   :hover applied to whatever was tapped, so a button that darkens on hover
   stays dark after being pressed, and the next one to appear under the finger
   starts out dark. */
@media (hover:hover) {
  .msz-dash.msz-store .st-qclear:hover { background:var(--canvas); color:var(--ink); }
  .msz-dash.msz-store .st-act:hover { border-color:#c9ccc4; }
  .msz-dash.msz-store .st-act-add:hover { background:var(--ink); border-color:var(--ink); }
  .msz-dash.msz-store .st-tile:hover { transform:translateY(-2px);
    box-shadow:inset 0 -3px 0 rgba(61,47,30,.1), 0 8px 18px rgba(61,47,30,.16); }
  .msz-dash.msz-store .st-teamadd:hover { border-color:var(--accent); }
  .msz-dash.msz-store .st-catedit:hover { background:#fff; color:var(--ink); }
  .msz-store .st-open:hover .st-name { text-decoration:underline;
    text-decoration-thickness:1px; text-underline-offset:3px; }
  .msz-dash.msz-store .st-return:hover { background:var(--ink); }
  .msz-dash.msz-store .st-cta:hover { background:var(--ink); }
  .msz-dash.msz-store .st-x:hover { background:#fff; color:var(--ink); }
  .msz-dash.msz-store .st-btn:hover { border-color:#c3c6be; }
  .msz-dash.msz-store .st-btn.go:hover { background:var(--ink); border-color:var(--ink); }
  .msz-dash.msz-store .st-picked button:hover { background:var(--canvas); color:var(--ink); }
  .msz-dash.msz-store .st-tray .st-btn.go:hover { background:var(--kraft-lite); }
}

/* -------------------------------------------------------------- the map -- */
/* The poster for the storeroom wall. One colour per team, used only on its code
   tile, its category letters and the rule under its name; everything else ink. */
.msz-store .st-views { display:inline-flex; gap:3px; background:#e5e8e2; padding:3px;
  border-radius:11px; margin:0 0 12px; }
.msz-dash.msz-store .st-view { font-size:13.5px; font-weight:700; padding:7px 15px;
  border-radius:8px; color:var(--muted); }
@media (hover:hover) { .msz-dash.msz-store .st-view:hover { color:var(--ink); } }
.msz-dash.msz-store .st-view.on { background:#fff; color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.08); }

.msz-store .st-maptools { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px;
  margin:0 0 12px; }
.msz-store .st-maptools p { margin:0; font-size:13px; color:var(--muted); flex:1 1 320px; }
.msz-dash.msz-store .st-maptools .st-btn { flex:none; width:auto; }

.msz-store [data-hue="g"] { --tc:#3e7a45; } .msz-store [data-hue="k"] { --tc:#5d625a; }
.msz-store [data-hue="o"] { --tc:#b25d26; } .msz-store [data-hue="c"] { --tc:#2a7a8a; }
.msz-store [data-hue="p"] { --tc:#6a54a6; } .msz-store [data-hue="r"] { --tc:#9a2f2f; }
.msz-store [data-hue="y"] { --tc:#8f720f; } .msz-store [data-hue="t"] { --tc:#2a8576; }
.msz-store [data-hue="m"] { --tc:#a3467a; }

.msz-store .st-poster { --mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:14px;
  padding:34px 36px 22px; }
.msz-store .st-poster h2,.msz-store .st-poster h3 { font-family:inherit; text-transform:none;
  letter-spacing:normal; margin:0; color:var(--ink); }
.msz-store .st-mtop { display:grid; grid-template-columns:1fr auto; align-items:end; gap:20px 40px;
  padding-bottom:20px; border-bottom:2px solid var(--ink); }
.msz-store .st-mkick { margin:0; font-size:11.5px; font-weight:700; letter-spacing:.18em;
  text-transform:uppercase; color:#3e7a45; }
.msz-store .st-poster .st-mtop h2 { font-size:40px; font-weight:800; letter-spacing:-.02em;
  line-height:1.05; margin-top:8px; }
.msz-store .st-msub { margin:10px 0 0; font-size:15px; color:var(--muted); max-width:60ch; line-height:1.45; }
.msz-store .st-manat { display:flex; align-items:center; gap:22px; }
.msz-store .st-manat > p { margin:0; font-size:10.5px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--muted); text-align:right; line-height:1.5; }
.msz-store .st-manat > div { display:flex; align-items:flex-start; gap:6px; }
.msz-store .st-mdash { font-family:var(--mono); font-size:38px; line-height:50px; color:#b9bdb4; }
.msz-store .st-mpart { display:flex; flex-direction:column; align-items:center; min-width:70px; }
.msz-store .st-mpart b { font-family:var(--mono); font-size:38px; line-height:50px; font-weight:800; color:var(--tc, var(--ink)); }
.msz-store .st-mpart u { display:block; width:100%; height:8px; border:1.5px solid #c9cdc4; border-top:0; }
.msz-store .st-mpart i { font-style:normal; margin-top:6px; font-size:10px; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.msz-store .st-mpart span { font-size:12.5px; font-weight:600; color:#3c3f37; white-space:nowrap; }

.msz-store .st-mcode { display:inline-flex; align-items:center; justify-content:center; flex:none;
  font-family:var(--mono); font-weight:800; color:var(--tc); border:2px solid var(--tc);
  background:#fff; background:color-mix(in srgb, var(--tc) 12%, #fff); border-radius:8px; }
.msz-store .st-mkey { display:flex; flex-wrap:wrap; gap:10px 22px; padding:14px 0 18px; }
.msz-store .st-mkey > span { display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:700; }
.msz-store .st-mkey .st-mcode { width:32px; height:32px; font-size:12.5px; border-radius:7px; }

.msz-store .st-mcols { columns:4 250px; column-gap:16px; }
.msz-store .st-mteam { break-inside:avoid; display:inline-block; width:100%; margin:0 0 16px;
  border:1px solid var(--line); border-radius:12px; padding:14px 16px 10px; background:#fff; }
.msz-store .st-mhead { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.msz-store .st-mhead .st-mcode { width:46px; height:46px; font-size:18px; }
.msz-store .st-mhead b { display:block; font-size:20px; font-weight:800; line-height:1.1; }
.msz-store .st-mhead i { display:block; font-style:normal; font-size:12px; color:var(--muted); margin-top:2px; }
.msz-store .st-mcat { padding:7px 0 6px; border-top:1px solid #eceee9; }
.msz-store .st-mhead + .st-mcat { border-top:1.5px solid var(--tc); }
.msz-store .st-poster .st-mcat h3 { display:flex; align-items:baseline; gap:8px; margin-bottom:3px;
  font-size:10.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#3c3f37; }
.msz-store .st-mcat h3 span { font-family:var(--mono); font-size:12.5px; font-weight:800;
  letter-spacing:0; color:var(--tc); min-width:22px; }
.msz-store .st-mrow { display:grid; grid-template-columns:96px 1fr; column-gap:10px; padding:2px 0; }
.msz-store .st-mrow > b { font-family:var(--mono); font-size:13px; font-weight:700; white-space:nowrap; }
.msz-store .st-poster b em { font-style:normal; font-weight:600; color:var(--muted); }
.msz-store .st-mrow > span { font-size:12.5px; color:#3c3f37; line-height:1.35; overflow-wrap:anywhere; }
.msz-store .st-mrow small { display:block; font-size:11px; color:var(--muted); font-style:italic; }
.msz-store .st-mloose { font-style:normal; font-size:9.5px; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--muted); border:1px dashed #b9bdb4; border-radius:4px;
  padding:0 4px; margin-left:6px; white-space:nowrap; }
.msz-store .st-mfoot { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; margin-top:6px;
  padding-top:12px; border-top:1px solid var(--line); font-size:12px; color:var(--muted); }
.msz-store .st-mfoot b { font-family:var(--mono); color:var(--ink); }
.msz-store .st-mfind { margin-left:auto; }
.msz-store .st-mfind b { font-family:inherit; }

@media (max-width:860px) {
  .msz-store .st-poster { padding:22px 20px 16px; }
  .msz-store .st-mtop { grid-template-columns:1fr; }
  .msz-store .st-poster .st-mtop h2 { font-size:30px; }
  .msz-store .st-manat { flex-wrap:wrap; }
  .msz-store .st-manat > p { text-align:left; }
}
@media (max-width:600px) {
  .msz-store .st-poster { padding:18px 14px 14px; border-radius:12px; }
  .msz-store .st-poster .st-mtop h2 { font-size:26px; }
  .msz-store .st-mdash,.msz-store .st-mpart b { font-size:30px; line-height:40px; }
  .msz-store .st-mpart { min-width:56px; }
  .msz-store .st-mfind { margin-left:0; }
}

@media (prefers-reduced-motion:reduce) {
  .msz-store *,.msz-store *::before,.msz-store *::after { animation:none !important;
    transition:none !important; }
}
@media print {
  .msz-store .st-bar,.msz-store .st-filters,.msz-store .st-teamadd,
  .msz-store .st-marks,.msz-store .st-tray,.msz-store .st-toast { display:none !important; }
  .msz-store .st-card { break-inside:avoid; box-shadow:none; }
  /* With the map open, only the poster prints, landscape, filling the page. */
  @page { size:landscape; margin:8mm; }
  body.st-printmap * { visibility:hidden; }
  body.st-printmap .st-poster,body.st-printmap .st-poster * { visibility:visible; }
  body.st-printmap .st-poster { position:absolute; left:0; top:0; width:100%; border:0;
    padding:0; box-sizing:border-box; }
  body.st-printmap .st-mcols { columns:4; }
  .msz-store .st-poster * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}
