html, body { margin: 0; height: 100%; }
#timelapse { position: relative; height: 100vh; min-height: 320px; font: 13px/1.3 system-ui, sans-serif; }
#tl-map { position: absolute; inset: 0 0 46px 0; }
.tl-msg { position: absolute; z-index: 1000; top: 12px; left: 50%; transform: translateX(-50%);
  background: #fff; padding: 6px 12px; border-radius: 4px; box-shadow: 0 1px 5px rgba(0,0,0,.4); }
.tl-msg:empty { display: none; }
.tl-msg.tl-error { background: #fbe3e3; color: #7a1010; }
.tl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; box-sizing: border-box;
  display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #f4f5f6; border-top: 1px solid #ccc; }
.tl-bar[hidden] { display: none; }
.tl-bar button { width: 32px; height: 30px; border: 1px solid #aaa; border-radius: 4px; background: #fff; cursor: pointer; font-size: 14px; }
.tl-bar button:hover { background: #e9ecef; }
#tl-slider { flex: 1 1 120px; min-width: 60px; }
.tl-label { min-width: 118px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-opt { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.tl-opt input[type=range] { width: 70px; }
@media (max-width: 560px) { .tl-opt { display: none; } .tl-label { min-width: 90px; } }
.tl-legend { background: rgba(255,255,255,.92); padding: 4px 6px; border-radius: 4px; box-shadow: 0 1px 5px rgba(0,0,0,.4); max-width: 220px; }
.tl-legend-toggle { border: 0; background: none; font: 600 12px system-ui, sans-serif; cursor: pointer; padding: 0 0 2px; }
.tl-legend-img { display: block; max-width: 100%; height: auto; }