/* ==========================================================================
   Design system — strict monochrome
   One stylesheet, no build step. Tokens first, then base, layout, components.
   ========================================================================== */

:root {
  /* Palette (spec) */
  --bg: #ffffff;
  --text: #111111;
  --text-2: #737373;
  --text-3: #a3a3a3;
  --border: #eaeaea;
  --surface: #f7f7f7;
  --btn: #111111;
  --btn-text: #ffffff;

  /* Derived greys (still monochrome) */
  --border-strong: #d4d4d4;
  --hover: #f2f2f2;
  --ink-soft: #2a2a2a;

  /* Type */
  --font: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: clamp(2rem, 4vw, 2.75rem);
  --fs-display: clamp(2.4rem, 7vw, 5.25rem);

  /* Spacing scale (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;

  /* Shape & depth */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.04);
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 4px 16px rgba(17, 17, 17, 0.04);
  --shadow-lg: 0 2px 4px rgba(17, 17, 17, 0.04), 0 12px 32px rgba(17, 17, 17, 0.08);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t: 240ms;
  --t-slow: 520ms;

  --container: 1180px;
  --sidebar: 248px;
  --header-h: 64px;
}

/* ── Base ──────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--text);
  color: var(--bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-sm);
}

.skip-link:focus {
  top: var(--s-4);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--s-8);
  }
}

.muted {
  color: var(--text-2);
}

.subtle {
  color: var(--text-3);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  --btn-h: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: var(--btn-h);
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--btn);
  color: var(--btn-text);
}

.btn-primary:hover {
  background: var(--ink-soft);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--hover);
}

.btn-sm {
  --btn-h: 34px;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
}

.btn-lg {
  --btn-h: 50px;
  padding: 0 var(--s-6);
  font-size: var(--fs-base);
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.btn.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color var(--t-fast) var(--ease);
}

.link:hover {
  text-decoration-color: var(--text);
}

/* ── Forms ─────────────────────────────────────────────────────────────── */

.field {
  display: grid;
  gap: var(--s-2);
}

.field + .field {
  margin-top: var(--s-5);
}

.label {
  font-size: var(--fs-sm);
  font-weight: 500;
}

.hint {
  font-size: var(--fs-xs);
  color: var(--text-2);
}

.input,
.select,
.textarea {
  width: 100%;
  height: 44px;
  padding: 0 var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.textarea {
  height: auto;
  min-height: 120px;
  padding: var(--s-3) var(--s-4);
  resize: vertical;
}

.input::placeholder {
  color: var(--text-3);
}

.input:hover,
.select:hover {
  border-color: var(--border-strong);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: var(--text);
  border-width: 1.5px;
}

.field-error {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text);
}

.field-error::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--text);
  border-radius: 50%;
}

.input-wrap {
  position: relative;
}

.input-wrap .input {
  padding-right: 64px;
}

.input-action {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 500;
  cursor: pointer;
}

.input-action:hover {
  background: var(--hover);
  color: var(--text);
}

/* Segmented radio choice (account type) */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card {
  display: grid;
  gap: var(--s-1);
  height: 100%;
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

.choice-card strong {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.choice-card span {
  font-size: var(--fs-xs);
  color: var(--text-2);
}

.choice:hover .choice-card {
  border-color: var(--border-strong);
}

.choice input:checked + .choice-card {
  border-color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}

.choice input:focus-visible + .choice-card {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* ── Alerts / flash ───────────────────────────────────────────────────── */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  font-size: var(--fs-sm);
}

.alert-error {
  background: var(--bg);
  border-color: var(--text);
}

.alert-success {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.alert-icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.alert-body {
  flex: 1;
}

.alert-close {
  flex: none;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
}

.alert-close:hover {
  opacity: 1;
}

.flash-stack {
  position: fixed;
  right: var(--s-5);
  bottom: var(--s-5);
  z-index: 60;
  display: grid;
  gap: var(--s-2);
  width: min(380px, calc(100vw - 2.5rem));
}

.flash-stack .alert {
  box-shadow: var(--shadow-lg);
  animation: slide-up var(--t-slow) var(--ease) both;
}

/* ── Badges ───────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
}

.badge-solid {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.badge-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Cards ────────────────────────────────────────────────────────────── */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.card-pad {
  padding: var(--s-6);
}

.card-hover {
  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease);
}

.card-hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ── Site header / footer ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--s-8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--s-1);
}

