/* =============================================================
   ANGLIS — Painel (dashboard)
   Depende de tokens.css (fonte da verdade da identidade).
   Demo estática · dados fictícios · desktop-first (1280×800 ok).
   ============================================================= */

body {
  font-size: .9375rem;
  line-height: 1.5;
}

/* ---- Logo (mesmo padrão da landing) --------------------------- */
.logo {
  font-family: var(--fonte-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -.01em;
  color: var(--tinta);
  margin: 0;
  padding: 4px 14px 0;
}
.logo-i { position: relative; }
.logo-i::after {
  content: "";
  position: absolute;
  width: .16em;
  height: .16em;
  border-radius: 30%;
  background: var(--azul);
  top: -.13em;
  left: 50%;
  transform: translateX(-50%);
}

/* ---- Reveals (mesmo padrão da landing — só com JS ativo) ------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-reveal) var(--ease-out),
              transform var(--t-reveal) var(--ease-out);
  transition-delay: var(--atraso, 0ms);
}
.js .reveal.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* =============================================================
   SIDEBAR — card flutuante 240px
   ============================================================= */
.sidebar {
  position: fixed;
  top: 16px;
  left: 16px;
  bottom: 16px;
  width: 240px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--r-lg);
  box-shadow: var(--sombra-1);
  padding: 20px 14px 18px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 28px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--tinta-2);
  transition: background var(--t-micro) var(--ease-padrao),
              color var(--t-micro) var(--ease-padrao);
}
.sidebar-item:hover { background: var(--papel); color: var(--tinta); }
.sidebar-item.ativo {
  background: var(--azul-wash);
  color: var(--azul-hover);
  font-weight: 600;
}
.sidebar-item svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-item svg .i-cheio { fill: currentColor; stroke: none; }

.sidebar-rodape {
  margin-top: auto;
  border-top: 1px solid var(--borda);
  padding: 16px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-cubi {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  line-height: 1.45;
  color: var(--tinta-3);
}
.sidebar-cubi canvas {
  width: 32px;
  height: 32px;
  flex: none;
  image-rendering: pixelated;
  border-radius: var(--r-xs);
}

/* =============================================================
   ÁREA PRINCIPAL
   ============================================================= */
.painel {
  margin-left: 272px;
  padding: 20px 24px 28px;
  max-width: 1248px; /* 1200px de conteúdo + 2×24px */
}

/* ---- Topbar --------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar h1 {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.topbar-saudacao .eyebrow { margin-bottom: 2px; display: block; }
.topbar-data { font-size: .8125rem; color: var(--tinta-3); margin-top: 2px; }
.topbar-acoes {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.busca {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 216px;
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--r-pill);
  padding: 10px 16px;
  font-size: .875rem;
  color: var(--tinta-3);
}
.busca svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.periodo {
  display: flex;
  gap: 2px;
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--r-pill);
  padding: 3px;
}
.periodo-pill {
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-family: var(--fonte-texto);
  font-size: var(--fs-btn);
  font-weight: 600;
  line-height: 1;
  color: var(--tinta-2);
  cursor: pointer;
  transition: background var(--t-micro) var(--ease-padrao),
              color var(--t-micro) var(--ease-padrao);
}
.periodo-pill:hover { color: var(--tinta); }
.periodo-pill.ativo { background: var(--azul); color: #fff; }
.sino {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--borda);
  background: var(--superficie);
  color: var(--tinta-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color var(--t-micro) var(--ease-padrao);
}
.sino:hover { border-color: var(--borda-forte); color: var(--tinta); }
.sino svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sino-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  border-radius: var(--r-pill);
  background: var(--vermelho-texto); /* 6,3:1 com branco — AA p/ texto pequeno */
  color: #fff;
  font-size: .6875rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--papel);
}
.sino-badge[hidden] { display: none; }

/* ---- Faixa de privacidade ------------------------------------- */
.faixa-privacidade {
  margin-top: 14px;
  background: var(--azul-wash);
  color: var(--azul-hover);
  border-radius: var(--r-pill);
  padding: 9px 18px;
  font-size: .8125rem;
}
.faixa-privacidade strong { font-weight: 600; }

/* =============================================================
   GRID DE WIDGETS
   ============================================================= */
