:root {
    --ad-bg: #d7e8f4;
    --ad-bg-2: #edf7fc;
    --ad-text: #102033;
    --ad-muted: #5d7288;
    --ad-muted-2: #72879b;
    --ad-muted-3: #6a7f93;
    --ad-border: rgba(82, 121, 150, 0.24);
    --ad-border-soft: rgba(82, 121, 150, 0.14);
    --ad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 248, 252, 0.92));
    --ad-surface-solid: #f7fbfe;
    --ad-surface-solid-2: #ffffff;
    --ad-accent: #0b75b7;
    --ad-accent-2: #1688c7;
    --ad-accent-soft: rgba(11, 117, 183, 0.12);
    --ad-success: #178b61;
    --ad-danger: #c63d35;
    --ad-info: #1688c7;
    --mobile-bottom-nav-height: 4.25rem;
}

/* Career restart reuses the registration airport picker without allowing form controls to overflow. */
.career-restart-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    min-width: 0;
}

.career-restart-form-grid > *,
.career-restart-confirmation,
.career-restart-confirmation input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.settings-restart-hub-picker .auth-field-label {
    color: #334155;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.settings-restart-hub-picker .auth-hub-note {
    color: #64748b;
}

@media (max-width: 767px) {
    .career-restart-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .career-restart-form-grid + div > button {
        width: 100%;
        min-width: 0;
    }
}

html {
    color-scheme: light;
}

html, body {
    min-height: 100%;
    font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overscroll-behavior-y: none;
}

body {
    background:
        radial-gradient(980px 380px at 78% -8%, rgba(255, 255, 255, 0.88), transparent 62%),
        linear-gradient(180deg, var(--ad-bg-2), var(--ad-bg)),
        var(--ad-bg);
    color: var(--ad-text);
}

html:has(.game-information-modal-backdrop),
body:has(.game-information-modal-backdrop) {
    overflow: hidden;
}

.first-flight-guide-target {
    position: relative;
    z-index: 3900 !important;
    outline: 3px solid #64e1f3 !important;
    outline-offset: 4px;
    box-shadow:
        0 0 0 0.45rem rgba(56, 206, 235, 0.2),
        0 0 2rem rgba(56, 206, 235, 0.7) !important;
    animation: first-flight-guide-pulse 1.3s ease-in-out infinite;
}

@keyframes first-flight-guide-pulse {
    50% {
        outline-color: #46e0ad;
        box-shadow:
            0 0 0 0.7rem rgba(70, 224, 173, 0.12),
            0 0 2.4rem rgba(70, 224, 173, 0.72) !important;
    }
}

.font-mono,
code,
pre,
kbd,
table td:first-child {
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

h1:focus {
    outline: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    border-radius: 0.5rem;
    padding: 0.65rem 0.8rem;
    color: var(--ad-muted);
    font-size: 0.925rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
    background: rgba(11, 117, 183, 0.09);
    color: #0d5f94;
}

.nav-link.active {
    background: linear-gradient(180deg, rgba(229, 246, 255, 0.92), rgba(208, 234, 248, 0.92));
    color: #075f94;
    box-shadow: 0 12px 28px -24px rgba(16, 49, 75, 0.75);
}

a {
    color: var(--ad-accent-2);
}

a:hover {
    color: var(--ad-accent);
}

input,
select,
textarea {
    color-scheme: light;
}

/* Tailwind utility harmonization for the existing Blazor pages. */
.bg-slate-50 {
    background-color: transparent !important;
}

.bg-white {
    background: var(--ad-surface) !important;
}

.bg-slate-100 {
    background-color: rgba(224, 239, 248, 0.72) !important;
}

.bg-cyan-700 {
    background-color: var(--ad-accent) !important;
    color: #ffffff !important;
}

.hover\:bg-cyan-800:hover {
    background-color: var(--ad-accent-2) !important;
}

.bg-cyan-50,
.bg-amber-50 {
    background-color: var(--ad-accent-soft) !important;
}

.bg-emerald-50 {
    background-color: rgba(52, 211, 153, 0.12) !important;
}

.bg-rose-50 {
    background-color: rgba(239, 107, 98, 0.12) !important;
}

.bg-red-50 {
    background-color: rgba(255, 241, 239, 0.94) !important;
}

.bg-slate-300 {
    background-color: rgba(138, 160, 178, 0.38) !important;
}

.border-slate-200,
.border-slate-300,
.border-cyan-200,
.border-cyan-300,
.border-amber-200,
.border-amber-300,
.border-emerald-200,
.border-emerald-300,
.border-rose-300,
.border-red-200 {
    border-color: var(--ad-border) !important;
}

.divide-slate-100 > :not([hidden]) ~ :not([hidden]),
.divide-slate-200 > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--ad-border-soft) !important;
}

.text-slate-950 {
    color: var(--ad-text) !important;
}

.text-slate-700 {
    color: #2f455c !important;
}

.text-slate-500 {
    color: var(--ad-muted) !important;
}

.text-slate-600 {
    color: #42586f !important;
}

.text-cyan-700,
.text-amber-800,
.text-amber-700 {
    color: var(--ad-accent-2) !important;
}

.text-emerald-700 {
    color: var(--ad-success) !important;
}

.text-rose-700,
.text-rose-600,
.text-red-700 {
    color: var(--ad-danger) !important;
}

.shadow-sm {
    box-shadow: 0 18px 44px -36px rgba(16, 49, 75, 0.66), 0 1px 0 rgba(255, 255, 255, 0.88) inset !important;
}

.rounded {
    border-radius: 0.5rem !important;
}

table {
    border-collapse: separate;
    border-spacing: 0;
}

thead th {
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    color: var(--ad-muted-3) !important;
    letter-spacing: 0.08em;
}

tbody tr {
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: rgba(11, 117, 183, 0.045);
}

button,
.button-like {
    border-radius: 0.5rem;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.modal-surface-solid {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 252, 0.96)), #f7fbfe !important;
    color: var(--ad-text);
}

.route-builder-modal {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-width: min(64rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: hidden;
}

.route-builder-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--ad-border);
    padding: 0.75rem 1rem;
}

.route-builder-header p,
.route-builder-summary span {
    color: var(--ad-muted-3);
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.route-builder-header h2 {
    margin: 0.18rem 0 0;
    color: var(--ad-text);
    font-size: 1.22rem;
    font-weight: 850;
}

.route-builder-close {
    border: 1px solid var(--ad-border);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ad-muted-2);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.48rem 0.72rem;
}

.route-builder-close:hover {
    background: rgba(229, 246, 255, 0.92);
    color: #075f94;
}

.route-builder-body {
    display: grid;
    gap: 0.75rem;
    min-height: 0;
    overflow: auto;
    padding: 0.9rem 1rem;
}

.route-builder-pickers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    min-height: 0;
}

.airport-picker {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    border: 1px solid var(--ad-border);
    border-radius: 0.78rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(242, 248, 252, 0.68)),
        rgba(247, 251, 254, 0.72);
    padding: 0.72rem;
}

.airport-picker-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2rem;
}

.airport-picker-title span {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    border-radius: 999px;
    background: #0b75b7;
    color: #ffffff;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    padding: 0.28rem 0.62rem;
    text-transform: uppercase;
    box-shadow: 0 12px 28px -22px rgba(11, 117, 183, 0.95);
}

.airport-picker-title strong {
    overflow: hidden;
    max-width: 62%;
    color: var(--ad-text);
    font-size: 0.82rem;
    font-weight: 850;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.airport-picker-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 0.55rem;
    margin-top: 0.62rem;
}

.airport-picker-filters label {
    display: grid;
    gap: 0.35rem;
    color: var(--ad-muted-2);
    font-size: 0.7rem;
    font-weight: 800;
}

.airport-picker-filters input,
.airport-picker-filters select {
    min-width: 0;
    border: 1px solid var(--ad-border);
    border-radius: 0.52rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ad-text);
    font-size: 0.82rem;
    outline: none;
    padding: 0.5rem 0.58rem;
}

.airport-picker-filters input:focus,
.airport-picker-filters select:focus {
    border-color: #1688c7;
    box-shadow: 0 0 0 0.16rem rgba(22, 136, 199, 0.14);
}

.airport-picker-results {
    display: grid;
    align-content: start;
    gap: 0.38rem;
    max-height: clamp(11rem, 30vh, 16rem);
    min-height: 0;
    margin-top: 0.62rem;
    overflow: auto;
    padding-right: 0.15rem;
}