.nav-links a {
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-2);
  transition:
    color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
}

.nav-actions form {
  margin: 0;
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}

.nav-toggle span + span {
  margin-top: 4px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 39;
  padding: var(--s-6) var(--s-5);
  background: var(--bg);
  display: grid;
  align-content: start;
  gap: var(--s-1);
  animation: fade-in var(--t) var(--ease) both;
}

.mobile-nav a:not(.btn),
.mobile-nav button.as-link {
  display: block;
  width: 100%;
  padding: var(--s-4) 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: none;
  font: inherit;
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.mobile-nav .btn {
  margin-top: var(--s-6);
}

@media (min-width: 880px) {
  .nav-links,
  .nav-actions {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

.site-footer {
  margin-top: var(--s-24);
  padding: var(--s-12) 0 var(--s-10);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.footer-grid {
  display: grid;
  gap: var(--s-8);
}

.footer-grid h4 {
  margin-bottom: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--text);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-10);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ── Home: hero ───────────────────────────────────────────────────────── */

.hero {
  padding: var(--s-16) 0 var(--s-12);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-12);
  align-items: center;
}

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

.hero h1 {
  margin-top: var(--s-5);
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 em {
  font-style: normal;
  color: var(--text-3);
}

.hero-lede {
  max-width: 34rem;
  margin-top: var(--s-6);
  font-size: var(--fs-lg);
  color: var(--text-2);
}

.search {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  max-width: 34rem;
  margin-top: var(--s-8);
  padding: 6px 6px 6px var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.search:focus-within {
  border-color: var(--text);
  box-shadow: var(--shadow-lg);
}

.search svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--text-3);
}

.search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--fs-base);
  color: var(--text);
}

.search input:focus {
  outline: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin-top: var(--s-8);
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.hero-meta strong {
  display: block;
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Hero ticket illustration (pure CSS, no imagery needed) */
.ticket-art {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.ticket {
  position: relative;
  border-radius: 18px;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 30px 60px -20px rgba(17, 17, 17, 0.45);
  overflow: hidden;
}

.ticket-top {
  padding: var(--s-6);
}

.ticket-top .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.ticket-title {
  margin-top: var(--s-3);
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.ticket-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-top: var(--s-6);
  font-size: var(--fs-xs);
}

.ticket-rows span {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

.ticket-rows strong {
  font-size: var(--fs-sm);
  font-weight: 500;
}

.ticket-perf {
  position: relative;
  height: 0;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.22);
  margin: 0 var(--s-5);
}

.ticket-perf::before,
.ticket-perf::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
}

.ticket-perf::before {
  left: -32px;
}

.ticket-perf::after {
  right: -32px;
}

.ticket-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6) var(--s-6);
}

.ticket-code {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
}

.qr-mock {
  display: grid;
  grid-template-columns: repeat(7, 8px);
  gap: 2px;
  padding: 8px;
  background: var(--bg);
  border-radius: 8px;
}

.qr-mock i {
  width: 8px;
  height: 8px;
  border-radius: 1.5px;
  background: var(--text);
}

.qr-mock i.o {
  background: transparent;
}

.ticket-shadow {
  position: absolute;
  inset: 18px -14px -14px 14px;
  z-index: -1;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transform: rotate(3deg);
}

