/* SDBaja Off-Road — Design system
   Rugged desert / Baja trail aesthetic
   Mobile-first social layout */

:root,
html[data-theme="dusk"] {
  --bg: #14100c;
  --bg-elev: #1c1612;
  --panel: #241c16;
  --panel-2: #2c221a;
  --border: rgba(232, 220, 200, 0.12);
  --border-strong: rgba(232, 220, 200, 0.22);
  --text: #f3ebe0;
  --text-dim: #b9a994;
  --muted: #8f7f6c;
  --sand: #e8dcc8;
  --dust: #c4a574;
  --ember: #e85d04;
  --ember-2: #f48c06;
  --trail: #3d2914;
  --success: #40916c;
  --danger: #c1121f;
  --info: #4a6fa5;
  --glow-1: rgba(232, 93, 4, 0.18);
  --glow-2: rgba(196, 165, 116, 0.1);
  --bg-deep: #100c09;
  --bg-top: #1a1410;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font-display: "Barlow Condensed", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --topbar-h: 88px;
  --header-height: var(--topbar-h);
  --bottom-h: 64px;
  --max: 720px;
  --max-wide: 1100px;
}

html[data-theme="midnight"] {
  --bg: #0a0c10;
  --bg-elev: #12161d;
  --panel: #181e28;
  --panel-2: #1f2733;
  --border: rgba(180, 200, 230, 0.12);
  --border-strong: rgba(180, 200, 230, 0.22);
  --text: #e8eef6;
  --text-dim: #9aabc0;
  --muted: #6f8196;
  --sand: #d7e0ec;
  --dust: #8fa3bc;
  --ember: #3d8bfd;
  --ember-2: #6eacf5;
  --trail: #1a2433;
  --success: #3d9b74;
  --danger: #d64545;
  --info: #5b8def;
  --glow-1: rgba(61, 139, 253, 0.16);
  --glow-2: rgba(110, 172, 245, 0.08);
  --bg-deep: #07090c;
  --bg-top: #0e1218;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

html[data-theme="coast"] {
  --bg: #0c1618;
  --bg-elev: #122022;
  --panel: #182a2d;
  --panel-2: #1f3438;
  --border: rgba(160, 220, 210, 0.12);
  --border-strong: rgba(160, 220, 210, 0.22);
  --text: #e6f2ef;
  --text-dim: #9bb8b2;
  --muted: #6f8f89;
  --sand: #d5ebe4;
  --dust: #7fbfb0;
  --ember: #2a9d8f;
  --ember-2: #40c4b0;
  --trail: #163038;
  --success: #3f9d78;
  --danger: #c94c4c;
  --info: #4f8fb8;
  --glow-1: rgba(42, 157, 143, 0.18);
  --glow-2: rgba(64, 196, 176, 0.1);
  --bg-deep: #081012;
  --bg-top: #101c1e;
}

html[data-theme="chaparral"] {
  --bg: #12140e;
  --bg-elev: #1a1d14;
  --panel: #23271a;
  --panel-2: #2c3120;
  --border: rgba(210, 220, 170, 0.12);
  --border-strong: rgba(210, 220, 170, 0.22);
  --text: #eef0e2;
  --text-dim: #b0b69a;
  --muted: #858b70;
  --sand: #e4e7d4;
  --dust: #b8c078;
  --ember: #c4a035;
  --ember-2: #d4b84a;
  --trail: #2a3018;
  --success: #5a9a62;
  --danger: #c14b3a;
  --info: #6a8f7a;
  --glow-1: rgba(196, 160, 53, 0.16);
  --glow-2: rgba(184, 192, 120, 0.1);
  --bg-deep: #0c0e09;
  --bg-top: #161910;
}

html[data-theme="fog"] {
  --bg: #d8dde3;
  --bg-elev: #eef1f4;
  --panel: #f7f8fa;
  --panel-2: #e4e8ee;
  --border: rgba(40, 52, 68, 0.12);
  --border-strong: rgba(40, 52, 68, 0.2);
  --text: #1c2430;
  --text-dim: #4a5566;
  --muted: #6a7585;
  --sand: #2a3444;
  --dust: #5a6a7c;
  --ember: #b54a22;
  --ember-2: #c45d32;
  --trail: #c9d0d8;
  --success: #2f7a55;
  --danger: #b3261e;
  --info: #3a6ea5;
  --glow-1: rgba(181, 74, 34, 0.1);
  --glow-2: rgba(90, 106, 124, 0.08);
  --bg-deep: #c5ccd5;
  --bg-top: #e2e6eb;
  --shadow: 0 12px 36px rgba(40, 52, 68, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 10% -10%, var(--glow-1), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 20%, var(--glow-2), transparent 50%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 40%, var(--bg-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ember-2); text-decoration: none; }
a:hover { color: var(--sand); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
.muted { color: var(--muted); }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ember); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  /* Keep visible so the badge logo is never clipped at the bar edges */
  overflow: visible;
}
.topbar__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  height: var(--topbar-h);
  flex: 0 0 var(--topbar-h);
  width: 100%;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem; color: var(--text);
  flex-shrink: 0;
  line-height: 0;
  position: relative;
}
.brand:hover { color: var(--sand); opacity: 0.92; }
.brand__logo {
  display: block;
  height: auto;
  width: auto;
  max-height: calc(var(--topbar-h) - 18px);
  max-width: min(220px, 52vw);
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.brand__mark {
  width: 28px; height: 28px; border-radius: 6px;
  background:
    linear-gradient(135deg, var(--ember) 0%, var(--ember-2) 50%, var(--dust) 100%);
  box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.25);
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute; inset: 7px 5px 5px;
  border: 2px solid rgba(20, 16, 12, 0.55);
  border-radius: 2px;
  border-top: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.brand__text em {
  font-style: normal; font-size: 0.65rem; color: var(--dust);
  letter-spacing: 0.18em; text-transform: uppercase;
}

@media (max-width: 420px) {
  .brand__logo {
    max-height: calc(var(--topbar-h) - 22px);
    max-width: min(170px, 50vw);
  }
}

/* Landing: logo lives on the hero; header logo appears after scroll */
.page-landing .topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  transition: background 0.28s ease, border-color 0.28s ease, backdrop-filter 0.28s ease;
}
.page-landing .topbar .brand {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.92);
  /* Invisible brand must not consume header width on phones */
  width: 0;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.page-landing .topbar .desk-nav {
  opacity: 0;
  pointer-events: none;
}
.page-landing.is-scrolled .topbar {
  background: var(--bg-elev);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.page-landing.logo-docked .topbar .brand {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  width: auto;
  overflow: visible;
}
.page-landing.is-scrolled .topbar .desk-nav {
  opacity: 1;
  pointer-events: auto;
}
.page-landing .topbar__actions .btn--ghost {
  border-color: rgba(232, 220, 200, 0.35);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.page-landing .flash-stack {
  position: relative;
  z-index: 60;
  margin-top: calc(var(--topbar-h) + 0.5rem);
}
.topbar__actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; margin-left: auto; }
.topbar__actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-switch {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
}
.lang-switch a {
  padding: 0.25rem 0.55rem; font-size: 0.72rem; font-weight: 700;
  color: var(--muted); letter-spacing: 0.05em;
}
.lang-switch a.is-active { background: var(--ember); color: #fff; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; color: var(--text);
}
.icon-btn:hover { background: var(--panel); color: var(--sand); }
.badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--ember); color: #fff;
  font-size: 0.65rem; font-weight: 700; display: grid; place-items: center;
}
.avatar-link img,
.avatar,
.account-menu__btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
}
.avatar--lg { width: 88px; height: 88px; border-width: 3px; }
.avatar--md { width: 44px; height: 44px; }

/* Account dropdown (avatar menu) */
.account-menu {
  position: relative;
  flex-shrink: 0;
  z-index: 70;
}
.account-menu__btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.account-menu__btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  pointer-events: none;
}
.account-menu__btn:hover,
.account-menu.is-open .account-menu__btn,
body.account-menu-open .account-menu__btn {
  background: var(--panel);
}
.account-menu__btn:focus-visible {
  outline: 2px solid var(--ember-2);
  outline-offset: 2px;
}
.account-menu__panel {
  position: absolute;
  top: 100%;
  right: 12px;
  z-index: 80;
  display: block;
  width: min(360px, calc(100vw - 24px));
  margin: 0.35rem 0 0;
  padding: 0.35rem 0 0.4rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  overflow: visible;
}
.account-menu__panel[hidden] {
  display: none !important;
}
.account-menu__head {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas: "avatar who" "view view";
  gap: 0.35rem 0.6rem;
  padding: 0.45rem 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.account-menu__avatar {
  grid-area: avatar;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
}
.account-menu__who {
  grid-area: who;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.account-menu__who strong {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
  color: var(--sand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-menu__who .muted {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-menu__view {
  grid-area: view;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--sand) !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}
.account-menu__view:hover,
.account-menu__view:focus-visible {
  border-color: color-mix(in srgb, var(--ember) 45%, var(--border-strong));
  color: var(--text) !important;
  outline: none;
}
.account-menu__view:focus-visible {
  outline: 2px solid var(--ember-2);
  outline-offset: 2px;
}
.account-menu__group {
  margin: 0;
  padding: 0.1rem 0.3rem;
}
.account-menu__label {
  margin: 0.35rem 0.5rem 0.05rem;
  padding: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.account-menu__item {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 36px;
  padding: 0.28rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text) !important;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  box-sizing: border-box;
}
.account-menu__item span:not(.account-menu__count) {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-menu__icon {
  flex: 0 0 auto;
  color: var(--text-dim);
}
.account-menu__item:hover,
.account-menu__item:focus-visible {
  background: var(--panel);
  color: var(--sand) !important;
  outline: none;
}
.account-menu__item:focus-visible {
  outline: 2px solid var(--ember-2);
  outline-offset: -2px;
}
.account-menu__item:hover .account-menu__icon,
.account-menu__item:focus-visible .account-menu__icon {
  color: var(--ember-2);
}
.account-menu__count {
  min-width: 1.25rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  flex: 0 0 auto;
}
.account-menu__foot {
  padding: 0 0.3rem 0.15rem;
}
.account-menu__sep {
  height: 1px;
  margin: 0.25rem 0.4rem 0.2rem;
  background: var(--border);
}
.account-menu__item.account-menu__danger {
  color: #f2a4a8 !important;
}
.account-menu__item.account-menu__danger .account-menu__icon {
  color: #f2a4a8;
}
.account-menu__item.account-menu__danger:hover,
.account-menu__item.account-menu__danger:focus-visible {
  background: rgba(193, 18, 31, 0.18) !important;
  color: #ffd5d7 !important;
}
.account-menu__item.account-menu__danger:hover .account-menu__icon,
.account-menu__item.account-menu__danger:focus-visible .account-menu__icon {
  color: #ffd5d7;
}
@media (max-width: 767px) {
  body.account-menu-open .topbar,
  body.account-menu-open.page-landing .topbar {
    height: auto;
    position: relative;
    z-index: 80;
  }
  .account-menu__panel {
    position: static;
    top: auto;
    right: auto;
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border-strong);
    box-shadow: none;
    padding: 0.25rem 0.5rem calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px) + 0.5rem);
  }
  .account-menu__view,
  .account-menu__item {
    min-height: 44px;
  }
}

/* Main */
.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1rem calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px) + 2rem);
}
.main--wide { max-width: var(--max-wide); }
.main--flush {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.page-landing .site-footer { padding-bottom: 2rem; }
.page-landing .flash-stack { max-width: var(--max-wide); }
.page-landing .site-footer--nav {
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px) + 2rem);
}

/* Bottom nav */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; justify-content: space-around; align-items: stretch;
  background: var(--bg-elev);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.bottom-nav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.12rem; color: var(--muted); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  min-height: 44px; min-width: 0; padding: 0.2rem 0.1rem;
  background: transparent; border: 0; font-family: inherit; cursor: pointer;
}
.bottom-nav__item svg { flex: 0 0 auto; }
.bottom-nav__item.is-active, .bottom-nav__item:hover { color: var(--ember-2); }
.bottom-nav__item:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ember) 55%, transparent);
  outline-offset: -2px;
}
.mobile-nav-sheet[hidden] { display: none !important; }
.mobile-nav-sheet {
  position: fixed; inset: 0; z-index: 4100;
}
.mobile-nav-sheet__catch {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
}
.mobile-nav-sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: min(82dvh, 560px);
  overflow: auto;
  padding: 0.7rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  border-radius: 16px 16px 0 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-bottom: 0;
}
.mobile-nav-sheet__bar {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.55rem;
}
.mobile-nav-sheet__bar h2 {
  flex: 1; margin: 0; font-size: 1rem; font-family: var(--font-display);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.mobile-nav-sheet__links {
  display: flex; flex-direction: column; gap: 0.15rem;
}
.mobile-nav-sheet__links a {
  display: flex; align-items: center; min-height: 44px;
  padding: 0.35rem 0.2rem; color: var(--text); font-weight: 700;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.mobile-nav-sheet__links a.is-active { color: var(--ember-2); }
body.mobile-nav-open { overflow: hidden; }
@media (min-width: 768px) {
  .mobile-nav-sheet { display: none !important; }
}
.site-footer {
  text-align: center; padding: 1.5rem 1rem 2rem; color: var(--muted); font-size: 0.85rem;
}
.site-footer--nav { padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px) + 2rem); }
.site-footer__inner { max-width: var(--max); margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.65rem 1.15rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-weight: 700;
  font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 0.95rem; transition: transform 0.15s ease, filter 0.15s ease, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: linear-gradient(135deg, var(--ember), var(--ember-2)); color: #fff; }
.btn--primary:hover { filter: brightness(1.08); color: #fff; }
.btn--ghost {
  background: transparent; border-color: var(--border-strong); color: var(--sand);
}
.btn--ghost:hover { background: var(--panel); color: var(--text); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--success { background: var(--success); color: #fff; }
.btn--sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.btn--block { width: 100%; }
.btn--icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; margin-bottom: 0.35rem; font-size: 0.85rem; color: var(--text-dim); font-weight: 600;
}
.input, .select, .textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); color: var(--text);
}
.input:focus, .select:focus, .textarea:focus {
  outline: 2px solid rgba(232, 93, 4, 0.45); border-color: var(--ember);
}
.textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 560px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}
.form-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
.file-input {
  display: block; width: 100%; padding: 0.85rem;
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: rgba(232, 93, 4, 0.05); text-align: center; color: var(--text-dim);
  cursor: pointer;
}
.file-input input { display: none; }

