* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #020205;
}

html,
body {
    margin: 0;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    background: #020205;
}

#canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 45%, rgba(22, 22, 34, 0.22), transparent 38%),
        #020205;
}

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

#constellation-canvas:active {
    cursor: grabbing;
}

#constellation-canvas:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.35);
    outline-offset: -5px;
}

.site-label {
    position: absolute;
    z-index: 2;
    top: clamp(1.25rem, 3vw, 2.5rem);
    left: clamp(1.25rem, 3vw, 2.75rem);
    pointer-events: none;
    user-select: none;
}

.eyebrow,
.site-label h1,
.status,
.controls-hint {
    margin: 0;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 0.45rem;
    max-width: min(38rem, calc(100vw - 2.5rem));
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.24em;
}

.site-label h1 {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 1.4vw, 1.12rem);
    font-weight: 520;
    letter-spacing: 0.17em;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.status-dot {
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 50%;
    background: #8df7ca;
    box-shadow: 0 0 0.8rem rgba(91, 255, 191, 0.7);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.utility-nav {
    position: absolute;
    z-index: 4;
    top: clamp(1.25rem, 3vw, 2.5rem);
    right: clamp(1.25rem, 3vw, 2.75rem);
    display: flex;
    gap: 0.45rem;
}

.utility-nav button,
.intro button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(7, 9, 15, 0.62);
    font: inherit;
    font-size: 0.56rem;
    font-weight: 650;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.utility-nav button {
    padding: 0.62rem 0.85rem;
}

.utility-nav button:hover,
.utility-nav button:focus-visible,
.intro button:hover,
.intro button:focus-visible {
    border-color: rgba(141, 247, 202, 0.42);
    color: #baffdf;
    outline: none;
}

.flight-toolbar {
    position: absolute;
    z-index: 3;
    top: clamp(4.85rem, 8vw, 6rem);
    right: clamp(1.25rem, 3vw, 2.75rem);
    display: grid;
    grid-template-columns: minmax(9rem, 1.35fr) repeat(3, minmax(6.8rem, 1fr));
    gap: 0.42rem;
    width: min(40rem, calc(100vw - 2.5rem));
}

.flight-toolbar input,
.flight-toolbar select {
    width: 100%;
    height: 2.15rem;
    padding: 0 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.42rem;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(6, 8, 14, 0.72);
    font: inherit;
    font-size: 0.61rem;
    letter-spacing: 0.04em;
    outline: none;
    backdrop-filter: blur(12px);
}

.flight-toolbar input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.flight-toolbar input:focus,
.flight-toolbar select:focus {
    border-color: rgba(141, 247, 202, 0.4);
}

#filter-count {
    grid-column: 1 / -1;
    margin: 0.18rem 0 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.54rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-align: right;
    text-transform: uppercase;
}

.system-controls {
    position: absolute;
    z-index: 3;
    right: 50%;
    bottom: clamp(1rem, 2.2vw, 1.8rem);
    width: min(47rem, calc(100vw - 2.5rem));
    padding: 0.85rem 1rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.72rem;
    color: rgba(255, 255, 255, 0.58);
    background: linear-gradient(145deg, rgba(10, 13, 21, 0.9), rgba(4, 6, 11, 0.82));
    box-shadow: 0 1rem 3.5rem rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    transform: translateX(50%);
    transition: opacity 180ms ease, transform 180ms ease;
}

.system-controls-header,
.timeline-control-row,
.connection-control-row {
    display: flex;
    align-items: center;
}

.system-controls-header {
    justify-content: space-between;
    gap: 1rem;
}

.data-source-label,
.data-pipeline,
#connection-count {
    margin: 0;
}

