:root {
    color-scheme: dark;
    --bg: #0d1117;
    --surface: #161b22;
    --surface-2: #111720;
    --surface-3: #0a0f16;
    --text: #c9d1d9;
    --muted: #8b949e;
    --border: #30363d;
    --blue: #58a6ff;
    --blue-soft: rgba(88, 166, 255, 0.14);
    --green: #3fb950;
    --yellow: #d29922;
    --orange: #f0883e;
    --red: #f85149;
    --purple: #bc8cff;
    --shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -10%, rgba(31, 111, 235, 0.11), transparent 36rem),
        var(--bg);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

button,
input,
select {
    font: inherit;
}

a {
    color: var(--blue);
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    color: #fff;
    background: #1f6feb;
    border-radius: 8px;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(48, 54, 61, 0.86);
    background: rgba(13, 17, 23, 0.88);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1500px, calc(100% - 36px));
    min-height: 72px;
    margin: 0 auto;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(88, 166, 255, 0.48);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #1f6feb, #204f8f);
    box-shadow: 0 0 24px rgba(31, 111, 235, 0.18);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    color: #f0f6fc;
    font-size: 16px;
    letter-spacing: 0.05em;
}

.brand small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 12px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-nav a {
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a[aria-current="page"] {
    color: #f0f6fc;
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.035);
}

main {
    width: min(1500px, calc(100% - 36px));
    margin: 0 auto;
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 66px 42px 42px;
    text-align: center;
}

.hero-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.28;
    pointer-events: none;
}

.hero-glow-one {
    top: -170px;
    left: 14%;
    width: 390px;
    height: 390px;
    background: rgba(31, 111, 235, 0.46);
}

.hero-glow-two {
    right: 11%;
    bottom: -240px;
    width: 350px;
    height: 350px;
    background: rgba(137, 87, 229, 0.32);
}

.eyebrow,
.section-kicker {
    margin: 0 0 7px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.hero h1 {
    margin: 0;
    color: #f0f6fc;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.hero-text {
    max-width: 790px;
    margin: 20px auto 0;
    color: #aeb7c2;
    font-size: clamp(16px, 2vw, 20px);
}

.hero-text strong {
    color: #e6edf3;
    white-space: nowrap;
}

.location-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 920px;
    margin: 19px auto 0;
}

.location-button,
.location-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.location-button {
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(88, 166, 255, 0.48);
    color: #dbeeff;
    background: rgba(31, 111, 235, 0.14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    font-size: 13px;
    font-weight: 700;
}

.location-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.location-button:hover,
.location-button:focus-visible {
    color: #fff;
    border-color: #79c0ff;
    background: rgba(31, 111, 235, 0.3);
    outline: none;
    transform: translateY(-1px);
}

.location-button:disabled {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}

.location-state {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #aeb7c2;
    background: rgba(22, 27, 34, 0.82);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    font-size: 12px;
}

.location-eye {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 18px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 70% 30% 70% 30%;
    color: #6e7681;
    transform: rotate(45deg);
    transition: color 180ms ease, box-shadow 180ms ease;
}

.location-eye::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
}

.location-state.is-locating {
    color: #79c0ff;
    border-color: rgba(88, 166, 255, 0.4);
    background: rgba(31, 111, 235, 0.12);
}

.location-state.is-locating .location-eye {
    color: #58a6ff;
    box-shadow: 0 0 14px rgba(88, 166, 255, 0.58);
    animation: location-eye-pulse 1.1s ease-in-out infinite;
}

.location-state.is-success {
    color: #7ee787;
    border-color: rgba(63, 185, 80, 0.42);
    background: rgba(46, 160, 67, 0.11);
}

.location-state.is-success .location-eye {
    color: #56d364;
    box-shadow: 0 0 16px rgba(63, 185, 80, 0.62);
}

.location-state.is-error,
.location-state.is-unavailable {
    color: #ffb4ad;
    border-color: rgba(248, 81, 73, 0.4);
    background: rgba(248, 81, 73, 0.09);
}