/* Cards / panels */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.panel--flush { padding: 0; overflow: hidden; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin: 0.5rem 0 1rem; flex-wrap: wrap;
}
.section-head h1, .section-head h2 { margin: 0; }
.section-head p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* Flash */
.flash-stack {
  max-width: var(--max); margin: 0.75rem auto 0; padding: 0 1rem;
}
.flash {
  padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 0.5rem;
  animation: slideDown 0.35s ease;
}
.flash--success { background: rgba(64, 145, 108, 0.2); border: 1px solid var(--success); }
.flash--error { background: rgba(193, 18, 31, 0.2); border: 1px solid var(--danger); }
.flash--info { background: rgba(74, 111, 165, 0.2); border: 1px solid var(--info); }

.verify-banner {
  background: rgba(232, 93, 4, 0.15);
  border-bottom: 1px solid rgba(232, 93, 4, 0.45);
}
.verify-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.verify-banner__inner p { margin: 0; }
.verify-banner__form { margin: 0; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* Landing hero */
/* Landing hero */
.hero {
  --hero-pos: 62% center;
  min-height: 100svh;
  min-height: 100dvh;
  max-height: 900px;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background-color: #2a1c12;
  background-image:
    linear-gradient(
      105deg,
      rgba(20, 16, 12, 0.92) 0%,
      rgba(20, 16, 12, 0.72) 38%,
      rgba(20, 16, 12, 0.35) 62%,
      rgba(20, 16, 12, 0.2) 100%
    ),
    linear-gradient(180deg, rgba(20, 16, 12, 0.15) 0%, rgba(20, 16, 12, 0.45) 55%, rgba(20, 16, 12, 0.92) 100%),
    url('/assets/img/hero.jpg'),
    url('/assets/img/hero.svg');
  background-repeat: no-repeat;
  background-size: auto, auto, cover, cover;
  background-position: center, center, var(--hero-pos), center;
}
.hero__logo {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0px));
  left: max(1rem, env(safe-area-inset-left, 0px));
  z-index: 3;
  line-height: 0;
  transition: filter 0.28s ease;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 28px rgba(232, 93, 4, 0.22));
}
.hero__logo img {
  display: block;
  width: clamp(160px, 22vw, 240px);
  height: auto;
}
.hero__logo.is-docking {
  position: fixed !important;
  z-index: 60;
  right: auto !important;
  bottom: auto !important;
  margin: 0;
  will-change: transform, left, top;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}
.hero__logo.is-docking img {
  width: 100%;
  max-width: none;
}
.page-landing.logo-docked .hero__logo {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.hero__content {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2rem 1.25rem max(3.5rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
  width: 100%;
  animation: fadeUp 0.8s ease both;
  position: relative;
  z-index: 1;
}
.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 12vw, 6.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.9;
  margin: 0 0 0.35rem;
  text-shadow: 0 8px 40px rgba(0,0,0,0.45);
}
.hero__brand span { color: var(--ember-2); }
.hero__tag {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.5vw, 1.8rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dust);
  margin: 0 0 0.75rem;
  animation: fadeUp 0.8s ease 0.15s both;
}
.hero__lead {
  max-width: 34rem; color: var(--sand); margin: 0 0 1.5rem;
  font-size: 1.05rem; animation: fadeUp 0.8s ease 0.25s both;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; animation: fadeUp 0.8s ease 0.35s both; }
.hero__promise {
  margin: 0.9rem 0 0;
  max-width: 28rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sand);
  animation: fadeUp 0.8s ease 0.42s both;
}
.hero__url-hint {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  animation: fadeUp 0.8s ease 0.5s both;
}
.username-url-preview strong { color: var(--ember-2); font-weight: 700; word-break: break-all; }
.guest-cta__url {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  margin: 0 0 1rem !important;
  color: var(--sand);
}
.guest-cta__url em { color: var(--ember-2); font-style: normal; }
.guest-cta--claim { border-color: rgba(232,93,4,0.35); background: rgba(232,93,4,0.06); }

/* Unclaimed short-URL claim landing */
.claim-hero__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-2);
  animation: fadeUp 0.8s ease both;
}
.claim-hero__url {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  word-break: break-all;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
  animation: fadeUp 0.8s ease 0.08s both;
}
.claim-hero__host { color: var(--sand); opacity: 0.85; }
.claim-hero__slug { color: var(--ember-2); }
.claim-hero__brand {
  font-size: clamp(2.1rem, 9vw, 4.6rem);
  margin-bottom: 0.25rem;
}
.claim-pitch {
  padding: 2.25rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(232, 93, 4, 0.08), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.claim-pitch__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}
.claim-pitch h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}
.claim-pitch .lede {
  max-width: 40rem;
  margin: 0 0 1.15rem;
  color: var(--text-dim);
}
.claim-pitch__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 720px) {
  .claim-pitch__list { grid-template-columns: 1fr 1fr; gap: 0.75rem 1.25rem; }
}
.claim-pitch__list li {
  position: relative;
  padding: 0.75rem 0.9rem 0.75rem 2.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--sand);
  font-size: 0.95rem;
}
.claim-pitch__list li::before {
  content: '';
  position: absolute;
  left: 0.85rem;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ember-2);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.2);
}
.claim-final {
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(232, 93, 4, 0.16), transparent 65%),
    var(--panel);
  border-top: 1px solid var(--border);
}
.claim-final__inner {
  max-width: 36rem;
  margin: 0 auto;
}
.claim-final h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 3.5vw, 1.95rem);
}
.claim-final p {
  margin: 0 0 1.25rem;
  color: var(--text-dim);
}
.page-claim .features { padding-top: 1.75rem; }


/* Phone: keep the truck/bike in frame; keep Browse rides above / near the fold */
@media (max-width: 720px) {
  .hero {
    --hero-pos: 78% 42%;
    /* Slightly shorter than full viewport so primary CTA lands above the fold */
    min-height: min(100svh, 640px);
    min-height: min(100dvh, 640px);
    max-height: none;
    align-items: end;
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }
  .hero__logo {
    top: max(0.35rem, env(safe-area-inset-top, 0px));
    left: 0.65rem;
  }
  .hero__logo img {
    width: clamp(110px, 32vw, 168px);
  }
  .hero__content {
    padding-top: 0.35rem;
    padding-bottom: max(1rem, calc(0.55rem + env(safe-area-inset-bottom, 0px)));
  }
  .hero__brand {
    font-size: clamp(1.85rem, 9.5vw, 2.6rem);
    margin-bottom: 0.1rem;
    line-height: 1.05;
  }
  .hero__tag {
    margin-bottom: 0.45rem;
    font-size: clamp(0.88rem, 3vw, 1.1rem);
  }
  .hero__lead {
    display: none; /* keep CTA closer to the fold on phones */
  }
  .hero__cta {
    gap: 0.45rem;
  }
  .hero__cta .btn {
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
  }
  .hero__cta .btn--ghost:nth-child(n+3) {
    display: none; /* primary + find crew stay; host/join drop below fold risk */
  }
}

@media (max-width: 420px) {
  .hero {
    --hero-pos: 82% 40%;
  }
  .hero__brand {
    font-size: clamp(1.95rem, 12vw, 2.6rem);
  }
  .hero__tag {
    letter-spacing: 0.1em;
  }
}

@media (min-width: 721px) {
  .hero {
    --hero-pos: 58% center;
    min-height: min(100vh, 900px);
  }
}

/* Phone landscape: short viewport — logo + copy side-by-side, no overlap */
@media (orientation: landscape) and (max-height: 520px) {
  .page-landing {
    --topbar-h: 52px;
  }
  .page-landing .topbar .brand__logo {
    max-height: calc(var(--topbar-h) - 14px);
    max-width: min(140px, 28vw);
  }
  .page-landing .topbar__actions .btn--sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
  }
  .hero {
    --hero-pos: 72% 45%;
    min-height: 100svh;
    min-height: 100dvh;
    max-height: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(0.75rem, 3vw, 1.75rem);
    padding:
      max(0.5rem, env(safe-area-inset-top, 0px))
      max(1rem, env(safe-area-inset-right, 0px))
      max(0.5rem, env(safe-area-inset-bottom, 0px))
      max(0.85rem, env(safe-area-inset-left, 0px));
    background-image:
      linear-gradient(
        95deg,
        rgba(20, 16, 12, 0.94) 0%,
        rgba(20, 16, 12, 0.78) 42%,
        rgba(20, 16, 12, 0.35) 68%,
        rgba(20, 16, 12, 0.22) 100%
      ),
      linear-gradient(180deg, rgba(20, 16, 12, 0.2) 0%, rgba(20, 16, 12, 0.55) 100%),
      url('/assets/img/hero.jpg'),
      url('/assets/img/hero.svg');
  }
  .hero__logo {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 auto;
    align-self: center;
    z-index: 3;
  }
  .hero__logo img {
    width: clamp(96px, 28vh, 148px);
  }
  .page-landing.logo-docked .hero__logo {
    opacity: 0;
    transform: none;
  }
  .hero__content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(34rem, 54vw);
    margin: 0;
    padding: 0;
    align-self: center;
  }
  .hero__brand {
    font-size: clamp(1.65rem, 7.5vh, 2.75rem);
    margin-bottom: 0.15rem;
  }
  .hero__tag {
    font-size: clamp(0.78rem, 3.2vh, 1.05rem);
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
  }
  .hero__lead {
    display: none;
  }
  .hero__cta {
    gap: 0.5rem;
  }
  .hero__cta .btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.88rem;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.features {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
.feature {
  padding: 1.5rem;
  border-left: 3px solid var(--ember);
  background: linear-gradient(90deg, rgba(232,93,4,0.08), transparent);
}
.feature h3 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.feature p { margin: 0; color: var(--text-dim); }

/* Auth pages */
.auth-page {
  min-height: calc(100vh - var(--topbar-h));
  display: grid; place-items: center; padding: 2rem 1rem;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  animation: fadeUp 0.45s ease;
}
.auth-card h1 { font-size: 2rem; }
.auth-card .lede { color: var(--muted); margin-bottom: 1.25rem; }
.founder-signup {
  margin: -0.5rem 0 1.15rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--ember-2, #e07a3a) 35%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--ember-2, #e07a3a) 10%, var(--panel));
}
.founder-signup__promo {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
}
.founder-signup__remain {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ember-2, #e07a3a);
}
.auth-switch { text-align: center; margin-top: 1.25rem; color: var(--muted); font-size: 0.9rem; }
.captcha-block { margin-top: 0.25rem; }
.captcha-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  margin: 0.35rem 0 0.5rem;
}
.captcha-img {
  display: block; width: 240px; height: 72px;
  border: 1px solid var(--border); border-radius: 6px;
  background: #f4f0e8; image-rendering: auto;
}
.captcha-actions { display: flex; flex-direction: column; gap: 0.35rem; }
.captcha-math {
  font-size: 1.35rem; letter-spacing: 0.04em;
  margin: 0.35rem 0 0.25rem; color: var(--text);
}
.captcha-alt {
  margin-top: 0.45rem; font-size: 0.85rem; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem;
}
.captcha-alt .linkish, button.linkish {
  background: none; border: 0; padding: 0; color: var(--ember-2);
  cursor: pointer; font: inherit; text-decoration: underline;
}
.captcha-alt .linkish:hover, button.linkish:hover { color: var(--ember); }

