/**
 * ElevaCash Design System — shell + Dashboard (Story 047)
 * Referência visual: prototipo2.html
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #F7F8FA;
  --color-surface: #FFFFFF;
  --color-text: #172033;
  --color-muted: #64748B;
  --color-border: #E5E7EB;
  --color-border-strong: #D1D5DB;
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-soft: #EFF6FF;
  --color-success: #15803D;
  --color-success-soft: #DCFCE7;
  --color-warning: #C2410C;
  --color-warning-soft: #FFEDD5;
  --color-danger: #B91C1C;
  --sidebar-w: 248px;
  --topbar-h: 56px;
  --radius: 12px;
  --radius-sm: 8px;
  --dash-canvas-max: 1440px;
  --shadow: 0 1px 2px rgba(23, 32, 51, 0.04), 0 1px 3px rgba(23, 32, 51, 0.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
}

/* —— App shell —— */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: var(--sidebar-w);
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: 1.25rem 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  z-index: 30;
  box-sizing: border-box;
}

.app-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 0.15rem 0.5rem 1.35rem;
}

.app-sidebar__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.app-sidebar__brand-text {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.2;
  white-space: nowrap;
}

/* Coluna vertical — sobrescreve navigation.css (tabs horizontais) */
.app-sidebar .app-sidebar__nav.app-nav,
.app-sidebar #app-primary-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.1rem;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.app-sidebar__group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 1.05rem;
  width: 100%;
}

.app-sidebar__group-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0.4rem 0.5rem 0.4rem;
  text-align: left;
}

/*
 * Itens da sidebar: alinhados à esquerda.
 * Anula justify-content:center e underline ::after do navigation.css.
 */
.app-sidebar .app-nav__tab,
.app-sidebar .app-sidebar__action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.48rem 0.5rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background 120ms ease, color 120ms ease;
}

.app-sidebar .app-nav__tab::after,
.app-sidebar .app-sidebar__action::after {
  content: none;
  display: none;
}

.app-sidebar .app-nav__tab:hover:not(:disabled),
.app-sidebar .app-sidebar__action:hover {
  background: #F1F5F9;
  color: var(--color-text);
}

.app-sidebar .app-nav__tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: transparent;
}

.app-sidebar .app-nav__tab--active,
.app-sidebar .app-nav__tab[aria-selected="true"] {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 600;
}

.app-sidebar .app-nav__tab--active::after,
.app-sidebar .app-nav__tab[aria-selected="true"]::after {
  content: none;
  display: none;
}

.app-sidebar .app-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  text-align: center;
  opacity: 0.9;
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1;
}

/* Subitens: indentação moderada (alinhados sob o texto do pai, não sob o ícone) */
.app-sidebar .app-nav__tab--sub {
  padding-left: 1.85rem;
  font-weight: 400;
  color: var(--color-muted);
}

.app-sidebar .app-nav__tab--sub.app-nav__tab--active,
.app-sidebar .app-nav__tab--sub[aria-selected="true"] {
  color: var(--color-primary);
  font-weight: 500;
  background: var(--color-primary-soft);
}

.app-sidebar__footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.app-shell__column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

/* —— Topbar —— */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
}

.app-topbar__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.app-topbar__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-topbar__month {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border-radius: 999px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 13px;
}

.app-topbar__month[hidden],
.app-topbar__month--hidden {
  display: none !important;
}

.app-topbar__month #month-label,
.app-topbar__month .ms-stepper__label {
  margin: 0;
  min-width: 7.5rem;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
  user-select: none;
}

.ms-stepper__btn {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.ms-stepper__btn:hover:not(:disabled) {
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.ms-stepper__btn:disabled,
.ms-stepper__btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.ms-stepper__btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.app-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.app-topbar .app-nav-overflow,
.app-topbar .app-header__sep {
  display: none;
}

/* Secondary nav under topbar */
.app-subnav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.35rem 1.5rem;
}

.main {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  box-sizing: border-box;
}

#view-dashboard {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: var(--dash-canvas-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}
#view-dashboard[hidden] { display: none !important; }

.dashboard-root {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dashboard-root .dash-tab-panels {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

.dash-saude { width: 100%; }

.dash-exec-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1rem;
  width: 100%;
  align-items: stretch;
}
.dash-exec-row > .dash-panel {
  min-height: 0;
}
.dash-exec-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dash-exec-row--eq {
  grid-template-columns: 1fr 1fr;
}
.dash-saude .dash-exec-row--eq {
  min-height: 268px;
}
.dash-saude .dash-exec-row--eq > .dash-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
@media (max-width: 1100px) {
  .dash-exec-row,
  .dash-exec-row--3,
  .dash-exec-row--eq {
    grid-template-columns: 1fr;
  }
}

/* Hide legacy horizontal header chrome if any remnant */
.app-header { display: none; }

/* —— Buttons hierarchy —— */
.btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--primary:hover { background: var(--color-primary-hover); }

.btn--secondary {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-muted);
}
.btn--ghost:hover {
  background: #F1F5F9;
  color: var(--color-text);
}

/* —— Dashboard decision center —— */
.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.dash-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.dash-head--compact {
  margin-bottom: 0;
  padding: 0;
  min-height: 0;
}

.dash-head--compact h2 {
  display: none;
}

.dash-head__tagline {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.45;
}

.dash-head--hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.35rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

.dash-head--hero .dash-head__greeting {
  display: block;
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text, #172033);
  line-height: 1.2;
}

.dash-head--hero .dash-head__tagline {
  margin: 0.35rem 0 0;
  font-size: 13px;
  color: var(--color-muted, #66758A);
}

.dash-head__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.dash-tabs--pill {
  margin: 0;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--color-border, #e2e7ee);
  border-radius: 999px;
  width: fit-content;
}

.dash-tabs--pill .dash-tabs__btn {
  font-size: 12.5px;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--color-muted, #66758A);
}

.dash-tabs--pill .dash-tabs__btn.is-active {
  background: #EDF4FF;
  color: #2563EB;
  font-weight: 650;
}

.dash-period-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border, #e2e7ee);
  border-radius: 10px;
  background: #fff;
  color: var(--color-muted, #66758A);
  white-space: nowrap;
}

/* Story 085 — Dashboard Patrimonial tabs */
.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0 1.15rem;
  padding: 0.25rem;
  background: #F1F5F9;
  border-radius: var(--radius);
  width: fit-content;
  max-width: 100%;
}

.dash-tabs__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
}

