@font-face {
    font-family: "Geologica";
    src: url("../fonts/geologica-cyrillic-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Geologica";
    src: url("../fonts/geologica-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Spectral";
    src: url("../fonts/spectral-cyrillic-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Spectral";
    src: url("../fonts/spectral-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Spectral";
    src: url("../fonts/spectral-cyrillic-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Spectral";
    src: url("../fonts/spectral-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Spectral";
    src: url("../fonts/spectral-cyrillic-400-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Spectral";
    src: url("../fonts/spectral-latin-400-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: dark;
    --bg: #0d121b;
    --surface: #141b27;
    --raised: #1b2433;
    --line: #263145;
    --fg: #e8ebf1;
    --fg-soft: #b3bccd;
    --muted: #7f8aa0;
    --sun: #f2b84b;
    --earth: #4f9fe0;
    --earth-hi: #a9d3f5;
    --eclipse: #d58bcf;
    --good: #72d39a;
    --error: #ff7d7d;
    --sky-top: #070d1b;
    --sky-low: #1b2c4b;
    --terrain: #04060a;
    --radius: 6px;
    --ui: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
    --serif: "Spectral", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--ui);
    font-size: 16px;
    line-height: 1.55;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
}

h3 {
    font-size: 1rem;
    margin: 1.4rem 0 0.6rem;
}

p {
    margin: 0 0 0.75rem;
}

a {
    color: var(--earth-hi);
    text-underline-offset: 0.2em;
}

a:hover {
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--sun);
    outline-offset: 2px;
}

.muted,
.loading {
    color: var(--muted);
}

.small {
    font-size: 0.85rem;
}

.notice {
    color: var(--sun);
    font-size: 0.9rem;
}

.error {
    color: var(--error);
}

.page-note {
    padding: 2rem 0;
}

.shell {
    min-height: 100vh;
}

.bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.9rem clamp(1rem, 3vw, 2.5rem);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    flex-wrap: wrap;
}

.brand {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--fg);
    text-decoration: none;
    padding-left: 1.6rem;
    position: relative;
}

.brand::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: -0.55rem;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--sun) 0 50%, #070a10 50% 100%);
    box-shadow: 0 0 0 1.5px var(--fg-soft);
}

.links {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.links a {
    color: var(--fg-soft);
    text-decoration: none;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}

.links a:hover {
    color: var(--fg);
}

.links a.active {
    color: var(--fg);
    border-bottom-color: var(--sun);
}

.toggles {
    display: flex;
    gap: 0.75rem;
}

.seg {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.seg button {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
}

.seg button[aria-pressed="true"] {
    background: var(--raised);
    color: var(--fg);
}

.page {
    max-width: 1360px;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 3vw, 2.5rem) 4rem;
}

button,
.button {
    font: inherit;
    font-size: 0.92rem;
    color: var(--fg);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    line-height: 1.3;
}

button:hover,
.button:hover {
    background: var(--raised);
    color: var(--fg);
}

button:disabled {
    opacity: 0.45;
    cursor: default;
}

button.primary,
.button.primary {
    background: var(--sun);
    border-color: var(--sun);
    color: #1a1305;
    font-weight: 600;
}

button.primary:hover,
.button.primary:hover {
    background: #ffd070;
    color: #1a1305;
}

button.ghost {
    background: transparent;
}

select,
input[type="text"],
input[type="number"] {
    font: inherit;
    font-size: 0.92rem;
    width: 100%;
    background: var(--surface);
    color: var(--fg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.45rem 0.6rem;
}

label > span {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.coords {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.landing {
    padding: clamp(2rem, 8vw, 6rem) 0 2.5rem;
    margin-bottom: 1rem;
}

.landing h1 {
    font-size: clamp(2.6rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.lede {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
    color: var(--fg-soft);
    max-width: 34ch;
    margin: 1rem 0 1.75rem;
}

.sites {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    columns: 3 280px;
    column-gap: 2.5rem;
}

.sites li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    break-inside: avoid;
}

.sites a {
    color: var(--fg);
    text-decoration: none;
}

.sites a:hover {
    color: var(--sun);
}

.planner {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}

.side {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 1.25rem;
}

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.fields label:first-child,
.fields .wide {
    grid-column: 1 / -1;
}

.main > * + * {
    margin-top: 1.5rem;
}

.site-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.site-head h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.03em;
}

.site-head .coords {
    margin: 0.35rem 0 0;
}

.now {
    display: grid;
    gap: 0.15rem;
}

.now-line {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    line-height: 1.25;
    margin: 0;
    padding-left: 1.6rem;
    position: relative;
}

.now-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 0.62em;
    height: 0.62em;
    border-radius: 50%;
}

.now-line.sun {
    color: var(--sun);
}

.now-line.sun::before {
    background: var(--sun);
}

.now-line.earth {
    color: var(--earth-hi);
}

.now-line.earth::before {
    background: var(--earth);
}

svg {
    display: block;
    width: 100%;
    height: auto;
}

.sky {
    border-radius: var(--radius);
}

.grid {
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 1;
}

.grid.zero {
    stroke: rgba(255, 255, 255, 0.22);
}

.axis {
    fill: var(--muted);
    font-size: 10px;
    font-family: var(--ui);
}

.axis.dir {
    font-size: 11px;
    fill: var(--fg-soft);
}

.terrain {
    fill: var(--terrain);
    stroke: #33425c;
    stroke-width: 1.2;
}

.sun-disc {
    fill: var(--sun);
    stroke: #fff3c9;
    stroke-width: 1.5;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    margin: 0.6rem 0 0;
}

.legend .sun {
    color: var(--sun);
}

.legend .earth {
    color: var(--earth-hi);
}

.transport {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.stamp {
    font-variant-numeric: tabular-nums;
    font-size: 1.1rem;
    font-weight: 500;
}

.inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.inline > span {
    margin: 0;
}

.inline select {
    width: auto;
}

.jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.timeline {
    margin-top: 1.25rem;
}

.timeline svg {
    overflow: visible;
}

.lane {
    fill: var(--surface);
}

.lane-sun {
    fill: var(--sun);
}

.lane-earth {
    fill: var(--earth);
}

.lane-eclipse {
    fill: var(--eclipse);
}

text.lane-label {
    fill: var(--fg-soft);
    font-size: 12px;
    font-family: var(--ui);
}

.window {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.28);
    stroke-dasharray: 3 3;
}

.cursor {
    stroke: #fff;
    stroke-width: 1.5;
}

input[type="range"] {
    width: 100%;
    margin: 0.5rem 0 0;
    accent-color: var(--sun);
}

.block {
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem 2rem;
    margin: 0;
}

.metrics div {
    display: flex;
    flex-direction: column-reverse;
}

.metrics dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.metrics dd {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.compare,
.results-wrap {
    overflow-x: auto;
}

.compare table,
.results {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.compare th,
.compare td,
.results th,
.results td {
    text-align: left;
    padding: 0.55rem 0.75rem 0.55rem 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.results th,
.compare tbody th {
    color: var(--muted);
    font-weight: 400;
}

.compare .best {
    color: var(--good);
    font-weight: 600;
}

.form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.9rem;
    margin: 1.25rem 0;
}

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.hints {
    padding-left: 1.2rem;
}

.pass {
    color: var(--good);
}

.fail {
    color: var(--error);
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.compare-grid figure,
.sens-grid figure {
    margin: 0;
}

.compare-grid figcaption,
.sens-grid figcaption {
    color: var(--fg-soft);
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.map-tabs {
    display: flex;
    gap: 0.4rem;
    margin: 0 0 0.6rem;
}

.map-tabs button {
    background: transparent;
    padding: 0.25rem 0.7rem;
    font-size: 0.85rem;
}

.map-tabs button.active {
    background: var(--raised);
    border-color: var(--fg-soft);
}

.moon-map {
    cursor: crosshair;
    border-radius: var(--radius);
}

.map-bg {
    fill: #05060a;
}

.map-grid {
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1;
    fill: none;
}

.map-terminator {
    stroke: var(--sun);
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
    fill: none;
}

.map-site circle {
    fill: #ffffff;
    stroke: #000000;
    stroke-width: 1.5;
    cursor: pointer;
}

.map-site.selected circle {
    fill: var(--sun);
}

.map-custom {
    fill: none;
    stroke: var(--sun);
    stroke-width: 2;
}

.sens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.sens-bar {
    fill: var(--sun);
    opacity: 0.65;
}

.sens-bar.base {
    opacity: 1;
    stroke: var(--fg);
}

.tour {
    border-left: 3px solid var(--sun);
    padding: 0.25rem 0 0.25rem 1.25rem;
    max-width: 62ch;
}

.tour h3 {
    margin: 0.2rem 0 0.5rem;
    font-size: 1.35rem;
}

.tour p:not(.muted):not(.tour-buttons) {
    font-family: var(--serif);
    font-size: 1.12rem;
    line-height: 1.6;
}

.tour-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tour-focus {
    outline: 2px solid var(--sun);
    outline-offset: 6px;
    border-radius: var(--radius);
}

.terrain3d {
    width: 100%;
    height: 440px;
    display: block;
    background: #000000;
    border-radius: var(--radius);
    touch-action: none;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.6rem 1.25rem;
    background: #5a1d1d;
    color: #fff;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .planner {
        grid-template-columns: minmax(0, 1fr);
    }

    .side {
        position: static;
    }

    .bar {
        gap: 1rem;
    }

    .links {
        order: 3;
        flex-basis: 100%;
    }

    .toggles {
        margin-left: auto;
    }

    .terrain3d {
        height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

.map-credit {
    font-size: 0.78rem;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.shell:has(.explore) .bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    border-bottom: 0;
    background: linear-gradient(rgba(3, 5, 9, 0.75), rgba(3, 5, 9, 0));
}

.shell:has(.explore) .page {
    padding: 0;
    max-width: none;
}

.explore {
    position: fixed;
    inset: 0;
    background: #000000;
    overflow: hidden;
    --glass: rgba(12, 17, 27, 0.8);
    --glass-line: rgba(255, 255, 255, 0.1);
}

.globe {
    position: absolute;
    inset: 0;
}

.globe canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: grab;
    outline: none;
}

.globe canvas:active {
    cursor: grabbing;
}

.globe canvas:focus-visible {
    box-shadow: inset 0 0 0 2px var(--sun);
}

.globe-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.globe-status {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--fg-soft);
    margin: 0;
}

.scene-site {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: -6px 0 0 -6px;
    padding: 2px 6px 2px 2px;
    background: none;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    white-space: nowrap;
    text-shadow: 0 1px 4px #000000, 0 0 10px #000000;
    will-change: transform;
}

.scene-site:hover {
    background: rgba(12, 17, 27, 0.6);
}

.scene-site .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    flex: none;
}

.scene-site.test .dot {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px #ffffff;
}

.scene-site.selected {
    z-index: 2;
    color: #ffe3a8;
    font-weight: 600;
}

.scene-site.selected .dot {
    width: 12px;
    height: 12px;
    margin: -2px;
    background: var(--sun);
    box-shadow: 0 0 0 4px rgba(242, 184, 75, 0.3), 0 0 16px var(--sun);
}

.scene-site.quiet .name {
    display: none;
}

.scene-custom {
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid var(--sun);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(242, 184, 75, 0.7);
}

.hud {
    position: absolute;
    z-index: 10;
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-line);
    border-radius: 14px;
    color: var(--fg);
}

.hud-sites {
    left: 20px;
    top: 72px;
    width: 290px;
    max-height: calc(100% - 72px - 132px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hud-toggle {
    display: none;
}

.hud-body {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hud-search input {
    background: rgba(0, 0, 0, 0.35);
}

.hud-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hud-label {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0 0 4px 8px;
}

.hud-site {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 8px;
    padding: 7px 8px;
    font-size: 0.9rem;
}

.hud-site:hover {
    background: rgba(255, 255, 255, 0.06);
}

.hud-site.selected {
    background: rgba(242, 184, 75, 0.15);
    color: #ffe3a8;
}

.hud-site .coords {
    font-size: 0.8rem;
    white-space: nowrap;
}

.hud-hint {
    margin: 4px 8px 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
}

.hud-card {
    right: 20px;
    top: 72px;
    width: 340px;
    max-height: calc(100% - 72px - 132px);
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hud-card header h1 {
    font-size: 1.55rem;
    letter-spacing: -0.02em;
}

.hud-card header .coords {
    margin: 4px 0 0;
    font-size: 0.85rem;
}

.hud-card .now-line {
    font-size: 1.35rem;
    padding-left: 1.3rem;
}

.hud-card .notice {
    margin: 0;
}

.spark {
    margin: 0;
}

.spark figcaption {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.spark svg {
    height: 64px;
}

.spark-fill {
    fill: rgba(242, 184, 75, 0.25);
}

.spark-zero {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 1;
}

.spark-line {
    fill: none;
    stroke: var(--sun);
    stroke-width: 2;
}

.spark-caption {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted);
    margin: 4px 0 0;
}

.metrics.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.metrics.compact dd {
    font-size: 1.35rem;
}

.metrics.compact dt {
    font-size: 0.75rem;
}

.hud-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.hud-actions > * {
    text-align: center;
    padding: 0.65rem 0.6rem;
}

.hud-time {
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.hud-time .play,
.compare-time .play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: var(--sun);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hud-time .play svg,
.compare-time .play svg {
    width: 16px;
    height: 16px;
    fill: #1a1305;
}

.clock {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 4px 6px;
}

.clock time {
    grid-column: 1 / -1;
}

.clock time {
    font-size: 1.05rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.clock select {
    width: auto;
    padding: 0.15rem 0.4rem;
    font-size: 0.8rem;
    background: transparent;
}

.lanes {
    position: relative;
    min-width: 0;
}

.lanes svg {
    width: 100%;
    height: 30px;
    overflow: visible;
}

.lanes .lane {
    fill: rgba(255, 255, 255, 0.07);
}

.cursor-bar {
    fill: #ffffff;
}

.lanes input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    top: -6px;
    width: 100%;
    height: 42px;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.months {
    position: relative;
    height: 16px;
    margin-top: 4px;
}

.months span {
    position: absolute;
    top: 0;
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
}

.hud-time .jumps {
    margin: 0;
    flex-wrap: nowrap;
}

.hud-time .jumps button {
    background: rgba(255, 255, 255, 0.07);
    border: 0;
    font-size: 0.82rem;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .hud-time {
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .hud-time .jumps {
        display: none;
    }
}

@media (max-width: 800px) {
    .hud-sites {
        left: 12px;
        top: 132px;
        width: auto;
        max-width: calc(100% - 24px);
        background: transparent;
        border: 0;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .hud-toggle {
        display: inline-block;
        align-self: flex-start;
        background: var(--glass);
        border-color: var(--glass-line);
    }

    .hud-body {
        display: none;
    }

    .hud-sites.open {
        right: 12px;
        background: var(--glass);
        border: 1px solid var(--glass-line);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .hud-sites.open .hud-toggle {
        margin: 10px 0 0 10px;
    }

    .hud-sites.open .hud-body {
        display: flex;
    }

    .hud-card {
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 150px;
        width: auto;
        max-height: 42%;
        padding: 14px 16px;
        gap: 8px;
    }

    .hud-card:not(.open) .more {
        display: none;
    }

    .hud-card.open {
        max-height: 64%;
    }

    .hud-card header {
        position: relative;
        padding-right: 80px;
    }

    .card-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
    }

    .hud-card header h1 {
        font-size: 1.2rem;
    }

    .hud-card .now-line {
        font-size: 1.05rem;
    }

    .hud-time {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 10px 12px;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
    }

    .clock select {
        display: none;
    }

    .clock select.year-pick {
        display: inline-block;
    }

    .shell:has(.explore) .bar {
        background: rgba(3, 5, 9, 0.72);
    }

    .hud-time .lanes {
        grid-column: 1 / -1;
    }
}

.scene-compass {
    position: absolute;
    left: 50%;
    top: 76px;
    width: min(760px, calc(100% - 40px));
    height: 34px;
    transform: translateX(-50%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.scene-compass::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 2px;
    height: 14px;
    background: #ffffff;
}

.scene-compass span {
    position: absolute;
    bottom: 0;
    transform: translateX(-50%);
    color: #e8ebf1;
    font-size: 12px;
    text-shadow: 0 1px 4px #000000;
}

.scene-compass .minor {
    width: 1px;
    height: 6px;
    background: rgba(255, 255, 255, 0.45);
}

.scene-compass .major {
    padding-bottom: 8px;
}

.scene-compass .major::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 1px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
}

.scene-compass .body {
    bottom: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.scene-compass .body.sun {
    background: var(--sun, #f2b84b);
    box-shadow: 0 0 10px var(--sun, #f2b84b);
}

.scene-compass .body.earth {
    background: var(--earth, #4f9fe0);
    box-shadow: 0 0 10px var(--earth, #4f9fe0);
}

.scene-body {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: 0 0;
    margin-left: -60px;
    width: 120px;
    font-size: 13px;
    text-align: center;
    text-shadow: 0 1px 4px #000000, 0 0 10px #000000;
    pointer-events: none;
}

.scene-body.sun {
    color: #ffe3a8;
}

.scene-body.earth {
    color: #cfe6ff;
}

.scene-body .value {
    font-size: 12px;
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
}

.wide-link {
    text-align: center;
}

.eye {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--muted);
}

.shell:has(.explore) .hud-card .seg button {
    padding: 0.35rem 0.65rem;
}

.tour-start {
    width: 100%;
    background: rgba(242, 184, 75, 0.14);
    border-color: rgba(242, 184, 75, 0.45);
    color: #ffe3a8;
    font-weight: 600;
}

.hud-tour {
    left: 20px;
    top: 72px;
    width: min(400px, calc(100% - 40px));
    padding: 18px 20px;
    border-color: rgba(242, 184, 75, 0.35);
}

.hud-tour .tour {
    border-left: 0;
    padding: 0;
    max-width: none;
}

.hud-tour .tour p:not(.muted):not(.tour-buttons) {
    font-size: 1.02rem;
}

.credits-lede {
    font-size: 1.2rem;
    max-width: 60ch;
}

.credits {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem 2.5rem;
}

.credits li {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.credits h2 {
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
}

.credits h2 a {
    color: var(--fg);
}

.credits-use {
    color: var(--fg-soft);
    margin: 0 0 0.6rem;
}

.credits dl {
    margin: 0;
    display: grid;
    gap: 0.35rem;
    font-size: 0.85rem;
}

.credits dt {
    color: var(--muted);
}

.credits dd {
    margin: 0;
}

@media (max-width: 800px) {
    .hud-tour {
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 150px;
        width: auto;
        max-height: 45%;
        overflow-y: auto;
    }
}

.sw {
    border-top: 1px solid var(--glass-line, var(--line));
    padding-top: 10px;
}

.sw summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
}

.sw[open] summary {
    margin-bottom: 8px;
}

.sw p {
    margin: 0 0 8px;
}

.sw-scales {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.sw-scales li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
    color: var(--muted);
}

.sw-scales b {
    font-size: 1.05rem;
    color: var(--fg);
}

.sw-scales .level-1 {
    background: rgba(242, 184, 75, 0.16);
}

.sw-scales .level-1 b {
    color: var(--sun);
}

.sw-scales .level-2 {
    background: rgba(255, 125, 125, 0.18);
}

.sw-scales .level-2 b {
    color: var(--error);
}

.sw-list {
    margin: 0 0 8px;
    display: grid;
    gap: 6px;
    font-size: 0.85rem;
}

.sw-list dt {
    color: var(--muted);
    font-size: 0.75rem;
}

.sw-list dd {
    margin: 0;
}

.site-photo {
    margin: 0;
}

.site-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    background: #000000;
}

.site-photo figcaption {
    margin-top: 6px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--fg-soft);
}

@media (max-width: 800px) {
    .site-photo {
        display: none;
    }
}

.region-toggle {
    width: 100%;
    background: transparent;
    border-color: rgba(126, 224, 195, 0.4);
    color: #bff3e3;
}

.region-toggle[aria-pressed="true"] {
    background: rgba(126, 224, 195, 0.16);
    border-color: #7ee0c3;
}

.scene-region {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: auto;
    transform-origin: 0 0;
    margin: 10px 0 0 -40px;
    padding: 2px 8px;
    border: 1px solid rgba(126, 224, 195, 0.5);
    border-radius: 999px;
    background: rgba(8, 22, 20, 0.7);
    color: #bff3e3;
    font-size: 12px;
    white-space: nowrap;
}

.scene-region:not(.current) {
    border-color: rgba(160, 172, 178, 0.45);
    color: #c9d1d6;
}

.scene-region:hover {
    background: rgba(8, 22, 20, 0.92);
}

.region-note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--fg-soft);
}

.region-note.current {
    color: #bff3e3;
}

.region-sites {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.region-sites button {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 0;
}

.region-sites button[aria-pressed="true"] {
    background: rgba(126, 224, 195, 0.25);
    color: #ffffff;
}

.shell {
    position: relative;
    isolation: isolate;
}

.shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(13, 18, 27, 0.2), rgba(13, 18, 27, 0.92) 70%),
        url("../img/stars_bg.jpg") center / cover no-repeat;
    opacity: 0.9;
}

body {
    background: #05070b;
}

.panel {
    background: rgba(12, 17, 27, 0.76);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 20px 22px;
}

.page-head {
    margin-bottom: 1.75rem;
}

.page-head .lede {
    margin: 0.5rem 0 0;
    max-width: 62ch;
}

.planner .side,
.planner .block {
    background: rgba(12, 17, 27, 0.76);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 18px 20px;
}

.planner .block {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.planner-view {
    position: relative;
    height: clamp(320px, 52vh, 560px);
    border-radius: 14px;
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.globe.embed .scene-compass {
    top: 12px;
}

.globe.embed canvas {
    cursor: grab;
}

.replan {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.replan-form {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 16px;
}

.replan-form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.replan-form legend {
    font-weight: 600;
    margin-bottom: 4px;
}

.replan-form legend.sun {
    color: var(--sun);
}

.replan-form legend.earth {
    color: var(--earth-hi);
}

.replan-form label > span {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.replan-form output {
    color: var(--fg);
    font-variant-numeric: tabular-nums;
}

.replan-form input[type="range"] {
    margin: 0;
}

.replan-form input.earth {
    accent-color: var(--earth);
}

.replan-results {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.replan-results h2 {
    margin: 0;
}

.options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.option {
    display: grid;
    gap: 14px;
}

.option.best {
    border-color: rgba(242, 184, 75, 0.55);
    box-shadow: 0 0 0 1px rgba(242, 184, 75, 0.25), 0 12px 40px rgba(242, 184, 75, 0.08);
}

.option header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.option h3 {
    margin: 0;
    font-size: 1.1rem;
}

.option .coords {
    margin: 4px 0 0;
    font-size: 0.85rem;
}

.badge {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(242, 184, 75, 0.18);
    color: #ffe3a8;
    font-size: 0.72rem;
    font-weight: 600;
}

.chips {
    margin: 0;
    display: grid;
    gap: 6px;
    text-align: right;
    font-size: 0.85rem;
}

.chips dt {
    color: var(--muted);
    font-size: 0.72rem;
}

.chips dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.option-lanes {
    margin: 0;
}

.option-lanes figcaption {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.option-lanes svg {
    height: 26px;
}

.option-lanes .lane {
    fill: rgba(255, 255, 255, 0.07);
}

.meters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.meter-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.meter-head b {
    color: var(--fg);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.meter-bar {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.meter-bar i {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 3px;
    background: var(--sun);
}

.meter.earth .meter-bar i {
    background: var(--earth);
}

.meter.fail .meter-bar i {
    background: var(--error);
}

.meter-bar em {
    position: absolute;
    top: -3px;
    width: 2px;
    height: 12px;
    margin-left: -1px;
    background: #ffffff;
    border-radius: 1px;
}

details.panel summary {
    cursor: pointer;
    font-weight: 600;
}

details.panel[open] summary {
    margin-bottom: 12px;
}

.stats {
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stats div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stats dd {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stats dt {
    color: var(--muted);
    font-size: 0.85rem;
}

.scatter {
    max-width: 420px;
    margin: 0 auto 12px;
}

.scatter-bg {
    fill: rgba(255, 255, 255, 0.03);
}

.dot-sun {
    fill: var(--sun);
    opacity: 0.8;
}

.dot-earth {
    fill: var(--earth);
    opacity: 0.8;
}

section.panel + details.panel,
.stats + section.panel {
    margin-top: 16px;
}

@media (max-width: 900px) {
    .replan {
        grid-template-columns: minmax(0, 1fr);
    }

    .replan-form {
        position: static;
    }
}

.meteor-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.meteor-list li {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
}

.meteor-list p {
    margin: 2px 0 0;
    color: var(--fg-soft);
}

.meteor-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.meteor-head span {
    color: var(--muted);
    font-size: 0.75rem;
}

.meteor-list .exposed .meteor-exposure {
    color: #ffc9a8;
}

.meteor-list .shielded .meteor-exposure {
    color: var(--good);
}

.meteor-mark {
    fill: #ffffff;
    opacity: 0.85;
}

.hud-replay {
    left: 50%;
    top: 72px;
    transform: translateX(-50%);
    width: min(640px, calc(100% - 740px));
    min-width: 320px;
    padding: 12px 14px 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-color: rgba(242, 184, 75, 0.5);
    background: rgba(40, 28, 8, 0.78);
}

.hud-replay > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hud-replay strong {
    font-family: Spectral, Georgia, serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #ffd98a;
}

.hud-replay span {
    font-size: 0.82rem;
    color: #d8c7a3;
}

.hud-replay button {
    white-space: nowrap;
}

.hud-time.replaying {
    border-color: rgba(242, 184, 75, 0.45);
}

.landing-mark {
    fill: #f2b84b;
}

.replay-start {
    border-color: rgba(242, 184, 75, 0.45);
    color: #ffd98a;
}

@media (max-width: 1100px) {
    .hud-replay {
        width: auto;
        left: 12px;
        right: 12px;
        transform: none;
        min-width: 0;
        flex-wrap: wrap;
    }

    .hud-replay > div {
        flex-basis: 100%;
    }
}

@media (max-width: 800px) {
    .hud-replay {
        top: 186px;
        padding: 10px 12px;
        gap: 8px;
    }

    .hud-replay strong {
        font-size: 1rem;
    }

    .hud-replay span {
        display: none;
    }

    .hud-replay button {
        flex: 1;
        padding: 8px 10px;
    }
}

.layer-pick {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.layer-pick .seg {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.layer-pick .seg button {
    padding: 0.4rem 0.2rem;
    font-size: 0.8rem;
}

.hud-legend {
    left: 330px;
    bottom: 124px;
    width: 330px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hud-legend p {
    margin: 0;
}

.legend-title {
    font-size: 0.88rem;
    color: var(--fg);
}

.legend-bar {
    height: 10px;
    border-radius: 5px;
}

.legend-bar.sun {
    background: linear-gradient(90deg, #12121f, #5c381a 25%, #cc8026 50%, #f7bf4d 75%, #fff7d9);
}

.legend-bar.earth {
    background: linear-gradient(90deg, #0f0f1a, #1a3361 25%, #2966b3 50%, #66a8eb 75%, #ccebff);
}

.legend-bar.slope {
    background: linear-gradient(90deg, #299952, #80c247 25%, #edcc40 50%, #ed7829 75%, #b31f29);
}

.legend-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.legend-dark {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #b9d3ff;
}

.legend-dark i {
    flex: none;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: #2b73eb;
}

.year-line {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 0.85rem;
    color: var(--muted);
}

.year-line .sun {
    color: #f7bf4d;
}

.year-line .earth {
    color: #8cc4ff;
}

.year-line .dark {
    color: #9fc1ff;
}

.scene-probe {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(10, 14, 22, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
    color: #c9d0dc;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.scene-probe b {
    font-weight: 500;
    color: #8f99ad;
    margin-right: 6px;
}

.scene-probe .on {
    color: #ffffff;
}

@media (max-width: 1100px) {
    .hud-legend {
        width: auto;
        left: 12px;
        right: 12px;
        transform: none;
        min-width: 0;
    }
}

@media (max-width: 800px) {
    .hud-legend {
        bottom: auto;
        top: 186px;
    }

    .hud-legend .muted {
        display: none;
    }
}

.route-toggle {
    width: 100%;
    background: transparent;
    border-color: rgba(126, 224, 138, 0.4);
    color: #c9f5cf;
}

.route-toggle[aria-pressed="true"] {
    background: rgba(126, 224, 138, 0.16);
    border-color: #7ee08a;
}

.hud-route {
    border-color: rgba(126, 224, 138, 0.35);
}

.route-stats {
    margin: 0;
    display: grid;
    gap: 6px;
}

.route-stats div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
}

.route-stats dt {
    color: var(--muted);
}

.route-stats dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
    color: var(--fg);
    white-space: nowrap;
}

.route-stats .warn dd {
    color: #f0b43c;
}

.route-stats .bad dd {
    color: #ff7a6e;
}

.route-stats .cold dd {
    color: #8cb8ff;
}

.route-profile {
    margin: 0;
}

.route-profile figcaption {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.route-profile svg {
    width: 100%;
    height: auto;
    display: block;
}

.profile-fill {
    fill: rgba(126, 224, 138, 0.12);
}

.profile-line {
    fill: none;
    stroke: #c9f5cf;
    stroke-width: 1.5;
}

.profile-dot {
    fill: #ffffff;
}

.scene-route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.scene-route path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scene-route .halo {
    stroke: rgba(0, 0, 0, 0.55);
    stroke-width: 7;
}

.scene-route .body path {
    stroke-width: 3.5;
}

.scene-route .dots circle {
    fill: #ffffff;
    stroke: #0a0e16;
    stroke-width: 1.5;
}

.report {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.report-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-head h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0.1em 0 0.15em;
}

.report-head p {
    margin: 0.2em 0;
}

.report-kicker {
    color: var(--sun);
    font-size: 0.9rem;
}

.report section h2 {
    font-size: 1.1rem;
    margin: 0 0 12px;
}

.report-two {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 24px;
}

.report-lanes {
    width: 100%;
    height: auto;
    display: block;
}

.report-lanes .lane-tick {
    stroke: var(--muted);
}

.report-lanes .lane-day {
    fill: var(--muted);
    font-size: 9px;
    text-anchor: middle;
    font-family: var(--ui);
}

.report-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    align-items: start;
}

.report-tables table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.report-tables caption {
    text-align: left;
    font-weight: 600;
    padding-bottom: 6px;
}

.report-tables th,
.report-tables td {
    text-align: left;
    padding: 4px 6px 4px 0;
    border-bottom: 1px solid var(--line);
}

.report-tables th {
    color: var(--muted);
    font-weight: 500;
}

.report-sources {
    margin: 0;
    padding-left: 1.2em;
    display: grid;
    gap: 6px;
    font-size: 0.88rem;
}

@media (max-width: 800px) {
    .report-two {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media print {
    :root {
        color-scheme: light;
        --bg: #ffffff;
        --surface: #eef0f4;
        --raised: #e2e6ec;
        --line: #d5dae2;
        --fg: #111522;
        --fg-soft: #3b4254;
        --muted: #5c6578;
        --sun: #c98a12;
        --earth: #2f7cc0;
    }

    html,
    body {
        background: #ffffff;
        color: #111522;
    }

    .shell::before,
    .bar,
    .report-tools {
        display: none !important;
    }

    .page {
        padding: 0;
        max-width: none;
    }

    .report {
        gap: 18px;
    }

    .report section {
        break-inside: avoid;
    }

    .report-two {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    }

    .report-tables table {
        break-inside: auto;
    }
}

.compare-link {
    align-self: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.compare {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.compare-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
}

.compare-head h1 {
    font-family: var(--serif);
    font-weight: 600;
    margin: 0 0 4px;
}

.compare-head p {
    margin: 0;
}

.compare-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.compare-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compare-pick {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compare-pick select {
    flex: 1;
    min-width: 0;
}

.compare-view {
    position: relative;
    height: clamp(280px, 46vh, 520px);
    border-radius: 14px;
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.compare-facts p {
    margin: 0 0 4px;
}

.compare-time {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.compare-time time {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.compare-time .lanes {
    position: relative;
}

.compare-time .lanes svg {
    width: 100%;
    height: 44px;
    display: block;
}

.compare-time input[type="range"] {
    width: 100%;
    margin: 4px 0 0;
}

.compare-lane-keys {
    position: absolute;
    left: -14px;
    top: 0;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    font-size: 0.7rem;
    color: var(--muted);
}

@media (max-width: 800px) {
    .compare-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .compare-time {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .compare-time .lanes {
        grid-column: 1 / -1;
    }
}

.now-angles .lit dd {
    color: var(--sun);
}

.now-angles .dark dd {
    color: var(--muted);
}

.boot {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: radial-gradient(circle at 50% 42%, #141b27 0, var(--bg) 60%);
    color: var(--fg);
    font-family: var(--ui);
}

.boot-mark {
    position: relative;
    width: 128px;
    height: 128px;
}

.boot-ring,
.boot-moon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.boot-ring circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 3px;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.boot-ring circle:last-child {
    stroke: var(--sun);
    stroke-linecap: round;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.1s ease-out;
}

.boot-name {
    margin: 10px 0 0;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.boot-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.boot-pct::after {
    content: var(--blazor-load-percentage-text, "");
}

.globe-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.globe-spin {
    width: 72px;
    height: 72px;
}

.globe-spin circle:first-child {
    fill: none;
    stroke: var(--sun);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 80 247;
    transform-origin: 60px 60px;
    animation: globe-spin 1.4s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .globe-spin circle:first-child {
        animation: none;
        stroke-dasharray: none;
        opacity: 0.4;
    }
}

@media (max-width: 600px) {
    .bar {
        gap: 0.4rem 0.8rem;
        padding: 0.55rem 12px 0.4rem;
    }

    .brand {
        font-size: 1.05rem;
    }

    .toggles {
        gap: 6px;
    }

    .toggles .seg button {
        padding: 0.22rem 0.5rem;
        font-size: 0.78rem;
    }

    .links {
        gap: 1rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .links a {
        font-size: 0.95rem;
        padding: 0.2rem 0;
        white-space: nowrap;
    }

    .hud-sites {
        top: 90px;
    }

    .hud-replay,
    .hud-legend {
        top: 150px;
    }

    .scene-compass {
        top: 112px;
    }

    .hud-time .months span {
        font-size: 0.66rem;
    }
}

@media (min-width: 801px) {
    .card-toggle {
        display: none;
    }
}

.power {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0 2px;
    border-top: 1px solid var(--glass-line, var(--line));
}

.power h3 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fg-soft);
}

.power dl {
    margin: 0;
    display: grid;
    gap: 4px;
}

.power dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
}

.power dt {
    color: var(--muted);
}

.power dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.power dd.sun {
    color: var(--sun);
}

.power p {
    margin: 0;
}

.option-power {
    margin: 0;
    font-size: 0.85rem;
    color: var(--fg-soft);
}

.about {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about h2 {
    font-size: 1.15rem;
    margin: 0 0 10px;
}

.about p,
.about li {
    max-width: 72ch;
    line-height: 1.6;
    color: var(--fg-soft);
}

.about ul,
.about ol {
    margin: 0;
    padding-left: 1.2em;
    display: grid;
    gap: 8px;
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.about-facts div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.about-facts strong {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--sun);
    font-variant-numeric: tabular-nums;
}

.about-facts span {
    font-size: 0.85rem;
    color: var(--muted);
}

.about-figure svg {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.about-labels text {
    fill: #c9d0dc;
    font-size: 13px;
    font-family: var(--ui);
}

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

@media (max-width: 800px) {
    .about-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hud-rec {
    left: 50%;
    top: 72px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 8px 14px;
    font-size: 0.85rem;
    border-color: rgba(255, 110, 100, 0.45);
}

.hud-rec i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5a4e;
    animation: rec-blink 1s steps(2, start) infinite;
}

.hud-rec.low {
    top: 160px;
}

.hud-rec button {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
}

@keyframes rec-blink {
    to {
        visibility: hidden;
    }
}

.record-start {
    border-color: rgba(255, 110, 100, 0.35);
}

@media (max-width: 800px) {
    .hud-rec {
        top: 150px;
        left: 12px;
        right: 12px;
        transform: none;
    }
}

.dsn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0 2px;
    border-top: 1px solid var(--glass-line, var(--line));
}

.dsn h3 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fg-soft);
}

.dsn-stations {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.dsn-stations li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.dsn-stations li.up {
    background: rgba(79, 159, 224, 0.16);
    color: var(--earth-hi);
}

.dsn dl {
    margin: 0;
    display: grid;
    gap: 4px;
}

.dsn dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
}

.dsn dt {
    color: var(--muted);
}

.dsn dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.dsn p {
    margin: 0;
}

.lane-dsn-gap {
    fill: #ff7a6e;
}

.windows-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.windows-summary {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--fg);
}

.windows-years {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.windows-year {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.windows-year svg {
    width: 100%;
    height: 22px;
    display: block;
}

.strip-sun {
    fill: rgba(242, 184, 75, 0.18);
}

.strip-window {
    fill: var(--sun);
}

.windows-years .spark-caption {
    margin-left: 72px;
}

.windows-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.windows-list li {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.windows-list header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.windows-list h3 {
    margin: 0;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

label.check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

label.check input {
    width: auto;
    margin-top: 3px;
}

.window-facts {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px 16px;
}

.window-facts div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.window-facts dt {
    font-size: 0.75rem;
    color: var(--muted);
}

.window-facts dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.power dd.cold {
    color: #8cb8ff;
}

.earth-phase {
    display: flex;
    align-items: center;
    gap: 8px;
}

.earth-phase svg {
    width: 22px;
    height: 22px;
    flex: none;
}

.earth-dark {
    fill: #0f1a2a;
    stroke: rgba(169, 211, 245, 0.35);
    stroke-width: 1;
}

.earth-lit {
    fill: #6fb6ff;
}
