/* Área de Membros do The Experts Society™ (protótipo)
   Marca do TES (preto e dourado, Marcellus + Manrope) no estilo "preto chapado" de tela de trabalho:
   o fundo, a barra e as páginas no mesmo preto quente; o cartão é um degrau de luz acima, sem borda e sem sombra;
   o dourado fica só nos dados (as barras do faturamento, a meta, o marcador dos encontros); o botão principal é marfim.

   Coluna: até 1240px centrada, margem de 24px (16px no celular).
   Linha de cartões 2 + 1: (largura − 16) × 2/3 e (largura − 16) × 1/3, um só espaço de 16px entre todos os blocos. */

:root {
  --ground: #080705;   /* o preto do site do TES */
  --surface: #14110c;  /* cartão: um degrau de luz */
  --raised: #201b14;   /* dentro do cartão */
  --active: #2b251c;
  --rule: #2a241b;     /* linhas de lista e de tabela */
  --control: #5a4f3e;  /* borda de campo e de botão secundário */
  --text: #f4ecda;
  --muted: #c4b79c;
  --faint: #a89b80;
  --gold: #d8a657;     /* a cor dos dados */
  --primary: #f4ecda;  /* botão principal: marfim com letra preta */
  --on-primary: #0b0906;
  --grid: #29231a;
  --pos-bg: #15241a;  --pos-ink: #96d4a9;
  --neg: #f19393;     --neg-bg: #2d1919;   --neg-ink: #f4a5a5;
  --warn-bg: #241c0f; --warn-edge: #5c4622; --warn-ink: #edc983;

  --f-d: 'Marcellus', 'Times New Roman', serif;
  --f-b: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gap: 16px;
  --pad: 20px;
  --r: 8px;
  --r-c: 6px;
  --side: 24px;
  --col: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font: 400 15px/1.5 var(--f-b);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  -webkit-font-smoothing: antialiased;
}
.num { font-variant-numeric: tabular-nums; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
h1[tabindex="-1"]:focus { outline: none; }  /* o título recebe o foco ao trocar de tela (leitor de tela), sem moldura */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.col { width: 100%; max-width: calc(var(--col) + var(--side) * 2); margin: 0 auto; padding: 0 var(--side); }

/* ---------- faixa do protótipo (não faz parte do produto) ---------- */
.proto { background: #1b170f; color: var(--muted); font-size: 13px; }
.proto .col { display: flex; align-items: center; gap: 12px 20px; min-height: 44px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.proto-txt { margin-right: auto; }
.proto-txt strong { color: var(--text); font-weight: 600; }
.seg { display: inline-flex; background: var(--ground); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 0 14px; height: 30px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--text); }
.proto .txt-btn { font-size: 13px; }

/* ---------- barra do produto ---------- */
.topo { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--rule); }
.topo .col { display: flex; align-items: center; gap: 28px; height: 60px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.marca img { width: 30px; height: auto; }
.marca span { font-family: var(--f-d); font-size: 17px; letter-spacing: 0.01em; white-space: nowrap; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 0; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.conta { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.conta b { color: var(--text); font-weight: 600; }
.ini { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #3a2f1d; color: #f2dcae; font-size: 12px; font-weight: 700; flex: none; }

/* ---------- título ---------- */
.titulo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 36px 0 22px; }
.titulo h1 { font-family: var(--f-d); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 0; letter-spacing: -0.005em; }
.titulo .sub { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.trilha { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.trilha a { text-decoration: none; color: var(--muted); }
.trilha a:hover { color: var(--text); text-decoration: underline; }
.acoes { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.carimbo { font-size: 13px; color: var(--faint); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s ease, background-color .12s ease; }
.btn:hover { background: #fffaf0; }
.btn:active { transform: scale(.98); }
.btn.sec { background: transparent; color: var(--text); border: 1px solid var(--control); }
.btn.sec:hover { background: var(--raised); }
.btn[disabled] { opacity: 1; background: var(--raised); color: var(--faint); cursor: not-allowed; }
.txt-btn { background: none; border: 0; padding: 0; color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.txt-btn:hover { color: #fff; }

/* ---------- aviso ---------- */
.aviso { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; background: var(--warn-bg); border: 1px solid var(--warn-edge); color: var(--warn-ink); border-radius: var(--r); padding: 12px 16px; margin-bottom: var(--gap); font-size: 14px; }
.aviso strong { font-weight: 700; }
.aviso.ok { background: var(--pos-bg); border-color: var(--pos-bg); color: var(--pos-ink); }

/* ---------- grade de cartões ---------- */
.lin { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); margin-bottom: var(--gap); align-items: stretch; }
.lin.meio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lin.um { grid-template-columns: minmax(0, 1fr); }
.card { background: var(--surface); border-radius: var(--r); padding: var(--pad); min-width: 0; display: flex; flex-direction: column; }
.ch { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ch h2 { font-size: 16px; font-weight: 600; margin: 0; }
.ch .meta { font-size: 13px; color: var(--faint); }
.pe { margin-top: auto; padding-top: 14px; }

/* a resposta da tela: o número maior */
.resp { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 4px; }
.resp-n { font-family: var(--f-d); font-size: 40px; line-height: 1.05; letter-spacing: -0.01em; }
.resp-txt { color: var(--muted); font-size: 14px; max-width: 46ch; }
.resp-txt b { color: var(--text); font-weight: 600; }

/* legenda do gráfico */
.leg { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 12px 0 2px; }
.leg span { display: inline-flex; align-items: center; gap: 6px; }
.sw-bar { width: 10px; height: 10px; background: var(--gold); }
.sw-ref { width: 16px; height: 0; border-top: 1px dashed var(--muted); }
.sw-pend { width: 10px; height: 10px; outline: 1px dashed var(--muted); outline-offset: -1px; }
.sw-enc { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.grafico { position: relative; margin-top: 4px; }
/* o gráfico principal ocupa a altura que sobra no cartão (a linha de cartões tem a altura do maior) */
.grafico.enche { flex: 1 1 auto; min-height: 236px; }
.grafico.enche > svg { position: absolute; left: 0; top: 0; }
.dica { position: absolute; pointer-events: none; z-index: 5; padding: 6px 9px; font-size: 12px; line-height: 1.4; border-radius: 6px; white-space: nowrap; background: #2b251c; color: var(--text); opacity: 0; transition: opacity .12s ease; }
.dica b { font-weight: 700; }

/* lista de números (o ano em números) */
.card { container-type: inline-size; }
.nums { list-style: none; margin: 0; padding: 0; }
.nums.duas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
.nums.duas li:nth-child(2) { border-top: 0; padding-top: 2px; }
.nums.duas li.larga { grid-column: 1 / -1; }
@container (max-width: 250px) {
  .nums.duas { grid-template-columns: minmax(0, 1fr); }
  .nums.duas li:nth-child(2) { border-top: 1px solid var(--rule); padding-top: 12px; }
}
.nums li { padding: 12px 0; border-top: 1px solid var(--rule); }
.nums li:first-child { border-top: 0; padding-top: 2px; }
.nums .rot { font-size: 13px; color: var(--muted); }
.nums .val { font-size: 22px; font-weight: 600; line-height: 1.3; }
.nums .val small { font-size: 14px; color: var(--muted); font-weight: 500; }
.nums .obs { font-size: 13px; color: var(--faint); }
.nums .obs b { color: var(--muted); font-weight: 600; }
.trilho { height: 6px; background: var(--raised); border-radius: 999px; margin: 8px 0 4px; overflow: hidden; }
.trilho i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.pontas { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }
.frase { border-left: 2px solid var(--gold); padding: 2px 0 2px 12px; margin-top: 4px; }
.frase p { margin: 2px 0 0; font-size: 15px; line-height: 1.55; }

/* compromissos */
.comps { list-style: none; margin: 0; padding: 0; }
.comps li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--rule); }
.comps li:first-child { border-top: 0; padding-top: 0; }
.comps .t { font-size: 15px; line-height: 1.4; }
.comps .s { font-size: 13px; color: var(--faint); margin-top: 2px; }
.comps li.feito .t { color: var(--muted); }
.chk { width: 24px; height: 24px; border-radius: 5px; border: 1.5px solid var(--control); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; padding: 0; margin-top: 0; position: relative; }
.chk::before { content: ''; position: absolute; inset: -10px; }
.chk:hover { border-color: var(--muted); }
.chk svg { width: 14px; height: 14px; opacity: 0; }
.chk svg path { stroke: currentColor; }
.chk[aria-pressed="true"] { border-color: var(--muted); }
.chk[aria-pressed="true"] svg { opacity: 1; }
.chk[disabled] { cursor: default; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; flex: none; background: var(--raised); color: var(--muted); }
.pill.pos { background: var(--pos-bg); color: var(--pos-ink); }
.pill.neg { background: var(--neg-bg); color: var(--neg-ink); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }

/* próximo encontro */
.prox-lugar { font-family: var(--f-d); font-size: 26px; line-height: 1.15; margin: 2px 0 2px; }
.prox-data { font-size: 15px; color: var(--muted); }
.prox-falta { font-size: 22px; font-weight: 600; margin-top: 16px; }
.prox-falta small { font-size: 14px; color: var(--muted); font-weight: 500; }
.antes { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.antes ul { margin: 6px 0 0; padding-left: 18px; color: var(--text); }
.antes li { margin: 3px 0; }

/* recado */
.recado { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.recado .ini { width: 40px; height: 40px; font-size: 13px; }
.recado p { margin: 0; font-size: 15px; line-height: 1.65; }
.recado .de { font-size: 13px; color: var(--faint); margin-bottom: 6px; }
.recado .de b { color: var(--muted); font-weight: 600; }
.anteriores { margin-top: 16px; }
.anteriores summary { cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 600; }
.anteriores summary:hover { color: var(--text); }
.anteriores .recado { margin-top: 14px; }

/* a turma (para o membro) */
.turma-n { font-size: 26px; font-weight: 600; line-height: 1.25; }
.turma-t { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

/* encontros */
.encs { list-style: none; margin: 0; padding: 0; }
.enc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px 32px; padding: 24px 0; border-top: 1px solid var(--rule); }
.enc:first-child { border-top: 0; padding-top: 4px; }
.enc-quando { font-size: 14px; color: var(--muted); }
.enc-lugar { font-family: var(--f-d); font-size: 22px; line-height: 1.2; margin: 2px 0 6px; }
.enc-info { font-size: 13px; color: var(--faint); }
.enc-links { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.enc.futuro .enc-lugar { color: var(--text); }
.vazio { font-size: 14px; color: var(--faint); padding: 10px 14px; border-radius: var(--r-c); outline: 1px dashed var(--control); outline-offset: -1px; }

/* ponto de partida */
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.kv li:first-child { border-top: 0; padding-top: 2px; }
.kv .k { color: var(--muted); font-size: 14px; }
.kv .v { font-size: 18px; font-weight: 600; text-align: right; }
.kv .v small { display: block; font-size: 13px; color: var(--faint); font-weight: 500; }
.faixa4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.faixa4 > div { padding: 2px 20px; border-left: 1px solid var(--rule); }
.faixa4 > div:first-child { border-left: 0; padding-left: 0; }
.faixa4 .rot { font-size: 13px; color: var(--muted); }
.faixa4 .val { font-size: 24px; font-weight: 600; line-height: 1.3; margin-top: 2px; }
.faixa4 .val small { font-size: 14px; color: var(--muted); font-weight: 500; }
.faixa4 .obs { font-size: 13px; color: var(--faint); }
.mesa { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.mesa li { padding: 12px 0; border-top: 1px solid var(--rule); }
.mesa li:nth-child(-n+3) { border-top: 0; padding-top: 2px; }
.mesa .t { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.mesa .s { font-size: 13px; color: var(--faint); }
.nota-lateral { font-size: 14px; color: var(--muted); line-height: 1.6; }
.nota-lateral p { margin: 0 0 12px; }

/* formulário de lançamento */
.form { display: grid; gap: 18px; }
.campo label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.campo label span { color: var(--faint); font-weight: 500; }
.entrada { display: flex; align-items: center; background: var(--ground); border-radius: var(--r-c); border: 1px solid var(--control); height: 48px; padding: 0 14px; gap: 8px; }
.entrada:focus-within { outline: 2px solid var(--text); outline-offset: -1px; }
.entrada b { color: var(--muted); font-weight: 600; }
.entrada input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 600 18px var(--f-b); font-variant-numeric: tabular-nums; outline: none; height: 100%; }
textarea { width: 100%; background: var(--ground); color: var(--text); border: 1px solid var(--control); border-radius: var(--r-c); padding: 12px 14px; font: 400 16px/1.5 var(--f-b); resize: vertical; min-height: 96px; } /* 16px: o iPhone não dá zoom ao tocar no campo */
a, button, .chk { touch-action: manipulation; }
textarea:focus { outline: 2px solid var(--text); outline-offset: -1px; }
.ajuda { font-size: 13px; color: var(--faint); margin-top: 6px; }
.ajuda.alerta { color: var(--warn-ink); }
.ajuda b { color: var(--muted); font-weight: 600; }
.form-pe { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.previa-n { font-family: var(--f-d); font-size: 34px; line-height: 1.1; }
.previa-t { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

/* suporte: cartões de contagem que filtram */
.contas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: var(--gap); }
.conta-f { text-align: left; background: var(--surface); border: 0; border-radius: var(--r); padding: 11px 13px; cursor: pointer; border: 1.5px solid transparent; min-height: 64px; color: var(--text); }
.conta-f:hover { background: var(--raised); }
.conta-f .l { display: block; font-size: 13px; color: var(--muted); }
.conta-f .n { display: block; font-size: 18px; font-weight: 600; margin-top: 2px; }
.conta-f[aria-pressed="true"] { border-color: var(--gold); background: #1d170d; }

/* tabela de membros */
.tab { width: 100%; border-collapse: collapse; }
.tab th { font-size: 12px; font-weight: 500; color: var(--faint); text-align: left; padding: 0 10px 10px; white-space: nowrap; }
.tab th.n, .tab td.n { text-align: right; }
.tab td { padding: 12px 10px; border-top: 1px solid var(--rule); font-size: 14px; vertical-align: middle; }
.tab th:first-child, .tab td:first-child { padding-left: 0; }
.tab th:last-child, .tab td:last-child { padding-right: 0; }
.tab tbody tr { cursor: pointer; }
.tab tbody tr:hover td { background: var(--raised); }
.tab .nome a { font-size: 15px; font-weight: 600; text-decoration: none; }
.tab .nome a:hover { text-decoration: underline; }
.tab .sub2 { font-size: 13px; color: var(--faint); }
.tab .neg { color: var(--neg); }
.tab .cinza { color: var(--faint); }

/* turma (Amadeu) */
.faixas { list-style: none; margin: 0; padding: 0; }
.faixas li { padding: 9px 0; }
.faixas .lin1 { display: flex; justify-content: space-between; font-size: 14px; }
.faixas .lin1 b { font-weight: 600; }
.faixas .barra { height: 8px; border-radius: 999px; background: var(--raised); margin-top: 6px; overflow: hidden; }
.faixas .barra i { display: block; height: 100%; background: var(--muted); border-radius: 999px; }
.faixas .barra i.ouro { background: var(--gold); }

/* abas de baixo (celular, visão do membro) */
.abas { display: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 50; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.rodape { padding: 32px 0 48px; color: var(--faint); font-size: 13px; }

/* ---------- telas largas (ultrawide) ---------- */
@media (min-width: 1800px) {
  :root { --col: 1400px; }
}
@media (min-width: 2200px) {   /* tela ultrawide (2560 x 1080) */
  :root { --col: 1560px; }
}

/* ---------- tablet ---------- */
@media (max-width: 1020px) {
  .nav { gap: 16px; }
  .conta .quem { display: none; }
}

/* ---------- celular ---------- */
@media (max-width: 860px) {
  .lin, .lin.meio { grid-template-columns: minmax(0, 1fr); }
  .enc { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mesa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mesa li:nth-child(3) { border-top: 1px solid var(--rule); padding-top: 12px; }
}
@media (max-width: 560px) {
  .faixa4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .faixa4 > div { padding: 0 0 0 14px; }
  .faixa4 > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .faixa4 .val { font-size: 20px; }
  .mesa { grid-template-columns: minmax(0, 1fr); }
  .mesa li:nth-child(2) { border-top: 1px solid var(--rule); padding-top: 12px; }
}
@media (max-width: 720px) {
  :root { --side: 16px; --pad: 16px; }
  body { font-size: 15px; }
  .topo .col { height: 56px; gap: 12px; }
  .marca span { font-size: 16px; }
  .nav.membro { display: none; }
  .titulo { padding: 24px 0 16px; }
  .titulo h1 { font-size: 26px; }
  .titulo .acoes { width: 100%; }
  .titulo .acoes .btn { flex: 1; height: 46px; }
  .resp-n { font-size: 36px; }
  .grafico.enche { min-height: 200px; }
  .proto .col { gap: 8px 12px; }
  .proto-txt .longo { display: none; }
  .seg button { padding: 0 11px; height: 36px; }
  /* alvos de toque de pelo menos 44px sem mudar o desenho */
  .btn { height: 46px; }
  .txt-btn { padding: 12px 0; margin: -12px 0; }
  /* texto na largura toda: a etiqueta do compromisso desce, o círculo do recado fica na linha do nome */
  .comps li { grid-template-columns: 28px minmax(0, 1fr); }
  .comps li .pill { grid-column: 2; justify-self: start; margin-top: 4px; }
  .recado { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; }
  .recado > div { display: contents; }
  .recado .ini { width: 32px; height: 32px; font-size: 12px; }
  .recado .de { margin: 0; }
  .recado p { grid-column: 1 / -1; }
  .contas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* tabela vira lista de duas linhas */
  .tab thead { display: none; }
  .tab, .tab tbody, .tab tr, .tab td { display: block; }
  .tab tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
  .tab tbody tr:first-child { border-top: 0; }
  .tab td { border: 0; padding: 0 !important; }
  .tab td.nome { grid-column: 1; }
  .tab td.cresc { grid-column: 2; grid-row: 1; text-align: right; font-weight: 600; }
  .tab td.m-esconde, .tab .m-esconde-txt { display: none; }
  .tab td.linha2 { grid-column: 1 / -1; font-size: 13px; color: var(--faint); }
  .tab tbody tr:hover td { background: none; }
  body.com-abas { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .abas.on { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ground); border-top: 1px solid var(--rule); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .abas a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; padding: 6px 0; min-height: 52px; justify-content: center; }
  .abas a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .abas a[aria-current="page"] { color: var(--text); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (min-width: 721px) {
  .tab td.linha2 { display: none; }
}

/* ======================================================================
   15/11 (pedido do Roger): suporte no lugar de Conselheiro, resultado do mês,
   conta ao vivo no lançamento, Início mais curto no celular, encontros na ordem
   certa, "Fale primeiro com estes", a mesa como clube de negócios e a prova para
   a venda da próxima turma.
   ====================================================================== */
.pill.ouro { background: #2e2412; color: #f0cf8e; }
.ch h2 .pill { vertical-align: 2px; margin-left: 6px; height: 20px; font-size: 11px; }
.enc .pill.ouro { margin-bottom: 8px; }
.btn.mini { height: 36px; padding: 0 14px; font-size: 13px; }
@container (max-width: 380px) { .nums .val { font-size: 20px; } }

/* Início: o aviso do mês traz o botão de lançar */
.aviso.com-btn { padding: 10px 10px 10px 16px; }
.aviso.com-btn .btn { flex: none; }

/* lançar: a conta ao vivo logo abaixo do faturamento (no computador o cartão "Como fica" está ao lado) */
.vivo { font-size: 14px; color: var(--muted); margin-top: 6px; }
.vivo:empty { display: none; }
.vivo b { color: var(--gold); font-weight: 700; }
.chk-l { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.45; }
.chk-l input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--gold); }

/* resultado do mês, depois de lançar */
.res-eb { font-size: 13px; color: var(--faint); }
.res-n { font-family: var(--f-d); font-size: 44px; line-height: 1.1; margin: 4px 0 4px; }
.res-t { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.res-t b { color: var(--gold); font-weight: 600; }

/* encontros: o que já foi cumprido fica numa linha */
.enc-ok { margin: 0; font-size: 14px; color: var(--muted); }
.enc-ok + .comps { margin-top: 14px; }

/* a mesa como clube de negócios */
.sub-h { font-size: 13px; font-weight: 600; color: var(--muted); margin: 2px 0 6px; }
.sub-h ~ .sub-h { margin-top: 22px; }
.pares, .prio-l, .frases, .depos, .socios { list-style: none; margin: 0; padding: 0; }
.pares li, .prio-l li { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.pares li:first-child, .prio-l li:first-child { border-top: 0; padding-top: 4px; }
.pares .t, .prio-l .t { font-weight: 600; font-size: 15px; }
.pares .t .s, .prio-l .s { font-weight: 400; color: var(--faint); font-size: 13px; }
.pares .s2 { font-size: 14px; color: var(--muted); margin-top: 2px; }
.pares .s2 b { color: var(--text); font-weight: 600; }
.pares .btn, .prio-l .btn { flex: none; }
.card > .rot { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.card > .tags + .rot { margin-top: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: 999px; background: var(--raised); font-size: 13px; line-height: 1.35; }
.tag.bate { box-shadow: inset 0 0 0 1px var(--gold); color: #f0cf8e; }
.socios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.socio { display: flex; flex-direction: column; padding: 16px 0; border-top: 1px solid var(--rule); }
.socio:nth-child(-n+2) { border-top: 0; padding-top: 2px; }
.socio-top { display: flex; align-items: center; gap: 12px; }
.socio-top > div { flex: 1; min-width: 0; }
.socio-top .btn { flex: none; }
.socio-top .t { font-weight: 600; font-size: 15px; }
.socio-top .s { font-size: 13px; color: var(--faint); }
.socio .rot { font-size: 12px; color: var(--faint); margin: 12px 0 6px; }

/* suporte: fale primeiro com estes */
.prio-l .t { text-decoration: none; }
.prio-l .t:hover { text-decoration: underline; }
.motivos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* Amadeu: prova para a venda da próxima turma */
.frases li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.frases li:first-child { border-top: 0; padding-top: 2px; }
.frases p, .depos p { margin: 0; font-size: 15px; line-height: 1.55; }
.frases .txt-btn { flex: none; font-size: 13px; }
.depos li { padding: 12px 0; border-top: 1px solid var(--rule); }
.depos li:first-child { border-top: 0; padding-top: 2px; }
.depos .carimbo { margin-top: 4px; }

@media (min-width: 861px) {
  .vivo { display: none; }
}
@media (max-width: 860px) {
  /* Início no celular: uma coluna, na ordem do mais importante; o recado novo sobe para logo depois do crescimento */
  .blocos { display: flex; flex-direction: column; gap: var(--gap); margin-bottom: var(--gap); }
  .blocos > .lin { display: contents; }
  .o-cresc { order: 1; } .o-ano { order: 3; } .o-comp { order: 4; } .o-prox { order: 5; } .o-rec { order: 6; } .o-turma { order: 7; }
  .blocos.rec-novo .o-rec { order: 2; }
  .socios { grid-template-columns: minmax(0, 1fr); }
  .socio:nth-child(2) { border-top: 1px solid var(--rule); padding-top: 16px; }
}
@media (max-width: 720px) {
  .aviso.com-btn { padding: 12px 12px 12px 16px; }
  .aviso.com-btn .btn { width: 100%; }
  .res-n { font-size: 38px; }
  .pares li, .prio-l li { align-items: flex-start; }
  .btn.mini { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
