@font-face {
  font-display: swap;
  font-family: "PepsiOwners";
  font-style: normal;
  font-weight: 400;
  src: url("../PepsiOwners-Regular.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --blue: #005cb9;
  --red: #e5272e;
  --ink: #16181d;
  --muted: #667085;
  --line: #d8dde7;
  --panel: #ffffff;
  --surface: #f5f7fb;
  --green: #12805c;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "PepsiOwners", Arial, Helvetica, sans-serif;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body,
body *,
body *::before,
body *::after {
  font-family: "PepsiOwners", Arial, Helvetica, sans-serif !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "PepsiOwners", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  background: var(--surface);
}

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

.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.eyebrow {
  display: block;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kiosk-shell {
  overflow: hidden;
}

.kiosk-app,
.hostess-app,
.receipt-card {
  min-height: 100vh;
}

.start-screen,
.done-screen {
  display: grid;
  min-height: 100vh;
  justify-items: center;
  padding: 48px;
  text-align: center;
}

.start-screen {
  align-content: end;
  justify-items: start;
  padding: clamp(32px, 6vw, 96px);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0, 20, 50, 0.24), rgba(0, 20, 50, 0.08)),
    url("../background.png") center / cover no-repeat;
}

.done-screen {
  place-content: center;
  background:
    linear-gradient(135deg, rgba(0, 92, 185, 0.16), rgba(229, 39, 46, 0.08)),
    #f8fbff;
}

.done-screen {
  gap: 20px;
}

.size-screen {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background:
    linear-gradient(90deg, rgba(0, 20, 50, 0.24), rgba(0, 20, 50, 0.08)),
    url("../background.png") center / cover no-repeat;
}

.designer-screen {
  display: flex;
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
}

.size-selection {
  display: grid;
  width: min(100%, 900px);
  gap: 22px;
  align-self: center;
  margin: auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 56px rgba(0, 20, 50, 0.18);
  backdrop-filter: blur(10px);
}

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

.shirt-size-option {
  display: grid;
  min-height: 132px;
  align-content: center;
  gap: 8px;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--ink);
  background: #ffffff;
  cursor: pointer;
}

.shirt-size-option strong {
  font-size: 2.2rem;
  line-height: 1;
}

.shirt-size-option span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.shirt-size-option.is-selected {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 2px var(--blue);
}

.shirt-size-option.is-sold-out,
.shirt-size-option:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.shirt-size-option.is-sold-out span {
  color: var(--red);
}

.brand-mark {
  margin: 0 auto 28px;
  width: 168px;
  border: 3px solid var(--blue);
  border-radius: 999px;
  padding: 16px 18px;
  color: var(--red);
  font-size: 1.1rem;
  font-weight: 900;
}

.start-screen h1,
.done-screen h1 {
  margin: 0 0 34px;
  font-size: 5rem;
  line-height: 1;
}

.done-screen h1 {
  margin: 0;
  color: var(--blue);
}

.receipt-qr {
  display: grid;
  width: min(100%, 276px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(22, 24, 29, 0.12);
}

.receipt-qr:empty {
  display: none;
}

.receipt-qr img,
.receipt-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.done-screen p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 1.35rem;
}

.done-size strong {
  color: var(--ink);
}

.primary-action,
.ghost-action,
.complete-action {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  padding: 0 28px;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #ffffff;
}

.start-action {
  min-width: min(100%, 420px);
  min-height: 78px;
  border: 3px solid #ffffff;
  border-radius: 8px;
  padding: 0 36px;
  color: #ffffff;
  font-size: 1.34rem;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--blue);
  box-shadow:
    8px 8px 0 var(--red),
    0 18px 38px rgba(0, 0, 0, 0.28);
  animation: startPulse 2.4s ease-in-out infinite;
}

.start-action:active {
  transform: translate(3px, 3px);
  box-shadow:
    5px 5px 0 var(--red),
    0 12px 24px rgba(0, 0, 0, 0.22);
}