.location-state.is-error .location-eye,
.location-state.is-unavailable .location-eye {
    color: #ff7b72;
}

.location-reset-button {
    padding: 7px 11px;
    border: 1px solid transparent;
    color: #8cbbf0;
    background: transparent;
    font-size: 12px;
}

.location-reset-button:hover,
.location-reset-button:focus-visible {
    color: #fff;
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}

.location-reset-button[hidden] {
    display: none;
}


.android-download {
    display: flex;
    justify-content: center;
    margin: 15px auto 0;
}

.android-download-button {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 50px;
    padding: 8px 13px 8px 10px;
    border: 1px solid rgba(63, 185, 80, 0.38);
    border-radius: 12px;
    color: #e6edf3;
    background:
        linear-gradient(135deg, rgba(46, 160, 67, 0.16), rgba(31, 111, 235, 0.12)),
        rgba(22, 27, 34, 0.8);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.17);
    text-align: left;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.android-download-button:hover,
.android-download-button:focus-visible {
    color: #fff;
    border-color: rgba(86, 211, 100, 0.72);
    background:
        linear-gradient(135deg, rgba(46, 160, 67, 0.27), rgba(31, 111, 235, 0.18)),
        rgba(22, 27, 34, 0.9);
    box-shadow: 0 13px 34px rgba(0, 0, 0, 0.22), 0 0 22px rgba(63, 185, 80, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.android-download-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(86, 211, 100, 0.28);
    border-radius: 10px;
    color: #7ee787;
    background: rgba(46, 160, 67, 0.12);
}

.android-download-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.android-download-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.android-download-copy strong {
    color: #f0f6fc;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
}

.android-download-copy small {
    color: #8b949e;
    font-size: 10.5px;
    line-height: 1.35;
}

.android-download-arrow {
    flex: 0 0 auto;
    margin-left: 3px;
    color: #7ee787;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.android-download-button.is-unavailable {
    cursor: default;
    border-color: rgba(139, 148, 158, 0.25);
    background: rgba(22, 27, 34, 0.6);
    box-shadow: none;
    opacity: 0.72;
}

.android-download-button.is-unavailable .android-download-icon {
    border-color: rgba(139, 148, 158, 0.2);
    color: #8b949e;
    background: rgba(139, 148, 158, 0.08);
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 27px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #aeb7c2;
    background: rgba(22, 27, 34, 0.82);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-size: 12px;
}

.live-pill {
    gap: 8px;
    color: #7ee787;
    border-color: rgba(63, 185, 80, 0.35);
    background: rgba(46, 160, 67, 0.1);
    font-weight: 800;
    letter-spacing: 0.05em;
}

.live-pill.simulated {
    color: #e3b341;
    border-color: rgba(210, 153, 34, 0.38);
    background: rgba(210, 153, 34, 0.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(63, 185, 80, 0.1);
    animation: pulse 2s infinite;
}

.workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
    align-items: start;
    gap: 18px;
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 38%),
        var(--surface);
    box-shadow: var(--shadow);
}

.sky-card {
    padding: 23px;
}

.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.card-heading h2 {
    margin: 0;
    color: #f0f6fc;
    font-size: 22px;
    line-height: 1.2;
}

.compact-heading {
    margin-bottom: 12px;
}

.compact-heading h2 {
    font-size: 18px;
}

.map-orientation {
    padding: 7px 10px;
    border: 1px solid rgba(88, 166, 255, 0.24);
    border-radius: 8px;
    color: #8cbbf0;
    background: rgba(88, 166, 255, 0.07);
    font-size: 12px;
    white-space: nowrap;
}

.sky-frame {
    position: relative;
    aspect-ratio: 1;
    width: min(100%, 980px);
    min-height: 280px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(88, 166, 255, 0.16);
    border-radius: 18px;
    background:
        radial-gradient(circle, rgba(22, 50, 88, 0.34), transparent 58%),
        #05080d;
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.52),
        0 0 45px rgba(31, 111, 235, 0.06);
}

#skyCanvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
}

.sky-frame.is-map-fullscreen #skyCanvas {
    touch-action: none;
}

#skyCanvas:focus-visible {
    outline: 2px solid #79c0ff;
    outline-offset: -4px;
}

.map-expand-button,
.map-fullscreen-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(121, 192, 255, 0.34);
    color: #dbeeff;
    background: rgba(13, 24, 39, 0.88);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: 0.18s ease;
}

.map-expand-button:hover,
.map-expand-button:focus-visible,
.map-fullscreen-toolbar button:hover,
.map-fullscreen-toolbar button:focus-visible {
    border-color: #79c0ff;
    color: #fff;
    background: rgba(31, 111, 235, 0.92);
    outline: none;
}

.map-expand-button {
    position: absolute;
    z-index: 6;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 11px;
}

.map-expand-button svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.map-fullscreen-toolbar,
.map-fullscreen-layers,
.map-gesture-hint,
.map-rotate-button,
.map-orientation-indicator {
    display: none;
}

.sky-frame.is-map-fullscreen.is-smartphone-map .map-rotate-button {
    position: fixed;
    z-index: 10005;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 3px;
    border: 1px solid rgba(121, 192, 255, 0.38);
    border-radius: 16px;
    color: #dbeeff;
    background: rgba(3, 8, 15, 0.86);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
    touch-action: manipulation;
}

.sky-frame.is-map-fullscreen.is-smartphone-map .map-rotate-button:active {
    border-color: #79c0ff;
    color: #fff;
    background: rgba(31, 111, 235, 0.92);
}

.sky-frame.is-map-fullscreen.is-smartphone-map .map-rotate-button > span {
    font-size: 28px;
    font-weight: 700;
    line-height: 0.85;
}

.sky-frame.is-map-fullscreen.is-smartphone-map .map-rotate-button > small {
    margin-top: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.sky-frame.is-map-fullscreen.is-smartphone-map .map-orientation-indicator {
    position: fixed;
    z-index: 10005;
    top: max(8px, env(safe-area-inset-top));
    left: max(8px, env(safe-area-inset-left));
    display: block;
    min-width: 86px;
    padding: 8px 11px;
    border: 1px solid rgba(121, 192, 255, 0.28);
    border-radius: 999px;
    color: #f0f6fc;
    background: rgba(3, 8, 15, 0.82);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.36);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

html.map-view-open,
body.map-view-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.sky-frame.is-map-fullscreen {
    position: fixed;
    z-index: 10000;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    aspect-ratio: auto;
    background:
        radial-gradient(circle at center, rgba(17, 39, 69, 0.35), transparent 55%),
        #02050a;
    box-shadow: none;
}

.sky-frame.is-map-fullscreen #skyCanvas {
    position: absolute;
    inset: 0;
    margin: auto;
}

.sky-frame.is-map-fullscreen .map-expand-button {
    display: none;
}