/* Compose / posts */
.compose textarea { min-height: 90px; }
.compose__actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-top: 0.75rem; flex-wrap: wrap;
}
.post {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  animation: fadeUp 0.4s ease both;
}
.post__head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem 0.5rem;
}
.post__meta { flex: 1; min-width: 0; }
.post__meta a { color: var(--text); font-weight: 700; }
.post__meta a:hover { color: var(--ember-2); }
.post__time { display: block; font-size: 0.78rem; color: var(--muted); }
.post__crew {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  margin-top: 0.35rem;
}
.post--crew { border-color: color-mix(in srgb, var(--ember) 28%, var(--border)); }
.crew-vis {
  border: 0; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.crew-vis__opt {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.92rem; cursor: pointer;
}
.crew-vis__opt input { margin-top: 0.2rem; }
.post__body { padding: 0.35rem 1rem 0.75rem; }
.post__body-text { white-space: pre-wrap; word-break: break-word; }
.post__images {
  display: grid; gap: 2px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.post__images img {
  width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--trail);
}
.post__images.single img { aspect-ratio: 4/3; max-height: 480px; }
.post__video {
  margin: 0 0 0.75rem;
}
.yt-embed {
  position: relative;
  width: 100%;
  background: linear-gradient(160deg, var(--panel-2) 0%, var(--trail) 55%, #1a1008 100%);
  overflow: hidden;
  border: 0;
  border-block: 1px solid var(--border);
}
.yt-embed--wide { aspect-ratio: 16 / 9; }
.yt-embed--short {
  aspect-ratio: 9 / 16;
  max-width: min(360px, 100%);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
.yt-embed__play {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.yt-embed__thumb {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  transition: filter 0.2s ease, transform 0.25s ease;
}
.yt-embed__thumb[hidden] { display: none !important; }
.yt-embed__ph[hidden] { display: none !important; }
.yt-embed__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.1rem 1.25rem 4.25rem;
  text-align: center;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 18% 8%, color-mix(in srgb, var(--ember) 32%, transparent), transparent 52%),
    linear-gradient(165deg, color-mix(in srgb, var(--panel-2) 80%, var(--ember)) 0%, var(--trail) 58%, #160e08 100%);
}
.yt-embed__ph-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-2);
}
.yt-embed__ph-title {
  color: var(--sand);
  font-weight: 700;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.3;
  max-width: 28ch;
  text-wrap: balance;
}
.yt-embed--fallback .yt-embed__thumb {
  display: none !important;
}
.yt-embed__btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.yt-embed__btn svg {
  width: 68px;
  height: 48px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease;
}
.yt-embed__play:hover .yt-embed__thumb,
.yt-embed__play:focus-visible .yt-embed__thumb {
  filter: brightness(0.82);
}
.yt-embed__play:hover .yt-embed__btn svg,
.yt-embed__play:focus-visible .yt-embed__btn svg {
  transform: scale(1.08);
}
.yt-embed__play:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ember) 80%, #fff);
  outline-offset: -2px;
}
.yt-embed.is-playing .yt-embed__play {
  pointer-events: none;
  z-index: 0;
}
.yt-embed.is-playing .yt-embed__btn { display: none; }
.yt-embed.is-playing iframe { z-index: 1; }
.yt-embed__open {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sand);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.85;
}
.yt-embed__open:hover,
.yt-embed__open:focus-visible {
  opacity: 1;
  color: #fff;
}
.yt-preview[hidden] { display: none !important; }
.yt-preview {
  margin-top: 0.7rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.34),
    0 0 0 1px color-mix(in srgb, var(--ember) 14%, transparent);
  animation: yt-preview-in 0.32s ease;
}
@keyframes yt-preview-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .yt-preview { animation: none; }
  .yt-preview .yt-embed__thumb { transition: none; }
  .yt-preview .yt-embed__btn svg { transition: none; }
}
.yt-preview .yt-embed {
  border: 0;
  border-radius: 0;
}
.yt-preview .yt-embed--short {
  max-width: none;
  margin: 0;
  border-radius: 0;
  aspect-ratio: 16 / 9;
}
.yt-preview__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem 0.7rem;
  background: color-mix(in srgb, var(--panel) 78%, #000);
  border-top: 1px solid var(--border);
}
.yt-preview__copy {
  flex: 1;
  min-width: 0;
}
.yt-preview__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.18rem;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ember) 20%, var(--panel-2));
  color: var(--ember-2);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.yt-preview__badge--short {
  background: color-mix(in srgb, var(--info) 26%, var(--panel-2));
  color: var(--sand);
}
.yt-preview__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.yt-preview__url {
  margin: 0.12rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yt-preview__actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
}
.yt-preview__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.yt-preview__action:hover,
.yt-preview__action:focus-visible {
  color: var(--text);
  border-color: color-mix(in srgb, var(--ember) 40%, var(--border-strong));
  background: color-mix(in srgb, var(--ember) 10%, transparent);
}
.yt-preview__action:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ember) 70%, transparent);
  outline-offset: 2px;
}
.yt-preview__action--remove:hover,
.yt-preview__action--remove:focus-visible {
  color: #fff;
  border-color: color-mix(in srgb, var(--danger) 55%, var(--border));
  background: color-mix(in srgb, var(--danger) 78%, #000);
}
@media (max-width: 520px) {
  .yt-preview__meta {
    flex-direction: column;
    align-items: stretch;
  }
  .yt-preview__actions {
    width: 100%;
  }
  .yt-preview__action { flex: 1; }
}
.compose__youtube { margin: 0.65rem 0 0.25rem; }
.compose__youtube .input { font-size: 0.92rem; }
.post__actions {
  display: flex; gap: 0.25rem; padding: 0.35rem 0.5rem;
  border-top: 1px solid var(--border);
}
.post__action {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.55rem; border: 0; background: transparent; color: var(--text-dim);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem;
}
.post__action:hover { background: var(--panel-2); color: var(--text); }
.post__action.is-liked { color: var(--ember); }
.post__action svg { fill: none; transition: fill 0.12s ease, color 0.12s ease; }
.post__action.is-liked svg { fill: currentColor; }
.post__stats { padding: 0 1rem 0.5rem; font-size: 0.85rem; color: var(--muted); }

.comments { padding: 0 1rem 1rem; border-top: 1px solid var(--border); }
.comment {
  display: flex; gap: 0.65rem; padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.comment:last-child { border-bottom: 0; }
.comment__body { flex: 1; font-size: 0.92rem; }
.comment__body strong a { color: var(--text); }
.comment__text {
  margin: 0.15rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.comment-form { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.comment-form .input { flex: 1; }

/* Shared comments */
.cmt-card { padding: 0 0.95rem 0.85rem; min-width: 0; overflow-wrap: anywhere; }
.cmt-section { margin-top: 1rem; }
.cmt-section .cmt-list { margin: 0.25rem 0 0.75rem; }
.cmt {
  display: flex;
  gap: 0.65rem;
  padding: 0.55rem 0;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}
.cmt__avatar { flex: 0 0 auto; }
.cmt__main { flex: 1; min-width: 0; }
.cmt__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
}
.cmt__name {
  font-weight: 700;
  color: var(--text);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cmt__time { font-size: 0.8rem; color: var(--muted); }
.cmt__text {
  margin: 0.2rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.cmt__reply-to,
.cmt__edited {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cmt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-top: 0.25rem;
}
.cmt__act {
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.55rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.cmt__act:hover,
.cmt__act:focus-visible { background: var(--panel-2); color: var(--text); }
.cmt__act:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.cmt--reply { padding-left: 0; }
.cmt__replies {
  margin-left: 2.6rem;
  padding-left: 0.65rem;
  border-left: 2px solid var(--border);
}
.cmt-card__all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.cmt-card__all:hover,
.cmt-card__all:focus-visible { color: var(--text); }
.cmt-card__panel { margin-top: 0.35rem; }
.cmt-card__panel[hidden],
.cmt-dialog-backdrop[hidden],
.cmt-more-menu[hidden] { display: none !important; }
.cmt-card__state { margin: 0.35rem 0; font-size: 0.88rem; color: var(--muted); }
.cmt-card__state--error { color: var(--ember); }
.cmt-form { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.65rem; }
.cmt-form__input {
  width: 100%;
  min-height: 44px;
  max-height: 200px;
  resize: none;
  overflow-y: auto;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  font: inherit;
}
.cmt-form__input:focus { outline: 2px solid var(--ember); outline-offset: 1px; }
.cmt-form__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.cmt-form__reply { margin: 0; flex: 1; font-size: 0.82rem; color: var(--muted); }
.cmt-form__cancel {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.cmt-form__submit { min-height: 44px; min-width: 44px; }
.cmt-form__status { margin: 0; font-size: 0.85rem; }
.cmt-form__status.is-error { color: var(--ember); }
.cmt-form__status.is-ok { color: var(--ok, #3d9a5b); }
.cmt-form.is-submitting .cmt-form__submit { opacity: 0.65; pointer-events: none; }
.cmt-status { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted); }
.cmt-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}
.cmt-dialog {
  width: min(36rem, 100%);
  background: var(--bg-elev, var(--panel));
  border: 1px solid var(--border-strong, var(--border));
  border-radius: 16px;
  padding: 1rem;
}
.cmt-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.cmt-dialog__head h3 { margin: 0; }
.cmt-dialog__close {
  width: 44px; height: 44px; border: 0; background: transparent;
  color: var(--text); font-size: 1.5rem; border-radius: 50%; cursor: pointer;
}
.cmt-dialog__actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.65rem; }
.cmt-more-menu {
  position: fixed;
  z-index: 95;
  min-width: 11rem;
  background: var(--bg-elev, var(--panel));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  padding: 0.3rem;
}
.cmt-more-menu__item {
  display: block;
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 0.45rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}
.cmt-more-menu__item:hover,
.cmt-more-menu__item:focus-visible { background: var(--panel-2); }
.cmt-more-menu__item--danger { color: var(--ember); }
@media (min-width: 720px) {
  .cmt-dialog-backdrop { align-items: center; }
}
@media (max-width: 559px) {
  .cmt__replies {
    margin-left: 0.65rem;
    padding-left: 0.4rem;
  }
  .cmt__actions { gap: 0.05rem; }
}

.rxn { position: relative; display: inline-flex; align-items: center; gap: 0.25rem; }
.post__actions > .rxn { justify-content: center; min-width: 0; }
.rxn__btn.is-on,
.rxn__btn.is-on .rxn__label { color: var(--ember); }
.rxn__picker {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem;
  padding: 0.3rem;
  max-width: calc(100vw - 16px);
  box-sizing: border-box;
  background: var(--bg-elev, var(--panel));
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}
.rxn__picker--below {
  bottom: auto;
  top: calc(100% + 6px);
}
.rxn__picker[hidden] { display: none !important; }
.rxn__choice {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
}
.rxn__choice:hover,
.rxn__choice:focus-visible,
.rxn__choice.is-selected { background: var(--panel-2); transform: scale(1.12); }
.rxn__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.rxn__icons { display: inline-flex; gap: 0.05rem; }
.rxn--compact .rxn__label { font-size: 0.8rem; }
.rxn-break { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.rxn-break__group h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.rxn-break__group ul { list-style: none; margin: 0; padding: 0; }
.rxn-break__user a { display: flex; align-items: center; gap: 0.45rem; min-height: 44px; color: inherit; }
.post__stats { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }

/* Profile */
.profile-hero {
  background:
    linear-gradient(180deg, rgba(232,93,4,0.15), transparent 70%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
}
.profile-hero .avatar--lg { margin: 0 auto 0.75rem; }
.profile-stats {
  display: flex; justify-content: center; gap: 1.5rem; margin: 1rem 0;
}
.profile-stats strong { display: block; font-size: 1.2rem; font-family: var(--font-display); }
.profile-stats span { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.profile-short-url { margin: 0.35rem 0 0; font-size: 0.95rem; }
.profile-short-url a { color: var(--ember-2); font-weight: 600; }
.profile-bio { max-width: 40rem; margin: 0.75rem auto; }
button.linkish {
  background: none; border: 0; padding: 0; color: var(--ember-2); font-weight: 600; text-decoration: underline;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item {
  position: relative; display: block; aspect-ratio: 1;
  overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--panel);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-grid:not(.gallery-grid--manage) .gallery-item__badge {
  position: absolute;
  left: 0.45rem;
  top: 0.45rem;
  z-index: 2;
}
.gallery-grid--manage .gallery-item {
  display: flex; flex-direction: column; aspect-ratio: auto;
}
.gallery-grid--manage .gallery-item a { aspect-ratio: 1; display: block; overflow: hidden; }
.gallery-grid--manage .gallery-item form { padding: 0.4rem; }
.gallery-item__actions {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
  padding: 0.4rem;
}
.gallery-item__actions form { padding: 0; margin: 0; }
.logo-edit-preview .crew-logo {
  width: 96px; height: 96px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--border);
}

/* Image rotate / crop editor */
.img-editor {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.82); padding: 1rem;
}
.img-editor.is-open { display: flex; }
.img-editor__dialog {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  max-height: 96vh; overflow: auto;
}
.img-editor__dialog h3 { margin: 0 0 0.35rem; }
.img-editor__hint { margin: 0 0 0.75rem; font-size: 0.85rem; color: var(--muted); }
.img-editor__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: min(60vh, 420px);
  background: #0a0908;
  border-radius: 8px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.img-editor__stage canvas {
  display: block; width: 100%; height: 100%;
}
.img-editor__crop {
  position: absolute;
  border: 2px solid #f0c14b;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.45);
  cursor: move;
  box-sizing: border-box;
  touch-action: none;
}
.img-editor__handle {
  position: absolute;
  width: 22px;
  height: 22px;
  background: #f0c14b;
  border: 2px solid #1a1208;
  border-radius: 4px;
  z-index: 2;
  touch-action: none;
}
.img-editor__handle[data-handle="nw"] { left: -11px; top: -11px; cursor: nwse-resize; }
.img-editor__handle[data-handle="ne"] { right: -11px; top: -11px; cursor: nesw-resize; }
.img-editor__handle[data-handle="sw"] { left: -11px; bottom: -11px; cursor: nesw-resize; }
.img-editor__handle[data-handle="se"] { right: -11px; bottom: -11px; cursor: nwse-resize; }
.img-editor__focal {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ember) 85%, #000);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.45);
  cursor: grab;
  z-index: 3;
  touch-action: none;
  padding: 0;
}
.img-editor__focal:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.img-editor--cover .img-editor__stage {
  aspect-ratio: 16 / 9;
  max-height: min(58vh, 420px);
}
@media (max-width: 767px) {
  .img-editor {
    padding: 0;
    align-items: flex-end;
  }
  .img-editor__dialog {
    width: 100%;
    max-width: none;
    border-radius: 16px 16px 0 0;
    max-height: 96vh;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  .img-editor__stage { max-height: 48vh; }
  .img-editor__handle {
    width: 28px;
    height: 28px;
  }
  .img-editor__handle[data-handle="nw"] { left: -14px; top: -14px; }
  .img-editor__handle[data-handle="ne"] { right: -14px; top: -14px; }
  .img-editor__handle[data-handle="sw"] { left: -14px; bottom: -14px; }
  .img-editor__handle[data-handle="se"] { right: -14px; bottom: -14px; }
  .img-editor__focal {
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
  }
  .img-editor__tools .btn,
  .img-editor__actions .btn {
    min-height: 44px;
    flex: 1;
  }
  .img-editor__actions { flex-wrap: wrap; }
}
.img-editor__tools {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem;
}
.img-editor__actions {
  display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem;
}
.img-editor__error {
  margin: 0.75rem 0 0;
  color: var(--danger);
  font-size: 0.9rem;
}
.img-editor.is-processing .img-editor__crop,
.img-editor.is-processing .img-editor__stage {
  pointer-events: none;
}
.share-badge-preview {
  background: #0e0b09; border-radius: var(--radius); padding: 0.75rem;
  text-align: center; border: 1px solid var(--border);
}
.share-badge-preview img {
  max-width: 100%; height: auto; border-radius: 8px; margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.share-link-box { margin-top: 1rem; }
body.sdb-lb-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}
.sdb-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sdb-lb[hidden] { display: none !important; }
.sdb-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.88);
}
.sdb-lb__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1100px, 92vw);
  max-height: min(90vh, 920px);
  margin: 0.75rem;
}
.sdb-lb__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  flex: 1;
  touch-action: pan-y;
}
.sdb-lb__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
}
.sdb-lb__close,
.sdb-lb__nav {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 10, 14, 0.62);
  color: #fff;
  cursor: pointer;
  font: inherit;
}
.sdb-lb__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
}
.sdb-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
}
.sdb-lb__nav--prev { left: 0; }
.sdb-lb__nav--next { right: 0; }
.sdb-lb__nav[hidden],
.sdb-lb__counter[hidden],
.sdb-lb__author[hidden],
.sdb-lb__caption[hidden] { display: none !important; }
.sdb-lb__meta {
  margin-top: 0.65rem;
  color: #f2f2f2;
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.sdb-lb__counter,
.sdb-lb__author,
.sdb-lb__caption {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
}
.sdb-lb__author { font-weight: 700; }
.sdb-lb__caption { color: rgba(255, 255, 255, 0.82); }
.sdb-lb__original {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sdb-lb__original:hover,
.sdb-lb__original:focus-visible { color: #fff; }
@media (max-width: 767px) {
  .sdb-lb__dialog {
    width: 100vw;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    padding: 3.25rem 0.5rem 5.5rem;
    box-sizing: border-box;
  }
  .sdb-lb__img {
    max-width: 100vw;
    max-height: calc(100dvh - 9rem);
    border-radius: 0;
  }
  .sdb-lb__close {
    top: 0.55rem;
    right: 0.55rem;
    min-width: 44px;
    min-height: 44px;
  }
  .sdb-lb__nav {
    min-width: 44px;
    min-height: 44px;
    transform: none;
    top: auto;
    bottom: 0.85rem;
  }
  .sdb-lb__nav--prev { left: 0.55rem; }
  .sdb-lb__nav--next { right: 0.55rem; }
  .sdb-lb__meta {
    position: absolute;
    left: 3.75rem;
    right: 3.75rem;
    bottom: 0.7rem;
  }
}
@media (min-width: 768px) {
  .sdb-lb__close:hover,
  .sdb-lb__nav:hover { background: rgba(8, 10, 14, 0.86); }
}

/* Lists / grids */
.card-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.media-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s;
  display: flex; flex-direction: column;
}
.media-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.media-card__img {
  aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--trail);
}
.media-card__img--logo {
  aspect-ratio: 1;
  object-fit: cover;
}
/* Event cards: show the whole flyer inside a compact 16:9 frame */
.media-card--event > .media-card__media,
.media-card--event > a.media-card__media,
.media-card--event > .event-media {
  display: block;
  aspect-ratio: 16 / 9;
  max-height: 190px;
  background: #121417;
  overflow: hidden;
}
.media-card--event .media-card__img,
.media-card--event .event-media__img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  display: block;
}
.event-media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.2rem;
  aspect-ratio: 16 / 9;
  max-height: 190px;
  width: 100%;
  padding: 0.7rem 0.8rem;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
