/* === FREDOKA REGULAR 400 (self-hosted wordmark) === */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/static/fonts/Fredoka-Regular.ttf") format("truetype");
}
:root {
  color-scheme: light;
  --cream: #F2F2F7;
  --cream-2: #ffffff;
  --ink: #000000;
  --forest: #000000;
  --forest-deep: #F2F2F7;
  --gold: #007AFF;
  --gold-soft: #E8F1FF;
  --gold-dim: #0A84FF;
  --white: #ffffff;
  --card: #ffffff;
  --line: rgba(60, 60, 67, 0.12);
  --muted: #8E8E93;
  --danger: #FF3B30;
  --ok: #34C759;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --serif: "Fraunces", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --radius: 20px;
  --nav-h: 60px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: #F2F2F7;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  min-height: 100%;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
input,
textarea,
select,
[contenteditable],
.field {
  -webkit-user-select: text;
  user-select: text;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--forest);
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

input,
textarea,
select {
  font-size: 16px;
}


.sat-fill {
  position: sticky;
  top: 0;
  z-index: 30;
  height: env(safe-area-inset-top, 0px);
  background: #F2F2F7;
  pointer-events: none;
}

.app {
  min-height: 100dvh;
  background: var(--cream);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 11px);
}

/* Chat rooms / DMs: list scrolls above the fixed composer; no bottom nav */
.app.chat-shell {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
.app.chat-shell .topbar {
  display: none;
}
.app.chat-shell .msg-head,
.app.chat-shell .flash {
  flex-shrink: 0;
}
.app.chat-shell .msg-list[data-thread] {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* JS sets padding to clear the composer + 10px; fallback = composer only (no nav). */
  padding-bottom: var(--thread-clearance, calc(84px + env(safe-area-inset-bottom, 0px) + 10px));
}
/* Always hide tab bar on DM/sala — iOS kb-open is flaky on send and nav (z20) overlays composer (z19). */
.app.chat-shell .nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.app.chat-shell .msg-composer {
  bottom: 0;
  z-index: 30;
}
html.ios .app.chat-shell .msg-composer {
  bottom: 0;
}

.app.auth {
  padding-bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
  padding: 8px 12px 14px;
  margin: 0 0 8px;
  background: rgba(242, 242, 247, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line);
  box-shadow: none;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 16;
}

.topbar-side {
  min-height: 0;
  display: flex;
  align-items: center;
}

.topbar-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Extra 10px bottom padding on .topbar; nudge the title row down so
   wordmark, glass, and star share one optical center in the bar. */
.topbar > .brand,
.topbar > .topbar-side,
.topbar > .topbar-right {
  margin-top: 5px;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  padding-right: 14px;
}
.brand-msg {
  position: absolute;
  top: -4px;
  right: -10px;
  width: 22px;
  height: 22px;
  color: #000;
  display: grid;
  place-items: center;
}
.brand-msg svg {
  display: block;
  width: 22px;
  height: 22px;
}
.brand.has-unread .brand-msg svg {
  fill: #ff2d55;
  stroke: #ff2d55;
}
.brand .badge {
  left: 50%;
  top: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  min-width: 0;
  height: auto;
  padding: 0;
  background: transparent;
  font-size: 9px;
  line-height: 1;
  animation: none;
}
.brand.has-unread .wordmark,
.brand.has-unread .brand-msg {
  animation: msg-tab-pulse 1.35s ease-in-out infinite;
}

.logo-mark {
  width: 26px;
  height: 26px;
  display: block;
  flex: 0 0 26px;
}

.wordmark {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: #000;
  line-height: 1;
  text-transform: none;
  display: block;
  padding: 4px 0;
}

.lock-link {
  color: var(--gold);
  display: flex;
}

.page-kicker {
  padding: 4px 20px 16px;
  font-weight: 700;
  color: var(--forest);
  font-size: 18px;
}

.page-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  margin: 4px 20px 16px;
  letter-spacing: -0.02em;
}

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 20px 16px;
}

.page-title-row .page-title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.page-title-row .board-sub {
  flex-shrink: 0;
  margin: 0;
}

.page-title-row .board-sub .btn {
  padding: 8px 14px;
  font-size: 14px;
  white-space: nowrap;
}

.flash-stack {
  padding: 0 16px 8px;
  display: grid;
  gap: 8px;
}

.flash {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.flash.is-gone {
  opacity: 0;
  transform: translateY(-6px);
}

.flash.ok {
  background: #143024;
  color: var(--ok);
}

.flash.err {
  background: #3a1c1c;
  color: var(--danger);
}

.feed {
  display: grid;
  gap: 16px;
  padding: 0 14px 8px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 0.5px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.post-head .avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.post-head .who {
  flex: 1;
  min-width: 0;
}

.post-head .name {
  font-weight: 700;
  color: var(--forest);
  font-size: 15px;
}

.post-head .post-follow {
  margin: 0;
  flex-shrink: 0;
}

.post-head .post-follow .btn {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 8px;
  line-height: 1.2;
}

.post-head form:has(.post-delete) {
  margin: 0;
  flex-shrink: 0;
}

.post-head .post-delete {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 6px;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0056D6;
  color: #FFFFFF;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
html.theme-dark .chip,
html.dark .chip {
  background: #0A84FF;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
  font-weight: 800;
}


.chip svg {
  flex-shrink: 0;
}

.post-media,
.post-photo {
  width: 100%;
  background: #000;
  display: block;
  overflow: hidden;
  text-align: center;
  position: relative;
}

.post-media video {
  cursor: pointer;
}

.post-media:has(> video)::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cline x1='23' y1='9' x2='17' y2='15'/%3E%3Cline x1='17' y1='9' x2='23' y2='15'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
  pointer-events: none;
  z-index: 2;
}

.post-media.is-unmuted:has(> video)::after,
.post-media:has(> video[data-unmuted])::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14'/%3E%3C/svg%3E");
}

.post-media img,
.post-media video,
.post-photo img,
.post-photo video {
  width: 100%;
  height: auto;
  max-height: min(70vh, 560px);
  object-fit: contain;
  object-position: center;
  display: block;
  vertical-align: middle;
  margin: 0 auto;
}

.post-body {
  padding: 6px 12px 14px;
}

.caption {
  color: var(--ink);
  margin: 0 0 6px;
  font-size: 14px;
}

.caption .name,
.comment-line .name,
.like-line {
  font-weight: 700;
  color: var(--ink);
}

.like-line {
  margin: 0 0 6px;
  font-size: 14px;
}

.comment-line {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  font-size: 14px;
  color: var(--ink);
  background: none;
  border: 0;
  line-height: 1.4;
}
.comment-line .avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
  grid-row: 1 / span 2;
}
.comment-line .name {
  display: inline;
  margin-bottom: 0;
  font-weight: 700;
  grid-column: 2;
}
.comment-line .comment-body {
  grid-column: 2;
}

.meta {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 8px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  background: var(--forest);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.gold {
  background: #b08948;
  color: var(--forest-deep);
}

.avatar.sage {
  background: #4a6b58;
  color: var(--gold-soft);
}

.avatar.plum {
  background: #6b4c7a;
  color: var(--gold-soft);
}

.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(480px, 100%);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
}
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 220px;
  background: #fff;
  pointer-events: none;
}
body.kb-open {
  background: var(--cream);
}
body.kb-open .nav {
  display: none;
}
body.kb-open .app {
  padding-bottom: 12px;
}
body.kb-open .card:has(.thread.is-open) ~ .card {
  display: none;
}
.kb-fill {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(480px, 100%);
  height: var(--kb, 160px);
  background: var(--cream);
  z-index: 18;
  pointer-events: none;
}
body.kb-open .kb-fill {
  display: block;
}
body.kb-open .thread.is-open .comment-inline {
  position: sticky;
  bottom: 0;
  z-index: 25;
  background: var(--cream);
  padding-bottom: calc(8px + var(--kb, 0px));
}

.nav a,
.nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  position: relative;
}

.nav a.active {
  color: var(--gold);
}

.nav .plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: -14px;
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.35);
}

.nav .plus + span {
  margin-top: -2px;
  color: var(--forest);
}

.badge {
  position: absolute;
  top: -4px;
  right: 18px;
  background: #ff2d55;
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.badge[hidden],
.badge:empty {
  display: none !important;
}

.nav .badge {
  animation: badge-pulse 1.35s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.45);
  }
  50% {
    transform: scale(1.14);
    box-shadow: 0 0 10px 3px rgba(255, 45, 85, 0.65);
  }
}

.empty {
  text-align: center;
  padding: 48px 28px;
  color: var(--muted);
}

.empty h2 {
  font-family: var(--serif);
  color: var(--forest);
  font-weight: 500;
  margin: 0 0 8px;
}

.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
  gap: 12px;
}

.screen-head h1 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: var(--forest);
}

.icon-btn,
.text-btn {
  background: none;
  border: none;
  color: var(--forest);
  padding: 8px;
  cursor: pointer;
}

.text-btn {
  font-weight: 700;
}

.form-block {
  padding: 0 16px 20px;
}

.preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--cream-2);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--muted);
  margin-bottom: 12px;
  border: 1px dashed var(--gold);
  cursor: pointer;
}

.preview img,
.preview video {
  width: 100%;
  height: auto;
  max-height: min(70vh, 560px);
  object-fit: contain;
  object-position: center;
  display: block;
}

.preview audio {
  width: calc(100% - 24px);
  margin: 12px;
}

.field {
  width: 100%;
  border: 0;
  background: #E9E9EB;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
}

textarea.field {
  min-height: 88px;
  resize: vertical;
}
input[type="date"].field {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font: inherit;
  line-height: 1.25;
  -webkit-appearance: none;
  appearance: none;
}

