/* HamBeat public/account composition layer.
   Core tokens and shared controls live in hambeat-design-system.css. */

.hambeat-public {
  --hb-public-canvas: var(--hb-porcelain);
  --hb-public-surface: var(--hb-surface);
  --hb-public-ink: var(--hb-ink);
  --hb-public-muted: var(--hb-muted);
  --hb-public-line: var(--hb-line);
  --hb-public-primary: var(--hb-cobalt);
  --hb-public-primary-soft: var(--hb-info-soft);
  --hb-public-navy: var(--hb-navy);
  --hb-public-butter: var(--hb-butter);
  --hb-public-success: var(--hb-success);
  --hb-public-radius-sm: var(--hb-radius-sm);
  --hb-public-radius-md: var(--hb-radius-lg);
  --hb-public-radius-lg: var(--hb-radius-xl);
  --hb-public-shadow: var(--hb-shadow-sm);
  color: var(--hb-public-ink);
  background: var(--hb-public-canvas);
}

.hambeat-public :where(h1, h2, h3, strong, b) { color: inherit; }
.hambeat-public :where(a, button, input, select, textarea, summary) { -webkit-tap-highlight-color: transparent; }
.hambeat-public :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--hb-public-primary) 28%, transparent);
  outline-offset: 3px;
}
.hambeat-public .hambeat-container { width: min(1240px, calc(100% - 48px)); }
.hambeat-public .hambeat-card,
.hambeat-public .hambeat-panel {
  border: 1px solid var(--hb-public-line);
  border-radius: var(--hb-public-radius-md);
  background: var(--hb-public-surface);
  box-shadow: var(--hb-public-shadow);
}
.hambeat-public .hambeat-kicker {
  color: var(--hb-public-primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}
.hambeat-public .hambeat-subtle { color: var(--hb-public-muted); }

/* Wordmark */
.hambeat-public .hambeat-brand {
  min-width: 110px;
  gap: 0;
  display: inline-grid;
  line-height: 1.1;
  color: var(--hb-public-ink);
}
.hambeat-public .hambeat-brand img { display: none; }
.hambeat-public .hambeat-brand b { font-size: 23px; font-weight: 950; }
.hambeat-public .hambeat-brand b::after {
  content: "HamBeat";
  margin-top: 4px;
  display: block;
  color: currentColor;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .7px;
  text-align: center;
  opacity: .72;
}

/* Shared public header and controls */
.hambeat-public .hambeat-topbar {
  min-height: 82px;
  padding-inline: max(32px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--hb-public-line) 74%, transparent);
  color: var(--hb-public-ink);
  background: color-mix(in srgb, var(--hb-public-canvas) 94%, transparent);
  backdrop-filter: blur(18px);
}
.hambeat-public .hambeat-topbar nav { gap: 30px; }
.hambeat-public .hambeat-topbar nav a {
  position: relative;
  color: var(--hb-public-ink);
  font-size: 14px;
  font-weight: 760;
}
.hambeat-public .hambeat-topbar nav a::after {
  content: "";
  position: absolute;
  inset-inline: 50%;
  inset-block-end: -10px;
  height: 3px;
  border-radius: 999px;
  background: var(--hb-public-primary);
  transition: inset-inline .18s ease;
}
.hambeat-public .hambeat-topbar nav a:hover::after { inset-inline: 0; }
.hambeat-public .hambeat-button,
.hambeat-public .hambeat-button-secondary,
.hambeat-public .hambeat-icon-button {
  min-height: 48px;
  border-radius: var(--hb-public-radius-sm);
  box-shadow: none;
}
.hambeat-public .hambeat-button,
.hambeat-public .hambeat-button.purple,
.hambeat-public .hambeat-button.lime {
  color: #fff;
  background: var(--hb-public-primary);
}
.hambeat-public .hambeat-button-secondary {
  color: var(--hb-public-primary);
  border-color: color-mix(in srgb, var(--hb-public-primary) 24%, var(--hb-public-line));
  background: var(--hb-public-surface);
}
.hambeat-public .hambeat-button:hover,
.hambeat-public .hambeat-button-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(36, 88, 230, .14);
}

