@import url('https://fonts.googleapis.com/css2?family=Geist:ital,wght@0,250;0,400;0,500;1,200&family=Inter:wght@200;400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --brand-green: #6355aa;
  --brand-green-strong: #473a88;
  --brand-teal: #2f9a78;
  --brand-teal-strong: #21745a;
  --brand-ink: #211934;
  --page-bg: #fbfaf5;
  --page-bg-soft: #fbf4e2;
  --surface: #fffefa;
  --surface-alt: #f7e3ee;
  --surface-raised: #ffffff;
  --border: #afa8bf;
  --border-strong: #827a96;
  --text: #211934;
  --text-strong: #100b1d;
  --muted: #4f465f;
  --muted-strong: #332a42;
  --success: #167a55;
  --warning: #7c4d09;
  --danger: #b91c1c;
  --info: #5b4d96;
  --focus-ring: rgba(95, 86, 166, 0.32);
  --shadow-soft: 0 14px 36px rgba(33, 25, 52, 0.1);
  --shadow-hover: 0 12px 28px rgba(95, 86, 166, 0.18);
  --radius-card: 8px;
  --radius-control: 8px;
  --brand-shell: color-mix(in srgb, var(--surface) 94%, #ded7fb);
  --brand-shell-border: var(--border);
  --brand-shell-glow: rgba(99, 85, 170, 0.16);
  --brand-copy: var(--text);
  --brand-muted: var(--muted);
  --ambient-primary: rgba(222, 215, 251, 0.56);
  --ambient-secondary: rgba(216, 240, 250, 0.34);
  --ambient-warm: rgba(251, 244, 226, 0.74);
  --accent-soft: #ded7fb;
  --accent-warm: #fbf4e2;
  --accent-cool: #d8f0fa;
  --accent-mint: #d8f6e8;
  --on-accent: #fffefa;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 200;
}

/* Display typography: page titles are airy and italic; subordinate titles stay upright. */
header h1,
.login-container h1,
.signup-container h1 {
  font-family: 'Geist', 'Inter', sans-serif !important;
  font-style: italic !important;
  font-weight: 200 !important;
}

h2,
h3,
h4,
.result-title,
.ticket-qr-title {
  font-family: 'Geist', 'Inter', sans-serif !important;
  font-style: normal !important;
  font-weight: 250 !important;
}

/* Event-list card names need slightly more presence than other subordinate titles. */
.event-card .event-header h3 {
  font-weight: 400 !important;
}

/* The selected event name is a primary content title, not a generic section heading. */
#detailEventName {
  font-weight: 400 !important;
}

html[data-theme="dark"],
body[data-theme="dark"] {
  color-scheme: dark;
  --brand-green: #4ade80;
  --brand-green-strong: #22c55e;
  --brand-teal: #06b6d4;
  --brand-teal-strong: #0891b2;
  --brand-ink: #052e16;
  --page-bg: #0b0f14;
  --page-bg-soft: #101827;
  --surface: #111826;
  --surface-alt: #0b1220;
  --surface-raised: #172033;
  --border: #2c3b52;
  --border-strong: #40516d;
  --text: #e6f0ff;
  --text-strong: #f8fafc;
  --muted: #ffffff;
  --muted-strong: #ffffff;
  --success: #4ade80;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --focus-ring: rgba(74, 222, 128, 0.24);
  --shadow-soft: 0 18px 44px rgba(2, 6, 23, 0.28);
  --shadow-hover: 0 14px 32px rgba(74, 222, 128, 0.18);
  --brand-shell: rgba(15, 23, 42, 0.86);
  --brand-shell-border: rgba(148, 163, 184, 0.2);
  --brand-shell-glow: rgba(74, 222, 128, 0.18);
  --brand-copy: #ffffff;
  --brand-muted: #ffffff;
  --ambient-primary: rgba(74, 222, 128, 0.08);
  --ambient-secondary: rgba(6, 182, 212, 0.08);
  --ambient-warm: rgba(15, 23, 42, 0.1);
  --accent-soft: rgba(74, 222, 128, 0.18);
  --accent-warm: rgba(15, 23, 42, 0.35);
  --accent-cool: rgba(6, 182, 212, 0.14);
  --accent-mint: rgba(74, 222, 128, 0.18);
  --on-accent: #052e16;
}

