/* Fenster „Statistik“ + Preisverlauf im Markt-Fenster */
.st-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.st-head > :first-child { flex: 1; min-width: 0; margin: 0; }
.st-refresh { flex: none; }
.st-gap { margin-top: 14px; }
.st-sub { margin: 10px 0 2px; font-size: 12px; }

/* Kacheln */
.st-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.st-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-tile small { color: var(--muted); font-size: 12px; }
.st-tile b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-tile span { color: var(--muted); font-size: 12px; }

/* Balken (Güter) */
.st-bars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.st-bar { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 8px; font-size: 13px; }
.st-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-bar i { display: block; height: 8px; border-radius: 4px; background: var(--accent); min-width: 2px; }
.st-bar b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }

/* Ranglisten */
.st-seg { display: inline-flex; background: var(--bg); padding: 3px; border-radius: 10px; flex: 0 0 auto !important; }
.st-seg button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.st-seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.st-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.st-rank { display: inline-block; width: 22px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.st-cols .tbl td { padding: 6px; }
.st-link { cursor: pointer; }
.st-link:hover td { background: rgba(255,255,255,.03); }

/* Märkte */
.st-pick { min-width: 260px; max-width: 100%; }
.st-mhead { display: flex; align-items: flex-start; gap: 12px; }
.st-mhead > div:first-child { flex: 1; min-width: 0; }
.st-price { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Kennzahlen + Diagramm */
.st-facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 8px 0; }
.st-facts div { background: var(--bg); border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; min-width: 0; }
.st-facts small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-facts b { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.st-chart { width: 100%; height: 130px; display: block; }
.st-mk .st-chart { height: 96px; }
.st-chart text { fill: var(--muted); font-size: 10px; }
.st-chart .st-vol { fill: var(--neutral); }
.st-chart.empty { height: auto; padding: 18px; text-align: center; color: var(--muted); font-size: 13px; background: var(--bg); border-radius: 10px; }
.st-mk { margin: 4px 0 12px; }

@media (max-width: 700px) {
  .st-tiles { grid-template-columns: repeat(2, 1fr); }
  .st-facts { grid-template-columns: repeat(2, 1fr); }
  .st-head { flex-wrap: wrap; }
}