label.lbl {
  display: block;
  font-weight: 600;
  color: var(--forest);
  margin: 14px 0 6px;
  font-size: 14px;
}

.audience {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}

.audience-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  color: var(--forest);
  font-size: 18px;
  margin-bottom: 12px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  cursor: pointer;
}

.choice input {
  accent-color: var(--forest);
  width: 18px;
  height: 18px;
}

.choice .grow {
  flex: 1;
}

.choice small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.privacy-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 10px 12px;
  background: #1c2833;
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px;
}

.profile-stack {
  display: grid;
  gap: 16px;
  padding: 0 14px 8px;
}

.profile-hero {
  position: relative;
  padding: 16px;
  text-align: left;
}

.profile-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile-hero .avatar {
  width: 76px;
  height: 76px;
  font-size: 28px;
}

.profile-hero h1 {
  margin: 0;
  font-size: 22px;
  color: var(--forest);
}

.profile-hero .handle {
  color: var(--muted);
  font-size: 14px;
}

.counts {
  display: flex;
  gap: 18px;
  margin-top: 0;
  padding: 14px 16px;
  color: var(--forest);
  font-size: 14px;
  justify-content: space-around;
  text-align: center;
}
.counts a {
  color: inherit;
}

.counts b {
  display: block;
  font-size: 18px;
}

.bio {
  margin: 12px 0 0;
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.action-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.action-pair form {
  margin: 0;
  min-width: 0;
}
.action-pair .btn {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  box-sizing: border-box;
  white-space: nowrap;
}
.action-pair .btn.ghost {
  color: var(--gold);
  background: var(--gold-soft);
}
.action-pair .btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.post-follow .btn {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}
.post-follow .btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  background: var(--gold);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: var(--gold-dim);
  border: 1px solid var(--gold);
}

.btn.wide {
  width: 100%;
}

.photos-card {
  padding: 12px;
}
.card-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  margin: 0 4px 10px;
}
.card-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 4px 10px;
}
.card-label-row .card-label {
  margin: 0;
}
.card-label-row .btn.compact {
  padding: 6px 10px;
  font-size: 13px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 0;
}
.photos-card .grid a {
  border-radius: 10px;
}

.grid a {
  aspect-ratio: 1;
  background: var(--cream-2);
  position: relative;
  overflow: hidden;
}

.grid img,
.grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid .grid-vid {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
  z-index: 2;
}
.grid a:has(.lock) .grid-vid {
  right: auto;
  left: 6px;
}
.grid .lock {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--forest);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.locked {
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  color: var(--gold);
}

.locked h2 {
  font-family: var(--serif);
  color: var(--forest);
  margin: 8px 0;
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 8px 16px 16px;
  background: var(--cream-2);
  border-radius: 999px;
  padding: 4px;
}

.seg a {
  text-align: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--forest);
}

.seg a.on {
  background: var(--gold);
  color: #fff;
}

.pending-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold-dim);
  font-weight: 600;
  font-size: 14px;
}

.req-list {
  display: grid;
  gap: 12px;
  padding: 0 16px 24px;
}

.req-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.req-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.req-top h3 {
  margin: 0;
  color: var(--forest);
  font-size: 16px;
}

.req-top p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.garden-grant-title {
  margin: 0;
  color: var(--forest);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.garden-grant-sub {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.garden-grant .req-top {
  margin-bottom: 4px;
}

.durations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.durations.durations-stack {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 14px 0 4px;
}

.durations label,
.duration-row {
  cursor: pointer;
  display: block;
  width: 100%;
  margin: 0;
}

.durations input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Legacy pill chips (unused on Solicitudes garden; kept harmless) */
.durations:not(.durations-stack) span {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--forest);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.durations:not(.durations-stack) input:checked + span {
  background: #ff2d55;
  color: #fff;
  border-color: #ff2d55;
}

.duration-row-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--forest);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.duration-label {
  font-size: 15px;
  font-weight: 600;
}

.duration-radio {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c7c7cc;
  box-sizing: border-box;
  background: transparent;
  position: relative;
}

.duration-row input:checked + .duration-row-ui {
  border-color: #ff2d55;
  background: rgba(255, 45, 85, 0.08);
}

.duration-row input:checked + .duration-row-ui .duration-radio {
  border-color: #ff2d55;
  background: #ff2d55;
  box-shadow: inset 0 0 0 3px #fff;
}

.garden-grant .pair {
  margin-top: 14px;
}

.garden-grant .pair .btn.wide {
  width: 100%;
}

.pass-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

.pass-row .grow {
  flex: 1;
}

.auth-wrap {
  padding: calc(48px + env(safe-area-inset-top, 0px)) 24px 0;
  text-align: center;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.auth-wrap h1,
.auth-mark {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 400;
  font-size: 72px;
  letter-spacing: -0.02em.01em;
  color: #000;
  line-height: 0.9;
  text-transform: none;
  margin: 0 0 28px;
}

.subtitle {
  letter-spacing: 0.28em;
  font-size: 11px;
  color: var(--gold);
  margin: 6px 0 28px;
  font-weight: 600;
}

.auth-card {
  text-align: left;
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
}

.auth-card .btn {
  width: 100%;
  margin-top: 16px;
}

.auth-switch {
  margin-top: 18px;
  color: var(--muted);
}
.auth-switch a {
  color: var(--gold);
  font-weight: 700;
}

.auth-age {
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted);
  font-size: 13px;
}
.auth-install-stack {
  width: 100%;
  margin: 10px 0 24px;
  display: grid;
  gap: 10px;
}
.auth-install {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.auth-install-icon {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  color: #fff;
  animation: login-msg-glow 1.35s ease-in-out infinite;
}
.auth-install-icon svg {
  display: block;
  width: 36px;
  height: 36px;
  fill: #ff2d55;
  stroke: #ff2d55;
  filter: drop-shadow(0 0 8px rgba(24, 119, 242, 0.85));
}
.auth-install-icon .badge {
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  min-width: 0;
  height: auto;
  padding: 0;
  background: transparent;
  font-size: 12px;
  line-height: 1;
  animation: none;
}
.auth-install strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}
.auth-install .tiny {
  display: block;
  margin-top: 2px;
}
.auth-install[hidden] { display: none; }
.auth-install-tip {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: end center;
  padding: 20px 16px 28px;
}
.auth-install-tip[hidden] { display: none; }
.auth-install-tip-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px 16px;
}
.auth-install-tip-card p {
  margin: 0 0 12px;
  font-size: 15px;
}
.auth-install-tip-card ol {
  margin: 0 0 16px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
}


.search-bar {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.search-bar .field {
  flex: 1;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--forest);
}

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.top10-list {
  padding: 0 16px 20px;
}
.top10-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.top10-rank {
  width: 28px;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.top10-name {
  flex: 1;
  min-width: 0;
}
.top10-name strong {
  font-weight: 700;
}
.top10-likes {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.tiny {
  font-size: 13px;
  color: var(--muted);
}

h2.section {
  font-family: var(--serif);
  color: var(--forest);
  font-size: 26px;
  font-weight: 500;
  margin: 8px 16px 6px;
}

.lede {
  margin: 0 16px 14px;
  color: var(--muted);
}

@media (min-width: 540px) {
  body {
    padding: 24px 0;
  }
  .app {
    min-height: calc(100dvh - 48px);
    border-radius: 28px;
    overflow: clip;
    box-shadow: 0 0 0 10px #111, 0 30px 80px rgba(0, 0, 0, 0.35);
  }
  .nav {
    width: 480px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }
}

.people-list { padding: 0 8px 8px; }

.react-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.react-row form { margin: 0; display: flex; }
.react-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 56px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}
.react-btn svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  overflow: visible;
}
.react-btn span {
  font-variant-numeric: tabular-nums;
  min-width: 1ch;
}
.react-btn.on { color: #e11d48; }
.react-btn.copied { color: var(--gold); }
.comments { padding: 0 16px 28px; }
.comments h2 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 8px 0 12px;
  color: var(--ink);
}
.comment {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border: 0;
}
.comment .name { font-weight: 700; color: var(--ink); }
.comment p { margin: 4px 0 2px; color: var(--ink); }
.comment-form { display: grid; gap: 8px; margin-top: 14px; }

.thread {
  display: none;
  margin-top: 10px;
  padding-top: 0;
  border: 0;
}
.thread.is-open { display: block; }
.react-btn.on-share { color: var(--gold); }

.thread-more,
.view-comments {
  display: block;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-weight: 400;
  font-size: 14px;
  padding: 0 0 8px;
  cursor: pointer;
  text-align: left;
}
.view-comments {
  width: 100%;
}
.react-btn span {
  font-variant-numeric: tabular-nums;
  min-width: 1ch;
}

.comment-inline {
  display: none;
}
.comment-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(24, 119, 242, 0.28);
  background: var(--cream-2);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.comment-input::placeholder { color: var(--muted); }
