/* ============================================================
   PRESTACAO DE CONTAS — Trilhas do Cerrado
   Dashboard interativo com abas, KPIs, charts e tabela
   Identidade visual: cream/teal/terra/olive/gold (style.css)
   ============================================================ */

.page-financial {
  background:
    radial-gradient(ellipse at 12% 8%, rgba(200, 146, 72, 0.10), transparent 30rem),
    radial-gradient(ellipse at 92% 90%, rgba(7, 95, 97, 0.08), transparent 28rem),
    linear-gradient(180deg, var(--white), var(--cream));
}

/* ===================== HERO ===================== */
.financial-hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(7, 95, 97, 0.08), transparent 60%),
    linear-gradient(180deg, var(--cream-2), var(--cream));
  border-bottom: 1px solid rgba(228, 205, 169, 0.7);
  text-align: center;
}

.financial-hero .container {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.financial-hero h1 {
  max-width: none;
  color: var(--brown);
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  text-align: center;
  margin: 6px auto 14px;
}

.financial-hero .hero__lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.emit-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 8px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--brown-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.emit-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--teal);
  stroke-width: 2;
  fill: none;
}

/* ===================== KPI CARDS ===================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.kpi-card {
  position: relative;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.92);
  text-align: left;
  box-shadow: 0 12px 32px rgba(50, 27, 13, 0.06);
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kpi-card strong {
  display: block;
  margin-top: 10px;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
}

.kpi-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.kpi-card--terra { border-left-color: var(--terra); }
.kpi-card--olive { border-left-color: var(--olive); }
.kpi-card--gold  { border-left-color: var(--gold); }
.kpi-card--terra strong { color: var(--terra); }
.kpi-card--olive strong { color: #5e6320; }

/* ===================== TABS ===================== */
.tabs-wrap {
  position: sticky;
  top: 96px;
  z-index: 15;
  background: rgba(255, 253, 248, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  gap: 4px;
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
  padding: 14px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 0 0 auto;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.tab-btn:hover { color: var(--teal); }

.tab-btn.active {
  color: var(--teal);
  background: rgba(7, 95, 97, 0.08);
  border-color: rgba(7, 95, 97, 0.18);
  border-bottom: 2px solid var(--teal);
}

.tab-panel { display: none; padding: 56px 0; }
.tab-panel.active { display: block; }

.tab-panel > .container { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }

/* ===================== INSIGHT BOXES ===================== */
.insight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.insight {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border: 1px solid rgba(7, 95, 97, 0.22);
  border-radius: 12px;
  background: rgba(7, 95, 97, 0.06);
}

.insight--terra { border-color: rgba(196, 91, 44, 0.22); background: rgba(196, 91, 44, 0.06); }
.insight--olive { border-color: rgba(133, 135, 39, 0.22); background: rgba(133, 135, 39, 0.06); }
.insight--gold  { border-color: rgba(200, 146, 72, 0.28); background: rgba(200, 146, 72, 0.06); }

.insight__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--teal);
}
.insight--terra .insight__icon { color: var(--terra); }
.insight--olive .insight__icon { color: var(--olive); }
.insight--gold  .insight__icon { color: var(--gold); }
.insight__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

