/* ==========================================================
   Reconstruindo Mulheres — Gestão Social
   Folha de estilos do sistema (baseada na identidade do site)
   ========================================================== */
:root {
  --rosa: #c93a72;
  --rosa-escuro: #a52a5a;
  --rosa-suave: #f9e3e6;
  --rosa-quase-branco: #fdf3f4;
  --vinho: #5b1f3d;

  --tinta: #261c22;
  --texto: #3c3138;
  --texto-suave: #6b5d65;
  --linha: #ecdde1;
  --papel: #fffdfc;
  --fundo: #faf6f7;
  --branco: #ffffff;

  --eixo-1: #7b5ea7;
  --eixo-2: #2f5fa8;
  --eixo-3: #11805f;
  --eixo-4: #0f6670;
  --eixo-5: #b5532f;

  --ok: #11805f;   --ok-bg: #e3f4ee;
  --aviso: #8a5a00; --aviso-bg: #fdf1d8;
  --erro: #b42318; --erro-bg: #fde8e7;
  --info: #2f5fa8; --info-bg: #e6eefa;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --raio: 16px;
  --raio-p: 10px;
  --sombra: 0 1px 2px rgba(60, 20, 40, .05), 0 12px 32px -16px rgba(60, 20, 40, .22);
  --sidebar-w: 264px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55;
  color: var(--texto); background: var(--fundo); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--rosa-escuro); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--tinta); line-height: 1.2; margin: 0 0 .5em; font-weight: 500; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--vinho); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 999; background: var(--tinta); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--texto-suave); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--rosa); --fg: #fff; --bd: var(--rosa);
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: 700 .92rem/1 var(--sans); padding: .72rem 1.15rem; min-height: 42px; border-radius: 999px;
  border: 2px solid var(--bd); background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s, transform .15s; white-space: nowrap;
}
.btn:hover { --bg: var(--rosa-escuro); --bd: var(--rosa-escuro); box-shadow: 0 8px 18px -10px rgba(165, 42, 90, .6); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn--ghost { --bg: transparent; --fg: var(--rosa-escuro); --bd: var(--rosa); }
.btn--ghost:hover { --bg: var(--rosa-suave); --fg: var(--vinho); --bd: var(--rosa); }
.btn--neutral { --bg: #fff; --fg: var(--texto); --bd: var(--linha); }
.btn--neutral:hover { --bg: var(--rosa-quase-branco); --fg: var(--tinta); --bd: var(--rosa-suave); box-shadow: none; }
.btn--danger { --bg: var(--erro); --bd: var(--erro); }
.btn--danger:hover { --bg: #8f1c13; --bd: #8f1c13; }
.btn--ok { --bg: var(--ok); --bd: var(--ok); }
.btn--ok:hover { --bg: #0b6249; --bd: #0b6249; }
.btn--sm { padding: .45rem .8rem; min-height: 34px; font-size: .84rem; }
.btn--block { width: 100%; }
.btn--icon { padding: .45rem; min-width: 38px; min-height: 38px; }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; border-color: currentColor; border-right-color: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--rosa-escuro); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Formulários ---------- */
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .9rem 1rem; }
.form-grid > .field { grid-column: span 12; }
@media (min-width: 720px) {
  .form-grid > .span-6 { grid-column: span 6; }
  .form-grid > .span-4 { grid-column: span 4; }
  .form-grid > .span-3 { grid-column: span 3; }
  .form-grid > .span-8 { grid-column: span 8; }
}
.form-section { grid-column: span 12; font-family: var(--serif); font-size: 1.05rem; color: var(--vinho); margin: .6rem 0 0; padding-top: .6rem; border-top: 1px solid var(--linha); }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field label, .field .label { font-weight: 700; font-size: .86rem; color: var(--tinta); }
.field .req { color: var(--erro); }
.field .hint { font-size: .8rem; color: var(--texto-suave); }
.field .error { font-size: .82rem; color: var(--erro); font-weight: 600; }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; padding: .62rem .8rem; min-height: 42px; border: 1.5px solid #dccbd1; border-radius: var(--raio-p);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--rosa); box-shadow: 0 0 0 3px rgba(201, 58, 114, .18);
}
.field [aria-invalid="true"] { border-color: var(--erro); }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--rosa); }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.input-group { position: relative; display: flex; }
.input-group input { padding-right: 3rem; }
.input-group .addon { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.25rem; box-shadow: var(--sombra); }
.card + .card { margin-top: 1rem; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.card-header h2, .card-header h3 { margin: 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-stats { grid-template-columns: repeat(auto-fill, minmax(min(190px, 42vw), 1fr)); }
.stat { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 1rem 1.1rem; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: .2rem; text-decoration: none; color: inherit; }
a.stat:hover { border-color: var(--rosa); }
.stat .stat-label { font-size: .82rem; font-weight: 700; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .04em; }
.stat .stat-value { font-family: var(--serif); font-size: 2rem; color: var(--tinta); line-height: 1.1; }
.stat .stat-note { font-size: .8rem; color: var(--texto-suave); }
.stat--alert .stat-value { color: var(--erro); }
.stat--accent { background: var(--rosa-quase-branco); border-color: var(--rosa-suave); }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--linha); border-radius: var(--raio-p); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--linha); vertical-align: top; }
.table th { background: var(--rosa-quase-branco); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--vinho); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fffafb; }
.table td.actions { white-space: nowrap; text-align: right; }
.table td.tx-actions-cell { min-width: 230px; }
.tx-actions { justify-content: flex-start; gap: .35rem; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Etiquetas ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: var(--rosa-suave); color: var(--vinho); white-space: nowrap; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--aviso { background: var(--aviso-bg); color: var(--aviso); }
.badge--erro { background: var(--erro-bg); color: var(--erro); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--neutro { background: #efe9eb; color: var(--texto); }
.eixo { color: #fff; }
.eixo-e1 { background: var(--eixo-1); } .eixo-e2 { background: var(--eixo-2); } .eixo-e3 { background: var(--eixo-3); }
.eixo-e4 { background: var(--eixo-4); } .eixo-e5 { background: var(--eixo-5); }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; }

/* ---------- Avisos ---------- */
.alert { padding: .8rem 1rem; border-radius: var(--raio-p); border: 1px solid; font-size: .9rem; display: flex; gap: .6rem; align-items: flex-start; }
.alert--erro { background: var(--erro-bg); border-color: #f5c2bd; color: #7a1a12; }
.alert--ok { background: var(--ok-bg); border-color: #b5e1d1; color: #0b513d; }
.alert--aviso { background: var(--aviso-bg); border-color: #f2d699; color: #5e3e00; }
.alert--info { background: var(--info-bg); border-color: #c3d4f1; color: #1d3f75; }

/* ---------- Estados ---------- */
.spinner { width: 28px; height: 28px; border: 3px solid var(--rosa-suave); border-right-color: var(--rosa); border-radius: 50%; animation: girar .8s linear infinite; display: inline-block; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } * { transition: none !important; } }
.loading { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 2.5rem 1rem; color: var(--texto-suave); }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--texto-suave); }
.empty .empty-icon { width: 56px; height: 56px; margin: 0 auto .8rem; border-radius: 50%; background: var(--rosa-suave); color: var(--rosa-escuro); display: grid; place-items: center; }
.empty h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--tinta); margin-bottom: .3rem; }

/* ---------- Toasts ---------- */
.toasts { pointer-events: none; position: fixed; right: 1rem; bottom: 1rem; z-index: 1000; display: flex; flex-direction: column; gap: .5rem; max-width: min(420px, calc(100vw - 2rem)); }
.toast { background: var(--tinta); color: #fff; padding: .8rem 1rem; border-radius: 12px; box-shadow: var(--sombra); display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; animation: entrar .2s ease-out; }
.toast--ok { background: #0b513d; } .toast--erro { background: #8f1c13; } .toast--aviso { background: #5e3e00; }
.toast button { pointer-events: auto; margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1; }
@keyframes entrar { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Modal ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--raio); width: min(720px, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); box-shadow: 0 30px 80px -20px rgba(40, 10, 25, .45); color: var(--texto); }
dialog.modal--sm { width: min(460px, calc(100vw - 1.5rem)); }
dialog.modal--lg { width: min(980px, calc(100vw - 1.5rem)); }
dialog.modal::backdrop { background: rgba(38, 28, 34, .55); }
.modal-inner { display: flex; flex-direction: column; max-height: calc(100vh - 2rem); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--linha); }
.modal-head h2 { margin: 0; font-size: 1.2rem; }
.modal-body { padding: 1.25rem; overflow-y: auto; }
.modal-foot { padding: .9rem 1.25rem; border-top: 1px solid var(--linha); display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; background: var(--rosa-quase-branco); border-radius: 0 0 var(--raio) var(--raio); }
.close-x { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--texto-suave); padding: .2rem .4rem; border-radius: 8px; }
.close-x:hover { background: var(--rosa-suave); color: var(--vinho); }

/* ---------- Telas de autenticação ---------- */
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem; background: linear-gradient(160deg, var(--rosa-suave) 0%, var(--rosa-quase-branco) 45%, var(--papel) 100%); }
.auth-card { width: min(440px, 100%); background: #fff; border-radius: 24px; padding: 2rem 1.75rem; box-shadow: var(--sombra); border: 1px solid var(--linha); }
.auth-card .logo { margin: 0 auto 1rem; width: 220px; border-radius: 12px; }
.auth-card h1 { text-align: center; font-size: 1.45rem; margin-bottom: .2rem; }
.auth-card .subtitle { text-align: center; color: var(--texto-suave); margin-bottom: 1.4rem; }
.auth-card form { display: flex; flex-direction: column; gap: .9rem; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .9rem; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--texto-suave); font-size: .82rem; margin: .2rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--linha); }
.btn-google { --bg: #fff; --fg: var(--tinta); --bd: #dccbd1; }
.btn-google:hover { --bg: var(--rosa-quase-branco); --fg: var(--tinta); --bd: var(--rosa); box-shadow: none; }
.auth-status { text-align: center; }
.auth-status .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--rosa-suave); color: var(--rosa-escuro); margin: 0 auto 1rem; display: grid; place-items: center; }

