/* Vista «Mezzi pubblici» of the city map: stop popups and line chips (web/transit-map.js). */
.trn-popup { min-width: 220px; max-width: 300px; max-height: min(380px, 42vh); overflow-y: auto; font-family: var(--font); color: var(--ink); }
.trn-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.trn-title { margin: 2px 0 8px; font-size: 16px; line-height: 1.25; font-weight: 800; }
.trn-lines { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; }
.trn-chip {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 20px; padding: 0 6px;
  border-radius: 6px; background: var(--trn-c, #1f5fa8); color: var(--trn-t, #fff);
  font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap;
}
.trn-deps { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.trn-deps li { display: grid; grid-template-columns: 44px auto 1fr auto; align-items: center; gap: 8px; font-size: 13px; }
.trn-dep-time { font-weight: 800; font-variant-numeric: tabular-nums; }
.trn-dep-head { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.trn-dep-in { color: var(--muted); font-size: 12px; white-space: nowrap; }
.trn-muted { margin: 4px 0 8px; color: var(--muted); font-size: 13px; }
.trn-stale { margin: 6px 0 8px; padding: 6px 8px; border-radius: 8px; background: var(--warn-soft, #fbefd6); color: var(--warn, #9a6a14); font-size: 12px; line-height: 1.35; }
.trn-actions { display: flex; gap: 8px; margin: 0 0 10px; }
.trn-actions .trn-go, .leaflet-container .trn-actions a.trn-go { text-decoration: none; color: var(--accent-ink, #fff); }
.trn-source { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .trn-stale { background: rgba(240, 194, 125, .14); color: #f7c23b; }
}
:root[data-theme="dark"] .trn-stale { background: rgba(240, 194, 125, .14); color: #f7c23b; }
/* Admin panel #mezzi (web/console/transit-admin.js) */
.trn-adm-progress { height: 8px; border-radius: 999px; background: var(--line-strong); overflow: hidden; margin: 6px 0; }
.trn-adm-progress span { display: block; height: 100%; background: var(--sea, #2458a6); }
.trn-adm-log { max-height: 280px; overflow: auto; font-size: 12px; white-space: pre-wrap; }
.trn-adm-warnings { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 4px; }