.comment-input:focus {
  border-color: var(--gold);
}
.comment-post {
  background: var(--card);
  border: 1px solid rgba(24, 119, 242, 0.4);
  color: var(--gold);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 14px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.comment-post:disabled { opacity: 0.4; }

.profile-stack .empty {
  padding: 28px 20px;
}

.empty-slot {
  margin: 0 4px 4px;
  padding: 8px 0 4px;
}
.locked-slot {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 8px 10px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}
.locked-slot p { margin: 0; }

.star-btn {
  position: relative;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.star-btn svg {
  width: 32px;
  height: 32px;
  display: block;
  transform-origin: center;
}
.star-btn.star-unread {
  color: #ffd400;
}
.star-btn.star-unread svg {
  fill: #ffd400;
  stroke: #ffd400;
  animation: star-shine 1.15s ease-in-out infinite;
}
.star-btn.star-unread svg path {
  fill: #ffd400;
  stroke: #e6b800;
}
@keyframes star-shine {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(255, 212, 0, 0.45));
  }
  50% {
    transform: scale(1.22);
    filter: drop-shadow(0 0 8px rgba(255, 212, 0, 1))
            drop-shadow(0 0 16px rgba(255, 180, 0, 0.7));
  }
}
.star-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff2d55;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
  z-index: 1;
}
.star-badge[hidden] { display: none; }
.star-badge.star-badge-pop {
  animation: star-badge-pop 0.45s ease-out;
}
@keyframes star-badge-pop {
  0% { transform: scale(0.6); }
  55% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.card.feed-in {
  animation: feed-in 0.4s ease-out;
}
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .star-btn.star-unread svg {
    animation: none;
    filter: drop-shadow(0 0 6px rgba(255, 212, 0, 0.9));
  }
  .card.feed-in {
    animation: none;
  }
  .board-rec-dot {
    animation: none;
  }
  .nav .badge,
  .msg-tab .badge,
  .msg-row .badge,
  .brand .badge,
  .msg-tab.has-unread .msg-tab-label,
  .brand.has-unread .wordmark,
  .brand.has-unread .brand-msg {
    animation: none;
  }
  .auth-wrap .brand.has-unread .brand-msg,
  .auth-install-icon {
    animation: login-msg-glow 1.35s ease-in-out infinite;
  }
  .login-face {
    transition: none;
  }
}
.act-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
body.act-open .act-overlay {
  opacity: 1;
  pointer-events: auto;
}
.act-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(380px, 100%);
  right: max(0px, calc(50% - 240px));
  background: var(--cream);
  z-index: 41;
  transform: translateX(110%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
}
body.act-open .act-panel {
  transform: translateX(0);
}
.act-panel::before {
  content: "";
  display: block;
  height: env(safe-area-inset-top, 0px);
  background: #F2F2F7;
  flex-shrink: 0;
}
.act-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.act-head h2 {
  margin: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: #000;
}
.act-list {
  overflow: auto;
  padding: 8px 10px 24px;
  flex: 1;
}
.act-empty { text-align: center; padding: 28px 12px; }
.act-item {
  display: grid;
  grid-template-columns: 36px 1fr 44px;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 14px;
  color: inherit;
}
.act-item:hover { background: var(--card); }
.act-item .who { font-size: 14px; color: var(--ink); }
.act-item .who b { font-weight: 700; }
.act-item .when { color: var(--muted); font-size: 12px; margin-top: 2px; }
.act-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--cream-2);
}
.act-item .avatar { width: 36px; height: 36px; font-size: 14px; }

.post-text {
  display: block;
  padding: 16px 16px 8px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.preview-optional {
  aspect-ratio: auto;
  min-height: 88px;
  margin-top: 14px;
  margin-bottom: 14px;
}
.form-block > .btn.wide {
  margin: 0 0 18px;
}
textarea.text-post {
  min-height: 140px;
  font-size: 16px;
}
.grid-text {
  display: flex;
  align-items: flex-end;
  padding: 10px;
  height: 100%;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink);
  overflow: hidden;
  background: var(--cream-2);
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
body.search-open .search-overlay {
  opacity: 1;
  pointer-events: auto;
}
.search-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(380px, 100%);
  left: max(0px, calc(50% - 240px));
  background: var(--cream);
  z-index: 41;
  transform: translateX(-110%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
}
body.search-open .search-panel {
  transform: translateX(0);
}
body.search-open .nav {
  display: none;
}
body.search-open .app {
  padding-bottom: 12px;
}
.search-panel::before {
  content: "";
  display: block;
  height: env(safe-area-inset-top, 0px);
  background: #F2F2F7;
  flex-shrink: 0;
}
.search-drawer-bar {
  padding: 12px 16px 8px;
}
.search-drawer-bar .field {
  font-size: 16px;
}
.search-list {
  overflow: auto;
  padding: 4px 16px 24px;
  flex: 1;
}
.search-list .user-row:last-child {
  border-bottom: 0;
}

.search-hit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  align-items: center;
}
.search-match-hint {
  margin-top: 2px;
  color: var(--muted);
}

.comments-layer[hidden] {
  display: none !important;
}
.comments-layer {
  position: fixed;
  inset: 0;
  z-index: 49;
  pointer-events: none;
}
.comments-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
body.comments-open .comments-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.comments-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(110%);
  width: min(480px, 100%);
  height: 74dvh;
  max-height: 78dvh;
  z-index: 50;
  background: var(--card);
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  transition: transform 0.28s ease;
  overflow: hidden;
}
body.comments-open .comments-sheet {
  transform: translateX(-50%) translateY(0);
}
.comments-sheet.is-dragging {
  transition: none;
}
body.comments-open {
  overflow: hidden;
}
body.comments-open .nav,
body.composer-open .nav {
  display: none;
}
body.comments-open .kb-fill,
body.composer-open .kb-fill {
  display: none;
}
.comments-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--muted);
  margin: 8px auto 2px;
  opacity: 0.75;
  flex-shrink: 0;
  touch-action: none;
}
.comments-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.comments-head-spacer {
  width: 40px;
  height: 40px;
}
.comments-head h2 {
  margin: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.comments-head .icon-btn {
  color: var(--ink);
}
.comments-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 16px 12px;
}
.cmt-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
}
.cmt-row .avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}
.cmt-main {
  min-width: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}
.cmt-main .name {
  font-weight: 700;
  color: var(--ink);
  margin-right: 6px;
}
.cmt-body {
  font-weight: 400;
  word-break: break-word;
}
.cmt-time {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.comments-empty {
  text-align: center;
  color: var(--muted);
  padding: 36px 12px;
  font-size: 14px;
  margin: 0;
}
.comments-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--card);
  flex-shrink: 0;
}
.comments-composer .avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}
.comments-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  padding: 8px 0;
}
.comments-input::placeholder {
  color: var(--muted);
}
.comments-post {
  background: var(--gold);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.comments-post:disabled {
  opacity: 0.4;
  cursor: default;
}

.admin-page { padding: 8px 16px 24px; }
.admin-page h1 {
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #fff;
  margin: 4px 0 12px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.admin-tabs a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.admin-tabs a.on { color: #fff; background: var(--gold); }
.admin-search { padding: 0 0 12px; }
.admin-empty { text-align: center; padding: 24px 8px; }
.admin-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.admin-who { min-width: 0; }
.admin-who strong { color: var(--ink); }
.admin-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  justify-self: end;
}
.admin-pill.pending { background: #3a2f12; color: #f0d48a; }
.admin-pill.active { background: #163a2a; color: var(--ok); }
.admin-pill.blocked { background: #3a1c1c; color: var(--danger); }
.admin-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-quiet {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
@media (min-width: 640px) {
  .admin-row {
    grid-template-columns: auto 1fr auto auto;
  }
  .admin-actions { grid-column: auto; }
}

/* Explorar — discovery people list */
.discover-list { padding: 0 8px 8px; }
.discover-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}
.discover-who {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
}
.discover-who strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.discover-follow {
  margin: 0;
  justify-self: end;
}
.discover-row .btn {
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
}


/* Profile options sheet */
.options-layer {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}
.options-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
body.options-open .options-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.options-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(110%);
  width: min(480px, 100%);
  max-height: 70dvh;
  z-index: 46;
  background: var(--card);
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  transition: transform 0.28s ease;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
body.options-open .options-sheet {
  transform: translateX(-50%) translateY(0);
}
.options-sheet.is-dragging {
  transition: none;
}
body.options-open {
  overflow: hidden;
}
body.options-open .nav {
  display: none;
}
.options-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--muted);
  margin: 8px auto 2px;
  opacity: 0.75;
  flex-shrink: 0;
  touch-action: none;
}
.options-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.options-head-spacer {
  width: 40px;
  height: 40px;
}
.options-head h2 {
  margin: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.options-head .icon-btn {
  color: var(--ink);
}
.options-list {
  padding: 4px 16px 20px;
  overflow-y: auto;
}
.opt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.opt-copy {
  flex: 1;
  min-width: 0;
}
.opt-title {
  font-weight: 700;
  color: var(--ink);
}
.opt-hint {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}
.opt-save {
  padding: 6px 12px;
  font-size: 13px;
}
.opt-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  cursor: pointer;
}
.opt-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.opt-switch-ui {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: var(--line);
  display: block;
  position: relative;
  transition: background 0.2s ease;
}
.opt-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.opt-switch input:checked + .opt-switch-ui {
  background: var(--gold);
}
.opt-switch input:checked + .opt-switch-ui::after {
  transform: translateX(20px);
}
.opt-switch input:focus-visible + .opt-switch-ui {
  outline: 2px solid var(--gold-dim);
  outline-offset: 2px;
}

.explore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  align-items: stretch;
}
.explore-grid a {
  aspect-ratio: 1 / 1;
  max-height: 160px;
  overflow: hidden;
  background: #111;
  position: relative;
  display: block;
}
.explore-grid img,
.explore-grid video {
  width: 100%;
  height: 100%;
  max-height: 160px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.explore-grid .grid-vid {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}
.explore-grid .grid-text {
  background: #111;
}

.text-bubbles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 2px 4px 6px;
}
.text-bubble {
  max-width: 82%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 5px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}
.text-bubble.is-open {
  display: block;
  -webkit-line-clamp: unset;
  max-width: 100%;
  white-space: pre-wrap;
}

.msg-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 4px 12px 4px 4px;
  white-space: nowrap;
  line-height: 1.2;
}
.msg-tab.has-unread {
  color: #fff;
}
.msg-tab .badge {
  right: -2px;
  top: -8px;
  animation: badge-pulse 1.35s ease-in-out infinite;
}
.msg-tab.has-unread .msg-tab-label {
  animation: msg-tab-pulse 1.35s ease-in-out infinite;
}
@keyframes msg-tab-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.msg-row {
  position: relative;
  color: inherit;
}
.msg-row-main {
  min-width: 0;
  flex: 1;
}
.msg-row-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msg-row-meta {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  position: relative;
}
.msg-row .badge {
  position: static;
  animation: badge-pulse 1.35s ease-in-out infinite;
}

.msg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.msg-head .icon-btn {
  color: var(--ink);
  flex-shrink: 0;
}
.msg-head-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
}
.msg-head-user .avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}
.msg-head-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px calc(98px + var(--nav-h) + env(safe-area-inset-bottom, 0px));
}
body.kb-open .msg-list {
  padding-bottom: calc(72px + var(--kb, 0px));
}
html:has(body.kb-lock),
body.kb-lock,
body.kb-lock .app {
  overflow: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: none;
}
html:has(body.kb-lock)::-webkit-scrollbar,
body.kb-lock::-webkit-scrollbar,
body.kb-lock .app::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.msg-bubble {
  max-width: 78%;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.msg-bubble.mine {
  align-self: flex-end;
  background: var(--gold);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
}
.msg-bubble.theirs {
  align-self: flex-start;
  background: #E9E9EB;
  border: 0;
  color: var(--ink);
  border-radius: 18px 18px 18px 4px;
}

.msg-composer {
  position: fixed;
  left: 0;
  right: 0;
  width: min(480px, 100%);
  margin: 0 auto;
  transform: none;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  background: var(--cream);
  border-top: 1px solid var(--line);
  z-index: 19;
  box-sizing: border-box;
}
html.ios .msg-composer {
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: 8px;
}
.msg-composer .msg-input {
  flex: 1;
  min-width: 0;
  width: auto;
  margin: 0;
}
.msg-composer .msg-send {
  flex-shrink: 0;
  padding: 10px 14px;
}
body.kb-open .msg-composer {
  bottom: var(--kb, 0px);
  padding-bottom: 8px;
}
html.ios body.kb-open .msg-composer {
  bottom: auto;
}
body:has(.msg-composer).kb-open .kb-fill {
  display: none;
}

.msg-row-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid var(--line);
}
.msg-row-wrap .msg-row {
  flex: 1;
  min-width: 0;
  border-bottom: none;
}
.msg-row-wrap .msg-del {
  flex-shrink: 0;
  color: var(--muted);
  padding: 8px;
}
.msg-head-user {
  flex: 1;
}
.msg-head-del {
  margin-left: auto;
  flex-shrink: 0;
}
.msg-bubble {
  position: relative;
}
.msg-bubble.mine {
  padding-right: 26px;
}
.msg-x {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  opacity: 0.85;
}
.msg-x:hover,
.msg-x:focus-visible {
  opacity: 1;
  background: rgba(0, 0, 0, 0.45);
}

