html, body {
    background: #080c16;
    color: #e7edf9;
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    max-width: 100%;
    min-height: 100%;
    width: 100%;
}

.live-system-map__laser--hostile {
    stroke: #ff455f;
    filter: drop-shadow(0 0 4px #ff455f) drop-shadow(0 0 9px #b8002b);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select {
    appearance: none;
    background-color: rgba(5, 15, 29, 0.96);
    border: 1px solid rgba(111, 231, 255, 0.3);
    border-radius: 0.25rem;
    box-sizing: border-box;
    color: #c2d5ee;
    font: 600 0.75rem/1.2 Consolas, 'Courier New', monospace;
    min-height: 2.35rem;
    padding: 0.5rem 0.65rem;
}

select {
    background-image: linear-gradient(45deg, transparent 50%, #7de0b1 50%), linear-gradient(135deg, #7de0b1 50%, transparent 50%);
    background-position: calc(100% - 1rem) 50%, calc(100% - 0.72rem) 50%;
    background-repeat: no-repeat;
    background-size: 0.28rem 0.28rem, 0.28rem 0.28rem;
    padding-right: 2rem;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus-visible,
textarea:focus-visible,
select:focus-visible {
    border-color: rgba(125, 224, 177, 0.8);
    box-shadow: 0 0 0 2px rgba(125, 224, 177, 0.14);
    outline: none;
}

select option {
    background: #071321;
    color: #c2d5ee;
}

html {
    height: 100%;
}

body {
    height: 100%;
}

.live-system-map__laser {
    pointer-events: none;
    stroke: #b9f7ff;
    stroke-linecap: round;
    stroke-width: 3;
    filter: drop-shadow(0 0 4px #b9f7ff) drop-shadow(0 0 9px #3de6ff);
    animation: nebesa-laser-burst 260ms ease-out forwards;
}

@keyframes nebesa-laser-burst {
    from { opacity: 0.98; stroke-width: 4; }
    to { opacity: 0; stroke-width: 0.8; }
}

html:has(.game-layout),
body:has(.game-layout) {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

.cockpit-map-frame > .live-system-map {
    block-size: 100%;
    inline-size: 100%;
    inset: 0;
    min-block-size: 0;
    min-inline-size: 0;
    overflow: hidden;
    position: absolute;
    z-index: 0;
}

.cockpit-shell {
    background: #01040b;
}

.cockpit-map-frame {
    border: 1px solid rgba(111, 231, 255, 0.5);
    box-shadow: inset 0 0 0 1px rgba(111, 231, 255, 0.08), inset 0 0 6rem rgba(21, 112, 170, 0.12), 0 0 2rem rgba(0, 0, 0, 0.45);
}

.cockpit-hud {
    background: transparent;
    color: #dffaff;
    pointer-events: none;
}

.cockpit-hud > * {
    pointer-events: none;
}

.cockpit-hud > header,
.cockpit-hud > nav,
.cockpit-hud > button,
.cockpit-hud > aside,
.cockpit-hud > .cockpit-zoom-controls,
.cockpit-hud > .cockpit-telemetry,
.cockpit-hud > .cockpit-message,
.cockpit-hud > .cockpit-map-hint,
.cockpit-hud > .cockpit-backdrop,
.cockpit-hud > .cockpit-floating-window {
    pointer-events: auto;
}

.cockpit-header,
.cockpit-telemetry,
.cockpit-control-dock,
.cockpit-map-hint {
    background: linear-gradient(180deg, rgba(5, 20, 38, 0.86), rgba(2, 10, 21, 0.8));
    border-color: rgba(111, 231, 255, 0.34);
    box-shadow: 0 0.55rem 1.35rem rgba(0, 0, 0, 0.34), 0 0 0.85rem rgba(111, 231, 255, 0.06), inset 0 0 0.8rem rgba(111, 231, 255, 0.03);
    backdrop-filter: blur(10px);
}

.cockpit-header {
    padding: 0.32rem 0.46rem;
    max-width: min(16.5rem, calc(100% - 1.1rem));
    right: auto;
}

.cockpit-brand h1,
.cockpit-floating-window__header h2 {
    color: #e9fcff;
    text-shadow: 0 0 1rem rgba(111, 231, 255, 0.22);
}

.cockpit-telemetry {
    background: linear-gradient(180deg, rgba(7, 30, 52, 0.84), rgba(3, 14, 30, 0.8));
}

.cockpit-telemetry strong,
.cockpit-map-coordinates,
.cockpit-map-hint span:last-child {
    color: #b9f5ff;
}

.cockpit-control-dock {
    border-radius: 0.28rem;
    max-inline-size: 2.9rem;
    padding: 0.16rem;
}

.cockpit-control-dock__button {
    background: linear-gradient(180deg, rgba(18, 57, 83, 0.98), rgba(5, 22, 42, 0.98));
    border-color: rgba(141, 168, 255, 0.52);
    color: #b4c9e7;
    min-height: 2.45rem;
    min-width: 2.5rem;
    width: 2.5rem;
}

.cockpit-control-dock__button:hover,
.cockpit-control-dock__button.is-active {
    background: linear-gradient(180deg, rgba(20, 111, 130, 0.98), rgba(6, 52, 74, 0.98));
    border-color: #6fe7ff;
    box-shadow: 0 0 1.4rem rgba(111, 231, 255, 0.3), inset 0 0 0.8rem rgba(111, 231, 255, 0.1);
    color: #ffffff;
}

.cockpit-control-dock__icon {
    color: #6fe7ff;
    font-size: 0.9rem;
    text-shadow: 0 0 0.55rem rgba(111, 231, 255, 0.72);
}

.cockpit-target-panel {
    border-color: #ff6680;
    box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.54), 0 0 1.8rem rgba(255, 102, 128, 0.26), inset 0 0 1.2rem rgba(255, 102, 128, 0.08);
}

.cockpit-floating-window {
    background: linear-gradient(145deg, rgba(12, 46, 73, 0.98), rgba(3, 14, 30, 0.99));
    border-color: #6fe7ff;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.65), 0 0 2rem rgba(111, 231, 255, 0.2), inset 0 0 1.5rem rgba(111, 231, 255, 0.06);
    max-inline-size: min(25rem, calc(100% - 0.5rem));
    max-block-size: calc(100% - 0.5rem);
    padding: 0.55rem;
}

.cockpit-hud > .cockpit-floating-window {
    inset: 2px auto auto 2px;
    inline-size: min(25rem, calc(100% - 0.5rem), 68vw);
    max-inline-size: min(25rem, calc(100% - 0.5rem));
    max-block-size: calc(100% - 0.5rem);
    transform: none;
}

.cockpit-target-panel {
    max-inline-size: min(17rem, calc(100% - 2rem));
}

.cockpit-telemetry {
    max-inline-size: min(21rem, calc(100% - 2rem));
}

.cockpit-floating-window__header {
    border-bottom-color: rgba(111, 231, 255, 0.42);
}

.cockpit-hud [data-cockpit-widget] {
    box-sizing: border-box;
    max-inline-size: calc(100% - 1rem);
}

.cockpit-map-frame > .cockpit-hud .cockpit-hud-group {
    pointer-events: none;
}

.cockpit-map-frame > .cockpit-hud .cockpit-hud-group > * {
    pointer-events: auto;
}

.cockpit-map-frame > .cockpit-hud [data-cockpit-widget]:not([data-cockpit-widget-bound='true']) {
    box-sizing: border-box;
    margin: 0;
    position: absolute;
}

.cockpit-map-frame > .cockpit-hud [data-cockpit-widget='header']:not([data-cockpit-widget-bound='true']) {
    left: 0.55rem;
    top: 0.55rem;
    transform: none;
}

.cockpit-map-frame > .cockpit-hud [data-cockpit-widget='overview']:not([data-cockpit-widget-bound='true']) {
    left: 0.55rem;
    top: 3.8rem;
    transform: none;
}

.cockpit-map-frame > .cockpit-hud [data-cockpit-widget='alpha-status']:not([data-cockpit-widget-bound='true']) {
    left: 0.55rem;
    top: 7.2rem;
    transform: none;
}

.cockpit-map-frame > .cockpit-hud [data-cockpit-widget='telemetry']:not([data-cockpit-widget-bound='true']) {
    left: 50%;
    top: 2.72rem;
    transform: translateX(-50%);
}

.cockpit-map-frame > .cockpit-hud [data-cockpit-widget='zoom']:not([data-cockpit-widget-bound='true']) {
    right: 0.75rem;
    top: 0.75rem;
    transform: none;
}

.cockpit-map-frame > .cockpit-hud [data-cockpit-widget='left-dock']:not([data-cockpit-widget-bound='true']) {
    left: clamp(0.45rem, 1.5vw, 1.25rem);
    top: 50%;
    transform: translateY(-50%);
}

.cockpit-map-frame > .cockpit-hud [data-cockpit-widget='right-dock']:not([data-cockpit-widget-bound='true']) {
    right: clamp(0.45rem, 1.5vw, 1.25rem);
    top: 50%;
    transform: translateY(-50%);
}

.cockpit-map-frame > .cockpit-hud [data-cockpit-widget='legend']:not([data-cockpit-widget-bound='true']) {
    bottom: 0.85rem;
    left: 1rem;
    transform: none;
}

.cockpit-map-frame > .cockpit-hud [data-cockpit-widget='hint']:not([data-cockpit-widget-bound='true']) {
    bottom: 0.45rem;
    left: 4rem;
    right: 4.05rem;
    transform: none;
}

.cockpit-map-frame > .cockpit-hud [data-cockpit-widget='target']:not([data-cockpit-widget-bound='true']) {
    left: 50%;
    top: 4.2rem;
    transform: translateX(-50%);
}

.cockpit-hud [data-cockpit-drag-surface] {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.cockpit-hud [data-cockpit-drag-surface]:active {
    cursor: grabbing;
}

.cockpit-hud > .cockpit-header[data-cockpit-widget] {
    inline-size: min(16.5rem, calc(100% - 1.1rem));
}

.cockpit-hud > .cockpit-telemetry[data-cockpit-widget] {
    inline-size: min(17.8rem, calc(100% - 2rem));
}

.cockpit-hud > .cockpit-control-dock[data-cockpit-widget] {
    inline-size: 2.85rem;
}

.cockpit-hud > .cockpit-target-panel[data-cockpit-widget] {
    inline-size: min(17rem, calc(100% - 2rem));
}

.cockpit-hud > .cockpit-alpha-overview[data-cockpit-widget] {
    inline-size: min(18rem, calc(100% - 1rem));
}

.cockpit-hud > .cockpit-alpha-status[data-cockpit-widget] {
    inline-size: min(16rem, calc(100% - 1rem));
}

@media (max-width: 650px) {
    .cockpit-hud > .cockpit-control-dock[data-cockpit-widget] {
        inset-block-end: auto;
        inset-block-start: 50%;
        max-inline-size: 2.85rem;
        transform: translateY(-50%);
    }

    .cockpit-hud > .cockpit-floating-window {
        inset: 2px auto auto 2px;
        inline-size: min(25rem, calc(100% - 0.5rem));
        max-inline-size: min(25rem, calc(100% - 0.5rem));
        max-block-size: calc(100% - 0.5rem);
        transform: none;
    }

}

*, *::before, *::after {
    box-sizing: border-box;
}

a, .btn-link {
    color: #7de0b1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    min-height: calc(100vh - 3.5rem);
    padding-top: 1.1rem;
}

.command-deck {
    margin: 0 auto;
    max-width: 1200px;
    padding: 1rem 0 3rem;
}

.hero-panel {
    align-items: center;
    background: linear-gradient(120deg, rgba(22, 35, 61, 0.95), rgba(12, 19, 35, 0.95));
    border: 1px solid rgba(117, 143, 191, 0.25);
    border-radius: 0.45rem;
    display: flex;
    justify-content: space-between;
    min-height: 220px;
    overflow: hidden;
    padding: 2.5rem;
    position: relative;
}

.hero-panel::after {
    background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(125, 224, 177, 0.025) 18px 19px);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.eyebrow {
    color: #7de0b1;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin: 0 0 0.6rem;
}

.hero-panel h1 {
    color: #f3f7ff;
    font-size: clamp(2.25rem, 6vw, 4.25rem);
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin: 0;
}

.hero-copy {
    color: #aab6cd;
    line-height: 1.65;
    margin: 1.2rem 0 0;
    max-width: 590px;
}

.status-orb {
    align-items: center;
    border: 1px solid rgba(125, 224, 177, 0.35);
    border-radius: 50%;
    color: #7de0b1;
    display: flex;
    flex-direction: column;
    font-size: 0.58rem;
    font-weight: 800;
    height: 112px;
    justify-content: center;
    letter-spacing: 0.14em;
    margin-left: 2rem;
    min-width: 112px;
    position: relative;
    z-index: 1;
}

.orb-pulse {
    background: #7de0b1;
    border-radius: 50%;
    box-shadow: 0 0 0 7px rgba(125, 224, 177, 0.08), 0 0 22px rgba(125, 224, 177, 0.8);
    height: 11px;
    margin-bottom: 0.9rem;
    width: 11px;
}

.dashboard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.dashboard-card {
    background: #0f1728;
    border: 1px solid rgba(117, 143, 191, 0.2);
    border-radius: 0.4rem;
    padding: 1.5rem;
}

.dashboard-card--wide {
    grid-column: span 2;
}

.card-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}

.dashboard-card h2 {
    color: #eaf1ff;
    font-size: 1.35rem;
    margin: 0;
}

.muted,
.card-note {
    color: #8290ab;
}

.card-note {
    border-top: 1px solid rgba(117, 143, 191, 0.15);
    font-size: 0.78rem;
    margin: 1.25rem 0 0;
    padding-top: 1rem;
}

.badge {
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.6rem;
}

.badge--ready {
    background: rgba(125, 224, 177, 0.1);
    color: #7de0b1;
}

.stat-row {
    display: flex;
    gap: 3rem;
    margin-top: 1.5rem;
}

.stat-row div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    color: #687897;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stat-row strong {
    color: #e8effd;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 1.1rem;
}

.loop-list,
.telemetry-list {
    list-style: none;
    margin: 1.2rem 0 0;
    padding: 0;
}

.loop-list li,
.telemetry-list li {
    align-items: center;
    border-bottom: 1px solid rgba(117, 143, 191, 0.12);
    color: #aab6cd;
    display: flex;
    font-size: 0.82rem;
    gap: 0.7rem;
    padding: 0.68rem 0;
}

.loop-list li:last-child,
.telemetry-list li:last-child {
    border-bottom: 0;
}

.loop-list li span {
    color: #7de0b1;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.7rem;
}

.telemetry-dot {
    background: #7de0b1;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(125, 224, 177, 0.75);
    display: inline-block;
    height: 6px;
    width: 6px;
}

.account-panel {
    margin: 3rem auto;
    max-width: 520px;
}

.account-panel:not(.cockpit-floating-window__content) {
    width: min(32.5rem, calc(100% - 2rem));
}

.account-card .command-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    max-width: 100%;
    margin-top: 1rem;
    padding: .65rem 1rem;
    border: 1px solid #47c28a;
    border-radius: .35rem;
    background: #174334;
    color: #dcfff0;
    font: 700 .75rem/1.3 'Segoe UI', sans-serif;
    letter-spacing: .08em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.account-card .command-button:hover { background: #205b46; }
.account-card .command-button:focus-visible { outline: 2px solid #6fe7ff; outline-offset: 3px; }
.account-card .command-button:disabled { opacity: .5; cursor: not-allowed; }

.account-card {
    background: #0f1728;
    border: 1px solid rgba(117, 143, 191, 0.25);
    border-radius: 0.4rem;
    padding: 2rem;
}

.account-card--compact {
    max-width: 420px;
}

.account-card h1 {
    color: #f3f7ff;
    font-size: 2.25rem;
    letter-spacing: -0.04em;
    margin: 0;
    overflow-wrap: anywhere;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1rem;
}

.account-field label {
    color: #9eacc8;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-field input:not([type=checkbox]) {
    background: #09101e;
    border: 1px solid rgba(117, 143, 191, 0.28);
    border-radius: 0.22rem;
    color: #e7effe;
    padding: 0.7rem;
    width: 100%;
}

.account-field input:focus {
    border-color: #7de0b1;
    outline: 0;
}

.account-field .validation-message {
    color: #f19aa4;
    font-size: 0.7rem;
}

.account-checkbox {
    align-items: center;
    color: #8290ab;
    display: flex;
    font-size: 0.75rem;
    gap: 0.45rem;
    margin: 1rem 0 1.25rem;
}

.account-error {
    background: rgba(239, 120, 132, 0.1);
    border: 1px solid rgba(239, 120, 132, 0.3);
    border-radius: 0.25rem;
    color: #f6aab2;
    font-size: 0.75rem;
    margin-top: 1rem;
    padding: 0.7rem;
}

.account-footer {
    border-top: 1px solid rgba(117, 143, 191, 0.14);
    color: #8290ab;
    font-size: 0.75rem;
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
}

.account-footer a {
    color: #7de0b1;
}

@media (max-width: 700px) {
    .hero-panel {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.5rem;
    }

    .status-orb {
        align-self: flex-end;
        margin: 1rem 0 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card--wide {
        grid-column: auto;
    }
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}