:root {
  color-scheme: light;
  --bg: #fff8fb;
  --ink: #34282f;
  --muted: #7c6872;
  --panel: #ffffff;
  --line: #efd8e1;
  --accent: #e86f9d;
  --accent-strong: #9d3d65;
  --accent-soft: #ffe3ef;
  --blue: #9fcbe9;
  --yellow: #f4c85e;
  --mint: #a8d8c6;
  --danger: #d74d5d;
  --shadow: 0 18px 46px rgba(146, 83, 113, 0.18);
  --lace-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 -1px 0 rgba(218, 157, 180, 0.2) inset;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(232, 111, 157, 0.055) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(-45deg, rgba(159, 203, 233, 0.045) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, #fff9fc 0%, #fff4e3 48%, #f6fbff 100%);
}

.kiosk-page:not([hidden]),
.settings-page:not([hidden]) {
  animation: page-soft-enter 240ms ease both;
}

@keyframes page-soft-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button,
input,
select {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

#photoInput,
#garmentInput,
.reference-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.kiosk-page {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: 100vw;
  height: 100dvh;
  padding: 12px;
}

.kiosk-page.is-queue-hidden .queue-panel {
  display: none;
}

.queue-panel,
.settings-page,
.panel-section,
.choice-panel,
.modal-panel {
  border: 1px solid rgba(218, 157, 180, 0.36);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0;
}

p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  position: absolute;
  left: 24px;
  top: 22px;
  z-index: 6;
  display: none;
  max-width: min(520px, calc(100vw - 160px));
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(232, 111, 157, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 252, 0.94);
  box-shadow: 0 10px 26px rgba(146, 83, 113, 0.16);
  color: var(--accent-strong);
  font-weight: 850;
}

.status-pill.is-visible {
  display: block;
}

.kiosk-page .status-pill {
  display: none !important;
}

.kiosk-top-actions {
  position: absolute;
  right: 24px;
  top: 20px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-fab {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(232, 111, 157, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 252, 0.92);
  color: var(--accent-strong);
  box-shadow: 0 10px 26px rgba(146, 83, 113, 0.16);
  font-weight: 900;
  cursor: pointer;
}

.settings-fab:hover,
.ghost-button:hover,
.tool-button:hover,
.mini-button:hover {
  border-color: rgba(232, 111, 157, 0.48);
  background: #fff0f6;
}

.tool-button,
.ghost-button,
.mini-button,
.garment-card,
.reference-slot,
.wide-upload {
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.tool-button:active,
.ghost-button:active,
.mini-button:active,
.garment-card:active,
.reference-slot:active,
.wide-upload:active {
  transform: translateY(1px);
}

.tool-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: var(--lace-shadow);
}

.tool-button {
  color: var(--accent-strong);
}

.ghost-button {
  color: var(--accent-strong);
  font-size: 13px;
}

.kiosk-stage {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(218, 157, 180, 0.38);
  background:
    repeating-linear-gradient(45deg, rgba(232, 111, 157, 0.08) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(-45deg, rgba(159, 203, 233, 0.08) 0 1px, transparent 1px 36px),
    linear-gradient(145deg, #fffafd 0%, #fff2d5 55%, #edf8ff 100%);
  box-shadow: var(--shadow);
}

.kiosk-stage::before,
.kiosk-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.kiosk-stage::before {
  inset: 12px;
  z-index: 1;
  border: 1px dashed rgba(232, 111, 157, 0.26);
  border-radius: 18px;
}

.kiosk-stage::after {
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 74px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 18px, rgba(255, 229, 238, 0.85) 18px 36px),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 250, 252, 0.76));
  opacity: 0.48;
}

.stage-boutique-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.ig-follow-card {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: min(540px, calc(100% - 56px));
  min-height: 176px;
  padding: 14px 22px 14px 14px;
  border: 3px solid rgba(232, 111, 157, 0.44);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 235, 246, 0.97) 55%, rgba(255, 246, 206, 0.95)),
    #fff;
  box-shadow:
    0 24px 58px rgba(146, 83, 113, 0.26),
    0 0 0 9px rgba(255, 255, 255, 0.56),
    inset 0 -8px 0 rgba(232, 111, 157, 0.06);
  color: var(--accent-strong);
  letter-spacing: 0;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.ig-qr {
  display: block;
  width: 150px;
  height: 150px;
  border: 7px solid #fff;
  border-radius: 22px;
  box-shadow:
    0 14px 28px rgba(146, 83, 113, 0.18),
    0 0 0 2px rgba(232, 111, 157, 0.14);
}

