/* Poços Perto — design system (mobile first). Tokens follow the prototype: paper, ink, verde, cobre. */

@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --paper: #f7f6f3; --paper-deep: #efede7; --ink: #1b1a17; --ink-soft: #5d5951; --ink-faint: #8b867c;
  --verde: #0f5c4d; --verde-deep: #0a3d34; --verde-soft: #e4efe9; --verde-line: #b9d6ca;
  --cobre: #c2622f; --cobre-deep: #9d4a1f; --cobre-soft: #fbeade; --areia: #efe9dd; --linha: #e6e1d8;
  --manual: #013735; --gold: #c6a04a; --gold-2: #d9b96a; --gold-3: #e7c67c; --cream: #f7f2e6;
  --whats: #128c4a; --whats-soft: #e3f4ea; --insta: #b3276c; --insta-soft: #fdeef4;
  --danger: #a33a2a; --danger-soft: #fdf1ee; --warn: #8a5a00; --warn-soft: #fff5dc; --info: #1f4e79; --info-soft: #e8f0f8;
  --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 24px;
  --sh-1: 0 1px 2px rgb(27 26 23 / .04), 0 8px 24px -18px rgb(27 26 23 / .35);
  --sh-2: 0 2px 4px rgb(27 26 23 / .06), 0 18px 36px -24px rgb(27 26 23 / .45);
  --sh-pop: 0 20px 50px -20px rgb(0 0 0 / .45);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 120px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--paper-deep); }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--verde); color: #fff; }
[hidden] { display: none !important; }
.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; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--verde); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- Layout ---------- */
.container { width: 100%; margin: 0 auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; max-width: 1180px; } }
.narrow { max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 1rem); }
.stack-sm { --gap: .5rem; } .stack-xs { --gap: .25rem; } .stack-lg { --gap: 1.5rem; } .stack-xl { --gap: 2.25rem; }
.row { display: flex; align-items: center; gap: var(--gap, .75rem); }
.row-top { align-items: flex-start; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { text-align: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.shrink-0 { flex-shrink: 0; }
.grid { display: grid; gap: var(--gap, 1rem); grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
.g-2 { --cols: 2; }
@media (min-width: 640px) { .sm-2 { --cols: 2; } .sm-3 { --cols: 3; } }
@media (min-width: 900px) { .md-2 { --cols: 2; } .md-3 { --cols: 3; } .md-4 { --cols: 4; } }
@media (min-width: 1100px) { .lg-3 { --cols: 3; } .lg-4 { --cols: 4; } }
.section { padding-block: 1.75rem; }
.section-lg { padding-block: 2.5rem; }
@media (min-width: 900px) { .section { padding-block: 2.5rem; } .section-lg { padding-block: 3.5rem; } }
.bg-white { background: #fff; } .bg-paper { background: var(--paper); } .bg-cobre { background: color-mix(in srgb, var(--cobre-soft) 65%, white); }
.bt { border-top: 1px solid var(--linha); } .bb { border-bottom: 1px solid var(--linha); }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: .5rem; } .mb-4 { margin-bottom: 1rem; }
.w-full { width: 100%; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: initial; } .only-sm { display: none !important; } }
@media (min-width: 1024px) { .hide-lg { display: none !important; } }
@media (max-width: 1023px) { .only-lg { display: none !important; } }

/* ---------- Text ---------- */
.eyebrow { font-size: .68rem; font-weight: 650; text-transform: uppercase; letter-spacing: .18em; color: var(--verde); }
.eyebrow-cobre { color: var(--cobre); }
.h1 { font-size: clamp(1.6rem, 4.6vw, 2.35rem); font-weight: 700; line-height: 1.12; }
.h2 { font-size: clamp(1.25rem, 3.2vw, 1.6rem); font-weight: 700; }
.section-title { font-size: 1.12rem; font-weight: 650; letter-spacing: -.02em; }
@media (min-width: 640px) { .section-title { font-size: 1.28rem; } }
.display { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; }
.lead { font-size: 1rem; color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--ink-soft); } .faint { color: var(--ink-faint); }
.small { font-size: .86rem; } .tiny { font-size: .76rem; } .xs { font-size: .68rem; }
.bold { font-weight: 650; } .semi { font-weight: 600; }
.verde { color: var(--verde); } .cobre { color: var(--cobre); } .danger { color: var(--danger); }
.clamp-1, .clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; } .clamp-2 { -webkit-line-clamp: 2; } .clamp-3 { -webkit-line-clamp: 3; }
.pre { white-space: pre-line; }
.link { color: var(--verde); font-weight: 600; }
.link:hover { text-decoration: underline; }
.link-u { text-decoration: underline; text-decoration-color: var(--linha); text-underline-offset: 4px; }
.link-u:hover { text-decoration-color: var(--verde); }
.prose p + p { margin-top: .8rem; }
.prose { line-height: 1.65; color: var(--ink-soft); }
.prose h2 { font-size: 1.1rem; color: var(--ink); margin: 1.5rem 0 .5rem; }
.prose ul { padding-left: 1.2rem; margin: .5rem 0; }
.prose li + li { margin-top: .35rem; }
.i { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.i-sm { width: .95em; height: .95em; } .i-lg { width: 1.5em; height: 1.5em; } .i-xl { width: 2rem; height: 2rem; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--linha); }
.topbar-row { display: flex; align-items: center; gap: .75rem; height: 60px; }
.brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-name { font-weight: 750; font-size: 1.08rem; letter-spacing: -.03em; line-height: 1; }
.brand-tag { font-size: .58rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); margin-top: 3px; }
.nav-desk { display: none; align-items: center; gap: .15rem; margin-left: 1rem; }
.nav-desk a { padding: .45rem .75rem; border-radius: 999px; font-size: .88rem; font-weight: 550; color: var(--ink-soft); }
.nav-desk a:hover { color: var(--verde); }
.nav-desk a.on { background: var(--verde-soft); color: var(--verde); }
.nav-desk a.cobre-link { color: var(--cobre); }
.nav-desk a.cobre-link.on { background: var(--cobre-soft); }
@media (min-width: 1024px) { .nav-desk { display: flex; } }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.list-pill { position: relative; display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 .85rem; border-radius: 999px; border: 1px solid var(--linha); background: #fff; font-size: .86rem; font-weight: 600; }
.count-badge { position: absolute; top: -5px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--cobre); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.searchline { display: flex; align-items: center; gap: .6rem; padding-bottom: .65rem; }
.fake-search { flex: 1; display: flex; align-items: center; gap: .55rem; height: 44px; padding: 0 1rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--linha); color: var(--ink-faint); font-size: .92rem; }
.fake-search:hover { border-color: var(--verde-line); }
.city-chip { display: none; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--verde); background: var(--verde-soft); padding: .45rem .75rem; border-radius: 999px; white-space: nowrap; }
.top-note { display: none; font-size: .76rem; color: var(--ink-soft); white-space: nowrap; }
@media (min-width: 900px) { .city-chip, .top-note { display: inline-flex; } }

