:root {
  --bg: #0B141A; --side: #111B21; --card: #202C33; --hover: #27343B; --line: #2A3942;
  --green: #005C4B; --accent: #00A884; --accent-h: #06CF9C; --text: #E9EDEF; --muted: #8696A0;
  --warn: #F0B429; --err: #E5484D; --info: #53BDEB;
  --r: 12px; --r-sm: 8px; --gap: 16px; --side-w: 248px;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 16px; }
h3 { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
:focus-visible { outline: 2px solid var(--accent-h); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mono { font-variant-numeric: tabular-nums; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* ---- layout ---- */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px; overflow-y: auto; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; }
.brand .logo { width: 36px; height: 36px; border-radius: 10px; background: var(--green); display: grid; place-items: center; color: var(--accent-h); }
.brand b { display: block; font-size: 15px; }
.brand span { font-size: 12px; color: var(--muted); }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 500; margin-bottom: 2px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--green); color: var(--text); }
.nav a[aria-current="page"] svg { color: var(--accent-h); }
.side-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.side-foot button { margin-top: 8px; width: 100%; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--side); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 12px 24px; min-height: 64px; }
.topbar { flex-wrap: wrap; row-gap: 8px; }
.topbar h1 { font-size: 20px; flex: 1 1 200px; min-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .crumb { font-size: 13px; color: var(--muted); display: block; font-weight: 400; }
.topbar .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.menu-btn { display: none; }
.content { padding: 24px; max-width: 1400px; width: 100%; margin: 0 auto; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.scrim { display: none; }

@media (max-width: 1023px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .app.open .sidebar { transform: none; }
  .app.open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 25; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; }
  .content { padding: 16px; }
}
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; }
  .topbar h1 { font-size: 17px; }
  .topbar .acts { width: 100%; justify-content: flex-start; }
  .topbar .acts .btn .lbl-long { display: none; }
}

/* ---- componentes ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; min-height: 38px; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: var(--hover); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0B141A; font-weight: 600; }
.btn.primary:hover { background: var(--accent-h); border-color: var(--accent-h); color: #0B141A; }
.btn.danger { color: #FF8A8D; border-color: #5a2a2d; }
.btn.danger:hover { background: #3a1d20; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.sm { padding: 4px 10px; min-height: 30px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.icon { padding: 8px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 14px; flex-wrap: wrap; }
.card > header h2 { display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
.stack > * + * { margin-top: var(--gap); }

.kpi { display: block; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; transition: border-color .15s, background .15s; }
a.kpi:hover { border-color: var(--accent); background: var(--hover); text-decoration: none; color: var(--text); }
.kpi .lbl { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi .val { font-size: 24px; font-weight: 650; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12px; color: var(--muted); }
.kpi.warn .val { color: var(--warn); } .kpi.err .val { color: #FF8A8D; } .kpi.ok .val { color: var(--accent-h); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; line-height: 1.6; }
.badge svg.i { width: 13px; height: 13px; vertical-align: 0; }
.b-ok { background: rgba(0,168,132,.14); color: #3EE0B5; border-color: rgba(0,168,132,.35); }
.b-warn { background: rgba(240,180,41,.12); color: #F7C955; border-color: rgba(240,180,41,.35); }
.b-err { background: rgba(229,72,77,.13); color: #FF8A8D; border-color: rgba(229,72,77,.4); }
.b-info { background: rgba(83,189,235,.12); color: #7FD0F2; border-color: rgba(83,189,235,.35); }
.b-mut { background: rgba(134,150,160,.12); color: #AEBAC1; border-color: rgba(134,150,160,.3); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid; font-size: 14px; }
.alert.warn { background: rgba(240,180,41,.08); border-color: rgba(240,180,41,.4); color: #F7D27A; }
.alert.err { background: rgba(229,72,77,.08); border-color: rgba(229,72,77,.45); color: #FFA3A5; }
.alert.ok { background: rgba(0,168,132,.08); border-color: rgba(0,168,132,.4); color: #7EE8CB; }
.alert.info { background: rgba(83,189,235,.07); border-color: rgba(83,189,235,.35); color: #A5DDF5; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.alerts > * + * { margin-top: 8px; }

/* tabelas (viram cartões no celular) */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.link { cursor: pointer; transition: background .12s; }
.tbl tr.link:hover, .tbl tr.link:focus-visible { background: var(--hover); outline: none; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 600; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  table.tbl.cards thead { display: none; }
  table.tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr { border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 10px; padding: 6px 4px; background: var(--card); }
  .tbl.cards td { border: 0; padding: 4px 10px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tbl.cards td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; flex: none; }
  .tbl.cards td.num { text-align: right; }
  .tbl.cards tfoot { display: block; }
}
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.empty svg.i { width: 28px; height: 28px; display: block; margin: 0 auto 8px; opacity: .6; }

