* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0f1216; font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif; color: #e8e8e4; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: fixed; z-index: 2; }
.top-left { left: 16px; top: 14px; pointer-events: none; }
.title { font-size: 16px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.sub { font-size: 12px; color: #c9cbc6; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.panel { right: 14px; top: 14px; width: 300px; background: rgba(18, 21, 26, .82); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 10px 12px; }
.row.head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-weight: 600; }
.row.head span { flex: 1; }
.row.head select { font: inherit; font-size: 12px; color: #e8e8e4; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 3px 6px; }
.btn { font: inherit; font-size: 12px; color: #e8e8e4; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 4px 9px; cursor: pointer; text-decoration: none; }
.btn:hover { background: rgba(255,255,255,.16); }
.btn.icon { width: 34px; text-align: center; padding: 4px 0; }
.layer { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 6px; margin: 6px 0 2px; font-size: 12px; }
.layer input[type=range] { grid-column: 1 / -1; width: 100%; margin: 0; }
.layer.small { grid-template-columns: auto auto 1fr auto auto 1fr; color: #c9cbc6; }
.layer.small input[type=range] { grid-column: auto; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw.wind { background: #4292c6; } .sw.ground { background: #6b6e66; } .sw.trees { background: #4f8f3a; } .sw.part { background: #e8f2ff; } .sw.temp { background: #e34948; } .sw.poll { background: #7a5bc2; } .sw.model { background: #9a9a94; }
.legend { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; align-items: center; font-size: 11px; color: #c9cbc6; margin-bottom: 4px; }
.legend .bar { height: 8px; border-radius: 3px; }
.bar.wind { background: linear-gradient(90deg, #f7fbff, #9ecae1, #4292c6, #08519c, #08306b); }
.bar.temp { background: linear-gradient(90deg, #ffffb2, #fed976, #feb24c, #fd8d3c, #f03b20, #bd0026); }
.layer select { font: inherit; font-size: 11px; color: #e8e8e4; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 5px; padding: 2px 4px; }
.bar.poll { background: linear-gradient(90deg, rgba(239,237,245,.1), #9e9ac8, #54278f, #3f007d); }
.readout { left: 16px; bottom: 64px; background: rgba(18, 21, 26, .82); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-variant-numeric: tabular-nums; pointer-events: none; white-space: pre; }
.timebar { left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; width: min(760px, calc(100% - 32px)); background: rgba(18, 21, 26, .82); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 8px 12px; }
.timebar input[type=range] { flex: 1; }
.timebar .time { min-width: 150px; font-variant-numeric: tabular-nums; color: #c9cbc6; }
.timebar select { font: inherit; color: #e8e8e4; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 3px 6px; }
.overlay { position: fixed; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(10,12,16,.9); transition: opacity .6s; }
.overlay.hide { opacity: 0; pointer-events: none; }
.box { width: 360px; text-align: center; }
.big { font-size: 16px; margin-bottom: 12px; }
.bar { height: 6px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: #3987e5; transition: width .2s; }
.small { margin-top: 8px; color: #c9cbc6; font-size: 12px; }

.info { margin-top: 4px; color: #ffd98a; max-width: 60vw; }
.shots { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin: 4px 0 6px; }
.shots .btn { text-align: center; padding: 6px 4px; }
.shots .btn.active { background: #3987e5; border-color: #3987e5; color: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.grid2 .layer.small { grid-template-columns: auto auto 1fr; }
.sw.tour { background: #ffd98a; } .sw.cars { background: #d2c6a5; } .sw.uavs { background: #f2924b; } .sw.signals { background: #22e07a; } .sw.stations { background: #7356bb; } .sw.roads { background: #565f65; }
.stats { font-size: 11px; color: #c9cbc6; margin-top: 6px; line-height: 1.5; white-space: pre-line; }
.panel { max-height: calc(100vh - 28px); overflow-y: auto; }
.timebar .time { min-width: 220px; }
