.flow-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #333;
}
.flow-header a {
  font-weight: 800;
  letter-spacing: 0.12em;
}
.flow-header span,
.eyebrow {
  color: #ff007a;
}
.flow-header p {
  font-size: 12px;
  color: #aaa;
}
.flow {
  margin: 60px auto 100px;
  padding: 0 24px;
}
.narrow {
  max-width: 680px;
}
.dashboard {
  max-width: 1300px;
}
.flow h1 {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 16px 0 28px;
}
.flow h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin: 28px 0 18px;
}
.flow p {
  line-height: 1.5;
}
.eyebrow {
  letter-spacing: 0.2em;
  font-size: 12px;
}
.flow form {
  margin: 32px 0;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.flow label {
  display: block;
  font-size: 14px;
  margin: 0 0 20px;
}
.flow input,
.flow select {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: #111;
  color: #fff;
  border: 1px solid #666;
  border-radius: 6px;
  padding: 14px;
  font: inherit;
  min-height: 48px;
}
.flow input:focus-visible,
.flow select:focus-visible {
  outline: 2px solid #ff007a;
  outline-offset: 3px;
}
.flow .button {
  white-space: normal;
  text-align: center;
}
.flow button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.fine {
  font-size: 13px;
  color: #aaa;
  margin-top: 18px;
}
.center {
  text-align: center;
}
#notice {
  margin: 24px 0;
  min-height: 1.5em;
  color: #eee;
}
#notice.error {
  color: #ff86bf;
}
#ticket-qr {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  background: #fff;
}
#ticket-id {
  font-family: monospace;
  letter-spacing: 0.15em;
  margin-top: 16px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-block: 1px solid #333;
  padding: 24px 0;
  margin: 24px 0;
}
.stats p {
  flex: 1;
  min-width: 130px;
  color: #bbb;
}
.stats strong {
  display: block;
  font-size: 32px;
  color: #fff;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}
.filters label {
  flex: 1;
  min-width: 140px;
  margin: 0;
}
.filters label:first-child {
  flex: 2;
  min-width: 220px;
}
.table-scroll {
  max-width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
th,
td {
  padding: 16px 12px;
  border-bottom: 1px solid #333;
  vertical-align: top;
}
th {
  color: #bbb;
  font-weight: 500;
}
td .button {
  min-height: 44px;
  padding: 10px 15px;
  font-size: 13px;
  white-space: nowrap;
  margin: 4px;
}
.result {
  border: 1px solid #ff007a;
  padding: 24px;
  margin: 24px 0;
}
.result h2 {
  margin-top: 0;
}
.result button {
  margin-top: 18px;
}
#camera {
  display: block;
  width: min(100%, 540px);
  min-height: 200px;
  background: #111;
  border: 1px solid #555;
  margin: 20px 0;
}
#comp-section {
  border-top: 1px solid #555;
  margin-top: 48px;
  padding-top: 16px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .flow {
    margin-top: 32px;
    padding: 0 18px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .flow-header {
    padding: 22px 18px;
  }
  .flow-header p {
    display: none;
  }
  .toolbar {
    justify-content: flex-start;
  }
  .toolbar .button {
    flex: 1;
  }
  .stats {
    gap: 16px;
  }
  .stats p {
    min-width: 110px;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .filters label:first-child {
    grid-column: 1/-1;
    min-width: 0;
  }
  .filters label {
    min-width: 0;
  }
  .flow .button {
    min-height: 48px;
  }
}
@media print {
  .flow-header,
  .button,
  .fine,
  #notice {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .flow {
    margin: 0;
  }
  .flow h1 {
    font-size: 36px;
  }
  #ticket-qr {
    width: 240px;
  }
}

/* Registration popup shares the standalone checkout form. */
#ticket-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 36px 28px 20px;
  border-radius: 16px;
  overflow-y: auto;
}
.ticket-flow {
  margin: 0;
  padding: 0;
}
.ticket-flow h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 6vw, 2.8rem);
}
.ticket-flow p {
  margin: 12px 0;
}
.ticket-flow form {
  margin: 24px 0 0;
}
.ticket-flow .eyebrow {
  padding-right: 22px;
  color: var(--pink);
}
.ticket-flow #pay {
  width: 100%;
}
.ticket-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 30px;
  width: 44px;
  height: 44px;
}
body:has(#ticket-dialog[open]) {
  overflow: hidden;
}
.ticket-flow input:focus-visible,
.ticket-flow select:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  #ticket-dialog {
    padding: 36px 20px 20px;
  }
}
