.page-balance .page-lead { max-width: 52rem; }

.page-balance .bal-guide {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 0 0 0.95rem;
  padding: 0;
}

.page-balance .bal-guide > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.page-balance .bal-guide > summary::-webkit-details-marker,
.page-balance .bal-guide > summary::marker {
  display: none;
  content: none;
}

.page-balance .bal-guide > summary::before {
  content: "▸";
  color: #64748b;
  font-size: 0.85rem;
  width: 1rem;
}

.page-balance .bal-guide[open] > summary::before { content: "▾"; }

.page-balance .bal-guide-body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid #eef1f5;
}

.page-balance .bal-guide-intro {
  margin: 0.95rem 0 0.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #1e293b;
}

.page-balance .bal-guide-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.4rem;
  margin: 0.95rem 0 0.35rem;
}

.page-balance .bal-guide-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 650;
}

.page-balance .bal-guide-steps p,
.page-balance .bal-guide-steps li {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}

.page-balance .bal-guide-steps ol {
  margin: 0;
  padding-left: 1.15rem;
}

.page-balance .bal-guide-steps ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.page-balance .bal-guide-steps li + li { margin-top: 0.28rem; }

.page-balance .bal-guide-health {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 0.85rem 0 0.2rem;
}

.page-balance .bal-guide-health article {
  border-radius: 12px;
  padding: 0.75rem 0.9rem 0.85rem;
}

.page-balance .bal-guide-health .is-good {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.page-balance .bal-guide-health .is-bad {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.page-balance .bal-guide-health h3 {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 650;
}

.page-balance .bal-guide-health .is-good h3 { color: #166534; }
.page-balance .bal-guide-health .is-bad h3 { color: #9a3412; }

.page-balance .bal-guide-health ul {
  margin: 0;
  padding-left: 1.15rem;
}

.page-balance .bal-guide-health li {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #334155;
}

.page-balance .bal-guide-health li + li { margin-top: 0.28rem; }

.page-balance .bal-guide-terms-title {
  margin: 1.05rem 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 650;
}

.page-balance .bal-guide-terms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 1.35rem;
  margin: 0;
}

.page-balance .bal-guide-terms dt {
  font-weight: 650;
  font-size: 0.86rem;
  margin: 0 0 0.12rem;
}

.page-balance .bal-guide-terms dd {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #475569;
}

@media (max-width: 900px) {
  .page-balance .bal-guide-steps,
  .page-balance .bal-guide-terms,
  .page-balance .bal-guide-health {
    grid-template-columns: 1fr;
  }
}

.page-balance .opiu-kpis {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.page-balance .opiu-kpi .val {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.page-balance .opiu-kpi.is-warn .val { color: #b45309; }
.page-balance .opiu-kpi.is-ok .val { color: #047857; }

.page-balance #source-hint {
  margin: 0 0 0.85rem;
  padding: 0.75rem 1rem;
}

.page-balance .bal-note {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.12rem;
  line-height: 1.35;
}

.page-balance .opiu-table thead th.num {
  text-align: right;
  min-width: 4.6rem;
}

.page-balance .opiu-table thead th.is-future,
.page-balance .opiu-table td.is-future {
  color: #94a3b8;
}

.page-balance tr.r-child td.sticky-name {
  padding-left: 1.6rem;
  font-weight: 500;
}

.page-balance tr.r-total td,
.page-balance tr.r-total td.sticky-name {
  background: #0f172a;
  color: #fff;
  font-weight: 700;
}

.page-balance tr.r-control td,
.page-balance tr.r-control td.sticky-name {
  background: #fff7ed;
  font-weight: 650;
}

.page-balance tr.r-control.is-ok td,
.page-balance tr.r-control.is-ok td.sticky-name {
  background: #ecfdf5;
}

.page-balance tr.is-empty td.num { color: #94a3b8; }

.page-balance .bal-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.page-balance .bal-toggle::before {
  content: "▸ ";
  font-size: 0.78em;
  color: #64748b;
}

.page-balance tr.is-open .bal-toggle::before { content: "▾ "; }

.page-balance .err {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #9f1239;
}
