/* Eventos — design system v3
   Calm, product-like UI: one accent, strong type hierarchy, consistent components. */
:root {
  color-scheme: light dark;
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #edf0ec;
  --ink: #151d19;
  --ink-2: #3b4741;
  --muted: #66726b;
  --line: #e1e6e1;
  --line-2: #c9d1cb;
  --brand: #0e5a45;
  --brand-hover: #0a4736;
  --brand-ink: #ffffff;
  --brand-soft: #e2f0e9;
  --brand-soft-ink: #0b4a39;
  --ok: #1e6b3f;
  --ok-bg: #e4f3e9;
  --warn: #8a5a0b;
  --warn-bg: #fcf0d4;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --danger-line: #f3c4bf;
  --focus: #2f8f6b;
  --shadow-1: 0 1px 2px rgb(21 29 25 / 0.06), 0 1px 4px rgb(21 29 25 / 0.05);
  --shadow-2: 0 10px 30px rgb(21 29 25 / 0.1), 0 2px 6px rgb(21 29 25 / 0.05);
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --header-h: 60px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412;
    --surface: #171d1a;
    --surface-2: #212926;
    --ink: #edf1ed;
    --ink-2: #c3ccc6;
    --muted: #8d9992;
    --line: #28312d;
    --line-2: #3a453f;
    --brand: #4dbc93;
    --brand-hover: #63cba4;
    --brand-ink: #08201a;
    --brand-soft: #16302a;
    --brand-soft-ink: #a9decb;
    --ok: #6fd39a;
    --ok-bg: #12271b;
    --warn: #f2c65f;
    --warn-bg: #2d2412;
    --danger: #ff8c82;
    --danger-bg: #33191a;
    --danger-line: #5a2a2a;
    --focus: #63cba4;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 10px 30px rgb(0 0 0 / 0.5);
  }
}

