/* Generation Next 2026 — Modern Elevated Navy & Gold Design System */
:root {
  color-scheme: light;
  /* Surfaces & Grounds */
  --bg: #F4F6FB;
  --surface: #EAF0FA;
  --surface-hover: #E1E9F6;
  --card: #FFFFFF;
  --border: #D8E1F0;
  --border-strong: #B9C7DF;

  /* Typography & Ink */
  --text: #0B132B;
  --muted: #475569;

  /* Sovereign Navy & Royal Action (WCAG AA > 5.6:1 on light surfaces) */
  --navy: #0B1933;
  --navy-mid: #152C5B;
  --brand: #1D4ED8;
  --brand-ink: #FFFFFF;
  --blue: #1D4ED8;
  --btn: #1D4ED8;
  --btn-hover: #1E3A8A;

  /* Burnished Gold Accent (The One Voice Rule: badges, key highlights, active rings) */
  --accent: #D99B16;
  --accent-bg: #FEF7E6;
  --accent-border: #F2CC74;
  --accent-ink: #784F04;

  /* Hero Architectural Surface */
  --hero-from: #0B1933;
  --hero-to: #173266;
  --hero-ink: #F8FAFC;
  --hero-muted: #CBD5E1;

  /* Semantic Status Tokens */
  --todo-bg: #DBEAFE;
  --todo-ink: #1E40AF;
  --done-bg: #DCFCE7;
  --done-ink: #166534;
  --done-dot: #16A34A;
  --line: #E2E8F0;
  --ok: #166534;
  --warn: #854D0E;
  --error: #B42318;
  --ok-bg: #ECFDF3;
  --ok-border: #ABEFC6;
  --warn-bg: #FEF9C3;
  --warn-border: #FDE047;
  --error-bg: #FEF3F2;
  --error-border: #FECDCA;

  /* Data Visualization */
  --bar-ghost: #DCE6F7;

  /* Elevation & Depth */
  --shadow-sm: 0 1px 2px rgba(11, 19, 43, 0.05);
  --shadow: 0 4px 12px -2px rgba(11, 19, 43, 0.06), 0 12px 28px -6px rgba(11, 19, 43, 0.08);
  --shadow-lg: 0 12px 32px -8px rgba(11, 19, 43, 0.16), 0 4px 12px -2px rgba(11, 19, 43, 0.08);

  /* Radius & Rhythm Scale */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070F22;
  --surface: #112042;
  --surface-hover: #182C59;
  --card: #0C1833;
  --border: #1E3360;
  --border-strong: #2D4A86;

  --text: #F1F5F9;
  --muted: #94A3B8;

  --navy: #050B18;
  --navy-mid: #0F2147;
  --brand: #2563EB;
  --brand-ink: #FFFFFF;
  --blue: #60A5FA;
  --btn: #2563EB;
  --btn-hover: #3B82F6;

  --accent: #F5B82E;
  --accent-bg: #2B210B;
  --accent-border: #6B4E12;
  --accent-ink: #FDE68A;

  --hero-from: #0B1933;
  --hero-to: #1A3670;
  --hero-ink: #F8FAFC;
  --hero-muted: #CBD5E1;

  --todo-bg: #1E3A8A;
  --todo-ink: #BFDBFE;
  --done-bg: #14532D;
  --done-ink: #86EFAC;
  --done-dot: #22C55E;
  --line: #1E3360;
  --ok: #86EFAC;
  --warn: #FDE047;
  --error: #FDA29B;
  --ok-bg: #0D2E1E;
  --ok-border: #166534;
  --warn-bg: #2E240B;
  --warn-border: #854D0E;
  --error-bg: #301417;
  --error-border: #912018;

  --bar-ghost: #1A2F5A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.38), 0 14px 32px -6px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px -8px rgba(0, 0, 0, 0.55);
}

/* Browser Surface Craft */
*, *::before, *::after {
  box-sizing: border-box;
}

::selection {
  background: rgba(29, 78, 216, 0.18);
  color: var(--text);
}

:root[data-theme="dark"] ::selection {
  background: rgba(96, 165, 250, 0.28);
  color: #FFFFFF;
}

html {
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "General Sans", "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--brand);
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 24px 64px;
}

main.wide {
  max-width: 1120px;
}

main.narrow {
  max-width: 600px;
}