@media (min-width: 960px) {
  .hero {
    padding: var(--s-20) 0 var(--s-16);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .ticket-art {
    transform: rotate(-3deg);
  }
}

/* ── Sections / chips / event grid ────────────────────────────────────── */

.section {
  padding: var(--s-12) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}

.section-head h2 {
  font-size: var(--fs-2xl);
}

.section-head p {
  margin-top: var(--s-2);
  color: var(--text-2);
}

.chips {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  padding-bottom: var(--s-1);
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  color: var(--text-2);
  background: var(--bg);
  transition:
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

.chip:hover {
  border-color: var(--text);
  color: var(--text);
}

.chip.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.event-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.empty {
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  padding: var(--s-16) var(--s-6);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  text-align: center;
  background: var(--surface);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.empty-icon svg {
  width: 22px;
  height: 22px;
}

.empty h3 {
  font-size: var(--fs-lg);
}

.empty p {
  max-width: 28rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.empty .btn {
  margin-top: var(--s-3);
}

/* Feature strip */
.features {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.feature {
  padding: var(--s-8) var(--s-6);
  background: var(--bg);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.feature h3 {
  margin-top: var(--s-6);
  font-size: var(--fs-lg);
}

.feature p {
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--text-2);
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cta-band {
  display: grid;
  gap: var(--s-6);
  padding: var(--s-12) var(--s-8);
  border-radius: var(--r-lg);
  background: var(--text);
  color: var(--bg);
}

.cta-band h2 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.04em;
}

.cta-band p {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.62);
}

.cta-band .btn-primary {
  background: var(--bg);
  color: var(--text);
}

.cta-band .btn-primary:hover {
  background: var(--surface);
}

@media (min-width: 768px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: var(--s-16) var(--s-12);
  }
}

/* Page header (simple pages) */
.page-head {
  padding: var(--s-12) 0 var(--s-8);
}

.page-head h1 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.04em;
}

.page-head p {
  margin-top: var(--s-3);
  color: var(--text-2);
}

/* ── Auth ─────────────────────────────────────────────────────────────── */

.auth {
  display: grid;
  min-height: 100vh;
}

.auth-main {
  display: flex;
  flex-direction: column;
  padding: var(--s-6) var(--s-5);
}

.auth-main .brand {
  align-self: flex-start;
}

.auth-form-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: var(--s-10) 0;
}

.auth-form {
  width: 100%;
  max-width: 400px;
}

.auth-form h1 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.035em;
}

.auth-form > p {
  margin-top: var(--s-2);
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.auth-form form {
  margin-top: var(--s-8);
}

.auth-form .alert {
  margin-top: var(--s-6);
}

.auth-form .btn-block {
  margin-top: var(--s-6);
}

.auth-switch {
  margin-top: var(--s-6);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.auth-aside {
  display: none;
  position: relative;
  padding: var(--s-10);
  background: var(--text);
  color: var(--bg);
  overflow: hidden;
}

.auth-aside-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.auth-quote {
  max-width: 28rem;
  font-size: var(--fs-3xl);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.auth-quote span {
  color: rgba(255, 255, 255, 0.4);
}

.auth-aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
}

.auth-aside li {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}

.auth-aside li::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.auth-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}

@media (min-width: 960px) {
  .auth {
    grid-template-columns: 1fr 1fr;
  }

  .auth-main {
    padding: var(--s-8) var(--s-12);
  }

  .auth-aside {
    display: block;
  }
}

/* ── Dashboard shell ──────────────────────────────────────────────────── */

.dash {
  display: grid;
  min-height: 100vh;
  background: var(--surface);
}

.dash-sidebar {
  display: none;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-direction: column;
  padding: var(--s-5) var(--s-4);
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.dash-sidebar .brand {
  padding: var(--s-1) var(--s-2) var(--s-6);
}

.dash-role {
  margin: 0 var(--s-2) var(--s-4);
}

.dash-nav {
  display: grid;
  gap: 2px;
}

.dash-nav-label {
  margin: var(--s-5) var(--s-3) var(--s-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.dash-nav a,
.dash-nav span.is-soon {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 38px;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-2);
  transition:
    color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

.dash-nav a:hover {
  color: var(--text);
  background: var(--hover);
}

.dash-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--border);
}

.dash-nav svg {
  flex: none;
  width: 17px;
  height: 17px;
}

.dash-nav span.is-soon {
  color: var(--text-3);
  cursor: default;
}

.dash-nav span.is-soon em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}

.dash-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  border-top: 1px solid var(--border);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.dash-user-meta {
  min-width: 0;
  flex: 1;
  font-size: var(--fs-sm);
  line-height: 1.3;
}

.dash-user-meta strong {
  display: block;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-user-meta span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-user form {
  margin: 0;
}

.dash-main {
  min-width: 0;
}

.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: var(--header-h);
  padding: 0 var(--s-5);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dash-topbar .brand {
  font-size: var(--fs-base);
}

.dash-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.dash-content {
  padding: var(--s-8) var(--s-5) var(--s-16);
  max-width: 1200px;
}

.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}

.dash-head h1 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.035em;
}

.dash-head p {
  margin-top: var(--s-1);
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.stat-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.stat {
  padding: var(--s-5);
}

.stat-label {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-2);
}