.icon,
.icon-inline {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex: 0 0 auto;
}

.icon-inline {
  width: 1rem;
  height: 1rem;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm,
.icon-inline.icon-sm {
  width: 0.95rem;
  height: 0.95rem;
}

.icon-lg,
.icon-inline.icon-lg {
  width: 1.15rem;
  height: 1.15rem;
}

.icon-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-label .icon,
.icon-label .icon-inline {
  flex-shrink: 0;
}

.page-shell {
  position: relative;
  min-width: 0;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, var(--ambient-primary), transparent 26%),
    radial-gradient(circle at top right, var(--ambient-secondary), transparent 22%),
    linear-gradient(180deg, var(--ambient-warm), transparent 22%);
  opacity: 0.95;
}

.brand-header {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: var(--brand-shell);
  border: 1px solid var(--brand-shell-border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.brand-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at left top, var(--ambient-primary), transparent 32%),
    radial-gradient(circle at right top, var(--ambient-secondary), transparent 28%);
  pointer-events: none;
}

.brand-title-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent-mint));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 14px 36px var(--brand-shell-glow);
}

.brand-mark img,
.brand-wordmark img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-mark-fallback,
.brand-wordmark-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: lowercase;
}

.brand-mark-fallback[hidden],
.brand-wordmark-fallback[hidden] {
  display: none;
}

.brand-mark-fallback {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--brand-green), var(--brand-teal));
  color: #fffefa;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand-title-copy {
  text-align: left;
  min-width: 0;
}

.brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 64%, var(--surface));
  border: 1px solid var(--border);
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-teal));
  box-shadow: 0 0 12px var(--brand-shell-glow);
}

.brand-title-copy .subtitle {
  color: var(--brand-muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 42rem;
  overflow-wrap: anywhere;
}

.brand-footer {
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--brand-muted);
  font-size: 0.92rem;
  text-align: center;
}

.brand-footer-copy {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--brand-muted);
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-cool) 48%, var(--surface));
  border: 1px solid var(--border);
  min-height: 72px;
  max-width: min(240px, 72vw);
}

.brand-wordmark img {
  max-height: 68px;
  width: auto;
}

.brand-wordmark-fallback {
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  appearance: none;
}

.theme-toggle-option {
  line-height: 1;
}

.theme-toggle-slider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 68%, var(--surface));
  border: 1px solid var(--border-strong);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.theme-toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--brand-green);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
  transition: transform 0.18s ease, background 0.18s ease;
}

.theme-toggle[aria-checked="true"] .theme-toggle-track {
  background: color-mix(in srgb, var(--accent-cool) 44%, #152235);
  border-color: var(--border-strong);
}

.theme-toggle[aria-checked="true"] .theme-toggle-track::after {
  transform: translateX(18px);
  background: var(--brand-teal);
}

.theme-toggle:hover {
  color: var(--text-strong);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

body.brand-login {
  flex-direction: column;
  gap: 26px;
  padding: 24px;
}

body.brand-login .brand-footer {
  margin-top: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background:
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-soft) 100%) !important;
  color: var(--text);
  accent-color: var(--brand-green);
}

.wrap,
.container {
  width: min(100%, var(--page-max, 1200px));
}

.wrap {
  padding-inline: clamp(0px, 1vw, 12px);
}

.page-shell::before {
  background:
    radial-gradient(circle at top left, var(--ambient-primary), transparent 32%),
    radial-gradient(circle at top right, var(--ambient-secondary), transparent 28%),
    linear-gradient(180deg, var(--ambient-warm), transparent 22%);
  opacity: 1;
}