.auth-wrap .brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  padding-right: 22px;
  text-align: left;
  align-self: center;
  position: relative;
  z-index: 2;
}
.auth-wrap .brand .wordmark {
  font-size: 42px;
  line-height: 1;
  padding: 0;
}
.auth-wrap .brand.has-unread .wordmark {
  animation: none;
}
.auth-wrap .brand-msg {
  top: 8px;
  right: -8px;
  width: 32px;
  height: 32px;
}
.auth-wrap .brand-msg svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(24, 119, 242, 0.85));
}
.auth-wrap .brand.has-unread .brand-msg {
  animation: login-msg-glow 1.35s ease-in-out infinite;
}
.auth-wrap .brand .badge {
  min-width: 0;
  height: auto;
  font-size: 12px;
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  background: transparent;
}
@keyframes login-msg-glow {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(24, 119, 242, 0.75)) drop-shadow(0 0 10px rgba(255, 45, 85, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(24, 119, 242, 1)) drop-shadow(0 0 22px rgba(255, 45, 85, 0.75));
  }
}
.auth-wrap .auth-card,
.auth-wrap .auth-switch,
.auth-wrap .auth-age,
.auth-wrap .auth-install,
.auth-wrap .auth-install-stack,
.auth-wrap .flash-stack,
.auth-wrap .login-faces {
  position: relative;
  z-index: 2;
}
.login-faces {
  margin-top: 20px;
  padding: 4px 4px 8px;
  width: 100%;
  max-width: 420px;
  align-self: center;
}
.login-faces-kicker {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}
.login-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  min-height: 56px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.login-face.is-on {
  opacity: 1;
}
.login-face .avatar {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  font-size: 20px;
}
.login-face-copy {
  min-width: 0;
  flex: 0 1 auto;
}
.login-face-copy strong {
  display: block;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.post-detail-swipe {
  overflow: hidden;
  touch-action: pan-y;
}

.explore-hubs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 4px 14px 16px;
}
.explore-hub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 104px;
  padding: 16px 14px;
  background: var(--card);
  border: 0.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.explore-hub strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 700;
}
.explore-hub .hub-emo {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.explore-hub > span {
  font-size: 13px;
  color: var(--muted);
}

.board-composer {
  padding: 0 16px 18px;
  display: grid;
  gap: 10px;
}
.board-composer .lbl {
  margin: 4px 0 0;
}
.board-composer .btn.wide {
  margin-top: 6px;
}
.kind-pills {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.kind-pill {
  display: flex;
  cursor: pointer;
}
.kind-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.kind-pill span {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.kind-pill input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.board-file {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px dashed var(--gold);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  background: var(--cream-2);
  position: relative;
}
.board-file input[type="file"] {
  width: 100%;
  color: var(--ink);
}
.board-file-pick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
  pointer-events: auto;
}
.board-file-pick input[type="file"] {
  position: relative;
  z-index: 0;
  display: block;
  max-width: 100%;
  pointer-events: auto;
}
.board-recorder {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  position: relative;
  z-index: 2;
  isolation: isolate;
  pointer-events: auto;
}
.board-rec-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.board-rec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  background: var(--gold);
  color: #fff;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
}
.board-rec-btn svg {
  flex-shrink: 0;
}
.board-rec-row.is-recording .board-rec-btn,
.board-rec-btn.is-recording {
  background: #ff2d55;
  color: #fff;
}
.board-rec-row.is-recording .board-rec-mic,
.board-rec-btn.is-recording .board-rec-mic {
  display: none;
}
.board-rec-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.board-rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff2d55;
  box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.45);
  animation: rec-pulse 1.35s ease-in-out infinite;
}
@keyframes rec-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.45);
  }
  50% {
    transform: scale(1.14);
    box-shadow: 0 0 10px 3px rgba(255, 45, 85, 0.65);
  }
}
.board-rec-timer {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.board-rec-preview {
  display: grid;
  gap: 8px;
}
.board-rec-preview audio {
  width: 100%;
  min-height: 40px;
  display: block;
}
.board-rec-retry {
  justify-self: start;
}
.board-rec-err {
  margin: 0;
}
.board-feed {
  display: grid;
  gap: 12px;
  padding: 0 14px 8px;
}
.board-card .board-body {
  margin: 0;
  padding: 0 12px 10px;
  white-space: pre-wrap;
  word-break: break-word;
}
.board-media {
  padding: 0 12px 10px;
}
.board-media video {
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: 10px;
}
.board-podcast audio {
  width: 100%;
  min-height: 44px;
  display: block;
}
.board-meta {
  padding: 0 12px 12px;
}
.job-title {
  margin: 0 12px 8px;
  font-size: 18px;
  color: var(--forest);
}
.job-row {
  margin: 0 12px 8px;
  color: var(--ink);
}
.job-row span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.board-file.is-rec-busy .board-file-pick,
.board-file.is-rec-busy .board-file-pick input[type="file"] {
  pointer-events: none;
}
.post-media:has(> audio) {
  background: var(--card);
  text-align: left;
}
.post-media:has(> audio)::after {
  content: none;
  display: none;
}
.post-media audio,
.post-media.board-podcast audio {
  width: 100%;
  min-height: 44px;
  display: block;
  padding: 8px 12px;
}

.social-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.social-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.social-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}
.social-linkedin { background: #0A66C2; }
.social-instagram { background: #E4405F; }
.social-twitter { background: #1D9BF0; }
.social-x { background: #000; }
.social-facebook { background: #1877F2; }
.social-telegram { background: #229ED9; }
.social-whatsapp { background: #25D366; }
.social-onlyfans { background: #00AFF0; }
.social-fansly { background: #1D1A26; }

.social-edit {
  margin-top: 20px;
}
.social-edit-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 6px 0;
}
.social-edit-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
}
.social-edit-set {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.social-edit-toggle {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: 0 0 auto;
}
.social-edit-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.explore-hub-ico {
  display: flex;
  align-items: center;
  color: var(--gold);
}
.explore-hub-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}
.page-title-row .page-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  white-space: nowrap;
}
.page-title-ico {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
}
.explore-hub[href="/bienes"] strong {
  white-space: nowrap;
  font-size: 16px;
}
.offer-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.offer-chip {
  display: inline-block;
  margin: 0 12px 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--gold-soft);
  color: var(--gold-dim);
}
.offer-chip.offer-venta {
  background: var(--gold-soft);
  color: #8ec0ff;
}
.offer-chip.offer-alquiler {
  background: #1a3a2a;
  color: #86c5a8;
}
.listing-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 12px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.listing-gallery img,
.listing-gallery video {
  width: 180px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: #000;
}

/* Full media on /p/{id} (and any post card using board media) — not the board thumb strip */
.post-media.post-board-media {
  padding: 0;
  display: block;
  overflow: hidden;
}
.post-media.post-board-media img,
.post-media.post-board-media video,
.board-card .post-board-media img,
.board-card .post-board-media video {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  flex-shrink: unset;
}
.board-card .post-board-media {
  padding: 0;
  width: 100%;
}

.listing-compose {
  padding: 0 16px 10px;
}
.listing-compose > summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
}
.listing-compose > summary::-webkit-details-marker {
  display: none;
}
.listing-compose[open] > summary {
  margin-bottom: 8px;
}
.listing-compose .board-composer {
  padding: 8px 0 0;
}
.listing-compose-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}
.listing-filters {
  padding: 0 16px 18px;
  display: grid;
  gap: 10px;
}
.listing-filters .lbl {
  margin: 4px 0 0;
}
.filter-pills {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.filter-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.title-oneline {
  white-space: nowrap;
}
.explore-hub[href="/eventos"] strong {
  white-space: nowrap;
  font-size: 16px;
}
.event-dates {
  margin: 0 12px 8px;
  font-weight: 700;
  color: var(--gold-dim);
}
.navegar-btn {
  margin: 0 12px 10px;
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
}

.explore-hub[href="/lugares"] strong {
  white-space: nowrap;
  font-size: 15px;
}
.kind-pills-4 {
  grid-template-columns: 1fr 1fr;
}
.filter-pills-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.filter-pills-5 .kind-pill span {
  font-size: 12px;
  padding: 8px 4px;
}
.kind-chip.kind-restaurante {
  background: rgba(255, 149, 0, 0.18);
  color: #ff9500;
}
.kind-chip.kind-bar {
  background: rgba(175, 82, 222, 0.18);
  color: #bf5af2;
}
.kind-chip.kind-plan {
  background: rgba(10, 132, 255, 0.18);
  color: #0a84ff;
}
.kind-chip.kind-otro {
  background: var(--gold-soft);
  color: var(--gold-dim);
}
.place-serves span {
  color: var(--muted);
}
.place-source {
  margin: 0 12px 10px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
.lugar-maps-btn {
  margin-bottom: 12px;
}

.sala-rooms {
  display: grid;
  gap: 12px;
  padding: 4px 14px 24px;
}
.sala-room-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 104px;
  padding: 18px 16px;
  background: var(--card);
  border: 0.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.sala-room-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.sala-room-btn strong {
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 700;
}
.sala-room-copy span {
  font-size: 13px;
  color: var(--muted);
}
.sala-here {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  flex-shrink: 0;
}
.sala-here .avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
  border: 2px solid var(--card);
  margin-left: -8px;
}
.sala-here .avatar:first-child {
  margin-left: 0;
}
.sala-here .avatar.live {
  animation: sala-here-pulse 1.5s ease-in-out infinite;
}
.sala-here .avatar:nth-child(2) { animation-delay: 0.12s; }
.sala-here .avatar:nth-child(3) { animation-delay: 0.24s; }
.sala-here .avatar:nth-child(4) { animation-delay: 0.36s; }
.sala-here .avatar:nth-child(5) { animation-delay: 0.48s; }
@keyframes sala-here-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(24, 119, 242, 0.45);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(24, 119, 242, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sala-here .avatar { animation: none; }
}
.room-msg {
  display: flex;
  align-self: stretch;
  max-width: 100%;
}
.room-msg.mine {
  position: relative;
  overflow: visible;
  touch-action: pan-y;
}
.room-msg.mine.is-swiping {
  overflow: hidden;
}
.room-msg.mine,
.room-msg.mine .room-bubble,
.room-msg.mine a,
.room-msg.mine img {
  touch-action: pan-y;
  -webkit-user-drag: none;
  user-select: none;
}
.room-del {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  display: grid;
  place-items: center;
  background: #ff2d55;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 16px 0 0 16px;
  pointer-events: none;
  opacity: 0;
}
.room-msg.is-swiping .room-del {
  opacity: 1;
}
.room-msg.mine .room-bubble {
  position: relative;
  z-index: 1;
  transition: transform 0.18s ease;
}
.room-bubble {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 92%;
  padding: 8px 12px;
  background: #E9E9EB;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
}
.room-msg.mine .room-bubble {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.room-who {
  flex-shrink: 0;
}
.room-who .avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.room-main {
  min-width: 0;
  flex: 1;
  font-size: 15px;
  line-height: 1.35;
}
.room-name {
  font-weight: 700;
  color: var(--gold-dim);
  margin-right: 6px;
  text-decoration: none;
}
.room-msg.mine .room-name {
  color: #fff;
}
.room-body {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.msg-list[data-thread-user] .room-msg {
  width: fit-content;
  max-width: 86%;
  align-items: center;
  gap: 6px;
}
.msg-list[data-thread-user] .room-msg.mine {
  align-self: flex-start;
  justify-content: flex-start;
}
.msg-list[data-thread-user] .room-msg:not(.mine) {
  align-self: flex-end;
  justify-content: flex-end;
}
.msg-list[data-thread-user] .room-slide {
  position: relative;
  overflow: visible;
  flex: 0 1 auto;
  width: auto;
  max-width: min(260px, calc(100vw - 96px));
}
.msg-list[data-thread-user] .room-bubble {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}
.msg-list[data-thread-user] .room-main {
  display: block;
  flex: none;
  min-width: unset;
  width: auto;
}
.msg-list[data-thread-user] .room-body {
  display: block;
  overflow-wrap: break-word;
  word-break: normal;
  word-wrap: break-word;
}
.msg-list[data-thread-user] .room-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
}
.msg-list[data-thread-user] .room-msg.mine .room-bubble::after {
  left: -4px;
  background: var(--gold);
}
.msg-list[data-thread-user] .room-msg:not(.mine) .room-bubble::after {
  right: -4px;
  background: var(--card);
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.msg-list[data-thread-user] .room-who {
  flex: 0 0 auto;
  align-self: center;
}
.msg-list[data-thread-user] .room-bubble.msg-typing {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 52px;
  min-width: 52px;
  max-width: 52px;
}
.msg-list[data-thread-user] .room-bubble.msg-typing span {
  display: block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
}
.msg-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 52px;
  padding: 10px 14px;
}
.msg-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: typing-dot 1.1s ease-in-out infinite;
}
.msg-typing span:nth-child(2) { animation-delay: 0.16s; }
.msg-typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes typing-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* Historias */
.app.historias-fill {
  position: fixed;
  inset: 0;
  width: min(480px, 100%);
  height: auto;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: #000;
  transform: none;
}
html.ios:has(.historias-fill),
html.ios:has(.historias-fill) body {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background: #000;
  overflow: visible;
}
html.ios .app.historias-fill,
html.ios .historias-view,
html.ios .historias-compose {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: var(--historias-h, 100vh);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  transform: none;
  padding: 0;
  margin: 0;
  overflow: visible;
}
html.ios .historias-media,
html.ios .historias-preview,
html.ios .historias-media img,
html.ios .historias-media video,
html.ios .historias-preview img,
html.ios .historias-preview video {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 21px);
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  height: calc(var(--historias-h, 100dvh) - (env(safe-area-inset-top, 0px) + 21px));
  min-height: 0;
  max-width: none;
  max-height: none;
  object-fit: cover;
  z-index: 0;
}
html.ios .historias-taps {
  position: fixed;
  inset: 0;
  z-index: 1;
}
html.ios .historias-hud {
  position: fixed;
  z-index: 5;
}
html.ios .historias-hud.bottom,
html.ios .historias-compose .historias-hud.bottom {
  bottom: var(--kb, 0px);
  padding-bottom: 12px;
}
body:has(.historias-fill).kb-open .kb-fill {
  display: none;
}
body:has(.historias-fill).kb-open .app {
  padding-bottom: 0;
}
.app.historias-fill .nav {
  display: none;
}
body:has(.historias-fill) {
  overflow: hidden;
  background: #000;
}
html.ios:has(.historias-fill) body {
  overflow: visible;
}
body:has(.historias-fill) .sat-fill {
  display: none;
}

.historias-tray {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.historias-tray::-webkit-scrollbar {
  display: none;
}
.historias-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 70px;
  flex-shrink: 0;
  color: inherit;
  position: relative;
}
.historias-ring-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}
.historias-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  box-sizing: border-box;
  color: inherit;
}
.historias-ring .avatar {
  width: 52px;
  height: 52px;
  font-size: 20px;
  box-shadow: 0 0 0 2px var(--cream);
}
.historias-ring.unseen {
  background: conic-gradient(from 210deg, #5ac8fa, #007AFF, #0A84FF, #5ac8fa);
  padding: 2.5px;
}
.historias-ring.seen {
  background: #C7C7CC;
  padding: 2.5px;
}
.historias-ring.mine {
  background: none;
  border: 2px dashed #C7C7CC;
  padding: 0;
}
.historias-ring.mine .avatar {
  width: 50px;
  height: 50px;
  box-shadow: none;
}
.historias-plus {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--cream);
  line-height: 1;
  z-index: 1;
  text-decoration: none;
}
.historias-name {
  font-size: 11px;
  color: var(--muted);
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
}
.historias-item .historias-name {
  color: var(--muted);
}

.historias-view,
.historias-compose {
  position: absolute;
  inset: 0;
  background: #000;
  color: #fff;
}
.historias-stage,
.historias-media,
.historias-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}
.historias-media img,
.historias-media video,
.historias-preview img,
.historias-preview video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  background: #000;
}
.historias-taps {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  touch-action: none;
}
.historias-tap {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.historias-tap.left {
  width: 30%;
}
.historias-tap.right {
  flex: 1;
}
.historias-hud {
  position: absolute;
  z-index: 5;
  left: 10px;
  right: 10px;
  display: flex;
  color: #fff;
}
.historias-hud.top {
  top: calc(10px + env(safe-area-inset-top, 0px));
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.historias-hud.bottom {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: var(--kb, 0px);
  padding-bottom: 12px;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  z-index: 6;
}
html.android .historias-hud.bottom {
  padding-bottom: 12px;
  bottom: max(var(--kb, 0px), env(keyboard-inset-bottom, 0px));
}
body.kb-open .historias-hud.bottom {
  padding-bottom: 12px;
  bottom: var(--kb, 0px);
}
html.ios body.kb-open .historias-hud.bottom {
  bottom: auto;
}
.historias-hud .icon-btn,
.historias-hud .text-btn {
  color: #fff;
  padding: 4px;
}
.historias-progress {
  display: flex;
  gap: 4px;
}
.historias-progress .h-seg {
  display: block;
  flex: 1;
  height: 3px;
  margin: 0;
  padding: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  position: relative;
}
.historias-progress .h-seg.done {
  background: #fff;
}
.historias-progress .h-seg i {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 2px;
}
.historias-who-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.historias-who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.historias-who .avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}
.historias-who strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}
.historias-when {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.historias-caption {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
  padding: 0 2px;
  margin: 0;
}
.historias-composer {
  display: flex;
  gap: 8px;
  align-items: center;
}
.historias-composer.own {
  justify-content: flex-end;
}
.historias-composer .field {
  flex: 1;
  background: rgba(255, 255, 255, 0.22);
  border: 0;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.historias-composer .field::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.historias-heart {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
}
.historias-heart svg {
  width: 22px;
  height: 22px;
}
.historias-heart.is-on {
  color: #ff5a7a;
}
.historias-heart.is-on svg {
  fill: currentColor;
  stroke: currentColor;
}
.historias-del {
  margin: 0;
}
.historias-toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(88px + var(--kb, 0px));
  transform: translateX(-50%);
  background: rgba(7, 10, 13, 0.88);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.historias-toast.show {
  opacity: 1;
}

.historias-compose-title {
  text-align: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
  width: 100%;
}
.historias-compose-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 4px;
}
.historias-compose-actions .btn {
  width: 100%;
  text-align: center;
}
.historias-compose-actions .btn:disabled {
  opacity: 0.38;
}
.historias-file-btn {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.historias-caption.field,
.historias-compose .historias-caption {
  background: rgba(7, 10, 13, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
}
.historias-compose .historias-caption::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.historias-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.historias-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.historias-pill.on {
  background: var(--gold);
  border-color: var(--gold);
}
.historias-shutter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
}
.historias-shutter {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 0;
}
.historias-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  margin: 0;
}

.historias-compose .historias-hud.top {
  top: calc(10px + env(safe-area-inset-top, 0px));
}
.historias-compose .historias-hud.bottom {
  bottom: 0;
  padding: 18px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0));
}
html.ios .historias-compose .historias-hud.bottom {
  padding: 18px 0 0;
}


