* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.hidden { display: none !important; }

/* Login */
.login { height: 100%; display: flex; align-items: center; justify-content: center; background: #f3efe8; }
.card { background: #fff; padding: 32px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.08); width: 320px; display: flex; flex-direction: column; gap: 12px; }
.card h1 { margin: 0; font-size: 26px; }
.card .sub { margin: 0 0 8px; color: #888; }
.card input { padding: 12px; border: 1px solid #ddd; border-radius: 10px; font-size: 16px; }
.card button { padding: 12px; border: 0; border-radius: 10px; background: #8b5e34; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.card button:disabled { opacity: .6; cursor: default; }
.error { color: #c0392b; font-size: 13px; margin: 0; min-height: 16px; }

/* App */
.app { height: 100%; display: flex; flex-direction: column; }
.app header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #8b5e34; color: #fff; }
.controls { display: flex; gap: 8px; align-items: center; }
.controls select, .controls input, .controls button { padding: 7px 10px; border-radius: 8px; border: 0; font-size: 14px; }
.controls button { background: rgba(255,255,255,.2); color: #fff; cursor: pointer; }
#map { flex: 1; background: #dfe6e9; }

.app footer { padding: 10px 16px; background: #fff; border-top: 1px solid #eee; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.time { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
#scrubber { width: 100%; }
.meta { font-size: 12px; color: #888; }