.airport-picker-option {
    display: grid;
    gap: 0.1rem;
    width: 100%;
    border: 1px solid rgba(82, 121, 150, 0.18);
    border-radius: 0.58rem;
    background: rgba(255, 255, 255, 0.62);
    color: var(--ad-text);
    padding: 0.5rem 0.62rem;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.airport-picker-option:hover {
    border-color: rgba(11, 117, 183, 0.34);
    background: rgba(229, 246, 255, 0.9);
    transform: translateY(-1px);
}

.airport-picker-option.is-selected {
    border-color: rgba(11, 117, 183, 0.55);
    background: linear-gradient(180deg, rgba(224, 244, 255, 0.96), rgba(207, 235, 249, 0.92));
    box-shadow: inset 0.22rem 0 #0b75b7;
}

.airport-picker-code {
    color: #0b75b7;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 900;
}

.airport-picker-name {
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.airport-picker-meta {
    color: var(--ad-muted-2);
    font-size: 0.7rem;
    font-weight: 700;
}

.route-builder-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.route-builder-summary div {
    border: 1px solid var(--ad-border);
    border-radius: 0.62rem;
    background: rgba(255, 255, 255, 0.72);
    padding: 0.58rem 0.68rem;
}

.route-builder-summary strong {
    display: block;
    overflow: hidden;
    margin-top: 0.18rem;
    color: var(--ad-text);
    font-size: 0.9rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-builder-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-top: 1px solid var(--ad-border);
    padding: 0.72rem 1rem;
}

@media (max-width: 920px) {
    .route-builder-modal {
        max-height: calc(100vh - 2rem);
        overflow: auto;
    }

    .route-builder-pickers,
    .route-builder-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .airport-picker-filters {
        grid-template-columns: 1fr;
    }

    .route-builder-actions {
        display: grid;
    }
}

.app-shell,
.public-shell {
    background:
        radial-gradient(980px 420px at 82% -10%, rgba(255, 255, 255, 0.9), transparent 64%),
        linear-gradient(180deg, #edf7fc 0%, #d7e8f4 46%, #c4dbea 100%);
    color: var(--ad-text);
}

.app-shell {
    display: flex;
    width: 100%;
    height: 100dvh;
    min-height: 32rem;
    overflow: hidden;
}

.app-frame {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
}

.app-main {
    min-height: 0;
    overflow: auto;
}

.app-main-scenic {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(180deg, #dceef8 0%, #d1e6f2 42%, #c4dbea 100%);
}

.app-main-scenic::before {
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    height: clamp(15rem, 35vh, 22rem);
    background:
        linear-gradient(
            180deg,
            rgba(8, 30, 45, 0.02) 0%,
            rgba(8, 30, 45, 0.03) 40%,
            rgba(201, 226, 240, 0.32) 56%,
            rgba(213, 234, 246, 0.78) 72%,
            rgba(220, 238, 248, 0.98) 94%,
            #dceef8 100%),
        var(--app-main-scene-image) var(--app-main-scene-position, center) / cover no-repeat;
    content: "";
    pointer-events: none;
}

.app-main-scenic > article {
    position: relative;
    z-index: 1;
    padding-top: clamp(10rem, 23vh, 14rem);
}

.app-main-flights {
    --app-main-scene-image: url("/images/flight-board/airport-lounge-background.jpg");
    --app-main-scene-position: center 52%;
}

.app-main-fuel {
    --app-main-scene-image: url("/images/fuel/aircraft-refueling-background.jpg");
    --app-main-scene-position: 62% 82%;
}

.app-main-maintenance {
    --app-main-scene-image: url("/images/maintenance/aircraft-hangar-maintenance-background.jpg");
    --app-main-scene-position: center 46%;
}

.app-main-aircraft {
    --app-main-scene-image: url("/images/page-heroes/aircraft-market-background.jpg");
    --app-main-scene-position: center 68%;
}

.app-main-fleet {
    --app-main-scene-image: url("/images/page-heroes/fleet-management-background.jpg");
    --app-main-scene-position: center 66%;
}

.app-main-routes {
    --app-main-scene-image: url("/images/page-heroes/route-network-background.jpg");
    --app-main-scene-position: center 64%;
}

.app-main-flight-planning {
    --app-main-scene-image: url("/images/page-heroes/flight-planning-background.jpg");
    --app-main-scene-position: center 60%;
}

.app-main-finance {
    --app-main-scene-image: url("/images/page-heroes/airline-finance-background.jpg");
    --app-main-scene-position: center 58%;
}

.app-main-settings {
    --app-main-scene-image: url("/images/page-heroes/airline-settings-background.jpg");
    --app-main-scene-position: 58% 58%;
}

.app-main-help {
    --app-main-scene-image: url("/images/page-heroes/airline-settings-background.jpg");
    --app-main-scene-position: center 58%;
}

.app-main-community {
    --app-main-scene-image: url("/images/flight-board/airport-lounge-background.jpg");
    --app-main-scene-position: center 48%;
}

@media (max-width: 639px) {
    .app-main-scenic::before {
        height: 14rem;
    }

    .app-main-scenic > article {
        padding-top: 8.5rem;
    }
}

.app-main-map {
    overflow: hidden;
}

.app-sidebar {
    position: relative;
    width: 4rem;
    height: 100dvh;
    flex: 0 0 4rem;
    border-bottom: 1px solid rgba(54, 82, 109, 0.34);
    background:
        radial-gradient(180px 260px at 50% 0%, rgba(46, 183, 229, 0.24), transparent 72%),
        linear-gradient(180deg, #081829 0%, #0b2134 48%, #071421 100%);
    color: #d9e9f6;
    box-shadow: 24px 0 58px -44px rgba(3, 13, 24, 0.95), inset -1px 0 rgba(255, 255, 255, 0.06);
}

.game-nav {
    gap: 0.5rem;
}

.game-nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.game-nav-logo {
    position: relative;
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(113, 211, 246, 0.24);
    border-radius: 0.72rem;
    background:
        linear-gradient(180deg, rgba(17, 45, 72, 0.92), rgba(6, 18, 33, 0.96)),
        #0a1728;
    box-shadow: 0 20px 42px -28px rgba(63, 207, 247, 0.95), inset 0 1px rgba(255, 255, 255, 0.12);
}

.game-nav-logo::after {
    position: absolute;
    inset: 0.38rem;
    border: 1px solid rgba(113, 211, 246, 0.10);
    border-radius: 0.5rem;
    content: "";
    pointer-events: none;
}

.game-nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-nav-list {
    display: flex;
    min-height: 0;
    flex: 1;
    gap: 0.28rem;
}

.game-nav-link {
    position: relative;
    justify-content: center;
    min-height: 2.55rem;
    border: 1px solid rgba(113, 211, 246, 0.12);
    border-radius: 0.58rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
        rgba(9, 25, 42, 0.78);
    color: rgba(207, 226, 240, 0.72);
    padding: 0;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.game-nav-link::before {
    position: absolute;
    left: -0.28rem;
    top: 50%;
    width: 0.18rem;
    height: 1.1rem;
    border-radius: 999px;
    background: transparent;
    content: "";
    transform: translateY(-50%);
}

.game-nav-link::after {
    position: absolute;
    left: calc(100% + 0.55rem);
    top: 50%;
    z-index: 50;
    min-width: max-content;
    border: 1px solid rgba(113, 211, 246, 0.18);
    border-radius: 0.65rem;
    background: rgba(9, 24, 40, 0.96);
    color: #eef8ff;
    content: attr(data-label);
    font-size: 0.82rem;
    font-weight: 800;
    opacity: 0;
    padding: 0.48rem 0.65rem;
    pointer-events: none;
    transform: translate(-0.3rem, -50%);
    transition: opacity 0.16s ease, transform 0.16s ease;
    box-shadow: 0 18px 44px -26px rgba(3, 13, 24, 0.9);
}

.game-nav-link:hover {
    border-color: rgba(113, 211, 246, 0.36);
    background:
        radial-gradient(90px 70px at 50% 20%, rgba(57, 194, 240, 0.18), transparent 72%),
        rgba(11, 35, 58, 0.92);
    color: #ffffff;
    transform: translateY(-1px);
}

.game-nav-link:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.game-nav-link.active {
    border-color: rgba(90, 213, 255, 0.52);
    background:
        radial-gradient(100px 80px at 50% 8%, rgba(78, 206, 250, 0.42), transparent 72%),
        linear-gradient(180deg, rgba(15, 120, 175, 0.9), rgba(7, 67, 108, 0.9));
    color: #ffffff;
    box-shadow: 0 16px 36px -24px rgba(78, 206, 250, 0.95), inset 0 1px rgba(255, 255, 255, 0.22);
}

.game-nav-link.active::before {
    display: none;
}

.game-nav-settings {
    margin-top: auto;
}

.game-nav-icon {
    display: grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
}

.game-nav-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.game-nav-fleet-icon {
    position: relative;
    display: block;
    width: 1.68rem;
    height: 1.55rem;
}

.game-nav-fleet-icon svg {
    position: absolute;
    width: 0.82rem;
    height: 0.82rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.15;
}

.game-nav-fleet-icon svg:nth-child(1) {
    left: 50%;
    top: 0;
    opacity: 1;
    transform: translateX(-50%);
}

.game-nav-fleet-icon svg:nth-child(2) {
    bottom: 0.04rem;
    left: 0;
    opacity: 0.82;
}

.game-nav-fleet-icon svg:nth-child(3) {
    right: 0;
    bottom: 0.04rem;
    opacity: 0.82;
}

.game-nav-text {
    display: none;
}

.mobile-bottom-nav,
.mobile-more-sheet,
.mobile-more-backdrop {
    display: none;
}

@media (min-width: 768px) and (max-height: 740px) {
    .game-nav { gap: 0.3rem; }
    .game-nav-logo { width: 2.55rem; height: 2.55rem; }
    .game-nav-list { gap: 0.16rem; }
    .game-nav-link { min-height: 2.1rem; }
}

@media (max-width: 820px) {
    html.aerodinasty-tutorial-open,
    html.aerodinasty-tutorial-open body,
    html:has(.tutorial-backdrop),
    body:has(.tutorial-backdrop) {
        overflow: hidden;
    }

    html.aerodinasty-tutorial-open .app-shell,
    body:has(.tutorial-backdrop) .app-shell {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .app-shell {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
    }

    .app-sidebar {
        position: fixed;
        inset: auto 0 0;
        z-index: 100;
        width: 100%;
        height: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom));
        flex: none;
        border-top: 1px solid rgba(113, 211, 246, 0.2);
        border-bottom: 0;
        background:
            radial-gradient(460px 180px at 50% 100%, rgba(46, 183, 229, 0.18), transparent 72%),
            linear-gradient(180deg, rgba(8, 24, 41, 0.98), rgba(7, 20, 33, 0.99));
        padding-bottom: env(safe-area-inset-bottom);
        padding-right: 0 !important;
        padding-left: 0 !important;
        padding-top: 0 !important;
    }

    /* Keep the map's internal layers below the expanded navigation. */
    .app-frame {
        position: relative;
        z-index: 0;
        width: 100%;
        height: calc(100vh - var(--mobile-bottom-nav-height) - env(safe-area-inset-bottom));
        height: calc(100dvh - var(--mobile-bottom-nav-height) - env(safe-area-inset-bottom));
        flex: none;
        padding-bottom: 0;
    }

    .app-main {
        overscroll-behavior-y: contain;
        scroll-padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .game-nav {
        gap: 0;
    }

    .game-nav-brand,
    .game-nav-desktop {
        display: none;
    }

    .mobile-bottom-nav {
        display: grid;
        width: 100%;
        height: var(--mobile-bottom-nav-height);
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        padding: 0.22rem 0.25rem 0.2rem;
    }

    .mobile-nav-link {
        display: flex;
        min-width: 0;
        min-height: 3.6rem;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0.18rem;
        border: 0;
        border-radius: 0.65rem;
        background: transparent;
        color: rgba(207, 226, 240, 0.72);
        font: inherit;
        text-decoration: none;
    }

    .mobile-nav-link svg {
        width: 1.3rem;
        height: 1.3rem;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.9;
    }

    .mobile-nav-link span {
        max-width: 100%;
        overflow: hidden;
        font-size: 0.72rem;
        font-weight: 750;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-nav-link.active {
        background: rgba(30, 143, 194, 0.22);
        color: #f5fcff;
    }

    .mobile-nav-link:focus-visible {
        outline: 2px solid #5dd4f7;
        outline-offset: -3px;
    }

    .mobile-more-sheet {
        position: fixed;
        inset: auto 0 calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom));
        z-index: 99;
        display: grid;
        max-height: min(70dvh, 34rem);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        overflow-y: auto;
        border: 1px solid rgba(113, 211, 246, 0.2);
        border-radius: 1rem 1rem 0 0;
        background: rgba(7, 23, 38, 0.985);
        color: #eaf8ff;
        padding: 1rem;
        box-shadow: 0 -1.25rem 3rem -1.5rem rgba(2, 12, 22, 0.9);
    }

    .mobile-more-backdrop {
        position: fixed;
        inset: 0 0 calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom));
        z-index: 98;
        display: block;
        cursor: default;
        border: 0;
        background: rgba(2, 12, 22, 0.34);
        padding: 0;
    }

    .mobile-more-heading {
        display: flex;
        grid-column: 1 / -1;
        align-items: center;
        justify-content: space-between;
        font-size: 1.2rem;
    }

    .mobile-more-heading button {
        display: grid;
        width: 2.75rem;
        height: 2.75rem;
        cursor: pointer;
        place-items: center;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        color: #eaf8ff;
    }

    .mobile-more-heading svg {
        width: 1.25rem;
        height: 1.25rem;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-width: 2;
    }

    .mobile-more-sheet h2 {
        margin: 0 0 0.4rem;
        color: #78d5f3;
        font-size: 0.82rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .mobile-more-links {
        display: grid;
        gap: 0.2rem;
    }

    .mobile-more-links a {
        display: flex;
        min-height: 2.75rem;
        align-items: center;
        border-radius: 0.55rem;
        color: #d7e9f5;
        padding: 0.5rem 0.6rem;
        font-size: 1rem;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-more-links a.active,
    .mobile-more-links a:hover {
        background: rgba(42, 166, 217, 0.16);
        color: #fff;
    }
}

.app-header {
    position: relative;
    z-index: 30;
    flex: 0 0 auto;
    border-bottom: 1px solid rgba(103, 211, 248, 0.2);
    background:
        linear-gradient(90deg, rgba(18, 68, 99, 0.34) 1px, transparent 1px),
        linear-gradient(180deg, #0c263b 0%, #081a2b 100%);
    background-size: 4rem 100%, auto;
    color: #eaf8ff;
    box-shadow: 0 12px 34px -28px rgba(2, 10, 18, 0.9), inset 0 1px rgba(255, 255, 255, 0.07);
}

.app-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(18rem, 34vw, 34rem) minmax(0, 1fr);
    min-height: 2rem;
    align-items: center;
    gap: 0.55rem;
}

.header-telemetry {
    display: flex;
    grid-column: 3;
    min-width: 0;
    align-items: center;
    justify-self: end;
    gap: 0.4rem;
}

.header-company-summary {
    display: flex;
    grid-column: 1;
    min-width: 0;
    align-items: center;
    gap: 0.4rem;
}

.header-message-zone {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    grid-column: 2;
    justify-content: center;
}

.header-message {
    position: relative;
    display: grid;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 2rem;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.45rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.28rem;
    padding: 0.22rem 0.3rem 0.22rem 0.46rem;
    color: #fff;
    isolation: isolate;
}

.header-message::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.035) 3px 4px),
        linear-gradient(105deg, transparent 0 66%, rgba(255, 255, 255, 0.08) 66% 68%, transparent 68%);
    content: "";
    pointer-events: none;
}

.header-message::after {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: currentColor;
    content: "";
    opacity: 0.95;
}

.header-message.is-warning {
    border-color: rgba(255, 139, 139, 0.58);
    background: linear-gradient(100deg, #6f1426 0%, #a91f37 54%, #7d172b 100%);
    color: #ffe2e4;
    box-shadow:
        0 0 18px rgba(239, 52, 76, 0.24),
        inset 0 1px rgba(255, 255, 255, 0.1);
}

.header-message.is-reward {
    border-color: rgba(98, 255, 181, 0.5);
    background: linear-gradient(100deg, #07533a 0%, #0b8053 54%, #075e42 100%);
    color: #d8ffea;
    box-shadow:
        0 0 18px rgba(38, 208, 132, 0.22),
        inset 0 1px rgba(255, 255, 255, 0.1);
}

.header-message-icon {
    display: grid;
    width: 1.42rem;
    height: 1.42rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.2rem;
    background: rgba(2, 10, 18, 0.24);
}

.header-message-icon svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.header-message-copy {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 0.38rem;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    white-space: nowrap;
}

.header-message-copy strong {
    flex: 0 0 auto;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.header-message-copy > span {
    overflow: hidden;
}

.header-message-history-link,
.header-message-dismiss,
.header-message-history-standalone,
.header-message-history-heading button {
    border: 0;
    color: inherit;
}

.header-message-history-link {
    display: inline-flex;
    min-width: 1.55rem;
    min-height: 1.55rem;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    border-radius: 0.2rem;
    background: rgba(2, 10, 18, 0.16);
    padding: 0.1rem 0.2rem;
    color: rgba(255, 255, 255, 0.84);
    font: 700 0.56rem "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    white-space: nowrap;
}

.header-message-history-link svg {
    width: 0.8rem;
    height: 0.8rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.header-message-history-link:hover {
    color: #fff;
}

.header-message-dismiss {
    display: grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.2rem;
    background: rgba(2, 10, 18, 0.22);
}

.header-message-dismiss:hover {
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(2, 10, 18, 0.42);
}

.header-message-dismiss svg,
.header-message-history-heading svg {
    width: 0.8rem;
    height: 0.8rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.header-message-zone-history-only {
    align-items: center;
}

.header-message-history-standalone {
    display: inline-flex;
    min-height: 1.7rem;
    align-items: center;
    gap: 0.38rem;
    border: 1px solid rgba(103, 211, 248, 0.2);
    border-radius: 0.28rem;
    background: rgba(5, 20, 34, 0.68);
    color: #8bdcf8;
    padding: 0.2rem 0.48rem;
    font: 800 0.58rem "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.header-message-history-standalone:hover {
    border-color: rgba(103, 211, 248, 0.5);
    background: rgba(11, 49, 76, 0.9);
    color: #eaf8ff;
}

.header-message-history-standalone svg {
    width: 0.82rem;
    height: 0.82rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.header-message-history-standalone span {
    display: grid;
    min-width: 1rem;
    height: 1rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(103, 211, 248, 0.14);
    font-size: 0.52rem;
}

.header-message-history {
    position: absolute;
    z-index: 90;
    top: calc(100% + 0.52rem);
    left: 50%;
    width: min(34rem, calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid rgba(103, 211, 248, 0.28);
    border-radius: 0.38rem;
    background:
        linear-gradient(rgba(10, 38, 58, 0.96), rgba(5, 23, 38, 0.98)),
        #071a2a;
    color: #eaf8ff;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.88), inset 0 1px rgba(255, 255, 255, 0.06);
    transform: translateX(-50%);
}

.header-message-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(103, 211, 248, 0.16);
    padding: 0.7rem 0.8rem;
}

.header-message-history-heading > span {
    display: grid;
    gap: 0.08rem;
}

.header-message-history-heading small {
    color: #6fcff2;
    font: 800 0.52rem "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.header-message-history-heading strong {
    font: 700 0.8rem "IBM Plex Sans", sans-serif;
}

.header-message-history-heading button {
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    border: 1px solid rgba(103, 211, 248, 0.2);
    border-radius: 0.25rem;
    background: rgba(5, 20, 34, 0.7);
}

.header-message-history-list {
    display: grid;
    max-height: 20rem;
    gap: 0.42rem;
    overflow-y: auto;
    padding: 0.58rem;
}

.header-message-history-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left-width: 3px;
    border-radius: 0.28rem;
    background: rgba(255, 255, 255, 0.035);
    padding: 0.58rem;
}

.header-message-history-item.is-warning {
    border-left-color: #fb7185;
}

.header-message-history-item.is-reward {
    border-left-color: #5df2b0;
}

.header-message-history-item .history-item-signal {
    width: 0.42rem;
    height: 0.42rem;
    margin-top: 0.22rem;
    border-radius: 50%;
    background: #fb7185;
    box-shadow: 0 0 9px rgba(251, 113, 133, 0.68);
}

.header-message-history-item.is-reward .history-item-signal {
    background: #5df2b0;
    box-shadow: 0 0 9px rgba(93, 242, 176, 0.64);
}

.header-message-history-item > span:last-child {
    display: grid;
    min-width: 0;
    gap: 0.16rem;
}

.header-message-history-item strong {
    color: #fff;
    font: 800 0.66rem "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.04em;
}

.header-message-history-item span span {
    color: #c8dce8;
    font-size: 0.7rem;
    line-height: 1.35;
}

.header-message-history-item small {
    color: #71a4bd;
    font: 700 0.54rem "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.header-chip,
.nav-toggle-button {
    border: 1px solid rgba(103, 211, 248, 0.18);
    background: rgba(5, 20, 34, 0.66);
    color: #eaf8ff;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.header-chip {
    display: flex;
    min-width: 0;
    height: 2rem;
    align-items: center;
    gap: 0.42rem;
    border-radius: 0.5rem;
    padding: 0 0.58rem;
}

.header-label {
    color: #6fcff2;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.header-chip strong {
    overflow: hidden;
    color: #f4fbff;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-company {
    max-width: min(24rem, 34vw);
}

.header-balance {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    border-color: rgba(93, 242, 176, 0.24);
    background: linear-gradient(180deg, rgba(13, 57, 52, 0.7), rgba(5, 31, 35, 0.74));
}

.header-balance::after {
    position: absolute;
    right: 0;
    top: 0;
    width: 1.8rem;
    height: 1px;
    background: #5df2b0;
    content: "";
    opacity: 0.78;
}

.header-balance-mark {
    display: grid;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(93, 242, 176, 0.38);
    border-radius: 50%;
    background: rgba(93, 242, 176, 0.1);
    color: #7df6bd;
    font: 800 0.58rem "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.header-balance .header-label {
    color: #77dcae;
}

.header-balance strong {
    color: #8af5c3;
    font-variant-numeric: tabular-nums;
}

.header-balance.is-negative {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(93, 28, 36, 0.34);
}

.header-balance.is-negative::after {
    background: #fb9292;
}

.header-balance.is-negative .header-balance-mark {
    border-color: rgba(248, 113, 113, 0.38);
    background: rgba(248, 113, 113, 0.1);
    color: #ffc5c5;
}

.header-balance.is-negative .header-label,
.header-balance.is-negative strong {
    color: #ffc5c5;
}

.header-status-light {
    width: 0.42rem;
    height: 0.42rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #5df2b0;
    box-shadow: 0 0 0 3px rgba(93, 242, 176, 0.1), 0 0 10px rgba(93, 242, 176, 0.65);
}

.header-status-light.is-paused {
    background: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1), 0 0 10px rgba(251, 191, 36, 0.62);
}

.header-game-toggle {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(103, 211, 248, 0.32);
    border-radius: 50%;
    background: rgba(8, 49, 73, 0.78);
    color: #80ddfa;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.header-game-toggle:hover {
    border-color: rgba(128, 221, 250, 0.72);
    background: rgba(13, 75, 105, 0.92);
    color: #effcff;
}

.header-game-toggle.is-paused {
    border-color: rgba(251, 191, 36, 0.62);
    background: rgba(120, 67, 7, 0.58);
    color: #fde68a;
}

.header-game-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.header-game-toggle svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.6;
}

.header-game-toggle.is-paused svg {
    fill: currentColor;
    stroke-width: 1.5;
}

.header-action {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    align-items: center;
    place-items: center;
    border: 1px solid rgba(248, 113, 113, 0.26);
    border-radius: 0.32rem;
    background: rgba(93, 28, 36, 0.28);
    color: #ffc5c5;
    padding: 0;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-action svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.header-action:hover,
.nav-toggle-button:hover {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(127, 29, 29, 0.48);
    color: #ffffff;
}

.nav-toggle-button,
.nav-toggle-button:hover {
    border-color: rgba(103, 211, 248, 0.24);
    background: rgba(9, 35, 57, 0.9);
    color: #eaf8ff;
}

@media (max-width: 1100px) {
    .app-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .header-company-summary {
        grid-column: 1;
        grid-row: 1;
    }

    .header-telemetry {
        grid-column: 2;
        grid-row: 1;
    }

    .header-message-zone {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .header-message {
        max-width: 42rem;
    }

    .header-clock-local {
        display: none;
    }
}

@media (max-width: 640px) {
    .header-company {
        max-width: 42vw;
    }

    .header-message {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
    }
}

@media (max-width: 430px) {
    .header-clock .header-label {
        display: none;
    }

    .header-company {
        max-width: 34vw;
    }

    .header-balance {
        gap: 0.3rem;
        padding: 0 0.42rem;
    }

    .header-message-history-standalone {
        font-size: 0.54rem;
    }
}

.stat-card {
    border: 1px solid var(--ad-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 248, 252, 0.94)),
        #f7fbfe;
    color: var(--ad-text);
    box-shadow: 0 18px 44px -36px rgba(16, 49, 75, 0.68), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.stat-card p:first-child,
.company-selector {
    color: var(--ad-muted-3);
}

.stat-card p:last-child {
    color: var(--ad-text);
}

.stat-card-indicator {
    background: rgba(11, 117, 183, 0.1);
    color: #0b75b7;
}

.game-dashboard {
    display: grid;
    gap: 0.85rem;
    color: #e8f6ff;
}

.game-dashboard-hero,
.game-dashboard-panel,
.game-dashboard-stat,
.game-dashboard-loading,
.game-dashboard-alert {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.22);
    background:
        linear-gradient(180deg, rgba(11, 25, 43, 0.97), rgba(5, 13, 25, 0.98)),
        #07111f;
    box-shadow: 0 26px 70px -46px rgba(0, 0, 0, 0.95), inset 0 1px rgba(255, 255, 255, 0.08);
}

.game-dashboard-hero {
    display: grid;
    min-height: 10.8rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(12rem, 0.65fr);
    align-items: center;
    gap: 0.85rem;
    border-radius: 0.85rem;
    padding: clamp(0.9rem, 2vw, 1.35rem);
    background:
        radial-gradient(460px 220px at 82% 22%, rgba(34, 197, 94, 0.18), transparent 70%),
        radial-gradient(460px 240px at 18% 18%, rgba(14, 165, 233, 0.24), transparent 72%),
        linear-gradient(135deg, #0a1628 0%, #101625 44%, #06111d 100%);
}

.game-dashboard-hero::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(125, 211, 252, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
    mask-image: linear-gradient(90deg, black, transparent 78%);
    pointer-events: none;
}

.game-dashboard-hero-copy {
    position: relative;
    z-index: 1;
}

.game-dashboard-kicker,
.game-dashboard-panel-title span,
.game-dashboard-stat span,
.game-dashboard-flight-board span,
.game-dashboard-ledger span {
    color: #8bd9ff;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.game-dashboard-hero h1 {
    margin: 0.25rem 0 0;
    color: #ffffff;
    font-size: clamp(1.85rem, 3.7vw, 3.35rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.92;
    text-transform: uppercase;
}

.game-dashboard-hero-copy p:last-child {
    max-width: 34rem;
    margin: 0.75rem 0 0;
    color: #b8c8da;
    font-size: 0.9rem;
    line-height: 1.5;
}

.game-dashboard-radar {
    position: relative;
    z-index: 1;
    justify-self: center;
    width: min(10.22rem, 41vw);
    aspect-ratio: 1;
    border: 1px solid rgba(125, 211, 252, 0.26);
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle, rgba(125, 211, 252, 0.16) 0 1px, transparent 1px 2.24rem),
        linear-gradient(135deg, rgba(12, 35, 55, 0.72), rgba(5, 15, 27, 0.8));
    box-shadow: inset 0 0 42px rgba(14, 165, 233, 0.18), 0 22px 60px -38px rgba(34, 211, 238, 0.9);
}

.game-dashboard-radar::before,
.game-dashboard-radar::after {
    position: absolute;
    inset: 50% 8%;
    height: 1px;
    background: rgba(125, 211, 252, 0.22);
    content: "";
}

.game-dashboard-radar::after {
    transform: rotate(90deg);
}

.game-dashboard-radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: conic-gradient(from 12deg, rgba(34, 197, 94, 0.34), transparent 28%, transparent);
    animation: dashboard-radar-spin 6s linear infinite;
}

.game-dashboard-radar-plane {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2.87rem;
    height: 2.87rem;
    background: #f8d66d;
    mask: url("/icons/aircraft/b747.svg") center / contain no-repeat;
    -webkit-mask: url("/icons/aircraft/b747.svg") center / contain no-repeat;
    transform: translate(-50%, -50%) rotate(52deg);
    filter: drop-shadow(0 0 12px rgba(248, 214, 109, 0.72)) drop-shadow(0 5px 8px rgba(22, 41, 58, 0.22));
}

.game-dashboard-radar-route {
    position: absolute;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(139, 217, 255, 0.9), transparent);
}

.game-dashboard-radar-route.route-a {
    left: 18%;
    top: 35%;
    width: 60%;
    transform: rotate(-28deg);
}

.game-dashboard-radar-route.route-b {
    left: 20%;
    top: 63%;
    width: 58%;
    transform: rotate(23deg);
}

.game-dashboard-radar-dot {
    position: absolute;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: #5df2b0;
    box-shadow: 0 0 0 5px rgba(93, 242, 176, 0.12), 0 0 18px rgba(93, 242, 176, 0.65);
}

.game-dashboard-radar-dot.dot-a {
    left: 23%;
    top: 31%;
}

.game-dashboard-radar-dot.dot-b {
    right: 21%;
    top: 58%;
}

.game-dashboard-radar-dot.dot-c {
    left: 42%;
    bottom: 17%;
    background: #f8d66d;
    box-shadow: 0 0 0 5px rgba(248, 214, 109, 0.12), 0 0 18px rgba(248, 214, 109, 0.65);
}

.game-dashboard-alert,
.game-dashboard-loading {
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    color: #ffe4a3;
    font-weight: 800;
}

.game-dashboard-loading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #b8c8da;
}

.game-dashboard-loading span {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: #5df2b0;
    box-shadow: 0 0 0 6px rgba(93, 242, 176, 0.12);
}

.game-dashboard-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.game-dashboard-stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    min-height: 6.7rem;
    border-radius: 0.75rem;
    padding: 0.8rem;
}

.game-dashboard-stat::after {
    position: absolute;
    right: -1.4rem;
    bottom: -1.9rem;
    width: 7rem;
    height: 7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.game-dashboard-stat strong {
    display: block;
    overflow: hidden;
    margin-top: 0.42rem;
    color: #ffffff;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: clamp(1.12rem, 1.75vw, 1.55rem);
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-dashboard-stat small {
    display: block;
    margin-top: 0.45rem;
    color: #93a7bc;
    font-weight: 800;
}

.game-dashboard-stat-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 2.85rem;
    height: 2.85rem;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 0.65rem;
    background: rgba(11, 117, 183, 0.1);
    color: #0b75b7;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.65);
}

.game-dashboard-stat-icon svg {
    width: 1.55rem;
    height: 1.55rem;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.game-dashboard-stat-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.game-dashboard-stat.is-cash {
    border-color: rgba(93, 242, 176, 0.24);
}

.game-dashboard-stat.is-profit {
    border-color: rgba(248, 214, 109, 0.28);
}

.game-dashboard-command-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0.7rem;
}

.game-dashboard-panel {
    min-height: 12.2rem;
    border-radius: 0.75rem;
    padding: 0.9rem;
}

.game-dashboard-panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.game-dashboard-panel-title h2 {
    margin: 0.2rem 0 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
}

.game-dashboard-reputation {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.game-dashboard-reputation-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.game-dashboard-reputation-header > div > span {
    color: #8bd9ff;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.game-dashboard-reputation-header > strong {
    color: #ffffff;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
}

.game-dashboard-reputation-header > strong span {
    margin-left: 0.12rem;
    color: #8bd9ff;
    font-size: 0.85rem;
}

.game-dashboard-reputation-track {
    position: relative;
    overflow: hidden;
    height: 0.9rem;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 0.28rem;
    background:
        repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(125, 211, 252, 0.18) calc(10% - 1px) 10%),
        rgba(5, 17, 30, 0.64);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.34);
}

.game-dashboard-reputation-track > div {
    position: relative;
    height: 100%;
    min-width: 0.4rem;
    background: linear-gradient(90deg, #0ea5e9, #22d3ee 62%, #5df2b0);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}

.game-dashboard-reputation-track > div > span {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.65) 48%, transparent 66%);
    animation: dashboard-reputation-shine 2.8s ease-in-out infinite;
}

.game-dashboard-reputation p,
.game-dashboard-directive-panel p {
    margin: 0;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 900;
}

.game-dashboard-reputation small,
.game-dashboard-directive-panel p {
    display: block;
    margin-top: 0.45rem;
    color: #9fb0c5;
    line-height: 1.55;
}

.game-dashboard-airline-panel {
    min-height: 17.5rem;
}

.game-dashboard-reputation-reward {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 0;
    border: 1px solid rgba(11, 117, 183, 0.2);
    border-radius: 0.7rem;
    background:
        linear-gradient(135deg, rgba(218, 245, 252, 0.9), rgba(238, 250, 255, 0.78));
    padding: 0.8rem;
}

.game-dashboard-reputation-reward-copy > span {
    color: #0b75b7;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.game-dashboard-reputation-reward h3 {
    margin: 0.24rem 0 0;
    color: #102b43;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.35;
}

.game-dashboard-reputation-reward p {
    margin: 0.3rem 0 0;
    color: #506a80;
    font-size: 0.78rem;
    line-height: 1.45;
}

.game-dashboard-reputation-privacy {
    margin-top: 0.42rem;
    border: 0;
    background: transparent;
    padding: 0;
    color: #087aa7;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.16rem;
}

.game-dashboard-reputation-privacy:disabled {
    opacity: 0.55;
}

.game-dashboard-reputation-reward-action button {
    min-width: 7rem;
    border: 1px solid #087aa7;
    border-radius: 0.58rem;
    background: linear-gradient(135deg, #22c7df, #0b86aa);
    padding: 0.72rem 0.85rem;
    color: #06263a;
    font-weight: 900;
    white-space: nowrap;
}

.game-dashboard-reputation-reward-action button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.game-dashboard-reputation-reward-action strong {
    display: block;
    max-width: 8rem;
    color: #087aa7;
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: right;
}

.game-dashboard-flight-board,
.game-dashboard-ledger {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.game-dashboard-flight-board div,
.game-dashboard-ledger div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(125, 211, 252, 0.13);
    border-radius: 0.58rem;
    background: rgba(255, 255, 255, 0.045);
    padding: 0.58rem 0.68rem;
}

.game-dashboard-flight-board strong,
.game-dashboard-ledger strong {
    color: #ffffff;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.94rem;
    font-weight: 900;
}

.game-dashboard-progress {
    overflow: hidden;
    height: 0.5rem;
    margin-top: 0.8rem;
    border-radius: 999px;
    background: rgba(125, 211, 252, 0.12);
}

.game-dashboard-progress div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5df2b0, #8bd9ff);
    box-shadow: 0 0 18px rgba(93, 242, 176, 0.45);
}

.game-dashboard-ledger-panel {
    min-height: 10.5rem;
}

.game-dashboard-directive-panel {
    min-height: 10.5rem;
    border-color: rgba(248, 214, 109, 0.24);
    background:
        radial-gradient(240px 160px at 88% 22%, rgba(248, 214, 109, 0.13), transparent 72%),
        linear-gradient(180deg, rgba(17, 28, 43, 0.98), rgba(8, 17, 29, 0.98));
}

@keyframes dashboard-radar-spin {
    to {
        transform: rotate(1turn);
    }
}

@keyframes dashboard-reputation-shine {
    0%,
    55% {
        transform: translateX(-130%);
    }

    100% {
        transform: translateX(130%);
    }
}

@media (max-width: 1024px) {
    .game-dashboard-hero,
    .game-dashboard-command-grid {
        grid-template-columns: 1fr;
    }

    .game-dashboard-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .game-dashboard-hero {
        min-height: auto;
    }

    .game-dashboard-status-grid {
        grid-template-columns: 1fr;
    }

    .game-dashboard-reputation-reward {
        grid-template-columns: 1fr;
    }

    .game-dashboard-reputation-reward-action button {
        width: 100%;
    }

    .game-dashboard-reputation-reward-action strong {
        max-width: none;
        text-align: left;
    }
}

/* Dashboard: light simulator acrylic inspired by modern flight-sim menus. */
.game-dashboard {
    color: #15334e;
}

.game-dashboard-hero,
.game-dashboard-panel,
.game-dashboard-stat,
.game-dashboard-loading,
.game-dashboard-alert {
    border-color: rgba(67, 127, 166, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(229, 242, 250, 0.72)),
        rgba(241, 248, 252, 0.72);
    box-shadow: 0 24px 70px -46px rgba(24, 68, 98, 0.72), inset 0 1px rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px) saturate(1.18);
}

.game-dashboard-hero {
    background:
        radial-gradient(520px 240px at 80% 18%, rgba(255, 255, 255, 0.72), transparent 68%),
        radial-gradient(600px 260px at 12% 2%, rgba(112, 194, 236, 0.3), transparent 70%),
        linear-gradient(135deg, rgba(219, 238, 249, 0.92) 0%, rgba(185, 218, 237, 0.84) 46%, rgba(122, 176, 211, 0.72) 100%);
}

.game-dashboard-hero::before {
    background:
        linear-gradient(rgba(23, 88, 132, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 88, 132, 0.05) 1px, transparent 1px);
    opacity: 0.8;
}

.game-dashboard-kicker,
.game-dashboard-panel-title span,
.game-dashboard-stat span,
.game-dashboard-flight-board span,
.game-dashboard-ledger span {
    color: #0b75b7;
}

.game-dashboard-hero h1,
.game-dashboard-stat strong,
.game-dashboard-panel-title h2,
.game-dashboard-flight-board strong,
.game-dashboard-ledger strong,
.game-dashboard-reputation p {
    color: #102b43;
}

.game-dashboard-hero-copy p:last-child,
.game-dashboard-stat small,
.game-dashboard-reputation small,
.game-dashboard-directive-panel p {
    color: #506a80;
}

.game-dashboard-radar {
    border-color: rgba(13, 119, 183, 0.22);
    background:
        repeating-radial-gradient(circle, rgba(13, 119, 183, 0.18) 0 1px, transparent 1px 3.2rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(194, 225, 243, 0.5));
    box-shadow: inset 0 0 36px rgba(11, 117, 183, 0.13), 0 22px 58px -42px rgba(11, 117, 183, 0.65);
}

.game-dashboard-radar::before,
.game-dashboard-radar::after {
    background: rgba(11, 117, 183, 0.24);
}

.game-dashboard-radar-sweep {
    background: conic-gradient(from 12deg, rgba(11, 117, 183, 0.22), transparent 28%, transparent);
}

.game-dashboard-radar-plane {
    background: #0b75b7;
    filter: drop-shadow(0 0 10px rgba(11, 117, 183, 0.35)) drop-shadow(0 5px 8px rgba(22, 41, 58, 0.16));
}

.game-dashboard-radar-route {
    background: linear-gradient(90deg, transparent, rgba(11, 117, 183, 0.58), transparent);
}

.game-dashboard-radar-dot {
    background: #18a46d;
    box-shadow: 0 0 0 5px rgba(24, 164, 109, 0.12), 0 0 18px rgba(24, 164, 109, 0.42);
}

.game-dashboard-radar-dot.dot-c {
    background: #f0b429;
    box-shadow: 0 0 0 5px rgba(240, 180, 41, 0.14), 0 0 18px rgba(240, 180, 41, 0.42);
}

.game-dashboard-stat::after {
    border-color: rgba(11, 117, 183, 0.1);
}

.game-dashboard-stat.is-cash {
    border-color: rgba(24, 164, 109, 0.24);
}

.game-dashboard-stat.is-profit,
.game-dashboard-directive-panel {
    border-color: rgba(240, 180, 41, 0.26);
}

.game-dashboard-flight-board div,
.game-dashboard-ledger div {
    border-color: rgba(67, 127, 166, 0.14);
    background: rgba(255, 255, 255, 0.5);
}

.game-dashboard-progress {
    background: rgba(11, 117, 183, 0.12);
}

.game-dashboard-progress div {
    background: linear-gradient(90deg, #0b75b7, #37a9e8);
    box-shadow: 0 0 16px rgba(55, 169, 232, 0.32);
}

.game-dashboard-directive-panel {
    background:
        radial-gradient(240px 160px at 88% 22%, rgba(240, 180, 41, 0.13), transparent 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(228, 241, 249, 0.74));
}

.company-selector select {
    border: 1px solid var(--ad-border) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--ad-text) !important;
}

.auth-page {
    background:
        radial-gradient(720px 320px at 72% 18%, rgba(255, 255, 255, 0.9), transparent 66%),
        linear-gradient(180deg, #edf7fc 0%, #c8deed 100%);
}

.auth-card {
    border: 1px solid var(--ad-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 253, 0.96)),
        #f7fbfe;
    color: var(--ad-text);
    box-shadow: 0 28px 90px -54px rgba(8, 31, 49, 0.86), 0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.auth-card h1,
.auth-brand {
    color: var(--ad-text);
}

.auth-card p,
.auth-card label {
    color: var(--ad-muted);
}

.auth-brand span {
    border: 1px solid rgba(11, 117, 183, 0.3);
    background: rgba(11, 117, 183, 0.1);
    color: #0b75b7;
}

.auth-card input {
    border: 1px solid var(--ad-border) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: var(--ad-text) !important;
}

.auth-card input:focus {
    border-color: #1688c7 !important;
    box-shadow: 0 0 0 0.18rem rgba(22, 136, 199, 0.2) !important;
}

.auth-primary-button {
    border: 1px solid transparent;
    background: linear-gradient(180deg, #1688c7, #075f94);
    color: #ffffff;
}

.auth-error {
    border: 1px solid rgba(198, 61, 53, 0.28);
    background: rgba(255, 241, 239, 0.95);
    color: var(--ad-danger);
}

/* Auth pages: game campaign access. */
.auth-page-v2 {
    --auth-cyan: #67d8ff;
    --auth-cyan-soft: rgba(103, 216, 255, 0.18);
    --auth-gold: #ffc747;
    --auth-ink: #030a12;
    position: relative;
    min-height: 100dvh;
    overflow-x: hidden;
    display: grid;
    place-items: center;
    padding: clamp(6rem, 10vh, 7.5rem) clamp(1rem, 4.8vw, 4.5rem) clamp(2.5rem, 6vh, 4.5rem);
    background: var(--auth-ink);
    color: #f8fbff;
    isolation: isolate;
}

.auth-page-v2::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 58% 46%, transparent 0 8rem, rgba(103, 216, 255, 0.055) 8.06rem, transparent 8.14rem),
        radial-gradient(circle at 58% 46%, transparent 0 15.5rem, rgba(103, 216, 255, 0.035) 15.56rem, transparent 15.64rem),
        linear-gradient(116deg, rgba(2, 8, 15, 0.28) 0 44%, transparent 52%);
    mask-image: linear-gradient(180deg, black 5%, rgba(0, 0, 0, 0.74) 72%, transparent 100%);
}

.auth-page-v2,
.auth-page-v2 *,
.auth-page-v2 *::before,
.auth-page-v2 *::after {
    box-sizing: border-box;
}

.auth-bg,
.auth-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.auth-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-bg,
.landing-hero-bg {
    object-position: 58% center;
    opacity: 0.85;
}

.auth-atmosphere,
.landing-hero-atmosphere {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5, 12, 23, 0.66) 0%, rgba(5, 12, 23, 0.5) 38%, rgba(5, 12, 23, 0.15) 70%, rgba(5, 12, 23, 0.41) 100%),
        linear-gradient(180deg, rgba(5, 12, 23, 0.43) 0%, transparent 48%, rgba(5, 12, 23, 0.64) 100%),
        linear-gradient(rgba(137, 207, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(137, 207, 255, 0.08) 1px, transparent 1px);
    background-size: auto, auto, 76px 76px, 76px 76px;
}

.auth-shell-v2 {
    width: min(100%, 76rem);
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(20rem, 1fr) minmax(23rem, 28.5rem);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
}

.auth-shell-register {
    grid-template-columns: minmax(20rem, 1fr) minmax(27rem, 32rem);
}

.auth-brand-v2 {
    position: absolute;
    left: max(clamp(1rem, 4.8vw, 4.5rem), calc((100vw - 76rem) / 2));
    top: clamp(1.1rem, 3.2vh, 2rem);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    color: #ffffff;
    text-decoration: none;
}

.auth-brand-v2:hover {
    color: #ffffff;
}

.auth-brand-v2 .brand-mark {
    width: 3.15rem;
    height: 3.15rem;
    border-color: rgba(103, 216, 255, 0.42);
    border-radius: 0.72rem;
    background: rgba(3, 12, 22, 0.84);
    box-shadow: 0 0 0 1px rgba(103, 216, 255, 0.06) inset, 0 18px 48px -26px rgba(103, 216, 255, 0.86);
}

.auth-brand-v2 strong {
    display: block;
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 1;
}

.auth-briefing {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 36rem;
    padding: clamp(0.7rem, 2vh, 1.25rem) 0 clamp(1.4rem, 3vh, 2.2rem);
}

.auth-briefing h1 {
    max-width: 9.5ch;
    margin: 0;
    color: #ffffff;
    font-size: clamp(3.25rem, 5.25vw, 5.15rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.92;
    text-wrap: balance;
    text-shadow: 0 22px 70px rgba(0, 0, 0, 0.72);
}

.auth-briefing .auth-login-title {
    max-width: 11ch;
    font-size: clamp(2.9rem, 4.35vw, 4.45rem);
}

.auth-briefing > p {
    max-width: 32rem;
    margin: clamp(1rem, 2.4vh, 1.45rem) 0 0;
    color: #c7d7e4;
    font-size: clamp(0.98rem, 1.15vw, 1.06rem);
    line-height: 1.65;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.86);
}

.auth-card-v2 {
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    justify-self: end;
    border: 1px solid rgba(103, 216, 255, 0.28);
    border-radius: 0.78rem;
    background:
        radial-gradient(26rem 14rem at 100% 0, rgba(43, 153, 202, 0.12), transparent 68%),
        linear-gradient(145deg, rgba(7, 20, 34, 0.94), rgba(3, 11, 20, 0.9)),
        rgba(3, 11, 20, 0.92);
    color: #f8fbff;
    padding: clamp(1.4rem, 2.6vw, 2rem);
    box-shadow:
        0 38px 90px -42px rgba(0, 0, 0, 0.96),
        0 0 0 1px rgba(103, 216, 255, 0.045) inset,
        0 1px rgba(255, 255, 255, 0.07) inset;
    backdrop-filter: blur(24px) saturate(125%);
}

.auth-card-v2::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(90deg, var(--auth-cyan), rgba(103, 216, 255, 0.12) 48%, transparent 88%),
        linear-gradient(rgba(103, 216, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 216, 255, 0.055) 1px, transparent 1px);
    background-repeat: no-repeat, repeat, repeat;
    background-size: 100% 2px, 32px 32px, 32px 32px;
    opacity: 0.82;
    mask-image: linear-gradient(180deg, black, rgba(0, 0, 0, 0.64) 48%, transparent 100%);
}

.auth-card-v2::after {
    position: absolute;
    top: -1px;
    right: -1px;
    z-index: 2;
    width: 3.6rem;
    height: 3.6rem;
    border-top: 2px solid rgba(255, 199, 71, 0.88);
    border-right: 2px solid rgba(255, 199, 71, 0.88);
    content: "";
    pointer-events: none;
    clip-path: polygon(34% 0, 100% 0, 100% 66%, 92% 66%, 92% 8%, 34% 8%);
    filter: drop-shadow(0 0 0.5rem rgba(255, 199, 71, 0.28));
}

.auth-card-v2 > * {
    position: relative;
    z-index: 1;
}

/* A backdrop-filter turns the card into the containing block of a fixed dialog.
   Disable it only while the nested hub picker is open, so the dialog can use the viewport. */
.auth-card-v2:has(.auth-hub-picker-backdrop) {
    z-index: 10000;
    overflow: visible;
    backdrop-filter: none;
}

.auth-card-header {
    position: relative;
    padding: 0 2.6rem 1.05rem 0;
    border-bottom: 1px solid rgba(103, 216, 255, 0.14);
}

.auth-card-header::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 4.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--auth-gold), rgba(255, 199, 71, 0));
    content: "";
}

.auth-card-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.65rem, 2.3vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.auth-card-header span {
    display: block;
    margin-top: 0.4rem;
    color: #a9bdcc;
    font-size: 0.88rem;
    line-height: 1.5;
}

.auth-form-v2 {
    display: grid;
    gap: 0.92rem;
    margin-top: 1.15rem;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.92rem;
}