.grade {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.c4  { grid-column: span 4; }
.c8  { grid-column: span 8; }
.c12 { grid-column: span 12; }
.card-dupla { grid-row: span 2; }

.card {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--r-lg);
  box-shadow: var(--sombra-1);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-cab {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card h2 {
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -.005em;
}
.card-meta {
  font-size: .75rem;
  color: var(--tinta-3);
  white-space: nowrap;
  padding-top: 3px;
}
.card-sub {
  font-size: .75rem;
  color: var(--tinta-3);
  margin: -8px 0 12px;
}
.card .eyebrow { display: block; margin-bottom: 2px; }

.num-grande {
  font-family: var(--fonte-display);
  font-weight: 600;
  font-size: 2.375rem;
  line-height: 1.1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.num-apoio {
  font-size: .8125rem;
  color: var(--tinta-2);
  margin-top: 4px;
}
.ok { color: var(--verde-texto); font-weight: 600; }
.micro {
  margin-top: auto;
  padding-top: 12px;
  font-size: .75rem;
  line-height: 1.55;
  color: var(--tinta-3);
}

/* ---- Chips de estado (versão compacta dos badges) -------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  flex: none;
}
.chip .ponto { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.chip-azul     { background: var(--azul-wash);     color: var(--azul-hover); }
.chip-azul .ponto     { background: var(--azul); }
.chip-ambar    { background: var(--ambar-wash);    color: var(--ambar-texto); }
.chip-ambar .ponto    { background: var(--ambar); }
.chip-vermelho { background: var(--vermelho-wash); color: var(--vermelho-texto); }
.chip-vermelho .ponto { background: var(--vermelho); }
.chip-vivo     { background: var(--verde-wash);    color: var(--verde-texto); }
.chip-vivo .ponto     { background: var(--verde); }
.chip-neutro   { background: var(--papel-2);       color: var(--tinta-2); }
.ponto-vivo { animation: pulso 2s var(--ease-padrao) infinite; }

/* ---- Avatares (iniciais — nunca fotos) ------------------------- */
.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--papel-2);
  color: var(--tinta-2);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  flex: none;
}
.avatar-mini { width: 26px; height: 26px; font-size: .625rem; }

/* ---- Botões compactos ------------------------------------------ */
.btn-mini { padding: 9px 16px; }

/* =============================================================
   W1 · VISÃO DA CASA AGORA
   ============================================================= */
.casa {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.donut-bloco {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.donut-wrap { position: relative; width: 164px; height: 164px; }
.donut { width: 100%; height: 100%; display: block; }
.donut-trilha { fill: none; stroke: var(--papel-2); stroke-width: 16; }
.donut-seg {
  fill: none;
  stroke-width: 16;
  transition: stroke-dasharray 800ms var(--ease-out),
              stroke-dashoffset 800ms var(--ease-out);
}
.seg-azul     { stroke: var(--azul); }
.seg-ambar    { stroke: var(--ambar); }
.seg-vermelho { stroke: var(--vermelho); }
.donut-centro {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.donut-centro .num-grande { font-size: 2rem; }
.donut-rotulo { font-size: .75rem; color: var(--tinta-3); }
.donut-legenda {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.donut-legenda .badge-estado { padding: 4px 12px; font-size: .75rem; }

.excecoes {
  flex: 1;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.excecao {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 12px;
  border: 1px solid var(--borda);
  border-radius: var(--r-sm);
  background: var(--superficie);
}
.excecao-ambar    { background: var(--ambar-wash);    border-color: var(--ambar-glow); }
/* borda sólida vermelha = fallback visual quando os pulsos param */
.excecao-vermelho { background: var(--vermelho-wash); border: 1px solid var(--vermelho); }
.excecao-info { flex: 1 1 200px; min-width: 0; }
.excecao-nome { font-size: .875rem; font-weight: 600; line-height: 1.35; }
.excecao-quarto { color: var(--tinta-3); font-weight: 500; }
.excecao-desc { font-size: .8125rem; color: var(--tinta-2); line-height: 1.4; }
.excecao .chip { margin-left: auto; }

.atribuir {
  position: relative;
  flex-basis: 100%;
  display: flex;
  justify-content: flex-end;
}
.menu-equipe {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 232px;
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--r-md);
  box-shadow: var(--sombra-2);
  padding: 8px;
}
.menu-titulo {
  font-size: .6875rem;
  font-weight: 600;
  color: var(--tinta-3);
  padding: 4px 12px 6px;
}
.menu-equipe button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: none;
  border-radius: var(--r-pill);
  padding: 8px 12px;
  font-family: var(--fonte-texto);
  font-size: var(--fs-btn);
  font-weight: 600;
  color: var(--tinta);
  text-align: left;
  cursor: pointer;
  transition: background var(--t-micro) var(--ease-padrao),
              color var(--t-micro) var(--ease-padrao);
}
.menu-equipe button:hover {
  background: var(--azul-wash);
  color: var(--azul-hover);
}

/* =============================================================
   W2 · ALERTAS AO VIVO
   ============================================================= */
.feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.alerta {
  border: 1px solid var(--borda);
  border-radius: var(--r-sm);
  background: var(--superficie);
  flex: none;
}
/* alerta vivo: borda sólida vermelha = fallback sem animação */
.alerta-aberto      { background: var(--vermelho-wash); border: 1px solid var(--vermelho); }
.alerta-atendimento { background: var(--ambar-wash);    border-color: var(--ambar-glow); }

.alerta summary {
  display: grid;
  grid-template-columns: 9px 42px minmax(0, 1fr) 10px;
  align-items: start;
  gap: 9px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}
.alerta summary .alerta-nivel { margin-top: 5px; }
.alerta summary .alerta-caret { margin-top: 4px; }
.alerta summary::-webkit-details-marker { display: none; }
.alerta summary:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
/* o Ponto — marcador da marca: quadradinho arredondado */
.alerta-nivel { width: 9px; height: 9px; border-radius: 30%; }
.nivel-vermelho .alerta-nivel { background: var(--vermelho); }
.nivel-ambar    .alerta-nivel { background: var(--ambar); }
.alerta-hora {
  display: flex;
  flex-direction: column;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.2;
}
.alerta-hora small {
  font-size: .625rem;
  font-weight: 500;
  color: var(--tinta-3);
}
.alerta-corpo { min-width: 0; }
.alerta-corpo strong { display: block; font-size: .8125rem; font-weight: 600; line-height: 1.35; }
.alerta-meta { display: block; font-size: .71875rem; color: var(--tinta-2); line-height: 1.4; }
.alerta-status { display: block; margin-top: 6px; }
.alerta-status .chip { padding: 3px 9px; font-size: .6875rem; }
.alerta-caret {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--tinta-3);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--t-ui) var(--ease-padrao);
}
.alerta[open] .alerta-caret { transform: rotate(180deg); }

@keyframes alerta-entra {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}
.entra { animation: alerta-entra 500ms var(--ease-out) both; }

.linha-tempo {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 4px 12px 12px;
  border-top: 1px solid var(--borda);
}
.alerta-aberto .linha-tempo      { border-top-color: var(--vermelho-wash); }
.alerta-atendimento .linha-tempo { border-top-color: var(--ambar-glow); }
.linha-tempo::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--borda);
}
.lt {
  display: grid;
  grid-template-columns: 14px 42px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  font-size: .71875rem;
  line-height: 1.4;
}
.lt-ponto {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 30%;
  background: var(--azul);
  justify-self: center;
  margin-top: 3px;
  box-shadow: 0 0 0 2px var(--superficie);
}
.lt-hora { font-weight: 600; color: var(--tinta-2); }
.lt-info { display: flex; flex-direction: column; }
.lt-info strong { font-weight: 600; color: var(--tinta); }
.lt-info span { color: var(--tinta-2); }
.lt-pendente .lt-ponto { background: var(--superficie); border: 2px solid var(--borda-forte); }
.lt-pendente .lt-hora,
.lt-pendente .lt-info strong,
.lt-pendente .lt-info span { color: var(--tinta-3); }

