.ds-view {
  --ds-ink: var(--ink, #1e313a);
  --ds-muted: var(--muted, #53666f);
  --ds-border: var(--line, #d9e3e7);
  --ds-mono: var(--mono, "IBM Plex Mono", Consolas, monospace);
  min-width: 0;
  color: var(--ds-ink);
}
.ds-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}
.ds-heading h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.025em;
}
.ds-heading p, .ds-card p { color: var(--ds-muted); line-height: 1.7; }
.ds-heading p { margin: 6px 0 0; font-size: 14px; }
.ds-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 36px;
  padding: 6px 13px;
  gap: 8px;
  border: 1px solid var(--line-control, #cbd8dd);
  border-radius: var(--radius-sm, 6px);
  background: #f4f8f9;
  color: var(--teal-strong, #234953);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}
.ds-download span { font-size: 15px; line-height: 1; }
@media (hover: hover) {
  .ds-download:hover { background: #e8f0f2; border-color: #aebfc6; color: var(--ink, #1e313a); }
}
.ds-download:active { background: #dfeaed; }
.ds-download:focus-visible { outline: 2px solid var(--focus, #3b6f7d); outline-offset: 2px; }

.ds-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
  border: 1px solid var(--ds-border);
  border-radius: var(--radius, 10px);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-card, 0 1px 2px rgba(24, 42, 50, .04));
}
.ds-card { min-width: 0; margin: 0; padding: 20px clamp(18px, 2.2vw, 28px); }
.ds-card h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--ds-ink);
}
.ds-card p { margin: 5px 0 0; font-size: 13px; }
.ds-coverage { grid-row: span 2; border-inline-end: 1px solid var(--ds-border); }
.ds-values { border-top: 1px solid var(--ds-border); }

.ds-channel-list { list-style: none; margin: 16px 0 0; padding: 0; }
.ds-channel, .ds-axis {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 62px;
  align-items: center;
  column-gap: 12px;
}
.ds-channel { min-height: 40px; }
.ds-view:lang(en) :is(.ds-channel, .ds-axis) { grid-template-columns: minmax(90px, .38fr) minmax(0, 1fr) 58px; }
.ds-channel-name { display: grid; gap: 2px; }
.ds-channel-name b { font-family: Inter, "Segoe UI", sans-serif; font-size: 14px; font-weight: 600; line-height: 1.15; }
.ds-channel-name span { color: var(--ds-muted); font-size: 11px; }
.ds-channel-track {
  height: 8px; border-radius: 999px; overflow: hidden; background: #ecf1f4;
}
.ds-channel-track > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #628e9a, #376470);
}
.ds-channel-value {
  font: 500 12.5px/1.4 var(--ds-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ds-ink);
}
.ds-axis { margin-top: 6px; }
.ds-axis > div {
  position: relative;
  grid-column: 2;
  height: 22px;
  border-top: 1px solid var(--ds-border);
  color: var(--ds-muted);
  font: 400 11px/1.4 var(--ds-mono);
}
.ds-axis span { position: absolute; top: 5px; }
.ds-axis span:first-child { left: 0; }
.ds-axis span:nth-child(2) { left: 50%; transform: translateX(-50%); }
.ds-axis span:last-child { right: 0; }

.ds-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-subtle, #ebf0f2);
}
.ds-stats > div {
  background: #f7fafb;
  border: 1px solid #e7eff2;
  border-radius: 7px;
  padding: 10px 13px;
}
.ds-stats dt { color: var(--ds-muted); font-size: 12px; font-weight: 500; }
.ds-stats dd {
  margin: 4px 0 0;
  font: 600 clamp(17px, 1.4vw, 21px)/1.35 var(--ds-mono);
  letter-spacing: -.025em;
  color: var(--ds-ink);
}

.ds-splits { display: flex; gap: 5px; margin: 18px 0 0; padding: 0; list-style: none; }
.ds-split { flex: var(--ds-years) 1 0; min-width: 0; }
.ds-split strong {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 13px;
  color: var(--ds-ink);
  font-size: 12.5px;
  font-weight: 600;
}
.ds-split strong::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ds-split-color);
  flex: none;
}
.ds-split strong::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  border-radius: 999px;
  background: var(--ds-split-color);
}
.ds-split-train { --ds-split-color: #427380; }
.ds-split-validation { --ds-split-color: #778aa3; }
.ds-split-test { --ds-split-color: #b7915c; }
.ds-years { display: flex; padding-top: 7px; }
.ds-years time { flex: 1; color: var(--ds-muted); font: 500 12px/1.4 var(--ds-mono); }

.ds-notes { margin: 10px 0 0; }
.ds-notes > div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 14px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line-subtle, #ebf0f2);
  font-size: 13px;
  line-height: 1.7;
}
.ds-notes > div:last-child { border-bottom: 0; padding-bottom: 0; }
.ds-notes dt { color: var(--ds-ink); font-weight: 600; }
.ds-notes dd { margin: 0; color: var(--ds-muted); }

@media (max-width: 800px) {
  .ds-grid { grid-template-columns: 1fr; }
  .ds-coverage { grid-row: auto; border-inline-end: none; }
  .ds-period { border-top: 1px solid var(--ds-border); }
}
@media (max-width: 520px) {
  .ds-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .ds-card { padding: 16px 14px; }
  .ds-channel, .ds-axis { grid-template-columns: 60px minmax(0, 1fr) 54px; column-gap: 8px; }
  .ds-view:lang(en) :is(.ds-channel, .ds-axis) { grid-template-columns: 92px minmax(0, 1fr) 52px; }
  .ds-view:lang(en) .ds-split strong { font-size: 11px; gap: 4px; }
  .ds-split strong::before { width: 6px; height: 6px; }
  .ds-notes > div { gap: 10px; }
  .ds-years time { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-download { transition: none; }
}
