:root {
  --bg: rgba(18, 20, 24, 0.82);
  --fg: #e9e6df;
  --muted: #a39f96;
  --accent: #d9a441;
  --line: rgba(255, 255, 255, 0.12);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: var(--fg); }
#globe { position: absolute; inset: 0; }
.panel { position: absolute; background: var(--bg); backdrop-filter: blur(8px); border: 1px solid var(--line);
         border-radius: 10px; font-size: 13px; z-index: 2; }
.hidden { display: none !important; }

#bar { top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
       padding: 8px 14px; width: fit-content; max-width: calc(100% - 24px); box-sizing: border-box; }
.brand { font-weight: 700; letter-spacing: .04em; font-size: 15px; margin-right: 6px; }
.brand span { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
#bar label { display: flex; gap: 6px; align-items: center; color: var(--muted); }
#bar select { background: #23262c; color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; }
#bar input[type=range] { width: 110px; accent-color: var(--accent); }
#bar output { color: var(--fg); min-width: 38px; font-variant-numeric: tabular-nums; }

#info { top: 70px; right: 12px; width: 300px; max-width: calc(100% - 24px); padding: 12px 16px 14px; box-sizing: border-box; }
#info h2 { margin: 0 24px 8px 0; font-size: 16px; }
#info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
#info dt { color: var(--muted); }
#info dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-word; }
#info a { color: var(--accent); }
#infoClose { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; }

#legend { left: 12px; bottom: 44px; padding: 8px 12px; display: flex; flex-direction: column; gap: 3px; }
#legend:empty { display: none; }
#legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }

#status { left: 12px; right: 12px; bottom: 10px; padding: 5px 12px; display: flex; justify-content: space-between;
          gap: 12px; font-size: 12px; font-variant-numeric: tabular-nums; }
#status .credit { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cesium-viewer-bottom { display: none; }

@media (max-width: 700px) {
  #bar { gap: 6px 10px; font-size: 12px; }
  #status .credit { display: none; }
  #info { top: auto; bottom: 44px; }
}
