:root {
  color-scheme: light;
  --amber: #f4ad45;
  --amber-soft: #fff0d5;
  --coral: #e65f45;
  --cream: #f5f0e6;
  --cream-deep: #e8dfcf;
  --emerald: #176b58;
  --emerald-soft: #dceee7;
  --ink: #192a33;
  --muted: #66737a;
  --paper: #fffdf8;
  --red: #a83f35;
  --red-soft: #fae2dd;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(25, 42, 51, 0.12);
  --radius-large: 28px;
  --radius-medium: 18px;
  --radius-small: 11px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(25, 42, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 42, 51, 0.035) 1px, transparent 1px),
    var(--cream);
  background-size: 32px 32px;
}

button,
input {
  font: inherit;
}

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

button:not(:disabled),
a {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.prototype-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prototype-bar span {
  color: #bfd0d7;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-lockup > span:last-child {
  display: grid;
  gap: 2px;
}

.brand-lockup strong {
  letter-spacing: -0.02em;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 0.72rem;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50% 50% 12px 50%;
  background: var(--coral);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-header nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(25, 42, 51, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: end;
  gap: 50px;
  padding-block: 76px 52px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--emerald);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.scanner-heading h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.hero h1 span {
  display: block;
  color: var(--coral);
  font-style: italic;
}

.hero-lede {
  max-width: 690px;
  margin: 30px 0 24px;
  color: #465960;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  padding: 7px 10px;
  border: 1px solid #c9c0b2;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.event-stamp {
  position: relative;
  display: grid;
  min-height: 250px;
  align-content: center;
  justify-items: center;
  padding: 24px;
  border: 1px solid #d7cbbb;
  border-radius: 110px 110px 26px 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.event-stamp::after {
  position: absolute;
  right: 12px;
  bottom: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.event-stamp strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  font-weight: 500;
  line-height: 0.9;
}

.event-stamp span:not(.stamp-month) {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.stamp-month {
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 76px;
  border-block: 1px solid #cfc6b7;
}

.event-facts article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 102px;
  padding: 18px 26px;
  border-right: 1px solid #cfc6b7;
}

.event-facts article:last-child {
  border-right: 0;
}

.fact-number {
  display: grid;
  flex: 0 0 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.event-facts article div {
  display: grid;
  gap: 5px;
}

.event-facts article span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
}

.registration-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 34px;
  padding-bottom: 90px;
}

.registration-main,
.order-card,
.after-purchase,
.scanner-panel,
.result-panel,
.door-queue,
.offline-note {
  border: 1px solid #ddd4c5;
  border-radius: var(--radius-large);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.registration-main {
  padding: clamp(24px, 5vw, 48px);
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading h2,
.order-card h2,
.after-purchase h2,
.confirmation h2,
.door-queue h2,
.result-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-heading > p:last-child {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.ticket-list {
  display: grid;
  gap: 12px;
}

.ticket-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border: 1px solid #d9d1c3;
  border-radius: var(--radius-medium);
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ticket-card:focus-within,
.ticket-card.is-selected {
  border-color: var(--emerald);
  box-shadow: 0 8px 24px rgba(23, 107, 88, 0.11);
}

.ticket-card:focus-within {
  transform: translateY(-1px);
}

.ticket-title-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ticket-card h3 {
  margin: 0;
  font-size: 1rem;
}

.price {
  color: var(--coral);
  font-weight: 850;
}

.ticket-card p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.5;
}

.ticket-note {
  color: var(--emerald);
  font-size: 0.73rem;
  font-weight: 750;
}

.quantity {
  display: grid;
  grid-template-columns: 38px 36px 38px;
  align-items: center;
  border: 1px solid #d1c9bc;
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}

.quantity button {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 500;
}

.quantity button:hover,
.quantity button:focus-visible {
  background: var(--emerald-soft);
}

.quantity output {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.delivery-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.delivery-choice legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  font-weight: 800;
}

.delivery-choice label {
  position: relative;
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid #d9d1c3;
  border-radius: var(--radius-small);
  background: var(--white);
}

.delivery-choice label:has(input:checked) {
  border-color: var(--emerald);
  box-shadow: inset 0 0 0 1px var(--emerald);
}

.delivery-choice input {
  width: 19px;
  height: 19px;
  accent-color: var(--emerald);
}

.delivery-choice label span {
  display: grid;
  gap: 4px;
}

.delivery-choice small {
  color: var(--muted);
}

.attendee-step {
  margin-top: 42px;
  padding-top: 38px;
  border-top: 1px solid #d9d1c3;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 750;
}

.form-grid label.wide {
  grid-column: 1 / -1;
}

.additional-attendees {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #cfc6b8;
}

.form-grid input,
.code-entry input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfc6b8;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.form-grid input:focus,
.code-entry input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(23, 107, 88, 0.13);
}

.account-option {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  border-radius: var(--radius-small);
  background: var(--emerald-soft);
}

.account-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--emerald);
}

.account-option span {
  display: grid;
  gap: 4px;
}

.account-option small {
  color: #45665d;
  line-height: 1.45;
}

.saved-details-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #d6cec1;
  border-radius: var(--radius-small);
  background: var(--white);
}

