/* MeshCore live */
.mc-page { --c: var(--ok); }
.mc-lead { max-width: 75ch; color: var(--muted); margin: 10px 0 0; }
.lv-head p.off::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--err); margin-right: 8px; }

.mc-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 22px 0 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.mc-kpis div { padding: 14px 18px; background: var(--panel); border-right: 1px solid var(--line); min-width: 0; }
.mc-kpis div:last-child { border-right: 0; }
.mc-kpis dt { font-size: .82rem; color: var(--muted); }
.mc-kpis dd { margin: 4px 0 0; font: 600 1.45rem/1.15 var(--font-head); font-variant-numeric: tabular-nums; }
.mc-kpis dd small { font: 400 .82rem/1.2 var(--font); color: var(--muted); display: block; margin-top: 2px; }

.mc-map { height: min(56vh, 560px); min-height: 340px; margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel-2); }
.leaflet-container { font-family: var(--font); background: var(--panel-2); }
:root:not([data-theme="light"]) .mc-map .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.9) contrast(.88) saturate(.55); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .mc-map .leaflet-tile-pane { filter: none; } }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--text); }
.leaflet-bar a { background: var(--panel); color: var(--text); border-color: var(--line); }
.mc-pop b { display: block; font-size: 1rem; }
.mc-pop span { color: var(--muted); font-size: .85rem; }

.mc-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.mc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1.5px solid var(--panel); box-shadow: 0 0 0 1px var(--line); }
.mc-legend .home { border-radius: 2px; }

.mc-rate { display: flex; align-items: flex-end; gap: 2px; height: 70px; margin: 4px 0 4px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.mc-rate b { flex: 1; background: var(--c); border-radius: 2px 2px 0 0; min-height: 1px; opacity: .85; }
.mc-rate b:last-child { opacity: 1; }
.mc-rate-axis { display: flex; justify-content: space-between; font: .75rem/1 var(--mono); color: var(--dim); }

.mc-table td { white-space: nowrap; }
.mc-table td.what { white-space: normal; min-width: 12ch; }
.mc-table .path { color: var(--muted); font-size: .82rem; display: block; white-space: normal; }
.mc-table tr.new td { animation: mcnew 2.4s ease-out; }
@keyframes mcnew { from { background: color-mix(in srgb, var(--c) 22%, transparent); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .mc-table tr.new td { animation: none; } }
.mc-type { font: 600 .78rem/1 var(--mono); padding: 3px 6px; border-radius: 4px; background: color-mix(in srgb, var(--t, var(--dim)) 18%, transparent); color: var(--text); white-space: nowrap; }
.t-advert { --t: var(--n-ds); } .t-grp { --t: var(--n-bm); } .t-dm { --t: var(--n-ysf); }
.t-req { --t: var(--n-dmrplus); } .t-path { --t: var(--n-el); }

.mc-info { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding: 8px 0 56px; }
.mc-info .gear { margin-top: 8px; }
.mc-note { color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .mc-kpis { grid-template-columns: 1fr 1fr; }
  .mc-kpis div { border-bottom: 1px solid var(--line); }
  .mc-kpis div:nth-child(2n) { border-right: 0; }
  .mc-kpis div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .mc-info { grid-template-columns: 1fr; gap: 8px; }
}

/* Paket-Ticker: feste Hoehe, alte Eintraege laufen unten aus */
.mc-feed { position: relative; height: 640px; overflow: hidden; overflow-x: auto; }
.mc-feed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; z-index: 3;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 0%, transparent), var(--ink)); }
.mc-feed tbody { will-change: transform; }
.mc-feed thead th, .mc-box thead th { position: sticky; top: 0; z-index: 2; background: var(--ink); }
.mc-box { max-height: 440px; overflow: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
@media (max-width: 900px) { .mc-feed { height: 520px; } }
@media (max-width: 900px) { .mc-page .cols { grid-template-columns: minmax(0, 1fr); } }
/* Handy: Weg kurz (erster … letzter Repeater), einzeilig */
.mc-table .path-short { display: none; }
@media (max-width: 640px) {
  .mc-table .path-long { display: none; }
  .mc-table .path-short { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
  .mc-table td.what { min-width: 0; }
}
