#atlasGuideButton { width:100%; min-height:36px; color:#e5d7fd; }
#atlasGuide {
  box-sizing:border-box; width:min(690px,calc(100% - 24px)); max-height:min(85dvh,850px);
  padding:clamp(14px,3vw,25px); color:#edf1fc; color-scheme:dark; background:#101826;
  border:1px solid #a38dca70; border-radius:16px; box-shadow:0 28px 90px #000a; overflow:auto;
}
#atlasGuide::backdrop { background:#030710b8; }
.atlas-guide-head, .atlas-guide-controls, .atlas-guide-range {
  display:flex; gap:8px 12px; align-items:end; flex-wrap:wrap;
}
.atlas-guide-head, .atlas-guide-range { justify-content:space-between; }
#atlasGuide h2 { font-size:clamp(19px,4vw,28px); line-height:1.22; margin:12px 0 18px; }
#atlasGuide h2:focus { outline:none; }
#atlasGuide button, #atlasGuide input, #atlasGuide select {
  box-sizing:border-box; min-height:38px; max-width:100%; border:1px solid #b3a3d24d;
  border-radius:7px; background:#1c2940; color:#f0e9fd; font:inherit; font-size:13px; padding:7px 10px;
}
#atlasGuide button:hover { background:#33355a; }
#atlasGuide :is(button,input,select,a):focus-visible, #atlasGuidePins button:focus-visible {
  outline:2px solid #dfc7ff; outline-offset:3px;
}
#atlasGuide label { display:grid; gap:5px; font-size:13px; }
#atlasGuide input[type=range] { width:100%; padding:0; accent-color:#ccabff; }
#atlasGuide label.atlas-guide-range { display:flex; }
#atlasGuide p { margin:12px 0 0; line-height:1.55; }
#atlasGuideStatus:empty { display:none; }
#atlasGuide a { color:#dac4ff; }
.atlas-guide-note { color:#b5c5dc; font-size:12px; }
.atlas-guide-menu { display:grid; gap:8px; grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr)); }
#atlasGuide .atlas-guide-menu button, #atlasGuide .atlas-guide-event { display:grid; gap:4px; text-align:left; padding:11px 13px; }
.atlas-guide-menu span, .atlas-guide-event span { color:#becbe2; font-size:12px; }
#atlasGuide .atlas-guide-event { width:100%; margin-top:6px; }
.atlas-guide-map { display:block; width:100%; height:auto; margin-bottom:12px; border-radius:9px; background:#0c1427; }
.atlas-guide-sky {
  display:grid; grid-template-columns:minmax(145px,1fr) minmax(150px,1.1fr);
  align-items:center; gap:clamp(8px,3vw,24px); margin-top:14px;
}
.atlas-guide-sky svg { width:100%; max-height:275px; }
.atlas-guide-sky .sky-grid { fill:#252643; stroke:#a99ccd; stroke-width:1; }
.atlas-guide-sky text { text-anchor:middle; fill:#eee6ff; font-size:11px; }
.atlas-guide-sky .sky-points circle { fill:#a97dec; stroke:#f4e7ff; }
.atlas-guide-sky .sky-points line { stroke:#e2cfff; stroke-width:1; }
.atlas-guide-sky .sky-points text { fill:#111329; font-weight:bold; font-size:9px; }
.atlas-guide-sky table { width:100%; border-collapse:collapse; font-size:12px; }
.atlas-guide-sky :is(th,td) { padding:4px; border-bottom:1px solid #8496b635; text-align:right; }
.atlas-guide-sky th:first-child { text-align:left; }
.atlas-guide-sky .below-horizon { color:#aebbd2; }
.atlas-guide-share { margin-bottom:12px; }
.atlas-guide-share input { width:100%; }
#atlasGuidePins { position:fixed; inset:0; z-index:5; pointer-events:none; }
#atlasGuidePins .atlas-guide-pin {
  position:absolute; transform:translate(0,-50%); pointer-events:auto; white-space:nowrap;
  padding:7px 9px 7px 16px; font-size:11px; line-height:1; min-height:28px; border-radius:16px;
  border:1px solid #ddcefa80; background:#101526e8; color:#fff;
}
#atlasGuidePins .atlas-guide-pin::before {
  content:""; position:absolute; width:6px; height:6px; border-radius:50%;
  left:-3px; top:calc(50% - 3px); background:#e8c6ff; box-shadow:0 0 8px #dfb7ff;
}
#atlasGuidePins .atlas-guide-pin.align-right { transform:translate(-100%,-50%); padding:7px 16px 7px 9px; }
#atlasGuidePins .atlas-guide-pin.align-right::before { left:auto; right:-3px; }
@media (max-width:370px) {
  .atlas-guide-sky { grid-template-columns:1fr; }
}
@media (max-width:550px) {
  #sceneTools { flex-wrap:wrap; }
  #sceneTools #viewSelect { max-width:128px; text-overflow:ellipsis; }
}