/* ---------- Layout do sistema ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--linha); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; z-index: 50; }
.sidebar .brand { padding: 1rem 1.1rem; border-bottom: 1px solid var(--linha); background: var(--rosa-suave); }
.sidebar .brand img { width: 100%; max-width: 200px; border-radius: 8px; }
.sidebar .brand small { display: block; margin-top: .45rem; color: var(--vinho); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.nav { padding: .8rem .6rem 1.2rem; display: flex; flex-direction: column; gap: .15rem; }
.nav .nav-group { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-suave); padding: .9rem .75rem .35rem; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: 10px; color: var(--texto); text-decoration: none; font-weight: 600; }
.nav a svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--texto-suave); }
.nav a:hover { background: var(--rosa-quase-branco); color: var(--tinta); }
.nav a[aria-current="page"] { background: var(--rosa-suave); color: var(--vinho); }
.nav a[aria-current="page"] svg { color: var(--rosa); }
.nav .count { margin-left: auto; background: var(--rosa); color: #fff; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: .1rem .45rem; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--header-h); background: rgba(255, 253, 252, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linha); display: flex; align-items: center; gap: .8rem; padding: 0 1.25rem; position: sticky; top: 0; z-index: 40; }
.topbar .menu-btn { display: none; }
.topbar .spacer { flex: 1; }
.topbar .user { display: flex; align-items: center; gap: .6rem; }
.topbar .user .who { text-align: right; line-height: 1.2; }
.topbar .user .who strong { display: block; font-size: .88rem; color: var(--tinta); }
.topbar .user .who span { font-size: .76rem; color: var(--texto-suave); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--rosa); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.bell { position: relative; }
.bell .dot { position: absolute; top: -2px; right: -2px; background: var(--erro); color: #fff; font-size: .68rem; font-weight: 800; border-radius: 999px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.content { padding: 1.5rem 1.25rem 3rem; width: 100%; max-width: 1320px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.page-head .lead { margin: .2rem 0 0; color: var(--texto-suave); }
.breadcrumb { font-size: .84rem; margin-bottom: .3rem; }
.breadcrumb a { text-decoration: none; font-weight: 600; }
.sidebar-backdrop { display: none; }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(300px, 86vw); transform: translateX(-100%); transition: transform .22s; box-shadow: var(--sombra); }
  .sidebar.is-open { transform: none; }
  .sidebar-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(38, 28, 34, .45); z-index: 45; }
  .topbar .menu-btn { display: inline-flex; }
  .topbar .user .who { display: none; }
  .content { padding: 1rem .8rem 3rem; }
  h1 { font-size: 1.45rem; }
  .stat { padding: .8rem; }
  .stat .stat-value { font-size: 1.5rem; }
  .stat .stat-label { font-size: .72rem; }
  .page-head .btn-row { width: 100%; }
}

/* ---------- Filtros / barras ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: 1rem; }
.toolbar .field { min-width: 160px; flex: 1 1 160px; }
.toolbar .field.grow { flex: 3 1 240px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; font-size: .88rem; color: var(--texto-suave); }

/* ---------- Abas ---------- */
.tabs { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 1px solid var(--linha); margin-bottom: 1.1rem; scrollbar-width: thin; }
.tabs a, .tabs button { padding: .7rem .95rem; border: 0; background: none; font-weight: 700; color: var(--texto-suave); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; cursor: pointer; }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--vinho); border-bottom-color: var(--rosa); }
.tabs a:hover, .tabs button:hover { color: var(--tinta); }