@keyframes startPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      8px 8px 0 var(--red),
      0 18px 38px rgba(0, 0, 0, 0.28);
  }

  50% {
    transform: scale(1.035);
    box-shadow:
      8px 8px 0 var(--red),
      0 20px 44px rgba(0, 92, 185, 0.36),
      0 0 0 8px rgba(255, 255, 255, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .start-action {
    animation: none;
  }
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.wide {
  width: 100%;
}

.ghost-action {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.app-header,
.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 36px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.app-header h1,
.queue-header h1 {
  margin: 4px 0 0;
  font-size: 2rem;
}

.designer-grid,
.summary-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 480px);
  gap: 28px;
  min-height: calc(100vh - 105px);
  padding: 28px;
}

.designer-grid {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.shirt-preview,
.summary-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  min-height: 600px;
  overflow: hidden;
  padding: 14px;
  background: #eaf0f8;
}

.shirt-preview {
  grid-template-rows: minmax(0, 1fr) 72px;
}

.shirt-side-preview {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  min-width: 0;
  border: 2px solid rgba(15, 37, 63, 0.12);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
}

button.shirt-side-preview {
  font: inherit;
  cursor: pointer;
}

.shirt-side-preview.is-selected {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: inset 0 0 0 2px var(--blue), 0 10px 24px rgba(0, 92, 185, 0.14);
}

.shirt-preview .shirt-side-preview:not(.is-selected)::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 6px;
  background: rgba(92, 104, 118, 0.22);
  content: "";
  pointer-events: none;
}

.shirt-side-title {
  display: block;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 900;
}

.shirt-side-canvas {
  position: relative;
  display: grid;
  --icon-preview-size: min(8%, 48px);
  --slogan-preview-size: min(22%, 128px);
  min-height: 500px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f7faff;
}

.shirt-asset {
  width: min(68vh, 560px);
  max-width: 88%;
}

.shirt-side-canvas .shirt-asset {
  width: min(44vh, 340px);
  max-width: 88%;
}

.shirt-preview .shirt-side-canvas .shirt-asset,
.summary-preview .shirt-side-canvas .shirt-asset {
  width: min(72vh, 620px);
  max-width: 112%;
}

.shirt-preview .shirt-side-canvas {
  --icon-preview-size: min(12%, 72px);
}

.selected-sticker {
  position: absolute;
  width: 96px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
}

.shirt-side-canvas .selected-sticker {
  width: var(--icon-preview-size);
}

.motif-preview-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.designer-screen .motif-preview-layer {
  pointer-events: auto;
}

.is-draggable-motif {
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.is-draggable-motif:active {
  cursor: grabbing;
}

.motif-delete-zone {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  border: 3px dotted var(--red);
  border-radius: 8px;
  color: var(--red);
  font-size: 1.15rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.motif-delete-zone.is-dragging {
  color: #b91c1c;
  background: rgba(229, 39, 46, 0.1);
  box-shadow: inset 0 0 0 2px rgba(229, 39, 46, 0.18);
}

.motif-delete-zone.is-drag-over {
  color: #ffffff;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(229, 39, 46, 0.28);
  transform: scale(1.01);
}

.selected-sticker.is-active-motif,
.selected-slogan.is-active-motif {
  outline: 3px solid rgba(0, 92, 185, 0.72);
  outline-offset: 4px;
}

.selected-sticker.is-invalid-placement,
.selected-slogan.is-invalid-placement {
  outline: 3px solid rgba(229, 39, 46, 0.9);
  outline-offset: 4px;
}

.selected-slogan {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--slogan-preview-size);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
}

.selected-slogan img {
  display: block;
  width: 100%;
  height: auto;
}

.selected-slogan-front {
  top: 50%;
}

.selected-slogan-back {
  top: 34%;
}

.selection-panel,
.summary-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: var(--panel);
  border-left: 1px solid var(--line);
}