.ig-follow-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ig-follow-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c43a75;
  font-size: 18px;
  font-weight: 950;
}

.ig-icon {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ig-follow-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 950;
  line-height: 0.98;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-handle {
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-follow-copy small {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #e86f9d;
  color: var(--accent-strong);
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  padding: 9px 14px;
  box-shadow: 0 8px 18px rgba(157, 61, 101, 0.16);
}

.ig-follow-card:hover {
  border-color: rgba(232, 111, 157, 0.46);
  background: #fff0f6;
}

.kiosk-page.is-capturing .stage-action-stack,
.kiosk-page.is-capturing .ig-follow-card,
.kiosk-page.is-capturing .stage-boutique-layer,
.kiosk-page.is-capturing .kiosk-top-actions {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.stage-logo-watermark {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 134px;
  opacity: 0.16;
  filter: saturate(0.95);
}

.stage-star,
.stage-heart,
.stage-ribbon {
  position: absolute;
  display: grid;
  place-items: center;
  color: rgba(157, 61, 101, 0.48);
  font-weight: 900;
  line-height: 1;
}

.stage-star::before {
  content: "✦";
  font-size: 34px;
}

.stage-heart::before {
  content: "♡";
  font-size: 42px;
}

.stage-ribbon {
  width: 84px;
  height: 34px;
  border-radius: 999px 999px 12px 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 218, 232, 0.86)),
    #fff2f7;
  border: 1px solid rgba(232, 111, 157, 0.22);
  box-shadow: 0 12px 24px rgba(146, 83, 113, 0.12);
}

.stage-ribbon::before,
.stage-ribbon::after {
  content: "";
  position: absolute;
  bottom: -12px;
  width: 30px;
  height: 20px;
  background: #ffe0ec;
  border: 1px solid rgba(232, 111, 157, 0.18);
}

.stage-ribbon::before {
  left: 8px;
  transform: skewY(18deg);
}

.stage-ribbon::after {
  right: 8px;
  transform: skewY(-18deg);
}

.stage-star-one {
  right: 17%;
  top: 18%;
}

.stage-star-two {
  left: 18%;
  top: 26%;
  transform: scale(0.68) rotate(12deg);
}

.stage-heart-one {
  right: 10%;
  bottom: 20%;
  color: rgba(244, 200, 94, 0.64);
}

.stage-ribbon-one {
  left: 12%;
  top: 16%;
  transform: rotate(-8deg);
  opacity: 0.5;
}

#camera,
#tryOnCanvas,
#resultImage {
  width: 100%;
  height: 100%;
  min-height: 0;
}

#camera {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

#tryOnCanvas {
  position: relative;
  z-index: 0;
  display: block;
  touch-action: none;
}

#resultImage {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  object-fit: contain;
  background: #fff8fb;
}

.stage-action-stack {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(42vw, 372px);
  min-width: 268px;
  transform: translate(-50%, -50%);
}

.start-button,
.pickup-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 122px;
  padding: 20px 32px;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background:
    linear-gradient(135deg, #ff8eb8 0%, #e86f9d 45%, #f4c85e 100%);
  color: #fff;
  box-shadow:
    0 22px 54px rgba(157, 61, 101, 0.24),
    0 0 0 10px rgba(255, 255, 255, 0.54),
    inset 0 -8px 0 rgba(157, 61, 101, 0.1);
  cursor: pointer;
}