.dash-tabs__btn:hover {
  color: var(--color-text);
}

.dash-tabs__btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .dash-tabs {
    width: 100%;
  }
  .dash-tabs__btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.5rem 0.55rem;
    font-size: 12.5px;
  }
  .dash-evolucao .table-wrap {
    font-size: 12.5px;
  }
}

.dash-tab-panels {
  min-width: 0;
}

.kpi-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-disclaimer {
  margin: 0.75rem 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-muted);
}

/* Story 088 — composição Visão Geral */
.dash-composicao {
  margin: 0.25rem 0 0.75rem;
}

.dash-composicao__track {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #E2E8F0;
}

.dash-composicao__seg--contas { background: #2563EB; }
.dash-composicao__seg--inv { background: #059669; }

.dash-composicao__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  font-size: 13px;
  color: var(--color-muted);
}

.dash-composicao__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.dash-composicao__dot--contas { background: #2563EB; }
.dash-composicao__dot--inv { background: #059669; }

.dash-geral-atalhos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dash-placeholder-hint {
  margin: 0.85rem 0 0;
  font-size: 12.5px;
  color: var(--color-muted);
}

/* Epic 016 — Visão Geral Inteligente (estrutura do mockup; cores do DS ElevaCash) */
.dash-saude__grid {
  width: 100%;
  display: grid;
  gap: 1rem;
}

.dash-health {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 42%, #2563EB 100%);
  color: #F8FAFC;
  border: 1px solid #1E3A8A;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 28px rgba(30, 58, 138, 0.28);
}

.dash-health__head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.dash-health__score {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.dash-health__score strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.dash-health__score small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.85;
  margin-top: 0.2rem;
}

.dash-health__body {
  flex: 1 1 auto;
  min-width: 0;
}

.dash-health__title {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: inherit;
  line-height: 1.25;
}

.dash-health__text {
  margin: 0;
  max-width: 36rem;
  font-size: 0.95rem;
  opacity: 0.92;
  line-height: 1.45;
}

.dash-health__tone {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.88);
  max-width: 36rem;
}

.dash-health__status {
  margin-left: auto;
  flex-shrink: 0;
  background: rgba(220, 252, 231, 0.95);
  color: #15803D;
  font-weight: 750;
  font-size: 0.8125rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

.dash-health__status--observe {
  background: rgba(255, 237, 213, 0.95);
  color: #C2410C;
}

.dash-health__status--atencao {
  background: rgba(254, 226, 226, 0.95);
  color: #B91C1C;
}

.dash-health__badge {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.dash-health__details {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  opacity: 0.95;
}

.dash-health__details summary {
  cursor: pointer;
  font-weight: 600;
  color: #BFDBFE;
  list-style: none;
}

.dash-health__details summary::-webkit-details-marker { display: none; }

.dash-health__components {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.dash-health__components li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.8);
}

.dash-health__components li span:first-child {
  color: #fff;
  font-weight: 650;
  font-size: 0.8rem;
}

/* Pending = mesmo hero azul do score (DS único para todos os usuários). */
.dash-health--pending {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 42%, #2563EB 100%);
  color: #F8FAFC;
  border: 1px solid #1E3A8A;
  box-shadow: 0 8px 28px rgba(30, 58, 138, 0.28);
}

.dash-health--pending .dash-health__score {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.18);
  color: #F8FAFC;
}

.dash-health--pending .dash-health__title {
  color: #F8FAFC;
}

.dash-health--pending .dash-health__text {
  opacity: 0.92;
  color: inherit;
}

.dash-health--pending .dash-health__badge {
  background: rgba(255, 255, 255, 0.18);
  color: #F8FAFC;
}

.dash-health--pending .dash-health__details {
  opacity: 0.95;
  color: inherit;
  border-top-color: rgba(255, 255, 255, 0.2);
}

.dash-health--pending .dash-health__details summary {
  color: #BFDBFE;
}

.dash-health--pending .dash-health__components li {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(248, 250, 252, 0.8);
}

.dash-health--pending .dash-health__components li span:first-child {
  color: #fff;
}

.dash-dims {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}

.dash-dims__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  box-shadow: none;
  color: #F8FAFC;
}

.dash-dims__name { font-weight: 650; }
.dash-dims__state {
  color: inherit;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.dash-health--pending .dash-dims__row {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  color: #F8FAFC;
}

.dash-health--pending .dash-dims__state {
  color: inherit;
  opacity: 0.85;
}

.dash-evo-summary {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
}

.dash-evo-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.dash-evo-card .empty-state {
  flex: 1 1 auto;
}

.dash-evo-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  flex: 0 0 auto;
}

.dash-evo-card__head .dash-panel__title {
  margin: 0;
}

.dash-ranges--pill {
  margin: 0;
  padding: 4px;
  background: #F1F5F9;
  border-radius: 999px;
  width: fit-content;
}

.dash-ranges--pill .dash-range-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-weight: 600;
}

