/* All selectors are scoped. No global layout/style resets. */
.tsm-stage[hidden] { display: none !important; }
.tsm-stage { box-sizing:border-box; width:100%; max-width:100%; min-width:0; margin: 1.25rem 0 2rem; padding: 15px; border: 1px solid #dfe5ea; border-radius: 8px; background:#ffffff; color:#263238; }
.tsm-stage *, .tsm-stage *::before, .tsm-stage *::after { box-sizing: border-box; }
.tsm-stage__heading h2 { margin:0 0 7px; padding:0; font-size: 19px; line-height:1.5; }
.tsm-stage__heading p { margin:0 0 12px; line-height:1.7; font-size:13px; color:#52616b; }
.tsm-stage__status { overflow-wrap:anywhere; margin:0 0 8px; padding: 7px 10px; min-height: 30px; font-size: 12px; line-height:1.5; color:#344b5c; background:#f3f6f8; }
.tsm-stage__map { width:100%; max-width:100%; height:380px; min-height:280px; background:#eff3f5; z-index:0; }
.tsm-stage__credit { margin:6px 0 0; font-size:11px; color:#63727c; }
.tsm-stage__popup { min-width:150px; max-width:260px; font-size:13px; line-height:1.6; }
.tsm-stage__popup-title { display:block; margin:0 0 6px; font-size:13px; font-weight:700; }
.tsm-stage__popup-address { font-size:12px; color:#455a64; margin:0 0 7px; }
.tsm-stage__popup a { color:#165a9b; text-decoration:underline; }
.tsm-stage .leaflet-container { font: inherit; }
.tsm-stage .leaflet-popup-content { margin:12px 16px; }
.tsm-stage__diagnostics { margin-top:10px; padding:8px 10px; border:1px solid #dfe5ea; border-radius:5px; font-size:12px; }
.tsm-stage__diagnostics summary { cursor:pointer; font-weight:600; }
.tsm-stage__diagnostics pre { margin:8px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px; line-height:1.6; }
@media (max-width: 640px) {
  .tsm-stage { padding:8px; margin:1rem 0 1.5rem; border-radius:6px; }
  .tsm-stage__heading h2 { font-size:17px; }
  .tsm-stage__heading p { font-size:12px; }
  .tsm-stage__map { height:50svh; min-height:260px; max-height:360px; }
  .tsm-stage .leaflet-touch .leaflet-bar a { width:38px; height:38px; line-height:38px; }
  .tsm-stage__popup { max-width: min(240px, 70vw); }
}
@supports not (height: 1svh) {
  @media (max-width: 640px) { .tsm-stage__map { height:320px; } }
}