.data-source-label {
    color: #baffdf;
    font-size: 0.55rem;
    font-weight: 680;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.data-source-label span {
    color: rgba(141, 247, 202, 0.42);
}

.data-source-label strong {
    font: inherit;
}

.data-pipeline {
    margin-top: 0.3rem;
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.48rem;
    font-weight: 620;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.data-pipeline span {
    margin: 0 0.16rem;
    color: rgba(98, 198, 255, 0.55);
}

#simulation-clock {
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
    font-weight: 460;
    letter-spacing: 0.08em;
}

.system-controls-meta,
.dataset-randomizer {
    display: flex;
    align-items: center;
}

.system-controls-meta {
    gap: 0.8rem;
}

.dataset-randomizer {
    gap: 0.45rem;
}

.dataset-randomizer button {
    padding: 0.46rem 0.62rem;
    border: 1px solid rgba(141, 247, 202, 0.2);
    border-radius: 999px;
    color: rgba(186, 255, 223, 0.72);
    background: rgba(141, 247, 202, 0.045);
    font: inherit;
    font-size: 0.48rem;
    font-weight: 670;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
}

.dataset-randomizer button:hover,
.dataset-randomizer button:focus-visible {
    border-color: rgba(141, 247, 202, 0.48);
    color: #baffdf;
    outline: none;
}

.dataset-randomizer output {
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.45rem;
    font-variant-numeric: tabular-nums;
    font-weight: 630;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.timeline-control-row {
    gap: 0.7rem;
    margin-top: 0.75rem;
}

.timeline-control-row button,
.timeline-control-row select,
.inspect-actions button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-size: 0.52rem;
    font-weight: 660;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.timeline-control-row button {
    min-width: 4.25rem;
    padding: 0.48rem 0.62rem;
}

.timeline-control-row select {
    height: 1.85rem;
    padding: 0 0.45rem;
    outline: none;
}

.timeline-control-row button:hover,
.timeline-control-row button:focus-visible,
.timeline-control-row select:focus-visible,
.inspect-actions button:hover,
.inspect-actions button:focus-visible,
.inspect-actions button[aria-expanded="true"] {
    border-color: rgba(141, 247, 202, 0.44);
    color: #baffdf;
    outline: none;
}

.timeline-range {
    min-width: 0;
    flex: 1;
}

.timeline-range input,
.connection-control-row input {
    height: 1rem;
    width: 100%;
    margin: 0;
    appearance: none;
    background: transparent;
    accent-color: #8df7ca;
    cursor: pointer;
}

.timeline-range input::-webkit-slider-runnable-track,
.connection-control-row input::-webkit-slider-runnable-track {
    height: 2px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.18);
}

.timeline-range input::-webkit-slider-thumb,
.connection-control-row input::-webkit-slider-thumb {
    width: 0.68rem;
    height: 0.68rem;
    margin-top: -0.29rem;
    appearance: none;
    border: 1px solid rgba(186, 255, 223, 0.75);
    border-radius: 50%;
    background: #8df7ca;
    box-shadow: 0 0 0.65rem rgba(141, 247, 202, 0.58);
}

.timeline-range input::-moz-range-track,
.connection-control-row input::-moz-range-track {
    height: 2px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.18);
}

.timeline-range input::-moz-range-thumb,
.connection-control-row input::-moz-range-thumb {
    width: 0.68rem;
    height: 0.68rem;
    border: 1px solid rgba(186, 255, 223, 0.75);
    border-radius: 50%;
    background: #8df7ca;
    box-shadow: 0 0 0.65rem rgba(141, 247, 202, 0.58);
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.24);
    font-size: 0.43rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.connection-control-row {
    display: grid;
    grid-template-columns: auto auto minmax(8rem, 1fr) auto;
    gap: 0.72rem;
    margin-top: 0.7rem;
    padding-top: 0.68rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.connection-control-row label,
.connection-control-row output,
#connection-count {
    font-size: 0.51rem;
    font-weight: 650;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.connection-control-row label {
    color: rgba(255, 255, 255, 0.45);
}

.connection-control-row output {
    color: #baffdf;
    font-variant-numeric: tabular-nums;
}

#connection-count {
    color: rgba(255, 255, 255, 0.32);
    text-align: right;
}

.controls-hint {
    position: absolute;
    z-index: 2;
    bottom: clamp(1.25rem, 3vw, 2.25rem);
    left: clamp(1.25rem, 3vw, 2.75rem);
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    pointer-events: none;
    user-select: none;
}

.controls-hint span {
    margin: 0 0.35rem;
    color: rgba(255, 255, 255, 0.16);
}

#flight-tooltip {
    position: fixed;
    z-index: 4;
    width: max-content;
    max-width: min(18rem, calc(100vw - 2rem));
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(6, 7, 12, 0.86);
    box-shadow: 0 0.75rem 2.2rem rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
    font-size: 0.72rem;
    line-height: 1.55;
    letter-spacing: 0.025em;
    white-space: pre-line;
    pointer-events: none;
    transform: translate(0.85rem, 0.85rem);
}