.auth-form-v2 label {
    display: grid;
    gap: 0.44rem;
    color: #b9cedc;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.auth-card-v2 .auth-form-v2 input:not([type="checkbox"]),
.auth-card-v2 .auth-form-v2 select {
    width: 100%;
    min-height: 3.15rem;
    border: 1px solid rgba(133, 205, 235, 0.24) !important;
    border-radius: 0.5rem;
    background:
        linear-gradient(180deg, rgba(3, 12, 22, 0.96), rgba(7, 23, 37, 0.92)),
        #071522 !important;
    color: #ffffff !important;
    caret-color: var(--auth-cyan);
    outline: none;
    padding: 0.78rem 0.88rem;
    font-size: 0.95rem;
    box-shadow:
        0 1px rgba(255, 255, 255, 0.035) inset,
        0 -1px rgba(0, 0, 0, 0.42) inset;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-card-v2 .auth-form-v2 input:not([type="checkbox"]):hover,
.auth-card-v2 .auth-form-v2 select:hover {
    border-color: rgba(103, 216, 255, 0.4) !important;
}

.auth-card-v2 .auth-form-v2 input:not([type="checkbox"]):focus,
.auth-card-v2 .auth-form-v2 select:focus {
    border-color: rgba(103, 216, 255, 0.86) !important;
    background:
        linear-gradient(180deg, rgba(4, 17, 30, 0.98), rgba(7, 27, 43, 0.96)),
        #071522 !important;
    box-shadow:
        0 0 0 0.2rem rgba(103, 216, 255, 0.11),
        0 0 1.6rem -0.75rem rgba(103, 216, 255, 0.42) !important;
}

.auth-card-v2 .auth-form-v2 select option {
    background: #071522;
    color: #fff;
}

.auth-hub-note {
    color: #76a9be;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
}

.auth-hub-field {
    display: grid;
    gap: 0.44rem;
    min-width: 0;
}

.auth-field-label {
    color: #b9cedc;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.auth-field {
    display: grid;
    gap: 0.44rem;
    min-width: 0;
}

.auth-field > label {
    display: block;
}

.auth-password-input {
    position: relative;
}

.auth-card-v2 .auth-form-v2 .auth-password-input input {
    padding-right: 3.4rem;
}

.auth-password-input > button {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 0;
    border-radius: 0.42rem;
    background: transparent;
    color: #7eb4ca;
    cursor: pointer;
    transform: translateY(-50%);
}

.auth-password-input > button:hover,
.auth-password-input > button:focus-visible,
.auth-password-input > button[aria-pressed="true"] {
    background: rgba(103, 216, 255, 0.1);
    color: #8fe4ff;
    outline: none;
}

.auth-password-input > button:focus-visible {
    box-shadow: 0 0 0 2px rgba(103, 216, 255, 0.48);
}

.auth-password-input svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.auth-field-error {
    color: #ff9d97;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
}

.auth-hub-field > input[type="hidden"] {
    display: none;
}

.auth-hub-trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    min-height: 3.85rem;
    border: 1px solid rgba(133, 205, 235, 0.24);
    border-radius: 0.5rem;
    background:
        linear-gradient(180deg, rgba(3, 12, 22, 0.96), rgba(7, 23, 37, 0.92)),
        #071522;
    color: #ffffff;
    cursor: pointer;
    padding: 0.68rem 0.82rem;
    text-align: left;
    box-shadow:
        0 1px rgba(255, 255, 255, 0.035) inset,
        0 -1px rgba(0, 0, 0, 0.42) inset;
}

.auth-hub-trigger.has-selection {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-color: rgba(103, 216, 255, 0.46);
    background:
        linear-gradient(135deg, rgba(8, 37, 54, 0.98), rgba(5, 21, 34, 0.96)),
        #071522;
}

.auth-hub-trigger:hover,
.auth-hub-trigger:focus-visible {
    border-color: rgba(103, 216, 255, 0.86);
    box-shadow:
        0 0 0 0.2rem rgba(103, 216, 255, 0.11),
        0 0 1.6rem -0.75rem rgba(103, 216, 255, 0.42);
    outline: none;
}

.auth-hub-trigger:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.auth-hub-trigger-code {
    min-width: 4.9rem;
    color: #72dfff;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.77rem;
    font-weight: 850;
    letter-spacing: 0.05em;
}

.auth-hub-trigger-copy,
.auth-hub-trigger-placeholder {
    display: grid;
    min-width: 0;
    gap: 0.18rem;
}

.auth-hub-trigger-copy strong,
.auth-hub-trigger-placeholder strong {
    overflow: hidden;
    color: #f7fbff;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.25;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.auth-hub-trigger-copy small,
.auth-hub-trigger-placeholder small {
    overflow: hidden;
    color: #7fa4b8;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 550;
    letter-spacing: 0;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.auth-hub-trigger-action {
    border: 1px solid rgba(103, 216, 255, 0.24);
    border-radius: 999px;
    background: rgba(103, 216, 255, 0.08);
    color: #9ae8ff;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.34rem 0.5rem;
    text-transform: uppercase;
}

.auth-action-button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.72);
    opacity: 0.5;
    pointer-events: none;
}

.auth-hub-picker-backdrop {
    --auth-cyan: #67d8ff;
    --auth-gold: #ffc747;
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(1, 6, 12, 0.82);
    color: #f8fbff;
    backdrop-filter: blur(10px);
    touch-action: none;
}

.auth-hub-picker-dialog,
.auth-hub-picker-dialog *,
.auth-hub-picker-dialog *::before,
.auth-hub-picker-dialog *::after {
    box-sizing: border-box;
}

.auth-hub-picker-dialog {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    width: min(42rem, 100%);
    max-height: min(46rem, calc(100dvh - 2rem));
    min-height: min(36rem, calc(100dvh - 2rem));
    overflow: hidden;
    border: 1px solid rgba(103, 216, 255, 0.34);
    border-radius: 0.9rem;
    background:
        linear-gradient(rgba(103, 216, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 216, 255, 0.035) 1px, transparent 1px),
        radial-gradient(28rem 18rem at 100% 0, rgba(32, 143, 194, 0.16), transparent 68%),
        linear-gradient(160deg, #081c2c, #04101b 72%);
    background-size: 30px 30px, 30px 30px, auto, auto;
    box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, 0.74);
    outline: none;
    touch-action: pan-y;
}

.auth-hub-picker-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(103, 216, 255, 0.16);
    padding: 1rem 1.1rem 0.9rem;
}

.auth-hub-picker-header > div {
    min-width: 0;
}

.auth-hub-picker-header > div > span {
    color: #65d9fa;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-hub-picker-header h2 {
    margin: 0.25rem 0 0;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.auth-hub-picker-header p {
    margin: 0.38rem 0 0;
    color: #88a7ba;
    font-size: 0.8rem;
    line-height: 1.4;
}

.auth-hub-picker-header .auth-hub-picker-importance {
    color: #ffe29a;
    font-weight: 700;
}

.auth-hub-picker-close {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    place-items: center;
    border: 1px solid rgba(103, 216, 255, 0.24);
    border-radius: 0.62rem;
    background: rgba(2, 13, 23, 0.74);
    color: #bfefff;
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
}

.auth-hub-picker-close:hover,
.auth-hub-picker-close:focus-visible {
    border-color: var(--auth-cyan);
    background: rgba(103, 216, 255, 0.12);
    outline: none;
}

.auth-hub-picker-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(10rem, 0.7fr);
    gap: 0.7rem;
    border-bottom: 1px solid rgba(103, 216, 255, 0.1);
    padding: 0.85rem 1.1rem;
    background: rgba(2, 12, 21, 0.74);
}

.auth-hub-picker-filters label {
    display: grid;
    min-width: 0;
    gap: 0.34rem;
}

.auth-hub-picker-filters label > span {
    color: #91afc1;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-hub-picker-filters input,
.auth-hub-picker-filters select {
    width: 100%;
    min-width: 0;
    min-height: 2.9rem;
    border: 1px solid rgba(103, 216, 255, 0.24);
    border-radius: 0.52rem;
    background: #071724;
    color: #f7fbff;
    outline: none;
    padding: 0.66rem 0.75rem;
    font-size: 0.86rem;
}

.auth-hub-picker-filters input::placeholder {
    color: #66869a;
}

.auth-hub-picker-filters select option {
    background: #071724;
    color: #ffffff;
}

.auth-hub-picker-filters input:focus,
.auth-hub-picker-filters select:focus {
    border-color: var(--auth-cyan);
    box-shadow: 0 0 0 0.18rem rgba(103, 216, 255, 0.11);
}

.auth-hub-picker-results-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
}

.auth-hub-picker-results {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 0 1rem 0.8rem;
    scrollbar-color: rgba(103, 216, 255, 0.42) transparent;
}

.auth-hub-picker-results-summary {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.6rem;
    background: #061622;
    color: #7898ab;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0 1rem;
    text-transform: uppercase;
}

.auth-hub-picker-results-summary button,
.auth-hub-picker-empty button {
    border: 0;
    background: transparent;
    color: #82def8;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 750;
    padding: 0.35rem;
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.auth-hub-picker-option {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) 1.7rem;
    align-items: center;
    gap: 0.78rem;
    width: 100%;
    min-width: 0;
    min-height: 4.4rem;
    margin-top: 0.45rem;
    border: 1px solid rgba(103, 216, 255, 0.14);
    border-radius: 0.64rem;
    background: rgba(6, 26, 40, 0.82);
    color: #ffffff;
    cursor: pointer;
    padding: 0.66rem 0.72rem;
    text-align: left;
}

.auth-hub-picker-option:hover,
.auth-hub-picker-option:focus-visible {
    border-color: rgba(103, 216, 255, 0.58);
    background: rgba(9, 42, 61, 0.94);
    outline: none;
}

.auth-hub-picker-option.is-selected {
    border-color: var(--auth-cyan);
    background:
        linear-gradient(90deg, rgba(103, 216, 255, 0.15), rgba(8, 36, 53, 0.96) 46%),
        #082435;
    box-shadow: inset 0.22rem 0 var(--auth-cyan), 0 0 1.5rem -1rem rgba(103, 216, 255, 0.8);
}

.auth-hub-picker-code {
    color: #77e2ff;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-align: center;
}

.auth-hub-picker-option-copy {
    display: grid;
    min-width: 0;
    gap: 0.22rem;
}

.auth-hub-picker-option-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #f7fbff;
    font-size: 0.88rem;
    font-weight: 760;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.auth-hub-picker-option-copy small {
    overflow: hidden;
    color: #87a8ba;
    font-size: 0.73rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-hub-picker-check {
    display: grid;
    width: 1.55rem;
    height: 1.55rem;
    place-items: center;
    border: 1px solid rgba(103, 216, 255, 0.28);
    border-radius: 50%;
    color: #05131e;
    font-size: 0.82rem;
    font-weight: 900;
}

.auth-hub-picker-option.is-selected .auth-hub-picker-check {
    border-color: var(--auth-cyan);
    background: var(--auth-cyan);
    box-shadow: 0 0 1rem rgba(103, 216, 255, 0.3);
}

.auth-hub-picker-empty {
    display: grid;
    min-height: 12rem;
    place-content: center;
    justify-items: center;
    gap: 0.42rem;
    color: #819fb1;
    padding: 1.5rem;
    text-align: center;
}

.auth-hub-picker-empty strong {
    color: #f2f8fc;
    font-size: 1rem;
}

.auth-hub-picker-empty span {
    max-width: 24rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

.auth-hub-picker-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(7rem, 0.38fr) minmax(0, 1fr);
    gap: 0.7rem;
    border-top: 1px solid rgba(103, 216, 255, 0.16);
    background: rgba(2, 12, 21, 0.96);
    padding: 0.85rem 1.1rem calc(0.85rem + env(safe-area-inset-bottom));
}

.auth-hub-picker-actions button {
    min-height: 3.15rem;
    border-radius: 0.55rem;
    cursor: pointer;
    font-size: 0.83rem;
    font-weight: 800;
}

.auth-hub-picker-cancel {
    border: 1px solid rgba(103, 216, 255, 0.28);
    background: rgba(6, 28, 43, 0.78);
    color: #b8d8e7;
}

.auth-hub-picker-confirm {
    border: 1px solid rgba(255, 225, 137, 0.58);
    background: linear-gradient(135deg, #ffdc67, #ffc13a 58%, #dd8b0b);
    color: #111721;
    box-shadow: 0 1rem 2.4rem -1.5rem rgba(255, 193, 58, 0.9);
}

.auth-hub-picker-actions button:hover,
.auth-hub-picker-actions button:focus-visible {
    filter: brightness(1.08);
    outline: 2px solid var(--auth-cyan);
    outline-offset: 2px;
}

.auth-hub-picker-confirm:disabled {
    cursor: not-allowed;
    filter: grayscale(0.75);
    opacity: 0.48;
}

.auth-legal-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(1, 6, 12, 0.84);
    backdrop-filter: blur(10px);
}

.auth-legal-modal {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(62rem, 100%);
    height: min(50rem, calc(100dvh - 2rem));
    overflow: hidden;
    border: 1px solid rgba(103, 216, 255, 0.34);
    border-radius: 0.9rem;
    background: #eaf6fc;
    box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, 0.78);
    outline: none;
}

.auth-legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
    border-bottom: 1px solid rgba(103, 216, 255, 0.2);
    padding: 0.7rem 0.85rem 0.7rem 1.1rem;
    background: linear-gradient(135deg, #081e2f, #04101b);
    color: #fff;
}

.auth-legal-modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.auth-legal-modal-header button {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 2.65rem;
    place-items: center;
    border: 1px solid rgba(103, 216, 255, 0.32);
    border-radius: 50%;
    background: rgba(103, 216, 255, 0.06);
    color: #c7e9f7;
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
}

.auth-legal-modal-header button:hover,
.auth-legal-modal-header button:focus-visible {
    border-color: #67d8ff;
    background: rgba(103, 216, 255, 0.14);
    outline: none;
}

.auth-legal-modal iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #eaf6fc;
}

.auth-card-v2 .auth-form-v2 input:-webkit-autofill,
.auth-card-v2 .auth-form-v2 input:-webkit-autofill:hover,
.auth-card-v2 .auth-form-v2 input:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px #071522 inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

.auth-action-button {
    width: 100%;
    cursor: pointer;
}

.auth-error-v2 {
    margin-top: 1.05rem;
    border: 1px solid rgba(255, 121, 114, 0.28);
    border-radius: 0.5rem;
    background: rgba(93, 22, 28, 0.62);
    color: #ffd1cd;
    padding: 0.82rem 0.9rem;
    font-size: 0.86rem;
}

.auth-switch {
    margin: 1.05rem 0 0;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(103, 216, 255, 0.1);
    color: #9db1c1 !important;
    font-size: 0.84rem;
}

.auth-switch a {
    color: var(--auth-gold);
    font-weight: 800;
    text-decoration: none;
}

.auth-switch a:hover {
    color: #ffe28b;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.auth-page-v2 .auth-form-v2 .auth-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 0.65rem !important;
    color: #9eb2c1 !important;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 0.76rem !important;
    font-weight: 500 !important;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
}

.auth-page-v2 .auth-form-v2 .auth-consent input {
    display: grid;
    width: 1.05rem !important;
    height: 1.05rem;
    min-height: 1.05rem;
    margin-top: 0.06rem;
    flex: 0 0 1.05rem;
    appearance: none;
    place-content: center;
    border: 1px solid rgba(103, 216, 255, 0.42) !important;
    border-radius: 0.18rem;
    background: rgba(3, 13, 23, 0.88) !important;
    cursor: pointer;
}

.auth-page-v2 .auth-form-v2 .auth-consent input::before {
    width: 0.58rem;
    height: 0.58rem;
    background: #07111c;
    content: "";
    clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 18%, 84% 4%, 39% 67%);
    transform: scale(0);
    transition: transform 0.12s ease;
}

.auth-page-v2 .auth-form-v2 .auth-consent input:checked {
    border-color: var(--auth-gold) !important;
    background: var(--auth-gold) !important;
    box-shadow: 0 0 1rem rgba(255, 199, 71, 0.24);
}

.auth-page-v2 .auth-form-v2 .auth-consent input:checked::before {
    transform: scale(1);
}

.auth-page-v2 .auth-form-v2 .auth-consent input:focus-visible {
    outline: 2px solid var(--auth-cyan);
    outline-offset: 2px;
}

.auth-page-v2 .auth-form-v2 .auth-consent a {
    color: #c9eafa;
    font-weight: 700;
    text-decoration-color: rgba(103, 216, 255, 0.38);
    text-underline-offset: 0.15rem;
}

@media (max-width: 980px) {
    .auth-page-v2 {
        place-items: start center;
        padding: 7rem clamp(1rem, 5vw, 2.5rem) 2.5rem;
    }

    .auth-shell-v2,
    .auth-shell-register {
        width: min(100%, 44rem);
        grid-template-columns: 1fr;
        gap: clamp(2rem, 5vw, 2.8rem);
    }

    .auth-briefing {
        max-width: 38rem;
    }

    .auth-briefing h1 {
        max-width: 11ch;
        font-size: clamp(3.15rem, 8vw, 4.4rem);
    }

    .auth-briefing .auth-login-title {
        max-width: 12ch;
        font-size: clamp(2.9rem, 7.5vw, 4rem);
    }

    .auth-card-v2 {
        max-width: 44rem;
        justify-self: stretch;
    }
}

@media (max-width: 600px) {
    .auth-hub-picker-backdrop {
        align-items: end;
        padding: 0;
    }

    .auth-legal-modal-backdrop {
        align-items: end;
        padding: 0;
    }

    .auth-legal-modal {
        width: 100%;
        height: 100dvh;
        border-width: 0;
        border-radius: 0;
    }

    .auth-legal-modal-header {
        padding-top: calc(0.7rem + env(safe-area-inset-top));
    }

    .auth-hub-picker-dialog {
        width: 100%;
        height: 100dvh;
        min-height: 0;
        max-height: none;
        border-width: 0;
        border-radius: 0;
    }

    .auth-hub-picker-header {
        padding: calc(0.85rem + env(safe-area-inset-top)) 0.85rem 0.78rem;
    }

    .auth-hub-picker-header h2 {
        font-size: 1.22rem;
    }

    .auth-hub-picker-header p {
        max-width: 30rem;
        font-size: 0.74rem;
    }

    .auth-hub-picker-filters {
        grid-template-columns: minmax(0, 1.25fr) minmax(7.6rem, 0.75fr);
        gap: 0.55rem;
        padding: 0.72rem 0.78rem;
    }

    .auth-hub-picker-filters input,
    .auth-hub-picker-filters select {
        min-height: 2.8rem;
        padding-inline: 0.62rem;
        font-size: 0.8rem;
    }

    .auth-hub-picker-results {
        padding: 0 0.72rem 0.65rem;
    }

    .auth-hub-picker-results-summary {
        padding-inline: 0.72rem;
    }

    .auth-hub-picker-option {
        grid-template-columns: 3.7rem minmax(0, 1fr) 1.55rem;
        gap: 0.62rem;
        min-height: 4.1rem;
        margin-top: 0.38rem;
        padding: 0.58rem 0.62rem;
    }

    .auth-hub-picker-code {
        font-size: 1rem;
    }

    .auth-hub-picker-option-copy strong {
        font-size: 0.83rem;
    }

    .auth-hub-picker-option-copy small {
        font-size: 0.68rem;
    }

    .auth-hub-picker-actions {
        grid-template-columns: minmax(6.6rem, 0.4fr) minmax(0, 1fr);
        gap: 0.55rem;
        padding: 0.72rem 0.78rem calc(0.72rem + env(safe-area-inset-bottom));
    }

    .auth-hub-picker-actions button {
        min-height: 3rem;
        font-size: 0.78rem;
    }

    .auth-page-v2 {
        padding: 5.8rem 0.8rem 1.5rem;
    }

    .auth-brand-v2 {
        left: 0.8rem;
        top: 0.9rem;
        gap: 0.62rem;
    }

    .auth-brand-v2 .brand-mark {
        width: 2.8rem;
        height: 2.8rem;
    }

    .auth-brand-v2 strong {
        font-size: 0.96rem;
    }

    .auth-shell-v2,
    .auth-shell-register {
        gap: 1.5rem;
    }

    .auth-briefing {
        padding: 0.3rem 0 1.25rem;
    }

    .auth-briefing h1 {
        max-width: 11ch;
        font-size: clamp(2.55rem, 12vw, 3.15rem);
    }

    .auth-briefing .auth-login-title {
        max-width: 12ch;
        font-size: clamp(2.35rem, 10.5vw, 2.85rem);
    }

    .auth-briefing > p {
        margin-top: 0.9rem;
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-card-v2 {
        border-radius: 0.65rem;
        padding: 1.1rem;
    }

    .auth-card-v2::after {
        width: 3rem;
        height: 3rem;
    }

    .auth-card-header {
        padding: 0 2.25rem 0.85rem 0;
    }

    .auth-card-header h2 {
        font-size: 1.55rem;
    }

    .auth-card-header span {
        font-size: 0.82rem;
    }

    .auth-form-v2 {
        gap: 0.82rem;
        margin-top: 0.95rem;
    }

    .auth-card-v2 .auth-form-v2 input:not([type="checkbox"]) {
        min-height: 3.1rem;
    }

    .auth-hub-trigger {
        min-height: 3.7rem;
    }

    .auth-hub-trigger.has-selection {
        grid-template-columns: 3.8rem minmax(0, 1fr) auto;
        gap: 0.58rem;
    }

    .auth-hub-trigger-code {
        min-width: 0;
        font-size: 0.68rem;
    }

    .auth-hub-trigger-action {
        font-size: 0.59rem;
        padding-inline: 0.42rem;
    }

    .auth-switch {
        font-size: 0.8rem;
    }
}

@media (max-width: 380px) {
    .auth-hub-picker-filters {
        grid-template-columns: 1fr;
    }

    .auth-hub-picker-header p {
        display: none;
    }

    .auth-hub-picker-option {
        grid-template-columns: 3.3rem minmax(0, 1fr) 1.45rem;
        gap: 0.48rem;
        padding-inline: 0.5rem;
    }

    .auth-hub-picker-actions {
        grid-template-columns: 6rem minmax(0, 1fr);
    }

    .auth-page-v2 {
        padding-inline: 0.65rem;
    }

    .auth-briefing h1 {
        font-size: 2.4rem;
    }

    .auth-briefing .auth-login-title {
        font-size: 2.2rem;
    }

    .auth-card-v2 {
        padding: 0.95rem;
    }
}

@media (max-height: 760px) and (min-width: 981px) {
    .auth-page-v2 {
        padding-top: 5.25rem;
        padding-bottom: 1.25rem;
    }

    .auth-briefing {
        padding-top: 0.5rem;
        padding-bottom: 1.25rem;
    }

    .auth-briefing h1 {
        font-size: clamp(3rem, 4.4vw, 4.45rem);
    }

    .auth-briefing .auth-login-title {
        font-size: clamp(2.6rem, 3.8vw, 3.7rem);
    }

    .auth-briefing > p {
        margin-top: 0.8rem;
        line-height: 1.5;
    }

    .auth-card-v2 {
        padding: 1.15rem 1.35rem;
    }

    .auth-card-header {
        padding-bottom: 0.78rem;
    }

    .auth-form-v2 {
        gap: 0.68rem;
        margin-top: 0.82rem;
    }

    .auth-card-v2 .auth-form-v2 input:not([type="checkbox"]) {
        min-height: 2.7rem;
    }

    .auth-switch {
        margin-top: 0.75rem;
        padding-top: 0.72rem;
    }
}

.settings-time-zone-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.settings-toggle {
    position: relative;
    display: inline-flex;
    width: 2.85rem;
    height: 1.55rem;
    flex: 0 0 auto;
}

.settings-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.settings-toggle > span {
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid #94a3b8;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.settings-toggle > span::after {
    position: absolute;
    top: 0.17rem;
    left: 0.17rem;
    width: 1.08rem;
    height: 1.08rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
    content: "";
    transition: transform 0.18s ease;
}

.settings-toggle input:checked + span {
    border-color: #0e7490;
    background: #0e7490;
}

.settings-toggle input:checked + span::after {
    transform: translateX(1.28rem);
}

.settings-toggle input:focus-visible + span {
    outline: 3px solid rgba(6, 182, 212, 0.28);
    outline-offset: 2px;
}

.flight-plan-modal-backdrop {
    z-index: 2500;
    overscroll-behavior: contain;
}

.flight-plan-modal {
    display: flex;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #07101b !important;
    color: var(--ad-text);
    box-shadow: 0 34px 120px -44px rgba(0, 0, 0, 1);
}

.flight-plan-modal-header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background:
        linear-gradient(180deg, rgba(17, 29, 45, 0.98), rgba(10, 20, 33, 0.98)),
        #0a1421;
}

.flight-plan-kicker {
    margin: 0 0 0.35rem;
    color: #8fb4f7;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.flight-plan-modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
}

.flight-plan-modal-header p:last-child {
    margin: 0.35rem 0 0;
    color: #9fb0c5;
    font-size: 0.95rem;
}

.flight-plan-close {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.6rem;
    background: #142031;
    color: #dce6f2;
    font-weight: 800;
}

.flight-plan-modal-body {
    display: grid;
    min-height: 0;
    overflow-y: auto;
    gap: 1.05rem;
    padding: 1.1rem 1.4rem 1.25rem;
    background: #07101b;
}

.flight-plan-alert {
    margin: 1rem 1.4rem 0;
    border: 1px solid rgba(239, 107, 98, 0.28);
    border-radius: 0.65rem;
    background: rgba(239, 107, 98, 0.11);
    color: #ffb3ad;
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
}

.flight-plan-summary {
    display: grid;
    order: 4;
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.flight-plan-section-base {
    order: 1;
}

.flight-plan-section-prices {
    order: 2;
}

.flight-plan-section-operations {
    order: 3;
}

.flight-plan-summary div,
.flight-plan-section {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.85rem;
}

.flight-plan-summary div {
    min-width: 0;
    padding: 0.9rem 1rem;
    background:
        linear-gradient(180deg, rgba(28, 43, 63, 0.98), rgba(19, 32, 49, 0.98)),
        #142033;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.flight-plan-summary span,
.flight-plan-section-title span,
.operation-board th {
    color: #7f91a8;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.flight-plan-summary strong {
    display: block;
    overflow: hidden;
    margin-top: 0.35rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flight-plan-summary small {
    display: block;
    margin-top: 0.2rem;
    color: #8294aa;
    font-size: 0.72rem;
}

.flight-plan-section {
    position: relative;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(18, 31, 48, 0.98), rgba(12, 23, 37, 0.98)),
        #0d1827;
    box-shadow: 0 16px 36px -34px rgba(0, 0, 0, 1);
}

.flight-plan-section::before {
    position: absolute;
    inset: 1rem auto 1rem 0;
    width: 3px;
    border-radius: 999px;
    background: #38bdf8;
    content: "";
}

.flight-plan-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.flight-plan-section-title h3 {
    margin: 0.12rem 0 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.flight-plan-time-reference {
    display: block;
    margin-top: 0.22rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}

.flight-plan-form-grid,
.flight-plan-price-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr);
    gap: 0.8rem;
}

.flight-plan-price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flight-plan-form-grid label,
.flight-plan-price-grid label {
    display: grid;
    gap: 0.45rem;
    color: #cbd6e4;
    font-size: 0.9rem;
    font-weight: 700;
}

.flight-plan-form-grid input,
.flight-plan-form-grid select,
.flight-plan-price-grid input,
.operation-board input,
.operation-board select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    border-radius: 0.65rem;
    background: #0a1422 !important;
    color: #e6edf5 !important;
    font-size: 0.95rem;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035) inset;
}

.flight-plan-form-grid input,
.flight-plan-form-grid select,
.flight-plan-price-grid input {
    min-height: 2.75rem;
    padding: 0.65rem 0.8rem;
}

.flight-plan-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.9rem;
}

.flight-plan-days label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.65rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.65rem;
    background: #0a1422;
    color: #cbd6e4;
    padding: 0.55rem 0.7rem;
    font-weight: 700;
}

.flight-plan-days input {
    width: 1rem;
    height: 1rem;
    accent-color: #38bdf8;
}

.operation-board {
    overflow-x: auto;
}

.operation-board table {
    width: 100%;
    min-width: 58rem;
    border-collapse: separate;
    border-spacing: 0 0.55rem;
}

.operation-board th {
    padding: 0 0.7rem 0.15rem;
    text-align: left;
}

.operation-board td {
    padding: 0.7rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: #15243a;
    color: #cbd6e4;
    vertical-align: middle;
}