.dash-ranges--pill .dash-range-btn[aria-pressed="true"] {
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.dash-evo-chart {
  position: relative;
  flex: 1 1 auto;
  min-height: 220px;
  margin: 0.35rem 0 0.15rem;
  outline: none;
}

.dash-evo-chart:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 28%, transparent);
  border-radius: 12px;
}

.dash-evo-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dash-evo-chart__tick {
  fill: #94A3B8;
  font-size: 11px;
  font-family: inherit;
}

.dash-evo-chart__dot {
  fill: #4F46E5;
  opacity: 0;
}

.dash-evo-chart__dot.is-on {
  opacity: 1;
}

.dash-evo-tooltip {
  position: absolute;
  transform: translate(-50%, -110%);
  background: #0F172A;
  color: #fff;
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.25;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  white-space: nowrap;
  z-index: 2;
}

.dash-evo-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: #0F172A;
  transform: translateX(-50%) rotate(45deg);
}

.dash-evo-tip__date {
  display: block;
  color: #CBD5E1;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.dash-evo-tip__delta {
  color: #86EFAC;
  font-weight: 600;
}

.dash-evo-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0.15rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
  flex: 0 0 auto;
}

.dash-evo-kpi {
  display: grid;
  gap: 0.12rem;
  padding: 0 0.85rem;
  border-right: 1px solid var(--color-border);
  min-width: 0;
}

.dash-evo-kpi:first-child { padding-left: 0; }
.dash-evo-kpi:last-child {
  border-right: 0;
  padding-right: 0;
}

.dash-evo-kpi span {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-weight: 600;
}