.brand-header {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.brand-header::before {
  background:
    radial-gradient(circle at left top, var(--ambient-primary), transparent 34%),
    radial-gradient(circle at right top, var(--ambient-secondary), transparent 30%);
}

.brand-mark,
.brand-wordmark {
  border-radius: var(--radius-card);
  border-color: var(--border);
}

.brand-kicker {
  border-radius: var(--radius-control);
  background: var(--surface-alt);
  border-color: var(--border);
  color: var(--muted-strong);
  letter-spacing: 0;
}

.brand-title-copy .subtitle,
.subtitle,
.hint,
.status,
.nav-stats,
.event-card-info p,
.event-details p,
.owned-ticket-card p,
.owned-ticket-group-header p,
.marketplace-listing-info p,
.auth-modal-subtitle,
.empty-state-card,
.event-description,
.price-label,
.info-label,
.event-card-availability,
.summary-row:not(.total),
.wallet-info span,
.brand-footer,
.brand-footer-copy {
  color: var(--muted) !important;
  overflow-wrap: anywhere;
}

header h1,
.card h2,
.section h2,
.event-card-header h3,
.event-header h3,
.event-detail-header h2,
.modal-content h3,
.owned-ticket-card h4,
.owned-ticket-group-header h3,
.empty-state-card h3,
.marketplace-listing-info h4,
.fallback-panel h3,
.scanner-card h3,
.info-value,
.summary-row.total,
.summary-value,
.resale-info-item .value {
  color: var(--text-strong) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  overflow-wrap: anywhere;
}

.card,
.wallet-bar,
.auth-notice,
.event-card,
.event-detail-card,
.event-description,
.purchase-section,
.purchase-summary,
.my-ticket-card,
.owned-ticket-group,
.owned-ticket-card,
.empty-state-card,
.modal-content,
.marketplace-listing,
.purchase-details,
.scanner-card,
.fallback-panel,
.stat-card,
.ops-card,
.summary-item,
.resale-info-card,
.policy-info-card,
.publish-prompt,
.table-wrapper,
.history-table-wrapper,
#eventLog,
#modalMetadata,
#modalTicketDetails,
.payment-element-shell {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.auth-notice,
.info-message,
#resalePolicy,
.instructions {
  background: color-mix(in srgb, var(--info) 9%, var(--surface)) !important;
  border-color: color-mix(in srgb, var(--info) 42%, var(--border)) !important;
  color: var(--info) !important;
}

.event-card:hover,
.owned-ticket-card:hover,
.marketplace-listing:hover,
.stat-card:hover {
  border-color: var(--brand-green) !important;
  box-shadow: var(--shadow-hover);
}

.marketplace-listing.marketplace-listing-highlighted {
  border-color: var(--brand-green) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-green) 24%, transparent) !important;
}

.purchase-section,
.resale-info-card,
.policy-info-card {
  background:
    linear-gradient(135deg, var(--ambient-primary), var(--ambient-secondary)),
    var(--surface) !important;
}

.event-card-footer,
.event-footer,
.summary-row.total,
.my-tickets-section,
.list-for-sale-section,
.form-section-header,
.detail-row:not(:last-child),
.detail-row.total,
.tabs {
  border-color: var(--border) !important;
}

.event-card-price,
.event-price,
.price-value,
.stat-value,
.marketplace-price,
.price-large,
.list-for-sale-section h4,
.form-section-header h3,
.event-info-bar h3,
.resale-info-card h4,
.tab-btn.active,
.summary-row.total span:last-child,
.marketplace-link,
.nav-link:hover {
  color: var(--brand-green) !important;
}

/* Give highlighted monetary values a stronger display face. */
.event-card-price,
.event-price,
.price-value,
.marketplace-price,
.price-large,
.summary-row.total span:last-child {
  font-family: 'Geist', 'Inter', sans-serif !important;
  font-weight: 500 !important;
}

