:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #68757d;
  --paper: #f7f4ed;
  --panel: #ffffff;
  --line: #d8ddd8;
  --teal: #34c6a1;
  --mint: #236e58;
  --coral: #236e58;
  --gold: #f2c75c;
  --ok: #157347;
  --bad: #b42318;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 18px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: clip;
}

a {
  color: inherit;
}

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

.public-home a:focus-visible,
.public-home button:focus-visible,
body:has(.public-header) a:focus-visible,
body:has(.public-header) button:focus-visible,
body:has(.public-header) input:focus-visible,
body:has(.public-header) select:focus-visible,
body:has(.public-header) textarea:focus-visible {
  outline: 3px solid var(--focus, var(--mint));
  outline-offset: 3px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  min-width: 0;
}

.organizer-shell {
  width: 100%;
  grid-template-columns: minmax(240px, 320px) 1fr;
}

.organizer-shell .sidebar {
  padding: 24px;
  gap: 16px;
}

.organizer-shell .sidebar h1 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.organizer-shell .sidebar p {
  font-size: 14px;
  line-height: 1.45;
}

.organizer-shell .quick-links {
  gap: 8px;
}

.organizer-action-sentinel,
.portal-action-sentinel {
  height: 1px;
}

.organizer-actions,
.portal-actions {
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    transform 180ms ease,
    width 180ms ease;
}

.organizer-actions.is-docked,
.portal-actions.is-docked {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 35;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(1040px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-110%);
  overflow-x: auto;
  scrollbar-width: none;
}

.organizer-actions.is-docked.is-dock-visible,
.portal-actions.is-docked.is-dock-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.organizer-actions.is-docked::-webkit-scrollbar,
.portal-actions.is-docked::-webkit-scrollbar {
  display: none;
}

.organizer-actions.is-docked form,
.portal-actions.is-docked form {
  display: flex;
  flex: 0 0 auto;
}

.organizer-actions.is-docked a,
.organizer-actions.is-docked button,
.portal-actions.is-docked a,
.portal-actions.is-docked button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  white-space: nowrap;
}

.organizer-actions.is-docked form,
.portal-actions.is-docked form,
.organizer-actions.is-docked form button,
.portal-actions.is-docked form button {
  width: auto;
}

.organizer-actions.is-docked a,
.organizer-actions.is-docked button,
.portal-actions.is-docked a,
.portal-actions.is-docked button {
  box-shadow: 0 12px 28px rgba(23, 33, 38, 0.16);
}

.organizer-shell .quick-links a,
.organizer-shell .quick-links button {
  min-height: 38px;
  padding: 9px 12px;
}

.owner-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  min-width: 0;
}

.sidebar {
  background: var(--teal);
  color: white;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
}

.tickettwig-brand {
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: min(290px, 58vw);
  max-height: 68px;
  object-fit: contain;
  object-position: left center;
}

.brand-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--teal);
  font-weight: 900;
}

.sidebar h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.sidebar p {
  margin: 0;
  color: #d5e7e5;
  font-size: 16px;
  line-height: 1.55;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a,
.button,
button {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  background: var(--mint);
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
}

.quick-links a,
.button:not(.secondary):not(.danger),
button:not(.secondary):not(.danger) {
  color: white;
}

.button.secondary,
button.secondary {
  background: #edf3f1;
  color: var(--ink);
}

.button.danger,
button.danger {
  background: #ffe3dc;
  color: var(--bad);
}

.button.disabled,
button:disabled {
  background: #eef0f2;
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}

.saas-home {
  min-height: 100vh;
  background: var(--paper);
}

.saas-hero {
  min-height: 74vh;
  padding: 28px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 42px;
}

.saas-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.saas-nav .button {
  flex: 0 0 auto;
}

.compact-nav-button {
  padding-inline: 14px;
  white-space: nowrap;
}

.saas-hero-grid {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 36px;
  align-items: center;
}

.saas-copy {
  display: grid;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--mint);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.saas-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 5.8vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
  color: #25343a;
  font-weight: 750;
}

.saas-copy p:not(.eyebrow) {
  margin: 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.client-access-panel {
  padding: 26px;
  display: grid;
  gap: 18px;
  box-shadow: 0 24px 70px rgba(23, 33, 38, 0.1);
}

.client-access-panel h2 {
  font-size: 30px;
}

.lead-page {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  gap: 34px;
  align-content: start;
}

.lead-nav {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.lead-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 34px;
  align-items: start;
}

.lead-copy {
  display: grid;
  gap: 18px;
  padding-top: 26px;
}

.lead-copy h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  color: #25343a;
}