.operation-board tr td:first-child {
    border-left: 1px solid rgba(148, 163, 184, 0.12);
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

.operation-board tr td:last-child {
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.operation-board input,
.operation-board select {
    min-height: 2.55rem;
    padding: 0.55rem 0.7rem;
}

.operation-board strong {
    display: block;
    color: #ffffff;
    font-weight: 800;
}

.operation-board small {
    display: block;
    margin-top: 0.2rem;
    color: #8294aa;
    font-size: 0.75rem;
}

.flight-plan-rotation-summary {
    display: inline-flex !important;
    width: fit-content;
    max-width: 100%;
    min-height: 1.55rem;
    align-items: center;
    margin-top: 0.45rem !important;
    border: 1px solid rgba(14, 116, 144, 0.14);
    border-radius: 999px;
    background: rgba(224, 244, 250, 0.72);
    color: #42677e !important;
    padding: 0.22rem 0.55rem;
    font-size: 0.68rem !important;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .flight-plan-modal .operation-board {
        overflow-x: visible;
    }

    .flight-plan-modal .operation-board .sim-form-table,
    .flight-plan-modal .operation-board .sim-form-table tbody {
        display: block;
        width: 100%;
        min-width: 0;
        border-spacing: 0;
    }

    .flight-plan-modal .operation-board .sim-form-table thead {
        display: none;
    }

    .flight-plan-modal .operation-board .sim-form-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 0.85rem;
        padding: 1rem;
        border: 1px solid rgba(82, 121, 150, 0.18);
        border-radius: 0.8rem;
        background: rgba(255, 255, 255, 0.78);
    }

    .flight-plan-modal .operation-board .sim-form-table tbody td {
        display: flex;
        min-width: 0;
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.35rem;
        border: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .flight-plan-modal .operation-board .sim-form-table tbody td::before {
        display: block;
        min-height: 0.85rem;
        color: #60798e;
        content: attr(data-label);
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.09em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .flight-plan-modal .operation-board .sim-form-table input,
    .flight-plan-modal .operation-board .sim-form-table select {
        width: 100%;
        min-width: 0;
        min-height: 2.75rem;
    }

    .flight-plan-modal .operation-board .sim-form-table td > strong,
    .flight-plan-modal .operation-board .sim-form-table td > span:not(.flight-plan-rotation-summary) {
        display: flex;
        min-height: 2.75rem;
        align-items: center;
    }

    .flight-plan-modal .operation-board td[data-aircraft-picker] {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1101px) {
    .flight-plan-modal .operation-board .sim-form-table tbody tr {
        grid-template-columns:
            minmax(8.5rem, 0.85fr)
            minmax(12rem, 1.35fr)
            minmax(18rem, 1.85fr)
            minmax(10rem, 1fr)
            minmax(12rem, 1.1fr);
    }

    .flight-plan-modal .operation-board td[data-aircraft-picker] {
        grid-column: auto;
    }
}

.flight-plan-outline-button,
.flight-plan-danger-button,
.flight-plan-secondary-button,
.flight-plan-primary-button {
    min-height: 2.4rem;
    border-radius: 0.65rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 800;
}

.flight-plan-outline-button {
    border: 1px solid rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.08);
    color: #8bd9ff;
}

.flight-plan-danger-button {
    border: 1px solid rgba(239, 107, 98, 0.32);
    background: rgba(239, 107, 98, 0.08);
    color: #ff9b94;
}

.flight-plan-modal-footer {
    display: flex;
    order: 5;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

.flight-plan-secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #142031;
    color: #dce6f2;
}

.flight-plan-primary-button {
    border: 1px solid transparent;
    background: #0b75b7;
    color: #ffffff;
}

@media (max-width: 900px) {
    .flight-plan-summary,
    .flight-plan-form-grid,
    .flight-plan-price-grid,
    .flight-plan-days {
        grid-template-columns: 1fr;
    }

    .flight-plan-modal-header,
    .flight-plan-modal-body {
        padding-inline: 1rem;
    }
}

/* Flight planning modal: light aviation glass treatment inspired by modern simulator menus. */
.flight-plan-modal {
    border: 1px solid rgba(96, 132, 160, 0.34);
    background:
        linear-gradient(180deg, rgba(238, 247, 252, 0.98), rgba(209, 228, 240, 0.98)),
        #d7e9f4 !important;
    color: #102033;
    box-shadow: 0 34px 120px -46px rgba(4, 21, 35, 0.82);
}

.flight-plan-modal-header {
    border-bottom: 1px solid rgba(78, 117, 148, 0.26);
    background:
        linear-gradient(180deg, rgba(247, 252, 255, 0.98), rgba(223, 239, 248, 0.98)),
        #e7f4fb;
}

.flight-plan-kicker {
    color: #0b75b7;
}

.flight-plan-modal-header h2 {
    color: #102033;
}

.flight-plan-modal-header p:last-child {
    color: #53687c;
}

.flight-plan-close {
    border-color: rgba(80, 117, 146, 0.28);
    background: rgba(255, 255, 255, 0.82);
    color: #17304a;
}

.flight-plan-modal-body {
    background:
        linear-gradient(180deg, rgba(214, 234, 246, 0.78), rgba(189, 215, 231, 0.9)),
        #c8deed;
}

.flight-plan-summary div {
    border-color: rgba(82, 121, 150, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 246, 252, 0.96)),
        #f4fbff;
    box-shadow: 0 18px 42px -34px rgba(16, 49, 75, 0.7), 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.flight-plan-section {
    border-color: rgba(82, 121, 150, 0.24);
    background:
        linear-gradient(180deg, rgba(249, 253, 255, 0.96), rgba(232, 243, 250, 0.96)),
        #eef8fd;
    box-shadow: 0 18px 48px -36px rgba(16, 49, 75, 0.62);
}

.flight-plan-section::before {
    display: none;
}

.flight-plan-summary span,
.flight-plan-section-title span,
.operation-board th {
    color: #5b7288;
}

.flight-plan-summary strong,
.flight-plan-section-title h3,
.operation-board strong {
    color: #102033;
}

.flight-plan-form-grid label,
.flight-plan-price-grid label,
.flight-plan-days label {
    color: #22384f;
}

.flight-plan-form-grid input,
.flight-plan-form-grid select,
.flight-plan-price-grid input,
.operation-board input,
.operation-board select {
    border-color: rgba(70, 105, 132, 0.28) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: #102033 !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset, 0 12px 28px -24px rgba(16, 49, 75, 0.7);
}

.flight-plan-days label {
    border-color: rgba(70, 105, 132, 0.22);
    background: rgba(255, 255, 255, 0.7);
}

.operation-board td {
    border-top-color: rgba(82, 121, 150, 0.18);
    border-bottom-color: rgba(82, 121, 150, 0.18);
    background: rgba(255, 255, 255, 0.82);
    color: #2b4057;
}

.operation-board tr td:first-child {
    border-left-color: rgba(82, 121, 150, 0.18);
}

.operation-board tr td:last-child {
    border-right-color: rgba(82, 121, 150, 0.18);
}

.operation-board small {
    color: #61778c;
}

.flight-plan-outline-button {
    border-color: rgba(0, 126, 190, 0.45);
    background: rgba(224, 244, 255, 0.92);
    color: #075f94;
}

.flight-plan-danger-button {
    border-color: rgba(202, 83, 75, 0.35);
    background: rgba(255, 241, 239, 0.92);
    color: #b5322a;
}

.flight-plan-secondary-button {
    border-color: rgba(70, 105, 132, 0.28);
    background: rgba(255, 255, 255, 0.82);
    color: #20374f;
}

.flight-plan-primary-button {
    background: #0b75b7;
    color: #ffffff;
    box-shadow: 0 18px 34px -25px rgba(7, 95, 148, 0.86);
}

input:not([type="checkbox"]),
select,
textarea {
    background-color: var(--ad-surface-solid-2) !important;
    border-color: var(--ad-border) !important;
    color: var(--ad-text) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--ad-muted-2) !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ad-accent) !important;
    box-shadow: 0 0 0 0.2rem var(--ad-accent-soft) !important;
}

/* Flight planning modal: final MSFS-inspired light cockpit pass. */
.flight-plan-modal.modal-surface-solid {
    border: 1px solid rgba(103, 143, 174, 0.42);
    background:
        radial-gradient(900px 320px at 76% -8%, rgba(255, 255, 255, 0.92), transparent 62%),
        linear-gradient(180deg, #f4fbff 0%, #d7eaf6 46%, #bed7e8 100%) !important;
    color: #102033;
    box-shadow: 0 38px 120px -48px rgba(8, 31, 49, 0.9);
}

.flight-plan-modal .flight-plan-modal-header {
    border-bottom: 1px solid rgba(77, 116, 146, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(233, 245, 252, 0.96)),
        #eef8fd;
}

.flight-plan-modal .flight-plan-modal-body {
    background:
        linear-gradient(180deg, rgba(214, 233, 245, 0.92), rgba(186, 210, 226, 0.94)),
        #c7deed;
}

.flight-plan-modal .flight-plan-summary div,
.flight-plan-modal .flight-plan-section {
    border: 1px solid rgba(82, 121, 150, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 248, 252, 0.92)),
        #f7fbfe;
    box-shadow: 0 18px 48px -38px rgba(17, 52, 78, 0.7), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.flight-plan-modal .flight-plan-section::before {
    display: none;
}

.flight-plan-modal .flight-plan-kicker,
.flight-plan-modal .flight-plan-section-title span {
    color: #0a76b7;
}

.flight-plan-modal .flight-plan-modal-header h2,
.flight-plan-modal .flight-plan-summary strong,
.flight-plan-modal .flight-plan-section-title h3,
.flight-plan-modal .operation-board strong {
    color: #102033;
}

.flight-plan-modal .flight-plan-modal-header p:last-child,
.flight-plan-modal .flight-plan-summary span,
.flight-plan-modal .flight-plan-summary small,
.flight-plan-modal .operation-board th,
.flight-plan-modal .operation-board small {
    color: #5c7288;
}

.flight-plan-modal .flight-plan-form-grid label,
.flight-plan-modal .flight-plan-price-grid label,
.flight-plan-modal .flight-plan-days label {
    color: #22384f;
}

.flight-plan-modal .flight-plan-form-grid input,
.flight-plan-modal .flight-plan-form-grid select,
.flight-plan-modal .flight-plan-price-grid input,
.flight-plan-modal .operation-board input,
.flight-plan-modal .operation-board select {
    border-color: rgba(70, 105, 132, 0.28) !important;
    background-color: rgba(255, 255, 255, 0.94) !important;
    color: #102033 !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 12px 28px -24px rgba(16, 49, 75, 0.75);
}

.flight-plan-modal .flight-plan-form-grid input:focus,
.flight-plan-modal .flight-plan-form-grid select:focus,
.flight-plan-modal .flight-plan-price-grid input:focus,
.flight-plan-modal .operation-board input:focus,
.flight-plan-modal .operation-board select:focus {
    border-color: #1688c7 !important;
    box-shadow: 0 0 0 0.18rem rgba(22, 136, 199, 0.2), 0 12px 28px -24px rgba(16, 49, 75, 0.75) !important;
}

.flight-plan-modal .flight-plan-days label {
    border-color: rgba(70, 105, 132, 0.2);
    background: rgba(255, 255, 255, 0.66);
}

.flight-plan-modal .flight-plan-days input {
    accent-color: #1688c7;
}

.flight-plan-modal .operation-board td {
    border-top-color: rgba(82, 121, 150, 0.16);
    border-bottom-color: rgba(82, 121, 150, 0.16);
    background: rgba(255, 255, 255, 0.78);
    color: #2d4258;
}

.flight-plan-modal .operation-board tr td:first-child {
    border-left-color: rgba(82, 121, 150, 0.16);
}

.flight-plan-modal .operation-board tr td:last-child {
    border-right-color: rgba(82, 121, 150, 0.16);
}

.flight-plan-modal .flight-plan-close,
.flight-plan-modal .flight-plan-secondary-button {
    border-color: rgba(70, 105, 132, 0.25);
    background: rgba(255, 255, 255, 0.8);
    color: #20374f;
}

.flight-plan-modal .flight-plan-outline-button {
    border-color: rgba(0, 126, 190, 0.42);
    background: rgba(229, 246, 255, 0.92);
    color: #075f94;
}

.flight-plan-modal .flight-plan-danger-button {
    border-color: rgba(202, 83, 75, 0.34);
    background: rgba(255, 241, 239, 0.94);
    color: #b5322a;
}

.flight-plan-modal .flight-plan-primary-button {
    background: linear-gradient(180deg, #1688c7, #075f94);
    color: #ffffff;
    box-shadow: 0 18px 34px -25px rgba(7, 95, 148, 0.9);
}

/* Landing page */
.landing-shell {
    min-height: 100vh;
    overflow: hidden;
    background: #070b12;
    color: var(--ad-text);
}

.landing-hero {
    position: relative;
    min-height: 100vh;
    padding: 1.5rem clamp(1rem, 3vw, 3rem) 1.25rem;
    isolation: isolate;
}

.landing-backdrop,
.landing-backdrop::before,
.landing-backdrop::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
}

.landing-backdrop {
    background:
        linear-gradient(125deg, rgba(7, 11, 18, 0.98) 0%, rgba(10, 16, 25, 0.97) 52%, rgba(30, 27, 20, 0.9) 100%),
        #070b12;
}

.landing-backdrop::before {
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, black 0%, transparent 86%);
}

.landing-backdrop::after {
    background:
        radial-gradient(560px 320px at 72% 34%, rgba(34, 211, 238, 0.16), transparent 68%),
        radial-gradient(460px 300px at 90% 76%, rgba(246, 166, 35, 0.13), transparent 72%);
}

.landing-header,
.hero-grid,
.landing-feature-strip {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-lockup,
.landing-actions,
.hero-cta,
.ops-topbar,
.ops-panel,
.hero-metrics {
    display: flex;
    align-items: center;
}

.brand-lockup {
    min-width: 0;
    gap: 0.8rem;
    color: #ffffff;
    text-decoration: none;
}

.brand-lockup:hover {
    color: #ffffff;
}

.brand-mark {
    display: grid;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 0.65rem;
    background: rgba(6, 18, 37, 0.88);
    box-shadow: 0 18px 48px -30px rgba(34, 211, 238, 0.8);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-copy {
    min-width: 0;
}

.brand-name,
.brand-tagline,
.eyebrow,
.hero-metrics dt,
.panel-label,
.ops-topbar,
.ops-table {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-name {
    display: block;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1;
}

.brand-tagline {
    display: block;
    margin-top: 0.35rem;
    color: rgba(125, 211, 252, 0.72);
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.landing-actions {
    flex: 0 0 auto;
    gap: 0.55rem;
}

.landing-link,
.landing-button {
    min-height: 2.65rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    text-decoration: none;
}

.landing-link {
    display: inline-flex;
    padding-inline: 0.9rem;
    color: #d8e3ef;
    font-size: 0.92rem;
    font-weight: 700;
}

.landing-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
}

.landing-button {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.75rem 1.05rem;
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
}

.landing-button-primary {
    background: linear-gradient(180deg, #1688c7, #075f94);
    color: #ffffff;
    box-shadow: 0 18px 42px -28px rgba(7, 95, 148, 0.95);
}

.landing-button-primary:hover {
    color: #ffffff;
    background: linear-gradient(180deg, #229ddd, #0b75b7);
}

.landing-button-secondary {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
}

.landing-button-secondary:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.075);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(22rem, 0.98fr);
    gap: clamp(2rem, 5vw, 5.25rem);
    align-items: center;
    min-height: calc(100vh - 13.5rem);
    padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}

.hero-copy {
    max-width: 43rem;
}

.eyebrow {
    margin: 0;
    color: #f8cf61;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.hero-copy h1 {
    max-width: 12ch;
    margin: 1.15rem 0 0;
    color: #ffffff;
    font-size: clamp(3rem, 6vw, 5.65rem);
    font-weight: 800;
    line-height: 0.98;
}

.hero-lede {
    max-width: 37rem;
    margin: 1.35rem 0 0;
    color: #b8c6d6;
    font-size: clamp(1.02rem, 1.45vw, 1.22rem);
    line-height: 1.65;
}

.hero-cta {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero-metrics {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2.35rem 0 0;
}

.hero-metrics div {
    min-width: 8.5rem;
    padding: 0.88rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    background: rgba(14, 23, 35, 0.7);
}

.hero-metrics dt {
    color: #7f91a8;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.66rem;
    font-weight: 800;
}

.hero-metrics dd {
    margin: 0.35rem 0 0;
    color: #ffffff;
    font-size: 1.22rem;
    font-weight: 800;
}

.operations-stage {
    position: relative;
    min-width: 0;
}

.landing-hero-image {
    position: relative;
    overflow: hidden;
    min-height: clamp(21rem, 42vw, 34rem);
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.15rem;
    background: rgba(9, 16, 27, 0.9);
    box-shadow: 0 42px 110px -58px rgba(0, 0, 0, 1);
}

.landing-hero-image::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(90deg, rgba(7, 11, 18, 0.26), transparent 46%),
        linear-gradient(180deg, transparent 58%, rgba(7, 11, 18, 0.24));
}

.landing-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.operations-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(18, 29, 43, 0.92), rgba(10, 16, 25, 0.92)),
        rgba(9, 16, 27, 0.9);
    box-shadow: 0 42px 110px -58px rgba(0, 0, 0, 1);
}

.operations-card::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.12), transparent 40%, rgba(248, 189, 58, 0.08));
}

.ops-topbar {
    position: relative;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #91a2b7;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.68rem;
    font-weight: 800;
}

.live-pill {
    border: 1px solid rgba(52, 211, 153, 0.24);
    border-radius: 999px;
    padding: 0.3rem 0.55rem;
    background: rgba(52, 211, 153, 0.1);
    color: #74f0b2;
}

.ops-map {
    position: relative;
    display: grid;
    min-height: clamp(17rem, 34vw, 24rem);
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(34, 211, 238, 0.12), transparent 68%);
    background-size: 44px 44px, 44px 44px, auto;
}

.ops-map img {
    width: min(62%, 20rem);
    opacity: 0.42;
    filter: saturate(1.08);
}

.route-line {
    position: absolute;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #8ed8ff, #1688c7, transparent);
    opacity: 0.72;
    transform-origin: center;
}

.route-line-one {
    top: 39%;
    left: 17%;
    width: 68%;
    transform: rotate(-10deg);
}

.route-line-two {
    top: 57%;
    left: 24%;
    width: 56%;
    transform: rotate(18deg);
}

.airport-dot {
    position: absolute;
    display: grid;
    min-width: 3.1rem;
    min-height: 2rem;
    place-items: center;
    border: 1px solid rgba(103, 232, 249, 0.28);
    border-radius: 999px;
    background: rgba(7, 11, 18, 0.82);
    color: #dff9ff;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 0 0 5px rgba(103, 232, 249, 0.06);
}

.airport-dot-lis {
    left: 13%;
    top: 49%;
}

.airport-dot-jfk {
    right: 13%;
    top: 30%;
}

.airport-dot-gru {
    right: 21%;
    bottom: 20%;
}

.ops-panel {
    position: relative;
    justify-content: space-between;
    gap: 1rem;
    margin: -2.4rem 1rem 0;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    background: rgba(16, 26, 39, 0.9);
    backdrop-filter: blur(18px);
}

.panel-label {
    display: block;
    color: #8192a8;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.66rem;
    font-weight: 800;
}

.ops-panel strong {
    display: block;
    margin-top: 0.25rem;
    color: #ffffff;
    font-size: 1.35rem;
}

.panel-score {
    color: #74f0b2;
    font-size: 1.5rem;
    font-weight: 800;
}

.ops-table {
    position: relative;
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.ops-table div {
    display: grid;
    grid-template-columns: 0.8fr 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.035);
    color: #9babc0;
}

.ops-table strong {
    color: #74f0b2;
}

.landing-feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: -0.35rem;
}

.landing-feature-strip article {
    min-height: 8.4rem;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
    background: rgba(13, 21, 32, 0.74);
}

.landing-feature-strip span {
    color: #f8cf61;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 800;
}