.stat-value,
.summary-value,
.resale-info-item .value {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.info-icon,
.resale-info-item .icon,
.address,
.token-uri,
.contract-address,
.marketplace-seller,
.address-code {
  color: var(--info) !important;
}

.wallet-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 10px 18px !important;
  background: var(--surface-alt) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-control) !important;
  color: var(--brand-green) !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.wallet-action:hover {
  border-color: var(--brand-green) !important;
  box-shadow: var(--shadow-hover);
  color: var(--brand-green-strong) !important;
  transform: translateY(-1px);
}

.wallet-action:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

html[data-theme="dark"] .wallet-action:hover,
body[data-theme="dark"] .wallet-action:hover {
  color: var(--brand-green) !important;
}

button,
.btn,
.btn-primary,
.btn-secondary,
.btn-wallet,
.btn-connect,
.btn-disconnect,
.btn-back,
.btn-purchase,
.btn-buy,
.btn-list,
.marketplace-buy-btn,
.btn-view,
.preview-btn,
.tab-btn,
.login-button,
.signup-button {
  min-height: 40px;
  border-radius: var(--radius-control) !important;
  font: inherit;
}

.btn-primary,
.btn-connect,
.btn-purchase,
.btn-buy,
.btn-list,
.marketplace-buy-btn,
.btn-view,
.login-button,
.signup-button {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-strong) 100%) !important;
  color: var(--on-accent) !important;
}

.btn-secondary,
.btn-wallet,
.btn-disconnect,
.btn-back,
.preview-btn,
.tab-btn {
  background: var(--surface-alt) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}

.btn-wallet.wallet-action,
.marketplace-link.wallet-action {
  color: var(--brand-green) !important;
}

.tab-btn {
  background: transparent !important;
}

.tab-btn.active {
  border-bottom-color: var(--brand-green) !important;
}

input,
select,
textarea,
.auth-form select,
.form-row input,
.marketplace-filters input,
.marketplace-filters select,
.filter-group select {
  width: 100%;
  min-width: 0;
  background: var(--surface-alt) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-control) !important;
}

input:focus,
select:focus,
textarea:focus,
.auth-form select:focus,
.form-row input:focus,
.marketplace-filters input:focus,
.marketplace-filters select:focus,
.filter-group select:focus {
  border-color: var(--brand-green) !important;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 76%, transparent);
}

.event-status-badge,
.payout-status-badge,
.tier-badge,
.event-tier,
.sold-out-badge,
.ticket-listing-badge,
.history-action {
  border-radius: var(--radius-control) !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

.payment-element-shell {
  color-scheme: light;
}

html[data-theme="dark"] .payment-element-shell,
body[data-theme="dark"] .payment-element-shell {
  color-scheme: dark;
}

.modal {
  padding: 16px;
}

.modal.active {
  align-items: flex-start;
  overflow-y: auto;
}

.modal-content {
  margin-block: auto;
}

@media (min-width: 721px) {
  #ticketModal .modal-content {
    width: min(90vw, 640px) !important;
    max-width: 640px !important;
  }
}