.pickup-button {
  min-height: 68px;
  background:
    linear-gradient(135deg, #ffffff 0%, #fff0f7 58%, #fff4c6 100%);
  color: var(--accent-strong);
  box-shadow:
    0 18px 38px rgba(157, 61, 101, 0.18),
    0 0 0 8px rgba(255, 255, 255, 0.48),
    inset 0 -5px 0 rgba(232, 111, 157, 0.08);
}

.start-button span,
.pickup-button span {
  display: block;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.start-button span {
  font-size: clamp(44px, 6vw, 74px);
}

.pickup-button span {
  font-size: clamp(30px, 3.4vw, 44px);
}

.start-button::before,
.start-button::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 54px;
  height: 38px;
  border-radius: 50% 50% 42% 42%;
  background: rgba(255, 255, 255, 0.74);
  transform: translateY(-50%) rotate(-18deg);
}

.start-button::before {
  left: 22px;
}

.start-button::after {
  right: 22px;
  transform: translateY(-50%) rotate(18deg);
}

.start-button span {
  position: relative;
  z-index: 1;
}

.start-button:disabled,
.pickup-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.start-button:active,
.pickup-button:active {
  transform: translateY(1px);
}

.countdown-overlay,
.flash-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.countdown-overlay {
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  inset: 22px 22px auto auto;
  width: clamp(92px, 12vw, 132px);
  height: clamp(92px, 12vw, 132px);
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(232, 111, 157, 0.9);
  color: #ffffff;
  font-size: clamp(54px, 7vw, 88px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 8px 18px rgba(80, 40, 58, 0.28);
  box-shadow:
    0 14px 32px rgba(146, 83, 113, 0.24),
    0 0 0 7px rgba(255, 255, 255, 0.28);
}

.countdown-overlay.is-visible {
  display: flex;
}

.flash-overlay {
  z-index: 7;
  opacity: 0;
  background: #fff;
}

.flash-overlay.is-active {
  animation: camera-flash 480ms ease-out;
}

@keyframes camera-flash {
  0% {
    opacity: 0;
  }

  14% {
    opacity: 0.92;
  }

  100% {
    opacity: 0;
  }
}

.queue-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 7px;
  min-height: 0;
  padding: 9px 14px 10px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 250, 0.9)),
    #fff;
}

.queue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.queue-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.queue-admin-button {
  min-height: 24px;
  border: 1px solid rgba(232, 111, 157, 0.28);
  border-radius: 999px;
  background: #fffafd;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  padding: 0 10px;
}

.queue-admin-button:hover {
  border-color: rgba(232, 111, 157, 0.58);
  background: #fff0f6;
}

.queue-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.queue-heading span::before {
  content: "";
  width: 18px;
  height: 10px;
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(90deg, #ffe1ec, #fff0b9);
  border: 1px solid rgba(232, 111, 157, 0.28);
}

.queue-heading strong {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
  background: #ffe5ef;
  color: var(--accent-strong);
}

.job-queue {
  display: grid;
  grid-auto-columns: 224px;
  grid-auto-flow: column;
  gap: 12px;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.job-empty {
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 1px dashed rgba(232, 111, 157, 0.22);
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.job-card {
  display: grid;
  grid-template-rows: 74px auto;
  gap: 5px;
  min-height: 0;
  padding: 7px 8px;
  border: 1px solid rgba(218, 157, 180, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 251, 0.96)),
    #fff;
  box-shadow: 0 10px 22px rgba(146, 83, 113, 0.1);
}

.job-card.is-ready {
  cursor: pointer;
}

.job-card.is-error {
  border-color: rgba(215, 77, 93, 0.42);
}

.job-preview {
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  background:
    repeating-linear-gradient(45deg, rgba(232, 111, 157, 0.08) 0 1px, transparent 1px 18px),
    #fff7fb;
}

.job-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bunny-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 246, 250, 0.94), rgba(255, 255, 255, 0.96)),
    #fff;
}

.loader-ground {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 92px;
  height: 12px;
  border-radius: 999px;
  background: rgba(232, 111, 157, 0.16);
  transform: translateX(-50%);
  animation: loader-ground 4.2s ease-in-out infinite;
}

.loader-shirt {
  position: absolute;
  left: 52%;
  bottom: 18px;
  width: 54px;
  height: 46px;
  transform: translateX(-50%);
  animation: loader-shirt 4.2s ease-in-out infinite;
}

.shirt-body {
  position: absolute;
  inset: 10px 6px 0;
  border-radius: 12px 12px 9px 9px;
  background: linear-gradient(135deg, #ff9fc2, #f4c85e);
  box-shadow: inset 0 -6px 0 rgba(255, 255, 255, 0.16);
}

.shirt-neck {
  position: absolute;
  left: 50%;
  top: 3px;
  width: 20px;
  height: 15px;
  border-radius: 0 0 999px 999px;
  background: #fff9fc;
  transform: translateX(-50%);
  z-index: 1;
}

.shirt-body::before,
.shirt-body::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 18px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff9fc2, #f4c85e);
}