.stat-value {
  margin-top: var(--s-3);
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.stat-note {
  margin-top: var(--s-1);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.dash-section {
  margin-top: var(--s-8);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-6);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
}

.checklist li:first-child {
  border-top: 0;
}

.checklist .step {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}

.checklist li > div {
  flex: 1;
}

.checklist strong {
  display: block;
  font-weight: 500;
}

.checklist span.muted {
  font-size: var(--fs-xs);
}

@media (min-width: 1024px) {
  .dash {
    grid-template-columns: var(--sidebar) 1fr;
  }

  .dash-sidebar {
    display: flex;
  }

  .dash-topbar .brand,
  .dash-topbar .nav-toggle {
    display: none;
  }

  .dash-content {
    padding: var(--s-10) var(--s-10) var(--s-16);
  }
}

/* Mobile dashboard drawer reuses .mobile-nav */

/* ── Error page ───────────────────────────────────────────────────────── */

.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 200px);
  padding: var(--s-16) 0;
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.error-page h1 {
  margin-top: var(--s-4);
  font-size: var(--fs-3xl);
  letter-spacing: -0.04em;
}

.error-page p {
  max-width: 30rem;
  margin: var(--s-4) auto 0;
  color: var(--text-2);
}

.error-page .actions {
  display: flex;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-8);
}

/* ── Motion ───────────────────────────────────────────────────────────── */

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Elements start visible; JS opts them into the reveal animation. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Print ────────────────────────────────────────────────────────────── */

@media print {
  .site-header,
  .site-footer,
  .dash-sidebar,
  .dash-topbar,
  .flash-stack,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }
}

/* ── Utilities (CSP forbids inline style attributes) ───────────────────── */

.mt-3 {
  margin-top: var(--s-3);
}

.d-1 { --delay: 60ms; }
.d-2 { --delay: 120ms; }
.d-3 { --delay: 180ms; }
.d-4 { --delay: 240ms; }

.footer-blurb {
  margin-top: var(--s-3);
  max-width: 22rem;
}

.eyebrow-invert {
  color: rgba(255, 255, 255, 0.55);
}

.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.legend {
  margin-bottom: var(--s-2);
  padding: 0;
}

.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.card-pad-tight {
  padding-bottom: var(--s-4);
}

.card-title {
  margin-top: var(--s-2);
  font-size: var(--fs-xl);
}


/* ==========================================================================
   Launch features: events, checkout, tickets, tables, check-in, admin
   ========================================================================== */

.small { font-size: var(--fs-xs); }
.block { display: block; }
.strong { font-weight: 600; }
.center { text-align: center; }
.mt-4 { margin-top: var(--s-4); }
.select-all { user-select: all; }
.section-tight { padding: var(--s-2) 0 var(--s-6); }
.result-count { margin-bottom: var(--s-4); font-size: var(--fs-sm); }
.back-link { display: inline-block; margin-bottom: var(--s-2); font-size: var(--fs-sm); color: var(--text-2); }
.back-link:hover { color: var(--text); }
.section-label { margin: var(--s-8) 0 var(--s-3); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.narrow { max-width: 720px; }
.narrow-page { max-width: 520px; padding-top: var(--s-12); padding-bottom: var(--s-12); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.toolbar form { margin: 0; }

.badge-muted { color: var(--text-3); background: var(--surface); }
.badge-outline-strong { border-color: var(--text); color: var(--text); }

.btn-danger { background: var(--bg); color: var(--text); border-color: var(--text); }
.btn-danger:hover { background: var(--text); color: var(--bg); }
.btn-xl { --btn-h: 60px; font-size: var(--fs-lg); }

/* ── Event cards ─────────────────────────────────────────────────────── */

.event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.event-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  overflow: hidden;
}

.event-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

.event-card:hover .event-cover img { transform: scale(1.03); }

.cover-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, var(--surface) 0 12px, #f1f1f1 12px 24px);
}

.cover-fallback span {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text-3);
}

.cover-fallback-lg span { font-size: 6rem; }

.date-chip {
  position: absolute;
  left: var(--s-3);
  top: var(--s-3);
  display: grid;
  justify-items: center;
  min-width: 48px;
  padding: 6px 8px;
  border-radius: var(--r);
  background: var(--bg);
  box-shadow: var(--shadow);
  line-height: 1.1;
}

.date-chip span { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-2); }
.date-chip strong { font-size: var(--fs-lg); letter-spacing: -0.02em; }
.cover-badge { position: absolute; right: var(--s-3); top: var(--s-3); }

