/* ============================================================
   LEVA — estilos
   Paleta: bege, verde-azeitona, terracota (ver docs de design).
   Sem estilos inline no HTML (CSP style-src 'self').
   ============================================================ */
:root {
  --cream: #faf7ee;
  --cream-2: #f1ede0;
  --paper: #ffffff;
  --hero-dark: #12140f;
  --ink: #201d16;
  --muted: #6b6555;
  --muted-2: #8a8272;
  --green: #8ea35c;
  --green-deep: #566a35;
  --green-pale: #dbe6c4;
  --terracotta: #c1652f;
  --terracotta-deep: #8a4520;
  --terracotta-pale: #f3d4bd;
  --danger: #b3382c;
  --border: rgba(32, 29, 22, 0.1);
  --border-strong: rgba(32, 29, 22, 0.18);
  --on-dark-muted: rgba(250, 247, 238, 0.68);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;

  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 9999px;
  --topbar-h: 60px;
  --botnav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.has-botnav { padding-bottom: calc(var(--botnav-h) + env(safe-area-inset-bottom)); }

a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 520px; margin: 0 auto; padding: 0 20px; }
.page { padding: 20px 0 40px; }
.mt-s { margin-top: 8px; } .mt-m { margin-top: 16px; } .mt-l { margin-top: 28px; } .mb-s { margin-bottom: 8px; } .mb-m { margin-bottom: 16px; } .mb-l { margin-bottom: 28px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row--wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }

/* ---- Logótipo ---- */
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 20px; font-weight: 500; color: inherit; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo svg { flex: none; }

/* ---- Botões ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--r-full);
  font: 500 15px/1 var(--font-body);
  cursor: pointer; border: 1.5px solid transparent; text-decoration: none !important;
  transition: background-color .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.btn-primary { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); }
.btn-primary:hover { background: #475a2a; border-color: #475a2a; color: var(--cream); }
.btn-accent { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.btn-accent:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--cream-2); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(250, 247, 238, .6); }
.btn-outline-light:hover { background: rgba(250, 247, 238, .1); color: var(--cream); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(179, 56, 44, .4); }
.btn-danger:hover { background: rgba(179, 56, 44, .08); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: none; padding: 4px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--ink); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 40px; height: 40px; border-radius: var(--r-full);
  background: none; border: none; padding: 0; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: var(--cream-2); }

/* ---- Barra superior & navegação ---- */
.topbar { position: sticky; top: 0; z-index: 60; background: rgba(250, 247, 238, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar__inner { display: flex; align-items: center; gap: 18px; height: var(--topbar-h); }
.topnav { display: none; align-items: center; gap: 4px; margin-left: auto; }
.topnav a { position: relative; padding: 8px 14px; border-radius: var(--r-full); color: var(--muted); font-weight: 500; font-size: 14px; }
.topnav a:hover { background: var(--cream-2); color: var(--ink); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--ink); background: var(--cream-2); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.badge-dot {
  position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: var(--r-full); background: var(--terracotta); color: #fff; font-size: 10.5px; font-weight: 600; line-height: 17px; text-align: center;
}
.topnav .badge-dot { top: 0; right: -2px; }

.botnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: flex-start; justify-content: space-around;
  height: calc(var(--botnav-h) + env(safe-area-inset-bottom)); padding-top: 8px;
  background: var(--cream); border-top: 1px solid var(--border);
}
.botnav__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; color: var(--muted-2); font-size: 11px; font-weight: 500; text-decoration: none !important; }
.botnav__item[aria-current="page"] { color: var(--green-deep); }
.botnav__fab {
  display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-top: -14px;
  border-radius: var(--r-full); background: var(--green-deep); color: var(--cream);
  box-shadow: 0 6px 16px rgba(86, 106, 53, .4); text-decoration: none !important;
}
.botnav .badge-dot { top: -2px; right: 10px; }

@media (min-width: 860px) {
  .topnav { display: flex; }
  .topbar__right { margin-left: 8px; }
  .botnav { display: none; }
  body.has-botnav { padding-bottom: 0; }
}