.shirt-body::before {
  left: -13px;
  transform: rotate(18deg);
}

.shirt-body::after {
  right: -13px;
  transform: rotate(-18deg);
}

.loader-bunny {
  position: absolute;
  left: 24px;
  bottom: 18px;
  width: 58px;
  height: 62px;
  animation: bunny-hop-dress 4.2s ease-in-out infinite;
}

.bunny-body,
.bunny-head,
.bunny-ear,
.bunny-tail {
  position: absolute;
  display: block;
  background: radial-gradient(circle at 35% 28%, #ffffff, #f4f4f0 70%);
  box-shadow: inset -4px -5px 0 rgba(210, 218, 218, 0.28);
}

.bunny-body {
  left: 13px;
  bottom: 0;
  width: 38px;
  height: 34px;
  border-radius: 48% 52% 45% 45%;
}

.bunny-head {
  left: 9px;
  bottom: 27px;
  width: 34px;
  height: 30px;
  border-radius: 50%;
}

.bunny-head::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2a3639;
  box-shadow: 13px 0 0 #2a3639;
}

.bunny-head::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 20px;
  width: 5px;
  height: 4px;
  border-radius: 50%;
  background: #d68f96;
}

.bunny-ear {
  width: 10px;
  height: 32px;
  border-radius: 999px 999px 60% 60%;
  transform-origin: 50% 100%;
}

.bunny-ear-left {
  left: 11px;
  bottom: 51px;
  transform: rotate(-14deg);
}

.bunny-ear-right {
  left: 28px;
  bottom: 49px;
  transform: rotate(15deg);
}

.bunny-tail {
  right: 0;
  bottom: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.loader-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f4c85e;
  opacity: 0;
  animation: loader-spark 4.2s ease-in-out infinite;
}

.spark-one {
  right: 38px;
  top: 26px;
}

.spark-two {
  right: 58px;
  top: 44px;
  animation-delay: 0.16s;
}

@keyframes bunny-hop-dress {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.94);
  }

  18% {
    transform: translate(38px, -24px) rotate(5deg) scale(1);
  }

  34% {
    transform: translate(68px, 0) rotate(-5deg) scale(0.96);
  }

  48% {
    transform: translate(70px, 0) rotate(8deg) scale(0.9, 1.08);
  }

  62% {
    transform: translate(70px, 1px) rotate(-8deg) scale(1.08, 0.92);
  }

  78% {
    transform: translate(70px, 0) rotate(0deg) scale(1);
  }

  90% {
    transform: translate(70px, -6px) rotate(-4deg) scale(1);
  }

  100% {
    transform: translate(0, 0) rotate(0deg) scale(0.94);
  }
}

@keyframes loader-shirt {
  0%,
  24% {
    transform: translateX(-50%) scale(1);
  }

  45%,
  66% {
    transform: translateX(-50%) scale(1.12, 0.92) rotate(-2deg);
  }

  80% {
    transform: translateX(-50%) scale(1.03) rotate(2deg);
  }

  100% {
    transform: translateX(-50%) scale(1);
  }
}

@keyframes loader-ground {
  0%,
  100% {
    transform: translateX(-50%) scaleX(0.75);
    opacity: 0.55;
  }

  35%,
  78% {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
  }
}

@keyframes loader-spark {
  0%,
  62% {
    opacity: 0;
    transform: translateY(8px) scale(0.5);
  }

  76% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.6);
  }
}

.job-status {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(157, 61, 101, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.job-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.job-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.12;
}

.job-title-row span,
.job-subtitle-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-time {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 750;
}

.job-subtitle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 780;
  line-height: 1.1;
}

.mini-button {
  min-height: 22px;
  border-radius: 10px;
  color: var(--accent-strong);
  font-size: 10.5px;
  font-weight: 850;
  padding: 0 7px;
}

.mini-button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  opacity: 0.6;
}

.danger-mini-button,
.danger-button {
  border-color: rgba(215, 77, 93, 0.36);
  color: #a92238;
}

.danger-mini-button:hover,
.danger-button:hover {
  background: #ffe4e8;
}