@media (max-width: 720px) {
  body {
    padding: 12px !important;
  }

  .wrap,
  .container {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }

  .brand-header {
    border-radius: var(--radius-card);
    padding: 20px 16px !important;
  }

  .brand-title-row {
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
  }

  .brand-title-copy {
    text-align: center;
    width: min(100%, calc(100vw - 64px));
    max-width: calc(100vw - 64px);
  }

  .brand-mark {
    width: 60px;
    height: 60px;
  }

  .brand-kicker {
    justify-content: center;
    margin-bottom: 8px;
  }

  .brand-title-copy .subtitle {
    font-size: 0.95rem;
  }

  .brand-footer {
    flex-direction: column;
    gap: 8px;
  }

  .theme-toggle {
    margin-left: 0;
    width: auto;
    justify-content: center;
  }

  .theme-toggle-slider {
    flex: 0 0 auto;
    justify-content: center;
  }

  header {
    margin-bottom: 24px !important;
    padding: 20px 0 !important;
  }

  header h1 {
    font-size: 1.7rem !important;
    line-height: 1.12;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .card,
  .event-detail-card,
  .purchase-section,
  .modal-content,
  .scanner-card,
  .owned-ticket-group,
  .empty-state-card {
    padding: 18px !important;
  }

  .wallet-bar,
  .wallet-nav,
  .wallet-controls,
  .wallet-info,
  .my-tickets-page-header,
  .marketplace-header,
  .event-detail-header,
  .event-card-header,
  .event-header,
  .event-footer,
  .event-card-footer,
  .payouts-card-header,
  .payouts-card-body,
  .event-info-bar,
  .table-controls,
  .filters,
  .form-actions,
  .marketplace-nav,
  .marketplace-account-actions,
  .owned-ticket-group-header {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 12px !important;
    text-align: left;
  }

  .wallet-nav,
  .wallet-controls,
  .wallet-info {
    width: 100%;
  }

  .wallet-nav > *,
  .wallet-controls > *,
  .wallet-info > *,
  .wallet-bar > *,
  .form-actions > *,
  .event-footer > button,
  .event-card-footer > button,
  .marketplace-account-actions > *,
  .marketplace-nav > * {
    width: 100%;
    justify-content: center;
  }

  .events-grid,
  .marketplace-grid,
  .owned-ticket-grid,
  .my-tickets-grid,
  .event-detail-info,
  .form-grid,
  .connection-grid,
  .stats-grid,
  .ops-grid,
  .summary-grid,
  #resaleInfoContent,
  #policyInfoContent,
  .fallback-grid,
  .camera-controls {
    grid-template-columns: 1fr !important;
  }

  .event-detail-price {
    text-align: left !important;
  }

  .event-detail-header h2 {
    font-size: 1.65rem !important;
  }

  .price-value,
  .event-card-price,
  .marketplace-price {
    font-size: 1.45rem !important;
  }

  .purchase-controls,
  .purchase-summary,
  .stripe-payment-section {
    width: 100%;
  }

  .purchase-section {
    padding: 14px !important;
  }

  .purchase-summary {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
    margin-bottom: 14px !important;
    padding: 0 0 12px !important;
  }

  .stripe-payment-section {
    margin-bottom: 14px !important;
  }

  .stripe-payment-section label {
    font-size: 0.86rem !important;
    margin-bottom: 6px !important;
  }

  .payment-element-shell {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    min-height: 96px;
    padding: 0 !important;
  }

  .quantity-control {
    max-width: none !important;
    width: 100%;
    justify-content: space-between;
  }

  .quantity-control input {
    flex: 1;
  }

  .summary-row,
  .detail-row {
    gap: 16px;
    align-items: flex-start;
  }

  .summary-row span:last-child,
  .detail-row span:last-child {
    text-align: right;
    overflow-wrap: anywhere;
  }

  .tabs {
    border-bottom: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .tab-btn {
    border: 1px solid var(--border) !important;
    margin-bottom: 0 !important;
    width: 100%;
  }

  .tab-btn.active {
    background: color-mix(in srgb, var(--brand-green) 12%, var(--surface)) !important;
  }

  .table-wrapper,
  .history-table-wrapper {
    margin-inline: -4px;
  }

  th,
  td {
    white-space: nowrap;
  }

  .modal {
    padding: 10px;
  }

  .modal-content {
    width: min(100%, 560px) !important;
    max-height: calc(100svh - 20px) !important;
    margin-block: 0 !important;
  }

  .ticket-qr-frame {
    width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    padding: 14px !important;
  }

  .marketplace-filters,
  .filter-group {
    align-items: stretch !important;
    flex-direction: column;
    width: 100%;
  }

  .marketplace-filters input,
  .marketplace-filters select {
    min-width: 0 !important;
  }
}