.selection-panel {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.selection-panel h2 {
  margin: 0;
  font-size: 1.15rem;
}

.placement-status {
  border: 1px solid rgba(0, 92, 185, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 800;
  background: rgba(0, 92, 185, 0.07);
}

.placement-status.is-warning {
  border-color: rgba(229, 39, 46, 0.22);
  color: var(--red);
  background: rgba(229, 39, 46, 0.07);
}

.option-grid,
.position-grid,
.side-grid {
  display: grid;
  gap: 12px;
}

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

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

.sticker-option,
.position-option,
.side-option {
  min-height: 86px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.sticker-option {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  text-align: left;
}

.sticker-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.designer-screen .sticker-copy,
.designer-screen .sticker-copy * {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 400;
}

.sticker-copy small,
.position-option small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.sticker-option img {
  width: 52px;
  height: 52px;
}

.position-option {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  text-align: center;
}

.side-option {
  min-height: 58px;
  text-align: center;
}

.sticker-option.is-selected,
.position-option.is-selected,
.side-option.is-selected {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 2px var(--blue);
}

.position-option.is-occupied {
  border-color: rgba(229, 39, 46, 0.44);
  background: rgba(229, 39, 46, 0.06);
}

.position-option.is-active-target {
  border-color: var(--blue);
  background: rgba(0, 92, 185, 0.08);
}

.position-option.is-occupied small {
  color: var(--red);
}

.sticker-option.is-selected small {
  color: var(--blue);
}

.sticker-option.is-active-motif {
  border-color: var(--blue);
  background: rgba(0, 92, 185, 0.08);
}

.sticker-option.is-active-motif small {
  color: var(--blue);
}

.sticker-option.is-blocked {
  opacity: 0.58;
  cursor: not-allowed;
}

.position-option:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.option-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.selected-motif-list,
.summary-motif-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.selected-motif-list li,
.summary-motif-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  background: #ffffff;
}

.selected-motif-list button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  background: #ffffff;
  cursor: pointer;
}

.summary-motif-list li {
  display: block;
}

.summary-name-field {
  display: block;
}

.summary-name-field input {
  width: 100%;
  min-height: 52px;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  background: #ffffff;
}

.summary-name-field input:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 92, 185, 0.14);
}

.kiosk-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.kiosk-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 32, 0.62);
}

.kiosk-dialog-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(100%, 520px);
  border: 4px solid var(--blue);
  border-radius: 8px;
  padding: 28px;
  background: #ffffff;
  box-shadow:
    8px 8px 0 rgba(229, 39, 46, 0.9),
    0 22px 50px rgba(0, 0, 0, 0.22);
}

.kiosk-dialog-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.05;
}

.kiosk-dialog-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.summary-details dl,
.receipt-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.summary-details div,
.receipt-card div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

dt {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
  font-size: 1.45rem;
  font-weight: 800;
}

.hostess-app {
  padding-bottom: 28px;
}

.hostess-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px 0;
}

.hostess-nav-button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--blue);
  font: inherit;
  font-weight: 900;
  background: #ffffff;
  cursor: pointer;
}

.hostess-nav-button.is-selected {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.queue-count {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
}

.queue-list {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.statistics-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
}

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

.statistics-summary div,
.statistics-table-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.statistics-summary div {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.statistics-summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.statistics-summary strong {
  color: var(--blue);
  font-size: 2rem;
}

.statistics-table-panel {
  overflow: hidden;
}

.statistics-table-panel h2 {
  margin: 0;
  padding: 16px 18px;
  color: var(--blue);
  font-size: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.statistics-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.statistics-table th,
.statistics-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}

.statistics-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.statistics-table tr:last-child td {
  border-bottom: 0;
}

.queue-item {
  display: grid;
  grid-template-columns: 150px 240px 1fr 170px;
  align-items: center;
  gap: 18px;
  min-height: 176px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.queue-number {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--blue);
}

.queue-meta h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.queue-meta p {
  margin: 3px 0;
  color: var(--muted);
}

.queue-customer {
  color: var(--ink) !important;
  font-size: 1.08rem;
}

.queue-preview-button {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--blue);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  background: #f7faff;
  cursor: pointer;
}

.hostess-order-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hostess-shirt-side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  min-width: 0;
  gap: 6px;
}

.hostess-shirt-side .shirt-side-title {
  font-size: 0.78rem;
}

.hostess-shirt-side .shirt-side-canvas {
  --icon-preview-size: min(12%, 56px);
  --slogan-preview-size: min(22%, 112px);
  min-height: 118px;
}

.hostess-shirt-stage {
  position: relative;
  display: block;
  width: min(18vh, 130px);
  max-width: 92%;
  aspect-ratio: 764 / 727;
}

.hostess-shirt-stage .shirt-asset {
  display: block;
  width: 100%;
  max-width: none;
}

.hostess-shirt-stage .motif-preview-layer {
  inset: 0;
}

.hostess-shirt-side .shirt-asset {
  width: 100%;
  max-width: none;
}

.hostess-order-preview.is-large {
  gap: 18px;
}

.hostess-order-preview.is-large .hostess-shirt-side .shirt-side-title {
  font-size: 1rem;
}

.hostess-order-preview.is-large .hostess-shirt-side .shirt-side-canvas {
  --icon-preview-size: min(12%, 76px);
  min-height: calc(100vh - 160px);
}

.hostess-order-preview.is-large .hostess-shirt-stage {
  width: min(76vh, 680px);
  max-width: 92%;
}