.event-body {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-4) var(--s-5) var(--s-5);
  flex: 1;
}

.event-body h3 { font-size: var(--fs-lg); letter-spacing: -0.02em; }
.event-body p { font-size: var(--fs-sm); }

.event-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-3);
  font-size: var(--fs-sm);
}

.price { font-weight: 600; }

/* ── Event page ──────────────────────────────────────────────────────── */

.event-page { padding-top: var(--s-6); }

.event-hero-cover {
  aspect-ratio: 21 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.event-hero-cover img { width: 100%; height: 100%; object-fit: cover; }

.event-layout {
  display: grid;
  gap: var(--s-10);
  margin-top: var(--s-8);
}

.event-title { margin-top: var(--s-2); font-size: var(--fs-3xl); letter-spacing: -0.045em; }
.event-summary { margin-top: var(--s-3); font-size: var(--fs-lg); color: var(--text-2); }

.event-facts {
  display: grid;
  gap: var(--s-4);
  margin: var(--s-8) 0 0;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.event-facts dt { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.event-facts dd { margin: 2px 0 0; font-weight: 500; }

.event-description { margin-top: var(--s-8); }
.event-description h2 { font-size: var(--fs-xl); margin-bottom: var(--s-3); }
.prose { white-space: pre-line; color: var(--ink-soft); line-height: 1.7; max-width: 65ch; }

.ticket-panel { padding: var(--s-6); }
.ticket-panel h2 { font-size: var(--fs-xl); margin-bottom: var(--s-4); }

.ticket-options { list-style: none; margin: 0 0 var(--s-4); padding: 0; }

.ticket-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--border);
}

.ticket-option:first-child { border-top: 0; padding-top: 0; }
.ticket-option.is-off { opacity: 0.6; }
.ticket-option-info { display: grid; gap: 2px; }
.ticket-option .qty { width: 76px; height: 40px; flex: none; }

.ticket-total {
  display: flex;
  justify-content: space-between;
  padding: var(--s-3) 0 var(--s-4);
  border-top: 1px solid var(--text);
  font-size: var(--fs-lg);
}

@media (min-width: 960px) {
  .event-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  .event-aside { position: relative; }
  .ticket-panel { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
  .event-facts { grid-template-columns: repeat(3, 1fr); }
}

/* ── Tables ──────────────────────────────────────────────────────────── */

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

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.table th {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--t-fast) var(--ease); }
.table tbody tr:hover { background: #fbfbfb; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td form { margin: 0; display: inline-block; }
.table-compact td { padding: var(--s-3) var(--s-5); }
.total-row td { font-weight: 600; border-top: 1px solid var(--text); }
.card-pad .table-compact td { padding-left: 0; padding-right: 0; }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border);
}

.card-title-sm { font-size: var(--fs-base); font-weight: 600; letter-spacing: -0.01em; }
.card-pad > .card-title-sm { margin-bottom: var(--s-4); }

.grid-2 { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.stat-grid-3 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.stat-of { font-size: var(--fs-base); color: var(--text-3); font-weight: 500; }

.progress { height: 6px; margin-top: var(--s-3); border-radius: var(--r-pill); background: var(--surface); overflow: hidden; border: 1px solid var(--border); }
.progress span { display: block; height: 100%; background: var(--text); border-radius: inherit; transition: width var(--t-slow) var(--ease); }
.progress .w-0 { width: 0%; }
.progress .w-5 { width: 5%; }
.progress .w-10 { width: 10%; }
.progress .w-15 { width: 15%; }
.progress .w-20 { width: 20%; }
.progress .w-25 { width: 25%; }
.progress .w-30 { width: 30%; }
.progress .w-35 { width: 35%; }
.progress .w-40 { width: 40%; }
.progress .w-45 { width: 45%; }
.progress .w-50 { width: 50%; }
.progress .w-55 { width: 55%; }
.progress .w-60 { width: 60%; }
.progress .w-65 { width: 65%; }
.progress .w-70 { width: 70%; }
.progress .w-75 { width: 75%; }
.progress .w-80 { width: 80%; }
.progress .w-85 { width: 85%; }
.progress .w-90 { width: 90%; }
.progress .w-95 { width: 95%; }
.progress .w-100 { width: 100%; }

/* ── Forms (dashboard) ───────────────────────────────────────────────── */

.form-card { max-width: 860px; }
.form-card .field + .field, .form-card .form-grid + .field, .form-card .field + .form-grid { margin-top: var(--s-5); }
.form-grid { display: grid; gap: var(--s-5); }
.form-grid .field + .field { margin-top: 0; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.form-actions { display: flex; justify-content: flex-end; gap: var(--s-2); margin-top: var(--s-6); }
.input-file { height: auto; padding: var(--s-3); }
.input-xl { height: 60px; font-size: var(--fs-xl); letter-spacing: 0.08em; text-transform: uppercase; }
.checkbox { display: inline-flex; gap: var(--s-2); align-items: center; font-size: var(--fs-sm); }
.cover-preview { width: 240px; aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }

.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-3); align-items: center; }
.filters .input, .filters .select { height: 40px; width: auto; flex: 1 1 180px; }
.filters .input[type="search"] { flex: 3 1 260px; }
.inline-field { display: inline-flex; align-items: center; gap: var(--s-2); }
.inline-field .input { flex: none; width: 160px; }

