/* =====================================================================
   Henn Central — painel novo (public3)
   Ideia: navegação no topo (sem barra lateral), busca rápida no Ctrl K,
   tela inicial em "bento", papel quente no claro e grafite no escuro.
   O verde da marca aparece em destaques, não em tudo.
   ===================================================================== */

:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --bg: #f4f3ee;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --surface-3: #efede7;
  --line: #e6e3da;
  --line-2: #d6d2c6;
  --ink: #16181b;
  --ink-2: #4a4f57;
  --ink-3: #6f747d;

  --brand: #6bb252;
  --brand-strong: #5a9e42;
  --brand-ink: #0f2408;
  --brand-soft: #e6f3de;
  --brand-text: #3a7a25;

  --inv-bg: #16181b;
  --inv-fg: #ffffff;

  --ok: #1e8f4e; --ok-soft: #e1f3e8;
  --warn: #b26a06; --warn-soft: #fbefd9;
  --bad: #cc2f45; --bad-soft: #fbe5e8;
  --info: #2a62cf; --info-soft: #e3ecfc;

  --r-sm: 10px; --r: 14px; --r-lg: 20px; --pill: 999px;
  --sombra: 0 14px 36px -10px rgba(22, 24, 27, .22), 0 2px 6px rgba(22, 24, 27, .06);
  --foco: 0 0 0 3px rgba(107, 178, 82, .38);

  --topo-h: 64px;
  --chips-h: 52px;
  --largura: 1360px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0e0f10;
  --surface: #16181a;
  --surface-2: #1b1d20;
  --surface-3: #23262a;
  --line: #2a2d31;
  --line-2: #3a3e45;
  --ink: #f1f0ec;
  --ink-2: #b9bdc4;
  --ink-3: #8b9098;

  --brand: #7fcb63;
  --brand-strong: #96d97c;
  --brand-ink: #0c1d06;
  --brand-soft: rgba(127, 203, 99, .14);
  --brand-text: #9edc86;

  --inv-bg: #f1f0ec;
  --inv-fg: #121315;

  --ok: #52c47f; --ok-soft: rgba(82, 196, 127, .15);
  --warn: #eaa846; --warn-soft: rgba(234, 168, 70, .15);
  --bad: #f2687a; --bad-soft: rgba(242, 104, 122, .15);
  --info: #79a6f7; --info-soft: rgba(121, 166, 247, .15);

  --sombra: 0 18px 44px -10px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topo-h) + var(--chips-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.travado { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: none; box-shadow: var(--foco); border-radius: 8px; }
::selection { background: rgba(107, 178, 82, .3); }
[hidden] { display: none !important; }
.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd {
  font-family: inherit; font-size: 11px; font-weight: 700; line-height: 1;
  padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px;
  background: var(--surface-2); color: var(--ink-3); white-space: nowrap;
}
mark { background: transparent; color: var(--brand-text); font-weight: 800; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.pular { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--inv-bg); color: var(--inv-fg); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.pular:focus { top: 12px; }

/* ---------- Marca ---------- */
.marca { width: 30px; height: 30px; flex: none; }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 40;
  height: var(--topo-h);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topo-in { height: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.03em; flex: none; }
.brand small { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 3px 7px; border: 1px solid var(--line-2); border-radius: var(--pill); }
.abas { display: flex; gap: 2px; align-items: center; min-width: 0; }
.aba {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: var(--pill); color: var(--ink-2); font-weight: 650; font-size: 14px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.aba .i { width: 17px; height: 17px; }
.aba:hover { background: var(--surface-3); color: var(--ink); }
.aba[aria-current="page"] { background: var(--inv-bg); color: var(--inv-fg); }
.topo-acoes { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.busca-btn {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 7px 0 13px; min-width: 250px;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--pill);
  color: var(--ink-3); font-size: 13.5px; margin-right: 6px; transition: border-color .15s, color .15s;
}
.busca-btn span { flex: 1; text-align: left; }
.aba { padding: 0 10px; gap: 6px; }
.busca-btn { min-width: 150px; }
.busca-btn kbd { display: none; }
.topo-in { gap: 12px; }
@media (min-width: 1700px) {
  .aba { padding: 0 14px; gap: 8px; }
  .busca-btn { min-width: 250px; }
  .busca-btn kbd { display: inline-block; }
  .topo-in { gap: 18px; }
}
.busca-btn:hover { border-color: var(--line-2); color: var(--ink-2); }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: var(--pill); border: 0; background: transparent; color: var(--ink-2); transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm .i { width: 17px; height: 17px; }
.icon-btn .ponto { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--bg); }
.ico-lua { display: none; }
:root[data-theme="dark"] .ico-sol { display: none; }
:root[data-theme="dark"] .ico-lua { display: block; }
.avatar-btn { border: 0; padding: 0; background: none; border-radius: 50%; margin-left: 4px; }

.avatar {
  --h: 140;
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-weight: 750; font-size: 13px; letter-spacing: .02em; color: #fff;
  background: linear-gradient(140deg, hsl(var(--h) 55% 52%), hsl(calc(var(--h) + 35) 55% 38%));
}
.avatar.sm { width: 34px; height: 34px; font-size: 12px; }
.avatar.qd { border-radius: 11px; }
.avatar.xl { width: 92px; height: 92px; font-size: 32px; border: 4px solid var(--surface); }

/* ---------- Barra de módulos ---------- */
.chipbar {
  position: sticky; top: var(--topo-h); z-index: 35;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.chips { max-width: var(--largura); margin: 0 auto; padding: 9px 24px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.chips::-webkit-scrollbar { display: none; }
.chips.tem-mais { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
/* No computador não há como "arrastar" a barra de módulos (a rolagem fica escondida): as abas quebram em mais linhas e ficam todas à vista.
   Com mais de uma linha a barra deixa de ser fixa (o JS põe .chips-varias na página), senão tomava a tela toda ao rolar. No celular continua deslizando. */
@media (min-width: 721px) {
  .chips { flex-wrap: wrap; overflow: visible; }
  .chips.tem-mais { -webkit-mask-image: none; mask-image: none; }
  html.chips-varias { --chips-h: 0px; }
  html.chips-varias .chipbar { position: static; }
}
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; flex: none;
  border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: 13.5px; font-weight: 650; white-space: nowrap; transition: border-color .15s, color .15s, background .15s;
}
.chip .i { width: 16px; height: 16px; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-current="page"] { background: var(--brand-soft); border-color: transparent; color: var(--brand-text); }
.chip-n { min-width: 19px; height: 19px; padding: 0 6px; border-radius: var(--pill); background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }

/* ---------- Página ---------- */
.pagina { max-width: var(--largura); margin: 0 auto; padding: 32px 24px 120px; outline: none; }
.pagina > * { animation: entra .42s cubic-bezier(.2, .8, .2, 1) both; }
.pagina > :nth-child(2) { animation-delay: .04s; }
.pagina > :nth-child(3) { animation-delay: .08s; }
.pagina > :nth-child(4) { animation-delay: .12s; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }

.cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.cab-txt { min-width: 0; max-width: 720px; }
.trilha { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; color: var(--ink-3); margin-bottom: 8px; }
.trilha .i { width: 13px; height: 13px; }
.trilha a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cab h1 { font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.cab-desc { color: var(--ink-2); margin-top: 6px; }
.cab-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* "Como usar" ao lado do título (ajuda.js) */
.cab-tit { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.ajuda-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 10px; border-radius: var(--pill);
  border: 1px solid transparent; background: var(--info-soft); color: var(--info); font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .08s;
}
.ajuda-btn .i { width: 19px; height: 19px; }
.ajuda-btn:hover { border-color: var(--info); }
.ajuda-btn:active { transform: translateY(1px); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 17px; border-radius: var(--pill); border: 1px solid transparent;
  font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn-perigo { background: var(--bad); color: #fff; }
.btn-perigo:hover { filter: brightness(.94); }
.perigo-txt { color: var(--bad); }
.perigo-txt:hover { background: var(--bad-soft); color: var(--bad); }
.btn-claro { background: rgba(255, 255, 255, .92); color: #16181b; border-color: rgba(0, 0, 0, .08); }
.btn-vidro { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18); }
.btn-vidro:hover { background: rgba(255, 255, 255, .16); }
.btn-vidro kbd { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .75); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn-sm .i { width: 15px; height: 15px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.espaco { flex: 1; }
.link-mais { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 750; color: var(--brand-text); border: 0; background: none; padding: 0; white-space: nowrap; }
.link-mais .i { width: 15px; height: 15px; transition: transform .15s; }
.link-mais:hover .i { transform: translateX(3px); }

/* ---------- Cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.card-titulo { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 750; }
.card-titulo .i { color: var(--ink-3); width: 17px; height: 17px; }
.card-sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.card-corpo { padding: 18px 20px 20px; }
.contador { min-width: 24px; height: 24px; padding: 0 8px; border-radius: var(--pill); background: var(--bad-soft); color: var(--bad); font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }

/* ---------- Bento (início e relatório) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.bento > * { animation: entra .5s cubic-bezier(.2, .8, .2, 1) both; }
.bento > :nth-child(2) { animation-delay: .05s; } .bento > :nth-child(3) { animation-delay: .1s; }
.bento > :nth-child(4) { animation-delay: .13s; } .bento > :nth-child(5) { animation-delay: .16s; }
.bento > :nth-child(6) { animation-delay: .19s; } .bento > :nth-child(n+7) { animation-delay: .22s; }

/* Herói */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); padding: 30px 30px 26px; min-height: 250px;
  background: #0f170c; color: #eef6ea;
  border: 1px solid rgba(255, 255, 255, .05);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(520px 300px at 88% 0%, rgba(107, 178, 82, .5), transparent 62%),
    radial-gradient(420px 260px at 100% 100%, rgba(20, 184, 166, .34), transparent 62%),
    radial-gradient(360px 240px at 0% 100%, rgba(107, 178, 82, .12), transparent 60%);
}
.hero-rede { position: absolute; right: -10px; top: -6px; width: min(50%, 440px); height: auto; z-index: -1; opacity: .95; }
.hero-rede line { stroke: rgba(154, 217, 122, .55); stroke-width: 1; }
.hero-rede circle { animation: pulsa 3.6s ease-in-out infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
.hero-rede .n1 { fill: #9ad97a; }
.hero-rede .n2 { fill: #2dd4bf; }
@keyframes pulsa { 50% { transform: scale(1.35); opacity: .65; } }
.hero-txt { max-width: 560px; }
.hero-data { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; color: rgba(238, 246, 234, .65); margin-bottom: 14px; }
.hero-data .i { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.hero-txt > p:last-child { color: rgba(238, 246, 234, .78); margin-top: 12px; font-size: 15.5px; max-width: 46ch; }
.hero-acoes { display: flex; gap: 10px; flex-wrap: wrap; }

/* Atenção / pendências */
.atencao { display: flex; flex-direction: column; }
.att-lista { list-style: none; margin: 0; padding: 8px 8px 10px; }
.att { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; transition: background .15s; }
.att:hover { background: var(--surface-2); }
.att-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.att-ico.info { background: var(--info-soft); color: var(--info); }
.att-ico.bad { background: var(--bad-soft); color: var(--bad); }
.att-ico.warn { background: var(--warn-soft); color: var(--warn); }
.att-txt { min-width: 0; flex: 1; }
.att-txt strong { display: block; font-size: 14px; font-weight: 700; }
.att-txt span { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-seta { color: var(--ink-3); width: 16px; height: 16px; }
.tudo-ok { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 16px; text-align: center; color: var(--ink-3); font-size: 13px; margin: auto 0; }
.tudo-ok .i { width: 36px; height: 36px; color: var(--ok); margin-bottom: 6px; }
.tudo-ok strong { color: var(--ink); font-size: 15px; }

/* KPIs */
.kpi { display: flex; flex-direction: column; padding: 18px 20px 0; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.kpi:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--sombra); }
.kpi-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-2); font-size: 13.5px; font-weight: 650; }
.kpi-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: var(--surface-3); background: color-mix(in srgb, var(--c) 14%, transparent); }
.kpi-valor { font-size: clamp(25px, 2.5vw, 34px); font-weight: 800; letter-spacing: -.035em; margin-top: 8px; line-height: 1.1; white-space: nowrap; }
.kpi-delta { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; margin-top: 6px; color: var(--ink-3); min-height: 19px; }
.kpi-delta .i { width: 15px; height: 15px; }
.kpi-delta.sobe { color: var(--ok); }
.kpi-delta.desce { color: var(--bad); }
.kpi-delta.alerta { color: var(--warn); }
.spark { display: block; width: calc(100% + 40px); height: 52px; margin: 12px -20px 0; }
.spark .area { fill: var(--c); opacity: .12; }
.spark .linha { fill: none; stroke: var(--c); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }

/* Barras */
.grafico { padding-top: 8px; }
.barras {
  height: 210px; display: flex; align-items: flex-end; gap: clamp(6px, 2vw, 18px); padding: 26px 4px 0;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 25%; background-position: 0 26px;
  background-repeat: repeat-y;
}
.barra {
  position: relative; flex: 1; max-width: 72px; height: var(--h); min-height: 3px;
  border-radius: 10px 10px 3px 3px; background: var(--surface-3);
  transform-origin: bottom; animation: cresce .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 60ms);
  transition: background .15s; outline: none;
}
:root[data-theme="dark"] .barra { background: #2c3035; }
.barra.atual { background: var(--brand); }
.barra:hover, .barra:focus-visible { background: var(--line-2); }
.barra.atual:hover, .barra.atual:focus-visible { background: var(--brand-strong); }
.barra .dica {
  position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 750; white-space: nowrap; color: var(--ink-2);
  opacity: 0; transition: opacity .15s; pointer-events: none;
}
.barra:hover .dica, .barra:focus-visible .dica, .barra.atual .dica { opacity: 1; }
.barra.atual .dica { color: var(--brand-text); }
@keyframes cresce { from { transform: scaleY(0); } }
.barras-x { display: flex; gap: clamp(6px, 2vw, 18px); padding: 8px 4px 0; }
.barras-x span { flex: 1; max-width: 72px; text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* Rosca */
.rosca-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.rosca { position: relative; width: 150px; height: 150px; flex: none; margin: 0 auto; }
.rosca svg { width: 100%; height: 100%; transform: rotate(-90deg) scaleY(-1); }
.rosca circle { fill: none; stroke-width: 4.2; stroke-linecap: butt; }
.rosca .trilho { stroke: var(--surface-3); }
.rosca-centro { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rosca-centro b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.rosca-centro span { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.legenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 1; min-width: 170px; }
.legenda li { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.legenda .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.leg-nome { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.legenda b { font-weight: 750; }

/* Listas de linhas */
.linhas { list-style: none; margin: 0; padding: 8px 8px 10px; }
.linha-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; transition: background .15s; }
.linha-item:hover { background: var(--surface-2); }
.linha-main { min-width: 0; flex: 1; }
.linha-main strong { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha-main span { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha-fim { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.linha-fim small { font-size: 12px; color: var(--ink-3); }

/* Atalhos */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 20px 20px; }
.tile {
  display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; line-height: 1.25;
  transition: transform .15s, border-color .15s, background .15s;
}
.tile:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--surface); }
.tile-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: var(--surface-3); background: color-mix(in srgb, var(--c) 15%, transparent); }
.tile-ico .i { width: 19px; height: 19px; }

/* ---------- Visão geral da seção ---------- */
.hub-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mod-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; min-height: 180px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s, transform .15s, box-shadow .15s; cursor: pointer;
}
.mod-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--sombra); }
.mod-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.mod-ico .i { width: 22px; height: 22px; }
.mod-ico[class*="cor-"] { background: var(--c); color: #fff; box-shadow: 0 8px 16px -8px var(--c); }
.mod-ico[class*="cor-"] .i { color: #fff; }
:root[data-theme="dark"] .mod-ico[class*="cor-"] .i { color: #0d1012; }
.sys-card.off .mod-ico[class*="cor-"] { background: var(--surface-3); color: var(--ink-3); box-shadow: none; }
.sys-card.off .mod-ico[class*="cor-"] .i { color: var(--ink-3); }
.mod-card h3 { font-size: 16px; font-weight: 800; }
.mod-card p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.mod-seta { position: absolute; top: 18px; right: 18px; color: var(--ink-3); opacity: 0; transform: translate(-4px, 4px); transition: .2s; }
.mod-card:hover .mod-seta { opacity: 1; transform: none; }
.mod-meta { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 12.5px; color: var(--ink-3); font-weight: 650; }
.mod-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.mod-meta .i { width: 14px; height: 14px; }
.meta-destaque { color: var(--brand-text); background: var(--brand-soft); padding: 3px 9px; border-radius: var(--pill); font-weight: 750; }
.meta-alerta { color: var(--warn); }
.meta-idiomas { margin-left: auto; padding: 2px 8px; border-radius: var(--pill); background: var(--surface-3); color: var(--ink-2); font-size: 11.5px; }
.sys-card.off .mod-ico { background: var(--surface-3); color: var(--ink-3); }
.sys-card.off h3, .sys-card.off p { opacity: .6; }
.sys-nums { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.sys-nums b { color: var(--ink); font-size: 15px; font-weight: 800; }
.sys-pe { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Seletor segmentado ---------- */
.seg { display: inline-flex; padding: 3px; border-radius: var(--pill); background: var(--surface-3); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button {
  border: 0; background: transparent; height: 32px; padding: 0 13px; border-radius: var(--pill);
  font-weight: 650; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; flex: none;
  transition: background .15s, color .15s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 1px var(--line); }
.seg button .i { width: 15px; height: 15px; }
.seg.sm button { height: 28px; padding: 0 10px; font-size: 12.5px; }
.seg-cheio { display: flex; width: 100%; }
.seg-cheio button { flex: 1; }
.seg-n { font-size: 11px; font-weight: 800; color: var(--ink-3); background: var(--surface-3); padding: 1px 6px; border-radius: var(--pill); min-width: 20px; }
.seg button[aria-pressed="true"] .seg-n { background: var(--brand-soft); color: var(--brand-text); }

/* ---------- Tabela ---------- */
.tabela-card { overflow: hidden; }
.barra-ferr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.campo-busca {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; flex: 1; min-width: 220px; max-width: 380px;
  border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3);
  transition: border-color .15s, box-shadow .15s;
}
.campo-busca:focus-within { border-color: var(--brand); box-shadow: var(--foco); }
.campo-busca input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; height: 100%; color: var(--ink); }
.campo-busca input::placeholder { color: var(--ink-3); }
.campo-busca input::-webkit-search-cancel-button { cursor: pointer; }
.lote { display: flex; align-items: center; gap: 8px; padding: 9px 12px 9px 18px; background: var(--inv-bg); color: var(--inv-fg); font-size: 13.5px; flex-wrap: wrap; }
.lote .btn { background: rgba(127, 127, 127, .2); color: inherit; }
.lote .btn:hover { background: rgba(127, 127, 127, .34); }
.lote .btn.perigo { color: #ff8d9c; }
:root[data-theme="dark"] .lote .btn.perigo { color: #c0283d; }
.lote .icon-btn { color: inherit; }
.lote .icon-btn:hover { background: rgba(127, 127, 127, .3); color: inherit; }
.tabela-rolagem { overflow-x: auto; }
table.dt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.dt th {
  text-align: left; font-size: 11.5px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3);
  padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.th-ord { border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.th-ord:hover { color: var(--ink); }
.ord-ico { display: inline-grid; opacity: 0; transition: opacity .15s, transform .15s; }
.ord-ico .i { width: 14px; height: 14px; }
.th-ord:hover .ord-ico { opacity: .5; }
.th-ord.on { color: var(--ink); }
.th-ord.on .ord-ico { opacity: 1; transform: rotate(180deg); }
.th-ord.on.desc .ord-ico { transform: none; }
.dt td { padding: var(--cel-py, 13px) 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
html[data-densidade="compacta"] { --cel-py: 7px; }
.dt tbody tr { cursor: pointer; transition: background .12s; }
.dt tbody tr:hover { background: var(--surface-2); }
.dt tbody tr.sel { background: var(--brand-soft); }
.dt tbody tr:last-child td { border-bottom: 0; }
.dt tbody tr:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); border-radius: 0; }
.col-check { width: 48px; padding-right: 0 !important; }
.col-acoes { width: 1%; white-space: nowrap; text-align: right; }
.ck { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; margin: 0; vertical-align: middle; }
.td-v small { display: block; font-size: 12.5px; color: var(--ink-3); }
.cel-pessoa, .cel-post { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cel-pessoa strong, .cel-post strong { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.cel-pessoa small, .cel-post small { display: block; font-size: 12.5px; color: var(--ink-3); }
.cel-post > div { min-width: 0; }
.cel-post small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 520px; }
.cel-2l { display: block; }
.post-img { width: 52px; height: 38px; border-radius: 9px; flex: none; background-size: cover; background-position: center; }
.ico-quadro { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); flex: none; }
.ico-quadro .i { width: 17px; height: 17px; }
.voce { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: var(--pill); background: var(--brand-soft); color: var(--brand-text); }
.link-ext { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-text); font-weight: 650; }
.link-ext .i { width: 14px; height: 14px; }
.link-ext:hover { text-decoration: underline; text-underline-offset: 3px; }
.apagado { color: var(--ink-3); }
.forte { font-weight: 750; }
.t-bad { color: var(--bad) !important; font-weight: 650; }
.t-warn { color: var(--warn) !important; font-weight: 650; }
.etiqueta { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; margin: 2px 4px 2px 0; border-radius: var(--pill); background: var(--surface-3); font-size: 12px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.etiqueta.mais { background: transparent; border: 1px dashed var(--line-2); }
.pilula { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--pill); font-size: 12.5px; font-weight: 750; white-space: nowrap; }
.pilula::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pilula.ok { background: var(--ok-soft); color: var(--ok); }
.pilula.warn { background: var(--warn-soft); color: var(--warn); }
.pilula.bad { background: var(--bad-soft); color: var(--bad); }
.pilula.info { background: var(--info-soft); color: var(--info); }
.pilula.neutro { background: var(--surface-3); color: var(--ink-3); }
.tabela-pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.paginas { display: flex; gap: 4px; }
.paginas button { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13px; display: inline-grid; place-items: center; }
.paginas button:hover:not([disabled]) { border-color: var(--line-2); }
.paginas button[aria-current="page"] { background: var(--inv-bg); color: var(--inv-fg); border-color: transparent; }
.paginas button[disabled] { opacity: .4; cursor: default; }
.paginas .i { width: 16px; height: 16px; }
.vazio { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 56px 20px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.vazio > .i { width: 42px; height: 42px; color: var(--line-2); margin-bottom: 8px; stroke-width: 1.5; }
.vazio strong { color: var(--ink); font-size: 16px; }
.vazio .btn { margin-top: 14px; }
.vazio.grande { padding: 90px 20px; }

/* Faixa de números */
.faixa { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; overflow: hidden; }
.faixa-item { padding: 18px 20px; border-right: 1px solid var(--line); min-width: 0; }
.faixa-item:last-child { border-right: 0; }
.faixa-rot { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.faixa-rot .i { width: 16px; height: 16px; color: var(--ink-3); }
.faixa-item.ok .faixa-rot .i { color: var(--ok); }
.faixa-item.warn .faixa-rot .i { color: var(--warn); }
.faixa-item.bad .faixa-rot .i { color: var(--bad); }
.faixa-item.bad strong { color: var(--bad); }
.faixa-item strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faixa-item small { font-size: 12.5px; color: var(--ink-3); }

/* Ranking */
.ranking { list-style: none; margin: 0; padding: 16px 20px 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px 32px; }
.rank-linha { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; align-items: center; }
.rank-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; grid-row: span 2; color: var(--c); background: var(--surface-3); background: color-mix(in srgb, var(--c) 14%, transparent); }
.rank-ico .i { width: 17px; height: 17px; }
.rank-nome { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-n { font-size: 12.5px; color: var(--ink-3); font-weight: 650; }
.medidor { grid-column: 2 / 4; height: 7px; border-radius: var(--pill); background: var(--surface-3); overflow: hidden; }
.medidor i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--c); animation: enche .9s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
@keyframes enche { from { transform: scaleX(0); } }

/* ---------- Formulários ---------- */
.form-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.field.meia { grid-column: span 1; }
.field > label, .field-label, .label-linha label { font-size: 13px; font-weight: 750; color: var(--ink); padding: 0; }
.label-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.contador-car { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.req { color: var(--bad); margin-left: 3px; }
.hint { font-size: 12.5px; color: var(--ink-3); }
.erro { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--bad); font-weight: 650; }
.erro .i { width: 15px; height: 15px; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea, .pop-form input {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 92px; padding: 10px 13px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23878c95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus, .pop-form input:focus { outline: none; border-color: var(--brand); box-shadow: var(--foco); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .8; }
.field.invalido input, .field.invalido select, .field.invalido textarea { border-color: var(--bad); }
.input-pre { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.input-pre:focus-within { border-color: var(--brand); box-shadow: var(--foco); }
.input-pre span { padding-left: 13px; color: var(--ink-3); font-weight: 700; font-size: 13.5px; }
.field .input-pre input { border: 0 !important; box-shadow: none !important; padding-left: 8px; }
.field.invalido .input-pre { border-color: var(--bad); }
.multi { display: flex; flex-wrap: wrap; gap: 8px; }
.multi label {
  position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px;
  border-radius: var(--pill); border: 1px solid var(--line-2); font-size: 13px; font-weight: 650; cursor: pointer; user-select: none;
  transition: background .15s, border-color .15s, color .15s;
}
.multi label .i { width: 15px; height: 15px; display: none; }
.multi input { position: absolute; opacity: 0; pointer-events: none; }
.multi label.on { background: var(--brand-soft); border-color: transparent; color: var(--brand-text); }
.multi label.on .i { display: block; }
.multi label:focus-within { box-shadow: var(--foco); }
.campo-switch { justify-content: center; }
.form-acoes { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.senha { position: relative; }
.senha input { padding-right: 46px !important; }
.senha .icon-btn { position: absolute; right: 5px; top: 5px; }
.forca { display: flex; gap: 4px; }
.forca i { flex: 1; height: 5px; border-radius: 9px; background: var(--surface-3); transition: background .2s; }
.forca[data-forca="1"] i:nth-child(-n+1) { background: var(--bad); }
.forca[data-forca="2"] i:nth-child(-n+2) { background: var(--warn); }
.forca[data-forca="3"] i:nth-child(-n+3) { background: #7cb342; }
.forca[data-forca="4"] i { background: var(--ok); }

/* Interruptor */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; font-weight: 650; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.trk { position: relative; width: 40px; height: 24px; border-radius: var(--pill); background: var(--line-2); transition: background .2s; flex: none; }
.trk::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.switch input:checked + .trk { background: var(--brand); }
.switch input:checked + .trk::after { transform: translateX(16px); }
.switch input:focus-visible + .trk { box-shadow: var(--foco); }
.mini-switch { margin-left: auto; width: 32px; height: 20px; border-radius: var(--pill); background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.mini-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.mini-switch.on { background: var(--brand); }
.mini-switch.on::after { transform: translateX(12px); }

/* Área de imagem */
.dropzone {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 150px; padding: 20px;
  border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--surface-2); text-align: center;
  color: var(--ink-3); font-size: 13px; overflow: hidden; background-size: cover; background-position: center;
  transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.sobre { border-color: var(--brand); background-color: var(--brand-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; }
.dz-vazio { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dz-vazio .i { width: 26px; height: 26px; margin-bottom: 4px; color: var(--ink-3); }
.dz-vazio strong { color: var(--ink); font-size: 13.5px; }
.dz-acoes { display: none; position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.dropzone.tem-img { min-height: 190px; border-style: solid; border-color: var(--line); }
.dropzone.tem-img .dz-vazio { display: none; }
.dropzone.tem-img .dz-acoes { display: flex; }
.dropzone.tem-img::after { content: "Clique ou arraste outra imagem para trocar"; position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: var(--pill); background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 650; opacity: 0; transition: opacity .15s; }
.dropzone.tem-img:hover::after { opacity: 1; }
.dropzone.carregando { opacity: .6; pointer-events: none; }

/* ---------- Gaveta, folha, janelas ---------- */
.fundo { position: fixed; inset: 0; z-index: 80; background: rgba(10, 12, 14, .44); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: aparece .2s; }
@keyframes aparece { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(540px, 100%);
  display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: var(--sombra); animation: desliza .3s cubic-bezier(.2, .8, .2, 1);
}
@keyframes desliza { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.drawer-head p { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.drawer-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); margin-bottom: 12px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px 28px; }
.drawer-foot { display: flex; align-items: center; gap: 8px; padding: 14px 24px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface-2); }

/* Gaveta "Como usar": letra grande, passos numerados e os botões desenhados como aparecem na tela */
.drawer-ajuda { width: min(620px, 100%); }
.drawer-ajuda .drawer-ico { background: var(--info-soft); color: var(--info); }
.drawer-ajuda .drawer-head h2 { font-size: 23px; }
.drawer-ajuda .drawer-head p { font-size: 14.5px; }
.aj { font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.aj-intro { font-size: 17.5px; padding: 16px 18px; border-radius: var(--r); background: var(--brand-soft); border-left: 4px solid var(--brand); }
.aj-abas { margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.aj-sec h3, .aj-dicas h3 { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin: 28px 0 12px; }
.aj-sec h3 .i { width: 21px; height: 21px; color: var(--brand-text); }
.aj-passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aj-passos li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.aj-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 17px; line-height: 1; }
.aj-sec:nth-of-type(even) .aj-n { background: var(--info); color: #fff; }
.aj-sec:nth-of-type(even) h3 .i { color: var(--info); }
.aj-txt { padding-top: 3px; min-width: 0; }
.aj b { font-weight: 750; }
.aj-bt {
  display: inline-block; padding: 0 10px; margin: 1px 1px; border-radius: var(--pill); border: 1px solid var(--line-2);
  background: var(--surface); font-weight: 700; font-size: .9em; line-height: 1.75; white-space: nowrap; box-shadow: 0 1px 0 var(--line);
}
.aj-bt.pri { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: none; }
.aj-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0 2px; vertical-align: -8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); }
.aj-ico .i { width: 16px; height: 16px; }
.aj-dicas { margin-top: 28px; padding: 4px 18px 16px; border-radius: var(--r); background: var(--warn-soft); }
.aj-dicas h3 { margin: 14px 0 8px; }
.aj-dicas h3 .i { width: 21px; height: 21px; color: var(--warn); }
.aj-dicas ul { margin: 0; padding-left: 22px; display: grid; gap: 9px; font-size: 16px; }
.aj-dicas li::marker { color: var(--warn); }
.aj-entendi { height: 46px; padding: 0 28px; font-size: 16px; }
@media (max-width: 560px) {
  .aj { font-size: 16px; }
  .aj-passos li { grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 13px; }
  .aj-n { width: 30px; height: 30px; font-size: 15px; }
}

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 86; max-height: 88vh; overflow-y: auto;
  background: var(--surface); border-radius: 24px 24px 0 0; padding: 8px 12px calc(16px + env(safe-area-inset-bottom));
  box-shadow: var(--sombra); animation: sobe .3s cubic-bezier(.2, .8, .2, 1);
}
.sheet::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 4px auto 12px; }
@keyframes sobe { from { transform: translateY(100%); } }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 6px 10px 14px; }
.sheet-head strong { display: block; font-size: 16px; }
.sheet-head > div span { font-size: 13px; color: var(--ink-3); }
.sheet .seg-cheio { margin: 0 6px 6px; width: auto; }

.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal > .fundo { position: absolute; z-index: 0; }
.modal-box { position: relative; z-index: 1; width: min(430px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--sombra); animation: pop .2s cubic-bezier(.2, .8, .2, 1); }
.modal-box.largo { width: min(560px, 100%); }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-box h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.modal-box > p { color: var(--ink-2); margin-top: 8px; font-size: 14px; }
.modal-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); margin-bottom: 16px; }
.modal-ico.perigo { background: var(--bad-soft); color: var(--bad); }
.modal-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.modal-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.atalhos { list-style: none; margin: 0; padding: 0; }
.atalhos li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.atalhos li:last-child { border-bottom: 0; }
.atalhos em { font-style: normal; font-size: 12px; color: var(--ink-3); margin: 0 3px; }

/* ---------- Menus flutuantes ---------- */
.pop {
  position: fixed; z-index: 85; min-width: 230px; max-width: calc(100vw - 16px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sombra);
  padding: 6px; animation: pop .16s cubic-bezier(.2, .8, .2, 1);
}
.pop-conta { width: 300px; }
.pop-notif { width: 360px; padding: 6px 6px 4px; }
.pop-notif .att-lista { padding: 0 0 4px; }
.pop-titulo { font-weight: 800; font-size: 15px; padding: 10px 12px 6px; }
.pop-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px;
  background: transparent; text-align: left; font-size: 14px; font-weight: 650; color: var(--ink);
}
.pop-item:hover:not([disabled]), .pop-item:focus-visible { background: var(--surface-3); }
.pop-item[disabled] { opacity: .4; cursor: default; }
.pop-item .i { color: var(--ink-3); width: 17px; height: 17px; }
.pop-item kbd { margin-left: auto; }
.pop-item.perigo, .pop-item.perigo .i { color: var(--bad); }
.pop-item.grande { padding: 13px 12px; font-size: 15px; }
.pop-item .fim { margin-left: auto; }
.pop-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.pop-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); padding: 8px 10px 7px; }
.pop .seg-cheio { margin: 0 4px 6px; width: auto; }
.pop-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; }
.pop-head strong { display: block; font-size: 14.5px; }
.pop-head > div span { font-size: 12.5px; color: var(--ink-3); }
.pop-form { display: grid; gap: 8px; padding: 8px; min-width: 260px; }
.pop-form label { font-size: 13px; font-weight: 750; }
.pop-form-acoes { display: flex; justify-content: flex-end; }

/* ---------- Busca rápida ---------- */
.palette { position: fixed; inset: 0; z-index: 110; display: flex; justify-content: center; align-items: flex-start; padding: 11vh 16px 16px; }
.palette > .fundo { position: absolute; z-index: 0; }
.palette-box {
  position: relative; z-index: 1; width: min(660px, 100%); max-height: 72vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sombra); overflow: hidden;
  animation: pop .18s cubic-bezier(.2, .8, .2, 1);
}
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 16px 0 20px; height: 62px; border-bottom: 1px solid var(--line); color: var(--ink-3); flex: none; }
.palette-input .i { width: 20px; height: 20px; }
.palette-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--ink); height: 100%; }
.palette-input input::placeholder { color: var(--ink-3); }
.palette-lista { overflow-y: auto; padding: 6px 8px 10px; }
.palette-sec { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding: 12px 12px 6px; }
.palette-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: var(--ink); }
.pi-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); flex: none; transition: background .12s, color .12s; }
.pi-txt { min-width: 0; flex: 1; font-weight: 650; }
.pi-txt small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi-enter { color: var(--ink-3); opacity: 0; }
.palette-item[aria-selected="true"] { background: var(--brand-soft); }
.palette-item[aria-selected="true"] .pi-ico { background: var(--brand); color: var(--brand-ink); }
.palette-item[aria-selected="true"] .pi-enter { opacity: 1; }
.palette-pe { display: flex; gap: 18px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); background: var(--surface-2); flex: none; }
.palette-pe kbd { margin-right: 3px; }
.so-cel { display: none !important; }

/* ---------- Avisos ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 130; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 440px;
  padding: 11px 12px 11px 14px; border-radius: 16px; background: var(--inv-bg); color: var(--inv-fg);
  box-shadow: var(--sombra); font-size: 14px; font-weight: 600; animation: pop .22s cubic-bezier(.2, .8, .2, 1);
  transition: opacity .2s, transform .2s;
}
.toast.saindo { opacity: 0; transform: translateY(6px); }
.t-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); flex: none; }
.t-ico .i { width: 15px; height: 15px; stroke-width: 2.4; }
.toast.warn .t-ico { background: var(--warn); color: #fff; }
.toast.info .t-ico { background: var(--info); color: #fff; }
.toast.bad .t-ico { background: var(--bad); color: #fff; }
.t-msg { flex: 1; }
.toast button { border: 0; background: rgba(127, 127, 127, .25); color: inherit; height: 30px; padding: 0 13px; border-radius: var(--pill); font-weight: 750; font-size: 13px; }
.toast button:hover { background: rgba(127, 127, 127, .4); }

/* ---------- Barra "não salvo" ---------- */
.savebar {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 160%);
  display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 18px; max-width: calc(100% - 24px);
  border-radius: var(--pill); background: var(--inv-bg); color: var(--inv-fg); box-shadow: var(--sombra);
  font-size: 14px; font-weight: 650; visibility: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
}
.savebar.on { transform: translate(-50%, 0); visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.sb-ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); flex: none; box-shadow: 0 0 0 4px rgba(234, 168, 70, .25); }
.sb-msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.savebar .btn-ghost { color: inherit; opacity: .85; }
.savebar .btn-ghost:hover { background: rgba(127, 127, 127, .25); color: inherit; opacity: 1; }

/* ---------- Caixa de mensagens ---------- */
.caixa { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); min-height: 620px; overflow: hidden; }
.caixa-lado { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.caixa-ferr { padding: 14px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.caixa-ferr .campo-busca { max-width: none; min-width: 0; }
.caixa-lista { list-style: none; margin: 0; padding: 6px; overflow-y: auto; max-height: 680px; }
.msg-item { position: relative; display: flex; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 14px; cursor: pointer; transition: background .12s; }
.msg-item:hover { background: var(--surface-2); }
.msg-item[aria-selected="true"] { background: var(--brand-soft); }
.msg-item.nova::before { content: ""; position: absolute; left: 5px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.msg-item-txt { min-width: 0; flex: 1; }
.msg-item-topo { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.msg-item-topo strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-item-topo time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.msg-assunto { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-previa { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-item.nova .msg-item-topo strong, .msg-item.nova .msg-assunto { font-weight: 800; color: var(--ink); }
.msg { display: flex; flex-direction: column; min-width: 0; }
.msg-barra { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.msg-barra .voltar { display: none; }
.msg-corpo { padding: 30px clamp(20px, 4vw, 44px) 40px; overflow-y: auto; }
.msg-corpo h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 20px; }
.msg-de { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.msg-de > div { flex: 1; min-width: 180px; }
.msg-de strong { display: block; }
.msg-de > div span { font-size: 13px; color: var(--ink-3); }
.msg-de time { font-size: 13px; color: var(--ink-3); }
.msg-texto { font-size: 15.5px; line-height: 1.75; white-space: pre-line; max-width: 66ch; }
.msg-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.msg-vazia { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px 20px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.msg-vazia > .i { width: 46px; height: 46px; color: var(--line-2); margin-bottom: 10px; stroke-width: 1.4; }
.msg-vazia strong { color: var(--ink); font-size: 16px; }
.msg-vazia .btn { margin-top: 16px; }

/* ---------- Editor de texto ---------- */
.secoes { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.secoes-rot { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.sec-ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.editor-grade { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.editor-card { overflow: hidden; }
.abas-idioma { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.aba-idioma {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px;
  border: 0; background: transparent; font-weight: 700; font-size: 13.5px; color: var(--ink-3); white-space: nowrap;
}
.aba-idioma:hover { color: var(--ink); }
.aba-idioma[aria-selected="true"] { color: var(--ink); }
.aba-idioma[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2.5px; border-radius: 3px; background: var(--brand); }
.sigla { font-size: 10.5px; font-weight: 800; padding: 3px 6px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); }
.aba-idioma[aria-selected="true"] .sigla { background: var(--inv-bg); color: var(--inv-fg); }
.idioma-ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.idioma-ponto.ok { background: var(--ok); }
.idioma-ponto.suja { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.form-pilha { display: grid; gap: 20px; }
.aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--info-soft); color: var(--info); font-size: 13px; font-weight: 650; }
.aviso .i { margin-top: 1px; }
.rte { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.rte:focus-within { border-color: var(--brand); box-shadow: var(--foco); }
.rte-barra { display: flex; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.rte-barra button { width: 34px; height: 32px; border: 0; border-radius: 8px; background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.rte-barra button:hover { background: var(--surface-3); color: var(--ink); }
.rte-barra .i { width: 17px; height: 17px; }
.rte-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }
.rte-area { min-height: 200px; max-height: 460px; overflow-y: auto; padding: 14px 16px; outline: none; line-height: 1.65; font-size: 15px; }
.rte-area:empty::before { content: attr(data-ph); color: var(--ink-3); }
.rte-area p { margin: 0 0 8px; }
.rte-area ul, .rte-area ol { padding-left: 22px; margin: 6px 0 10px; }
.rte-area a { color: var(--brand-text); text-decoration: underline; }

.previa { position: sticky; top: calc(var(--topo-h) + var(--chips-h) + 16px); overflow: hidden; }
.previa-topo { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 750; }
.ao-vivo { display: inline-flex; align-items: center; gap: 8px; }
.ao-vivo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: vivo 2s infinite; }
@keyframes vivo { 0% { box-shadow: 0 0 0 0 rgba(82, 196, 127, .5); } 70% { box-shadow: 0 0 0 7px rgba(82, 196, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(82, 196, 127, 0); } }
.previa-palco {
  padding: 22px; display: flex; justify-content: center; background-color: var(--surface-3);
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 16px 16px;
}
.navegador {
  width: 100%; max-width: 680px; border-radius: 14px; overflow: hidden; background: #fff; color: #1b1d20;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06);
  transition: max-width .4s cubic-bezier(.2, .8, .2, 1), border-radius .4s;
}
.navegador.celular { max-width: 300px; border-radius: 30px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .4), 0 0 0 7px #1b1d20; }
.navegador-barra { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f0f1f3; border-bottom: 1px solid #e3e5e8; }
.navegador-barra i { width: 10px; height: 10px; border-radius: 50%; background: #d5d8dc; }
.navegador-barra i:nth-child(1) { background: #ff5f57; }
.navegador-barra i:nth-child(2) { background: #febc2e; }
.navegador-barra i:nth-child(3) { background: #28c840; }
.navegador.celular .navegador-barra i { display: none; }
.navegador.celular .navegador-barra { justify-content: center; padding-top: 14px; }
.url { margin-left: 10px; flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; font-size: 11px; color: #6b7078; background: #fff; border-radius: 7px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url .i { width: 11px; height: 11px; flex: none; }
.navegador.celular .url { margin-left: 0; flex: none; max-width: 90%; }
.site { font-family: var(--font); font-size: 12.5px; line-height: 1.55; }
.site .marca { width: 18px; height: 18px; }
.site-nav { display: flex; align-items: center; gap: 6px; padding: 11px 16px; font-size: 11px; color: #5c616a; border-bottom: 1px solid #f0f1f3; }
.site-nav b { color: #1b1d20; letter-spacing: .04em; margin-right: auto; }
.navegador.celular .site-nav span { display: none; }
.site-aviso { display: flex; align-items: center; gap: 6px; margin: 10px 14px 0; padding: 6px 10px; border-radius: 8px; background: #fff4dc; color: #8a5a00; font-size: 11px; font-weight: 700; }
.site-aviso .i { width: 13px; height: 13px; }
.site-hero { position: relative; min-height: 190px; display: flex; align-items: flex-end; padding: 22px 20px; color: #fff; background-size: cover; background-position: center; }
.site-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, rgba(0, 0, 0, .6)); }
.site-hero > div { position: relative; z-index: 1; }
.site-hero h1 { font-size: 22px; font-weight: 800; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
.site-hero p { font-size: 12.5px; opacity: .92; margin-top: 6px; }
.navegador.celular .site-hero { min-height: 260px; }
.navegador.celular .site-hero h1 { font-size: 20px; }
.site-btn { display: inline-block; margin-top: 12px; padding: 7px 14px; border-radius: 999px; background: #6bb252; color: #0f2408; font-weight: 750; font-size: 11.5px; }
.site-corpo { padding: 20px 20px 24px; color: #33373d; }
.site-corpo h2 { font-size: 19px; font-weight: 800; color: #1b1d20; letter-spacing: -.02em; text-wrap: balance; }
.site-sub { color: #6b7078; margin-top: 4px; }
.site-fig { height: 130px; border-radius: 12px; margin: 14px 0; background-size: cover; background-position: center; }
.site-txt ul, .site-txt ol { padding-left: 18px; margin: 6px 0; }
.site-txt p { margin: 0 0 8px; }
.site-txt a { color: #3a7a25; text-decoration: underline; }
.site-vazio { color: #9aa0a8; font-style: italic; font-weight: 500; }
.site-hero .site-vazio { color: rgba(255, 255, 255, .7); }
.site-pe { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 12px; font-size: 10.5px; color: #8b9098; background: #f7f7f5; }
.site-pe .marca { width: 14px; height: 14px; }

/* ---------- Galerias ---------- */
.dica-barra { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin: -8px 0 16px; }
.dica-barra .i { width: 16px; height: 16px; }
.gal-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gal-grade.logos { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.media-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, opacity .2s, border-color .15s; }
.media-card:hover { box-shadow: var(--sombra); border-color: var(--line-2); }
.media-card.off .thumb { filter: grayscale(1); opacity: .5; }
.media-card.arrastando { opacity: .35; transform: scale(.97); }
.media-card.alvo { outline: 2px dashed var(--brand); outline-offset: 4px; }
.thumb { position: relative; aspect-ratio: 16 / 9; background-size: cover; background-position: center; cursor: pointer; overflow: hidden; }
.thumb.logo { background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.logo-marca { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.03em; color: #1b1d20; padding: 0 16px; text-align: left; line-height: 1.1; }
.logo-marca i { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.thumb-legenda { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; font-weight: 800; font-size: 16px; line-height: 1.2; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); z-index: 1; }
.thumb .ord { position: absolute; top: 10px; left: 10px; z-index: 2; height: 24px; padding: 0 9px; border-radius: var(--pill); background: rgba(0, 0, 0, .55); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.thumb.logo .ord { background: var(--surface-3); color: var(--ink-2); }
.pegar { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 10px; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; cursor: grab; opacity: 0; transition: opacity .15s; }
.media-card:hover .pegar { opacity: 1; }
.play { position: absolute; inset: 0; margin: auto; z-index: 1; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #111; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); transition: transform .2s; }
.play .i { width: 22px; height: 22px; margin-left: 3px; }
.media-card:hover .play { transform: scale(1.08); }
.media-corpo { padding: 14px 16px 6px; flex: 1; cursor: pointer; }
.media-corpo h3 { font-size: 15px; font-weight: 750; }
.media-corpo p { font-size: 13px; color: var(--ink-3); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media-pe { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 12px 16px; }
.media-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 260px;
  border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); background: transparent; color: var(--ink-3); font-weight: 750;
  transition: border-color .15s, background .15s, color .15s;
}
.media-add .i { width: 30px; height: 30px; }
.media-add:hover { border-color: var(--brand); color: var(--brand-text); background: var(--brand-soft); }

/* Artes geradas (no lugar de imagens enquanto não há fotos) */
.art-0 { background: radial-gradient(120% 100% at 0% 0%, #b4ec8f 0%, transparent 55%), radial-gradient(90% 90% at 100% 100%, #14b8a6 0%, transparent 60%), #2f6a22; }
.art-1 { background: radial-gradient(120% 100% at 0% 0%, #fde68a 0%, transparent 55%), radial-gradient(90% 90% at 100% 100%, #f97316 0%, transparent 60%), #7c2d12; }
.art-2 { background: radial-gradient(120% 100% at 0% 0%, #a5c8ff 0%, transparent 55%), radial-gradient(90% 90% at 100% 100%, #6366f1 0%, transparent 60%), #1e1b4b; }
.art-3 { background: radial-gradient(120% 100% at 0% 0%, #f9a8d4 0%, transparent 55%), radial-gradient(90% 90% at 100% 100%, #a855f7 0%, transparent 60%), #3b0764; }
.art-4 { background: radial-gradient(120% 100% at 0% 0%, #99f6e4 0%, transparent 55%), radial-gradient(90% 90% at 100% 100%, #0ea5e9 0%, transparent 60%), #0c4a6e; }
.art-5 { background: radial-gradient(120% 100% at 0% 0%, #fef08a 0%, transparent 55%), radial-gradient(90% 90% at 100% 100%, #84cc16 0%, transparent 60%), #365314; }
.art-6 { background: radial-gradient(120% 100% at 0% 0%, #fecaca 0%, transparent 55%), radial-gradient(90% 90% at 100% 100%, #ef4444 0%, transparent 60%), #450a0a; }
.art-7 { background: radial-gradient(120% 100% at 0% 0%, #e2e8f0 0%, transparent 55%), radial-gradient(90% 90% at 100% 100%, #64748b 0%, transparent 60%), #0f172a; }
.thumb[class*="art-"]::after, .site-hero[class*="art-"]::after, .site-fig[class*="art-"]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 78% 32%, rgba(255, 255, 255, .26) 0 16%, transparent 16.5%), radial-gradient(circle at 90% 74%, rgba(255, 255, 255, .14) 0 9%, transparent 9.5%), radial-gradient(circle at 62% 80%, rgba(255, 255, 255, .1) 0 5%, transparent 5.5%);
}
.site-fig { position: relative; overflow: hidden; }
.site-hero[class*="art-"]::before { z-index: 0; }

/* ---------- Perfil ---------- */
.perfil-grade { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.perfil-cartao { position: relative; overflow: hidden; padding: 0 24px 24px; text-align: center; }
.perfil-capa { height: 92px; margin: 0 -24px -46px; background: #0f170c; background-image: radial-gradient(260px 120px at 80% 0%, rgba(107, 178, 82, .6), transparent 70%), radial-gradient(200px 120px at 10% 100%, rgba(20, 184, 166, .4), transparent 70%); }
.perfil-cartao .avatar { position: relative; }
.perfil-cartao h2 { font-size: 20px; font-weight: 800; margin-top: 12px; }
.perfil-cartao > p { color: var(--ink-3); font-size: 13.5px; margin: 2px 0 12px; word-break: break-all; }
.perfil-nums { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.perfil-nums dt { font-size: 12px; color: var(--ink-3); font-weight: 650; }
.perfil-nums dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; }
.pilha { display: grid; gap: 16px; }
.perfil-login { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.perfil-login .i { width: 15px; height: 15px; }
.aviso-alerta { grid-column: 1 / -1; background: var(--warn-soft); color: var(--warn); }
.tela-carregando { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--ink-3); }
.tela-carregando .marca { width: 46px; height: 46px; animation: pulsa 1.6s ease-in-out infinite; }
.tela-carregando.erro > .i { width: 42px; height: 42px; color: var(--bad); }
.tela-carregando strong { color: var(--ink); font-size: 17px; }
.tela-carregando .btn { margin-top: 10px; }
.pref { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pref:first-child { padding-top: 2px; }
.pref:last-child { border-bottom: 0; padding-bottom: 0; }
.pref strong { display: block; font-size: 14px; }
.pref > div > span { font-size: 13px; color: var(--ink-3); }
.pref > div:first-child { flex: 1; min-width: 0; }
.pref .seg, .pref .seg-cheio { flex: none; width: auto; display: inline-flex; }

/* ---------- Navegação de baixo (celular/tablet) ---------- */
.nav-baixo { display: none; }

/* ---------- Telas médias ---------- */
@media (max-width: 1360px) {
  .busca-btn { min-width: 0; }
  .busca-btn span { display: none; }
}
@media (max-width: 1180px) {
  .aba span { display: none; }
  .aba { padding: 0 12px; }
  .span-8, .span-4, .span-7, .span-5 { grid-column: span 12; }
  .span-3 { grid-column: span 6; }
  .hero { min-height: 230px; }
  .editor-grade { grid-template-columns: 1fr; }
  .previa { position: static; }
}

/* ---------- Tablet e celular: abas vão para baixo ---------- */
@media (max-width: 1023.98px) {
  .abas { display: none; }
  .nav-baixo {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    border-top: 1px solid var(--line);
  }
  .nb { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 0; border: 0; background: none; font-size: 11px; font-weight: 700; color: var(--ink-3); }
  .nb-ico { width: 54px; height: 30px; border-radius: var(--pill); display: grid; place-items: center; transition: background .2s, color .2s; }
  .nb[aria-current="page"] { color: var(--ink); }
  .nb[aria-current="page"] .nb-ico { background: var(--inv-bg); color: var(--inv-fg); }
  .busca-btn { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; margin-right: 0; }
  .busca-btn kbd { display: none; }
  .pagina { padding-bottom: 130px; }
  .toasts { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); align-items: stretch; }
  .toast { max-width: none; min-width: 0; }
  .savebar { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .perfil-grade { grid-template-columns: 1fr; }
  .faixa { grid-template-columns: repeat(2, 1fr); }
  .faixa-item:nth-child(2) { border-right: 0; }
  .faixa-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .caixa { grid-template-columns: 1fr; min-height: 0; }
  .caixa-lado { border-right: 0; }
  .caixa-lista { max-height: none; }
  .caixa .msg { display: none; }
  .caixa.lendo .caixa-lado { display: none; }
  .caixa.lendo .msg { display: flex; }
  .msg-barra .voltar { display: inline-grid; }
}

/* ---------- Celular ---------- */
@media (max-width: 720px) {
  .dt thead { display: none; }
  .dt, .dt tbody { display: block; }
  .dt tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 8px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); }
  .dt tbody tr:last-child { border-bottom: 0; }
  .dt td { display: block; padding: 0; border: 0; }
  .dt td.col-check { grid-row: 1; grid-column: 1; width: auto; padding-top: 9px; }
  .dt td.col-main { grid-row: 1; grid-column: 2; min-width: 0; }
  .dt td.col-acoes { grid-row: auto; grid-column: 1 / -1; width: auto; padding-top: 8px; margin-top: 2px; border-top: 1px dashed var(--line); }
  .dt td.col-acoes .acoes-linha { justify-content: flex-end; flex-wrap: wrap; }
  .acoes-linha .icon-btn.sm { width: 38px; height: 38px; }
  .dt td.col-extra { grid-column: 2 / 4; display: flex; align-items: baseline; gap: 10px; font-size: 13px; min-width: 0; }
  .dt td.col-extra::before { content: attr(data-rotulo); flex: none; width: 84px; font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
  .dt td.col-extra .td-v { min-width: 0; overflow-wrap: anywhere; }
  .dt td.sem-cel { display: none; }
  .dt tr { row-gap: 6px; }
  .cel-post small { max-width: none; }
  .barra-ferr { padding: 12px; }
  .campo-busca { max-width: none; min-width: 0; flex-basis: 100%; }
  .barra-ferr .seg { width: 100%; }
  .barra-ferr .seg button { flex: 1; }
  .hub-grade { grid-template-columns: 1fr; }
  .mod-card { min-height: 0; }
  .ranking { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topo-in { padding: 0 14px; gap: 10px; }
  .brand small { display: none; }
  .chips { padding: 8px 14px; }
  .pagina { padding: 22px 14px 130px; }
  .cab { margin-bottom: 18px; }
  .cab-acoes { width: 100%; }
  .cab-acoes .btn { flex: 1; }
  .cab-acoes .btn-outline span { display: none; }
  .cab-acoes .btn-outline { flex: 0 0 auto; width: 40px; padding: 0; }
  .cab-acoes .seg { flex: 1; }
  .cab-acoes .seg button { flex: 1; }
  .bento { gap: 12px; }
  .hero { padding: 22px 20px; min-height: 0; }
  .hero-rede { width: 80%; opacity: .45; }
  .hero-acoes .btn { flex: 1; }
  .hero-acoes .btn-vidro kbd { display: none; }
  .kpi { padding: 16px 16px 0; }
  .spark { width: calc(100% + 32px); margin: 10px -16px 0; height: 42px; }
  .kpi-topo .kpi-ico { width: 30px; height: 30px; }
  .tiles { grid-template-columns: repeat(2, 1fr); padding: 14px 16px 16px; }
  .card-topo { padding: 16px 16px 0; }
  .card-corpo { padding: 16px; }
  .faixa-item { padding: 14px 16px; }
  .faixa-item strong { font-size: 22px; }
  .form-grade { grid-template-columns: 1fr; }
  .field.meia { grid-column: 1 / -1; }
  .drawer-head { padding: 18px 18px 14px; }
  .drawer-body { padding: 18px; }
  .drawer-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .previa-palco { padding: 14px; }
  .palette { padding: 0; }
  .palette-box { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; }
  .so-desk { display: none !important; }
  .so-cel { display: inline-grid !important; }
  .pop-notif, .pop-conta { width: calc(100vw - 16px); }
  .msg-corpo { padding: 22px 18px 30px; }
  .msg-acoes .btn { flex: 1 1 auto; }
  .pref { flex-direction: column; align-items: flex-start; }
  .rosca-wrap { justify-content: center; }
}

@media (max-width: 640px) {
  .kpi-valor { font-size: 24px; }
  .kpi-delta { font-size: 11.5px; align-items: flex-start; }
  .kpi-topo > span:first-child { font-size: 12.5px; }
}
@media (max-width: 359px) {
  .span-3 { grid-column: span 12; }
}

@media (min-width: 1700px) {
  :root { --largura: 1480px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .topo, .chipbar, .nav-baixo, .savebar, .toasts, .cab-acoes, .ajuda-btn { display: none !important; }
  body { background: #fff; }
  .pagina { padding: 0; max-width: none; }
}

/* =====================================================================
   Tela de entrada (index.html)
   ===================================================================== */
.entrada { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.entrada-arte { position: relative; overflow: hidden; isolation: isolate; background: #0d140b; color: #eef6ea; padding: 40px clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.entrada-arte canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.entrada-arte::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(700px 420px at 85% 10%, rgba(107, 178, 82, .38), transparent 60%), radial-gradient(520px 380px at 10% 100%, rgba(20, 184, 166, .28), transparent 60%); }
.entrada-marca { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.entrada-marca .marca { width: 36px; height: 36px; }
.entrada-marca small { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(238, 246, 234, .6); padding: 3px 7px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; }
.entrada-frase h2 { font-size: clamp(32px, 4.4vw, 58px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; max-width: 13ch; }
.entrada-frase h2 em { font-style: normal; color: #9ad97a; }
.entrada-frase p { margin-top: 18px; color: rgba(238, 246, 234, .72); max-width: 44ch; font-size: 16px; }
.entrada-mods { display: flex; flex-wrap: wrap; gap: 8px; }
.entrada-mods span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: rgba(238, 246, 234, .85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.entrada-mods .i { width: 15px; height: 15px; color: #9ad97a; }
.entrada-form-wrap { position: relative; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg); }
.entrada-tema { position: absolute; top: 16px; right: 16px; }
.entrada-form { width: min(380px, 100%); display: grid; gap: 18px; }
.entrada-form h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.entrada-form > p { color: var(--ink-2); margin-top: -10px; }
.entrada-form .btn { width: 100%; height: 48px; font-size: 15px; }
.entrada-linha { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
.entrada-linha a { color: var(--brand-text); font-weight: 700; }
.entrada-linha a:hover { text-decoration: underline; text-underline-offset: 3px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; }
.prototipo { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-3); color: var(--ink-2); font-size: 12.5px; }
.prototipo .i { color: var(--brand-text); margin-top: 1px; }
.entrada-pe { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--ink-3); }
.entrada-caixa { width: min(380px, 100%); }
.entrada-form.surge { animation: entra .35s cubic-bezier(.2, .8, .2, 1) both; }
.entrada-espera { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 200px; color: var(--ink-3); font-weight: 650; }
.girando { width: 20px; height: 20px; animation: gira .9s linear infinite; }
.aviso-form { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bad-soft); color: var(--bad); font-size: 13.5px; font-weight: 650; line-height: 1.45; }
.aviso-form .i { margin-top: 1px; }
.aviso-form.ok { background: var(--ok-soft); color: var(--ok); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--brand-text); font-weight: 700; font-size: 13.5px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn .i { width: 16px; height: 16px; }
.link-btn.centro { justify-self: center; color: var(--ink-2); }
.entrada-icone { box-sizing: content-box; width: 26px; height: 26px; padding: 13px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-text); margin-bottom: -4px; }
.entrada-icone.ok { background: var(--ok-soft); color: var(--ok); }
.entrada-icone.perigo { background: var(--bad-soft); color: var(--bad); }
.hint.caps { display: flex; align-items: center; gap: 6px; color: var(--warn); font-weight: 650; }
.hint.caps[hidden] { display: none; }
.hint.caps .i { width: 15px; height: 15px; }
.entrada-form .btn-outline { width: 100%; height: 46px; }
.btn.carregando { pointer-events: none; opacity: .85; }
.btn.carregando .i { animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.entrada-form .field.invalido input { border-color: var(--bad); }
.tremer { animation: tremer .4s; }
@keyframes tremer { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

@media (max-width: 900px) {
  .entrada { grid-template-columns: 1fr; }
  .entrada-arte { min-height: 320px; padding: 26px 22px 30px; gap: 26px; }
  .entrada-frase h2 { font-size: clamp(30px, 8vw, 40px); }
  .entrada-form-wrap { padding: 36px 20px 64px; }
}
@media (max-width: 520px) {
  .entrada-arte { min-height: 0; }
  .entrada-mods { display: none; }
  .entrada-frase p { font-size: 14.5px; }
}

/* ---------- Administradores ---------- */
.dt tbody tr.apagada td .td-v { opacity: .55; }
.dt tbody tr.apagada td.col-acoes { opacity: 1; }
.opcoes { display: grid; gap: 8px; }
.opcao { position: relative; display: flex; gap: 12px; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.opcao input { margin: 3px 0 0; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.opcao strong { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.opcao strong .i { width: 16px; height: 16px; color: var(--ink-3); }
.opcao small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.opcao:hover { border-color: var(--ink-3); }
.opcao:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opcao:has(input:checked) strong .i { color: var(--brand-text); }
.atividade { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.atividade h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 750; margin-bottom: 12px; }
.atividade h3 .i { width: 16px; height: 16px; color: var(--ink-3); }
.ativ-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ativ-lista li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.ativ-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); flex: none; }
.ativ-ico .i { width: 15px; height: 15px; }
.ativ-ico.ruim { background: var(--bad-soft); color: var(--bad); }
.ativ-txt { font-size: 13.5px; font-weight: 650; min-width: 0; }
.ativ-txt small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.modal-texto { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.senha-prov { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 8px; padding: 14px 14px 14px 18px; border-radius: 14px; background: var(--surface-3); border: 1px dashed var(--line-2); }
.senha-prov code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .06em; color: var(--ink); }

/* ---------- Ações em ícones nas linhas e cartões ---------- */
.acoes-linha { display: inline-flex; align-items: center; gap: 2px; }
.acoes-linha .icon-btn { color: var(--ink-3); }
.acoes-linha .icon-btn:hover:not([disabled]) { color: var(--ink); background: var(--surface-3); }
.acoes-linha .icon-btn.perigo:hover:not([disabled]) { color: var(--bad); background: var(--bad-soft); }
.acoes-linha .icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.icon-btn[data-dica]::after {
  content: attr(data-dica); position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 5;
  padding: 5px 9px; border-radius: 8px; background: var(--inv-bg); color: var(--inv-fg);
  font-size: 12px; font-weight: 650; line-height: 1.3; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(3px); transition: opacity .12s, transform .12s;
}
.icon-btn[data-dica]:hover::after, .icon-btn[data-dica]:focus-visible::after { opacity: 1; transform: none; transition-delay: .25s; }
@media (hover: none) { .icon-btn[data-dica]::after { display: none; } }
.media-pe .acoes-linha { margin-left: auto; }
.media-pe { gap: 8px; }

/* ---------- Quadrados de números coloridos ---------- */
.cor-verde { --c: #4f9e37; } .cor-azul { --c: #3b82f6; } .cor-ambar { --c: #e08a0b; } .cor-rosa { --c: #e0457b; }
.cor-violeta { --c: #8b5cf6; } .cor-teal { --c: #0f9f94; } .cor-vermelho { --c: #e5484d; }
:root[data-theme="dark"] .cor-verde { --c: #7fcb63; } :root[data-theme="dark"] .cor-azul { --c: #6b9cf5; }
:root[data-theme="dark"] .cor-ambar { --c: #f2b33d; } :root[data-theme="dark"] .cor-rosa { --c: #f27aa5; }
:root[data-theme="dark"] .cor-violeta { --c: #a98bfa; } :root[data-theme="dark"] .cor-teal { --c: #2dd4bf; }
:root[data-theme="dark"] .cor-vermelho { --c: #f2687a; }

.faixa.card { background: transparent; border: 0; border-radius: 0; overflow: visible; gap: 14px; }
.faixa .faixa-item:nth-child(n) {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 18px 20px 16px; border-radius: var(--r-lg);
  background: var(--surface);
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 16%, var(--surface)) 0%, color-mix(in srgb, var(--c) 5%, var(--surface)) 100%);
  border: 1px solid var(--line);
  border: 1px solid color-mix(in srgb, var(--c) 26%, var(--line));
  transition: transform .15s, box-shadow .15s;
}
.faixa .faixa-item:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--c) 55%, transparent); }
.faixa .faixa-item::after {
  content: ""; position: absolute; z-index: -1; right: -34px; top: -34px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 24%, transparent) 0%, transparent 70%);
}
.faixa .faixa-rot { color: var(--ink-2); gap: 10px; }
.faixa .faixa-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--c); color: #fff; box-shadow: 0 6px 14px -6px var(--c); }
.faixa .faixa-ico .i { width: 18px; height: 18px; color: #fff; }
:root[data-theme="dark"] .faixa .faixa-ico .i { color: #0d1012; }
.faixa .faixa-item strong { margin-top: 12px; font-size: 30px; color: var(--ink); color: color-mix(in srgb, var(--c) 62%, var(--ink)); }
:root[data-theme="dark"] .faixa .faixa-item strong { color: color-mix(in srgb, var(--c) 45%, var(--ink)); }
.faixa .faixa-item small { color: var(--ink-2); }
@media (max-width: 640px) { .faixa.card { gap: 10px; } .faixa .faixa-item:nth-child(n) { padding: 14px 14px 12px; } .faixa .faixa-item strong { font-size: 24px; } }
.ativ-pe { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.ativ-pag { min-width: 54px; text-align: center; font-weight: 700; color: var(--ink-2); font-size: 13px; align-self: center; }
.carregando-lista { opacity: .5; pointer-events: none; transition: opacity .15s; }

/* ---------- Mensalidades: assinaturas, cupons e planos ---------- */
.pedidos-card { margin-bottom: 16px; }
.pedidos-card .linhas { padding-top: 10px; }
.linha-item.pedido { flex-wrap: wrap; }
.linha-item.pedido .ativ-txt { flex: 1 1 260px; }
.pedido-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.etiqueta.aviso-mini { height: 20px; margin-top: 4px; font-size: 11.5px; background: var(--warn-soft); color: var(--warn); }
.etiqueta .i { width: 13px; height: 13px; margin-right: 5px; }
.tabela-dica { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 18px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.tabela-dica .i { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--ink-3); }
.td-v s { color: var(--ink-3); }
.mens-conta { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink); background: var(--surface-3); }
.mens-conta .i { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.mens-conta.ok { background: var(--ok-soft); } .mens-conta.ok .i { color: var(--ok); }
.mens-conta.info { background: var(--info-soft); } .mens-conta.info .i { color: var(--info); }
.mens-conta.warn { background: var(--warn-soft); } .mens-conta.warn .i { color: var(--warn); }
.pilha-avisos { display: grid; gap: 10px; margin-bottom: 20px; }
.pilha-avisos .aviso .link-btn { font-size: 13px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sec-titulo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sec-titulo h3 { margin-bottom: 0; }
.ativ-ico.pago { background: var(--ok-soft); color: var(--ok); }
.ativ-lista li .acoes-linha { margin-left: auto; }
.modal-form { margin-top: 18px; }
.check-linha { display: flex; gap: 12px; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; font-size: 14px; }
.check-linha input { margin: 3px 0 0; width: 17px; height: 17px; flex: none; accent-color: var(--bad); }
.check-linha small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.check-linha:has(input:checked) { border-color: var(--bad); background: var(--bad-soft); }
.mens-condicoes { max-height: 55vh; overflow-y: auto; margin-top: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.mens-condicoes p { margin: 0 0 10px; }
.cel-cupom { min-width: 0; }
.cel-cupom small { display: block; margin-top: 4px; }
.cod { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 8px; background: var(--surface-3); color: var(--ink); border: 1px dashed var(--line-2); white-space: nowrap; }
.input-acao { display: flex; gap: 8px; }
.input-acao input { flex: 1; min-width: 0; }
.input-acao .btn { flex: none; height: auto; }
.sub-grade { grid-column: 1 / -1; }
.plano-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 16px; }
.pix-aviso { margin-bottom: 14px; }
.pix-aviso a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* Cobrança: Controle, Relatório financeiro e Avisos por e-mail */
.cob-check { grid-column: 1 / -1; margin: 0; }
/* aqui marcar é coisa boa: sem o vermelho do "bloquear" */
.check-linha.cob-check input { accent-color: var(--brand); }
.check-linha.cob-check:has(input:checked) { border-color: var(--line-2); background: var(--surface-2); }
.cob-contato { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; color: var(--ink-2); }
.cob-contato span { display: inline-flex; align-items: center; gap: 6px; }
.cob-contato .i { width: 15px; height: 15px; color: var(--ink-3); }
.cob-periodo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; margin-bottom: 16px; }
.cob-data { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.cob-data input { min-height: 38px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); }
.cob-grafico { margin-bottom: 16px; }
.cob-grafico-corpo { padding: 12px 20px 18px; }
.cob-sub { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.cob-tela { display: grid; gap: 14px; max-width: 1040px; }
.cob-tela .pix-aviso { margin-bottom: 0; }
.pix-passos.cob-regras { margin: 12px 20px 18px; padding-left: 20px; }
.cob-tela .tabela-card .card-topo { padding-bottom: 14px; }
.cob-form { padding: 16px 20px 20px; }
.cob-cron { padding: 12px 20px 18px; font-size: 14px; }
.cob-cron summary { cursor: pointer; font-weight: 650; color: var(--ink-2); }
.cob-cron .hint { display: block; margin: 10px 0; }
.cob-comando { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.cob-comando code { flex: 1 1 280px; min-width: 0; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; word-break: break-all; }
.cob-modelos .ativ-txt { flex: 1; min-width: 0; }
.cob-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--c); }
.cob-ico .i { width: 17px; height: 17px; }
.cob-pad { padding: 12px 18px; }
.cob-previa { display: block; width: 100%; height: min(56vh, 520px); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cob-teste { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 14px; }
.cob-teste .field { flex: 1 1 220px; min-width: 0; }
.pix-tela { display: grid; gap: 14px; max-width: 920px; }
.pix-tela .form-acoes { flex-wrap: wrap; }
.pix-teste { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.pix-qr { box-sizing: border-box; width: 218px; height: 218px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; }
.pix-passos { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.pix-se-errado { margin-top: 12px; text-align: right; }
@media (max-width: 680px) {
  .pix-teste { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .pix-se-errado { text-align: left; }
}
.plano-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.plano-card.off { opacity: .72; }
.plano-topo { display: flex; align-items: center; gap: 8px; }
.plano-topo .acoes-linha { margin-left: auto; }
.plano-op { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: 3px 9px; border-radius: var(--pill); background: var(--brand-soft); color: var(--brand-text); }
.plano-card h3 { font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.plano-valor { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.plano-valor strong { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.plano-valor small, .plano-dolar, .plano-desc { font-size: 13px; color: var(--ink-3); }
.plano-valor .plano-pre { flex-basis: 100%; font-size: 12px; font-weight: 650; }
.td-v small .i, .cel-2l > .i { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.plano-dolar, .plano-desc { margin: 0; }
.plano-pe { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.plano-pe span { display: inline-flex; align-items: center; gap: 6px; }
.plano-pe .i, .plano-site .i { width: 15px; height: 15px; flex: none; }
.plano-site { display: flex; gap: 8px; margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.lig-card .card-topo { flex-wrap: wrap; }
.lig-lista { list-style: none; margin: 0; padding: 0; }
.lig-linha { display: grid; grid-template-columns: 110px 200px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lig-linha:last-child { border-bottom: 0; }
.lig-idioma { font-size: 13.5px; font-weight: 750; }
.etiqueta.fora { background: var(--warn-soft); color: var(--warn); }
.lig-ajuda { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; line-height: 1.5; }
.lig-ajuda .i { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.lig-ajuda code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--ink); }
.lig-ajuda a { color: var(--brand-text); font-weight: 700; }
@media (max-width: 640px) {
  .lig-linha { grid-template-columns: 1fr; gap: 6px; }
  .pedido-acoes { width: 100%; }
  .pedido-acoes .btn { flex: 1; }
  .plano-valor strong { font-size: 24px; }
  .drawer-foot:has(.quebra) { flex-wrap: wrap; }
  .drawer-foot .btn.quebra { order: 3; width: 100%; justify-content: center; }
}

/* ---------- Texto das Condições de Uso (Planos e valores) ---------- */
.cond-card .card-topo { flex-wrap: wrap; }
.cond-aviso { margin-bottom: 16px; }
.cond-abas { margin-bottom: 14px; }
.cond-abas .sec-ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); display: inline-block; }
.cond-sit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 16px; }
.cond-sit .pilula { margin-right: 6px; }
.cond-form { gap: 16px; }
.rico .rte-barra { gap: 1px; }
.rico .rte-barra button[disabled] { opacity: .4; cursor: not-allowed; }
.rico .rte-barra button[aria-pressed="true"] { background: var(--inv-bg); color: var(--inv-fg); }
.rte-barra .rte-txt { width: auto; padding: 0 9px; gap: 6px; display: inline-flex; font-size: 12.5px; font-weight: 750; }
.rte-barra .espelho .i { transform: scaleX(-1); }
.rte-barra .espaco { flex: 1; }
.rte-barra .cor-btn span { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); display: block; }
.rte-barra .cor-btn.sem span { background: var(--surface); position: relative; overflow: hidden; }
.rte-barra .cor-btn.sem span::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; background: var(--bad); transform: rotate(-45deg); }
.rico-area { min-height: 320px; max-height: 560px; font-size: 14.5px; }
.rico .rico-html { display: block; width: 100%; min-height: 320px; max-height: 560px; border: 0; outline: none; resize: vertical; padding: 14px 16px; background: var(--surface-2); color: var(--ink); font: 12.5px/1.6 ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.tok { display: inline-block; padding: 0 7px; margin: 0 1px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent); font-weight: 750; white-space: nowrap; cursor: default; }
.cond-pe { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.cond-pe .hint { display: flex; gap: 8px; align-items: flex-start; flex: 1 1 380px; margin: 0; line-height: 1.55; }
.cond-pe .hint > .i { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.cond-acoes { display: flex; gap: 8px; }
.pop-valores { min-width: 280px; }
.wysiwyg-color-red { color: #e51b06; } .wysiwyg-color-yellow { color: #c99a00; } .wysiwyg-color-orange { color: #e2940c; }
.wysiwyg-color-green { color: #2f7d24; } .wysiwyg-color-blue { color: #1d3fd8; }
:root[data-theme="dark"] .wysiwyg-color-red { color: #ff6b5a; } :root[data-theme="dark"] .wysiwyg-color-yellow { color: #ffd84d; }
:root[data-theme="dark"] .wysiwyg-color-orange { color: #ffb347; } :root[data-theme="dark"] .wysiwyg-color-green { color: #6fd36b; }
:root[data-theme="dark"] .wysiwyg-color-blue { color: #8fa8ff; }
@media (max-width: 640px) {
  .cond-acoes { width: 100%; }
  .cond-acoes .btn { flex: 1; }
  .rte-barra .rte-txt .i + span { display: none; }
}
.rico.baixo .rico-area, .rico.baixo .rico-html { min-height: 140px; max-height: 320px; }

/* ---------- Fale Conosco (caixa real) ---------- */
.fale-filtros { width: 100%; }
.msg-resp { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 5px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); vertical-align: -3px; }
.msg-resp .i { width: 11px; height: 11px; }
.msg-tags { display: flex; gap: 4px; margin-top: 4px; }
.msg-tags .etiqueta { height: 20px; font-size: 11px; }
.msg-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -10px 0 20px; }
.msg-corpo .pilha-avisos { margin-bottom: 18px; }
.fale-resp { margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.fale-resp h3, .msg-corpo .atividade h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 750; margin-bottom: 12px; }
.fale-resp h3 .i { width: 16px; height: 16px; color: var(--ink-3); }
.fale-txt, .fale-nota { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14.5px; line-height: 1.6; resize: vertical; }
.fale-txt:focus, .fale-nota:focus { outline: none; border-color: var(--brand); box-shadow: var(--foco); }
.fale-resp-pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.fale-resp-pe .hint { flex: 1 1 240px; margin: 0; }
.fale-outros { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.fale-outros .hint { margin: 0 4px 0 0; }
.resp-texto { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: pre-line; }
@media (max-width: 640px) { .fale-resp-pe .btn { width: 100%; } }
.caixa-ferr .fale-filtros { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 14px; overflow: visible; }
.caixa-ferr .fale-filtros button { justify-content: center; border-radius: 10px; }

/* ---------- Relatório por período ---------- */
.periodo-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 16px; margin-bottom: 16px; }
.periodo-datas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.periodo-datas label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.periodo-datas input { height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; }
.periodo-datas input:focus { outline: none; border-color: var(--brand); box-shadow: var(--foco); }
.periodo-resumo { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--ink-3); }
.periodo-resumo b { color: var(--ink-2); }
.vazio.mini { padding: 34px 16px; }
.vazio.mini > .i { width: 32px; height: 32px; }
.vazio a { color: var(--brand-text); font-weight: 700; }
.t-ok { color: var(--ok); }
.rel-lista { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; }
.rel-lista li { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-2); }
.rel-mov { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.rel-mov span { display: inline-flex; align-items: center; gap: 6px; }
.rel-mov .i { width: 14px; height: 14px; color: var(--ink-3); }
.rel-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.rel-nums > div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.rel-nums b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.rel-nums span { font-size: 12.5px; color: var(--ink-3); }
.rel-bento .tabela-card { padding: 0; }
@media (max-width: 640px) { .periodo-datas { width: 100%; } .periodo-datas label { flex: 1; } .periodo-datas input { flex: 1; min-width: 0; } }
@media print {
  .periodo-barra .seg, .rel-bento .barra-ferr { display: none !important; }
  .periodo-datas input { border: 0; padding: 0; }
  .tabela-rolagem { overflow: visible !important; }
  .rel-bento > section { break-inside: avoid; }
}
.rel-bento .legenda { grid-template-columns: minmax(0, 1fr); }

/* ---------- Cadastros de clientes ---------- */
.cad-sec { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; margin: 10px 0 -2px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 750; }
.cad-form > .cad-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cad-sec .i { width: 16px; height: 16px; color: var(--ink-3); }
.cad-sec small { flex-basis: 100%; font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.tel-linha { display: flex; gap: 8px; }
.tel-linha input[name^="ddd"] { width: 78px !important; flex: none !important; }
.tel-linha input:last-child { flex: 1; min-width: 0; }
.cad-login { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cad-login code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 14px; font-weight: 700; padding: 7px 11px; border-radius: 10px; background: var(--surface-3); border: 1px dashed var(--line-2); }
.cad-extras { display: grid; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.cad-cartao { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.cad-cartao > .i { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.cad-cartao > div { flex: 1; min-width: 0; }
.cad-cartao strong { display: block; font-size: 14px; }
.cad-cartao small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }
[data-so-leitura] .multi label { cursor: default; }
@media (max-width: 640px) { .cad-cartao { flex-wrap: wrap; } .cad-cartao .btn { width: 100%; justify-content: center; } }
.aba-vazia { margin-left: 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: var(--pill); background: var(--warn-soft); color: var(--warn); }

/* ---- Patrocinadores ---- */
.pat-card .pat-grade { padding: 16px; }
.pat-thumb { aspect-ratio: 4 / 3; background-color: #fff; background-size: contain; background-repeat: no-repeat; background-position: center; border-bottom: 1px solid var(--line); }
.thumb .ord[class*="cor-"] { background: var(--c); color: #fff; box-shadow: 0 6px 12px -6px var(--c); }
:root[data-theme="dark"] .thumb .ord[class*="cor-"] { color: #0d1012; }
.pat-sem { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 0 18px; text-align: center; color: #5f6368; font-size: 13px; font-weight: 650; }
.pat-sem .i { width: 30px; height: 30px; stroke-width: 1.5; }
.pat-sem.aviso { color: #b45309; }
.pat-estrela { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #e08a0b; color: #fff; box-shadow: 0 6px 12px -6px #e08a0b; }
.pat-estrela .i { width: 16px; height: 16px; fill: currentColor; }
.media-corpo .pat-link { display: flex; align-items: center; gap: 5px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.pat-link .i { width: 13px; height: 13px; flex: none; }
@media (max-width: 640px) { .pat-card .pat-grade { padding: 12px; } }
.media-card.destaque [data-acao-item="destaque"] { color: #e08a0b; }
.media-card.destaque [data-acao-item="destaque"] .i { fill: currentColor; }

/* ---- Páginas de estrutura (Sistemas) ---- */
.est-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.est-form > .est-bloco, .est-form > .est-mais, .est-form > .hint { grid-column: 1 / -1; }
.est-bloco { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.est-bloco-topo { display: flex; align-items: center; gap: 10px; }
.est-bloco-topo h3 { font-size: 14.5px; font-weight: 750; }
.est-n { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 6px 12px -6px var(--c); }
:root[data-theme="dark"] .est-n { color: #0d1012; }
.est-img { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 16px; align-items: start; }
.est-lado { display: grid; gap: 16px; align-content: start; }
.est-lado .hint { margin-top: 6px; }
.est-copiar { margin-top: 8px; }
.est-aviso { display: flex; gap: 6px; align-items: flex-start; color: var(--warn); margin-top: 6px; }
.est-aviso .i { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.est-mais { justify-self: start; }
@media (max-width: 760px) { .est-form { grid-template-columns: 1fr; } .est-img { grid-template-columns: 1fr; } }
.sys-idiomas { display: inline-flex; gap: 5px; }
.idi-chip { display: inline-grid; place-items: center; height: 22px; min-width: 30px; padding: 0 7px; border-radius: var(--pill); font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.idi-chip.ok { background: var(--ok-soft); color: var(--ok); }
.idi-chip.off { background: var(--surface-3); color: var(--ink-3); text-decoration: line-through; }
.est-img > .field { grid-column: auto; }

/* ---- Módulos com abas ---- */
.abas-mod { margin-bottom: 16px; }
.abas-mod button { gap: 7px; }
@media (max-width: 640px) {
  .abas-mod { display: flex; width: 100%; }
  .abas-mod button { flex: 1; padding: 0 4px; }
  .abas-mod button .i { display: none; }
}

/* ---- Textos curtos da página inicial: grupos, contador e aviso das linhas do painel antigo ---- */
.rico.curto .rico-area, .rico.curto .rico-html { min-height: 76px; max-height: 220px; }
.rico.curto .rte-barra { padding: 4px 6px; }
.rico.curto .rte-barra button { width: 30px; height: 30px; }
.rico.curto .rte-barra .rte-txt { width: auto; padding: 0 8px; }
.rico.curto .rte-sep { margin: 0 2px; }
.txt-grupos { display: grid; gap: 14px; }
.txt-grupo { margin: 0; min-width: 0; padding: 4px 16px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.txt-grupo > legend { display: flex; align-items: center; gap: 8px; padding: 0 8px; font-size: 14px; font-weight: 750; color: var(--ink); }
.txt-grupo > legend small { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.txt-grupo > legend small::before { content: "· "; }
.txt-grupo-corpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.txt-grupo-corpo .field { grid-column: auto; min-width: 0; }
.txt-bolinha { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--ink-3); box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 3px var(--line-2); }
.txt-bolinha.ouro { background: #f4b82a; }
.txt-bolinha.verde { background: #69b24f; }
.txt-bolinha.escuro { background: #38402b; }
.txt-bolinha.laranja { background: #f75f0b; }
.txt-cont { display: flex; justify-content: flex-end; margin-top: 6px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.txt-cont .passou { color: var(--bad); font-weight: 800; }
.txt-legado { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; font-weight: 650; }
.txt-legado .i { width: 15px; height: 15px; flex: none; }
.txt-legado > span { flex: 1 1 200px; }
.txt-legado.feito { background: var(--ok-soft); color: var(--ok); }
.txt-passou { margin-top: 14px; }
.txt-passou[hidden] { display: none; }
@media (max-width: 760px) {
  .txt-grupo-corpo { grid-template-columns: 1fr; }
}

/* ---- Listas do site (links, vídeos, vídeos institucionais, dicas) ---- */
.faixa[hidden] { display: none; }
.cel-capa { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lst-capa { position: relative; overflow: hidden; flex: none; width: 60px; height: 45px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.lst-capa .i { width: 18px; height: 18px; }
.lst-capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dt tr.fora .cel-2l strong { color: var(--ink-3); }
.lst-painel { display: grid; gap: 18px; }
.lst-painel[hidden] { display: none; }
.lst-rot { display: flex; align-items: center; gap: 8px; }
.lst-copiar { margin-left: auto; height: 26px; padding: 0 9px; font-size: 12px; }
.lst-arquivo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.lst-arquivo .nome { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.lst-arquivo > .i { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.lst-painel .txt-legado { margin: 0 0 8px; }
.drawer .cond-abas { margin-bottom: 2px; }

/* ---- Fique por dentro (notícias) e Condições ---- */
.nt-capa { width: 76px; height: 56px; }
.nt-home { background: var(--brand-soft); color: var(--brand-text); margin: 6px 0 0 0; }
.nt-home .i { width: 13px; height: 13px; margin-right: 5px; }
.nt-topo { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.nt-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nt-comum { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; align-items: end; margin-bottom: 14px; }
.nt-comum .field { grid-column: auto; }
.nt-falta { margin-bottom: 14px; }
.nt-falta[hidden] { display: none; }
.nt-cartao { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 16px; align-items: start; }
.nt-cartao .field { grid-column: auto; }
.nt-textos { display: grid; gap: 14px; }
.est-form .txt-grupo { padding-bottom: 14px; }
.est-form .txt-grupo > .est-bloco { margin-top: 12px; }
.cnd-dica { display: flex; gap: 8px; align-items: flex-start; margin: 0; flex: 1 1 360px; line-height: 1.5; }
.cnd-dica > .i { width: 16px; height: 16px; flex: none; margin-top: 2px; }
@media (max-width: 760px) {
  .nt-comum, .nt-cartao { grid-template-columns: 1fr; }
}
.est-form > .txt-grupo, .est-form > .hint { grid-column: 1 / -1; }
