body { margin: 0; color: #171717; background: #fff; font: 15px/1.45 system-ui, sans-serif; }
main { max-width: 1120px; margin: 32px auto; padding: 0 18px; }
a { color: inherit; text-underline-offset: 3px; }
h1 { font-size: 25px; font-weight: 600; margin: 22px 0 5px; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 9px; }
p { margin: 8px 0 12px; }
.intro, .help, .sources, .status { color: #666; }
.controls, .touch-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.controls { margin: 20px 0 12px; }
button, select { font: inherit; color: #171717; background: #fff; border: 1px solid #aaa; border-radius: 4px; padding: 7px 10px; cursor: pointer; }
button[aria-pressed="true"] { background: #171717; color: #fff; border-color: #171717; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, .viewer:focus-visible { outline: 2px solid #171717; outline-offset: 3px; }
#fps { font-variant-numeric: tabular-nums; margin-left: auto; white-space: nowrap; color: #666; }
.viewer { height: 65vh; min-height: 300px; position: relative; border: 1px solid #ddd; overflow: hidden; background: #202326; touch-action: none; }
#canvas-host, #canvas-host .cesium-viewer { width: 100%; height: 100%; }
.loading { position: absolute; top: 16px; left: 16px; right: 16px; color: #171717; background: #fff; border: 1px solid #ddd; padding: 10px 12px; pointer-events: none; }
.loading[hidden] { display: none; }
.attribution { position: absolute; bottom: 27px; right: 6px; max-width: calc(100% - 12px); background: #fff; color: #333; padding: 2px 6px; font-size: 11px; pointer-events: none; }
.status { min-height: 22px; font-size: 13px; margin: 8px 0; }
.help { font-size: 13px; }
.mobile-controls { display: none; gap: 14px; flex-wrap: wrap; margin: 12px 0; }
.mobile-controls button { min-width: 43px; min-height: 43px; touch-action: none; user-select: none; -webkit-user-select: none; }
.mobile-controls button.held { background: #171717; color: #fff; }
.touch-group span { font-size: 13px; color: #666; }
section { border-top: 1px solid #ddd; padding-top: 16px; margin-top: 28px; }
.cesium-viewer-bottom { font-family: system-ui, sans-serif; }
@media (pointer: coarse), (max-width: 700px) {
  main { margin-top: 22px; padding: 0 12px; }
  .viewer { height: 60vh; }
  .mobile-controls { display: flex; }
  .controls { gap: 6px; }
  .controls button, .controls select { padding: 8px; }
  #fps { margin-left: 0; }
}