.hostess-order-preview.is-large .hostess-shirt-side .shirt-asset {
  width: 100%;
  max-width: none;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  padding: 0;
}

.preview-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 32, 0.58);
}

.preview-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.preview-modal-header h2 {
  margin: 4px 0 0;
  color: var(--blue);
  font-size: 2rem;
}

.hostess-preview-large {
  min-height: 0;
  overflow: auto;
  padding: 20px;
  background: #eaf0f8;
}

.hostess-preview-large .hostess-order-preview {
  min-height: 100%;
  align-items: stretch;
}

.hostess-preview-large .hostess-shirt-side {
  min-height: 0;
}

.queue-motif-list,
.receipt-motif-list {
  display: grid;
  gap: 4px;
  margin: 6px 0;
  padding-left: 18px;
  color: var(--muted);
}

.complete-action {
  background: var(--green);
  color: #ffffff;
}

.complete-action:disabled {
  opacity: 0.6;
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
}

.receipt-shell {
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--surface);
}

.receipt-card {
  width: min(100%, 520px);
  min-height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #ffffff;
}

.receipt-card h1 {
  margin: 8px 0 26px;
  color: var(--blue);
  font-size: 4rem;
}

.admin-shell,
.admin-login-shell {
  min-height: 100vh;
  background: var(--surface);
}

.admin-app {
  min-height: 100vh;
}

.admin-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 16px 28px;
  background: #ffffff;
}

.admin-brand {
  display: grid;
  gap: 4px;
}

.admin-brand strong {
  font-size: 1rem;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.admin-nav a,
.admin-logout button,
.admin-workitem a {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
}

.admin-nav a,
.admin-workitem a {
  display: inline-flex;
  align-items: center;
}

.admin-nav a {
  border: 1px solid transparent;
}

.admin-nav a.is-active {
  border-color: rgba(0, 92, 185, 0.18);
  background: rgba(0, 92, 185, 0.08);
  color: var(--blue);
}

.admin-logout {
  margin: 0;
}

.admin-logout button {
  border: 1px solid var(--line);
  background: #ffffff;
  cursor: pointer;
}

.admin-main {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 32px 28px 48px;
}

.admin-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.admin-page-header h1,
.admin-login h1 {
  margin: 4px 0 0;
  font-size: 2rem;
  line-height: 1.15;
}

.admin-page-header p,
.admin-login p,
.admin-workitem p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-workgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.admin-workitem {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
}

.admin-workitem h2 {
  margin: 0;
  font-size: 1.2rem;
}

.admin-workitem a {
  justify-self: start;
  border: 1px solid var(--line);
  background: #ffffff;
}

.admin-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.admin-login-panel {
  display: grid;
  width: min(100%, 420px);
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #ffffff;
}

.admin-login-form {
  display: grid;
  gap: 12px;
}

.admin-login-form label {
  font-weight: 800;
}

.admin-login-form input {
  min-height: 52px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  background: #ffffff;
}

.admin-login-form input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 92, 185, 0.14);
}

.admin-alert {
  border: 1px solid rgba(229, 39, 46, 0.32);
  border-radius: 8px;
  padding: 12px 14px;
  color: #9d1c22;
  background: rgba(229, 39, 46, 0.08);
  font-weight: 800;
}

.admin-alert-success {
  border-color: rgba(18, 128, 92, 0.28);
  color: var(--green);
  background: rgba(18, 128, 92, 0.08);
}

.admin-page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  background: #ffffff;
  cursor: pointer;
}

.admin-button-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.admin-button-muted {
  color: var(--muted);
}

.admin-table-panel,
.admin-form-panel {
  margin-top: 24px;
}

.admin-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-sticker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.admin-sticker-table th,
.admin-sticker-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}

.admin-sticker-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-sticker-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-sticker-cell {
  display: grid;
  grid-template-columns: 48px minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
}

.admin-sticker-thumb,
.admin-sticker-preview {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.admin-sticker-thumb {
  width: 48px;
  height: 48px;
}

.admin-sticker-thumb img,
.admin-sticker-preview img {
  display: block;
  max-width: 78%;
  max-height: 78%;
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-status-badge.is-active {
  color: var(--green);
  background: rgba(18, 128, 92, 0.1);
}

.admin-status-badge.is-inactive {
  color: #8a4b00;
  background: rgba(255, 176, 32, 0.18);
}

.admin-asset-path {
  display: inline-block;
  max-width: 280px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-row-actions,
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-row-actions form {
  margin: 0;
}

.admin-sticker-form {
  display: grid;
  gap: 18px;
  max-width: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field label,
.admin-field-label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.admin-field input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  background: #ffffff;
}

.admin-field select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  background: #ffffff;
}

.admin-field input[type="file"] {
  padding: 10px 12px;
}

.admin-field input:focus,
.admin-field select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 92, 185, 0.14);
}