.msg-historia-ref {
  display: block;
  width: 92px;
  height: 164px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 8px;
  background: #000;
  flex-shrink: 0;
}
.msg-historia-ref img,
.msg-historia-ref video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.room-msg.mine .msg-historia-ref {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.ptr-bar {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 80;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--gold);
  opacity: 0;
  pointer-events: none;
  transform: scale(calc(0.55 + (var(--ptr, 0) * 0.45)));
  transition: opacity 0.12s ease;
}
.ptr-bar.show {
  opacity: 1;
}
.ptr-bar.ready,
.ptr-bar.loading {
  animation: ptr-spin 0.7s linear infinite;
}
@keyframes ptr-spin {
  to { transform: rotate(360deg) scale(1); }
}

.suggest-card {
  margin: 0 14px 16px;
  padding: 14px 14px 8px;
}
.suggest-card h2 {
  margin: 0 2px 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}
.suggest-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.suggest-row + .suggest-row {
  border-top: 0.5px solid var(--line);
}
.suggest-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  color: inherit;
}
.suggest-who .avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
  flex-shrink: 0;
}
.suggest-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.suggest-copy strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.suggest-row form {
  margin: 0;
  flex-shrink: 0;
}
.suggest-row .btn {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
}

.app.clips-fill {
  padding-bottom: 0;
  background: #000;
  min-height: 100dvh;
  overflow: hidden;
}
body:has(.clips-pager) {
  background: #000;
  overflow: hidden;
  height: 100dvh;
}
body:has(.clips-pager) .sat-fill {
  background: transparent;
}
.app.clips-fill .nav {
  background: rgba(0, 0, 0, 0.38);
  border-top-color: rgba(255, 255, 255, 0.12);
}
.app.clips-fill .nav::after {
  display: none;
}
.app.clips-fill .nav a {
  color: rgba(255, 255, 255, 0.72);
}
.app.clips-fill .nav a.active {
  color: #007AFF;
}
.app.clips-fill .nav .plus + span {
  color: inherit;
}
.clips-pager {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: min(480px, 100%);
  height: calc(100svh - var(--nav-h) - env(safe-area-inset-bottom, 0px));
  z-index: 12;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-snap-stop: always;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #000;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.clips-pager::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.clip {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  overflow: hidden;
}
.clip video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.clip-audio-cue {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 22px;
  padding: 18px 22px 16px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font: 700 15px/1.2 var(--sans);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  pointer-events: auto;
}
.clips-pager.is-unmuted .clip-audio-cue,
.post-media.is-unmuted .clip-audio-cue,
.clip-audio-cue[hidden] {
  display: none !important;
}
.post-media:has([data-clip-audio-cue]:not([hidden]))::after {
  display: none;
}
.clip-audio-cue svg {
  display: block;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5));
}