.landing-feature-strip h2 {
    margin: 0.45rem 0 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.landing-feature-strip p {
    margin: 0.45rem 0 0;
    color: #98a9bc;
    font-size: 0.92rem;
    line-height: 1.45;
}

@media (max-width: 920px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-block: 3.5rem 1.25rem;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-copy h1 {
        max-width: 13ch;
    }

    .operations-card {
        max-width: 40rem;
        margin-inline: auto;
    }

    .landing-feature-strip {
        grid-template-columns: 1fr;
        padding-bottom: 1rem;
    }
}

@media (max-width: 560px) {
    .landing-hero {
        padding-top: 1rem;
    }

    .landing-header {
        align-items: flex-start;
    }

    .landing-actions {
        gap: 0.35rem;
    }

    .landing-link,
    .landing-button {
        min-height: 2.35rem;
        padding-inline: 0.72rem;
        font-size: 0.82rem;
    }

    .hero-grid {
        padding-top: 3rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.55rem, 15vw, 3.4rem);
    }

    .hero-metrics {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-metrics div {
        min-width: 0;
    }

    .ops-map {
        min-height: 15rem;
    }

    .ops-table div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

/* Landing page: align with the light aviation simulator theme. */
.landing-shell {
    background:
        radial-gradient(980px 420px at 82% 12%, rgba(255, 255, 255, 0.92), transparent 64%),
        linear-gradient(180deg, #edf7fc 0%, #d7e8f4 52%, #c3dbea 100%);
    color: var(--ad-text);
}

.landing-backdrop {
    background:
        linear-gradient(180deg, rgba(237, 247, 252, 0.96), rgba(198, 220, 234, 0.94)),
        #d7e8f4;
}

.landing-backdrop::before {
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(82, 121, 150, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(82, 121, 150, 0.18) 1px, transparent 1px);
}

.landing-backdrop::after {
    background:
        radial-gradient(560px 320px at 72% 34%, rgba(255, 255, 255, 0.58), transparent 68%),
        radial-gradient(460px 300px at 90% 76%, rgba(11, 117, 183, 0.14), transparent 72%);
}

.brand-lockup,
.brand-lockup:hover,
.brand-name,
.hero-copy h1,
.hero-metrics dd,
.landing-feature-strip h2,
.ops-panel strong {
    color: var(--ad-text);
}

.brand-mark {
    border-color: rgba(11, 117, 183, 0.22);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 48px -34px rgba(16, 49, 75, 0.62);
}

.brand-tagline,
.hero-lede,
.landing-feature-strip p,
.panel-label,
.ops-topbar,
.ops-table div,
.hero-metrics dt {
    color: var(--ad-muted);
}

.eyebrow,
.landing-feature-strip span {
    color: #0b75b7;
}

.landing-link {
    color: #2f455c;
}

.landing-link:hover {
    color: #075f94;
    background: rgba(11, 117, 183, 0.08);
}

.landing-button-primary {
    background: linear-gradient(180deg, #1688c7, #075f94);
    color: #ffffff;
}

.landing-button-primary:hover {
    color: #ffffff;
    background: linear-gradient(180deg, #229ddd, #0b75b7);
}

.landing-button-secondary,
.hero-metrics div,
.landing-feature-strip article,
.operations-card,
.ops-panel,
.ops-table div {
    border-color: var(--ad-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 248, 252, 0.88)),
        #f7fbfe;
    color: var(--ad-text);
    box-shadow: 0 18px 48px -38px rgba(16, 49, 75, 0.66);
}

.landing-button-secondary:hover {
    color: #075f94;
    background: rgba(229, 246, 255, 0.94);
}

.operations-card::before {
    background: linear-gradient(135deg, rgba(11, 117, 183, 0.11), transparent 42%, rgba(240, 165, 22, 0.08));
}

.ops-topbar {
    border-bottom-color: var(--ad-border);
}

.live-pill {
    border-color: rgba(23, 139, 97, 0.24);
    background: rgba(23, 139, 97, 0.1);
    color: #0f7b58;
}

.ops-map {
    border-bottom-color: var(--ad-border);
    background:
        linear-gradient(rgba(82, 121, 150, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(82, 121, 150, 0.12) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.7), transparent 68%);
    background-size: 44px 44px, 44px 44px, auto;
}

.ops-map img {
    opacity: 0.2;
}

.airport-dot {
    border-color: rgba(11, 117, 183, 0.28);
    background: rgba(255, 255, 255, 0.9);
    color: #075f94;
    box-shadow: 0 0 0 5px rgba(11, 117, 183, 0.07);
}

.panel-score,
.ops-table strong {
    color: #0f7b58;
}

/* Landing page: cinematic game campaign shell. */
.landing-shell-v2 {
    min-height: 100vh;
    background: #07101b;
    color: #f8fbff;
}

.landing-hero-v2 {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 1.35rem clamp(1rem, 3vw, 3rem) 1rem;
    isolation: isolate;
}

.landing-hero-bg,
.landing-hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.landing-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-hero-atmosphere {
    z-index: -1;
}

.landing-header-v2,
.landing-command-grid,
.landing-systems {
    width: min(100%, 1240px);
    margin-inline: auto;
}

.landing-header-v2 {
    position: relative;
    z-index: 2;
    padding: 0.35rem;
    border: 1px solid rgba(201, 236, 255, 0.16);
    border-radius: 0.95rem;
    background: rgba(5, 14, 27, 0.42);
    box-shadow: 0 18px 68px -48px rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
}

.brand-lockup-v2 .brand-mark {
    border-color: rgba(116, 213, 255, 0.32);
    background: rgba(5, 14, 27, 0.76);
    box-shadow: 0 18px 44px -30px rgba(125, 211, 252, 0.94);
}

.brand-lockup-v2 .brand-name,
.brand-lockup-v2:hover .brand-name {
    color: #ffffff;
}

.brand-lockup-v2 .brand-tagline {
    color: #8ed8ff;
}

.landing-link-v2 {
    color: #dcecff;
}

.landing-link-v2:hover {
    color: #ffffff;
    background: rgba(142, 216, 255, 0.12);
}

.landing-button-v2 {
    border-radius: 0.7rem;
}

.landing-button-v2.landing-button-primary {
    border-color: rgba(255, 224, 116, 0.34);
    background: linear-gradient(180deg, #ffd45a, #e59f18);
    color: #111927;
    box-shadow: 0 18px 54px -28px rgba(255, 204, 73, 0.88);
}

.landing-button-v2.landing-button-primary:hover {
    background: linear-gradient(180deg, #ffe27b, #f1b02a);
    color: #111927;
}

.landing-button-v2.landing-button-secondary {
    border-color: rgba(201, 236, 255, 0.18);
    background: rgba(7, 19, 35, 0.58);
    color: #f8fbff;
}

.landing-button-v2.landing-button-secondary:hover {
    background: rgba(22, 136, 199, 0.28);
    color: #ffffff;
}

.landing-button-xl {
    min-height: 3.25rem;
    padding-inline: 1.35rem;
}

.landing-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    min-height: calc(100vh - 13rem);
    padding-block: 5rem 2rem;
}

.hero-copy-v2 {
    max-width: 48rem;
}

.eyebrow-v2 {
    width: fit-content;
    margin: 0;
    padding: 0.48rem 0.72rem;
    border: 1px solid rgba(142, 216, 255, 0.24);
    border-radius: 999px;
    background: rgba(5, 14, 27, 0.48);
    color: #8ed8ff;
    box-shadow: 0 12px 44px -32px rgba(142, 216, 255, 0.92);
}

.hero-copy-v2 h1 {
    max-width: 9.5ch;
    margin: 0;
    color: #ffffff;
    font-size: 5.4rem;
    font-weight: 900;
    line-height: 0.94;
    text-shadow: 0 22px 70px rgba(0, 0, 0, 0.58);
}

.hero-lede-v2 {
    max-width: 38rem;
    margin-top: 1.35rem;
    color: #d3e1ef;
    font-size: 1.18rem;
    line-height: 1.65;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.7);
}

.hero-cta-v2 {
    margin-top: 2rem;
}

.landing-systems {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    padding-bottom: 0.5rem;
}

.landing-systems article {
    min-height: 9.5rem;
    border: 1px solid rgba(201, 236, 255, 0.14);
    border-radius: 0.9rem;
    background:
        linear-gradient(180deg, rgba(8, 22, 39, 0.78), rgba(6, 16, 29, 0.62)),
        rgba(5, 14, 27, 0.62);
    padding: 1rem;
    box-shadow: 0 24px 60px -44px rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(14px);
}

.landing-systems span {
    color: #ffd45a;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.landing-systems h2 {
    margin: 0.55rem 0 0;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 900;
}

.landing-systems p {
    margin: 0.55rem 0 0;
    color: #b9c9d9;
    font-size: 0.92rem;
    line-height: 1.48;
}

@media (max-width: 1050px) {
    .landing-command-grid {
        grid-template-columns: 1fr;
        align-items: start;
        padding-top: 4rem;
    }

    .landing-systems {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .landing-hero-v2 {
        padding: 1rem 0.85rem;
    }

    .landing-header-v2 {
        align-items: flex-start;
    }

    .landing-command-grid {
        min-height: auto;
        padding-block: 3.5rem 1.35rem;
    }

    .hero-copy-v2 h1 {
        max-width: 10ch;
        font-size: 3.6rem;
    }

    .hero-lede-v2 {
        font-size: 1.02rem;
    }

    .landing-systems {
        grid-template-columns: 1fr;
    }

    /* Preserve the complete airport panorama on portrait screens instead of
       scaling the landscape artwork to the full page height and cropping it. */
    .auth-page-v2,
    .landing-hero-v2 {
        background-color: #030a12;
    }

    .auth-bg,
    .landing-hero-bg {
        inset: 0 0 auto;
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
        object-fit: cover;
        object-position: 68% center;
        opacity: 0.85;
    }

    .auth-atmosphere,
    .landing-hero-atmosphere {
        background:
            linear-gradient(
                180deg,
                rgba(3, 10, 18, 0.04) 0,
                rgba(3, 10, 18, 0.1) 13rem,
                rgba(3, 10, 18, 0.64) 20rem,
                #030a12 28rem,
                #030a12 100%
            ),
            linear-gradient(
                90deg,
                rgba(3, 10, 18, 0.55) 0,
                rgba(3, 10, 18, 0.25) 48%,
                rgba(3, 10, 18, 0.06) 100%
            ),
            linear-gradient(rgba(137, 207, 255, 0.055) 1px, transparent 1px),
            linear-gradient(90deg, rgba(137, 207, 255, 0.055) 1px, transparent 1px);
        background-size: auto, auto, 52px 52px, 52px 52px;
    }
}

@media (max-width: 520px) {
    .landing-hero-bg {
        top: 7rem;
        aspect-ratio: 1 / 1;
        object-position: right center;
    }

    .landing-header-v2 {
        position: absolute;
        top: 1rem;
        right: 0.85rem;
        left: 0.85rem;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: auto;
        margin: 0;
        gap: 0.55rem;
        padding: 0.5rem;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .brand-lockup-v2 {
        width: 100%;
    }

    .landing-actions {
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
        width: 100%;
        gap: 0.35rem;
    }

    .landing-link-v2,
    .landing-button-v2 {
        width: 100%;
        min-width: 0;
        min-height: 2.35rem;
        padding-inline: 0.68rem;
        font-size: 0.8rem;
        text-align: center;
    }

    .landing-command-grid {
        padding-block: calc(60svh - 1rem) 1rem;
    }

    .hero-copy-v2 h1 {
        font-size: 2.35rem;
        line-height: 0.98;
    }

    .hero-lede-v2 {
        margin-top: 0.9rem;
        font-size: 0.94rem;
        line-height: 1.5;
    }

    .hero-cta-v2 {
        display: grid;
        align-items: stretch;
    }
}

/* Flight operations map */
.flight-map-shell {
    position: relative;
    height: clamp(34rem, 70vh, 52rem);
    min-height: 34rem;
    overflow: hidden;
    background: #b8d7e4;
}

.flight-map-canvas {
    width: 100%;
    height: 100%;
}

.flight-map-shell.game-map-home {
    height: 100%;
    min-height: 0;
}

.game-map-actions {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 720;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.game-map-dashboard-button,
.game-map-route-button {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 0.6rem;
    background: #0b75b7;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.65rem 1rem;
    box-shadow: 0 14px 34px rgba(18, 54, 82, 0.3);
}

.game-map-route-button {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border-color: rgba(9, 83, 112, 0.75);
    background: linear-gradient(135deg, #102f45, #0b536f);
}

.game-map-route-button span {
    display: grid;
    width: 1.15rem;
    height: 1.15rem;
    place-items: center;
    border-radius: 999px;
    background: #25c7e9;
    color: #07364b;
    font-size: 1rem;
    line-height: 1;
}

.game-map-dashboard-button:hover,
.game-map-route-button:hover {
    background: #075f94;
}

.game-map-route-button.is-active {
    border-color: #52def6;
    background: #093b52;
    box-shadow: 0 0 0 2px rgba(55, 211, 239, 0.24), 0 14px 34px rgba(18, 54, 82, 0.3);
}

.game-map-dashboard-button:disabled,
.game-map-route-button:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.game-map-notification {
    position: absolute;
    left: 50%;
    top: 1rem;
    z-index: 730;
    display: flex;
    max-width: min(30rem, calc(100% - 35rem));
    align-items: center;
    gap: 0.65rem;
    border: 1px solid rgba(110, 231, 183, 0.72);
    border-radius: 0.65rem;
    background: rgba(6, 78, 59, 0.94);
    color: #ecfdf5;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.65rem 0.75rem;
    box-shadow: 0 18px 42px rgba(6, 78, 59, 0.3);
    transform: translateX(-50%);
    backdrop-filter: blur(10px);
}

.game-map-notification > span {
    display: grid;
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 999px;
    background: #34d399;
    color: #064e3b;
}

.game-map-notification button {
    margin-left: auto;
    color: #d1fae5;
    font-size: 1.1rem;
    line-height: 1;
}

.map-route-builder {
    position: absolute;
    right: 1rem;
    top: 4.8rem;
    z-index: 710;
    display: flex;
    width: min(26rem, calc(100% - 2rem));
    max-height: calc(100% - 5.8rem);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(91, 205, 231, 0.36);
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(7, 31, 47, 0.97), rgba(7, 24, 38, 0.96)),
        radial-gradient(circle at 80% 0, rgba(34, 211, 238, 0.2), transparent 45%);
    color: #e6f8fd;
    box-shadow: 0 28px 80px rgba(2, 20, 32, 0.5);
    backdrop-filter: blur(16px);
}

.map-route-builder::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(94, 203, 228, 0.035) 1px, transparent 1px);
    background-size: 100% 5px;
    content: "";
}

.map-route-builder.is-reviewing-route {
    z-index: 1100;
}

.map-route-builder-header,
.map-route-builder-progress,
.map-route-builder-stage,
.map-route-builder-alert,
.map-route-builder-loading,
.map-route-builder-empty {
    position: relative;
    z-index: 1;
}

.map-route-builder-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(97, 195, 219, 0.18);
    padding: 1rem 1rem 0.85rem;
}

.map-route-builder-header p,
.map-airport-inspector-copy small,
.map-route-airport small,
.map-route-summary span {
    margin: 0;
    color: #67d7ef;
    font: 700 0.64rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.map-route-builder-header h2 {
    margin: 0.18rem 0 0;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 750;
}

.map-route-builder-header > button {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(126, 205, 224, 0.22);
    border-radius: 0.5rem;
    background: rgba(6, 24, 37, 0.74);
    color: #bcebf6;
    font-size: 1.2rem;
    line-height: 1;
}

.map-route-builder-header > button:hover {
    border-color: rgba(251, 113, 133, 0.55);
    color: #fda4af;
}

.map-route-builder-progress {
    display: grid;
    grid-template-columns: 1.5rem 1fr 1.5rem 1fr 1.5rem;
    align-items: center;
    padding: 0.75rem 1rem 0;
}

.map-route-builder-progress span {
    display: grid;
    width: 1.5rem;
    height: 1.5rem;
    place-items: center;
    border: 1px solid rgba(116, 188, 207, 0.28);
    border-radius: 999px;
    background: #0b2638;
    color: #6e8fa0;
    font: 700 0.64rem "IBM Plex Mono", Consolas, monospace;
}

.map-route-builder-progress i {
    height: 1px;
    background: rgba(116, 188, 207, 0.22);
}

.map-route-builder-progress span.is-complete {
    border-color: #3fd4ee;
    background: #0a536a;
    color: #e8fbff;
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.23);
}

.map-route-builder-progress i.is-complete {
    background: #2fc8e6;
}

.map-route-builder-stage {
    min-height: 0;
    overflow-y: auto;
    padding: 0.85rem 1rem 1rem;
}

.map-route-builder-alert {
    margin: 0.75rem 1rem 0;
    border: 1px solid rgba(251, 113, 133, 0.42);
    border-radius: 0.55rem;
    background: rgba(136, 19, 55, 0.28);
    color: #fecdd3;
    font-size: 0.75rem;
    padding: 0.65rem 0.75rem;
}

.map-route-builder-loading,
.map-route-builder-empty {
    display: flex;
    min-height: 10rem;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    color: #9ab9c7;
    font-size: 0.8rem;
    padding: 1.25rem;
    text-align: center;
}

.map-route-builder-loading span {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(103, 215, 239, 0.22);
    border-top-color: #67d7ef;
    border-radius: 999px;
    animation: route-builder-spin 0.8s linear infinite;
}

@keyframes route-builder-spin {
    to { transform: rotate(360deg); }
}

.map-route-builder-empty.is-hint {
    min-height: 8rem;
    flex-direction: column;
    border: 1px dashed rgba(104, 188, 208, 0.28);
    border-radius: 0.75rem;
    background: rgba(11, 45, 64, 0.35);
}

.map-route-builder-empty.is-hint span {
    color: #50d4ee;
    font-size: 1.8rem;
}

.map-airport-inspector {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    border: 0;
    border-radius: 0.8rem;
    background: linear-gradient(145deg, rgba(12, 64, 86, 0.74), rgba(7, 37, 53, 0.86));
    padding: 0.85rem;
}

.map-airport-inspector-copy {
    min-width: 0;
}

.map-airport-inspector-details {
    margin: 0;
}

.map-airport-inspector-details > summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    list-style: none;
    text-decoration: none;
}

.map-airport-inspector-details > summary::-webkit-details-marker {
    display: none;
}

.map-airport-inspector-details > summary span:first-child {
    color: #67d7ef;
    font: 700 0.64rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.12em;
}

.map-airport-inspector-details > summary span:last-child {
    color: #91bdca;
    text-decoration: underline;
    text-decoration-color: rgba(145, 189, 202, 0.4);
    text-underline-offset: 0.16rem;
}

.map-airport-inspector-details[open] > summary {
    margin-bottom: 0.45rem;
}

.map-airport-inspector-copy h3 {
    margin: 0.22rem 0 0;
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.map-airport-inspector-copy p {
    margin: 0.18rem 0 0;
    color: #9fc0ce;
    font-size: 0.74rem;
}

.map-airport-inspector dl {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: 0;
}

.map-airport-inspector dl div,
.map-route-airport dl div {
    border-radius: 0.5rem;
    background: rgba(5, 25, 38, 0.56);
    padding: 0.48rem 0.55rem;
}

.map-airport-inspector dt,
.map-route-airport dt {
    color: #6f98a9;
    font: 600 0.58rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.map-airport-inspector dd,
.map-route-airport dd {
    margin: 0.16rem 0 0;
    color: #e1f7fb;
    font-size: 0.7rem;
    font-weight: 700;
}

.map-route-builder-primary {
    grid-column: 1 / -1;
    width: 100%;
    border: 1px solid #58def3;
    border-radius: 0.58rem;
    background: linear-gradient(135deg, #0786aa, #0babc9);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.68rem 0.9rem;
    box-shadow: 0 10px 24px rgba(6, 151, 183, 0.22);
}

.map-route-builder-primary:hover {
    background: linear-gradient(135deg, #0795bd, #19bdd8);
}

.map-airport-inspector-set {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 4.5rem;
    align-self: center;
    padding-inline: 0.8rem;
}

.map-route-builder-primary:disabled,
.map-route-builder-actions button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.map-route-airports {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0.45rem;
}

.map-route-airport,
.map-route-airport-placeholder {
    min-width: 0;
    border: 1px solid rgba(90, 190, 215, 0.24);
    border-radius: 0.7rem;
    background: rgba(7, 36, 51, 0.72);
    padding: 0.7rem;
}

.map-route-airport {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    align-items: center;
    column-gap: 0.7rem;
}

.map-route-airport.is-origin,
.map-route-airport.is-destination {
    border-color: rgba(76, 213, 239, 0.42);
    border-left: 3px solid #42d3eb;
    background: linear-gradient(135deg, rgba(8, 58, 77, 0.82), rgba(6, 38, 54, 0.82));
}

.map-route-airport-code {
    grid-column: 1;
    grid-row: 1;
    color: #64dff2;
    font: 850 0.92rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.08em;
    text-align: center;
}

.map-route-airport-copy {
    grid-column: 2;
    min-width: 0;
}

.map-route-airport-copy > strong {
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.map-route-airport-copy > span {
    display: block;
    margin-top: 0.18rem;
    overflow: hidden;
    color: #d7f1f6;
    font-size: 0.68rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-route-airport dl {
    display: grid;
    gap: 0.35rem;
    margin: 0.6rem 0 0;
}

.map-route-airport-placeholder {
    display: grid;
    min-height: 3.7rem;
    place-items: center;
    border-style: dashed;
    color: #6f98a9;
    font-size: 0.7rem;
    text-align: center;
}

.map-route-airports-link {
    justify-self: center;
    color: #59d8ef;
    font: 800 1rem "IBM Plex Mono", Consolas, monospace;
}

.map-route-builder-more {
    grid-column: 1 / -1;
    margin-top: 0.55rem;
}

.map-route-builder-more > summary {
    cursor: pointer;
    color: #81b7c7;
    font: 700 0.62rem "IBM Plex Mono", Consolas, monospace;
    text-decoration: underline;
    text-decoration-color: rgba(129, 183, 199, 0.42);
    text-underline-offset: 0.18rem;
}

.map-route-builder-more[open] > summary {
    margin-bottom: 0.5rem;
    color: #c8f3fb;
}

.map-route-essential-distance {
    margin-top: 0.65rem;
    border: 1px solid rgba(89, 215, 239, 0.3);
    border-radius: 0.55rem;
    background: rgba(5, 47, 65, 0.72);
    padding: 0.52rem 0.65rem;
}

.map-route-step-two-toolbar {
    display: contents;
}

.map-route-essential-distance > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
}

.map-route-essential-distance > summary::-webkit-details-marker {
    display: none;
}

.map-route-essential-distance > summary > span {
    color: #76b6c6;
    font: 700 0.6rem "IBM Plex Mono", Consolas, monospace;
}

.map-route-essential-distance > summary > span:first-child {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.map-route-essential-distance > summary > span:last-child {
    color: #79dff0;
    text-decoration: underline;
    text-decoration-color: rgba(121, 223, 240, 0.38);
    text-underline-offset: 0.16rem;
}

.map-route-essential-distance strong {
    color: #79e6f7;
    font: 850 0.86rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0;
}

.map-route-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.map-route-summary div {
    border: 1px solid rgba(89, 182, 205, 0.18);
    border-radius: 0.6rem;
    background: rgba(4, 26, 40, 0.62);
    padding: 0.6rem;
}

.map-route-summary strong {
    display: block;
    margin-top: 0.22rem;
    color: #f7fdff;
    font-size: 0.78rem;
}

.map-route-summary .is-infrastructure {
    border-color: rgba(251, 191, 36, 0.32);
    background: rgba(77, 48, 8, 0.38);
}

.map-route-summary .is-infrastructure strong {
    color: #fde68a;
}

.map-route-summary .is-network.is-connected {
    border-color: rgba(52, 211, 153, 0.34);
    background: rgba(6, 78, 59, 0.34);
}

.map-route-summary .is-network.is-connected strong {
    color: #86efac;
}

.map-route-summary .is-network.is-disconnected {
    border-color: rgba(251, 113, 133, 0.34);
    background: rgba(136, 19, 55, 0.28);
}

.map-route-summary .is-network.is-disconnected strong {
    color: #fecdd3;
}

.map-route-builder-actions {
    display: grid;
    grid-template-columns: minmax(5rem, 0.42fr) minmax(0, 1fr);
    gap: 0.6rem;
    margin-top: 0.65rem;
}

.map-route-builder-actions .map-route-builder-primary {
    grid-column: auto;
}

.map-route-builder-back {
    min-height: 2.5rem;
    border: 1px solid rgba(98, 205, 228, 0.35);
    border-radius: 0.58rem;
    background: rgba(8, 42, 58, 0.78);
    color: #b7dce5;
    font-size: 0.76rem;
    font-weight: 800;
}

.map-route-builder-back:hover {
    border-color: rgba(98, 205, 228, 0.62);
    color: #fff;
}

.map-route-purchase-warning {
    border: 1px solid rgba(251, 191, 36, 0.38);
    border-radius: 0.7rem;
    background: linear-gradient(135deg, rgba(92, 59, 9, 0.48), rgba(58, 39, 9, 0.34));
    padding: 0.72rem;
}

.map-route-purchase-warning strong {
    color: #fde68a;
    font-size: 0.8rem;
}

.map-route-purchase-warning p {
    margin: 0.28rem 0 0;
    color: #d7c99f;
    font-size: 0.7rem;
    line-height: 1.42;
}

.map-route-purchase-warning.is-danger {
    border-color: rgba(251, 113, 133, 0.5);
    background: rgba(104, 17, 43, 0.42);
}

.map-route-purchase-warning.is-danger strong {
    color: #fecdd3;
}

.map-route-review-airports {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.map-route-review-airports > span {
    justify-self: center;
    color: #55d8ee;
}

.map-route-review-airport {
    border-left: 3px solid #42d3eb;
    border-radius: 0.65rem;
    background: rgba(6, 43, 59, 0.78);
    padding: 0.65rem;
}

.map-route-review-airport header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.map-route-review-airport header small,
.map-route-review-airport dt,
.map-route-final-data dt {
    color: #79b8c8;
    font: 700 0.55rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.map-route-review-airport header strong {
    color: #67dff2;
    font: 800 0.64rem "IBM Plex Mono", Consolas, monospace;
}

.map-route-review-airport h3 {
    margin: 0.25rem 0 0;
    color: #fff;
    font-size: 0.78rem;
}

.map-route-review-airport > p {
    margin: 0.12rem 0 0;
    color: #91b7c4;
    font-size: 0.64rem;
}

.map-route-review-airport dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin: 0.5rem 0 0;
}

.map-route-review-airport dd,
.map-route-final-data dd {
    margin: 0.15rem 0 0;
    color: #e9f9fc;
    font-size: 0.68rem;
    font-weight: 750;
}

.map-route-final-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin: 0.65rem 0 0;
}

.map-route-final-data > div {
    border: 1px solid rgba(82, 185, 207, 0.18);
    border-radius: 0.55rem;
    background: rgba(4, 27, 40, 0.58);
    padding: 0.55rem;
}

.map-route-final-data > .is-route-highlight {
    border-color: rgba(78, 220, 241, 0.58);
    background: linear-gradient(135deg, rgba(8, 86, 108, 0.72), rgba(6, 48, 66, 0.82));
    box-shadow: inset 0 0 0 1px rgba(111, 231, 247, 0.08), 0 0.35rem 1rem rgba(0, 18, 30, 0.2);
}

.map-route-final-data > .is-route-highlight dd {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 850;
}

.map-route-final-data > .is-total-route {
    border-color: rgba(251, 191, 36, 0.58);
    background: linear-gradient(135deg, rgba(94, 61, 8, 0.74), rgba(58, 40, 9, 0.82));
}

.map-route-final-data > .is-total-route dt,
.map-route-final-data > .is-total-route dd {
    color: #fde68a;
}

.map-route-final-data > .is-wide {
    grid-column: 1 / -1;
}

.map-route-final-data > .is-connected {
    border-color: rgba(63, 211, 201, 0.38);
}

.map-route-final-data > .is-disconnected {
    border-color: rgba(251, 113, 133, 0.38);
}

.ad-route-builder-tooltip .maplibregl-popup-content,
.ad-route-builder-tooltip-body {
    display: grid;
    gap: 0.08rem;
}

.ad-route-builder-tooltip .maplibregl-popup-content {
    border: 1px solid rgba(71, 195, 222, 0.55) !important;
    border-radius: 0.35rem;
    background: rgba(5, 32, 47, 0.94) !important;
    color: #dff8fd !important;
    padding: 0.55rem 0.65rem;
    box-shadow: 0 12px 30px rgba(3, 24, 38, 0.32) !important;
}

.ad-route-builder-tooltip .maplibregl-popup-tip {
    display: none;
}

.ad-route-builder-tooltip strong {
    color: #66def3;
    font: 800 0.72rem "IBM Plex Mono", Consolas, monospace;
}

.ad-route-builder-tooltip-codes {
    display: flex;
    gap: 0.65rem;
}

.ad-route-builder-tooltip-codes strong {
    display: grid;
    gap: 0.05rem;
}

.ad-route-builder-tooltip-codes small {
    color: #789eac;
    font: 600 0.48rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.08em;
}

.ad-route-builder-tooltip-facility {
    width: fit-content;
    margin: 0.18rem 0 0.12rem;
    padding: 0.12rem 0.35rem;
    border: 1px solid rgba(196, 181, 253, 0.45);
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.18);
    color: #ddd6fe;
    font: 800 0.5rem "IBM Plex Mono", Consolas, monospace;
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ad-route-builder-tooltip-name {
    max-width: 15rem;
    color: #effcff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
}

.ad-route-builder-tooltip span {
    color: #a9cbd6;
    font-size: 0.68rem;
}

.flight-map-shell.is-route-building .ad-airport-pin,
.flight-map-shell.is-route-building .ad-plane-marker {
    opacity: 0.28;
}

.dashboard-modal-backdrop {
    z-index: 2000;
}

.flight-map-shell .maplibregl-map {
    background: #bad8e5;
    color: var(--ad-text);
    font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.flight-map-shell .maplibregl-ctrl-group {
    border: 0;
    box-shadow: 0 14px 34px rgba(28, 63, 90, 0.18);
}

.flight-map-shell .maplibregl-ctrl-group button {
    border: 1px solid rgba(115, 144, 166, 0.24);
    color: #143552;
    font-weight: 700;
}

.flight-map-shell .maplibregl-ctrl-attrib {
    margin: 0 0.35rem 0.35rem 0;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.68);
    color: #52677a;
    font-size: 9px;
    line-height: 1.25;
    padding: 0.16rem 0.3rem;
    backdrop-filter: blur(5px);
}

.flight-map-shell .maplibregl-ctrl-attrib a {
    color: #315d7c;
    text-decoration: none;
}

.flight-map-shell .maplibregl-ctrl-attrib.maplibregl-compact-show {
    padding: 0.16rem 1.5rem 0.16rem 0.3rem;
}

.ad-airport-tooltip .maplibregl-popup-content {
    border-radius: 0.35rem;
    color: #15334e;
    font: 800 0.624rem "IBM Plex Mono", Consolas, monospace;
    padding: 0.25rem 0.45rem;
    box-shadow: 0 6.4px 14.4px rgba(28, 63, 90, 0.16);
}

.ad-airport-pin {
    display: grid;
    justify-items: center;
    pointer-events: auto;
}

.ad-airport-pin span {
    position: relative;
    width: 1.6rem;
    height: 1.6rem;
    border: 2.4px solid #ffffff;
    border-radius: 999px 999px 999px 0;
    background: linear-gradient(135deg, #0d8bc7, #56c5ed);
    box-shadow: 0 10.4px 19.2px rgba(13, 70, 110, 0.28);
    transform: rotate(-45deg);
}

.ad-airport-pin span::after {
    position: absolute;
    inset: 0.36rem;
    border-radius: 999px;
    background: #ffffff;
    content: "";
}

.ad-airport-pin strong {
    margin-top: -0.08rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #15334e;
    font: 800 0.624rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0;
    line-height: 1;
    padding: 0.144rem 0.288rem;
    text-shadow: none;
    box-shadow: 0 6.4px 14.4px rgba(28, 63, 90, 0.16);
}

.ad-plane-marker {
    position: absolute;
    display: block;
    pointer-events: auto;
}

.ad-plane-shape,
.ad-plane-shadow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--aircraft-size);
    height: var(--aircraft-size);
    background: #1688c7;
    mask: var(--aircraft-icon) center / contain no-repeat;
    -webkit-mask: var(--aircraft-icon) center / contain no-repeat;
    transform: translate(-50%, -50%) rotate(var(--aircraft-rotation));
    transform-origin: center;
}

.ad-plane-shadow {
    width: calc(var(--aircraft-size) + 3.2px);
    height: calc(var(--aircraft-size) + 3.2px);
    background: #17212d;
    filter: drop-shadow(0 3.2px 3.2px rgba(20, 34, 48, 0.42));
    opacity: 0.96;
}

.ad-plane-marker.is-idle .ad-plane-shape {
    background: #ff625d;
}

.ad-plane-marker.is-idle .ad-plane-shadow {
    background: #26303c;
}

.ad-plane-marker:hover .ad-plane-shape {
    background: #67d9f4;
}

.ad-plane-marker:hover .ad-plane-shadow {
    filter: drop-shadow(0 5.6px 5.6px rgba(20, 34, 48, 0.52));
}

.ad-map-detail-panel {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 500;
    display: grid;
    width: min(19rem, calc(100% - 2rem));
    gap: 0.45rem;
    border: 1px solid rgba(82, 121, 150, 0.22);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.93);
    color: #17304a;
    padding: 1rem;
    box-shadow: 0 24px 64px -34px rgba(16, 49, 75, 0.86);
    backdrop-filter: blur(12px);
}

.flight-map-shell.game-map-home .ad-map-detail-panel {
    top: 5rem;
}

.ad-map-detail-panel[hidden] {
    display: none;
}

.ad-map-detail-panel p {
    margin: 0;
    color: #0b75b7;
    font: 800 0.68rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ad-map-detail-panel strong {
    color: #102033;
    font-size: 1.05rem;
}

.ad-map-detail-panel > span {
    color: #3d5873;
    font-weight: 650;
}

.ad-map-detail-close {
    position: absolute;
    right: 0.65rem;
    top: 0.6rem;
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border: 1px solid rgba(82, 121, 150, 0.22);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.7);
    color: #17304a;
    font-weight: 800;
}

.ad-map-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ad-map-detail-meta small {
    border-radius: 999px;
    background: #e6f3fb;
    color: #345572;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.22rem 0.48rem;
}

.ad-map-detail-progress {
    height: 0.48rem;
    overflow: hidden;
    border-radius: 999px;
    background: #d8e8f2;
}

.ad-map-detail-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0d8bc7, #53c7ef);
}

.aircraft-market-card {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(56, 189, 218, 0.3);
    border-radius: 0.85rem;
    background: #071c2a;
    color: #e6f8fd;
    box-shadow: 0 18px 42px -28px rgba(3, 24, 38, 0.9);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.aircraft-market-card::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 4.2rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, #49d8f2);
    content: "";
}

.aircraft-market-card:hover {
    border-color: rgba(83, 222, 245, 0.58);
    box-shadow: 0 22px 48px -27px rgba(4, 89, 116, 0.72);
    transform: translateY(-2px);
}

.aircraft-market-card-photo {
    position: relative;
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    background: #d9e6ee;
    border-bottom: 1px solid rgba(72, 205, 231, 0.28);
}

.aircraft-market-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 220ms ease;
}

.aircraft-market-card:hover .aircraft-market-card-photo img {
    transform: scale(1.025);
}

.aircraft-market-card-photo figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 1.3rem 0.65rem 0.45rem;
    background: linear-gradient(transparent, rgba(4, 21, 34, 0.88));
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.65rem;
    line-height: 1.25;
}

.aircraft-market-card-photo figcaption a {
    color: #fff;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.55);
    text-underline-offset: 0.15em;
}

.aircraft-market-card-photo figcaption a:hover {
    text-decoration-color: #fff;
}

.aircraft-market-card-body {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.75rem;
    background:
        linear-gradient(rgba(87, 203, 229, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(87, 203, 229, 0.025) 1px, transparent 1px),
        radial-gradient(circle at 100% 0, rgba(32, 177, 207, 0.13), transparent 45%),
        #071c2a;
    background-size: 100% 5px, 18px 100%, auto, auto;
}

.aircraft-market-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.65rem;
}

.aircraft-market-card-identity {
    min-width: 0;
}

.aircraft-market-card-identity > p,
.aircraft-market-card-price small,
.aircraft-market-card-specs dt {
    margin: 0;
    color: #58d6ef;
    font: 700 0.56rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.aircraft-market-card-identity > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.15rem;
}

.aircraft-market-card-identity h2 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #f7fdff;
    font-size: 0.98rem;
    font-weight: 780;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aircraft-market-card-identity span {
    flex: 0 0 auto;
    border: 1px solid rgba(91, 211, 235, 0.3);
    border-radius: 999px;
    background: rgba(8, 62, 82, 0.68);
    color: #a8eaf6;
    font: 700 0.56rem "IBM Plex Mono", Consolas, monospace;
    padding: 0.16rem 0.36rem;
}

.aircraft-market-card-price {
    border-left: 1px solid rgba(86, 196, 221, 0.2);
    padding-left: 0.65rem;
    text-align: right;
}

.aircraft-market-card-price small {
    display: block;
    color: #789eac;
    font-size: 0.5rem;
}

.aircraft-market-card-price strong {
    display: block;
    margin-top: 0.12rem;
    color: #73e7fa;
    font: 800 0.8rem "IBM Plex Mono", Consolas, monospace;
    white-space: nowrap;
}

.aircraft-market-card-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(78, 178, 202, 0.18);
    border-radius: 0.55rem;
    background: rgba(75, 179, 204, 0.17);
}

.aircraft-market-card-specs > div {
    min-width: 0;
    background: rgba(4, 27, 41, 0.91);
    padding: 0.42rem 0.5rem;
}

.aircraft-market-card-specs dt {
    color: #6d96a6;
    font-size: 0.49rem;
    letter-spacing: 0.08em;
}

.aircraft-market-card-specs dd {
    margin: 0.12rem 0 0;
    overflow: hidden;
    color: #e7f8fc;
    font: 700 0.7rem "IBM Plex Mono", Consolas, monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aircraft-market-card-specs dd span {
    color: #7ca6b5;
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
}

.aircraft-market-card-action {
    display: flex;
    width: 100%;
    min-height: 2.15rem;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border: 1px solid rgba(74, 219, 241, 0.75);
    border-radius: 0.48rem;
    background: linear-gradient(135deg, #087e9e, #0aa7c4);
    color: #fff;
    font: 800 0.66rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.07em;
    padding: 0.48rem 0.65rem;
    text-transform: uppercase;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 8px 18px rgba(2, 115, 145, 0.2);
}

.aircraft-market-card-action > span:last-child {
    color: #bff5ff;
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 160ms ease;
}

.aircraft-market-card-action:hover {
    background: linear-gradient(135deg, #0790b4, #16bad5);
}

.aircraft-market-card-action:hover > span:last-child {
    transform: translateX(0.18rem);
}

.aircraft-market-card-action:focus-visible {
    outline: 2px solid #a5f3fc;
    outline-offset: 2px;
}

.aircraft-market-card-action:disabled {
    cursor: not-allowed;
    border-color: rgba(101, 126, 138, 0.28);
    background: #243b48;
    color: #78909c;
    box-shadow: none;
}

.aircraft-market-card-action:disabled > span:last-child {
    color: #647d89;
}

.aircraft-cabin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: grid;
    place-items: center;
    overflow-y: auto;
    background: rgba(1, 12, 20, 0.82);
    padding: 1.25rem;
    backdrop-filter: blur(7px);
}

.aircraft-cabin-modal {
    position: relative;
    display: flex;
    width: min(50rem, 100%);
    max-height: calc(100vh - 2.5rem);
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(72, 211, 237, 0.42);
    border-radius: 1rem;
    background: #061a27;
    color: #e7f8fc;
    box-shadow: 0 36px 100px rgba(0, 8, 14, 0.72), 0 0 0 1px rgba(75, 221, 246, 0.06);
}

.aircraft-cabin-modal::after {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 7rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, #58e0f7);
    content: "";
}

.aircraft-cabin-modal-hero {
    position: relative;
    display: grid;
    min-height: 11rem;
    grid-template-columns: minmax(15rem, 42%) minmax(0, 1fr);
    border-bottom: 1px solid rgba(75, 201, 228, 0.25);
    background: #082232;
}

.aircraft-cabin-modal-hero figure {
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-right: 1px solid rgba(75, 201, 228, 0.25);
    background: #17394a;
}

.aircraft-cabin-modal-hero figure::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 72%, rgba(5, 26, 39, 0.5));
    content: "";
}

.aircraft-cabin-modal-hero figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.aircraft-cabin-modal-hero figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 1.25rem 0.6rem 0.4rem;
    background: linear-gradient(transparent, rgba(3, 18, 28, 0.9));
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.6rem;
    line-height: 1.25;
}

.aircraft-cabin-modal-hero figcaption a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-underline-offset: 0.13rem;
}

.aircraft-cabin-modal-heading {
    align-self: center;
    min-width: 0;
    padding: 1.4rem 3.25rem 1.4rem 1.3rem;
}

.aircraft-cabin-modal-heading > p,
.aircraft-cabin-modal-manifest > p,
.aircraft-cabin-modal-control-heading span,
.aircraft-cabin-modal-total > span {
    margin: 0;
    color: #59d9f1;
    font: 700 0.59rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.aircraft-cabin-modal-heading h2 {
    margin: 0.25rem 0 0;
    overflow: hidden;
    color: #fff;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aircraft-cabin-modal-heading-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.aircraft-cabin-modal-heading-meta span {
    border: 1px solid rgba(86, 211, 235, 0.28);
    border-radius: 999px;
    background: rgba(7, 66, 87, 0.6);
    color: #b8edf6;
    font: 700 0.58rem "IBM Plex Mono", Consolas, monospace;
    padding: 0.25rem 0.48rem;
    text-transform: uppercase;
}

.aircraft-cabin-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 4;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid rgba(109, 205, 226, 0.26);
    border-radius: 0.5rem;
    background: rgba(4, 25, 38, 0.82);
    color: #addfe9;
    font-size: 1.2rem;
    line-height: 1;
}

.aircraft-cabin-modal-close:hover {
    border-color: rgba(251, 113, 133, 0.62);
    color: #fda4af;
}

.aircraft-cabin-modal-close:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.aircraft-cabin-modal-body {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 14.5rem;
    gap: 0.85rem;
    overflow-y: auto;
    padding: 0.9rem;
    background:
        linear-gradient(rgba(82, 197, 222, 0.025) 1px, transparent 1px),
        radial-gradient(circle at 100% 0, rgba(31, 159, 189, 0.1), transparent 34%),
        #061a27;
    background-size: 100% 5px, auto, auto;
}

.aircraft-cabin-modal-controls {
    display: grid;
    align-content: start;
    gap: 0.6rem;
}

.aircraft-cabin-modal-control {
    display: block;
    border: 1px solid rgba(74, 177, 201, 0.2);
    border-left-width: 2px;
    border-radius: 0.62rem;
    background: rgba(5, 31, 46, 0.88);
    padding: 0.65rem 0.7rem;
}

.aircraft-cabin-modal-control.is-economy {
    border-left-color: #38c7e4;
}

.aircraft-cabin-modal-control.is-business {
    border-left-color: #1979a7;
}

.aircraft-cabin-modal-control.is-first {
    border-left-color: #138f88;
}

.aircraft-cabin-modal-control-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.aircraft-cabin-modal-control-heading > div,
.aircraft-cabin-modal-control-heading > span {
    display: grid;
    gap: 0.1rem;
}

.aircraft-cabin-modal-control-heading span {
    color: #dff7fc;
    font-size: 0.58rem;
}

.aircraft-cabin-modal-control-heading small {
    color: #6f98a8;
    font: 600 0.56rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0;
    text-transform: none;
}

.aircraft-cabin-modal-control-heading strong {
    color: #f7fdff;
    font: 800 1rem "IBM Plex Mono", Consolas, monospace;
    white-space: nowrap;
}

.aircraft-cabin-modal-control-heading strong small {
    color: #718f9c;
    font-size: 0.58rem;
}

.aircraft-cabin-modal-progress {
    height: 0.38rem;
    margin-top: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: #102f40;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.aircraft-cabin-modal-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0789aa, #50ddf4);
    box-shadow: 0 0 12px rgba(63, 212, 238, 0.4);
    transition: width 160ms ease;
}

.aircraft-cabin-modal-control > p {
    margin: 0.42rem 0 0;
    color: #7899a7;
    font-size: 0.62rem;
    line-height: 1.4;
}

.aircraft-cabin-modal-control input[type="range"] {
    width: 100%;
    height: 0.35rem;
    margin: 0.75rem 0 0.2rem;
    appearance: none;
    border-radius: 999px;
    background: #15394a;
    cursor: pointer;
    outline: none;
}

.aircraft-cabin-modal-control input[type="range"]::-webkit-slider-thumb {
    width: 1rem;
    height: 1rem;
    appearance: none;
    border: 2px solid #dffaff;
    border-radius: 999px;
    background: #17bdd8;
    box-shadow: 0 0 0 3px rgba(23, 189, 216, 0.2), 0 0 12px rgba(23, 189, 216, 0.5);
}

.aircraft-cabin-modal-control input[type="range"]::-moz-range-thumb {
    width: 0.78rem;
    height: 0.78rem;
    border: 2px solid #dffaff;
    border-radius: 999px;
    background: #17bdd8;
    box-shadow: 0 0 0 3px rgba(23, 189, 216, 0.2), 0 0 12px rgba(23, 189, 216, 0.5);
}

.aircraft-cabin-modal-control input[type="range"]:focus-visible {
    outline: 2px solid #a5f3fc;
    outline-offset: 4px;
}

.aircraft-cabin-modal-scale {
    display: flex;
    justify-content: space-between;
    color: #607f8c;
    font: 600 0.5rem "IBM Plex Mono", Consolas, monospace;
}

.aircraft-cabin-modal-alert {
    margin: 0;
    border: 1px solid rgba(251, 113, 133, 0.4);
    border-radius: 0.55rem;
    background: rgba(136, 19, 55, 0.22);
    color: #fecdd3;
    font-size: 0.7rem;
    padding: 0.58rem 0.68rem;
}

.aircraft-cabin-modal-manifest {
    align-self: start;
    border: 1px solid rgba(80, 190, 215, 0.22);
    border-radius: 0.72rem;
    background: rgba(4, 29, 43, 0.92);
    padding: 0.7rem;
}

.aircraft-cabin-modal-manifest > p {
    color: #70dff2;
}

.aircraft-cabin-modal-classes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.aircraft-cabin-modal-classes > div {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(90, 181, 201, 0.15);
    border-radius: 0.5rem;
    background: #082333;
    padding: 0.48rem 0.42rem;
    text-align: center;
}

.aircraft-cabin-modal-classes > div::before {
    position: absolute;
    top: 0;
    right: 25%;
    left: 25%;
    height: 1px;
    background: #45d4ec;
    content: "";
}

.aircraft-cabin-modal-classes > div.is-business::before {
    background: #1979a7;
}

.aircraft-cabin-modal-classes > div.is-first::before {
    background: #138f88;
}

.aircraft-cabin-modal-classes span,
.aircraft-cabin-modal-classes small {
    display: block;
    overflow: hidden;
    color: #7697a5;
    font: 600 0.45rem "IBM Plex Mono", Consolas, monospace;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.aircraft-cabin-modal-classes strong {
    display: block;
    margin: 0.2rem 0 0.05rem;
    color: #f6fdff;
    font: 800 1.1rem "IBM Plex Mono", Consolas, monospace;
}

.aircraft-cabin-modal-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.55rem;
    border: 1px solid rgba(72, 205, 231, 0.28);
    border-radius: 0.52rem;
    background: rgba(7, 66, 85, 0.42);
    padding: 0.55rem 0.6rem;
}

.aircraft-cabin-modal-total > span {
    color: #8cb2c0;
    font-size: 0.49rem;
}

.aircraft-cabin-modal-total strong {
    color: #77e8fa;
    font: 800 0.88rem "IBM Plex Mono", Consolas, monospace;
    white-space: nowrap;
}

.aircraft-cabin-modal-total strong small {
    color: #7395a2;
    font-size: 0.55rem;
}

.aircraft-cabin-modal-total.is-invalid {
    border-color: rgba(251, 113, 133, 0.55);
    background: rgba(136, 19, 55, 0.25);
}

.aircraft-cabin-modal-total.is-invalid strong {
    color: #fda4af;
}

.aircraft-cabin-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(74, 184, 209, 0.2);
    background: #051620;
    padding: 0.75rem 0.9rem;
}