#flight-tooltip::first-line {
    color: white;
    font-weight: 650;
}

.flight-card {
    position: absolute;
    z-index: 3;
    top: clamp(9rem, 14vw, 10.5rem);
    right: clamp(1.25rem, 3vw, 2.75rem);
    bottom: clamp(9.5rem, 16vw, 11rem);
    width: min(21rem, calc(100vw - 2.5rem));
    max-height: none;
    overflow: auto;
    padding: 1rem 1.1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.72rem;
    background: linear-gradient(145deg, rgba(13, 16, 25, 0.9), rgba(5, 6, 11, 0.78));
    box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
}

.flight-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.flight-card-topline p,
.flight-card-number,
.flight-card-airline,
.flight-card-aircraft,
.flight-card h2,
.flight-card-note {
    margin: 0;
}

.flight-card-topline p,
.flight-card-note,
.flight-metrics dt {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.55rem;
    font-weight: 650;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.flight-card-topline button {
    display: grid;
    width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.flight-card-topline button:hover,
.flight-card-topline button:focus-visible {
    border-color: rgba(141, 247, 202, 0.45);
    color: #baffdf;
    outline: none;
}

.flight-card-number {
    margin-top: 1rem;
    color: #8df7ca;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.flight-card-airline {
    margin-top: 0.48rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.68rem;
}

.flight-card h2 {
    margin-top: 0.32rem;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.65rem;
    font-weight: 480;
    letter-spacing: 0.05em;
}

.flight-card-aircraft {
    margin-top: 0.38rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.flight-progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.55rem;
    font-weight: 650;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.flight-progress-copy strong {
    color: #8df7ca;
    font-size: inherit;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
}

.flight-progress {
    height: 2px;
    margin: 0.45rem 0 1.1rem;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.09);
}

.flight-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(98, 198, 255, 0.72), #8df7ca);
    box-shadow: 0 0 0.75rem rgba(141, 247, 202, 0.65);
    transition: width 300ms ease;
}

.flight-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 0.65rem;
    margin: 0;
}

.flight-metrics div {
    min-width: 0;
}

.flight-metrics dt {
    margin-bottom: 0.34rem;
}