.clip-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(10px + env(safe-area-inset-top, 0px));
  width: auto;
  padding: 0;
  box-sizing: border-box;
  z-index: 5;
  pointer-events: none;
}
.clip-mute {
  position: absolute;
  top: calc(22px + env(safe-area-inset-top, 0px));
  right: 12px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.clips-pager.is-unmuted .clip-mute-off,
.clips-pager:not(.is-unmuted) .clip-mute-on {
  display: none;
}
.clip-rail {
  position: absolute;
  right: 10px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.clip-face {
  position: relative;
  margin-bottom: 4px;
}
.clip-face .avatar {
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  font-size: 16px;
}
.clip-add {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.clip-rail form {
  margin: 0;
}
.clip-rail .react-btn {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.clip-rail .react-btn svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.55));
}
.clip-rail .react-btn.on {
  color: #ff2d55;
}
.clip-rail .react-btn span {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.clip-meta {
  position: absolute;
  left: 14px;
  right: 72px;
  bottom: 16px;
  z-index: 3;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}
.clip-user {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}
.clip-cap {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clip-thread {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.share-layer[hidden] { display: none !important; }
.share-layer {
  position: fixed;
  inset: 0;
  z-index: 52;
  pointer-events: none;
}
.share-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 52;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
body.share-open .share-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.share-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(110%);
  width: min(480px, 100%);
  height: 70dvh;
  max-height: 74dvh;
  z-index: 53;
  background: var(--card);
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  transition: transform 0.28s ease;
}
body.share-open .share-sheet {
  transform: translateX(-50%) translateY(0);
}
.share-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
}
.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.share-row:active { background: var(--cream); }
.share-row .avatar { width: 44px; height: 44px; font-size: 16px; }
.share-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.share-who strong { font-size: 15px; font-weight: 700; }
.share-who span { font-size: 13px; color: var(--muted); }
.share-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(60, 60, 67, 0.28);
  flex-shrink: 0;
  box-sizing: border-box;
}
.share-row.is-on .share-check {
  border: 0;
  background: var(--gold);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><path d='M5 12l5 5L20 7'/></svg>");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.share-bar {
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 0.5px solid var(--line);
}
.share-send { width: 100%; }
.share-send:disabled { opacity: 0.45; }
.share-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.share-toast.is-on { opacity: 1; }
.msg-post-ref {
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 8px;
  background: #000;
  flex-shrink: 0;
}
.msg-post-ref img,
.msg-post-ref video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.room-msg.mine .msg-post-ref {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}


/* Access-request activity kinds */
.act-item-request {
  background: rgba(10, 132, 255, 0.06);
}
.act-item-garden_request {
  background: rgba(175, 82, 222, 0.08);
}
.act-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.act-kind-follow {
  background: rgba(10, 132, 255, 0.16);
  color: #0a84ff;
}
.act-kind-garden {
  background: rgba(175, 82, 222, 0.16);
  color: #bf5af2;
}

/* Outbound WhatsApp / system share */
.place-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 12px 10px;
}
.place-actions .navegar-btn,
.place-actions .lugar-maps-btn {
  margin: 0;
}
.share-out {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.share-out .btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
  width: auto;
}
.share-wa {
  color: #128c7e !important;
  background: rgba(18, 140, 126, 0.12) !important;
  border-color: transparent;
}
.profile-share-bubble {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: auto;
  margin: 0;
}
.profile-share-bubble-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  background: var(--gold-soft, #E8F1FF);
  color: var(--gold-dim, var(--gold));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
.profile-share-bubble-btn svg {
  display: block;
}
.profile-share-bubble-btn:active {
  transform: scale(0.96);
}
.profile-hero .profile-row {
  padding-right: 48px;
}


/* City-scoped explorar */
.explore-city {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 14px 10px;
}
.explore-city-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 0.5px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.explore-city-form {
  margin: 0;
  min-width: 0;
}
.explore-city-select {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 12px;
  width: auto;
  max-width: 160px;
}
.explore-hub-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(255, 149, 0, 0.10));
  border-color: rgba(10, 132, 255, 0.22);
  min-height: 88px;
}
.explore-hub-featured strong {
  font-size: 20px;
}
.explore-hub-featured[href="/clips"] {
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.12), rgba(10, 132, 255, 0.10));
  border-color: rgba(255, 45, 85, 0.22);
}
.explore-places-strip {
  padding: 0 14px 14px;
}
.explore-places-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.explore-places-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.explore-places-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.explore-place-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 0.5px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.avatar-anon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.board-anon-note {
  margin: 0 16px 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  opacity: 0.88;
}
.board-anon-note strong {
  font-weight: 700;
  opacity: 1;
}
html[data-theme="dark"] .board-anon-note,
body.dark .board-anon-note {
  color: rgba(255,255,255,0.92);
}