.tabs { display: flex; gap: var(--s-1); margin-bottom: var(--s-6); border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs a { padding: var(--s-3) var(--s-3); margin-bottom: -1px; font-size: var(--fs-sm); color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--text); font-weight: 500; }

.callout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface); }
.callout form { margin: 0; }
.callout-live { border-style: solid; border-color: var(--text); background: var(--bg); }

.row-menu { display: inline-block; text-align: left; }
.row-menu summary { list-style: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu[open] { display: block; }
.row-menu-panel { margin-top: var(--s-3); padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r); background: var(--bg); box-shadow: var(--shadow-lg); min-width: min(720px, 80vw); white-space: normal; }
.add-tt details summary { list-style: none; display: inline-flex; }
.add-tt details summary::-webkit-details-marker { display: none; }
.add-tt { border-top: 1px solid var(--border); }

.pagination { display: flex; justify-content: center; align-items: center; gap: var(--s-4); margin-top: var(--s-8); font-size: var(--fs-sm); }

.kv { display: grid; gap: var(--s-3); margin: 0; }
.kv div { display: grid; grid-template-columns: 140px 1fr; gap: var(--s-3); font-size: var(--fs-sm); }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }

.settle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); padding: var(--s-4); border-radius: var(--r); background: var(--surface); }
.settle-grid strong { display: block; margin-top: 2px; font-size: var(--fs-lg); }

.settings-block { max-width: 760px; }
.settings-block + .settings-block { margin-top: var(--s-6); }
.danger-zone { border-color: var(--text); }

/* ── My tickets ──────────────────────────────────────────────────────── */