/* ---------- Bottom tab bar (mobile) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgb(255 255 255 / .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--linha); padding-bottom: var(--safe-b); }
.tabbar-inner { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tabbar-h); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .66rem; font-weight: 600; color: var(--ink-faint); }
.tab .i { width: 23px; height: 23px; stroke-width: 1.9; }
.tab.on { color: var(--verde); }
.tab.on .i { stroke-width: 2.4; }
.tab .count-badge { top: 4px; right: calc(50% - 22px); }
.tab-mural.on { color: var(--cobre); }
body { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
@media (min-width: 1024px) { .tabbar { display: none; } body { padding-bottom: 0; } }

/* ---------- Footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--linha); margin-top: 2rem; }
.footer-grid { display: grid; gap: 1.75rem; padding-block: 2.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: .75rem; }
.footer li { list-style: none; } .footer ul { padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; font-size: .88rem; }
.footer ul a:hover { color: var(--verde); }
.footer-bottom { border-top: 1px solid var(--linha); padding-block: 1rem; font-size: .76rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; }

/* ---------- Buttons ---------- */
.btn { --bg: #fff; --fg: var(--ink); --bd: var(--linha); display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg); font-size: .9rem; font-weight: 650; line-height: 1.1; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s; user-select: none; }
.btn:hover { border-color: var(--verde-line); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-primary { --bg: var(--verde); --fg: #fff; --bd: var(--verde); }
.btn-primary:hover { --bg: var(--verde-deep); border-color: var(--verde-deep); }
.btn-dark { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-copper { --bg: var(--cobre); --fg: #fff; --bd: var(--cobre); }
.btn-copper:hover { --bg: var(--cobre-deep); border-color: var(--cobre-deep); }
.btn-soft { --bg: var(--verde-soft); --fg: var(--verde-deep); --bd: transparent; }
.btn-soft-cobre { --bg: var(--cobre-soft); --fg: var(--cobre-deep); --bd: transparent; }
.btn-whats { --bg: var(--whats); --fg: #fff; --bd: var(--whats); }
.btn-whats:hover { --bg: #0d7a3f; }
.btn-insta { --bg: var(--insta-soft); --fg: var(--insta); --bd: transparent; }
.btn-ghost { --bg: transparent; --bd: transparent; --fg: var(--ink-soft); }
.btn-ghost:hover { --fg: var(--verde); border-color: transparent; }
.btn-danger { --bg: var(--danger-soft); --fg: var(--danger); --bd: transparent; }
.btn-white { --bg: #fff; --fg: var(--verde-deep); --bd: #fff; }
.btn-outline-light { --bg: transparent; --fg: #fff; --bd: rgb(255 255 255 / .45); }
.btn-gold { --bg: transparent; --fg: #f3ead6; --bd: rgb(198 160 74 / .45); font-weight: 550; }
.btn-gold:hover { --bg: rgb(198 160 74 / .14); border-color: var(--gold); }
.btn-sm { min-height: 36px; padding: .4rem .85rem; font-size: .82rem; }
.btn-xs { min-height: 30px; padding: .25rem .65rem; font-size: .76rem; }
.btn-lg { min-height: 52px; padding: .75rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-sq { border-radius: var(--r-sm); }
.btn .spinner { display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .8; }

/* ---------- Chips, badges ---------- */
.chip { display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--linha); background: #fff; font-size: .85rem; font-weight: 550; color: var(--ink-soft); white-space: nowrap; transition: .15s; }
.chip:hover { border-color: var(--verde-line); color: var(--verde); }
.chip.on, .chip:has(input:checked) { background: var(--verde); border-color: var(--verde); color: #fff; }
.chip.on-cobre { background: var(--cobre); border-color: var(--cobre); color: #fff; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip-count { font-size: .72rem; opacity: .75; }
.seal { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 999px; background: var(--cobre-soft); color: var(--cobre-deep); border: 1px solid rgb(194 98 47 / .28); font-size: .68rem; font-weight: 700; white-space: nowrap; }
.seal-solid { background: var(--cobre); color: #fff; border-color: var(--cobre); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 700; background: var(--paper-deep); color: var(--ink-soft); white-space: nowrap; }
.badge-open { background: var(--verde-soft); color: var(--verde); }
.badge-dark { background: rgb(27 26 23 / .78); color: #fff; }
.badge-white { background: rgb(255 255 255 / .94); color: var(--verde-deep); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-ok { background: var(--verde-soft); color: var(--verde); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--linha); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card-flat { background: #fff; border: 1px solid var(--linha); border-radius: var(--r); }
.pad { padding: 1rem; } .pad-lg { padding: 1.25rem; }
@media (min-width: 640px) { .pad { padding: 1.25rem; } .pad-lg { padding: 1.75rem; } }
.notice { display: flex; gap: .65rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--r); background: var(--verde-soft); color: var(--verde-deep); font-size: .88rem; line-height: 1.5; }
.notice-cobre { background: var(--cobre-soft); color: var(--cobre-deep); }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.notice-danger { background: var(--danger-soft); color: var(--danger); }
.notice-info { background: var(--info-soft); color: var(--info); }
.notice-plain { background: var(--paper); color: var(--ink-soft); border: 1px dashed var(--linha); }
.notice .i { margin-top: 2px; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-soft); }
.empty .i { width: 42px; height: 42px; margin: 0 auto .75rem; color: var(--ink-faint); }
.empty h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: .35rem; }

/* ---------- Snap carousels ---------- */
.snap-row { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; }
.snap-row::-webkit-scrollbar { display: none; }
.snap-row > * { scroll-snap-align: start; flex-shrink: 0; }
@media (min-width: 640px) { .snap-row { margin-inline: 0; padding-inline: 0; } }
.no-scrollbar { scrollbar-width: none; } .no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- Section heading ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.section-head p { font-size: .84rem; color: var(--ink-soft); margin-top: .15rem; }
.more-link { display: inline-flex; align-items: center; gap: .25rem; font-size: .82rem; font-weight: 650; color: var(--verde); white-space: nowrap; }

/* ---------- Home hero (Manual) ---------- */
.hero-manual { position: relative; overflow: hidden; background: var(--manual); color: #fff; }
.hero-manual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 380px at 85% 10%, rgb(198 160 74 / .2), transparent 60%), radial-gradient(500px 320px at 5% 95%, rgb(198 160 74 / .12), transparent 60%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 1.5rem; padding-block: 1.5rem 1.75rem; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; padding-block: 3rem; gap: 3rem; } }
.hero-text { order: 2; }
.hero-art { order: 1; }
@media (min-width: 1024px) { .hero-text { order: 1; } .hero-art { order: 2; } }
.hero-kicker { display: flex; align-items: center; gap: .75rem; font-size: .64rem; font-weight: 650; text-transform: uppercase; letter-spacing: .3em; color: var(--gold-2); }
.hero-kicker::after { content: ""; flex: 1; height: 1px; background: rgb(198 160 74 / .4); }
.hero-title { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 5.2vw, 2.95rem); line-height: 1.04; color: var(--cream); margin-top: 1rem; letter-spacing: -.02em; }
.hero-title em { color: var(--gold-3); font-style: italic; }
.hero-sub { font-family: var(--display); font-style: italic; color: #efe6cf; font-size: clamp(.98rem, 2.2vw, 1.12rem); margin-top: .75rem; }
.hero-desc { margin-top: 1rem; max-width: 34rem; font-size: .9rem; line-height: 1.6; color: rgb(255 255 255 / .75); }
.hero-only-desk { display: none; }
@media (min-width: 1024px) { .hero-only-desk { display: block; } }
.hero-search { margin-top: 1.25rem; display: flex; align-items: center; gap: .4rem; max-width: 34rem; padding: .35rem; border-radius: 999px; background: #fff; border: 1px solid rgb(198 160 74 / .5); box-shadow: 0 14px 34px -18px rgb(0 0 0 / .6); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .55rem .4rem; font-size: .98rem; color: var(--ink); outline: none; }
.hero-search .i { color: var(--verde); margin-left: .6rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.hero-stats { margin-top: 1rem; font-size: .72rem; line-height: 1.6; color: rgb(255 255 255 / .58); }
.hero-frame { position: relative; margin: 0 auto; max-width: 240px; }
@media (min-width: 640px) { .hero-frame { max-width: 360px; } }
@media (min-width: 1024px) { .hero-frame { max-width: 390px; } }
.hero-frame::before { content: ""; position: absolute; inset: -10px; border: 1px solid rgb(198 160 74 / .35); border-radius: 24px; }
.hero-frame img { position: relative; border-radius: var(--r-lg); box-shadow: 0 25px 60px -20px rgb(0 0 0 / .75); background: var(--manual); width: 100%; }
.hero-band { position: relative; border-top: 1px solid rgb(198 160 74 / .25); }
.hero-band .container { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding-block: .75rem; font-size: .68rem; color: rgb(255 255 255 / .58); text-align: center; }
@media (min-width: 640px) { .hero-band .container { flex-direction: row; justify-content: space-between; } }
.hero-band b { text-transform: uppercase; letter-spacing: .24em; color: var(--gold-2); font-weight: 600; }
.hero-band i { font-family: var(--display); }

/* ---------- Category tiles ---------- */
.cat-tile { width: 88px; display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; }
.cat-icon { width: 64px; height: 64px; border-radius: var(--r-lg); background: var(--paper); color: var(--verde); display: grid; place-items: center; transition: .15s; }
.cat-icon .i { width: 26px; height: 26px; }
.cat-tile:hover .cat-icon, .cat-tile.on .cat-icon { background: var(--verde); color: #fff; }
.cat-name { font-size: .74rem; font-weight: 650; line-height: 1.2; height: 2.4em; overflow: hidden; }
.cat-count { font-size: .64rem; color: var(--ink-soft); margin-top: -.3rem; }

/* ---------- Store card ---------- */
.store-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--linha); border-radius: var(--r-lg); box-shadow: 0 1px 2px rgb(27 26 23 / .04), 0 10px 26px -22px rgb(27 26 23 / .4); transition: box-shadow .2s, transform .2s; }
.store-card:hover { box-shadow: var(--sh-2); }
.store-cover { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-deep); }
.store-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.store-card:hover .store-cover img { transform: scale(1.03); }
.mono { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 750; font-size: 2.3rem; letter-spacing: -.04em; }
.mono-0 { background: linear-gradient(135deg, #0f5c4d, #3f9a80); }
.mono-1 { background: linear-gradient(135deg, #c2622f, #e0a06f); }
.mono-2 { background: linear-gradient(135deg, #0a3d34, #5f8f6b); }
.mono-3 { background: linear-gradient(135deg, #6b4c35, #c49a6c); }
.cover-tl, .cover-tr { position: absolute; top: .6rem; }
.cover-tl { left: .6rem; } .cover-tr { right: .6rem; }
.cover-br { position: absolute; right: .6rem; bottom: .6rem; }
.store-logo-mini { position: absolute; left: .6rem; bottom: .6rem; width: 44px; height: 44px; border-radius: 12px; border: 2px solid #fff; overflow: hidden; background: #fff; box-shadow: var(--sh-1); }
.store-logo-mini img { width: 100%; height: 100%; object-fit: cover; }
.store-body { padding: .8rem .9rem .9rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.store-cat { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--verde); }
.store-name { font-size: 1rem; font-weight: 650; line-height: 1.25; }
.store-meta { font-size: .8rem; color: var(--ink-soft); display: flex; align-items: center; gap: .3rem; }
.store-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding: 0 .9rem .9rem; }
.store-actions a, .store-actions button { min-height: 38px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 12px; font-size: .68rem; font-weight: 650; background: var(--paper); color: var(--ink-soft); }
.store-actions .i { width: 17px; height: 17px; }
.store-actions .a-whats { background: var(--whats-soft); color: var(--whats); }
.store-actions .a-insta { background: var(--insta-soft); color: var(--insta); }
.store-actions .a-phone { background: var(--verde-soft); color: var(--verde); }
@media (min-width: 640px) { .store-actions a { flex-direction: row; gap: .35rem; font-size: .74rem; } }
.store-tile { width: 268px; }
@media (max-width: 639px) {
  .g-2 .store-actions { gap: .3rem; padding: 0 .6rem .7rem; }
  .g-2 .store-actions .lbl { display: none; }
  .g-2 .store-actions a { min-height: 40px; }
  .g-2 .store-body { padding: .7rem .7rem .8rem; }
  .g-2 .store-name { font-size: .92rem; }
  .g-2 .seal { font-size: .62rem; padding: .2rem .45rem; }
  .g-2 .cover-tl { left: .4rem; top: .4rem; }
}
.compact .store-actions { display: none; }

/* ---------- Product card ---------- */
.product-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--linha); border-radius: var(--r); }
.product-img { position: relative; aspect-ratio: 5 / 4; background: linear-gradient(135deg, var(--verde-soft), var(--paper)); display: grid; place-items: center; color: var(--verde); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: .7rem .8rem .85rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.product-store { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
.product-name { font-size: .9rem; font-weight: 600; line-height: 1.3; }
.price { font-weight: 750; color: var(--verde); font-size: .98rem; }
.price-old { text-decoration: line-through; color: var(--ink-faint); font-size: .78rem; font-weight: 500; }
.unavailable-band { position: absolute; left: 0; right: 0; bottom: 0; background: rgb(27 26 23 / .78); color: #fff; font-size: .7rem; font-weight: 650; text-align: center; padding: .3rem; }
.is-unavailable { opacity: .8; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; }
.label { font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.label .opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-faint); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: var(--r); border: 1px solid var(--linha); background: #fff; font-size: 1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #a39e94; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgb(15 92 77 / .12); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235d5951' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.4rem; }
.input-sm { min-height: 40px; padding: .45rem .7rem; font-size: .9rem; }
.help { font-size: .78rem; color: var(--ink-soft); }
.err { font-size: .8rem; color: var(--danger); font-weight: 600; }
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: .65rem; padding: .75rem .85rem; border-radius: var(--r); border: 1px solid var(--linha); background: #fff; cursor: pointer; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--verde); flex-shrink: 0; }
.check:has(input:checked) { border-color: var(--verde-line); background: color-mix(in srgb, var(--verde-soft) 45%, white); }
.check-plain { border: 0; padding: .25rem 0; background: none; }
.check-plain:has(input:checked) { background: none; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--paper-deep); flex-wrap: wrap; }
.seg label { position: relative; padding: .4rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: #fff; color: var(--verde); box-shadow: var(--sh-1); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.input-group { display: flex; align-items: center; gap: .5rem; }
.counter { font-size: .72rem; color: var(--ink-faint); text-align: right; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Wizard ---------- */
.steps { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding: 0 1rem .25rem; }
@media (min-width: 640px) { .steps { margin-inline: 0; padding-inline: 0; } }
.steps::-webkit-scrollbar { display: none; }
.step-pill { flex-shrink: 0; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--linha); background: #fff; font-size: .76rem; font-weight: 650; color: var(--ink-faint); }
.step-pill b { font-size: .7rem; opacity: .7; }
.step-pill.on { background: var(--verde); border-color: var(--verde); color: #fff; }
.step-pill.done { color: var(--verde); border-color: var(--verde-line); }
.step-panel { display: none; }
.step-panel.on { display: block; animation: rise .28s ease-out both; }
.wizard-nav { position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 5; display: flex; gap: .6rem; padding: .75rem 0; background: linear-gradient(to top, var(--paper) 70%, transparent); }
@media (min-width: 1024px) { .wizard-nav { bottom: 0; } }
.progress-bar { height: 4px; border-radius: 99px; background: var(--paper-deep); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--verde); width: 0; transition: width .3s; }

/* ---------- Uploads ---------- */
.uploader { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.upl-tile { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--paper-deep); border: 1px solid var(--linha); }
.upl-tile img { width: 100%; height: 100%; object-fit: cover; }
.upl-tile .upl-x { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; background: rgb(27 26 23 / .72); color: #fff; display: grid; place-items: center; }
.upl-tile .upl-x .i { width: 15px; height: 15px; }
.upl-tile .upl-progress { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 5px; border-radius: 99px; background: rgb(255 255 255 / .6); overflow: hidden; }
.upl-tile .upl-progress span { display: block; height: 100%; width: 0; background: var(--verde); transition: width .2s; }
.upl-tile .upl-label { position: absolute; left: 0; right: 0; bottom: 0; padding: .3rem; font-size: .64rem; font-weight: 650; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .65)); text-align: center; }
.upl-add { aspect-ratio: 1; border-radius: var(--r); border: 1.5px dashed var(--verde-line); background: color-mix(in srgb, var(--verde-soft) 40%, white); color: var(--verde); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; font-size: .74rem; font-weight: 650; text-align: center; padding: .5rem; cursor: pointer; }
.upl-add:hover { background: var(--verde-soft); }
.upl-add input { display: none; }
.upl-single { display: flex; align-items: center; gap: .85rem; }
.upl-single .upl-tile, .upl-single .upl-add { width: 96px; flex-shrink: 0; }
.upl-single.cover .upl-tile, .upl-single.cover .upl-add { width: 160px; aspect-ratio: 16/10; }

/* ---------- Store page ---------- */
.store-hero { position: relative; background: var(--paper-deep); }
.store-hero-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
@media (min-width: 640px) { .store-hero-img { aspect-ratio: 21 / 8; } }
.store-hero-fallback { height: 150px; background: linear-gradient(120deg, #0f5c4d, #3f9a80 55%, #e0a06f); }
@media (min-width: 640px) { .store-hero-fallback { height: 200px; } }
.store-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgb(0 0 0 / .28)); pointer-events: none; }
.store-hero .cover-tl { z-index: 2; }
.back-pill { position: absolute; top: .75rem; left: .75rem; z-index: 3; }
.identity { position: relative; z-index: 4; margin-top: -42px; }
.identity-logo { width: 76px; height: 76px; border-radius: 20px; border: 4px solid #fff; background: #fff; overflow: hidden; box-shadow: var(--sh-1); display: grid; place-items: center; color: var(--verde); flex-shrink: 0; }
.identity-logo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .identity-logo { width: 88px; height: 88px; } }
.action-bar { display: grid; gap: .5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .action-bar { grid-template-columns: repeat(4, 1fr); } }
.action-bar .btn { min-height: 48px; border-radius: var(--r); }
.tabs { display: flex; gap: .35rem; padding: 4px; border-radius: 999px; background: var(--paper-deep); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: 1 0 auto; text-align: center; padding: .55rem 1rem; border-radius: 999px; font-size: .86rem; font-weight: 650; color: var(--ink-soft); white-space: nowrap; }
.tabs .on { background: #fff; color: var(--verde); box-shadow: var(--sh-1); }
.tab-panel { display: none; } .tab-panel.on { display: block; animation: rise .25s ease-out both; }
.hours-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours-table td { padding: .45rem 0; border-bottom: 1px dashed var(--linha); }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }
.hours-table tr.today td { font-weight: 700; color: var(--verde); }
.brand-tile { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .9rem .5rem; border-radius: var(--r); background: #fff; border: 1px solid var(--linha); text-align: center; font-size: .82rem; font-weight: 600; }
.brand-mono { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--verde); font-weight: 750; }
.gallery { display: grid; gap: .5rem; grid-template-columns: repeat(3, 1fr); }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); width: 100%; }

/* ---------- Dialog / sheet ---------- */
dialog.sheet { border: 0; padding: 0; max-width: 560px; width: 100%; max-height: 92vh; background: #fff; color: var(--ink); border-radius: var(--r-xl) var(--r-xl) 0 0; margin: auto auto 0; box-shadow: var(--sh-pop); overflow: hidden; }
@media (min-width: 640px) { dialog.sheet { margin: auto; border-radius: var(--r-xl); } }
dialog.sheet::backdrop { background: rgb(15 20 18 / .55); backdrop-filter: blur(2px); }
dialog.sheet[open] { animation: sheet-in .25s ease-out; }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.1rem .5rem; }
.sheet-body { padding: .5rem 1.1rem 1.25rem; overflow-y: auto; max-height: calc(92vh - 64px); }
.sheet-grab { width: 42px; height: 5px; border-radius: 99px; background: var(--linha); margin: .5rem auto 0; }
@media (min-width: 640px) { .sheet-grab { display: none; } }
dialog.lightbox { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #000; margin: 0; }
dialog.lightbox::backdrop { background: #000; }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: grid; place-items: center; }
.lb-slide img, .lb-slide video { max-width: 100%; max-height: 100%; object-fit: contain; background: #000; }
.lb-close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .16); color: #fff; display: grid; place-items: center; }
.lb-count { position: fixed; top: calc(22px + env(safe-area-inset-top, 0px)); left: 16px; color: #fff; font-size: .85rem; font-weight: 600; }

/* ---------- Toast ---------- */
#toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); width: min(92vw, 420px); display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
@media (min-width: 1024px) { #toasts { bottom: 24px; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: var(--r); background: var(--ink); color: #fff; font-size: .88rem; box-shadow: var(--sh-pop); animation: rise .25s ease-out both; }
.toast.ok { background: var(--verde-deep); } .toast.err { background: var(--danger); }

/* ---------- Skeleton & spinner ---------- */
.skel { background: linear-gradient(90deg, var(--paper-deep) 0%, #f5f3ee 50%, var(--paper-deep) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline-block; }

/* ---------- AI box ---------- */
.ai-box { background: #fff; border: 1px solid var(--verde-line); border-radius: var(--r-xl); padding: .5rem; box-shadow: 0 18px 40px -32px rgb(20 88 76 / .55); }
.ai-box form { display: flex; align-items: flex-end; gap: .4rem; }
.ai-box textarea { flex: 1; border: 0; resize: none; min-height: 48px; max-height: 160px; padding: .75rem .75rem; font-size: 1rem; outline: none; background: transparent; }
.ai-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; background: var(--verde-soft); color: var(--verde); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.ai-result { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--linha); padding: 1rem; }
.ai-store { display: flex; gap: .75rem; padding: .75rem 0; border-top: 1px dashed var(--linha); }
.ai-store:first-child { border-top: 0; }

/* ---------- Flood hero / solidarity ---------- */
.hero-flood { background: linear-gradient(120deg, #8f3f18, #c2622f 55%, #e0a06f); color: #fff; }
.hero-flood .eyebrow { color: #ffe1c9; }
.hero-mural { background: radial-gradient(800px 400px at 90% 0%, rgb(255 255 255 / .12), transparent 60%), linear-gradient(135deg, #7a3414, #c2622f 60%, #d98b55); color: #fff; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.stat { background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .22); border-radius: var(--r); padding: .75rem .6rem; text-align: center; }
.stat b { display: block; font-size: 1.45rem; font-weight: 750; letter-spacing: -.03em; }
.stat span { font-size: .7rem; opacity: .9; }
.stat-light { background: #fff; border-color: var(--linha); }
.tip-card { display: flex; gap: .75rem; align-items: flex-start; }
.tip-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--cobre-soft); color: var(--cobre); flex-shrink: 0; }

/* ---------- Mural feed ---------- */
.feed { display: flex; flex-direction: column; gap: 1rem; max-width: 640px; margin: 0 auto; }
.post { background: #fff; border: 1px solid var(--linha); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.post-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem .5rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--verde); color: #fff; display: grid; place-items: center; font-weight: 750; font-size: .95rem; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 34px; height: 34px; font-size: .78rem; }
.post-author { font-weight: 650; font-size: .95rem; line-height: 1.2; }
.post-sub { font-size: .74rem; color: var(--ink-soft); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.post-text { padding: .25rem 1rem .75rem; font-size: .96rem; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.post-text.collapsed { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { padding: 0 1rem .75rem; font-size: .86rem; font-weight: 650; color: var(--ink-soft); }
.media-grid { display: grid; gap: 2px; background: var(--paper-deep); }
.media-grid > * { position: relative; overflow: hidden; background: #111; cursor: zoom-in; }
.media-grid img, .media-grid .vthumb { width: 100%; height: 100%; object-fit: cover; }
.mg-1 > * { aspect-ratio: 4 / 3; }
.mg-2 { grid-template-columns: 1fr 1fr; } .mg-2 > * { aspect-ratio: 1; }
.mg-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 4 / 3; } .mg-3 > :first-child { grid-row: span 2; }
.mg-4 { grid-template-columns: 1fr 1fr; } .mg-4 > * { aspect-ratio: 1; }
.more-overlay { position: absolute; inset: 0; background: rgb(0 0 0 / .5); color: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }
.play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.play span { width: 56px; height: 56px; border-radius: 50%; background: rgb(0 0 0 / .55); display: grid; place-items: center; color: #fff; }
.vdur { position: absolute; right: 8px; bottom: 8px; background: rgb(0 0 0 / .65); color: #fff; font-size: .7rem; font-weight: 650; padding: .1rem .4rem; border-radius: 6px; }
.needs { padding: .5rem 1rem .25rem; }
.need { display: flex; align-items: flex-start; gap: .6rem; padding: .55rem 0; border-top: 1px dashed var(--linha); font-size: .88rem; }
.need:first-child { border-top: 0; }
.need-st { flex-shrink: 0; }
.post-counts { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem 1rem; font-size: .78rem; color: var(--ink-soft); }
.post-actions { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--linha); }
.post-actions > * { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 46px; font-size: .8rem; font-weight: 650; color: var(--ink-soft); }
.post-actions > *:hover { background: var(--paper); }
.post-actions .on { color: var(--cobre); }
.post-actions .help-btn { color: var(--cobre); }
.react-pick { display: flex; gap: .4rem; padding: .5rem 1rem; border-top: 1px solid var(--linha); background: var(--paper); }
.react-pick button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .45rem; border-radius: var(--r); font-size: .74rem; font-weight: 650; color: var(--ink-soft); background: #fff; border: 1px solid var(--linha); }
.react-pick button.on { border-color: var(--cobre); color: var(--cobre); background: var(--cobre-soft); }
.react-pick .emo { font-size: 1.25rem; line-height: 1; }
.comments { border-top: 1px solid var(--linha); padding: .75rem 1rem 1rem; display: flex; flex-direction: column; gap: .65rem; background: #fcfbf9; }
.comment { display: flex; gap: .55rem; }
.bubble { background: var(--paper-deep); border-radius: 4px 16px 16px 16px; padding: .5rem .75rem; font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }
.bubble b { font-size: .8rem; }
.bubble.pending { background: var(--warn-soft); }
.comment-meta { font-size: .7rem; color: var(--ink-faint); margin: .2rem .5rem 0; display: flex; gap: .6rem; }
.comment-form { display: flex; flex-direction: column; gap: .5rem; }
.comment-form .row .input { min-height: 42px; font-size: .92rem; }
.pix-box { margin: .25rem 1rem .75rem; border-radius: var(--r); border: 1px solid var(--verde-line); background: color-mix(in srgb, var(--verde-soft) 50%, white); padding: .75rem .85rem; font-size: .86rem; }
.pix-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; background: #fff; border: 1px dashed var(--verde-line); border-radius: 10px; padding: .45rem .6rem; overflow-wrap: anywhere; }
.need-board .need-item { display: flex; gap: .75rem; padding: .85rem; align-items: flex-start; }
.kind-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cobre-soft); color: var(--cobre); flex-shrink: 0; }

/* ---------- Admin ---------- */
.admin-body { background: #f4f3ef; }
.admin-shell { display: grid; min-height: 100dvh; }
@media (min-width: 1024px) { .admin-shell { grid-template-columns: 248px 1fr; } }
.admin-side { display: none; background: var(--verde-deep); color: #e8f1ee; padding: 1.25rem .9rem; position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
@media (min-width: 1024px) { .admin-side { display: block; } }
.admin-side a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 10px; font-size: .88rem; color: #cfe1db; }
.admin-side a:hover { background: rgb(255 255 255 / .07); color: #fff; }
.admin-side a.on { background: rgb(255 255 255 / .12); color: #fff; font-weight: 650; }
.admin-side .grp { font-size: .62rem; text-transform: uppercase; letter-spacing: .16em; color: #8fb3a8; margin: 1rem .7rem .35rem; }
.admin-side .cnt { margin-left: auto; background: var(--cobre); color: #fff; font-size: .66rem; font-weight: 700; padding: .05rem .45rem; border-radius: 99px; }
.admin-top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--linha); }
.admin-top .row { height: 56px; }
.admin-main { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 1rem); min-width: 0; }
@media (min-width: 1024px) { .admin-main { padding-bottom: 2rem; } }
.admin-tabbar .tab .count-badge { right: calc(50% - 24px); }
.kpis { display: grid; gap: .65rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--linha); border-radius: var(--r); padding: .85rem; display: flex; flex-direction: column; gap: .15rem; }
.kpi b { font-size: 1.5rem; font-weight: 750; letter-spacing: -.03em; }
.kpi span { font-size: .74rem; color: var(--ink-soft); }
.kpi.alert b { color: var(--cobre); }
a.kpi:hover { border-color: var(--verde-line); }
.inbox-item { display: flex; gap: .75rem; padding: .85rem 1rem; border-top: 1px solid var(--linha); background: #fff; align-items: flex-start; }
.inbox-item:first-child { border-top: 0; }
.inbox-item:hover { background: #fcfbf8; }
.thumbs-row { display: flex; gap: .35rem; margin-top: .4rem; overflow-x: auto; }
.thumbs-row img { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.blurred { filter: blur(16px) saturate(.6); transition: filter .2s; }
.reveal-wrap { position: relative; overflow: hidden; border-radius: inherit; }
.reveal-wrap .reveal-btn { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .72rem; font-weight: 700; text-align: center; background: rgb(0 0 0 / .25); }
.reveal-wrap.shown img, .reveal-wrap.shown video { filter: none; }
.reveal-wrap.shown .reveal-btn { display: none; }
.diff { display: flex; flex-direction: column; gap: .5rem; }
.diff-row { background: #fff; border: 1px solid var(--linha); border-radius: var(--r); padding: .8rem; display: grid; gap: .5rem; }
.diff-row.conflict { border-color: var(--warn); background: #fffdf5; }
.diff-head { display: flex; align-items: center; gap: .6rem; }
.diff-head input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--verde); }
.diff-cols { display: grid; gap: .5rem; }
@media (min-width: 720px) { .diff-cols { grid-template-columns: 1fr 1fr; } }
.diff-before, .diff-after { border-radius: 10px; padding: .55rem .7rem; font-size: .88rem; white-space: pre-line; overflow-wrap: anywhere; }
.diff-before { background: #fbf1ef; color: #7d2f22; }
.diff-after { background: #eef7f2; color: #0a3d34; }
.diff-before:empty::before, .diff-after:empty::before { content: "(vazio)"; opacity: .6; font-style: italic; }
.diff-label { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .7; display: block; margin-bottom: .15rem; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--linha); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 650; padding: .65rem .8rem; border-bottom: 1px solid var(--linha); background: #fbfaf7; white-space: nowrap; }
.table td { padding: .65rem .8rem; border-bottom: 1px solid var(--linha); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fcfbf8; }
.ai-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .5rem; border-radius: 999px; font-size: .66rem; font-weight: 750; }
.ai-approve { background: var(--verde-soft); color: var(--verde); }
.ai-review { background: var(--warn-soft); color: var(--warn); }
.ai-block { background: var(--danger-soft); color: var(--danger); }
.ai-none { background: var(--paper-deep); color: var(--ink-soft); }
.st { display: inline-flex; padding: .18rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 700; background: var(--paper-deep); color: var(--ink-soft); }
.st-Published, .st-Approved { background: var(--verde-soft); color: var(--verde); }
.st-Pending, .st-New, .st-Open, .st-PendingReview { background: var(--warn-soft); color: var(--warn); }
.st-Adjustment, .st-Paused, .st-Reviewing, .st-Forwarded, .st-PartiallyApproved { background: var(--info-soft); color: var(--info); }
.st-Suspended, .st-Rejected, .st-Spam, .st-Hidden, .st-Discarded { background: var(--danger-soft); color: var(--danger); }
.st-Closed, .st-Done { background: var(--paper-deep); color: var(--ink-soft); }
.filters { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.bar { height: 8px; border-radius: 99px; background: var(--verde-soft); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--verde); border-radius: 99px; }
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(700px 400px at 80% 0%, rgb(198 160 74 / .18), transparent 60%), var(--manual); }
.login-card { width: min(420px, 100%); }
.media-pick { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--linha); }
.media-pick img, .media-pick video { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #111; }
.media-pick .meta { position: absolute; left: 6px; top: 6px; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .32s ease-out both; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Print (relatórios) ---------- */
@media print {
  .topbar, .tabbar, .footer, .admin-side, .admin-top, .no-print, #toasts { display: none !important; }
  body, .admin-body { background: #fff; padding: 0; }
  .card, .kpi, .table-wrap { box-shadow: none; break-inside: avoid; }
}
