:root {
  --cream: #f3eee4;
  --cream-deep: #e7dfd0;
  --parchment: #faf6ee;
  --navy: #0c1b33;
  --navy-mid: #16324f;
  --navy-soft: #1f3d5c;
  --ink: #142033;
  --muted: #4a5564;
  --gold: #c6a24e;
  --gold-bright: #d8b65a;
  --gold-seat: #d4a017;
  --navy-seat: #1f5aa6;
  --selected: #10b981;
  --selected-deep: #047857;
  --taken: #dc2626;
  --danger: #b42318;
  --white: #fffdf8;
  --shadow-hall: 0 10px 24px rgba(12, 27, 51, 0.12);
  --shadow-ticket: 0 14px 32px rgba(12, 27, 51, 0.18);
  --radius-card: 8px;
  --radius-btn: 4px;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --focus-gold: 3px solid var(--gold);
  --focus-navy: 3px solid var(--navy);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 14px;
  z-index: 30;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-btn);
}

.skip-link:focus {
  left: 16px;
}

:focus-visible {
  outline: var(--focus-gold);
  outline-offset: 2px;
}

.app {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

/* Masthead: navy ticket header so gold type meets WCAG. */
.masthead {
  background: var(--navy);
  color: var(--parchment);
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.masthead::before,
.masthead::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(198, 162, 78, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.masthead::before {
  left: -48px;
  top: -72px;
}

.masthead::after {
  right: -40px;
  bottom: -80px;
  width: 180px;
  height: 180px;
}

.masthead-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.masthead-inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 10px;
  background-image: radial-gradient(circle, var(--cream) 3px, transparent 3.5px);
  background-size: 12px 10px;
  background-repeat: repeat-x;
  pointer-events: none;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.55rem, 4vw, 2.85rem);
  line-height: 1.02;
  color: var(--gold-bright);
}

.brand h1 span {
  display: block;
  font-size: 0.68em;
  color: var(--parchment);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--gold-bright);
  font-weight: 600;
}

.place {
  margin: 8px 0 0;
  color: var(--parchment);
  font-size: 0.95rem;
}

.masthead-mark {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--parchment);
  font-size: 1.2rem;
  text-align: right;
  line-height: 1.2;
}

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