.ticket-list { display: grid; gap: var(--s-3); }
.ticket-row { display: flex; align-items: center; gap: var(--s-5); padding: var(--s-4) var(--s-5); }
.ticket-row-date { display: grid; justify-items: center; flex: none; width: 52px; padding: 6px 0; border-radius: var(--r); background: var(--text); color: var(--bg); line-height: 1.1; }
.ticket-row-date span { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; opacity: 0.7; }
.ticket-row-date strong { font-size: var(--fs-xl); }
.ticket-row-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ticket-row-main > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.list { list-style: none; margin: 0; padding: 0; }
.list-link { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.list li:first-child .list-link { border-top: 0; }
.list-link > span:first-child { display: grid; }

.ticket-sheet { max-width: 420px; margin: 0 auto var(--s-8); }
.ticket-real .ticket-title { font-size: var(--fs-2xl); }
.ticket-qr-block { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-6); }
.qr { width: 232px; height: 232px; padding: 10px; border-radius: 14px; background: #fff; }
.qr svg { width: 100%; height: 100%; }
.qr-used { display: grid; place-items: center; background: rgba(255,255,255,0.08); border: 1px dashed rgba(255,255,255,0.3); }
.ticket-code-lg { font-size: var(--fs-xl); letter-spacing: 0.12em; }
.ticket-fineprint { font-size: var(--fs-xs); color: rgba(255,255,255,0.55); }

/* ── Check-in ────────────────────────────────────────────────────────── */

.checkin-layout { display: grid; gap: var(--s-4); }
@media (min-width: 960px) { .checkin-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.checkin-count { min-width: 180px; text-align: right; font-size: var(--fs-sm); }
.checkin-count strong { font-size: var(--fs-2xl); letter-spacing: -0.03em; }

.result { margin-top: var(--s-5); padding: var(--s-6); border-radius: var(--r-lg); border: 2px solid var(--text); animation: slide-up var(--t) var(--ease) both; }
.result-title { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.03em; }
.result-name { margin-top: var(--s-2); font-size: var(--fs-xl); font-weight: 500; }
.result-meta { margin-top: 2px; font-size: var(--fs-sm); opacity: 0.75; }
.result-note { margin-top: var(--s-3); font-size: var(--fs-sm); }
.result-ok { background: var(--text); color: var(--bg); }
.result-bad { background: var(--bg); color: var(--text); border-width: 4px; }
.result-bad .result-title::before { content: "✕  "; }
.result-ok .result-title::before { content: "✓  "; }
.result-warn { background: var(--surface); border-style: dashed; }
.result-neutral { background: var(--surface); border-color: var(--border-strong); }
.result-lg .result-title { font-size: var(--fs-3xl); }

@media print {
  body { background: #fff; }
  .dash { display: block; background: #fff; }
  .dash-content { padding: 0; }
  .ticket { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.dash .ticket-perf::before,
.dash .ticket-perf::after { background: var(--surface); }
.ticket-sheet + .narrow { margin: 0 auto; }

/* ── Username prefix & switches ──────────────────────────────────────── */

.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: var(--fs-sm); pointer-events: none; }
.input-prefix .input { padding-left: calc(var(--s-4) + 14px); }

.switch-row { display: flex; gap: var(--s-4); align-items: flex-start; max-width: 620px; padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; font-size: var(--fs-sm); transition: border-color var(--t-fast) var(--ease); }
.switch-row:hover { border-color: var(--border-strong); }
.switch-row > span { display: grid; gap: 2px; }

.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  margin: 0;
  border-radius: var(--r-pill);
  background: var(--border-strong);
  cursor: pointer;
  transition: background-color var(--t) var(--ease);
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease);
}

.switch:checked { background: var(--text); }
.switch:checked::after { transform: translateX(16px); }
.switch:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Fields in a grid row keep their label/input aligned even when a sibling shows an error. */
.field { align-content: start; }


/* ── Push notifications card ─────────────────────────────────────────── */

.push-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.push-card-main { display: flex; align-items: center; gap: var(--s-4); flex: 1 1 320px; }
.push-card-main .empty-icon { margin: 0; flex: none; }
.push-card[data-state="on"] { border-color: var(--text); }
.settings-block > .push-card { margin-bottom: 0; }

/* ==========================================================================
   Mobile app shell for dashboards: compact top bar, bottom tab bar, "More" sheet
   ========================================================================== */

.dash-topbar-mark { display: inline-flex; }
.dash-topbar-title { display: none; }
.mobile-only { display: none !important; }
.tabbar, .sheet { display: none; }
.avatar-sm { width: 32px; height: 32px; font-size: 11px; }

@media (min-width: 1024px) {
  .dash-topbar-mark { display: none; }
}

@media (max-width: 1023px) {
  .mobile-only { display: inline-grid !important; }
  .desktop-only { display: none !important; }

  /* Top app bar */
  .dash-topbar {
    height: calc(56px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) var(--s-4) 0;
    gap: var(--s-3);
  }
  .dash-topbar-title {
    display: block;
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: var(--fs-base);
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dash-topbar-actions { margin-left: 0; }

  /* Content sits above the tab bar */
  .dash-content { padding: var(--s-5) var(--s-4) calc(104px + env(safe-area-inset-bottom)); }
  .dash-head { margin-bottom: var(--s-5); gap: var(--s-3); }
  .dash-head h1 { font-size: var(--fs-xl); }
  .dash-head .toolbar, .dash-head > .btn, .dash-head > a.btn { width: 100%; }
  .dash-head > .btn, .dash-head > a.btn { justify-content: center; }
  .back-link { display: none; }

  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: var(--s-4); border-radius: var(--r-lg); }
  .stat-value { font-size: 1.3rem; margin-top: var(--s-2); }
  .card { border-radius: 16px; }
  .card-pad { padding: var(--s-5); }
  .tabs { margin-left: calc(-1 * var(--s-4)); margin-right: calc(-1 * var(--s-4)); padding: 0 var(--s-4); }
  .flash-stack { bottom: calc(88px + env(safe-area-inset-bottom)); left: var(--s-4); right: var(--s-4); width: auto; }

  /* Bottom tab bar */
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    align-items: end;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--border);
  }
  .tabbar-4 { grid-template-columns: repeat(4, 1fr); }
  .tabbar-5 { grid-template-columns: repeat(5, 1fr); }

  .tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-height: 52px;
    padding: 6px 0 4px;
    border: 0;
    background: none;
    color: var(--text-3);
    font: inherit;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  }
  .tab:active { transform: scale(0.94); }
  .tab-icon { display: grid; place-items: center; width: 44px; height: 28px; border-radius: var(--r-pill); transition: background-color var(--t) var(--ease); }
  .tab-icon svg { width: 22px; height: 22px; }
  .tab[aria-current="page"] { color: var(--text); }
  .tab[aria-current="page"] .tab-icon { background: var(--surface); }
  .tab[aria-current="page"] .tab-icon svg { stroke-width: 2.2; }

  /* Centre action (Check-in) */
  .tab-primary .tab-icon {
    width: 52px;
    height: 52px;
    margin-top: -22px;
    border-radius: 18px;
    background: var(--text);
    color: var(--bg);
    box-shadow: 0 8px 20px -6px rgba(17, 17, 17, 0.45);
  }
  .tab-primary .tab-icon svg { width: 24px; height: 24px; }
  .tab-primary[aria-current="page"] .tab-icon { background: var(--text); }
  .tab-primary { color: var(--text); }

  /* "More" bottom sheet */
  .sheet:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    background: rgba(17, 17, 17, 0.35);
    animation: fade-in var(--t) var(--ease) both;
  }
  .sheet-panel {
    width: 100%;
    max-height: 82vh;
    overflow-y: auto;
    padding: var(--s-2) var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: var(--bg);
    box-shadow: 0 -10px 40px rgba(17, 17, 17, 0.18);
    animation: slide-up var(--t-slow) var(--ease) both;
  }
  .sheet-handle { width: 40px; height: 4px; margin: var(--s-2) auto var(--s-4); border-radius: 4px; background: var(--border-strong); }
  .sheet-user { display: flex; align-items: center; gap: var(--s-3); padding-bottom: var(--s-4); border-bottom: 1px solid var(--border); }
  .sheet-nav { display: grid; gap: 2px; padding: var(--s-2) 0 var(--s-5); }
  .sheet-nav .dash-nav-label { margin: var(--s-4) 0 var(--s-2); }
  .sheet-nav a {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    min-height: 48px;
    padding: 0 var(--s-3);
    border-radius: var(--r);
    font-size: var(--fs-base);
    color: var(--text);
  }
  .sheet-nav a:active { background: var(--surface); }
  .sheet-nav a[aria-current="page"] { background: var(--surface); font-weight: 600; }
  .sheet-nav svg { width: 20px; height: 20px; color: var(--text-2); }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .sheet:not([hidden]), .sheet-panel { animation: none; }
}