/* =============================================================
   W3 · MAPA DE QUARTOS
   ============================================================= */
.mapa {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ala-cab {
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
}
.ala-cab span { color: var(--tinta-3); font-weight: 500; font-size: .71875rem; }
.ala-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.tile {
  height: 34px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: .8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tile-azul  { background: var(--azul-wash);  color: var(--azul-hover); }
.tile-ambar {
  background: var(--ambar-wash);
  color: var(--ambar-texto);
  box-shadow: inset 0 0 0 1px var(--ambar-glow);
}
.tile-vermelho {
  background: var(--vermelho-texto); /* 6,3:1 com branco — AA p/ texto pequeno */
  color: #fff;
  box-shadow: 0 0 0 1px var(--vermelho); /* contorno sólido = fallback sem animação */
}
.mapa-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.mapa-legenda .badge-estado { padding: 4px 12px; font-size: .75rem; }

/* =============================================================
   GRÁFICOS (SVG feitos à mão)
   ============================================================= */
.grafico {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 10px;
  overflow: visible;
}
.grafico text {
  font-family: var(--fonte-texto);
  font-size: 11px;
  fill: var(--tinta-3);
  font-variant-numeric: tabular-nums;
}
.grafico .g-rotulo-forte { fill: var(--tinta-2); font-weight: 600; }
.g-grade { stroke: var(--borda); stroke-width: 1; }
.g-eixo  { stroke: var(--borda-forte); stroke-width: 1; }
.g-media { stroke: var(--borda-forte); stroke-width: 1; stroke-dasharray: 4 4; }
.g-linha-azul  { fill: none; stroke: var(--azul);  stroke-width: 2; stroke-linecap: round; }
.g-linha-verde { fill: none; stroke: var(--verde); stroke-width: 2; stroke-linecap: round; }
.g-area { fill: var(--azul-wash); }
.g-ponto       { fill: var(--azul); }   /* o Ponto — quadradinho arredondado */
.g-ponto-verde { fill: var(--verde); }
.g-barra { fill: var(--azul); }
.g-barra-parcial { fill: var(--azul-wash); stroke: var(--azul-borda); stroke-width: 1; }
.hm-cel { fill: var(--azul); }

.grafico-chave {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .71875rem;
  color: var(--tinta-2);
  margin-top: -4px;
}
.chave-bloco {
  width: 10px;
  height: 10px;
  border-radius: 30%;
  background: var(--azul);
  flex: none;
}
.chave-linha {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--verde);
  flex: none;
  margin-left: 6px;
}
.chave-nota { color: var(--tinta-3); }

/* =============================================================
   W6 · PRECISÃO
   ============================================================= */
.precisao-lista {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.precisao-lista li {
  border-top: 1px solid var(--borda);
  padding-top: 10px;
}
.precisao-valor {
  font-family: var(--fonte-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
}
.precisao-un { font-size: .8125rem; font-weight: 400; color: var(--tinta-2); font-family: var(--fonte-texto); }
.precisao-rotulo { font-size: .75rem; color: var(--tinta-2); margin-top: 2px; }

/* =============================================================
   W8 · SONO
   ============================================================= */
.sono-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: .75rem;
  color: var(--tinta-2);
}
.sono-stats strong { color: var(--tinta); font-weight: 600; }
.sono-parcial { color: var(--ambar-texto); }
.sono-parcial strong { color: var(--ambar-texto); }
.watchlist {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.watchlist li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .75rem;
  color: var(--tinta-2);
  line-height: 1.4;
}
.watchlist strong { color: var(--tinta); font-weight: 600; }
.tendencia { color: var(--ambar-texto); font-weight: 600; }
.nota-sensor {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--borda);
  font-size: .75rem;
  color: var(--tinta-3);
}

/* =============================================================
   W9 · RONDAS E PLANTÃO
   ============================================================= */
.ronda-titulo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: .8125rem;
  font-weight: 600;
}
.rondas {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  gap: 6px;
}
.ronda {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: .6875rem;
  color: var(--tinta-3);
}
.ronda-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--azul-wash);
  border: 1px solid var(--azul-borda);
}
.ronda-check svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: var(--azul);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ronda-pendente .ronda-check {
  background: var(--superficie);
  border: 1px dashed var(--borda-forte);
}
.equipe-rotulo {
  font-size: .6875rem;
  font-weight: 600;
  color: var(--tinta-3);
  margin-top: 12px;
}
.equipe {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}
.equipe li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--tinta-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.equipe-encerrada { opacity: .55; }
.divisor {
  border: 0;
  border-top: 1px solid var(--borda);
  margin: 14px 0;
}