.settings-page {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  margin: 14px auto;
  overflow: auto;
  border-radius: 24px;
  padding: 16px;
  background:
    repeating-linear-gradient(45deg, rgba(232, 111, 157, 0.04) 0 1px, transparent 1px 24px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 250, 0.9)),
    #fff;
}

.settings-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.settings-topbar h1 {
  color: var(--accent-strong);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.panel-section {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 252, 0.94)),
    #fff;
  box-shadow: 0 12px 28px rgba(146, 83, 113, 0.1);
}

.panel-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background:
    repeating-linear-gradient(90deg, #fff 0 14px, #ffe2ec 14px 28px, #fff8d8 28px 42px, #eaf7ff 42px 56px);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 850;
  color: var(--accent-strong);
}

.ig-link {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.ig-link:hover {
  text-decoration: underline;
}

.reference-group-label {
  max-width: 58%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-stack {
  display: grid;
  gap: 10px;
}

.input-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.input-field input,
.input-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(218, 157, 180, 0.42);
  border-radius: 12px;
  background: #fffafd;
  color: var(--ink);
  padding: 0 10px;
  outline: none;
}

.input-field input:focus,
.input-field select:focus {
  border-color: rgba(232, 111, 157, 0.58);
  box-shadow: 0 0 0 3px rgba(232, 111, 157, 0.12);
}

.field-note {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 850;
}

.tracking-grid,
.metrics-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.tracking-card,
.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 229, 239, 0.48), rgba(238, 248, 255, 0.44)),
    #fff;
  font-size: 13px;
}

.tracking-card {
  border: 1px solid rgba(232, 111, 157, 0.16);
}

.tracking-card span,
.metric span {
  color: var(--muted);
  font-weight: 750;
}

.tracking-card strong {
  color: var(--accent-strong);
  font-size: 14px;
}

.wide-upload {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  color: var(--accent-strong);
  font-weight: 850;
  background:
    linear-gradient(135deg, rgba(255, 239, 246, 0.9), rgba(255, 249, 219, 0.82)),
    #fff;
}

.wide-upload small {
  color: var(--muted);
  font-size: 12px;
}

.garment-settings {
  grid-column: span 2;
}

.garment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.garment-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 88px;
  padding: 9px;
  border-radius: 16px;
  text-align: left;
  font-weight: 850;
}

.garment-card.is-active {
  border-color: rgba(232, 111, 157, 0.56);
  background: #fff0f6;
  color: var(--accent-strong);
  box-shadow: 0 10px 26px rgba(232, 111, 157, 0.16);
}

.custom-garment-card {
  background:
    linear-gradient(135deg, rgba(255, 240, 246, 0.82), rgba(238, 248, 255, 0.72)),
    #fff;
}

.garment-thumb {
  display: block;
  width: 72px;
  height: 70px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(218, 157, 180, 0.32);
  background: #fff;
}

.upload-thumb,
.slot-thumb {
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-weight: 850;
}

.garment-thumb img,
.slot-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reference-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.reference-slot {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 7px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.card-delete-button,
.slot-delete-button {
  position: absolute;
  right: 6px;
  top: 6px;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(215, 77, 93, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #a92238;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(146, 83, 113, 0.14);
}

.card-delete-button[hidden],
.slot-delete-button[hidden] {
  display: none;
}

.reference-slot.is-filled {
  border-color: rgba(232, 111, 157, 0.42);
  background: #fff0f6;
  color: var(--accent-strong);
}

.slot-thumb {
  width: 44px;
  height: 40px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(218, 157, 180, 0.32);
  background: #fffafd;
  font-size: 22px;
}

.pickup-code-toast {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(75, 45, 58, 0.46);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.pickup-code-toast[hidden] {
  display: none;
}

.pickup-code-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.pickup-code-toast > div {
  display: grid;
  gap: 14px;
  width: min(560px, calc(100vw - 36px));
  padding: 24px;
  border: 1px solid rgba(232, 111, 157, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 242, 248, 0.96)),
    #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow);
}

.pickup-code-main {
  display: grid;
  gap: 8px;
}

.pickup-code-toast span,
.pickup-code-toast small,
.pickup-ig-guide small {
  color: var(--muted);
  font-weight: 850;
}

.pickup-code-main > strong {
  color: var(--accent-strong);
  font-size: clamp(72px, 14vw, 132px);
  line-height: 0.9;
  letter-spacing: 0;
}

.pickup-ig-guide {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(232, 111, 157, 0.22);
  border-radius: 18px;
  background: #fff9fc;
  text-align: left;
}

.pickup-ig-guide img {
  width: 128px;
  height: 128px;
  border: 5px solid #fff;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(146, 83, 113, 0.14);
}

.pickup-ig-guide div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pickup-ig-guide strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pickup-ig-guide small {
  color: var(--accent-strong);
  font-size: 15px;
  line-height: 1.35;
}

.capture-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 29;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9), rgba(255, 244, 249, 0.72) 44%, rgba(75, 45, 58, 0.46)),
    rgba(75, 45, 58, 0.34);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.capture-transition-overlay[hidden] {
  display: none;
}

