:root {
  color-scheme: dark;
  --page: #090d16;
  --panel: #101624;
  --line: #242d3f;
  --ink: #f0f3fa;
  --muted: #a4afc3;
  --accent: #f0b575;
  --blue: #81b6ed;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 310px; background: radial-gradient(ellipse at 30% -10%, #142033 0, transparent 47%), var(--page); }
button, select, input { font: inherit; }
button, select { color: var(--ink); }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible, canvas:focus-visible { outline: 2px solid #ffd093; outline-offset: 3px; }
[hidden] { display: none !important; }
.topbar { border-bottom: 1px solid #222a3a; background: #0b101ab0; }
.top-inner, .container { width: min(100% - 72px, 1500px); margin-inline: auto; }
.top-inner { min-height: 67px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 1.07rem; font-weight: 670; letter-spacing: -0.018em; }
.subtle { display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: #141b29; color: #ced5e2; font-size: .84rem; line-height: 1.2; }
.subtle:hover, .camera button:hover, select:hover { border-color: #65728b; background: #1b2638; }
.info-icon { font: 700 11px Georgia, serif; border: 1px solid #909db5; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; }
.intro { padding: 27px 0 24px; }
h1 { margin: 0; font-size: clamp(2.25rem, 4.06vw, 3.72rem); font-weight: 610; line-height: 1.1; letter-spacing: -.063em; }
h1 em { font-weight: inherit; font-style: normal; color: #f2bd84; }
.intro p { margin: 11px 0 0; color: #acb7c9; font-size: 1rem; line-height: 1.55; }
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 18px; }
.workspace { min-width: 0; border: 1px solid #2a3449; border-radius: 15px; overflow: hidden; background: var(--panel); }
.stage { position: relative; height: clamp(480px, calc(100svh - 345px), 710px); isolation: isolate; background: #070c18; }
#sky { position: absolute; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#sky:focus-visible { outline-offset: -4px; }
#sky.dragging { cursor: grabbing; }
.stage-heading { position: absolute; top: 17px; left: 17px; display: flex; align-items: flex-start; gap: 10px; padding: 10px 13px; border: 1px solid #343b50; border-radius: 9px; background: #0b1120e8; pointer-events: none; }
.stage-heading strong, .stage-heading span { display: block; }
.stage-heading strong { font-size: .90rem; letter-spacing: .012em; }
.stage-heading #scene-origin { margin-top: 3px; color: #b0bbce; font-size: .75rem; }
.view-indicator { margin-top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #ffc581; box-shadow: 0 0 12px #f7b17496; }
.camera { display: grid; gap: 6px; position: absolute; right: 16px; top: 17px; }
.camera button { width: 37px; height: 37px; background: #0d1323ec; border: 1px solid #343d53; border-radius: 8px; display: grid; place-items: center; }
button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stage-foot { position: absolute; inset: auto 0 0; min-height: 42px; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 17px; color: #bbc6da; background: linear-gradient(0deg,#070b16e8,transparent); font-size: .75rem; pointer-events: none; }
.stage-foot span:last-child { text-align: right; }
.timeline { padding: 15px 17px 12px; border-top: 1px solid var(--line); }
.timeline-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.play { display: grid; place-items: center; flex: 0 0 39px; height: 39px; border: 0; border-radius: 10px; background: #efb273; color: #24180d; }
.play:hover { background: #ffca93; }
.play svg { width: 21px; height: 21px; fill: currentColor; stroke: none; }
.clock { min-width: 0; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.clock span { color: var(--muted); font-size: .75rem; }
.clock output { font-size: .98rem; font-weight: 650; white-space: nowrap; }
.timeline-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.select-label { color: var(--muted); font-size: .79rem; margin-left: 3px; }
select { appearance: none; min-width: 80px; padding: 7px 26px 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(45deg,transparent 50%,#b2bdd1 50%) calc(100% - 14px) 50%/5px 5px no-repeat,linear-gradient(135deg,#b2bdd1 50%,transparent 50%) calc(100% - 10px) 50%/5px 5px no-repeat, #141b29; font-size: .86rem; }
select:hover { background-color: #1b2638; background-image: linear-gradient(45deg,transparent 50%,#b2bdd1 50%),linear-gradient(135deg,#b2bdd1 50%,transparent 50%); }
select option { background: #131c2b; }
#time { --progress: 50%; display: block; appearance: none; width: 100%; height: 19px; margin: 0; background: transparent; cursor: pointer; }
#time::-webkit-slider-runnable-track { background: linear-gradient(to right,#d79a63 var(--progress),#303a50 var(--progress)); height: 4px; border-radius: 10px; }
#time::-moz-range-track { background: linear-gradient(to right,#d79a63 var(--progress),#303a50 var(--progress)); height: 4px; border-radius: 10px; }
#time::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; margin-top: -5.5px; background: #ffd39e; border-radius: 50%; border: 2px solid #151824; box-shadow: 0 0 0 1px #ffd39e; }
#time::-moz-range-thumb { width: 12px; height: 12px; background: #ffd39e; border-radius: 50%; border: 2px solid #151824; box-shadow: 0 0 0 1px #ffd39e; }
.tick-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.sidebar { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.panel { padding: 17px 16px; }
.panel + .panel { border-top: 1px solid var(--line); }
.panel h2 { margin: 0 0 12px; font-size: .93rem; font-weight: 670; letter-spacing: .006em; }
.presets { display: grid; gap: 7px; }
.presets button { display: grid; grid-template-columns: 33px minmax(0, 1fr) 8px; align-items: center; column-gap: 8px; width: 100%; min-height: 52px; text-align: left; padding: 8px 8px; border: 1px solid #283347; border-radius: 9px; background: #141c2b; }
.presets button:hover { border-color: #5b6882; }
.presets button[aria-pressed=true] { background: #29231f; border-color: #805d3b; }
.presets button[aria-pressed=true] i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.presets button svg { width: 24px; height: 24px; color: #9aaeca; justify-self: center; }
.presets button[aria-pressed=true] svg { color: var(--accent); }
.presets svg .solid { fill: currentColor; stroke: #151d2b; }
.presets strong, .presets small { display: block; }
.presets strong { font-size: .87rem; line-height: 1.2; }
.presets small { color: #b3bdd0; margin-top: 4px; line-height: 1.2; font-size: .75rem; }
.settings { display: grid; gap: 9px; }
.settings label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .87rem; color: #d6ddea; cursor: pointer; }
.settings input { margin: 0; appearance: none; width: 33px; height: 19px; flex: none; border-radius: 20px; border: 1px solid #46536b; background: #222e40; cursor: pointer; position: relative; }
.settings input::after { content: ""; position: absolute; height: 11px; width: 11px; top: 3px; left: 3px; border-radius: 50%; background: #a8b3c6; }
.settings input:checked { border-color: #8a623d; background: #65492f; }
.settings input:checked::after { left: 17px; background: #ffd199; }
.legend p { font-size: .82rem; color: #bcc7d9; margin: -3px 0 12px; line-height: 1.48; }
.legend ul, .sources { display: grid; gap: 9px; list-style: none; margin: 0; padding: 0; }
.legend li { display: flex; align-items: center; gap: 9px; font-size: .80rem; color: #d7deeb; line-height: 1.35; }
.swatch { color: var(--swatch); display: inline-block; flex: 0 0 19px; position: relative; height: 14px; }
.swatch::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; border-top: 2px solid currentColor; }
.swatch.dashed::before { border-top-style: dashed; }
.swatch.dot::before { top: 4px; left: 6px; width: 7px; height: 7px; border: 0; border-radius: 50%; background: currentColor; }
.swatch.arrow::after { content: ""; width: 5px; height: 5px; transform: rotate(45deg); position: absolute; right: 1px; top: 5px; border: solid currentColor; border-width: 2px 2px 0 0; }
footer { padding: 12px 1px 15px; display: flex; justify-content: space-between; gap: 12px; color: #a1adc2; font-size: .75rem; line-height: 1.4; }
footer span:last-child { text-align: right; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
dialog { width: min(92vw, 630px); max-height: 87vh; padding: 23px; color: var(--ink); background: #101827; border: 1px solid #3e495e; border-radius: 16px; }
dialog::backdrop { background: #030610bf; }
.notes-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.notes-head h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.03em; }
dialog h3 { margin: 18px 0 5px; font-size: 1rem; }
dialog p { color: #c3cddf; margin: 0; font-size: .96rem; line-height: 1.55; }
dialog .notes-head + p { margin-top: 12px; }
.sources { margin-top: 8px; gap: 7px; }
.sources a { color: #a8cefa; font-size: .91rem; text-underline-offset: 3px; }
@media (max-width: 1000px) {
  .top-inner, .container { width: calc(100% - 42px); }
  .explorer { grid-template-columns: minmax(0, 1fr) 248px; gap: 12px; }
  .panel { padding-inline: 12px; }
  .presets button { grid-template-columns: 28px minmax(0,1fr) 7px; column-gap: 5px; }
}
@media (max-width: 745px) {
  .top-inner, .container { width: calc(100% - 28px); }
  .top-inner { min-height: 58px; }
  .intro { padding: 19px 0 18px; }
  .intro p { font-size: .93rem; }
  .explorer { grid-template-columns: 1fr; }
  .stage { height: clamp(365px, 70vw, 500px); }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .panel:nth-child(2) { border-top: 0; border-left: 1px solid var(--line); }
  .panel:last-child { grid-column: 1/-1; }
}
@media (max-width: 465px) {
  .stage-heading { top: 10px; left: 10px; padding: 8px 9px; }
  .camera { top: 10px; right: 10px; }
  .camera button { width: 33px; height: 33px; }
  .stage-foot, .timeline { padding-inline: 10px; }
  .stage-foot { font-size: .66rem; }
  .timeline-header { gap: 8px; }
  .timeline-actions { gap: 6px; }
  .reset span, .select-label { display: none; }
  select { min-width: 69px; }
  .panel { padding: 11px 8px; }
  .presets small { font-size: .68rem; }
  .presets button { padding-inline: 4px; grid-template-columns: 22px minmax(0,1fr) 6px; }
  .presets button svg { width: 20px; height: 20px; }
  .settings label { gap: 5px; font-size: .78rem; }
}
@media (max-width: 745px) {
  .explorer { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .workspace { grid-column: 1/-1; grid-row: 2; }
  .sidebar { display: contents; }
  .sidebar .panel { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
  .sidebar .panel:first-child { grid-column: 1/-1; grid-row: 1; }
  .sidebar .panel:last-child { grid-column: auto; }
  .presets { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .presets button { min-height: 48px; }
  .presets small, .presets i { display: none; }
  .presets button { grid-template-columns: 27px minmax(0,1fr); }
}
@media (max-width: 465px) {
  .presets { gap: 4px; }
  .presets button { grid-template-columns: 19px minmax(0,1fr); gap: 3px; }
  .presets strong { font-size: .77rem; }
  .sidebar .panel:nth-child(2), .sidebar .panel:last-child { grid-column: 1/-1; }
}
.top-actions { display: flex; gap: 8px; align-items: center; }
.catalog-action { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #896445; border-radius: 8px; background: #32271e; color: #ffe2bb; font-size: .88rem; }
.catalog-action:hover { border-color: #e3ac74; background: #483529; }
.scene-context { position: relative; padding: 15px 17px; border-top: 1px solid var(--line); }
.context-title { display: flex; gap: 13px; align-items: baseline; }
.context-title strong { font-size: 1rem; }
.context-title a, .catalog-detail a { color: #a9d5fe; text-underline-offset: 3px; }
.context-title a { font-size: .82rem; }
.scene-context p { color: #c2cedf; font-size: .88rem; line-height: 1.5; margin: 5px 0 0; }
#frame-catalog, #cosmic-controls { margin-top: 10px; }
#cosmic-scale { max-width: 100%; }
.settings select { min-width: 0; max-width: 62%; }
.wide-dialog { width: min(96vw, 1120px); max-height: 91svh; padding: 22px; }
.catalog-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin: 14px 0; }
.catalog-form input { min-width: 0; width: 100%; background: #090f1b; border: 1px solid #4a5870; border-radius: 8px; padding: 9px 12px; color: var(--ink); }
.catalog-form input::placeholder { color: #a1aec3; }
#catalog-zone { grid-column: 1/-1; justify-self: start; }
.catalog-body { display: grid; grid-template-columns: minmax(230px, .85fr) minmax(0, 1.25fr); gap: 14px; align-items: start; }
.catalog-list, .catalog-detail { background: #0c1422; border: 1px solid #34425b; border-radius: 10px; padding: 13px; min-width: 0; }
.search-count, #results-count { min-height: 1.35em; color: #b8c7dc; font-size: .83rem; }
.record-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: min(50svh, 485px); overflow: auto; }
.record-list button { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 7px; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; padding: 9px 7px; border-radius: 7px; line-height: 1.2; }
.record-list button:hover { background: #17243a; }
.record-list button[aria-pressed=true] { border-color: #8b663d; background: #28221f; }
.record-list strong { font-size: .89rem; font-weight: 630; overflow-wrap: anywhere; }
.record-list small { color: #bed0e5; font-size: .73rem; }
.record-list .result-meta { grid-column: 1/-1; }
.catalog-pagination { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-top: 10px; color: #b9c9df; font-size: .83rem; }
.catalog-pagination button:disabled { opacity: .42; cursor: default; }
.catalog-detail { max-height: 59svh; overflow: auto; }
.catalog-detail h3 { margin-top: 0; font-size: clamp(1.05rem, 3vw, 1.4rem); }
.catalog-detail p { margin-block: 6px; font-size: .88rem; }
.catalog-detail dl { display: grid; grid-template-columns: minmax(105px, 1fr) minmax(0, 1.4fr); gap: 6px 12px; margin: 12px 0; font-size: .86rem; }
.catalog-detail dt { color: #b4c3d9; overflow-wrap: anywhere; }
.catalog-detail dd { margin: 0; color: #edf2fa; overflow-wrap: anywhere; }
.catalog-detail details { border-top: 1px solid #2c3950; padding: 9px 0; }
.catalog-detail summary { cursor: pointer; color: #e4ebf6; font-size: .9rem; }
.catalog-detail-links { display: flex; flex-wrap: wrap; gap: 6px 13px; list-style: none; padding: 0; margin: 11px 0 2px; font-size: .84rem; }
#sky.inspectable { cursor: crosshair; }
#sky.dragging { cursor: grabbing; }
@media (max-width: 745px) {
  .catalog-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .catalog-form input { grid-column: 1/-1; }
  .catalog-body { grid-template-columns: 1fr; }
  .record-list { max-height: 28svh; }
  .catalog-detail { max-height: none; }
}
@media (max-width: 465px) {
  .top-actions { gap: 5px; }
  .top-actions button { font-size: .75rem; padding: 7px; }
  .top-actions .info-icon, .catalog-action svg { display: none; }
  .brand { font-size: .91rem; gap: 5px; }
  .brand img { width: 25px; height: 25px; }
  .wide-dialog { padding: 13px; }
  .scene-context { padding-inline: 10px; }
}
.scene-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.scene-tools:empty { display: none; }
#frame-catalog { margin-top: 0; }
#boundary { max-width: 100%; }
#sky-filter { max-width: 65%; }
.archive-links { margin-top: 14px; }
.archive-links h3 { margin-bottom: 3px; }
.archive-links a, #tracking a { color: #a9d5fe; text-underline-offset: 3px; }
#tracking { width: min(94vw, 650px); }
#tracking-form { display: grid; gap: 7px; margin-top: 16px; }
#tracking-form label, .track-import label { color: #d1daeb; font-size: .87rem; }
#tracking-form select, #tracking-form input { width: 100%; min-height: 38px; }
#tracking-form input { background: #090f1b; border: 1px solid #4a5870; border-radius: 8px; padding: 7px 11px; color: var(--ink); }
.track-field { display: grid; gap: 7px; }
.track-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.track-actions button:disabled { opacity: .5; cursor: wait; }
#track-context { margin-top: 8px; color: #f5c38d; }
#track-status { margin: 13px 0; padding: 8px 0; color: #c0d1e8; font-size: .88rem; border-top: 1px solid var(--line); }
.track-import { display: grid; gap: 6px; padding-top: 11px; border-top: 1px solid var(--line); }
.track-import p { font-size: .81rem; }
.track-import input { max-width: 100%; font-size: .87rem; }
@media (max-width: 745px) {
  .wide-dialog .catalog-form { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .top-actions { flex-wrap: wrap; justify-content: end; }
}
@media (max-width: 465px) {
  .top-inner { padding-block: 8px; gap: 9px; }
  .top-actions button { padding-inline: 6px; }
  .top-actions { gap: 5px; }
}

.cosmic-toolbar { padding: 12px 16px; background: #101827; border-bottom: 1px solid #29354a; }
.cosmic-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.cosmic-tabs button {
  padding: 7px 10px;
  border: 1px solid #314158;
  border-radius: 6px;
  background: #0c1422;
  color: #d0dbed;
  font-size: .82rem;
  line-height: 1.3;
}
.cosmic-tabs button:hover { border-color: #7793bb; color: #fff; }
.cosmic-tabs button[aria-pressed=true] { border-color: #ac8059; background: #36281d; color: #ffe1b9; }
.cosmic-settings, #cosmic-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; }
.cosmic-settings { margin-top: 9px; }
.cosmic-settings label, #cosmic-controls label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: #b9c8dd;
  font-size: .79rem;
}
.cosmic-settings select, #cosmic-controls select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
#view-images { margin-inline-start: auto; }
.cosmic-survey-note { flex: 1 0 100%; }
.scene-context .cosmic-survey-note { font-size: .76rem; color: #a9b9d0; margin-top: 2px; }
.image-form button { justify-content: center; }
.image-meta { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.image-meta p { font-size: .82rem; }
.image-archives, .image-links { display: flex; flex-wrap: wrap; gap: 6px 13px; font-size: .76rem; }
.image-archives a, .image-links a { color: #a8ceff; text-underline-offset: 3px; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,245px),1fr)); gap: 13px; margin-top: 14px; }
.image-card { min-width: 0; overflow: hidden; border: 1px solid #34425b; border-radius: 11px; background: #0c1422; }
.image-preview { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: #050912; overflow: hidden; }
.image-preview:focus-visible { outline-offset: -4px; }
.image-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; color: transparent; background: #050912; }
.image-placeholder { color: #96a5bd; font-size: .78rem; }
.image-details { padding: 10px 12px 13px; overflow-wrap: anywhere; }
.image-details .image-provider { color: #e2ba90; font-size: .71rem; }
.image-details .image-title { margin: 3px 0 6px; font-size: .95rem; line-height: 1.35; }
.image-details .image-description { font-size: .8rem; }
.image-details .image-credit { margin-top: 5px; color: #aebbd0; font-size: .74rem; }
.image-links { border-top: 1px solid #2a374c; padding-top: 8px; margin-top: 9px; color: #b9c8dc; }
#image-more { margin-top: 13px; }
#image-more:disabled { opacity: .6; cursor: wait; }

@media (max-width: 745px) {
  .cosmic-toolbar { padding: 9px 10px; }
  .cosmic-tabs button { padding: 6px 8px; font-size: .77rem; }
  #view-images { margin-inline-start: 0; }
  .image-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,225px),1fr)); }
}

@media (max-width: 465px) {
  .cosmic-settings label, #cosmic-controls label { max-width: 100%; }
  .image-form select { min-width: 0; text-overflow: ellipsis; }
}

.atlas-toolbar { padding: 13px 16px; display: grid; gap: 8px; border-bottom: 1px solid #30435a; background: #101a2a; }
.atlas-toolbar-title, .observer-form, .atlas-city-form, .distance-actions, .measure-object-actions {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end;
}
.atlas-toolbar label { display: grid; align-content: start; gap: 4px; font-size: .81rem; color: #c1cee4; }
.atlas-toolbar-title label { display: inline-flex; align-items: center; gap: 8px; }
.atlas-toolbar input, .distance-search input {
  background: #0a1220; border: 1px solid #4c617e; border-radius: 7px; padding: 8px 9px;
  color: var(--ink); font-size: .88rem; min-width: 0;
}
.atlas-toolbar input[type=number] { width: min(100%,124px); }
.atlas-toolbar input[type=search] { width: min(100%,285px); }
.atlas-toolbar input::placeholder, .distance-search input::placeholder { color: #9fabc3; }
.atlas-toolbar select, .distance-search select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.atlas-toolbar button, .distance-search button, #distance-open { min-height: 33px; }
#observer-settings { display: grid; gap: 8px; padding-top: 6px; }
.atlas-hint, dialog p.atlas-hint { min-height: 1em; color: #b1c7df; font-size: .78rem; margin: 0; }
#observer-status { margin-top: 0; color: #ebcdab; }
#sky-clear-arc { margin-inline-start: auto; }
#surface-view-sky { margin-top: 10px; }
.scene-media { border-top: 1px solid #2a3b52; padding: 15px 17px 19px; }
.scene-media h2 { margin: 0; font-size: 1.04rem; }
.scene-media .image-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,224px),1fr)); margin-top: 10px; }
.scene-media .image-preview { aspect-ratio: 2.05; }
.scene-media .image-details { padding-bottom: 10px; }
.scene-media .image-card p { margin: 5px 0; }
.scene-media .image-title { margin: 4px 0; }
#natural-form { grid-template-columns: minmax(0,1fr) auto auto auto; }
.measure-object-actions { margin-top: 10px; }
.distance-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.distance-search { min-width: 0; display: grid; gap: 7px; padding: 13px; border: 1px solid #344960; border-radius: 10px; background: #0b1322; }
.distance-search > div { display: flex; gap: 7px; }
.distance-search label { color: #e5b78a; font-size: .88rem; }
.distance-search input { flex: 1; width: 100%; }
.distance-search .distance-point { font-size: .88rem; color: #d6e4f6; }
.distance-values { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block: 13px; }
.distance-values div { background: #182639; border: 1px solid #32475e; border-radius: 9px; padding: 11px 13px; }
.distance-values dt { font-size: .85rem; color: #b7cce4; }
.distance-values dd { margin: 2px 0 0; color: #ffd9aa; font-size: 1.22rem; font-variant-numeric: tabular-nums; }
#distance-epoch { margin-top: 6px; }
#distance-diagram { display: block; width: min(100%,700px); height: auto; margin: 12px 0; border-radius: 8px; }
.distance-actions { margin-top: 10px; }
.distance-actions :disabled { opacity: .5; cursor: default; }

@media (max-width: 745px) {
  .atlas-toolbar { padding: 10px; }
  #observer-settings { gap: 10px; }
  #natural-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #natural-type, #natural-sort { max-width: 100%; width: 100%; }
}
@media (max-width: 525px) {
  .top-inner { gap: 8px; }
  .brand { min-width: 85px; font-size: .9rem; }
  .observer-form { gap: 7px; }
  .distance-forms { grid-template-columns: 1fr; }
  .distance-values { gap: 6px; }
  .distance-values dd { font-size: .99rem; }
  .atlas-city-form select { max-width: 100%; }
}

#distance-dialog { margin-block-start: min(7svh,70px); }
.distance-search > div { min-height: 34px; }

.intro-guide { display: inline-block; margin-top: 8px; color: #aed2fa; font-size: .88rem; text-underline-offset: 4px; }
.public-footer { color: #aec3dd; border-top: 1px solid #263248; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 0 22px; font-size: .82rem; }
.public-footer a { color: #b4d2f6; text-underline-offset: 3px; }