/* ---- Hero (landing) ---- */
.hero { background: var(--hero-dark); color: var(--cream); }
.hero .topbar { background: transparent; border: none; backdrop-filter: none; position: static; }
.hero .topnav a { color: var(--on-dark-muted); }
.hero .topnav a:hover { background: rgba(250, 247, 238, .1); color: var(--cream); }
.hero .icon-btn { color: var(--cream); }
.hero__inner { display: grid; gap: 32px; padding: 20px 20px 56px; max-width: 1120px; margin: 0 auto; }
.hero__title { font-weight: 300; font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.hero__title em { font-style: normal; color: #c9d99a; }
.hero__subtitle { color: var(--on-dark-muted); font-size: 16px; max-width: 460px; margin-top: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__stats { display: flex; gap: 28px; margin-top: 34px; }
.hero__stat b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 300; }
.hero__stat span { font-size: 12px; color: var(--on-dark-muted); }
.hero__media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; aspect-ratio: 1 / 1; max-height: 460px; }
.hero__tile { border-radius: var(--r-lg); overflow: hidden; background: #23261c; display: flex; align-items: center; justify-content: center; color: rgba(250, 247, 238, .35); }
.hero__tile img { width: 100%; height: 100%; object-fit: cover; }
.hero__tile:nth-child(1) { background: #2b3220; } .hero__tile:nth-child(2) { background: #3a2a1f; margin-top: 28px; }
.hero__tile:nth-child(3) { background: #3a2a1f; } .hero__tile:nth-child(4) { background: #2b3220; }
@media (min-width: 860px) { .hero__inner { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 40px 20px 80px; gap: 56px; } }

.section { padding: 48px 0; }
.section__title { font-size: 26px; font-weight: 400; margin-bottom: 6px; }
.section__lead { color: var(--muted); margin-bottom: 24px; max-width: 560px; }
.steps { display: grid; gap: 16px; }
.step-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.step-card__n { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: var(--r-full); background: var(--green-pale); color: var(--green-deep); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.step-card h3 { font-size: 17px; margin-bottom: 4px; }
.step-card p { color: var(--muted); font-size: 14px; }
.band { background: var(--cream-2); }
.cta-band { background: var(--green-deep); color: var(--cream); border-radius: var(--r-lg); padding: 32px 24px; display: grid; gap: 16px; }
.cta-band h2 { font-weight: 400; font-size: 24px; }
.cta-band p { color: rgba(250, 247, 238, .8); max-width: 520px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 36px; } }

.footer { border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--muted); font-size: 13px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer a { color: var(--muted); }

/* ---- Pesquisa, chips, filtros ---- */
.searchbar { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--border-strong); border-radius: var(--r-full); padding: 11px 16px; }
.searchbar svg { flex: none; color: var(--muted-2); }
.searchbar input { border: none; outline: none; background: transparent; width: 100%; font: inherit; color: var(--ink); }
.searchbar:focus-within { outline: 2px solid var(--green); outline-offset: 1px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 20px; margin: 0 -20px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; white-space: nowrap; padding: 8px 15px; border-radius: var(--r-full);
  font: 500 13px var(--font-body); background: var(--paper); color: var(--muted);
  border: 1px solid var(--border-strong); cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-group .chip[aria-pressed="true"] { background: var(--green-deep); border-color: var(--green-deep); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.select {
  appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6555' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--border-strong); border-radius: var(--r-full); padding: 9px 32px 9px 14px; font: 500 13px var(--font-body); color: var(--ink); cursor: pointer;
}
.segmented { display: inline-flex; background: var(--cream-2); border-radius: var(--r-full); padding: 3px; }
.segmented button { border: none; background: none; padding: 7px 16px; border-radius: var(--r-full); font: 500 13px var(--font-body); color: var(--muted); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* ---- Cartões de objeto (grelha) ---- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; color: inherit; transition: box-shadow .15s, transform .15s; }
.card:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(32, 29, 22, .1); transform: translateY(-2px); }
.card__photo { position: relative; aspect-ratio: 4 / 3; background: var(--cream-2); }
.card__photo img { width: 100%; height: 100%; object-fit: cover; }
.card__photo .badge { position: absolute; top: 10px; left: 10px; }
.card__fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: var(--r-full); background: rgba(250, 247, 238, .92); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.card__fav[aria-pressed="true"] { color: var(--terracotta); }
.card__fav[aria-pressed="true"] svg { fill: currentColor; }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.card__title { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card--row { flex-direction: row; align-items: center; gap: 12px; padding: 10px; }
.card--row .card__photo { width: 72px; flex: none; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; }
.card--row .card__body { padding: 0; min-width: 0; flex: 1; }

.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 3px 10px 3px 8px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 600; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-full); background: currentColor; }
.badge--disponivel { background: var(--green-pale); color: var(--green-deep); }
.badge--reservado { background: var(--terracotta-pale); color: var(--terracotta-deep); }
.badge--recolhido { background: #e6e2d6; color: var(--muted); }
.badge--aviso { background: #f6e3b4; color: #7a5a0a; }
.tag { display: inline-block; padding: 3px 10px; border-radius: var(--r-full); background: var(--cream-2); color: var(--muted); font-size: 12px; font-weight: 500; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { color: var(--muted-2); margin: 0 auto 12px; }
.empty h3 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }
.skeleton { background: linear-gradient(90deg, var(--cream-2) 25%, #e9e4d3 37%, var(--cream-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-lg); aspect-ratio: 4 / 3.3; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---- Mapa ---- */
.map { width: 100%; height: 58vh; min-height: 340px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: var(--cream-2); position: relative; z-index: 0; }
.map--mini { height: 200px; min-height: 0; }
.map--pick { height: 260px; min-height: 0; }
.pin { width: 20px; height: 20px; border-radius: var(--r-full); border: 3px solid var(--cream); box-shadow: 0 1px 5px rgba(0, 0, 0, .35); }
.pin--disponivel { background: var(--green-deep); }
.pin--reservado { background: var(--terracotta); }
.pin--pick { width: 26px; height: 26px; background: var(--terracotta); }
.map-sheet { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 500; }
.map-sheet .card { box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.leaflet-container { font-family: var(--font-body); }

/* ---- Detalhe do objeto ---- */
.detail { display: grid; gap: 22px; }
@media (min-width: 860px) { .detail { grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: start; } }
.gallery { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--cream-2); }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery__dot { width: 7px; height: 7px; border-radius: var(--r-full); background: rgba(255, 255, 255, .6); transition: width .2s, background-color .2s; }
.gallery__dot.is-on { background: #fff; width: 18px; }
.gallery__back { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(250, 247, 238, .92); }
.gallery__fav { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(250, 247, 238, .92); }
.gallery__fav[aria-pressed="true"] { color: var(--terracotta); }
.gallery__fav[aria-pressed="true"] svg { fill: currentColor; }
.detail__title { font-size: 26px; font-weight: 400; line-height: 1.15; }
.detail__meta { color: var(--muted); font-size: 14px; }
.owner-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: inherit; }
.owner-row:hover { text-decoration: none; }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--green-pale); color: var(--green-deep); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px; }
.avatar--lg { width: 72px; height: 72px; font-size: 28px; }
.panel { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; }
.panel--note { background: #fbf3e4; border-color: #ecd9b0; }
.panel h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; font-family: var(--font-body); }
.stars { color: var(--terracotta); letter-spacing: 1px; white-space: nowrap; }
.star-input { display: flex; gap: 4px; }
.star-input button { background: none; border: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--border-strong); padding: 0 2px; }
.star-input button.is-on { color: var(--terracotta); }

/* ---- Formulários ---- */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.form-input, .form-textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 13px 15px; font: 16px var(--font-body); color: var(--ink);
}
.form-textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.form-input:focus, .form-textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.form-hint { font-size: 12.5px; color: var(--muted-2); }
.form-error { font-size: 13.5px; color: var(--danger); background: rgba(179, 56, 44, .08); border-radius: var(--r-md); padding: 10px 14px; margin-bottom: 14px; }
.form-ok { font-size: 13.5px; color: var(--green-deep); background: var(--green-pale); border-radius: var(--r-md); padding: 10px 14px; margin-bottom: 14px; }
.counter { text-align: right; font-size: 12px; color: var(--muted-2); }
.auth-title { font-size: 30px; font-weight: 300; margin: 24px 0 6px; }

/* ---- Assistente de publicação ---- */
.wizard-head { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.dots { display: flex; gap: 6px; }
.dot { height: 8px; width: 8px; border-radius: var(--r-full); background: var(--border-strong); transition: width .2s, background-color .2s; }
.dot.is-done { background: var(--green); }
.dot.is-on { width: 22px; background: var(--green-deep); }
.step { display: none; }
.step.is-on { display: block; }
.step__title { font-family: var(--font-display); font-weight: 300; font-size: 28px; margin-bottom: 6px; }
.step__sub { color: var(--muted); margin-bottom: 22px; }
.step__actions { display: flex; gap: 10px; margin-top: 24px; }
.step__actions .btn-primary, .step__actions .btn-accent { flex: 1; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.photo-slot { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--cream-2); border: 2px dashed var(--border-strong); display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; color: var(--muted-2); font-size: 12.5px; cursor: pointer; }
.photo-slot:hover { border-color: var(--green); color: var(--green-deep); }
.photo-slot.has-photo { border: none; cursor: default; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot__x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: var(--r-full); border: none; background: rgba(32, 29, 22, .75); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.photo-slot__main { position: absolute; left: 6px; bottom: 6px; background: rgba(32, 29, 22, .75); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: var(--r-full); }
.photo-slot.is-loading::after { content: "A enviar…"; position: absolute; inset: 0; background: rgba(250, 247, 238, .85); display: flex; align-items: center; justify-content: center; color: var(--ink); font-weight: 500; }
.summary { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; }
.summary__photo { flex: none; width: 76px; height: 76px; border-radius: var(--r-md); background: var(--cream-2); overflow: hidden; }
.summary__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Mensagens ---- */
.inbox { display: flex; flex-direction: column; gap: 8px; }
.conv { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px; color: inherit; }
.conv:hover { text-decoration: none; background: #fffdf7; }
.conv__photo { flex: none; width: 56px; height: 56px; border-radius: var(--r-md); overflow: hidden; background: var(--cream-2); }
.conv__photo img { width: 100%; height: 100%; object-fit: cover; }
.conv__body { flex: 1; min-width: 0; }
.conv__top { display: flex; justify-content: space-between; gap: 8px; }
.conv__title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv__time { font-size: 12px; color: var(--muted-2); flex: none; }
.conv__last { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.is-unread .conv__last { color: var(--ink); font-weight: 500; }
.unread-pill { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-full); background: var(--terracotta); color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; }
.thread { display: flex; flex-direction: column; min-height: calc(100vh - var(--topbar-h) - var(--botnav-h) - 20px); }
@media (min-width: 860px) { .thread { min-height: calc(100vh - var(--topbar-h) - 40px); } }
.thread__head { position: sticky; top: var(--topbar-h); z-index: 20; background: var(--cream); padding: 10px 0; border-bottom: 1px solid var(--border); }
.thread__msgs { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 0; }
.msg { max-width: 82%; padding: 9px 14px; border-radius: 18px; background: var(--paper); border: 1px solid var(--border); align-self: flex-start; overflow-wrap: anywhere; white-space: pre-line; }
.msg--mine { align-self: flex-end; background: var(--green-deep); border-color: var(--green-deep); color: var(--cream); }
.msg--sys { align-self: center; max-width: 92%; background: var(--cream-2); border: none; color: var(--muted); font-size: 13px; text-align: center; border-radius: var(--r-md); }
.msg time { display: block; font-size: 10.5px; opacity: .6; margin-top: 2px; }
.composer { position: sticky; bottom: calc(var(--botnav-h) + env(safe-area-inset-bottom)); background: var(--cream); padding: 10px 0 12px; display: flex; gap: 8px; align-items: flex-end; border-top: 1px solid var(--border); }
@media (min-width: 860px) { .composer { bottom: 0; } }
.composer textarea { flex: 1; min-height: 46px; max-height: 120px; resize: none; border-radius: 23px; padding: 12px 16px; }

/* ---- Perfil ---- */
.profile-head { display: flex; align-items: center; gap: 16px; padding: 8px 0 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.stat { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.stat span { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: none; padding: 12px 16px; font: 500 14px var(--font-body); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--green-deep); }
.review { padding: 12px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: none; }

/* ---- Modal & toast ---- */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(18, 20, 15, .55); display: flex; align-items: flex-end; justify-content: center; }
.modal__box { background: var(--cream); width: 100%; max-width: 480px; border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto; }
.modal__box h2 { font-size: 22px; font-weight: 400; margin-bottom: 14px; }
@media (min-width: 640px) { .modal { align-items: center; } .modal__box { border-radius: 22px; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--botnav-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 300; background: var(--ink); color: var(--cream); padding: 11px 20px; border-radius: var(--r-full); font-size: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); max-width: 90vw; }
@media (min-width: 860px) { .toast { bottom: 28px; } }

.prose { max-width: 700px; }
.prose h1 { font-size: 32px; font-weight: 300; margin: 8px 0 6px; }
.prose h2 { font-size: 19px; font-weight: 600; margin: 28px 0 8px; font-family: var(--font-body); }
.prose p, .prose li { color: #3b362b; margin-bottom: 10px; }
.prose ul { padding-left: 20px; }
.prose .draft { background: #fbf3e4; border: 1px solid #ecd9b0; border-radius: var(--r-md); padding: 12px 16px; font-size: 13.5px; margin: 16px 0; }

.narrow-left { max-width: 560px; }
.is-danger-text { color: var(--danger); }
