:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --paper: #f5f5f7;
  --panel: #fff;
  --line: #d2d2d7;
  --soft-line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --green: #14805e;
  --coral: #c2412d;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 22px 55px rgba(0, 0, 0, 0.14);
}
[hidden] { display: none !important; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  background: rgba(250, 250, 252, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 25px;
  height: 25px;
  overflow: hidden;
  background: var(--ink);
  border-radius: 7px;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: white;
}

.portal-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.buyer-site .host-section { display: none; }

.portal-mode .hero,
.portal-mode .status-strip,
.portal-mode .trust-strip,
.portal-mode .events-layout,
.portal-mode .info-band,
.portal-mode .contact-section,
.portal-mode .footer { display: none; }

.portal-mode .host-section {
  min-height: calc(100vh - 52px);
  padding-top: 54px;
}

.portal-mode .host-section > .section-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--soft-line);
}

.brand-mark::before {
  width: 12px;
  height: 5px;
  left: 6px;
  top: 6px;
  border-radius: 5px 5px 2px 2px;
}

.brand-mark::after {
  width: 8px;
  height: 8px;
  left: 8px;
  top: 11px;
  border-radius: 2px 2px 5px 5px;
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  color: #424245;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.nav a:hover,
.nav a:focus-visible { color: #000; background: rgba(0, 0, 0, 0.05); outline: none; }

.hero {
  position: relative;
  display: grid;
  min-height: min(780px, calc(100vh - 52px));
  overflow: hidden;
  background: #07090d;
}

.hero-image,
.hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; transform: scale(1.01); }

.hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 5, 9, 0.98) 0%, rgba(3, 5, 9, 0.82) 30%, rgba(3, 5, 9, 0.12) 70%),
    linear-gradient(0deg, rgba(3, 5, 9, 0.58), transparent 56%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
  padding: 88px 0 104px;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow { color: #f4bb56; }
h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  max-width: 13.5ch;
  margin: 0;
  font-size: clamp(3.3rem, 7vw, 6.35rem);
  font-weight: 700;
  line-height: 0.97;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 { margin: 8px 0 10px; font-size: 1.45rem; line-height: 1.16; letter-spacing: 0; }

.hero-copy {
  max-width: 580px;
  margin: 26px 0 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.24rem;
  line-height: 1.45;
}

.quick-book {
  width: min(620px, 100%);
  padding: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: saturate(150%) blur(22px);
}

.quick-book label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

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

select, input, textarea {
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea { resize: vertical; }

select:focus, input:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:active { transform: scale(0.98); }
.button-primary { color: white; background: var(--blue); border-color: var(--blue); }
.button-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.button:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }
.button-ghost { color: var(--blue); background: transparent; border-color: var(--line); }
.button-ghost:hover { background: #f0f0f2; }

.status-strip {
  padding: 12px max(24px, calc((100vw - 1120px) / 2));
  color: #4b3500;
  background: #fff7df;
  border-bottom: 1px solid #f0dfad;
  font-size: 0.88rem;
  font-weight: 650;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
  border-bottom: 1px solid var(--soft-line);
}

.trust-strip div {
  padding: 0 26px;
  border-right: 1px solid var(--soft-line);
}

.trust-strip div:first-child { padding-left: 0; }
.trust-strip div:last-child { padding-right: 0; border-right: 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { margin-bottom: 3px; font-size: 0.9rem; }
.trust-strip span { color: var(--muted); font-size: 0.78rem; }

.section { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 108px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-heading h2 { max-width: 14ch; }
.market-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 250px); gap: 14px; margin-bottom: 20px; }
.field-row label { display: block; margin: 0 0 7px; color: #424245; font-size: 0.84rem; font-weight: 650; }
.field-help { display: block; margin-top: 7px; color: var(--muted); font-size: 0.75rem; }
.ticket-type-list { display: grid; gap: 14px; }
.ticket-type-editor { padding: 18px; background: #fafafa; border: 1px solid var(--soft-line); border-radius: 8px; }
.ticket-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.ticket-editor-head h4 { margin: 2px 0 0; font-size: 1.05rem; }
.ticket-editor-number { color: var(--blue); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.ticket-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ticket-editor-grid .payment-link-field { grid-column: 1 / -1; }
.ticket-type-editor .ticket-controls { margin: 14px 0 0; background: white; }
.icon-text-button { padding: 7px 10px; color: #b42318; background: transparent; border: 1px solid #e6b8b3; border-radius: 6px; cursor: pointer; font: inherit; font-size: .76rem; font-weight: 700; }
.icon-text-button:hover { background: #fff1ef; }
.ticket-add-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ticket-add-row span { color: var(--muted); font-size: .76rem; }
.ticket-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 2px 0 18px; padding: 14px; background: #f5f5f7; border: 1px solid var(--soft-line); border-radius: 8px; }
.switch-control { display: grid !important; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; margin: 0 !important; cursor: pointer; }
.switch-control input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 42px; height: 24px; background: #a1a1a6; border-radius: 999px; transition: background 160ms ease; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: white; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.24); transition: transform 160ms ease; }
.switch-control input:checked + .switch-track { background: var(--blue); }
.switch-control input:checked + .switch-track::after { transform: translateX(18px); }
.switch-control input:focus-visible + .switch-track { outline: 3px solid rgba(0, 113, 227, .22); outline-offset: 2px; }
.switch-control strong, .switch-control small { display: block; }
.switch-control strong { color: var(--ink); font-size: .84rem; }
.switch-control small { margin-top: 2px; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.access-code-field { grid-column: 1 / -1; margin-top: 2px; }
.access-code-panel { display: grid; gap: 9px; margin: 0 0 18px; padding: 14px; background: #f5f5f7; border: 1px solid var(--soft-line); border-radius: 8px; }
.access-code-panel strong { font-size: .88rem; }
.access-code-panel p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.access-code-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.access-code-form .button { min-height: 44px; }
.access-code-message { min-height: 18px; margin: 0; color: #b42318; font-size: .76rem; font-weight: 650; }
.event-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 440px); align-items: start; gap: 28px; }
.event-list { display: grid; min-width: 0; gap: 20px; }
.buyer-site .event-grid { display: block; }
.buyer-site .event-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.buyer-site .ticket-panel { display: none; }

.event-card,
.ticket-panel,
.dashboard-panel,
.host-form,
.listings-panel,
.operations-panel,
.host-event-row,
.auth-card,
.session-card,
.confirmation-card,
.checkout-dialog form {
  background: var(--panel);
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.event-card { overflow: hidden; transition: transform 220ms ease, box-shadow 220ms ease; }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.event-card.is-active { border-color: rgba(0, 113, 227, 0.55); box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.2), var(--shadow-hover); }
.event-card-media { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: #111; }
.event-card-media::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.44)); }
.event-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 63% 48%; transition: transform 500ms ease; }
.event-card:hover .event-card-media img { transform: scale(1.025); }

.event-category {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 16px;
  padding: 5px 9px;
  color: white;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.event-card-body { padding: 24px; }

.event-card-head,
.event-meta,
.ticket-row,
.summary div,
.dialog-head,
.dialog-actions,
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.event-card-head { flex-wrap: wrap; color: var(--blue); font-size: 0.84rem; font-weight: 700; }
.event-card-head span:last-child { white-space: nowrap; }
.event-card h3 { margin: 9px 0 10px; font-size: 1.75rem; }
.event-card p { margin: 0 0 22px; color: var(--muted); }

.event-meta {
  align-items: stretch;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 18px 0;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.event-card-actions,
.host-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.event-health { color: var(--green); font-size: 0.84rem; font-weight: 700; }
.event-health::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: currentColor; border-radius: 50%; }
.empty-state { display: grid; justify-items: start; gap: 8px; margin: 0; padding: 24px; color: var(--muted); background: white; border: 1px dashed var(--line); border-radius: 8px; }
.empty-state strong { color: var(--ink); font-size: 1.05rem; }
.empty-state .button { margin-top: 8px; }
.empty-state-welcome { min-height: 390px; align-content: center; padding: clamp(28px, 7vw, 62px); background: #f5f5f7; border-style: solid; }
.empty-state-welcome strong { max-width: 12ch; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; }
.empty-state-welcome > span:not(.empty-state-number) { max-width: 48ch; line-height: 1.55; }
.empty-state-number { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; color: white; background: var(--ink); border-radius: 50%; font-size: 0.75rem; font-weight: 750; }
.event-meta div, .summary div, .receipt-list div { min-width: 116px; }
dt { color: var(--muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
dd { margin: 3px 0 0; font-weight: 650; }

.ticket-panel { position: sticky; top: 76px; padding: 24px; }
.ticket-panel-head { padding-bottom: 18px; border-bottom: 1px solid var(--soft-line); }
.ticket-panel-head h2 { font-size: 1.7rem; }
.share-event-button { margin-top: 12px; }
.muted { color: var(--muted); }

.event-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--soft-line);
}

.event-facts div { min-width: 0; }
.event-facts dd { overflow-wrap: anywhere; color: #424245; font-size: 0.82rem; font-weight: 600; }

.event-more { margin: 0; border-bottom: 1px solid var(--soft-line); }
.event-more:empty { display: none; }
.event-more details { padding: 13px 0; }
.event-more summary { color: var(--blue); cursor: pointer; font-size: 0.84rem; font-weight: 700; }
.event-more details div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding-top: 10px; }
.event-more details strong { font-size: 0.76rem; }
.event-more details span { color: var(--muted); font-size: 0.78rem; }
.ticket-options { display: grid; gap: 10px; margin: 18px 0; }
.ticket-row { display: grid; grid-template-columns: minmax(0, 1fr) max-content 98px; align-items: center; gap: 14px; padding: 14px; background: #f5f5f7; border: 1px solid transparent; border-radius: 8px; }
.ticket-row > div:first-child { min-width: 0; }
.ticket-row strong, .ticket-row span { display: block; }
.ticket-row strong, .ticket-row span { overflow-wrap: anywhere; }
.ticket-row span { color: var(--muted); font-size: 0.82rem; }
.ticket-badge { display: inline-flex; width: fit-content; margin-top: 7px; padding: 3px 7px; border-radius: 5px; font-size: 0.7rem; font-weight: 700; }
.ticket-badge-ready { color: #0d684b; background: #dcf5eb; }
.ticket-badge-missing { color: #8a3528; background: #fde6e2; }
.ticket-price { align-self: center; min-width: 64px; text-align: right; white-space: nowrap; font-weight: 700; }

.stepper {
  display: grid;
  grid-template-columns: 32px 32px 32px;
  width: 98px;
  align-items: center;
  height: 34px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.stepper button { width: 32px; height: 32px; color: var(--blue); background: white; border: 0; cursor: pointer; font-size: 1rem; font-weight: 700; }
.stepper output { display: grid; place-items: center; height: 32px; background: #f5f5f7; font-weight: 700; }
.buyer-form { display: grid; gap: 12px; margin: 0 0 18px; }
.checkout-consent { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.checkout-consent input { width: 18px; height: 18px; margin-top: 1px; }
.checkout-consent a { color: var(--blue); font-weight: 700; }
.summary { margin: 0; padding: 16px 0; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
.summary div + div { margin-top: 8px; }
.summary-total dt, .summary-total dd { color: var(--ink); font-size: 1rem; }
.form-message { min-height: 24px; margin: 14px 0 10px; color: #b42318; font-size: 0.9rem; font-weight: 650; }
.form-message.success { color: var(--green); }
.checkout-button { width: 100%; }
.panel-note { margin: 12px 0 0; color: var(--muted); font-size: 0.78rem; }

.event-page { min-height: 100vh; background: #f5f5f7; }
.event-page .topbar { position: sticky; top: 0; z-index: 20; }
.event-page-main { width: min(100% - 48px, 1180px); margin: 0 auto; padding: 30px 0 72px; }
.event-back { display: inline-flex; margin-bottom: 20px; color: var(--blue); font-size: .84rem; font-weight: 700; text-decoration: none; }
.event-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 430px); align-items: start; gap: 28px; }
.event-detail-content, .event-checkout { min-width: 0; background: white; border: 1px solid var(--soft-line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.event-detail-hero { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: #111; }
.event-detail-hero::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.5)); }
.event-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.event-detail-hero .event-category { z-index: 2; }
.event-detail-copy { padding: clamp(24px, 4vw, 42px); }
.event-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.event-detail-head h1 { max-width: 17ch; margin: 8px 0 14px; font-size: clamp(2.35rem, 5vw, 4rem); line-height: 1; }
.event-detail-summary { max-width: 68ch; margin: 0 0 26px; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.event-detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
.event-detail-facts div { min-width: 0; padding: 18px 16px 18px 0; }
.event-detail-facts dd { overflow-wrap: anywhere; }
.event-story { display: grid; gap: 24px; padding-top: 30px; }
.event-story section { border-bottom: 1px solid var(--soft-line); padding-bottom: 24px; }
.event-story section:last-child { border-bottom: 0; padding-bottom: 0; }
.event-story h2 { margin: 0 0 9px; font-size: 1.25rem; }
.event-story p { margin: 0; color: #4b4b50; line-height: 1.7; white-space: pre-line; }
.event-checkout { position: sticky; top: 82px; padding: 24px; }
.event-checkout h2 { margin: 5px 0 8px; font-size: 1.7rem; }
.event-checkout-intro { margin: 0 0 18px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.event-checkout-status { margin: 0 0 14px; padding: 11px 12px; color: #6b4c00; background: #fff5cc; border-radius: 6px; font-size: .82rem; font-weight: 650; }
.event-page-loading { min-height: 320px; display: grid; place-items: center; color: var(--muted); }
.event-page-error { padding: 32px; }

@media (max-width: 980px) {
  .event-detail-grid { grid-template-columns: 1fr; }
  .event-checkout { position: static; }
}

.host-section {
  width: 100%;
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  padding-left: max(24px, calc((100vw - 1120px) / 2));
  background: white;
  border-top: 1px solid var(--soft-line);
}

.auth-layout { display: grid; gap: 16px; margin-bottom: 22px; }
.auth-card, .dashboard-panel, .host-form, .listings-panel, .operations-panel { padding: 24px; }
.login-form { display: grid; gap: 12px; max-width: 520px; }
.demo-logins, .form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.auth-note, .platform-note { margin: 14px 0 0; color: var(--muted); font-size: 0.84rem; }
.session-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; }
.session-card h3, .session-card p { margin: 0; }
.admin-console { display: grid; gap: 22px; }
.admin-invite-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 14px;
  margin-top: 20px;
}
.admin-host-list { display: grid; gap: 10px; margin-top: 18px; }
.admin-host-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--soft-line);
}
.admin-host-row strong, .admin-host-row span { display: block; }
.admin-host-row span { color: var(--muted); font-size: 0.82rem; }
.admin-edit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 16px 18px;
  background: #eef6ff;
  border: 1px solid #b8d8f8;
  border-radius: 8px;
}
.admin-edit-banner strong, .admin-edit-banner span { display: block; }
.admin-edit-banner span { color: var(--muted); font-size: 0.82rem; }
.order-toolbar {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(150px, 220px) auto;
  align-items: end;
  gap: 14px;
  margin: 18px 0;
}
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.order-actions .button { min-height: 34px; padding: 7px 10px; font-size: 0.76rem; }
.organiser-console {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.console-nav {
  position: sticky;
  top: 76px;
  overflow: hidden;
  background: #f5f5f7;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.organiser-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: white;
  border-bottom: 1px solid var(--soft-line);
}

.organiser-profile strong,
.organiser-profile span { display: block; }
.organiser-profile strong { font-size: 0.86rem; }
.organiser-profile span { color: var(--muted); font-size: 0.72rem; }

.profile-avatar {
  display: grid !important;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: white !important;
  background: var(--ink);
  border-radius: 50%;
  font-size: 0.9rem !important;
  font-weight: 700;
}

.console-nav nav { display: grid; padding: 9px; }

.console-nav nav a {
  padding: 10px 12px;
  color: #424245;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.console-nav nav a:hover,
.console-nav nav a.is-current { color: var(--blue); background: white; }

.console-content { display: grid; gap: 22px; }
.console-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.console-heading h3 { margin-top: 0; }

.live-indicator {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
}

.live-indicator::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: currentColor;
  border-radius: 50%;
}

.dashboard-panel h3, .host-form h3, .host-event-row h3 { margin-top: 0; }
.host-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 22px; }
.host-metrics div { padding: 16px; background: #f5f5f7; border-radius: 7px; }
.host-metrics dd { margin-top: 8px; font-size: 1.35rem; }

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--soft-line);
}

.quick-actions a {
  padding: 18px 14px 4px;
  color: var(--ink);
  border-right: 1px solid var(--soft-line);
  text-decoration: none;
}

.quick-actions a:last-child { border-right: 0; }
.quick-actions strong, .quick-actions span { display: block; }
.quick-actions strong { color: var(--blue); font-size: 0.86rem; }
.quick-actions span { margin-top: 4px; color: var(--muted); font-size: 0.72rem; }
.form-intro { margin: -2px 0 20px; }
.setup-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 22px; overflow: hidden; background: var(--soft-line); border: 1px solid var(--soft-line); border-radius: 8px; }
.setup-guide span { display: flex; align-items: center; gap: 9px; padding: 13px; color: #424245; background: #f5f5f7; font-size: 0.78rem; font-weight: 650; }
.setup-guide b { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; color: white; background: var(--ink); border-radius: 50%; font-size: 0.68rem; }

.ai-assistant {
  margin: 0 0 26px;
  padding: 24px 0;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.ai-assistant-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.ai-assistant-heading h4 { margin: 7px 0 5px; font-size: 1.35rem; }
.ai-assistant-heading p { max-width: 660px; margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.ai-label { display: inline-flex; padding: 4px 7px; color: #004f9e; background: #e6f2ff; border-radius: 5px; font-size: 0.68rem; font-weight: 750; text-transform: uppercase; }
.ai-assistant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ai-brief-field { grid-column: 1 / -1; }
.ai-assistant-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ai-status { color: var(--muted); font-size: 0.8rem; font-weight: 650; }
.ai-status.is-error { color: #b42318; }
.ai-status.is-success { color: var(--green); }
.ai-note { margin: 12px 0 0; color: var(--muted); font-size: 0.74rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-wide { grid-column: 1 / -1; }

.form-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--soft-line);
}

.form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section-title strong { font-size: 1rem; }
.form-section-title span { color: var(--muted); font-size: 0.76rem; text-align: right; }

.media-uploader > label {
  display: block;
  margin-bottom: 7px;
  color: #424245;
  font-size: 0.84rem;
  font-weight: 650;
}

.media-drop {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 6;
  min-height: 220px;
  overflow: hidden;
  background: #f5f5f7;
  border: 1.5px dashed #a8a8ad;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.media-drop:hover,
.media-drop.is-dragging,
.media-drop:focus-visible { background: #eef6ff; border-color: var(--blue); outline: none; }
.media-drop img { width: 100%; height: 100%; object-fit: cover; }

.media-placeholder {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.media-placeholder strong { color: var(--ink); font-size: 1rem; }
.media-placeholder span:last-child { font-size: 0.78rem; }

.upload-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
}

.media-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.media-url-row { margin-top: 12px; }
.media-message { min-height: 20px; margin: 7px 0 0; color: var(--muted); font-size: 0.76rem; }
.host-event-list { display: grid; gap: 14px; margin-top: 18px; }
.host-event-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; padding: 20px; }
.host-event-row p { margin: 4px 0; }
.host-event-details { min-width: 0; }
.host-event-details h3 { overflow-wrap: anywhere; }
.host-event-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0; color: var(--ink); font-size: .86rem; }
.host-event-meta span { position: relative; }
.host-event-meta span:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -11px; width: 3px; height: 3px; background: #a1a1a6; border-radius: 50%; transform: translateY(-50%); }
.host-event-contact, .host-event-tickets { color: var(--muted); font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.host-event-tickets strong { color: var(--ink); }
.host-event-row .host-actions { justify-content: flex-start; padding-top: 14px; border-top: 1px solid var(--soft-line); }
.host-event-row .event-health { margin-right: auto; }
.listing-status { display: inline-flex; margin: 2px 0 7px; padding: 4px 7px; border-radius: 5px; font-size: 0.68rem; font-weight: 750; }
.listing-status-live { color: #0d684b; background: #dcf5eb; }
.listing-status-draft { color: #6e5200; background: #fff0bf; }
.listings-panel .host-event-row { padding: 18px 0; border: 0; border-top: 1px solid var(--soft-line); border-radius: 0; box-shadow: none; }
.danger-button { color: #b42318; border-color: #f2b8b5; }

.operation-list { display: grid; margin-top: 8px; }
.operation-list div { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--soft-line); }
.operation-list div:last-child { border-bottom: 0; }
.operation-list span { color: var(--muted); font-size: 0.84rem; }
.operation-list b { color: var(--blue); font-size: 0.76rem; }
.host-order-list { display: grid; margin-top: 24px; border-top: 1px solid var(--soft-line); }
.host-order-row { display: grid; grid-template-columns: 1fr 1.2fr 1fr auto; gap: 18px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--soft-line); }
.host-order-row div { display: grid; gap: 4px; min-width: 0; }
.host-order-row span, .host-order-row a { overflow: hidden; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; }

.info-band { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 56px; border-top: 1px solid var(--soft-line); }
.info-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.info-points p { margin: 0; color: var(--muted); }
.info-points strong, .info-points span { display: block; }
.info-points strong { margin-bottom: 8px; color: var(--ink); font-size: 1.08rem; }

.contact-section { padding-top: 82px; border-top: 1px solid var(--soft-line); }
.contact-heading { align-items: end; }
.contact-heading > p { max-width: 480px; margin: 0; color: var(--muted); }
.contact-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.contact-options > div { padding-top: 20px; border-top: 2px solid var(--ink); }
.contact-options h3 { margin: 7px 0 9px; font-size: 1.18rem; }
.contact-options p { margin: 0 0 16px; color: var(--muted); }
.contact-options a { color: var(--blue); font-weight: 700; }
.contact-label { margin-bottom: 0 !important; color: var(--green) !important; font-size: .72rem; font-weight: 750; text-transform: uppercase; }

.footer { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 42px; border-top: 1px solid var(--soft-line); }
.footer p { margin: 4px 0 0; color: var(--muted); }
.footer a { color: var(--blue); font-weight: 650; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }

.checkout-dialog { width: min(560px, calc(100% - 32px)); padding: 0; background: transparent; border: 0; }
.checkout-dialog::backdrop { background: rgba(0, 0, 0, 0.64); backdrop-filter: blur(8px); }
.checkout-dialog form { padding: 24px; }
.dialog-head { margin-bottom: 8px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink); background: #ececf0; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.25rem; line-height: 1; }
.receipt { margin: 18px 0; padding: 16px; background: #f5f5f7; border-radius: 8px; }
.receipt-list { display: grid; gap: 10px; margin: 0; }
.receipt-list div { display: flex; justify-content: space-between; gap: 18px; }
.dialog-actions { justify-content: flex-end; }

.confirmation-page { min-height: 100vh; background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.42)), url("assets/event-hero.jpg") center / cover; }
.confirmation-shell { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0; }
.confirmation-shell .brand { color: white; margin-bottom: 30px; }
.confirmation-card { padding: 30px; }
.confirmation-card h1 { max-width: none; color: var(--ink); font-size: 3rem; }

.wallet-header { display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 0 max(24px, calc((100vw - 1040px) / 2)); border-bottom: 1px solid var(--soft-line); background: white; }
.wallet-header > span { color: var(--muted); font-size: 0.84rem; }
.wallet-shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 80px; }
.wallet-intro h1 { max-width: none; margin-bottom: 10px; color: var(--ink); font-size: clamp(2.4rem, 7vw, 4.5rem); }
.ticket-wallet { display: grid; gap: 18px; margin-top: 34px; }
.digital-ticket { display: grid; grid-template-columns: 1fr 180px; gap: 24px; align-items: center; padding: 28px; overflow: hidden; background: white; border: 1px solid var(--soft-line); border-radius: 8px; box-shadow: 0 16px 50px rgba(0,0,0,.08); }
.digital-ticket h2 { margin: 7px 0 8px; font-size: 1.7rem; }
.ticket-code { display: grid; justify-items: center; padding-left: 22px; border-left: 1px dashed #b8b8bd; }
.ticket-code img { width: 150px; height: 150px; }
.ticket-code span, .wallet-note { color: var(--muted); font-size: .78rem; }
.wallet-note { margin-top: 24px; }
.checkin-page { min-height: 100vh; background: #f5f5f7; }
.checkin-shell { width: min(580px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0; }
.checkin-card { margin-top: 30px; padding: 30px; background: white; border: 1px solid var(--soft-line); border-radius: 8px; }
.checkin-card h1 { max-width: none; color: var(--ink); font-size: 2.5rem; }
.scanner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 12px; }
.scanner-viewport { position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 16px; border-radius: 8px; background: #111; }
.scanner-viewport video { width: 100%; height: 100%; object-fit: cover; }
.scanner-viewport span { position: absolute; inset: 16%; border: 3px solid white; border-radius: 8px; box-shadow: 0 0 0 999px rgba(0,0,0,.28); }
.checkin-success { border-color: #92d3b3; background: #ecfbf3; color: #087a45; }
.checkin-error { border-color: #f0b2aa; background: #fff1ef; color: #b42318; }
.checkin-card form { display: grid; gap: 16px; margin-top: 24px; }
.checkin-card label { display: grid; gap: 7px; font-weight: 650; }
.checkin-result { display: grid; gap: 5px; margin-top: 20px; padding: 16px; background: #f5f5f7; border-radius: 6px; }
.checkin-result:empty { display: none; }
.legal-copy { max-width: 760px; color: var(--ink); }
.legal-copy .brand { margin-bottom: 64px; }
.legal-copy h1 { max-width: none; color: var(--ink); font-size: clamp(2.8rem, 8vw, 5rem); }
.share-landing { width: min(100% - 32px, 760px); margin: 0 auto; padding: 32px 0 72px; }
.share-landing article { margin-top: 32px; }
.share-landing article > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.share-landing h1 { max-width: none; margin: 22px 0 12px; color: var(--ink); font-size: clamp(2.4rem, 8vw, 4.5rem); }
.share-landing article > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.share-landing dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 24px 0; background: var(--soft-line); border: 1px solid var(--soft-line); }
.share-landing dl div { padding: 16px; background: white; }
.share-landing dt { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.share-landing dd { margin: 6px 0 0; font-weight: 700; }
.preview-description { margin: 28px 0; color: var(--ink); font-size: 1rem; line-height: 1.7; }
.draft-preview-page h2 { margin: 28px 0 12px; font-size: 1.35rem; }
.preview-ticket-list { display: grid; gap: 1px; margin: 0; padding: 1px; background: var(--soft-line); list-style: none; }
.preview-ticket-list li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 16px; background: white; }
.preview-notice { margin-top: 24px; padding: 16px; border-left: 4px solid var(--blue); background: #f4f8ff; color: var(--ink) !important; }
.legal-copy h2 { margin-top: 34px; font-size: 1.3rem; }
.legal-copy p { color: #4b4b50; line-height: 1.7; }

@media (prefers-reduced-motion: no-preference) {
  .hero-content { animation: rise 650ms ease-out both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1100px) {
  .event-grid { grid-template-columns: 1fr; }
  .ticket-panel { position: static; }
}

@media (max-width: 980px) {
  .event-grid, .info-band, .organiser-console { grid-template-columns: 1fr; }
  .ticket-panel { position: static; }
  .info-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .console-nav { position: static; }
  .console-nav nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .host-metrics, .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-invite-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-invite-form .button { align-self: end; }
}

@media (max-width: 720px) {
  .ticket-editor-grid { grid-template-columns: 1fr; }
  .ticket-controls { grid-template-columns: 1fr; }
  .access-code-form { grid-template-columns: 1fr; }
  .topbar { min-height: 50px; padding: 0 16px; }
  .nav a:nth-child(3), .nav a:nth-child(4) { display: none; }
  .nav a { padding: 8px 7px; font-size: 0.7rem; }
  .portal-mode .nav a:nth-child(2) { display: inline-flex; }
  .portal-label { display: none; }
  .hero { min-height: 690px; }
  .hero-image { object-position: 61% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(3, 5, 9, 0.88), rgba(3, 5, 9, 0.2)), linear-gradient(0deg, rgba(3, 5, 9, 0.92) 4%, rgba(3, 5, 9, 0.08) 72%); }
  .hero-content { align-self: end; width: calc(100% - 36px); padding: 82px 0 46px; }
  h1 { max-width: 10.5ch; font-size: clamp(3rem, 14vw, 4.35rem); }
  .hero-copy { margin: 20px 0 26px; font-size: 1.05rem; }
  .quick-row, .ticket-row, .market-tools, .session-card, .host-event-row, .footer, .receipt-list div { display: grid; grid-template-columns: 1fr; }
  .admin-invite-form, .admin-host-row, .order-toolbar, .admin-edit-banner { display: grid; grid-template-columns: 1fr; }
  .order-actions { justify-content: flex-start; }
  .quick-book { padding: 9px; }
  .quick-row .button { width: 100%; }
  .section { width: min(100% - 32px, 1120px); padding: 72px 0; }
  .host-section { width: 100%; padding-right: 16px; padding-left: 16px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 2.25rem; }
  .contact-options { grid-template-columns: 1fr; gap: 26px; }
  .event-card-media { aspect-ratio: 4 / 3; }
  .event-card-body, .ticket-panel { padding: 19px; }
  .event-card-head, .event-meta, .summary div, .dialog-actions { align-items: flex-start; }
  .ticket-row { gap: 12px; }
  .ticket-price { font-size: 1.1rem; }
  .form-grid, .info-points { grid-template-columns: 1fr; }
  .setup-guide { grid-template-columns: 1fr; }
  .ai-assistant-grid { grid-template-columns: 1fr; }
  .ai-brief-field { grid-column: auto; }
  .form-section-title { align-items: flex-start; flex-direction: column; gap: 4px; }
  .form-section-title span { text-align: left; }
  .media-drop { aspect-ratio: 4 / 3; min-height: 0; }
  .info-points { gap: 28px; }
  .trust-strip { grid-template-columns: 1fr; width: calc(100% - 32px); }
  .trust-strip div, .trust-strip div:first-child, .trust-strip div:last-child { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .trust-strip div:last-child { border-bottom: 0; }
  .console-nav nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .host-metrics, .quick-actions, .event-facts { grid-template-columns: 1fr; }
  .quick-actions a { border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .operation-list div { grid-template-columns: 1fr; gap: 5px; }
  .host-order-row { grid-template-columns: 1fr; }
  .host-event-row .event-health { flex-basis: 100%; margin-right: 0; }
  .host-event-row .host-actions .button { flex: 1 1 calc(50% - 6px); }
  .dialog-actions { display: grid; grid-template-columns: 1fr; }
  .dialog-actions .button { width: 100%; }
  .digital-ticket { grid-template-columns: 1fr; }
  .ticket-code { padding: 20px 0 0; border-top: 1px dashed #b8b8bd; border-left: 0; }
  .event-page-main { width: calc(100% - 24px); padding-top: 16px; }
  .event-detail-hero { aspect-ratio: 4 / 3; }
  .event-detail-copy, .event-checkout { padding: 20px; }
  .event-detail-head { display: block; }
  .event-detail-head h1 { max-width: none; font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .event-detail-head .button { margin-bottom: 12px; }
  .event-detail-facts { grid-template-columns: 1fr; }
  .event-detail-facts div { padding: 14px 0; border-bottom: 1px solid var(--soft-line); }
  .event-detail-facts div:last-child { border-bottom: 0; }
}

@media (max-width: 430px) {
  .brand { font-size: 0.92rem; }
  .section-heading { display: grid; }
  .section-heading > .button { width: fit-content; }
}