.aircraft-cabin-modal-footer > span {
    color: #668794;
    font-size: 0.61rem;
}

.aircraft-cabin-modal-footer > div {
    display: flex;
    gap: 0.55rem;
}

.aircraft-cabin-modal-footer button {
    min-height: 2.15rem;
    border-radius: 0.48rem;
    font: 800 0.62rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.06em;
    padding: 0.48rem 0.72rem;
    text-transform: uppercase;
}

.aircraft-cabin-modal-footer button.is-secondary {
    border: 1px solid rgba(102, 161, 181, 0.28);
    background: rgba(15, 46, 61, 0.7);
    color: #9cc5d2;
}

.aircraft-cabin-modal-footer button.is-secondary:hover {
    border-color: rgba(151, 207, 222, 0.48);
    color: #d9f4f9;
}

.aircraft-cabin-modal-footer button.is-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(89, 226, 246, 0.72);
    background: linear-gradient(135deg, #0783a3, #10abc7);
    color: #fff;
    box-shadow: 0 8px 20px rgba(2, 115, 145, 0.22);
}

.aircraft-cabin-modal-footer button.is-primary:hover {
    background: linear-gradient(135deg, #0793b6, #1bbbd3);
}

.aircraft-cabin-modal-footer button:focus-visible,
.aircraft-cabin-modal-close:focus-visible {
    outline: 2px solid #a5f3fc;
    outline-offset: 2px;
}

.aircraft-cabin-modal-footer button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

@media (max-width: 680px) {
    .aircraft-cabin-modal-backdrop {
        align-items: start;
        padding: 0.65rem;
    }

    .aircraft-cabin-modal {
        max-height: calc(100vh - 1.3rem);
    }

    .aircraft-cabin-modal-hero {
        grid-template-columns: 1fr;
    }

    .aircraft-cabin-modal-hero figure {
        height: 8.5rem;
        border-right: 0;
        border-bottom: 1px solid rgba(75, 201, 228, 0.25);
    }

    .aircraft-cabin-modal-heading {
        padding: 0.8rem 3.25rem 0.85rem 0.8rem;
    }

    .aircraft-cabin-modal-heading h2 {
        font-size: 1.25rem;
    }

    .aircraft-cabin-modal-heading-meta {
        margin-top: 0.5rem;
    }

    .aircraft-cabin-modal-body {
        grid-template-columns: 1fr;
        padding: 0.7rem;
    }

    .aircraft-cabin-modal-manifest {
        width: 100%;
    }

    .aircraft-cabin-modal-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 0.55rem;
    }

    .aircraft-cabin-modal-footer > div {
        display: grid;
        grid-template-columns: auto 1fr;
    }

    .aircraft-cabin-modal-footer button.is-primary {
        justify-content: space-between;
    }
}

/* Flight-sim inspired light cabin configurator */
.aircraft-cabin-modal-backdrop {
    background: rgba(210, 223, 232, 0.74);
    backdrop-filter: blur(14px) saturate(0.82);
}

.aircraft-cabin-modal {
    width: min(56rem, 100%);
    border-color: rgba(255, 255, 255, 0.92);
    border-radius: 0.8rem;
    background: rgba(241, 247, 250, 0.98);
    color: #17334a;
    box-shadow: 0 30px 90px rgba(30, 59, 78, 0.28), 0 0 0 1px rgba(50, 106, 137, 0.12);
}

.aircraft-cabin-modal::after {
    right: auto;
    left: 0;
    width: 10rem;
    height: 3px;
    background: linear-gradient(90deg, #087cad, #38bde4, transparent);
}

.aircraft-cabin-modal-hero {
    min-height: 18rem;
    grid-template-columns: minmax(20rem, 47%) minmax(0, 1fr);
    border-bottom-color: rgba(57, 109, 138, 0.16);
    background: rgba(249, 252, 253, 0.98);
}

.aircraft-cabin-modal-hero figure {
    border-right-color: rgba(57, 109, 138, 0.16);
    background: #c9dbe5;
}

.aircraft-cabin-modal-hero figure::after {
    background: linear-gradient(90deg, transparent 84%, rgba(237, 245, 249, 0.18));
}

.aircraft-cabin-modal-overview {
    display: grid;
    min-width: 0;
    align-content: center;
    gap: 0.8rem;
    padding: 1.05rem 1.05rem 1.05rem 1.15rem;
    background:
        linear-gradient(rgba(30, 105, 143, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 105, 143, 0.025) 1px, transparent 1px),
        rgba(244, 249, 251, 0.98);
    background-size: 100% 7px, 24px 100%, auto;
}

.aircraft-cabin-modal-heading {
    align-self: auto;
    padding: 0 2.5rem 0 0;
}

.aircraft-cabin-modal-heading > p,
.aircraft-cabin-modal-manifest-heading > p,
.aircraft-cabin-modal-section-heading p,
.aircraft-cabin-modal-control-heading span {
    color: #0b78a7;
}

.aircraft-cabin-modal-heading h2 {
    margin-top: 0.18rem;
    color: #122f46;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    letter-spacing: -0.025em;
}

.aircraft-cabin-modal-heading-meta {
    margin-top: 0.55rem;
}

.aircraft-cabin-modal-heading-meta span {
    border-color: rgba(25, 120, 161, 0.2);
    background: rgba(224, 240, 247, 0.86);
    color: #315f78;
}

.aircraft-cabin-modal-title-row {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.75rem;
    margin-top: 0.18rem;
}

.aircraft-cabin-modal-title-row h2 {
    margin-top: 0;
    white-space: normal;
}

.aircraft-cabin-modal-price {
    position: relative;
    min-width: 7.6rem;
    overflow: hidden;
    border: 1px solid rgba(9, 126, 169, 0.28);
    background: linear-gradient(135deg, rgba(217, 240, 248, 0.96), rgba(235, 247, 251, 0.96));
    padding: 0.48rem 0.58rem 0.44rem 0.68rem;
    clip-path: polygon(0.5rem 0, 100% 0, 100% 100%, 0 100%, 0 0.5rem);
    text-align: right;
}

.aircraft-cabin-modal-price::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 2.8rem;
    height: 2px;
    background: #1aa9d3;
    content: "";
}

