/* #region zone:flights.style-passcode — หน้าใส่รหัสเข้าและกล่องตั้งรหัส (กลางจอ ใช้โทเคนสีเดียวกับธีมกลางคืน) */
.gate-shell {
  min-height: min(620px, calc(100dvh - 180px));
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 420px);
  justify-content: center;
  align-items: center;
  gap: 64px;
}
body[data-view='gate'] :is(#title, #subtitle, .gate-intro) {
  display: none;
}
body[data-view='gate'] .top {
  justify-content: center;
}
body[data-view='gate'] .gate-shell {
  grid-template-columns: minmax(0, 420px);
  min-height: 0;
}
.gate-intro {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}
.gate-intro h2,
.gate-intro p {
  margin: 0;
}
.gate-intro h2 {
  --flights-text-fluid: clamp(2rem, 4vw, 3rem);
  font-size: var(--flights-text-fluid);
  line-height: 1.25;
}
.gate-intro p {
  color: var(--muted);
  font-size: 1.125rem;
}
.gate-card {
  width: 100%;
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
  box-shadow: none;
}
.gate-card h2,
.dialog h2 {
  margin: 0;
  font-size: var(--u-text-lg);
}
.gate-card form,
.dialog form {
  display: grid;
  gap: var(--space-3);
  text-align: left;
}
.field {
  color: var(--fg);
  font-size: 0.9375rem;
  font-weight: 600;
}
.code {
  font: 600 1.5rem var(--sans);
  letter-spacing: 0.35em;
  text-align: center;
  color: var(--fg);
  background: rgb(255 255 255 / 0.05);
  border: 1px solid var(--control-line);
  border-radius: 12px;
  padding: var(--u-space-3) 14px;
  min-height: 56px;
  width: 100%;
}
.code:focus-visible {
  outline: 2px solid var(--cyan);
  border-color: var(--cyan);
}
.gate-card .btn.primary {
  min-height: 52px;
  border-radius: var(--u-radius-pill);
}
.dialog {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  margin: auto;
  padding: var(--space-5);
  color: var(--fg);
  background: var(--panel);
}
.dialog::backdrop {
  background: rgb(2 4 8 / 0.7);
}
.dialog .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3);
}
@media (max-width: 819px) {
  .gate-shell {
    min-height: 0;
    grid-template-columns: minmax(0, 420px);
    align-items: start;
    gap: var(--space-5);
  }
  .gate-intro {
    justify-items: center;
    text-align: center;
  }
  .gate-intro h2 {
    font-size: 1.75rem;
  }
}
/* #endregion */