.sky-frame.is-map-fullscreen .map-fullscreen-toolbar {
    position: fixed;
    z-index: 10004;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(121, 192, 255, 0.22);
    border-radius: 13px;
    background: rgba(3, 8, 15, 0.82);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.sky-frame.is-map-fullscreen .map-fullscreen-layers {
    position: fixed;
    z-index: 10004;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    max-width: min(240px, calc(100vw - 180px));
    padding: 9px 11px;
    border: 1px solid rgba(121, 192, 255, 0.22);
    border-radius: 13px;
    color: #dbeeff;
    background: rgba(3, 8, 15, 0.82);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.map-fullscreen-layers label {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
}

.map-fullscreen-layers input[type="checkbox"] {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #58a6ff;
}

.map-fullscreen-toolbar button {
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 20px;
    font-weight: 700;
}

.map-fullscreen-toolbar button:disabled {
    opacity: 0.38;
    cursor: default;
    transform: none;
}

.map-fullscreen-toolbar output {
    min-width: 48px;
    color: #f0f6fc;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: center;
}

.map-fullscreen-toolbar .map-close-button {
    margin-left: 4px;
    border-color: rgba(255, 123, 114, 0.45);
    color: #ff9b95;
    font-size: 25px;
}

.sky-frame.is-map-fullscreen .map-gesture-hint {
    position: fixed;
    z-index: 10003;
    right: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    display: block;
    max-width: calc(100vw - 28px);
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(121, 192, 255, 0.18);
    border-radius: 999px;
    color: #9fb3c8;
    background: rgba(3, 8, 15, 0.78);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
    transform: translateX(50%);
    backdrop-filter: blur(8px);
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.sky-frame.is-map-fullscreen .map-gesture-hint.is-hidden {
    visibility: hidden;
    opacity: 0;
}

.map-loading,
.map-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px;
    text-align: center;
    background: rgba(5, 8, 13, 0.82);
    backdrop-filter: blur(5px);
}

.map-loading[hidden],
.map-error[hidden] {
    display: none;
}

.map-error {
    color: #ff9b95;
}

.loader {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(88, 166, 255, 0.17);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend i {
    display: inline-block;
    flex: 0 0 auto;
}

.legend-star {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff5d6;
    box-shadow: 0 0 7px #fff;
}

.legend-planet {
    width: 10px;
    height: 10px;
    border: 2px solid #ffb86b;
    border-radius: 50%;
}

.legend-moon {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #f4f1dd;
    box-shadow: 0 0 7px rgba(255, 255, 255, 0.6);
}

.legend-dso {
    width: 10px;
    height: 10px;
    border: 1px solid #bc8cff;
    transform: rotate(45deg);
}

.time-controls,
.layer-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: center;
    gap: 8px;
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid rgba(48, 54, 61, 0.78);
}

.control-button {
    min-height: 40px;
    padding: 7px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: #c9d1d9;
    background: #21262d;
    cursor: pointer;
    transition: 0.18s ease;
}

.control-button:hover,
.control-button:focus-visible {
    color: #fff;
    border-color: #6e7681;
    background: #30363d;
    transform: translateY(-1px);
}

.control-button.primary {
    color: #fff;
    border-color: #1f6feb;
    background: #1f6feb;
}

.control-button.primary:hover,
.control-button.primary:focus-visible {
    background: #388bfd;
}

.datetime-control,
.label-limit-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.datetime-control {
    margin-left: 7px;
}

.datetime-control input,
.label-limit-control select {
    min-height: 40px;
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: #e6edf3;
    background: #0d1117;
    outline: none;
}

.datetime-control input:focus,
.label-limit-control select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.12);
}

.layer-controls {
    align-items: center;
    justify-content: flex-start;
    border-top-style: dashed;
}

.layer-controls > label:not(.label-limit-control) {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #aeb7c2;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    font-size: 12px;
}

.layer-controls input[type="checkbox"] {
    accent-color: #1f6feb;
}

.label-limit-control {
    margin-left: auto;
}

.map-note {
    margin: 15px 0 0;
    padding: 11px 13px;
    border-left: 3px solid var(--blue);
    border-radius: 0 8px 8px 0;
    color: var(--muted);
    background: rgba(88, 166, 255, 0.055);
    font-size: 12px;
}

.map-note.warning {
    border-left-color: var(--yellow);
    color: #d7ba7d;
    background: rgba(210, 153, 34, 0.07);
}

.info-column {
    display: grid;
    gap: 18px;
}

.summary-card,
.objects-card {
    padding: 19px;
}

.sky-summary {
    margin: 0 0 14px;
    padding: 13px;
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 11px;
    color: #dbeafe;
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.11), rgba(137, 87, 229, 0.06));
    font-size: 14px;
}

