/* Imovitrine: site, contas, painel e admin (decisão 0054). Mobile first: as regras base valem para o celular e as
   consultas min-width acrescentam o layout de telas maiores. A vitrine pública usa public/templates/*.css. */

/* ===== 1. Tokens ===================================================================================== */
:root {
  --brand: #0e7a57;
  --brand-600: #0b6548;
  --brand-700: #08513a;
  --brand-50: #edf8f3;
  --brand-100: #d4efe3;
  --ink: #0d1b2a;
  --text: #1e2936;
  --muted: #5a6575;
  --subtle: #8792a2;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --soft: #f7f9fb;
  --line: #e2e7ee;
  --line-strong: #cbd3de;
  --danger: #c0362c;
  --danger-600: #a32b22;
  --danger-50: #fdeeec;
  --warn: #8a5a00;
  --warn-50: #fff5dc;
  --warn-line: #f1d48a;
  --info: #2454c5;
  --info-50: #eef3ff;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06);
  --shadow: 0 1px 3px rgba(13, 27, 42, 0.08), 0 1px 2px rgba(13, 27, 42, 0.04);
  --shadow-md: 0 6px 16px -4px rgba(13, 27, 42, 0.12), 0 2px 4px rgba(13, 27, 42, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(13, 27, 42, 0.22);
  --ring: 0 0 0 4px rgba(14, 122, 87, 0.18);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --tabbar-h: 4.25rem;
  --sidebar-w: 16.5rem;
  color-scheme: light;
}

/* ===== 2. Base ======================================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
.i { flex: none; display: inline-block; vertical-align: -0.22em; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-600); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5rem; }
h1 { font-size: 1.6rem; font-weight: 750; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 0.75rem; }
p:last-child { margin-bottom: 0; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--soft); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(14, 122, 87, 0.45); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-100); }

.meta { color: var(--muted); font-size: 0.92rem; margin: 0.15rem 0; }
.lead { font-size: 1.1rem; color: var(--muted); }
.hint { color: var(--muted); font-size: 0.86rem; margin: 0; }
.optional { font-weight: 400; color: var(--subtle); font-size: 0.86em; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trap, input.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 1.5rem; } }
.container { max-width: 56rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.stack { display: grid; gap: 1rem; }
.stack-sm { display: grid; gap: 0.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0; }
.actions.center { justify-content: center; }
.ok { color: var(--brand); font-weight: 600; }
.erro { color: var(--danger); font-weight: 600; }

/* ===== 3. Botões ===================================================================================== */
button, .button {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--brand);
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.05s;
  -webkit-tap-highlight-color: transparent;
}
button:hover, .button:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
button:active, .button:active { transform: translateY(1px); }
button:focus-visible, .button:focus-visible { outline: none; box-shadow: var(--ring); }
button:disabled, .button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
button.secondary, .button.secondary { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); box-shadow: none; }
button.secondary:hover, .button.secondary:hover { background: var(--brand-100); color: var(--brand-700); }
button.ghost, .button.ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
button.ghost:hover, .button.ghost:hover { background: var(--soft); border-color: var(--subtle); color: var(--ink); }
button.danger, .button.danger, button.ghost.danger, .button.ghost.danger { background: var(--surface); color: var(--danger); border-color: #efc2bd; }
button.danger:hover, .button.danger:hover { background: var(--danger-50); border-color: var(--danger); color: var(--danger-600); }
button.danger-solid, .button.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
button.danger-solid:hover { background: var(--danger-600); border-color: var(--danger-600); }
button.sm, .button.sm { min-height: 2.25rem; padding: 0.4rem 0.8rem; font-size: 0.88rem; }
button.lg, .button.lg { min-height: 3.25rem; padding: 0.8rem 1.5rem; font-size: 1.02rem; border-radius: 10px; }
button.wide, .button.wide, .wide { width: 100%; }
button.icon-only, .button.icon-only { padding: 0; width: 2.75rem; }
button.sm.icon-only, .button.sm.icon-only { width: 2.25rem; }
.link-button, button.link-button { background: none; border: 0; box-shadow: none; color: var(--muted); min-height: 0; padding: 0.25rem 0; font-weight: 500; font-size: 0.86rem; text-decoration: underline; }
.link-button:hover { background: none; color: var(--ink); }

/* ===== 4. Formulários ================================================================================ */
form { display: grid; gap: 1rem; }
form.inline { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0; }
label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field > .hint { margin-top: -0.1rem; }
input, select, textarea {
  font: inherit;
  font-size: 1rem; /* 16px evita o zoom automático do iPhone */
  width: 100%;
  min-height: 2.875rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: #9aa4b2; }
input:hover, select:hover, textarea:hover { border-color: var(--subtle); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[readonly] { background: var(--soft); }
textarea { resize: vertical; min-height: 6rem; line-height: 1.5; }
select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6575' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
}
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; min-height: 0; padding: 0; margin: 0; accent-color: var(--brand); box-shadow: none; flex: none; }
input[type="color"] { padding: 0.25rem; height: 2.875rem; cursor: pointer; }
input[type="file"] { padding: 0.5rem; }
input.upper { text-transform: uppercase; }
input.copy { background: var(--soft); font-family: var(--mono); font-size: 0.9rem; }
label.check { display: flex; align-items: flex-start; gap: 0.65rem; font-weight: 500; color: var(--text); cursor: pointer; line-height: 1.45; }
label.check input { margin-top: 0.15rem; }
.check-card { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.check-card:hover { border-color: var(--line-strong); }
.check-card:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.check-card strong { display: block; color: var(--ink); }
.check-card span { font-weight: 400; }
.pair, .grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 30rem) { .pair, .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.input-icon { position: relative; }
.input-icon .i { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.input-icon input { padding-left: 2.6rem; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.input-prefix:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.input-prefix span { display: flex; align-items: center; padding: 0 0.6rem 0 0.8rem; background: var(--soft); color: var(--muted); font-size: 0.88rem; border-right: 1px solid var(--line); white-space: nowrap; }
.input-prefix input { border: 0; box-shadow: none; border-radius: 0; min-width: 0; }
.input-prefix input:focus { box-shadow: none; }
@media (max-width: 29.99rem) {
  .input-prefix { flex-wrap: wrap; }
  .input-prefix span { flex: 1 1 100%; padding: 0.35rem 0.8rem; border-right: 0; border-bottom: 1px solid var(--line); font-size: 0.8rem; white-space: normal; overflow-wrap: anywhere; }
}
.copy-field { display: flex; gap: 0.5rem; align-items: stretch; }
.copy-field input { min-width: 0; }
.copy-field button { flex: none; }
.password-field { position: relative; }
.password-field input { padding-right: 3rem; }
.password-field button { position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); min-height: 2.35rem; width: 2.5rem; padding: 0; background: transparent; border: 0; box-shadow: none; color: var(--muted); }
.password-field button:hover { background: var(--soft); color: var(--ink); }

/* ===== 5. Cartões, alertas, selos ==================================================================== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; box-shadow: var(--shadow-sm); }
@media (min-width: 40rem) { .card { padding: 1.4rem; } }
.card + .card { margin-top: 1rem; }
.card-head { display: flex; flex-wrap: wrap; gap: 0.5rem 0.85rem; align-items: center; margin-bottom: 1.1rem; }
.card-head h2 { margin: 0; font-size: 1.08rem; }
.card-head .meta { margin-top: 0.2rem; }
.card-head-text { flex: 1 1 12rem; min-width: 0; }
.card-head-aside { flex: none; }
.card-icon { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--brand-50); color: var(--brand); }
@media (min-width: 40rem) { .card-icon { width: 2.5rem; height: 2.5rem; } }
.card-head > .card-icon { align-self: flex-start; }
.card-foot { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: flex-end; margin: 1.25rem -1.1rem -1.1rem; padding: 0.9rem 1.1rem; border-top: 1px solid var(--line); background: var(--soft); border-radius: 0 0 var(--r) var(--r); }
@media (min-width: 40rem) { .card-foot { margin: 1.4rem -1.4rem -1.4rem; padding: 1rem 1.4rem; } }
.card-foot .hint { margin-right: auto; }
.card.flush { padding: 0; overflow: hidden; }
.card-danger { border-color: #f1c9c4; }
.card-danger .card-icon { background: var(--danger-50); color: var(--danger); }

.alert { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.8rem 1rem; border-radius: var(--r-sm); margin: 0 0 1rem; font-weight: 500; font-size: 0.95rem; border: 1px solid; }
.alert .i { margin-top: 0.1rem; }
.alert-error { background: var(--danger-50); color: #8f241c; border-color: #f3c6c0; }
.alert-ok { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.notice { display: block; background: var(--info-50); border: 1px solid #d3defb; color: #1d3f8f; border-radius: var(--r-sm); padding: 0.8rem 1rem; margin: 0 0 1rem; font-size: 0.94rem; }
.notice a { color: inherit; font-weight: 600; }
.notice-warn { background: var(--warn-50); border-color: var(--warn-line); color: var(--warn); }
.notice-danger { background: var(--danger-50); border: 1px solid #f3c6c0; color: #8f241c; padding: 0.85rem 1rem; border-radius: var(--r-sm); margin: 0 0 1rem; font-weight: 500; }
.draft-flag { background: var(--warn-50); border: 1px solid var(--warn-line); color: var(--warn); padding: 0.75rem 1rem; border-radius: var(--r-sm); font-size: 0.94rem; }

.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.12rem 0.55rem; border-radius: 999px; font-size: 0.76rem; font-weight: 650; line-height: 1.5; background: var(--soft); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.badge::before { content: ""; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: currentColor; opacity: 0.85; }
.badge.plain::before { display: none; }
.badge.status-published, .badge.ticket-answered, .badge.ok { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.badge.status-draft, .badge.ticket-open, .badge.warn { background: var(--warn-50); color: var(--warn); border-color: var(--warn-line); }
.badge.status-archived, .badge.ticket-closed { color: var(--muted); }
.badge.danger { background: var(--danger-50); color: var(--danger-600); border-color: #f3c6c0; }
.badge.info { background: var(--info-50); color: var(--info); border-color: #d3defb; }
.admin-tag { display: inline-block; background: var(--danger); color: #fff; border-radius: 5px; padding: 0.05rem 0.4rem; font-size: 0.72rem; font-weight: 700; margin-left: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; vertical-align: middle; }

.avatar { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #14a374); color: #fff; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; }

.empty { display: grid; justify-items: center; text-align: center; gap: 0.35rem; padding: 2.5rem 1rem; }
.empty h2 { margin: 0.4rem 0 0; }
.empty .meta { max-width: 26rem; }
.empty .button, .empty .actions { margin-top: 0.75rem; }
.empty-icon { display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 50%; background: var(--brand-50); color: var(--brand); box-shadow: 0 0 0 8px rgba(14, 122, 87, 0.05); }

.meter { height: 0.5rem; border-radius: 999px; background: #e8edf2; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width 0.3s; }
.meter-high span { background: #d99a00; }
.meter-full span { background: var(--danger); }

/* Abas e filtros (rolam na horizontal no celular) */
.tabs, .segmented { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem 1rem; padding: 0 1rem 0.1rem; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar, .segmented::-webkit-scrollbar { display: none; }
@media (min-width: 48rem) { .tabs, .segmented { margin: 0 0 1rem; padding: 0; flex-wrap: wrap; } }
.tab { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 550; white-space: nowrap; transition: border-color 0.15s, background 0.15s; }
.tab:hover { border-color: var(--line-strong); color: var(--ink); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab .count { font-size: 0.78rem; opacity: 0.7; }

/* Tabelas: no celular, cada linha vira um cartão (data-label em cada célula) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--soft); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfc; }
.card > .table-wrap { border: 0; border-radius: 0; margin: 0 -1.1rem -1.1rem; }
@media (min-width: 40rem) { .card > .table-wrap { margin: 0 -1.4rem -1.4rem; } }
@media (max-width: 47.99rem) {
  .table.stack-sm-table thead { display: none; }
  .table.stack-sm-table, .table.stack-sm-table tbody, .table.stack-sm-table tr, .table.stack-sm-table td { display: block; }
  .table.stack-sm-table tr { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); }
  .table.stack-sm-table tr:last-child { border-bottom: 0; }
  .table.stack-sm-table td { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; border: 0; }
  .table.stack-sm-table td::before { content: attr(data-label); color: var(--muted); font-size: 0.85rem; }
  .table.stack-sm-table td:first-child { font-weight: 650; color: var(--ink); }
  .table.stack-sm-table td:first-child::before { display: none; }
}

.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.pager a { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; text-decoration: none; padding: 0.5rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text); }
.pager a:hover { background: var(--soft); }

/* Lista em linhas (imóveis, chamados, regiões) */
.list { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.list > li { border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list-link { display: flex; gap: 0.9rem; align-items: center; padding: 0.85rem 1rem; color: inherit; text-decoration: none; transition: background 0.12s; }
a.list-link:hover { background: #fafbfc; color: inherit; }
.list-main { flex: 1; min-width: 0; }
.list-title { display: block; font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-sub { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: center; color: var(--muted); font-size: 0.86rem; margin-top: 0.2rem; }
.list-end { flex: none; color: var(--subtle); display: flex; align-items: center; gap: 0.5rem; }
.list-price { font-weight: 700; color: var(--ink); font-size: 0.95rem; margin-top: 0.25rem; display: block; }
.dot-sep::before { content: "·"; margin-right: 0.5rem; color: var(--subtle); }

/* ===== 6. Site público ================================================================================= */
/* Sem backdrop-filter aqui nem na barra inferior: ele vira o bloco de contenção dos filhos position: fixed (fundo do menu). */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid rgba(226, 231, 238, 0.8); }
.site-bar { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.site-nav { display: none; gap: 0.25rem; margin-left: 1.5rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: 0.94rem; padding: 0.45rem 0.7rem; border-radius: var(--r-sm); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.site-actions { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }
.hide-xs { display: none; }
@media (min-width: 30rem) { .hide-xs { display: inline-flex; } }
@media (min-width: 60rem) { .site-nav { display: flex; } .menu-mobile { display: none; } }

.logo { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--brand); flex: none; }
.logo:hover { color: var(--brand); }
.logo-mark { display: block; }
.logo-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); }
.logo-tag { background: var(--danger); color: #fff; border-radius: 5px; padding: 0.05rem 0.4rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.logo-light { color: #34c08e; }
.logo-light .logo-name { color: #fff; }

.menu-mobile { position: static; }
.menu-mobile > summary { list-style: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-sm); border: 1px solid var(--line-strong); cursor: pointer; color: var(--ink); background: var(--surface); }
.menu-mobile > summary::-webkit-details-marker { display: none; }
.menu-mobile[open] > summary { background: var(--soft); }
.menu-mobile[open] > summary::before { content: ""; position: fixed; inset: 4rem 0 0; background: rgba(13, 27, 42, 0.35); cursor: default; }
.menu-mobile-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 0.75rem 1rem 1.25rem; display: grid; gap: 0.6rem; animation: drop 0.18s ease-out; }
.menu-mobile-panel nav { display: grid; margin-bottom: 0.5rem; }
.menu-mobile-panel nav a { padding: 0.85rem 0.25rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.section { padding: 3.5rem 0; }
@media (min-width: 48rem) { .section { padding: 5.5rem 0; } }
.section-alt { background: var(--bg); }
.section-dark { background: var(--ink); color: #c9d4df; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 40rem; margin: 0 0 2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); letter-spacing: -0.025em; margin-bottom: 0.75rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; font-weight: 700; color: var(--brand); margin: 0 0 0.75rem; }

.hero { position: relative; overflow: hidden; padding: 2.5rem 0 3.5rem; background: radial-gradient(60rem 30rem at 85% -10%, rgba(20, 163, 116, 0.12), transparent 60%), radial-gradient(40rem 24rem at -10% 10%, rgba(36, 84, 197, 0.06), transparent 60%), var(--surface); }
@media (min-width: 60rem) { .hero { padding: 4.5rem 0 5.5rem; } }
.hero-grid { display: grid; gap: 2.75rem; align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } }
.hero h1 { font-size: clamp(2.1rem, 7.5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: clamp(1.05rem, 2.6vw, 1.22rem); max-width: 34rem; margin-bottom: 1.75rem; }
.hero .actions .button { flex: 1 1 auto; }
@media (min-width: 30rem) { .hero .actions .button { flex: 0 0 auto; } }
.pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.8rem 0.3rem 0.35rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 1.25rem; }
.pill b { background: var(--brand); color: #fff; border-radius: 999px; padding: 0.1rem 0.55rem; font-size: 0.74rem; }
.trust { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; color: var(--muted); font-size: 0.92rem; }
.trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust .i { color: var(--brand); }

/* Celular desenhado em CSS mostrando uma vitrine */
.hero-visual { position: relative; max-width: 30rem; margin: 0 auto; width: 100%; }
.hero-photo { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.device { position: absolute; right: -0.25rem; bottom: -1.75rem; width: 46%; min-width: 9.5rem; background: #0d1b2a; border-radius: 26px; padding: 7px; box-shadow: 0 30px 60px -15px rgba(13, 27, 42, 0.45); }
@media (min-width: 60rem) { .device { right: -2rem; } }
.device-screen { background: #fff; border-radius: 20px; overflow: hidden; font-size: 0.6rem; line-height: 1.3; }
.device-top { background: var(--brand); color: #fff; padding: 0.7rem 0.65rem 0.6rem; font-weight: 700; font-size: 0.68rem; }
.device-top small { display: block; font-weight: 500; opacity: 0.85; font-size: 0.56rem; }
.device-chips { display: flex; gap: 0.25rem; padding: 0.5rem 0.55rem 0.2rem; }
.device-chips i { font-style: normal; padding: 0.12rem 0.4rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.52rem; }
.device-chips i:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.device-card { margin: 0.4rem 0.55rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.device-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.device-card div { padding: 0.35rem 0.45rem; }
.device-card b { display: block; color: var(--ink); font-size: 0.6rem; }
.device-card span { color: var(--brand); font-weight: 800; font-size: 0.64rem; }
.device-wa { margin: 0.45rem 0.55rem 0.6rem; background: #1fa855; color: #fff; text-align: center; border-radius: 999px; padding: 0.35rem; font-weight: 700; font-size: 0.58rem; }
.float-card { position: absolute; left: -0.25rem; top: 1.25rem; display: flex; gap: 0.6rem; align-items: center; background: var(--surface); border-radius: var(--r); padding: 0.6rem 0.85rem 0.6rem 0.6rem; box-shadow: var(--shadow-md); font-size: 0.8rem; max-width: 70%; }
@media (min-width: 60rem) { .float-card { left: -2rem; } }
.float-card .card-icon { width: 2.1rem; height: 2.1rem; border-radius: 8px; }
.float-card span { display: block; color: var(--muted); font-size: 0.72rem; }
.float-card strong { display: block; color: var(--ink); font-size: 0.8rem; overflow-wrap: anywhere; }

.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 36rem) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s; }
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature .card-icon { margin-bottom: 1rem; width: 2.75rem; height: 2.75rem; }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.step { position: relative; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.step-n { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 750; font-size: 0.95rem; margin-bottom: 0.9rem; }
.step p { color: var(--muted); margin: 0; }

.showcase { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .showcase { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.showcase .checks { margin: 1.25rem 0 1.75rem; }
.band-photos { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
.band-photos img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.band-photos img:last-child { margin-top: 2rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.checks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.checks .i { color: var(--brand); margin-top: 0.15rem; }
.section-dark .checks .i { color: #34c08e; }

.plans { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 36rem) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.plan.highlight { border: 2px solid var(--brand); box-shadow: 0 20px 40px -16px rgba(14, 122, 87, 0.35); }
.plan-flag { position: absolute; top: -0.75rem; left: 1.5rem; background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2rem 0.65rem; border-radius: 999px; }
.plan h3 { font-size: 1.05rem; color: var(--muted); font-weight: 650; }
.plan-price { font-size: 2.1rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin: 0.15rem 0 1.1rem; line-height: 1.1; }
.per { font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-list { list-style: none; padding: 1.1rem 0 0; margin: 0 0 1.5rem; display: grid; gap: 0.6rem; border-top: 1px solid var(--line); font-size: 0.94rem; flex: 1; }
.plan-list li { display: flex; gap: 0.55rem; align-items: flex-start; }
.plan-list .i { color: var(--brand); margin-top: 0.12rem; }
/* Pix da assinatura (decisão 0056) */
.pix-box { display: grid; gap: 1rem; align-items: start; margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
@media (min-width: 40rem) { .pix-box { grid-template-columns: 220px 1fr; } }
.pix-box img { width: 220px; height: 220px; background: #fff; border-radius: var(--r-sm); border: 1px solid var(--line); }
.plans.plans-panel { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1rem; }
.plan form .check-card { padding: 0.65rem 0.8rem; font-size: 0.9rem; }
.soon { margin-left: 0.35rem; font-size: 0.7rem; padding: 0.05rem 0.45rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); white-space: nowrap; font-weight: 600; }

.referral { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .referral { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.ref-stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.ref-stat { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r-lg); padding: 1.25rem; }
.ref-stat strong { display: block; font-size: 2rem; color: #fff; letter-spacing: -0.03em; line-height: 1.1; }
.ref-stat span { font-size: 0.9rem; }
.ref-stat:first-child { grid-column: 1 / -1; background: rgba(52, 192, 142, 0.14); border-color: rgba(52, 192, 142, 0.35); }
.section-dark .notice { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #c9d4df; }

.faq-list { max-width: 48rem; margin: 0 auto; display: grid; gap: 0.6rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color 0.15s, box-shadow 0.15s; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; font-weight: 650; color: var(--ink); padding: 1rem 1.1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 1.25rem; height: 1.25rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; color: var(--subtle); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > p, .faq-answer { padding: 0 1.1rem 1.1rem; color: var(--muted); margin: 0; }
.faq-answer p { margin: 0.4rem 0; }
.faq-answer ul { margin: 0.4rem 0; padding-left: 1.2rem; }
.faq-answer li { margin: 0.2rem 0; }

.cta { position: relative; overflow: hidden; border-radius: 24px; color: #fff; isolation: isolate; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 40, 30, 0.92) 10%, rgba(8, 40, 30, 0.55)); }
.cta-in { padding: 2.75rem 1.5rem; max-width: 36rem; }
@media (min-width: 48rem) { .cta-in { padding: 4rem 3.5rem; } }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.3rem); letter-spacing: -0.025em; }
.cta p { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; }
.cta .button { background: #fff; color: var(--brand-700); border-color: #fff; }
.cta .button:hover { background: var(--brand-50); }

.site-footer { background: var(--ink); color: #9fb0c1; padding: 3rem 0 1.5rem; margin-top: 0; font-size: 0.94rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 48rem) { .footer-brand { grid-column: auto; } }
.footer-brand p { margin-top: 0.9rem; max-width: 22rem; }
.site-footer nav { display: grid; gap: 0.55rem; align-content: start; }
.site-footer h2 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.35rem; }
.site-footer a { color: #c9d4df; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.85rem; }

/* Páginas de texto (perguntas frequentes, termos) */
.page-hero { background: var(--bg); border-bottom: 1px solid var(--line); padding: 2.5rem 0 2rem; }
@media (min-width: 48rem) { .page-hero { padding: 3.5rem 0 2.75rem; } }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -0.03em; }
.page-hero .lead { margin-bottom: 0; max-width: 40rem; }
.faq-page { padding-top: 2rem; padding-bottom: 4rem; max-width: 52rem; }
.faq-search { position: relative; margin-top: 1.5rem; max-width: 36rem; }
.faq-search .i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.faq-search input { min-height: 3.25rem; padding-left: 2.85rem; border-radius: 999px; font-size: 1.02rem; }
.faq-nav { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem 0.5rem; padding: 0 1rem; position: sticky; top: 4rem; z-index: 5; background: var(--surface); padding-top: 0.75rem; padding-bottom: 0.75rem; }
.faq-nav::-webkit-scrollbar { display: none; }
@media (min-width: 48rem) { .faq-nav { flex-wrap: wrap; margin: 0 0 0.5rem; padding-left: 0; padding-right: 0; } }
.faq-nav a { flex: none; padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 0.9rem; font-weight: 550; background: var(--surface); }
.faq-nav a:hover { border-color: var(--brand); color: var(--brand); }
.faq-group { margin-top: 2rem; scroll-margin-top: 8rem; }
.faq-group h2 { font-size: 1.3rem; margin-bottom: 0.9rem; }
.faq-group .faq-item + .faq-item { margin-top: 0.5rem; }
.faq-help { margin-top: 3rem; text-align: center; padding: 2rem 1.25rem; background: var(--bg); border: 0; }
.faq-help .actions { justify-content: center; margin: 1rem 0; }

.legal { max-width: 46rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
.legal h2 { margin-top: 2.25rem; font-size: 1.25rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: 0.35rem 0; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.94rem; }

.status-page { display: grid; place-items: center; min-height: 60vh; padding: 4rem 1rem; background: var(--bg); }
.status-box { text-align: center; max-width: 32rem; }
.status-code { font-size: 4.5rem; font-weight: 800; letter-spacing: -0.05em; color: var(--brand); line-height: 1; margin-bottom: 0.75rem; }

/* ===== 7. Telas de conta (entrar, cadastro, recuperação) ============================================= */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; background: var(--bg); }
@media (min-width: 60rem) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--surface); } }
.auth-aside { display: none; }
@media (min-width: 60rem) {
  .auth-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem 3rem; color: #fff; overflow: hidden; isolation: isolate; }
  .auth-aside > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .auth-aside::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 40, 30, 0.35), rgba(8, 40, 30, 0.92) 70%); }
  .auth-aside h2 { color: #fff; font-size: 2rem; letter-spacing: -0.03em; max-width: 26rem; }
  .auth-aside .checks { color: rgba(255, 255, 255, 0.9); }
  .auth-aside .checks .i { color: #5fe0b0; }
}
.auth-main { display: flex; flex-direction: column; min-width: 0; }
.auth-top { display: flex; align-items: center; justify-content: space-between; padding: 1rem; }
@media (min-width: 60rem) { .auth-top { padding: 1.5rem 2.5rem; } .auth-top .logo { visibility: hidden; } }
.auth-body { flex: 1; display: grid; place-items: start center; padding: 0.5rem 1rem 3rem; }
@media (min-width: 30rem) { .auth-body { place-items: center; padding-top: 1rem; } }
.auth-card { width: 100%; max-width: 26.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem 1.25rem; box-shadow: var(--shadow-md); }
@media (min-width: 30rem) { .auth-card { padding: 2.25rem 2rem; } }
@media (min-width: 60rem) { .auth-card { border: 0; box-shadow: none; padding: 0; } }
.auth-card h1 { font-size: 1.65rem; letter-spacing: -0.025em; margin-bottom: 0.4rem; }
.auth-card > .lead { font-size: 1rem; margin: 0 0 1.5rem; }
.auth-card form { gap: 1.1rem; }
.auth-card .button.wide, .auth-card button.wide { min-height: 3rem; font-size: 1rem; }
.auth-alt { text-align: center; color: var(--muted); font-size: 0.94rem; margin-top: 1.5rem; }
.auth-alt a { font-weight: 600; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.field-row a { font-size: 0.86rem; font-weight: 600; text-decoration: none; }
.auth-foot { text-align: center; padding: 1rem; font-size: 0.84rem; color: var(--subtle); }
.auth-foot a { color: var(--muted); }
.cf-turnstile { min-height: 65px; }

/* ===== 8. Casca do painel e do admin ================================================================ */
body.app { background: var(--bg); padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 64rem) { body.app { padding-bottom: 0; } }
.app-layout { min-height: 100vh; }
@media (min-width: 64rem) { .app-layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); } }

.sidebar { display: none; }
@media (min-width: 64rem) {
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line); padding: 1.1rem 0.85rem; }
}
.sidebar-brand { padding: 0.25rem 0.5rem 1.4rem; }
.side-nav, .sheet-nav { display: grid; gap: 0.15rem; }
.side-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-weight: 550; font-size: 0.95rem; transition: background 0.12s, color 0.12s; }
.side-link:hover { background: var(--soft); color: var(--ink); }
.side-link.active { background: var(--brand-50); color: var(--brand-700); font-weight: 650; }
.side-link.active .i { color: var(--brand); }
.side-link .count { margin-left: auto; background: var(--danger); color: #fff; border-radius: 999px; font-size: 0.72rem; font-weight: 700; padding: 0.05rem 0.45rem; }
.side-link .ext { margin-left: auto; opacity: 0.55; }
.sidebar-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: 0.75rem; }
.sidebar-foot form, .sheet-foot form { gap: 0; }
.person { display: flex; gap: 0.7rem; align-items: center; min-width: 0; padding: 0 0.25rem; }
.person-text { display: grid; min-width: 0; line-height: 1.3; }
.person-text strong { color: var(--ink); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-text span { color: var(--muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot-links { display: flex; justify-content: center; }

.app-main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 3.75rem; padding: 0.5rem 1rem; padding-top: max(0.5rem, env(safe-area-inset-top)); background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
@media (min-width: 64rem) { .topbar { display: none; } }
.topbar-actions { display: flex; gap: 0.4rem; }

.content { width: 100%; max-width: 68rem; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; }
@media (min-width: 48rem) { .content { padding: 2rem 1.75rem 3rem; } }
@media (min-width: 80rem) { .content { padding: 2.25rem 2.5rem 3.5rem; } }
.content.narrow, .narrow { max-width: 46rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1rem; margin-bottom: 1.25rem; }
@media (min-width: 48rem) { .page-head { margin-bottom: 1.75rem; } }
.page-head-text { min-width: 0; flex: 1 1 14rem; }
.page-head h1 { font-size: 1.5rem; margin: 0; letter-spacing: -0.025em; }
@media (min-width: 48rem) { .page-head h1 { font-size: 1.75rem; } }
.page-sub { color: var(--muted); margin: 0.3rem 0 0; font-size: 0.95rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.back { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.88rem; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 0.5rem; }
.back:hover { color: var(--ink); }
.content > .card, .content > section, .content > form { margin-bottom: 1rem; }
.section-gap { margin-top: 2rem; }

/* Barra inferior do celular */
.tabbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; align-items: stretch; justify-content: space-around; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 0 0.25rem env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(13, 27, 42, 0.05); }
@media (min-width: 64rem) { .tabbar { display: none; } }
.tabbar > a, .tab-more { flex: 1 1 0; min-width: 0; }
.tab-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; height: 100%; color: var(--subtle); text-decoration: none; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.01em; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.tab-link::-webkit-details-marker { display: none; }
.tab-link .i { width: 1.4rem; height: 1.4rem; }
.tab-link.active { color: var(--brand); }
.tab-link.active .i { stroke-width: 2.2; }
.tab-link .count { position: absolute; transform: translate(0.8rem, -0.9rem); background: var(--danger); color: #fff; border-radius: 999px; font-size: 0.62rem; padding: 0 0.3rem; }
.tab-link .ext { display: none; }
.tab-primary .i { width: 3rem; height: 3rem; padding: 0.7rem; border-radius: 16px; background: var(--brand); color: #fff; box-shadow: 0 6px 14px -4px rgba(14, 122, 87, 0.55); margin-top: -1.1rem; stroke-width: 2.4; }
.tab-primary { color: var(--brand); }
.tab-primary.active { color: var(--brand); }
.tab-more > summary { height: 100%; }
.tab-more[open] > summary::before { content: ""; position: fixed; inset: 0; background: rgba(13, 27, 42, 0.4); z-index: -1; cursor: default; animation: fade 0.18s ease-out; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 85vh; overflow-y: auto; background: var(--surface); border-radius: 20px 20px 0 0; padding: 0.5rem 1rem calc(1.25rem + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); display: grid; gap: 0.9rem; animation: up 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sheet-grip { width: 2.5rem; height: 0.3rem; border-radius: 999px; background: var(--line-strong); margin: 0.25rem auto 0.25rem; }
.sheet .person { padding: 0.5rem 0.25rem 0.9rem; border-bottom: 1px solid var(--line); }
.sheet .side-link { padding: 0.8rem 0.75rem; font-size: 1rem; }
.sheet-foot { display: grid; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Faixa de personificação e de admin */
.imp-banner { position: sticky; top: 0; z-index: 70; background: var(--danger); color: #fff; padding: 0.55rem 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem; text-align: center; }
.imp-banner form { margin: 0; }
.imp-banner button { background: #fff; color: var(--danger); border-color: #fff; min-height: 2.1rem; padding: 0.3rem 0.8rem; font-size: 0.85rem; }
.imp-banner button:hover { background: #ffe9e6; color: var(--danger-600); }
.app-admin .sidebar { background: #0f1b28; border-right-color: #0f1b28; }
.app-admin .sidebar .logo-name { color: #fff; }
.app-admin .sidebar .logo { color: #34c08e; }
.app-admin .sidebar .side-link { color: #a8b6c5; }
.app-admin .sidebar .side-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.app-admin .sidebar .side-link.active { background: rgba(52, 192, 142, 0.14); color: #fff; }
.app-admin .sidebar .side-link.active .i { color: #34c08e; }
.app-admin .sidebar-foot { border-top-color: rgba(255, 255, 255, 0.1); }
.app-admin .sidebar .person-text strong { color: #fff; }
.app-admin .sidebar .person-text span { color: #8b9bb0; }
.app-admin .sidebar button.ghost { background: transparent; color: #c9d4df; border-color: rgba(255, 255, 255, 0.2); }
.app-admin .sidebar button.ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ===== 9. Telas do painel ============================================================================ */
/* Resumo */
.welcome { display: grid; gap: 1rem; }
.site-card { position: relative; overflow: hidden; background: linear-gradient(135deg, #0d1b2a, #123a33); color: #c9d4df; border-radius: var(--r-lg); padding: 1.35rem; box-shadow: var(--shadow-md); isolation: isolate; }
.site-card::after { content: ""; position: absolute; width: 16rem; height: 16rem; right: -5rem; top: -7rem; border-radius: 50%; background: radial-gradient(circle, rgba(52, 192, 142, 0.35), transparent 70%); z-index: -1; }
@media (min-width: 40rem) { .site-card { padding: 1.75rem; } }
.site-card h2 { color: #fff; font-size: 1.25rem; margin: 0 0 0.2rem; }
.site-card .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #7fe3bd; font-weight: 700; margin-bottom: 0.4rem; }
.site-url { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0 1.1rem; padding: 0.55rem 0.55rem 0.55rem 0.85rem; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r-sm); }
.site-url input { flex: 1; min-width: 0; min-height: 0; padding: 0; border: 0; background: transparent; color: #fff; font-family: var(--mono); font-size: 0.88rem; box-shadow: none; }
.site-url input:focus { box-shadow: none; }
.site-url button { flex: none; min-height: 2.1rem; padding: 0.3rem 0.75rem; font-size: 0.84rem; background: #fff; color: var(--ink); border-color: #fff; }
.site-url button:hover { background: #e7f6ef; color: var(--ink); }
.site-card .actions .button { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #fff; box-shadow: none; }
.site-card .actions .button:hover { background: rgba(255, 255, 255, 0.18); }
.site-card .actions .button.wa { background: #1fa855; border-color: #1fa855; }
.site-card .actions .button.wa:hover { background: #178a45; }

.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 60rem) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .stat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; box-shadow: var(--shadow-sm); display: grid; gap: 0.3rem; align-content: start; color: inherit; text-decoration: none; transition: box-shadow 0.15s, border-color 0.15s; min-width: 0; }
@media (min-width: 40rem) { .stat-card { padding: 1.2rem; } }
a.stat-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); color: inherit; }
.stat-card .label { display: flex; align-items: center; gap: 0.45rem; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.stat-card .label .i { color: var(--subtle); }
.stat { font-size: 1.9rem; font-weight: 750; color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.03em; }
.of { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.stat-card .meter { margin-top: 0.4rem; }
.stat-card .meta { font-size: 0.82rem; margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
.checklist li { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px dashed var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .tick { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--line-strong); color: transparent; }
.checklist li.done .tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.checklist li.done .step-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.checklist .step-text { flex: 1; font-weight: 550; }
.checklist .button { flex: none; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.5rem; }
.progress-head strong { color: var(--ink); }

.quick { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 60rem) { .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.quick a { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 650; font-size: 0.95rem; box-shadow: var(--shadow-sm); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.quick a:hover { border-color: var(--brand-100); box-shadow: var(--shadow-md); transform: translateY(-1px); color: var(--ink); }
.quick a span { font-weight: 400; color: var(--muted); font-size: 0.84rem; }
.quick .card-icon { width: 2.4rem; height: 2.4rem; }
.dash-grid { display: grid; gap: 1rem; }
@media (min-width: 64rem) { .dash-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }

/* Lista de imóveis */
.toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.toolbar p { margin: 0; }
.usage { display: grid; gap: 0.45rem; padding: 0.9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.usage-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: var(--muted); }
.usage-row strong { color: var(--ink); }
.filters { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
@media (min-width: 48rem) { .filters { grid-template-columns: 1fr minmax(16rem, 22rem); align-items: center; } .filters .tabs { margin: 0; } }
form.search { display: flex; gap: 0.5rem; margin: 0; }
form.search .input-icon { flex: 1; }
.thumb { flex: none; width: 5.25rem; height: 4rem; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; color: var(--subtle); }
@media (min-width: 40rem) { .thumb { width: 6.5rem; height: 4.9rem; } }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.prop-list .badge { font-size: 0.72rem; }

/* Formulário do imóvel: seções numeradas e barra de salvar fixa */
.form-layout { display: grid; gap: 1rem; }
.property-form { gap: 1rem; }
.form-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; box-shadow: var(--shadow-sm); display: grid; gap: 1rem; min-width: 0; margin: 0; }
@media (min-width: 40rem) { .form-section { padding: 1.4rem; } }
.form-section > .card-head { margin-bottom: 0; }
.property-form[data-kind="unit"] .dev-only { display: none; }
.property-form .dev-min { font-weight: 400; color: var(--subtle); }
.numbers { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .property-form[data-kind="unit"] .numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.property-form[data-kind="unit"] .numbers .pair { display: contents; }
.property-form[data-kind="development"] .numbers { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .property-form[data-kind="development"] .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.property-form[data-kind="development"] .numbers .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.85rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--soft); }
.numbers .pair > div { display: grid; gap: 0.4rem; min-width: 0; }
.pair > div { display: grid; gap: 0.4rem; min-width: 0; align-content: start; }
.fields { display: grid; gap: 1rem; }
.savebar { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 0.5rem); z-index: 20; display: flex; gap: 0.75rem; align-items: center; justify-content: flex-end; padding: 0.7rem 0.75rem; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-md); }
@media (min-width: 64rem) { .savebar { bottom: 1rem; } }
.savebar .hint { margin-right: auto; display: none; }
@media (min-width: 40rem) { .savebar .hint { display: block; } }
.savebar button { flex: 1 1 auto; }
@media (min-width: 40rem) { .savebar button { flex: 0 0 auto; } }
.status-card { display: grid; gap: 0.9rem; }
@media (min-width: 48rem) { .status-card { grid-template-columns: 1fr auto; align-items: center; } }
.status-line { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }
.status-card .actions form { display: contents; }
.slug-row { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; align-items: center; }
.location { display: grid; gap: 1rem; }
.addr-row { display: flex; gap: 0.5rem; }
.addr-row input { flex: 1; min-width: 0; }
.addr-row button { flex: none; }
.picker-map { height: 18rem; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; z-index: 0; background: var(--soft); }
@media (min-width: 48rem) { .picker-map { height: 24rem; } }
.geo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.geo-list button { width: 100%; justify-content: flex-start; text-align: left; font-weight: 500; font-size: 0.9rem; white-space: normal; }

/* Fotos */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); } }
.gallery li { position: relative; display: grid; gap: 0.4rem; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0.4rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--soft); }
.gallery .photo-tag { position: absolute; top: 0.8rem; left: 0.8rem; background: rgba(13, 27, 42, 0.78); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; }
.gallery .photo-tag.cover { background: var(--brand); }
.img-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.img-actions form { display: contents; }
.img-actions button { min-height: 2.1rem; padding: 0.3rem 0.55rem; font-size: 0.8rem; }
.gallery .img-actions { flex-wrap: nowrap; }
.gallery .img-actions button.danger { margin-left: auto; }
.img-actions button.icon-only { flex: 0 0 2.1rem; width: 2.1rem; }
.new-photo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
.new-photo-list:empty { display: none; }
.new-photo-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--soft); }
.new-photo-list li { display: grid; gap: 0.3rem; font-size: 0.82rem; }
.new-photo-list button { min-height: 2rem; padding: 0.25rem 0.6rem; font-size: 0.8rem; }

/* Área de arrastar e soltar (public/dropzone.js) */
.dropzone { position: relative; display: grid; justify-items: center; gap: 0.2rem; text-align: center; padding: 1.75rem 1rem; border: 2px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: var(--r); background: color-mix(in srgb, var(--brand) 3%, #fff); color: var(--text); cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s; margin-bottom: 0.5rem; }
.dropzone:hover, .dropzone:focus-visible { border-color: var(--brand); background: var(--brand-50); }
.dropzone:focus-visible { outline: none; box-shadow: var(--ring); }
.dropzone .dz-icon { color: var(--brand); display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 0.4rem; }
.dropzone .dz-title { font-size: 1rem; color: var(--ink); }
.dropzone .dz-sub { color: var(--muted); font-size: 0.88rem; }
.dropzone .dz-drop { display: none; font-weight: 700; color: var(--brand); }
.dropzone.is-over { border-style: solid; border-color: var(--brand); background: var(--brand-100); transform: scale(1.01); }
.dropzone.is-over .dz-title, .dropzone.is-over .dz-sub { display: none; }
.dropzone.is-over .dz-drop { display: block; font-size: 1.05rem; }
.dropzone.is-disabled { opacity: 0.55; cursor: progress; pointer-events: none; }
.dropzone.is-error { border-color: var(--danger); background: var(--danger-50); }
.dropzone.is-error .dz-sub { color: var(--danger); }
.dropzone .dz-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }

/* Regiões */
.region-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; padding: 0.85rem 1rem; }
.region-row .rename { flex: 1 1 15rem; display: flex; gap: 0.5rem; margin: 0; }
.region-row .rename input { flex: 1; min-width: 0; }
.region-row .count-pill { flex: none; font-size: 0.82rem; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.65rem; white-space: nowrap; }
.add-row { display: flex; gap: 0.5rem; }
.add-row input { flex: 1; min-width: 0; }

/* Aparência */
.section-nav { position: sticky; top: 3.75rem; z-index: 15; background: var(--bg); padding: 0.6rem 1rem; margin: -0.25rem -1rem 1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 64rem) { .section-nav { top: 0; margin: -0.5rem 0 1.25rem; padding: 0.75rem 0; } }
.section-nav .tabs { margin: 0; padding: 0; }
.theme-list { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 36rem) { .theme-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .theme-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.theme-card { position: relative; border: 2px solid var(--line); border-radius: var(--r); padding: 0.75rem; display: grid; gap: 0.6rem; align-content: start; background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
.theme-card:hover { border-color: var(--line-strong); }
.theme-card.selected { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 122, 87, 0.1); }
.theme-card.selected::after { content: ""; position: absolute; top: 1.15rem; right: 1.15rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 60% no-repeat; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.theme-card p { margin: 0; }
.theme-pick { display: flex; align-items: center; gap: 0.55rem; font-weight: 650; cursor: pointer; }
.theme-pick input { width: 1.15rem; }
.theme-card .actions { margin-top: 0.15rem; }
.theme-card .actions button { flex: 1 1 auto; min-height: 2.25rem; padding: 0.35rem 0.6rem; font-size: 0.82rem; }
.theme-thumb { border: 1px solid var(--line); border-radius: var(--r-sm); height: 7rem; background: var(--soft); display: grid; grid-template-rows: 1.5rem 1fr; overflow: hidden; }
.theme-thumb b { display: block; }
.theme-thumb span { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; padding: 0.45rem; }
.theme-thumb span i { background: #fff; border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 4px; display: block; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.swatches { display: flex; gap: 0.3rem; }
.swatches i { width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 1px solid var(--line); display: block; }
.color-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .color-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.color-grid > div { display: grid; gap: 0.35rem; align-content: start; padding: 0.7rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--soft); }
.color-grid label { font-size: 0.86rem; }
.color-grid input[type="color"] { height: 2.5rem; }
.subhead { font-size: 0.98rem; margin: 0.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.text-grid { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .text-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .text-grid .full { grid-column: 1 / -1; } }
.text-grid > div { display: grid; gap: 0.4rem; align-content: start; }
.counter { font-weight: 400; color: var(--subtle); font-size: 0.8rem; }
.banner-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.banner-list > li { display: grid; gap: 0.9rem; border: 1px solid var(--line); border-radius: var(--r); padding: 0.85rem; background: var(--soft); }
@media (min-width: 48rem) { .banner-list > li { grid-template-columns: 16rem 1fr; align-items: start; } }
.banner-list img { width: 100%; aspect-ratio: 1920 / 700; object-fit: cover; border-radius: var(--r-sm); background: var(--line); }
.banner-list form { gap: 0.75rem; }
.banner-media { display: grid; gap: 0.5rem; }
.logo-box { display: flex; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.logo-preview { max-height: 4rem; max-width: 12rem; width: auto; background: #fff; border-radius: var(--r-sm); padding: 0.45rem; border: 1px solid var(--line); }

/* Indicações */
.ref-hero { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 60rem) { .ref-hero { grid-template-columns: 1.5fr 1fr; } }

/* Chamados */
.thread { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.9rem; }
.msg { display: flex; gap: 0.7rem; max-width: 44rem; }
.msg .avatar { width: 2.1rem; height: 2.1rem; font-size: 0.75rem; }
.msg-bubble { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 4px var(--r) var(--r) var(--r); padding: 0.75rem 0.95rem; background: var(--surface); }
.msg-staff { margin-left: auto; flex-direction: row-reverse; }
.msg-staff .msg-bubble { background: var(--brand-50); border-color: var(--brand-100); border-radius: var(--r) 4px var(--r) var(--r); }
.msg-staff .avatar { background: var(--ink); }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .meta { margin: 0 0 0.3rem; font-size: 0.82rem; }

/* ===== 10. Admin ===================================================================================== */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 9rem; border-bottom: 1px solid var(--line); padding-top: 0.5rem; margin-bottom: 1rem; }
.bars span { flex: 1; background: linear-gradient(180deg, #19a777, var(--brand)); min-height: 2px; border-radius: 3px 3px 0 0; }
.codes { font-family: var(--mono); font-size: 1.02rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1rem; list-style: none; padding: 1rem; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-sm); }
.secret { font-family: var(--mono); font-size: 1.05rem; letter-spacing: 0.08em; overflow-wrap: anywhere; background: var(--soft); border: 1px solid var(--line); padding: 0.7rem 0.85rem; border-radius: var(--r-sm); }
pre.dump { white-space: pre-wrap; overflow-wrap: anywhere; background: #0f1b28; color: #d6e1ec; padding: 0.9rem 1rem; border-radius: var(--r-sm); font-family: var(--mono); font-size: 0.82rem; max-height: 30rem; overflow: auto; margin: 0 0 1rem; }
.kv { display: grid; grid-template-columns: minmax(6rem, auto) minmax(0, 1fr); gap: 0.5rem 1rem; margin: 0; font-size: 0.94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.kv dd .badge { white-space: normal; }
@media (min-width: 48rem) { .kv.two { grid-template-columns: minmax(8rem, auto) minmax(0, 1fr) minmax(8rem, auto) minmax(0, 1fr); } }

/* ===== 11. Mapa (Leaflet) ============================================================================ */
.leaflet-container { font-family: var(--font); }
.leaflet-container button { box-shadow: none; min-height: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.desk-only { display: none !important; }
@media (min-width: 64rem) { .desk-only { display: inline-flex !important; } }
.subhead.first { border-top: 0; padding-top: 0; margin-top: 0; }
.more-fields { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.6rem 0.85rem; background: var(--soft); }
.more-fields > summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--muted); }

/* Aviso de sucesso do painel: flutua no rodapé para ser visto mesmo quando a página abre numa âncora (#textos etc.) */
.app .content > .alert-ok { position: fixed; z-index: 80; left: 1rem; right: 1rem; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 0.75rem); margin: 0; box-shadow: var(--shadow-lg); background: var(--ink); color: #fff; border-color: var(--ink); animation: up 0.25s ease-out; transition: opacity 0.4s, transform 0.4s; }
.app .content > .alert-ok .i { color: #5fe0b0; }
.app .content > .alert-ok.is-hiding { opacity: 0; transform: translateY(1rem); }
@media (min-width: 64rem) { .app .content > .alert-ok { left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 26rem; } }
.auth-card-boxed { border: 1px solid var(--line) !important; box-shadow: var(--shadow-md) !important; padding: 2rem 1.5rem !important; }
@media (min-width: 30rem) { .auth-card-boxed { padding: 2.25rem 2rem !important; } }
.admin-access .auth-top .logo { visibility: visible; }
.admin-access .auth { background: var(--bg); }
.dash-grid .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Formulários antigos com rótulo e campo lado a lado (admin): aproxima o rótulo do campo. */
form > label + input, form > label + select, form > label + textarea { margin-top: -0.6rem; }
/* O Chrome mantém o layout do conteúdo de <details> fechado (::details-content); sem isto a folha fixa estoura a largura. */
.tab-more:not([open]) .sheet, .menu-mobile:not([open]) .menu-mobile-panel { display: none; }

/* Visitante logado nas páginas públicas: menu da conta (computador) e atalhos no menu do celular */
.user-menu { position: relative; display: none; }
@media (min-width: 60rem) { .user-menu { display: block; } }
.user-menu > summary { list-style: none; display: flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0.35rem 0.15rem 0.15rem; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; color: var(--muted); background: var(--surface); }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover, .user-menu[open] > summary { border-color: var(--line-strong); background: var(--soft); }
.user-menu > summary .avatar { width: 2.1rem; height: 2.1rem; font-size: 0.78rem; }
.user-menu:not([open]) .user-menu-panel { display: none; }
.user-menu[open] > summary::before { content: ""; position: fixed; inset: 0; cursor: default; }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 5; width: 17rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 0.75rem; display: grid; gap: 0.6rem; animation: drop 0.15s ease-out; }
.user-menu-panel .person { padding: 0.25rem 0.25rem 0.7rem; border-bottom: 1px solid var(--line); }
.user-menu-links { display: grid; gap: 0.1rem; }
.user-menu-links a { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.6rem; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: 550; font-size: 0.94rem; }
.user-menu-links a:hover { background: var(--soft); color: var(--ink); }
.user-menu-links .i { color: var(--subtle); }
.menu-mobile-panel .person { padding: 0.25rem 0 0.75rem; border-bottom: 1px solid var(--line); }
.menu-mobile-panel .user-menu-links { margin-bottom: 0.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.menu-mobile-panel .user-menu-links a { padding: 0.75rem 0.25rem; font-size: 1rem; border: 0; }
@media (max-width: 29.99rem) { .site-actions .button.sm span { display: none; } .site-actions .button.sm:has(span) { width: 2.75rem; min-height: 2.75rem; padding: 0; } }