.saved-details-note span {
  display: grid;
  gap: 4px;
}

.saved-details-note small {
  color: var(--muted);
  line-height: 1.45;
}

.saved-details-note button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid #b9afa1;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
}

.saved-details-note button:hover,
.saved-details-note button:focus-visible {
  border-color: var(--emerald);
  color: var(--emerald);
}

.prototype-notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
  color: #68502d;
  font-size: 0.82rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.scenario-picker button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 8px 0 #0c191f;
  transition: box-shadow 120ms ease, transform 120ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(2px);
  box-shadow: 0 6px 0 #0c191f;
}

.primary-button:disabled,
.quantity button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.primary-button:disabled {
  box-shadow: none;
  transform: none;
}

.primary-button:active {
  transform: translateY(7px);
  box-shadow: 0 1px 0 #0c191f;
}

.secondary-button {
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
}

.ghost-button {
  border: 1px dashed #aa9f90;
  background: transparent;
  color: var(--muted);
}

.full {
  width: 100%;
}

.order-card {
  position: sticky;
  top: 20px;
  overflow: hidden;
}

.order-card-top {
  padding: 26px;
  background: var(--emerald);
  color: var(--white);
}

.order-card-top .eyebrow {
  color: #bde0d4;
}

.order-card h2 {
  font-size: 2rem;
}

.summary-lines {
  display: grid;
  gap: 12px;
  min-height: 72px;
  padding: 24px 26px 18px;
}

.summary-lines div,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.88rem;
}

.summary-lines span {
  color: var(--muted);
}

.summary-total {
  margin-inline: 26px;
  padding-block: 18px;
  border-top: 1px solid #d9d1c3;
  font-size: 1.08rem;
}

.fee-note,
.secure-note {
  margin: 0 26px 18px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.order-card .primary-button {
  width: calc(100% - 52px);
  margin: 0 26px 20px;
}

.secure-note {
  text-align: center;
}

.confirmation {
  margin-top: 34px;
  padding: 30px;
  border: 2px solid var(--emerald);
  border-radius: var(--radius-medium);
  background: var(--emerald-soft);
}

.confirmation-check {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--white);
  font-size: 1.8rem;
}

.confirmation > p:not(.eyebrow) {
  max-width: 630px;
  color: #45665d;
  line-height: 1.6;
}

.confirmation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.confirmation-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.confirmation-grid small {
  color: var(--muted);
}

.confirmation-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.text-link {
  color: var(--emerald);
  font-weight: 800;
  text-underline-offset: 4px;
}