/* Post outbound social share */
.react-social {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
}
.react-social-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  flex: 0 0 32px;
}
.react-social-btn svg { width: 15px; height: 15px; display: block; }
.react-social-btn.social-wa { background: #25D366; }
.react-social-btn.social-ig {
  background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af);
}
.react-social-btn.social-x { background: #111111; }
.react-social-btn.social-li { background: #0A66C2; }
.react-social-btn:active { transform: scale(0.94); opacity: 0.92; }
.clip-rail .react-social {
  flex-direction: column;
  margin-left: 0;
  gap: 8px;
}
.clip-rail .react-social-btn {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}
.clip-rail .react-social-btn svg { width: 18px; height: 18px; }

.public-post-banner {
  margin: 0 16px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}
.public-post-banner a { color: var(--gold); font-weight: 700; }
.screen-head .public-join {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  width: auto;
}



/* Enviar sheet — repost row */
.share-repost-row {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}
.share-repost-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  flex-shrink: 0;
}
.share-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 16px 8px;
}
.share-repost-row.is-busy {
  opacity: 0.55;
  pointer-events: none;
}
.repost-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 12px 0;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.repost-label a {
  color: var(--muted);
  text-decoration: none;
}
.repost-label a:active { opacity: 0.7; }
.repost-label svg { flex-shrink: 0; }


/* --- lashista / booking --- */
.chip-lashista {
  margin-top: 8px;
  background: #1F6B45;
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
html.theme-dark .chip-lashista,
html.dark .chip-lashista {
  background: #34C759;
  color: #003D1F;
  border-color: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}
.page-h {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.account-type-card,
.agenda-card,
.book-card,
.book-day-card {
  margin: 12px 14px;
  padding: 18px 18px 20px;
  box-sizing: border-box;
}
.agenda-card > .page-h,
.agenda-card > .tiny,
.agenda-card > .card-label,
.account-type-card > .page-h,
.account-type-card > .tiny,
.book-card > .page-h,
.book-card > .tiny,
.book-day-card > .card-label {
  margin-left: 0;
  margin-right: 0;
}
.account-type-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.account-type-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg, transparent);
  cursor: pointer;
}
.account-type-option.is-on {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-dim, var(--gold));
}
.account-type-option input {
  margin-top: 4px;
}
.account-type-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-type-copy strong {
  color: var(--ink);
}
.agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.agenda-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.agenda-item:last-child { border-bottom: 0; }
.agenda-item-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.agenda-item-copy strong { color: var(--ink); font-size: 14px; }
.agenda-hours-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}
.agenda-hours-form > .lbl {
  margin-top: 0;
}
.agenda-hours-form > .field,
.agenda-hours-form > .btn.wide {
  box-sizing: border-box;
  max-width: 100%;
}
.agenda-hours-form > .btn.wide {
  margin-top: 6px;
}
.agenda-days { display: flex; flex-direction: column; gap: 12px; }
.agenda-day {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg, transparent);
  box-sizing: border-box;
}
.agenda-day-times {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px;
}
.agenda-day-times .field {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}
.agenda-list {
  margin-top: 4px;
}
.agenda-item {
  padding: 12px 4px;
}
.agenda-card .empty-slot {
  padding: 4px 2px 2px;
}
.book-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 2px 0 4px;
}
.book-slot,
.book-slot-form .book-slot {
  min-width: 72px;
  justify-content: center;
}
.book-slot-form { margin: 0; }
.opt-link {
  text-decoration: none;
  color: inherit;
}
.opt-chevron {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding-right: 4px;
}


.book-confirm-card {
  margin: 24px 14px;
  padding: 28px 22px 24px;
  text-align: center;
  box-sizing: border-box;
  color: var(--ink);
}
.book-confirm-card .page-h,
.book-confirm-card .tiny,
.book-confirm-card strong {
  color: inherit;
}
.book-confirm-card > .tiny,
.book-confirm-hint,
.book-confirm-note {
  color: var(--muted);
}
.book-confirm-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #34C759;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.book-confirm-title {
  margin-bottom: 6px;
  color: var(--ink);
}
.book-confirm-when {
  margin: 18px 0 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #E9E9EB;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.book-confirm-when strong {
  color: #000000;
  font-size: 15px;
}
.book-confirm-when .tiny {
  color: #636366;
}
.book-confirm-note { margin: 0 0 8px; }
.book-confirm-hint { margin: 0 0 18px; }
.book-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.book-confirm-actions .btn.wide { box-sizing: border-box; }

.agenda-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.agenda-item-pending .agenda-item-copy { gap: 4px; }
.agenda-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #B45309;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
html.theme-dark .agenda-pill,
html.dark .agenda-pill {
  background: #FFD60A;
  color: #3D2E00;
  border-color: rgba(255, 255, 255, 0.18);
}
.book-confirm-check-pending {
  background: #FF9F0A;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.search-citas-block {
  padding: 4px 0 12px;
}
.search-citas-block .card-label {
  margin: 4px 12px 8px;
}
.search-cita-row {
  align-items: flex-start;
}
.agenda-pill-ok {
  background: #0E7A3A;
  color: #FFFFFF;
}
html.theme-dark .agenda-pill-ok,
html.dark .agenda-pill-ok {
  background: #30D158;
  color: #003D1F;
}

.search-cita-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.search-cita-badges .chip,
.search-cita-badges .chip-lashista,
.search-cita-badges .chip-service,
.search-cita-badges .chip-rating,
.search-cita-badges .agenda-pill {
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin-top: 0;
  margin-bottom: 0;
  min-height: 26px;
  height: auto;
  box-sizing: border-box;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  border-radius: 999px;
  vertical-align: middle;
}
.search-cita-kind {
  margin-top: 4px;
}

.search-cita-open {
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.search-cita-body {
  flex: 1;
  min-width: 0;
}
.search-cita-title {
  display: block;
  color: inherit;
  text-decoration: none;
}
.search-cita-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.agenda-location {
  margin-top: 16px;
}
.agenda-location .tiny {
  margin-top: 6px;
}

.profile-action-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.profile-action-icons form {
  margin: 0;
  display: inline-flex;
}
.profile-action-icon {
  color: var(--gold-dim, var(--gold));
}
.profile-action-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.profile-action-icon.is-following {
  color: var(--ink);
}
.profile-action-icon.is-pending {
  color: var(--muted);
  opacity: 0.85;
}
.profile-hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.profile-lashista-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.profile-lashista-row .chip-lashista {
  margin-top: 0;
}
.profile-agendar-btn {
  padding: 6px 12px;
  font-size: 13px;
  min-height: 0;
  border-radius: 999px;
}

/* Book slot confirm sheet */
.book-pick-layer {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}
.book-pick-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
body.book-pick-open .book-pick-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.book-pick-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(110%);
  width: min(480px, 100%);
  max-height: 70dvh;
  z-index: 46;
  background: var(--card);
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  transition: transform 0.28s ease;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
body.book-pick-open .book-pick-sheet {
  transform: translateX(-50%) translateY(0);
}
body.book-pick-open {
  overflow: hidden;
}
body.book-pick-open .nav {
  display: none;
}
.book-pick-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--muted);
  margin: 8px auto 2px;
  opacity: 0.75;
  flex-shrink: 0;
}
.book-pick-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.book-pick-spacer {
  width: 40px;
  height: 40px;
}
.book-pick-head h2 {
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}
.book-pick-body {
  padding: 16px 20px 20px;
}
.book-pick-when {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.book-pick-when strong {
  display: block;
  font-size: 16px;
}
.book-pick-when .tiny {
  display: block;
  margin-top: 4px;
}
.book-pick-hint {
  margin: 0 0 16px;
}
.book-pick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.book-pick-actions .btn.wide {
  box-sizing: border-box;
}


/* Panama suite: hoy cerca, city tips, clasificados, reviews */
.explore-hoy-card,
.explore-city-card,
.explore-loteria-card {
  margin: 12px 16px 8px;
  padding: 14px 16px;
}
.explore-hoy-block {
  margin-top: 10px;
}
.explore-hoy-block .card-label {
  margin-bottom: 6px;
}
.city-tips {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--muted, #666);
}
.city-tips li + li { margin-top: 4px; }
.chip-service {
  background: #0F5C45;
  color: #FFFFFF;
  font-weight: 700;
}
html.theme-dark .chip-service,
html.dark .chip-service {
  background: #3DDC97;
  color: #003528;
  font-weight: 800;
}
.chip-agenda {
  font-size: 12px;
  vertical-align: middle;
  margin-left: 4px;
  background: #0056D6;
  color: #FFFFFF;
  font-weight: 800;
  padding: 3px 8px;
}
html.theme-dark .chip-agenda,
html.dark .chip-agenda {
  background: #0A84FF;
  color: #FFFFFF;
}
.chip-rating {
  background: #A16207;
  color: #FFFFFF;
  font-weight: 800;
}
html.theme-dark .chip-rating,
html.dark .chip-rating {
  background: #FFD60A;
  color: #3D2E00;
}
.profile-mutuals,
.profile-corr {
  margin: 4px 0 0;
}
.board-safety {
  margin: 0 16px 10px;
  color: var(--muted, #666);
}
.board-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin: 8px 0;
}
.review-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.review-stars {
  display: flex;
  gap: 6px;
}
.review-star {
  font-size: 0.85rem;
  cursor: pointer;
}
.review-star input { margin-right: 2px; }
.search-review-block {
  margin-top: 16px;
}
.account-type-option .chip-agenda {
  background: #0056D6;
  color: #FFFFFF;
}


.explore-loteria-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink, #000);
}
.explore-loteria-links {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.explore-loteria-links a {
  font-weight: 700;
  color: #0056D6;
}
.loteria-latest {
  margin-top: 12px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #F4FBF7;
  border: 2px solid #1F6B45;
}
.loteria-live-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #1F6B45;
  color: #FFFFFF;
}
.loteria-draws {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.loteria-draw {
  padding: 12px 12px 10px;
  border-radius: 12px;
  background: #F7F7F8;
  border: 1px solid rgba(60, 60, 67, 0.18);
}
.loteria-draw:first-child {
  margin-top: 0;
}
.loteria-draw-meta {
  font-size: 0.95rem;
  color: #3A3A3C;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  font-weight: 600;
}
.loteria-draw-meta strong {
  color: #000000;
  font-weight: 800;
  font-size: 1rem;
}
.loteria-lbl {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1F6B45;
}
.loteria-primero {
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.1;
  margin: 2px 0 6px;
  color: #000000;
  font-variant-numeric: tabular-nums;
}
.loteria-strip,
.loteria-menores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.loteria-strip span,
.loteria-menores span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(60, 60, 67, 0.16);
  font-size: 13px;
  font-weight: 700;
  color: #3A3A3C;
}
.loteria-strip b,
.loteria-menores b {
  color: #000000;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.loteria-loc {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #3A3A3C;
  opacity: 1;
}
.loteria-fallback {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #3A3A3C;
}