.sun-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
}

.sun-facts div {
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid rgba(48, 54, 61, 0.72);
    border-radius: 9px;
    text-align: center;
    background: rgba(13, 17, 23, 0.56);
}

.sun-facts dt {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sun-facts dd {
    margin: 3px 0 0;
    color: #f0f6fc;
    font-size: 13px;
    font-weight: 700;
}

.object-list {
    display: grid;
    gap: 8px;
}

.object-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    padding: 11px 12px;
    border: 1px solid rgba(48, 54, 61, 0.72);
    border-radius: 10px;
    background: rgba(13, 17, 23, 0.6);
}

.object-row.below-horizon {
    opacity: 0.52;
}

.object-name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: #e6edf3;
    font-size: 14px;
    font-weight: 700;
}

.object-symbol {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid color-mix(in srgb, var(--object-color, var(--blue)) 55%, transparent);
    border-radius: 50%;
    color: var(--object-color, var(--blue));
    background: color-mix(in srgb, var(--object-color, var(--blue)) 10%, transparent);
    font-size: 14px;
}

.object-position {
    align-self: center;
    color: #d0d7de;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.object-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 9px;
    color: var(--muted);
    font-size: 11px;
}

.visibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--badge-color, var(--muted));
}

.visibility-badge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.star-list {
    max-height: 510px;
    padding-right: 3px;
    overflow: auto;
    scrollbar-color: #30363d transparent;
    scrollbar-width: thin;
}

.empty-message {
    margin: 0;
    padding: 15px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.below-summary {
    padding: 10px 11px;
    text-align: left;
    font-size: 11px;
}

.below-summary strong {
    color: #aeb7c2;
}

.constellation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    padding: 5px 8px;
    border: 1px solid rgba(188, 140, 255, 0.25);
    border-radius: 999px;
    color: #d8b9ff;
    background: rgba(188, 140, 255, 0.07);
    font: inherit;
    font-size: 11px;
}