/* =============================================================
   W10 · RESUMO SEMANAL
   ============================================================= */
.card-resumo .card-cab { margin-bottom: 12px; align-items: center; }
.resumo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.resumo-item { border-left: 1px solid var(--borda); padding-left: 14px; min-width: 0; }
.resumo-item:first-child { border-left: 0; padding-left: 0; }
.resumo-rotulo { font-size: .75rem; color: var(--tinta-3); }
.resumo-valor {
  font-family: var(--fonte-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.25;
  margin-top: 2px;
}
.resumo-un { font-size: .8125rem; font-weight: 400; color: var(--tinta-2); font-family: var(--fonte-texto); }
.resumo-nota { font-size: .71875rem; color: var(--tinta-2); line-height: 1.45; margin-top: 3px; }

/* =============================================================
   RODAPÉ + TOAST
   ============================================================= */
.rodape {
  margin-top: 24px;
  text-align: center;
  font-size: .8125rem;
  color: var(--tinta-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  transform: translate(-50%, 12px);
  background: var(--tinta);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 11px 22px;
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--sombra-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-ui) var(--ease-padrao),
              transform var(--t-ui) var(--ease-padrao);
}
.toast.mostra { opacity: 1; transform: translate(-50%, 0); }

/* =============================================================
   RESPONSIVO (fallback simples — o painel é desktop-first)
   ============================================================= */
@media (max-width: 1100px) {
  .sidebar {
    position: static;
    width: auto;
    margin: 16px 16px 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
  }
  .sidebar-nav, .sidebar-cubi { display: none; }
  .sidebar-rodape { margin: 0; border: 0; padding: 0; }
  .painel { margin-left: 0; }
  .c8, .c4 { grid-column: span 12; }
  .card-dupla { grid-row: auto; }
  .resumo-grid { grid-template-columns: repeat(3, 1fr); }
  .busca { display: none; }
}
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; }
  .casa { flex-direction: column; align-items: center; }
  .excecoes { width: 100%; }
  .mapa { grid-template-columns: 1fr; }
  .resumo-grid { grid-template-columns: repeat(2, 1fr); }
  .resumo-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .card-meta { white-space: normal; text-align: right; }
}