.insight p {
  margin: 0;
  color: var(--brown-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}
.insight strong { color: var(--brown); }

/* ===================== CHART CARDS ===================== */
.chart-row {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-row--3-2 { grid-template-columns: 3fr 2fr; }
.chart-row--1-1 { grid-template-columns: 1fr 1fr; }
.chart-row--single { grid-template-columns: 1fr; }

.chart-card {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 8px 28px rgba(50, 27, 13, 0.05);
}

.chart-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.chart-card__head h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: 0;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(200, 146, 72, 0.12);
  color: var(--brown-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge--teal { border-color: rgba(7, 95, 97, 0.5); background: rgba(7, 95, 97, 0.1); color: var(--teal-dark); }
.badge--terra { border-color: rgba(196, 91, 44, 0.5); background: rgba(196, 91, 44, 0.1); color: var(--terra); }
.badge--olive { border-color: rgba(133, 135, 39, 0.5); background: rgba(133, 135, 39, 0.1); color: #5e6320; }

.chart-canvas {
  position: relative;
  width: 100%;
  height: 320px;
}

.chart-canvas--tall { height: 360px; }
.chart-canvas--short { height: 260px; }

/* ===================== MONTHLY GRID ===================== */
.month-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.month-cell {
  text-align: center;
  padding: 16px 6px;
  border-radius: 10px;
  border: 1px solid rgba(133, 135, 39, 0.3);
  background: rgba(133, 135, 39, 0.06);
}

.month-cell.neg {
  border-color: rgba(196, 91, 44, 0.34);
  background: rgba(196, 91, 44, 0.06);
}

.month-cell__label {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.05em;
}

.month-cell__val {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--olive);
}

.month-cell.neg .month-cell__val { color: var(--terra); }

/* ===================== TOP LIST ===================== */
.top-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.top-item {
  position: relative;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
}

.top-item__bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(200, 146, 72, 0.10);
  border-right: 2px solid rgba(200, 146, 72, 0.3);
  pointer-events: none;
}

.top-item__row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.top-item__rank {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--muted);
  width: 28px;
}

.top-item.is-top .top-item__rank { color: var(--terra); }

.top-item__name {
  flex: 1;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.top-item__val {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown);
}

.top-item.is-top .top-item__val { color: var(--terra); }

/* ===================== DATA TABLE ===================== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.data-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table thead th {
  position: sticky;
  top: 0;
  padding: 16px 18px;
  background: var(--cream-2);
  color: var(--brown);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  border-bottom: 2px solid var(--teal);
}

.data-table thead th:first-child { text-align: left; }

.data-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(228, 205, 169, 0.5);
  text-align: right;
  color: var(--brown-soft);
  font-weight: 600;
}

.data-table tbody td:first-child {
  text-align: left;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.04em;
}

.data-table tbody tr:nth-child(even) { background: rgba(243, 234, 220, 0.4); }

.data-table .pos { color: var(--olive); }
.data-table .neg { color: var(--terra); }

.data-table tfoot td {
  padding: 18px;
  background: rgba(7, 95, 97, 0.06);
  border-top: 2px solid var(--teal);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown);
  text-align: right;
}

.data-table tfoot td:first-child {
  text-align: left;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

/* ===================== EVOLUTION / BEFORE-AFTER ===================== */
.evolution { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.ba-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ba-card {
  cursor: pointer;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ba-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(50, 27, 13, 0.12); }

.ba-card__image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.ba-card__image::after {
  content: "Ver transformação";
  position: absolute;
  inset: auto 10px 10px auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 95, 97, 0.92);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ba-card__image img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.ba-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brown);
}

.ba-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* MODAL */
.ba-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ba-modal.active { display: flex; }

.ba-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 16, 7, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ba-modal__content {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  padding: 30px;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.ba-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.4rem;
  color: var(--brown);
  cursor: pointer;
}

.ba-modal h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 18px;
}

.ba-slider {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ba-slider figure {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}

.ba-slider figcaption {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 16, 7, 0.78);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ba-slider figure.depois figcaption { background: rgba(7, 95, 97, 0.92); }

.ba-slider img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* ===================== MARKET COMPARISON ===================== */
.market { background: var(--white); }

.market-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.market-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.market-table th {
  padding: 18px 22px;
  background: var(--cream-2);
  color: var(--brown);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid var(--teal);
}

.market-table th span {
  display: block;
  margin-top: 4px;
  color: var(--teal);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
}

.market-table td {
  padding: 14px 22px;
  border-bottom: 1px solid rgba(228, 205, 169, 0.5);
  color: var(--brown-soft);
}

.market-table tbody tr:nth-child(even) { background: rgba(243, 234, 220, 0.3); }

.market-table .has-item { color: var(--olive); font-size: 1.25rem; font-weight: 800; text-align: center; }
.market-table .missing-item { color: var(--terra); font-size: 1.25rem; font-weight: 800; text-align: center; }

.market-table .highlight-row { background: rgba(7, 95, 97, 0.08) !important; }

.market-table .highlight-row td {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--brown);
}

.market-table .savings {
  text-align: center;
  color: var(--teal-dark);
  font-size: 1.15rem !important;
}

.market-table .savings strong { color: var(--teal); }

/* ===================== TRANSPARENCY / ACCORDION ===================== */
.accordion-list { display: grid; gap: 12px; }

.accordion {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}

.accordion summary {
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.accordion summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--teal);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.accordion[open] summary::after { content: "−"; }

