.blog-figure {
  margin: 40px 0;
  border: 1px solid #e4e2d9;
  border-radius: 16px;
  background: #fff;
  color: #16161d;
  overflow: hidden;
  min-width: 0;
}
.blog-figure-head {
  padding: 24px 24px 18px;
}
.blog-figure-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4350ef;
}
.blog-figure h3 {
  margin: 8px 0 12px;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.blog-figure p {
  font-size: 14px;
  line-height: 1.75;
}
.blog-figure-controls {
  margin: 0 24px 20px;
  padding: 16px;
  background: #f7f6f2;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
}
.blog-figure [hidden] {
  display: none !important;
}
.blog-figure label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  flex: 1;
  min-width: 140px;
}
.blog-figure select,
.blog-figure input {
  width: 100%;
  padding: 10px;
  border: 1px solid #d5d4ce;
  border-radius: 7px;
  background: #fff;
  color: #16161d;
  font: inherit;
  font-size: 14px;
  min-height: 44px;
}
.blog-figure button {
  min-height: 44px;
  border: 1px solid #3242e8;
  background: #3242e8;
  color: #fff;
  border-radius: 7px;
  padding: 10px 16px;
  font: 600 14px/1.4 inherit;
  cursor: pointer;
}
.blog-figure :is(a, select, input, button, summary):focus-visible {
  outline: 3px solid #4350ef;
  outline-offset: 3px;
}
.blog-figure-scale,
.blog-figure-status {
  padding: 0 24px 12px;
  color: #5a5a66;
  font-size: 12px !important;
}
.blog-figure-chart {
  padding: 0 24px 20px;
  display: grid;
  gap: 17px;
}
.blog-figure-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 7px;
}
.blog-figure-row-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.blog-figure-row-head strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.blog-figure-row-head small {
  display: block;
  font-size: 11px;
  color: #5a5a66;
  margin-top: 3px;
}
.blog-figure svg {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 3px;
  background: #eeedf8;
}
.blog-figure rect {
  fill: #4350ef;
}
.blog-figure-table {
  padding: 0 24px 20px;
  overflow-x: auto;
}
.blog-figure table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.blog-figure caption {
  text-align: left;
  margin-bottom: 12px;
  font-weight: 600;
}
.blog-figure :is(th, td) {
  padding: 12px 10px;
  border-bottom: 1px solid #e4e2d9;
  vertical-align: top;
}
.blog-figure th {
  font-weight: 600;
}
.blog-figure td:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.blog-figure-footer {
  padding: 18px 24px;
  border-top: 1px solid #e4e2d9;
  background: #faf9f5;
}
.blog-figure-footer p + p {
  margin-top: 10px;
}
.blog-figure a {
  color: #3242e8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-figure-result {
  margin: 0 24px 20px;
  padding: 20px;
  border-left: 3px solid #4350ef;
  background: #f5f4fc;
  font-variant-numeric: tabular-nums;
}
.blog-figure-error {
  padding: 0 24px 16px;
  color: #a02532;
}
.blog-figure-note {
  color: #5a5a66;
}
.blog-figure-summary {
  padding: 0 24px 20px;
  font-size: 13px;
}
.blog-figure-summary summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}
.blog-figure-summary p {
  margin-top: 8px;
}
@media (max-width: 480px) {
  .blog-figure-head,
  .blog-figure-footer {
    padding: 20px 16px;
  }
  .blog-figure-controls {
    margin-left: 16px;
    margin-right: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .blog-figure-chart,
  .blog-figure-table {
    padding-left: 16px;
    padding-right: 16px;
  }
  .blog-figure label {
    min-width: 0;
  }
  .blog-figure-result {
    margin-left: 16px;
    margin-right: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blog-figure * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
