/* Staff Door: the warehouse game (staff.html). Builds on styles.css tokens. */
.staff-mark { background: var(--violet); box-shadow: 0 8px 20px rgba(136,103,232,.3); }
.staff-back { text-decoration: none; color: inherit; }
.staff-main { width: min(1180px, 100%); margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 4rem; }
.staff-main h1 { margin: 0 0 .4rem; font: 800 clamp(1.6rem, 4vw, 2.4rem)/1.1 "Outfit", sans-serif; letter-spacing: -.03em; }
.staff-main h1:focus { outline: none; }
.staff-main h2 { margin: 0 0 .5rem; font: 700 1.2rem/1.2 "Outfit", sans-serif; }
.staff-main .note { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.secondary-button { display: inline-flex; align-items: center; border: 1px solid var(--line); background: white; color: var(--ink); text-decoration: none; }
.primary-button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Shift progress: numbered dots joined by a line. It shows where you are; it isn't a menu. */
.staff-steps { display: flex; margin: 0; padding: .2rem 0; list-style: none; counter-reset: step; font-size: .7rem; font-weight: 700; }
.staff-steps li { position: relative; flex: 0 0 62px; display: flex; flex-direction: column; align-items: center; gap: .25rem; color: var(--muted); text-align: center; counter-increment: step; cursor: default; user-select: none; }
.staff-steps li::before { content: counter(step); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e5e5ef; color: var(--muted); font-size: .72rem; font-weight: 800; }
.staff-steps li + li::after { content: ""; position: absolute; top: 10px; left: -20px; width: 40px; height: 2px; background: #e5e5ef; }
.staff-steps li.done { color: var(--violet); }
.staff-steps li.done::before { content: "✓"; background: var(--violet); color: white; }
.staff-steps li.done + li::after { background: var(--violet); }
.staff-steps li.current { color: var(--ink); }
.staff-steps li.current::before { background: var(--lemon); color: var(--ink); box-shadow: 0 0 0 4px rgba(255,216,78,.35); }
.staff-steps li[hidden] { display: none; }
.rush-clock { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .8rem; border-radius: 999px; background: #eef9ff; font-variant-numeric: tabular-nums; }
.rush-clock[hidden], .staff-steps[hidden], .staff-nav[hidden] { display: none; }
.staff-nav .nav-button { display: inline-flex; align-items: center; text-decoration: none; }
.rush-clock.over { background: #fff1e0; color: #9a5a00; }

/* Promotion card */
.promo-card { margin-bottom: 1.2rem; padding: 1.3rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff8d6, #f5f1ff); border: 2px solid var(--lemon); box-shadow: var(--shadow); }
.promo-card[hidden] { display: none; }
.promo-card .eyebrow { color: var(--violet); }
.promo-card ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; margin: .8rem 0 1rem; padding: 0; list-style: none; }
.promo-card li { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; border-radius: 14px; background: white; }
.promo-card li > span { font-size: 1.6rem; }
.promo-card li small { display: block; color: var(--muted); line-height: 1.4; }

.listing-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.listing-actions .secondary-button { min-height: 48px; padding: .75rem 1rem; border-radius: 14px; font-weight: 800; cursor: pointer; }
.reply-skip { border-style: dashed; color: var(--muted); }
#goods-unsure[hidden] { display: none; }
.leave-shift { min-height: 40px; padding: .45rem .9rem; border-radius: 999px; font-weight: 700; cursor: pointer; }
.leave-shift[hidden] { display: none; }
.pack-help { margin-left: .5rem; min-height: 48px; padding: .75rem 1rem; border-radius: 14px; font-weight: 800; cursor: pointer; }
.pack-help[hidden] { display: none; }

/* Business stories */
.story-card { margin-bottom: 1.2rem; padding: 1.3rem; border-radius: var(--radius-lg); background: white; border-left: 6px solid var(--violet); box-shadow: var(--shadow); }
.story-card[hidden] { display: none; }
.story-card .eyebrow { color: var(--violet); }
.story-head { display: flex; gap: .9rem; align-items: center; }
.story-head img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: var(--cloud); }
.story-head h2 { margin: 0; }
.story-dots { display: flex; gap: .35rem; margin: .8rem 0 .2rem; padding: 0; list-style: none; }
.story-dots li { width: 28px; height: 6px; border-radius: 99px; background: #e5e5ef; }
.story-dots li.done { background: var(--violet); }
.story-dots li.current { background: var(--lemon); }
.story-card p { line-height: 1.55; }
.story-task { padding: .7rem 1rem; border-radius: 12px; background: #f5f1ff; }
.story-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.story-choices .secondary-button { min-height: 44px; padding: .5rem 1rem; border-radius: 12px; font-weight: 700; cursor: pointer; }
.story-lesson { padding: .7rem 1rem; border-radius: 12px; background: #e3f7ee; }
.reward-story { color: var(--violet); }

/* Staff room */
.staff-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: center; padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--radius-lg); background: linear-gradient(135deg, #2a2450, #4b3a8f); color: white; box-shadow: var(--shadow); }
.staff-hero .eyebrow { color: var(--lemon); }
.staff-hero p { color: rgba(255,255,255,.85); line-height: 1.55; }
.pip-note { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: var(--radius-md); background: rgba(255,255,255,.1); }
.report-card .pip-note { background: var(--cloud); }
.pip-note p { margin: 0; line-height: 1.5; }
.pip-face { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--violet); color: white; font-weight: 800; font-size: .85rem; }
.shift-path { margin-top: 1.2rem; padding: 1.2rem; border-radius: var(--radius-md); background: white; box-shadow: var(--shadow); }
.shift-path ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: .4rem 0 .6rem; padding: 0; list-style: none; counter-reset: step; }
.shift-path li { position: relative; display: grid; gap: .15rem; padding: .8rem; border-radius: 14px; background: var(--cloud); counter-increment: step; }
.shift-path li > span { font-size: 1.5rem; }
.shift-path li strong::before { content: counter(step) ". "; color: var(--violet); }
.shift-path li small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.shift-path li.is-new { background: #f5f1ff; outline: 2px solid var(--violet); }
.shift-path li.is-new::after { content: "New"; position: absolute; top: .5rem; right: .5rem; padding: .1rem .45rem; border-radius: 99px; background: var(--violet); color: white; font-size: .66rem; font-weight: 800; }
@media (max-width: 900px) { .shift-path ol { grid-template-columns: repeat(2, 1fr); } }
.staff-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.2rem 0; }
.staff-card { padding: 1.2rem; border-radius: var(--radius-md); background: white; box-shadow: var(--shadow); }
.staff-card .eyebrow { color: var(--violet); }
.xp-bar { height: 10px; border-radius: 99px; background: var(--cloud); overflow: hidden; }
.xp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); border-radius: inherit; }
.shift-setup { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.2rem; border-radius: var(--radius-md); background: white; box-shadow: var(--shadow); }
.rush-toggle { display: flex; gap: .7rem; align-items: flex-start; max-width: 560px; cursor: pointer; }
.rush-toggle input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--violet); }
.rush-toggle small { display: block; color: var(--muted); }
.big-button { min-height: 56px; padding: .9rem 1.8rem; font-size: 1.05rem; }

