/* Small Batch: a back-room workshop that turns into a shop.
   Plaster wall over bottle-green wainscot, oak shelves, walnut sign, an amber shop computer. */
:root {
  --plaster: #cfd9c8;
  --plaster-shade: #b9c6b2;
  --wainscot: #24453d;
  --wainscot-deep: #1a332d;
  --oak: #b07a45;
  --oak-light: #c99560;
  --walnut: #5a3420;
  --brass: #e3a33b;
  --ink: #1d2b27;
  --paper: #fbfaf4;
  --glass: #a9c7c9;
  --screen: #1b1610;
  --phosphor: #ffb85a;
  --phosphor-dim: #cf9447;
  --gain: #2e7d4f;
  --loss: #b8402a;
  --gain-on-screen: #9fdc8a;
  --loss-on-screen: #ff8e6e;
  --sign-font: Rockwell, "Rockwell Nova", "Roboto Slab", "Iowan Old Style", Georgia, serif;
  --screen-font: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ui-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wainscot-deep);
  color: var(--ink);
  font: 16px/1.45 var(--ui-font);
  min-height: 100vh;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.app { max-width: 1240px; margin: 0 auto; padding: 10px 16px 24px; }

/* ---------- top bar ---------- */
.topbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.topbar-gap { flex: 1; }
.chip {
  min-height: 40px; padding: 6px 14px; border-radius: 20px; cursor: pointer;
  background: transparent; color: #e7eee4; border: 1.5px solid #5f8277;
}
.chip:hover { background: rgba(255,255,255,.06); }
.chip[aria-pressed="true"] { background: #e7eee4; color: var(--ink); }

/* ---------- the hanging sign (the one bold thing) ---------- */
.signpost { display: grid; justify-items: center; padding: 6px 0 14px; }
.sign {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 12px 26px 12px 16px; margin-top: 20px;
  background: linear-gradient(180deg, #6b3f27, var(--walnut) 60%, #4b2b1a);
  border: 3px solid #3a2114; border-radius: 10px;
  box-shadow: inset 0 0 0 2px #8a5a36, 0 6px 0 #2c180d;
  transform-origin: 50% -20px;
  max-width: 100%;
}
.sign::before, .sign::after {
  content: ""; position: absolute; top: -22px; width: 2px; height: 22px; background: #a8a18f;
}
.sign::before { left: 22%; } .sign::after { right: 22%; }
.sign-logo { flex: none; width: 54px; height: 54px; display: grid; }
.sign-logo .logo-svg { width: 100%; height: 100%; }
.sign-name {
  margin: 0; font: 700 clamp(26px, 4.2vw, 44px)/1.05 var(--sign-font);
  color: #f6e7c4; letter-spacing: .01em; overflow-wrap: anywhere;
  text-shadow: 0 2px 0 #2c180d;
}
.sign-tag { margin: 8px 0 0; color: #c8d6c4; font-size: 15px; }

/* ---------- shared buttons ---------- */
.btn {
  min-height: 44px; padding: 8px 16px; border-radius: 8px; cursor: pointer;
  background: var(--paper); border: 2px solid var(--ink); color: var(--ink); font-weight: 600;
}
.btn:hover:not(:disabled) { background: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--brass); border-color: #7a5212; color: #1f1405; }
.btn.primary:hover:not(:disabled) { background: #f0b552; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.danger { border-color: var(--loss); color: var(--loss); }
.btn.small { min-height: 40px; min-width: 44px; padding: 4px 10px; }
.btn.big { font-size: 18px; padding: 10px 22px; }

/* ---------- title ---------- */
.title-card {
  max-width: 640px; margin: 10px auto; padding: 24px 26px;
  background: var(--plaster); border-radius: 6px; border-bottom: 10px solid var(--oak);
}
.lede { font: 400 20px/1.45 var(--sign-font); margin: 0 0 18px; }
.title-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fineprint { font-size: 14px; color: #3f514b; margin: 16px 0 0; }
.notice { margin: 12px 0 0; padding: 10px 12px; background: var(--paper); border-left: 4px solid var(--brass); }

/* ---------- setup ---------- */
.setup-screen { background: var(--plaster); border-radius: 6px; padding: 18px 20px 20px; border-bottom: 10px solid var(--oak); }
.setup-heading { margin: 0 0 8px; font: 700 26px/1.2 var(--sign-font); }
.setup-steps { margin: 0; padding-left: 26px; display: grid; gap: 18px; }
.step::marker { font: 700 20px var(--sign-font); color: var(--walnut); }
.step h3 { margin: 0 0 8px; font: 700 19px/1.3 var(--sign-font); }
.pick-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.pick-grid.products { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.pick {
  position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 6px 10px;
  background: var(--paper); border: 2px solid transparent; border-radius: 8px; cursor: pointer; text-align: center;
}
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick:has(input:checked) { border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.pick:has(input:focus-visible) { outline: 3px solid var(--brass); outline-offset: 2px; }
.pick-art { width: 64px; height: 64px; display: grid; }
.pick-art svg { width: 100%; height: 100%; }
.pick-label { font-weight: 600; }
.pick-detail { font-size: 13px; color: #44564f; }
.apron-row, .swatch-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.swatch-pick { position: relative; cursor: pointer; }
.swatch-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--c); border: 3px solid var(--paper); box-shadow: 0 0 0 2px transparent; }
.swatch-pick:has(input:checked) .swatch { box-shadow: 0 0 0 3px var(--ink); }
.swatch-pick:has(input:focus-visible) .swatch { outline: 3px solid var(--brass); outline-offset: 3px; }
.text-in {
  width: min(100%, 420px); min-height: 46px; padding: 8px 12px; font-size: 18px;
  border: 2px solid var(--ink); border-radius: 8px; background: var(--paper);
}
.help { margin: 6px 0 0; font-size: 14px; color: #3f514b; }
.error { margin: 4px 0 0; color: var(--loss); font-weight: 600; min-height: 1.2em; font-size: 15px; }
.logo-mode, .seg-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.seg { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 22px; cursor: pointer; background: var(--paper); }
.seg:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg input { accent-color: var(--brass); }
.draw-wrap { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.draw-grid { display: grid; grid-template-columns: repeat(10, 26px); gap: 2px; padding: 6px; background: var(--paper); border-radius: 8px; touch-action: none; }
.px { width: 26px; height: 26px; padding: 0; border: 1px solid #c9cfc3; border-radius: 3px; background: #fff; cursor: pointer; }
.px[aria-pressed="true"] { background: var(--c); border-color: var(--c); }
.px:focus-visible { outline: 3px solid var(--brass); outline-offset: 0; position: relative; z-index: 1; }
.draw-side { max-width: 220px; }
.pace-row { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pace { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--paper); border: 2px solid transparent; border-radius: 8px; cursor: pointer; }
.pace:has(input:checked) { border-color: var(--ink); }
.pace input { margin-top: 4px; accent-color: var(--walnut); width: 18px; height: 18px; }
.pace strong { display: block; }
.setup-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }

/* ---------- shop layout ---------- */
.shop-screen {
  display: grid; gap: 14px;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
  grid-template-areas: "scene computer" "daybar computer";
  align-items: start;
}
.scene { grid-area: scene; border-radius: 6px; overflow: hidden; position: relative; }
.daybar { grid-area: daybar; }
.computer { grid-area: computer; }

.wall {
  display: grid; gap: 14px; padding: 16px;
  grid-template-columns: 170px minmax(0, 1fr) 150px;
  background:
    linear-gradient(180deg, var(--plaster) 0 72%, var(--wainscot) 72% 100%);
  min-height: 330px;
}

/* calendar: paper pinned to the wall */
.calendar {
  align-self: start; background: var(--paper); padding: 8px 8px 10px; border-radius: 2px;
  box-shadow: 0 2px 0 rgba(29,43,39,.25); transform: rotate(-1.2deg);
}
.cal-title { margin: 0 0 4px; font: 700 13px/1.2 var(--sign-font); }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-head span { font-size: 10px; text-align: center; color: #5d6d67; }
.cal-grid { list-style: none; margin: 0; padding: 0; }
.cal-day {
  position: relative; min-height: 30px; padding: 1px 2px; font-size: 10px; line-height: 1.1;
  border: 1px solid #dfe3da; background: #fff; display: grid; align-content: start; overflow: hidden;
}
.cal-day.past { background: #eef1ea; }
.cal-day.today { border: 2px solid var(--loss); background: #fff8ef; }
.cal-num { font-weight: 700; color: #33443e; }
.cal-pl { font-size: 9px; font-weight: 700; }
.cal-pl.pos { color: var(--gain); } .cal-pl.neg { color: var(--loss); }
.cal-mark { display: inline-flex; align-items: center; gap: 1px; font-size: 9px; font-weight: 700; color: var(--walnut); }
.cal-mark .ico, .cal-ev .ico { width: 12px; height: 12px; }
.cal-ev { position: absolute; right: 1px; top: 1px; }

/* shelf: three oak planks */
.shelf-unit { background: #a5b39e; padding: 8px; border-radius: 3px; border: 6px solid var(--oak); border-top-width: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.shelf { display: grid; gap: 8px; }
.plank {
  position: relative; min-height: 76px; display: flex; align-items: flex-end; gap: 8px; padding: 6px 8px 12px;
  background: linear-gradient(180deg, transparent 0 calc(100% - 10px), var(--oak-light) calc(100% - 10px) calc(100% - 4px), var(--walnut) calc(100% - 4px));
}
.plank.empty { align-items: center; justify-content: center; }
.plank-note { font-size: 13px; color: #35463f; font-style: italic; text-align: center; }
.items { flex: 1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1px; min-height: 48px; }
.item { width: 26px; height: 32px; }
.more { font-weight: 700; font-size: 13px; color: var(--ink); align-self: center; padding-left: 4px; }
.sold-out { font: 700 14px var(--sign-font); color: var(--loss); transform: rotate(-4deg); border: 2px solid var(--loss); padding: 0 6px; }
.price-tag {
  flex: none; display: grid; justify-items: center; padding: 4px 8px; min-height: 44px; min-width: 64px; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 4px 12px 12px 4px; font: inherit;
}
.tag-price { font: 700 15px var(--sign-font); }
.tag-count { font-size: 11px; color: #4b5c56; }
.on-order { position: absolute; left: 8px; top: 2px; display: inline-flex; gap: 3px; align-items: center; font-size: 11px; font-weight: 700; color: var(--walnut); background: rgba(251,250,244,.85); padding: 0 4px; border-radius: 3px; }
.on-order .ico { width: 14px; height: 14px; }

/* door */
.door { position: relative; display: grid; grid-template-rows: auto auto auto; gap: 6px; align-content: start; }
.door-glass {
  position: relative; height: 210px; border: 10px solid var(--walnut); border-bottom-width: 18px; border-radius: 60px 60px 2px 2px;
  background: linear-gradient(180deg, #d9ebe8, var(--glass) 70%, #8fb0a8); overflow: hidden;
}
.door-street { position: absolute; inset: auto 0 0 0; height: 30%; background: #9aa69a; }
.customer-spot { position: absolute; inset: 22px 0 0; display: grid; justify-items: center; align-items: end; }
.customer { width: 76px; height: 152px; }
.door-bell { position: absolute; top: -6px; right: 8px; width: 18px; height: 18px; border-radius: 50% 50% 4px 4px; background: var(--brass); transform-origin: 50% 0; }
.btn.talk { width: 100%; }
.door-note { margin: 0; font-size: 13px; color: #e4ece1; }

/* counter */
.counter {
  position: relative; display: flex; gap: 14px; align-items: flex-end; padding: 12px 16px 14px;
  background: linear-gradient(180deg, var(--oak-light) 0 12px, var(--oak) 12px);
  border-top: 4px solid var(--walnut); min-height: 118px;
}
.me { width: 88px; height: 110px; margin-top: -60px; flex: none; }
.me-svg { width: 100%; height: 100%; }
.receipt {
  position: relative; z-index: 1; flex: 1; max-width: 520px; background: #fff; padding: 8px 12px; font: 13px/1.35 var(--screen-font); color: #2a2a2a;
  border-radius: 2px; box-shadow: 0 2px 0 rgba(0,0,0,.2); max-height: 150px; overflow: auto;
}
.receipt p { margin: 0 0 2px; }
.rc-head { font-weight: 700; border-bottom: 1px dashed #999; margin-bottom: 4px !important; }
.receipt .warn { color: #8c3a1d; }
.receipt .neg { color: var(--loss); font-weight: 700; } .receipt .pos { color: var(--gain); font-weight: 700; }
.receipt .news { color: #213a33; font-family: var(--ui-font); }
.walkers { position: absolute; inset: 0; pointer-events: none; --walk: 46vw; }
.walker {
  position: absolute; right: 60px; bottom: calc(100% + 4px); width: 18px; height: 36px; border-radius: 9px 9px 4px 4px;
  background: hsl(var(--hue) 35% 38%); opacity: 0;
}

/* day bar */
.daybar { background: var(--paper); border-radius: 6px; padding: 10px 14px; border-left: 8px solid var(--brass); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; }
.stats div { min-width: 0; }
.stats dt { font-size: 12px; color: #4b5c56; }
.stats dd { margin: 0; font: 700 19px/1.2 var(--sign-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats .neg { color: var(--loss); } .stats .pos { color: var(--gain); }
.day-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.day-actions .big { flex: 1 1 220px; }
.short-label { display: none; }
.day-line { margin: 8px 0 0; font-size: 14px; color: #33443e; }
.pause-note { margin: 8px 0 0; padding: 8px 10px; background: #fff3d6; border-radius: 4px; font-weight: 600; }

/* ---------- the shop computer ---------- */
.monitor { background: #8f9c8e; border-radius: 14px; padding: 10px 12px 18px; box-shadow: inset 0 -6px 0 #6f7b6e, 0 6px 0 #1a332d; }
.tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.tabs [role=tab] {
  flex: 1; min-height: 44px; padding: 4px 6px; cursor: pointer; border-radius: 6px 6px 3px 3px;
  background: #d4d9cf; border: 0; box-shadow: 0 3px 0 #59645a; font: 600 14px var(--ui-font); color: var(--ink);
}
.tabs [role=tab][aria-selected="true"] { background: var(--screen); color: var(--phosphor); box-shadow: 0 1px 0 #59645a; transform: translateY(2px); }
.screen-glass {
  background: radial-gradient(120% 100% at 50% 0%, #2a2117, var(--screen) 70%);
  color: var(--phosphor); font: 14.5px/1.5 var(--screen-font); border-radius: 10px; padding: 14px 16px 12px;
  min-height: 420px; max-height: calc(100vh - 210px); overflow: auto; border: 3px solid #121009;
  scrollbar-color: var(--phosphor-dim) transparent;
}
.panel:focus-visible { outline: 2px dashed var(--phosphor); outline-offset: 4px; }
.screen-glass :focus-visible { outline: 3px solid #fff3d6; outline-offset: 2px; }
.pt { margin: 0 0 10px; font: 700 16px var(--screen-font); color: #ffd79a; }
.screen-glass h4 { margin: 14px 0 6px; font: 700 14px var(--screen-font); color: #ffd79a; }
.screen-glass p { margin: 4px 0; }
.small { font-size: 13px; }
.dim { color: var(--phosphor-dim); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; border-bottom: 1px dotted rgba(255,184,90,.22); }
.kv .v { text-align: right; font-weight: 700; }
.kv.neg .v, .neg { color: var(--loss-on-screen); }
.kv.pos .v { color: var(--gain-on-screen); }
.kv.total { border-bottom: 2px solid var(--phosphor-dim); padding: 5px 0; }
.line-box { border: 1px solid rgba(255,184,90,.35); border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; }
.line-box h4 { margin-top: 0; }
.screen-glass .btn { background: transparent; color: var(--phosphor); border-color: var(--phosphor-dim); }
.screen-glass .btn:hover:not(:disabled) { background: rgba(255,184,90,.1); }
.screen-glass .btn.primary { background: var(--phosphor); color: #1b1309; border-color: var(--phosphor); margin-top: 10px; }
.screen-glass .btn.primary:hover:not(:disabled) { background: #ffcd85; }
.screen-glass .btn.on { background: rgba(255,184,90,.18); border-color: var(--phosphor); }
.price-row, .qty-row { display: flex; align-items: center; gap: 6px; margin: 8px 0 4px; flex-wrap: wrap; }
.money-in {
  width: 92px; min-height: 40px; padding: 4px 8px; background: #0f0c08; color: var(--phosphor);
  border: 2px solid var(--phosphor-dim); border-radius: 6px; font: 700 16px var(--screen-font); text-align: right;
}
.qty { min-width: 140px; text-align: center; font-weight: 700; font-size: 16px; }
.quick-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.insight { color: #ffe3b0; background: rgba(255,184,90,.1); padding: 4px 8px; border-left: 3px solid var(--phosphor); }
.forecast { color: #cde8ff; }
.choice-list { display: grid; gap: 4px; }
.choice { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; min-height: 40px; padding: 2px 6px; border-radius: 4px; cursor: pointer; }
.choice:has(input:checked) { background: rgba(255,184,90,.14); }
.choice input { accent-color: var(--phosphor); width: 18px; height: 18px; }
.screen-glass .seg { background: transparent; border-color: var(--phosphor-dim); color: var(--phosphor); }
.screen-glass .seg:has(input:checked) { background: var(--phosphor); color: #1b1309; }
.chalk-in {
  width: 100%; min-height: 84px; padding: 8px 10px; resize: vertical; background: #2d3a33; color: #f4f1e6;
  border: 4px solid var(--oak); border-radius: 4px; font: 600 16px/1.35 "Chalkboard SE", "Comic Sans MS", var(--ui-font);
}
.chalk-now { white-space: pre-line; background: #2d3a33; color: #f4f1e6; padding: 6px 10px; border: 3px solid var(--oak); font-family: "Chalkboard SE", var(--ui-font); }
.grow-row { display: grid; gap: 6px; margin-bottom: 10px; }
.btn-art { display: inline-grid; width: 22px; height: 26px; vertical-align: middle; }
.btn-art svg { width: 100%; height: 100%; }
.plain, .checks { list-style: none; padding: 0; margin: 4px 0; }
.checks li.done { color: var(--gain-on-screen); }
.goal { color: #ffe3b0; }
.screen-msg { margin: 12px 0 0; padding-top: 8px; border-top: 1px dashed var(--phosphor-dim); min-height: 1.5em; color: #ffe3b0; }

/* ---------- dialogs ---------- */
dialog.sheet {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto;
  border: 0; border-radius: 8px; padding: 20px 22px; background: var(--paper); color: var(--ink);
  box-shadow: 0 10px 0 var(--walnut);
}
dialog::backdrop { background: rgba(14, 26, 22, .72); }
dialog h2 { margin: 0 0 10px; font: 700 24px/1.2 var(--sign-font); }
.rules { padding-left: 20px; margin: 0; display: grid; gap: 6px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.dialog-actions.stack { flex-direction: column; align-items: stretch; }
.talk-head { display: flex; gap: 12px; align-items: center; }
.talk-face { width: 60px; height: 92px; display: grid; }
.face-svg { width: 100%; height: 100%; }
.talk-head h2 { margin: 0; }
.tagline { margin: 0; font-size: 13px; color: #4b5c56; }
.speech { font: 400 19px/1.45 var(--sign-font); margin: 14px 0; padding: 12px 14px; background: #fff; border-radius: 14px 14px 14px 2px; border: 2px solid var(--ink); }
.talk-replies { display: grid; gap: 8px; }
.btn.reply { text-align: left; }
.takeaway { padding: 10px 12px; background: #eef1ea; border-left: 4px solid var(--wainscot); margin: 10px 0 0; }
.paper { position: relative; background: #fff; border: 2px solid #c9c2a8; padding: 18px; margin: 6px 0 12px; min-height: 150px; overflow: hidden; }
.paper-head { margin: 0; font: 700 14px var(--sign-font); color: #6b5d3a; }
.paper-name { margin: 10px 0; font: 700 24px/1.2 var(--sign-font); min-height: 1.2em; overflow-wrap: anywhere; }
.paper-line { margin: 0; font-size: 14px; color: #3f514b; }
.stamp {
  position: absolute; right: 14px; bottom: 12px; padding: 4px 12px; font: 700 20px var(--sign-font); color: var(--loss);
  border: 3px solid var(--loss); border-radius: 6px; transform: rotate(-12deg) scale(1.8); opacity: 0; transition: transform .25s cubic-bezier(.3,1.6,.6,1), opacity .2s;
}
.stamp.down { opacity: .9; transform: rotate(-12deg) scale(1); }
.receipt-paper { background: #fff; padding: 14px 16px; border: 1px dashed #999; font: 14px/1.45 var(--screen-font); }
.receipt-paper .kv { border-bottom: 1px dotted #bbb; }
.receipt-paper .kv.total { border-bottom: 2px solid var(--ink); }
.receipt-paper .neg { color: var(--loss); }
.receipt-paper .kv.pos .v { color: var(--gain); }
.rp-name { margin: 0; font: 700 20px var(--sign-font); }
.rp-sub { margin: 0 0 10px; font-size: 13px; }
.award { margin-top: 12px; padding: 10px 12px; border: 2px dashed #8b8b8b; border-radius: 6px; }
.award.won { border: 3px solid var(--gain); background: #eef7ef; }
.award-title { margin: 0; font: 700 18px var(--sign-font); }

/* ---------- phones ---------- */
@media (max-width: 820px) {
  .app { padding: 8px 12px 150px; }
  .shop-screen { grid-template-columns: minmax(0, 1fr); grid-template-areas: "scene" "computer"; }
  .wall { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "cal cal" "shelf door"; padding: 10px; gap: 10px; min-height: 0; background: linear-gradient(180deg, var(--plaster) 0 78%, var(--wainscot) 78%); }
  .calendar { grid-area: cal; transform: none; }
  .shelf-unit { grid-area: shelf; padding: 5px; border-width: 4px; border-top-width: 7px; }
  .door { grid-area: door; }
  .door-glass { height: 140px; border-width: 7px; border-bottom-width: 12px; }
  .customer { width: 52px; height: 104px; }
  .plank.empty { min-height: 48px; }
  .cal-day { min-height: 26px; }
  .plank { min-height: 64px; padding: 4px 4px 11px; gap: 4px; flex-wrap: wrap; }
  .item { width: 17px; height: 22px; }
  .items { min-height: 26px; }
  .price-tag { min-width: 56px; padding: 2px 6px; }
  .on-order { font-size: 10px; }
  .counter { padding: 8px 10px 10px; min-height: 0; gap: 10px; }
  .me { width: 58px; height: 74px; margin-top: -26px; }
  .receipt { font-size: 12px; max-height: 120px; }
  .daybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; border-radius: 10px 10px 0 0; border-left: 0; border-top: 6px solid var(--brass);
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(0,0,0,.3);
  }
  .stats { margin-bottom: 6px; }
  .day-line { margin: 6px 0 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stats dt { font-size: 11px; }
  .stats dd { font-size: 16px; }
  .day-actions { flex-wrap: nowrap; }
  .day-actions .btn { min-height: 48px; padding: 6px 10px; }
  .day-actions .big { font-size: 17px; flex: 1.6 1 0; }
  .day-actions #runBtn, .day-actions #pauseBtn { flex: 1 1 0; }
  .long-label { display: none; } .short-label { display: inline; }
  .screen-glass { min-height: 0; max-height: none; font-size: 14px; padding: 12px; }
  .tabs [role=tab] { font-size: 13px; padding: 2px; }
  .sign { padding: 8px 16px 8px 10px; gap: 10px; margin-top: 16px; }
  .sign-logo { width: 42px; height: 42px; }
  .signpost { padding-bottom: 8px; }
  .sign-tag { font-size: 13px; }
  .walkers { --walk: 55vw; }
}
@media (max-width: 420px) {
  .topbar .chip { padding: 4px 10px; font-size: 14px; }
  .setup-steps { padding-left: 20px; }
  .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pick-grid.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick-art { width: 52px; height: 52px; }
  .draw-grid { grid-template-columns: repeat(10, 24px); }
  .px { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
