/* Tesouraria Estrela Dourada — identidade: verde-floresta, dourado e papel de livro-caixa. */
:root {
  --bg: #f3f5f0; --surface: #ffffff; --surface-2: #eef2ec; --ink: #17261e; --muted: #56675d;
  --line: #d9e1d9; --line-strong: #bccabd;
  --brand: #1d4a36; --brand-hover: #153828; --on-brand: #ffffff; --brand-soft: #e1eee6;
  --gold: #a97a1f; --gold-soft: #f5ead0; --on-gold: #3a2a05;
  --ok: #1b7a4a; --ok-soft: #dff1e6; --warn: #8f5500; --warn-soft: #fbecd0;
  --danger: #b3261e; --danger-soft: #f9dedc; --info: #265c8c; --info-soft: #dde9f4;
  --focus: #2f6fbd;
  --b1: #d9a62e; --b1-hover: #c4931f; --b1-ink: #2b1f04; --b3: #f6e7c1; --b3-hover: #eed8a0; --b3-ink: #4a3406; --b3-line: #e3c97f;
  --btn-soft: #d3ebdb; --btn-soft-hover: #bfe0cb; --btn-soft-ink: #14402c; --btn-soft-line: #9ccbb0;
  --side-bg: #12301f; --side-ink: #dbe7de; --side-muted: #94ab9b; --side-hover: rgba(255,255,255,.07); --side-active: rgba(224,180,90,.16); --side-accent: #e0b45a;
  --shadow: 0 1px 2px rgba(18,48,31,.06), 0 6px 20px rgba(18,48,31,.06);
  --f-display: 'Literata', 'Georgia', serif; --f-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1612; --surface: #15211b; --surface-2: #1b2a23; --ink: #e6eee8; --muted: #9bb0a3; --line: #263a30; --line-strong: #35503f;
    --brand: #58b088; --brand-hover: #6cc29a; --on-brand: #06150e; --brand-soft: #1d3a2d;
    --gold: #e0b45a; --gold-soft: #3a2f14; --on-gold: #f7e7bd;
    --ok: #5fcf93; --ok-soft: #173626; --warn: #f0b457; --warn-soft: #3a2b10; --danger: #ff8a80; --danger-soft: #3d1a18; --info: #84b8ea; --info-soft: #172b40;
    --focus: #8cbcf0; --side-bg: #0a120e; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);

    --b1: #e0b45a; --b1-hover: #ecc674; --b1-ink: #1f1604; --b3: #3d3216; --b3-hover: #4a3c1a; --b3-ink: #f7e7bd; --b3-line: #6a5624;
    --btn-soft: #25483a; --btn-soft-hover: #2e5846; --btn-soft-ink: #c3ebd5; --btn-soft-line: #416f58;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1612; --surface: #15211b; --surface-2: #1b2a23; --ink: #e6eee8; --muted: #9bb0a3; --line: #263a30; --line-strong: #35503f;
  --brand: #58b088; --brand-hover: #6cc29a; --on-brand: #06150e; --brand-soft: #1d3a2d;
  --gold: #e0b45a; --gold-soft: #3a2f14; --on-gold: #f7e7bd;
  --ok: #5fcf93; --ok-soft: #173626; --warn: #f0b457; --warn-soft: #3a2b10; --danger: #ff8a80; --danger-soft: #3d1a18; --info: #84b8ea; --info-soft: #172b40;
  --focus: #8cbcf0; --side-bg: #0a120e; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  --b1: #e0b45a; --b1-hover: #ecc674; --b1-ink: #1f1604; --b3: #3d3216; --b3-hover: #4a3c1a; --b3-ink: #f7e7bd; --b3-line: #6a5624;
  --btn-soft: #25483a; --btn-soft-hover: #2e5846; --btn-soft-ink: #c3ebd5; --btn-soft-line: #416f58;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; }
.boot { padding: 40px 16px; text-align: center; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: .92em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.right { margin-left: auto; }
[hidden] { display: none !important; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 8px; border: 1px solid transparent; background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: .93rem; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, border-color .15s; }
.btn { background: var(--b1); color: var(--b1-ink); }                         /* 1º nível: dourado */
.btn:hover { background: var(--b1-hover); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: var(--brand); color: var(--on-brand); border-color: transparent; }   /* 2º nível: verde escuro */
.btn.ghost:hover { background: var(--brand-hover); }
.btn.danger { background: var(--danger); color: #fff; }
:root[data-theme="dark"] .btn.danger { color: #1b0705; }
.btn.gold { background: var(--b1); color: var(--b1-ink); }
.btn.sm { min-height: 32px; padding: 4px 10px; font-size: .85rem; border-radius: 7px; }
.btn.sm:not(.ghost):not(.danger):not(.link) { background: var(--b3); color: var(--b3-ink); border-color: var(--b3-line); }   /* 3º nível: dourado claro */
.btn.sm:not(.ghost):not(.danger):not(.link):hover { background: var(--b3-hover); }
.btn.sm.ghost { background: var(--btn-soft); color: var(--btn-soft-ink); border-color: var(--btn-soft-line); }   /* 4º nível: verde claro */
.btn.sm.ghost:hover { background: var(--btn-soft-hover); }
.btn.link { background: none; border: 0; padding: 0; min-height: 0; color: var(--brand); text-decoration: underline; font-weight: 600; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; color: inherit; }
.icon-btn:hover { background: var(--surface-2); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.sm { width: 16px; height: 16px; }

/* ---------- formulários ---------- */
.form { display: grid; gap: 14px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.field { display: grid; gap: 5px; min-width: 0; align-content: start; }
.field > label, .lbl { font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=month], input[type=time], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
textarea { min-height: 84px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
.field small { color: var(--muted); font-size: .8rem; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.form-erro { padding: 10px 12px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-weight: 500; font-size: .9rem; }
.aviso { padding: 10px 12px; border-radius: 8px; background: var(--gold-soft); color: var(--on-gold); font-size: .9rem; }
.aviso.info { background: var(--info-soft); color: var(--info); }
.aviso.ok { background: var(--ok-soft); color: var(--ok); }
.aviso.danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- login ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); }
.auth-brand { background: var(--side-bg); color: var(--side-ink); padding: 28px 24px; display: grid; align-content: center; gap: 14px; }
.auth-brand .estrela { width: 44px; height: 44px; color: var(--side-accent); }
.auth-brand h1 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
.auth-brand p { color: var(--side-muted); max-width: 42ch; }
.auth-main { display: grid; place-items: center; padding: 28px 16px; }
.auth-card { width: min(440px, 100%); display: grid; gap: 18px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.tabs button { flex: 1; min-height: 38px; border: 0; background: transparent; border-radius: 7px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
@media (min-width: 900px) {
  .auth { grid-template-columns: minmax(340px, 5fr) 7fr; }
  .auth-brand { padding: 56px 48px; }
}

/* ---------- estrutura ---------- */
.shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); }
.side { position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); background: var(--side-bg); color: var(--side-ink); z-index: 40; transform: translateX(-102%); transition: transform .22s ease; display: flex; flex-direction: column; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom, 0px); }
body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(5,12,8,.55); }
.side-top { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; }
.side-top .estrela { width: 30px; height: 30px; color: var(--side-accent); flex: none; }
.side-top strong { font-family: var(--f-display); font-size: 1.05rem; color: #fff; line-height: 1.15; }
.side-top small { display: block; color: var(--side-muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.nav { display: grid; gap: 2px; padding: 6px 10px; }
.nav h4 { margin: 14px 10px 4px; font: 600 .7rem var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--side-muted); }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--side-ink); text-decoration: none; font-weight: 500; font-size: .93rem; }
.nav a:hover { background: var(--side-hover); }
.nav a[aria-current="page"] { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 var(--side-accent); }
.nav a .pill { margin-left: auto; background: var(--side-accent); color: #2b1d03; border-radius: 99px; font-size: .72rem; font-weight: 700; padding: 1px 7px; }
.side-foot { margin-top: auto; padding: 14px 16px 16px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 10px; }
.me { display: grid; gap: 1px; font-size: .88rem; }
.me strong { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.me span { color: var(--side-muted); font-size: .8rem; }
.side-foot .btn { background: rgba(255,255,255,.08); color: var(--side-ink); border-color: transparent; }
.side-foot .btn:hover { background: rgba(255,255,255,.16); }
.side-foot .btn.sm:not(.ghost):not(.danger):not(.link) { background: rgba(255,255,255,.08); color: var(--side-ink); border-color: transparent; }
.side-foot .btn.sm:not(.ghost):not(.danger):not(.link):hover { background: rgba(255,255,255,.16); }
.side-foot .linha { display: flex; gap: 8px; }
.side-foot .linha .btn { flex: 1; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 8px; padding-top: calc(6px + env(safe-area-inset-top, 0px)); background: var(--side-bg); color: #fff; }
.topbar .icon-btn:hover { background: var(--side-hover); }
.topbar strong { font-family: var(--f-display); font-size: 1rem; }
.topbar .estrela { width: 22px; height: 22px; color: var(--side-accent); }
.main { padding: 20px 16px 72px; min-width: 0; max-width: 1180px; width: 100%; margin-inline: auto; }
@media (min-width: 980px) {
  .shell { grid-template-columns: 270px minmax(0, 1fr); }
  .side { position: sticky; top: 0; height: 100dvh; width: auto; transform: none; }
  .topbar { display: none; }
  .main { padding: 32px 36px 80px; }
}
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 18px; }
.page-head .tit { display: grid; gap: 3px; min-width: 0; }
.page-head .tit p { color: var(--muted); font-size: .92rem; }
.page-head .acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.art { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.stack { display: grid; gap: 18px; }
.grid3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); align-items: start; }
.grid2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }

/* ---------- superfícies ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-width: 0; }
.card > h2, .card > .card-h { margin-bottom: 12px; }
.card-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-h h2 { margin-right: auto; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.strip > div { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; min-width: 0; }
.strip .k { font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.strip .v { font: 700 1.45rem/1.25 var(--f-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.strip .s { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.v.neg { color: var(--danger); } .v.pos { color: var(--ok); }
.empty { padding: 34px 18px; text-align: center; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.empty strong { color: var(--ink); font-family: var(--f-display); font-size: 1.05rem; }
.list { display: grid; gap: 0; }
.item { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 13px 2px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .main-t { flex: 1 1 240px; min-width: 0; display: grid; gap: 2px; }
.item .main-t strong { font-weight: 600; overflow-wrap: anywhere; }
.item .main-t span { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.item .val { font: 700 1.05rem var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.item .btns { display: flex; flex-wrap: wrap; gap: 6px; }
a.item { color: inherit; text-decoration: none; }
a.item:hover { background: var(--surface-2); }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: .76rem; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.danger { background: var(--danger-soft); color: var(--danger); } .chip.info { background: var(--info-soft); color: var(--info); }
.chip.gold { background: var(--gold-soft); color: var(--on-gold); } .chip.brand { background: var(--brand-soft); color: var(--brand); }
:root[data-theme="dark"] .chip.brand { color: var(--ok); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters > * { min-width: 0; }
.filters input[type=search], .filters input[type=text] { width: min(260px, 100%); }
.filters select { width: auto; }
.filters input[type=date] { width: auto; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.seg button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 99px; padding: 5px 13px; min-height: 34px; font-size: .86rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.mes-nav { display: inline-flex; align-items: center; gap: 4px; }
.mes-nav strong { min-width: 9.5em; text-align: center; font-family: var(--f-display); font-size: 1.08rem; }
.mes-nav strong { display: inline-block; }
.mes-nav strong::first-letter, .cap::first-letter { text-transform: uppercase; }
.cap { display: inline-block; }
.card-h h2.cap { display: block; }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
tr.cancelado td { color: var(--muted); }
tr.cancelado td:not(.acoes) { text-decoration: line-through; }
td .sub { display: block; font-size: .78rem; color: var(--muted); }
td.acoes { white-space: nowrap; text-align: right; }
.in { color: var(--ok); } .out { color: var(--danger); }
tfoot td { font-weight: 700; background: var(--surface-2); }

/* grade de contribuições */
.grade th:first-child, .grade td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 190px; max-width: 240px; border-right: 1px solid var(--line); }
.grade th:first-child { background: var(--surface-2); z-index: 2; }
.grade td, .grade th { padding: 6px 6px; text-align: center; }
.grade td:first-child, .grade th:first-child { text-align: left; padding-left: 12px; }
.cel { width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent; display: inline-grid; place-items: center; font-size: .95rem; font-weight: 700; background: transparent; cursor: default; }
button.cel { cursor: pointer; }
.cel.pago { background: var(--ok-soft); color: var(--ok); }
.cel.aberto { background: var(--danger-soft); color: var(--danger); }
.cel.atual { border: 1px dashed var(--line-strong); color: var(--muted); }
.cel.nd { color: var(--line-strong); }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--muted); margin-top: 10px; }
.legenda .cel { width: 22px; height: 22px; font-size: .75rem; border-radius: 6px; vertical-align: middle; margin-right: 4px; }

