#atlas-more-button {
    color: #d3e0ef; border: 1px solid #53677d66; border-radius: 8px; background: #15283c66;
}
#atlas-more-button svg { width: 20px; height: 20px; }
#atlas-more-button[aria-expanded="true"] { border-color: #9eb5cf; background: #243f5b; }
#atlas-more-menu {
    position: fixed; z-index: 20050; display: flex; flex-direction: column; gap: 8px;
    width: max-content; max-width: calc(100vw - 16px); padding: 10px;
    box-sizing: border-box; overflow: auto; border: 1px solid #526b8777; border-radius: 12px;
    background: linear-gradient(150deg, #112236fa, #050d19fc); box-shadow: 0 20px 60px #000b, inset 0 1px #ffffff0d;
    backdrop-filter: blur(20px);
}
#atlas-more-menu[hidden], #atlas-more-menu button[hidden], #atlas-more-menu p[hidden], .atlas-observatory [hidden] { display: none !important; }
#atlas-more-menu button.atlas-more-item {
    flex: 0 0 34px; margin: 0; cursor: var(--atlas-pointer-cursor, pointer);
}
#atlas-more-menu .atlas-menu-glyph { font: 19px/1 "Segoe UI Emoji", "Apple Color Emoji", sans-serif; }
#atlas-more-menu #atlas-lookup-button, #atlas-more-menu #atlas-telescope-button {
    border: 1px solid rgba(var(--button-accent), .24); border-radius: 8px;
    background: linear-gradient(135deg, var(--button-dark), rgba(var(--button-accent), .12));
    box-shadow: 0 0 8px -3px rgba(var(--button-accent), .2); transition: all .25s ease;
}
#atlas-more-menu #atlas-lookup-button { --button-accent: 95, 220, 196; --button-dark: #071d23; --button-mid: #17656c; --button-light: #5eeac7; }
#atlas-more-menu #atlas-telescope-button { --button-accent: 240, 172, 107; --button-dark: #241324; --button-mid: #8c4d39; --button-light: #edbd7b; }
#atlas-more-menu #atlas-lookup-button:is(:hover, :focus-visible, [aria-pressed="true"]),
#atlas-more-menu #atlas-telescope-button:is(:hover, :focus-visible, [aria-pressed="true"]) {
    background: linear-gradient(135deg, var(--button-dark), var(--button-mid) 50%, var(--button-light));
    border-color: rgba(var(--button-accent), .65);
    box-shadow: 0 2px 14px -4px rgba(var(--button-accent), .6), inset 0 1px #ffffff22; transform: translateY(-1px);
}
.atlas-observatory {
    --accent: #9dd9cd; --line: #7ab9b035; --muted: #9aafbd;
    position: fixed; inset: 70px 0 0; z-index: 14000; display: flex; flex-direction: column; min-height: 0;
    box-sizing: border-box; color: #e3eef1; font: 13px/1.5 "Segoe UI", sans-serif;
    background: radial-gradient(ellipse at 85% 0, #1a393b66, transparent 55%), linear-gradient(150deg, #0b1522, #040a13 70%);
    color-scheme: dark; overflow: hidden;
}
.atlas-observatory *, .atlas-observatory *::before, .atlas-observatory *::after { box-sizing: border-box; }
.atlas-observatory button, .atlas-observatory input, .atlas-observatory select { font: inherit; }
.atlas-observatory button { color: inherit; }
.atlas-observatory :focus-visible, #atlas-more-menu :focus-visible, #atlas-more-button:focus-visible { outline: 2px solid #c9e7e5; outline-offset: 3px; }
.atlas-mode-masthead {
    display: flex; flex: 0 0 auto; align-items: center; gap: 24px; padding: 17px clamp(14px, 3vw, 44px);
    border-bottom: 1px solid var(--line); background: #0a162080;
}
.atlas-mode-back, .atlas-zenith, .atlas-retry {
    background: #172737; border: 1px solid var(--line); border-radius: 6px; padding: 9px 16px;
}
.atlas-mode-back:hover, .atlas-zenith:hover { background: #274252; }
.atlas-eyebrow { color: var(--accent); font-size: 9px; font-weight: 600; letter-spacing: .19em; }
.atlas-mode-masthead h2 { font-size: clamp(18px, 2vw, 25px); letter-spacing: .025em; font-weight: 400; margin: 2px 0 0; }
.atlas-mode-mark { margin-left: auto; opacity: .5; color: var(--accent); }
.atlas-mode-mark svg { width: 38px; height: 38px; }
.atlas-mode-content { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: auto; padding: 0 clamp(14px, 3vw, 44px) 20px; }
.atlas-lookup {
    --accent: #b2eddf; --line: #7bddcd38; --muted: #a0b8c9;
    background: radial-gradient(ellipse at 90% 0, #276b7333, transparent 55%),
        radial-gradient(ellipse at 5% 85%, #4d3f7833, transparent 55%), linear-gradient(135deg, #0d1e2d, #070e1c 65%, #0b1525);
}
.atlas-lookup-navigation { gap: 12px; padding: 6px clamp(10px, 2vw, 28px); background: linear-gradient(100deg, #142937aa, #18253b88); }
.atlas-lookup-navigation .atlas-mode-back { flex-shrink: 0; padding: 7px 13px; }
.atlas-lookup-controls { flex: 0 0 auto; }
.atlas-type-tabs { display: flex; flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; align-items: stretch; min-width: 0; gap: 4px; padding: 2px 0; }
.atlas-type-tabs button {
    --tab-rgb: 167, 197, 255;
    display: flex; align-items: center; gap: 5px; flex: 0 1 auto; min-width: 0; padding: 5px 8px;
    font-size: 12.5px; line-height: 1.1; text-align: left;
    border: 1px solid rgba(var(--tab-rgb), .25);
    background: radial-gradient(ellipse at 15% 0, rgba(var(--tab-rgb), .15), transparent 75%), linear-gradient(145deg, #142333, #0b1524);
    border-radius: 8px; color: #c5d5e1; transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.atlas-type-tabs button span { max-width: 7.2em; white-space: normal; overflow-wrap: normal; }
.atlas-type-tabs button[data-type="stars"] { --tab-rgb: 255, 211, 125; }
.atlas-type-tabs button[data-type="planets"] { --tab-rgb: 114, 208, 190; }
.atlas-type-tabs button[data-type="galaxies"] { --tab-rgb: 184, 157, 255; }
.atlas-type-tabs button[data-type="blackholes"] { --tab-rgb: 245, 150, 112; }
.atlas-type-tabs button[data-type="clusters"] { --tab-rgb: 148, 179, 255; }
.atlas-type-tabs button[data-type="asteroids"] { --tab-rgb: 209, 169, 126; }
.atlas-type-tabs button[data-type="comets"] { --tab-rgb: 104, 222, 245; }
.atlas-type-tabs button[data-type="tnos"] { --tab-rgb: 153, 185, 220; }
.atlas-type-tabs button[data-type="moons"] { --tab-rgb: 216, 223, 240; }
.atlas-type-tabs svg { width: 16px; height: 16px; flex-shrink: 0; color: rgb(var(--tab-rgb)); filter: drop-shadow(0 0 4px rgba(var(--tab-rgb), .25)); }
.atlas-type-tabs button:hover { border-color: rgba(var(--tab-rgb), .6); background-color: rgba(var(--tab-rgb), .1); }
.atlas-type-tabs button[aria-selected="true"] {
    border-color: rgba(var(--tab-rgb), .7); color: #f3f7ff;
    background: linear-gradient(125deg, rgba(var(--tab-rgb), .28), rgba(var(--tab-rgb), .09)), #102031;
    box-shadow: inset 0 -2px rgb(var(--tab-rgb)), 0 0 15px -7px rgba(var(--tab-rgb), .5);
}
.atlas-lookup-form { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; align-items: end; gap: 10px; padding-top: 10px; }
.atlas-observatory label { display: flex; flex-direction: column; gap: 5px; color: #b2c4cd; font-size: 11px; }
.atlas-query-label { flex: 1; }
.atlas-observatory select, .atlas-observatory input[type="search"] {
    width: 100%; min-width: 0; min-height: 42px; padding: 9px 12px; border: 1px solid #7d9eae55;
    border-radius: 5px; color: #e2edef; background: #0d1b29; font-size: 14px;
}
.atlas-primary-action { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 22px; border: 1px solid #a1d6c6; border-radius: 6px; background: linear-gradient(135deg, #ccebe3, #8cd4c6 55%, #71b7bd); color: #0b2529 !important; font-weight: 600 !important; }
.atlas-primary-action svg { width: 18px; height: 18px; }
.atlas-primary-action:disabled { opacity: .5; }
.atlas-search-status { color: var(--muted); font-size: 11px; margin: 7px 0 10px; min-height: 17px; }
.atlas-search-status.atlas-error { color: #ffb6a6; }
.atlas-lookup .atlas-mode-content { overflow: hidden; }
.atlas-lookup-results { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 12px; }
.atlas-empty-state { display: grid; place-content: center; flex: 1; min-height: 220px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; padding: 30px; }
.atlas-empty-state h3 { margin: 10px 0; font-size: clamp(24px, 4vw, 42px); font-weight: 300; }
.atlas-empty-state p { max-width: 460px; margin: 0 auto; color: var(--muted); }
.atlas-result-picker { flex-direction: row !important; align-items: center; gap: 12px !important; }
.atlas-result-picker select { width: auto; flex: 1; min-height: 35px; font-size: 12px; }
.atlas-object-license {
    position: relative; border: 1px solid rgba(var(--object-rgb), .45); border-radius: 13px; overflow: auto; min-height: 0;
    background: repeating-linear-gradient(123deg, transparent 0 45px, rgba(var(--object-rgb), .025) 45px 46px),
        radial-gradient(ellipse at 100% 0, rgba(var(--object-rgb), .2), transparent 65%), linear-gradient(145deg, var(--object-panel), var(--object-base));
    box-shadow: 0 18px 55px #0005, inset 0 1px rgba(var(--object-rgb), .25); flex: 1;
    scrollbar-width: thin; scrollbar-color: rgba(var(--object-rgb), .6) transparent; overscroll-behavior: contain;
}
.atlas-license-stripe { display: flex; justify-content: space-between; gap: 14px; padding: 9px 22px; background: rgb(var(--object-rgb)); border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 600; letter-spacing: .16em; color: var(--object-stripe-ink); }
.atlas-license-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(125px, 1fr); gap: 20px 24px; padding: clamp(15px, 2.5vw, 28px); }
.atlas-license-identity { min-width: 0; }
.atlas-license-identity h3 { margin: 8px 0 14px; font-size: clamp(22px, 3.2vw, 40px); line-height: 1.2; font-weight: 400; overflow-wrap: anywhere; color: #ecf5f0; }
.atlas-aliases { display: flex; flex-wrap: wrap; gap: 6px; }
.atlas-aliases > span { max-width: 100%; padding: 4px 8px; background: linear-gradient(120deg, rgba(var(--object-rgb), .1), #05131e66); border: 1px solid var(--line); border-radius: 4px; font: 11px/1.6 Consolas, monospace; overflow-wrap: anywhere; }
.atlas-aliases b { color: var(--accent); font-weight: 400; margin-right: 5px; }
.atlas-constellation { color: #d1e8e4; margin: 13px 0 0; }
.atlas-constellation span { color: var(--muted); margin-right: 10px; font-size: 11px; }
.atlas-license-portrait { margin: 0; min-width: 0; align-self: start; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: radial-gradient(ellipse at center, rgba(var(--object-rgb), .14), #040d18); box-shadow: 0 8px 25px #0004; }
.atlas-preview-host { width: 100%; aspect-ratio: 1; min-height: 110px; max-height: 190px; position: relative; }
.atlas-preview-host canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.atlas-preview-host p { padding: 12px; color: var(--muted); font-size: 11px; }
.atlas-license-portrait figcaption { color: #9cb2be; text-align: center; border-top: 1px solid var(--line); font-size: 7px; letter-spacing: .12em; padding: 6px 3px; }
.atlas-license-data { grid-column: 1 / -1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.atlas-license-data h4 { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 0; font-size: 11px; font-weight: 400; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; }
.atlas-license-data dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); align-content: start; gap: 0 26px; margin: 0; }
.atlas-record-field { padding: 11px 0; border-bottom: 1px solid rgba(var(--object-rgb), .1); min-width: 0; }
.atlas-record-field dt { color: var(--muted); font-size: 10px; }
.atlas-record-field dd { margin: 3px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 12px; }
.atlas-unknown { color: #77909e; font-style: italic; }
.atlas-object-license footer { display: flex; justify-content: space-between; gap: 12px; padding: 11px 22px; font: 8px/1.5 Consolas, monospace; letter-spacing: .1em; color: #8eabb7; background: #04111b66; }
.atlas-telescope { --accent: #edbe8c; --line: #d4a36a38; background: radial-gradient(ellipse at 5% 0, #57402c33, transparent 50%), #050b15; }
.atlas-telescope-tools { padding-top: 15px; flex: 0 0 auto; }
.atlas-telescope-tools label { max-width: 530px; }
.atlas-telescope-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 310px); gap: clamp(18px, 4vw, 60px); flex: 1; min-height: 0; align-items: start; }
.atlas-lens-column { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.atlas-lens-mount {
    position: relative; width: min(100%, 66vh, 760px); aspect-ratio: 1; border-radius: 50%; padding: 16px;
    background: repeating-conic-gradient(from 0deg, #93a6b22b 0deg .15deg, transparent .15deg 5deg), radial-gradient(circle, #050a11 62%, #79614b 63%, #182534 65%, #0c1420 67%, #8e6d49 68%, #14202d 69%);
    box-shadow: 0 20px 60px #000a, inset 0 0 10px #000; border: 1px solid #b5966a44;
}
.atlas-telescope-lens { display: block; width: 100%; height: 100%; border-radius: 50%; touch-action: none; cursor: var(--atlas-grab-cursor, grab); }
.atlas-telescope-lens:active { cursor: var(--atlas-grabbing-cursor, grabbing); }
.atlas-lens-north { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: #c7b69888; font: 7px Consolas, monospace; letter-spacing: .16em; pointer-events: none; white-space: nowrap; }
.atlas-lens-caption { text-align: center; color: #7f91a4; font: 8px/1.5 Consolas, monospace; letter-spacing: .15em; margin: 16px 0; }
.atlas-instrument-panel { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(150deg, #2a282333, #0e1925); }
.atlas-instrument-panel h3 { font-weight: 400; font-size: 24px; overflow-wrap: anywhere; margin: 8px 0; }
.atlas-site-coordinates { color: #a7b3bd; font: 11px/1.9 Consolas, monospace; }
.atlas-instrument-readout { padding: 10px 0; margin: 15px 0; border-block: 1px solid var(--line); color: var(--accent); font: 10px/1.8 Consolas, monospace; }
.atlas-instrument-panel label { position: relative; margin-bottom: 20px; font-size: 12px; }
.atlas-instrument-panel output { position: absolute; right: 0; color: #f2d6b7; font: 12px Consolas, monospace; }
.atlas-instrument-panel input[type="range"] { width: 100%; accent-color: #d5ab7d; margin: 10px 0 0; }
.atlas-zenith { width: 100%; }
.atlas-instrument-note { font-size: 10px; color: #8599a8; line-height: 1.8; margin: 18px 0 0; }
@media (min-width: 1000px) and (min-height: 700px) {
    .atlas-license-data dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .atlas-mode-masthead { padding: 12px 14px; gap: 15px; }
    .atlas-mode-content { padding-inline: 12px; }
    .atlas-mode-mark svg { width: 28px; height: 28px; }
    .atlas-lookup-navigation { padding: 5px 8px; gap: 6px; align-items: flex-start; }
    .atlas-lookup-navigation .atlas-mode-back { padding-inline: 9px; }
    .atlas-type-tabs { gap: 3px; }
    .atlas-type-tabs button { padding: 4px 6px; gap: 4px; font-size: 11px; }
    .atlas-type-tabs svg { width: 14px; height: 14px; }
    .atlas-lookup-form { grid-template-columns: 95px minmax(0, 1fr) 42px; gap: 7px; }
    .atlas-lookup-form label { font-size: 10px; }
    .atlas-primary-action { justify-content: center; padding: 0; }
    .atlas-primary-action span { display: none; }
    .atlas-license-stripe { padding-inline: 14px; font-size: 7px; letter-spacing: .06em; }
    .atlas-license-body { gap: 18px 12px; grid-template-columns: minmax(0, 3fr) minmax(85px, 1fr); padding: 14px; }
    .atlas-preview-host { min-height: 85px; }
    .atlas-license-identity h3 { font-size: 23px; }
    .atlas-aliases > span { font-size: 9px; }
    .atlas-object-license footer { padding-inline: 14px; font-size: 6px; }
    .atlas-result-picker { align-items: start; flex-direction: column !important; }
    .atlas-result-picker select { width: 100%; }
    .atlas-telescope-workspace { grid-template-columns: 1fr; }
    .atlas-lens-mount { width: min(100%, 62vh); }
    .atlas-instrument-panel { padding: 18px; }
    .atlas-instrument-note { font-size: 11px; }
}
@media (max-height: 500px) and (min-width: 701px) {
    .atlas-lens-mount { width: min(100%, 76vh); }
    .atlas-mode-masthead { padding-block: 7px; }
}
@media (max-height: 650px) {
    .atlas-lookup .atlas-mode-content { overflow: auto; }
    .atlas-lookup-results { flex: 1 0 220px; }
}
