.economics .eco-nav,
.economics .eco-controls,
.eco-mini-links,
.eco-toolbar,
.eco-section-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.economics .eco-nav {
  margin-bottom: 20px;
}
.eco-nav a,
.eco-section-nav button {
  font-size: 13px;
  font-weight: 680;
}
.eco-nav a {
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--muted);
}
.eco-nav a[aria-current] {
  background: var(--accent-soft);
  color: var(--link);
}
.eco-controls {
  margin: 16px 0;
}
.eco-controls .field {
  margin: 0;
  min-width: min(210px, 100%);
}
.eco-controls select,
.eco-controls input {
  width: 100%;
}
.eco-title {
  margin-bottom: 12px;
}
.eco-section-nav {
  padding: 10px 0;
  margin: 8px 0 16px;
  border-block: 1px solid var(--line);
}
.eco-section-nav button {
  border: 0;
  background: transparent;
  color: var(--link);
  padding: 6px 8px;
}
.eco-section-nav button:hover {
  background: var(--accent-soft);
}
.eco-section {
  scroll-margin: 18px;
}
.eco-section:focus {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}
.eco-ledger td,
.eco-ledger th {
  vertical-align: top;
}
.eco-ledger td {
  overflow-wrap: anywhere;
}
.eco-ledger .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.eco-ledger .table-wrap {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.eco-ledger table {
  font-size: 13px;
}
.eco-ledger th {
  background: var(--paper);
  line-height: 1.4;
}
.eco-ledger small,
.eco-ledger .sub {
  margin: 3px 0 0;
  font-size: 11px;
}
.eco-ledger a {
  font-weight: 700;
}
.eco-hero {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 14px;
  align-items: stretch;
}
.eco-projection {
  padding: 22px;
  border-radius: 10px;
  background: var(--rail);
  color: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.eco-projection h2 {
  font-size: 16px;
  font-weight: 620;
  color: var(--surface);
}
.eco-value {
  display: block;
  font-size: clamp(23px, 3.2vw, 43px);
  letter-spacing: -0.065em;
  line-height: 1.15;
  font-weight: 640;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.eco-projection p {
  font-size: 13px;
  color: var(--light-muted);
  line-height: 1.5;
}
.eco-projection button {
  background: var(--accent-soft);
  color: var(--ink);
  border: 0;
  font-size: 12px;
  margin-top: auto;
}
.eco-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
  overflow: hidden;
}
.eco-kpi {
  background: var(--surface);
  padding: 15px;
  text-align: left;
  border: 0;
  border-radius: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  overflow-wrap: anywhere;
}
.eco-kpi span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.eco-kpi strong {
  font-size: clamp(17px, 1.75vw, 26px);
  font-weight: 690;
  letter-spacing: -0.045em;
}
.eco-kpi small {
  font-size: 11px;
  font-weight: 500;
}
.eco-formula {
  padding: 13px 15px;
  border-radius: 7px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.eco-explain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.eco-explain-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
}
.eco-explain-list .sum {
  font-weight: 750;
  display: inline-block;
  margin-inline-end: 8px;
}
.eco-neg {
  color: #983e2c;
}
.eco-pos {
  color: #336249;
}
.eco-overview .panel {
  padding: 15px;
}
.eco-note {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.eco-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.eco-portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 12px;
}
.eco-project {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.eco-project header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.eco-project h2 {
  font-size: 19px;
}
.eco-project dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  margin: 0;
  font-size: 13px;
}
.eco-project dt {
  color: var(--muted);
}
.eco-project dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}
.eco-project footer {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.eco-row-tools {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.eco-row-tools button {
  font-size: 12px;
  padding: 5px 8px;
}
.eco-allocation-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 8px;
  align-items: end;
  margin: 8px 0;
}
.eco-allocation-row .field {
  margin: 0;
  min-width: 0;
}
.eco-allocation-row button {
  min-height: 42px;
}
.eco-before {
  background: var(--paper);
  border-radius: 7px;
  padding: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.6;
}
.eco-muted-total {
  font-size: 14px;
  font-weight: 700;
}
.economics .section-head {
  gap: 8px;
}
.economics .section-head button {
  font-size: 13px;
}
.economics .empty {
  padding-inline: 2px;
}
@media (max-width: 860px) {
  .eco-hero {
    grid-template-columns: 1fr;
  }
  .eco-projection {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
  }
  .eco-projection h2,
  .eco-projection .eco-value,
  .eco-projection p {
    grid-column: 1;
  }
  .eco-projection button {
    grid-column: 2;
    grid-row: 1/4;
    align-self: center;
  }
}
@media (max-width: 620px) {
  .eco-nav {
    gap: 4px;
  }
  .eco-nav a {
    padding: 8px 6px;
  }
  .eco-controls .field {
    width: 100%;
  }
  .eco-kpi {
    padding: 11px;
  }
  .eco-kpi strong {
    font-size: 20px;
  }
  .eco-section-nav {
    gap: 1px;
  }
  .eco-section-nav button {
    min-height: 38px;
  }
  .eco-projection {
    display: flex;
  }
  .eco-projection button {
    margin-top: 4px;
  }
  .eco-allocation-row {
    grid-template-columns: 1fr 1fr;
  }
  .eco-allocation-row button {
    grid-column: 1/-1;
    width: fit-content;
  }
  .eco-portfolio {
    display: grid;
  }
  .eco-ledger table {
    min-width: 570px;
  }
}
.eco-text-button {
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--link);
  font-size: 13px;
  font-weight: 750;
  padding: 3px 0;
}
.eco-text-button:hover {
  text-decoration: underline;
  background: transparent;
}