a.event-media {
  cursor: pointer;
}
.event-media--photo {
  padding: 0;
  background: #121417;
}
.event-media--photo .event-media__img,
.event-media__poster {
  display: block;
  width: 100%;
  height: 100%;
}
.event-media__poster img,
.event-media--photo > .event-media__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.event-media--placeholder {
  background:
    radial-gradient(ellipse at 22% 18%, rgba(244, 162, 97, 0.22), transparent 45%),
    radial-gradient(ellipse at 88% 80%, rgba(232, 93, 4, 0.18), transparent 50%),
    linear-gradient(155deg, #2c2218 0%, #161310 55%, #0f0d0b 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, var(--ember));
}
.event-media__icon {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  border: 1px solid rgba(244, 162, 97, 0.45);
  background:
    linear-gradient(135deg, transparent 45%, rgba(244, 162, 97, 0.85) 45%, rgba(244, 162, 97, 0.85) 55%, transparent 55%),
    linear-gradient(45deg, transparent 45%, rgba(244, 162, 97, 0.55) 45%, rgba(244, 162, 97, 0.55) 55%, transparent 55%);
  opacity: 0.9;
}
.event-media__cat {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ember-2, #f4a261);
}
.event-media__title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--sand, var(--text));
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-media__when {
  font-size: 0.78rem;
  color: var(--muted);
}
.post-event__media-wrap {
  border-radius: 12px 12px 0 0;
}
.explore-card__media--event-ph {
  width: 100%;
  border-radius: 0;
}
.media-card--preview.media-card--event > .media-card__img-wrap,
.media-card--preview .media-card__img-wrap {
  aspect-ratio: 4 / 3;
  background: #121417;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-card--preview.media-card--event .media-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-card__meta--strong {
  color: var(--text-dim);
  font-size: 0.88rem;
}
.media-card__crew {
  margin: 0.15rem 0 0.35rem;
}
.media-card__crew .crew-badge {
  margin: 0;
}
.media-card__body { padding: 0.9rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; }
.media-card__body h3 {
  font-size: 1.2rem; margin-bottom: 0.25rem;
}
.media-card__body h3 a { color: var(--text); }
.media-card__meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }
.media-card__desc { color: var(--text-dim); font-size: 0.9rem; flex: 1; }
.pill {
  display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(232,93,4,0.15); color: var(--ember-2); border: 1px solid rgba(232,93,4,0.3);
}
.pill--dust { background: rgba(196,165,116,0.15); color: var(--dust); border-color: rgba(196,165,116,0.3); }
.pill--ok { background: rgba(64,145,108,0.15); color: #74c69d; border-color: rgba(64,145,108,0.35); }
.price-tag {
  font-family: var(--font-display); font-size: 1.4rem; color: var(--ember-2); letter-spacing: 0.02em;
}

/* Empty state */
.empty {
  text-align: center; padding: 2.5rem 1.25rem;
  color: var(--muted); border: 1px dashed var(--border-strong);
  border-radius: var(--radius); background: rgba(255,255,255,0.02);
}
.empty h3 { color: var(--sand); margin-bottom: 0.5rem; }

.guest-cta h2 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}
.guest-cta p { margin-bottom: 1rem; }

/* Notifications */
.notify-item {
  display: flex; gap: 0.75rem; padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.notify-item:hover { background: var(--panel-2); }
.notify-item.is-unread { background: rgba(232,93,4,0.08); }
.notify-item p { margin: 0; font-size: 0.92rem; }
.notify-item time { font-size: 0.75rem; color: var(--muted); }

/* Detail pages (rides still use landscape cover crop) */
.detail-cover {
  width: 100%; aspect-ratio: 21/9; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 1rem; background: var(--trail);
}
.detail-cover-link {
  display: block;
  margin-bottom: 1rem;
}
.detail-cover-link .detail-cover { margin-bottom: 0; }

/* Event flyer/poster — full image, never cropped on the detail page */
.event-cover {
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #121417;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-cover__link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  text-decoration: none;
}
.event-cover__img {
  width: 100%;
  height: auto;
  max-height: min(75vh, 900px);
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
}
.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
}
.share-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.share-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(80vh, 520px);
  overflow: auto;
  background: var(--bg-elev);
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  padding: 0.5rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.45);
}
.share-sheet__handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
  margin: 0.25rem auto 0.5rem;
}
.share-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.share-sheet__head h3 { margin: 0; font-size: 1.15rem; }
.share-sheet__close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
}
.share-sheet__close:hover,
.share-sheet__close:focus-visible {
  background: var(--panel);
  color: var(--text);
}
.share-sheet__close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ember) 70%, transparent);
  outline-offset: 2px;
}
.share-sheet__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.share-sheet__action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.3;
  cursor: pointer;
  font-family: inherit;
}
.share-sheet__action:hover,
.share-sheet__action:focus-visible {
  border-color: color-mix(in srgb, var(--ember) 45%, var(--border-strong));
  background: color-mix(in srgb, var(--ember) 10%, var(--panel));
  color: inherit;
}
.share-sheet__action:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ember) 70%, transparent);
  outline-offset: 2px;
}
.share-sheet__copied {
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--success);
  font-weight: 700;
  font-size: 0.9rem;
}
body.share-sheet-open { overflow: hidden; }
@media (min-width: 768px) {
  .share-sheet__panel {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 2rem));
    max-height: min(80vh, 480px);
    border-radius: 16px;
    border: 1px solid var(--border-strong);
  }
  .share-sheet__handle { display: none; }
}
.attendee-list {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem;
}
.attendee {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  background: var(--bg-elev); border-radius: 999px; border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text);
}
.attendee img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* Tabs / chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.chip {
  padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-dim); font-size: 0.8rem; font-weight: 600;
}
.chip.is-active, .chip:hover { background: var(--ember); border-color: var(--ember); color: #fff; }

/* Admin */
.page-admin .desk-nav { display: none !important; }
.page-admin { overflow-x: clip; }
.page-admin .main--wide {
  max-width: 1280px;
  padding: 0.75rem 0.9rem 2.5rem;
  min-width: 0;
  overflow-x: clip;
}
.page-admin .flash-stack { max-width: 1280px; }
.page-admin h1 { font-size: clamp(1.35rem, 4vw, 1.85rem); }
.page-admin h2 { overflow-wrap: anywhere; }
.page-admin .input,
.page-admin .select { min-height: 44px; }
/* Every wrapper between the page and a wide table must be shrinkable, otherwise
   table.data min-width bubbles up into a page-level horizontal scrollbar. */
.page-admin .card-grid,
.page-admin .panel,
.page-admin .stat,
.page-admin section,
.page-admin form { min-width: 0; }

.admin-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  overflow-x: clip;
}
.admin-chrome { min-width: 0; }
.admin-main { min-width: 0; width: 100%; overflow-x: clip; }
.admin-layout > .admin-chrome + * { min-width: 0; width: 100%; }

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: sticky;
  top: var(--topbar-h);
  z-index: 45;
  margin: -0.15rem 0 0.15rem;
  padding: 0.4rem 0;
  background: var(--bg);
}
.admin-toolbar__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.admin-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.admin-menu-btn:hover,
.admin-menu-btn:focus-visible {
  border-color: var(--ember);
  color: var(--ember-2);
}

.admin-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(20rem, 88vw);
  z-index: 90;
  transform: translateX(-105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s ease, visibility 0.22s ease;
  background: var(--panel);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow-y: auto;
  padding: 0.75rem 0.7rem 1.5rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.admin-chrome.is-open .admin-drawer {
  transform: none;
  visibility: visible;
  pointer-events: auto;
}
.admin-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.45rem 0.85rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.admin-drawer__head strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-drawer__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(0, 0, 0, 0.55);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
}
.admin-chrome.is-open .admin-drawer__backdrop { display: block; }
body.admin-nav-open { overflow: hidden; }

.admin-nav { display: flex; flex-direction: column; }
.admin-nav__group { display: flex; flex-direction: column; gap: 0.12rem; margin-bottom: 0.9rem; }
.admin-nav__group--foot {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.admin-nav__label {
  margin: 0;
  padding: 0.2rem 0.75rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
}
.admin-nav a.is-active,
.admin-nav a:hover { background: var(--panel-2); color: var(--ember-2); }

.admin-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.admin-shortcuts a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
}
.admin-shortcuts a:hover,
.admin-shortcuts a:focus-visible {
  border-color: var(--ember);
  color: var(--ember-2);
}
.admin-shortcuts .pill { flex-shrink: 0; }

.stat-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}
@media (min-width: 700px) {
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem;
  min-width: 0;
}
.stat strong, .stat span, .stat small { overflow-wrap: anywhere; }
.stat strong {
  display: block; font-family: var(--font-display); font-size: 2rem; color: var(--ember-2);
}
.stat span { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat small { display: block; margin-top: 0.2rem; font-size: 0.75rem; }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table.data {
  width: 100%; border-collapse: collapse; font-size: 0.88rem; background: var(--panel);
}
.page-admin table.data { min-width: 36rem; }
.page-admin table.data .btn { white-space: nowrap; }
table.data th, table.data td {
  padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border);
}
table.data th {
  background: var(--panel-2); color: var(--dust);
  font-family: var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.8rem;
  white-space: nowrap;
}
table.data tr:hover td { background: rgba(255,255,255,0.02); }
table.data td { word-break: break-word; }

