:root {
  --paper: #f4f0e6;
  --paper-light: #faf7ef;
  --paper-deep: #eae5d8;
  --ink: #202a29;
  --muted: #7b8075;
  --bronze: #987749;
  --jade: #376d62;
  --jade-pale: #e4e9df;
  --line: #dcd8cb;
  --line-dark: #c9c6b8;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; background: var(--paper); }
body { margin: 0; color: var(--ink); font: 12px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button { border: 0; background: none; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { transition: color 150ms ease, background 150ms ease, border-color 150ms ease; }
button:hover { color: var(--jade); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--jade); outline-offset: 4px; }
input, select { min-width: 0; }
input[type="search"], input[type="number"], input[type="datetime-local"], select { border: 1px solid var(--line); border-radius: 3px; background-color: rgba(255,255,255,.22); }
select { appearance: none; padding: 9px 28px 9px 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237b8075' stroke-width='1.2'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
input::placeholder { color: #93958a; }
input[type="checkbox"] { width: 14px; height: 14px; margin: 0; accent-color: var(--jade); cursor: pointer; }
input[type="range"] { display: block; width: 100%; height: 18px; margin: 0; background: transparent; appearance: none; accent-color: var(--jade); cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--line-dark); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-dark); }
input[type="range"]::-webkit-slider-thumb { width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; border: 2px solid var(--paper); background: var(--jade); box-shadow: 0 0 0 1px var(--jade); appearance: none; }
input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--paper); background: var(--jade); box-shadow: 0 0 0 1px var(--jade); }
h1, h2, h3, p { margin: 0; }
svg { display: block; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: 0 0 auto; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.reverse { transform: rotate(180deg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.atlas-app { width: 100%; height: 100dvh; min-height: 760px; max-width: 1920px; margin: 0 auto; padding: 0 36px; display: grid; grid-template-rows: 91px minmax(0,1fr) auto 36px; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line-dark); }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand-seal { width: 40px; height: 40px; stroke: var(--bronze); stroke-width: 1; }
.brand-seal .seal-star { fill: var(--bronze); stroke: var(--paper); stroke-width: 1.5; }
.brand-name { font: 600 35px/1 var(--serif); letter-spacing: 4px; }
.brand-divider { width: 1px; height: 28px; background: var(--line-dark); margin: 0 2px 0 4px; }
.brand-caption { padding-top: 3px; font-size: 13px; letter-spacing: 3px; }
.brand-caption small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; letter-spacing: 1.8px; }
.header-actions { display: flex; align-items: center; gap: 23px; }
.edition-note { margin-right: 12px; color: var(--bronze); font: 13px var(--serif); letter-spacing: 3px; }
.quiet-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 0; color: #656d63; font-size: 12px; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 30px; height: 30px; border-radius: 3px; color: #6d756a; }
.icon-button:hover { background: rgba(55,109,98,.075); }
.workspace { min-height: 0; display: grid; grid-template-columns: 198px minmax(0,1fr) 280px; gap: 27px; padding: 27px 0 22px; }
.panel-eyebrow { display: flex; align-items: center; justify-content: space-between; color: var(--bronze); font-size: 10px; line-height: 18px; letter-spacing: 2.5px; }
.section-index { color: #a69b83; font: 12px var(--serif); letter-spacing: 0; }
.catalog-panel { min-height: 0; display: flex; flex-direction: column; padding-right: 20px; border-right: 1px solid var(--line); }
.catalog-title { font: 600 22px/1.5 var(--serif); letter-spacing: 1px; margin: 10px 0 20px; }
.search-field { position: relative; }
.search-field .icon { position: absolute; top: 11px; left: 10px; color: #999b8f; width: 14px; height: 14px; pointer-events: none; }
.search-field input { width: 100%; height: 36px; padding: 8px 9px 8px 30px; font-size: 10px; }
.select-label { margin: 16px 0 6px; font-size: 10px; color: var(--muted); letter-spacing: 1px; }
#region-filter { width: 100%; height: 35px; font-size: 11px; padding-top: 7px; padding-bottom: 7px; }
.catalog-count { display: flex; justify-content: space-between; margin: 24px 0 10px; font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.catalog-count #visible-count { color: var(--bronze); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.asterism-list { flex: 1; min-height: 0; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; scrollbar-color: var(--line-dark) transparent; }
.asterism-list::-webkit-scrollbar, .selected-stars::-webkit-scrollbar, .detail-panel::-webkit-scrollbar { width: 3px; }
.asterism-list::-webkit-scrollbar-thumb, .selected-stars::-webkit-scrollbar-thumb, .detail-panel::-webkit-scrollbar-thumb { background: var(--line-dark); border-radius: 3px; }
.asterism-item { display: flex; position: relative; align-items: center; justify-content: space-between; gap: 7px; width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid transparent; border-radius: 3px; text-align: left; }
.asterism-item:hover { background: #edece1; }
.asterism-item.active, .asterism-item.is-active, .asterism-item[aria-selected="true"] { color: var(--jade); background: var(--jade-pale); border-color: #d4ded1; }
.asterism-item.active::before, .asterism-item.is-active::before, .asterism-item[aria-selected="true"]::before { content: ""; position: absolute; left: -1px; top: 11px; bottom: 11px; width: 2px; background: var(--jade); }
.asterism-name { font: 600 15px var(--serif); letter-spacing: .75px; }
.asterism-meta { color: var(--muted); font-size: 10px; white-space: nowrap; }
.asterism-item .asterism-name { margin-right: auto; }
.asterism-item small { display: block; font-size: 9px; color: var(--muted); font-weight: 400; }
.asterism-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--bronze); flex: 0 0 auto; }
.list-empty { text-align: center; margin-top: 42px; padding: 0 7px; color: #898d81; font: 13px/1.7 var(--serif); }
.list-empty span { display: block; margin-top: 8px; font: 10px/1.6 var(--sans); }
.catalog-footer { display: flex; justify-content: space-between; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; white-space: nowrap; }
.catalog-footer b { font-weight: 500; color: #626c61; }
.legend-star { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--bronze); margin: 0 4px 2px 0; }
.observatory { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.observatory-heading { display: flex; justify-content: space-between; gap: 15px; padding: 0 6px; }
.observatory-heading .panel-eyebrow { font-size: 9px; letter-spacing: 3px; }
h1 { margin-top: 8px; font: 500 clamp(26px,2.5vw,37px)/1.45 var(--serif); letter-spacing: 2px; }
h1 span { color: #4d5a51; }
.observatory-intro { margin-top: 5px; font-size: 11px; color: var(--muted); letter-spacing: 1.5px; }
.help-button { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 4px; border: 1px solid var(--line-dark); border-radius: 50%; color: #929382; font: 13px var(--serif); }
.help-button:hover { border-color: var(--jade); }
.view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 23px 6px 12px; }
.segmented-control { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 4px; background: rgba(237,233,222,.5); }
.segmented-control button { min-width: 87px; padding: 6px 12px; border-radius: 2px; font-size: 11px; line-height: 18px; color: #7b8074; }
.segmented-control button.active, .segmented-control button.is-active, .segmented-control button[aria-pressed="true"] { color: var(--jade); background: var(--paper-light); box-shadow: 0 1px 3px rgba(61,57,37,.075); }
.view-indicator { display: inline-flex; align-items: center; gap: 6px; color: #929789; font-size: 9px; letter-spacing: 1px; white-space: nowrap; }
.view-indicator i { height: 4px; width: 4px; border-radius: 50%; background: #7c9681; }
.sky-stage { position: relative; display: flex; flex: 1; min-height: 230px; isolation: isolate; background: radial-gradient(ellipse at 50% 47%,rgba(255,255,255,.36),transparent 65%); }
#sky-canvas { position: relative; flex: 1; width: 100%; min-height: inherit; overflow: hidden; touch-action: none; }
#sky-canvas > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; outline: none; cursor: grab; }
#sky-canvas > canvas:active { cursor: grabbing; }
#sky-labels { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.sky-label { position: absolute; color: #6f6856; font: 12px var(--serif); letter-spacing: 1px; padding: 1px 3px; border-radius: 3px; background: rgba(244,240,230,.72); text-shadow: 0 0 4px var(--paper); white-space: nowrap; pointer-events: none; }
.sky-label.selected-label, .sky-label.is-selected, .sky-label.selected { color: var(--jade); font-weight: 700; font-size: 14px; }
.sky-label.mansion-label { color: #aa8453; font-size: 10px; }
.sky-label.pole-label { color: #7b8373; font-size: 10px; }
.stage-tick { position: absolute; width: 12px; height: 12px; border-color: var(--line-dark); border-style: solid; z-index: 3; opacity: .8; pointer-events: none; }
.tick-tl { left: 0; top: 0; border-width: 1px 0 0 1px; }.tick-tr { right: 0; top: 0; border-width: 1px 1px 0 0; }.tick-bl { left: 0; bottom: 0; border-width: 0 0 1px 1px; }.tick-br { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.stage-note { position: absolute; z-index: 4; display: flex; flex-direction: column; gap: 4px; pointer-events: none; font-size: 9px; line-height: 1.65; color: #8a8d7f; }
.stage-note-top { left: 14px; top: 12px; }
.tiny-label { font-size: 7px; letter-spacing: 1.9px; color: #a49f8d; }
.stage-note-bottom { bottom: 11px; left: 14px; }
.interaction-hint { color: #a5a596; font-size: 8px; }
.interaction-hint span { margin: 0 6px; }
.reset-button { position: absolute; z-index: 4; right: 9px; bottom: 14px; display: flex; align-items: center; gap: 5px; padding: 5px; color: #929383; font-size: 9px; background: rgba(244,240,230,.8); border-radius: 3px; }
.reset-button .icon { width: 13px; height: 13px; }
.sky-loading { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: #8d8c7b; pointer-events: none; }
.sky-loading > span { font: 19px var(--serif); letter-spacing: 4px; }
.sky-loading small { font-size: 9px; letter-spacing: 1px; }
.loading-orbit { width: 62px; height: 62px; border: 1px solid var(--line); border-top-color: var(--bronze); border-radius: 50%; margin-bottom: 14px; animation: orbit 8s linear infinite; }
.loading-orbit::after { content: ""; display: block; width: 42px; height: 42px; margin: 9px; border: 1px solid var(--line); border-left-color: var(--jade); border-radius: 50%; }
#sky-canvas.is-ready .sky-loading, .sky-loading[hidden] { display: none; }
@keyframes orbit { to { transform: rotate(360deg); } }
.observation-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 17px 5px 0; }
.learning-scenes { display: flex; align-items: center; gap: 7px; }
.tools-label { margin-right: 4px; color: #8f907f; font-size: 10px; letter-spacing: .5px; }
.scene-pill { padding: 4px 10px; border: 1px solid var(--line); border-radius: 20px; color: #687563; font-size: 10px; white-space: nowrap; }
.scene-pill:hover, .scene-pill.active { color: var(--jade); border-color: #9bb09c; background: #e8ebdf; }
.layer-settings, .location-details { position: relative; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.layer-settings summary, .location-details summary { display: flex; align-items: center; gap: 5px; color: #858874; font-size: 10px; white-space: nowrap; padding: 5px 0; }
.layer-settings summary .icon, .location-details summary .icon { width: 10px; height: 10px; transform: rotate(-90deg); }
.layer-settings[open] summary .icon, .location-details[open] summary .icon { transform: rotate(90deg); }
.layer-popover, .location-popover { position: absolute; bottom: calc(100% + 11px); z-index: 12; padding: 20px; border: 1px solid var(--line-dark); border-radius: 4px; background: #faf7ef; box-shadow: 0 8px 35px #3f463518; }
.layer-popover { width: 260px; right: 0; }
.popover-title { margin-bottom: 16px; font: 17px var(--serif); }
.layer-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.layer-options label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #667060; cursor: pointer; }
.magnitude-label { display: flex; justify-content: space-between; margin: 20px 0 7px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 11px; }
.magnitude-label output { color: var(--jade); font-variant-numeric: tabular-nums; }
.setting-note { margin-top: 7px; font-size: 9px; color: #979989; }
.detail-panel { min-height: 0; overflow-y: auto; padding-left: 22px; border-left: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-dark) transparent; }
.selected-heading { display: flex; align-items: flex-start; flex-direction: column; gap: 6px; margin-top: 12px; }
#selected-name { font: 500 31px/1.45 var(--serif); letter-spacing: 3px; }
.status-tag { display: inline-block; flex: 0 0 auto; padding: 2px 6px; border: 1px solid #d4dbcb; border-radius: 2px; color: #758668; font-size: 9px; white-space: nowrap; }
.status-tag.below-horizon, .status-tag.is-hidden { color: #a48a61; border-color: #ded2bf; }
.selected-subtitle { min-height: 16px; margin-top: 3px; font-size: 10px; letter-spacing: .6px; color: var(--bronze); }
.selected-description { margin: 15px 0 19px; font: 12px/1.95 var(--serif); color: #78806e; }
.detail-section { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 16px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.section-heading h3 { color: #67745f; font-size: 11px; font-weight: 500; letter-spacing: .6px; }
.section-heading > span { color: #a09f8d; font-size: 8px; white-space: nowrap; }
.coordinate-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 17px; margin: 15px 0 0; }
.coordinate-grid dt { font-size: 9px; color: #8e9283; }
.coordinate-grid dt span { padding-left: 4px; color: #b0ad9c; font-size: 7px; letter-spacing: .5px; }
.coordinate-grid dd { margin: 3px 0 0; font: 17px/1.35 var(--serif); font-variant-numeric: tabular-nums; color: #4f665b; white-space: nowrap; }
.ancient-section { margin-top: 18px; }
.section-heading .bronze-annotation { color: #af946d; font-family: var(--serif); letter-spacing: 1px; }
.ancient-coordinates { display: grid; grid-template-columns: 1fr 1fr; column-gap: 17px; row-gap: 10px; margin: 11px 0 0; }
.ancient-coordinates .mansion-row { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: center; }
.ancient-coordinates dt { color: #8c8e7d; font-size: 9px; }
.ancient-coordinates dd { margin: 3px 0 0; font: 16px/1.4 var(--serif); color: #927343; font-variant-numeric: tabular-nums; }
.ancient-coordinates .mansion-row dd { margin: 0; font-size: 12px; }
.ancient-note { margin-top: 10px; color: #a29c89; font-size: 8px; letter-spacing: -.1px; white-space: nowrap; }
.stars-section { margin-top: 15px; }
.selected-stars { max-height: 135px; min-height: 46px; margin-top: 9px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-dark) transparent; }
.star-item { min-height: 28px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 3px; border-bottom: 1px solid #e4e0d4; text-align: left; font-size: 10px; }
.star-item::before { content: ""; width: 3px; height: 3px; flex: 0 0 auto; border-radius: 50%; background: var(--bronze); }
.star-item > :first-child { margin-right: auto; }
.star-item strong, .star-item .star-name { font-weight: 400; font-family: var(--serif); font-size: 12px; }
.star-item small, .star-item .star-meta { color: #999b8d; font-size: 9px; }
.star-item.active, .star-item.selected, .star-item.is-active { color: var(--jade); background: var(--jade-pale); }
.stars-empty { padding: 13px 0; color: #a09f90; font-size: 10px; }
.angle-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.angle-section > label { font-family: var(--serif); font-size: 12px; color: #79806b; }
.angle-controls { display: flex; align-items: center; gap: 9px; margin-top: 8px; }
#angle-star { flex: 1; width: 100%; min-width: 0; height: 31px; padding: 5px 23px 5px 8px; font-size: 10px; }
#angle-result { min-width: 54px; max-width: 98px; color: var(--bronze); font: 15px var(--serif); white-space: nowrap; }
.time-console { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line); padding: 16px 0 11px; }
.time-console-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.time-title { display: flex; align-items: center; gap: 8px; }
.time-title .icon { width: 15px; height: 15px; color: var(--bronze); }
.time-title h2 { font: 600 16px var(--serif); letter-spacing: 1px; }
.time-title > span { margin-left: 6px; color: #9b9c8b; font-size: 9px; letter-spacing: .5px; }
.observation-readings { display: flex; align-items: center; gap: 23px; color: #979889; font-size: 9px; }
.observation-readings b { padding-left: 7px; font-weight: 400; font-variant-numeric: tabular-nums; color: #77816f; }
.time-controls { display: flex; align-items: flex-end; gap: 20px; margin-top: 14px; }
.datetime-control { flex: 0 0 225px; }
.datetime-control > label, .location-control > label { display: block; margin-bottom: 5px; font-size: 9px; color: #919382; }
.datetime-control label span { margin-left: 6px; font-size: 8px; color: #aaa794; }
#datetime { width: 100%; height: 32px; padding: 5px 8px; font-size: 11px; font-variant-numeric: tabular-nums; color: #5c6958; }
.location-control { flex: 0 0 148px; }
.location-select { position: relative; }
.location-select .icon { position: absolute; left: 10px; top: 9px; width: 13px; height: 13px; color: #9b9d8c; pointer-events: none; }
#location { width: 100%; height: 32px; padding: 5px 24px 5px 29px; font-size: 11px; color: #5c6958; }
.location-details { flex: 0 0 auto; margin: 0 12px 2px -10px; }
.location-details summary { padding: 5px; }
.location-popover { left: 0; width: 205px; padding: 16px; }
.location-popover > label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 11px; color: #728067; }
.location-popover > label span { color: #a4a38f; font-size: 9px; }
.location-popover > label:not(:first-child) { margin-top: 12px; }
.degree-input { position: relative; }
.degree-input input { width: 100%; height: 32px; padding: 5px 21px 5px 8px; }
.degree-input > span { position: absolute; right: 8px; top: 5px; color: #999a89; }
.playback-group { display: flex; align-items: center; gap: 9px; }
.play-button { height: 32px; min-width: 77px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px; border-radius: 3px; color: var(--paper-light); background: var(--jade); font-size: 11px; white-space: nowrap; }
.play-button:hover { color: white; background: #28584e; }
.play-symbol { display: block; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor; }
.play-button[aria-pressed="true"] .play-symbol { width: 7px; height: 8px; border: 0; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
#speed { width: 115px; height: 32px; padding: 5px 24px 5px 10px; font-size: 10px; color: #77816f; }
.day-controls { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.day-controls .icon-button { width: 26px; height: 30px; }
.day-controls .icon { width: 12px; height: 12px; }
.now-button { height: 32px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 3px; font-size: 10px; color: #7f8773; white-space: nowrap; }
.now-button:hover { border-color: #9eaf94; }
.timeline { display: flex; align-items: flex-start; gap: 18px; margin-top: 12px; }
#time-display { min-width: 48px; max-width: 190px; font-size: 12px; padding-top: 1px; color: var(--jade); font: 15px/18px var(--serif); font-variant-numeric: tabular-nums; }
.timeline-track { flex: 1; min-width: 0; }
.timeline-ticks { display: flex; justify-content: space-between; color: #a3a18d; font-size: 8px; line-height: 13px; font-variant-numeric: tabular-nums; }
.timeline-ticks span { position: relative; }
.timeline-ticks span::before { content: ""; position: absolute; height: 3px; width: 1px; left: 50%; top: -4px; background: var(--line-dark); }
.timeline-ticks span:first-child::before { left: 0; }.timeline-ticks span:last-child::before { right: 0; left: auto; }
.timeline-caption { padding-top: 2px; color: #a49a82; font: 11px/18px var(--serif); letter-spacing: 2px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 8px; color: #70766a; font-size: 10px; }
#status-message { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-footer > span { flex: 0 0 auto; letter-spacing: 1px; }
.footer-divider { margin: 0 10px; color: #c2baa7; }
#info-dialog { width: min(710px,calc(100vw - 32px)); max-height: 84dvh; padding: 27px 32px 32px; border: 1px solid var(--line-dark); border-radius: 5px; background: var(--paper-light); color: var(--ink); box-shadow: 0 24px 90px #252f2429; }
#info-dialog::backdrop { background: rgba(38,45,35,.38); backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; }
#dialog-title { margin: 13px 0 21px; font: 500 28px var(--serif); letter-spacing: 2px; }
#dialog-body { font-size: 12px; line-height: 1.9; color: #737c6c; }
#dialog-body h3 { margin: 20px 0 8px; font: 600 17px var(--serif); color: var(--jade); }
#dialog-body p { margin-bottom: 12px; }
#dialog-body ul, #dialog-body ol { padding-left: 20px; }
#dialog-body img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); }
#dialog-body a { color: var(--jade); text-underline-offset: 3px; overflow-wrap: anywhere; }
#dialog-body table { width: 100%; border-collapse: collapse; font-size: 11px; }
#dialog-body th, #dialog-body td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.noscript-note { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--paper-light); border: 1px solid var(--bronze); padding: 18px; width: min(90vw,500px); }
@media (min-width: 1550px) and (min-height: 950px) {
  .atlas-app { padding: 0 43px; grid-template-rows: 101px minmax(0,1fr) auto 42px; }
  .workspace { grid-template-columns: 211px minmax(0,1fr) 280px; gap: 31px; padding-top: 33px; padding-bottom: 27px; }
  .catalog-panel { padding-right: 24px; }.detail-panel { padding-left: 23px; }
  .catalog-title { margin-bottom: 23px; }.asterism-item { min-height: 47px; }
  .observatory-heading { padding-left: 8px; }.view-toolbar { margin-top: 27px; margin-bottom: 16px; }
  .selected-description { margin-top: 17px; margin-bottom: 24px; line-height: 2.05; }
  .detail-section { padding-top: 16px; margin-top: 19px; }.coordinate-grid { gap: 20px 17px; margin-top: 18px; }
  .selected-stars { max-height: 158px; }.star-item { padding-top: 8px; padding-bottom: 8px; }
  .angle-section { margin-top: 17px; padding-top: 16px; }
  .time-console { padding-top: 19px; padding-bottom: 14px; }.time-controls { margin-top: 16px; }.timeline { margin-top: 15px; }
}
@media (max-width: 1399px) {
  .atlas-app { padding: 0 27px; grid-template-rows: 83px minmax(0,1fr) auto 32px; }
  .workspace { grid-template-columns: 175px minmax(0,1fr) 265px; gap: 21px; padding-top: 24px; padding-bottom: 19px; }
  .catalog-panel { padding-right: 16px; }.detail-panel { padding-left: 19px; }
  .catalog-title { font-size: 20px; }.search-field input { font-size: 9px; padding-left: 28px; }
  .edition-note { display: none; }.header-actions { gap: 20px; }
  .catalog-footer { font-size: 8px; }.view-toolbar { margin-top: 19px; }.segmented-control button { min-width: 78px; padding-left: 9px; padding-right: 9px; }
  .learning-scenes { gap: 5px; }.scene-pill { padding: 4px 8px; font-size: 9px; }.tools-label { font-size: 9px; margin-right: 2px; }
  .layer-settings summary { font-size: 9px; }.selected-description { margin-top: 12px; margin-bottom: 15px; }
  .time-controls { gap: 17px; }.datetime-control { flex-basis: 215px; }.location-details { margin-right: 0; }
}
@media (max-height: 840px) and (min-width: 1051px) {
  .atlas-app { min-height: 740px; grid-template-rows: 75px minmax(0,1fr) auto 29px; }
  .workspace { padding-top: 18px; padding-bottom: 17px; }
  .observatory-heading h1 { font-size: 27px; }.observatory-intro { margin-top: 2px; }.view-toolbar { margin-top: 13px; margin-bottom: 9px; }
  .observation-tools { padding-top: 12px; }.detail-panel { padding-right: 4px; }
  .selected-heading { margin-top: 8px; }#selected-name { font-size: 27px; }.selected-description { font-size: 11px; line-height: 1.8; margin-top: 10px; margin-bottom: 12px; }
  .detail-section { margin-top: 13px; padding-top: 10px; }.coordinate-grid { gap: 10px 15px; margin-top: 10px; }.coordinate-grid dd { font-size: 15px; }
  .ancient-coordinates { row-gap: 6px; margin-top: 8px; }.ancient-note { margin-top: 7px; }.selected-stars { max-height: 84px; }
  .angle-section { margin-top: 11px; padding-top: 9px; }.time-console { padding-top: 12px; padding-bottom: 8px; }.time-controls { margin-top: 10px; }.timeline { margin-top: 8px; }
}
@media (max-width: 1150px) and (min-width: 1051px) {
  .atlas-app { padding: 0 20px; }.workspace { grid-template-columns: 153px minmax(0,1fr) 242px; gap: 17px; }
  .brand-caption { font-size: 11px; letter-spacing: 2px; }.brand-caption small { font-size: 7px; }.catalog-title { font-size: 18px; }
  .catalog-panel { padding-right: 12px; }.detail-panel { padding-left: 15px; }.view-indicator { display: none; }.tools-label { display: none; }
  .catalog-footer { flex-wrap: wrap; gap: 3px 10px; }.ancient-note { font-size: 7px; }.time-controls { gap: 12px; }.location-control { flex-basis: 127px; }.datetime-control { flex-basis: 205px; }
  .day-controls { gap: 3px; }.now-button { padding-left: 8px; padding-right: 8px; }.observation-readings { gap: 15px; }
}
@media (max-width: 1050px) {
  .atlas-app { height: auto; min-height: 100dvh; padding: 0 24px; grid-template-rows: 81px auto auto 36px; }
  .masthead { gap: 15px; }.header-actions { gap: 15px; }.brand-name { font-size: 30px; }.brand-seal { width: 35px; height: 35px; }.brand-caption { font-size: 11px; letter-spacing: 2px; }.brand-caption small { font-size: 7px; letter-spacing: 1px; }
  .workspace { grid-template-columns: 172px minmax(0,1fr); gap: 23px; padding-top: 24px; }
  .observatory { min-height: 660px; }.catalog-panel { max-height: 660px; }.sky-stage { min-height: 430px; }
  .detail-panel { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 25px; border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; overflow: visible; }
  .detail-panel > .panel-eyebrow { grid-column: 1; }.selected-heading { grid-column: 1; }.selected-subtitle { grid-column: 1; }.selected-description { grid-column: 1; grid-row: 4/7; margin-bottom: 0; }
  .modern-section { grid-column: 2; grid-row: 1/5; }.ancient-section { grid-column: 3; grid-row: 1/5; }.stars-section { grid-column: 2; grid-row: 5/8; }.angle-section { grid-column: 3; grid-row: 5/8; align-self: start; }
  .detail-section { border-top: 0; padding-top: 0; margin-top: 0; }.stars-section,.angle-section { margin-top: 19px; padding-top: 14px; border-top: 1px solid var(--line); }
  .selected-stars { max-height: 112px; }.coordinate-grid { gap: 15px; }.ancient-coordinates { row-gap: 14px; }.ancient-note { white-space: normal; line-height: 1.8; }
  .time-console { padding-top: 19px; }.time-controls { flex-wrap: wrap; column-gap: 17px; row-gap: 13px; }.datetime-control { flex-basis: 220px; }.location-control { flex-basis: 153px; }.playback-group { margin-left: auto; }.day-controls { margin-left: 0; }
  .observation-readings { gap: 15px; font-size: 8px; }.time-title > span { display: none; }.timeline { margin-top: 16px; }.page-footer { font-size: 7px; }
}
@media (max-width: 760px) {
  .atlas-app { padding: 0 18px; grid-template-rows: 73px auto auto auto; }
  .brand { gap: 9px; }.brand-name { font-size: 29px; }.brand-seal { width: 31px; height: 31px; }.brand-caption { display: none; }.brand-divider { display: none; }.header-actions { gap: 14px; }.quiet-button { font-size: 10px; gap: 5px; }.quiet-button .icon { width: 15px; height: 15px; }.header-actions .icon-button { width: 22px; }
  .workspace { display: flex; flex-direction: column; gap: 23px; padding-top: 24px; }.observatory { order: 0; min-height: 610px; }.catalog-panel { order: 1; max-height: none; padding: 20px 0 0; border-right: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 130px; gap: 10px; }
  .catalog-panel > .panel-eyebrow { grid-column: 1/-1; }.catalog-title { margin: 0 0 4px; grid-column: 1/-1; font-size: 23px; }.search-field { grid-column: 1; }.search-field input { font-size: 11px; }.select-label { display: none; }#region-filter { grid-column: 2; height: 36px; }.catalog-count { grid-column: 1/-1; margin: 10px 0 0; }
  .asterism-list { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 3px 8px; max-height: 260px; min-height: 70px; }.asterism-item { min-height: 44px; }.list-empty { grid-column: 1/-1; margin: 15px 0; }.catalog-footer { grid-column: 1/-1; margin-top: 2px; font-size: 10px; padding-top: 10px; }
  .observatory-heading { padding: 0 3px; }.observatory-heading h1 { font-size: 30px; }.observatory-intro { font-size: 10px; letter-spacing: .9px; }.view-toolbar { margin: 22px 0 12px; }.view-indicator { font-size: 8px; letter-spacing: 0; }.segmented-control button { min-width: 80px; font-size: 10px; }.sky-stage { min-height: 390px; }
  .stage-note-top { left: 10px; top: 11px; }.stage-note-bottom { left: 10px; bottom: 10px; }.stage-note { font-size: 8px; }.interaction-hint { font-size: 7px; }.observation-tools { padding-left: 0; padding-right: 0; }.tools-label { display: none; }.learning-scenes { gap: 6px; }.scene-pill { font-size: 10px; padding: 4px 10px; }
  .detail-panel { order: 2; grid-template-columns: 1fr 1fr; gap: 0 23px; padding-top: 20px; }.detail-panel > .panel-eyebrow { grid-column: 1/-1; }.selected-heading { grid-column: 1/-1; }.selected-subtitle { grid-column: 1/-1; }.selected-description { grid-column: 1/-1; grid-row: auto; margin-bottom: 20px; font-size: 13px; }.modern-section { grid-column: 1; grid-row: auto; }.ancient-section { grid-column: 2; grid-row: auto; }.stars-section { grid-column: 1; grid-row: auto; }.angle-section { grid-column: 2; grid-row: auto; }
  #selected-name { font-size: 32px; }.selected-stars { max-height: 155px; }.section-heading > span { display: none; }.coordinate-grid { gap: 14px 9px; }.coordinate-grid dd { font-size: 16px; }.ancient-note { font-size: 8px; }.ancient-coordinates { row-gap: 12px; }.angle-controls { flex-wrap: wrap; }#angle-star { flex-basis: 100%; }#angle-result { margin-top: 3px; }.stars-section,.angle-section { margin-top: 20px; padding-top: 15px; }
  .time-console { margin-top: 6px; padding-top: 19px; padding-bottom: 13px; }.time-console-top { align-items: flex-start; }.time-title h2 { white-space: nowrap; }.observation-readings { gap: 4px; display: grid; text-align: right; font-size: 8px; }.time-controls { gap: 14px 12px; }.datetime-control { flex: 1 0 calc(62% - 12px); }.location-control { flex: 1 0 38%; }.location-details { margin: 0; }.playback-group { margin: 0; gap: 7px; }.day-controls { margin-left: auto; gap: 3px; }.now-button { font-size: 9px; padding-left: 8px; padding-right: 8px; }#speed { width: 105px; }.play-button { min-width: 63px; padding-left: 8px; padding-right: 8px; }.day-controls .icon-button { width: 21px; }
  .location-popover { bottom: calc(100% + 8px); }.timeline { gap: 12px; margin-top: 18px; }.timeline-caption { display: none; }.page-footer { padding: 11px 0 14px; align-items: flex-start; flex-direction: column; gap: 3px; font-size: 8px; }.page-footer > span { font-size: 7px; }#status-message { white-space: normal; }
  #info-dialog { padding: 21px; }#dialog-title { font-size: 25px; }
}
@media (max-width: 420px) {
  .atlas-app { padding: 0 14px; }.header-actions { gap: 10px; }.quiet-button .icon { display: none; }.quiet-button { font-size: 10px; }.brand-name { font-size: 27px; }
  .observatory { min-height: 565px; }.observatory-heading h1 { font-size: 27px; letter-spacing: 1px; }.view-indicator { display: none; }.segmented-control { width: 100%; }.segmented-control button { flex: 1; }.sky-stage { min-height: 350px; }.scene-pill { padding-left: 8px; padding-right: 8px; font-size: 9px; }.layer-settings summary { font-size: 9px; }
  .detail-panel { gap: 0 16px; }.coordinate-grid dd { font-size: 14px; }.coordinate-grid dt span { display: none; }.selected-description { font-size: 12px; }
  .time-controls { column-gap: 8px; }.location-details { flex: 0 0 auto; }.location-details summary { font-size: 9px; padding-left: 0; }.playback-group { margin-left: auto; }.day-controls { width: 100%; justify-content: center; gap: 25px; }.day-controls .icon-button { width: 30px; }.now-button { padding-left: 24px; padding-right: 24px; }.timeline { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