/* Top Navigation Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.topbar-brand:hover {
  color: var(--blue);
}

.topbar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
  flex: none;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.topbar-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.topbar-link:hover {
  color: var(--text);
  background: var(--surface);
}

.topbar-link[aria-current="page"] {
  color: var(--blue);
  background: var(--surface);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.theme-btn:hover {
  border-color: var(--blue);
  background: var(--surface-hover);
}

/* Typography Hierarchy */
h1 {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  line-height: 1.18;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}

h2 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

h3 {
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0 0 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

p {
  margin: 0 0 12px;
  text-wrap: pretty;
}

p.lead {
  color: var(--muted);
  font-size: 1.025rem;
  line-height: 1.55;
  max-width: 65ch;
  margin: 0 0 20px;
}

a {
  color: var(--blue);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--btn-hover);
}

/* Architectural Hero Banner */
.hero {
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
  color: var(--hero-ink);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -48px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 155, 22, 0.22) 0%, rgba(37, 99, 235, 0.12) 45%, rgba(37, 99, 235, 0) 72%);
  pointer-events: none;
}

.hero h1 {
  color: var(--hero-ink);
  margin: 0 0 10px;
}

.hero .lead {
  color: var(--hero-muted);
  margin: 0;
  font-size: 0.98rem;
  max-width: 62ch;
}

.logo {
  display: block;
  width: min(280px, 68%);
  height: auto;
  margin: 0 0 16px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(217, 155, 22, 0.18);
  border: 1px solid rgba(245, 184, 46, 0.45);
  color: #FDE68A;
}

.badge-subtle {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--hero-ink);
}

/* Elevated Cards & Unboxed Structural Panels */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

/* Panels are structural section containers so inner .card elements never nest card-in-card */
.panel {
  background: transparent;
  border: 0;
  padding: 4px 0 12px;
  margin-bottom: 16px;
}

.panel > h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

/* Forms & Tactile Controls */
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

input, select, textarea {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
}

input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) {
  border-color: var(--blue);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.22);
}

:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] select:focus,
:root[data-theme="dark"] textarea:focus {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.28);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  cursor: pointer;
}

input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

option {
  background: var(--card);
  color: var(--text);
}

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

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.phone {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 10px;
}

.field {
  margin-bottom: 16px;
}

.help {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 5px 0 0;
  text-wrap: pretty;
}

/* Attendee Blocks */
.attendee {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 12px;
  background: var(--surface);
  transition: border-color 0.16s ease;
}

.attendee header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 22px;
  line-height: 1.25;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--btn);
  color: #FFFFFF;
  font: inherit;
  font-weight: 650;
  font-size: 15.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  margin-top: 10px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(11, 19, 43, 0.14), 0 6px 16px -4px rgba(29, 78, 216, 0.36);
  transition: transform 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out), background-color 0.16s ease, border-color 0.16s ease;
}

.btn:hover:not([disabled]) {
  background: var(--btn-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(29, 78, 216, 0.42), 0 4px 8px -2px rgba(11, 19, 43, 0.12);
}

.btn:active:not([disabled]) {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.24);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.45), 0 4px 14px -4px rgba(29, 78, 216, 0.4);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.secondary {
  background: var(--card);
  color: var(--blue);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn.secondary:hover:not([disabled]) {
  background: var(--surface);
  color: var(--btn-hover);
  border-color: var(--blue);
  box-shadow: 0 4px 12px -4px rgba(29, 78, 216, 0.2);
}

:root[data-theme="dark"] .btn.secondary:hover:not([disabled]) {
  color: #93C5FD;
}

.btn.secondary:active:not([disabled]) {
  transform: scale(0.99);
}

.link {
  background: none;
  border: 0;
  color: var(--blue);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.link:hover {
  background: rgba(29, 78, 216, 0.08);
  color: var(--btn-hover);
}

/* Checkboxes & Consent */
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 450;
  font-size: 14.5px;
  line-height: 1.5;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.check:hover {
  background: var(--surface);
}

.check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: none;
  margin-top: 3px;
  accent-color: var(--brand);
  cursor: pointer;
}

/* Order Summary Bar */
.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin: 16px 0 6px;
  font-variant-numeric: tabular-nums;
}

.total span {
  font-weight: 600;
  color: var(--muted);
}

.total strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Semantic Notices (Full 1px perimeter border — no side-tab tell) */
.notice {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14.5px;
  margin: 0 0 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.notice.ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok-border);
}