/* Share link row (organizer event page) */
.callout-live > div:first-child { flex: 1 1 320px; min-width: 0; }
.share-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.share-input { flex: 1 1 220px; min-width: 0; height: 36px; font-size: var(--fs-xs); background: var(--surface); }

/* Form error summary */
.error-summary ul { margin: var(--s-2) 0 0; padding-left: 1.1em; }
.error-summary li { margin-top: 2px; }
.error-summary a { color: inherit; text-decoration: underline; font-weight: 600; }
.error-summary:focus { outline: 2px solid var(--text); outline-offset: 2px; }

/* ── Admin tools ─────────────────────────────────────────────────────── */
.admin-badges { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-top: var(--s-2); }
.admin-head-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.admin-actions { display: grid; gap: var(--s-5); }
.admin-action { display: grid; gap: var(--s-2); margin: 0; }
.admin-action + .admin-action { padding-top: var(--s-5); border-top: 1px solid var(--border); }
.admin-buttons { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.admin-buttons form { margin: 0; }
.inline-field-grow { display: flex; flex-wrap: wrap; width: 100%; }
.inline-field-grow .input { flex: 1 1 180px; width: auto; }
.inline-field .input-narrow, .input-narrow { flex: 0 0 84px; width: 84px; }
.admin-count { margin-top: var(--s-4); text-align: center; }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { display: grid; gap: 4px; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border); }
.activity-list li:last-child { border-bottom: 0; }
.activity-main { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-sm); }
.activity-main span { color: var(--text-2); }