.after-purchase {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 34px;
  margin-bottom: 80px;
  padding: 34px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.after-purchase .eyebrow {
  color: var(--amber);
}

.after-purchase h2 {
  font-size: 2.2rem;
}

.after-purchase > p {
  color: #c4d0d5;
  line-height: 1.6;
}

.after-purchase .ghost-button {
  max-width: 220px;
  border-color: #718189;
  color: #aebbc1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 42px;
  border-top: 1px solid #cfc6b7;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Leader dashboard */

.leader-body {
  min-height: 100vh;
  background: #edf1ec;
}

.leader-shell {
  padding-block: 34px 76px;
}

.leader-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 24px;
}

.leader-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.leader-hero > div:first-child > p:last-child {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.event-readiness {
  display: flex;
  flex: 0 0 250px;
  align-items: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid #bcd4c9;
  border-radius: var(--radius-medium);
  background: var(--emerald-soft);
}

.readiness-dot {
  flex: 0 0 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 5px rgba(23, 107, 88, 0.12);
}

.event-readiness div {
  display: grid;
  gap: 4px;
}

.event-readiness small,
.event-readiness span:last-child {
  color: #45665d;
  font-size: 0.72rem;
}

.leader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.leader-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.metric-grid article,
.leader-card {
  border: 1px solid #d6ddd8;
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 38px rgba(25, 42, 51, 0.08);
}

.metric-grid article {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 165px;
  align-content: end;
  padding: 22px;
}

.metric-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--emerald);
  font-weight: 900;
}

.metric-grid small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  font-weight: 500;
  line-height: 1;
}

.metric-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.leader-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 18px;
}

.leader-primary,
.leader-secondary {
  display: grid;
  gap: 18px;
}

.leader-card {
  padding: 26px;
}

.leader-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.card-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.filter-buttons {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--cream);
}

.filter-buttons button {
  min-height: 34px;
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.filter-buttons button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(25, 42, 51, 0.1);
}

.capacity-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 28px 0;
  padding: 20px;
  border-radius: var(--radius-small);
  background: #f5f7f4;
}

.capacity-bars > div,
.capacity-bars > div > div {
  display: grid;
  gap: 9px;
}

.capacity-bars > div > div {
  grid-template-columns: 1fr auto;
  color: var(--muted);
  font-size: 0.78rem;
}

.capacity-bars progress {
  width: 100%;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: #dce3de;
  overflow: hidden;
}

.capacity-bars progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #dce3de;
}

.capacity-bars progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--emerald);
}

.capacity-bars progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--emerald);
}

.registration-table {
  overflow-x: auto;
}

.registration-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.registration-table th {
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.registration-table td {
  padding: 14px 12px;
  border-top: 1px solid #e0e5e1;
  font-size: 0.8rem;
}

.registration-table td:first-child {
  display: grid;
  gap: 4px;
}

.registration-table td small {
  color: var(--muted);
}

.status-tag {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7ece8;
  color: #58645e;
  font-size: 0.68rem;
  font-weight: 800;
}

.status-tag.success {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.status-tag.warning {
  background: var(--amber-soft);
  color: #7b571b;
}

.empty-filter {
  margin: 0;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.zoom-fallback {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  border-color: #d8bd84;
  background: #fffbf1;
}

.zoom-symbol {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 16px;
  background: #315efb;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 900;
}

.zoom-fallback p:not(.eyebrow),
.zoom-fallback li,
.admission-card p,
.email-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.zoom-fallback ul {
  margin: 14px 0 0;
  padding-left: 19px;
}

.admission-card {
  overflow: hidden;
  background: var(--amber-soft);
}

.admission-marker {
  display: grid;
  width: 126px;
  height: 126px;
  margin: 20px 0;
  place-content: center;
  justify-items: center;
  border: 8px solid rgba(25, 42, 51, 0.1);
  border-radius: 50%;
  background: var(--amber);
  transform: rotate(-3deg);
}

.admission-marker strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.8rem;
  font-weight: 500;
  line-height: 0.85;
}

.admission-marker span {
  margin-top: 8px;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ticket-breakdown dl {
  margin: 20px 0 0;
}

.ticket-breakdown dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid #e0e5e1;
  font-size: 0.82rem;
}

.ticket-breakdown dt {
  color: var(--muted);
}

.ticket-breakdown dd {
  margin: 0;
  font-weight: 900;
}

/* Door check-in */

.check-in-body {
  min-height: 100vh;
  background: #e8eee9;
}

.compact-header {
  min-height: 74px;
}

.check-in-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.9fr);
  align-items: start;
  gap: 22px;
  padding-block: 26px 70px;
}