.notice.err {
  background: var(--error-bg);
  color: var(--error);
  border-color: var(--error-border);
}

.notice.wait {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: var(--warn-border);
}

.hidden {
  display: none !important;
}

/* Payment Confirmation Card (Status Page) */
.order-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.order-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--done-bg);
  color: var(--done-ink);
  border: 1px solid var(--ok-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  margin: 0 auto 14px;
}

.order-card h2 {
  margin-bottom: 4px;
}

.order-rows {
  margin: 18px 0;
  border-top: 1px dashed var(--border-strong);
  border-bottom: 1px dashed var(--border-strong);
  padding: 6px 0;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.order-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
}

.order-rows > div + div {
  border-top: 1px solid var(--border);
}

.order-rows dt {
  color: var(--muted);
  margin: 0;
}

.order-rows dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
  word-break: break-word;
}

details summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 600;
  padding: 4px 0;
}

details summary:hover {
  color: var(--btn-hover);
}

.terms {
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  margin-top: 12px;
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--surface);
}

/* Issued Ticket Pass */
.ticket {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums;
}

.ticket img {
  width: 132px;
  height: 132px;
  background: #FFFFFF;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.ticket .name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* Dashboard Metrics */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.stats > .stat:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.stat b {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.15;
}

/* Tables & Data Views */
.tbl {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.tbl table {
  margin-top: 0;
}

th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--muted);
  font-weight: 650;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface);
}

tr.click {
  cursor: pointer;
  transition: background-color 0.12s ease;
}

tr.click:hover td {
  background: var(--surface);
}

/* Scanner Box & High-Contrast Outcomes */
.scanbox {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 18px;
}

.result {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.result.admit {
  background: var(--ok);
  color: #FFFFFF;
}

.result.stop {
  background: var(--error);
  color: #FFFFFF;
}

/* Validation States */
.req {
  color: var(--error);
  font-weight: 700;
}

.field.invalid input,
.field.invalid select,
.check.invalid {
  border-color: var(--error);
  background: var(--error-bg);
}

.check.invalid span {
  color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 13px;
  margin: 6px 0 0;
  font-weight: 600;
}

/* Country Code Combobox */
.cc {
  position: relative;
}

.cc-flag {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.cc input {
  padding-left: 42px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.cc-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 240px;
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 20;
}

.cc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.cc-list li:hover,
.cc-list li.active {
  background: var(--surface);
}

.cc-list li[aria-selected="true"] {
  color: var(--blue);
  font-weight: 700;
  background: var(--surface);
}

.cc-list li.cc-empty {
  color: var(--muted);
  cursor: default;
  font-size: 13.5px;
}

.cc-f {
  font-size: 20px;
  line-height: 1;
}

/* Staff Console Segmented Tabs */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tab {
  min-height: 40px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.tab:hover {
  color: var(--text);
  background: var(--surface);
}

.tab.on,
.tab.on:hover {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}

/* Selectable Ticket Tier Options */
.opts {
  display: grid;
  gap: 10px;
}

.opt {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--card);
  cursor: pointer;
  margin: 0;
  font-weight: 400;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.opt input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.opt-name {
  font-weight: 650;
  font-size: 15.5px;
  color: var(--text);
}

.opt-price {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
}

.opt-left {
  font-size: 13px;
  color: var(--muted);
}

.opt.soldout {
  opacity: 0.5;
  cursor: not-allowed;
}

.opt:hover:not(.soldout) {
  border-color: var(--blue);
  background: var(--surface);
}

.opt:has(input:checked) {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--brand) inset;
}

.opt:has(input:checked) .opt-price {
  background: var(--brand);
  color: #FFFFFF;
}

textarea {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

/* Dashboard Layout & Charts */
.dash-top {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.dash-top .field {
  flex: 1 1 240px;
  margin: 0;
}

.dash-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-actions .btn {
  margin-top: 0;
  width: auto;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}

.chart-card.wide {
  grid-column: 1 / -1;
}

.chart-card h3,
.numbers h3 {
  font-size: 15px;
  margin: 0 0 12px;
}

.numbers h3 {
  margin-top: 18px;
}

.numbers summary {
  font-weight: 650;
}

.chart-card {
  animation: rise 0.42s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin: -4px 0 10px;
}

.legend span {
  display: inline-flex;
  align-items: center;
}

.sw {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
}

.sw.solid {
  background: var(--brand);
}

.hatch {
  background: var(--bar-ghost);
}

.sw.hatch {
  border: 1px solid var(--border-strong);
}

.hbar {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 2fr auto;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
  font-size: 14px;
}

.hbar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.hbar-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}

.hbar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--w, 0%);
  border-radius: 999px;
  background: var(--brand);
  transform-origin: left center;
  transform: scaleX(var(--s, 1));
  transition: transform 0.65s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
}

.hbar-fill.hatch {
  background: var(--bar-ghost);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  transition: none;
}

.hbar-val {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
  font-weight: 600;
}

.vbars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 12px 6px 0;
  border-bottom: 1px solid var(--border);
  min-height: 200px;
}