.event-import-paste {
  min-height: 12rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
}
.event-import-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
}
.event-import-toolbar--submit {
  flex-direction: column;
  align-items: stretch;
  margin: 1rem 0 0;
}
.event-import-feed-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 700;
}
.event-import-feed-opt input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
}
.event-import-checkall {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-weight: 700;
}
.event-import-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.event-import-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.event-import-item__head label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
}
.event-import-item--dup {
  border-color: color-mix(in srgb, #e8a838 45%, var(--border));
}
.event-import-excluded {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: rgba(74, 111, 165, 0.18);
  border: 1px solid var(--info);
  color: var(--text);
  font-weight: 700;
}
.event-import-submit {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 800;
}
.event-import-results h2 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}
.event-import-result-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.event-import-result {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.event-import-result--ok {
  border-color: color-mix(in srgb, var(--success) 50%, var(--border));
  background: rgba(64, 145, 108, 0.12);
}
.event-import-result--error {
  border-color: color-mix(in srgb, var(--danger) 50%, var(--border));
  background: rgba(193, 18, 31, 0.12);
}
.event-import-result--skipped {
  border-color: color-mix(in srgb, var(--info) 50%, var(--border));
  background: rgba(74, 111, 165, 0.12);
}

.admin-alerts { display: grid; gap: 0.5rem; }
.admin-alert {
  display: block; padding: 0.75rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 600;
  border: 1px solid transparent; min-height: 44px;
}
.admin-alert--warn { background: rgba(232,168,56,0.12); border-color: rgba(232,168,56,0.35); color: #f0c674; }
.admin-alert--danger { background: rgba(200,60,50,0.12); border-color: rgba(200,60,50,0.4); color: #f2a19a; }
.admin-spark {
  display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: 0.5rem;
}
.admin-spark span {
  flex: 1; min-width: 4px; background: linear-gradient(180deg, var(--ember-2), rgba(232,93,4,0.35));
  border-radius: 2px 2px 0 0;
}
.admin-kv, .admin-health { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.admin-kv li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-kv li > span:first-child { color: var(--muted); }
.admin-kv li strong { word-break: break-word; text-align: right; }
.admin-health li {
  display: flex; align-items: center; gap: 0.65rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--muted);
}
.admin-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; min-width: 0; }
.admin-filters .input, .admin-filters .select { flex: 1; min-width: 140px; min-height: 44px; }
.admin-filters .btn { min-height: 44px; }
.admin-filters > form { display: flex; gap: 0.5rem; margin: 0; min-width: 0; }
.admin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.admin-chip-row .btn { min-height: 44px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.admin-actions .btn { min-height: 44px; }
.admin-mod-form {
  display: grid; gap: 0.5rem; margin-bottom: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-mod-form:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.admin-mod-form .btn { min-height: 44px; width: 100%; }
.pill--danger { background: rgba(200,60,50,0.15); color: #f2a19a; border-color: rgba(200,60,50,0.35); }
.pill--warn { background: rgba(232,168,56,0.15); color: #f0c674; border-color: rgba(232,168,56,0.35); }

@media (max-width: 959px) {
  .page-admin .section-head {
    flex-direction: column;
    align-items: stretch;
  }
  .page-admin .section-head .btn { width: 100%; justify-content: center; min-height: 44px; }
  .page-admin .stat { padding: 0.75rem; }
  .page-admin .stat strong { font-size: 1.45rem; }
  .admin-filters { flex-direction: column; align-items: stretch; }
  .admin-filters > form { width: 100%; }
  .admin-filters .input,
  .admin-filters .select,
  .admin-filters .btn { width: 100%; min-width: 0; }
  .admin-kv li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .admin-kv li strong { text-align: left; }
  .page-admin .form-row--2 { grid-template-columns: 1fr; }
  .page-admin .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .page-admin .card-grid--2 { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1101px) {
  .page-admin .card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .admin-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .admin-layout {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
  }
  .admin-toolbar,
  .admin-drawer__head,
  .admin-drawer__backdrop { display: none !important; }
  .admin-chrome {
    position: sticky;
    top: calc(var(--topbar-h) + 0.75rem);
  }
  .admin-drawer {
    position: static;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    width: auto;
    height: auto;
    max-height: calc(100vh - var(--topbar-h) - 1.5rem);
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
    z-index: auto;
    padding: 0.85rem 0.7rem;
  }
  .main--wide { padding-bottom: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-drawer { transition: none; }
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 80;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop.is-open { display: flex; animation: fadeUp 0.2s ease; }
.modal {
  width: 100%; max-width: 420px; background: var(--panel);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.modal h3 { margin-bottom: 0.75rem; }
.modal__actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }

/* Konami easter egg — crayon logo for this visit */
.egg-on .brand__logo,
.egg-on .hero__logo img {
  object-fit: contain;
}
.egg-on .brand__logo {
  max-width: min(260px, 58vw);
  max-height: calc(var(--topbar-h) - 10px);
}
.egg-logo-pop {
  animation: eggLogoPop 0.65s cubic-bezier(0.18, 0.9, 0.32, 1.15) both;
}
@media (pointer: coarse) {
  .brand,
  .hero__logo {
    touch-action: none;
  }
  .brand {
    min-width: 4.75rem;
    min-height: 44px;
  }
  .brand::before {
    content: "";
    position: absolute;
    inset: -10px -12px;
  }
}
@keyframes eggLogoPop {
  0% { transform: scale(0.45) rotate(-8deg); }
  55% { transform: scale(1.14) rotate(3deg); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .egg-logo-pop { animation: none; }
}

/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
/* Auth honeypot — offscreen, 1px, not in the accessibility tree; still posted for bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}
.hp-field input {
  position: absolute !important;
  left: -10000px !important;
  top: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.grow { flex: 1; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-1 { margin-bottom: 1rem; }
.hidden { display: none !important; }

@media (min-width: 768px) {
  .bottom-nav { display: none; }
  .main { padding-bottom: 2rem; }
  .site-footer--nav { padding-bottom: 2rem; }
  .page-landing .site-footer--nav { padding-bottom: 2rem; }
  .desktop-nav {
    display: flex; gap: 0.25rem; margin-left: 1rem;
  }
}

/* Desktop secondary nav in topbar when authed */
.desk-nav { display: none; }
@media (min-width: 900px) {
  .desk-nav {
    display: flex; gap: 0.1rem; flex: 1; justify-content: center; flex-wrap: wrap;
  }
  .desk-nav a {
    padding: 0.35rem 0.55rem; border-radius: 999px; color: var(--muted);
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  }
  .desk-nav a.is-active, .desk-nav a:hover { color: var(--ember-2); background: rgba(232,93,4,0.1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Detail meta / trust / safety / messaging */
.meta-pills { flex-wrap: wrap; gap: 0.35rem; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem 1rem;
  margin: 0.75rem 0 0;
}
@media (min-width: 560px) {
  .detail-grid { grid-template-columns: 1fr 1fr; }
}
.detail-grid--profile {
  text-align: left;
  margin: 1rem auto;
  max-width: 36rem;
}
.detail-grid dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.15rem;
}
.detail-grid dd { margin: 0; color: var(--sand); }
.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.15);
  font-size: 0.88rem;
  cursor: pointer;
}
.check-pill input { accent-color: var(--ember); }

/* Ride-area multi-select chips */
.ride-areas { margin-top: 0.35rem; }
.ride-areas__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.area-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(100%, 9.5rem);
  flex: 1 1 auto;
  max-width: 100%;
  padding: 0.65rem 0.75rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.area-chip:hover {
  border-color: rgba(232, 93, 4, 0.45);
  background: rgba(232, 93, 4, 0.06);
}
.area-chip.is-selected {
  border-color: rgba(232, 93, 4, 0.75);
  background: rgba(232, 93, 4, 0.12);
  box-shadow: inset 0 0 0 1px rgba(232, 93, 4, 0.25);
}
.area-chip.is-primary {
  border-color: var(--ember);
  background: linear-gradient(145deg, rgba(232, 93, 4, 0.22), rgba(232, 93, 4, 0.08));
}
.area-chip input[data-area-check] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.area-chip__label {
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--sand);
  line-height: 1.25;
}
.area-chip__primary {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.area-chip.is-selected .area-chip__primary { display: inline-flex; }
.area-chip__primary input {
  accent-color: var(--ember);
  margin: 0;
}
.area-chip.is-primary .area-chip__primary-text {
  color: var(--ember-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ride-areas__custom.is-hidden { display: none; }
.ride-areas__custom { margin-top: 0.65rem; }
.ride-areas__selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  min-height: 2rem;
}
.ride-areas__selected-empty {
  font-size: 0.88rem;
}
.ride-areas__sel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(232, 93, 4, 0.45);
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.12);
  color: var(--sand);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ride-areas__sel-chip.is-primary {
  border-color: var(--ember);
  background: rgba(232, 93, 4, 0.22);
}
.ride-areas__sel-chip--extra {
  border-style: dashed;
}
.ride-areas__sel-chip:hover {
  border-color: var(--ember);
  color: #fff;
}
.ride-areas__search { margin-bottom: 0.65rem; }
.ride-areas__search .form-hint { margin: 0.3rem 0 0; }
.ride-areas__primary { margin-bottom: 0.75rem; }
.ride-areas__primary .select { width: 100%; }
.area-chip.is-filtered-out { display: none; }

/* Compact (crew) picker: the grid is a search result list, not a wall of chips.
   With an empty search box only the already-selected areas stay visible. */
.ride-areas--compact:not(.is-searching) .ride-areas__grid .area-chip:not(.is-selected),
[data-ride-areas-enhanced]:not(.is-searching) .ride-areas__grid .area-chip:not(.is-selected) {
  display: none;
}
.ride-areas--compact .ride-areas__grid:empty { display: none; }
.ride-areas__extras {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.ride-areas__add-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.25rem;
}
.ride-areas__add-panel.is-hidden { display: none; }
.ride-areas__add-panel .input { flex: 1 1 12rem; min-width: 0; }
.profile-ride-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 0.65rem 0 0.15rem;
}
.pill--primary-area {
  border-color: rgba(232, 93, 4, 0.55);
  color: var(--ember-2);
}
.pill__tag {
  margin-left: 0.35rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}
@media (max-width: 520px) {
  .area-chip {
    min-width: calc(50% - 0.35rem);
    flex: 1 1 calc(50% - 0.35rem);
  }
}
.safety-box {
  border-left: 3px solid var(--dust);
  background: rgba(196, 165, 116, 0.08);
  padding: 1rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0;
}
.safety-box h2, .safety-box h3 { margin-top: 0; }
.safety-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--sand);
}
.safety-list li { margin: 0.25rem 0; }
.trust-note {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--dust);
  font-size: 0.92rem;
}
.trust-note--soft {
  border-style: solid;
  border-color: var(--border);
  color: var(--muted);
  margin-top: -0.35rem;
}
.media-card__specs {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--dust);
}
.crew-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0 0.15rem;
  padding: 0.2rem 0.55rem 0.2rem 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--sand);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 100%;
}
.crew-badge img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.crew-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crew-badge--md {
  font-size: 0.92rem;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem;
}
.crew-badge--md img {
  width: 28px;
  height: 28px;
}
.crew-logo {
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}
.pill--sold {
  background: rgba(193, 18, 31, 0.2);
  color: #ff8a8a;
}
.chips--hubs { margin: 0.5rem 0 1.25rem; }

/* Trail patches / earned badges */
.patch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.5rem 0 1rem;
}
@media (min-width: 560px) {
  .patch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.patch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.28rem 0.55rem 0.28rem 0.35rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background:
    linear-gradient(145deg, rgba(40, 32, 24, 0.95), rgba(20, 16, 12, 0.9));
  color: var(--sand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.patch--md {
  font-size: 0.78rem;
  padding: 0.4rem 0.65rem 0.4rem 0.4rem;
  width: 100%;
}
.patch__mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 1px;
  background: var(--ember-2);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
  flex: 0 0 auto;
}
.patch--dust .patch__mark { background: var(--dust); }
.patch--steel .patch__mark { background: #8a9aa8; }
.patch--ok .patch__mark { background: #6f9e6a; }
.patch--ember .patch__mark { background: var(--ember-2); }
.patch__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.patch-inline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.founder-name {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  max-width: 100%;
  min-width: 0;
  vertical-align: middle;
}
.founder-name > a,
.founder-name > .post__name,
.founder-name > .cmt__name,
.founder-name > .profile-showcase__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.founder-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d4af37;
  vertical-align: middle;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.founder-badge:hover,
.founder-badge:focus-visible {
  color: #f0c36b;
}
.founder-badge:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}
.founder-badge__icon {
  flex: 0 0 auto;
  display: block;
  width: 14px;
  height: 14px;
  color: inherit;
}
.founder-badge--md {
  width: 1.35rem;
  height: 1.35rem;
}
.founder-badge--md .founder-badge__icon {
  width: 16px;
  height: 16px;
}
.founder-tip {
  position: fixed;
  z-index: 80;
  max-width: min(18rem, calc(100vw - 1.5rem));
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #1a1410;
  color: var(--sand, #f2e6d8);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.admin-founder-reassign {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.admin-founder-reassign .input {
  width: 4.2rem;
  min-height: 2rem;
  padding: 0.2rem 0.4rem;
}

.attendee-list--manage { display: flex; flex-direction: column; gap: 0.65rem; }
.attendee-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}
.attendee-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: 100%;
}
@media (min-width: 720px) {
  .attendee-actions { width: auto; margin-left: auto; }
}
.profile-section-title {
  margin: 1.1rem 0 0.45rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dust);
}
.profile-stats--rep {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
@media (min-width: 560px) {
  .profile-stats--rep { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .profile-stats--rep { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .profile-stats--rep { grid-template-columns: repeat(9, minmax(0, 1fr)); }
}

/* Crew club/team header */
.crew-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(232, 93, 4, 0.08), transparent 45%),
    var(--panel);
}
.crew-hero__brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.crew-hero__logo {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: var(--trail);
}
.crew-hero__text {
  min-width: 0;
  flex: 1;
}
.crew-hero__text h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
}
.crew-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
}
.crew-hero__stats {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}
.crew-hero__stats strong {
  color: var(--sand);
  font-weight: 700;
}
.crew-hero__share {
  margin: 0;
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
}
.crew-hero__share a {
  color: var(--ember-2);
  word-break: break-all;
}
.crew-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
@media (min-width: 720px) {
  .crew-hero {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .crew-hero__logo {
    width: 104px;
    height: 104px;
  }
  .crew-hero__actions {
    justify-content: flex-end;
    max-width: 280px;
  }
}
.prompt-stack {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}
.prompt-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--sand);
  background: rgba(0,0,0,0.2);
  font-size: 0.9rem;
}
.prompt-card__main {
  flex: 1 1 14rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.prompt-card__main:hover { color: var(--ember-2); }
.prompt-card__title {
  display: block;
  font-weight: 700;
}
.prompt-card__detail {
  display: block;
  margin-top: 0.35rem;
  color: var(--dust);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}
.prompt-card__cta {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.prompt-card__main:hover .prompt-card__detail { color: var(--sand); }
.prompt-card__dismiss {
  flex: 0 0 auto;
  margin-left: auto;
}
.prompt-dismiss-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dust);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prompt-dismiss-btn:hover { color: var(--sand); }
.prompt-dismiss-btn--inline {
  padding: 0;
  font-size: inherit;
  font-weight: 600;
}
.checklist-panel { margin-bottom: 1rem; }
.checklist {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.checklist li::before {
  content: '';
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  background: transparent;
}
.checklist li.is-done {
  color: var(--muted);
  text-decoration: line-through;
}
.checklist li.is-done::before {
  background: #6f9e6a;
  border-color: #6f9e6a;
}
.checklist li.is-todo a {
  color: var(--sand);
  font-weight: 700;
  text-decoration: none;
}
.checklist li.is-todo a:hover { color: var(--ember-2); }

/* Inbox / messages */
.inbox-head { margin-bottom: 0.75rem; }
.inbox {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  min-height: min(70vh, 640px);
}
@media (min-width: 800px) {
  .inbox {
    grid-template-columns: minmax(260px, 34%) 1fr;
  }
}
.inbox__list {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: rgba(0, 0, 0, 0.12);
  max-height: min(70vh, 640px);
  overflow: auto;
}
.inbox__list-label {
  padding: 0.75rem 1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.inbox__search {
  display: block;
  width: calc(100% - 1.5rem);
  margin: 0.65rem 0.75rem 0.35rem;
}
.inbox__search-empty {
  margin: 0 1rem 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.inbox__threads {
  list-style: none;
  margin: 0;
  padding: 0;
}
.inbox__row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}
.inbox__row:hover { background: rgba(232, 93, 4, 0.08); }
.inbox__row.is-active {
  background: rgba(232, 93, 4, 0.18);
  box-shadow: inset 3px 0 0 var(--ember);
  outline: 1px solid rgba(232, 93, 4, 0.35);
  outline-offset: -1px;
}
.inbox__row.is-active strong { color: var(--sand); }
.inbox__row.is-unread strong { color: var(--sand); }
.inbox__row.is-unread .inbox__row-preview { color: var(--text); font-weight: 600; }
.inbox__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--trail);
}
.inbox__row-main { min-width: 0; }
.inbox__row-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}
.inbox__row-top strong {
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox__row-top time {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.inbox__row-preview {
  margin-top: 0.15rem;
  font-size: 0.86rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox__unread {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.inbox__empty,
.inbox__placeholder {
  padding: 2rem 1.25rem;
  text-align: center;
}
.inbox__placeholder h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.inbox__pane {
  display: none;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  min-height: min(70vh, 640px);
  padding: 0;
}
.inbox--thread .inbox__pane { display: flex; }
.inbox--thread .inbox__list { display: none; }
@media (min-width: 800px) {
  .inbox__pane { display: flex; }
  .inbox--thread .inbox__list { display: block; }
  .inbox__pane { border-left: 1px solid var(--border); }
  .inbox__back { display: none; }
}
.inbox__pane-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}
.inbox__person {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  min-width: 0;
  flex: 1;
}
.inbox__person img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.inbox__person .founder-name {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  min-width: 0;
}
.inbox__person .founder-name > a {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.inbox__person strong { font-size: 1rem; }
.inbox__context {
  text-decoration: none;
  max-width: 100%;
}
.inbox__messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: auto;
  padding: 1rem;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(232, 93, 4, 0.06), transparent 55%),
    var(--bg-elev);
}
.inbox__start-hint { text-align: center; margin: auto; }
.bubble {
  max-width: min(88%, 30rem);
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  align-self: flex-start;
}
.bubble--theirs { border-bottom-left-radius: 4px; }
.bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.bubble time { display: block; margin-top: 0.35rem; font-size: 0.72rem; }
.bubble--mine {
  align-self: flex-end;
  background: rgba(232, 93, 4, 0.18);
  border-color: rgba(232, 93, 4, 0.35);
  border-bottom-right-radius: 4px;
}
.inbox__compose {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--panel);
}
@media (min-width: 560px) {
  .inbox__compose {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* Theme picker + onboarding */
.theme-picker {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 560px) {
  .theme-picker { grid-template-columns: 1fr 1fr; }
}
.theme-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.theme-card:hover { border-color: var(--border-strong); }
.theme-card:has(input:checked),
.theme-card:has(input:focus-visible),
.theme-card.is-selected {
  border-color: var(--ember-2);
  box-shadow: 0 0 0 1px var(--ember-2);
}
.theme-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.theme-card__swatch {
  display: flex;
  gap: 0.28rem;
  flex-shrink: 0;
}
.theme-card__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
}
.theme-card--dusk .theme-card__dot--bg { background: #14100c; }
.theme-card--dusk .theme-card__dot--panel { background: #241c16; }
.theme-card--dusk .theme-card__dot--accent { background: #e85d04; }
.theme-card--midnight .theme-card__dot--bg { background: #0a0c10; }
.theme-card--midnight .theme-card__dot--panel { background: #181e28; }
.theme-card--midnight .theme-card__dot--accent { background: #3d8bfd; }
.theme-card--coast .theme-card__dot--bg { background: #0c1618; }
.theme-card--coast .theme-card__dot--panel { background: #182a2d; }
.theme-card--coast .theme-card__dot--accent { background: #2a9d8f; }
.theme-card--chaparral .theme-card__dot--bg { background: #12140e; }
.theme-card--chaparral .theme-card__dot--panel { background: #23271a; }
.theme-card--chaparral .theme-card__dot--accent { background: #c4a035; }
.theme-card--fog .theme-card__dot--bg { background: #d8dde3; border-color: rgba(0,0,0,0.12); }
.theme-card--fog .theme-card__dot--panel { background: #f7f8fa; border-color: rgba(0,0,0,0.12); }
.theme-card--fog .theme-card__dot--accent { background: #b54a22; }
.theme-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.theme-card__meta strong {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
  color: var(--sand);
}
.theme-card__meta .muted {
  font-size: 0.8rem;
  line-height: 1.3;
}

.onboard {
  min-height: calc(100vh - var(--topbar-h));
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem 3rem;
}
.onboard__card {
  width: min(520px, 100%);
  padding: 1.5rem 1.35rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}
.onboard__progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.onboard__dot {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
}
.onboard__dot.is-active { background: var(--ember-2); }
.onboard__step {
  font-size: 0.8rem;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.onboard__card h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 0.4rem;
}
.onboard__card .lede {
  color: var(--text-dim);
  margin: 0 0 1.25rem;
}
.onboard__bullets {
  margin: 0 0 1.5rem;
  padding-left: 1.15rem;
  color: var(--text-dim);
}
.onboard__bullets li { margin-bottom: 0.4rem; }
.page-onboarding .desk-nav { display: none !important; }

/* —— Garage / rigs —— */
.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-2);
}
.garage-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.25rem;
  padding: 1.5rem 1.15rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(232, 93, 4, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(20, 16, 12, 0.95), rgba(40, 28, 18, 0.9)),
    var(--panel);
}
.garage-hero__copy h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  line-height: 1.1;
}
.garage-hero .lede {
  max-width: 36rem;
  margin: 0 0 1rem;
  color: var(--text-dim);
}
.garage-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.garage-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}
.garage-switch--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 14px;
}
.garage-switch__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.garage-switch--3 .garage-switch__tab {
  border-radius: 10px;
}
.garage-switch__tab:hover {
  color: var(--sand);
  background: rgba(255, 255, 255, 0.04);
}
.garage-switch__tab.is-active {
  color: #fff;
  background: var(--ember);
  box-shadow: 0 6px 18px rgba(232, 93, 4, 0.28);
}
.garage-switch__tab--action {
  color: var(--ember-2);
}
.garage-switch__tab--action:hover {
  color: #fff;
  background: rgba(232, 93, 4, 0.35);
}
@media (max-width: 560px) {
  .garage-switch--3 {
    gap: 0.25rem;
    padding: 0.25rem;
  }
  .garage-switch__tab {
    font-size: 0.68rem;
    min-height: 2.65rem;
    padding: 0.4rem 0.3rem;
    letter-spacing: 0.01em;
  }
}
@media (max-width: 380px) {
  .garage-switch__tab {
    font-size: 0.62rem;
    min-height: 2.8rem;
  }
}
.garage-filters { margin-top: 0.25rem; }
.garage-empty { margin-top: 0.5rem; }
.media-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--trail);
}
.media-card__overlay {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  pointer-events: none;
}
.media-card--rig,
.profile-rig {
  position: relative;
}
.rig-card__hit {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}
.media-card--rig .media-card__media,
.media-card--rig h3 a,
.media-card--rig .media-card__meta a,
.media-card--rig .media-card__footer,
.media-card--rig .rig-engagement,
.profile-rig__media,
.profile-rig__name a,
.profile-rig__actions {
  position: relative;
  z-index: 1;
}
.media-card--rig .media-card__img {
  aspect-ratio: 16 / 10;
  transition: transform 0.45s ease, filter 0.25s ease;
}
.media-card--rig:hover .media-card__img,
.media-card--rig:focus-within .media-card__img {
  transform: scale(1.035);
  filter: brightness(1.06);
}
.media-card--rig .media-card__media:focus-visible,
.profile-rig__photo:focus-visible,
.profile-rig__media--empty:focus-visible,
.explore-card--rig:focus-visible,
.home-card--rig:focus-visible,
.feed-discover__item--rig:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ember) 70%, white);
  outline-offset: 2px;
}
.media-card--rig:hover,
.profile-rig:hover {
  border-color: color-mix(in srgb, var(--ember) 40%, var(--border));
}
.media-card--rig .media-card__media,
.profile-rig__photo,
.profile-rig__media--empty {
  cursor: pointer;
}
.media-card--rig.is-primary-rig {
  border-color: rgba(116, 198, 157, 0.45);
  box-shadow: 0 0 0 1px rgba(116, 198, 157, 0.15);
}
.media-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.rig-engagement {
  margin-top: 0.65rem;
}
.rig-engagement__stats {
  margin-bottom: 0.35rem;
  padding: 0;
}
.rig-engagement__actions {
  flex-wrap: wrap;
  padding: 0.35rem 0 0;
  margin-top: 0.25rem;
  gap: 0.35rem;
  border-top: 1px solid var(--border);
}
.rig-engagement__actions .post__action {
  padding: 0.35rem 0.55rem;
}
.media-card--rig .rig-engagement {
  margin-top: auto;
  padding-top: 0.55rem;
}
.media-card--rig .media-card__footer {
  margin-top: 0.55rem;
}
.comment__delete {
  margin-top: 0.35rem;
}
.rig-detail .rig-engagement {
  margin-top: 0.75rem;
}
@media (max-width: 559px) {
  .media-card--rig .post__action {
    font-size: 0.82rem;
  }
}
.upload-actions {
  display: grid;
  gap: 0.55rem;
}
@media (min-width: 560px) {
  .upload-actions { grid-template-columns: 1fr 1fr; }
}
.file-input--wide { width: 100%; }
.file-input--camera {
  background: rgba(64, 145, 108, 0.08);
  border-color: rgba(64, 145, 108, 0.35);
  color: #9ad4b3;
}
.upload-preview {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.upload-preview__item {
  width: 96px;
}
.upload-preview__item img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-2);
}
.upload-preview__item .upload-preview__actions {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.upload-preview__item .upload-preview__actions .btn {
  flex: 1;
  min-height: 32px;
  padding: 0.15rem 0.3rem;
  font-size: 0.7rem;
}
.rig-cover-preview {
  max-width: 280px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.rig-cover-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.rig-photos .section-head { align-items: flex-start; }
.gallery-grid--rig .gallery-item {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: grab;
  touch-action: manipulation;
}
.gallery-grid--rig .gallery-item.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}
.gallery-grid--rig .gallery-item.is-drop-target {
  outline: 2px solid var(--ember-2);
  outline-offset: 2px;
}
.gallery-item__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.gallery-item__media a {
  display: block;
  height: 100%;
}
.gallery-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item__badge {
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(64, 145, 108, 0.92);
  color: #fff;
}
.gallery-item__handle {
  position: absolute;
  right: 0.35rem;
  top: 0.35rem;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: -0.05em;
  line-height: 1;
}
.gallery-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.45rem;
  align-items: center;
}
.gallery-item__actions form { padding: 0; margin: 0; }
.gallery-grid--manage .gallery-item__actions .btn { white-space: nowrap; }
.gallery-item.is-cover {
  border-color: rgba(116, 198, 157, 0.55);
}
.rig-detail__hero {
  display: block;
  margin: 0 0 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--trail);
  aspect-ratio: 21 / 9;
}
.rig-detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.rig-detail__hero:hover img { transform: scale(1.02); }
.rig-detail__hero--empty {
  background:
    linear-gradient(135deg, rgba(232, 93, 4, 0.18), transparent 60%),
    var(--trail);
  min-height: 140px;
}
.rig-owner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.rig-owner__avatar { flex: 0 0 auto; }
.rig-owner > div { flex: 1 1 auto; min-width: 10rem; }
.rig-edit .form-group:last-of-type { margin-bottom: 1rem; }
@media (max-width: 559px) {
  .rig-detail__hero { aspect-ratio: 16 / 10; }
  .gallery-item__actions .btn--sm { padding: 0.35rem 0.55rem; font-size: 0.75rem; }
}

/* Rides & Events hub — create split + kind pills + filter chips */
.section-head--rides-events {
  align-items: flex-start;
}
.create-split {
  position: relative;
  flex-shrink: 0;
  z-index: 20;
}
.create-split__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.create-split__btn span[aria-hidden="true"] {
  font-size: 0.75em;
  line-height: 1;
  opacity: 0.9;
}
.create-split__panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: min(18rem, calc(100vw - 2rem));
  max-width: calc(100vw - 1.5rem);
  padding: 0.4rem;
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.create-split__panel[hidden] {
  display: none !important;
}
.create-split__panel > a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: normal;
  line-height: 1.3;
}
.create-split__panel > a:hover,
.create-split__panel > a:focus-visible {
  background: var(--panel);
  color: var(--sand);
  outline: none;
}
.pill--kind {
  background: rgba(74, 111, 165, 0.18);
  color: #9bb6e0;
  border-color: rgba(74, 111, 165, 0.4);
}
.chips--filters {
  margin: 0 0 0.85rem;
  gap: 0.35rem;
}
.chips--filters .chip {
  padding: 0.38rem 0.72rem;
  font-size: 0.78rem;
}
@media (max-width: 559px) {
  .section-head--rides-events {
    flex-direction: column;
    align-items: stretch;
  }
  .create-split {
    width: 100%;
  }
  .create-split__btn {
    width: 100%;
    justify-content: center;
  }
  .create-split__panel {
    left: 0;
    right: 0;
    min-width: 0;
    width: 100%;
    max-width: none;
  }
}

/* Upload progress overlay */
body.is-uploading {
  overflow: hidden;
}
.upload-progress {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 10, 14, 0.62);
  backdrop-filter: blur(2px);
}
.upload-progress[hidden] { display: none !important; }
.upload-progress__card {
  width: min(22rem, 100%);
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.upload-progress__title {
  margin: 0;
  font-family: var(--font-body), "Source Sans 3", sans-serif;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
}
.upload-progress__detail {
  margin: 0.35rem 0 0;
  font-family: var(--font-body), "Source Sans 3", sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}
.upload-progress__track {
  margin-top: 0.9rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--trail, rgba(255, 255, 255, 0.08));
  overflow: hidden;
}
.upload-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ember), var(--ember-2));
  transition: width 0.18s ease;
}
.upload-progress__fill.is-indeterminate {
  width: 40% !important;
  animation: upload-indeterminate 1.1s ease-in-out infinite;
}
.upload-progress__pct {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@keyframes upload-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

/* Trust & Safety / legal pages — readable body fonts, printable */
.page-legal .legal-page {
  max-width: 42rem;
  margin: 0 auto;
  padding-bottom: 2rem;
}
.legal-page__head {
  margin-bottom: 1.25rem;
}
.legal-kicker {
  font-size: 0.85rem;
  margin: 0 0 0.35rem;
}
.legal-kicker a { color: var(--ember-2); }
.legal-meta { font-size: 0.9rem; margin: 0.5rem 0 0.75rem; }
.legal-banner {
  background: color-mix(in srgb, var(--ember) 12%, var(--panel));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0 1rem;
}
.legal-banner p {
  margin: 0;
  font-family: var(--font-body), "Source Sans 3", sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-dim);
}
.legal-prose,
.legal-section p,
.legal-check span,
.ride-rsvp-ack span {
  font-family: var(--font-body), "Source Sans 3", sans-serif;
  font-size: 1.02rem;
  line-height: 1.6;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
}
.legal-section {
  margin: 0 0 1.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
.legal-section h2 {
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
}
.legal-section p { margin: 0; color: var(--text); }
.legal-page__foot {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.legal-page__links,
.site-footer__links,
.legal-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}
.legal-link-list {
  justify-content: flex-start;
  flex-direction: column;
  gap: 0.4rem;
}
.site-footer__links a,
.legal-page__links a {
  color: var(--sand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.trust-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
.trust-card {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.trust-card:hover {
  border-color: var(--ember);
  transform: translateY(-1px);
  color: inherit;
}
.trust-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.trust-card p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body), "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
}
.legal-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.legal-check input {
  margin-top: 0.3rem;
  flex: 0 0 auto;
}
.legal-checks { display: grid; gap: 0.65rem; }
.ride-rsvp-form {
  display: grid;
  gap: 0.65rem;
  max-width: 28rem;
  justify-items: stretch;
}
.ride-rsvp-form .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 720px) {
  .topbar {
    --topbar-h: 56px;
  }
  .topbar__inner {
    padding: 0.35rem 0.65rem 0.35rem 0.75rem;
    gap: 0.4rem;
  }
  .topbar__trust {
    display: none;
  }
  .topbar__actions {
    gap: 0.35rem;
  }
  .topbar__actions .btn--sm {
    min-height: 40px;
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
  }
  .topbar__join {
    min-width: 4.5rem;
  }
  .lang-switch a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.5rem;
  }
  .brand__logo {
    max-height: calc(var(--topbar-h) - 14px);
    max-width: min(112px, 34vw);
  }
  .page-landing.is-scrolled .topbar .brand__logo {
    max-width: min(100px, 30vw);
  }
}
@media print {
  .topbar, .bottom-nav, .site-footer, .flash-stack, .verify-banner, .legal-print, .skip-link {
    display: none !important;
  }
  .page-legal .legal-page {
    max-width: none;
    color: #000;
  }
  .legal-banner { border: 1px solid #999; }
  .legal-section { break-inside: avoid; }
}

/* Overflow + focus + touch targets */
html { overflow-x: clip; }
:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
.btn, .file-input, .bottom-nav__item, .create-split__btn {
  min-height: 44px;
}
.input, .select, .textarea {
  min-height: 44px;
  font-size: 16px;
}
.chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 767px) {
  .chip, .chips--filters .chip {
    min-height: 44px;
    padding: 0.55rem 0.9rem;
  }
}
.form-error {
  color: #ff8a8a;
  font-size: 0.88rem;
  margin-top: 0.3rem;
}
.form-error[hidden] {
  display: none !important;
}
.input.is-invalid, .select.is-invalid, .textarea.is-invalid,
.form-group.is-invalid, .map-picker.is-invalid {
  border-color: var(--danger);
}
fieldset.form-group.is-invalid {
  border: 1px solid var(--danger);
  border-radius: var(--radius, 8px);
  padding: 0.5rem 0.75rem;
}
.req { color: var(--ember-2); }