.admin-current-sticker {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.admin-sticker-preview {
  width: 92px;
  height: 92px;
}

.admin-error-list {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 900px) {
  .start-screen,
  .done-screen {
    padding: 28px 20px;
  }

  .start-screen h1,
  .done-screen h1 {
    font-size: 3.4rem;
  }

  .receipt-qr {
    width: min(100%, 220px);
  }

  .done-screen p {
    font-size: 1.1rem;
  }

  .designer-grid,
  .summary-layout {
    grid-template-columns: 1fr;
  }

  .designer-screen {
    overflow-y: auto;
  }

  .designer-grid {
    overflow: visible;
  }

  .selection-panel {
    overflow: visible;
  }

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

  .shirt-preview,
  .summary-preview {
    min-height: 430px;
  }

  .shirt-side-canvas {
    min-height: 340px;
  }

  .shirt-side-title {
    font-size: 0.92rem;
  }

  .queue-item {
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .admin-page-header,
  .admin-workgrid {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    align-items: stretch;
    padding: 16px;
  }

  .admin-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-nav a,
  .admin-logout button {
    justify-content: center;
    width: 100%;
  }

  .admin-main {
    padding: 24px 16px 36px;
  }

  .admin-page-header {
    align-items: start;
  }

  .admin-page-actions {
    justify-content: stretch;
  }

  .admin-page-actions .admin-button,
  .admin-form-actions .admin-button {
    width: 100%;
  }

  .admin-login {
    align-items: start;
  }
}

@media (min-width: 700px) and (max-width: 1180px) {
  .queue-header {
    padding: 22px 24px;
  }

  .queue-list {
    gap: 12px;
    padding: 16px;
  }

  .queue-item {
    grid-template-columns: 112px minmax(330px, 380px) minmax(230px, 1fr) 150px;
    gap: 14px;
    min-height: 214px;
    padding: 14px;
  }

  .queue-number {
    font-size: 2rem;
  }

  .queue-preview-button {
    align-self: stretch;
  }

  .complete-action {
    padding: 0 18px;
  }

  .hostess-shirt-side .shirt-side-canvas {
    min-height: 164px;
  }

  .hostess-shirt-stage {
    width: min(24vh, 190px);
    max-width: 92%;
  }

  .hostess-shirt-side .shirt-asset {
    width: 100%;
    max-width: none;
  }
}

@media (min-width: 700px) and (max-width: 900px) {
  .queue-item {
    grid-template-areas:
      "number action"
      "preview preview"
      "meta meta";
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: start;
  }

  .queue-number {
    grid-area: number;
  }

  .queue-preview-button {
    grid-area: preview;
    width: 100%;
  }

  .queue-meta {
    grid-area: meta;
  }

  .complete-action {
    grid-area: action;
    justify-self: end;
  }

  .hostess-order-preview {
    gap: 12px;
  }

  .hostess-shirt-side .shirt-side-title {
    font-size: 0.86rem;
  }

  .hostess-shirt-side .shirt-side-canvas {
    --icon-preview-size: min(8%, 42px);
    --slogan-preview-size: min(22%, 118px);
    min-height: 292px;
  }

  .hostess-shirt-stage {
    width: min(36vh, 280px);
    max-width: 92%;
  }

  .hostess-shirt-side .shirt-asset {
    width: 100%;
    max-width: none;
  }

  .preview-modal {
    padding: 0;
  }

  .preview-modal-panel {
    width: 100vw;
    height: 100vh;
    max-height: none;
  }

  .preview-modal-header {
    padding: 16px 18px;
  }

  .hostess-preview-large {
    padding: 14px;
  }

  .hostess-order-preview.is-large {
    gap: 12px;
  }

  .hostess-order-preview.is-large .hostess-shirt-side .shirt-side-canvas {
    --icon-preview-size: min(8%, 44px);
    min-height: calc(50vh - 72px);
  }

  .hostess-order-preview.is-large .hostess-shirt-stage {
    width: min(40vh, 360px);
    max-width: 92%;
  }

  .hostess-order-preview.is-large .hostess-shirt-side .shirt-asset {
    width: 100%;
    max-width: none;
  }
}