.constellation-jump {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    line-height: 1.15;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.constellation-jump:hover {
    border-color: rgba(255, 209, 102, 0.58);
    background: rgba(255, 209, 102, 0.10);
    color: #ffe4a3;
}

.constellation-jump:active {
    transform: translateY(1px);
}

.constellation-jump:focus-visible {
    outline: 2px solid rgba(255, 209, 102, 0.85);
    outline-offset: 2px;
}

.tag.muted {
    color: var(--muted);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.skeleton-line {
    height: 58px;
    border-radius: 10px;
    background: linear-gradient(90deg, #1c222a 20%, #252c35 48%, #1c222a 78%);
    background-size: 260% 100%;
    animation: shimmer 1.45s infinite linear;
}

.help-card {
    display: grid;
    grid-template-columns: minmax(230px, 0.55fr) 1.45fr;
    gap: 25px;
    margin-top: 18px;
    padding: 24px;
}

.help-card h2 {
    margin: 0;
    color: #f0f6fc;
    font-size: 22px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.help-grid p {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border-left: 2px solid rgba(88, 166, 255, 0.4);
    background: rgba(13, 17, 23, 0.38);
    font-size: 12px;
}

.help-grid strong {
    color: #e6edf3;
}

.help-grid span {
    color: var(--muted);
}

.site-footer {
    width: min(1500px, calc(100% - 36px));
    margin: 26px auto 0;
    padding: 22px 0 34px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.site-footer p {
    margin: 4px 0;
}

.noscript-message {
    position: fixed;
    z-index: 1000;
    right: 20px;
    bottom: 20px;
    left: 20px;
    padding: 15px;
    border: 1px solid var(--red);
    border-radius: 10px;
    color: #fff;
    background: #5a1d1d;
    text-align: center;
}

.sky-tooltip {
    position: fixed;
    /* Должна быть выше полноэкранной карты (z-index 10000) и её панелей (10004). */
    z-index: 10020;
    display: grid;
    min-width: 250px;
    max-width: min(430px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: hidden auto;
    gap: 7px;
    padding: 13px 14px 12px;
    border: 1px solid rgba(88, 166, 255, 0.42);
    border-radius: 12px;
    color: #c9d1d9;
    background: rgba(7, 12, 19, 0.97);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.56);
    pointer-events: none;
    backdrop-filter: blur(12px);
    font-size: 11px;
    line-height: 1.35;
}

.sky-tooltip[hidden] {
    display: none;
}

.sky-tooltip[data-pinned="true"] {
    border-color: rgba(126, 231, 135, 0.45);
    /* Закреплённую карточку можно прокручивать пальцем на мобильном. */
    pointer-events: auto;
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.sky-tooltip-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sky-tooltip-head strong {
    min-width: 0;
    color: #f0f6fc;
    font-size: 15px;
    line-height: 1.2;
}

.sky-tooltip-kind {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.sky-tooltip-section-title {
    margin-top: 4px;
    color: #8cbbf0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sky-tooltip-designation {
    margin-top: -2px;
    color: #b9c5d2;
    font-size: 11px;
}

.sky-tooltip-grid {
    display: grid;
    grid-template-columns: minmax(84px, auto) minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 4px;
    padding-top: 7px;
    border-top: 1px solid rgba(140, 187, 240, 0.12);
}

.sky-tooltip-grid > span {
    color: #7d8b9a;
}

.sky-tooltip-grid > b {
    min-width: 0;
    color: #e6edf3;
    font-weight: 650;
    text-align: right;
    overflow-wrap: anywhere;
}

.sky-tooltip-catalogs,
.sky-tooltip-extra {
    padding-top: 7px;
    border-top: 1px solid rgba(140, 187, 240, 0.1);
    color: #aebccc;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.sky-tooltip-note {
    color: #6f7f8f;
    font-size: 9.5px;
    line-height: 1.4;
}


.sky-tooltip-passport {
    padding-top: 7px;
    border-top: 1px solid rgba(140, 187, 240, 0.12);
}

.sky-tooltip-passport > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    color: #8cbbf0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    list-style: none;
    text-transform: uppercase;
    user-select: none;
}

.sky-tooltip-passport > summary::-webkit-details-marker {
    display: none;
}

.sky-tooltip-passport > summary::after {
    content: "＋";
    flex: 0 0 auto;
    color: #7d8b9a;
    font-size: 13px;
    line-height: 1;
}

.sky-tooltip-passport[open] > summary::after {
    content: "−";
}

.sky-tooltip-passport[open] > .sky-tooltip-grid {
    margin-top: 7px;
}

.sky-tooltip-passport-note {
    margin-top: 7px;
    color: #657585;
    font-size: 9px;
    line-height: 1.4;
}

@media (max-width: 700px) {
    .sky-tooltip[data-pinned="true"] {
        touch-action: none;
        overscroll-behavior: contain;
    }

    .sky-tooltip {
        min-width: 0;
        width: min(410px, calc(100vw - 24px));
        max-height: min(72vh, 520px);
        overflow: hidden auto;
        padding: 12px 13px;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.82); }
}

@keyframes location-eye-pulse {
    0%, 100% { opacity: 1; transform: rotate(45deg) scale(1); }
    50% { opacity: 0.55; transform: rotate(45deg) scale(0.86); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    to { background-position: -160% 0; }
}

@media (max-width: 1120px) {
    .workspace {
        grid-template-columns: 1fr;
    }

    .info-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .header-inner,
    main,
    .site-footer {
        width: min(100% - 22px, 1500px);
    }

    .header-inner {
        min-height: 64px;
    }

    .brand small,
    .top-nav a[aria-current="page"] {
        display: none;
    }

    .top-nav a {
        padding: 8px 10px;
    }

    .hero {
        padding: 43px 9px 30px;
    }

    .hero h1 {
        font-size: clamp(34px, 11vw, 50px);
    }

    .hero-text {
        font-size: 15px;
    }

    .location-control {
        gap: 7px;
        margin-top: 16px;
    }

    .location-button {
        flex: 1 0 100%;
        min-height: 42px;
    }

    .location-state {
        min-height: 36px;
        padding: 7px 11px;
        font-size: 11px;
    }

    .android-download {
        width: 100%;
        margin-top: 12px;
    }

    .android-download-button {
        width: 100%;
        justify-content: flex-start;
        min-height: 52px;
        padding: 9px 12px 9px 10px;
    }

    .android-download-arrow {
        margin-left: auto;
    }

    .status-row {
        gap: 6px;
    }

    .status-pill {
        min-height: 31px;
        padding: 5px 9px;
        font-size: 10px;
    }

    .sky-card {
        padding: 13px;
    }

    .map-heading {
        display: block;
    }

    .map-orientation {
        display: inline-block;
        margin-top: 10px;
    }

    .sky-frame {
        border-radius: 12px;
    }

    .map-expand-button {
        top: 8px;
        right: 8px;
        width: 39px;
        height: 39px;
        padding: 9px;
    }

    .sky-frame.is-map-fullscreen {
        border-radius: 0;
    }

    .sky-frame.is-map-fullscreen .map-fullscreen-toolbar {
        top: max(8px, env(safe-area-inset-top));
        right: max(8px, env(safe-area-inset-right));
        gap: 5px;
        padding: 5px;
    }

    .sky-frame.is-map-fullscreen .map-fullscreen-layers {
        bottom: max(8px, env(safe-area-inset-bottom));
        left: max(8px, env(safe-area-inset-left));
        gap: 4px;
        width: min(220px, calc(100vw - 16px));
        max-width: none;
        padding: 6px 8px;
        border-radius: 11px;
    }

    .map-fullscreen-layers label {
        gap: 5px;
        min-height: 20px;
        font-size: 10px;
    }

    .map-fullscreen-layers input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }

    .map-fullscreen-toolbar button {
        min-width: 38px;
        height: 38px;
        padding: 0 8px;
        font-size: 18px;
    }

    .map-fullscreen-toolbar output {
        min-width: 42px;
        font-size: 12px;
    }

    .sky-frame.is-map-fullscreen .map-gesture-hint {
        bottom: max(10px, env(safe-area-inset-bottom));
        font-size: 10px;
    }

    .legend {
        gap: 8px 13px;
    }

    .time-controls {
        gap: 6px;
    }

    .control-button {
        flex: 1 1 calc(20% - 6px);
        min-width: 54px;
        padding: 7px 8px;
        font-size: 12px;
    }

    .datetime-control {
        flex: 1 0 100%;
        justify-content: space-between;
        margin: 6px 0 0;
    }

    .datetime-control input {
        flex: 1;
        min-width: 0;
    }

    .layer-controls {
        gap: 6px;
    }

    .layer-controls > label:not(.label-limit-control) {
        padding: 6px 8px;
        font-size: 11px;
    }

    .label-limit-control {
        flex: 1 0 100%;
        justify-content: space-between;
        margin: 5px 0 0;
    }

    .info-column {
        grid-template-columns: 1fr;
    }

    .summary-card {
        grid-column: auto;
    }

    .help-card {
        grid-template-columns: 1fr;
        padding: 19px;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 10px;
    }

    .brand strong {
        font-size: 14px;
    }

    .top-nav a {
        font-size: 12px;
    }

    .location-state {
        flex: 1 0 100%;
        justify-content: center;
    }

    .status-pill:nth-child(2),
    .status-pill:nth-child(3) {
        flex: 1 1 100%;
        justify-content: center;
    }

    .card-heading h2,
    .help-card h2 {
        font-size: 19px;
    }

    .sun-facts {
        grid-template-columns: 1fr;
    }

    .sun-facts div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .sun-facts dd {
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
