@font-face {
  font-family: Fraunces;
  src: url("/fonts/Fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("/fonts/Geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fdfbf9;
  --white: #ffffff;
  --dew: #f7efe9;
  --warm: #fff5ea;
  --ink: #171717;
  --cocoa: #2b1a07;
  --muted: #62584e;
  --orange: #ff6f1e;
  --peach: #ffbd89;
  --peach-hover: #ffa969;
  --sienna: #a93906;
  --emerald: #106b4c;
  --emerald-bg: #e7f8ef;
  --mint: #8af0be;
  --rule: #daccc1;
  --shadow: 0 3px 0 var(--ink);
  --shadow-sm: 0 1.5px 0 var(--ink);
  --display: Fraunces, Georgia, serif;
  --ui: Geist, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { min-height: 100dvh; font: 15px/1.48 var(--ui); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button[disabled] { cursor: default; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #075caa; outline-offset: 3px; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }

.brand, h1, h2, h3, .pill, .story-name, .marker-number, .ticket-number, .pickup-code {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
}

h1, h2, h3, p { margin: 0; }
h1 {
  color: var(--cocoa);
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  line-height: 1.02;
  font-weight: 630;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}
h2 {
  color: var(--cocoa);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.1;
  font-weight: 620;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}
h3 {
  color: var(--cocoa);
  font-size: 1.1rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.shell {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0 20px 56px;
}
.shell.narrow { width: min(560px, 100%); }
.shell.guest-shell {
  width: min(1040px, 100%);
  padding: 0 16px calc(92px + env(safe-area-inset-bottom));
}

/* Top bars */
.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.brand {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--cocoa);
  white-space: nowrap;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand svg { width: 24px; height: 24px; flex: none; }

.nav-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 13px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-tab svg { width: 16px; height: 16px; flex: none; }
.nav-tab.active { background: var(--peach); box-shadow: var(--shadow-sm); }
.nav-tab:hover:not(.active) { background: var(--dew); }
.badge-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--ui);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Guest compact sticky header */
.guest-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(253 251 249 / 94%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  margin: 0 -16px 14px;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.guest-id {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ticket-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--peach);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.guest-story-name {
  font-weight: 600;
  color: var(--cocoa);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.step-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--white);
}
.step-dot.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.step-dot.done {
  border-color: var(--emerald);
  background: var(--emerald-bg);
  color: var(--emerald);
}

/* Shared controls */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 17px;
  text-align: center;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 580;
  font-size: 0.96rem;
  box-shadow: var(--shadow-sm);
  transition: transform 80ms ease, background-color 120ms ease;
}
.pill svg { width: 17px; height: 17px; flex: none; }
.pill.strong { border-width: 2px; background: var(--peach); font-weight: 660; }
.pill.emerald { border-width: 2px; background: var(--emerald); color: var(--white); font-weight: 640; }
.pill:hover:not(:disabled) { background: var(--dew); }
.pill.strong:hover:not(:disabled) { background: var(--peach-hover); }
.pill.emerald:hover:not(:disabled) { background: #0c573d; }
.pill:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.pill:disabled { opacity: 0.45; box-shadow: none; }
.pill.compact { min-height: 36px; padding: 5px 12px; font-size: 0.85rem; }
.pill.block { width: 100%; }

.link-button {
  background: none;
  border: 0;
  padding: 6px 4px;
  min-height: 38px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}
.link-button:hover { color: var(--ink); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 4px 11px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.84rem;
  font-weight: 560;
  color: var(--ink);
  white-space: nowrap;
}
.chip svg { width: 15px; height: 15px; flex: none; }
.chip:hover:not(:disabled) { border-color: var(--ink); background: var(--warm); }
.chip.active {
  border-color: var(--ink);
  background: var(--peach);
  font-weight: 650;
  box-shadow: 0 1px 0 var(--ink);
}
.chip:disabled { opacity: 0.45; }

.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; align-items: center; }
.card {
  padding: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.card.soft { background: var(--dew); box-shadow: none; }
.card.flat { box-shadow: none; }

.intro { margin-bottom: 18px; }
.intro p { color: var(--muted); margin-top: 6px; max-width: 56ch; }
.intro strong { color: var(--sienna); font-weight: 640; }

.field { display: grid; gap: 6px; }
.field label { font-weight: 620; color: var(--cocoa); font-size: 0.92rem; }
input:not([type="checkbox"]), textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  font-size: 16px;
}
textarea { resize: vertical; min-height: 76px; }

.info { color: var(--muted); font-size: 0.88rem; }
.error {
  padding: 10px 13px;
  margin: 10px 0;
  border: 1.5px solid #bc4529;
  border-radius: 10px;
  background: #fff0e8;
  color: #822710;
  font-size: 0.9rem;
  font-weight: 550;
}
.notice {
  padding: 10px 13px;
  margin: 10px 0;
  border: 1.5px solid var(--emerald);
  border-radius: 10px;
  background: var(--emerald-bg);
  color: #0b4a34;
  font-size: 0.9rem;
  font-weight: 550;
}

/* Booth Capture Station */
.story-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.story-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  text-align: left;
  transition: transform 90ms ease, background-color 120ms ease;
}
.story-card:hover { background: var(--warm); }
.story-card.selected {
  background: var(--warm);
  border-width: 2px;
  box-shadow: var(--shadow);
}
.story-thumb {
  width: 68px;
  height: 68px;
  flex: none;
  border-radius: 9px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background: #e7eff5;
}
.story-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; }
.story-meta { min-width: 0; }
.story-card .story-name {
  display: block;
  font-size: 1.12rem;
  font-weight: 650;
  color: var(--cocoa);
  line-height: 1.1;
}
.story-card .story-desc {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.selected-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--peach);
  border: 1px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.booth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.camera-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background: #1d1b19;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.camera-placeholder {
  color: var(--paper);
  text-align: center;
  padding: 28px;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.countdown-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(23 23 23 / 35%);
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(5rem, 15vw, 8rem);
  font-weight: 700;
  text-shadow: 0 4px 18px rgb(0 0 0 / 50%);
}