/* ---------- Perfil ---------- */
.profile-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.profile-head .avatar { width: 58px; height: 58px; font-size: 1.3rem; }
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem 1.2rem; margin: 0; }
.dl div { min-width: 0; }
.dl dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texto-suave); font-weight: 700; }
.dl dd { margin: .1rem 0 0; color: var(--tinta); overflow-wrap: anywhere; }

/* ---------- Linha do tempo ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.2rem; border-left: 2px solid var(--rosa-suave); }
.timeline li { position: relative; padding: 0 0 1.1rem .9rem; }
.timeline li::before { content: ""; position: absolute; left: -1.62rem; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--rosa); }
.timeline .when { font-size: .8rem; color: var(--texto-suave); font-weight: 700; }
.timeline .what { color: var(--tinta); font-weight: 700; }
.record { border: 1px solid var(--linha); border-radius: var(--raio-p); padding: .9rem 1rem; background: #fff; }
.record + .record { margin-top: .7rem; }
.record-head { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: .4rem; }
.record.is-superseded { opacity: .65; background: #fbf8f9; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Calendário ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--linha); border-radius: var(--raio-p); overflow: hidden; background: #fff; }
.cal .dow { background: var(--rosa-quase-branco); font-size: .74rem; font-weight: 800; text-transform: uppercase; color: var(--vinho); padding: .45rem; text-align: center; border-bottom: 1px solid var(--linha); }
.cal .day { min-height: 108px; border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); padding: .35rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.out { background: #fbf8f9; color: #b0a2a9; }
.cal .day.today .num { background: var(--rosa); color: #fff; }
.cal .num { font-size: .8rem; font-weight: 800; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.cal .ev { text-decoration: none; display: block; width: 100%; text-align: left; font-size: .74rem; font-weight: 700; padding: .15rem .35rem; border-radius: 6px; border: 0; cursor: pointer; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--rosa); }
.cal .ev.cancelada { text-decoration: line-through; opacity: .6; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.week .wday { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio-p); padding: .5rem; min-height: 180px; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.week .wday h3 { font-family: var(--sans); font-size: .82rem; font-weight: 800; margin: 0 0 .2rem; color: var(--vinho); }
.week .wday.today { border-color: var(--rosa); }
@media (max-width: 760px) {
  .cal .day { min-height: 64px; }
  .cal .ev { font-size: 0; height: 8px; padding: 0; }
  .week { grid-template-columns: 1fr; }
  .week .wday { min-height: auto; }
}

/* ---------- Painel ---------- */
.chart-box { position: relative; height: 280px; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: .6rem 0; border-bottom: 1px solid var(--linha); display: flex; justify-content: space-between; gap: .6rem; align-items: center; }
.list-plain li:last-child { border-bottom: 0; }

