:root {
  color-scheme: light;
  --page: #f4f6f8;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-soft: #f8fafc;
  --line: #d8dee8;
  --line-strong: #b7c0ce;
  --text: #101418;
  --muted: #667085;
  --quiet: #8a95a5;
  --accent: #0a66c2;
  --accent-soft: #e8f2ff;
  --accent-strong: #084f98;
  --ok: #087f5b;
  --ok-soft: #e7f7ef;
  --warn: #b85c00;
  --warn-soft: #fff3df;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --shadow: 0 20px 50px rgba(16, 24, 40, 0.10);
  --shadow-soft: 0 8px 24px rgba(16, 24, 40, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--page);
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
  background:
    linear-gradient(180deg, #ffffff 0, #f4f6f8 260px, #eef2f6 100%);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
  min-width: 0;
}

button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

button:hover {
  background: var(--accent-strong);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

button.secondary,
button.ghost,
button.primary-quiet {
  background: var(--surface-solid);
  color: var(--text);
  border-color: var(--line);
}

button.secondary:hover,
button.ghost:hover,
button.primary-quiet:hover {
  background: var(--surface-soft);
  border-color: var(--line-strong);
}

button.danger {
  background: var(--danger);
}

button.danger:hover {
  background: #93180f;
}

button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

button.link-button {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
}

button.link-button:hover {
  background: transparent;
  color: var(--accent-strong);
}

input,
select {
  width: 100%;
  inline-size: 100%;
  max-width: 100%;
  max-inline-size: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

input:focus,
select:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.13);
}

input[type="date"],
input[type="time"] {
  display: block;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 100%;
  height: 44px;
  inline-size: 100%;
  max-inline-size: 100%;
  min-width: 0;
  min-height: 44px;
  min-inline-size: 0;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 42px;
  overflow: hidden;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
  display: block;
  height: 42px;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 0;
  line-height: 42px;
  text-align: left;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

h3 {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
}

.app-shell {
  width: min(1240px, calc(100vw - 32px));
  max-width: 100%;
  margin: 0 auto;
  padding: 22px 0 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 20px;
  background: rgba(244, 246, 248, 0.82);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

#sessionLine {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

#logoutButton {
  flex: 0 0 auto;
  align-self: flex-start;
  min-height: 34px;
  margin-top: 4px;
  padding: 0 12px;
  justify-self: end;
  font-size: 13px;
}

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

.side,
.main-stack,
.stack {
  display: grid;
  gap: 14px;
}

.compact {
  gap: 12px;
}

.split-top {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.panel {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  border: 1px solid rgba(216, 222, 232, 0.86);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  backdrop-filter: blur(18px);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2 {
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.ok {
  border-color: #b9e6d2;
  background: var(--ok-soft);
  color: var(--ok);
}

.badge.warn {
  border-color: #ffd18b;
  background: var(--warn-soft);
  color: var(--warn);
}

.train-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.field {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.form-grid > * {
  min-width: 0;
}

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

.form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card-auth-block {
  display: grid;
  gap: 8px;
}

.card-auth-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-auth-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.card-auth-options .switch {
  min-width: 0;
}

.card-auth-options .switch span {
  min-width: 0;
}

.datetime-grid {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
}

.datetime-grid .field,
.datetime-grid input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf1f5;
}

.segmented button {
  min-height: 36px;
  background: transparent;
  color: var(--muted);
  border: 0;
  box-shadow: none;
}

.segmented button.active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.10);
}

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

.switch {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-solid);
  padding: 0 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.switch input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.login-view {
  display: grid;
  place-items: center;
  min-height: min(560px, calc(100vh - 130px));
}

.login-panel {
  width: min(420px, 100%);
}

.login-actions,
.reset-footer,
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-actions {
  justify-content: flex-start;
}

.login-submit {
  width: 100%;
}

.wizard-nav button:not(.secondary) {
  min-width: 132px;
}

.home-stack,
.step-stack {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 14px;
}

.top-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.top-status > div,
.status-card {
  display: grid;
  gap: 4px;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.top-status strong {
  font-size: 18px;
}

.korail-status-card {
  align-content: start;
}

.account-status-row,
.account-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-edit-button {
  margin-top: 8px;
  justify-self: start;
}

.status-account-form {
  margin-top: 8px;
}

.top-status span:not(.badge),
.status-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.wizard-panel {
  width: 100%;
  max-width: 920px;
}

.summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-line span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
}

.suggestion {
  min-height: 32px;
  padding: 0 12px;
  border-color: var(--line);
  background: var(--surface-solid);
  color: var(--text);
  font-size: 13px;
}

.suggestion:hover,
.suggestion.selected {
  background: var(--accent-soft);
  border-color: rgba(10, 102, 194, 0.34);
  color: var(--accent-strong);
}

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

.review-block {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 14px;
}

.review-block strong {
  font-size: 17px;
}

.review-block span {
  color: var(--muted);
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.34);
  padding: 18px;
}

.modal-panel {
  display: grid;
  width: min(480px, 100%);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  padding: 18px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h3 {
  margin: 0;
  font-size: 18px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 34px;
  border-radius: 8px;
  border-color: var(--line);
  background: #ffffff;
  color: var(--muted);
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.selected-train-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.selected-train-list span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  padding: 9px 10px;
  font-size: 13px;
}

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

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(460px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.auth-copy {
  display: grid;
  align-content: end;
  min-height: 430px;
  border: 1px solid rgba(216, 222, 232, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 252, 0.92)),
    repeating-linear-gradient(90deg, rgba(10, 102, 194, 0.08) 0 1px, transparent 1px 64px);
  box-shadow: var(--shadow);
  padding: 24px;
}

.auth-copy h2 {
  margin-top: 10px;
  font-size: 36px;
  line-height: 1.1;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.auth-grid {
  display: grid;
  gap: 14px;
}

.auth-status {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-solid);
  color: var(--muted);
  padding: 13px 14px;
  font-size: 14px;
}

.auth-status.ok,
.form-message.ok {
  color: var(--ok);
}

.auth-status.error,
.form-message.error,
.error,
.danger-text {
  color: var(--danger);
}

.form-message {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.train-list {
  display: grid;
  gap: 10px;
}

.load-more-trains {
  justify-self: center;
  min-width: 144px;
}

.train-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.train-row:hover,
.train-row.selected {
  background: #ffffff;
  border-color: rgba(10, 102, 194, 0.55);
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.10);
}

.train-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.train-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.train-main strong {
  font-size: 15px;
}

.train-main span {
  color: var(--muted);
  font-size: 13px;
}

.car-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.car-pill {
  display: grid;
  min-width: 124px;
  min-height: 62px;
  gap: 4px;
  justify-items: start;
  border-color: var(--line);
  background: var(--surface-solid);
  color: var(--text);
  padding: 10px 12px;
}

.car-pill strong {
  font-size: 15px;
}

.car-pill span,
.car-pill small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.car-pill.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.seat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.seat-map-frame {
  --seat-size: 48px;
  --aisle-size: 34px;
  --seat-gap: 6px;
  --window-strip: 7px;
  display: grid;
  grid-template-columns: var(--window-strip) minmax(0, 1fr) var(--window-strip);
  justify-content: stretch;
  align-items: stretch;
  gap: calc(var(--window-strip) * 0.5);
  max-width: 100%;
  margin-top: 14px;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px 4px;
}

.seat-map {
  display: grid;
  gap: var(--seat-gap);
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.seat-map-head,
.seat-map-row {
  display: grid;
  grid-template-columns: var(--seat-grid-template);
  justify-content: center;
  gap: var(--seat-gap);
  align-items: center;
  width: 100%;
}

.seat-map-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.seat-window-rail {
  position: relative;
  width: var(--window-strip);
  min-width: var(--window-strip);
  margin-top: 24px;
  margin-bottom: 6px;
}

.seat-window-rail.left {
  justify-self: end;
}

.seat-window-rail.right {
  justify-self: start;
}

.seat-window {
  display: block;
  position: absolute;
  top: var(--window-top);
  width: var(--window-strip);
  height: var(--window-height);
  border: 1px solid rgba(126, 173, 205, 0.42);
  border-radius: 999px;
  background: #c6dcec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.seat-window-rail.left .seat-window {
  right: 0;
}

.seat-window-rail.right .seat-window {
  left: 0;
}

.aisle-label {
  color: var(--quiet);
}

.seat-aisle {
  height: var(--seat-size);
  min-height: var(--seat-size);
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
}

.aisle-arrow {
  color: #8a95a5;
  font-size: 13px;
  line-height: 1;
}

.seat-empty {
  height: var(--seat-size);
  min-height: var(--seat-size);
}

.seat-button {
  display: grid;
  place-items: center;
  position: relative;
  --seat-edge-color: var(--line);
  width: var(--seat-size);
  height: var(--seat-size);
  min-width: var(--seat-size);
  min-height: var(--seat-size);
  aspect-ratio: 1 / 1;
  gap: 0;
  background: var(--surface-solid);
  color: var(--text);
  border-color: var(--line);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 4px;
}

.seat-button strong {
  font-size: 16px;
  line-height: 1;
}

.seat-button.available {
  --seat-edge-color: #bfdbfe;
  background: #f8fbff;
  border-color: #bfdbfe;
}

.seat-button.selected {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.seat-button.selected.forward,
.seat-button.selected.backward {
  border-color: var(--accent);
}

.seat-button.unavailable {
  --seat-edge-color: #e2e8f0;
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
}

.seat-button.forward:not(.selected) {
  border-color: transparent;
}

.seat-button.backward:not(.selected) {
  border-color: transparent;
}

.seat-button.forward:not(.selected)::before,
.seat-button.backward:not(.selected)::before {
  box-sizing: border-box;
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 50%;
  border: 4px solid var(--seat-edge-color);
  pointer-events: none;
}

.seat-button.forward:not(.selected)::before {
  bottom: 0;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.seat-button.backward:not(.selected)::before {
  top: 0;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.seat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-seat {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8fbff;
}

.legend-seat.selected {
  background: var(--accent);
  border-color: var(--accent);
}

.legend-seat.unavailable {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.session-grid div {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.session-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.session-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 15px;
  line-height: 1.25;
}

.result-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.result-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) minmax(120px, 1fr) minmax(110px, 1fr) minmax(95px, auto);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  font-size: 13px;
}

.result-row span {
  color: var(--muted);
}

.reserved-ticket-panel {
  width: 100%;
}

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

.reserved-ticket-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(120px, 0.7fr) auto minmax(120px, auto);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px;
}

.reserved-ticket-row.selected {
  border-color: rgba(10, 102, 194, 0.55);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.10);
}

.reserved-ticket-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.reserved-ticket-main strong {
  font-size: 15px;
}

.reserved-ticket-main span,
.reserved-ticket-meta span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.reserved-ticket-journeys {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.reserved-ticket-journeys span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.reserved-ticket-journeys b {
  color: var(--text);
  font-weight: 800;
}

.reserved-ticket-meta {
  display: grid;
  gap: 4px;
}

.reserved-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 108px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--quiet);
  text-align: center;
  padding: 18px;
  font-size: 14px;
}

.empty.compact {
  min-height: 52px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1060px) {
  .workspace,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
    padding-top: 10px;
  }

  .topbar {
    align-items: flex-start;
    gap: 10px;
    padding-top: 10px;
  }

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

  h1 {
    font-size: 24px;
  }

  .panel {
    padding: 12px;
  }

  .form-grid.two,
  .form-grid.four,
  .switch-grid,
  .card-auth-options,
  .action-row,
  .top-status,
  .choice-grid,
  .session-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid.two.card-expiry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .train-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .train-row .train-badges {
    grid-column: 2;
    justify-self: start;
  }

  .result-row {
    grid-template-columns: 1fr;
  }

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

  .reserved-ticket-row .badge,
  .reserved-ticket-actions {
    justify-self: start;
  }

  .wizard-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .wizard-nav button {
    width: 100%;
  }

  .account-status-row,
  .account-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-form-actions button,
  .account-edit-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .seat-map-frame {
    padding: 3px;
  }

  .topbar {
    display: flex;
  }

  #logoutButton {
    width: auto;
    justify-self: end;
  }

  .auth-copy h2 {
    font-size: 30px;
  }
}