.lead-copy p:not(.eyebrow) {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.lead-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lead-points span {
  border-radius: 999px;
  padding: 8px 11px;
  background: #e4f5ef;
  color: var(--mint);
  font-size: 13px;
  font-weight: 900;
}

.lead-card {
  padding: 26px;
  box-shadow: 0 24px 70px rgba(23, 33, 38, 0.1);
}

.lead-form textarea {
  min-height: 112px;
}

.lead-submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.lead-result {
  padding: 22px;
}

.lead-result h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.lead-result p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.access-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tenant-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tenant-shortcuts a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.tenant-shortcuts a:hover {
  color: var(--mint);
}

.saas-feature-band {
  padding: 26px 28px 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.saas-feature-band article {
  min-height: 120px;
  padding: 24px;
  background: white;
  display: grid;
  gap: 8px;
  align-content: start;
}

.saas-feature-band strong {
  font-size: 18px;
}

.saas-feature-band span {
  color: var(--muted);
  line-height: 1.45;
}

.site-footer {
  padding: 24px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(233, 244, 241, 0.96));
  color: var(--ink);
  border-top: 1px solid rgba(35, 110, 88, 0.12);
}

.footer-inner,
.site-footer nav {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.footer-inner {
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.site-footer nav {
  width: auto;
  gap: 8px;
  justify-content: center;
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  text-align: center;
}

.footer-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-logo {
  display: block;
  width: min(210px, 52vw);
  max-height: 52px;
  object-fit: contain;
  object-position: center;
  flex: 0 1 auto;
}

.footer-brand div {
  display: grid;
  gap: 3px;
  justify-items: center;
}

.footer-brand strong {
  font-size: 17px;
  line-height: 1.1;
}

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

.site-footer a {
  color: var(--ink);
  border: 1px solid rgba(35, 110, 88, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(23, 33, 38, 0.06);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.site-footer a.footer-brand {
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.site-footer a.footer-brand:hover {
  color: var(--ink);
  background: transparent;
  border-color: transparent;
  transform: none;
}

.site-footer a:hover {
  color: white;
  background: var(--mint);
  border-color: var(--mint);
  transform: translateY(-1px);
}

.login-footer {
  padding: 4px 0 0;
  background: transparent;
  color: var(--ink);
}

.login-footer nav {
  width: 100%;
}

.login-footer a {
  color: var(--muted);
  border-color: var(--line);
  background: #edf3f1;
}

.content-footer {
  padding: 18px 0 0;
  background: transparent;
  color: var(--ink);
  border-top: 0;
}

.content-footer .footer-inner {
  width: 100%;
}

.content-footer nav {
  width: auto;
}

.content-footer a {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.app-footer {
  width: min(100%, 760px);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(23, 33, 38, 0.08);
}

.content .app-footer {
  width: 100%;
}

.events-directory {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  gap: 28px;
  align-content: start;
  overflow-x: hidden;
}

.events-nav {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.events-nav .brand {
  text-decoration: none;
  flex: 1 1 220px;
  min-width: 0;
}

.events-header {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: end;
  min-width: 0;
}

.events-header h1 {
  margin: 6px 0 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.event-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.65fr) minmax(150px, 0.55fr);
  gap: 12px;
  align-items: end;
  min-width: 0;
}

.inline-control {
  min-width: 180px;
}

.platform-event-list {
  width: min(100%, 1180px);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  min-width: 0;
}

.events-footer {
  width: min(100%, 1180px);
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(23, 33, 38, 0.08);
}

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

.import-errors {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--bad);
  font-size: 14px;
  line-height: 1.45;
}

.content {
  padding: 32px;
  display: grid;
  gap: 24px;
  align-content: start;
  min-width: 0;
}

.content > section,
.admin-section {
  min-width: 0;
}

.admin-section {
  display: grid;
  gap: 14px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.toolbar h2,
.panel h2 {
  margin: 0;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.panel,
.ticket-card,
.result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 22px;
  min-width: 0;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  background: white;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.contact-form-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.field-help.is-warning {
  color: #b42318;
}

.field-error {
  margin: 0;
  color: var(--bad);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

[aria-invalid="true"] {
  border-color: #ff8d7f;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.is-shaking {
  animation: access-shake 420ms ease-in-out;
}

@keyframes access-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(3px); }
}

textarea {
  resize: vertical;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  background: white;
}

select option { color: #172126; background: #fff; }

:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select {
  color-scheme: dark;
  color: #f3f8f6;
  background-color: #203432;
  border-color: #49615c;
}

:root[data-theme="dark"] select option {
  color: #f3f8f6;
  background: #203432;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #b9c9c5;
  opacity: 1;
}

input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

input[type="color"] {
  min-height: 48px;
  padding: 5px;
  cursor: pointer;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.consent-label {
  align-items: flex-start;
  line-height: 1.45;
}

.span-2 {
  grid-column: 1 / -1;
}

.theme-controls {
  margin: 4px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.theme-controls legend {
  padding: 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.ticket-card {
  padding: 18px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.ticket-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ticket-card h3,
.ticket-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.ticket-card h3 {
  font-size: 18px;
}

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

.login-subtitle {
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
}

.locked-prefix-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  background: white;
  overflow: hidden;
}

.locked-prefix-input:focus-within {
  outline: 3px solid #82cfff;
  border-color: #82cfff;
}

.locked-prefix-input span {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 12px;
  background: #edf3f1;
  color: var(--teal);
  font-weight: 900;
  border-right: 1px solid var(--line);
}

.locked-prefix-input input {
  border: 0;
  border-radius: 0;
  min-width: 0;
  font-size: 16px;
}

.locked-prefix-input input:focus {
  outline: 0;
}

.login-alert {
  background: #ffe3dc;
  border: 1px solid #ffb3a6;
  color: var(--bad);
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 900;
}

.login-alert.success {
  background: #e7f9f3;
  border-color: #9ee6d2;
  color: var(--mint);
}

body.auth-modal-open {
  overflow: hidden;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(14, 29, 36, 0.72);
  box-shadow: none;
}

.auth-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  min-height: 330px;
  display: grid;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(14, 29, 36, 0.32);
}

.auth-modal-card h2 {
  margin: 4px 0 8px;
  font-size: clamp(30px, 7vw, 42px);
  line-height: 1.05;
}

.auth-modal-kicker {
  margin: 0;
  color: var(--mint);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
  background: #eef4f2;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.auth-code-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-code-form input {
  min-height: 64px;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.35em;
}

.auth-code-form button {
  width: 100%;
}

.auth-code-error {
  margin: 0;
  color: var(--bad);
  font-weight: 900;
  text-align: center;
}

.auth-code-success {
  display: grid;
  place-items: center;
  gap: 16px;
  color: var(--ok);
  font-size: 24px;
}

.auth-code-success[hidden] {
  display: none;
}

.auth-success-tick {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e7f9f3;
  border: 4px solid var(--teal);
  font-size: 66px;
  font-weight: 900;
  line-height: 1;
  animation: auth-tick-in 320ms ease-out both;
}

.auth-code-shake {
  animation: auth-code-shake 420ms ease-in-out;
}

.auth-code-verified {
  border-color: #9ee6d2;
}

@keyframes auth-code-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-12px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-7px); }
  80% { transform: translateX(4px); }
}

@keyframes auth-tick-in {
  from { opacity: 0; transform: scale(0.65); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-code-shake,
  .auth-success-tick {
    animation-duration: 1ms;
  }
}

.login-meta-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.login-meta-row a {
  color: var(--mint);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.login-meta-row a:hover {
  text-decoration: underline;
}

.password-field {
  position: relative;
  display: block;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  display: grid;
  place-items: center;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: #edf3f1;
  color: var(--mint);
}

.password-toggle svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--mint);
  color: white;
  box-shadow: 0 18px 50px rgba(23, 33, 38, 0.24);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.toast.bad {
  background: #b42318;
}

.toast[hidden] {
  display: none;
}

.status {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  background: #e9f6ef;
  color: var(--ok);
  white-space: nowrap;
}

.status.used {
  background: #fff5ce;
  color: #7c5700;
}

.status.revoked {
  background: #ffe3dc;
  color: var(--bad);
}

.status.inactive {
  background: #eef0f2;
  color: var(--muted);
}

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

.event-card {
  grid-template-rows: auto auto minmax(76px, 1fr) auto auto;
}

.event-card .actions {
  margin-top: auto;
  align-items: stretch;
}

.event-card .actions > * {
  min-height: 54px;
  min-width: 142px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.two-factor-setup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 16px;
}

.two-factor-setup[hidden] {
  display: none;
}

.two-factor-setup img {
  width: 180px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.inline-form input {
  max-width: 220px;
}

.compact-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.editing-row input,
.editing-row select {
  min-width: 150px;
}

.editing-row select + input {
  margin-top: 8px;
}

.compact-check {
  min-width: 100px;
  font-size: 13px;
}

.floating-menu {
  position: fixed;
  top: 24px;
  right: 18px;
  z-index: 30;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.floating-menu-toggle {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: var(--teal);
  color: white;
  box-shadow: 0 14px 34px rgba(23, 33, 38, 0.22);
}

.floating-menu-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.floating-menu-toggle[aria-expanded="true"]::after {
  transform: rotate(225deg) translateY(-2px);
}

.floating-menu-panel {
  width: min(260px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(23, 33, 38, 0.18);
  backdrop-filter: blur(10px);
}

.floating-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.floating-menu-panel a:hover,
.floating-menu-panel a:focus {
  background: #edf3f1;
  color: var(--teal);
  outline: 0;
}

.quiet-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.quiet-footer a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.quiet-footer a:hover {
  text-decoration: underline;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.data-table th {
  background: #edf3f1;
  color: var(--teal);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.ticket-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.ticket-view:has(.staff-login-card) {
  width: 100%;
  margin: 0 auto;
}

.ticket-pass {
  width: min(100%, 720px);
  overflow: hidden;
}

.checkout-panel {
  width: min(100%, 760px);
  display: grid;
  gap: 20px;
  overflow: hidden;
}

.checkout-panel .toolbar {
  min-width: 0;
}

.checkout-panel .toolbar > div {
  min-width: 0;
}

.checkout-panel h1,
.checkout-panel p,
.checkout-panel .muted,
.checkout-panel .result {
  overflow-wrap: anywhere;
}

.payment-note {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 16px;
  background: #f7fbfa;
  display: flex;
  align-items: center;
}

.staff-login-card {
  width: min(100%, 760px);
  max-width: 760px;
  overflow: visible;
}

.staff-login-card > *,
.staff-login-card .form-grid > * {
  min-width: 0;
}

.staff-login-card h1 {
  font-size: clamp(38px, 8vw, 58px);
  line-height: 1;
}

.staff-login-brand {
  color: var(--ink);
}

.staff-login-actions {
  align-items: stretch;
}

.staff-login-storefront {
  order: 2;
}

.staff-login-primary {
  order: 1;
  flex: 1 1 220px;
  min-height: 52px;
  padding-inline: 24px;
  background: var(--teal);
  color: white;
  font-size: 18px;
}

.pass-top {
  background: var(--teal);
  color: white;
  padding: 28px;
  display: grid;
  gap: 18px;
}

.pass-top h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.pass-body {
  background: white;
  padding: 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.qr-box {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.qr-box img {
  width: 100%;
  height: auto;
}

.details {
  display: grid;
  gap: 14px;
  align-content: start;
}

.confirmation-list {
  margin-top: 8px;
}

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

.detail {
  display: grid;
  gap: 4px;
}

.detail span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail strong {
  font-size: 17px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 5px;
  text-decoration: none;
  background: #fff;
}

.contact-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-row strong {
  color: var(--teal);
  overflow-wrap: anywhere;
}

.scanner-page {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.scanner-frame {
  width: min(100%, 680px);
  background: #0f1a1f;
  border-radius: 8px;
  overflow: hidden;
  justify-self: center;
  display: grid;
}

#reader {
  width: 100%;
  min-height: 420px;
  overflow: hidden;
}

#reader video {
  object-fit: cover;
}

#scan-status {
  margin: 0;
  padding: 12px 14px 16px;
  color: #d5e7e5;
  text-align: center;
  font-weight: 800;
}

.result {
  width: min(100%, 680px);
  padding: 18px;
  justify-self: center;
}

.result.ok {
  border-color: #9bd6b7;
}

.result.bad {
  border-color: #ffb3a6;
}

.scan-feedback {
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.scan-feedback.neutral {
  background: #edf3f1;
  color: var(--muted);
  font-size: 28px;
}

.scan-feedback.ok {
  background: color-mix(in srgb, var(--primary) 20%, white);
  color: var(--accent);
  border: 3px solid var(--primary);
}

.scan-feedback.bad {
  background: #ffecea;
  color: #b91c1c;
  border: 3px solid #ef4444;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill.ok {
  background: color-mix(in srgb, var(--primary) 18%, white);
  color: var(--accent);
}

.pill.bad {
  background: #ffecea;
  color: #a7352b;
}

/* Public landing pages */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8f0ed;
  --muted: #b9c9c5;
  --paper: #101d1d;
  --panel: #172827;
  --line: #304340;
  --teal: #34c6a1;
  --mint: #236e58;
  --coral: #2d8b70;
  --ok: #55cf9c;
  --bad: #ff7a70;
  --focus: #34c6a1;
}

.public-home {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  transition: background-color 180ms ease, color 180ms ease;
}

.home-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 86px;
  padding: 14px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(17, 32, 30, 0.04);
}

.public-header .brand-logo {
  width: min(240px, 38vw);
  max-height: 58px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
}

.menu-drawer-actions { display: flex; align-items: center; gap: 10px; }
.menu-close { display: none; }
.close-glyph { position: relative; width: 20px; height: 20px; display: block; }
.close-glyph::before,
.close-glyph::after { position: absolute; top: 9px; left: 0; width: 20px; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
.close-glyph::before { transform: rotate(45deg); }
.close-glyph::after { transform: rotate(-45deg); }

.public-nav > a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.public-nav > a:hover,
.orgport-help:hover,
.footer-email:hover {
  color: var(--teal);
}

.public-nav .nav-orgport {
  padding: 11px 16px;
  color: #fff;
  background: var(--mint);
  border-radius: 7px;
}

.theme-toggle,
.mobile-menu-toggle {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--panel);
  font-size: 13px;
  font-weight: 750;
}

.button.secondary,
button.secondary,
.public-header .theme-toggle,
.public-header .mobile-menu-toggle {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

:root[data-theme="dark"] .button.secondary,
:root[data-theme="dark"] button.secondary,
:root[data-theme="dark"] .public-header .theme-toggle,
:root[data-theme="dark"] .public-header .mobile-menu-toggle {
  background: #203432;
  color: #f3f8f6;
  border-color: #49615c;
}

.public-header button.theme-toggle:not(.secondary):not(.danger),
.public-header button.mobile-menu-toggle:not(.secondary):not(.danger) {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
}

.theme-toggle span:first-child {
  font-size: 18px;
  line-height: 1;
}

.mobile-menu-toggle {
  display: none;
}

.menu-glyph {
  position: relative;
  width: 20px;
  height: 16px;
  display: block;
  color: currentColor;
}

.menu-glyph::before,
.menu-glyph::after,
.menu-glyph > span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, top 180ms ease, opacity 120ms ease;
}

.menu-glyph::before { top: 2px; }
.menu-glyph::after { top: 12px; }
.menu-glyph > span { top: 7px; }

.home-hero {
  width: min(100%, 1280px);
  min-height: 550px;
  padding: 76px 40px 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(38px, 7vw, 104px);
}

.hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 22px;
}

.hero-copy h1 {
  max-width: 690px;
  margin: 0;
  font-size: 76px;
  line-height: 0.99;
  font-weight: 780;
  color: var(--ink);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero-actions .button {
  min-width: 152px;
  min-height: 48px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.hero-proof b {
  margin-right: 5px;
  color: var(--mint);
}

.client-access-panel {
  padding: 28px;
  gap: 17px;
  border-radius: 8px;
  border-top: 4px solid var(--teal);
  background: var(--panel);
  box-shadow: 0 22px 58px rgba(23, 33, 38, 0.12);
  scroll-margin-top: 18px;
}

.orgport-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.orgport-heading .eyebrow {
  margin: 0 0 4px;
}

.orgport-heading h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
}

.orgport-icon {
  width: 48px;
  height: 48px;
  padding: 5px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  background: #fff;
}

.orgport-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.client-access-panel > .muted {
  margin: 0;
  line-height: 1.45;
}

.client-access-panel .form-grid {
  gap: 12px;
}

.client-access-panel input {
  min-height: 48px;
}

.client-access-panel .access-actions button {
  min-height: 48px;
}

.client-access-panel .access-actions { grid-template-columns: minmax(0, 1fr); }

.orgport-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.home-shortcuts,
.home-events {
  padding: 60px clamp(20px, 5vw, 72px);
}

.home-shortcuts {
  background: color-mix(in srgb, var(--teal) 8%, var(--paper));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 1280px;
  margin: 0 auto 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-size: 36px;
  line-height: 1.12;
}

.section-heading > div > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
}

.shortcut-grid {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.shortcut-link {
  min-height: 116px;
  padding: 20px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}

.shortcut-link:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.shortcut-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: color-mix(in srgb, var(--teal) 16%, var(--panel));
  color: var(--mint);
  font-size: 24px;
  font-weight: 800;
}

.shortcut-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shortcut-link > span:nth-child(2) {
  display: grid;
  gap: 6px;
}

.shortcut-link strong {
  color: var(--ink);
  font-size: 16px;
}

.shortcut-link small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.shortcut-arrow {
  color: var(--mint);
  font-size: 20px;
}

.home-events {
  padding-top: 72px;
  padding-bottom: 82px;
}

.text-link {
  color: var(--mint);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  text-decoration: underline;
}

.home-event-grid {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.home-event-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.home-event-visual {
  min-height: 138px;
  padding: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #edf5f2;
  border-bottom: 1px solid var(--line);
}

.home-event-visual::before,
.home-event-visual::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(35, 110, 88, 0.13);
  border-radius: 50%;
}

.home-event-visual::before { transform: translate(72px, -54px); }
.home-event-visual::after { transform: translate(-86px, 72px); }

.home-event-visual > img {
  z-index: 1;
  width: 75px;
  height: 75px;
  object-fit: contain;
}

.event-date-block {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 16px;
  width: 48px;
  height: 52px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(23, 33, 38, 0.08);
}

.event-date-block strong { font-size: 20px; line-height: 1; }
.event-date-block small { margin-top: 4px; color: var(--mint); font-size: 10px; font-weight: 850; }

.event-price {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.home-event-body {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-event-org,
.home-event-venue,
.home-event-time { margin: 0; }
.home-event-org { color: var(--muted); font-size: 13px; }
.home-event-body h3 { margin: 7px 0 4px; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.home-event-venue { color: var(--muted); font-size: 14px; }
.home-event-time { margin-top: 17px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.home-event-bottom {
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-event-capacity {
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
}

.home-event-capacity.is-full { color: var(--bad); }
.home-event-bottom .button { min-width: 92px; min-height: 38px; padding: 8px 11px; font-size: 13px; }
.event-loading { grid-column: 1 / -1; color: var(--muted); }

.events-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.events-empty h3 { margin: 6px 0; font-size: 22px; }
.events-empty p:not(.eyebrow) { color: var(--muted); }

.org-directory-hero {
  padding: 58px clamp(20px, 5vw, 72px) 42px;
  background: color-mix(in srgb, var(--teal) 8%, var(--paper));
  border-bottom: 1px solid var(--line);
}
.org-directory-hero > * { width: min(100%, 1280px); margin-left: auto; margin-right: auto; }
.org-directory-hero h1 { margin-top: 8px; margin-bottom: 10px; font-size: 58px; line-height: 1; }
.org-directory-hero > p:last-child { color: var(--muted); font-size: 18px; line-height: 1.5; }
.org-directory-content { padding: 52px clamp(20px, 5vw, 72px) 76px; }
.org-directory-grid {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  align-items: stretch;
  gap: 15px;
}
.org-directory-card {
  min-width: 0;
  min-height: 245px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}
.org-card-mark { width: 48px; height: 48px; margin-bottom: 16px; padding: 5px; display: grid; place-items: center; border-radius: 6px; background: #fff; }
.org-card-mark img { width: 100%; height: 100%; object-fit: contain; }
.org-directory-card .eyebrow { margin-bottom: 6px; }
.org-directory-card h3 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.org-directory-card > p:not(.eyebrow) { margin: 8px 0 20px; color: var(--muted); font-size: 14px; }
.org-directory-card .button { margin-top: auto; min-height: 40px; }

.home-footer {
  padding: 46px clamp(20px, 5vw, 72px) 18px;
  background: #eaf1ee;
  border-top: 1px solid var(--line);
}

.global-footer {
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  border-radius: 0;
  box-shadow: none;
}

body > .global-footer {
  display: block;
  clear: both;
}

.footer-main {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding-bottom: 36px;
  display: grid;
  grid-template-columns: minmax(230px, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: 36px;
}

.footer-about p { margin: 12px 0 8px; color: var(--muted); font-size: 14px; }
.footer-about .footer-brand { justify-items: start; }
.footer-about .footer-logo { width: 190px; max-height: 48px; object-position: left center; }
.footer-email { color: var(--mint); font-size: 14px; font-weight: 750; text-decoration: none; }
.footer-links-group { display: grid; align-content: start; justify-items: start; gap: 11px; }
.footer-links-group h2 { margin: 0 0 3px; font-size: 14px; }
.site-footer .footer-links-group a { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.site-footer .footer-links-group a:hover { color: var(--teal); background: transparent; transform: none; }
.footer-bottom {
  width: min(100%, 1280px);
  min-height: 48px;
  margin: 0 auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(35, 110, 88, 0.16);
  color: var(--muted);
  font-size: 12px;
}

:root[data-theme="dark"] .home-footer { background: #132221; }
:root[data-theme="dark"] .site-footer { background: var(--panel); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .site-footer a:not(.footer-brand) { background: #203432; color: var(--ink); border-color: #49615c; box-shadow: none; }
:root[data-theme="dark"] .site-footer a:not(.footer-brand):hover { background: var(--mint); color: #fff; }
:root[data-theme="dark"] .home-event-visual { background: #203835; }
:root[data-theme="dark"] .orgport-icon { background: transparent; }
:root[data-theme="dark"] .org-card-mark { background: transparent; }
:root[data-theme="dark"] .org-directory-hero { background: color-mix(in srgb, var(--teal) 9%, var(--paper)); }
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .hero-proof b,
:root[data-theme="dark"] .shortcut-icon,
:root[data-theme="dark"] .shortcut-arrow,
:root[data-theme="dark"] .text-link,
:root[data-theme="dark"] .home-event-capacity:not(.is-full),
:root[data-theme="dark"] .contact-option-icon,
:root[data-theme="dark"] .contact-email-link,
:root[data-theme="dark"] .legal-content a { color: var(--teal); }
:root[data-theme="dark"] .status { background: #143b31; color: #83e1b9; }
:root[data-theme="dark"] .status.used { background: #493b17; color: #f4d276; }
:root[data-theme="dark"] .status.revoked { background: #4a2421; color: #ffaaa1; }
:root[data-theme="dark"] .status.inactive,
:root[data-theme="dark"] .button.disabled { background: #293936; color: #c2d0cc; }
:root[data-theme="dark"] .saas-copy h1,
:root[data-theme="dark"] .lead-copy h1,
:root[data-theme="dark"] .events-header h1 { color: var(--ink); }

.legal-shell { min-height: 100vh; }
.contact-shell { min-height: 100vh; }
.contact-hero {
  padding: 64px clamp(20px, 6vw, 84px) 48px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--teal) 8%, var(--paper));
}
.contact-hero > * { width: min(100%, 1180px); margin-left: auto; margin-right: auto; }
.contact-hero h1 { margin-top: 10px; margin-bottom: 10px; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; }
.contact-hero > p:last-child { max-width: 660px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.contact-content { width: min(100% - 40px, 1180px); margin: 0 auto; padding: 42px 0 72px; }
.contact-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contact-option {
  min-width: 0;
  min-height: 290px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}
.contact-option-icon { width: 42px; height: 42px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 7px; background: color-mix(in srgb, var(--teal) 14%, var(--paper)); color: var(--mint); }
.contact-option-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-option .eyebrow { margin: 0 0 7px; }
.contact-option h2 { margin: 0; font-size: 21px; line-height: 1.2; }
.contact-option > p:not(.eyebrow) { margin: 10px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.contact-option > .button { margin-top: auto; min-height: 42px; }
.contact-email-link { margin-top: auto; color: var(--mint); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-message { margin-top: 34px; padding-top: 32px; display: grid; grid-template-columns: minmax(210px, .75fr) minmax(0, 1.25fr); gap: 40px; border-top: 1px solid var(--line); }
.contact-message h2 { margin: 6px 0 8px; font-size: 26px; }
.contact-message > div > p:last-child { max-width: 330px; color: var(--muted); line-height: 1.55; }
.contact-message form { align-content: start; }
.contact-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.contact-submit-row .muted { font-size: 13px; }
.contact-organizer-panel { width: min(100% - 40px, 760px); margin: 50px auto 72px; }
.contact-organizer-panel .contact-list { display: grid; gap: 10px; }
.contact-organizer-panel .contact-row { padding: 15px; display: flex; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.contact-organizer-panel .contact-row span { color: var(--muted); }
.contact-organizer-panel .contact-row strong { overflow-wrap: anywhere; }

.apps-hero {
  width: min(100%, 1280px);
  min-height: 430px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 100px) clamp(24px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, .75fr);
  align-items: center;
  gap: 42px;
}
.apps-hero-copy { max-width: 760px; }
.apps-hero h1 { max-width: 760px; margin: 12px 0 18px; font-size: 64px; line-height: 1.02; }
.apps-hero-copy > p:not(.eyebrow):not(.apps-release-note) { max-width: 610px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.apps-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.apps-release-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.apps-mark { width: min(100%, 230px); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.apps-mark img { width: 100%; height: 100%; object-fit: contain; }
.apps-capabilities { padding: 62px max(24px, calc((100% - 1120px) / 2)); background: var(--panel); border-block: 1px solid var(--line); }
.apps-capabilities .section-heading { margin-bottom: 28px; }
.apps-capabilities .section-heading h2,
.apps-install h2 { margin: 5px 0 0; font-size: 30px; }
.apps-capabilities .section-heading > p { max-width: 420px; color: var(--muted); line-height: 1.6; }
.apps-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.apps-feature-list article { padding: 22px 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; border-top: 1px solid var(--line); }
.apps-feature-index { color: var(--mint); font-size: 13px; font-weight: 800; }
.apps-feature-list h3 { margin: 0; font-size: 18px; }
.apps-feature-list p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.apps-install { width: min(100% - 48px, 1120px); margin: 0 auto; padding: 56px 0; display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr); gap: 22px 50px; }
.apps-install ol { margin: 0; padding-left: 22px; display: grid; gap: 12px; line-height: 1.55; }
.apps-preview-note { grid-column: 2; margin: 0; padding: 14px 16px; border-left: 3px solid var(--teal); background: color-mix(in srgb, var(--teal) 10%, var(--paper)); color: var(--muted); font-size: 14px; line-height: 1.55; }
.apps-preview-note strong { color: var(--ink); }

.legal-content {
  width: min(100% - 40px, 860px);
  margin: 56px auto 72px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}
.legal-content h1 { margin: 8px 0 4px; font-size: 48px; line-height: 1.05; }
.legal-updated { margin: 12px 0 30px; color: var(--muted); font-size: 13px; }
.legal-content > p:not(.eyebrow):not(.legal-updated) { color: var(--muted); line-height: 1.7; }
.legal-content h2 { margin: 30px 0 8px; font-size: 19px; }
.legal-content a { color: var(--mint); font-weight: 700; }

@media (max-width: 900px) {
  .public-header { min-height: 76px; }
  .public-nav { gap: 12px; }
  .home-hero { min-height: auto; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr); gap: 28px; padding-top: 58px; padding-bottom: 58px; }
  .hero-copy h1 { font-size: 56px; }
  .client-access-panel { padding: 22px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .public-header { min-height: 72px; padding: 10px 16px; flex-wrap: wrap; }
  .public-header .brand-logo { width: min(205px, 60vw); max-height: 50px; }
  .mobile-menu-toggle { display: inline-flex; width: 44px; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; }
  .public-header .mobile-menu-toggle[aria-expanded="true"] { visibility: hidden; }
  .public-nav,
  .public-nav.is-open {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    z-index: 40;
    width: min(360px, calc(100vw - 24px));
    padding: 24px 20px 16px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 8px 0 0 0;
    background: var(--panel);
    box-shadow: -18px 0 32px rgba(7, 22, 19, .2), 0 0 0 100vmax rgba(4, 13, 12, .48);
    transform: translateX(calc(100% + 2px));
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms;
  }
  .public-nav.is-open { transform: translateX(0); visibility: visible; }
  .public-nav > a { padding: 14px 12px; border-radius: 6px; }
  .public-nav > a:hover { background: color-mix(in srgb, var(--teal) 10%, var(--panel)); }
  .public-nav .nav-orgport { text-align: center; }
  .menu-drawer-actions { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
  .public-nav .theme-toggle { min-height: 44px; }
  .menu-close { width: 44px; min-width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
  .close-glyph { transition: transform 180ms ease; }
  .menu-close:hover .close-glyph { transform: rotate(90deg); }
  body.menu-open { overflow: hidden; }
  .home-hero { grid-template-columns: 1fr; padding: 46px 18px; gap: 34px; }
  .hero-copy { gap: 17px; }
  .hero-copy h1 { font-size: 44px; }
  .section-heading h2 { font-size: 30px; }
  .org-directory-hero h1 { font-size: 40px; }
  .legal-content h1 { font-size: 38px; }
  .contact-hero { padding: 42px 18px 32px; }
  .contact-hero h1 { font-size: 42px; }
  .contact-content { width: min(100% - 32px, 1180px); padding: 26px 0 48px; }
  .contact-options { grid-template-columns: 1fr; }
  .contact-option { min-height: 0; }
  .contact-message { margin-top: 28px; padding-top: 26px; grid-template-columns: 1fr; gap: 14px; }
  .contact-message h2 { font-size: 23px; }
  .apps-hero { min-height: 0; grid-template-columns: 1fr; gap: 22px; padding: 46px 20px 36px; }
  .apps-hero h1 { font-size: 44px; }
  .apps-mark { width: 116px; justify-self: start; grid-row: 1; }
  .apps-capabilities { padding: 42px 20px; }
  .apps-feature-list { grid-template-columns: 1fr; }
  .apps-install { width: min(100% - 40px, 1120px); grid-template-columns: 1fr; gap: 18px; padding: 42px 0; }
  .apps-preview-note { grid-column: auto; }
  .contact-organizer-panel { width: min(100% - 32px, 760px); margin: 28px auto 48px; }
  .hero-copy > p:not(.eyebrow) { font-size: 17px; }
  .hero-proof { gap: 10px 18px; font-size: 13px; }
  .client-access-panel { padding: 19px; }
  .home-shortcuts, .home-events { padding: 44px 18px; }
  .org-directory-hero { padding: 42px 18px 30px; }
  .org-directory-content { padding: 40px 18px 52px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .shortcut-grid, .home-event-grid { grid-template-columns: 1fr; }
  .shortcut-link { min-height: 96px; }
  .home-event-visual { min-height: 128px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .public-home,
  .public-header,
  .menu-glyph::before,
  .menu-glyph::after,
  .menu-glyph > span,
  .public-nav,
  .close-glyph {
    scroll-behavior: auto;
    animation: none;
    transition: none;
  }
}

@media (max-width: 820px) {
  .saas-hero {
    min-height: auto;
    padding: 22px;
    gap: 34px;
  }

  .saas-hero-grid,
  .saas-feature-band,
  .events-header,
  .event-filters,
  .lead-shell {
    grid-template-columns: 1fr;
  }

  .events-directory {
    padding: 18px;
  }

  .lead-page {
    padding: 20px;
    gap: 26px;
  }

  .lead-copy {
    padding-top: 0;
  }

  .lead-copy h1 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .events-nav,
  .events-header,
  .platform-event-list,
  .events-footer {
    width: 100%;
  }

  .events-nav {
    align-items: center;
    gap: 10px;
  }

  .events-nav .brand {
    flex-basis: 0;
  }

  .events-nav .brand-logo {
    width: min(250px, 68vw);
    max-height: 58px;
  }

  .events-nav .compact-nav-button {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 15px;
  }

  .events-header h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .saas-copy h1 {
    font-size: clamp(42px, 12vw, 64px);
  }

  .saas-copy p:not(.eyebrow) {
    font-size: 18px;
  }

  .access-actions {
    grid-template-columns: 1fr;
  }

  .app-shell,
  .owner-shell {
    grid-template-columns: 1fr;
  }

  .floating-menu {
    top: auto;
    right: 14px;
    bottom: 16px;
  }

  .floating-menu-toggle {
    min-height: 50px;
    box-shadow: 0 12px 30px rgba(23, 33, 38, 0.28);
  }

  .floating-menu-panel {
    max-height: min(420px, calc(100vh - 100px));
    overflow-y: auto;
  }

  .sidebar {
    padding: 24px;
    gap: 18px;
  }

  .sidebar h1 {
    font-size: clamp(34px, 10vw, 48px);
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .content {
    padding: 20px;
  }

  .form-grid,
  .pass-body,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .toolbar .actions,
  .quick-links {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .toolbar .actions > *,
  .quick-links > *,
  .quick-links form,
  .quick-links button {
    width: 100%;
  }

  .data-table {
    min-width: 680px;
  }
}

@media (max-width: 520px) {
  .ticket-view {
    padding: 12px;
    place-items: start center;
  }

  .panel {
    padding: 16px;
    width: 100%;
  }

  .lead-page {
    padding: 14px;
  }

  .lead-nav .actions {
    width: 100%;
  }

  .lead-nav .button {
    flex: 1 1 auto;
  }

  .lead-card {
    padding: 16px;
  }

  .lead-submit-row {
    display: grid;
  }

  .lead-submit-row button {
    width: 100%;
  }

  .checkout-panel {
    gap: 16px;
  }

  .checkout-panel .toolbar {
    gap: 12px;
  }

  .checkout-panel h1 {
    font-size: 30px;
    line-height: 1.05;
  }

  .checkout-panel .button,
  .checkout-panel button {
    width: 100%;
  }

  .checkout-panel .result {
    padding: 16px;
    width: 100%;
  }

  .app-footer {
    padding: 16px;
    width: 100%;
  }

  .app-footer .footer-inner {
    align-items: center;
    gap: 14px;
    justify-content: center;
  }

  .app-footer .footer-brand {
    width: 100%;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
  }

  .app-footer .footer-logo {
    width: min(230px, 72vw);
    max-height: 58px;
    object-position: center;
  }

  .app-footer .footer-brand div {
    justify-items: center;
  }

  .app-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .app-footer a {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .events-directory {
    padding: 12px;
    gap: 18px;
  }

  .events-nav .brand {
    flex: 1 1 100%;
  }

  .events-nav .brand-logo {
    width: min(260px, 82vw);
  }

  .events-nav .compact-nav-button {
    margin-left: auto;
  }

  .platform-event-list {
    grid-template-columns: 1fr;
  }

  .event-card header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .event-card .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .event-card .actions > * {
    width: 100%;
  }

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

  .consent-label span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .organizer-shell .content {
    padding: 16px;
    gap: 18px;
  }

  .organizer-shell .sidebar {
    padding: 22px 16px;
  }

  .organizer-actions.is-docked,
  .portal-actions.is-docked {
    justify-content: flex-start;
    gap: 7px;
    top: 8px;
    width: calc(100vw - 20px);
    padding: 7px;
  }

  .organizer-actions.is-docked a,
  .organizer-actions.is-docked button,
  .portal-actions.is-docked a,
  .portal-actions.is-docked button {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 14px;
  }

  .floating-menu {
    right: 12px;
    bottom: 12px;
  }

  .floating-menu-toggle {
    min-height: 48px;
    padding-inline: 16px;
  }

  .staff-login-card {
    width: 100%;
  }

  .staff-login-card h1 {
    font-size: 38px;
  }

  .login-subtitle {
    font-size: 18px;
  }

  .staff-login-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .staff-login-primary {
    order: 1;
    width: 100%;
  }

  .staff-login-storefront {
    order: 2;
    width: 100%;
  }

  .locked-prefix-input span {
    padding: 0 10px;
  }
}