/* ---------- Alertas ---------- */
.alert-item { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--linha); }
.alert-item.is-read { opacity: .6; }
.alert-item .ai-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--rosa-suave); color: var(--rosa-escuro); }
.alert-item .ai-body { flex: 1; min-width: 0; }

/* ---------- Impressão ---------- */
@media print {
  .sidebar, .topbar, .toolbar, .btn, .toasts { display: none !important; }
  .app { display: block; }
  .card { box-shadow: none; }
}

/* ---------- Aviso de instalação (PWA) ---------- */
.install-banner { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 900;
  width: min(560px, calc(100vw - 1.5rem)); background: #fff; border: 1px solid var(--rosa-suave); border-radius: 18px;
  box-shadow: 0 20px 50px -18px rgba(60, 20, 40, .45); padding: .9rem 1rem; display: flex; gap: .8rem; align-items: center; animation: entrar .25s ease-out; }
.install-banner img { border-radius: 12px; flex-shrink: 0; }
.install-text { flex: 1; min-width: 0; font-size: .9rem; line-height: 1.4; }
.install-text strong:first-child { display: block; color: var(--tinta); font-size: .98rem; margin-bottom: .1rem; }
.install-text svg { display: inline; vertical-align: -2px; }
.install-actions { display: flex; flex-direction: column; gap: .4rem; }
@media (max-width: 520px) {
  .install-banner { flex-wrap: wrap; }
  .install-actions { flex-direction: row; width: 100%; }
  .install-actions .btn { flex: 1; min-height: 44px; }
}
.nav .nav-install { margin-top: .6rem; border: 1.5px dashed var(--rosa); color: var(--rosa-escuro); background: none; width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: 10px; font: inherit; font-weight: 700; }
.nav .nav-install:hover { background: var(--rosa-quase-branco); }