.vbar {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vbar-track {
  height: 156px;
  width: 100%;
  max-width: 56px;
  display: flex;
  align-items: flex-end;
}

.vbar-fill {
  width: 100%;
  height: var(--h, 0%);
  background: linear-gradient(180deg, var(--blue) 0%, var(--btn-hover) 100%);
  border-radius: 6px 6px 0 0;
  transform-origin: bottom center;
  transform: scaleY(var(--s, 1));
  transition: transform 0.65s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
}

.vbar-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.vbar-label {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
  white-space: nowrap;
}

/* Footer navigation */
.page-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .charts {
    grid-template-columns: 1fr;
  }
  .dash-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 540px) {
  main {
    padding: 14px 16px 48px;
  }
  .card {
    padding: 18px 16px;
  }
  .hero {
    padding: 22px 20px 20px;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .ticket {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .phone {
    grid-template-columns: 120px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Lost receipt results on the status page */
#lostCard summary { font-weight: 600; }
.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  padding: 12px 14px;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.receipt-row:hover { border-color: var(--blue); background: var(--surface); }
.receipt-row:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.receipt-row strong { display: block; font-variant-numeric: tabular-nums; }
.receipt-row .help { display: block; margin: 2px 0 0; }
.pill {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--todo-bg);
  color: var(--todo-ink);
}
.pill.ok { background: var(--done-bg); color: var(--done-ink); }

/* Dashboard polish: six stat cards in one row, bars that line up, even spacing on phones */
.stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hbar { grid-template-columns: minmax(80px, 150px) minmax(0, 1fr) var(--vw, auto); }
.hbar-val { text-align: right; }
#eventInfo { margin-bottom: 10px; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row:has(> .field) { row-gap: 0; }
}

/* Phones: the site links and the staff tabs sit in one row that scrolls sideways, with a fade at the edge to show there is more. */
@media (max-width: 540px) {
  .topbar {
    position: relative;
    min-width: 0;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }
  .topbar-brand {
    min-height: 34px;
    padding-right: 104px;
    white-space: nowrap;
  }
  .topbar-nav,
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  /* The tabs fade at the right edge. The site links use an overlay instead, because a mask would also hide the theme button. */
  .tabs {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  }
  .topbar::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 8px;
    width: 32px;
    height: 36px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: linear-gradient(90deg, transparent, var(--card) 85%);
    pointer-events: none;
  }
  /* Bars: name and number on one line, the bar full width underneath. */
  .hbar {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 6px;
    margin: 12px 0;
  }
  .hbar-track { grid-column: 1 / -1; grid-row: 2; }
  .topbar-nav::-webkit-scrollbar,
  .tabs::-webkit-scrollbar { display: none; }
  .topbar-nav { padding-right: 24px; min-width: 0; max-width: 100%; }
  .tabs { min-width: 0; max-width: 100%; }
  .topbar-link,
  .tab { flex: none; white-space: nowrap; }
  .topbar-nav .theme-btn {
    position: absolute;
    top: 10px;
    right: 12px;
  }
  .tabs { padding-right: 28px; }
}

/* Programme page */
.prog-day { margin-bottom: 12px; }
.prog-head h2 { margin: 0 0 2px; }
.prog-head .help { margin: 0; }
.prog-time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.prog-title { margin: 14px 0 2px; font-size: 1.08rem; font-weight: 700; color: var(--text); }
.prog-speaker { margin: 0; color: var(--blue); font-weight: 600; }
.prog-desc { margin: 10px 0 0; color: var(--muted); white-space: pre-line; }
.prog-event { margin: 18px 0 10px; font-size: 1.1rem; }

/* Staff: session programme editor */
.sess-edit { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 8px; background: var(--card); }
.sess-edit[open] { background: var(--surface); }
.sess-edit summary { cursor: pointer; min-height: 28px; }
.sess-edit textarea { font-family: inherit; font-size: 15px; }

/* Order card: the calendar button sits under the main button */
#ocCal { margin-top: 8px; }

/* Checkboxes inside tables keep their normal size, and a field after a button gets breathing room. */
table input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 0 6px 0 0; vertical-align: -3px; accent-color: var(--brand); }
table td label { white-space: nowrap; display: inline-flex; align-items: center; font-weight: 500; }
.btn.secondary + .field { margin-top: 18px; }