.consent-card {
  padding: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--dew);
}
.consent-card label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 590;
  font-size: 0.92rem;
}
.consent-card input {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--ink);
}
.consent-details { margin: 8px 0 0 30px; color: var(--muted); font-size: 0.82rem; }

/* Face marking stage */
.photo-stage {
  position: relative;
  display: block;
  width: 100%;
  background: #ede6df;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}
.photo-stage img { width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.markers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.marker {
  position: absolute;
  border: 2.5px solid var(--white);
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 1.5px var(--ink);
}
.marker.draft { border-style: dashed; }
.marker-number {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0 auto auto 0;
  transform: translate(-2px, -2px);
  color: var(--ink);
  background: var(--peach);
  border: 1.5px solid var(--ink);
  border-radius: 8px 0 8px 0;
  font-size: 0.85rem;
  font-weight: 700;
}
.people-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.guest-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--warm);
  font-size: 0.88rem;
  font-weight: 600;
}
.guest-chip button {
  background: none;
  border: 0;
  padding: 0 2px;
  font-weight: 700;
  color: var(--sienna);
}

/* QR Handoff Modal / Screen */
.qr-handoff {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.qr-frame {
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
.qr-frame img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  image-rendering: pixelated;
}
.ticket-number {
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 700;
  color: var(--cocoa);
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-size: 0.85rem;
  font-weight: 620;
  background: var(--dew);
}
.status-pill.ready { background: var(--emerald-bg); border-color: var(--emerald); color: var(--emerald); }
.status-pill.working { background: var(--warm); border-color: var(--sienna); color: var(--sienna); }
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* Recent sessions list */
.recent-panel { margin-top: 26px; }
.recent-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.recent-item {
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  background: var(--white);
  display: grid;
  gap: 8px;
}
.recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Guest workspace: Artwork + Inline Edit Sheet */
.guest-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.artwork-column { min-width: 0; }

.artwork-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 13px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  touch-action: pan-y;
}
.artwork-stage.has-region,
.artwork-stage.is-drawing {
  touch-action: none;
  user-select: none;
}
.artwork-stage.is-drawing { cursor: crosshair; }
.artwork-stage img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  pointer-events: none;
}

.compare-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--peach);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Tappable guest tiles overlay on cast sheet */
.tap-tiles {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.tap-tile {
  position: absolute;
  border: 2px solid transparent;
  background: transparent;
  padding: 0;
  border-radius: 10px;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.tap-tile:hover, .tap-tile:focus-visible {
  border-color: var(--orange);
  background: rgb(255 189 137 / 14%);
}
.tap-tile-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: rgb(255 255 255 / 92%);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}
.tap-tile:hover .tap-tile-badge { background: var(--peach); }

/* Interactive spotlight region box + 4 corner handles */
.region-box {
  position: absolute;
  z-index: 5;
  border: 3px solid var(--mint);
  border-radius: 6px;
  box-shadow: 0 0 0 1.5px #0b4a34, inset 0 0 0 1px #0b4a34, 0 0 0 100vmax rgb(23 23 23 / 46%);
  cursor: move;
  touch-action: none;
}
.region-tag {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  max-width: min(260px, 85vw);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid #0b4a34;
  background: var(--mint);
  color: #093525;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 2px 6px rgb(0 0 0 / 22%);
}
.region-tag.is-inside {
  bottom: auto;
  top: 6px;
  left: 6px;
}

.region-handle {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  touch-action: none;
  z-index: 6;
}
.region-handle::after {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid #0b4a34;
  box-shadow: 0 1px 4px rgb(0 0 0 / 35%);
}
.region-handle[data-handle="nw"] { top: -22px; left: -22px; cursor: nwse-resize; }
.region-handle[data-handle="ne"] { top: -22px; right: -22px; cursor: nesw-resize; }
.region-handle[data-handle="sw"] { bottom: -22px; left: -22px; cursor: nesw-resize; }
.region-handle[data-handle="se"] { bottom: -22px; right: -22px; cursor: nwse-resize; }

/* Version strip & before/after compare */
.version-bar {
  max-width: 520px;
  margin: 10px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.version-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.version-note {
  max-width: 520px;
  margin: 6px auto 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* Edit budget pill */
.budget-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--warm);
  font-size: 0.82rem;
  font-weight: 650;
}
.budget-pill.empty { background: var(--dew); color: var(--muted); border-color: var(--rule); }
.budget-dots { display: inline-flex; gap: 4px; }
.budget-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--orange);
}
.budget-dot.used { background: transparent; border-color: var(--muted); }