.dash-evo-kpi b {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

.dash-evo-kpi small {
  font-size: 0.68rem;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-evo-kpi.is-up b { color: #15803D; }
.dash-evo-kpi.is-down b { color: #B91C1C; }

.dash-evo-details {
  margin-top: 0.35rem;
  flex: 0 0 auto;
}

.dash-evo-details summary {
  cursor: pointer;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .dash-evo-kpis {
    grid-template-columns: 1fr;
  }
  .dash-evo-kpi {
    border-right: 0;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  .dash-evo-kpi:last-child { border-bottom: 0; }
  .dash-evo-chart { min-height: 180px; }
}

.dash-section-label {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.dash-panel--protagonist {
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
}

.dash-panel--compact {
  padding: 0.85rem 1rem;
}

.dash-work {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.dash-work__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  flex: 1 1 auto;
  min-height: 0;
}
.dash-work__copy {
  min-width: 0;
  flex: 1 1 38%;
}
.dash-work__sub {
  margin: 0 0 0.35rem;
  font-size: 0.84rem;
  color: var(--color-muted);
  line-height: 1.45;
}
.dash-work__sub strong { color: var(--color-text); }
.dash-work__viz {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  flex: 1 1 62%;
  min-width: 0;
  justify-content: flex-end;
}
.dash-work__ring {
  width: 168px;
  height: 168px;
  flex: 0 0 168px;
  max-width: 42%;
  max-height: 168px;
  position: relative;
}
.dash-work__ring svg { width: 100%; height: 100%; display: block; }
.dash-work__hole {
  position: absolute;
  inset: 18%;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}
.dash-work__hole b {
  font-size: 0.88rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
}
.dash-work__hole span {
  display: block;
  font-size: 0.62rem;
  color: var(--color-muted);
  font-weight: 600;
  margin-top: 0.1rem;
}
.dash-work__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 8.8rem;
  align-self: center;
}
.dash-work__legend li {
  display: grid;
  grid-template-columns: 0.55rem 1fr auto;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--color-muted);
  padding: 0.18rem 0;
}
.dash-work__legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}
.dash-work__legend b {
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.dash-dica {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  width: 100%;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
  position: relative;
}
.dash-dica[hidden] { display: none !important; }
.dash-dica__ico {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.dash-dica__ico svg { width: 12px; height: 12px; display: block; }
.dash-dica__label {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1D4ED8;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.4;
  padding-top: 2px;
}
.dash-dica__refresh {
  flex: 0 0 auto;
  margin-left: 0.15rem;
  border: 0;
  background: transparent;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  color: #1D4ED8;
  display: grid;
  place-items: center;
  padding: 0;
}
.dash-dica__refresh:hover { background: #EDF4FF; }
.dash-dica__refresh:disabled { opacity: 0.45; cursor: wait; }
.dash-dica__refresh.is-spin svg { animation: dash-dica-spin 0.8s linear infinite; }
.dash-dica__text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.75rem;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: help;
  outline: none;
}
.dash-dica__text:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 2px #DBE7FF;
}
.dash-dica__text.is-load {
  color: var(--color-muted);
  font-style: italic;
  cursor: default;
}
.dash-dica__tooltip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  background: #0F172A;
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 400;
  white-space: normal;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
}
.dash-dica__tooltip::after {
  content: '';
  position: absolute;
  left: 1.6rem;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: #0F172A;
  transform: rotate(45deg);
}
.dash-dica:hover .dash-dica__tooltip:not([hidden]),
.dash-dica:focus-within .dash-dica__tooltip:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@keyframes dash-dica-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
  .dash-work__body { flex-direction: column; }
  .dash-work__ring { max-width: 168px; }
}

.dash-poupanca__rate {
  margin: 0.1rem 0 0.15rem;
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

.dash-poupanca__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.35rem 0 0.35rem;
}

.dash-poupanca__origin {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.dash-insight__numero {
  margin: 0.15rem 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

.dash-saude-kpis {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.dash-saude-kpi {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
}

.dash-saude-kpi__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.dash-saude-kpi__value {
  margin: 0.25rem 0;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

.dash-saude-kpi__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.35;
}

.dash-saude-kpi__hint.is-up { color: var(--color-success); font-weight: 600; }
.dash-saude-kpi__hint.is-warn { color: var(--color-warning); font-weight: 600; }

.dash-saude__row2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.dash-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.35rem;
  box-shadow: var(--shadow);
}

.dash-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--color-text);
}

.dash-panel__title--sub {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.dash-panel__sub {
  margin: 0 0 1.1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.dash-panel__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.dash-ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.dash-ind {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  background: var(--color-bg);
  line-height: 1.35;
}

.dash-ind strong {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  margin-bottom: 0.15rem;
  color: var(--color-text);
  text-transform: capitalize;
}

.dash-ind__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: #94A3B8;
}

.dash-ind__dot--ok { background: var(--color-success); }
.dash-ind__dot--observe { background: #D97706; }
.dash-ind__dot--atencao { background: var(--color-danger); }
.dash-ind__dot--indefinido { background: #CBD5E1; }

.dash-insight {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  background: #F7F9FB;
  border-radius: 12px;
  margin-top: 0.65rem;
}

.dash-insight h4 {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.dash-insight p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.dash-pill {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  height: max-content;
  white-space: nowrap;
}

.dash-pill--warn {
  background: #FEE2E2;
  color: #B91C1C;
}

.dash-pill--observe {
  background: #FFEDD5;
  color: #C2410C;
}

.dash-pill--ok {
  background: #DCFCE7;
  color: #15803D;
}

.dash-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  align-self: center;
  font-family: inherit;
}

.dash-goal {
  margin-top: 0.75rem;
}

.dash-goal__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
}

.dash-goal__bar {
  height: 0.4rem;
  background: #E8EDF2;
  border-radius: 999px;
  overflow: hidden;
}

.dash-goal__bar > span {
  display: block;
  height: 100%;
  background: var(--color-primary);
  border-radius: inherit;
}

.dash-goal__meta {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.dash-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.5rem;
}

.dash-range-btn {
  border: 1px solid var(--color-border);
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  color: var(--color-muted);
  cursor: pointer;
}

.dash-range-btn[aria-pressed="true"] {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-weight: 600;
}

.dash-alloc {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.dash-alloc__row {
  display: grid;
  grid-template-columns: 7rem 1fr 4.5rem;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text);
}

.dash-alloc__track {
  height: 0.4rem;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.dash-alloc__track > span {
  display: block;
  height: 100%;
  background: var(--color-primary);
}

.dash-alloc__track > span.soft {
  background: #60A5FA;
}

.dash-alloc__track > span.mute {
  background: #94A3B8;
}

.dash-money {
  display: grid;
  gap: 0.85rem;
  margin: 0.25rem 0 0.75rem;
}

.dash-money__total {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

.dash-money__total span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash-stack {
  display: flex;
  height: 0.875rem;
  border-radius: 999px;
  overflow: hidden;
  background: #E8EDF2;
}

.dash-stack__contas { background: #60A5FA; }
.dash-stack__inv { background: #0D9488; }

.dash-money__legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.dash-money__item {
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.dash-money__item .dash-money__k {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.dash-money__item .dash-money__v {
  font-size: 1.05rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

.dash-money__item .dash-money__p {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

.dash-money__note {
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--color-text);
  line-height: 1.5;
}

.dash-split {
  display: flex;
  height: 0.55rem;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.65rem 0 0.35rem;
  background: #E2E8F0;
}

.dash-split > span:first-child {
  background: #60A5FA;
}

.dash-split > span:last-child {
  background: var(--color-primary);
}

.dash-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.dash-legend__dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.dash-legend__dot--contas { background: #60A5FA; }
.dash-legend__dot--inv { background: #0D9488; }

.dash-actions {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.dash-action {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid var(--color-border);
}

.dash-action:first-of-type {
  border-top: 0;
  padding-top: 0.25rem;
}

.dash-action strong {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.75rem;
}

.dash-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.dash-text-warn {
  color: var(--color-warning);
  font-weight: 600;
}

.dash-evo-table {
  font-size: 0.85rem;
}

@media (max-width: 1100px) {
  .dash-dims {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dash-health__components {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .dash-saude__row2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dash-health__head {
    flex-wrap: wrap;
  }

  .dash-health__status {
    margin-left: 0;
  }

  .dash-dims {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-saude-kpis {
    grid-template-columns: 1fr;
  }

  .dash-insight {
    grid-template-columns: 1fr;
  }

  .dash-alloc__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .dash-poupanca__grid {
    grid-template-columns: 1fr;
  }

  .dash-money__legend {
    grid-template-columns: 1fr;
  }
}

.decision {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.decision__q {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
}

.decision__q em {
  font-style: normal;
  color: var(--color-text);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.875rem;
}

.kpi {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.kpi__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.kpi__value {
  margin-top: 0.65rem;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.kpi__meta {
  margin-top: 0.4rem;
  font-size: 12.5px;
  color: var(--color-muted);
}

.kpi__meta .up { color: var(--color-success); font-weight: 600; }
.kpi__meta .warn { color: var(--color-warning); font-weight: 600; }

.panel-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.875rem;
}

.dash-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem;
}

.dash-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.dash-panel__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.dash-panel__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  padding: 0;
}

.cat-list { display: flex; flex-direction: column; gap: 0.85rem; }
.cat-row__top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 0.3rem;
}
.cat-row__name { font-weight: 500; }
.cat-row__pct { color: var(--color-muted); font-variant-numeric: tabular-nums; }

.bar {
  height: 8px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-primary);
}

.bank-stack { display: flex; flex-direction: column; gap: 1rem; }
.bank-row__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  gap: 1rem;
  font-size: 13.5px;
}
.bank-row__name { font-weight: 500; display: inline-flex; align-items: center; gap: 0.45rem; }
.bank-row__value { font-weight: 600; font-variant-numeric: tabular-nums; }
.bank-bar {
  height: 10px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
}
.bank-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-primary);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  background: var(--color-primary);
}

/* ——— Insights (Story 054) ——— */
.insight-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.insight-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem 1.1rem;
}

.insight-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-text);
}

.insight-card--attention {
  border-left-color: var(--color-warning);
}

.insight-card--positive {
  border-left-color: var(--color-success);
}

.insights-empty {
  margin: 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
}

.btn--sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.action-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-warning);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
}

.action-card__eyebrow {
  margin: 0 0 0.3rem;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-warning);
}

.action-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.action-card__sub {
  margin: 0.3rem 0 0;
  color: var(--color-muted);
  font-size: 13.5px;
}

.action-card--ok {
  border-left-color: var(--color-success);
}
.action-card--ok .action-card__eyebrow { color: var(--color-success); }

.panel {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cards .card {
  border-radius: var(--radius-sm);
}

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .panel-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: relative;
    height: auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .action-card { grid-template-columns: 1fr; }
  .insight-card { grid-template-columns: 1fr; }
}

/* —— Login ElevaCash (Story 066 Nível 3) —— */
.auth-boot[hidden],
.auth-login[hidden],
.app-shell[hidden] {
  display: none !important;
}

.auth-boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: 0.95rem;
}

.auth-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at top, #dbeafe 0%, transparent 55%),
    var(--color-bg);
}

.auth-login__card {
  width: min(100%, 380px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
  text-align: center;
}

.auth-login__logo { margin-bottom: 0.75rem; }
.auth-login__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}
.auth-login__subtitle {
  margin: 0.35rem 0 1.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.auth-login__form {
  display: grid;
  gap: 0.5rem;
  text-align: left;
}
.auth-login__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
}
.auth-login__input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  margin-bottom: 0.35rem;
}
.auth-login__error {
  color: var(--color-danger);
  font-size: 0.9rem;
  margin: 0.25rem 0;
}
.auth-login__submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* —— Dashboard aba Contas (estilo Visão Geral / score azul) —— */
.dash-contas {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.dash-contas > .decision {
  margin-bottom: 0;
}

.dash-contas__section .decision__q {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.dash-contas__section .decision__q em {
  font-style: normal;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  font-weight: 700;
}

.dash-contas__resumo {
  margin: 0;
  color: var(--color-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.dash-contas-hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 45%, #2563EB 100%);
  color: #F8FAFC;
  border-radius: 14px;
  padding: 1.35rem 1.5rem 1.45rem;
  box-shadow: 0 8px 28px rgba(30, 58, 138, 0.28);
  width: 100%;
  box-sizing: border-box;
}

.dash-contas-hero__title {
  margin: 0 0 1.1rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #F8FAFC;
}

.dash-contas-hero__title em {
  font-style: normal;
  color: #BFDBFE;
}

.dash-contas-hero__kpis {
  margin: 0;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.dash-contas-hero .kpi {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  color: #F8FAFC;
  padding: 1rem 1.05rem;
}

.dash-contas-hero .kpi__label {
  color: #BFDBFE;
  margin-bottom: 0.55rem;
}

.dash-contas-hero .kpi__value {
  color: #fff;
  margin-top: 0;
}

.dash-contas-hero .kpi__meta {
  color: rgba(248, 250, 252, 0.82);
  margin-top: 0.5rem;
}

.dash-contas-hero .kpi__meta .up {
  color: #86EFAC;
}

.dash-contas-hero .kpi__meta .warn {
  color: #FCD34D;
}

@media (max-width: 960px) {
  .dash-contas-hero__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dash-contas-hero__kpis {
    grid-template-columns: 1fr;
  }
}

/* —— Contas · Resumo do mês (mesmo destaque azul do Dashboard) —— */
#resumo-panel.panel--resumo-hero,
.panel--resumo-hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 45%, #2563EB 100%);
  border: 1px solid #1E3A8A;
  color: #F8FAFC;
  box-shadow: 0 8px 28px rgba(30, 58, 138, 0.28);
}

.resumo-hero__title {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #F8FAFC;
}

.resumo-hero__title em {
  font-style: normal;
  color: #BFDBFE;
}

.panel--resumo-hero .resumo-hero__cards {
  gap: 0.85rem;
}

.panel--resumo-hero .card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  padding: 1rem 1.05rem;
}

.panel--resumo-hero .card__label {
  color: #BFDBFE;
  margin-bottom: 0.45rem;
}

.panel--resumo-hero .card__value {
  color: #fff;
  margin-top: 0;
  font-variant-numeric: tabular-nums;
}

.panel--resumo-hero .card--success .card__value {
  color: #86EFAC;
}

.panel--resumo-hero .card--warning .card__value {
  color: #FCD34D;
}

.panel--resumo-hero .card--danger .card__value {
  color: #FCA5A5;
}

.panel--resumo-hero .resumo-hero__meta,
.panel--resumo-hero .resumo-meta {
  margin-top: 1.1rem;
  color: rgba(248, 250, 252, 0.82);
}

.panel--resumo-hero .resumo-meta strong {
  color: #fff;
}

/* —— Contas · Rateio (mesmo destaque azul) —— */
#rateio-panel.panel--rateio-hero,
.panel--rateio-hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 45%, #2563EB 100%);
  border: 1px solid #1E3A8A;
  color: #F8FAFC;
  box-shadow: 0 8px 28px rgba(30, 58, 138, 0.28);
}

.rateio-hero__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.rateio-hero__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #F8FAFC;
}

.panel--rateio-hero .rateio-item {
  border-bottom-color: rgba(255, 255, 255, 0.18);
  padding: 0.75rem 0;
}

.panel--rateio-hero .rateio-item__nome {
  color: #fff;
}

.panel--rateio-hero .rateio-item__detail {
  color: rgba(248, 250, 252, 0.75);
}

.panel--rateio-hero .rateio-item__cota {
  color: #BFDBFE;
  font-variant-numeric: tabular-nums;
}

.panel--rateio-hero .rateio-hero__empty,
.panel--rateio-hero .empty-state {
  color: rgba(248, 250, 252, 0.85);
}

.panel--rateio-hero .btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.panel--rateio-hero .btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* —— Dashboard · aba Investimentos (analista da carteira) —— */
.dash-inv {
  display: grid;
  gap: 14px;
  width: 100%;
}

.dash-inv-hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 45%, #2563EB 100%);
  color: #F8FAFC;
  border-radius: 14px;
  padding: 1.35rem 1.5rem 1.4rem;
  box-shadow: 0 8px 28px rgba(30, 58, 138, 0.28);
}

.dash-inv-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
}

.dash-inv-hero__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.3;
}