.scanner-panel {
  grid-row: span 2;
  padding: clamp(22px, 4vw, 42px);
}

.scanner-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.scanner-heading h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
}

.network-pill {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #bad7cd;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
}

.network-pill > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
}

.network-pill[aria-pressed="true"] {
  border-color: #e0bd78;
  background: var(--amber-soft);
  color: #77551b;
}

.network-pill[aria-pressed="true"] > span {
  background: var(--amber);
}

.scan-target {
  position: relative;
  display: grid;
  min-height: 260px;
  margin: 34px 0 26px;
  place-items: center;
  border: 1px dashed #9baaa4;
  border-radius: var(--radius-medium);
  background:
    radial-gradient(circle at center, rgba(23, 107, 88, 0.09), transparent 52%),
    #f3f7f3;
}

.scan-target > div {
  display: grid;
  width: 132px;
  height: 132px;
  place-content: center;
  justify-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 14px 35px rgba(121, 82, 25, 0.2);
}

.scan-target strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  font-weight: 500;
  line-height: 0.8;
}

.scan-target span:last-child {
  margin-top: 8px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.scan-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: var(--emerald);
  border-style: solid;
}

.scan-corner.top-left {
  top: 20px;
  left: 20px;
  border-width: 3px 0 0 3px;
  border-radius: 10px 0 0;
}

.scan-corner.top-right {
  top: 20px;
  right: 20px;
  border-width: 3px 3px 0 0;
  border-radius: 0 10px 0 0;
}

.scan-corner.bottom-left {
  bottom: 20px;
  left: 20px;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 10px;
}

.scan-corner.bottom-right {
  right: 20px;
  bottom: 20px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 10px;
}

.code-entry label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.82rem;
  font-weight: 800;
}

.code-entry > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.code-entry input {
  min-height: 54px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scenario-picker {
  margin-top: 24px;
  border-top: 1px solid #d9e0dc;
}

.scenario-picker summary {
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.scenario-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

.scenario-picker button {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #c8d0cc;
  background: var(--white);
  color: var(--ink);
  font-size: 0.75rem;
}

.result-panel,
.door-queue,
.offline-note {
  padding: 28px;
}

.result-panel {
  min-height: 330px;
  border-top: 8px solid #bdc8c3;
}

.result-panel.result-success {
  border-top-color: var(--emerald);
  background: #f4fbf8;
}

.result-panel.result-warning {
  border-top-color: var(--amber);
  background: #fffbf2;
}

.result-panel.result-error {
  border-top-color: var(--red);
  background: #fff7f5;
}

.empty-result {
  display: grid;
  min-height: 270px;
  place-content: center;
  text-align: center;
}

.empty-result > span {
  color: var(--emerald);
  font-size: 2.7rem;
}

.empty-result h2 {
  max-width: 330px;
  font-size: 2.35rem;
}

.empty-result p {
  max-width: 360px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.result-status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.result-status p {
  margin: 0 0 5px;
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.result-warning .result-status p {
  color: #8b641f;
}

.result-error .result-status p {
  color: var(--red);
}

.result-icon {
  display: grid;
  flex: 0 0 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--white);
  font-size: 1.7rem;
  font-weight: 800;
}

.result-warning .result-icon {
  background: var(--amber);
  color: var(--ink);
}

.result-error .result-icon {
  background: var(--red);
}

.result-panel h2 {
  font-size: 2.4rem;
}

.ticket-result dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 24px 0;
  border-block: 1px solid #d9e0dc;
}

.ticket-result dl div {
  display: grid;
  gap: 5px;
  padding: 14px 8px 14px 0;
}

.ticket-result dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-result dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 750;
}

.result-guidance {
  padding: 13px;
  border-radius: 9px;
  background: rgba(23, 107, 88, 0.08);
  color: #315e53;
  font-size: 0.83rem;
  line-height: 1.45;
}

.result-warning .result-guidance {
  background: var(--amber-soft);
  color: #6b501f;
}

.result-error .result-guidance {
  background: var(--red-soft);
  color: #71372f;
}

.queue-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.queue-heading h2 {
  font-size: 2rem;
}

.queue-heading > strong {
  color: var(--emerald);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 0.8;
  text-align: right;
}

.queue-heading > strong small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
}