.steps {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 8px 0 20px;
  padding: 0;
  border-bottom: 1px solid var(--cream-deep);
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 12px 0;
  margin-right: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.step[aria-current="step"] {
  color: var(--navy);
  font-weight: 700;
  border-bottom-color: var(--gold);
}

.step-num {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--cream-deep);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.step[aria-current="step"] .step-num {
  background: var(--gold);
  color: var(--navy);
}

.panel {
  background: var(--parchment);
  border: 1px solid rgba(12, 27, 51, 0.1);
  border-radius: var(--radius-card);
  padding: 20px;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.15;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  min-width: 0;
}

.layout > * {
  min-width: 0;
}

.hall-wrap {
  background: linear-gradient(180deg, #f7f2e7, #efe7d6);
  border: 1px solid rgba(12, 27, 51, 0.08);
  border-radius: var(--radius-card);
  padding: 18px 16px 22px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  box-shadow: var(--shadow-hall);
}

.stage {
  position: relative;
  min-height: 158px;
  padding: 28px 24px 36px;
  border-radius: 6px;
  background: linear-gradient(180deg, #101f38 0%, #0b1730 70%, #081224 100%);
  color: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  overflow: hidden;
}

.stage::before {
  content: "";
  position: absolute;
  inset: auto 12% 0;
  height: 8px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.9;
}

.stage-copy {
  text-align: center;
  z-index: 1;
}

.stage-kicker {
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.stage-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.1vw, 2.15rem);
  margin: 8px 0 0;
  line-height: 1.15;
  max-width: 18ch;
}

.led-screen {
  width: 86%;
  max-width: 100%;
  margin: 0 auto 2px;
}

.led-bezel {
  background: linear-gradient(180deg, #1c314c, var(--navy));
  border: 2px solid var(--gold);
  border-radius: 6px 6px 3px 3px;
  padding: 7px 9px 8px;
}

.led-panel {
  min-height: 64px;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(216, 182, 90, 0.14), transparent 45%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 3px
    ),
    linear-gradient(180deg, #0a1628 0%, #050b14 100%);
  display: grid;
  place-items: center;
}

.led-label {
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.podium {
  width: 54px;
  height: 14px;
  margin: 14px auto 0;
  background: #d9d3c6;
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
}

.plants {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.plant {
  position: absolute;
  width: 14px;
  height: 18px;
  border-radius: 40% 40% 30% 30%;
  background: #3f7a4c;
  box-shadow: 0 10px 0 -6px #8d6b4a;
}

.plant.p1 { left: 8%; bottom: 10px; }
.plant.p2 { right: 8%; bottom: 10px; }

.blocks,
.hall-chart {
  width: 100%;
  min-width: 0;
  padding: 8px 8px 10px;
}

.hall-col-heads,
.hall-row {
  display: grid;
  grid-template-columns: 22px auto 22px auto 22px auto;
  gap: 6px 10px;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 0 auto;
}

.col-head {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-bottom: 4px;
}

.row-label {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  background: var(--white);
  color: var(--navy);
  border: 1px solid rgba(12, 27, 51, 0.12);
}

.hall-aisle {
  width: 22px;
  min-height: 12px;
  display: grid;
  place-items: center;
}

.aisle-plant {
  width: 10px;
  height: 12px;
  border-radius: 40% 40% 30% 30%;
  background: #3f7a4c;
  box-shadow: 0 8px 0 -5px #8d6b4a;
}

.hall-cross-aisle {
  display: flex;
  justify-content: center;
  gap: 72px;
  padding: 10px 0 8px;
}

.hall-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hall-row.section-blue {
  margin-top: 0;
}

.seats {
  display: grid;
  gap: 5px;
  justify-content: center;
}

.seat {
  width: 18px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 5px 5px 3px 3px;
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.seat::before {
  content: "";
  position: absolute;
  inset: -4px;
}

.seat.premium,
.seat.gold {
  background: linear-gradient(180deg, #e1b322, var(--gold-seat));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.seat.standard,
.seat.blue {
  background: linear-gradient(180deg, #2c74c6, var(--navy-seat));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.seat.gray,
.seat.back {
  background: linear-gradient(180deg, #c4c8ce, #8b9098);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.seat::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: -3px;
  height: 5px;
  border-radius: 4px 4px 1px 1px;
  background: inherit;
  filter: brightness(0.88);
}

.seat:hover {
  transform: translateY(-2px) scale(1.12);
  z-index: 2;
}

.seat:focus-visible {
  transform: translateY(-2px) scale(1.12);
  outline: none;
  box-shadow: 0 0 0 2px var(--parchment), 0 0 0 5px var(--gold);
  z-index: 2;
}

.seat[aria-pressed="true"] {
  background: linear-gradient(180deg, #34d399, var(--selected));
  box-shadow: 0 0 0 2px #ecfdf5, 0 0 0 4px var(--selected-deep);
}

.seat.taken,
.seat:disabled.taken,
.seat[aria-pressed="true"].taken {
  opacity: 1;
  filter: none;
  cursor: not-allowed;
  transform: none;
  background-color: var(--taken);
  background-image: linear-gradient(180deg, #f87171, var(--taken));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.seat.taken:hover {
  transform: none;
}

.seat.taken:focus-visible {
  transform: none;
  outline: none;
  box-shadow: 0 0 0 2px var(--parchment), 0 0 0 5px var(--gold);
}

.seat.blocked:not(.taken),
.seat:disabled.blocked:not(.taken) {
  cursor: not-allowed;
  transform: none;
  opacity: 0.58;
  filter: saturate(0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.seat.blocked:not(.taken):hover,
.seat.blocked:not(.taken):focus-visible {
  transform: none;
}

.admin-unlocked .seat.blocked:not(.taken) {
  cursor: pointer;
}

.hall-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
}

.entrance {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.total-seats-end {
  text-align: right;
  justify-self: end;
}

.door {
  width: auto;
  min-width: 92px;
  margin: 0 auto 8px;
  padding: 10px 12px 8px;
  background: var(--white);
  border: 1px solid rgba(12, 27, 51, 0.1);
  border-radius: 0 0 10px 10px;
}

.arrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 10px solid var(--navy);
  margin: 0 auto 6px;
}

.door span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.total-seats {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--navy);
  line-height: 1;
}

.total-seats small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 4px;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 16px;
  border: 1px solid rgba(12, 27, 51, 0.1);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 700;
}

.legend-simple {
  display: grid;
  gap: 2px;
}

.legend-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(12, 27, 51, 0.06);
  font-size: 0.92rem;
}

.legend-item:last-child {
  border-bottom: 0;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}

.swatch.gold { background: var(--gold-seat); }
.swatch.navy { background: var(--navy-seat); }
.swatch.gray { background: #8b9098; }
.swatch.pick { background: var(--selected); }
.swatch.taken { background: var(--taken); }
.swatch.blocked {
  background: repeating-linear-gradient(
    135deg,
    #9aa0a8 0 3px,
    #d5d0c6 3px 6px
  );
}

.legend-state {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  color: #047857;
}

.legend-state.is-closed {
  color: var(--muted);
}

.section-gate-hint {
  margin: 0 0 8px;
  font-size: 0.88rem;
}

.section-toggle {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(12, 27, 51, 0.06);
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}

.section-toggle:last-of-type {
  border-bottom: 0;
}

.section-toggle input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--gold);
}

.section-toggle strong {
  display: block;
  color: var(--navy);
}

.selected-box .seat-code {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0;
  color: var(--navy);
}

.selected-box p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-actions {
  margin-top: 18px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius-btn);
  padding: 13px 16px;
  min-height: 44px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn:not(:disabled):active {
  transform: translateY(0);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:not(:disabled):hover {
  background: var(--gold-bright);
}

.btn-gold:focus-visible {
  outline: var(--focus-navy);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(12, 27, 51, 0.22);
}

.btn-ghost-light {
  background: transparent;
  color: var(--parchment);
  border: 1px solid rgba(250, 246, 238, 0.45);
  min-width: 92px;
}

.btn-ghost-light:hover {
  background: rgba(250, 246, 238, 0.08);
}

.btn-compact {
  padding: 10px 12px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.btn-danger {
  background: #fff5f4;
  color: var(--danger);
  border: 1px solid rgba(180, 35, 24, 0.28);
}

.form-panel,
.ticket-panel {
  max-width: 480px;
  margin: 0 auto;
}

label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 2px solid var(--navy);
  background: var(--white);
  border-radius: 0;
  padding: 14px 12px;
  font: inherit;
  font-size: 1.05rem;
  min-height: 48px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus {
  outline: var(--focus-gold);
  outline-offset: 2px;
  border-bottom-color: var(--gold);
}

.hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 16px;
  line-height: 1.45;
}

.status {
  color: var(--navy);
  font-size: 0.92rem;
  min-height: 1.2em;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid rgba(12, 27, 51, 0.1);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status:empty {
  display: none;
  padding: 0;
  border: 0;
  margin: 0;
}

.ticket-blank-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-ticket);
}

.ticket-blank-img {
  width: 100%;
  height: auto;
  display: block;
}

.ticket-field {
  position: absolute;
  margin: 0;
  display: flex;
  align-items: center;
  font-family: var(--font-serif);
  font-weight: 600;
  color: #24160c;
  line-height: 1.05;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.01em;
  padding: 0 0.8%;
  box-sizing: border-box;
}

.tf-name { left: 18.167%; top: 14.446%; width: 70.235%; height: 2.078%; font-size: clamp(0.5rem, 2.4vw, 0.95rem); }
.tf-seat { left: 18.167%; top: 17.589%; width: 70.235%; height: 2.078%; font-size: clamp(0.5rem, 2.4vw, 0.95rem); }
.tf-cat { left: 18.248%; top: 20.631%; width: 70.154%; height: 2.078%; font-size: clamp(0.5rem, 2.4vw, 0.95rem); }
.tf-event { left: 18.167%; top: 23.57%; width: 70.235%; height: 2.129%; font-size: clamp(0.42rem, 1.9vw, 0.8rem); }
.tf-id { left: 18.167%; top: 26.663%; width: 70.154%; height: 2.027%; font-size: clamp(0.42rem, 1.9vw, 0.8rem); }

.ticket-actions {
  max-width: 420px;
  margin: 18px auto 0;
}

.hidden {
  display: none !important;
}

.footer {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.error {
  color: var(--danger);
  font-size: 0.92rem;
  min-height: 1.2em;
  margin-top: 8px;
}

.admin-gate-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: calc(100dvh - 180px);
  padding: 12px 0 28px;
}

.admin-gate {
  width: min(420px, 100%);
  max-width: 100%;
  border-top: 6px solid var(--navy);
  box-shadow: var(--shadow-hall);
}

.ticket-stub-kicker {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--navy);
  font-size: 1.05rem;
}

.admin-list-panel {
  margin-top: 20px;
}

.admin-seat-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.admin-row-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 132px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

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

.admin-actions input[type="search"] {
  min-width: min(220px, 100%);
}

.admin-count {
  font-weight: 700;
  color: var(--navy);
  margin: 4px 0 0;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

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

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(12, 27, 51, 0.1);
  vertical-align: top;
}

.admin-table th {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.admin-table .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}

.admin-table .empty-row td {
  color: var(--muted);
  padding: 20px 8px;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
  }

  .hall-col-heads,
  .hall-row {
    gap: 5px 8px;
  }
}

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

  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0 16px;
  }

  .masthead-mark,
  .masthead-actions {
    text-align: left;
    justify-content: flex-start;
  }

  .side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .side .actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .app {
    width: 100%;
    max-width: 100%;
    padding: 12px 12px 28px;
  }

  .masthead-inner {
    width: calc(100% - 24px);
    padding: 16px 0 14px;
  }

  .brand h1 {
    font-size: clamp(1.45rem, 8vw, 2.1rem);
  }

  .eyebrow {
    font-size: 0.75rem;
  }

  .panel {
    padding: 14px 10px 16px;
  }

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

  .step {
    margin-right: 0;
    justify-content: center;
    padding: 8px 4px 10px;
    font-size: 0.78rem;
    gap: 5px;
  }

  .hall-wrap {
    padding: 12px 6px 14px;
  }

  .stage {
    min-height: 118px;
    padding: 18px 12px 22px;
    margin-bottom: 10px;
  }

  .stage-kicker {
    letter-spacing: 0.08em;
    font-size: 0.62rem;
  }

  .stage-title {
    font-size: 1.12rem;
    padding: 0 8px;
    max-width: none;
  }

  .led-screen {
    width: 92%;
  }

  .led-panel {
    min-height: 36px;
  }

  .led-label {
    letter-spacing: 0.12em;
    font-size: 0.58rem;
  }

  .blocks,
  .hall-chart {
    padding: 4px 0 6px;
  }

  .hall-col-heads,
  .hall-row {
    grid-template-columns: 18px auto 14px auto 14px auto;
    gap: 3px 6px;
  }

  .row-label {
    width: 18px;
    height: 18px;
    font-size: 0.68rem;
  }

  .col-head {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }

  .hall-aisle {
    width: 14px;
  }

  .aisle-plant {
    width: 8px;
    height: 10px;
  }

  .hall-cross-aisle {
    gap: 40px;
    padding: 6px 0 4px;
  }

  .seats {
    gap: 3px;
  }

  .seat {
    width: 13px;
    height: 12px;
  }

  .seat::before {
    inset: -6px -5px;
  }

  .hall-footer {
    margin-top: 12px;
    gap: 4px;
  }

  .total-seats {
    font-size: 1.25rem;
  }

  .side {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .side .actions {
    position: sticky;
    bottom: 10px;
    z-index: 6;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .side .actions .btn {
    box-shadow: 0 -8px 16px var(--parchment);
    background: var(--gold);
  }

  .side .actions .btn:disabled {
    background: var(--cream-deep);
    color: var(--muted);
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    background: #fff;
    border: 1px solid rgba(12, 27, 51, 0.1);
    border-radius: var(--radius-card);
    padding: 12px;
    margin-bottom: 12px;
  }

  .admin-table td {
    border: 0;
    padding: 6px 0;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .admin-table td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    padding-top: 4px;
  }

  .admin-table td[data-label="Actions"] {
    grid-template-columns: 1fr;
    padding-top: 10px;
  }

  .admin-table td[data-label="Actions"]::before {
    display: none;
  }

  .admin-table .empty-row td,
  .admin-table .empty-row td::before {
    display: block;
    grid-template-columns: 1fr;
  }

  .admin-table .empty-row td::before {
    content: none;
  }

  .admin-gate-wrap {
    min-height: calc(100dvh - 150px);
    padding: 4px 0 20px;
  }

  .admin-gate {
    padding: 18px 16px;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions input[type="search"],
  .admin-actions .btn {
    flex: 1 1 100%;
  }

  .footer {
    font-size: 0.8rem;
    padding: 0 8px;
  }
}

@media (max-width: 430px) {
  .hall-col-heads,
  .hall-row {
    grid-template-columns: 16px auto 10px auto 10px auto;
    gap: 2px 4px;
  }

  .seat {
    width: 12px;
    height: 11px;
    border-radius: 3px 3px 2px 2px;
  }

  .plant {
    display: none;
  }

  .masthead-actions {
    width: 100%;
  }

  .masthead-actions .btn {
    flex: 1 1 auto;
  }
}

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

  .seat:hover,
  .seat:focus-visible,
  .btn:not(:disabled):hover {
    transform: none;
  }
}

/* Oct 2026: header buttons, ticket quantity, multi-seat, lookup */
.masthead-inner { align-items: center; }
.btn.btn-head { width: auto; min-height: 40px; padding: 8px 16px; font-size: 0.9rem; background: var(--gold); color: var(--navy); border: 1px solid var(--gold); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn.btn-head-ghost { background: transparent; color: var(--parchment); border-color: rgba(244, 236, 216, 0.55); }
#doctor-form label { margin-top: 14px; }
.qty-picker { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px 0 8px; }
.btn.qty-btn { width: 56px; min-height: 56px; padding: 0; font-size: 1.6rem; }
.qty-value { min-width: 64px; text-align: center; font-family: var(--font-sans); font-size: 3rem; font-weight: 700; color: var(--navy); }
.sel-count { float: right; font-family: var(--font-sans, inherit); font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.seat-code { overflow-wrap: anywhere; }
.attendee-fields { margin-top: 6px; }
.attendee-fields h3 { margin: 18px 0 0; font-size: 1rem; color: var(--navy); }
.ticket-list { display: grid; gap: 22px; margin-top: 16px; }
.ticket-item .actions { max-width: 420px; margin: 10px auto 0; }
.hall-aisle .aisle-plant, .hall-cross-aisle .aisle-plant { display: none; }
@media (max-width: 640px) {
  .masthead-inner { flex-direction: column; align-items: flex-start; }
  .masthead-actions { justify-content: flex-start; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .step { font-size: 0.72rem !important; }
}

.ticket-qr { position: absolute; left: 17.8%; top: 48.312%; width: 64.4%; height: 40.25%; image-rendering: pixelated; }

/* Admin registrations grouped by email */
.admin-table .reg-detail-row td { background: var(--cream-deep, #f6f0e2); padding: 10px 12px; }
.reg-ticket-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reg-ticket { background: #fff; border: 1px solid rgba(12, 27, 51, 0.1); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr) auto; gap: 6px 14px; align-items: center; }
.reg-ticket-main { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.reg-ticket-seat { min-width: 3ch; }
.reg-ticket-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.85rem; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.reg-ticket .admin-row-actions { justify-content: flex-end; }
@media (max-width: 760px) {
  .admin-table .reg-detail-row { padding: 8px; margin-top: -8px; }
  .admin-table .reg-detail-row td { display: block; padding: 0; background: none; }
  .admin-table .reg-detail-row td::before { content: none; }
  .reg-ticket { grid-template-columns: 1fr; }
  .reg-ticket .admin-row-actions { justify-content: flex-start; }
}
.seat-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.seat-card { background: #fff; border: 1px solid rgba(12, 27, 51, 0.1); border-top: 4px solid #0c1b33; border-radius: 12px; padding: 12px 14px; }
.seat-card h3 { margin: 0 0 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.seat-card p { margin: 0; }
.seat-card-left strong { font-size: 1.6rem; }
.seat-card-meta { font-size: 0.8rem; color: var(--muted); }
.seat-card-gold { border-top-color: #c9a227; }
.seat-card-blue { border-top-color: #2f6fd6; }
.seat-card-gray { border-top-color: #8a8f98; }
@media (max-width: 760px) { .seat-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
