.tbx-st-summary p { max-width: 720px; margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.tbx-st-summary b { color: var(--text-primary); font-weight: 600; }
.tbx-st-summary a { color: var(--accent); }

.tbx-st-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.tbx-st-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tbx-st-tile b { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.tbx-st-tile span { font-size: 12px; color: var(--text-muted); }

.tbx-st-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px 20px;
  margin-bottom: 14px;
  min-width: 0;
}
.tbx-st-panel h2 { font-family: var(--font-mono); font-size: 14px; margin: 0 0 4px; }
.tbx-st-sub, .tbx-st-muted { font-size: 12.5px; color: var(--text-muted); margin: 0 0 14px; }
.tbx-st-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 14px; margin-bottom: 0; }
.tbx-st-two > .tbx-st-panel { margin-bottom: 14px; }

/* columns (single series) */
.tbx-st-svg { display: block; width: 100%; height: auto; overflow: visible; }
.tbx-st-axis { stroke: var(--border-strong); stroke-width: 1; }
.tbx-st-bar { fill: var(--accent); }
.tbx-st-hit { fill: transparent; }
.tbx-st-mark:hover .tbx-st-bar { fill: var(--accent-2); }
.tbx-st-mark:hover .tbx-st-hit { fill: color-mix(in srgb, var(--text-primary) 5%, transparent); }
.tbx-st-cols-labels { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: 6px; }
.tbx-st-cols-labels span { text-align: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); white-space: nowrap; }
.tbx-st-val { font-family: var(--font-mono); font-size: 14px; font-weight: 600; fill: var(--text-secondary); text-anchor: middle; }

/* calendar heatmap: one hue, light to dark */
.tbx-st-cal { overflow-x: auto; padding-bottom: 4px; }
.tbx-st-cal svg { display: block; }
.tbx-st-tick { font-family: var(--font-mono); font-size: 7.5px; fill: var(--text-muted); }
.tbx-st-l0 { fill: var(--panel-raised); background: var(--panel-raised); }
.tbx-st-l1 { fill: color-mix(in srgb, var(--accent) 30%, var(--panel-raised)); background: color-mix(in srgb, var(--accent) 30%, var(--panel-raised)); }
.tbx-st-l2 { fill: color-mix(in srgb, var(--accent) 55%, var(--panel-raised)); background: color-mix(in srgb, var(--accent) 55%, var(--panel-raised)); }
.tbx-st-l3 { fill: color-mix(in srgb, var(--accent) 78%, var(--panel-raised)); background: color-mix(in srgb, var(--accent) 78%, var(--panel-raised)); }
.tbx-st-l4 { fill: var(--accent); background: var(--accent); }
.tbx-st-cal rect:hover { stroke: var(--text-primary); stroke-width: 1.5; }
.tbx-st-key { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 10.5px; color: var(--text-muted); }
.tbx-st-key i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* horizontal bar list, value at the tip */
.tbx-st-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.tbx-st-bars li { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.tbx-st-bars a { color: var(--text-primary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbx-st-bars a:hover { text-decoration: underline; }
.tbx-st-track { height: 10px; }
.tbx-st-fill { display: block; height: 10px; min-width: 3px; border-radius: 0 4px 4px 0; background: var(--accent); }
.tbx-st-bars li:hover .tbx-st-fill { background: var(--accent-2); }
.tbx-st-bars b { font-size: 12px; color: var(--text-secondary); font-weight: 600; }

/* segmented part-to-whole bar */
.tbx-st-seg { display: flex; gap: 2px; height: 16px; margin: 8px 0 14px; }
.tbx-st-seg span:first-child { border-radius: 4px 0 0 4px; }
.tbx-st-seg span:last-child { border-radius: 0 4px 4px 0; }
.tbx-st-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; font-size: 13px; color: var(--text-secondary); }
.tbx-st-legend li { display: flex; align-items: center; gap: 7px; }
.tbx-st-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.tbx-st-legend b { color: var(--text-primary); font-weight: 600; }
.tbx-st-legend span { color: var(--text-muted); font-size: 11.5px; }
.tbx-st-seg-stable { background: var(--status-stable); }
.tbx-st-seg-beta { background: var(--status-beta); }
.tbx-st-seg-wip { background: var(--status-wip); }
.tbx-st-seg-concept { background: var(--status-concept); }
.tbx-st-seg-f-active { background: var(--status-stable); }
.tbx-st-seg-f-maintained { background: var(--accent-2); }
.tbx-st-seg-f-experiment { background: var(--accent); }
.tbx-st-seg-f-paused { background: var(--status-beta); }
.tbx-st-seg-f-done { background: var(--text-secondary); }
.tbx-st-seg-f-none { background: var(--border-strong); }

/* fun facts */
.tbx-st-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.tbx-st-fact { background: var(--panel-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.tbx-st-fact b { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.tbx-st-fact p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.tbx-st-fact a { color: var(--accent); }

/* the table view */
.tbx-st-tablewrap { overflow-x: auto; }
.tbx-st-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbx-st-table th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.tbx-st-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; color: var(--text-secondary); }
.tbx-st-table td:first-child a { color: var(--text-primary); text-decoration: none; }
.tbx-st-table td:first-child a:hover { text-decoration: underline; }
.tbx-st-table .num { text-align: right; font-family: var(--font-mono); }
.tbx-st-table .tbx-status-dot { width: 7px; height: 7px; box-shadow: none; }
.tbx-st-table tbody tr:hover td { background: var(--panel-raised); }