/* Inline edit drawer / panel */
.control-panel {
  display: grid;
  gap: 14px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.proposal-card {
  padding: 13px;
  border: 1.5px solid var(--emerald);
  border-radius: 12px;
  background: var(--emerald-bg);
  display: grid;
  gap: 6px;
}
.proposal-target { font-weight: 700; color: #093525; font-size: 0.92rem; }
.proposal-summary { color: #0f4733; font-size: 0.9rem; }
.proposal-hint { font-size: 0.79rem; color: #225e49; }

/* Progress card */
.progress-card {
  padding: 20px;
  border: 1.5px solid var(--ink);
  background: var(--dew);
  border-radius: 16px;
  display: grid;
  gap: 12px;
}
.progress-band {
  position: relative;
  height: 6px;
  overflow: hidden;
  background: #ead5c7;
  border-radius: 999px;
}
.progress-band::after {
  content: "";
  position: absolute;
  width: 36%;
  inset: 0 auto 0 0;
  background: var(--sienna);
  border-radius: inherit;
  animation: slide 1.5s ease-in-out infinite alternate;
}
@keyframes slide { to { left: 64%; } }

/* Sticky bottom CTA bar on phones */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: rgb(253 251 249 / 96%);
  backdrop-filter: blur(8px);
  border-top: 1.5px solid var(--ink);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.sticky-cta-inner {
  width: min(1008px, 100%);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
.sticky-cta-inner .pill { flex: 1; max-width: 280px; }

/* Print confirmation sheet */
.confirm-banner {
  padding: 15px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--warm);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

/* Guest Print Ticket Screen */
.ticket-card {
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.ticket-card.is-ready {
  background: var(--emerald-bg);
  border-color: var(--emerald);
  box-shadow: 0 3px 0 var(--emerald);
}
.ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1.5px dashed var(--rule);
}
.print-steps {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.print-step {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--muted);
}
.print-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: var(--white);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 1px;
}
.print-step.done { color: var(--ink); }
.print-step.done .print-step-dot {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--white);
}
.print-step.active { color: var(--cocoa); font-weight: 640; }
.print-step.active .print-step-dot {
  background: var(--peach);
  border-color: var(--ink);
  color: var(--ink);
}
.print-step-sub { display: block; font-size: 0.83rem; font-weight: 400; color: var(--muted); }

/* Print Station Dashboard */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat-box {
  padding: 13px 15px;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  background: var(--white);
}
.stat-box strong {
  display: block;
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--cocoa);
}
.stat-box span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

.queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}
.queue-card {
  padding: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 15px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
}
.queue-card.status-ready { border-color: var(--emerald); background: var(--emerald-bg); }
.queue-card.status-printing { background: var(--warm); }
.queue-top {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.queue-thumb {
  width: 88px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  overflow: hidden;
  background: var(--dew);
}
.queue-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Pickup Display Board */
.pickup-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.pickup-col {
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  min-height: 55vh;
}
.pickup-col.ready-col {
  background: var(--emerald-bg);
  border-color: var(--emerald);
}
.pickup-codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.pickup-code {
  padding: 16px 12px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  text-align: center;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--cocoa);
  box-shadow: var(--shadow-sm);
}

.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;
}

/* Mobile refinements */
@media (max-width: 820px) {
  .booth-grid, .qr-handoff, .guest-workspace, .pickup-board {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-strip { grid-template-columns: 1fr; gap: 8px; }
  .stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-workspace { gap: 14px; }
  .artwork-stage img {
    max-height: 52dvh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }
  .guest-workspace.is-editing .artwork-stage img {
    max-height: 40dvh;
  }
  .artwork-stage {
    width: fit-content;
    max-width: 100%;
  }
  .sticky-cta { display: block; }
  .card-primary-actions { display: none; }
  .sticky-cta-inner .pill { max-width: none; font-size: 0.92rem; padding: 8px 12px; }
}

@media (max-width: 520px) {
  .shell { padding: 0 14px 42px; }
  .step-dot span { display: none; }
  .guest-story-name { max-width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Dedicated 4R print sheet (used by Print Station manual print or guest print) */
#print-sheet { display: none; }

@page {
  size: 4in 6in;
  margin: 0;
}
@media print {
  html, body { width: 4in; height: 6in; margin: 0; padding: 0; background: #ffffff; }
  #app { display: none !important; }
  #print-sheet {
    display: block !important;
    width: 4in;
    height: 6in;
    margin: 0;
    padding: 0;
  }
  #print-sheet img {
    display: block;
    width: 4in;
    height: 6in;
    object-fit: contain;
    print-color-adjust: exact;
  }
}