.capture-transition-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.capture-transition-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: min(420px, calc(100vw - 36px));
  padding: 28px 30px 24px;
  border: 1px solid rgba(232, 111, 157, 0.26);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 242, 248, 0.96)),
    #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow);
}

.capture-transition-animation {
  position: relative;
  width: 210px;
  height: 150px;
  overflow: hidden;
  border-radius: 22px;
  background:
    repeating-linear-gradient(45deg, rgba(232, 111, 157, 0.05) 0 1px, transparent 1px 18px),
    #fff7fb;
}

.capture-transition-animation .bunny-loader {
  border-radius: 22px;
}

.capture-transition-card strong {
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 950;
}

.capture-transition-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.choice-modal,
.code-modal,
.admin-modal,
.pickup-results-modal,
.result-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.choice-modal.is-open,
.code-modal.is-open,
.admin-modal.is-open,
.pickup-results-modal.is-open,
.result-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(64, 39, 51, 0.58);
}

.choice-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  gap: 18px;
  width: min(720px, calc(100vw - 36px));
  padding: 18px;
  border-radius: 24px;
  transform: translate(-50%, -50%);
}

.wardrobe-panel {
  grid-template-rows: auto minmax(0, 1fr);
  width: min(980px, calc(100vw - 28px));
  height: min(94dvh, 700px);
  max-height: calc(100dvh - 16px);
  padding: 20px;
  background:
    repeating-linear-gradient(45deg, rgba(232, 111, 157, 0.04) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 250, 0.96)),
    #fff;
}

.choice-header,
.modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.choice-header p {
  margin-top: 4px;
}

.choice-header strong,
.modal-toolbar strong,
.code-panel strong {
  color: var(--accent-strong);
}

.wardrobe-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(232, 111, 157, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 252, 0.94);
  color: var(--accent-strong);
  box-shadow: var(--lace-shadow), 0 8px 20px rgba(146, 83, 113, 0.12);
  cursor: pointer;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.carousel-button:hover {
  border-color: rgba(232, 111, 157, 0.58);
  background: #fff0f6;
}

.clothes-timer {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 42px;
  border: 1px solid rgba(232, 111, 157, 0.22);
  border-radius: 14px;
  background: #ffe4ef;
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 950;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.clothes-timer.is-warning {
  background: #ffe5c4;
  color: #a92238;
  transform: scale(1.08);
}

.wardrobe-grid {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  padding: 8px 4px 14px;
  perspective: 1200px;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
}

.wardrobe-grid::-webkit-scrollbar {
  display: none;
}

.wardrobe-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 228, 239, 0.64);
}

.wardrobe-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(232, 111, 157, 0.46);
}

.wardrobe-item {
  --x: 0px;
  --y: 0px;
  --scale: 1;
  --rotate: 0deg;
  --opacity: 1;
  --z: 10;
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  width: clamp(174px, 22vw, 232px);
  height: calc(100% - 16px);
  min-height: 0;
  padding: 14px;
  border: 2px solid rgba(218, 157, 180, 0.52);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 251, 0.96)),
    #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 30px rgba(146, 83, 113, 0.12);
  opacity: var(--opacity);
  z-index: var(--z);
  transform:
    translate(-50%, -50%)
    translateX(var(--x))
    translateY(var(--y))
    rotateY(var(--rotate))
    scale(var(--scale));
  transform-origin: 50% 62%;
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  will-change: transform, opacity;
}

.wardrobe-grid.is-jump .wardrobe-item {
  transition: none;
}