.flight-metrics dd {
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flight-card-note {
    margin-top: 1rem;
    line-height: 1.5;
    letter-spacing: 0.1em;
}

.inspect-actions {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inspect-actions button {
    padding: 0.5rem 0.65rem;
}

.inspect-panel {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(98, 198, 255, 0.14);
    border-radius: 0.48rem;
    background: rgba(1, 5, 10, 0.48);
}

.inspect-panel-title,
.inspect-panel pre,
.mapping-inspector {
    margin: 0;
}

.inspect-panel-title,
.inspect-panel-heading > span {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.5rem;
    font-weight: 680;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.inspect-panel pre {
    margin-top: 0.62rem;
    overflow-x: auto;
    color: rgba(186, 255, 223, 0.78);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.61rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.inspect-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.inspect-panel-heading > span {
    color: rgba(98, 198, 255, 0.42);
    font-size: 0.43rem;
}

.mapping-inspector {
    display: grid;
    gap: 0.62rem;
    margin-top: 0.72rem;
}

.mapping-inspector div {
    display: grid;
    grid-template-columns: minmax(6rem, 0.9fr) 1.25fr;
    gap: 0.7rem;
    padding-top: 0.58rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mapping-inspector dt,
.mapping-inspector dd {
    margin: 0;
}

.mapping-inspector dt {
    color: rgba(255, 255, 255, 0.42);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.56rem;
}

.mapping-inspector dd {
    min-width: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.58rem;
    text-align: right;
}

.mapping-inspector dd span,
.mapping-inspector dd small {
    display: block;
}

.mapping-inspector dd small {
    margin-top: 0.18rem;
    color: rgba(141, 247, 202, 0.48);
    font-size: 0.46rem;
    line-height: 1.4;
    text-transform: uppercase;
}

#mapping-airline-swatch {
    display: inline-block;
    width: 0.42rem;
    height: 0.42rem;
    margin-right: 0.25rem;
    border-radius: 50%;
    box-shadow: 0 0 0.45rem currentColor;
}

.project-panel {
    position: absolute;
    z-index: 6;
    top: clamp(9rem, 13vw, 10rem);
    right: clamp(1.25rem, 3vw, 2.75rem);
    width: min(25rem, calc(100vw - 2.5rem));
    max-height: calc(100vh - clamp(9rem, 13vw, 10rem) - 1.25rem);
    padding: 1.1rem 1.2rem 1.25rem;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.62);
    background: linear-gradient(145deg, rgba(13, 16, 25, 0.96), rgba(5, 6, 11, 0.92));
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(20px);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header p,
.project-panel h2,
.project-panel h3,
.project-panel p,
.legend-list {
    margin: 0;
}

.panel-header p,
.project-panel h3 {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.56rem;
    font-weight: 650;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.panel-header button {
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.58);
    background: transparent;
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.project-panel h2 {
    max-width: 18rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.55rem;
    font-weight: 470;
    line-height: 1.18;
}

.panel-lede {
    margin-top: 0.75rem !important;
    font-size: 0.78rem;
    line-height: 1.65;
}

.project-panel section {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-panel section > p {
    margin-top: 0.58rem;
    font-size: 0.71rem;
    line-height: 1.65;
}

.project-panel .process-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.6rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.process-flow span {
    color: rgba(126, 198, 255, 0.72);
}

.legend-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.72rem;
    padding: 0;
    list-style: none;
}

.legend-list li {
    display: grid;
    grid-template-columns: 1rem 1fr;
    gap: 0.7rem;
    align-items: center;
    font-size: 0.68rem;
    line-height: 1.45;
}

.legend-list strong {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.project-panel .panel-note {
    margin-top: 0.9rem;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.62rem;
    line-height: 1.55;
}

.observation-location {
    margin-top: 0.45rem !important;
    color: #8df7ca;
    font-size: 0.58rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.observation-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    margin: 1.25rem 0 0;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.observation-stats div:last-child {
    grid-column: 1 / -1;
}

.observation-stats dt,
.observation-stats dd {
    margin: 0;
}

.observation-stats dt {
    color: #baffdf;
    font-size: 1.55rem;
    font-variant-numeric: tabular-nums;
    font-weight: 470;
    line-height: 1;
}

.observation-stats dd {
    margin-top: 0.32rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.57rem;
    font-weight: 620;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-transform: uppercase;
}

.legend-mark {
    display: block;
    position: relative;
    height: 0.75rem;
}

.legend-filter::before,
.legend-filter::after {
    content: '';
    position: absolute;
    left: 0.1rem;
    width: 0.72rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.72);
}

.legend-filter::before {
    top: 0.22rem;
    box-shadow: 0 0.25rem 0 rgba(255, 255, 255, 0.72);
}

.legend-filter::after {
    top: 0.72rem;
}

.legend-flight::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 0.6rem white;
    transform: translate(-50%, -50%);
}

.legend-route::before,
.legend-link::before,
.legend-earth::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8df7ca);
}

.legend-link::before { background: rgba(255, 255, 255, 0.38); }
.legend-earth::before { background: #62c6ff; opacity: 0.55; }

.share-toast {
    position: absolute;
    z-index: 9;
    top: 5.2rem;
    left: 50%;
    padding: 0.62rem 0.85rem;
    border: 1px solid rgba(141, 247, 202, 0.26);
    border-radius: 99px;
    color: #baffdf;
    background: rgba(7, 14, 16, 0.9);
    font-size: 0.58rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.intro {
    position: fixed;
    z-index: 12;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.68);
    text-align: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(30, 54, 61, 0.3), transparent 24%),
        radial-gradient(circle at 30% 20%, rgba(255, 79, 216, 0.06), transparent 20%),
        #020205;
}

.intro-orbit {
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    margin-bottom: 1.6rem;
    border: 1px solid rgba(98, 198, 255, 0.22);
    border-radius: 50%;
}

.intro-orbit::before,
.intro-orbit::after {
    content: "";
    position: absolute;
    inset: 0.55rem -0.25rem;
    border: 1px solid rgba(141, 247, 202, 0.2);
    border-radius: 50%;
    transform: rotate(42deg);
}

.intro-orbit::after {
    inset: -0.1rem 1rem;
    transform: rotate(-38deg);
}

.intro-orbit span,
.intro-orbit i,
.intro-orbit b {
    position: absolute;
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 0.75rem white;
}

.intro-orbit span { top: 0.45rem; left: 1.2rem; }
.intro-orbit i { right: 0.6rem; bottom: 1.15rem; }
.intro-orbit b { bottom: 0.4rem; left: 1.55rem; }

.intro h2,
.intro > p {
    margin: 0;
}

.intro h2 {
    margin-top: 0.55rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.7rem, 5vw, 3.35rem);
    font-weight: 420;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.intro > p:not(.eyebrow) {
    max-width: 31rem;
    margin-top: 0.85rem;
    font-size: 0.82rem;
    line-height: 1.7;
}

.intro-keys {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.35rem;
}

.intro-keys span {
    padding: 0.46rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 99px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.53rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.intro button {
    margin-top: 1.4rem;
    padding: 0.75rem 1.05rem;
    color: #07100d;
    background: #8df7ca;
}

.intro button:hover,
.intro button:focus-visible {
    color: #020806;
    background: #baffdf;
}

noscript {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 640px) {
    .utility-nav {
        top: 1rem;
        right: 1rem;
    }

    .utility-nav button {
        padding: 0.52rem 0.65rem;
    }

    .site-label {
        top: 4.6rem;
        left: 1rem;
    }

    .flight-toolbar {
        top: 9rem;
        right: 1rem;
        left: 1rem;
        grid-template-columns: 1fr 1fr;
        width: auto;
    }

    .search-field {
        grid-column: 1 / -1;
    }

    #filter-count {
        text-align: left;
    }

    .controls-hint {
        display: none;
    }

    .system-controls {
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
        width: auto;
        padding: 0.72rem 0.78rem;
        transform: none;
    }

    .data-pipeline {
        max-width: 16rem;
        line-height: 1.5;
    }

    #simulation-clock {
        font-size: 1.05rem;
    }

    .system-controls-meta {
        gap: 0.45rem;
    }

    .dataset-randomizer {
        display: grid;
        justify-items: end;
        gap: 0.18rem;
    }

    .dataset-randomizer button {
        padding: 0.4rem 0.5rem;
        font-size: 0.43rem;
    }

    .timeline-control-row {
        gap: 0.45rem;
    }

    .connection-control-row {
        grid-template-columns: auto 1fr auto;
        gap: 0.45rem;
    }

    .connection-control-row input {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    #connection-count {
        grid-column: 3;
        max-width: 8rem;
    }

    .flight-card {
        top: 18rem;
        right: 1rem;
        bottom: 12rem;
        left: 1rem;
        width: auto;
        max-height: none;
        transform: none;
    }

    .project-panel {
        top: 18rem;
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
        width: auto;
        max-height: none;
    }

    .intro h2 {
        letter-spacing: 0.06em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-dot {
        box-shadow: 0 0 0.45rem rgba(91, 255, 191, 0.45);
    }
}

/* Reserve a dedicated lane for open information panels in embedded browser views. */
@media (min-width: 1001px) and (max-width: 1700px) {
    #canvas-container.has-side-panel {
        --side-panel-reserve: 29rem;
    }

    #canvas-container.has-side-panel .system-controls {
        right: auto;
        left: calc((100vw - var(--side-panel-reserve)) / 2);
        width: min(47rem, calc(100vw - var(--side-panel-reserve) - 3rem));
        transform: translateX(-50%);
    }

    #canvas-container.has-side-panel .controls-hint {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 1000px) {
    .flight-toolbar {
        right: 1rem;
        left: 1rem;
        grid-template-columns: minmax(9rem, 1.35fr) repeat(3, minmax(5.5rem, 1fr));
        width: auto;
    }

    .system-controls {
        right: 1rem;
        left: 1rem;
        width: auto;
        transform: none;
    }

    .project-panel,
    .flight-card {
        top: 9rem;
        right: 1rem;
        bottom: 12rem;
        width: min(22rem, calc(100vw - 2rem));
        max-height: none;
    }

    #canvas-container.has-side-panel .controls-hint {
        display: none;
    }
}