/* formulários */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form .full { grid-column: 1 / -1; }
.form h3 { grid-column: 1 / -1; margin-top: 8px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
.field label .req { color: var(--warn); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
input, select, textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; font: inherit; min-height: 40px; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(0,168,132,.2); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); vertical-align: -3px; }
input[type="file"] { padding: 7px; }
textarea { min-height: 80px; resize: vertical; }
::-webkit-calendar-picker-indicator { filter: invert(.75); cursor: pointer; }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.filters .field { min-width: 150px; }
.filters .field.grow { flex: 1; min-width: 200px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.seg button { background: var(--card); color: var(--muted); border: 0; padding: 8px 14px; font: inherit; font-weight: 500; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--text); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* modal */
dialog { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow); }
dialog.wide { width: min(1100px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(5,10,13,.7); }
dialog[open] { animation: pop .16s ease-out; display: flex; flex-direction: column; }
@keyframes pop { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 12px; }
.dlg-head h2 { font-size: 17px; }
.dlg-body { padding: 20px; overflow-y: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pdf-frame { width: 100%; height: 72vh; border: 1px solid var(--line); border-radius: var(--r-sm); background: #525659; }

/* toast */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: var(--r-sm); box-shadow: var(--shadow); animation: fade .2s; max-width: 420px; display: flex; gap: 8px; }
.toast.err { border-left-color: var(--err); }
.toast.warn { border-left-color: var(--warn); }

/* listas */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.list .s { font-size: 13px; color: var(--muted); }
.list a.row { display: flex; gap: 12px; align-items: center; color: var(--text); flex: 1; min-width: 0; }
.list a.row:hover { text-decoration: none; }
.list a.row:hover .t { color: var(--accent-h); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.timeline li { padding: 6px 0 6px 16px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.money-table td { padding: 6px 0; }
.money-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.money-table tr.total td { border-top: 1px solid var(--line); font-weight: 650; padding-top: 10px; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); }

/* agenda */
.cal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-head .title { font-size: 18px; font-weight: 600; min-width: 180px; }
.cal-head .title::first-letter { text-transform: uppercase; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cal .dow { background: var(--side); color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; padding: 8px 4px; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.cal .day { min-height: 108px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); min-width: 0; cursor: pointer; transition: background .12s; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day:hover { background: var(--hover); }
.cal .day.out { background: #1a252b; color: var(--muted); }
.cal .day.today .n { background: var(--accent); color: #0B141A; }
.cal .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.cal.mini .day { min-height: 74px; }
.ev { display: flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 6px; border-radius: 6px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); border-left: 3px solid; background: rgba(255,255,255,.04); }
.ev:hover { text-decoration: none; filter: brightness(1.25); color: var(--text); }
.ev svg.i { width: 12px; height: 12px; }
.ev.t-reserva { border-color: var(--accent); background: rgba(0,168,132,.16); }
.ev.t-reserva.s-proposta, .ev.t-reserva.s-pre_vencida { border-color: var(--muted); background: rgba(134,150,160,.12); border-left-style: dashed; }
.ev.t-reserva.s-pre_reserva { border-color: var(--warn); background: rgba(240,180,41,.12); }
.ev.t-reserva.s-cancelada { border-color: var(--err); background: transparent; text-decoration: line-through; opacity: .7; }
.ev.t-visita { border-color: var(--info); background: rgba(83,189,235,.12); }
.ev.t-visita.s-cancelada, .ev.t-visita.s-nao_compareceu { opacity: .6; text-decoration: line-through; }
.ev.t-manutencao { border-color: var(--warn); background: rgba(240,180,41,.08); }
.ev.t-bloqueio { border-color: var(--err); background: repeating-linear-gradient(135deg, rgba(229,72,77,.14) 0 6px, rgba(229,72,77,.06) 6px 12px); }
.ev.pay-atrasado { box-shadow: inset -4px 0 0 var(--err); }
.ev.pay-pendente, .ev.pay-parcial { box-shadow: inset -4px 0 0 var(--warn); }
.ev.prep { opacity: .75; font-style: italic; }
.more { font-size: 11px; color: var(--muted); padding: 2px 6px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week .col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); min-height: 300px; padding: 8px; min-width: 0; }
.week .col.today { border-color: var(--accent); }
.week .col h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); text-transform: capitalize; font-weight: 600; }
.week .ev { white-space: normal; display: block; padding: 6px 8px; }
@media (max-width: 900px) { .week { grid-template-columns: 1fr; } .week .col { min-height: 0; } .cal .day { min-height: 70px; } .cal .ev span.txt { display: none; } }
.dayview .slot { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); }
.dayview .slot:last-child { border-bottom: 0; }
@media (max-width: 640px) { .dayview .slot { grid-template-columns: 1fr; gap: 4px; } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border-left: 3px solid; }

/* login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(1000px 500px at 20% -10%, rgba(0,92,75,.35), transparent), var(--bg); }
.auth .card { width: min(420px, 100%); padding: 28px; }
.auth h1 { font-size: 22px; margin: 14px 0 4px; }
.auth form > * + * { margin-top: 14px; }

@media print { .sidebar, .topbar, #toasts { display: none !important; } body { background: #fff; color: #000; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* celular: indicadores em 2 colunas e ações do cabeçalho compactas */
@media (max-width: 640px) {
  .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; }
  .kpi .val { font-size: 18px; }
  .kpi .lbl { font-size: 12px; }
  .topbar .acts .btn { padding: 5px 10px; min-height: 32px; font-size: 13px; }
  .card { padding: 14px; }
}

/* ---- agenda de eventos por mês ---- */
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span-m2 { grid-column: span 2; } }
.mes + .mes { margin-top: 26px; }
.mes-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 2px 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.mes-h h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-h); }
.evlist { display: grid; gap: 10px; }
.evcard { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: var(--r); padding: 14px 16px; transition: border-color .15s, background .15s; }
.evcard:hover { background: var(--hover); }
.evcard.sit-pendente { border-left-color: var(--warn); }
.evcard.sit-quitado { border-left-color: var(--accent); }
.evcard.sit-gratuito { border-left-color: var(--muted); }
.evcard.sit-cancelado { border-left-color: var(--err); opacity: .7; }
.evdate { text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px; line-height: 1.1; }
.evdate b { display: block; font-size: 24px; font-weight: 700; }
.evdate span { display: block; font-size: 12px; text-transform: uppercase; color: var(--accent-h); font-weight: 600; margin-top: 2px; }
.evdate small { display: block; font-size: 11px; color: var(--muted); text-transform: capitalize; margin-top: 2px; }
.evtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.evtop h3 { font-size: 16px; color: var(--text); text-transform: none; letter-spacing: 0; }
.evmeta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.evmeta > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.evmeta svg.i { width: 14px; height: 14px; }
.evfin { display: flex; gap: 22px; margin: 10px 0 0; flex-wrap: wrap; }
.evfin dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.evfin dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.evfin dd.pend { color: var(--warn); }
.evclean { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.evclean svg.i { width: 14px; height: 14px; }
.evact { display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: center; }
.disponivel { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px; margin-bottom: 12px; border: 1px dashed var(--accent); border-radius: var(--r); color: var(--accent-h); font-weight: 700; letter-spacing: .08em; background: rgba(0,168,132,.06); }
@media (max-width: 760px) {
  .evcard { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .evbody { min-width: 0; overflow-wrap: anywhere; }
  .evclean { flex-wrap: wrap; }
  .evdate b { font-size: 20px; }
  .evact { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .evfin .m-hide, .evmeta > span:first-child { display: none; }
  .evfin dd { font-size: 16px; }
}

.cal .day.busy { background: linear-gradient(0deg, rgba(83,189,235,.08), rgba(83,189,235,.08)), var(--card); box-shadow: inset 0 3px 0 rgba(83,189,235,.55); }

.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { white-space: nowrap; flex: none; }

.secao-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.secao-h h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; }

/* Indicador discreto de autoria, também acessível por toque. */
.autoria-btn{display:inline-flex;vertical-align:middle;margin-left:6px;min-width:32px;min-height:32px;padding:6px;flex-shrink:0}
@media(max-width:600px){.autoria-btn{min-width:40px;min-height:40px}}