.door-queue ol {
  display: grid;
  gap: 4px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.door-queue li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #e5dfd5;
}

.door-queue li div {
  display: grid;
  gap: 3px;
}

.door-queue li small {
  color: var(--muted);
}

.arrival-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
}

.arrival-mark.success {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.arrival-mark.warning {
  background: var(--amber-soft);
  color: #7c581b;
}

.offline-note {
  grid-column: 2;
  border-color: #ddb867;
  background: var(--amber-soft);
  box-shadow: none;
}

.offline-note p {
  margin: 8px 0 0;
  color: #70552a;
  font-size: 0.85rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 30px;
  }

  .event-stamp {
    min-height: 210px;
  }

  .event-stamp strong {
    font-size: 4.8rem;
  }

  .registration-shell,
  .check-in-shell {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .leader-grid {
    grid-template-columns: 1fr;
  }

  .leader-secondary {
    grid-template-columns: repeat(3, 1fr);
  }

  .order-card {
    position: static;
  }

  .after-purchase {
    grid-template-columns: 1fr;
  }

  .after-purchase .ghost-button {
    max-width: none;
  }

  .scanner-panel {
    grid-row: auto;
  }

  .result-panel {
    grid-row: 2;
  }

  .door-queue {
    grid-row: 3;
  }

  .offline-note {
    grid-column: 1;
    grid-row: 4;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 22px, 1160px);
  }

  .prototype-bar {
    justify-content: space-between;
    font-size: 0.64rem;
  }

  .site-header {
    min-height: 76px;
  }

  .brand-lockup small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .site-header nav a {
    padding: 8px 9px;
    font-size: 0.76rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-block: 46px 36px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .event-stamp {
    grid-template-columns: auto auto auto auto;
    min-height: auto;
    justify-content: start;
    justify-items: start;
    gap: 10px;
    padding: 18px 24px;
    border-radius: 18px;
    transform: none;
  }

  .event-stamp strong {
    font-size: 2.3rem;
  }

  .event-stamp span {
    align-self: center;
  }

  .event-facts {
    grid-template-columns: 1fr;
    margin-bottom: 44px;
  }

  .event-facts article {
    min-height: 80px;
    border-right: 0;
    border-bottom: 1px solid #cfc6b7;
  }

  .event-facts article:last-child {
    border-bottom: 0;
  }

  .registration-shell {
    padding-bottom: 58px;
  }

  .leader-shell {
    padding-block: 24px 52px;
  }

  .leader-hero,
  .card-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .event-readiness {
    flex-basis: auto;
  }

  .metric-grid,
  .leader-secondary,
  .capacity-bars {
    grid-template-columns: 1fr;
  }

  .metric-grid article {
    min-height: 142px;
  }

  .filter-buttons {
    align-self: start;
    max-width: 100%;
    overflow-x: auto;
  }

  .zoom-fallback {
    grid-template-columns: 1fr;
  }

  .registration-main,
  .order-card,
  .after-purchase,
  .scanner-panel,
  .result-panel,
  .door-queue,
  .offline-note {
    border-radius: 20px;
  }

  .ticket-card {
    grid-template-columns: 1fr;
  }

  .quantity {
    width: 126px;
  }

  .delivery-choice,
  .form-grid,
  .confirmation-grid {
    grid-template-columns: 1fr;
  }

  .saved-details-note {
    align-items: stretch;
    flex-direction: column;
  }

  .saved-details-note button {
    align-self: start;
  }

  .form-grid label.wide {
    grid-column: auto;
  }

  .confirmation-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .after-purchase {
    margin-bottom: 50px;
  }

  .scanner-heading {
    align-items: start;
  }

  .scanner-heading h1 {
    font-size: 3.2rem;
  }

  .network-pill {
    min-height: 38px;
  }

  .scan-target {
    min-height: 220px;
  }

  .code-entry > div {
    grid-template-columns: 1fr;
  }

  .code-entry .primary-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-header {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .site-header nav {
    width: 100%;
  }

  .site-header nav a {
    flex: 1;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