html.theme-dark .explore-loteria-card h2,
html.dark .explore-loteria-card h2 {
  color: #FFFFFF;
}
html.theme-dark .explore-loteria-links a,
html.dark .explore-loteria-links a {
  color: #64B5FF;
}
html.theme-dark .loteria-latest,
html.dark .loteria-latest {
  background: #0D2818;
  border-color: #34C759;
}
html.theme-dark .loteria-live-pill,
html.dark .loteria-live-pill {
  background: #34C759;
  color: #003D1F;
}
html.theme-dark .loteria-draw,
html.dark .loteria-draw {
  background: #1C1C1E;
  border-color: rgba(255, 255, 255, 0.18);
}
html.theme-dark .loteria-draw-meta,
html.dark .loteria-draw-meta {
  color: #E5E5EA;
}
html.theme-dark .loteria-draw-meta strong,
html.theme-dark .loteria-primero,
html.theme-dark .loteria-strip b,
html.theme-dark .loteria-menores b,
html.dark .loteria-draw-meta strong,
html.dark .loteria-primero,
html.dark .loteria-strip b,
html.dark .loteria-menores b {
  color: #FFFFFF;
}
html.theme-dark .loteria-lbl,
html.dark .loteria-lbl {
  color: #30D158;
}
html.theme-dark .loteria-strip span,
html.theme-dark .loteria-menores span,
html.dark .loteria-strip span,
html.dark .loteria-menores span {
  background: #2C2C2E;
  border-color: rgba(255, 255, 255, 0.16);
  color: #E5E5EA;
}
html.theme-dark .loteria-loc,
html.theme-dark .loteria-fallback,
html.dark .loteria-loc,
html.dark .loteria-fallback {
  color: #E5E5EA;
}



.search-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 10px;
}
.search-type-filters .chip {
  text-decoration: none;
}
.search-type-filters .chip.is-on {
  outline: 2px solid var(--ink, #000);
  outline-offset: 1px;
}
html.theme-dark .search-type-filters .chip.is-on,
html.dark .search-type-filters .chip.is-on {
  outline-color: #fff;
}


.explore-loteria-teaser {
  display: block;
  margin: 12px 16px 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  border: 2px solid #1F6B45;
  background: #F4FBF7;
}
.explore-loteria-teaser:active {
  opacity: 0.92;
}
.loteria-teaser-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.loteria-teaser-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.loteria-teaser-copy strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #000;
}
.loteria-teaser-meta {
  font-size: 13px;
  font-weight: 600;
  color: #3A3A3C;
}
.loteria-teaser-num {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #000;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-top: 2px;
}
.loteria-teaser-chevron {
  font-size: 28px;
  font-weight: 300;
  color: #1F6B45;
  line-height: 1;
}
.loteria-page-card {
  margin-top: 8px;
}
html.theme-dark .explore-loteria-teaser,
html.dark .explore-loteria-teaser {
  background: #0D2818;
  border-color: #34C759;
}
html.theme-dark .loteria-teaser-copy strong,
html.theme-dark .loteria-teaser-num,
html.dark .loteria-teaser-copy strong,
html.dark .loteria-teaser-num {
  color: #fff;
}
html.theme-dark .loteria-teaser-meta,
html.dark .loteria-teaser-meta {
  color: #E5E5EA;
}
html.theme-dark .loteria-teaser-chevron,
html.dark .loteria-teaser-chevron {
  color: #34C759;
}

/* Food / closet catalog */
.chip-food,
.chip-closet {
  background: rgba(52, 199, 89, 0.16);
  color: #1b7a3a;
}
html.theme-dark .chip-food,
html.dark .chip-food,
html.theme-dark .chip-closet,
html.dark .chip-closet {
  background: rgba(52, 199, 89, 0.22);
  color: #7dffa3;
}
.chip-open {
  background: rgba(52, 199, 89, 0.2);
  color: #1b7a3a;
}
.chip-closed {
  background: rgba(142, 142, 147, 0.2);
  color: var(--muted);
}
.profile-hours {
  margin: 6px 0 0;
}
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.menu-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg, transparent);
  min-width: 0;
}
.menu-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--line);
}
.menu-card-ph {
  background: linear-gradient(135deg, var(--line), transparent);
}
.menu-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 10px 12px;
}
.menu-card-title {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  word-break: break-word;
}
.menu-card-price {
  font-weight: 800;
  color: var(--ink);
  font-size: 14px;
}
.menu-grid-manage .menu-card-body .btn {
  margin-top: 6px;
  align-self: flex-start;
}
.negocio-add-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.account-type-option .chip-food,
.account-type-option .chip-closet {
  margin-left: 4px;
  vertical-align: middle;
}


.profile-maps-btn {
  background: #1F6B45;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 16px;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(31, 107, 69, 0.28);
  text-decoration: none;
  justify-content: center;
}
.profile-maps-btn:active {
  opacity: 0.92;
}
.profile-food-loc-text {
  margin: 6px 0 0;
  font-weight: 600;
  color: #3A3A3C;
}
.actions .profile-maps-btn {
  width: 100%;
  order: -1;
  margin-bottom: 4px;
}
html.theme-dark .profile-maps-btn,
html.dark .profile-maps-btn {
  background: #34C759;
  color: #003D1F !important;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(52, 199, 89, 0.25);
}
html.theme-dark .profile-food-loc-text,
html.dark .profile-food-loc-text {
  color: #E5E5EA;
}

.menu-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.profile-food-loc-text {
  margin: 8px 0 0;
}
.menu-contact-actions .profile-maps-btn,
.menu-contact-actions .profile-whatsapp-btn {
  margin-top: 0;
}
.profile-whatsapp-btn {
  background: #128C7E;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 16px;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(18, 140, 126, 0.28);
  text-decoration: none;
  justify-content: center;
}
.profile-whatsapp-btn:active {
  opacity: 0.92;
}
html.theme-dark .profile-whatsapp-btn,
html.dark .profile-whatsapp-btn {
  background: #25D366;
  color: #003D1F !important;
  border-color: rgba(255, 255, 255, 0.18);
}


/* Social link edit sheet (perfil/editar) */
.social-link-layer[hidden] {
  display: none !important;
}
.social-link-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.social-link-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
body.social-link-open .social-link-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.social-link-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(110%);
  width: min(480px, 100%);
  max-height: 70dvh;
  z-index: 61;
  background: var(--card, #fff);
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  transition: transform 0.28s ease, bottom 0.12s ease, top 0.12s ease;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
body.social-link-open .social-link-sheet {
  transform: translateX(-50%) translateY(0);
  bottom: var(--kb, 0px);
}
.social-link-sheet.is-dragging {
  transition: none;
}
body.social-link-open {
  overflow: hidden;
}
body.social-link-open .nav {
  display: none;
}
.social-link-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--muted);
  margin: 8px auto 2px;
  opacity: 0.75;
  flex-shrink: 0;
  touch-action: none;
}
.social-link-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.social-link-spacer {
  width: 40px;
  height: 40px;
}
.social-link-head h2 {
  margin: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.social-link-head .icon-btn {
  color: var(--ink);
}
.social-link-body {
  padding: 16px 20px 20px;
}
.social-link-body .lbl {
  margin-bottom: 6px;
}
.social-link-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.social-link-actions .btn.wide {
  box-sizing: border-box;
}
.social-edit-row {
  cursor: pointer;
}
.social-edit-row .social-edit-toggle {
  cursor: default;
}


/* mock fonts dark */
html.theme-dark {
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", Palatino, Georgia, serif;
}

/* === WORDMARK ALWAYS FREDOKA BOLD v31 === */
.wordmark, .brand-word, .brand-word .wordmark, a.brand-word,
.auth-brand, .auth-mark, .auth-wrap h1, .auth-wrap .auth-brand,
.logo, .logo.wordmark, .topchrome .wordmark, .topbar .wordmark,
.mock-top .wordmark, .nuevo-title {
  font-family: "Fredoka", system-ui, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
}