/* Public event form */
.event-form { max-width: 40rem; }
.event-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
@media (min-width: 560px) {
  .event-type-grid { grid-template-columns: repeat(3, 1fr); }
}
.event-type-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  text-align: center;
  font-weight: 700;
  cursor: pointer;
}
.event-type-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.event-type-opt:has(input:checked) {
  border-color: var(--ember);
  background: rgba(232, 93, 4, 0.16);
  color: var(--sand);
}
.event-type-opt:has(input:focus-visible) {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
.event-switch {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  font-weight: 700;
}
.event-switch input {
  width: 44px;
  height: 24px;
}
.form-hint--warn { color: var(--dust); }
.event-form__more {
  margin: 1rem 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.event-form__more > summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.event-form__more > summary::marker { color: var(--muted); }
.event-form__more[open] > summary { border-bottom: 1px solid var(--border); }
.event-form__more-body { padding: 0.85rem; }
.event-form__more-body > .form-group:last-child { margin-bottom: 0; }
.event-form__more-body .map-picker__vis { margin-top: 0.25rem; }

.event-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.event-form__actions .btn { flex: 1 1 10rem; }
.event-preview {
  margin: 1.25rem 0;
  padding: 0.75rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.event-preview__label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.event-form__current-photo img {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.photo-picker__frame {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(232, 93, 4, 0.04);
  overflow: hidden;
}
.photo-picker__frame.has-photo {
  border-style: solid;
  background: var(--panel-2, var(--bg-elev));
}
.photo-picker__frame.is-drop {
  border-color: var(--ember);
  background: rgba(232, 93, 4, 0.12);
}
.photo-picker__empty {
  padding: 1rem;
  text-align: center;
}
.photo-picker__empty-title {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
.photo-picker__preview { padding: 0.75rem; }
.photo-picker__img-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #121417;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-picker__img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
/* A src-less <img> renders as a broken-image glyph in some browsers. */
img[data-photo-img]:not([src]),
img[data-photo-img][src=""],
img[data-preview-photo]:not([src]),
img[data-preview-photo][src=""] { display: none !important; }
.photo-picker__img-wrap:not(:has(img[src])) { background: transparent; aspect-ratio: auto; min-height: 0; }
.media-card--preview .media-card__img-wrap:not(:has(img[src])) { display: none; }
.photo-picker__badge {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  background: rgba(16, 120, 72, 0.92);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.photo-picker__status {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  word-break: break-word;
}
.photo-picker__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}
.photo-picker__actions .btn {
  min-height: 44px;
  flex: 1 1 8rem;
}
@media (min-width: 768px) {
  .photo-picker .file-input--camera { display: none; }
}
.media-card--preview .media-card__img-wrap {
  margin: -0.15rem -0.15rem 0.65rem;
}
.media-card--preview .media-card__img {
  border-radius: var(--radius-sm);
}
.event-history { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.event-history li { padding: 0.45rem 0; border-bottom: 1px solid var(--border); }

/* Rides & Events filters */
.re-filters { margin: 0 0 1.25rem; }
.re-filters__toggle { display: none; width: 100%; margin-bottom: 0.65rem; }
.re-filters__geo {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 1fr 1fr;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
}
.re-filters__type-desk { min-width: 0; }
.re-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.re-filters__chip span { margin-left: 0.35rem; }
.re-filters__sheet { display: none; }
.re-filters__types { margin-bottom: 0.5rem; }
@media (min-width: 1100px) {
  .re-filters--has-chips .re-filters__type-desk { display: none; }
  .re-filters--has-chips .re-filters__geo { grid-template-columns: 1fr 1fr; }
  .re-filters__types .chip {
    padding: 0.32rem 0.62rem;
    font-size: 0.75rem;
    min-height: 34px;
  }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .re-filters--has-chips .re-filters__types { display: none; }
}
.legal-review-list { padding-left: 1.2rem; }
.legal-review-list li { margin: 0.4rem 0; }

@media (max-width: 767px) {
  .re-filters__toggle { display: inline-flex; }
  .re-filters__types, .re-filters__geo { display: none; }
  .re-filters__sheet {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, 0.55);
    padding: 12vh 0 0;
  }
  .re-filters__sheet[hidden] { display: none !important; }
  .re-filters__sheet .re-filters__form,
  .re-filters__sheet-head {
    background: var(--panel);
    padding: 1rem;
  }
  .re-filters__sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid var(--border);
  }
  .re-filters__form {
    border-radius: 0;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    max-height: 88vh;
    overflow: auto;
  }
  .re-filters__form-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .re-filters__form-actions .btn { flex: 1; min-height: 44px; }
  body.re-filters-open { overflow: hidden; }
}

@media (min-width: 768px) {
  .re-filters__sheet { display: none !important; }
}

@media (max-width: 767px) and (orientation: landscape) {
  .topbar { --topbar-h: 64px; }
  .hero--home { min-height: 70vh; }
  .re-filters__sheet { padding-top: 8vh; }
}

@media (max-width: 412px) {
  .desk-nav { display: none; }
  .event-form__actions .btn { flex: 1 1 100%; }
}

/* First-party admin analytics */
.aa-dash .section-head { flex-wrap: wrap; gap: 0.75rem; }
.aa-head-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.aa-filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem 0.75rem; align-items: end;
  margin: 0 0 1rem; padding: 0.85rem 1rem;
  min-width: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
}
.aa-filters__presets { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.aa-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0.25rem 0.7rem;
  border: 1px solid var(--border); border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  color: var(--text); background: var(--bg);
}
.aa-chip.is-on { border-color: var(--ember); color: var(--ember-2); background: color-mix(in srgb, var(--ember) 12%, transparent); }
.aa-filters__date { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.78rem; color: var(--muted); }
.aa-filters__date .input { min-height: 40px; }
.aa-filters__check { font-size: 0.88rem; display: flex; align-items: center; gap: 0.4rem; min-height: 40px; }
.aa-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}
@media (min-width: 700px) {
  .aa-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.aa-kpis .stat strong { font-size: 1.55rem; }
.aa-geo-coverage { margin: 0 0 0.75rem; font-size: 0.9rem; }
.aa-chart { color: var(--ember-2); display: block; max-width: 100%; }
.aa-chart-legend { margin: 0.25rem 0 0.85rem; font-size: 0.8rem; }
.aa-status { margin-bottom: 1rem; }
.aa-status__list { list-style: none; padding: 0; margin: 0 0 1rem; }
.aa-status__list li { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; align-items: center; padding: 0.35rem 0; font-size: 0.92rem; }
.aa-dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.aa-dot.is-ok { background: #2a9d8f; }
.aa-dot.is-warn { background: #e9c46a; }
.aa-dot.is-bad { background: #e76f51; }
.aa-banner {
  margin: 0 0 0.85rem; padding: 0.65rem 0.8rem; border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--ember) 40%, var(--border));
  background: color-mix(in srgb, var(--ember) 10%, transparent);
  font-size: 0.9rem;
}
.aa-status__include { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 0 0 0.5rem; }
.aa-self-test-out { margin: 0.75rem 0 0; font-size: 0.9rem; }
.aa-self-test-out.is-ok { color: #2a9d8f; }
.aa-self-test-out.is-bad { color: #e76f51; }
.aa-live-count { font-size: 1.15rem; margin: 0 0 0.75rem; }
.aa-live-count strong { font-family: var(--font-display); font-size: 2rem; color: var(--ember-2); }
.aa-map .sdb-map__canvas { height: 280px; min-height: 240px; width: 100%; border-radius: var(--radius-sm); }
.aa-members { margin-top: 1rem; }
.aa-members summary { cursor: pointer; list-style: inside disclosure-closed; }
.aa-members summary h2 { display: inline; font-size: 1.15rem; }
.aa-pager { display: flex; gap: 1rem; margin-top: 0.75rem; }
.site-footer__aa { font-size: 0.82rem; margin-top: 0.35rem; }
@media (max-width: 959px) {
  .aa-filters {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
  }
  .aa-filters__presets { width: 100%; }
  .aa-filters__date,
  .aa-filters__check { width: 100%; flex: 1 1 auto; }
  .aa-filters .input,
  .aa-filters .select,
  .aa-filters .btn { width: 100%; min-width: 0; }
}
@media (max-width: 699px) {
  .aa-kpis .stat strong { font-size: 1.35rem; }
  .aa-map .sdb-map__canvas { height: 220px; }
}
@media (min-width: 1100px) {
  .aa-map .sdb-map__canvas { height: 320px; }
}

/* Marketplace */
.market-head { gap: 1rem; }
.market-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  align-items: center;
}
.market-toolbar .input { flex: 1 1 14rem; min-width: 0; }
.market-toolbar .select { flex: 0 1 10rem; }
.market-active-filters { margin: 0.35rem 0 0.85rem; }
.market-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .market-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .market-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .market-grid { grid-template-columns: repeat(4, 1fr); }
}
.market-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s;
}
.market-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.market-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--trail);
  overflow: hidden;
}
.market-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.market-card__ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--panel-2), var(--trail));
}
.market-card__status {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
}
.market-card__body { padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.market-card__body .price-tag { font-size: 1.25rem; margin: 0; }
.market-card__title { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.market-card__title a { color: var(--text); }
.market-card__meta { font-size: 0.8rem; color: var(--muted); margin: 0; }
.market-card__seller {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  font-size: 0.8rem;
}
.market-card__seller img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.market-card--sold { opacity: 0.88; }
.market-empty .row { margin-top: 0.75rem; }
.market-empty__cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.85rem 0 0.25rem;
}

.listing-hero { margin-bottom: 1rem; }
.listing-hero__main {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--trail);
  border: 1px solid var(--border);
}
.listing-hero__main img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.listing-thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.55rem 0 0.15rem;
  -webkit-overflow-scrolling: touch;
}
.listing-thumbs__item {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--panel-2);
}
.listing-thumbs__item.is-active { border-color: var(--ember-2); }
.listing-thumbs__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.listing-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.listing-photos__queue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.65rem;
}
@media (min-width: 640px) {
  .listing-photos__queue { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.listing-photos__item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.listing-photos__item.is-dragging { opacity: 0.55; cursor: grabbing; }
.listing-photos__item.is-cover { outline: 2px solid var(--ember-2); outline-offset: 1px; }
.listing-photos__item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.listing-photos__badge {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(8,10,14,0.75);
  color: var(--sand);
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
}
.listing-photos__item .upload-preview__actions {
  padding: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.listing-photos__item .upload-preview__actions .btn {
  flex: 1;
  min-height: 32px;
  font-size: 0.68rem;
  padding: 0.15rem 0.3rem;
}
.listing-photos__count { margin: 0.35rem 0 0; }
.listing-photos__status { font-size: 0.85rem; color: var(--muted); margin: 0.25rem 0 0; }
.listing-photos__error { margin-top: 0.5rem; }
@media (max-width: 639px) {
  .market-toolbar .select { flex: 1 1 calc(50% - 0.5rem); }
  .listing-hero__main img { aspect-ratio: 1; }
}

/* —— Premium public profile showcase —— */
.main--profile {
  max-width: 1100px;
  overflow-x: clip;
}
.profile-showcase {
  position: relative;
  margin: 0 0 0.35rem;
  padding-bottom: 1rem;
  overflow: visible;
}
.profile-showcase__cover {
  position: relative;
  height: 170px;
  min-height: 250px;
  border-radius: 18px;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--border) 80%, var(--ember));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(ellipse at 18% 20%, rgba(244, 162, 97, 0.28), transparent 42%),
    radial-gradient(ellipse at 82% 10%, rgba(232, 93, 4, 0.22), transparent 40%),
    linear-gradient(145deg, #2a1f16 0%, #14110e 45%, #1c1712 100%);
}
@media (min-width: 640px) {
  .profile-showcase__cover { height: 220px; min-height: 268px; }
}
@media (min-width: 960px) {
  .profile-showcase__cover { height: 280px; min-height: 280px; }
}
.profile-showcase__cover-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
}
.profile-showcase__cover-media,
.profile-showcase__cover-fallback {
  display: block;
  width: 100%;
  height: 100%;
}
.profile-showcase__cover-media {
  cursor: zoom-in;
}
.profile-showcase__cover-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.profile-showcase__cover-fallback {
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.015) 11px,
      rgba(255, 255, 255, 0.015) 12px
    ),
    radial-gradient(ellipse at 30% 80%, rgba(196, 120, 54, 0.35), transparent 55%),
    radial-gradient(ellipse at 78% 30%, rgba(232, 93, 4, 0.25), transparent 50%),
    linear-gradient(160deg, #3a2a1c 0%, #1a1511 48%, #0f0d0b 100%);
}
.profile-showcase__cover-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 6, 4, 0.22) 0%, rgba(8, 6, 4, 0.08) 28%, rgba(8, 6, 4, 0.55) 58%, rgba(6, 4, 2, 0.92) 100%),
    linear-gradient(90deg, rgba(8, 6, 4, 0.45) 0%, rgba(8, 6, 4, 0.12) 42%, transparent 70%);
}
.profile-showcase__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.1rem 0.85rem 0;
  pointer-events: none;
}
.profile-showcase__overlay > * {
  pointer-events: auto;
}
.profile-showcase__identity {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  min-width: 0;
}
.profile-showcase__meta {
  min-width: 0;
  padding: 0 0 0.15rem;
}
.profile-showcase__name,
.profile-showcase__handle,
.profile-showcase__area {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 8px 18px rgba(0, 0, 0, 0.55);
}
.profile-showcase__stats-col {
  min-width: 0;
  margin: 0 0 0.85rem;
}
@media (min-width: 860px) {
  .profile-showcase__overlay {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1rem 0;
  }
  .profile-showcase__stats-col {
    flex: 0 1 auto;
    margin: 0 0 1.15rem;
    max-width: 28rem;
  }
}
.profile-showcase__avatar-link {
  display: inline-flex;
  width: fit-content;
  border-radius: 50%;
  text-decoration: none;
  flex: 0 0 auto;
  margin-bottom: -14px;
}
.profile-showcase__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel-2);
  border: 3px solid #14110e;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.45),
    0 12px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-showcase__avatar-link:hover .profile-showcase__avatar,