/* Event type palettes (cards, covers, badges, ticket header) */
.art-course,
.t-course {
  --tile: linear-gradient(135deg, #e3e6ff 0%, #c9cffb 100%);
  --tile-ink: #3a3f9c;
}
.art-trip,
.t-trip {
  --tile: linear-gradient(135deg, #d9f1e3 0%, #b6dfc8 100%);
  --tile-ink: #1c6a44;
}
.art-workshop,
.t-workshop {
  --tile: linear-gradient(135deg, #ffe8d4 0%, #f9cda8 100%);
  --tile-ink: #9a4a12;
}
.art-activity,
.t-activity {
  --tile: linear-gradient(135deg, #fff1c6 0%, #f8df8d 100%);
  --tile-ink: #7a5800;
}
@media (prefers-color-scheme: dark) {
  .art-course,
  .t-course {
    --tile: linear-gradient(135deg, #2a2d5e, #3b3f8f);
    --tile-ink: #d6d9ff;
  }
  .art-trip,
  .t-trip {
    --tile: linear-gradient(135deg, #153c2a, #1f5c3f);
    --tile-ink: #c6f0d9;
  }
  .art-workshop,
  .t-workshop {
    --tile: linear-gradient(135deg, #4a2a14, #7a4520);
    --tile-ink: #ffe3cc;
  }
  .art-activity,
  .t-activity {
    --tile: linear-gradient(135deg, #4a3d08, #7a6510);
    --tile-ink: #fff0bd;
  }
}

/* Base */
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.55 Inter,
    'Segoe UI',
    system-ui,
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
}
h2 {
  font-size: 20px;
  font-weight: 700;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
p {
  margin: 0;
}
p + p {
  margin-top: 6px;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 13px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
#app:focus {
  outline: none;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-s);
}
.skip-link:focus {
  top: 12px;
}
.container {
  width: min(1140px, 100% - 40px);
  margin: 0 auto;
}
main.container {
  min-height: 60vh;
  padding-bottom: 24px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.ok {
  color: var(--ok);
}
.scarce {
  color: var(--warn);
  font-weight: 600;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row.wrap {
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.optional {
  display: contents;
  color: var(--muted);
  font-weight: 400;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}
nav {
  display: flex;
  gap: 2px;
  margin: 0 auto;
}
nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14px;
}
nav a:hover {
  text-decoration: none;
  background: var(--surface-2);
  color: var(--ink);
}
nav a.active {
  color: var(--ink);
  background: var(--surface-2);
  font-weight: 600;
}
nav .icon {
  display: none;
}
.create-link .icon {
  width: 16px;
  height: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.1s;
}
.btn:hover {
  text-decoration: none;
  background: var(--surface-2);
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}
.btn.primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
.btn.danger {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: var(--danger-line);
}
.btn.small {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.btn.small .icon {
  width: 16px;
  height: 16px;
}
.btn.full,
.full {
  width: 100%;
}
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
}
.text-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
.icon-btn:hover {
  background: var(--danger-bg);
  color: var(--danger);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 20px 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.back:hover {
  color: var(--ink);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge .icon {
  width: 13px;
  height: 13px;
}
.badge.ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.badge.warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.badge.danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.badge.t-course,
.badge.t-trip,
.badge.t-workshop,
.badge.t-activity {
  background: var(--tile);
  color: var(--tile-ink);
}

/* Form controls */
input,
select,
textarea {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
input[aria-invalid='true'],
select[aria-invalid='true'] {
  border-color: var(--danger);
}
input:disabled,
select:disabled {
  background: var(--surface-2);
  color: var(--muted);
}
input[type='checkbox'] {
  width: auto;
  height: auto;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.select,
select.select {
  width: auto;
  height: 36px;
  padding: 0 32px 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366726b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.search-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.search-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.search-field input:focus-visible {
  box-shadow: none;
}
.search-field input::-webkit-search-cancel-button {
  cursor: pointer;
}
progress {
  width: 100%;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
}
progress::-webkit-progress-bar {
  background: var(--surface-2);
}
progress::-webkit-progress-value {
  background: var(--brand);
}
progress::-moz-progress-bar {
  background: var(--brand);
}

/* Switch (payment toggle) */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.switch input {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  width: 38px;
  height: 22px;
  margin: 0;
  border-radius: 999px;
  background: var(--line-2);
  border: 0;
  position: relative;
  flex: none;
  transition: background 0.15s;
}
.switch input::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
  transition: transform 0.15s;
}
.switch input:checked {
  background: var(--ok);
}
.switch input:checked::after {
  transform: translateX(16px);
}
.switch input:focus-visible {
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* Explore: hero + filters */
.hero {
  margin: 28px 0 8px;
  padding: 32px 32px 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.hero-copy {
  max-width: 640px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 8px;
}
.hero-copy p {
  color: var(--muted);
  font-size: 16px;
}
.hero-search {
  height: 52px;
  max-width: 640px;
}
.hero-search input {
  font-size: 16px;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
  margin: -2px;
}
.category-tabs::-webkit-scrollbar {
  display: none;
}
.category-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.category-tabs .icon {
  width: 16px;
  height: 16px;
}
.category-tabs button:hover {
  background: var(--surface-2);
}
.category-tabs button.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.select-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.select-filters label {
  display: block;
}
.select-filters .btn.small {
  height: 36px;
  border-radius: 999px;
}
.date-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.date-filters label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.date-filters input {
  width: 170px;
  height: 38px;
}
.date-filters .small {
  padding-bottom: 10px;
}
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 14px;
}
#result-count {
  font-weight: 600;
  color: var(--ink-2);
}
.sort-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  border-color: var(--line-2);
}
.card-cover {
  position: relative;
  aspect-ratio: 4 / 3;
}
.event-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--tile);
  color: var(--tile-ink);
}
.art-symbol {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 0.45);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.08);
}
.art-symbol .icon {
  width: 30px;
  height: 30px;
}
.date-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: grid;
  justify-items: center;
  min-width: 48px;
  padding: 6px 8px 5px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
  line-height: 1;
}
.date-chip strong {
  font-size: 18px;
  font-weight: 700;
}
.date-chip span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 3px;
}
.heart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  transition:
    color 0.15s,
    background 0.15s;
}
.heart .icon {
  width: 16px;
  height: 16px;
}
.heart:hover {
  color: var(--danger);
}
.heart.on {
  color: var(--danger);
  border-color: var(--danger-line);
  background: var(--danger-bg);
}
.heart.on .icon {
  fill: currentColor;
}
.card-cover .heart {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-color: transparent;
  box-shadow: var(--shadow-1);
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  flex: 1;
}
.card-kicker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.card h3 {
  font-size: 16.5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title {
  color: var(--ink);
}
.card-title::after {
  content: '';
  position: absolute;
  inset: 0;
}
.card-title:hover {
  text-decoration: none;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}
.card-meta .icon {
  width: 15px;
  height: 15px;
}
.card-meta + .card-meta {
  margin-top: 0;
}
.card-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.price {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.price.ok {
  color: var(--ok);
}
.skeleton {
  height: 340px;
  border-radius: var(--r-l);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.load-more {
  display: flex;
  justify-content: center;
  margin: 28px 0 8px;
}
.host-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 48px 0 8px;
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
}
.host-banner h2 {
  color: inherit;
  margin-bottom: 4px;
}
.host-banner p {
  max-width: 560px;
  opacity: 0.85;
}

/* Empty, error, loading */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-l);
  background: var(--surface);
}
.empty > .icon {
  width: 36px;
  height: 36px;
  color: var(--muted);
}
.empty h2 {
  font-size: 18px;
  margin: 10px 0 6px;
}
.empty p {
  color: var(--muted);
  margin-bottom: 16px;
}
.empty p:last-child {
  margin-bottom: 0;
}
.error-box {
  grid-column: 1 / -1;
  padding: 16px 18px;
  border: 1px solid var(--danger-line);
  border-radius: var(--r-m);
  background: var(--danger-bg);
  color: var(--ink);
}
.error-box h2 {
  font-size: 16px;
  margin-bottom: 4px;
}
.error-box p {
  margin-bottom: 12px;
}
.error-box p:last-child {
  margin-bottom: 0;
}
.form-error {
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
}
.page-error {
  text-align: center;
  margin: 60px auto;
  max-width: 520px;
  padding: 40px 24px;
}
.page-error > .icon {
  width: 36px;
  height: 36px;
  color: var(--danger);
}
.page-error h1 {
  font-size: 24px;
  margin: 10px 0 6px;
}
.page-error .row {
  justify-content: center;
  margin-top: 8px;
}
.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 96px 0;
  color: var(--muted);
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
.status-notice {
  padding: 12px 14px;
  border-radius: var(--r-s);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  transform: translateX(-50%);
  max-width: min(90vw, 480px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-2);
}

/* Page headings + sections */
.page-heading {
  margin: 24px 0 24px;
}
.page-heading h1 + p {
  margin-top: 6px;
  font-size: 15px;
}
.heading-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.heading-actions h1 {
  margin-top: 8px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.section-heading h2 .muted {
  font-weight: 500;
  font-size: 15px;
}
.aside-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Event detail */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas:
    'head panel'
    'body panel';
  gap: 20px 40px;
  align-items: start;
  margin-top: 12px;
}
.detail-head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.detail-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-cover {
  position: relative;
  aspect-ratio: 3 / 1;
  border-radius: var(--r-l);
  overflow: hidden;
}
.detail-cover .art-symbol {
  width: 80px;
  height: 80px;
}
.detail-cover .art-symbol .icon {
  width: 38px;
  height: 38px;
}
.detail-head h1 {
  font-size: clamp(26px, 3.4vw, 36px);
}
.organizer-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.organizer-byline strong {
  color: var(--ink);
  font-weight: 600;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
  font-weight: 700;
  font-size: 14px;
}
.detail-facts {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}
.detail-facts > div {
  display: flex;
  gap: 14px;
}
.detail-facts > div > .icon {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
}
.detail-facts h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.detail-facts p {
  font-size: 15px;
}
.detail-facts small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
.directions {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  font-size: 14px;
}
.about-event {
  margin-top: 8px;
}
.about-event h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.desc {
  white-space: pre-line;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 68ch;
}
.organizer-note {
  padding: 12px 14px;
  border-radius: var(--r-s);
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
  font-size: 14px;
}
.booking-panel {
  grid-area: panel;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.booking-price {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.booking-price small {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.booking-sub {
  margin-top: -8px;
  font-size: 14px;
}
.booking-attendance {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.booking-attendance strong {
  color: var(--ink);
}
#actions {
  display: grid;
  gap: 8px;
}
.joined-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-s);
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 600;
  font-size: 14px;
}
.join-form {
  display: grid;
  gap: 12px;
}
.join-form h2 {
  font-size: 17px;
}
.join-form label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.booking-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.booking-secondary .heart,
.booking-secondary .btn {
  height: 40px;
  width: 100%;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
}
.booking-footnote {
  text-align: center;
  line-height: 1.45;
}

/* Create / edit form */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.form fieldset {
  margin: 0 0 18px;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  min-width: 0;
}
.form legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
}
.form legend + * {
  clear: both;
}
.step {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
  font-size: 13px;
  font-weight: 700;
}
.form label {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.form .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-help {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
p.field-help {
  margin-top: 8px;
}
.field-error {
  font-size: 13px;
  font-weight: 500;
  color: var(--danger);
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-actions #draft-status {
  margin-left: auto;
}
.form-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 16px;
}
.preview-card {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  overflow: hidden;
}
.preview-card .event-art {
  position: relative;
  aspect-ratio: 16 / 9;
}
.preview-card > div:not(.event-art) {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px 16px 16px;
}
.preview-card h3 {
  font-size: 16px;
}
.preview-card p {
  display: flex;
  align-items: center;
  gap: 6px;
}
.preview-card p .icon {
  width: 14px;
  height: 14px;
}
.help-card {
  padding: 16px 18px;
  border-radius: var(--r-m);
  background: var(--surface-2);
}
.help-card h3 {
  font-size: 14px;
  margin-bottom: 4px;
}
.help-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Organizer dashboard */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
}
.stat > span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.stat > strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}
.chart-card {
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}
.chart-card h2 {
  font-size: 17px;
}
.chart-empty {
  color: var(--muted);
  font-size: 14px;
}
.revenue-chart {
  display: grid;
  gap: 12px;
}
.revenue-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr) auto;
  gap: 14px;
  align-items: center;
  font-size: 14px;
}
.revenue-row a {
  color: var(--ink);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.revenue-row > span {
  font-weight: 600;
  white-space: nowrap;
}
.revenue-row small {
  color: var(--muted);
  font-weight: 400;
}
.bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar-expected {
  height: 100%;
  border-radius: 999px;
  background: var(--brand-soft);
}
.bar-collected {
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
}
.legend {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.legend .collected {
  background: var(--brand);
}
.legend .expected {
  background: var(--brand-soft);
}
.dashboard-events > h2 {
  margin: 8px 0 4px;
  font-size: 18px;
}
.organizer-event {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto auto;
  gap: 18px;
  align-items: center;
  margin-top: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
}
.mini-art {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--tile);
  color: var(--tile-ink);
}
.mini-art .icon {
  width: 22px;
  height: 22px;
}
.organizer-event-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.organizer-event h3 {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.organizer-event h3 a {
  color: var(--ink);
}
.event-metric {
  text-align: right;
  min-width: 64px;
}
.event-metric strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
}
.event-metric span {
  font-size: 12px;
  color: var(--muted);
}
.device-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 8px;
  font-size: 13px;
  color: var(--muted);
}

/* Manage event */
.manage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}
.attendee-panel {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}
.attendee-panel h2 {
  font-size: 18px;
}
.attendee-filters {
  display: flex;
  gap: 10px;
  margin: 4px 0 14px;
}
.attendee-filters .search-field {
  flex: 1;
  height: 40px;
}
.attendee-filters .select {
  height: 40px;
  border-radius: 10px;
}
.tbl-wrap {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
.attendee-name {
  font-weight: 600;
  color: var(--ink);
}
.manage-aside {
  display: grid;
  gap: 16px;
}
.qr-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.qr-box h2 {
  font-size: 17px;
}
.qr-box img {
  width: 200px;
  height: 200px;
  padding: 10px;
  border-radius: var(--r-m);
  background: #fff;
  border: 1px solid var(--line);
}
.event-options {
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
}
.event-options summary {
  padding: 14px 0;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.event-options .btn {
  margin-bottom: 10px;
}
.event-options > p {
  padding-bottom: 14px;
}

/* Ticket */
.ticket {
  max-width: 560px;
  margin: 20px auto 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.ticket-head {
  padding: 22px 26px 24px;
  background: var(--tile);
  color: var(--tile-ink);
}
.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.ticket-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticket-head h1 {
  font-size: 24px;
  color: inherit;
  margin-bottom: 10px;
}
.ticket-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.ticket-meta + .ticket-meta {
  margin-top: 4px;
}
.ticket-notice {
  margin: 18px 26px 0;
}
.ticket-divider {
  position: relative;
  height: 0;
  margin: 24px 26px 0;
  border-top: 2px dashed var(--line-2);
}
.ticket-divider::before,
.ticket-divider::after {
  content: '';
  position: absolute;
  top: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
}
.ticket-divider::before {
  left: -39px;
}
.ticket-divider::after {
  right: -39px;
}
.ticket-qr {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px 26px;
}
.ticket-qr img {
  width: 180px;
  height: 180px;
  padding: 8px;
  border-radius: var(--r-m);
  background: #fff;
  border: 1px solid var(--line);
}
.ticket-qr h2 {
  font-size: 20px;
  margin: 4px 0 8px;
  overflow-wrap: anywhere;
}
.ticket-code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.ticket-instructions {
  padding: 0 26px 18px;
  font-size: 14px;
  color: var(--ink-2);
}
.ticket-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 26px 22px;
}
.organizer-panel {
  margin: 0 26px 22px;
  padding: 16px;
  border-radius: var(--r-m);
  background: var(--surface-2);
  display: grid;
  gap: 10px;
}
.organizer-panel h2 {
  font-size: 15px;
}
.ticket-event-link {
  display: block;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

/* My tickets */
.ticket-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 18px;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  color: inherit;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.ticket-row:hover {
  text-decoration: none;
  box-shadow: var(--shadow-1);
  border-color: var(--line-2);
}
.ticket-row .date-chip {
  position: static;
  box-shadow: none;
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
}
.ticket-row .date-chip span {
  color: inherit;
  opacity: 0.8;
}
.ticket-row-info {
  min-width: 0;
}
.ticket-row-info h3 {
  font-size: 15px;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-row > .icon {
  color: var(--muted);
}
.past-tickets {
  margin-top: 20px;
}
.past-tickets summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0;
}
.saved-section {
  margin-top: 40px;
}
.saved-empty {
  padding: 28px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-l);
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.foot > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}

/* Motion */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .detail-layout,
  .form-layout,
  .manage-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .detail-layout {
    grid-template-areas:
      'head'
      'panel'
      'body';
    gap: 20px;
  }
  .booking-panel,
  .form-aside {
    position: static;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .container {
    width: min(1140px, 100% - 32px);
  }
  .top {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header-inner {
    gap: 12px;
    justify-content: space-between;
  }
  .detail-cover {
    aspect-ratio: 16 / 9;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  nav a {
    flex-direction: column;
    gap: 3px;
    padding: 6px 4px;
    font-size: 11px;
    color: var(--muted);
  }
  nav a:hover,
  nav a.active {
    background: transparent;
    color: var(--brand);
  }
  nav .icon {
    display: block;
    width: 22px;
    height: 22px;
  }
  .create-link {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }
  .toast {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .hero {
    margin-top: 16px;
    padding: 22px 18px 18px;
    border-radius: var(--r-l);
  }
  .hero-search {
    height: 48px;
    font-size: 15px;
  }
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .category-tabs {
    margin: -2px -18px;
    padding: 2px 18px;
  }
  .select-filters {
    justify-content: flex-start;
  }
  .grid {
    gap: 14px;
  }
  .host-banner {
    padding: 22px 18px;
    border-radius: var(--r-l);
  }
  .form .two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form fieldset {
    padding: 18px 16px 20px;
  }
  .form-actions {
    align-items: stretch;
  }
  .form-actions #draft-status {
    margin-left: 0;
    width: 100%;
  }
  .organizer-event {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px 14px;
  }
  .mini-art {
    width: 44px;
    height: 44px;
  }
  .organizer-event .event-metric {
    text-align: left;
  }
  .organizer-event .btn {
    grid-column: 1 / -1;
  }
  .attendee-panel {
    padding: 18px 16px;
  }
  .tbl-wrap {
    margin: 0 -16px;
    padding: 0 16px;
  }
  .attendee-filters {
    flex-wrap: wrap;
  }
  .ticket-qr {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .ticket-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .ticket-row > .row {
    grid-column: 2;
  }
  .ticket-row > .icon {
    display: none;
  }
  .ticket-row-info h3 {
    white-space: normal;
  }
}
@media (max-width: 420px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .booking-secondary {
    grid-template-columns: 1fr;
  }
}

/* Print (ticket) */
@media print {
  .top,
  .foot,
  .back,
  .toast,
  .ticket-actions,
  .organizer-panel,
  .ticket-event-link,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }
  main.container {
    width: auto;
  }
  .ticket {
    max-width: none;
    margin: 0;
    box-shadow: none;
    border: 1px solid #000;
  }
  .ticket-head {
    color: #000;
  }
}

/* Label + control layout guards */
.form label > *,
.join-form label > * {
  min-width: 0;
}
.form label.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface-2);
  cursor: pointer;
}
.form label.check input {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  flex: none;
  accent-color: var(--brand);
}
.form label.check strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}
.badge.curated {
  background: #f4e4d8;
  color: #7a3a1a;
}
@media (prefers-color-scheme: dark) {
  .badge.curated {
    background: #3d2418;
    color: #f0c3aa;
  }
}
.preview-card.is-curated h3 {
  font-family: Fraunces, 'Iowan Old Style', Georgia, serif;
  font-size: 18px;
}

/* Cover photos (both flows) */
.event-art.has-image {
  background: var(--surface-2);
}
.event-art.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mini-art {
  overflow: hidden;
}
.mini-art.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ticket-head.has-image {
  background:
    linear-gradient(rgb(20 14 10 / 0.55), rgb(20 14 10 / 0.7)),
    var(--cover) center / cover no-repeat;
  color: #fff;
}
.brand-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent, #f5c84c);
  color: var(--accent-ink, #2a1e00);
  font:
    italic 600 12px/1 Fraunces,
    Georgia,
    serif;
  letter-spacing: 0.02em;
  transform: rotate(-4deg);
}

/* ------------------------------------------------------------------ */
/* CURATED SITE. Its own host, its own look: dark clay, coral and     */
/* mustard, oversized serif, photo-first cards, grain and a marquee.  */
/* ------------------------------------------------------------------ */
:root[data-mode='curated'] {
  color-scheme: dark;
  --bg: #12100f;
  --surface: #1c1917;
  --surface-2: #29231f;
  --ink: #f6efe4;
  --ink-2: #dacfc1;
  --muted: #a3968c;
  --line: #2f2925;
  --line-2: #4a403a;
  --brand: #ff6a3d;
  --brand-hover: #ff8a63;
  --brand-ink: #1a0c06;
  --brand-soft: #3a1f14;
  --brand-soft-ink: #ffb79c;
  --accent: #f5c84c;
  --accent-ink: #2a1e00;
  --ok: #9be07a;
  --ok-bg: #1f2e18;
  --warn: #f5c84c;
  --warn-bg: #3a2e0e;
  --danger: #ff7b72;
  --danger-bg: #3d1c19;
  --danger-line: #5a2a26;
  --focus: #f5c84c;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 26px;
  --shadow-1: 0 2px 6px rgb(0 0 0 / 0.4);
  --shadow-2: 0 24px 60px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.04);
}
:root[data-mode='curated'] .art-course,
:root[data-mode='curated'] .t-course {
  --tile: linear-gradient(135deg, #5b3a26 0%, #a5714f 100%);
  --tile-ink: #ffe6d2;
}
:root[data-mode='curated'] .art-trip,
:root[data-mode='curated'] .t-trip {
  --tile: linear-gradient(135deg, #2f4a2a 0%, #6f8f57 100%);
  --tile-ink: #e6f3d6;
}
:root[data-mode='curated'] .art-workshop,
:root[data-mode='curated'] .t-workshop {
  --tile: linear-gradient(135deg, #7a2e14 0%, #ff6a3d 100%);
  --tile-ink: #fff0e8;
}
:root[data-mode='curated'] .art-activity,
:root[data-mode='curated'] .t-activity {
  --tile: linear-gradient(135deg, #6b4d00 0%, #f5c84c 100%);
  --tile-ink: #fff7dc;
}
:root[data-mode='curated'] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-mode='curated'] h1,
:root[data-mode='curated'] h2,
:root[data-mode='curated'] h3,
:root[data-mode='curated'] .price,
:root[data-mode='curated'] .booking-price,
:root[data-mode='curated'] #result-count,
:root[data-mode='curated'] .brand {
  font-family: Fraunces, 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}
:root[data-mode='curated'] .badge.curated {
  display: none;
}
:root[data-mode='curated'] .badge {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
:root[data-mode='curated'] .badge.t-course,
:root[data-mode='curated'] .badge.t-trip,
:root[data-mode='curated'] .badge.t-workshop,
:root[data-mode='curated'] .badge.t-activity {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}
:root[data-mode='curated'] .badge.ok {
  background: var(--ok-bg);
  border-color: transparent;
  color: var(--ok);
}
:root[data-mode='curated'] .badge.warn {
  background: var(--warn-bg);
  border-color: transparent;
  color: var(--warn);
}

/* header */
:root[data-mode='curated'] .top {
  background: rgb(18 16 15 / 0.82);
}
:root[data-mode='curated'] .brand {
  font-size: 22px;
  font-style: italic;
}
:root[data-mode='curated'] .brand-mark {
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
}
:root[data-mode='curated'] nav a {
  color: var(--ink-2);
}
:root[data-mode='curated'] nav a.active {
  background: var(--surface-2);
  color: var(--ink);
}

/* controls */
:root[data-mode='curated'] .btn,
:root[data-mode='curated'] .select,
:root[data-mode='curated'] select.select,
:root[data-mode='curated'] .search-field,
:root[data-mode='curated'] input:not([type='checkbox']) {
  border-radius: 999px;
  border-color: var(--line-2);
}
:root[data-mode='curated'] textarea {
  border-radius: 20px;
  border-color: var(--line-2);
}
:root[data-mode='curated'] .btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 10px 28px rgb(255 106 61 / 0.35);
}
:root[data-mode='curated'] .btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 28px rgb(245 200 76 / 0.35);
}
:root[data-mode='curated'] .select,
:root[data-mode='curated'] select.select {
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dacfc1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
:root[data-mode='curated'] .search-field {
  background: var(--bg);
}
:root[data-mode='curated'] .search-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgb(255 106 61 / 0.25);
}
:root[data-mode='curated'] .category-tabs button {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink-2);
}
:root[data-mode='curated'] .category-tabs button:hover {
  background: var(--surface-2);
}
:root[data-mode='curated'] .category-tabs button.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
:root[data-mode='curated'] .text-btn {
  color: var(--accent);
}
:root[data-mode='curated'] a {
  color: var(--brand-soft-ink);
}

/* hero */
:root[data-mode='curated'] .hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px 40px;
  margin: 28px 0 0;
  padding: 56px 48px 36px;
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: none;
  background:
    radial-gradient(900px 520px at 85% -20%, #4a2113 0%, rgb(74 33 19 / 0) 62%),
    radial-gradient(700px 480px at -10% 115%, #23301c 0%, rgb(35 48 28 / 0) 60%), var(--surface);
}
:root[data-mode='curated'] .hero > form {
  grid-column: 1 / -1;
  margin-top: 8px;
}
:root[data-mode='curated'] .hero-copy {
  max-width: none;
  margin: 0;
  align-self: center;
}
:root[data-mode='curated'] .hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
}
:root[data-mode='curated'] .live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgb(255 106 61 / 0.6);
  animation: pulse 1.8s ease-out infinite;
}
:root[data-mode='curated'] .hero h1 {
  font-size: clamp(54px, 8.4vw, 124px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 22px;
  max-width: none;
}
:root[data-mode='curated'] .hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}
:root[data-mode='curated'] .hero-copy p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.5;
  max-width: 44ch;
  color: var(--ink-2);
}
:root[data-mode='curated'] .hero-collage {
  position: relative;
  min-height: 340px;
}
:root[data-mode='curated'] .hero-collage img {
  position: absolute;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  border: 5px solid var(--ink);
  box-shadow: var(--shadow-2);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root[data-mode='curated'] .hero-collage .c0 {
  width: 54%;
  left: 2%;
  top: 4%;
  transform: rotate(-7deg);
}
:root[data-mode='curated'] .hero-collage .c1 {
  width: 50%;
  right: 0;
  top: 18%;
  transform: rotate(6deg);
  z-index: 1;
}
:root[data-mode='curated'] .hero-collage .c2 {
  width: 42%;
  left: 30%;
  bottom: -4%;
  transform: rotate(-2deg);
  z-index: 2;
}
:root[data-mode='curated'] .hero-collage:hover img {
  transform: rotate(0deg) scale(1.02);
}
:root[data-mode='curated'] .hero-search {
  height: 58px;
  max-width: none;
}
:root[data-mode='curated'] .filter-row {
  margin-top: 18px;
}
.marquee {
  overflow: hidden;
  margin: 14px 0 6px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font:
    italic 500 24px/1 Fraunces,
    Georgia,
    serif;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 48s linear infinite;
}
.marquee-track span {
  padding-right: 1.2em;
}
:root[data-mode='curated'] .results-bar {
  margin: 30px 0 18px;
}
:root[data-mode='curated'] #result-count {
  font-size: 30px;
  font-style: italic;
  color: var(--ink);
}