.aircraft-cabin-modal-price span {
    display: block;
    color: #5d7e8e;
    font: 700 0.48rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.aircraft-cabin-modal-price strong {
    display: block;
    margin-top: 0.14rem;
    color: #087ba8;
    font: 850 0.9rem "IBM Plex Mono", Consolas, monospace;
    white-space: nowrap;
}

.aircraft-cabin-modal-price small {
    display: block;
    margin-top: 0.08rem;
    color: #688797;
    font: 650 0.46rem "IBM Plex Mono", Consolas, monospace;
    white-space: nowrap;
}

.aircraft-cabin-modal-close {
    border-color: rgba(43, 97, 126, 0.18);
    background: rgba(255, 255, 255, 0.82);
    color: #486b7e;
    box-shadow: 0 4px 12px rgba(36, 73, 94, 0.08);
}

.aircraft-cabin-modal-close:hover {
    border-color: rgba(190, 55, 76, 0.42);
    background: #fff;
    color: #b72f48;
}

.aircraft-cabin-modal-manifest {
    width: 100%;
    border-color: rgba(43, 103, 134, 0.16);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.65rem;
    box-shadow: 0 8px 24px rgba(43, 83, 106, 0.06);
}

.aircraft-cabin-modal-manifest-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.aircraft-cabin-modal-manifest-heading > p {
    margin: 0;
    font: 750 0.58rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.aircraft-cabin-modal-manifest-heading > strong {
    color: #17384f;
    font: 800 0.82rem "IBM Plex Mono", Consolas, monospace;
}

.aircraft-cabin-modal-manifest-heading > strong small {
    color: #7892a1;
    font-size: 0.55rem;
}

.aircraft-cabin-modal-classes {
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.aircraft-cabin-modal-classes > div {
    border-color: rgba(42, 99, 128, 0.12);
    border-radius: 0.38rem;
    background: #edf5f8;
    padding: 0.42rem 0.35rem;
    text-align: left;
}

.aircraft-cabin-modal-classes > div::before {
    right: auto;
    left: 0;
    width: 2px;
    height: 100%;
    background: #23a8cf;
}

.aircraft-cabin-modal-classes span {
    color: #678493;
    font-size: 0.46rem;
}

.aircraft-cabin-modal-classes strong {
    margin: 0.12rem 0 0;
    color: #19384e;
    font-size: 1rem;
}

.aircraft-cabin-modal-total {
    display: block;
    height: 0.25rem;
    margin-top: 0.55rem;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #d7e6ed;
    padding: 0;
}

.aircraft-cabin-modal-total > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0a7faf, #38bfe1);
}

.aircraft-cabin-modal-total.is-invalid {
    border: 0;
    background: #f0cdd3;
}

.aircraft-cabin-modal-total.is-invalid > span {
    background: #d94a63;
}

.aircraft-cabin-modal-body {
    display: block;
    overflow-y: auto;
    background:
        linear-gradient(rgba(32, 104, 139, 0.025) 1px, transparent 1px),
        #eaf2f6;
    background-size: 100% 6px, auto;
    padding: 0.9rem 1.05rem 1rem;
}

.aircraft-cabin-modal-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.aircraft-cabin-modal-section-heading p {
    margin: 0;
    font: 750 0.56rem "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.aircraft-cabin-modal-section-heading h3 {
    margin: 0.08rem 0 0;
    color: #17344b;
    font-size: 0.9rem;
    font-weight: 750;
}

.aircraft-cabin-modal-section-heading > span {
    max-width: 18rem;
    color: #6b8492;
    font-size: 0.58rem;
    line-height: 1.35;
    text-align: right;
}

.aircraft-cabin-modal-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.aircraft-cabin-modal-control {
    min-width: 0;
    border-color: rgba(44, 104, 135, 0.14);
    border-left-width: 1px;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.68rem;
    box-shadow: 0 8px 20px rgba(37, 75, 96, 0.045);
}

.aircraft-cabin-modal-control.is-economy {
    border-top: 2px solid #25a9d0;
    border-left-color: rgba(44, 104, 135, 0.14);
}

.aircraft-cabin-modal-control.is-business {
    border-top: 2px solid #1979a7;
    border-left-color: rgba(44, 104, 135, 0.14);
}

.aircraft-cabin-modal-control.is-first {
    border-top: 2px solid #138f88;
    border-left-color: rgba(44, 104, 135, 0.14);
}

.aircraft-cabin-modal-control-heading span {
    color: #24465c;
}

.aircraft-cabin-modal-control-heading small {
    color: #7b929f;
}

.aircraft-cabin-modal-control-heading strong {
    color: #17384f;
}

.aircraft-cabin-modal-control-heading strong small {
    color: #8095a0;
}

.aircraft-cabin-modal-progress {
    background: #d8e7ee;
    box-shadow: inset 0 1px 2px rgba(46, 84, 105, 0.12);
}

.aircraft-cabin-modal-progress span {
    background: linear-gradient(90deg, #087ca9, #36bedf);
    box-shadow: none;
}

.aircraft-cabin-modal-control > p {
    color: #708995;
}

.aircraft-cabin-modal-control input[type="range"] {
    --range-accent: #087fae;
    --range-ring: rgba(8, 127, 174, 0.22);
    height: 0.48rem;
    border: 1px solid #9eb8c5;
    background: linear-gradient(
        90deg,
        var(--range-accent) 0,
        var(--range-accent) var(--range-progress),
        #aec3cd var(--range-progress),
        #aec3cd 100%);
    box-shadow: inset 0 1px 2px rgba(43, 79, 98, 0.2);
}

.aircraft-cabin-modal-control.is-business input[type="range"] {
    --range-accent: #1979a7;
    --range-ring: rgba(25, 121, 167, 0.24);
}

.aircraft-cabin-modal-control.is-first input[type="range"] {
    --range-accent: #138f88;
    --range-ring: rgba(19, 143, 136, 0.24);
}

.aircraft-cabin-modal-control input[type="range"]::-webkit-slider-thumb {
    width: 1.08rem;
    height: 1.08rem;
    border-color: #fff;
    background: var(--range-accent);
    box-shadow: 0 0 0 4px var(--range-ring), 0 2px 6px rgba(33, 77, 99, 0.3);
}

.aircraft-cabin-modal-control input[type="range"]::-moz-range-thumb {
    width: 0.82rem;
    height: 0.82rem;
    border-color: #fff;
    background: var(--range-accent);
    box-shadow: 0 0 0 4px var(--range-ring), 0 2px 6px rgba(33, 77, 99, 0.3);
}

.aircraft-cabin-modal-control input[type="range"]::-moz-range-track {
    height: 0.38rem;
    border: 1px solid #9eb8c5;
    border-radius: 999px;
    background: #aec3cd;
    box-shadow: inset 0 1px 2px rgba(43, 79, 98, 0.2);
}

.aircraft-cabin-modal-control input[type="range"]::-moz-range-progress {
    height: 0.38rem;
    border-radius: 999px;
    background: var(--range-accent);
}

.aircraft-cabin-modal-scale {
    color: #4d7082;
    font-weight: 750;
}

.aircraft-cabin-modal-alert {
    grid-column: 1 / -1;
    border-color: rgba(198, 60, 82, 0.25);
    background: rgba(255, 239, 242, 0.94);
    color: #a72940;
}

.aircraft-cabin-modal-footer {
    border-top-color: rgba(49, 104, 133, 0.14);
    background: rgba(249, 252, 253, 0.98);
}

.aircraft-cabin-modal-footer > span {
    color: #748c98;
}

.aircraft-cabin-modal-footer button.is-secondary {
    border-color: rgba(48, 102, 130, 0.2);
    background: #edf4f7;
    color: #42687b;
}

.aircraft-cabin-modal-footer button.is-secondary:hover {
    border-color: rgba(32, 111, 150, 0.38);
    background: #fff;
    color: #1b5673;
}

.aircraft-cabin-modal-footer button.is-primary {
    border-color: #087eaa;
    background: linear-gradient(135deg, #087ba8, #129cc5);
    box-shadow: 0 8px 18px rgba(10, 119, 158, 0.18);
}

.aircraft-cabin-modal-footer button.is-primary:hover {
    background: linear-gradient(135deg, #08729b, #0b8fb7);
}

@media (max-width: 720px) {
    .aircraft-cabin-modal-backdrop {
        align-items: start;
        padding:
            calc(0.6rem + env(safe-area-inset-top))
            0.6rem
            calc(0.6rem + env(safe-area-inset-bottom));
        overscroll-behavior: contain;
    }

    .aircraft-cabin-modal {
        width: 100%;
        max-height: calc(100vh - 1.2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        max-height: calc(100dvh - 1.2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }

    .aircraft-cabin-modal-hero {
        min-height: 0;
        flex: 0 0 auto;
        grid-template-columns: 1fr;
    }

    .aircraft-cabin-modal-hero figure {
        height: clamp(6rem, 18dvh, 9rem);
        border-right: 0;
        border-bottom: 1px solid rgba(57, 109, 138, 0.16);
    }

    .aircraft-cabin-modal-overview {
        gap: 0.65rem;
        padding: 0.75rem;
    }

    .aircraft-cabin-modal-heading {
        padding: 0 2.6rem 0 0;
    }

    .aircraft-cabin-modal-controls {
        grid-template-columns: 1fr;
    }

    .aircraft-cabin-modal-body {
        min-height: 0;
        flex: 1 1 auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .aircraft-cabin-modal-section-heading {
        align-items: start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .aircraft-cabin-modal-section-heading > span {
        max-width: none;
        text-align: left;
    }

    .aircraft-cabin-modal-footer {
        flex: 0 0 auto;
        align-items: stretch;
        flex-direction: column;
    }

    .aircraft-cabin-modal-footer > span {
        display: none;
    }

    .aircraft-cabin-modal-footer > div {
        display: grid;
        grid-template-columns: auto 1fr;
    }

    .aircraft-cabin-modal-footer button.is-primary {
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aircraft-market-card,
    .aircraft-market-card-action > span:last-child,
    .aircraft-market-card-photo img,
    .aircraft-cabin-modal-progress span {
        transition: none;
    }

    .aircraft-market-card:hover,
    .aircraft-market-card:hover .aircraft-market-card-photo img {
        transform: none;
    }

    .aircraft-market-card-action:hover > span:last-child {
        transform: none;
    }
}

@media (max-width: 720px) {
    .flight-map-shell {
        height: auto;
    }

    .flight-map-canvas {
        height: 30rem;
    }

    .flight-map-shell.game-map-home {
        height: 100%;
        min-height: 0;
    }

    .game-map-home .flight-map-canvas {
        height: 100%;
    }

    .ad-airport-pin span {
        width: 2.1rem;
        height: 2.1rem;
        border-width: 3px;
    }

    .ad-airport-pin span::after {
        inset: 0.47rem;
    }

    .ad-airport-pin strong {
        margin-top: -0.1rem;
        font-size: 0.76rem;
        padding: 0.18rem 0.36rem;
    }

    .game-map-actions {
        left: 3.6rem;
        right: 0.65rem;
        top: 0.65rem;
    }

    .game-map-dashboard-button,
    .game-map-route-button {
        padding: 0.55rem 0.7rem;
    }

    .game-map-notification {
        left: 0.65rem;
        right: 0.65rem;
        top: 4.2rem;
        max-width: none;
        transform: none;
    }

    .map-route-builder {
        inset: auto 0.65rem 0.65rem;
        width: auto;
        max-height: min(43%, 20rem);
        border-radius: 0.78rem;
    }

    .map-route-builder.is-selecting-destination {
        max-height: min(52%, 24rem);
    }

    .map-route-builder.is-reviewing-route {
        inset: 0.5rem;
        max-height: none;
    }

    .map-route-builder-header {
        align-items: center;
        padding: 0.5rem 0.65rem;
    }

    .map-route-builder-header p {
        display: none;
    }

    .map-route-builder-header h2 {
        margin: 0;
        font-size: 1.05rem;
    }

    .map-route-builder-header > button {
        width: 2.75rem;
        height: 2.75rem;
    }

    .map-route-builder-progress {
        display: none;
    }

    .map-route-builder-stage {
        overscroll-behavior: contain;
        padding: 0.52rem 0.65rem 0.65rem;
        -webkit-overflow-scrolling: touch;
    }

    .map-route-builder.is-selecting-origin .map-route-builder-stage {
        padding-top: 0;
    }

    .map-route-builder-loading,
    .map-route-builder-empty {
        min-height: 4rem;
        padding: 0.65rem;
    }

    .map-route-builder-empty.is-hint {
        min-height: 3.5rem;
        flex-direction: row;
    }

    .map-route-builder-empty.is-hint span {
        font-size: 1.15rem;
    }

    .map-airport-inspector {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.55rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        padding: 0.15rem 0;
        box-shadow: none;
    }

    .map-route-builder.is-selecting-origin .map-airport-inspector {
        padding-top: 0;
    }

    .map-airport-inspector-set {
        min-width: 3.5rem;
        min-height: 2.2rem;
        padding: 0.4rem 0.6rem;
    }

    .map-airport-inspector-copy h3 {
        font-size: 0.78rem;
    }

    .map-airport-inspector-copy p {
        font-size: 0.64rem;
    }

    .map-airport-inspector-details > summary {
        gap: 0.5rem;
    }

    .map-airport-inspector-details > summary span:first-child {
        font-size: 0.54rem;
    }

    .map-airport-inspector dl {
        gap: 0.35rem;
    }

    .map-route-builder-primary {
        min-height: 2.5rem;
        padding: 0.5rem 0.65rem;
    }

    .map-route-airports {
        gap: 0.32rem;
    }

    .map-route-airport,
    .map-route-airport-placeholder {
        min-height: 0;
    }

    .map-route-airport {
        grid-template-columns: 2.8rem minmax(0, 1fr);
        column-gap: 0.5rem;
        padding: 0.32rem 0.48rem 0.4rem;
    }

    .map-route-airport-placeholder {
        padding: 0.48rem;
    }

    .map-route-airport-code {
        font-size: 1.08rem;
    }

    .map-route-airport-copy > strong {
        font-size: 0.72rem;
    }

    .map-route-airport-copy > span {
        margin-top: 0.1rem;
        font-size: 0.58rem;
    }

    .map-route-airport .map-route-builder-more {
        display: none;
    }

    .map-route-airport-placeholder {
        font-size: 0.58rem;
    }

    .map-route-essential-distance {
        margin-top: 0.45rem;
        padding: 0.38rem 0.52rem;
    }

    .map-route-essential-distance > summary {
        gap: 0.4rem;
    }

    .map-route-essential-distance > summary > span {
        font-size: 0.53rem;
    }

    .map-route-summary {
        gap: 0.35rem;
        margin: 0.4rem 0;
    }

    .map-route-summary div {
        padding: 0.42rem;
    }

    .map-route-summary strong {
        font-size: 0.67rem;
    }

    .map-route-builder-actions {
        margin-top: 0.42rem;
    }

    .map-route-step-two-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 0.35rem;
        margin-top: 0.45rem;
    }

    .map-route-step-two-toolbar .map-route-essential-distance,
    .map-route-step-two-toolbar .map-route-builder-actions {
        margin-top: 0;
    }

    .map-route-step-two-toolbar .map-route-builder-actions {
        grid-template-columns: 3.5rem 4.4rem;
        gap: 0.28rem;
    }

    .map-route-step-two-toolbar .map-route-builder-back,
    .map-route-step-two-toolbar .map-route-builder-primary {
        min-height: 2.35rem;
        padding: 0.35rem 0.42rem;
        font-size: 0.68rem;
    }

    .map-route-step-two-toolbar .map-route-essential-distance[open] {
        grid-column: 1 / -1;
    }

    .map-route-step-two-toolbar .map-route-essential-distance[open] + .map-route-builder-actions {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: minmax(5rem, 0.42fr) minmax(0, 1fr);
    }

    .map-route-final-review {
        padding: 0.6rem 0.65rem 0;
    }

    .map-route-final-review .map-route-builder-actions {
        position: sticky;
        z-index: 2;
        bottom: 0;
        margin: 0.6rem -0.65rem 0;
        border-top: 1px solid rgba(82, 191, 215, 0.18);
        background: rgba(5, 27, 41, 0.96);
        padding: 0.55rem 0.65rem calc(0.55rem + env(safe-area-inset-bottom));
    }

    .map-route-purchase-warning {
        padding: 0.6rem;
    }

    .map-route-final-review .map-route-purchase-warning strong {
        font-size: 0.92rem;
    }

    .map-route-final-review .map-route-purchase-warning p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .map-route-review-airport {
        padding: 0.65rem;
    }

    .map-route-final-review .map-route-review-airport header small,
    .map-route-final-review .map-route-review-airport dt,
    .map-route-final-review .map-route-final-data dt {
        color: #a7d8e3;
        font-size: 0.67rem;
        line-height: 1.35;
    }

    .map-route-final-review .map-route-review-airport header strong {
        font-size: 0.76rem;
    }

    .map-route-final-review .map-route-review-airport h3 {
        font-size: 0.92rem;
    }

    .map-route-final-review .map-route-review-airport > p {
        font-size: 0.76rem;
        line-height: 1.4;
    }

    .map-route-final-review .map-route-review-airport dd,
    .map-route-final-review .map-route-final-data dd {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .map-route-final-data {
        gap: 0.35rem;
    }

    .map-route-final-data > div {
        padding: 0.58rem;
    }

    .map-route-final-data > .is-route-highlight dd {
        font-size: 1.02rem;
    }

    .map-route-final-review .map-route-final-data > .is-total-route dt,
    .map-route-final-review .map-route-final-data > .is-total-route dd {
        color: #fde68a;
    }

    .map-route-final-review .map-route-builder-actions button {
        min-height: 2.75rem;
        font-size: 0.86rem;
    }

    .map-route-builder-alert {
        margin: 0.45rem 0.65rem 0;
        padding: 0.45rem 0.55rem;
    }

    .ad-map-detail-panel {
        position: static;
        width: auto;
        margin: 0.75rem;
    }

    .flight-map-shell.game-map-home .ad-map-detail-panel {
        position: absolute;
        left: 0.75rem;
        right: 0.75rem;
        top: auto;
        bottom: max(0.75rem, env(safe-area-inset-bottom));
        z-index: 700;
        width: auto;
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .first-flight-guide-target {
        animation: none;
    }
}

#blazor-error-ui {
    background: #7f1d1d;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    color: white;
    display: none;
    left: 0;
    padding: 0.75rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Google Play account, privacy, and legal surfaces. */
.public-legal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    border-top: 1px solid rgba(92, 140, 174, 0.2);
    background: rgba(239, 248, 253, 0.94);
    color: #526b80;
    font-size: 0.78rem;
}

.public-legal-footer > span {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.public-legal-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1.2rem;
}

.public-legal-footer a {
    color: #275a7a;
    font-weight: 600;
    text-decoration: none;
}

.public-legal-footer a:hover,
.public-legal-footer a:focus-visible {
    color: #087db7;
    text-decoration: underline;
}

.auth-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 0.65rem !important;
    color: #527086 !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    line-height: 1.45;
}

.auth-consent input {
    width: 1rem !important;
    height: 1rem;
    margin-top: 0.1rem;
    flex: 0 0 1rem;
    accent-color: #0a84bd;
}

.auth-consent a {
    font-weight: 700;
}

.legal-page {
    min-height: calc(100dvh - 3.5rem);
    padding: clamp(1rem, 4vw, 3rem);
    background:
        radial-gradient(50rem 28rem at 85% -8%, rgba(67, 186, 227, 0.25), transparent 70%),
        linear-gradient(180deg, #eaf6fc, #cfE3f0);
}

.legal-page-embedded {
    min-height: 100dvh;
    padding: clamp(0.75rem, 2.5vw, 1.5rem);
}

.legal-page-embedded .legal-card {
    width: 100%;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: #0d2b42;
    text-decoration: none;
}

.legal-brand img {
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(20, 119, 166, 0.24);
    border-radius: 0.7rem;
    object-fit: cover;
    box-shadow: 0 0.8rem 2rem -1.2rem rgba(7, 67, 99, 0.8);
}

.legal-brand span {
    display: grid;
}

.legal-brand strong {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.legal-brand small {
    color: #638095;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.legal-card {
    width: min(100%, 58rem);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(78, 126, 158, 0.26);
    border-radius: 1.1rem;
    background: rgba(250, 253, 255, 0.94);
    box-shadow: 0 2rem 5rem -3rem rgba(12, 48, 74, 0.6), inset 0 1px rgba(255, 255, 255, 0.9);
}

.legal-card > header {
    padding: clamp(1.5rem, 5vw, 3rem);
    border-bottom: 1px solid rgba(79, 129, 161, 0.18);
    background:
        linear-gradient(120deg, rgba(230, 246, 254, 0.96), rgba(248, 252, 255, 0.96)),
        #f6fbfe;
}

.legal-kicker {
    margin: 0 0 0.65rem;
    color: #087daf;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.legal-card h1 {
    margin: 0;
    color: #102a3e;
    font-size: clamp(1.8rem, 5vw, 2.7rem);
    line-height: 1.08;
}

.legal-card h2 {
    margin: 0 0 0.65rem;
    color: #183b55;
    font-size: 1.05rem;
}

.legal-card p,
.legal-card li {
    color: #4d687c;
    line-height: 1.65;
}

.legal-card > header > p:last-child {
    max-width: 44rem;
    margin: 0.9rem 0 0;
}

.legal-policy > section,
.legal-deletion-card > section {
    padding: 1.5rem clamp(1.5rem, 5vw, 3rem);
    border-bottom: 1px solid rgba(79, 129, 161, 0.13);
}

.legal-policy ul,
.deletion-impact ul {
    margin: 0.6rem 0 1rem;
    padding-left: 1.25rem;
}

.legal-policy li + li,
.deletion-impact li + li {
    margin-top: 0.45rem;
}

.legal-contact-link {
    display: inline-flex;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(15, 132, 184, 0.28);
    border-radius: 0.55rem;
    background: rgba(220, 243, 253, 0.7);
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
    text-decoration: none;
}

.legal-form-error {
    margin: 1.5rem clamp(1.5rem, 5vw, 3rem) 0;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(194, 65, 57, 0.3);
    border-radius: 0.65rem;
    background: rgba(255, 236, 233, 0.9);
    color: #a52d29;
    font-size: 0.86rem;
    font-weight: 650;
}

.legal-deletion-form {
    display: grid;
    gap: 1rem;
    padding: 1.5rem clamp(1.5rem, 5vw, 3rem);
}

.legal-deletion-form > label:not(.legal-confirmation),
.settings-deletion-form label {
    display: grid;
    gap: 0.4rem;
    color: #2f4c62;
    font-size: 0.8rem;
    font-weight: 700;
}

.legal-deletion-form input:not([type="checkbox"]),
.settings-deletion-form input {
    min-height: 2.8rem;
    width: 100%;
    border: 1px solid rgba(77, 121, 151, 0.35);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.65rem 0.8rem;
    color: #102a3e;
    outline: none;
}

.legal-deletion-form input:focus,
.settings-deletion-form input:focus {
    border-color: #168fc4;
    box-shadow: 0 0 0 3px rgba(22, 143, 196, 0.12);
}

.legal-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: #536d80;
    font-size: 0.82rem;
    line-height: 1.45;
}

.legal-confirmation input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.12rem;
    flex: 0 0 1rem;
    accent-color: #be3e37;
}

.legal-deletion-form button,
.settings-deletion-form button {
    min-height: 2.8rem;
    border: 1px solid #a3312d;
    border-radius: 0.55rem;
    background: linear-gradient(180deg, #ce5149, #a92f2b);
    color: white;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.legal-deletion-form button:hover,
.settings-deletion-form button:hover {
    background: linear-gradient(180deg, #bd4039, #942622);
}

.legal-card-note {
    margin: 0;
    padding: 0 3rem 2rem;
    font-size: 0.8rem;
}

.legal-result-page {
    display: grid;
    place-items: center;
}

.legal-result-card {
    max-width: 38rem;
    padding: clamp(2rem, 7vw, 4rem);
    text-align: center;
}

.legal-result-mark {
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.4rem;
    place-items: center;
    border: 1px solid rgba(25, 140, 96, 0.3);
    border-radius: 50%;
    background: rgba(210, 244, 231, 0.75);
    color: #17885f;
    font-size: 2rem;
    font-weight: 800;
}

.legal-result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem 1.25rem;
    margin-top: 1.5rem;
}

.legal-primary-link {
    padding: 0.75rem 1rem;
    border-radius: 0.55rem;
    background: #087daf;
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.legal-primary-link:hover {
    background: #096e99;
    color: white;
}

.settings-localization-card {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.35rem);
    border: 1px solid rgba(28, 132, 176, 0.24);
    border-radius: 0.75rem;
    background:
        radial-gradient(28rem 12rem at 100% 0%, rgba(94, 200, 226, 0.15), transparent 70%),
        linear-gradient(180deg, rgba(247, 253, 255, 0.98), rgba(232, 246, 251, 0.92));
}

.settings-localization-card > header > span {
    color: #087da9;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.settings-localization-card > header > h2 {
    margin: 0.25rem 0 0;
    color: #17354c;
    font-size: 1.05rem;
}

.settings-localization-grid {
    display: grid;
    min-width: 0;
    gap: 0.8rem;
}

.settings-localization-grid label {
    display: grid;
    min-width: 0;
    gap: 0.3rem;
    padding: 0.85rem;
    border: 1px solid rgba(81, 124, 153, 0.2);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.72);
}

.settings-localization-grid strong {
    color: #203e54;
    font-size: 0.82rem;
}

.settings-localization-grid small {
    min-height: 2.25em;
    color: #647b8e;
    font-size: 0.72rem;
    line-height: 1.4;
}

.settings-localization-grid select {
    width: 100%;
    min-height: 2.7rem;
    margin-top: 0.35rem;
    border: 1px solid rgba(65, 112, 143, 0.32);
    border-radius: 0.52rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.55rem 0.7rem;
    font-size: 0.84rem;
    outline: none;
}

.settings-localization-grid select:focus {
    border-color: #0b86b4;
    box-shadow: 0 0 0 3px rgba(11, 134, 180, 0.12);
}

.settings-compliance-card {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.1rem, 4vw, 1.5rem);
    border: 1px solid rgba(81, 124, 153, 0.24);
    border-radius: 0.7rem;
    background: linear-gradient(180deg, rgba(250, 253, 255, 0.94), rgba(236, 246, 251, 0.95));
    box-shadow: 0 1.2rem 2.8rem -2.5rem rgba(13, 56, 83, 0.7);
}

.settings-compliance-kicker {
    margin: 0 0 0.35rem;
    color: #0a7eae;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.settings-compliance-copy h2,
.settings-danger-zone h3 {
    margin: 0;
    color: #17354c;
}

.settings-compliance-copy > p:not(.settings-compliance-kicker),
.settings-danger-zone p {
    margin: 0.45rem 0 0;
    color: #5b7184;
    font-size: 0.84rem;
    line-height: 1.55;
}

.settings-compliance-copy nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.settings-danger-zone {
    padding: 1rem;
    border: 1px solid rgba(190, 61, 54, 0.28);
    border-radius: 0.65rem;
    background: rgba(255, 244, 241, 0.72);
}

.settings-danger-zone > div:first-child > span {
    color: #b43530;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.settings-deletion-error {
    margin-top: 0.9rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.45rem;
    background: rgba(205, 67, 59, 0.1);
    color: #a52d29;
    font-size: 0.78rem;
    font-weight: 650;
}

.settings-deletion-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (min-width: 760px) {
    .settings-localization-card {
        grid-template-columns: minmax(10rem, 0.42fr) minmax(0, 1.58fr);
        align-items: start;
    }

    .settings-localization-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-compliance-card {
        grid-template-columns: minmax(0, 0.8fr) minmax(22rem, 1.2fr);
        align-items: start;
    }

    .settings-deletion-form {
        grid-template-columns: 1fr 1fr;
    }

    .settings-deletion-form button {
        grid-column: 1 / -1;
    }
}

/* Arabic is the only right-to-left locale currently offered. Keep the entire
   application flow, navigation tooltips, and form alignment consistent. */
html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .app-shell {
    direction: rtl;
}

html[dir="rtl"] .app-sidebar {
    box-shadow: -24px 0 58px -44px rgba(3, 13, 24, 0.95), inset 1px 0 rgba(255, 255, 255, 0.06);
}

html[dir="rtl"] .game-nav-link::before {
    right: -0.28rem;
    left: auto;
}

html[dir="rtl"] .game-nav-link::after {
    right: calc(100% + 0.55rem);
    left: auto;
    transform: translate(0.3rem, -50%);
}

html[dir="rtl"] .game-nav-link:hover::after {
    transform: translate(0, -50%);
}

@media (max-width: 560px) {
    .public-legal-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-legal-footer nav {
        justify-content: flex-start;
    }

    .legal-page {
        padding: 0.8rem;
    }

    .legal-card-note {
        padding-inline: 1.5rem;
    }
}

/* Responsive flight-data boards: compact MSFS-inspired operational surfaces. */
.sim-data-page {
    --sim-board-dark: #0b2134;
    --sim-board-mid: #123b55;
    --sim-board-cyan: #39bce8;
    --sim-board-line: rgba(66, 137, 178, 0.2);
    min-width: 0;
}

.game-page-header {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
}

.game-page-header-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.game-page-header-actions > * {
    max-width: 100%;
}

.game-page-title-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.45rem;
}

.context-help {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.context-help[open] {
    z-index: 110;
}

.context-help summary {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    list-style: none;
    place-items: center;
    border: 1px solid rgba(14, 116, 144, 0.2);
    border-radius: 999px;
    background: rgba(224, 242, 254, 0.72);
    color: #0877ac;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.context-help summary::-webkit-details-marker {
    display: none;
}

.context-help summary:hover,
.context-help summary:focus-visible,
.context-help[open] summary {
    border-color: rgba(8, 119, 172, 0.48);
    background: #d7f2fb;
    color: #075985;
    outline: none;
}

.context-help summary:focus-visible {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.24);
}

.context-help summary svg {
    width: 1.05rem;
    height: 1.05rem;
}

.context-help-content {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    z-index: 100;
    width: min(20rem, calc(100vw - 2rem));
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(100, 116, 139, 0.24);
    border-radius: 0.7rem;
    background: #0f2537;
    color: #e7f5fb;
    box-shadow: 0 1rem 2rem -1rem rgba(2, 18, 30, 0.7);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: normal;
}

.icon-action-button {
    display: inline-grid;
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    place-items: center;
    border: 1px solid rgba(100, 116, 139, 0.24);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.84);
    color: #334155;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.icon-action-button:hover:not(:disabled) {
    border-color: rgba(8, 119, 172, 0.38);
    background: #e6f6fc;
    color: #075985;
    transform: translateY(-1px);
}

.icon-action-button:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.28);
    outline-offset: 2px;
}

.icon-action-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.icon-action-button svg {
    width: 1.15rem;
    height: 1.15rem;
}

.icon-action-button--danger {
    border-color: rgba(225, 29, 72, 0.2);
    color: #be123c;
}

.icon-action-button--danger:hover:not(:disabled) {
    border-color: rgba(225, 29, 72, 0.38);
    background: #fff1f2;
    color: #9f1239;
}

.icon-action-button--success {
    border-color: rgba(5, 150, 105, 0.22);
    color: #047857;
}

.icon-action-button--success:hover:not(:disabled) {
    border-color: rgba(5, 150, 105, 0.4);
    background: #ecfdf5;
    color: #065f46;
}

.icon-action-button--warning {
    border-color: rgba(217, 119, 6, 0.22);
    color: #b45309;
}

.icon-action-button--warning:hover:not(:disabled) {
    border-color: rgba(217, 119, 6, 0.4);
    background: #fffbeb;
    color: #92400e;
}

.compact-action-icon {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
    vertical-align: -0.15rem;
}

.flight-plan-dispatch-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flight-plan-dispatch-row .flight-plan-dispatch-toggle {
    flex: 1 1 auto;
}

.flight-plan-close svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.maintenance-header-stats {
    width: min(28rem, 100%);
}

.sim-data-page-heading {
    position: relative;
    padding-left: 1rem;
}

.sim-data-page-heading::before {
    position: absolute;
    inset: 0.1rem auto 0.1rem 0;
    width: 0.22rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #67d8f6, #0879b2);
    box-shadow: 0 0 1.1rem rgba(57, 188, 232, 0.38);
    content: "";
}

.sim-data-kicker {
    display: block;
    margin-bottom: 0.28rem;
    color: #0877ac;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sim-data-page-heading h1 {
    margin: 0;
    letter-spacing: -0.025em;
}

.sim-table-shell {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    isolation: isolate;
    border-color: rgba(62, 117, 151, 0.28) !important;
    border-radius: 0.78rem !important;
    background:
        linear-gradient(180deg, rgba(251, 254, 255, 0.96), rgba(229, 241, 248, 0.94)),
        #edf7fc !important;
    box-shadow: 0 1.6rem 3.5rem -2.8rem rgba(7, 38, 59, 0.72), inset 0 1px rgba(255, 255, 255, 0.9) !important;
}

.sim-table-shell *,
.sim-table-shell *::before,
.sim-table-shell *::after {
    box-sizing: border-box;
}

.sim-table-shell::before {
    position: absolute;
    inset: 0 0 auto;
    z-index: 3;
    height: 0.2rem;
    background: linear-gradient(90deg, #61d4f3 0 16%, #0b75b7 48%, transparent 92%);
    content: "";
    pointer-events: none;
}

.sim-table-shell::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(54, 118, 158, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(54, 118, 158, 0.035) 1px, transparent 1px);
    background-size: 2.5rem 2.5rem;
    content: "";
    pointer-events: none;
}

.sim-table-toolbar {
    min-height: 3.05rem;
    border-color: rgba(101, 191, 225, 0.2) !important;
    background:
        radial-gradient(22rem 5rem at 0 0, rgba(60, 194, 233, 0.2), transparent 68%),
        linear-gradient(100deg, #0a2032, #123b55);
}

.sim-table-toolbar h2 {
    color: #f3fbff !important;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: 0.015em;
}

.sim-table-toolbar > span {
    color: #9cdcf1 !important;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.04em;
}

.sim-data-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: auto;
}

.sim-data-table thead {
    background:
        linear-gradient(90deg, rgba(9, 31, 49, 0.98), rgba(18, 59, 85, 0.97)) !important;
}

.sim-data-table thead th {
    border-bottom: 1px solid rgba(100, 196, 230, 0.18);
    color: #b9dceb !important;
    font-size: 0.68rem;
    letter-spacing: 0.11em;
}

.sim-data-table tbody tr {
    background: rgba(255, 255, 255, 0.58);
}

.sim-data-table tbody tr:nth-child(even) {
    background: rgba(224, 240, 249, 0.58);
}

.sim-data-table tbody tr:hover {
    background: rgba(201, 232, 247, 0.72);
}

.sim-data-table tbody td {
    border-bottom: 1px solid rgba(66, 137, 178, 0.13);
    vertical-align: middle;
}

.sim-data-table tbody td[data-primary],
.sim-data-table tbody td[data-route-node] {
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.01em;
}

.sim-data-table button {
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-weight: 800;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

@media (max-width: 1100px) and (min-width: 768px) {
    .sim-data-table th,
    .sim-data-table td {
        padding-right: 0.58rem !important;
        padding-left: 0.58rem !important;
    }

    .sim-data-table {
        font-size: 0.72rem;
    }

    .sim-data-table .min-w-44 {
        min-width: 8.25rem;
    }
}

@media (max-width: 767px) {
    .sim-data-page {
        gap: 1rem;
    }

    .game-page-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.9rem;
    }

    .game-page-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .game-page-header-actions > button {
        width: 100%;
        min-height: 2.85rem;
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .maintenance-header-stats {
        width: 100%;
    }

    .sim-data-page-heading {
        padding-left: 0.78rem;
    }

    .sim-data-page-heading h1 {
        font-size: 1.4rem;
    }

    .sim-data-kicker {
        display: none;
    }

    .context-help summary {
        width: 2.75rem;
        height: 2.75rem;
    }

    .context-help-content {
        position: fixed;
        inset: auto 0.75rem calc(4.75rem + env(safe-area-inset-bottom));
        width: auto;
        padding: 0.95rem 1rem;
        border-radius: 0.9rem;
        font-size: 0.85rem;
    }

    .icon-action-button {
        width: 2.75rem;
        min-width: 2.75rem;
        height: 2.75rem;
    }

    .sim-data-page > div.flex.justify-end > button {
        width: 100%;
        min-height: 2.85rem;
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .sim-table-toolbar {
        min-height: 3.35rem;
        padding: 0.78rem 0.9rem !important;
    }

    .sim-table-toolbar h2 {
        font-size: 0.84rem !important;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .sim-data-table,
    .sim-data-table tbody {
        display: block;
        width: 100%;
    }

    .sim-data-table thead {
        display: none;
    }

    .sim-data-table tbody {
        display: grid;
        gap: 0.45rem;
        padding: 0.45rem;
    }

    .sim-data-table tbody tr {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.48rem 0.68rem;
        overflow: hidden;
        padding: 0.62rem 0.68rem;
        border: 1px solid rgba(58, 124, 164, 0.22);
        border-radius: 0.72rem;
        background:
            radial-gradient(18rem 8rem at 100% 0, rgba(83, 197, 231, 0.12), transparent 65%),
            linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(226, 240, 248, 0.94));
        box-shadow: inset 0 1px rgba(255, 255, 255, 0.92), 0 1rem 2.2rem -1.9rem rgba(4, 34, 54, 0.72);
    }

    .sim-data-table tbody tr::before {
        position: absolute;
        inset: 0 auto 0 0;
        width: 0.18rem;
        background: linear-gradient(180deg, #64d4f3, #0b75b7 58%, transparent);
        content: "";
    }

    .sim-data-table tbody tr:hover {
        background:
            radial-gradient(18rem 8rem at 100% 0, rgba(83, 197, 231, 0.15), transparent 65%),
            linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(218, 236, 247, 0.96));
    }

    .sim-data-table tbody td {
        display: flex;
        min-width: 0;
        min-height: 1.9rem;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        overflow-wrap: anywhere;
        border: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        text-align: left !important;
        white-space: normal !important;
    }

    .sim-data-table tbody td::before {
        display: block;
        margin-bottom: 0.1rem;
        color: #698096;
        content: attr(data-label);
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-size: 0.52rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .sim-data-table tbody td[data-primary] {
        order: -2;
        grid-column: 1 / -1;
        min-height: 2.35rem;
        padding-bottom: 0.42rem !important;
        border-bottom: 1px solid rgba(58, 124, 164, 0.16) !important;
        color: #0b3550 !important;
        font-size: 0.92rem;
        font-weight: 800;
    }

    .sim-data-table tbody td[data-route-node] {
        order: -2;
        min-height: 2.65rem;
        padding: 0.38rem 0.52rem !important;
        border: 1px solid rgba(29, 133, 183, 0.18) !important;
        border-radius: 0.55rem;
        background: rgba(220, 241, 250, 0.66) !important;
        color: #083b59 !important;
        font-size: 0.98rem;
        font-weight: 800;
    }

    .sim-data-table tbody td[data-wide],
    .sim-data-table tbody td[data-actions] {
        grid-column: 1 / -1;
    }

    .sim-data-table tbody td[data-actions="single"] {
        grid-column: auto;
    }

    .sim-data-table tbody td[data-last] {
        order: 1;
    }

    .sim-data-table tbody td[data-amount] {
        color: #0b3550;
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-weight: 800;
    }

    .sim-data-table tbody td[data-actions] {
        min-height: 2.2rem;
        padding-top: 0.1rem !important;
    }

    .sim-data-table tbody td[data-actions] > div {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
        gap: 0.5rem;
    }

    .sim-data-table tbody td[data-actions] button {
        width: 100%;
        min-height: 2.2rem;
        padding-block: 0.35rem;
    }

    .sim-data-table tbody td[data-label="Progress"] > div {
        width: 100%;
    }

    .sim-data-table tbody td[data-label="Progress"] .w-28 {
        width: auto;
        flex: 1;
    }

    .sim-data-table-compact tbody {
        padding: 0.45rem;
    }

    .sim-data-table-compact tbody tr {
        padding: 0.7rem;
    }

    .operation-board {
        overflow-x: visible;
    }

    .operation-board .sim-form-table {
        min-width: 0;
        border-spacing: 0;
    }

    .operation-board .sim-form-table input,
    .operation-board .sim-form-table select {
        width: 100%;
    }
}

/* Command deck: high-contrast game HUD refinement. */
.dashboard-modal-backdrop {
    position: fixed !important;
    inset: 0;
    z-index: 2000;
    display: flex;
    width: 100%;
    height: 100dvh;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding:
        max(0.75rem, env(safe-area-inset-top))
        max(0.75rem, env(safe-area-inset-right))
        max(0.75rem, env(safe-area-inset-bottom))
        max(0.75rem, env(safe-area-inset-left));
    background:
        radial-gradient(circle at 50% 0, rgba(13, 148, 209, 0.22), transparent 38%),
        rgba(1, 8, 16, 0.84) !important;
    overscroll-behavior: contain;
}

.dashboard-modal-shell.modal-surface-solid {
    position: relative;
    z-index: 1;
    width: min(72rem, 100%);
    max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(67, 212, 246, 0.5);
    border-radius: 0.9rem;
    background:
        linear-gradient(rgba(49, 177, 218, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 177, 218, 0.035) 1px, transparent 1px),
        radial-gradient(50rem 28rem at 88% -10%, rgba(18, 152, 210, 0.18), transparent 72%),
        linear-gradient(155deg, #071a2a 0%, #06121f 50%, #030b13 100%) !important;
    background-size: 2rem 2rem, 2rem 2rem, auto, auto !important;
    color: #dff7ff;
    box-shadow:
        0 0 0 1px rgba(5, 21, 34, 0.9),
        0 2.4rem 7rem -2.5rem rgba(0, 0, 0, 0.95),
        0 0 3rem rgba(23, 182, 225, 0.15);
    scrollbar-color: #1c91b8 #06131f;
}

.dashboard-modal-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.6rem;
    border-bottom: 1px solid rgba(74, 207, 239, 0.28);
    background:
        linear-gradient(90deg, rgba(10, 45, 65, 0.98), rgba(5, 21, 34, 0.98)),
        #071928;
    padding: 0.8rem 1rem;
    box-shadow: 0 0.85rem 2rem -1.25rem rgba(0, 0, 0, 0.95);
}

.dashboard-modal-header::after {
    position: absolute;
    right: 5.4rem;
    bottom: -1px;
    width: 5rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, #43d7f5);
    content: "";
    box-shadow: 0 0 0.8rem rgba(67, 215, 245, 0.8);
}

.dashboard-modal-header p {
    margin: 0;
    color: #61daf5 !important;
}

.dashboard-modal-header h2 {
    margin: 0.14rem 0 0;
    color: #f4fcff;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: clamp(1rem, 2vw, 1.28rem);
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.dashboard-modal-close {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 106, 122, 0.74);
    border-radius: 0.52rem;
    background: linear-gradient(145deg, #8f2337, #521323);
    color: #fff2f4;
    box-shadow: 0 0 1.2rem rgba(239, 68, 92, 0.23), inset 0 1px rgba(255, 255, 255, 0.17);
}

.dashboard-modal-close:hover {
    border-color: #ff9aa8;
    background: linear-gradient(145deg, #c52e48, #76192d);
}

.dashboard-modal-close svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.dashboard-modal-shell > .game-dashboard {
    padding: 0.85rem;
}

.game-dashboard-hero,
.game-dashboard-panel,
.game-dashboard-stat,
.game-dashboard-loading,
.game-dashboard-alert {
    border-color: rgba(70, 199, 232, 0.24) !important;
    background:
        linear-gradient(145deg, rgba(10, 36, 53, 0.97), rgba(4, 17, 29, 0.98)),
        #06131f !important;
    color: #dff7ff;
    box-shadow:
        0 1.2rem 2.8rem -2rem rgba(0, 0, 0, 0.95),
        inset 0 1px rgba(255, 255, 255, 0.055) !important;
    backdrop-filter: none;
}

.game-dashboard-hero {
    border-color: rgba(76, 218, 246, 0.38) !important;
    background:
        radial-gradient(26rem 14rem at 84% 18%, rgba(21, 186, 220, 0.18), transparent 70%),
        radial-gradient(30rem 16rem at 12% 0, rgba(25, 112, 218, 0.21), transparent 74%),
        linear-gradient(135deg, #0a2438 0%, #071724 56%, #050f19 100%) !important;
}

.game-dashboard-kicker,
.game-dashboard-panel-title span,
.game-dashboard-stat span,
.game-dashboard-flight-board span,
.game-dashboard-ledger span,
.game-dashboard-reputation-header > div > span {
    color: #61daf5;
}

.game-dashboard-hero h1,
.game-dashboard-stat strong,
.game-dashboard-panel-title h2,
.game-dashboard-flight-board strong,
.game-dashboard-ledger strong,
.game-dashboard-reputation p,
.game-dashboard-reputation-header > strong {
    color: #f3fbff;
}

.game-dashboard-hero-copy p:last-child,
.game-dashboard-reputation small,
.game-dashboard-directive-panel p {
    color: #91adbd;
}

.game-dashboard-radar {
    border-color: rgba(69, 217, 246, 0.42);
    background:
        repeating-radial-gradient(circle, rgba(82, 210, 241, 0.17) 0 1px, transparent 1px 2.24rem),
        linear-gradient(135deg, rgba(7, 42, 61, 0.82), rgba(2, 14, 24, 0.9));
    box-shadow: inset 0 0 2rem rgba(14, 165, 233, 0.18), 0 0 2.8rem rgba(34, 211, 238, 0.12);
}

.game-dashboard-radar-plane {
    background: #ffca4b;
    filter: drop-shadow(0 0 0.7rem rgba(255, 202, 75, 0.68));
}

.game-dashboard-stat {
    border-left-width: 3px !important;
}

.game-dashboard-stat::after {
    border-color: rgba(85, 218, 245, 0.1);
}

.game-dashboard-stat-icon {
    background: rgba(16, 74, 99, 0.42);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 1.3rem rgba(50, 203, 236, 0.1);
}

.game-dashboard-stat.is-cash,
.game-dashboard-stat.is-cash .game-dashboard-stat-icon {
    border-color: rgba(71, 232, 174, 0.52) !important;
}

.game-dashboard-stat.is-cash .game-dashboard-stat-icon {
    color: #56e7af;
}

.game-dashboard-stat.is-fleet,
.game-dashboard-stat.is-fleet .game-dashboard-stat-icon {
    border-color: rgba(72, 201, 245, 0.52) !important;
}

.game-dashboard-stat.is-fleet .game-dashboard-stat-icon {
    color: #62d9f7;
}

.game-dashboard-stat.is-routes,
.game-dashboard-stat.is-routes .game-dashboard-stat-icon {
    border-color: rgba(161, 123, 255, 0.52) !important;
}

.game-dashboard-stat.is-routes .game-dashboard-stat-icon {
    color: #b69aff;
}

.game-dashboard-stat.is-profit,
.game-dashboard-stat.is-profit .game-dashboard-stat-icon {
    border-color: rgba(255, 190, 71, 0.56) !important;
}

.game-dashboard-stat.is-profit .game-dashboard-stat-icon {
    color: #ffc75b;
}

.game-dashboard-reputation-track {
    border-color: rgba(79, 216, 244, 0.3);
    background:
        repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(88, 216, 244, 0.16) calc(10% - 1px) 10%),
        rgba(2, 13, 23, 0.82);
}

.game-dashboard-reputation-reward {
    border-color: rgba(46, 203, 235, 0.3);
    background:
        radial-gradient(18rem 8rem at 0 0, rgba(30, 196, 223, 0.12), transparent 72%),
        linear-gradient(135deg, rgba(8, 39, 55, 0.94), rgba(5, 24, 36, 0.96));
}

.game-dashboard-reputation-reward h3 {
    color: #f2fbff;
}

.game-dashboard-reputation-reward p {
    color: #9db6c4;
}

.game-dashboard-reputation-reward-action button {
    border-color: #4be3f5;
    background: linear-gradient(135deg, #55e6ef, #12a6ca);
    color: #041d29;
    box-shadow: 0 0 1.5rem rgba(33, 203, 231, 0.2);
}

.game-dashboard-flight-board div,
.game-dashboard-ledger div {
    border-color: rgba(72, 190, 221, 0.15);
    background: rgba(10, 43, 59, 0.56);
}

.game-dashboard-directive-panel {
    border-color: rgba(255, 190, 71, 0.31) !important;
    background:
        radial-gradient(16rem 10rem at 92% 16%, rgba(255, 184, 59, 0.12), transparent 72%),
        linear-gradient(145deg, rgba(34, 31, 21, 0.88), rgba(8, 20, 28, 0.98)) !important;
}

.game-map-dashboard-button {
    position: relative;
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    border: 1px solid #fff0a1;
    background: linear-gradient(135deg, #ffd84d 0%, #ff9d1f 48%, #ff5c35 100%);
    color: #291300;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    box-shadow:
        0 0 0 2px rgba(255, 138, 37, 0.2),
        0 0.85rem 2.2rem rgba(194, 64, 14, 0.34),
        0 0 1.6rem rgba(255, 177, 38, 0.27);
    animation: dashboard-cta-pulse 2.6s ease-in-out infinite;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.game-map-dashboard-button::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.62) 46%, transparent 70%);
    content: "";
    transform: translateX(-135%);
    animation: dashboard-cta-sweep 3.4s ease-in-out infinite;
    pointer-events: none;
}

.game-map-dashboard-button > * {
    position: relative;
    z-index: 1;
}

.game-map-dashboard-button svg {
    width: 1.3rem;
    height: 1.3rem;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.game-map-dashboard-button:hover {
    background: linear-gradient(135deg, #ffe675 0%, #ffae2c 48%, #ff7047 100%);
    box-shadow:
        0 0 0 3px rgba(255, 174, 46, 0.24),
        0 1rem 2.5rem rgba(194, 64, 14, 0.4);
    filter: saturate(1.1);
    transform: translateY(-2px);
}

@keyframes dashboard-cta-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 2px rgba(255, 138, 37, 0.18),
            0 0.85rem 2.2rem rgba(194, 64, 14, 0.3),
            0 0 1.3rem rgba(255, 177, 38, 0.2);
    }

    50% {
        box-shadow:
            0 0 0 4px rgba(255, 184, 53, 0.26),
            0 0.85rem 2.4rem rgba(194, 64, 14, 0.4),
            0 0 2rem rgba(255, 177, 38, 0.36);
    }
}

@keyframes dashboard-cta-sweep {
    0%,
    58% {
        transform: translateX(-135%);
    }

    82%,
    100% {
        transform: translateX(135%);
    }
}

@media (max-width: 640px) {
    .dashboard-modal-backdrop {
        padding:
            env(safe-area-inset-top)
            env(safe-area-inset-right)
            env(safe-area-inset-bottom)
            env(safe-area-inset-left);
    }

    .dashboard-modal-shell.modal-surface-solid {
        width: 100%;
        height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        max-height: none;
        border-width: 0;
        border-radius: 0;
    }

    .dashboard-modal-header {
        min-height: 4.2rem;
        padding: 0.62rem 0.75rem;
    }

    .dashboard-modal-close {
        width: 2.8rem;
        height: 2.8rem;
    }

    .dashboard-modal-shell > .game-dashboard {
        padding: 0.65rem;
    }

    .game-dashboard-hero {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.65rem;
    }

    .game-dashboard-radar {
        width: min(7.5rem, 31vw);
    }

    .game-dashboard-hero-copy p:last-child {
        display: none;
    }

    .game-dashboard-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-dashboard-stat {
        min-height: 5.7rem;
        grid-template-columns: 2.35rem minmax(0, 1fr);
        gap: 0.55rem;
        padding: 0.65rem;
    }

    .game-dashboard-stat-icon {
        width: 2.35rem;
        height: 2.35rem;
    }

    .game-dashboard-stat-icon svg {
        width: 1.3rem;
        height: 1.3rem;
    }

    .game-dashboard-stat strong {
        font-size: clamp(0.94rem, 4vw, 1.16rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-map-dashboard-button,
    .game-map-dashboard-button::after,
    .game-dashboard-reputation-track > div > span {
        animation: none;
    }
}

.flight-plan-dispatch-toggle {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #bae6fd;
    border-radius: 0.65rem;
    background: linear-gradient(100deg, #f0f9ff, #ecfeff);
    cursor: pointer;
}

.flight-plan-dispatch-toggle.is-manual {
    border-color: #fde68a;
    background: linear-gradient(100deg, #fffbeb, #fff7ed);
}

.flight-plan-dispatch-icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 0.45rem;
    background: #0e7490;
    color: white;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-weight: 900;
}

.is-manual .flight-plan-dispatch-icon { background: #d97706; }
.flight-plan-dispatch-copy strong { display: block; color: #0f172a; font-size: 0.82rem; }
.flight-plan-dispatch-copy small { display: block; margin-top: 0.15rem; color: #64748b; font-size: 0.68rem; line-height: 1.4; }
.flight-plan-switch { position: relative; width: 2.8rem; height: 1.55rem; }
.flight-plan-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.flight-plan-switch > span { position: absolute; inset: 0; border-radius: 999px; background: #94a3b8; transition: 160ms ease; }
.flight-plan-switch > span::after { position: absolute; top: 0.2rem; left: 0.2rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28); content: ""; transition: 160ms ease; }
.flight-plan-switch input:checked + span { background: #d97706; }
.flight-plan-switch input:checked + span::after { transform: translateX(1.25rem); }
.flight-plan-dispatch-toggle.is-automatic .flight-plan-switch input:checked + span { background: #0e7490; }
.flight-plan-switch input:focus-visible + span { outline: 3px solid rgba(14, 116, 144, 0.28); outline-offset: 2px; }

@media (max-width: 640px) {
    .flight-plan-dispatch-toggle { grid-template-columns: auto 1fr; }
    .flight-plan-switch { grid-column: 1 / -1; justify-self: end; }
}

/* Airline scorecard: frequent-use company progress, with secondary data de-emphasized. */
.game-dashboard-scorecard {
    gap: 0.7rem;
}

.game-scorecard-profile,
.game-dashboard-scorecard .game-dashboard-stat,
.game-scorecard-detail,
.game-scorecard-boost {
    border: 1px solid rgba(83, 197, 226, 0.22);
    background: linear-gradient(145deg, rgba(9, 35, 51, 0.98), rgba(4, 17, 28, 0.99));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.game-scorecard-profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    overflow: hidden;
    border-radius: 0.72rem;
    padding: clamp(1rem, 2.4vw, 1.45rem);
    background:
        radial-gradient(32rem 12rem at 0 0, rgba(25, 151, 204, 0.16), transparent 75%),
        linear-gradient(120deg, rgba(10, 42, 61, 0.99), rgba(4, 18, 30, 0.99));
}

.game-scorecard-identity {
    min-width: 0;
}

.game-scorecard-identity p,
.game-scorecard-reputation-heading small,
.game-dashboard-scorecard .game-dashboard-stat span,
.game-scorecard-detail header span,
.game-scorecard-boost summary small {
    margin: 0;
    color: #72d8f1;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.game-scorecard-identity h1 {
    overflow: hidden;
    margin: 0.26rem 0 0;
    color: #f5fcff;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-scorecard-identity > span {
    display: block;
    margin-top: 0.45rem;
    color: #8ca9b8;
    font-size: 0.82rem;
}

.game-scorecard-reputation {
    min-width: 0;
    padding-left: clamp(1rem, 2vw, 1.5rem);
    border-left: 1px solid rgba(91, 205, 232, 0.18);
}

.game-scorecard-reputation-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.game-scorecard-reputation-heading > span {
    min-width: 0;
}

.game-scorecard-reputation-heading strong {
    display: block;
    overflow: hidden;
    margin-top: 0.22rem;
    color: #effaff;
    font-size: 0.92rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-scorecard-reputation-heading b {
    color: #f9d56a;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 1.7rem;
    line-height: 1;
}

.game-scorecard-reputation-heading b small {
    margin-left: 0.1rem;
    color: #ddbd62;
    font-size: 0.72rem;
}

.game-scorecard-reputation-track {
    overflow: hidden;
    height: 0.48rem;
    margin-top: 0.7rem;
    border-radius: 999px;
    background: rgba(117, 190, 213, 0.13);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.42);
}

.game-scorecard-reputation-track > span {
    display: block;
    height: 100%;
    min-width: 0.3rem;
    border-radius: inherit;
    background: linear-gradient(90deg, #159fce, #50d6e9 70%, #f2cf64);
    box-shadow: 0 0 0.8rem rgba(80, 214, 233, 0.35);
}

.game-scorecard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.game-dashboard-scorecard .game-dashboard-stat {
    min-height: 5.7rem;
    border-left-width: 1px !important;
    border-radius: 0.62rem;
    padding: 0.72rem;
}

.game-dashboard-scorecard .game-dashboard-stat::after {
    content: none;
}

.game-dashboard-scorecard .game-dashboard-stat.is-cash {
    grid-column: span 2;
    border-color: rgba(71, 225, 168, 0.33) !important;
    background:
        radial-gradient(22rem 8rem at 0 0, rgba(44, 201, 145, 0.12), transparent 75%),
        linear-gradient(145deg, rgba(8, 41, 45, 0.98), rgba(4, 21, 29, 0.99)) !important;
}

.game-dashboard-scorecard .game-dashboard-stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-color: rgba(99, 210, 235, 0.25) !important;
    background: rgba(43, 144, 173, 0.11);
    color: #76d9ed;
    box-shadow: none;
}

.game-dashboard-scorecard .game-dashboard-stat.is-cash .game-dashboard-stat-icon {
    border-color: rgba(81, 226, 173, 0.3) !important;
    background: rgba(38, 177, 128, 0.11);
    color: #62e2b2;
}

.game-dashboard-scorecard .game-dashboard-stat-icon svg {
    width: 1.32rem;
    height: 1.32rem;
}

.game-dashboard-scorecard .game-dashboard-stat strong {
    margin-top: 0.36rem;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.game-dashboard-scorecard .game-dashboard-stat.is-cash strong {
    color: #dfffee;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.game-scorecard-details {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 0.55rem;
}

.game-scorecard-detail {
    min-height: 8.2rem;
    border-radius: 0.62rem;
    padding: 0.85rem;
}

.game-scorecard-detail header h2 {
    margin: 0.2rem 0 0;
    color: #f3fbff;
    font-size: 0.98rem;
    font-weight: 800;
}

.game-scorecard-operation-count {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.game-scorecard-operation-count strong {
    color: #f7d267;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 2.15rem;
    line-height: 0.92;
}

.game-scorecard-operation-count span {
    max-width: 11rem;
    color: #8eabb9;
    font-size: 0.76rem;
    line-height: 1.35;
}

.game-scorecard-ledger {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.game-scorecard-ledger > div {
    min-width: 0;
    padding: 0.55rem 0.62rem;
    border-left: 2px solid rgba(101, 202, 229, 0.28);
    background: rgba(12, 48, 65, 0.42);
}

.game-scorecard-ledger span {
    display: block;
    color: #84aab9;
    font-size: 0.68rem;
}

.game-scorecard-ledger strong {
    display: block;
    overflow: hidden;
    margin-top: 0.28rem;
    color: #eaf8fd;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-scorecard-ledger .is-positive {
    border-left-color: #49d8a4;
}

.game-scorecard-ledger .is-positive strong {
    color: #8af0c7;
}

.game-scorecard-ledger .is-negative {
    border-left-color: #ef7183;
}

.game-scorecard-ledger .is-negative strong {
    color: #ff9eac;
}

.game-scorecard-optional-benefit {
    display: contents;
}

.game-scorecard-detail.is-operations {
    order: 1;
}

.game-scorecard-detail.is-economics {
    order: 2;
}

.game-scorecard-boost {
    grid-column: 1 / -1;
    order: 3;
    overflow: hidden;
    border-radius: 0.62rem;
}

.game-scorecard-boost summary {
    display: flex;
    min-height: 3.35rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.66rem 0.85rem;
    cursor: pointer;
    list-style: none;
}

.game-scorecard-boost summary::-webkit-details-marker {
    display: none;
}

.game-scorecard-boost summary span {
    min-width: 0;
}

.game-scorecard-boost summary strong {
    display: block;
    margin-top: 0.12rem;
    color: #dceff6;
    font-size: 0.78rem;
}

.game-scorecard-boost summary b {
    color: #75cfe4;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.7rem;
    text-align: right;
}

.game-scorecard-boost summary b::after {
    display: inline-block;
    margin-left: 0.55rem;
    content: "+";
    font-size: 1rem;
}

.game-scorecard-boost[open] summary b::after {
    content: "-";
}

.game-scorecard-boost .game-dashboard-reputation-reward {
    margin: 0;
    border-width: 1px 0 0;
    border-radius: 0;
    background: rgba(5, 24, 36, 0.72);
}

.game-scorecard-reputation-ad {
    margin-top: 0.8rem;
    border-left: 3px solid #2f9cbd !important;
}

@media (max-width: 719px) {
    .game-scorecard-profile {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.9rem;
        padding: 0.9rem;
    }

    .game-scorecard-reputation {
        padding: 0.8rem 0 0;
        border-top: 1px solid rgba(91, 205, 232, 0.18);
        border-left: 0;
    }

    .game-scorecard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-dashboard-scorecard .game-dashboard-stat {
        min-height: 5.2rem;
        grid-template-columns: 2.1rem minmax(0, 1fr);
        gap: 0.5rem;
        padding: 0.6rem;
    }

    .game-dashboard-scorecard .game-dashboard-stat-icon {
        width: 2.1rem;
        height: 2.1rem;
    }

    .game-dashboard-scorecard .game-dashboard-stat strong,
    .game-dashboard-scorecard .game-dashboard-stat.is-cash strong {
        font-size: clamp(1rem, 4.3vw, 1.25rem);
    }

    .game-dashboard-scorecard .game-dashboard-stat span {
        font-size: 0.58rem;
        letter-spacing: 0.07em;
    }

    .game-scorecard-details {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-scorecard-boost {
        grid-column: 1;
    }

    .game-scorecard-detail {
        min-height: 0;
    }

    .game-scorecard-ledger {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-scorecard-boost .game-dashboard-reputation-reward {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-scorecard-boost .game-dashboard-reputation-reward-action strong {
        max-width: none;
        text-align: left;
    }
}

/* Scorecard light interior: dark framing, calm reading surface. */
.dashboard-modal-backdrop {
    background:
        radial-gradient(circle at 50% 0, rgba(20, 103, 137, 0.2), transparent 42%),
        rgba(2, 12, 20, 0.72) !important;
}

.dashboard-modal-shell.modal-surface-solid {
    border-color: rgba(126, 174, 194, 0.58);
    background: linear-gradient(180deg, #f6f9fa 0%, #eaf1f4 100%) !important;
    background-size: auto !important;
    color: #173345;
    box-shadow:
        0 0 0 1px rgba(3, 23, 34, 0.45),
        0 2.2rem 6rem -2rem rgba(0, 0, 0, 0.68),
        0 0.8rem 2rem -1.4rem rgba(48, 119, 148, 0.3);
    scrollbar-color: #83afbf #e5edf1;
}

.dashboard-modal-header {
    border-bottom-color: rgba(94, 187, 214, 0.28);
    background: linear-gradient(100deg, rgba(14, 57, 76, 0.99), rgba(7, 31, 45, 0.99));
    box-shadow: 0 0.55rem 1.5rem -1.15rem rgba(3, 20, 29, 0.75);
}

.dashboard-modal-header::after {
    opacity: 0.58;
}

.dashboard-modal-close {
    border-color: rgba(175, 224, 237, 0.42);
    background: rgba(255, 255, 255, 0.06);
    color: #dff7fc;
    box-shadow: none;
}

.dashboard-modal-close:hover {
    border-color: rgba(207, 241, 248, 0.72);
    background: rgba(255, 255, 255, 0.13);
}

.dashboard-modal-shell > .game-dashboard {
    background: transparent;
}

.game-dashboard-scorecard {
    color: #173345;
}

.game-dashboard-scorecard .game-dashboard-loading,
.game-dashboard-scorecard .game-dashboard-alert {
    border-color: rgba(72, 139, 165, 0.2) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: #476676;
    box-shadow: 0 0.5rem 1.3rem -1.1rem rgba(31, 74, 93, 0.28) !important;
}

.game-scorecard-profile,
.game-dashboard-scorecard .game-dashboard-stat,
.game-scorecard-detail,
.game-scorecard-boost {
    border-color: rgba(61, 119, 143, 0.14) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: #173345;
    box-shadow:
        0 0.55rem 1.35rem -1.1rem rgba(27, 70, 88, 0.3),
        inset 0 1px rgba(255, 255, 255, 0.9) !important;
}

.game-scorecard-profile {
    border-color: rgba(46, 128, 161, 0.18) !important;
    background:
        radial-gradient(28rem 11rem at 0 0, rgba(57, 170, 207, 0.13), transparent 74%),
        linear-gradient(120deg, #f3fbfd 0%, #eaf5f8 100%) !important;
}

.game-scorecard-identity p,
.game-scorecard-reputation-heading small,
.game-dashboard-scorecard .game-dashboard-stat span,
.game-scorecard-detail header span,
.game-scorecard-boost summary small {
    color: #477b90;
}

.game-scorecard-identity h1 {
    color: #102d3d;
}

.game-scorecard-identity > span {
    color: #678493;
}

.game-scorecard-reputation {
    border-color: rgba(58, 130, 158, 0.18);
}

.game-scorecard-reputation-heading strong {
    color: #234a5d;
}

.game-scorecard-reputation-heading b {
    color: #9a6b08;
}

.game-scorecard-reputation-heading b small {
    color: #aa7e20;
}

.game-scorecard-reputation-track {
    background: rgba(52, 111, 135, 0.13);
    box-shadow: inset 0 1px 2px rgba(29, 71, 88, 0.18);
}

.game-scorecard-reputation-track > span {
    background: linear-gradient(90deg, #168cb5, #3ec4d7 72%, #e0b738);
    box-shadow: none;
}

.game-dashboard-scorecard .game-dashboard-stat {
    border-left-width: 3px !important;
    border-left-color: #9cc7d5 !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

.game-dashboard-scorecard .game-dashboard-stat.is-cash {
    border-color: rgba(45, 155, 112, 0.2) !important;
    border-left-color: #42ad82 !important;
    background:
        radial-gradient(20rem 8rem at 0 0, rgba(73, 182, 140, 0.11), transparent 75%),
        linear-gradient(145deg, #f5fcf9, #eef8f4) !important;
}

.game-dashboard-scorecard .game-dashboard-stat.is-flights {
    border-left-color: #d3a63a !important;
}

.game-dashboard-scorecard .game-dashboard-stat-icon,
.game-dashboard-scorecard .game-dashboard-stat.is-cash .game-dashboard-stat-icon {
    border-color: rgba(48, 126, 155, 0.16) !important;
    background: #eef6f8;
    color: #337e99;
    box-shadow: none;
}

.game-dashboard-scorecard .game-dashboard-stat.is-cash .game-dashboard-stat-icon {
    border-color: rgba(44, 147, 107, 0.18) !important;
    background: #e8f6f0;
    color: #318f6b;
}

.game-dashboard-scorecard .game-dashboard-stat.is-flights .game-dashboard-stat-icon {
    border-color: rgba(178, 132, 26, 0.18) !important;
    background: #fbf5e6;
    color: #a77a13;
}

.game-dashboard-scorecard .game-dashboard-stat strong,
.game-dashboard-scorecard .game-dashboard-stat.is-cash strong {
    color: #153648;
}

.game-scorecard-detail header h2 {
    color: #17384a;
}

.game-scorecard-operation-count strong {
    color: #a8790d;
}

.game-scorecard-operation-count span {
    color: #66818f;
}

.game-scorecard-ledger > div {
    border-left-color: #8ebdcc;
    background: #f1f6f8;
}

.game-scorecard-ledger span {
    color: #607f8e;
}

.game-scorecard-ledger strong {
    color: #1f4354;
}

.game-scorecard-ledger .is-positive {
    border-left-color: #42a87d;
    background: #eff8f4;
}

.game-scorecard-ledger .is-positive strong {
    color: #257658;
}

.game-scorecard-ledger .is-negative {
    border-left-color: #d96a79;
    background: #fff3f4;
}

.game-scorecard-ledger .is-negative strong {
    color: #b33e50;
}

.game-scorecard-boost summary strong {
    color: #294e60;
}

.game-scorecard-boost summary b {
    color: #397d98;
}

.game-scorecard-boost .game-dashboard-reputation-reward {
    border-color: rgba(60, 132, 159, 0.16);
    background: #f3f8fa;
}

.game-scorecard-boost .game-dashboard-reputation-reward h3 {
    color: #173b4d;
}

.game-scorecard-boost .game-dashboard-reputation-reward p {
    color: #607b89;
}

.game-scorecard-boost .game-dashboard-reputation-privacy {
    color: #287894;
}

.game-scorecard-boost .game-dashboard-reputation-reward-action strong {
    color: #397d98;
}

/* Progression and reward CTAs added to the renewed dashboard. */
.game-progression-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 0.7fr)) minmax(12rem, 1.2fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(51, 124, 153, 0.18);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0.55rem 1.35rem -1.1rem rgba(27, 70, 88, 0.3);
}

.game-progression-strip > div {
    min-width: 0;
    border-right: 1px solid #d9e6eb;
    padding: 0.72rem 0.8rem;
}

.game-progression-strip span,
.game-progression-strip > div > span {
    color: #477b90;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-progression-strip strong {
    display: block;
    overflow: hidden;
    margin-top: 0.2rem;
    color: #173b4d;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-progression-strip strong small {
    color: #6f8995;
    font-size: 0.68rem;
}

.game-progression-strip > a {
    display: flex;
    min-height: 3.7rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    background: linear-gradient(120deg, #0e607e, #167d9c);
    color: #fff;
    padding: 0.75rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.game-progression-strip > a span {
    color: #fff;
    font-size: 1.1rem;
}

.game-dashboard-reward-grid {
    display: contents;
}

.game-daily-reward-card {
    grid-column: 1 / -1;
    order: 4;
    overflow: hidden;
    border-left: 4px solid #c99a25 !important;
    background:
        radial-gradient(24rem 8rem at 0 0, rgba(231, 188, 73, 0.15), transparent 76%),
        #fffdf6 !important;
}

.game-daily-reward-card .game-dashboard-reputation-reward {
    margin: 0;
    border: 0;
    background: transparent;
}

.game-daily-reward-card .game-dashboard-reputation-reward-copy > span {
    color: #8f6910;
}

.game-daily-reward-card .game-dashboard-reputation-reward-action {
    display: grid;
    justify-items: end;
    gap: 0.25rem;
}

.game-daily-reward-card .game-dashboard-reputation-reward-action small {
    color: #6e7f85;
    font-size: 0.7rem;
}

@media (max-width: 719px) {
    .game-progression-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-progression-strip > div {
        padding: 0.6rem 0.5rem;
    }

    .game-progression-strip > div > span {
        font-size: 0.55rem;
    }

    .game-progression-strip strong {
        font-size: 0.8rem;
    }

    .game-progression-strip > a {
        grid-column: 1 / -1;
        min-height: 3rem;
    }

    .game-daily-reward-card .game-dashboard-reputation-reward {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-daily-reward-card .game-dashboard-reputation-reward-action {
        justify-items: start;
    }
}

/* Flight plan editor: compact command flow for touch screens. */
.flight-plan-operation-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.flight-plan-continuous-toggle {
    display: flex;
    min-height: 2.55rem;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(0, 126, 190, 0.32);
    border-radius: 0.65rem;
    background: rgba(229, 246, 255, 0.82);
    color: #075f94;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
}

.flight-plan-continuous-toggle > span:first-child {
    min-width: 0;
}

.flight-plan-continuous-toggle .flight-plan-switch {
    flex: 0 0 auto;
}

.flight-plan-continuous-toggle .flight-plan-switch input:checked + span {
    background: #0b75b7;
}

.flight-plan-add-aircraft:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.flight-plan-remove-aircraft {
    display: inline-flex;
    min-height: 2.45rem;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    border: 1px solid rgba(202, 83, 75, 0.32);
    border-radius: 0.62rem;
    background: rgba(255, 241, 239, 0.9);
    color: #aa3029;
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.flight-plan-remove-aircraft svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 767px) {
    .flight-plan-modal-backdrop {
        align-items: stretch !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .flight-plan-modal.modal-surface-solid {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-width: 0;
        border-radius: 0 !important;
    }

    .flight-plan-modal .flight-plan-modal-header {
        align-items: center;
        padding:
            max(0.7rem, env(safe-area-inset-top))
            max(0.8rem, env(safe-area-inset-right))
            0.7rem
            max(0.8rem, env(safe-area-inset-left));
    }

    .flight-plan-modal .flight-plan-modal-header h2 {
        font-size: 1.15rem;
    }

    .flight-plan-modal .flight-plan-modal-header .context-help,
    .flight-plan-modal .flight-plan-section-title .context-help {
        display: none;
    }

    .flight-plan-modal .flight-plan-close {
        width: 2.55rem;
        height: 2.55rem;
    }

    .flight-plan-modal .flight-plan-modal-body {
        gap: 0.6rem;
        padding: 0.65rem;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .flight-plan-modal .flight-plan-summary {
        display: none;
    }

    .flight-plan-modal .flight-plan-section {
        padding: 0.72rem;
        border-radius: 0.75rem;
    }

    .flight-plan-modal .flight-plan-section-title {
        align-items: flex-start;
        gap: 0.55rem;
        margin-bottom: 0.65rem;
    }

    .flight-plan-modal .flight-plan-section-title > div:first-child > span:first-child {
        display: none;
    }

    .flight-plan-modal .flight-plan-section-title h3 {
        margin: 0;
        font-size: 0.92rem;
    }

    .flight-plan-modal .flight-plan-time-reference {
        display: inline-flex;
        width: fit-content;
        margin-top: 0.3rem;
        border-radius: 999px;
        background: rgba(11, 117, 183, 0.1);
        color: #075f94;
        padding: 0.16rem 0.42rem;
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-size: 0.58rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .flight-plan-modal .flight-plan-form-grid {
        gap: 0.55rem;
    }

    .flight-plan-modal .flight-plan-form-grid input,
    .flight-plan-modal .flight-plan-form-grid select,
    .flight-plan-modal .flight-plan-price-grid input {
        min-height: 2.75rem;
    }

    .flight-plan-modal .flight-plan-days {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.28rem;
        margin-top: 0.6rem;
    }

    .flight-plan-modal .flight-plan-days label {
        position: relative;
        display: block;
        min-width: 0;
        min-height: 2.35rem;
        overflow: hidden;
        border: 0;
        background: transparent;
        padding: 0;
    }

    .flight-plan-modal .flight-plan-days input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
    }

    .flight-plan-modal .flight-plan-days label span {
        display: grid;
        min-height: 2.35rem;
        place-items: center;
        border: 1px solid rgba(70, 105, 132, 0.22);
        border-radius: 0.55rem;
        background: rgba(255, 255, 255, 0.76);
        color: #526b82;
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-size: 0.62rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .flight-plan-modal .flight-plan-days input:checked + span {
        border-color: #0b75b7;
        background: #0b75b7;
        color: #fff;
        box-shadow: 0 0 0 2px rgba(11, 117, 183, 0.12);
    }

    .flight-plan-modal .flight-plan-dispatch-row {
        gap: 0;
    }

    .flight-plan-modal .flight-plan-dispatch-toggle {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.6rem;
        margin-top: 0.6rem;
        padding: 0.58rem 0.7rem;
    }

    .flight-plan-modal .flight-plan-dispatch-icon {
        width: 1.85rem;
        height: 1.85rem;
    }

    .flight-plan-modal .flight-plan-dispatch-row .flight-plan-switch {
        grid-column: auto;
        justify-self: end;
    }

    .flight-plan-modal .flight-plan-price-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .flight-plan-modal .flight-plan-price-grid label {
        min-width: 0;
        gap: 0.28rem;
        font-size: 0.65rem;
    }

    .flight-plan-modal .flight-plan-price-grid input {
        min-width: 0;
        padding-inline: 0.5rem;
        font-size: 0.82rem;
    }

    .flight-plan-modal .flight-plan-section-operations .flight-plan-section-title {
        flex-direction: column;
    }

    .flight-plan-modal .flight-plan-operation-actions {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.45rem;
    }

    .flight-plan-modal .flight-plan-continuous-toggle {
        min-width: 0;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.48rem 0.62rem;
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .flight-plan-modal .flight-plan-add-aircraft {
        min-height: 2.55rem;
        white-space: nowrap;
    }

    .flight-plan-modal .operation-board .sim-form-table tbody {
        gap: 0;
        padding: 0;
    }

    .flight-plan-modal .operation-board .sim-form-table tbody tr {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        padding: 0.7rem;
        border-radius: 0.72rem;
    }

    .flight-plan-modal .operation-board td[data-aircraft-picker] {
        order: -2;
        padding-bottom: 0.58rem !important;
        border-bottom: 1px solid rgba(58, 124, 164, 0.15) !important;
    }

    .flight-plan-modal .operation-board td[data-operation-time] {
        order: -1;
        grid-column: auto;
        min-width: 0;
    }

    .flight-plan-modal .operation-board td[data-operation-time] input,
    .flight-plan-modal .operation-board td[data-aircraft-picker] select {
        width: 100%;
        min-width: 0;
        min-height: 2.85rem;
        font-size: 0.92rem;
    }

    .flight-plan-modal .operation-board td[data-operation-time="end"] small,
    .flight-plan-modal .operation-board td[data-aircraft-capacity] small {
        display: none;
    }

    .flight-plan-modal .operation-board td[data-aircraft-capacity],
    .flight-plan-modal .operation-board td[data-aircraft-profit] {
        min-height: 3rem;
        padding: 0.45rem 0.55rem !important;
        border-radius: 0.55rem !important;
        background: rgba(220, 241, 250, 0.54) !important;
    }

    .flight-plan-modal .operation-board td[data-aircraft-profit] strong {
        font-size: 1rem;
    }

    .flight-plan-modal .operation-board td[data-actions] {
        order: 1;
        padding-top: 0 !important;
    }

    .flight-plan-modal .flight-plan-remove-aircraft {
        width: 100%;
        min-height: 2.6rem;
    }

    .flight-plan-modal .flight-plan-modal-footer {
        position: sticky;
        bottom: -0.65rem;
        z-index: 20;
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 0.5rem;
        margin: 0 -0.65rem -0.65rem;
        border-top: 1px solid rgba(77, 116, 146, 0.24);
        background: rgba(224, 239, 248, 0.96);
        padding:
            0.65rem
            max(0.65rem, env(safe-area-inset-right))
            max(0.65rem, env(safe-area-inset-bottom))
            max(0.65rem, env(safe-area-inset-left));
        backdrop-filter: blur(12px);
    }

    .flight-plan-modal .flight-plan-modal-footer button {
        min-width: 0;
        min-height: 3rem;
        padding-inline: 0.55rem;
    }
}