/* Marketplace / home */
.hambeat-public.market-page main { overflow: hidden; }
.hambeat-public .hambeat-hero {
  min-height: 575px;
  color: var(--hb-public-ink);
  background: var(--hb-public-canvas);
}
.hambeat-public .hambeat-hero > img {
  inset-block: 34px 22px;
  inset-inline: auto 4vw;
  width: min(52vw, 720px);
  height: calc(100% - 56px);
  border-radius: 0 72px 72px 0;
  opacity: 1;
  object-position: center;
}
.hambeat-public .hambeat-hero::after {
  inset-block: 34px 22px;
  inset-inline: auto 4vw;
  width: min(52vw, 720px);
  border-radius: 0 72px 72px 0;
  background: rgba(6, 28, 56, .22);
}
.hambeat-public .hambeat-hero-content {
  width: min(1240px, calc(100% - 48px));
  padding-block: 74px 90px;
  pointer-events: none;
}
.hambeat-public .hambeat-hero-content > * { width: min(42%, 560px); pointer-events: auto; }
.hambeat-public .hambeat-hero h1 {
  max-width: 560px;
  margin-block: 10px 18px;
  color: var(--hb-public-ink);
  font-size: clamp(48px, 5.5vw, 78px);
  line-height: 1.25;
  letter-spacing: -2.2px;
}
.hambeat-public .hambeat-hero p {
  max-width: 560px;
  margin-block-end: 26px;
  color: var(--hb-public-muted);
  font-size: 18px;
  line-height: 2;
}
.hambeat-public .hambeat-hero .hambeat-kicker { color: var(--hb-public-primary); font-size: 13px; }
.hambeat-public .hambeat-hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
.hambeat-public .hambeat-hero-actions .hambeat-button { width: 100%; }
.hambeat-public .hambeat-hero-actions .hambeat-button:first-child { color: #fff; background: var(--hb-public-primary); }
.hambeat-public .hambeat-hero-actions .hambeat-button:last-child {
  color: var(--hb-public-primary);
  background: var(--hb-public-primary-soft);
}
.hambeat-public .hambeat-trust-strip { display: none; }
.hambeat-public .hambeat-floating-note {
  inset-inline: auto 6.4vw;
  inset-block-end: 50px;
  transform: none;
  border: 0;
  border-radius: 999px;
  color: var(--hb-public-navy);
  background: var(--hb-public-butter);
  box-shadow: none;
  font-size: 13px;
}
.hambeat-public .hambeat-search-shell {
  margin-top: 0;
  padding: 14px;
  grid-template-columns: 1.45fr .8fr .8fr auto;
  border-radius: var(--hb-public-radius-md);
  box-shadow: var(--hb-public-shadow);
}
.hambeat-public .hambeat-field {
  min-height: 52px;
  border-color: var(--hb-public-line);
  border-radius: var(--hb-public-radius-sm);
  background: #fff;
}
.hambeat-public .hambeat-field i { color: var(--hb-public-primary); }
.hambeat-public .hb-filter-select { position: relative; overflow: visible; }
.hambeat-public .hb-filter-select.is-open { z-index: 40; border-color: var(--hb-cobalt); box-shadow: var(--hb-focus); }
.hambeat-public .hb-filter-select__trigger {
  min-width: 0;
  min-height: 50px;
  padding: 0;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  color: var(--hb-public-ink);
  background: transparent;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.hambeat-public .hb-filter-select__trigger:focus-visible { outline: 0; }
.hambeat-public .hb-filter-select__trigger > i { color: var(--hb-muted); font-size: 10px; transition: transform .18s ease; }
.hambeat-public .hb-filter-select__trigger[aria-expanded="true"] > i { transform: rotate(180deg); }
.hambeat-public .hb-filter-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.hambeat-public .hb-filter-select__menu {
  position: absolute;
  z-index: 50;
  inset: calc(100% + 8px) -1px auto;
  padding: 6px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-sm);
  background: var(--hb-surface);
  box-shadow: 0 18px 44px rgba(16,27,43,.16);
}
.hambeat-public .hb-filter-select__menu[hidden] { display: none; }
.hambeat-public .hb-filter-select__menu [role="option"] {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr 18px;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: var(--hb-radius-xs);
  color: var(--hb-public-ink);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}
.hambeat-public .hb-filter-select__menu [role="option"] > i { visibility: hidden; color: var(--hb-cobalt); }
.hambeat-public .hb-filter-select__menu [role="option"]:is(:hover,:focus-visible) { outline: 0; background: var(--hb-surface-cool); }
.hambeat-public .hb-filter-select__menu [role="option"][aria-selected="true"] { color: var(--hb-cobalt); background: var(--hb-info-soft); }
.hambeat-public .hb-filter-select__menu [role="option"][aria-selected="true"] > i { visibility: visible; }
.hambeat-public .hb-discovery-taxonomy-panel {
  margin-block: 16px 24px;
  padding: 16px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--hb-public-line);
  border-radius: var(--hb-radius-md);
  background: var(--hb-public-surface);
}
.hambeat-public .hb-discovery-filter-group {
  min-width: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.hambeat-public .hb-discovery-filter-group > strong,
.hambeat-public .hb-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--hb-public-navy);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}
.hambeat-public .hb-discovery-filter-group > strong i,
.hambeat-public .hb-filter-label i { color: var(--hb-public-primary); }
.hambeat-public .hambeat-category-strip,
.hambeat-public .hambeat-genre-strip { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.hambeat-public .hambeat-category-strip button,
.hambeat-public .hambeat-genre-strip button,
.hambeat-public .hambeat-filter-row button {
  min-height: 44px;
  border-color: var(--hb-public-line);
  border-radius: 999px;
  color: var(--hb-public-muted);
  background: var(--hb-public-surface);
  font-weight: 750;
}
.hambeat-public .hambeat-category-strip button.active,
.hambeat-public .hambeat-genre-strip button.active,
.hambeat-public .hambeat-filter-row button.active {
  color: #fff;
  border-color: var(--hb-public-primary);
  background: var(--hb-public-primary);
  box-shadow: none;
}
.hambeat-public .hb-discovery-public-note {
  margin: 0;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  border-radius: var(--hb-radius-round);
  color: var(--hb-public-navy);
  background: var(--hb-info-soft);
  font-size: 12px;
  font-weight: 850;
}
.hambeat-public .hb-discovery-public-note i { color: var(--hb-public-primary); }
.hambeat-public .hambeat-section { padding-block: 64px; }
.hambeat-public .hambeat-section-head h2 { color: var(--hb-public-ink); font-size: clamp(28px, 3.2vw, 42px); }
.hambeat-public .event-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hambeat-public .event-card {
  overflow: hidden;
  border-color: var(--hb-public-line);
  border-radius: var(--hb-public-radius-md);
  background: var(--hb-public-surface);
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hambeat-public .event-card:hover { transform: translateY(-4px); box-shadow: var(--hb-public-shadow); }
.hambeat-public .event-cover { height: 190px; background-color: var(--hb-public-navy); }
.hambeat-public .status-badge,
.hambeat-public .people-badge {
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(6, 28, 56, .82);
  backdrop-filter: blur(8px);
}
.hambeat-public .status-badge { background: var(--hb-public-primary); }
.hambeat-public .status-scheduled .status-badge { color: var(--hb-public-navy); border-color: var(--hb-butter); background: var(--hb-butter); }
.hambeat-public .event-card-body { padding: 16px; }
.hambeat-public .event-card h3 { color: var(--hb-public-ink); font-size: 20px; }
.hambeat-public .event-card p { color: var(--hb-public-muted); }
.hambeat-public .hb-discovery-card__taxonomy { display:flex; flex-wrap:wrap; gap:6px; }
.hambeat-public .hb-discovery-card__taxonomy .hb-discovery-card__tag {
  min-height: 28px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--hb-public-line);
  border-radius: var(--hb-radius-round);
  color: var(--hb-public-navy);
  background: var(--hb-public-canvas);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}
.hambeat-public .hb-discovery-card__tag i { color: var(--hb-public-primary); }
.hambeat-public .hb-discovery-card__tag--official { border-color: color-mix(in srgb, var(--hb-public-primary) 36%, var(--hb-public-line)); background: var(--hb-info-soft); }
.hambeat-public .hb-discovery-card__tag--access { background: var(--hb-public-surface); }
.hambeat-public .hb-discovery-card__tag--genre { flex-basis: 100%; width: max-content; font-weight: 800; }
.hambeat-public .hb-discovery-card__tag--genre b { font-weight: 950; }
.hambeat-public .event-card-meta { color: var(--hb-public-muted); border-color: var(--hb-public-line); }
.hambeat-public .event-card a {
  min-height: 46px;
  border-radius: 11px;
  color: #fff;
  background: var(--hb-public-primary);
}
.hambeat-public #how { background: transparent !important; }
.hambeat-public .hambeat-feature-grid { grid-template-columns: repeat(3, 1fr); }
.hambeat-public .hambeat-feature {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--hb-public-line);
  border-radius: var(--hb-public-radius-md);
  background: var(--hb-public-surface);
}
.hambeat-public .hambeat-feature:nth-child(4) { display: none; }
.hambeat-public .hambeat-feature i,
.hambeat-public .hambeat-feature:nth-child(n) i {
  color: var(--hb-public-primary);
  background: var(--hb-public-primary-soft);
}
.hambeat-public .hambeat-feature p { color: var(--hb-public-muted); }
.hambeat-public .hambeat-stats { gap: 0; overflow: hidden; border: 1px solid var(--hb-public-line); border-radius: var(--hb-public-radius-md); background: var(--hb-public-surface); }
.hambeat-public .hambeat-stat {
  border: 0;
  border-inline-start: 1px solid var(--hb-public-line);
  border-radius: 0;
  background: transparent;
}
.hambeat-public .hambeat-stat:last-child { border-inline-start: 0; }
.hambeat-public .hambeat-stat small { color: var(--hb-public-success); }
.hambeat-public .hambeat-host-cta {
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  color: #fff;
  border-color: var(--hb-public-navy);
  border-radius: var(--hb-public-radius-lg);
  background: var(--hb-public-navy);
}
.hambeat-public .hambeat-host-cta p { max-width: 760px; color: #cbd5e4; line-height: 1.9; }
.hambeat-public .hambeat-host-cta .hambeat-kicker { color: var(--hb-public-butter); }
.hambeat-public .hambeat-faq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hambeat-public .hambeat-faq details {
  padding: 20px;
  border: 1px solid var(--hb-public-line);
  border-radius: var(--hb-public-radius-md);
  background: var(--hb-public-surface);
}
.hambeat-public .hambeat-faq summary { cursor: pointer; color: var(--hb-public-ink); font-weight: 800; }
.hambeat-public .hambeat-faq p { color: var(--hb-public-muted); line-height: 1.9; }
.hambeat-public .hambeat-public-footer { padding-block: 36px 105px; }
.hambeat-public .hambeat-footer-inner { width: min(1240px, calc(100% - 48px)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hambeat-public .hambeat-footer-links { display: flex; flex-wrap: wrap; gap: 24px; }

/* Authentication */
.hambeat-public.auth-page { background: var(--hb-public-canvas); }
.hambeat-public .hambeat-auth {
  min-height: 100dvh;
  padding: 18px;
  grid-template-columns: minmax(390px, .9fr) minmax(520px, 1.1fr);
  gap: 0;
  direction: ltr;
  background: #eef1f4;
}
.hambeat-public .hambeat-auth > * { direction: rtl; }
.hambeat-public .hambeat-auth-visual {
  min-height: calc(100dvh - 36px);
  padding: 42px;
  border-radius: 26px 0 0 26px;
  background: var(--hb-public-navy);
}
.hambeat-public .hambeat-auth-visual > img { opacity: .74; }
.hambeat-public .hambeat-auth-visual::after { background: rgba(6, 28, 56, .54); }
.hambeat-public .hambeat-auth-visual .hambeat-brand { color: #fff; }
.hambeat-public .hambeat-auth-visual .hambeat-brand { width: max-content; align-self: flex-start; }
.hambeat-public .hambeat-auth-copy { max-width: 520px; padding: 30px 12px; }
.hambeat-public .hambeat-auth-copy h1 { font-size: clamp(42px, 5vw, 64px); }
.hambeat-public .hambeat-auth-copy .hambeat-kicker { color: var(--hb-public-butter); }
.hambeat-public .hambeat-auth-form-side {
  border-radius: 0 26px 26px 0;
  background: var(--hb-public-surface);
}
.hambeat-public .hambeat-auth-form { width: min(500px, 100%); }
.hambeat-public .hambeat-auth-form > .hambeat-brand { display: none; }
.hambeat-public .hambeat-tabs {
  margin-bottom: 40px;
  padding: 5px;
  border-radius: 14px;
  background: #f0f2f7;
}
.hambeat-public .hambeat-tabs button { min-height: 50px; border-radius: 11px; color: var(--hb-public-ink); }
.hambeat-public .hambeat-tabs button.active { color: #fff; background: var(--hb-public-primary); }
.hambeat-public .hambeat-auth-form h2 { margin-top: 8px; color: var(--hb-public-ink); font-size: 34px; }
.hambeat-public .hambeat-google {
  min-height: 56px;
  margin-top: 28px;
  border-color: var(--hb-public-primary);
  border-radius: 13px;
  color: var(--hb-public-ink);
}
.hambeat-public .hambeat-form label > span { color: var(--hb-public-ink); }
.hambeat-public .hambeat-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.hambeat-public .hambeat-form textarea,
.hambeat-public .hambeat-form select {
  min-height: 56px;
  border-color: var(--hb-public-line);
  border-radius: 13px;
  background: #fff;
}
.hambeat-public .hambeat-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
.hambeat-public .hambeat-form textarea:focus,
.hambeat-public .hambeat-form select:focus {
  border-color: var(--hb-public-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hb-public-primary) 14%, transparent);
}
.hambeat-public .auth-helper-row button { color: var(--hb-public-primary); }
.hambeat-public #auth-message,
.hambeat-public .hambeat-dialog__status { border-radius: 11px; }

/* Profile */
.hambeat-public.profile-page { background: var(--hb-public-canvas); }
.hambeat-public .profile-shell { width: min(1240px, calc(100% - 48px)); padding-block: 32px 112px; }
.hambeat-public .profile-hero {
  min-height: 250px;
  padding: 38px;
  grid-template-columns: 124px 1fr auto;
  color: #fff;
  border-color: var(--hb-public-navy);
  border-radius: var(--hb-public-radius-lg);
  background: var(--hb-public-navy) url('./assets/covers/hambeat-hero-city-sync.webp') left center / 52% auto no-repeat;
}
.hambeat-public .profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(6, 28, 56, .34);
  pointer-events: none;
}
.hambeat-public .profile-hero { position: relative; overflow: hidden; }
.hambeat-public .profile-hero > * { position: relative; z-index: 1; }
.hambeat-public .profile-hero .hambeat-kicker { color: var(--hb-public-butter); }
.hambeat-public .profile-hero .hambeat-subtle { color: #dbe4f1; }
.hambeat-public .profile-avatar {
  color: var(--hb-public-primary);
  border-color: #fff;
  background: var(--hb-public-primary-soft);
  box-shadow: none;
}
.hambeat-public .profile-stat-grid { margin-block: 18px 24px; gap: 12px; }
.hambeat-public .profile-stat-grid article {
  min-height: 118px;
  border-color: var(--hb-public-line);
  border-radius: var(--hb-public-radius-md);
  background: var(--hb-public-surface);
}
.hambeat-public .profile-stat-grid i,
.hambeat-public .profile-link-list a > i:first-child {
  color: var(--hb-public-primary);
  background: var(--hb-public-primary-soft);
}
.hambeat-public .profile-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
.hambeat-public .profile-link-list a { border-color: var(--hb-public-line); }
.hambeat-public .account-facts div { background: color-mix(in srgb, var(--hb-public-canvas) 78%, white); }
.hambeat-public .profile-favorite-card { border-color: var(--hb-public-line); border-radius: var(--hb-public-radius-md); }
.hambeat-public .profile-favorite-card > div span { background: var(--hb-public-primary); }
.hambeat-public .profile-favorite-card a { color: var(--hb-public-primary); }
.hambeat-public .support-ticket { border-color: var(--hb-public-line); border-radius: var(--hb-public-radius-sm); }

/* Public event detail */
.hambeat-public.event-detail-page { background: var(--hb-public-canvas); }
.hambeat-public .hambeat-detail { padding-block: 32px 120px; }
.hambeat-public .hambeat-detail-hero {
  min-height: 520px;
  grid-template-columns: 44% 56%;
  overflow: hidden;
  color: #fff;
  border-color: var(--hb-public-navy);
  border-radius: var(--hb-public-radius-lg);
  background: var(--hb-public-navy);
}
.hambeat-public .hambeat-detail-media { min-height: 520px; background-color: #17395f; }
.hambeat-public .hambeat-detail-copy { padding: 42px 46px; }
.hambeat-public .hambeat-detail-copy h1 { color: #fff; font-size: clamp(38px, 4.3vw, 58px); }
.hambeat-public .hambeat-detail-copy .hambeat-subtle { color: #cfdae9; }
.hambeat-public .hambeat-detail-copy .hambeat-kicker { color: var(--hb-public-butter); }
.hambeat-public .detail-live-badge {
  inset: 24px auto auto 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--hb-public-primary);
}
.hambeat-public .detail-host-row small { color: #aebed1; }
.hambeat-public .hambeat-detail-meta { grid-template-columns: repeat(4, 1fr); }
.hambeat-public .hambeat-detail-meta div {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(255,255,255,.07);
}
.hambeat-public .hambeat-detail-meta small { color: #aebed1; }
.hambeat-public .event-access-code { color: var(--hb-public-ink); background: var(--hb-public-surface); }
.hambeat-public .event-detail-actions { grid-template-columns: 1fr auto auto; }
.hambeat-public .event-detail-actions #event-join { grid-column: auto; }
.hambeat-public .event-detail-actions .hambeat-button-secondary {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: transparent;
}
.hambeat-public .public-event-share {
  padding: 28px;
  gap: 32px;
  border-radius: var(--hb-public-radius-md);
  box-shadow: none;
}
.hambeat-public .public-event-share output {
  border-color: var(--hb-public-line);
  color: var(--hb-public-primary);
  background: var(--hb-public-primary-soft);
}
.hambeat-public .event-share-qr { border-color: var(--hb-public-line); border-radius: var(--hb-public-radius-md); box-shadow: none; }

/* Dialogs */
.hambeat-public .hambeat-dialog {
  border-color: var(--hb-public-line);
  border-radius: var(--hb-public-radius-lg);
  color: var(--hb-public-ink);
  background: var(--hb-public-surface);
}
.hambeat-public .hambeat-dialog::backdrop { background: rgba(6, 28, 56, .64); }
.hambeat-public .hambeat-dialog__close { color: var(--hb-public-ink); border-color: var(--hb-public-line); background: var(--hb-public-canvas); }

@media (max-width: 980px) {
  .hambeat-public .hambeat-container,
  .hambeat-public .profile-shell { width: min(100% - 32px, 1240px); }
  .hambeat-public .hambeat-hero > img,
  .hambeat-public .hambeat-hero::after { inset-inline-start: 16px; width: 49vw; }
  .hambeat-public .event-grid { grid-template-columns: repeat(2, 1fr); }
  .hambeat-public .hambeat-auth { grid-template-columns: .85fr 1.15fr; }
  .hambeat-public .hambeat-detail-meta { grid-template-columns: 1fr 1fr; }
  .hambeat-public .event-detail-actions { grid-template-columns: 1fr 1fr; }
  .hambeat-public .event-detail-actions #event-join { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .hambeat-public { padding-bottom: 82px; }
  .hambeat-public.auth-page { padding-bottom: 0; }
  .hambeat-public .hambeat-container,
  .hambeat-public .profile-shell { width: min(100% - 24px, 1240px); }
  .hambeat-public .hambeat-topbar { min-height: 72px; padding-inline: 16px; }
  .hambeat-public .hambeat-topbar::before {
    content: "☰";
    order: 3;
    color: var(--hb-public-ink);
    font-size: 26px;
  }
  .hambeat-public .hambeat-topbar .hambeat-brand { order: 1; }
  .hambeat-public .hambeat-auth-actions { order: 2; min-width: 0; }
  .hambeat-public .hambeat-brand { min-width: 86px; }
  .hambeat-public .hambeat-brand b { font-size: 20px; }
  .hambeat-public .hambeat-brand b::after { font-size: 9px; }
  .hambeat-public.market-page .hambeat-topbar .hambeat-auth-actions { display: none; }
  .hambeat-public .hambeat-hero {
    min-height: 760px;
    display: block;
  }
  .hambeat-public .hambeat-hero-content {
    width: calc(100% - 32px);
    padding-block: 46px 360px;
  }
  .hambeat-public .hambeat-hero-content > * { width: 100%; }
  .hambeat-public .hambeat-hero h1 { margin-block: 8px 14px; font-size: clamp(40px, 13vw, 55px); letter-spacing: -1.5px; }
  .hambeat-public .hambeat-hero p { font-size: 15px; line-height: 1.9; }
  .hambeat-public .hambeat-hero-actions { grid-template-columns: 1fr; }
  .hambeat-public .hambeat-hero > img,
  .hambeat-public .hambeat-hero::after {
    inset-block: auto 18px;
    inset-inline: 16px;
    width: auto;
    height: 320px;
    border-radius: 28px;
  }
  .hambeat-public .hambeat-floating-note { inset-inline: auto 32px; inset-block-end: 36px; }
  .hambeat-public .hambeat-search-shell { grid-template-columns: 1fr; padding: 12px; }
  .hambeat-public .hambeat-category-strip { padding-bottom: 4px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; }
  .hambeat-public .hambeat-category-strip button { flex: 0 0 auto; }
  .hambeat-public .hambeat-section { padding-block: 44px; }
  .hambeat-public .hambeat-section-head { gap: 16px; }
  .hambeat-public .hambeat-filter-row { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .hambeat-public .hambeat-filter-row button { flex: 0 0 auto; }
  .hambeat-public .event-grid {
    grid-auto-flow: column;
    grid-auto-columns: 82vw;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .hambeat-public .event-card { scroll-snap-align: start; }
  .hambeat-public .hambeat-feature-grid { grid-template-columns: 1fr; }
  .hambeat-public .hambeat-feature:nth-child(4) { display: block; }
  .hambeat-public .hambeat-feature { min-height: auto; }
  .hambeat-public .hambeat-stats { grid-template-columns: 1fr 1fr; }
  .hambeat-public .hambeat-stat { min-width: 0; border-block-end: 1px solid var(--hb-public-line); }
  .hambeat-public .hambeat-stat strong { font-size: 22px; overflow-wrap: anywhere; }
  .hambeat-public .hambeat-host-cta { padding: 24px; grid-template-columns: 1fr; border-radius: 24px; }
  .hambeat-public .hambeat-faq { grid-template-columns: 1fr; }
  .hambeat-public .hambeat-footer-inner { width: calc(100% - 32px); flex-direction: column; }
  .hambeat-public .hambeat-footer-links { justify-content: center; }
  .hambeat-public .hambeat-mobile-nav {
    right: 8px;
    bottom: 8px;
    left: 8px;
    min-height: 68px;
    padding: 7px 8px;
    border-color: var(--hb-public-line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--hb-public-surface) 96%, transparent);
    box-shadow: 0 14px 38px rgba(6, 28, 56, .16);
  }
  .hambeat-public .hambeat-mobile-nav a { color: var(--hb-public-muted); }
  .hambeat-public .hambeat-mobile-nav a:first-child,
  .hambeat-public .hambeat-mobile-nav a.active { color: var(--hb-public-primary); background: var(--hb-public-primary-soft); border-radius: 12px; }
  .hambeat-public .hambeat-mobile-nav .create { color: var(--hb-public-navy); background: var(--hb-public-butter); }
  .hambeat-public:is(.public-home-page, .discovery-page) {
    padding-bottom: 0;
  }
  .hambeat-public:is(.public-home-page, .discovery-page) .hambeat-mobile-nav {
    display: none;
  }

  .hambeat-public .hambeat-auth { min-height: 100dvh; padding: 0; display: block; background: var(--hb-public-surface); }
  .hambeat-public .hambeat-auth-visual { display: block; min-height: 205px; padding: 24px; border-radius: 0 0 28px 28px; }
  .hambeat-public .hambeat-auth-visual > img { display: block; opacity: .72; }
  .hambeat-public .hambeat-auth-visual .hambeat-auth-copy,
  .hambeat-public .hambeat-auth-visual > div:last-child { display: none; }
  .hambeat-public .hambeat-auth-form-side { padding: 24px 20px 50px; border-radius: 0; }
  .hambeat-public .hambeat-auth-form > .hambeat-brand { display: none; }
  .hambeat-public .hambeat-tabs { margin-bottom: 28px; }
  .hambeat-public .hambeat-auth-form h2 { font-size: 28px; }

  .hambeat-public .profile-shell { padding-top: 16px; }
  .hambeat-public .profile-hero {
    min-height: 220px;
    padding: 22px;
    grid-template-columns: 76px 1fr;
    background-size: cover;
    background-position: center;
  }
  .hambeat-public .profile-avatar { width: 72px; height: 72px; }
  .hambeat-public .profile-hero h1 { font-size: 26px; }
  .hambeat-public .profile-hero > .hambeat-button { grid-column: 1 / -1; }
  .hambeat-public .profile-stat-grid { grid-template-columns: 1fr 1fr; }
  .hambeat-public .profile-stat-grid article { min-height: 110px; }
  .hambeat-public .profile-grid { grid-template-columns: 1fr; }

  .hambeat-public .hambeat-detail { padding-top: 12px; }
  .hambeat-public .hambeat-detail-hero { min-height: 0; grid-template-columns: 1fr; border-radius: 24px; }
  .hambeat-public .hambeat-detail-media { min-height: 310px; }
  .hambeat-public .hambeat-detail-copy { padding: 24px; }
  .hambeat-public .hambeat-detail-copy h1 { font-size: 36px; }
  .hambeat-public .hambeat-detail-meta { grid-template-columns: 1fr 1fr; }
  .hambeat-public .event-detail-actions { grid-template-columns: 1fr; }
  .hambeat-public .event-detail-actions #event-join { grid-column: auto; }
  .hambeat-public .public-event-share { grid-template-columns: 1fr; padding: 20px; }
  .hambeat-public .public-event-share .event-share-qr { margin-inline: auto; }
}

@media (max-width: 410px) {
  .hambeat-public .hambeat-hero { min-height: 790px; }
  .hambeat-public .hambeat-hero-content { padding-bottom: 350px; }
  .hambeat-public .hambeat-hero > img,
  .hambeat-public .hambeat-hero::after { height: 300px; }
  .hambeat-public .hambeat-stat { padding: 16px; }
  .hambeat-public .profile-stat-grid { gap: 8px; }
  .hambeat-public .profile-stat-grid article { padding: 14px; }
  .hambeat-public .profile-link-list a { grid-template-columns: 42px 1fr 18px; }
  .hambeat-public .hambeat-detail-meta { grid-template-columns: 1fr; }
  .hambeat-public .event-share-qr { inline-size: min(244px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .hambeat-public *, .hambeat-public *::before, .hambeat-public *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Approved-board fidelity pass: boards 01, 02, 03, 05, 06, 18 and 19. */
.hambeat-public {
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
.hambeat-public .hambeat-topbar {
  position: relative;
  min-height: 88px;
  padding-inline: max(40px, calc((100vw - 1320px) / 2));
  background: #fffdf9;
  backdrop-filter: none;
}
.hambeat-public .hambeat-topbar nav a { font-size: 16px; line-height: 1.5; }
.hambeat-public .hambeat-brand b { font-size: 24px; line-height: 1; }
.hambeat-public .hambeat-brand b::after { margin-top: 5px; font-size: 11px; line-height: 1; }
.hambeat-public .hambeat-button,
.hambeat-public .hambeat-button-secondary { font-size: 15px; font-weight: 800; }
.hambeat-public .hb-mobile-menu-button { display: none; }

/* Board 01 — dedicated public home composition. */
.hambeat-public.public-home-page .hambeat-hero {
  min-height: 510px;
  padding-inline: max(42px, calc((100vw - 1320px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  direction: rtl;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--hb-public-navy) url('./assets/covers/hambeat-hero-city-sync.webp') center / cover no-repeat;
}
.hambeat-public.public-home-page .hambeat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(8, 28, 51, .58);
  pointer-events: none;
}
.hambeat-public.public-home-page .hambeat-hero > * {
  position: relative;
  z-index: 1;
}
.hambeat-public.public-home-page .hb-hero-event-carousel {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  align-self: center;
  display: grid;
  gap: 12px;
}
.hambeat-public.public-home-page .hb-featured-event {
  width: 100%;
  height: 455px;
  display: grid;
  grid-template-columns: 57% 43%;
  overflow: hidden;
  border-radius: 24px 72px 72px 24px;
  color: #fff;
  background: var(--hb-public-navy);
}
.hambeat-public.public-home-page .hb-featured-event > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hambeat-public.public-home-page .hb-featured-event-copy {
  min-width: 0;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.hambeat-public.public-home-page .hb-featured-event-copy > span {
  width: max-content;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: var(--hb-radius-round);
  font-size: 12px;
}
.hambeat-public.public-home-page .hb-featured-event-copy h2 { margin: 4px 0 0; color: #fff; font-size: 32px; }
.hambeat-public.public-home-page .hb-featured-event-copy p { margin: 0; color: var(--hb-powder); }
.hambeat-public.public-home-page .hb-featured-event-copy strong { color: #fff; font-size: 15px; }
.hambeat-public.public-home-page .hb-featured-event-copy .hambeat-button { margin-top: 12px; color: #fff; background: var(--hb-public-primary); }
.hambeat-public.public-home-page .hb-hero-event-controls {
  min-height: 44px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px auto;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.hambeat-public.public-home-page .hb-hero-event-controls[hidden] { display: none; }
.hambeat-public.public-home-page .hb-hero-event-controls > button,
.hambeat-public.public-home-page .hb-hero-event-dots > button {
  border: 1px solid rgba(255,255,255,.32);
  color: #fff;
  background: rgba(16,27,43,.72);
  cursor: pointer;
}
.hambeat-public.public-home-page .hb-hero-event-controls > button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--hb-radius-sm);
}
.hambeat-public.public-home-page .hb-hero-event-controls > button:disabled {
  cursor: default;
  opacity: .48;
}
.hambeat-public.public-home-page .hb-hero-event-dots {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.hambeat-public.public-home-page .hb-hero-event-dots > button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: var(--hb-radius-round);
}
.hambeat-public.public-home-page .hb-hero-event-dots > button.is-active,
.hambeat-public.public-home-page .hb-hero-event-dots > button[aria-selected="true"] {
  width: 26px;
  border-color: var(--hb-public-butter);
  background: var(--hb-public-butter);
}
.hambeat-public.public-home-page #featured-event-position {
  min-width: 54px;
  color: var(--hb-powder);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}
.hambeat-public.public-home-page .hambeat-hero-content {
  width: auto;
  margin: 0;
  padding: 60px 10px 58px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hambeat-public.public-home-page .hambeat-hero-content > * { width: 100%; }
.hambeat-public.public-home-page .hambeat-hero h1 {
  margin: 2px 0 12px;
  font-size: clamp(58px, 5.3vw, 76px);
  color: #fff;
  font-weight: 950;
  line-height: 1.3;
  letter-spacing: -2.4px;
}
.hambeat-public.public-home-page .hambeat-hero p:not(.hambeat-kicker) {
  max-width: 530px;
  margin-bottom: 22px;
  color: var(--hb-powder);
  font-size: 18px;
  line-height: 1.9;
}
.hambeat-public.public-home-page .hambeat-hero .hambeat-kicker { display: none; }
.hambeat-public.public-home-page .hambeat-hero-actions { max-width: 470px; gap: 12px; }
.hambeat-public.public-home-page .hambeat-hero-actions > * { min-height: 58px; border-radius: 14px; }
.hambeat-public.public-home-page .hambeat-hero > img { display: none; }
.hambeat-public.public-home-page .hambeat-hero::after {
  content: none;
}
.hambeat-public.public-home-page .hambeat-floating-note { display: none; }
.hambeat-public.public-home-page .hambeat-search-shell,
.hambeat-public.public-home-page .hambeat-category-strip,
.hambeat-public.public-home-page #events,
.hambeat-public.public-home-page .hambeat-stats,
.hambeat-public.public-home-page .hambeat-faq,
.hambeat-public.public-home-page .hambeat-public-footer { display: none; }
.hambeat-public.public-home-page #how { padding: 22px 0 24px; }
.hambeat-public.public-home-page #how .hambeat-section-head { margin-bottom: 12px; }
.hambeat-public.public-home-page #how .hambeat-section-head h2 { font-size: 24px; }
.hambeat-public.public-home-page #how .hambeat-kicker { display: none; }
.hambeat-public.public-home-page .hambeat-feature-grid { gap: 16px; }
.hambeat-public.public-home-page .hambeat-feature {
  min-height: 160px;
  padding: 22px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-content: center;
  column-gap: 16px;
  border-radius: 18px;
}
.hambeat-public.public-home-page .hambeat-feature > i { grid-row: 1 / 3; width: 64px; height: 64px; font-size: 26px; }
.hambeat-public.public-home-page .hambeat-feature h3 { margin: 0; font-size: 18px; }
.hambeat-public.public-home-page .hambeat-feature p { margin: 4px 0 0; font-size: 13px; line-height: 1.8; }
.hambeat-public.public-home-page .hambeat-host-cta {
  width: min(1320px, calc(100% - 84px));
  min-height: 122px;
  margin-top: 0;
  padding: 28px 38px;
  border-radius: 28px;
}
.hambeat-public.public-home-page main > .hambeat-section:last-child { display: none; }
.hambeat-public.public-home-page .hambeat-host-cta h2 { font-size: 23px; }
.hambeat-public.public-home-page .hambeat-host-cta p { margin: 2px 0; font-size: 13px; }

/* Board 02 — discovery is intentionally a separate compact state. */
.hambeat-public.discovery-page .hambeat-hero,
.hambeat-public.discovery-page #how,
.hambeat-public.discovery-page .hambeat-stats,
.hambeat-public.discovery-page .hambeat-host-cta,
.hambeat-public.discovery-page main > .hambeat-section:last-child,
.hambeat-public.discovery-page .hambeat-public-footer { display: none; }
.hambeat-public.discovery-page main { min-height: calc(100vh - 88px); padding: 34px max(42px, calc((100vw - 1320px) / 2)) 70px; }
.hambeat-public.discovery-page main::before {
  content: "رویداد موسیقی مناسب امشب را پیدا کن";
  display: block;
  margin-bottom: 24px;
  color: var(--hb-public-navy);
  font-size: 42px;
  font-weight: 950;
  line-height: 1.35;
}
.hambeat-public.discovery-page .hambeat-search-shell { width: 100%; margin: 0; }
.hambeat-public.discovery-page .hambeat-category-strip { width: 100%; margin: 0; }
.hambeat-public.discovery-page #events { padding: 0; }
.hambeat-public.discovery-page #events > .hambeat-container { width: 100%; }
.hambeat-public.discovery-page .hambeat-section-head { margin-bottom: 16px; }
.hambeat-public.discovery-page .hambeat-section-head h2 { display: none; }
.hambeat-public.discovery-page .event-grid.event-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hb-space-4);
  align-items: stretch;
}
.hambeat-public.discovery-page .hb-discovery-card {
  width: 100%;
  max-inline-size: none;
  min-width: 0;
  min-height: 100%;
  display: grid;
  grid-template-rows: 176px minmax(0, 1fr);
  border-radius: var(--hb-radius-lg);
}
.hambeat-public.discovery-page .hb-discovery-card__media {
  width: 100%;
  height: 176px;
  min-height: 0;
  aspect-ratio: auto;
}
.hambeat-public.discovery-page .hb-discovery-card__body {
  min-width: 0;
  min-height: 238px;
  padding: var(--hb-space-4);
  display: flex;
  flex-direction: column;
}
.hambeat-public.discovery-page .hb-discovery-card__location {
  overflow: hidden;
  color: var(--hb-muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hambeat-public.discovery-page .hb-discovery-card__body h3 {
  min-height: 58px;
  margin: var(--hb-space-2) 0 var(--hb-space-1);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.45;
}
.hambeat-public.discovery-page .hb-discovery-card__description {
  min-height: 48px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.8;
}
.hambeat-public.discovery-page .hb-discovery-card__meta {
  margin: var(--hb-space-3) 0;
  padding-top: var(--hb-space-3);
  display: grid;
  gap: var(--hb-space-1);
  border-top: 1px solid var(--hb-line);
  font-size: 11px;
}
.hambeat-public.discovery-page .hb-discovery-card__cta {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  gap: var(--hb-space-2);
  border-radius: var(--hb-radius-sm);
  color: var(--hb-surface);
  background: var(--hb-cobalt);
}

.hambeat-public.public-home-page .hb-discovery-taxonomy-panel { margin-top: 18px; }

@media (max-width: 720px) {
  .hambeat-public .hb-discovery-taxonomy-panel { width: 100%; margin-block: 12px 20px; padding: 12px; gap: 14px; }
  .hambeat-public .hb-discovery-filter-group { grid-template-columns: 1fr; gap: 8px; }
  .hambeat-public .hambeat-category-strip,
  .hambeat-public .hambeat-genre-strip {
    width: 100%;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .hambeat-public .hambeat-category-strip::-webkit-scrollbar,
  .hambeat-public .hambeat-genre-strip::-webkit-scrollbar { display: none; }
  .hambeat-public .hambeat-category-strip button,
  .hambeat-public .hambeat-genre-strip button { flex: 0 0 auto; min-height: 42px; }
  .hambeat-public .hb-discovery-public-note { justify-self: stretch; justify-content: center; text-align: center; }
  .hambeat-public .hambeat-filter-row { align-items: center; }
  .hambeat-public .hb-filter-label { flex-basis: 100%; }
  .hambeat-public.discovery-page .hb-discovery-card__media .people-badge { display: none; }
}

@media (max-width: 1100px) {
  .hambeat-public.discovery-page .event-grid.event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Boards 03/18/19 — exact auth frame, type and spacing. */
.hambeat-public .hambeat-auth {
  min-height: 1024px;
  padding: 20px;
  grid-template-columns: 480px minmax(0, 1fr);
  background: #eef0f2;
}
.hambeat-public .hambeat-auth-visual {
  min-height: 984px;
  padding: 40px;
  border-radius: 24px 0 0 24px;
}
.hambeat-public .hambeat-auth-visual > img {
  opacity: 1;
  object-position: 50% 50%;
}
.hambeat-public .hambeat-auth-visual::after { background: rgba(5, 25, 49, .14); }
.hambeat-public .hambeat-auth-copy { max-width: 420px; padding: 24px 4px; }
.hambeat-public .hambeat-auth-copy h1 { margin: 8px 0 18px; font-size: 46px; line-height: 1.45; }
.hambeat-public .hambeat-auth-copy p { font-size: 18px; line-height: 2; }
.hambeat-public .hambeat-auth-form-side { padding: 56px 7vw; border-radius: 0 24px 24px 0; }
.hambeat-public .hambeat-auth-form { width: min(480px, 100%); }
.hambeat-public .hambeat-tabs { margin-bottom: 38px; }
.hambeat-public .hambeat-tabs button { min-height: 54px; font-size: 16px; }
.hambeat-public .auth-kicker { display: none; }
.hambeat-public .hambeat-auth-form h2 { margin: 0 0 8px; text-align: center; font-size: 34px; line-height: 1.5; }
.hambeat-public .hambeat-auth-form h2 + p { margin: 0 0 24px; text-align: center; font-size: 15px; }
.hambeat-public .hambeat-google { margin-top: 24px; }
.hambeat-public .hambeat-divider { margin-block: 22px; }
.hambeat-public .hambeat-form { gap: 18px; }
.hambeat-public .hambeat-form label > span { margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.hambeat-public .auth-helper-row { font-size: 13px; }
.hambeat-public .hambeat-dialog { width: min(520px, calc(100% - 32px)); padding: 0; }
.hambeat-public .hambeat-dialog__surface { padding: 34px; }
.hb-recovery-page { min-height: 100vh; padding: 18px; display: grid; grid-template-columns: minmax(360px, 34%) 1fr; background: #eef0f2; }
.hb-recovery-visual { position: relative; min-height: calc(100vh - 36px); padding: 56px 44px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-radius: 24px 0 0 24px; color: #fff; background: var(--hb-navy) url('./assets/covers/hambeat-hero-city-sync.webp') center / cover no-repeat; }
.hb-recovery-visual::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(7,28,54,.46); pointer-events: none; }
.hb-recovery-visual > * { position: relative; z-index: 1; }
.hb-recovery-visual .hambeat-brand { color: #fff; }
.hb-recovery-visual h2 { margin: 0 0 16px; font-size: 42px; line-height: 1.55; }
.hb-recovery-visual p { max-width: 340px; margin: 0; font-size: 18px; line-height: 2; }
.hb-recovery-main { min-width: 0; padding: 28px 7vw; display: grid; align-content: center; background: var(--hb-surface); border-radius: 0 24px 24px 0; }
.hb-recovery-main > header { display: none; align-items: center; justify-content: space-between; }
.hb-recovery-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--hb-navy); }
.hb-recovery-card { width: min(560px,100%); margin: 0 auto; padding: 0; background: transparent; }
.hb-recovery-card > h1 { margin: 30px 0 6px; text-align: center; font-size: 34px; }
.hb-recovery-card > p { margin: 0 0 22px; text-align: center; color: var(--hb-muted); }
.hb-recovery-steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; list-style: none; }
.hb-recovery-steps li { display: grid; justify-items: center; gap: 7px; color: var(--hb-muted); font-size: 12px; }
.hb-recovery-steps li b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--hb-muted); background: var(--hb-sand); }
.hb-recovery-steps li.active { color: var(--hb-cobalt); font-weight: 800; }
.hb-recovery-steps li.active b { color: #fff; background: var(--hb-cobalt); }
#recovery-page-message { min-height: 28px; margin: 0; color: var(--hb-muted); }
#recovery-page-message[data-type="success"] { color: var(--hb-success); }
#recovery-page-message[data-type="error"] { color: var(--hb-danger); }
.hb-recovery-back { margin: 16px 0 24px; display: block; text-align: center; color: var(--hb-muted); text-decoration: none; }
.hb-recovery-notice { margin-top: 14px; padding: 16px; display: grid; grid-template-columns: 24px 1fr; gap: 12px; border: 1px solid color-mix(in srgb,var(--hb-success) 26%,var(--hb-line)); border-radius: var(--hb-radius-md); color: var(--hb-success); background: var(--hb-success-soft); }
.hb-recovery-notice.info { color: var(--hb-cobalt); border-color: var(--hb-powder); background: var(--hb-info-soft); }
.hb-recovery-notice strong { display: block; }
.hb-recovery-notice p { margin: 5px 0 0; color: var(--hb-muted); font-size: 12px; line-height: 1.8; }

/* Boards 05/06 — restrained desktop shell and reference image crop. */
.hambeat-public .profile-shell,
.hambeat-public .hambeat-detail > .hambeat-container { width: min(1320px, calc(100% - 64px)); }
.hambeat-public .profile-hero {
  min-height: 255px;
  background: var(--hb-public-navy) url('./assets/covers/hambeat-hero-city-sync.webp') left center / 50% auto no-repeat;
}
.hambeat-public .profile-hero::before { background: rgba(8, 28, 51, .1); }
.hambeat-public .hambeat-detail { padding-top: 28px; }
.hambeat-public .hambeat-detail-hero { min-height: 500px; grid-template-columns: 43% 57%; }
.hambeat-public .hambeat-detail-media {
  min-height: 500px;
  background-image: url('./assets/covers/hambeat-event-general.webp');
  background-position: 50% 50%;
  background-size: cover;
}
.hambeat-public .hambeat-detail-copy { padding: 36px 42px; }
.hambeat-public .hambeat-detail-copy h1 { font-size: 48px; line-height: 1.45; }
.hambeat-public .public-event-share { margin-top: 18px; }

@media (max-width: 760px) {
  .hambeat-public { font-size: 14px; }
  .hambeat-public .hambeat-topbar { min-height: 74px; padding-inline: 18px; }
  .hambeat-public .hambeat-topbar::before { content: none; }
  .hambeat-public .hb-mobile-menu-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--hb-navy);
    background: transparent;
    font-size: 22px;
    order: 3;
  }
  .hambeat-public .hambeat-topbar .hambeat-brand { order: 0; }
  .hambeat-public.public-menu-open .hambeat-topbar nav {
    position: absolute;
    inset: 74px 12px auto;
    z-index: 20;
    padding: 12px;
    display: grid;
    gap: 4px;
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius-lg);
    background: var(--hb-surface);
    box-shadow: var(--hb-shadow-card);
  }
  .hambeat-public.public-menu-open .hambeat-topbar nav a { min-height: 44px; padding-inline: 12px; display: flex; align-items: center; }
  .hambeat-public .hambeat-brand b { font-size: 21px; }

  .hambeat-public.public-home-page .hambeat-hero {
    min-height: auto;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    background-position: 42% center;
  }
  .hambeat-public.public-home-page .hambeat-hero::before {
    background: rgba(8, 28, 51, .7);
  }
  .hambeat-public.public-home-page .hambeat-hero-content {
    order: 1;
    padding: 18px 0 20px;
    text-align: right;
  }
  .hambeat-public.public-home-page .hb-hero-event-carousel {
    order: 2;
    width: 100%;
    gap: 8px;
  }
  .hambeat-public.public-home-page .hb-featured-event {
    width: 100%;
    height: 280px;
    grid-template-columns: 48% 52%;
    border-radius: 20px;
  }
  .hambeat-public.public-home-page .hb-featured-event-copy { padding: 16px 14px; gap: 8px; }
  .hambeat-public.public-home-page .hb-featured-event-copy > span { padding: 4px 8px; font-size: 9px; }
  .hambeat-public.public-home-page .hb-featured-event-copy h2 { font-size: 21px; }
  .hambeat-public.public-home-page .hb-featured-event-copy p,
  .hambeat-public.public-home-page .hb-featured-event-copy strong { font-size: 11px; }
  .hambeat-public.public-home-page .hb-featured-event-copy .hambeat-button { min-height: 44px; margin-top: 4px; font-size: 12px; }
  .hambeat-public.public-home-page .hambeat-hero h1 { margin: 0 0 10px; font-size: 38px; line-height: 1.45; letter-spacing: -1px; }
  .hambeat-public.public-home-page .hambeat-hero p:not(.hambeat-kicker) { margin-bottom: 16px; font-size: 15px; line-height: 1.85; }
  .hambeat-public.public-home-page .hambeat-hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .hambeat-public.public-home-page .hambeat-hero-actions > * {
    min-height: 52px;
    padding-inline: 10px;
    justify-content: center;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
  }
  .hambeat-public.public-home-page .hb-hero-event-controls {
    grid-template-columns: 42px minmax(0, 1fr) 42px auto;
    gap: 7px;
  }
  .hambeat-public.public-home-page .hb-hero-event-controls > button {
    width: 42px;
    height: 42px;
  }
  .hambeat-public.public-home-page #featured-event-position { min-width: 48px; font-size: 11px; }
  .hambeat-public.public-home-page .hambeat-hero > img {
    order: 2;
    width: 100%;
    height: 215px;
    border-radius: 20px;
    object-position: 50% 48%;
  }
  .hambeat-public.public-home-page #how { padding: 18px 0 14px; }
  .hambeat-public.public-home-page #how .hambeat-section-head h2 { font-size: 18px; }
  .hambeat-public.public-home-page .hambeat-feature-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .hambeat-public.public-home-page .hambeat-feature {
    min-height: 142px;
    padding: 12px 9px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    border-radius: 0;
    border-inline-start: 0;
  }
  .hambeat-public.public-home-page .hambeat-feature:first-child { border-radius: 0 14px 14px 0; }
  .hambeat-public.public-home-page .hambeat-feature:nth-child(3) { border-radius: 14px 0 0 14px; }
  .hambeat-public.public-home-page .hambeat-feature > i { width: 52px; height: 52px; font-size: 21px; }
  .hambeat-public.public-home-page .hambeat-feature h3 { font-size: 13px; }
  .hambeat-public.public-home-page .hambeat-feature p { font-size: 10px; line-height: 1.7; }
  .hambeat-public.public-home-page .hambeat-host-cta { width: calc(100% - 24px); min-height: 118px; padding: 20px; margin-bottom: 86px; }
  .hambeat-public.public-home-page .hambeat-host-cta h2 { font-size: 17px; }
  .hambeat-public.public-home-page .hambeat-host-cta p { font-size: 10px; }
  .hambeat-public.public-home-page .hambeat-host-cta .hambeat-button { display: none; }

  .hambeat-public.discovery-page main { min-height: auto; padding: 24px 12px 34px; }
  .hambeat-public.discovery-page main::before { margin-bottom: 18px; font-size: 28px; }
  .hambeat-public.discovery-page .hambeat-search-shell { padding: 0; border: 0; box-shadow: none; background: transparent; }
  .hambeat-public.discovery-page .hambeat-search-shell > :not(:first-child) { display: none; }
  .hambeat-public.discovery-page .hambeat-category-strip,
  .hambeat-public.discovery-page .hambeat-genre-strip,
  .hambeat-public.discovery-page .hambeat-filter-row {
    width: 100%;
    max-width: 100%;
    padding-inline: 2px;
    flex-wrap: wrap;
    overflow: visible;
    scroll-padding-inline: 12px;
  }

  .hambeat-public.public-home-page .hambeat-category-strip,
  .hambeat-public.public-home-page .hambeat-genre-strip {
    flex-wrap: wrap;
    overflow: visible;
  }

  .hambeat-public.public-home-page .hb-discovery-filter-group:has(.hambeat-category-strip) {
    display: none;
  }
  .hambeat-public.discovery-page .event-grid.event-list { grid-auto-flow: row; grid-template-columns: 1fr; overflow: visible; }
  .hambeat-public.discovery-page .hb-discovery-card {
    min-height: 142px;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-rows: none;
    border-radius: var(--hb-radius-md);
  }
  .hambeat-public.discovery-page .hb-discovery-card__media { width: 118px; height: 100%; min-height: 142px; }
  .hambeat-public.discovery-page .hb-discovery-card__body { min-height: 0; padding: 10px 12px; }
  .hambeat-public.discovery-page .hb-discovery-card__body h3 { min-height: 0; margin: 4px 0; font-size: 16px; -webkit-line-clamp: 1; }
  .hambeat-public.discovery-page .hb-discovery-card__description { display: none; }
  .hambeat-public.discovery-page .hb-discovery-card__meta { margin: 4px 0 8px; padding: 0; gap: 1px; border: 0; font-size: 10px; }
  .hambeat-public.discovery-page .hb-discovery-card__meta span:last-child { display: none; }
  .hambeat-public.discovery-page .hb-discovery-card__cta { min-height: 44px; margin-top: auto; display: flex; }

  .hambeat-public .hambeat-auth { min-height: 844px; display: block; padding: 20px; background: #eef0f2; }
  .hambeat-public .hambeat-auth-visual {
    min-height: 158px;
    height: 158px;
    padding: 18px;
    border-radius: 22px 22px 0 0;
  }
  .hambeat-public .hambeat-auth-visual > img { object-position: 50% 45%; }
  .hambeat-public .hambeat-auth-visual::after { background: rgba(5, 25, 49, .06); }
  .hambeat-public .hambeat-auth-form-side { padding: 22px 18px 34px; border-radius: 0 0 22px 22px; }
  .hambeat-public .hambeat-tabs { margin-bottom: 28px; }
  .hambeat-public .hambeat-tabs button { min-height: 48px; }
  .hambeat-public .hambeat-auth-form h2 { font-size: 28px; }
  .hambeat-public .hambeat-auth-form h2 + p { font-size: 14px; }
  .hambeat-public .hambeat-google { min-height: 52px; margin-top: 20px; }
  .hambeat-public .hambeat-form { gap: 15px; }
  .hambeat-public .hambeat-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]) { min-height: 52px; }
  .hambeat-public .hambeat-dialog { width: calc(100% - 24px); }
  .hambeat-public .hambeat-dialog__surface { padding: 26px 18px; }
  .hb-recovery-page { min-height: 100dvh; padding: 12px; display: block; background: var(--hb-surface); }
  .hb-recovery-visual { display: none; }
  .hb-recovery-main { min-height: calc(100dvh - 24px); padding: 12px 6px 28px; display: block; border-radius: 0; }
  .hb-recovery-main > header { margin-bottom: 32px; display: flex; }
  .hb-recovery-card { padding: 0; }
  .hb-recovery-card > h1 { margin-top: 30px; font-size: 30px; }
  .hb-recovery-card > h1 { font-size: 30px; }

  .hambeat-public .profile-shell { width: calc(100% - 24px); padding-top: 12px; }
  .hambeat-public .profile-hero {
    min-height: 225px;
    background-size: cover;
    background-position: 50% 50%;
  }
  .hambeat-public .profile-stat-grid { display: flex; gap: 8px; overflow-x: auto; }
  .hambeat-public .profile-stat-grid article { min-width: 82px; min-height: 98px; padding: 10px; }
  .hambeat-public .profile-stat-grid i { position: static; }
  .hambeat-public .profile-stat-grid strong { margin-top: 4px; font-size: 18px; }

  .hambeat-public .hambeat-detail > .hambeat-container { width: 100%; }
  .hambeat-public .hambeat-detail { padding: 0 0 88px; }
  .hambeat-public .hambeat-detail-hero { border: 0; border-radius: 0; background: var(--hb-public-canvas); color: var(--hb-public-ink); }
  .hambeat-public .hambeat-detail-media { min-height: 240px; order: -1; }
  .hambeat-public .hambeat-detail-copy { padding: 20px 16px; }
  .hambeat-public .hambeat-detail-copy h1 { color: var(--hb-public-ink); font-size: 34px; text-align: center; }
  .hambeat-public .hambeat-detail-copy .hambeat-subtle { color: var(--hb-public-muted); }
  .hambeat-public .hambeat-detail-copy .hambeat-kicker { color: var(--hb-public-primary); }
  .hambeat-public .hambeat-detail-meta div { border-color: var(--hb-public-line); background: #fff; }
  .hambeat-public .hambeat-detail-meta small { color: var(--hb-public-muted); }
  .hambeat-public .event-detail-actions .hambeat-button-secondary { color: var(--hb-public-primary); border-color: var(--hb-public-line); background: #fff; }
  .hambeat-public .public-event-share { margin: 0 12px; }
}