/* cards */
:root[data-mode='curated'] .grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px 24px;
}
:root[data-mode='curated'] .card {
  border-radius: 26px;
  background: var(--surface);
  border-color: var(--line);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s,
    border-color 0.4s;
}
:root[data-mode='curated'] .card:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  border-color: var(--brand);
  box-shadow:
    0 34px 70px rgb(0 0 0 / 0.55),
    0 0 0 1px var(--brand);
}
:root[data-mode='curated'] .card-cover {
  aspect-ratio: 4 / 5;
  margin: 10px 10px 0;
  border-radius: 20px;
  overflow: hidden;
}
:root[data-mode='curated'] .event-art img {
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root[data-mode='curated'] .card:hover .event-art img {
  transform: scale(1.07);
}
:root[data-mode='curated'] .art-symbol {
  background: rgb(0 0 0 / 0.25);
  box-shadow: none;
  border: 1.5px solid currentColor;
  width: 76px;
  height: 76px;
}
:root[data-mode='curated'] .date-chip {
  top: 14px;
  left: 14px;
  padding: 8px 12px 6px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.35);
  transform: rotate(-5deg);
}
:root[data-mode='curated'] .date-chip strong {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 24px;
}
:root[data-mode='curated'] .date-chip span {
  color: var(--accent-ink);
  opacity: 0.8;
}
:root[data-mode='curated'] .card-cover .heart {
  top: 14px;
  right: 14px;
  background: rgb(18 16 15 / 0.75);
  color: var(--ink);
  border-color: transparent;
  backdrop-filter: blur(6px);
}
:root[data-mode='curated'] .card-body {
  padding: 16px 20px 20px;
  gap: 8px;
}
:root[data-mode='curated'] .card h3 {
  font-size: 26px;
  line-height: 1.02;
  -webkit-line-clamp: 3;
}
:root[data-mode='curated'] .card-meta {
  color: var(--muted);
}
:root[data-mode='curated'] .card-bottom {
  border-top: 1px dashed var(--line-2);
  padding-top: 14px;
}
:root[data-mode='curated'] .price {
  font-size: 24px;
  color: var(--accent);
}
:root[data-mode='curated'] .price small {
  color: var(--muted);
}
:root[data-mode='curated'] .skeleton {
  height: 460px;
  border-radius: 26px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
}
:root[data-mode='curated'] .empty,
:root[data-mode='curated'] .saved-empty {
  border-radius: 26px;
  border-color: var(--line-2);
  background: var(--surface);
}