/* ---------- calendário ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.cal .dow { padding: 7px 4px; text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.cal .dia { min-height: 56px; padding: 4px; border: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); text-align: left; display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-width: 0; font: inherit; color: inherit; }
.cal .dia:nth-child(7n + 8) { border-left: 0; }
.cal .dia.fora { background: var(--surface-2); cursor: default; }
.cal .dia:hover:not(.fora) { background: var(--brand-soft); }
.cal .dia .n { font-size: .82rem; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 99px; }
.cal .dia.hoje .n { background: var(--gold); color: #fff; }
.cal .dia[aria-pressed="true"] { outline: 2px solid var(--brand); outline-offset: -2px; background: var(--brand-soft); }
.cal .chips { display: none; flex-direction: column; gap: 2px; min-width: 0; }
.cal .dots { display: flex; flex-wrap: wrap; gap: 3px; }
.dot { width: 7px; height: 7px; border-radius: 99px; background: var(--muted); }
.t-reuniao { --c: var(--brand); } .t-sessao { --c: var(--info); } .t-fechamento, .t-conferencia, .t-quites { --c: var(--gold); }
.t-recebimento { --c: var(--ok); } .t-pagamento, .t-despesa { --c: var(--danger); } .t-titulo { --c: var(--warn); } .t-lembrete, .t-outro { --c: var(--muted); }
.dot, .tag-t { background: var(--c, var(--muted)); }
.cal .ch { font-size: .72rem; padding: 1px 5px; border-radius: 4px; border-left: 3px solid var(--c, var(--muted)); background: var(--surface-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .mais { font-size: .7rem; color: var(--muted); padding-left: 4px; }
@media (min-width: 760px) {
  .cal .dia { min-height: 104px; padding: 6px; }
  .cal .chips { display: flex; } .cal .dots { display: none; }
}
.ev { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; align-items: flex-start; }
.ev:first-child { border-top: 0; }
.ev .barra { width: 4px; align-self: stretch; border-radius: 4px; background: var(--c, var(--muted)); flex: none; }
.ev .corpo { flex: 1 1 220px; min-width: 0; display: grid; gap: 3px; }
.ev .corpo strong { overflow-wrap: anywhere; }
.ev .corpo span { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- gráfico e medidor ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font: 11px var(--f-body); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .b-in { fill: var(--ok); } .chart .b-out { fill: var(--gold); }
.leg { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.medidor { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; position: relative; }
.medidor > i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.medidor.alerta > i { background: var(--warn); }

/* ---------- janelas e avisos ---------- */
dialog.modal { padding: 0; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden; }
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal.lg { width: min(880px, calc(100vw - 24px)); }
dialog.modal.sm { width: min(440px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(8,18,13,.6); }
.modal-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 12px 20px; border-bottom: 1px solid var(--line); margin: 0; }
.modal-head h2 { flex: 1; font-size: 1.12rem; }
.modal-body { padding: 18px 20px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
#toasts { position: fixed; z-index: 100; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: #12301f; color: #fff; padding: 11px 16px; border-radius: 10px; font-weight: 500; box-shadow: var(--shadow); max-width: min(480px, 100%); pointer-events: auto; border-left: 4px solid var(--gold); animation: sobe .2s ease; }
.toast.erro { border-left-color: #ff8a80; background: #3d1210; }
@keyframes sobe { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: brilho 1.2s linear infinite; }
@keyframes brilho { to { background-position: -200% 0; } }

/* ---------- matriz de acessos ---------- */
.matriz th, .matriz td { white-space: nowrap; }
.matriz td:first-child { white-space: normal; min-width: 220px; }
.matriz select { min-height: 34px; padding: 4px 8px; width: auto; }
.matriz .n0 { color: var(--muted); } .matriz .n1 { color: var(--info); font-weight: 600; } .matriz .n2 { color: var(--ok); font-weight: 600; }

/* ---------- documentos (recibo, relatório, requisição) ---------- */
.doc { background: #fff; color: #111; border: 1px solid #cfd8d0; border-radius: 6px; padding: 28px 30px; font-family: var(--f-display); font-size: 15px; line-height: 1.55; position: relative; }
.doc h2, .doc h3 { color: #12301f; font-family: var(--f-display); }
.doc .cab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-bottom: 2px solid #12301f; padding-bottom: 10px; margin-bottom: 16px; }
.doc .cab .centro { font-weight: 700; font-size: 1.1rem; color: #12301f; }
.doc .cab small { display: block; color: #4a5a50; font: 12px var(--f-body); }
.doc .titulo { font-size: 1.5rem; letter-spacing: .12em; font-weight: 700; }
.doc .valor-box { border: 2px solid #12301f; padding: 6px 14px; font: 700 1.2rem var(--f-body); font-variant-numeric: tabular-nums; white-space: nowrap; align-self: center; }
.doc .ass { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 28px 48px; font: 13px var(--f-body); }
.doc .ass div { flex: 1 1 200px; border-top: 1px solid #111; padding-top: 4px; text-align: center; }
.doc .rodape { margin-top: 18px; font: 11px var(--f-body); color: #55655b; }
.doc .carimbo { position: absolute; inset: 40% auto auto 50%; transform: translate(-50%, -50%) rotate(-14deg); border: 4px solid #b3261e; color: #b3261e; font: 700 2.2rem var(--f-body); padding: 4px 18px; letter-spacing: .1em; opacity: .75; pointer-events: none; }
.doc table { font-family: var(--f-body); font-size: 13px; }
.doc th { background: #eef2ec; color: #333; position: static; }
.doc td, .doc th { border-bottom: 1px solid #dfe5e0; }
.doc .sec { margin-top: 18px; }
.doc .sec h3 { font-size: 1rem; border-bottom: 1px solid #cfd8d0; padding-bottom: 3px; margin-bottom: 6px; }
.doc .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 18px; font-family: var(--f-body); font-size: 13px; }
.doc .kv b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #55655b; font-weight: 600; }

#print-root { display: none; }
@media print {
  @page { margin: 14mm; }
  body.printing { background: #fff; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block; }
  #print-root .doc { border: 0; padding: 0; break-inside: avoid; }
  #print-root .doc + .doc { margin-top: 18mm; }
  .doc .valor-box { border-color: #000; }
}

/* ---------- início: quadro informativo ---------- */
.t-aniversario { --c: var(--gold); }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.aviso-lista, .aviso-bloco { display: grid; gap: 12px; margin-top: 12px; }
.aviso-bloco > h3, .aviso-bloco > summary { font: 600 1rem var(--f-display); display: flex; gap: 8px; align-items: center; cursor: default; }
.aviso-bloco > summary { cursor: pointer; color: var(--muted); font-size: .92rem; }
.aviso-bloco.pend { background: var(--warn-soft); border-radius: 12px; padding: 14px; }
.aviso-item { border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 10px; padding: 14px 16px; background: var(--surface); display: grid; gap: 8px; min-width: 0; }
.aviso-item.fixado { border-left-color: var(--gold); background: var(--gold-soft); }
.aviso-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.aviso-top h3 { font: 600 1.05rem var(--f-display); margin-right: auto; overflow-wrap: anywhere; }
.aviso-meta { font-size: .8rem; color: var(--muted); }
.aviso-item .btns { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- registro de sessões ---------- */
.sessao-item { display: grid; gap: 4px; }
.sessao-det { display: grid; gap: 14px; }
.sessao-det h4 { font: 600 .85rem var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.sessao-det .kv2 { display: grid; gap: 10px 18px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---------- envios de recibo ---------- */
.envios { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; font-size: .85rem; }
.envios h4 { font: 600 .8rem var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* ---- instituição no topo do menu, seções restritas ---- */
.side-top { align-items: flex-start; }
.side-top .inst { display: block; font-size: .95rem; line-height: 1.2; text-wrap: balance; }
.side-top small { margin-top: 4px; }
.topbar strong { font-size: .8rem; line-height: 1.15; text-wrap: balance; }
.nav a span:not(.pill) { min-width: 0; overflow-wrap: anywhere; }

/* ---- fotos ---- */
.albuns { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.album { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); color: inherit; text-decoration: none; min-width: 0; }
.album:hover { border-color: var(--line-strong); }
.album-capa { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.album-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-info { display: grid; gap: 2px; padding: 10px 12px; font-size: .86rem; min-width: 0; }
.album-info strong { font-size: .95rem; overflow-wrap: anywhere; }
.album-info span, .album-info small { color: var(--muted); }
.fotos-grade { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.foto { position: relative; margin: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.foto-b { border: 0; padding: 0; width: 100%; height: 100%; cursor: zoom-in; background: none; display: block; }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox { display: grid; place-items: center; max-height: 70vh; }
.lightbox img { max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: 6px; }

/* ---- programação anual ---- */
.prog-grade { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.prog-mes { padding: 14px 16px; min-width: 0; break-inside: avoid; }
.prog-mes h3 { text-transform: capitalize; font-family: var(--f-display); margin: 0 0 8px; }
.prog-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prog-lista li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; font-size: .9rem; border-left: 3px solid var(--line-strong); padding-left: 8px; }
.prog-dia { color: var(--muted); font-variant-numeric: tabular-nums; }
.prog-dia b { color: var(--ink); font-size: 1rem; }
.prog-tit { min-width: 0; overflow-wrap: anywhere; display: grid; }
.prog-tipo { font-size: .75rem; }
.prog-vazio { margin: 0; font-size: .85rem; }
.prog-grade.print { grid-template-columns: repeat(3, 1fr); }

/* ---- irmandade e mestres de origem ---- */
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--surface-2); color: var(--muted); display: inline-grid; place-items: center; font-weight: 700; flex: none; border: 1px solid var(--line); }
.avatar.grande { width: 96px; height: 96px; font-size: 1.6rem; }
.pessoas { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.pessoas.grande { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pessoa { display: grid; gap: 8px; align-content: start; min-width: 0; }
.pessoa-b { display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; color: inherit; min-width: 0; font: inherit; }
.pessoa-t { display: grid; gap: 2px; min-width: 0; font-size: .85rem; color: var(--muted); }
.pessoa-t strong { color: var(--ink); font-size: .95rem; overflow-wrap: anywhere; }
.pessoa-sobre { margin: 0; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.perfil { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.texto-longo { display: grid; gap: 12px; max-width: 70ch; line-height: 1.6; }
.at-item h3 { margin: 0 0 4px; overflow-wrap: anywhere; }
.inf-texto summary { cursor: pointer; font-weight: 600; margin: 6px 0; }

@media print {
  .prog-grade, .prog-grade.print { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .prog-mes { padding: 6px 8px; border: 1px solid #999; }
  .prog-lista li { font-size: 8.5pt; grid-template-columns: 48px 1fr; }
}

/* ---- pagamentos e privacidade ---- */
.pg-meses { margin: 8px 0 12px; }
.pg-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.pg-total strong { font-size: 1.25rem; }
.pg-op { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; min-width: 0; }
.pg-op h3 { margin: 0; font-size: 1rem; }
.pg-pix { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.pg-qr { width: 220px; max-width: 100%; flex: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; }
.pg-qr svg { display: block; width: 100%; height: auto; }
.pg-cod { flex: 1 1 240px; min-width: 0; display: grid; gap: 6px; }
.pg-cod textarea { width: 100%; font: .78rem/1.35 var(--f-mono, monospace); overflow-wrap: anywhere; }
.priv { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface-2); }
.priv summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.priv-corpo { max-height: 260px; overflow: auto; margin-top: 8px; font-size: .85rem; }
.priv-txt h4 { margin: 12px 0 4px; font-size: .9rem; }
.priv-txt ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.priv-txt p { margin: 4px 0; overflow-wrap: anywhere; }

/* ---- orientações na entrada ---- */
.auth-guia { max-width: 440px; margin: 18px auto 0; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; display: grid; gap: 8px; }
.auth-guia h2 { margin: 0; font-size: 1.05rem; }
.auth-guia h3 { margin: 6px 0 0; font-size: .95rem; }
.auth-guia ol, .auth-guia ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.auth-guia p { margin: 0; }
.tab-doc { width: 100%; border-collapse: collapse; }
.tab-doc th, .tab-doc td { border-bottom: 1px solid #cfd8d0; padding: 3px 5px; text-align: left; vertical-align: top; }
.tab-doc .num { text-align: right; white-space: nowrap; }
.tab-doc tfoot td { font-weight: 700; border-top: 2px solid #12301f; }
.lista-simples { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lista-simples li { overflow-wrap: anywhere; }
.bloco-mestre { display: flex; align-items: center; gap: 12px; }
.bloco-mestre .pos { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; }
.exp > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; font-weight: 700; }
.exp > summary::-webkit-details-marker { display: none; }
.exp[open] > summary { margin-bottom: 10px; }
.sec-t { font: 700 1rem var(--f-head, inherit); margin: 4px 0; }
.rt-tag { display:block; font-weight:700; color: var(--brand, #1f5a3a); font-size:.8rem; letter-spacing:.02em; }
.pessoa.rt { outline: 2px solid var(--accent, #b8860b); }
.pessoa .rt-tag { margin-top:2px; color: var(--accent-ink, #8a6508); }

/* assinaturas em documentos */
.doc .ass-img { display: block; margin: 0 auto 2px; max-height: 70px; max-width: 220px; object-fit: contain; }
.doc .ass-vazio { display: block; height: 48px; }
.doc .ass.ata { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px 28px; }
.doc .ata-texto p { margin: 0 0 .8em; text-align: justify; white-space: pre-wrap; }
.doc .ata-local { margin-top: 18px; }
.pessoa.eu { outline: 2px solid var(--brand); outline-offset: 2px; background: color-mix(in srgb, var(--brand) 9%, transparent); }
.eu-tag { display: inline-block; margin-left: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: var(--brand); color: #fff; vertical-align: middle; }
.doc .ass.com-img div { border-top: 0; padding-top: 0; }
.doc .ass-nome { display: block; border-top: 1px solid #111; padding-top: 4px; }
.side-top .inst { font-size: 1.2rem; }
.side-top small { text-transform: none; letter-spacing: 0; font-size: .72rem; line-height: 1.25; }
.auth-brand .inst-sub { display: block; margin-top: 6px; color: var(--side-muted); font-size: .85rem; }

/* ---------- sino de notificações ---------- */
.sino-wrap { position: fixed; top: calc(8px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 60; }
.sino { position: relative; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.topbar ~ .sino-wrap .sino { background: transparent; border-color: transparent; box-shadow: none; color: #fff; }
@media (min-width: 900px) { .topbar ~ .sino-wrap .sino { background: var(--surface); border-color: var(--line); box-shadow: 0 1px 4px rgba(0,0,0,.12); color: inherit; } }
.sino-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.sino-painel { position: absolute; right: 0; top: calc(100% + 6px); width: min(380px, calc(100vw - 24px)); max-height: min(70dvh, 560px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 8px; }
.sino-painel h3 { font-size: .95rem; padding: 6px 8px; display: flex; align-items: center; gap: 8px; }
.sino-painel h3 .btn { margin-left: auto; }
.notif { padding: 10px 8px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.notif:first-of-type { border-top: 0; }
.notif.nova { background: var(--info-soft); border-radius: 8px; }
.notif strong { font-size: .92rem; overflow-wrap: anywhere; }
.notif p { font-size: .85rem; white-space: pre-line; overflow-wrap: anywhere; }
.notif small { color: var(--muted); font-size: .76rem; }
/* ---------- registros e listas novas ---------- */
.reg-linha { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr auto; gap: 6px; margin-bottom: 6px; }
.mat-linha { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.5fr auto; gap: 6px; margin-bottom: 6px; }
.mat-bloco { border: 1px solid var(--line, #ddd); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.mat-bloco h5 { margin: 0 0 6px; font-size: .95rem; }
.mat-pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mat-sub { margin: 6px 0 0; font-size: .9rem; font-variant-numeric: tabular-nums; }
.mat-geral { font-size: 1rem; padding: 8px 12px; border-radius: 8px; background: var(--card-alt, rgba(128,128,128,.12)); }
.bat-linha { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.vas-linha { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin-bottom: 6px; }
@media (max-width: 640px) { .reg-linha, .mat-linha { grid-template-columns: 1fr 1fr; } .mat-linha input, .mat-linha select { min-width: 0; } }
.pick { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 6px; background: var(--surface-2); }
.pick-busca { margin-bottom: 6px; }
.pick-grupo { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 4px; }
th.ord { cursor: pointer; user-select: none; white-space: nowrap; }
th.ord[aria-sort] { color: var(--brand); }
.res-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.kv-lista { display: grid; gap: 4px; font-size: .92rem; }
.kv-lista div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.kv-lista div span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.espaco-bloq { opacity: .75; }
.espacos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; } .espacos .card { margin: 0; }
.etiquetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm; }
.etiqueta { display: flex; gap: 3mm; align-items: center; border: 1px solid #000; border-radius: 2mm; padding: 3mm; break-inside: avoid; }
.etq-qr { width: 24mm; flex: none; } .etq-qr svg { width: 100%; height: auto; display: block; }
.etq-txt { display: grid; gap: 1mm; font-size: 9pt; line-height: 1.2; } .etq-txt strong { font-size: 10.5pt; } .etq-txt small { font-size: 7pt; }
.doc .quebra { break-before: page; page-break-before: always; } .doc .quebra table { width: 100%; }

[data-se-k].desab { opacity: .5; }
[data-se-k].desab::after { content: attr(data-hint); display: block; font-size: .78rem; color: var(--muted); margin: -4px 0 8px; }
.aniv-img { display: block; max-width: 100%; max-height: 520px; margin: 0 auto 8px; border-radius: 10px; object-fit: contain; }
.nav h5 { margin: 8px 10px 2px 22px; font: 600 .66rem var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--side-muted); }
.nav a.sub { padding-left: 24px; }
.nav-sep { height: 1px; margin: 12px 10px 6px; background: var(--side-muted); opacity: .35; }

/* Organização: cargos com foto */
.org-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.org-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 14px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.org-card h3 { margin: 0; font-size: .95rem; line-height: 1.25; text-wrap: balance; }
.org-card h3 small { display: block; font-weight: 400; color: var(--muted); }
.org-foto { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold, #b8924a); background: var(--surface-2, #e8ece9); }
.org-foto img, .org-foto svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Início: acontecimentos do dia à esquerda e calendário à direita */
.cal-split { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.7fr); gap: 16px; align-items: start; }
.cal-split .cal-lado > .card { box-shadow: none; }
@media (max-width: 860px) { .cal-split { grid-template-columns: 1fr; } .cal-split .cal-grade { order: -1; } }
.atalho { display: block; text-decoration: none; color: inherit; }
.atalho h3 { margin: 0 0 4px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.atalho:hover { border-color: var(--line-strong); }
.t-blog, .t-link { --c: var(--gold); }

/* citações do Estatuto */
.est-cit{margin-top:20px;padding:12px 14px;border-left:3px solid var(--border,#cfd8d3);color:var(--muted,#5b6b63);font-size:.85rem}
.est-cit h3{margin:0 0 6px;font-size:.78rem;letter-spacing:.04em;text-transform:uppercase}
.est-cit p{margin:6px 0}
.est-nota{margin:10px 0 0;color:var(--muted,#5b6b63)}
.est-art{margin:0 0 18px}.est-art h3{margin:0 0 6px;font-size:1rem}
.est-lista{list-style:none;margin:0;padding:0}.est-lista li{margin:3px 0;padding-left:2.2em;text-indent:-2.2em}.est-lista li span{display:inline-block;width:2.2em;text-indent:0;font-variant-numeric:tabular-nums}
.dir-blocos{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.dir-bloco{border:1px solid var(--border,#d9e0dc);border-radius:10px;padding:10px 12px;background:var(--surface,#fff)}
.dir-bloco h3{margin:0 0 6px;font-size:.78rem;letter-spacing:.03em;text-transform:uppercase;color:var(--muted,#5b6b63)}
.dir-bloco ul{margin:0;padding:0;list-style:none}.dir-bloco li{font-weight:600}
.arq-meta{border:1px dashed var(--borda,#c9b36a);border-radius:10px;padding:10px 12px;margin:10px 0}
.arq-meta legend{font-weight:600;font-size:.85rem;padding:0 6px}
.arq-desc{display:block;font-size:.85rem;margin-top:4px}

/* =====================================================================
   Camada premium (mesma estrutura, outro acabamento): marfim quente,
   verde-floresta profundo, ouro fosco, serifa editorial e sombras em camadas.
   Fica por último para sobrepor sem alterar nenhuma tela.
   ===================================================================== */
:root {
  --bg: #f5f1e6; --surface: #fffdf8; --surface-2: #f0ebdd; --ink: #14241b; --muted: #5d6b60;
  --line: #e4ddca; --line-strong: #cfc6ac;
  --brand: #17402e; --brand-hover: #0f3123; --brand-soft: #e3ece2;
  --gold: #9a6f1c; --gold-soft: #f6ecd2;
  --b1: #d4a640; --b1-hover: #c29531; --b1-ink: #261a03; --b3: #f6ead0; --b3-hover: #efdfb9; --b3-line: #e2cd93;
  --btn-soft: #dde9dc; --btn-soft-hover: #cddfcc; --btn-soft-line: #aac6ae;
  --side-bg: #0d2a1c; --side-accent: #e3bb63;
  --f-display: 'Fraunces', 'Literata', Georgia, serif;
  --r: 16px;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 1px 2px rgba(20,36,27,.05), 0 12px 32px -12px rgba(20,36,27,.18);
  --shadow-lg: 0 2px 4px rgba(20,36,27,.06), 0 30px 70px -20px rgba(8,22,15,.45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0b130f; --surface: #121e17; --surface-2: #19281f; --line: #223529; --line-strong: #31493a; --side-bg: #08110c; --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 14px 34px -14px rgba(0,0,0,.6); --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.8); }
}
:root[data-theme="dark"] { --bg: #0b130f; --surface: #121e17; --surface-2: #19281f; --line: #223529; --line-strong: #31493a; --side-bg: #08110c; --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 14px 34px -14px rgba(0,0,0,.6); --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.8); }

body { background: radial-gradient(1100px 520px at 85% -120px, rgba(212,166,64,.10), transparent 70%), var(--bg); background-attachment: fixed; letter-spacing: .003em; font-feature-settings: "kern", "liga"; }
h1, h2, h3 { font-optical-sizing: auto; font-variation-settings: "SOFT" 40; letter-spacing: -.012em; font-weight: 600; }
h1 { font-weight: 600; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.5rem); }
::selection { background: rgba(212,166,64,.35); }
:focus-visible { outline: 2px solid var(--b1); outline-offset: 3px; }

/* barra lateral */
.side { background: radial-gradient(420px 280px at 0% 0%, rgba(227,187,99,.14), transparent 70%), linear-gradient(180deg, #0f3123 0%, #0a2217 100%); border-right: 1px solid rgba(227,187,99,.18); }
.side-top { padding: 24px 20px 18px; border-bottom: 1px solid rgba(227,187,99,.14); }
.side-top .estrela { filter: drop-shadow(0 0 10px rgba(227,187,99,.45)); }
.side-top strong { font-weight: 600; font-size: 1.12rem; letter-spacing: .005em; }
.nav h4 { color: rgba(227,187,99,.78); letter-spacing: .16em; font-size: .64rem; margin-top: 20px; }
.nav a { border-radius: 10px; transition: background .15s, color .15s, transform .15s; }
.nav a:hover { background: rgba(255,255,255,.06); transform: translateX(2px); }
.nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(227,187,99,.22), rgba(227,187,99,.06)); box-shadow: inset 2px 0 0 var(--side-accent); }
.side-foot { border-top: 1px solid rgba(227,187,99,.14); background: rgba(0,0,0,.14); }
.topbar { background: linear-gradient(180deg, #0f3123, #0b281b); border-bottom: 1px solid rgba(227,187,99,.2); }

/* cabeçalho de página */
.page-head { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 2px; background: linear-gradient(90deg, var(--b1), transparent); }
.art { display: inline-flex; align-items: center; gap: 10px; font-size: .68rem; letter-spacing: .2em; color: var(--gold); }
.art::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.page-head .tit { flex: 1 1 320px; }
.tit-linha { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-width: 0; }
.page-head .tit p { font-size: .95rem; }
@media (min-width: 760px) { .page-head .tit p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* superfícies */
.card { border-radius: var(--r); border-color: var(--line); box-shadow: var(--shadow); padding: 22px; }
.card > h2, .card > .card-h { margin-bottom: 14px; }
.card-h h2 { font-size: 1.28rem; }
.strip { border-radius: var(--r); box-shadow: var(--shadow); border-color: var(--line); position: relative; }
.strip::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--b1), rgba(212,166,64,.15)); z-index: 1; }
.strip > div { padding: 18px 22px; }
.strip .k { font-size: .66rem; letter-spacing: .16em; }
.strip .v { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; }
.item { padding: 15px 4px; border-top-color: var(--line); transition: background .15s; }
.item:hover { background: linear-gradient(90deg, rgba(212,166,64,.06), transparent); }
.item .val { font-weight: 600; font-size: 1.1rem; }
.chip { padding: 3px 10px; font-size: .72rem; letter-spacing: .02em; border: 1px solid rgba(0,0,0,.04); }
.empty strong { font-size: 1.15rem; }
.aviso { border-radius: 12px; border: 1px solid rgba(212,166,64,.35); padding: 12px 14px; }
.aviso.info { border-color: rgba(38,92,140,.22); } .aviso.ok { border-color: rgba(27,122,74,.25); } .aviso.danger { border-color: rgba(179,38,30,.25); }

/* botões (hierarquia mantida) */
.btn { border-radius: 11px; min-height: 42px; font-weight: 600; letter-spacing: .01em; transition: transform .12s, box-shadow .15s, background .15s; box-shadow: 0 1px 2px rgba(20,36,27,.18); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(20,36,27,.35); }
.btn:active { transform: none; box-shadow: none; }
.btn, .btn.gold { background: linear-gradient(180deg, #e0b552, #cf9f36); box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 1px 2px rgba(60,40,5,.3); }
.btn:hover, .btn.gold:hover { background: linear-gradient(180deg, #e6bd5e, #d5a53b); }
.btn.ghost { background: linear-gradient(180deg, #1d4d38, #14392a); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 1px 2px rgba(0,0,0,.3); }
.btn.ghost:hover { background: linear-gradient(180deg, #235a42, #184331); }
.btn.sm { border-radius: 9px; min-height: 34px; box-shadow: none; }
.btn.sm:not(.ghost):not(.danger):not(.link) { background: var(--b3); }
.btn.sm:not(.ghost):not(.danger):not(.link):hover { background: var(--b3-hover); }
.btn.sm.ghost { background: var(--btn-soft); box-shadow: none; }
.btn.sm.ghost:hover { background: var(--btn-soft-hover); }
.btn.danger { background: linear-gradient(180deg, #c2352c, #a22119); }
.side-foot .btn, .side-foot .btn.sm:not(.ghost):not(.danger):not(.link) { box-shadow: none; background: rgba(255,255,255,.08); }
.icon-btn { border-radius: 11px; }

/* formulários */
input[type=text], input[type=email], input[type=password], input[type=date], input[type=month], input[type=time], input[type=number], input[type=search], select, textarea { border-radius: 11px; border-color: var(--line-strong); background: var(--surface); min-height: 44px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--b1); box-shadow: 0 0 0 4px rgba(212,166,64,.22); }
.field > label, .lbl { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.tabs { border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); }
.tabs button { border-radius: 10px; }
.tabs button[aria-selected="true"] { box-shadow: 0 1px 2px rgba(20,36,27,.12), 0 6px 14px -8px rgba(20,36,27,.3); }
.seg button { border-radius: 99px; }
.seg button[aria-pressed="true"] { background: linear-gradient(180deg, #1d4d38, #14392a); border-color: transparent; }

/* janelas, avisos e sino */
dialog.modal { border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid rgba(227,187,99,.25); }
dialog.modal::backdrop { background: rgba(6,16,11,.62); backdrop-filter: blur(5px); }
.modal-head { padding: 18px 18px 14px 24px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.modal-head h2 { font-size: 1.28rem; }
.modal-body { padding: 22px 24px 24px; }
.toast { border-radius: 14px; border-left-width: 3px; box-shadow: var(--shadow-lg); }
.sino { border-radius: 14px; box-shadow: var(--shadow); }
.sino-painel { border-radius: 16px; box-shadow: var(--shadow-lg); }

/* entrada */
.auth-brand { background: radial-gradient(600px 400px at 15% 10%, rgba(227,187,99,.2), transparent 65%), radial-gradient(500px 500px at 90% 100%, rgba(63,130,96,.25), transparent 70%), linear-gradient(160deg, #123826, #08201a); position: relative; }
.auth-brand::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(227,187,99,.22); border-radius: 18px; pointer-events: none; }
.auth-brand .estrela { width: 56px; height: 56px; filter: drop-shadow(0 0 18px rgba(227,187,99,.55)); }
.auth-brand h1 { font-weight: 500; letter-spacing: -.02em; }
.auth-card { padding: 4px; }

/* movimento sóbrio */
@media (prefers-reduced-motion: no-preference) {
  .main > * { animation: sobe .38s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes sobe { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
::-webkit-scrollbar { width: 11px; height: 11px; } ::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid var(--bg); } ::-webkit-scrollbar-track { background: transparent; }
@media print { body { background: #fff !important; } .card { box-shadow: none; } .btn { box-shadow: none; } .main > * { animation: none; } }

/* =====================================================================
   Extras: acessibilidade, uso sem internet, instalação, busca, trava de tela, conferência e auditoria
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pular { position: fixed; left: 12px; top: -60px; z-index: 400; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .15s; }
.pular:focus { top: 10px; }
#conteudo:focus { outline: none; }
/* tamanho do texto e contraste (preferências do aparelho) */
html[data-texto="g"] { font-size: 112.5%; }
html[data-texto="gg"] { font-size: 125%; }
html[data-contraste="1"] { --muted: #2b3a31; --line: #8fa294; --line-strong: #5d7165; --focus: #0b4fb3; }
html[data-contraste="1"][data-theme="dark"], html[data-contraste="1"]:not([data-theme="light"]) { }
@media (prefers-color-scheme: dark) { html[data-contraste="1"]:not([data-theme="light"]) { --muted: #cfe0d5; --line: #6e8b79; --line-strong: #9db8a8; --focus: #b5d4f7; } }
html[data-theme="dark"][data-contraste="1"] { --muted: #cfe0d5; --line: #6e8b79; --line-strong: #9db8a8; --focus: #b5d4f7; }
html[data-contraste="1"] .btn, html[data-contraste="1"] .chip, html[data-contraste="1"] .card, html[data-contraste="1"] input, html[data-contraste="1"] select, html[data-contraste="1"] textarea { border-width: 2px; border-color: var(--line-strong); }
html[data-contraste="1"] a { text-decoration: underline; }
html[data-movimento="reduzido"] *, html[data-movimento="reduzido"] *::before, html[data-movimento="reduzido"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible { outline-offset: 3px; }
button, .btn, .icon-btn, a.item { min-height: 36px; }
@media (pointer: coarse) { .btn, .icon-btn { min-height: 44px; } .icon-btn { min-width: 44px; } }
.abas { display: flex; flex-wrap: wrap; gap: 6px; }
.abas button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; color: var(--ink); }
.abas button.on, .abas button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.passos { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }
kbd { font: 600 .7rem var(--f-mono); border: 1px solid var(--line-strong); border-radius: 5px; padding: 1px 6px; background: var(--surface-2); color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.neg { color: var(--danger); }
/* painel "O que preciso fazer" */
.item.pend-1 { border-left: 4px solid var(--warn); padding-left: 12px; }
.item.pend-2 { border-left: 4px solid var(--gold); padding-left: 12px; }
/* faixa de uso sem internet */
.offline-bar { position: sticky; top: 0; z-index: 350; background: var(--warn-soft); color: var(--warn); border-bottom: 2px solid var(--warn); padding: 10px 16px; font-weight: 600; font-size: .88rem; text-align: center; }
/* convite para instalar o aplicativo */
.instalar-bar { position: fixed; z-index: 300; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--side-bg); color: var(--side-ink); box-shadow: 0 10px 40px rgba(0,0,0,.35); border: 1px solid rgba(224,180,90,.5); }
.instalar-bar .instalar-ic { color: var(--side-accent); display: grid; place-items: center; flex: none; }
.instalar-bar .instalar-ic .ico { width: 28px; height: 28px; }
.instalar-bar .instalar-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.instalar-bar .instalar-tx strong { font-size: .95rem; }
.instalar-bar .instalar-tx span { font-size: .8rem; color: var(--side-muted); }
.instalar-bar .btn { background: var(--side-accent); color: #2b1f04; border-color: var(--side-accent); flex: none; }
.instalar-bar .icon-btn { color: var(--side-ink); flex: none; }
/* busca */
.busca-btn { width: 100%; justify-content: flex-start; gap: 8px; margin: 0 0 8px; background: var(--side-hover); color: var(--side-ink); border-color: transparent; }
.busca-btn kbd { margin-left: auto; background: transparent; color: var(--side-muted); border-color: rgba(255,255,255,.2); }
.busca-res { display: grid; gap: 4px; margin-top: 10px; max-height: 60vh; overflow: auto; }
.busca-g { font: 700 .75rem var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 0 2px; }
/* trava por inatividade */
.trava { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--side-bg) 92%, transparent); backdrop-filter: blur(10px); }
.trava-card { width: min(400px, 100%); background: var(--surface); color: var(--ink); border-radius: 18px; padding: 26px; display: grid; gap: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.45); border-top: 4px solid var(--b1); }
.trava-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.trava-ic .ico { width: 24px; height: 24px; }

/* =====================================================================
   Documentos impressos premium (todos os documentos usam a classe .doc)
   ===================================================================== */
.doc { background-image: radial-gradient(circle at 100% 0, rgba(169,122,31,.06), transparent 40%); }
.doc .cab { border-bottom: 0; position: relative; padding-bottom: 14px; }
.doc .cab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-top: 2px solid #12301f; border-bottom: 1px solid #a97a1f; }
.doc .cab .centro { font-family: 'Fraunces', var(--f-display); font-size: 1.2rem; letter-spacing: .01em; }
.doc .titulo { font-family: 'Fraunces', var(--f-display); font-weight: 600; letter-spacing: .14em; color: #12301f; }
.doc h2 { font-family: 'Fraunces', var(--f-display); }
.doc .sec h3 { border-bottom: 1px solid #a97a1f; letter-spacing: .02em; }
.doc th { background: #f3efe3; color: #3a2a05; font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.doc td.num, .doc th.num, .doc .valor-box { font-variant-numeric: tabular-nums lining-nums; }
.doc .valor-box { border-width: 1.5px; outline: 1px solid #a97a1f; outline-offset: 2px; }
.doc .ass div, .doc .ass-nome { border-top-color: #12301f; }
.print-rodape { display: none; }
@media print {
  @page { size: A4; margin: 16mm 15mm 20mm; @bottom-center { content: 'Página ' counter(page) ' de ' counter(pages); font: 8.5pt 'Public Sans', Arial, sans-serif; color: #55655b; } }
  body.printing, body.printing * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-root .doc { background: #fff; font-size: 11.5pt; line-height: 1.5; orphans: 3; widows: 3; }
  #print-root .doc::before { content: ''; position: fixed; inset: 0; background: url('/icon-512.png') center 55% / 120mm no-repeat; opacity: .035; pointer-events: none; z-index: -1; }
  #print-root .doc table { break-inside: auto; width: 100%; border-collapse: collapse; } #print-root .doc tr { break-inside: avoid; } #print-root .doc thead { display: table-header-group; }
  #print-root .doc .sec, #print-root .doc .ass { break-inside: avoid; }
  #print-root .doc h2, #print-root .doc h3 { break-after: avoid; }
  #print-root .print-rodape { display: flex; position: fixed; left: 0; right: 0; bottom: 0; transform: translateY(12mm); justify-content: space-between; gap: 12mm; font: 7.5pt 'Public Sans', Arial, sans-serif; color: #55655b; border-top: .5pt solid #a97a1f; padding-top: 2mm; }
  .instalar-bar, .offline-bar, .trava, .pular { display: none !important; }
}

/* ---- medição das páginas de impressão (usa as mesmas regras da impressão) ---- */
body.medindo > *:not(#print-root) { display: none !important; }
body.medindo #print-root { display: block; width: 180mm; position: absolute; left: 0; top: 0; visibility: hidden; }
body.medindo #print-root .doc { border: 0; padding: 0; background: #fff; font-size: 11.5pt; line-height: 1.5; }
body.medindo #print-root .doc table { width: 100%; border-collapse: collapse; }
#print-root .doc > :last-child { margin-bottom: 0; }
@media print { #print-root { margin: 0; padding: 0; } #print-root .doc > :last-child { margin-bottom: 0; } }

/* menu lateral: títulos de seção que abrem e fecham */
.nav h4.nav-h { margin: 6px 0 0; }
.nav-tit { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 10px; margin: 0; background: none; border: 0; border-radius: 8px; cursor: pointer; font: 600 .7rem var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--side-muted); text-align: left; }
.nav-tit:hover { background: var(--side-hover); color: var(--side-ink); }
.nav-tit:focus-visible { outline: 2px solid var(--side-accent); outline-offset: -2px; }
.nav-chev { flex: none; transition: transform .18s ease; }
.nav-tit[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }
.nav-tit[aria-expanded="true"] { color: var(--side-ink); }
.nav-itens { display: grid; gap: 2px; padding-bottom: 4px; }
@media (prefers-reduced-motion: reduce) { .nav-chev { transition: none; } }

/* campo de vários nomes com sugestão ao digitar */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tags:focus-within { outline: 2px solid var(--b1, currentColor); outline-offset: 1px; }
.tags-in { flex: 1 1 150px; min-width: 120px; border: 0; outline: 0; background: transparent; font: inherit; color: inherit; padding: 4px 2px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 99px; background: var(--surface-2); font-size: .88rem; }
.tag-x { border: 0; background: none; cursor: pointer; font-size: 1.05rem; line-height: 1; padding: 0 6px; border-radius: 99px; color: inherit; opacity: .65; }
.tag-x:hover, .tag-x:focus-visible { opacity: 1; background: var(--line); }
.sug { position: fixed; z-index: 400; max-height: 240px; overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 4px; }
.sug button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 7px; background: none; font: inherit; color: inherit; cursor: pointer; }
.sug button:hover, .sug button[aria-selected="true"] { background: var(--surface-2); }
.doacao-linha { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(150px, 1.2fr) auto; gap: 8px; align-items: center; }
@media (max-width: 640px) { .doacao-linha { grid-template-columns: 1fr auto; } .doacao-linha .doacao-nome { grid-column: 1 / -1; order: 3; } }

/* Projeto Cata-Vento */
.cv-grupos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; margin-top: 8px; }
.cv-grupo { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.cv-grupo h4 { margin: 0; }
.cv-nomes { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 2px; font-size: .92rem; }
.cv-tarefa textarea { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--surface); color: inherit; resize: vertical; }

/* ---- rodada D ---- */
.semana { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.semana h3 { font-size: .95rem; margin: 0 0 6px; }
.busca-filtros { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.busca-filtros .chip { cursor: pointer; border: 1px solid var(--line); background: var(--surface-2); color: inherit; font: inherit; }
.busca-filtros .chip.ok { background: var(--ok-bg, #dcefe2); }
.cols-2 { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
@media (max-width: 560px) { .cols-2 { grid-template-columns: 1fr; } }
/* modo apresentação */
body.apresentacao .side, body.apresentacao .topbar, body.apresentacao .sino-wrap, body.apresentacao #instalar-bar, body.apresentacao .main .btns, body.apresentacao .main .card-h .btn { display: none !important; }
body.apresentacao .shell { display: block; }
body.apresentacao .main { margin: 0; max-width: none; padding: 28px 5vw; font-size: 1.25rem; }
body.apresentacao .main h1 { font-size: 2.4rem; }
.apres-sair { position: fixed; right: 14px; bottom: 14px; z-index: 60; opacity: .75; }
.apres-sair:hover, .apres-sair:focus { opacity: 1; }

/* Programação anual: compromisso alterado recentemente (1 mês) */
.prog-lista li.alterado, .prog-lista li.alterado .prog-tit, .prog-lista li.alterado .prog-dia, .prog-lista li.alterado small { color: #b3261e; }
.prog-alt { font-style: italic; }
@media print { .prog-lista li.alterado, .prog-lista li.alterado * { color: #b3261e !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.linklike { background: none; border: 0; padding: 0; color: var(--brand, #1f5d46); text-decoration: underline; cursor: pointer; font: inherit; }