.wardrobe-item.is-offstage {
  pointer-events: none;
}

.wardrobe-item:hover {
  border-color: var(--accent);
  background: #fff0f6;
}

.wardrobe-item.is-centered {
  box-shadow:
    0 18px 42px rgba(146, 83, 113, 0.18),
    0 0 0 6px rgba(255, 255, 255, 0.42);
}

.wardrobe-item.is-selected {
  border-color: var(--accent);
  background: #fff0f6;
}

.wardrobe-thumb {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(218, 157, 180, 0.3);
  background:
    repeating-linear-gradient(45deg, rgba(232, 111, 157, 0.04) 0 1px, transparent 1px 18px),
    #fff;
}

.wardrobe-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wardrobe-info {
  display: grid;
  gap: 4px;
}

.wardrobe-info strong {
  font-size: 18px;
  color: var(--ink);
}

.wardrobe-info small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.choice-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(232, 111, 157, 0.35);
  border-radius: 16px;
  background: #fff0f6;
}

.choice-card p {
  margin-top: 4px;
}

.confirm-start-button {
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.code-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 36px));
  padding: 20px;
  border: 1px solid rgba(232, 111, 157, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 249, 0.97)),
    #fff;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.code-panel strong {
  font-size: 20px;
}

.code-panel input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(232, 111, 157, 0.32);
  border-radius: 16px;
  color: var(--accent-strong);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
  outline: none;
}

.code-panel input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 111, 157, 0.12);
}

.code-error {
  min-height: 16px;
  color: #a92238;
  font-size: 12px;
  font-weight: 850;
}

.code-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.modal-panel {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 250, 0.96)),
    #fff;
}

.admin-panel {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(218, 157, 180, 0.36);
  border-radius: 22px;
  background:
    repeating-linear-gradient(45deg, rgba(232, 111, 157, 0.04) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 250, 0.96)),
    #fff;
  box-shadow: var(--shadow);
}

.pickup-results-panel {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(218, 157, 180, 0.36);
  border-radius: 22px;
  background:
    repeating-linear-gradient(45deg, rgba(232, 111, 157, 0.04) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 250, 0.96)),
    #fff;
  box-shadow: var(--shadow);
}

.pickup-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pickup-results-toolbar strong {
  color: var(--accent-strong);
  font-size: 22px;
}

.pickup-results-toolbar p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.pickup-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 2px 4px 10px;
}

.pickup-result-card {
  display: grid;
  grid-template-rows: 178px auto auto;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(218, 157, 180, 0.42);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 251, 0.96)),
    #fff;
  box-shadow: 0 10px 22px rgba(146, 83, 113, 0.1);
}

.pickup-result-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border-radius: 13px;
  border: 1px solid rgba(218, 157, 180, 0.26);
  background: #fff8fb;
}

.pickup-result-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pickup-result-preview .admin-status {
  position: absolute;
  left: 10px;
  top: 10px;
}

.pickup-result-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pickup-result-meta strong,
.pickup-result-meta span,
.pickup-result-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pickup-result-meta strong {
  color: var(--ink);
  font-size: 15px;
}

.pickup-result-meta span,
.pickup-result-meta small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.pickup-result-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.pickup-result-actions .tool-button {
  min-width: 0;
  min-height: 34px;
  padding: 0 6px;
  font-size: 12px;
}

.tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(280px, 1.2fr);
  gap: 10px 14px;
  align-items: end;
}

.admin-toolbar strong {
  color: var(--accent-strong);
  font-size: 20px;
}

.admin-toolbar p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-heading {
  min-width: 0;
}

.admin-search {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
}

.admin-search label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-search input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(232, 111, 157, 0.32);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 900;
  outline: none;
  padding: 0 12px;
}

.admin-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 111, 157, 0.12);
}

.admin-search .tool-button,
.admin-search .ghost-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.admin-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-actions .tool-button,
.admin-actions .ghost-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 320px));
  gap: 10px;
  align-content: start;
  align-items: start;
  justify-content: start;
  grid-auto-rows: max-content;
  min-height: 0;
  overflow: auto;
  padding: 2px 4px 10px;
}

.admin-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 1px dashed rgba(232, 111, 157, 0.28);
  border-radius: 16px;
  color: var(--muted);
  font-weight: 850;
}

