/* IGC Pastoral: azul-noite e dourado, Spectral para nomes e títulos, Public Sans para a interface. */
:root {
  --noite: #172338;
  --noite-2: #22314b;
  --azul: #24466B;
  --azul-claro: #e8eef5;
  --ouro: #B88A3E;
  --ouro-claro: #f5ecdc;
  --tinta: #1d2433;
  --tinta-2: #4f5a6d;
  --papel: #f2f4f7;
  --branco: #ffffff;
  --linha: #dce1e8;
  --ok: #3e8b5e;
  --warn: #c9922a;
  --late: #b4462f;
  --none: #9aa3b1;
  --raio: 10px;
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--sans); color: var(--tinta); background: var(--papel); }
a { color: var(--azul); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5rem; color: var(--noite); }
h1 { font-size: 1.9rem; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
small, .small { font-size: .85rem; }
.muted { color: var(--tinta-2); }
.nowrap { white-space: nowrap; }
.is-hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }

/* ---------- Estrutura ---------- */
.with-nav { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.nav { background: var(--noite); color: #cfd6e2; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: .75rem; align-items: center; padding: 1.4rem 1.25rem 1.2rem; text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand img { max-width: 180px; max-height: 48px; filter: brightness(0) invert(1); }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ouro); color: var(--ouro); display: grid; place-items: center; font: 600 .95rem var(--serif); flex: none; }
.brand-mark.big { width: 84px; height: 84px; font-size: 1.9rem; }
.brand-text strong { display: block; font: 600 1.05rem var(--serif); }
.brand-text small { color: #9aa6b8; }
.nav nav { display: flex; flex-direction: column; padding: 1rem .75rem; gap: 2px; flex: 1; }
.nav nav a { color: #cfd6e2; text-decoration: none; padding: .55rem .75rem; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }
.nav nav a:hover { background: var(--noite-2); color: #fff; }
.nav nav a.on { background: var(--noite-2); color: #fff; box-shadow: inset 3px 0 0 var(--ouro); }
.nav-sep { margin: 1rem .75rem .35rem; font-size: .8rem; color: #7f8ba0; }
.badge { background: var(--ouro); color: var(--noite); font-weight: 700; font-size: .75rem; border-radius: 999px; padding: 0 .5rem; min-width: 1.4rem; text-align: center; }
.me { border-top: 1px solid rgba(255,255,255,.08); padding: 1rem 1.25rem; display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: center; }
.me-text strong { display: block; color: #fff; font-weight: 600; font-size: .9rem; }
.me-text small { color: #9aa6b8; font-size: .78rem; }
.me-actions { grid-column: 1 / -1; display: flex; gap: 1rem; margin-top: .5rem; font-size: .85rem; }
.me-actions a, .me-actions .linkish { color: #b9c3d3; }
.topbar { display: none; }
.main { padding: 2rem clamp(1rem, 3vw, 2.5rem) 4rem; max-width: 1280px; width: 100%; }
.bare .main { max-width: none; padding: 0; }

/* ---------- Componentes ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head p { margin: 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.card { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.25rem 1.35rem; margin-bottom: 1.25rem; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.card-head h2 { margin: 0; }
.narrow { max-width: 420px; }
.narrow-wide { max-width: 780px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-2 > .card { margin: 0; }
.stack > .card:last-child { margin-bottom: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 600 .9rem var(--sans); padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--linha); background: var(--branco); color: var(--noite); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--azul); }
.btn.primary { background: var(--azul); border-color: var(--azul); color: #fff; }
.btn.primary:hover { background: var(--noite); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--tinta-2); }
.btn.danger { color: var(--late); border-color: #e8c4bb; }
.btn.sm { padding: .3rem .65rem; font-size: .82rem; }
.btn.block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; color: var(--azul); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
form.inline { display: inline; margin-left: .75rem; }

label { display: block; font-weight: 600; font-size: .85rem; color: var(--tinta-2); margin-bottom: .9rem; }
label small { display: block; font-weight: 400; margin-top: .25rem; }
input, select, textarea { display: block; width: 100%; margin-top: .3rem; font: 400 .95rem var(--sans); color: var(--tinta); padding: .55rem .7rem; border: 1px solid #c9d0da; border-radius: 8px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--azul); outline-offset: 0; border-color: var(--azul); }
input[type=checkbox], input[type=radio] { width: auto; display: inline; margin: 0 .45rem 0 0; accent-color: var(--azul); }
input[type=color] { width: 44px; height: 38px; padding: 2px; }
textarea { resize: vertical; }
label.check { display: flex; align-items: center; font-weight: 500; color: var(--tinta); }
label.check.inline { align-self: end; padding-bottom: .6rem; }
.row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.row .span-2 { grid-column: span 2; }
.row.tight { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.row.tight label { margin-bottom: 0; }
.row.tight .grow { flex: 1; min-width: 200px; }
fieldset { border: 0; margin: 0 0 1.25rem; min-width: 0; }
fieldset.card { padding-top: 1rem; }
legend { font: 600 1.1rem var(--serif); color: var(--noite); padding: 0; margin-bottom: .75rem; float: left; width: 100%; }
legend + * { clear: both; }
.form-grid { max-width: 900px; }
.form-actions { display: flex; gap: .75rem; align-items: center; margin-top: .5rem; flex-wrap: wrap; }
.mt { margin-top: .75rem; }

.alert { background: #fbeae6; border: 1px solid #efc6bb; color: #7d2c1c; padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert ul { margin: .35rem 0 0 1.1rem; padding: 0; }
.notice { background: var(--ouro-claro); border-left: 3px solid var(--ouro); padding: .6rem .9rem; border-radius: 0 8px 8px 0; color: #5d4518; }
.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1.25rem; border: 1px solid; }
.flash-ok { background: #e7f3ec; border-color: #bfdcc9; color: #1f5537; }
.flash-erro { background: #fbeae6; border-color: #efc6bb; color: #7d2c1c; }

.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--azul-claro); color: var(--azul); display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.avatar.sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar.lg { width: 72px; height: 72px; font: 600 1.5rem var(--serif); }
.avatar.gold { background: var(--ouro-claro); color: #7a5a22; }
.me .avatar { background: var(--noite-2); color: var(--ouro); }
.person { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: inherit; min-width: 0; }
.person strong { display: block; font-weight: 600; color: var(--noite); }
.person small { color: var(--tinta-2); }

.chips { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.chip { --c: var(--azul); display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; padding: .12rem .55rem; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); border: 1px solid color-mix(in srgb, var(--c) 30%, white); white-space: nowrap; }
.chip.tag { border-style: dashed; }
.chip.pastor { --c: #7a5a22; background: var(--ouro-claro); border-color: #e6d3b0; }
.chips.big .chip { font-size: .88rem; padding: .25rem .7rem; }
.chip-x { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 0 0 .2rem; }

/* ---------- Régua ---------- */
.regua { --pos: 0%; position: relative; width: 100%; min-width: 120px; }
.regua-track { position: relative; height: 14px; border-radius: 3px; overflow: visible;
  background:
    repeating-linear-gradient(90deg, rgba(23,35,56,.28) 0 1px, transparent 1px 10%) top / 100% 5px no-repeat,
    linear-gradient(90deg, color-mix(in srgb, var(--ok) 26%, white) 0 var(--z1), color-mix(in srgb, var(--warn) 30%, white) var(--z1) var(--z2), color-mix(in srgb, var(--late) 24%, white) var(--z2) 100%);
  box-shadow: inset 0 0 0 1px rgba(23,35,56,.12);
}
.regua-track::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--pos); border-radius: 3px 0 0 3px; background: currentColor; opacity: .85; }
.regua-mark { position: absolute; left: var(--pos); top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; background: var(--noite); border-radius: 2px; z-index: 1; }
.regua-ok { color: var(--ok); }
.regua-warn { color: var(--warn); }
.regua-late { color: var(--late); }
.regua-none { color: var(--none); }
.regua-none .regua-track { background: repeating-linear-gradient(135deg, #eef0f3 0 6px, #e1e5ea 6px 12px); }
.regua-none .regua-track::after, .regua-none .regua-mark { display: none; }
.regua-scale { position: relative; height: 1.2rem; font-size: .72rem; color: var(--tinta-2); margin-top: .3rem; }
.regua-scale span { position: absolute; transform: translateX(-50%); }
.regua-scale span:first-child { transform: none; left: 0; }
.regua-scale .end { right: 0; left: auto; transform: none; }
.regua-compact .regua-track { height: 10px; }
.regua-compact .regua-track { background: linear-gradient(90deg, color-mix(in srgb, var(--ok) 22%, white) 0 var(--z1), color-mix(in srgb, var(--warn) 26%, white) var(--z1) var(--z2), color-mix(in srgb, var(--late) 22%, white) var(--z2) 100%); }
.regua-compact .regua-mark { top: -3px; bottom: -3px; }
.regua-text { display: block; color: var(--tinta-2); margin-top: .25rem; }
.regua-card .regua-big { font: 600 1.35rem var(--serif); color: var(--noite); margin-bottom: 1rem; }
.regua-card .regua-big .muted { font: 400 1rem var(--sans); }
.status-pill { font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; white-space: nowrap; }
.s-ok { background: #e3f1e8; color: var(--ok); }
.s-warn { background: #f8eed8; color: #94680f; }
.s-late { background: #f7e1dc; color: var(--late); }
.s-none { background: #eceff3; color: #5d6676; }
.lastby { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; padding: 1rem 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.lastby dt { font-size: .8rem; color: var(--tinta-2); }
.lastby dd { margin: 0; font-weight: 600; }
.lastby dd small { display: block; font-weight: 400; color: var(--tinta-2); }
details.add > summary { list-style: none; display: inline-flex; }
details.add > summary::-webkit-details-marker { display: none; }
details.add[open] > summary { background: transparent; color: var(--tinta-2); border-color: var(--linha); }
.inline-form { margin-top: 1rem; }

.regua-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 1.25rem; border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; background: var(--branco); }
.rs { padding: 1rem 1.25rem; text-decoration: none; color: var(--tinta-2); border-top: 4px solid; display: flex; align-items: baseline; gap: .5rem; }
.rs + .rs { border-left: 1px solid var(--linha); }
.rs strong { font: 600 2rem var(--serif); color: var(--noite); }
.rs:hover { background: #fafbfc; }
.rs-ok { border-top-color: var(--ok); } .rs-warn { border-top-color: var(--warn); } .rs-late { border-top-color: var(--late); } .rs-none { border-top-color: var(--none); }

/* ---------- Listas ---------- */
.people, .list, .timeline, .notes, .history, .events { list-style: none; margin: 0; padding: 0; }
.people li { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 1rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--linha); }
.people li:first-child { border-top: 0; }
.people li > .btn { justify-self: end; }
.list li { border-top: 1px solid var(--linha); }
.list li:first-child { border-top: 0; }
.list a { display: grid; grid-template-columns: 180px 1fr auto; gap: 1rem; padding: .75rem 1rem; text-decoration: none; color: var(--tinta); }
.list a:hover { background: #fafbfc; }
.list .unread strong, .list .unread span { font-weight: 700; color: var(--noite); }
.list .unread a { box-shadow: inset 3px 0 0 var(--ouro); }
.card:not(.flush) .list .unread a { padding-left: .75rem; }
.list small { color: var(--tinta-2); }
.card .list a { padding: .6rem 0; grid-template-columns: 1fr; gap: 0; }
.card.flush .list a, .list.card a { padding: .75rem 1rem; grid-template-columns: 200px 1fr auto; gap: 1rem; }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: .75rem; padding: .5rem 0; border-top: 1px solid var(--linha); }
.timeline li:first-child { border-top: 0; }
.timeline time { font-weight: 700; color: var(--noite); }
.timeline time span { display: block; font-weight: 400; color: var(--tinta-2); font-size: .85rem; }
.timeline small, .history small { display: block; color: var(--tinta-2); }
.history li { display: grid; grid-template-columns: 92px 1fr; gap: .75rem; padding: .75rem 0; border-top: 1px solid var(--linha); }
.history li:first-child { border-top: 0; }
.history time { font-weight: 600; color: var(--noite); font-variant-numeric: tabular-nums; }
.history p { margin: .35rem 0 .25rem; white-space: pre-line; }
.notes li { padding: .75rem .9rem; border-radius: 8px; margin-top: .6rem; background: #f7f8fa; border-left: 3px solid var(--azul); }
.notes li.note-ministerio { border-left-color: var(--ouro); }
.notes p { margin: 0 0 .3rem; white-space: pre-line; }
.notes small { color: var(--tinta-2); }
.scope { font-weight: 700; margin-left: .35rem; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: .75rem; padding: .45rem 0; border-top: 1px solid var(--linha); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--tinta-2); font-size: .85rem; }
.facts dd { margin: 0; }
.danger-zone { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--linha); }

.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.profile-id h1 { margin-bottom: .15rem; }
.profile-id p { margin-bottom: .5rem; }
.profile-grid { align-items: start; }

/* ---------- Tabelas e filtros ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--tinta-2); font-size: .8rem; padding: .7rem 1rem; background: #f7f8fa; border-bottom: 1px solid var(--linha); white-space: nowrap; }
.table th a { color: inherit; text-decoration: none; }
.table th a.sorted::after { content: ' ↑'; }
.table th a.sorted.desc::after { content: ' ↓'; }
.table td { padding: .7rem 1rem; border-bottom: 1px solid var(--linha); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfc; }
.table .w-regua { width: 190px; }
.table tr.inactive { opacity: .55; }
.table td.p0 { padding: 0; }
.table-form { display: flex; align-items: center; gap: 1rem; padding: .5rem 1rem; }
.table-form .cell { display: flex; align-items: center; gap: .5rem; }
.table-form .cell.grow { flex: 1; }
.table-form input { margin: 0; }
.add-row { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--linha); }
.filters { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
.filters label { margin: 0; min-width: 150px; }
.filters .grow { flex: 1; min-width: 220px; }
.filter-actions { display: flex; gap: .75rem; align-items: center; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--linha); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { padding: .6rem 1rem; text-decoration: none; color: var(--tinta-2); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.tabs a.on { color: var(--noite); border-bottom-color: var(--ouro); font-weight: 700; }

.picker { margin-bottom: 1rem; }
.picker-label { display: block; font-weight: 600; font-size: .85rem; color: var(--tinta-2); margin-bottom: .4rem; }
.pick-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.pick { --c: var(--azul); margin: 0; font-weight: 500; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--linha); background: #fff; color: var(--tinta); cursor: pointer; font-size: .88rem; }
.pick span small { color: var(--tinta-2); }
.pick.tag span { border-style: dashed; }
.pick input:checked + span { background: color-mix(in srgb, var(--c) 14%, white); border-color: var(--c); color: var(--c); font-weight: 700; }
.pick input:focus-visible + span { outline: 3px solid var(--ouro); outline-offset: 2px; }
.roles { margin-bottom: 1rem; }
.radio { display: flex; gap: .5rem; align-items: flex-start; padding: .75rem; border: 1px solid var(--linha); border-radius: 8px; margin-bottom: .5rem; font-weight: 400; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--azul); background: var(--azul-claro); }
.radio input { margin-top: .3rem; }
.radio strong { color: var(--noite); }
.radio small { color: var(--tinta-2); }

/* ---------- Agenda ---------- */
.gcal { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.gcal p { margin: 0; flex: 1; min-width: 240px; }
.day { margin-bottom: 1.5rem; }
.day-title { font-size: 1.05rem; display: flex; gap: .5rem; align-items: baseline; padding-bottom: .4rem; border-bottom: 1px solid var(--linha); }
.day-title span { text-transform: capitalize; }
.event { display: grid; grid-template-columns: 110px 1fr auto; gap: 1rem; align-items: center; padding: .75rem 1rem; background: var(--branco); border: 1px solid var(--linha); border-radius: 8px; margin-top: .5rem; border-left: 4px solid var(--azul); }
.event.ev-google { border-left-color: #8fa3bd; background: #fbfcfd; }
.event.done { opacity: .6; }
.event time { font-weight: 700; color: var(--noite); font-variant-numeric: tabular-nums; }
.event-body strong { display: block; }
.event-body small { display: block; color: var(--tinta-2); }
.event-actions { display: flex; gap: .75rem; align-items: center; }

/* ---------- Relatórios ---------- */
.summaries { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.summary { margin: 0; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr 2.2rem; gap: .5rem; align-items: center; font-size: .85rem; padding: .2rem 0; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 8px; background: #eef1f5; border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--azul); border-radius: 4px; }
.bar-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.print-only { display: none; }

.message-body { white-space: pre-line; font-size: 1rem; line-height: 1.65; padding: 1rem 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); margin: 1rem 0; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--tinta-2); }

/* ---------- Login ---------- */
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login-side { background: var(--noite); color: #d6dce6; padding: clamp(2rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  background-image: repeating-linear-gradient(90deg, rgba(184,138,62,.18) 0 1px, transparent 1px 48px); background-size: 100% 18px; background-repeat: no-repeat; background-position: 0 100%; }
.login-brand img { max-width: 260px; filter: brightness(0) invert(1); }
.login-side blockquote { font: 500 clamp(1.6rem, 3vw, 2.4rem)/1.25 var(--serif); color: #fff; margin: 0; max-width: 18ch; }
.login-side cite { display: block; font: 400 1rem var(--sans); color: var(--ouro); margin-top: 1rem; font-style: normal; }
.login-note { max-width: 42ch; color: #9aa6b8; }
.login-form { display: grid; place-items: center; padding: 2rem; }
.login-form .card { width: 100%; padding: 2rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .grid-2 { grid-template-columns: 1fr; }
  .lastby { grid-template-columns: repeat(2, 1fr); }
  .profile-head { grid-template-columns: auto 1fr; }
  .profile-head .actions { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .with-nav { display: block; }
  .nav { position: fixed; inset: 0 30% 0 0; z-index: 20; transform: translateX(-100%); transition: transform .2s ease; }
  .nav.open { transform: none; box-shadow: 0 0 0 100vw rgba(0,0,0,.35); }
  .topbar { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; background: var(--noite); color: #fff; position: sticky; top: 0; z-index: 10; }
  .topbar-title { font: 600 1rem var(--serif); }
  .menu-btn { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 6px; padding: .35rem .7rem; font: inherit; }
  .main { padding-top: 1.25rem; }
  .row { grid-template-columns: 1fr; }
  .row .span-2 { grid-column: auto; }
  .regua-summary { grid-template-columns: repeat(2, 1fr); }
  .rs:nth-child(3) { border-left: 0; }
  .rs:nth-child(n+3) { border-top-width: 4px; }
  .login { grid-template-columns: 1fr; }
  .login-side { min-height: auto; }
  .event { grid-template-columns: 1fr; gap: .35rem; }
  .list a, .card.flush .list a, .list.card a { grid-template-columns: 1fr; gap: .1rem; }
  .people li { grid-template-columns: 1fr; gap: .4rem; }
  .table.members thead { display: none; }
  .table.members tr { display: grid; grid-template-columns: 1fr; padding: .75rem 1rem; border-bottom: 1px solid var(--linha); gap: .4rem; }
  .table.members td { padding: 0; border: 0; }
  .table-form { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .nav, .topbar, .no-print, .flash, .btn { display: none !important; }
  .with-nav { display: block; }
  .main { padding: 0; max-width: none; }
  .print-only { display: block; }
  body { background: #fff; font-size: 11px; }
  .card { border: 0; padding: 0; }
  .table th, .table td { padding: .3rem .4rem; }
  a { color: inherit; text-decoration: none; }
}

@media (max-width: 560px) {
  .profile-head .avatar.lg { width: 52px; height: 52px; font-size: 1.1rem; align-self: flex-start; }
  .profile-id { min-width: 0; }
  .profile-id h1 { font-size: 1.5rem; overflow-wrap: anywhere; }
}
