html, body { margin:0; padding:0; height:100%; overflow:hidden; }
body { background:#050505; color:#eee; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
* { box-sizing: border-box; }
canvas { display:block; position:fixed; inset:0; width:100vw; height:100vh; z-index:0; }
#labelLayer { position:fixed; inset:0; z-index:9; pointer-events:none; }
#starInfo { position: fixed; top: 12px; right: 12px; max-width: 400px; background: rgba(0,0,0,0.55); padding: 10px 12px; border-radius: 6px; font-size: 13px; line-height: 1.5; z-index: 11; display: none; }
#starInfo .header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 12px; }
#starInfo h2 { margin: 0; font-size: 15px; font-weight: 600; flex: 1; }
#starInfo .close-btn { background: transparent; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 0; width: 20px; height: 20px; line-height: 1; flex-shrink: 0; }
#starInfo .close-btn:hover { color: #ffd84a; }
#ui { background: black; border-radius:6px; font-size:13px; line-height:1.6; transition: max-height 0.3s ease; overflow: hidden; z-index:10; }
#ui.collapsed { max-height: 40px; }
#ui.expanded { max-height: 600px; }
#uiHeader { padding: 10px 14px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; }
#uiHeader h1 { margin: 0; font-size: 20px; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 1; }
#uiArrow { transition: transform 0.3s ease; margin-left: 12px; flex-shrink: 0; display: inline-block; line-height: 1; font-size: 14px; }
#ui.collapsed #uiArrow { transform: rotate(-90deg); }
#uiContent { padding: 0 12px 10px 12px; }
fieldset { border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; padding: 8px 10px; margin: 8px 0; }
fieldset:first-of-type { margin-top: 0; }
legend { font-size: 12px; font-weight: 600; color: #aaa; padding: 0 6px; }
#goToSol { transition: background 0.2s ease; }
#goToSol:hover { background: #555; }
#solMarker { position:fixed; z-index:12; color:#ffd84a; pointer-events:auto; transform: translate(-50%, -50%); display:none; font-weight:600; text-shadow: 0 0 3px rgba(0,0,0,0.85); cursor:pointer; }
#solMarker .dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:#ffd84a; box-shadow: 0 0 6px rgba(255,216,74,0.9); margin-right:6px; vertical-align:middle; }
#solMarker .label { vertical-align:middle; font-size:12px; }
.lblCommon { font-weight:600; font-size:12px; }
.lblOfficial { font-weight:500; font-size:11px; color:#cccccc; }
.lblConstellation { position:absolute; color:#888888; font-size:14px; font-weight:200; letter-spacing:0.15em; text-transform:uppercase; text-shadow: 0 0 4px rgba(0,0,0,0.9); pointer-events:none; }
.control-row { display: flex; gap: 8px; align-items: center; }
.control-spacing { margin-top: 6px; }
.control-spacing-sm { margin-top: 4px; }
.range-input { width: 160px; }
.star-link { color: #6db3f2; text-decoration: none; }
.star-link-sm { color: #6db3f2; text-decoration: none; font-size: 12px; }
.color-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.divider-section { margin-top: 12px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.15); }
.section-label { font-size: 12px; margin-bottom: 4px; color: #aaa; }
.link-container { display: flex; gap: 8px; }
.separator { color: #666; }
.subtext-italic { margin-top: 8px; font-size: 11px; color: #aaa; font-style: italic; }
.btn-sm { padding: 2px 8px; font-size: 11px; background: #444; color: #fff; border: 1px solid #666; border-radius: 3px; cursor: pointer; }
.error-msg { color: white; padding: 1rem; }
.stats-text { margin-top: 6px; color: #ccc; }
