:root {
  --fs-lead: clamp(1.25rem, 1.05rem + 0.9vw, 1.5rem);
  --chart-line: var(--ink);
  --chart-flag: var(--risk);
  --chart-ref: var(--muted);
  --chart-grid: var(--line);
  --chart-tick: var(--muted);
}

.verdict { display: flex; gap: 16px; align-items: flex-start; }
.verdict .bar { flex: 0 0 5px; align-self: stretch; border-radius: 99px; background: var(--line-strong); min-height: 52px; }
.verdict .txt { min-width: 0; }
.verdict h2 { margin: 0; font-size: var(--fs-lead); font-weight: 700; line-height: 1.5; letter-spacing: -.01em; }
.verdict .sub { margin: 6px 0 0; font-size: var(--fs-label); color: var(--muted); font-variant-numeric: tabular-nums; }
.basis { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 12px; }
.basis .bl { font-size: var(--fs-caption); color: var(--muted); font-weight: 700; align-self: center; }
.basis .bc {
  font-size: var(--fs-caption); font-weight: 700; padding: 3px 10px; border-radius: 99px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.lede-meta { font-size: var(--fs-label); color: var(--muted); margin-top: 12px; }
.lede-meta b { color: var(--ink); }

.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); }
.tile .lbl { margin-bottom: 0; }
.tile .v {
  font-size: var(--fs-metric); font-weight: 700; letter-spacing: -.03em; line-height: 1.2;
  display: flex; align-items: baseline; gap: 4px; margin-top: 2px; color: var(--ink);
}
.tile .v .vt { font-size: var(--fs-md); letter-spacing: 0; }
.tile[data-s="none"] .v { color: var(--line-strong); }
.tile .u { font-size: var(--fs-label); font-weight: 700; color: var(--muted); }
.tile .v2 { font-size: var(--fs-md); font-weight: 700; color: var(--ink); margin-top: 2px; line-height: 1.4; }
.tile .v2 .v2l { font-size: var(--fs-label); font-weight: 700; color: var(--muted); margin-right: 8px; }
.tile .v2 .u { font-weight: 600; margin-left: 3px; }
.tile .v2 .v2n { font-size: var(--fs-label); font-weight: 500; color: var(--muted); }
.tile .dt { font-size: var(--fs-caption); color: var(--muted); }
.tile .d { font-size: var(--fs-caption); color: var(--muted); margin-top: 2px; margin-bottom: 6px; }
.tile .tile-note { font-size: var(--fs-caption); color: var(--muted); line-height: 1.6; margin: 0 0 6px; }
.tile .j {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: auto;
  font-size: var(--fs-caption); font-weight: 700; padding: 2px 9px; border-radius: 99px; border: 1px solid;
}
.tile .j::before { font-size: .95em; line-height: 1; }
.tile[data-s="risk"] .j { color: var(--risk); background: var(--risk-bg); border-color: var(--risk-line); }
.tile[data-s="risk"] .j::before { content: "▲"; }
.tile[data-s="watch"] .j { color: var(--watch-t); background: var(--watch-bg); border-color: var(--watch-line); }
.tile[data-s="watch"] .j::before { content: "▲"; }
.tile[data-s="ok"] .j { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.tile[data-s="ok"] .j::before { content: "✓"; }
.tile[data-s="none"] .j { color: var(--muted); background: var(--paper); border-color: var(--line); }
.tile[data-s="none"] .j::before { content: "－"; }
.legend { font-size: var(--fs-caption); color: var(--muted); line-height: 1.7; margin: 14px 0 0; }

.trend-card .tc-sum { margin: -4px 0 10px; font-size: var(--fs-label); }
.trend-card .tc-sum b { font-variant-numeric: tabular-nums; }
.trend-card .tc-note { font-size: var(--fs-caption); color: var(--muted); margin-top: 6px; }
.chart-box { display: grid; grid-template-columns: 48px minmax(0, 1fr); padding-right: 14px; }
.chart-box svg { display: block; overflow: visible; font-family: system-ui, sans-serif; font-size: 12px; }
.chart-box svg text { fill: var(--chart-tick); font-variant-numeric: tabular-nums; }
.chart-box .axis-title { font-weight: 600; }
.chart-plot .grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart-plot .ref { stroke: var(--chart-ref); stroke-width: 1.25; stroke-dasharray: 5 4; }
.chart-plot .series { stroke: var(--chart-line); stroke-width: 2; }
.chart-plot .mark circle { fill: var(--chart-line); stroke: var(--surface); stroke-width: 1.5; }
.chart-plot .mark text { fill: var(--chart-line); font-weight: 600; }
.chart-plot .mark.outside circle { fill: var(--chart-flag); }
.chart-plot .mark.outside text { fill: var(--chart-flag); }
.chart-plot .point { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.chart-plot .point .hit { fill: transparent; }
.chart-plot .point .ring { fill: none; stroke: none; }
.chart-plot .point .tip {
  visibility: hidden; pointer-events: none; fill: var(--ink); font-weight: 700;
  paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round;
}
.chart-plot .point:is(:hover, :focus) .tip { visibility: visible; }
.chart-plot .point:is(:hover, :focus) .ring { stroke: var(--ink); stroke-width: 2; }
#trend-charts:has(.point:hover) .point:focus:not(:hover) .tip { visibility: hidden; }
#trend-charts:has(.point:hover) .point:focus:not(:hover) .ring { stroke: none; }