/* Orders tab: search, status filter and button in one row */
.order-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 4px; }
.order-filters .field { margin: 0; }
.order-filters .btn { margin: 0; width: auto; padding-left: 24px; padding-right: 24px; }
.pill.muted { background: var(--surface); color: var(--muted); }
tr.click:focus-visible td { background: var(--surface); }
tr.click:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

/* A card heading with an action on the right */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card-head .btn { margin: 0; width: auto; min-height: 40px; padding: 8px 16px; font-size: 14px; }

/* Staff feedback tab */
#fbStats { grid-template-columns: repeat(2, minmax(0, 240px)); margin-top: 12px; }
.fb-item { border-top: 1px solid var(--border); padding: 12px 0; }
.fb-item:first-child { border-top: 0; padding-top: 0; }
.fb-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.fb-meta .help { margin: 0; }
.fb-stars { color: var(--accent); letter-spacing: 2px; font-size: 15px; }
.fb-off { color: var(--border-strong); }
.fb-text { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Public feedback: five large rating buttons */
.rating { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.rating legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.rating-opts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rating-opts label { position: relative; margin: 0; }
.rating-opts input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.rating-opts span { display: flex; align-items: center; justify-content: center; min-height: 54px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); color: var(--text); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease; }
.rating-opts label:hover span { border-color: var(--blue); }
.rating-opts input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.rating-opts input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.rating.invalid .rating-opts span { border-color: var(--error); }
.rating-scale { display: flex; justify-content: space-between; margin-top: 6px; }
#message { font-family: inherit; font-size: 15px; }

/* Name tags: on screen a grid of previews; when printed, one A6 tag per page. Tags stay light in dark mode because they are printed. */
.tag-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.tag-filters .field { flex: 1 1 220px; margin: 0; }
.tag-filters .btn { flex: none; width: auto; margin: 0; }
.tag-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.tag-bar .help { margin: 0; }
.tag-bar .btn { width: auto; margin: 0; padding-left: 28px; padding-right: 28px; }
.tag-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 4px; }
.name-tag {
  container-type: inline-size;
  display: flex; flex-direction: column;
  aspect-ratio: 105 / 148;
  background: #FFFFFF; color: #0B132B;
  border: 1px solid #D8E1F0; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.name-tag-top { display: flex; flex-direction: column; align-items: center; gap: 2.5cqi; padding: 7cqi 8cqi 5cqi; background: linear-gradient(135deg, #0B1933 0%, #173266 100%); }
.name-tag-top img { width: 58cqi; height: auto; display: block; }
.name-tag-top span { color: #F2CC74; font-size: 3.8cqi; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; }
.name-tag-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5cqi 8cqi; text-align: center; }
.name-tag-body p { margin: 0; max-width: 100%; overflow-wrap: anywhere; }
.name-tag-title { font-size: 5.2cqi; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #475569; margin-bottom: 2cqi !important; }
.name-tag-first { font-size: 15cqi; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.name-tag-last { font-size: 8.5cqi; font-weight: 700; line-height: 1.15; margin: 1.5cqi 0 6cqi !important; }
.name-tag-church { font-size: 5cqi; font-weight: 600; color: #1D4ED8; line-height: 1.3; }
.name-tag-city { font-size: 4.6cqi; color: #475569; margin-top: 1cqi !important; }
.name-tag-id { margin: 0; padding: 0 0 5cqi; text-align: center; font-size: 3.4cqi; color: #64748B; letter-spacing: 0.05em; font-variant-numeric: tabular-nums; }

@media print {
  .tags-page { background: #FFFFFF !important; }
  .tags-page main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .tags-page .no-print { display: none !important; }
  .tags-page .tag-sheet { display: block; margin: 0; padding: 0 !important; }
  .tags-page .name-tag { width: 105mm; height: 148mm; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; break-after: page; page-break-after: always; }
  .tags-page .name-tag:last-child { break-after: auto; page-break-after: auto; }
}

@media (max-width: 540px) {
  .order-filters { grid-template-columns: 1fr; }
  .order-filters .btn, .tag-filters .btn, .tag-bar .btn { width: 100%; }
  #fbStats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tag-sheet { grid-template-columns: 1fr; padding: 0 12px; }
}

/* Status page: waiting for payment */
.pay-note { margin: 0 0 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn); font-size: 14.5px; }
.pay-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 4px; }
.pay-actions .btn { margin: 0; }
.pay-actions .btn.secondary { width: auto; padding-left: 20px; padding-right: 20px; }
#payWebHelp { margin-top: 10px; }
#payAuto:empty { display: none; }
@media (max-width: 540px) { .pay-actions { grid-template-columns: 1fr; } .pay-actions .btn.secondary { width: 100%; } }

/* Payment choice: name on the first line, a short note under it */
#payMethods .opt { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; }
#payMethods .opt input { grid-row: 1 / span 2; }
#payMethods .opt-name { white-space: nowrap; }
#payMethods .opt-left { grid-column: 2; margin: 0; text-align: left; font-size: 13px; color: var(--muted); white-space: normal; }

/* Staff: Sign out sits with the other top-bar links */
button.signout-btn { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 6px 10px; border-radius: var(--radius-sm); }
button.signout-btn:hover { color: var(--error); background: var(--surface); }
button.signout-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Staff sign-in page */
.login-page main { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-wrap { width: 100%; max-width: 420px; display: grid; gap: 16px; }
.login-brand { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); border-radius: var(--radius-lg); padding: 22px 24px 18px; text-align: center; box-shadow: var(--shadow); }
.login-brand img { width: 62%; max-width: 230px; height: auto; display: block; margin: 0 auto; }
.login-brand p { margin: 10px 0 0; color: var(--hero-muted); font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.login-card h1 { font-size: 1.5rem; margin: 0 0 4px; }
.login-card .btn { margin-top: 6px; }
.login-foot { text-align: center; margin: 0; }

/* ---------- Registration page: full-width layout (header bar, banner, two columns) ---------- */
body.reg-page { background: var(--card); }
.reg-bar { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.reg-bar-inner { max-width: 1440px; margin: 0 auto; padding: 12px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.reg-brand { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); text-decoration: none; white-space: nowrap; }
.reg-brand span { font-weight: 500; color: var(--muted); }
.reg-nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.reg-nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.reg-nav a:hover { color: var(--blue); }
.reg-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; border-bottom-color: var(--blue); }

main.reg { max-width: 1440px; padding: 22px 40px 40px; }
.reg-hero { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 0 32px; padding: 26px 40px; margin-bottom: 30px;
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%); color: var(--hero-ink); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.reg-hero::before { content: ""; width: 1px; align-self: stretch; background: rgba(255,255,255,.22); grid-column: 2; grid-row: 1; }
.reg-hero picture { grid-column: 1; grid-row: 1; }
.reg-logo { display: block; width: 250px; max-width: 100%; height: auto; }
.reg-hero-text { grid-column: 3; grid-row: 1; min-width: 0; }
.reg-hero h1 { color: var(--hero-ink); font-size: clamp(1.7rem, 2.6vw, 2.35rem); margin: 0 0 6px; }
.reg-venue { color: var(--hero-muted); margin: 0 0 14px; font-size: 1.02rem; line-height: 1.45; }
.reg-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; }
.reg-facts li { display: inline-flex; align-items: center; gap: 9px; font-size: 1.02rem; color: var(--hero-ink); padding: 0 20px; border-left: 1px solid rgba(255,255,255,.28); }
.reg-facts li:first-child { padding-left: 0; border-left: 0; }
.reg-facts svg, .reg-secure svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.reg-form { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 0 64px; align-items: start; }
.reg-col { min-width: 0; }
.reg-sec { padding: 0 0 26px; margin: 0 0 26px; border-bottom: 1px solid var(--border); }
.reg-col > .reg-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.reg-sec > h2 { font-size: 1.45rem; font-weight: 800; margin-bottom: 14px; }
.reg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.reg-page .attendee { background: transparent; border: 0; padding: 0; margin-bottom: 14px; }
.reg-page .attendee header { border-bottom: 0; padding-bottom: 0; margin-bottom: 10px; font-size: 1.05rem; }
.reg-page #addAttendee { border-color: var(--blue); color: var(--blue); }
.reg-page .total { border-top: 0; padding-top: 0; margin-top: 0; }
.reg-page .total span { color: var(--text); font-weight: 500; }

#payMethods .opt { grid-template-columns: auto minmax(0, 1fr) auto; }
#payMethods .opt input { grid-row: 1 / span 2; }
#payMethods .opt-brand { grid-column: 3; grid-row: 1 / span 2; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.opt-brand.eco { background: linear-gradient(90deg, #1E3A8A 0 46%, #DC2626 46% 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.opt-brand.one { color: var(--text); }
.opt-brand.pn { color: #1D4ED8; }
:root[data-theme="dark"] .opt-brand.eco { background: linear-gradient(90deg, #93C5FD 0 46%, #F87171 46% 100%); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="dark"] .opt-brand.pn { color: #93C5FD; }

.reg-submit { width: 100%; min-height: 52px; font-size: 1.12rem; margin-top: 12px; background: var(--navy-mid); }
.reg-submit:hover:not([disabled]) { background: var(--navy); }
.reg-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; color: var(--muted); font-size: 0.98rem; }
.reg-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); }
.reg-foot a { color: var(--muted); text-decoration: none; } .reg-foot a:hover { color: var(--blue); }

@media (max-width: 1100px) {
  .reg-form { grid-template-columns: 1fr; }
  .reg-col > .reg-sec:last-child { border-bottom: 1px solid var(--border); margin-bottom: 26px; }
  .reg-side > .reg-sec:last-child { border-bottom: 0; }
}
@media (max-width: 860px) {
  .reg-bar-inner { padding: 10px 18px; }
  .reg-nav { gap: 2px 16px; overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  .reg-nav a { white-space: nowrap; font-size: 14px; }
  main.reg { padding: 16px 18px 32px; }
  .reg-hero { grid-template-columns: 1fr; padding: 22px; gap: 14px; }
  .reg-hero::before { display: none; }
  .reg-hero picture, .reg-hero-text { grid-column: 1; grid-row: auto; }
  .reg-logo { width: 190px; }
  .reg-facts li { padding: 0 14px; font-size: .95rem; }
  .reg-pair { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .reg-facts { flex-direction: column; } .reg-facts li { padding: 0; border-left: 0; }
}

/* ---------- Other public pages: same look as the registration page ---------- */
.sub-hero .lead { color: var(--hero-muted); margin: 0; max-width: 70ch; }
.sub-hero .hero-meta { margin-top: 14px; }
.sub-hero h1 { margin-bottom: 8px; }
.reg-page .card { box-shadow: var(--shadow-sm); }
/* OneMoney in its brand orange */
.opt-brand.one { color: #E68A48; }

/* Programme timetable */
.prog-day { margin-bottom: 18px; }
.prog-day .prog-head h2 { margin: 0 0 10px; }
.timetable { list-style: none; margin: 0; padding: 0; }
.tt-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-top: 1px solid var(--line, rgba(127,127,127,.2)); align-items: baseline; }
.tt-row:first-child { border-top: 0; }
.tt-time { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.tt-what { display: flex; flex-direction: column; gap: 2px; }
.tt-title { font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.tt-speaker { font-size: 1.1rem; font-weight: 700; }
.tt-desc { opacity: .8; }
.tt-gap { padding: 8px 0; opacity: .65; }
.tt-gap .tt-what { font-style: italic; }
@media (max-width: 560px) { .tt-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Staff pages: same full-width look as the registration page ---------- */
.reg-nav .signout-btn { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer; border-bottom: 2px solid transparent; }
.reg-nav .signout-btn:hover { color: var(--blue); }
.staff-page main.reg > .tabs, .staff-page main.reg > section, .staff-page main.reg > .card { max-width: none; }
/* Scanner: the scanning card on the left, offline and app help on the right, on wide screens. */
@media (min-width: 900px) {
  main.reg.scan-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
  main.reg.scan-main > .reg-hero, main.reg.scan-main > .reg-foot { grid-column: 1 / -1; }
  main.reg.scan-main > .card:first-of-type { grid-column: 1; grid-row: 2 / span 2; }
  main.reg.scan-main > .card:not(:first-of-type) { grid-column: 2; }
}
@media print {
  .staff-page main.reg { max-width: none; padding: 0; margin: 0; }
}