/* banner + footer */
:root[data-mode='curated'] .host-banner {
  margin-top: 56px;
  padding: 44px 48px;
  border-radius: 34px;
  background: var(--brand);
  color: var(--brand-ink);
}
:root[data-mode='curated'] .host-banner h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  margin-bottom: 10px;
}
:root[data-mode='curated'] .host-banner p {
  font-size: 16px;
  opacity: 0.9;
}
:root[data-mode='curated'] .host-banner .btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  box-shadow: none;
  height: 48px;
  padding: 0 24px;
}
:root[data-mode='curated'] .footer-brand {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
}

/* detail, panels, forms */
:root[data-mode='curated'] .detail-cover {
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  border: 1px solid var(--line);
}
:root[data-mode='curated'] .detail-head h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
:root[data-mode='curated'] .detail-facts,
:root[data-mode='curated'] .booking-panel,
:root[data-mode='curated'] .form fieldset,
:root[data-mode='curated'] .attendee-panel,
:root[data-mode='curated'] .qr-box,
:root[data-mode='curated'] .stat,
:root[data-mode='curated'] .chart-card,
:root[data-mode='curated'] .organizer-event,
:root[data-mode='curated'] .ticket-row,
:root[data-mode='curated'] .preview-card {
  border-radius: 26px;
  background: var(--surface);
  border-color: var(--line);
}
:root[data-mode='curated'] .detail-facts > div > .icon {
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
}
:root[data-mode='curated'] .booking-price {
  font-size: 46px;
  color: var(--accent);
}
:root[data-mode='curated'] .desc {
  font-size: 17px;
  line-height: 1.7;
}
:root[data-mode='curated'] .avatar {
  background: var(--brand);
  color: var(--brand-ink);
}
:root[data-mode='curated'] .help-card,
:root[data-mode='curated'] .organizer-panel,
:root[data-mode='curated'] .status-notice {
  background: var(--surface-2);
}
:root[data-mode='curated'] .ticket {
  border-radius: 30px;
  background: var(--surface);
}
:root[data-mode='curated'] .ticket-divider::before,
:root[data-mode='curated'] .ticket-divider::after {
  background: var(--bg);
}
:root[data-mode='curated'] .toast {
  background: var(--accent);
  color: var(--accent-ink);
}
:root[data-mode='curated'] .form label.check {
  background: var(--surface-2);
}
:root[data-mode='curated'] .step {
  background: var(--brand);
  color: var(--brand-ink);
}
:root[data-mode='curated'] .date-filters {
  border-top-color: var(--line-2);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes pulse {
  to {
    box-shadow: 0 0 0 12px rgb(255 106 61 / 0);
  }
}
@media (max-width: 960px) {
  :root[data-mode='curated'] .hero {
    grid-template-columns: 1fr;
    padding: 40px 28px 28px;
  }
  :root[data-mode='curated'] .hero-collage {
    min-height: 0;
    aspect-ratio: 3 / 2;
    max-width: 520px;
  }
  :root[data-mode='curated'] .hero-collage .c0 {
    width: 48%;
  }
  :root[data-mode='curated'] .hero-collage .c1 {
    width: 44%;
  }
  :root[data-mode='curated'] .hero-collage .c2 {
    width: 38%;
    bottom: 0;
  }
}
@media (max-width: 720px) {
  :root[data-mode='curated'] .hero {
    margin-top: 16px;
    padding: 28px 18px 20px;
    border-radius: 24px;
    gap: 18px;
  }
  :root[data-mode='curated'] .hero h1 {
    font-size: clamp(46px, 15vw, 64px);
  }
  :root[data-mode='curated'] .hero-collage {
    aspect-ratio: 4 / 3;
  }
  :root[data-mode='curated'] .hero-collage img {
    border-width: 3px;
  }
  .marquee {
    font-size: 18px;
    padding: 10px 0;
  }
  :root[data-mode='curated'] #result-count {
    font-size: 24px;
  }
  :root[data-mode='curated'] .card-cover {
    aspect-ratio: 4 / 4;
  }
  :root[data-mode='curated'] .card h3 {
    font-size: 22px;
  }
  :root[data-mode='curated'] .host-banner {
    padding: 28px 22px;
    border-radius: 24px;
  }
  :root[data-mode='curated'] nav {
    background: var(--surface);
  }
}