.profile-showcase__avatar-link:focus-visible .profile-showcase__avatar {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.7),
    0 14px 32px rgba(0, 0, 0, 0.5);
}
@media (min-width: 720px) {
  .profile-showcase__avatar {
    width: 112px;
    height: 112px;
    border-width: 4px;
  }
  .profile-showcase__avatar-link {
    margin-bottom: -18px;
  }
}
.profile-block--join {
  text-align: center;
}
.profile-showcase__name {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #f7efe2;
}
.profile-showcase__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}
.profile-showcase__name-row .profile-showcase__name {
  margin: 0;
}
.profile-showcase__handle {
  margin: 0.15rem 0 0;
  color: color-mix(in srgb, var(--sand, #f2e6d8) 86%, #fff);
  font-size: 0.92rem;
  font-weight: 600;
}
.profile-showcase__area {
  margin: 0.18rem 0 0;
  color: #f0c36b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.profile-showcase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.profile-showcase__actions .btn {
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.profile-showcase__actions .btn--ghost {
  background: color-mix(in srgb, #1a1511 72%, transparent);
  border-color: color-mix(in srgb, var(--border-strong) 70%, #d4af37);
  color: var(--sand, var(--text));
}
.profile-showcase__actions .btn--ghost:hover {
  background: color-mix(in srgb, #1a1511 88%, #d4af37);
}
.profile-showcase__bio {
  margin: 0.2rem 0 0;
  max-width: 42rem;
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
  font-size: 0.95rem;
  line-height: 1.45;
}
.profile-patches {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0.55rem 0 0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.1rem;
}
.profile-patches::-webkit-scrollbar { display: none; }
.profile-patches__item {
  flex: 0 0 auto;
}
.profile-patches .patch {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.35);
  border-color: color-mix(in srgb, var(--border-strong) 70%, #c9a227);
  background:
    linear-gradient(145deg, rgba(58, 46, 32, 0.98), rgba(22, 18, 14, 0.94));
}
.profile-patches__more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel-2) 85%, var(--ember));
  color: var(--ember-2, #f4a261);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.profile-patches__more:hover {
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--panel-2) 70%, var(--ember));
}
.profile-stats--premium {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0.3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(12, 10, 8, 0.55);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.profile-stats--premium::-webkit-scrollbar { display: none; }
.profile-stats--premium .profile-stats__item {
  flex: 0 0 auto;
  min-width: 4.6rem;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  padding: 0.38rem 0.55rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-decoration: none;
  text-align: center;
  box-shadow: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.profile-stats--premium a.profile-stats__item:hover,
.profile-stats--premium a.profile-stats__item:focus-visible {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.1);
  transform: none;
  color: inherit;
}
.profile-stats__item strong {
  font-size: 1.02rem;
  font-family: var(--font-display);
  line-height: 1.1;
  color: #f7efe2;
}
.profile-stats__item span {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--sand, #f2e6d8) 70%, #9a8b78);
  white-space: nowrap;
}
.profile-showcase__following {
  margin: 0;
  font-size: inherit;
}
.profile-guest-cta,
.profile-showcase__more {
  margin: 0.45rem 0 0.15rem;
  font-size: 0.85rem;
}
.profile-inline-form { display: inline; }
.profile-tabs {
  display: flex;
  gap: 0.25rem;
  margin: 0.45rem 0 1.1rem;
  padding: 0.2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 92%, #120f0c);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.profile-tabs--sticky {
  position: sticky;
  top: calc(var(--header-height, var(--topbar-h, 56px)) + 0.35rem);
  z-index: 30;
  backdrop-filter: blur(10px);
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tabs__item {
  flex: 0 0 auto;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.profile-tabs__item:hover { color: var(--text); }
.profile-tabs__item.is-active {
  background: linear-gradient(145deg, color-mix(in srgb, var(--ember) 28%, var(--panel-2)), var(--panel-2));
  color: var(--sand, var(--text));
  box-shadow: inset 0 0 0 1px rgba(244, 162, 97, 0.28);
}
.profile-panel { min-width: 0; }
.profile-block {
  margin: 0 0 1.35rem;
  padding: 0.95rem 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 94%, #151210);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}
.profile-block__lede { margin: 0 0 0.75rem; }
.profile-load-more { text-align: center; margin: 1rem 0 0; }
.profile-garage__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.profile-garage__head .profile-section-title { margin: 0; }
.profile-garage__owner-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.profile-garage__grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 860px) {
  .profile-garage--featured .profile-garage__grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: start;
  }
}
.profile-garage__others {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 560px) and (max-width: 859px) {
  .profile-garage__others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.profile-rig {
  border: 1px solid color-mix(in srgb, var(--border) 80%, var(--ember));
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-2) 90%, #120f0c);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.profile-rig:hover {
  border-color: color-mix(in srgb, var(--ember) 40%, var(--border));
}
.profile-rig__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #121417;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}
.profile-rig--featured .profile-rig__media { aspect-ratio: 16 / 9; }
.profile-rig__media--empty {
  display: grid;
  place-items: center;
}
.profile-rig__photo {
  display: block;
  width: 100%;
  height: 100%;
}
.profile-rig__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.25s ease;
}
.profile-rig:hover .profile-rig__photo img,
.profile-rig:focus-within .profile-rig__photo img {
  transform: scale(1.03);
  filter: brightness(1.05);
}
.profile-rig__badge {
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  z-index: 1;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(12, 10, 8, 0.72);
  color: var(--ember-2, #f4a261);
  border: 1px solid rgba(244, 162, 97, 0.35);
}
.profile-rig__body { padding: 0.8rem 0.9rem 0.95rem; }
.profile-rig__name {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}
.profile-rig--featured .profile-rig__name {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
}
.profile-rig__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
}
.profile-rig__mods {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.profile-rig__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.profile-rig--mini .profile-rig__media { aspect-ratio: 4 / 3; }
.profile-rig--mini .profile-rig__name { font-size: 0.95rem; }
.profile-garage-empty {
  padding: 1.35rem 1.1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 90%, var(--ember));
  text-align: center;
}
.profile-garage-empty h3 { margin: 0 0 0.35rem; }
.profile-garage-empty .btn { margin-top: 0.75rem; }
.profile-about__bio {
  margin: 0 0 0.75rem;
  white-space: pre-wrap;
  max-width: 42rem;
}
.profile-about__sub {
  margin: 1.1rem 0 0.45rem;
  font-size: 0.95rem;
}
.profile-about__complete { margin-top: 1rem; }
.profile-about__owner-links { margin-top: 1rem; }
.page-profile { overflow-x: clip; }
.profile-usually-rides {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.profile-usually-rides__primary {
  display: inline-flex;
  margin-left: 0.25rem;
  vertical-align: middle;
  font-size: 0.65rem;
  padding: 0.12rem 0.4rem;
}
.profile-market-activity {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}
.profile-cover-edit__banner {
  position: relative;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 30% 80%, rgba(196, 120, 54, 0.35), transparent 55%),
    linear-gradient(160deg, #3a2a1c 0%, #1a1511 48%, #0f0d0b 100%);
}
@media (min-width: 720px) {
  .profile-cover-edit__banner { height: 180px; }
}
.profile-cover-edit__banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.profile-cover-edit__banner.is-photo {
  background: #121417;
}
.check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.analytics-pref {
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
}
.analytics-pref-wrap .analytics-pref {
  border-top: 0;
  padding-top: 0;
}
.panel .analytics-pref {
  border-top: 0;
  margin-top: 0.35rem;
  padding-top: 0;
}
.analytics-pref__status { margin: 0.35rem 0 0.65rem; }
.analytics-pref__form { margin-top: 0.65rem; }