.dash-inv-hero__title em {
  font-style: normal;
  color: #BFDBFE;
}

.dash-inv-badge {
  flex-shrink: 0;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.95);
  color: #475569;
}

.dash-inv-badge--green {
  background: rgba(220, 252, 231, 0.95);
  color: #15803D;
}

.dash-inv-badge--amber {
  background: rgba(255, 237, 213, 0.95);
  color: #C2410C;
}

.dash-inv-hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.dash-inv-hero__metric {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.95rem 1rem;
}

.dash-inv-hero__metric label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #BFDBFE;
  margin-bottom: 0.55rem;
}

.dash-inv-hero__metric strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.dash-inv-hero__metric strong.is-up { color: #86EFAC; }
.dash-inv-hero__metric strong.is-down { color: #FCA5A5; }

.dash-inv-hero__metric span {
  display: block;
  margin-top: 0.4rem;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.82);
}

.dash-inv-hero__read {
  margin: 0 0 1rem;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.92);
  max-width: 52rem;
}

.dash-inv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn--light {
  background: #fff;
  color: #1D4ED8;
  border: 1px solid transparent;
}

.btn--light:hover {
  background: #EFF6FF;
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.dash-inv-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.dash-inv-grid--eq {
  grid-template-columns: 1fr 1fr;
}

.dash-inv-card {
  margin: 0;
}

.dash-inv-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.dash-inv-type {
  appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: #F8FAFC;
  border: 1px solid var(--color-border, #E2E7EE);
  border-radius: 12px;
  padding: 0.85rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.dash-inv-type:hover:not(:disabled),
.dash-inv-type.is-on {
  border-color: #2563EB;
  background: #EDF4FF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.dash-inv-type.is-empty,
.dash-inv-type:disabled {
  opacity: 0.55;
  cursor: default;
}

.dash-inv-type__ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  margin-bottom: 0.55rem;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: #64748B;
}

.dash-inv-type__ico--renda_fixa { background: #1D4ED8; }
.dash-inv-type__ico--cripto { background: #B45309; }
.dash-inv-type__ico--renda_variavel { background: #0F766E; }
.dash-inv-type__ico--fundos { background: #7C3AED; }
.dash-inv-type__ico--previdencia { background: #0369A1; }
.dash-inv-type__ico--outros { background: #64748B; }

.dash-inv-type__name {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  margin-bottom: 0.4rem;
}

.dash-inv-type__val {
  display: block;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.dash-inv-type__pct {
  display: block;
  margin-top: 0.25rem;
  font-size: 12px;
  color: var(--color-muted, #66758A);
}

.dash-inv-alloc-line {
  display: grid;
  grid-template-columns: 6.5rem 1fr 3.2rem;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
  font-size: 12.5px;
}

.dash-inv-drill {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border, #E2E7EE);
}

.dash-inv-drill__title {
  margin: 0 0 0.55rem;
  font-size: 13px;
  font-weight: 700;
}

.dash-inv-drill__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0.45rem 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 13px;
}

.dash-inv-drill__row:last-of-type { border-bottom: 0; }

.dash-inv-drill__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted, #66758A);
}

.dash-inv-mini {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #334155;
  flex-shrink: 0;
}

.dash-inv-result {
  margin: 0 0 0.25rem;
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text, #172033);
}

.dash-inv-result.is-up { color: #15803D; }
.dash-inv-result.is-down { color: #B91C1C; }

.dash-inv-rent {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 650;
  margin: 0.75rem 0 0.4rem;
}

.dash-inv-rent strong {
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.dash-inv-rent-track {
  height: 10px;
  background: #E8EDF2;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.dash-inv-rent-track > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1D4ED8, #2563EB);
  border-radius: inherit;
}

.dash-inv-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.dash-inv-compare > div {
  background: #F8FAFC;
  border: 1px solid var(--color-border, #E2E7EE);
  border-radius: 10px;
  padding: 0.75rem;
}

.dash-inv-compare label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted, #66758A);
  margin-bottom: 0.25rem;
}

.dash-inv-compare b {
  font-size: 1rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.dash-inv-warn {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: #FFEDD5;
  border: 1px solid #FDBA74;
  border-radius: 10px;
  font-size: 12px;
  color: #9A3412;
  line-height: 1.45;
}

.dash-inv-bytype {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border, #E2E7EE);
}

.dash-inv-bytype summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: #2563EB;
  list-style: none;
}

.dash-inv-bytype summary::-webkit-details-marker { display: none; }

.dash-inv-bytype__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 0.4rem 0;
  border-bottom: 1px solid #F1F5F9;
}

.dash-inv-bytype__row:last-child { border-bottom: 0; }

.dash-inv-na {
  color: var(--color-muted, #66758A);
  font-weight: 600;
}

.dash-inv-health {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.dash-inv-health__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
}

.dash-inv-health__item small {
  display: block;
  color: var(--color-muted, #66758A);
  font-size: 12px;
  margin-top: 2px;
}

.dash-inv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  background: #94A3B8;
}

.dash-inv-dot--ok { background: #15803D; }
.dash-inv-dot--attention { background: #D97706; }
.dash-inv-dot--neutral { background: #94A3B8; }

.dash-inv-chart {
  height: 180px;
  background: #FAFBFD;
  border: 1px solid var(--color-border, #E2E7EE);
  border-radius: 12px;
  padding: 10px;
  margin: 0.65rem 0;
}

.dash-inv-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dash-inv-evo-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--color-muted, #66758A);
}

.dash-inv-evo-foot b {
  display: block;
  margin-top: 2px;
  color: var(--color-text, #172033);
  font-size: 1.05rem;
  font-weight: 750;
}

.dash-inv-evo-foot b.is-up { color: #15803D; }
.dash-inv-evo-foot b.is-down { color: #B91C1C; }

.dash-inv-attention {
  display: grid;
  gap: 10px;
}

.dash-inv-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  background: #F7F9FB;
  border-radius: 12px;
  padding: 0.85rem;
}

.dash-inv-alert--warn { background: #FFF7ED; }
.dash-inv-alert--ok { background: #F0FDF4; }
.dash-inv-alert--info {
  background: #F8FAFC;
  border: 1px solid var(--color-border, #E2E7EE);
}

.dash-inv-alert__ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #64748B;
  flex-shrink: 0;
}

.dash-inv-alert--warn .dash-inv-alert__ico { background: #D97706; }
.dash-inv-alert--ok .dash-inv-alert__ico { background: #15803D; }

.dash-inv-alert strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 0.2rem;
}

.dash-inv-alert p {
  margin: 0;
  font-size: 12.5px;
  color: var(--color-muted, #66758A);
  line-height: 1.45;
}

.dash-inv-summary {
  background: #F8FAFC;
  border: 1px solid var(--color-border, #E2E7EE);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 13.5px;
  line-height: 1.55;
}

.dash-inv-summary p { margin: 0 0 0.65rem; }
.dash-inv-summary p:last-child { margin-bottom: 0; }

.dash-inv-summary__focus {
  color: #C2410C;
  font-weight: 650;
}

.dash-inv-holding {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #F1F5F9;
}

.dash-inv-holding:last-child { border-bottom: 0; }

.dash-inv-holding__name {
  font-size: 13.5px;
  font-weight: 650;
}

.dash-inv-holding__sub {
  font-size: 12px;
  color: var(--color-muted, #66758A);
  margin-top: 2px;
}

.dash-inv-holding__bar {
  height: 6px;
  background: #E8EDF2;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.45rem;
  max-width: 220px;
}

.dash-inv-holding__bar > span {
  display: block;
  height: 100%;
  background: #2563EB;
  border-radius: inherit;
}

.dash-inv-holding__val {
  text-align: right;
}

.dash-inv-holding__val b {
  display: block;
  font-size: 13.5px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.dash-inv-holding__val span {
  display: block;
  font-size: 12px;
  color: var(--color-muted, #66758A);
  margin-top: 2px;
}

.dash-inv-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  padding: 3px 8px;
}

.dash-inv-tag--ok {
  background: #DCFCE7;
  color: #15803D;
}

.dash-inv-tag--warn {
  background: #FFEDD5;
  color: #C2410C;
}

.dash-goal__bar--slow > span {
  background: #D97706;
}

@media (max-width: 980px) {
  .dash-inv-hero__metrics {
    grid-template-columns: 1fr;
  }

  .dash-inv-grid,
  .dash-inv-grid--eq {
    grid-template-columns: 1fr;
  }

  .dash-inv-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-inv-alert {
    grid-template-columns: auto 1fr;
  }

  .dash-inv-alert .btn {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .dash-inv-types {
    grid-template-columns: 1fr;
  }
}

/* —— Dashboard loading stencil (Salesforce-like shimmer) —— */
.dash-skel {
  position: relative;
  padding: 0.15rem 0 1rem;
}

.dash-skel .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dash-skel__progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.dash-skel__progress-bar {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #94a3b8, #0f766e, #94a3b8);
  background-size: 200% 100%;
  animation: dash-skel-progress 1.1s ease-in-out infinite;
}

.dash-skel__hint {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

.dash-skel__grid {
  display: grid;
  gap: 0.85rem;
}

.dash-skel__row {
  display: grid;
  gap: 0.85rem;
}

.dash-skel__row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-skel__row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-skel__card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.65rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.dash-skel__card--hero {
  padding: 1.25rem 1.35rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 55%);
}

.dash-skel__card--tall {
  min-height: 11rem;
}

.dash-skel__bone {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #e8eef4 0%, #f4f7fa 45%, #e8eef4 90%);
  background-size: 220% 100%;
  animation: dash-skel-shimmer 1.35s ease-in-out infinite;
}

.dash-skel__bone--sm { height: 0.7rem; width: 28%; }
.dash-skel__bone--md { height: 0.85rem; width: 62%; }
.dash-skel__bone--lg { height: 1.35rem; width: 48%; }
.dash-skel__bone--xl { height: 2rem; width: 42%; }
.dash-skel__bone--title { height: 0.75rem; width: 36%; }
.dash-skel__bone--line { height: 0.7rem; width: 88%; }
.dash-skel__bone--chart { height: 7.5rem; width: 100%; border-radius: 10px; }
.dash-skel__bone--bar { height: 0.55rem; width: 100%; border-radius: 999px; }
.dash-skel__bone--pill { height: 1.6rem; width: 45%; border-radius: 999px; }
.dash-skel__bone--ring {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  margin: 0.5rem auto;
}

@keyframes dash-skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes dash-skel-progress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
  .dash-skel__bone,
  .dash-skel__progress-bar {
    animation: none;
  }

  .dash-skel__progress-bar {
    width: 55%;
    transform: none;
  }
}

@media (max-width: 900px) {
  .dash-skel__row--2,
  .dash-skel__row--3 {
    grid-template-columns: 1fr;
  }
}

/* —— FASE 16B: Ambiente DEMO —— */
.demo-env-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, #FFF7ED 0%, #FFEDD5 100%);
  border-bottom: 1px solid #FDBA74;
  color: #9A3412;
  font-size: 0.875rem;
  line-height: 1.35;
}

.demo-env-banner[hidden] {
  display: none !important;
}

.demo-env-banner__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.demo-env-banner__text strong {
  font-weight: 600;
  color: #7C2D12;
}

.demo-env-banner__shared-hint {
  font-size: 0.8125rem;
  opacity: 0.95;
}

.demo-env-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}

body.demo-shared .btn-edit-banco,
body.demo-shared .btn-delete-banco,
body.demo-shared .btn-edit-credor,
body.demo-shared .btn-delete-credor,
body.demo-shared .btn-edit-categoria,
body.demo-shared .btn-delete-categoria,
body.demo-shared .btn-edit-pessoa,
body.demo-shared .btn-delete-pessoa,
body.demo-shared .btn-edit-metodo,
body.demo-shared .btn-delete-metodo,
body.demo-shared .btn-edit-meta,
body.demo-shared .btn-delete-meta,
body.demo-shared .btn-edit-tag,
body.demo-shared .btn-delete-tag,
body.demo-shared #export-dados,
body.demo-shared #import-dados {
  pointer-events: none;
  opacity: 0.45;
}

body.demo-shared .contas-hub__header .btn--primary,
body.demo-shared [data-demo-write] {
  pointer-events: none;
  opacity: 0.45;
}