/* Shared screen parts */
.screen-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.2rem; }
.tag { display: inline-block; padding: .2rem .55rem; border-radius: 99px; background: var(--cloud); font-size: .75rem; font-weight: 700; }
.tag-express { background: #fff3c4; color: #7a5b00; }
.tag-gift { background: #ffe4ec; color: #a32a55; }
.tag-fragile { background: #e7f7ff; color: #0b6b86; }
.order-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0; }
.pip-inline { min-height: 1.5em; margin: 1rem 0 0; padding: .7rem 1rem; border-left: 4px solid var(--violet); border-radius: 0 12px 12px 0; background: white; line-height: 1.5; }
.pip-inline:empty { visibility: hidden; }

/* Orders */
.order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.order-card { padding: 1rem; border-radius: var(--radius-md); background: white; border-top: 6px solid var(--order); box-shadow: var(--shadow); }
.order-card header { display: flex; flex-direction: column; }
.order-card header span { color: var(--muted); font-size: .85rem; }
.order-card ul { margin: .5rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.order-card li, .bench-items li { display: flex; gap: .6rem; align-items: center; }
.order-card li img, .bench-items li img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: var(--cloud); }
.order-card li small, .bench-items li small { display: block; color: var(--muted); font-size: .78rem; }
.order-note { margin: .6rem 0 0; font-style: italic; color: var(--muted); font-size: .88rem; }

/* Pick */
.step-counter { display: flex; flex-direction: column; align-items: flex-end; }
.step-counter strong { font: 800 1.8rem/1 "Outfit", sans-serif; font-variant-numeric: tabular-nums; }
.step-counter small { color: var(--muted); }
#pick-best { color: var(--violet); font-weight: 700; }
.pick-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1rem; align-items: start; }
.warehouse { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem 1.1rem; padding: 1rem; border-radius: var(--radius-md); background: repeating-linear-gradient(90deg, #eceaf6 0 2px, transparent 2px 60px), #f7f6fc; box-shadow: var(--shadow); }
.aisle { display: grid; gap: .4rem; }
.aisle { padding: .3rem; border-radius: 14px; transition: background .2s; }
.aisle.hint { background: rgba(136,103,232,.14); }
.aisle-label { display: grid; justify-items: center; min-height: 3.6em; text-align: center; color: var(--violet); line-height: 1.1; }
.aisle-label b { font: 800 1.6rem/1 "Outfit", sans-serif; }
.aisle-label small { font-size: .66rem; font-weight: 700; color: var(--muted); }
.bin.hint { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(136,103,232,.35); transform: scale(1.05); }
.pick-pip { margin: 0 0 1rem; }
.pick-guide { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; padding: 1.2rem; border-radius: var(--radius-md); background: #f5f1ff; border: 2px solid var(--violet); }
.pick-guide[hidden] { display: none; }
.pick-guide ol { margin: .3rem 0 1rem; padding-left: 1.2rem; line-height: 1.6; }
.bin { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: .3rem; border: 2px solid #ddd8ef; border-radius: 12px; background: white; cursor: pointer; transition: transform .15s, border-color .15s; }
.bin:hover { transform: translateY(-2px); border-color: var(--violet); }
.bin img { width: 80%; height: 70%; object-fit: contain; }
.bin-code { font-size: .8rem; font-weight: 800; color: var(--ink); }
.bin.is-picked { border-color: #3fbf86; background: #effbf5; }
.bin.is-picked img { opacity: .35; }
.bin.flash-good { animation: bin-good .5s; }
.bin.flash-miss { animation: bin-miss .45s; }
@keyframes bin-good { 50% { transform: scale(1.1); } }
@keyframes bin-miss { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.dispatch { padding: .7rem; border-radius: 12px; background: var(--ink); color: white; font-weight: 700; text-align: center; font-size: .85rem; }
.walker { position: absolute; top: 0; left: 0; z-index: 2; font-size: 1.5rem; transition: transform .45s ease; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.2)); }
.pick-list { padding: 1rem; border-radius: var(--radius-md); background: white; box-shadow: var(--shadow); position: sticky; top: 140px; }
.pick-list ul { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .45rem; }
.pick-item { display: grid; grid-template-columns: 12px 1fr 20px; gap: .5rem; align-items: center; width: 100%; padding: .35rem .4rem; border: 0; border-radius: 10px; background: none; font-size: .88rem; text-align: left; cursor: pointer; }
.pick-item:hover, .pick-item:focus-visible { background: #f5f1ff; }
.pick-list li small { display: block; color: var(--muted); font-size: .74rem; }
.pick-list li.picked { opacity: .55; }
.pick-list li.picked strong { text-decoration: line-through; }
.order-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--order); }
.tick { color: #3fbf86; font-weight: 800; }
.pick-list .primary-button { width: 100%; }
#pick-substitutions:not(:empty) { display: grid; gap: .65rem; margin: 0 0 1rem; }
#pick-substitutions[hidden] { display: none; }
.substitution-card { padding: .8rem; border: 1px solid #e5dafa; border-radius: 14px; background: #fbf9ff; }
.substitution-card h3 { margin: .15rem 0 .35rem; font-size: 1rem; }
.substitution-card .eyebrow { color: #6750a5; font-size: .62rem; }
.substitution-preferences, .substitution-status { margin: .35rem 0; font-size: .78rem; line-height: 1.4; }
.substitution-preferences { color: var(--muted); }
.substitution-status { color: var(--ink); }
.substitute-choices { display: grid; gap: .4rem; margin-top: .55rem; }
.substitute-choice { display: grid; grid-template-columns: 42px minmax(0, 1fr) 14px; gap: .5rem; align-items: center; width: 100%; padding: .4rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; text-align: left; cursor: pointer; }
.substitute-choice:hover, .substitute-choice:focus-visible { border-color: var(--violet); background: #f5f1ff; }
.substitute-choice img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: var(--cloud); }
.substitute-choice strong, .substitute-choice small { display: block; }
.substitute-choice strong { font-size: .78rem; }
.substitute-choice small { margin-top: .16rem; color: var(--muted); font-size: .68rem; }
.substitution-skip { min-height: 38px; margin-top: .45rem; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: white; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.substitution-skip:hover { border-color: var(--violet); color: var(--ink); }
.substitute-choice:focus-visible, .substitution-skip:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Pack */
.pack-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem; align-items: start; }
.bench, .pack-controls { padding: 1.2rem; border-radius: var(--radius-md); background: white; box-shadow: var(--shadow); }
.bench h2 { border-left: 6px solid var(--order); padding-left: .6rem; }
.bench-items { margin: .6rem 0 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.bench-items li img { width: 72px; height: 72px; }
fieldset { margin: 0 0 1rem; padding: 0; border: 0; }
legend { margin-bottom: .45rem; font-weight: 800; }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; }
.choice { display: flex; gap: .45rem; align-items: flex-start; padding: .6rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--violet); background: #f5f1ff; }
.choice input { accent-color: var(--violet); margin-top: .2rem; }
.choice small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.3; }
.box-preview { display: grid; place-items: center; height: 130px; margin-bottom: .3rem; }
.box-shape { position: relative; overflow: hidden; border: 3px solid #b8895a; border-radius: 6px; background: #f4dcc0; transition: width .3s, height .3s; }
.box-none { width: 60px; height: 40px; opacity: .3; border-style: dashed; }
.box-mailer { width: 90px; height: 60px; border-color: #c9b8f0; background: #efe9ff; border-radius: 14px; }
.box-small { width: 80px; height: 70px; }
.box-medium { width: 120px; height: 90px; }
.box-large { width: 170px; height: 120px; }
.box-fill { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(136,103,232,.35); transition: height .3s; }
.box-fill.over { background: rgba(255,95,103,.55); }
.pad-bubble { background-image: radial-gradient(circle, rgba(255,255,255,.9) 3px, transparent 4px); background-size: 12px 12px; }
.pad-paper { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 3px, transparent 3px 8px); }
.box-shape.sealed::after { content: ""; position: absolute; left: 0; right: 0; top: 45%; height: 12px; background: var(--coral); opacity: .85; animation: tape .4s ease-out; }
@keyframes tape { from { transform: scaleX(0); } }
.gift-toggle { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; font-weight: 700; }
.gift-toggle input { width: 20px; height: 20px; accent-color: var(--coral); }

/* Ship */
.parcel-card { margin-bottom: 1rem; }
.parcel { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-radius: var(--radius-md); background: white; border-left: 6px solid var(--order); box-shadow: var(--shadow); }
.parcel-icon { font-size: 2.2rem; }
.parcel small { display: block; color: var(--muted); }
.courier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.courier { display: grid; gap: .3rem; padding: 1.1rem; text-align: left; border: 2px solid var(--line); border-radius: var(--radius-md); background: white; cursor: pointer; transition: transform .15s, border-color .15s; }
.courier:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--violet); }
.courier strong { font: 700 1.1rem "Outfit", sans-serif; }
.courier-price { font-weight: 800; color: var(--violet); }
.courier small { color: var(--muted); }
.courier:disabled { cursor: default; opacity: .55; }
.courier.best { opacity: 1; border-color: #3fbf86; }
.courier.chosen { opacity: 1; box-shadow: 0 0 0 3px var(--violet); }
.courier.best::after { content: "Best fit"; justify-self: start; padding: .15rem .5rem; border-radius: 99px; background: #e3f7ee; color: #1f7a52; font-size: .72rem; font-weight: 800; }
#ship-next { margin-top: 1rem; }

/* Customer desk */
.message-card { max-width: 720px; padding: 1.2rem; border-radius: var(--radius-md); background: white; border-left: 6px solid var(--order); box-shadow: var(--shadow); }
.message-card header { display: flex; gap: .7rem; align-items: center; }
.message-card header small { display: block; color: var(--muted); font-size: .8rem; }
.message-card p { margin: .8rem 0 0; font-size: 1.05rem; line-height: 1.55; }
.customer-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--order); color: white; font-weight: 800; }
.reply-list { display: grid; gap: .6rem; max-width: 720px; margin-top: 1rem; }
.reply { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; text-align: left; border: 2px solid var(--line); border-radius: var(--radius-md); background: white; line-height: 1.45; cursor: pointer; transition: transform .15s, border-color .15s; }
.reply:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--violet); }
.reply-letter { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cloud); font-weight: 800; }
.reply:disabled { cursor: default; opacity: .5; }
.reply.best { opacity: 1; border-color: #3fbf86; }
.reply.best .reply-letter { background: #e3f7ee; color: #1f7a52; }
.reply.chosen { opacity: 1; box-shadow: 0 0 0 3px var(--violet); }
.desk-result { display: flex; gap: .8rem; align-items: center; max-width: 720px; margin-top: 1rem; }
.desk-result[hidden] { display: none; }
.desk-result .pip-inline { flex: 1; margin: 0; }
.customer-face { font-size: 2.4rem; }
#desk-next { margin-top: 1rem; }

/* Departments */
.dept-doors { margin-top: 1.2rem; }
.door-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: .6rem; }
.door { position: relative; display: flex; gap: .9rem; align-items: center; padding: 1.1rem; text-align: left; border: 2px solid var(--line); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, border-color .15s; }
.door:hover:not(.locked) { transform: translateY(-2px); border-color: var(--violet); }
.door small { display: block; color: var(--muted); }
.door strong { font: 700 1.1rem "Outfit", sans-serif; }
.door.locked { cursor: default; opacity: .6; background: var(--cloud); box-shadow: none; }
.door.has-news { border-color: var(--violet); }
.door-icon { font-size: 2rem; }
.tag-campaign { background: #fde8f7; color: #9b2b7d; }

/* Marketing */
.budget-chip { display: flex; flex-direction: column; align-items: flex-end; }
.budget-chip strong { font: 800 1.6rem/1 "Outfit", sans-serif; color: var(--violet); }
.budget-chip small { color: var(--muted); }
.mkt-step { margin: 0 0 1rem; padding: 1.1rem; border-radius: var(--radius-md); background: white; box-shadow: var(--shadow); }
.mkt-step:disabled { opacity: .5; }
.mkt-step > div, .mkt-step > button { clear: both; }
.mkt-step { min-width: 0; }
.mkt-step legend { float: left; width: 100%; margin-bottom: .7rem; padding: 0; font: 700 1.1rem "Outfit", sans-serif; }
.mkt-finds { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; clear: both; }
.mkt-find { display: flex; gap: .5rem; align-items: center; padding: .5rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.mkt-find:has(input:checked) { border-color: var(--violet); background: #f5f1ff; }
.mkt-find input { position: absolute; opacity: 0; }
.mkt-find:has(input:focus-visible) { outline: 3px solid var(--cyan); }
.mkt-find img { width: 48px; height: 48px; object-fit: contain; }
.mkt-find small { display: block; color: var(--muted); font-size: .74rem; }
.link-button { margin-top: .6rem; padding: 0; border: 0; background: none; color: var(--violet); font-weight: 700; text-decoration: underline; cursor: pointer; }
.mkt-list { display: grid; gap: .5rem; clear: both; }
.choice.too-dear { opacity: .45; cursor: not-allowed; }
.mkt-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: .8rem; clear: both; }
.mkt-photo { display: grid; gap: .3rem; justify-items: center; cursor: pointer; }
.mkt-photo input { position: absolute; opacity: 0; }
.photo-frame { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border: 3px solid var(--line); border-radius: 14px; overflow: hidden; background: #fbfaff; }
.mkt-photo:has(input:checked) .photo-frame { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(136,103,232,.3); }
.mkt-photo:has(input:focus-visible) .photo-frame { outline: 3px solid var(--cyan); }
.photo-frame img { width: 80%; height: 80%; object-fit: contain; }
.photo-dark { background: #222; }
.photo-dark img { filter: brightness(.35) contrast(.8); }
.photo-busy { background: radial-gradient(circle at 20% 25%, #ffd84e 0 9%, transparent 10%), radial-gradient(circle at 78% 20%, #ff8a8f 0 11%, transparent 12%), radial-gradient(circle at 25% 80%, #6fe3f0 0 12%, transparent 13%), radial-gradient(circle at 80% 78%, #a58cf0 0 10%, transparent 11%), repeating-linear-gradient(45deg, #f4e1c1 0 8px, #ecd3ab 8px 16px); }
.photo-busy img { width: 42%; height: 42%; }
.mkt-launch { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: flex-end; margin-bottom: 1.2rem; }
.mkt-card { padding: 1.3rem; margin-bottom: 1.2rem; border-radius: var(--radius-md); background: white; box-shadow: var(--shadow); }
.mkt-running { display: flex; gap: 1rem; align-items: center; }
.mkt-big { font-size: 3rem; }
.funnel { margin: 1rem 0 .4rem; padding: 0; list-style: none; display: grid; gap: .9rem; }
.funnel-row { display: flex; justify-content: space-between; font-weight: 700; }
.funnel-bar { height: 14px; margin: .3rem 0; border-radius: 99px; background: var(--cloud); overflow: hidden; }
.funnel-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.funnel small { color: var(--muted); }
.funnel-rates { color: var(--muted); font-size: .85rem; }
.mkt-money { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0; }
.mkt-money div { padding: .8rem; border-radius: 12px; background: var(--cloud); text-align: center; }
.mkt-money small { display: block; color: var(--muted); font-size: .75rem; }
.mkt-money strong { font: 800 1.3rem "Outfit", sans-serif; }
.mkt-card .pip-note { background: var(--cloud); margin-bottom: 1rem; }
.mkt-history { margin-bottom: 1.2rem; }
.mkt-history ul { margin: .5rem 0 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.mkt-history li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .7rem 1rem; border-radius: 12px; background: white; }
.mkt-history li small { display: block; color: var(--muted); font-size: .78rem; }
.mkt-history .good { color: #1f7a52; }
.mkt-history .low { color: #9a5a00; }

/* Finance */
.fin-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.fin-tab { padding: .6rem 1rem; border: 2px solid var(--line); border-radius: 999px; background: white; font-weight: 700; cursor: pointer; }
.fin-tab[aria-selected="true"] { border-color: var(--violet); background: #f5f1ff; }
.fin-totals .fin-good strong, .mkt-money .fin-good strong { color: #1f7a52; }
.fin-totals .fin-low strong, .mkt-money .fin-low strong { color: #9a5a00; }
.fin-list { margin-bottom: 1.2rem; }
.fin-row { display: flex; justify-content: space-between; font-weight: 700; }
.fin-list li.out .funnel-bar span { background: linear-gradient(90deg, #ffb13d, var(--coral)); }
.fin-list li.in .funnel-bar span { background: linear-gradient(90deg, #3fbf86, var(--cyan)); }
.fin-pip { margin-bottom: 1rem; background: white !important; box-shadow: var(--shadow); }
.fin-product { display: flex; gap: 1rem; align-items: center; }
.fin-product img { width: 96px; height: 96px; object-fit: contain; border-radius: 14px; background: var(--cloud); }
.fin-slider { display: grid; gap: .4rem; margin: 1rem 0 .4rem; font-weight: 700; }
.fin-slider input { width: 100%; accent-color: var(--violet); }
.fin-chart { display: grid; grid-template-columns: repeat(9, 1fr); gap: .35rem; align-items: end; height: 140px; margin-top: .6rem; }
.fin-col { display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; }
.fin-col span { align-self: end; display: block; border-radius: 6px 6px 0 0; background: #d9d0f7; }
.fin-col.now span { background: var(--violet); }
.fin-col small { color: var(--muted); font-size: .68rem; }
.fin-cashflow > h2 { margin-bottom: .45rem; }
.fin-cashflow > p { max-width: 75ch; }
.fin-cash-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0; }
.fin-cash-totals > div { display: grid; gap: .25rem; padding: .9rem; border-radius: 14px; background: var(--cloud); }
.fin-cash-totals small { color: var(--muted); }
.fin-cash-totals strong { font-size: 1.25rem; }
.fin-good { color: #1f7a52; }
.fin-low { color: #9a5a00; }
.fin-calendar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; margin: 1rem 0; padding: 0; list-style: none; }
.fin-calendar-day { min-width: 0; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fin-calendar-day.cash-short { border-color: #df9d23; background: #fffaf0; }
.fin-calendar-day h3 { margin: 0 0 .65rem; font-size: .95rem; }
.fin-calendar-day ul { display: grid; gap: .5rem; min-height: 3rem; margin: 0; padding: 0; list-style: none; }
.fin-cash-event { display: flex; justify-content: space-between; gap: .3rem; padding-top: .45rem; border-top: 1px solid var(--line); font-size: .78rem; }
.fin-cash-event span { min-width: 0; }
.fin-cash-event strong { flex: 0 0 auto; }
.fin-cash-empty { color: var(--muted); font-size: .78rem; }
.fin-cash-closing { display: flex; justify-content: space-between; gap: .35rem; margin-top: .7rem; padding-top: .55rem; border-top: 2px solid var(--line); font-size: .8rem; font-weight: 700; }
.fin-cash-closing strong { flex: 0 0 auto; }
.fin-cashflow select { width: min(100%, 420px); margin: .2rem 0 .4rem; }
@media (max-width: 850px) { .fin-calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fin-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fin-cash-totals { grid-template-columns: 1fr; } }

/* Goods in */
.goods-head { display: flex; gap: 1rem; align-items: center; }
.goods-lines { display: grid; gap: 1rem; }
.goods-line { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding: 1.1rem; border: 2px solid transparent; border-radius: var(--radius-md); background: white; box-shadow: var(--shadow); }
.goods-line.right { border-color: #3fbf86; }
.goods-line.wrong-answer { border-color: #ffb13d; }
.goods-po { display: grid; gap: .3rem; align-content: start; }
.goods-po img { width: 80px; height: 80px; object-fit: contain; border-radius: 12px; background: var(--cloud); }
.crate-units { display: flex; flex-wrap: wrap; gap: .5rem; padding: .7rem; border-radius: 14px; background: repeating-linear-gradient(90deg, #e8d3b1 0 18px, #dfc59c 18px 20px); }
.unit { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 12px; background: white; }
.unit img { width: 85%; height: 85%; object-fit: contain; }
.unit.damaged img { transform: rotate(-12deg); filter: grayscale(.5); }
.unit.damaged::after { content: "💥"; position: absolute; right: -6px; top: -8px; font-size: 1.4rem; }
.unit.damaged::before { content: ""; position: absolute; inset: 20% 10%; background: linear-gradient(115deg, transparent 46%, #3a2a1a 47% 49%, transparent 50%), linear-gradient(70deg, transparent 55%, #3a2a1a 56% 57.5%, transparent 58.5%); z-index: 1; }
.goods-check { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; }
.goods-mark { padding: .5rem .8rem; border: 2px solid var(--line); border-radius: 999px; background: white; font-weight: 700; cursor: pointer; }
.goods-mark.chosen { border-color: var(--violet); background: #f5f1ff; }
.goods-mark.actual { border-color: #3fbf86; }
.goods-mark:disabled { cursor: default; }
.goods-verdict { grid-column: 1 / -1; margin: 0; font-weight: 700; }
.goods-actions { display: flex; gap: .6rem; margin-top: 1rem; }
.goods-actions [hidden] { display: none; }

/* Returns */
.returns-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1rem; align-items: start; }
.returns-item { text-align: center; }
.returns-item img { width: 180px; height: 180px; object-fit: contain; }
.returns-item img.worn { filter: sepia(.45) saturate(.7); }
.returns-item blockquote { margin: .6rem 0 0; font-style: italic; color: var(--muted); }
.inspect-list { display: grid; gap: .5rem; }
.inspect { display: grid; gap: .2rem; padding: .8rem 1rem; text-align: left; border: 2px dashed var(--line); border-radius: 14px; background: white; font-weight: 700; cursor: pointer; }
.inspect.done { border-style: solid; border-color: var(--cyan); background: #effbff; cursor: default; }
.inspect small { font-weight: 500; color: var(--ink); }
#returns-next { margin-top: 1rem; }

/* Fraud check, Stock count, Reviews desk */
.fraud-grid, .count-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.fraud-card, .count-bin { display: grid; gap: .6rem; align-content: start; padding: 1.1rem; border: 2px solid transparent; border-radius: var(--radius-md); background: white; box-shadow: var(--shadow); }
.fraud-card header, .count-bin header { display: flex; flex-direction: column; }
.fraud-card header span, .count-bin header span { color: var(--muted); font-size: .85rem; }
.fraud-card .fraud-head { flex-direction: row; gap: .8rem; align-items: center; }
.fraud-head img { flex: none; width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: var(--cloud); }
.fraud-head div { display: grid; }
.fraud-head small { color: var(--muted); font-size: .78rem; }
.fraud-card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; font-size: .9rem; }
.fraud-card.right, .count-bin.right, .review-card.right, .sub-card.right, .it-card.right { border-color: #3fbf86; }
.fraud-card.wrong-answer, .count-bin.wrong-answer, .review-card.wrong-answer, .sub-card.wrong-answer, .it-card.wrong-answer { border-color: #ffb13d; }

/* IT desk: a ticket, what is already known about it, and the first thing you would do. */
.it-list { display: grid; gap: 1rem; }
.it-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; align-items: center; }
.it-head:has(img) { grid-template-columns: 48px minmax(0, 1fr); }
.it-head img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: var(--cloud); }
.it-head small { display: block; color: var(--muted); font-size: .72rem; }
.it-report { margin: .7rem 0 .55rem; padding: .75rem .9rem; background: #eef4ff; border-radius: 12px; font-size: .86rem; line-height: 1.5; }
.it-clues { margin: 0 0 .2rem; padding-left: 1.1rem; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.it-clues li::marker { color: var(--violet); }

/* Substitutions desk */
.sub-list { display: grid; gap: 1rem; }
.sub-card header { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: .7rem; align-items: center; }
.sub-card header img { width: 54px; height: 54px; object-fit: contain; border-radius: 10px; background: var(--cloud); }
.sub-card header strong { display: block; }
.sub-card header small { color: var(--muted); font-size: .72rem; }
.sub-note { margin: .7rem 0 .2rem; padding: .7rem .85rem; background: #fff9df; border-radius: 12px; font-size: .84rem; line-height: 1.5; }
.sub-choices { display: grid; gap: .45rem; margin-top: .6rem; }
@media (min-width: 720px) { .sub-choices { grid-template-columns: 1fr 1fr; } .sub-choices .sub-skip { grid-column: 1 / -1; } }
.sub-choices .substitute-choice { grid-template-columns: 42px minmax(0, 1fr); }
.sub-choices .substitute-choice.chosen { border-color: var(--violet); box-shadow: 0 0 0 2px var(--violet); }
.sub-choices .substitute-choice.best { border-color: #3fbf86; background: #f2fbf7; }
.sub-choices .substitute-choice:disabled { cursor: default; }
.sub-skip { grid-template-columns: minmax(0, 1fr) !important; border-style: dashed; }

/* Shelf facing: untimed and unscored, so the only feedback is the find snapping square to the shelf edge. */
.facing-shelf { max-width: 760px; }
.facing-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; padding: 1.4rem .9rem .4rem; background: linear-gradient(180deg, #f7f6ff, #ece9fb); border-radius: 16px 16px 0 0; }
.facing-item { flex: 0 0 auto; width: 84px; height: 96px; padding: 0; border: 0; background: none; cursor: pointer; transform: translate(0, calc(var(--drop, 0px) - var(--back, 0px))) rotate(var(--tilt, 0deg)); transition: transform .28s cubic-bezier(.2, .9, .3, 1.25), filter .28s; }
.facing-item img { width: 100%; height: 100%; object-fit: contain; }
.facing-item:not(.tidy):hover, .facing-item:not(.tidy):focus-visible { filter: brightness(1.04) drop-shadow(0 6px 10px rgba(60, 48, 110, .18)); }
.facing-item:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.facing-item.tidy { cursor: default; }
.facing-lip { height: 12px; background: linear-gradient(180deg, #d8d3f0, #bdb6e2); border-radius: 0 0 8px 8px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5); }
.facing-count { margin-top: .7rem; color: var(--muted); font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .facing-item { transition: none; } }
.count-shelf { position: relative; height: 130px; border-radius: 12px; background: linear-gradient(#f4f1fb, #e8e3f6); overflow: hidden; }
.count-shelf img { position: absolute; width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.15)); }
.count-stepper { display: flex; align-items: center; gap: .5rem; }
.count-stepper button { width: 38px; height: 38px; border: 2px solid var(--line); border-radius: 50%; background: white; font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.count-stepper button:disabled { cursor: default; opacity: .5; }
.count-stepper output { min-width: 2ch; font: 800 1.4rem "Outfit", sans-serif; text-align: center; }
.count-stepper small { color: var(--muted); }
.review-list { display: grid; gap: 1rem; max-width: 760px; }
.review-card { border: 2px solid transparent; }
.review-card header { display: flex; gap: .8rem; align-items: center; }
.review-card header img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: var(--cloud); }
.review-card header div { display: grid; }
.review-card header small { color: var(--muted); }
.review-stars { color: #f5b400; letter-spacing: .08em; }
.review-card > p { margin: .7rem 0; font-size: 1.02rem; line-height: 1.5; }
.review-listing-link { padding: .65rem .8rem; border-left: 3px solid #8b72df; border-radius: 0 8px 8px 0; color: #57418f; background: #f3efff; font-size: .82rem !important; }
.review-card .reply-list { margin-top: .4rem; }
.door-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.doors-subhead { margin-top: 1.6rem; }
.door-grid-quick .door { padding: .8rem 1rem; }
.door-grid-quick .door-icon { font-size: 1.6rem; }

/* Route map (report) */
.route-map { margin: 0 0 1rem; padding: .8rem; border-radius: var(--radius-md); background: var(--cloud); }
.route-map svg { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
.map-cross { fill: #ebe7f6; }
.map-bin { fill: #fff; stroke: #d9d3ee; }
.map-bin.picked { fill: #e3f7ee; stroke: #3fbf86; stroke-width: 2; }
.map-you { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.map-pip { fill: none; stroke: #3fbf86; stroke-width: 3; stroke-dasharray: 6 5; stroke-linejoin: round; }
.map-home { fill: var(--ink); }
.map-label { font: 700 11px "DM Sans", sans-serif; fill: var(--muted); }
.route-map figcaption { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: center; margin-top: .5rem; font-size: .8rem; color: var(--muted); }
.key::before { content: ""; display: inline-block; width: 18px; height: 0; margin-right: .35rem; vertical-align: middle; border-top: 3px solid var(--violet); }
.key-pip::before { border-top: 3px dashed #3fbf86; }

/* Stock */
.bin-qty { position: absolute; top: 4px; right: 5px; padding: 0 .3rem; border-radius: 99px; background: var(--cloud); color: var(--ink); font-size: .66rem; font-weight: 800; }
.bin-qty.empty { background: #ffe5d6; color: #9a3b00; }
.missed-card { border-top-color: #ffb13d; background: #fffaf0; }
.stock-aisle { padding: 1rem; }
.stock-scroll { overflow-x: auto; }
.stock-grid { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .88rem; }
.stock-grid th { padding: .4rem; color: var(--muted); font-size: .72rem; font-weight: 800; text-align: left; border-bottom: 1px solid var(--line); }
.stock-grid td { padding: .45rem .4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.stock-grid td small { color: var(--muted); }
.stock-find { display: flex; gap: .5rem; align-items: center; }
.stock-find img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--cloud); }
.stock-find small { display: block; font-size: .72rem; }
.stock-chip { display: inline-block; padding: .08rem .45rem; border-radius: 99px; background: #e3f7ee; color: #1f7a52; font-size: .7rem; font-weight: 800; }
.stock-out .stock-chip { background: #ffe5d6; color: #9a3b00; }
.stock-low .stock-chip { background: #fff3c4; color: #7a5b00; }
.stock-over .stock-chip { background: #ece6ff; color: #5b3fc4; }
.stock-grid .count-stepper button { width: 30px; height: 30px; font-size: 1rem; }
.stock-grid .count-stepper output { font-size: 1.1rem; }

/* Report */
/* Listing studio and buying desk */
.business-layout { display: grid; grid-template-columns: minmax(210px, 270px) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.business-work { min-width: 0; }
.business-range { position: sticky; top: 1rem; }
.listing-find-list { display: grid; gap: .4rem; max-height: 65vh; overflow-y: auto; margin-top: .7rem; padding: 3px; }
.listing-find { display: flex; gap: .6rem; align-items: center; padding: .65rem; text-align: left; color: var(--ink); background: white; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.listing-find img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.listing-find small { display: block; margin-top: .2rem; color: var(--muted); }
.listing-find.selected { border-color: var(--violet); background: #f5f1ff; }
.supplier-facts { padding: 1rem; background: #f1faf6; border-radius: 12px; }
.supplier-facts summary { cursor: pointer; font-weight: 800; }
.listing-field { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
.listing-field legend { font-weight: 800; margin-bottom: .55rem; }
.listing-options { display: grid; gap: .5rem; }
.listing-option { display: flex; align-items: center; gap: .6rem; padding: .75rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; line-height: 1.5; }
.listing-option:has(input:checked), .buying-candidate:has(input:checked) { border-color: var(--violet); background: #f5f1ff; }
.listing-option input, .buying-candidate input, .business-confirm input { accent-color: var(--violet); flex: none; width: 18px; height: 18px; }
.listing-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.listing-photos .listing-option { flex-direction: column; text-align: center; font-size: .85rem; }
.listing-photo { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #edeaf5; border-radius: 12px; }
.listing-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.listing-photo.hype img { transform: scale(1.85); }
.listing-photo.vague img { filter: brightness(.25); }
.photo-booth { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(0, 1.1fr); gap: 1rem; align-items: center; padding: .85rem; border: 1px solid var(--line); border-radius: 16px; background: #faf9ff; }
.photo-booth-preview { position: relative; display: grid; place-items: center; min-height: 220px; overflow: hidden; border: 1px solid #e1d9f4; border-radius: 14px; background: radial-gradient(circle at 50% 32%, #fff 0 24%, transparent 64%), linear-gradient(145deg, #eeeaff, #e8f9fa 65%, #fff8df); }
.photo-booth-preview > span { position: absolute; z-index: 1; top: .55rem; left: .6rem; color: #665a88; font-size: .58rem; font-weight: 800; letter-spacing: .12em; }
.photo-booth-preview img { width: 72%; height: 72%; max-height: 175px; object-fit: contain; transform: rotate(var(--booth-tilt)) scale(var(--booth-zoom)); transition: transform .25s ease, filter .25s ease; }
.photo-booth-preview[data-light="dim"] img { filter: brightness(.48) saturate(.7); }
.photo-booth-preview[data-light="glare"] img { filter: brightness(1.28) contrast(.66); }
.photo-booth-preview[data-light="glare"]::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(125deg, transparent 20%, rgba(255,255,255,.65) 50%, transparent 75%); }
.photo-booth-controls { display: grid; gap: .55rem; min-width: 0; }
.booth-checks { margin: 0; color: #5d3fbd; font-size: .82rem; font-weight: 800; }
.booth-setting { display: grid; gap: .3rem; }
.booth-setting > strong { font-size: .75rem; }
.booth-setting > div { display: flex; flex-wrap: wrap; gap: .35rem; }
.booth-setting button { min-height: 34px; padding: .3rem .48rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.booth-setting button[aria-pressed="true"] { border-color: var(--violet); color: #5d3fbd; background: #f0ebff; }
.photo-booth-controls .primary-button { min-height: 40px; }
.photo-booth-controls .note { margin: 0; font-size: .72rem; }
.listing-preview { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 1rem; align-items: start; }
.listing-preview h3 { margin-top: 0; }
.business-metrics { width: 100%; border-collapse: collapse; text-align: left; margin: .5rem 0; }
.business-metrics caption { text-align: left; color: var(--muted); margin-bottom: .5rem; }
.business-metrics th, .business-metrics td { padding: .6rem; border-bottom: 1px solid var(--line); font-size: .85rem; }
.business-label { display: block; font-weight: 700; margin: .8rem 0 .4rem; }
#buying-body select { max-width: 100%; width: 100%; padding: .8rem; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font: inherit; }
.buying-candidates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.buying-candidate { display: flex; flex-direction: column; gap: .4rem; padding: 1rem; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; min-width: 0; }
.buying-candidate img { width: 100%; height: 140px; object-fit: contain; }
.buying-candidate dl { margin: .6rem 0; font-size: .85rem; }
.buying-candidate dl div { display: flex; gap: .5rem; justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.buying-candidate dd { margin: 0; font-weight: 800; text-align: right; }
.buying-candidate p { font-size: .85rem; }
.business-confirm { display: flex; align-items: flex-start; gap: .6rem; margin: 1.2rem 0; line-height: 1.5; }
#listing-body button:focus-visible, #buying-body button:focus-visible, .listing-option:focus-within, .buying-candidate:focus-within { outline: 3px solid #176b79; outline-offset: 3px; }
@media (max-width: 760px) {
  .business-layout { grid-template-columns: 1fr; }
  .business-range { position: static; }
  .listing-find-list { max-height: 190px; }
  .buying-candidates { grid-template-columns: 1fr; }
  .buying-candidate img { height: 120px; }
  .listing-preview { grid-template-columns: 85px minmax(0, 1fr); }
  .photo-booth { grid-template-columns: 1fr; }
  .photo-booth-preview { min-height: 190px; }
}
@media (max-width: 420px) {
  .listing-photos { grid-template-columns: 1fr; }
  .listing-photos .listing-option { display: grid; grid-template-columns: auto 65px 1fr; text-align: left; }
}

.report-card { max-width: 640px; margin: 0 auto; padding: clamp(1.2rem, 4vw, 2rem); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow); text-align: center; }
.report-stars { margin: .3rem 0 1rem; font-size: 2.2rem; letter-spacing: .1em; color: #f5b400; }
.report-list { margin: 0 0 1rem; padding: 0; list-style: none; text-align: left; }
.report-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.report-list li:empty { display: none; }
.report-list span { color: var(--muted); }
.report-list strong { text-align: right; }
.report-list small { color: var(--muted); font-weight: 500; }
.report-card .pip-note { text-align: left; }
.report-rewards ul { margin: 1rem 0; padding: 0; list-style: none; display: grid; gap: .4rem; font-weight: 700; }
.reward-sparks { color: var(--violet); }
.reward-level { color: #1f7a52; }
.report-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

@media (max-width: 1180px) {
  .staff-topbar { grid-template-columns: 1fr auto; }
  .staff-steps { grid-column: 1 / -1; grid-row: 2; justify-content: center; overflow-x: auto; }
}
@media (min-width: 1101px) and (max-width: 1180px) {
  .staff-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
@media (max-width: 900px) {
  .staff-hero, .pick-layout, .pack-layout, .returns-layout, .goods-line { grid-template-columns: 1fr; }
  .shift-path ol { grid-template-columns: repeat(2, 1fr); }
  .staff-cards, .courier-grid, .door-grid { grid-template-columns: 1fr; }
  .mkt-money { grid-template-columns: 1fr; }
  .pick-list { position: static; }
  .warehouse { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .staff-steps li { flex-basis: 42px; font-size: .6rem; }
  .staff-steps li + li::after { left: -10px; width: 20px; }
  .warehouse { gap: .6rem; padding: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .walker, .bin, .box-shape, .box-fill, .courier, .reply { transition: none; }
  .bin.flash-good, .bin.flash-miss, .box-shape.sealed::after { animation: none; }
}
html[data-motion="reduce"] .facing-item { transition: none; }
html[data-motion="reduce"] .walker, html[data-motion="reduce"] .bin, html[data-motion="reduce"] .box-shape, html[data-motion="reduce"] .box-fill, html[data-motion="reduce"] .courier, html[data-motion="reduce"] .reply { transition: none; }
html[data-motion="reduce"] .bin.flash-good, html[data-motion="reduce"] .bin.flash-miss, html[data-motion="reduce"] .box-shape.sealed::after { animation: none; }