.accordion__content {
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.accordion__content strong { color: var(--brown); }

.accordion__content ul {
  margin-top: 10px;
  padding-left: 20px;
}

.accordion__content li { margin: 6px 0; }

/* ===================== GARANTIDORA HIGHLIGHT ===================== */
.protection-card {
  position: relative;
  padding: 32px 30px;
  border: 1px solid rgba(7, 95, 97, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(circle at 80% 20%, rgba(200, 146, 72, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(7, 95, 97, 0.95), rgba(2, 67, 70, 0.95));
  color: var(--white);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(2, 67, 70, 0.2);
}

.protection-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
}

.protection-card__stat {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.protection-card__stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.78);
}

.protection-card p {
  margin-top: 18px;
  color: rgba(255, 253, 248, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.protection-card ul {
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.protection-card li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: rgba(255, 253, 248, 0.92);
  font-size: 0.92rem;
}

.protection-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.protection-card li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.protection-card strong { color: var(--gold); }

/* ===================== TRANSPARENCY CARD (Visão Geral) ===================== */
.transparency-card { background: rgba(255, 253, 248, 0.96); }

.cat-bars {
  display: grid;
  gap: 10px;
}

.cat-bar {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cat-bar[open] {
  border-color: rgba(7, 95, 97, 0.4);
  box-shadow: 0 8px 24px rgba(50, 27, 13, 0.06);
}

.cat-bar summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 16px 22px 22px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
}

.cat-bar summary::-webkit-details-marker { display: none; }

.cat-bar__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown);
}

.cat-bar__val {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
}

.cat-bar__chevron {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.cat-bar[open] .cat-bar__chevron {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.cat-bar__fill {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 10px;
  height: 5px;
  border-radius: 999px;
  background: rgba(228, 205, 169, 0.6);
  overflow: hidden;
}

.cat-bar__fill::after {
  content: "";
  display: block;
  height: 100%;
  width: calc(var(--pct, 0) * 1%);
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.cat-bar__list {
  list-style: none;
  margin: 0;
  padding: 0 22px 22px;
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(228, 205, 169, 0.6);
  padding-top: 16px;
}

.cat-bar__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(228, 205, 169, 0.5);
  color: var(--muted);
  font-size: 0.9rem;
}

.cat-bar__list li:last-child { border-bottom: none; }

.cat-bar__list li strong {
  color: var(--brown);
  font-weight: 600;
}

.cat-bar__list li span {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  white-space: nowrap;
}

.cat-bar__list li.cat-bar__note {
  color: var(--teal-dark);
  font-style: italic;
  font-size: 0.85rem;
  border-bottom: none;
  display: block;
}

/* ===================== AMENITY CARD — variant clickable (espelho landing) ===================== */
.amenity-card--clickable {
  cursor: pointer;
}

.amenity-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 12px;
  align-self: flex-start;
  border-radius: 999px;
  background: rgba(7, 95, 97, 0.95);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.amenity-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }

  .chart-row--3-2,
  .chart-row--1-1 { grid-template-columns: 1fr; }

  .insight-row { grid-template-columns: 1fr; }
  .top-list { grid-template-columns: 1fr; }
  .month-grid { grid-template-columns: repeat(6, 1fr); }
  .ba-slider { grid-template-columns: 1fr; }
  .ba-slider img { height: 220px; }
  .tabs-wrap { top: 112px; }
}

@media (max-width: 720px) {
  .financial-hero { padding: 60px 0 44px; }
  .kpi-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .tab-panel { padding: 36px 0; }
  .chart-canvas, .chart-canvas--tall { height: 280px; }
  .month-grid { grid-template-columns: repeat(4, 1fr); }
  .tabs-wrap { top: 82px; }
  .chart-card { padding: 20px; }
  .protection-card { padding: 24px 22px; }
  .protection-card__stat { font-size: 2rem; }
  .market-table th, .market-table td { padding: 12px 14px; }
  .ba-modal__content { padding: 20px; }

  .cat-bar summary {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name chevron" "val val";
    padding: 14px 16px 18px;
  }
  .cat-bar__name { grid-area: name; font-size: 1rem; }
  .cat-bar__chevron { grid-area: chevron; }
  .cat-bar__val { grid-area: val; font-size: 0.82rem; }
  .cat-bar__fill { left: 16px; right: 16px; bottom: 8px; }
  .cat-bar__list { padding: 14px 16px 18px; }
  .cat-bar__list li { font-size: 0.85rem; }
}
