#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; width: min(264px, calc(100vw - 16px)); padding: 7px;
    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-menu-status { padding: 5px 10px; color: #eeb6a4; font: 11px/1.5 "Segoe UI", sans-serif; }
#atlas-more-menu button.atlas-more-item {
    display: flex !important; justify-content: flex-start !important; align-items: center !important;
    width: 100% !important; min-width: 0 !important; max-width: none !important;
    height: auto !important; min-height: 44px !important; max-height: none !important;
    gap: 12px; padding: 10px 12px !important; margin: 3px 0; text-align: left;
    border-radius: 7px !important; font: 500 13px/1.3 "Segoe UI", sans-serif !important;
    border: 1px solid #829bb322 !important; box-shadow: none !important; text-shadow: none !important; transform: none !important;
}
#atlas-more-menu .atlas-menu-glyph, #atlas-more-menu svg { width: 22px; height: 22px; flex: 0 0 22px; text-align: center; font-size: 19px; }
#atlas-more-menu #atlas-lookup-button { background: #193d3b; color: #b7ece3; border-color: #74c6ba55 !important; }
#atlas-more-menu #atlas-telescope-button { background: #3a2a20; color: #f0cb9e; border-color: #d6a16855 !important; }
#atlas-more-menu button:hover { filter: brightness(1.25); }
.atlas-menu-divider { height: 1px; background: #829bb333; margin: 9px 5px; }
.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-controls { flex: 0 0 auto; }
.atlas-type-tabs { display: flex; gap: 5px; overflow-x: auto; padding: 16px 2px 10px; scrollbar-width: thin; }
.atlas-type-tabs button {
    flex-shrink: 0; padding: 8px 13px; white-space: nowrap; border: 1px solid #647c8b33;
    background: #10202e; border-radius: 5px; color: #afc0cc;
}
.atlas-type-tabs button[aria-selected="true"] { border-color: #93cbb7aa; color: #def6ed; background: linear-gradient(135deg, #2a514c, #1b323d); box-shadow: inset 0 -2px #a8d7c6; }
.atlas-lookup-form { display: flex; align-items: flex-end; gap: 12px; padding-top: 8px; }
.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-lookup-form > label:first-child { width: 185px; }
.atlas-primary-action { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 22px; border: 1px solid #a1d6c6; border-radius: 5px; background: #b4ddce; 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: 9px 0 15px; 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 #b1cfcf66; border-radius: 13px; overflow: hidden; min-height: 0;
    background: repeating-linear-gradient(123deg, transparent 0 45px, #94c6c603 45px 46px), radial-gradient(ellipse at 95% 10%, #35555b50, transparent 60%), #10202e;
    box-shadow: 0 18px 55px #0005, inset 0 1px #e6ffff22; flex: 1; display: flex; flex-direction: column;
}
.atlas-license-stripe { display: flex; justify-content: space-between; gap: 14px; padding: 9px 22px; background: #a9d2c511; border-bottom: 1px solid #bfdace33; font-size: 9px; letter-spacing: .16em; color: #c1e1d9; }
.atlas-license-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(125px, 1fr); grid-template-rows: auto minmax(0, 1fr); flex: 1; min-height: 0; gap: 0 24px; padding: clamp(15px, 2.5vw, 28px); }
.atlas-license-identity { min-width: 0; padding-bottom: 16px; max-height: 25vh; overflow: auto; }
.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: #05131e66; border: 1px solid #abc8cb33; border-radius: 3px; 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 #a9c5cb44; border-radius: 7px; overflow: hidden; background: radial-gradient(ellipse at center, #18334455, #040d18); }
.atlas-preview-host { width: 100%; aspect-ratio: 1; min-height: 110px; max-height: 23vh; 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; flex: 1; min-height: 0; overflow: auto; padding-right: 7px; scrollbar-width: thin; scrollbar-color: #9dbbb966 transparent; }
.atlas-record-field { padding: 11px 0; border-bottom: 1px solid #86aeb316; 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-form { flex-wrap: wrap; gap: 8px; }
    .atlas-lookup-form > label:first-child { width: 130px; }
    .atlas-query-label { flex-basis: calc(100% - 138px); }
    .atlas-primary-action { width: 100%; justify-content: center; min-height: 38px; }
    .atlas-license-stripe { padding-inline: 14px; font-size: 7px; letter-spacing: .06em; }
    .atlas-license-body { gap: 0 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 330px; }
    .atlas-license-identity { max-height: 140px; }
}