.admin-job-card {
  display: grid;
  grid-template-rows: auto 126px auto auto;
  gap: 8px;
  min-width: 0;
  align-self: start;
  padding: 10px;
  border: 1px solid rgba(218, 157, 180, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 251, 0.96)),
    #fff;
  box-shadow: 0 10px 22px rgba(146, 83, 113, 0.1);
}

.admin-job-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 111, 157, 0.12), 0 10px 22px rgba(146, 83, 113, 0.1);
}

.admin-job-card.is-located {
  border-color: rgba(232, 111, 157, 0.72);
  box-shadow:
    0 0 0 3px rgba(232, 111, 157, 0.14),
    0 10px 22px rgba(146, 83, 113, 0.12);
}

.admin-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.admin-card-top label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.admin-card-top span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-status {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ffe5ef;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 7px;
}

.admin-status.is-consumed {
  background: #eef8ff;
  color: #326886;
}

.admin-status.is-error {
  background: #ffe4e8;
  color: #a92238;
}

.admin-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(218, 157, 180, 0.26);
  background: #fff8fb;
}

.admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-preview-fallback {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.22;
}

.admin-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-card-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.admin-card-actions .mini-button {
  min-width: 0;
  min-height: 34px;
  padding: 0 4px;
}

.print-area {
  display: none;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.modal-actions .tool-button {
  min-height: 34px;
  text-decoration: none;
}

#modalImage {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 16px;
  background: #fff8fb;
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .garment-settings {
    grid-column: auto;
  }

  .reference-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-search {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .admin-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .kiosk-page {
    padding: 8px;
  }

  .kiosk-top-actions {
    right: 14px;
    top: 14px;
  }

  .stage-action-stack {
    min-width: 220px;
    width: 72vw;
    gap: 14px;
  }

  .start-button {
    min-height: 104px;
  }

  .pickup-button {
    min-height: 60px;
  }

  .countdown-overlay {
    inset: 14px 14px auto auto;
    width: 78px;
    height: 78px;
    font-size: 46px;
  }

  .ig-follow-card {
    bottom: 14px;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 11px;
    width: min(390px, calc(100% - 24px));
    min-height: 132px;
    padding: 10px 12px 10px 10px;
    border-radius: 22px;
  }

  .ig-qr {
    width: 112px;
    height: 112px;
    border-width: 5px;
    border-radius: 16px;
  }

  .ig-follow-title {
    font-size: 14px;
  }

  .ig-icon {
    width: 20px;
    height: 20px;
  }

  .ig-follow-copy strong {
    font-size: 24px;
  }

  .ig-handle {
    font-size: 15px;
  }

  .ig-follow-copy small {
    font-size: 13px;
    padding: 7px 10px;
  }

  .job-queue {
    grid-auto-columns: 206px;
  }

  .pickup-code-toast > div {
    padding: 16px;
  }

  .pickup-ig-guide {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
  }

  .pickup-ig-guide img {
    width: 104px;
    height: 104px;
  }

  .pickup-ig-guide strong {
    font-size: 18px;
  }

  .pickup-ig-guide small {
    font-size: 13px;
  }

  .pickup-results-panel {
    inset: 8px;
  }

  .admin-search {
    grid-template-columns: 1fr 1fr;
  }

  .admin-search input {
    grid-column: 1 / -1;
  }

  .wardrobe-panel {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    padding: 12px;
  }

  .wardrobe-grid {
    min-height: 0;
  }

  .wardrobe-item {
    width: clamp(150px, 58vw, 204px);
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  body.is-printing-admin #modalImage,
  body.is-printing-admin #modalImage * {
    visibility: hidden;
  }

  body.is-printing-admin .print-area,
  body.is-printing-admin .print-area * {
    visibility: visible;
  }

  body.is-printing-admin .print-area {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10mm;
    padding: 10mm;
    background: #fff;
  }

  body.is-printing-admin .print-sheet-item {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 4mm;
    break-inside: avoid;
  }

  body.is-printing-admin .print-sheet-item strong {
    color: #222;
    font-size: 12pt;
  }

  body.is-printing-admin .print-sheet-item img {
    width: 100%;
    height: 100%;
    max-height: 120mm;
    object-fit: contain;
  }

  #modalImage,
  #modalImage * {
    visibility: visible;
  }

  #modalImage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: #fff;
  }
}
